iking-web-ui-pro 0.3.3 → 0.3.5

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 (46) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +614 -638
  2. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  3. package/dist/IkBaseDialog/ik.index.es.js +153 -177
  4. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBtnSetting/ik.index.es.js +272 -296
  6. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  7. package/dist/IkCollapseCard/ik.index.es.js +153 -177
  8. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  9. package/dist/IkDescription/ik.index.es.js +1496 -1520
  10. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  11. package/dist/IkDetailPreviewFiles/ik.index.es.js +1464 -1488
  12. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  13. package/dist/IkExpandCollapse/ik.index.es.js +144 -168
  14. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  15. package/dist/IkIconPicker/ik.index.es.js +227 -244
  16. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  17. package/dist/IkMonacoEditor/ik.index.es.js +357 -381
  18. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  19. package/dist/IkPageFull/ik.index.es.js +626 -650
  20. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  21. package/dist/IkPreviewFile/ik.index.es.js +1440 -1464
  22. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  23. package/dist/IkPreviewFileDialog/ik.index.es.js +573 -597
  24. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  25. package/dist/IkSchedule/ik.index.es.js +331 -355
  26. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  27. package/dist/IkSideText/ik.index.es.js +178 -202
  28. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  29. package/dist/IkSvgIcon/ik.index.es.js +131 -155
  30. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  31. package/dist/IkTree/ik.index.es.js +7 -7
  32. package/dist/IkTree/iking-web-ui-pro.css +1 -1
  33. package/dist/IkUploadFile/ik.index.es.js +692 -716
  34. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  35. package/dist/IkUploadImage/ik.index.es.js +385 -409
  36. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  37. package/dist/IkVerticalStepBar/ik.index.es.js +193 -217
  38. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  39. package/dist/iking-web-ui-pro.css +2 -2
  40. package/dist/index.es.js +11633 -11650
  41. package/dist/index.umd.js +99 -99
  42. package/dist/src/components/IkMonacoEditor/index.d.ts +9 -0
  43. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +9 -0
  44. package/dist/src/components/IkSvgIcon/index.d.ts +9 -0
  45. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +5 -0
  46. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as Q, openBlock as N, createElementBlock as W, createElementVNode as j, inject as it, computed as J, resolveComponent as pt, Fragment as vt, normalizeClass as Y, normalizeStyle as _e, createBlock as Re, withCtx as Z, createTextVNode as Jt, toDisplayString as Qt, createVNode as K, unref as P, mergeModels as mt, useModel as oi, ref as Ce, h as sr, mergeProps as ar, createSlots as or, renderSlot as Ze, createCommentVNode as ue, getCurrentScope as lr, onScopeDispose as ur, watch as st, markRaw as Ai, effectScope as cr, shallowRef as fr, nextTick as li, onMounted as hr, Teleport as bn, Transition as wn, withModifiers as dr, resolveDynamicComponent as gr, renderList as pr, withDirectives as vr, vShow as mr, reactive as yr } from "vue";
2
- import { ikColor as _r, paramType as Li, _ as Mt, buildUUID as Tn } from "iking-utils-pro";
3
- import { useLocale as Cr, useNamespace as En, useZIndex as kr, ElIcon as Pe, EVENT_CODE as We } from "element-plus";
4
- const Qe = (o, a) => (o.install = (r) => {
1
+ import { defineComponent as Q, openBlock as M, createElementBlock as j, createElementVNode as W, inject as tt, computed as J, resolveComponent as vt, normalizeClass as $, normalizeStyle as rt, Fragment as st, createBlock as De, withCtx as Z, mergeProps as bn, createTextVNode as Jt, toDisplayString as Qt, createVNode as K, unref as P, mergeModels as mt, useModel as oi, ref as _e, h as ar, createSlots as or, renderSlot as qe, createCommentVNode as ue, getCurrentScope as lr, onScopeDispose as ur, watch as at, markRaw as Ai, effectScope as cr, shallowRef as fr, nextTick as li, onMounted as hr, Teleport as wn, Transition as Tn, withModifiers as dr, resolveDynamicComponent as gr, renderList as pr, withDirectives as vr, vShow as mr, reactive as yr } from "vue";
2
+ import { ikColor as _r, paramType as Li, _ as Mt, buildUUID as En } from "iking-utils-pro";
3
+ import { useLocale as Cr, useNamespace as Sn, useZIndex as kr, ElIcon as Ie, EVENT_CODE as je } from "element-plus";
4
+ const Je = (o, a) => (o.install = (r) => {
5
5
  for (const t of [o, ...Object.values({})])
6
6
  r.component(t.name, t);
7
7
  }, o), ei = (o, a) => a ? a.startsWith("http") ? a : `${o || location.origin}${a}` : "", Di = (o, a) => {
@@ -123,11 +123,11 @@ var Tr = /* @__PURE__ */ Q({
123
123
  name: "ArrowLeft",
124
124
  __name: "arrow-left",
125
125
  setup(o) {
126
- return (a, r) => (N(), W("svg", {
126
+ return (a, r) => (M(), j("svg", {
127
127
  xmlns: "http://www.w3.org/2000/svg",
128
128
  viewBox: "0 0 1024 1024"
129
129
  }, [
130
- j("path", {
130
+ W("path", {
131
131
  fill: "currentColor",
132
132
  d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
133
133
  })
@@ -137,11 +137,11 @@ var Tr = /* @__PURE__ */ Q({
137
137
  name: "ArrowRight",
138
138
  __name: "arrow-right",
139
139
  setup(o) {
140
- return (a, r) => (N(), W("svg", {
140
+ return (a, r) => (M(), j("svg", {
141
141
  xmlns: "http://www.w3.org/2000/svg",
142
142
  viewBox: "0 0 1024 1024"
143
143
  }, [
144
- j("path", {
144
+ W("path", {
145
145
  fill: "currentColor",
146
146
  d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
147
147
  })
@@ -151,25 +151,25 @@ var Tr = /* @__PURE__ */ Q({
151
151
  name: "Close",
152
152
  __name: "close",
153
153
  setup(o) {
154
- return (a, r) => (N(), W("svg", {
154
+ return (a, r) => (M(), j("svg", {
155
155
  xmlns: "http://www.w3.org/2000/svg",
156
156
  viewBox: "0 0 1024 1024"
157
157
  }, [
158
- j("path", {
158
+ W("path", {
159
159
  fill: "currentColor",
160
160
  d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
161
161
  })
162
162
  ]));
163
163
  }
164
- }), Sn = Ir, Pr = /* @__PURE__ */ Q({
164
+ }), xn = Ir, Pr = /* @__PURE__ */ Q({
165
165
  name: "FullScreen",
166
166
  __name: "full-screen",
167
167
  setup(o) {
168
- return (a, r) => (N(), W("svg", {
168
+ return (a, r) => (M(), j("svg", {
169
169
  xmlns: "http://www.w3.org/2000/svg",
170
170
  viewBox: "0 0 1024 1024"
171
171
  }, [
172
- j("path", {
172
+ W("path", {
173
173
  fill: "currentColor",
174
174
  d: "m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"
175
175
  })
@@ -179,11 +179,11 @@ var Tr = /* @__PURE__ */ Q({
179
179
  name: "RefreshLeft",
180
180
  __name: "refresh-left",
181
181
  setup(o) {
182
- return (a, r) => (N(), W("svg", {
182
+ return (a, r) => (M(), j("svg", {
183
183
  xmlns: "http://www.w3.org/2000/svg",
184
184
  viewBox: "0 0 1024 1024"
185
185
  }, [
186
- j("path", {
186
+ W("path", {
187
187
  fill: "currentColor",
188
188
  d: "M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"
189
189
  })
@@ -193,11 +193,11 @@ var Tr = /* @__PURE__ */ Q({
193
193
  name: "RefreshRight",
194
194
  __name: "refresh-right",
195
195
  setup(o) {
196
- return (a, r) => (N(), W("svg", {
196
+ return (a, r) => (M(), j("svg", {
197
197
  xmlns: "http://www.w3.org/2000/svg",
198
198
  viewBox: "0 0 1024 1024"
199
199
  }, [
200
- j("path", {
200
+ W("path", {
201
201
  fill: "currentColor",
202
202
  d: "M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"
203
203
  })
@@ -207,11 +207,11 @@ var Tr = /* @__PURE__ */ Q({
207
207
  name: "ScaleToOriginal",
208
208
  __name: "scale-to-original",
209
209
  setup(o) {
210
- return (a, r) => (N(), W("svg", {
210
+ return (a, r) => (M(), j("svg", {
211
211
  xmlns: "http://www.w3.org/2000/svg",
212
212
  viewBox: "0 0 1024 1024"
213
213
  }, [
214
- j("path", {
214
+ W("path", {
215
215
  fill: "currentColor",
216
216
  d: "M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"
217
217
  })
@@ -221,11 +221,11 @@ var Tr = /* @__PURE__ */ Q({
221
221
  name: "ZoomIn",
222
222
  __name: "zoom-in",
223
223
  setup(o) {
224
- return (a, r) => (N(), W("svg", {
224
+ return (a, r) => (M(), j("svg", {
225
225
  xmlns: "http://www.w3.org/2000/svg",
226
226
  viewBox: "0 0 1024 1024"
227
227
  }, [
228
- j("path", {
228
+ W("path", {
229
229
  fill: "currentColor",
230
230
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"
231
231
  })
@@ -235,11 +235,11 @@ var Tr = /* @__PURE__ */ Q({
235
235
  name: "ZoomOut",
236
236
  __name: "zoom-out",
237
237
  setup(o) {
238
- return (a, r) => (N(), W("svg", {
238
+ return (a, r) => (M(), j("svg", {
239
239
  xmlns: "http://www.w3.org/2000/svg",
240
240
  viewBox: "0 0 1024 1024"
241
241
  }, [
242
- j("path", {
242
+ W("path", {
243
243
  fill: "currentColor",
244
244
  d: "m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"
245
245
  })
@@ -307,7 +307,7 @@ const ui = (o, a) => {
307
307
  "flv",
308
308
  "tls"
309
309
  ], Vr = (o) => {
310
- const a = it("loadUrl"), r = J(() => o.loadUrl || o.fileUrl || (a == null ? void 0 : a.value)), t = it("uploadUrl"), e = J(() => o.action || o.uploadUrl || (t == null ? void 0 : t.value)), i = it("token"), n = J(() => o.token || (i == null ? void 0 : i.value)), s = it("onlyofficeConfig"), l = J(() => o.onlyofficeConfig || (s == null ? void 0 : s.value)), u = it("userInfo"), c = J(() => o.userInfo || (u == null ? void 0 : u.value)), f = [...Oi, ...Oi.map((d) => d.toLocaleUpperCase())];
310
+ const a = tt("loadUrl"), r = J(() => o.loadUrl || o.fileUrl || (a == null ? void 0 : a.value)), t = tt("uploadUrl"), e = J(() => o.action || o.uploadUrl || (t == null ? void 0 : t.value)), i = tt("token"), n = J(() => o.token || (i == null ? void 0 : i.value)), s = tt("onlyofficeConfig"), l = J(() => o.onlyofficeConfig || (s == null ? void 0 : s.value)), u = tt("userInfo"), c = J(() => o.userInfo || (u == null ? void 0 : u.value)), f = [...Oi, ...Oi.map((d) => d.toLocaleUpperCase())];
311
311
  return {
312
312
  cLoadUrl: r,
313
313
  cUploadUrl: e,
@@ -348,7 +348,8 @@ const ui = (o, a) => {
348
348
  title: {},
349
349
  type: { default: "primary" },
350
350
  warning: { type: Boolean },
351
- width: {}
351
+ width: {},
352
+ iconClass: { default: "" }
352
353
  },
353
354
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
354
355
  setup(o, { emit: a }) {
@@ -371,7 +372,6 @@ const ui = (o, a) => {
371
372
  }
372
373
  t.value.rotate && f.push(`rotate(${t.value.rotate % 360}deg)`);
373
374
  const d = {
374
- pointerEvents: t.value.disabled ? "none" : "auto",
375
375
  ...t.value.color && { color: t.value.color },
376
376
  ...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
377
377
  ...f.length && { transform: f.join(" ") },
@@ -392,155 +392,131 @@ const ui = (o, a) => {
392
392
  n("dblclick", f);
393
393
  };
394
394
  return (f, d) => {
395
- const g = pt("el-tooltip"), p = pt("el-button");
396
- return t.value.tableIconType === "icon" || !t.value.tableIconType ? (N(), W(
397
- vt,
398
- { key: 0 },
395
+ const g = vt("el-tooltip"), p = vt("el-button");
396
+ return M(), j(
397
+ "i",
398
+ {
399
+ class: $(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
400
+ [f.iconClass]: !0,
401
+ [f.name]: e.value === "unocss",
402
+ "show-bg": t.value.showBg || t.value.bg,
403
+ default: t.value.size === "default",
404
+ small: t.value.size === "small",
405
+ big: t.value.size === "big",
406
+ warning: t.value.warning || t.value.type === "warning",
407
+ primary: t.value.primary || t.value.type === "primary",
408
+ success: f.success || t.value.type === "success",
409
+ error: t.value.error || t.value.type === "error",
410
+ active: t.value.active,
411
+ disabled: t.value.disabled
412
+ }]),
413
+ style: rt(i.value),
414
+ onClick: s,
415
+ onDblclick: c,
416
+ onMouseenter: l,
417
+ onMouseleave: u
418
+ },
399
419
  [
400
- t.value.notip || !t.value.title ? (N(), W(
401
- "i",
402
- {
403
- key: 0,
404
- class: Y(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
405
- [f.name]: e.value === "unocss",
406
- "show-bg": t.value.showBg || t.value.bg,
407
- default: t.value.size === "default",
408
- small: t.value.size === "small",
409
- big: t.value.size === "big",
410
- warning: t.value.warning || t.value.type === "warning",
411
- primary: t.value.primary || t.value.type === "primary",
412
- success: f.success || t.value.type === "success",
413
- error: t.value.error || t.value.type === "error",
414
- active: t.value.active,
415
- disabled: t.value.disabled
416
- }]),
417
- style: _e(i.value),
418
- onClick: s,
419
- onDblclick: c,
420
- onMouseenter: l,
421
- onMouseleave: u
422
- },
420
+ t.value.tableIconType === "icon" || !t.value.tableIconType ? (M(), j(
421
+ st,
422
+ { key: 0 },
423
423
  [
424
- e.value === "iksig" ? (N(), W(
425
- "i",
426
- {
427
- key: 0,
428
- class: Y(`iksig ${t.value.name}`),
429
- style: _e(i.value)
430
- },
431
- null,
432
- 6
433
- /* CLASS, STYLE */
434
- )) : e.value === "svg" ? (N(), W("svg", zr, [
435
- j("use", {
436
- "xlink:href": `#${t.value.name}`
437
- }, null, 8, jr)
438
- ])) : e.value === "img" ? (N(), W("img", {
439
- key: 2,
440
- src: t.value.name,
441
- class: "h-[1em] w-[1em]"
442
- }, null, 8, Wr)) : (N(), W(
443
- "i",
444
- {
445
- key: 3,
446
- class: Y(t.value.name),
447
- style: _e(i.value)
448
- },
449
- null,
450
- 6
451
- /* CLASS, STYLE */
452
- ))
453
- ],
454
- 38
455
- /* CLASS, STYLE, NEED_HYDRATION */
456
- )) : (N(), Re(g, {
457
- key: 1,
458
- content: t.value.title,
459
- placement: "top",
460
- "popper-class": "ik-svg-icon-tooltip",
461
- "hide-after": 0
462
- }, {
463
- default: Z(() => [
464
- j(
465
- "i",
466
- {
467
- class: Y(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
468
- [f.name]: e.value === "unocss",
469
- "show-bg": t.value.showBg || t.value.bg,
470
- default: t.value.size === "default",
471
- small: t.value.size === "small",
472
- big: t.value.size === "big",
473
- warning: t.value.warning || t.value.type === "warning",
474
- primary: f.primary || t.value.type === "primary",
475
- success: f.success || t.value.type === "success",
476
- error: t.value.error || t.value.type === "error",
477
- active: t.value.active,
478
- disabled: t.value.disabled
479
- }]),
480
- style: _e(i.value),
481
- onClick: s,
482
- onDblclick: c,
483
- onMouseenter: l,
484
- onMouseleave: u
485
- },
424
+ t.value.notip || !t.value.title ? (M(), j(
425
+ st,
426
+ { key: 0 },
486
427
  [
487
- e.value === "iksig" ? (N(), W(
428
+ e.value === "iksig" ? (M(), j(
488
429
  "i",
489
430
  {
490
431
  key: 0,
491
- class: Y(`iksig ${t.value.name}`),
492
- style: _e(i.value)
432
+ class: $(`iksig ${t.value.name}`)
493
433
  },
494
434
  null,
495
- 6
496
- /* CLASS, STYLE */
497
- )) : e.value === "svg" ? (N(), W("svg", Gr, [
498
- j("use", {
435
+ 2
436
+ /* CLASS */
437
+ )) : e.value === "svg" ? (M(), j("svg", zr, [
438
+ W("use", {
499
439
  "xlink:href": `#${t.value.name}`
500
- }, null, 8, Kr)
501
- ])) : e.value === "img" ? (N(), W("img", {
440
+ }, null, 8, jr)
441
+ ])) : e.value === "img" ? (M(), j("img", {
502
442
  key: 2,
503
443
  src: t.value.name,
504
444
  class: "h-[1em] w-[1em]"
505
- }, null, 8, Yr)) : (N(), W(
445
+ }, null, 8, Wr)) : (M(), j(
506
446
  "i",
507
447
  {
508
448
  key: 3,
509
- class: Y(t.value.name),
510
- style: _e(i.value)
449
+ class: $(t.value.name)
511
450
  },
512
451
  null,
513
- 6
514
- /* CLASS, STYLE */
452
+ 2
453
+ /* CLASS */
515
454
  ))
516
455
  ],
517
- 38
518
- /* CLASS, STYLE, NEED_HYDRATION */
456
+ 64
457
+ /* STABLE_FRAGMENT */
458
+ )) : (M(), De(g, {
459
+ key: 1,
460
+ content: t.value.title,
461
+ placement: "top",
462
+ "popper-class": "ik-svg-icon-tooltip",
463
+ "hide-after": 0
464
+ }, {
465
+ default: Z(() => [
466
+ e.value === "iksig" ? (M(), j(
467
+ "i",
468
+ {
469
+ key: 0,
470
+ class: $(`iksig ${t.value.name}`)
471
+ },
472
+ null,
473
+ 2
474
+ /* CLASS */
475
+ )) : e.value === "svg" ? (M(), j("svg", Gr, [
476
+ W("use", {
477
+ "xlink:href": `#${t.value.name}`
478
+ }, null, 8, Kr)
479
+ ])) : e.value === "img" ? (M(), j("img", {
480
+ key: 2,
481
+ src: t.value.name,
482
+ class: "h-[1em] w-[1em]"
483
+ }, null, 8, Yr)) : (M(), j(
484
+ "i",
485
+ {
486
+ key: 3,
487
+ class: $(t.value.name)
488
+ },
489
+ null,
490
+ 2
491
+ /* CLASS */
492
+ ))
493
+ ]),
494
+ _: 1
495
+ /* STABLE */
496
+ }, 8, ["content"]))
497
+ ],
498
+ 64
499
+ /* STABLE_FRAGMENT */
500
+ )) : (M(), De(p, bn({ key: 1 }, f.$attrs, {
501
+ type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
502
+ }), {
503
+ default: Z(() => [
504
+ Jt(
505
+ Qt(t.value.title),
506
+ 1
507
+ /* TEXT */
519
508
  )
520
509
  ]),
521
510
  _: 1
522
511
  /* STABLE */
523
- }, 8, ["content"]))
512
+ }, 16, ["type"]))
524
513
  ],
525
- 64
526
- /* STABLE_FRAGMENT */
527
- )) : (N(), Re(p, {
528
- key: 1,
529
- type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
530
- }, {
531
- default: Z(() => [
532
- Jt(
533
- Qt(t.value.title),
534
- 1
535
- /* TEXT */
536
- )
537
- ]),
538
- _: 1
539
- /* STABLE */
540
- }, 8, ["type"]));
514
+ 38
515
+ /* CLASS, STYLE, NEED_HYDRATION */
516
+ );
541
517
  };
542
518
  }
543
- }), Xr = /* @__PURE__ */ ui($r, [["__scopeId", "data-v-6889f3aa"]]), xn = Qe(Xr);
519
+ }), Xr = /* @__PURE__ */ ui($r, [["__scopeId", "data-v-2648e369"]]), In = Je(Xr);
544
520
  function ci(o) {
545
521
  return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
546
522
  }
@@ -557,13 +533,13 @@ const qr = /* @__PURE__ */ Q({
557
533
  }
558
534
  },
559
535
  setup(o) {
560
- return (a, r) => (N(), W(
536
+ return (a, r) => (M(), j(
561
537
  "div",
562
538
  {
563
- class: Y({ "exit-main-page-maximize": o.showBg && o.fullscreen })
539
+ class: $({ "exit-main-page-maximize": o.showBg && o.fullscreen })
564
540
  },
565
541
  [
566
- K(P(xn), {
542
+ K(P(In), {
567
543
  name: "iksvg_guanbi",
568
544
  title: "关闭",
569
545
  size: 20
@@ -594,19 +570,19 @@ const qr = /* @__PURE__ */ Q({
594
570
  }),
595
571
  emits: ["update:modelValue"],
596
572
  setup(o) {
597
- const a = o, r = oi(o, "modelValue"), t = Ce(a.fullscreen), e = () => {
573
+ const a = o, r = oi(o, "modelValue"), t = _e(a.fullscreen), e = () => {
598
574
  t.value = !t.value;
599
575
  }, i = Q({
600
576
  setup() {
601
- return () => sr(Zr, {
577
+ return () => ar(Zr, {
602
578
  showBg: a.showCloseBg,
603
579
  fullscreen: a.fullscreen
604
580
  });
605
581
  }
606
582
  });
607
583
  return (n, s) => {
608
- const l = pt("el-dialog");
609
- return N(), Re(l, ar({
584
+ const l = vt("el-dialog");
585
+ return M(), De(l, bn({
610
586
  modelValue: r.value,
611
587
  "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
612
588
  "align-center": ""
@@ -617,7 +593,7 @@ const qr = /* @__PURE__ */ Q({
617
593
  "modal-class": "baseDialog"
618
594
  }), or({
619
595
  icon: Z(() => [
620
- Ze(n.$slots, "title", {}, () => [
596
+ qe(n.$slots, "title", {}, () => [
621
597
  Jt(
622
598
  Qt(n.title),
623
599
  1
@@ -626,8 +602,8 @@ const qr = /* @__PURE__ */ Q({
626
602
  ])
627
603
  ]),
628
604
  header: Z(() => [
629
- j("div", Jr, [
630
- Ze(n.$slots, "header", {}, () => [
605
+ W("div", Jr, [
606
+ qe(n.$slots, "header", {}, () => [
631
607
  Jt(
632
608
  Qt(n.title),
633
609
  1
@@ -635,7 +611,7 @@ const qr = /* @__PURE__ */ Q({
635
611
  )
636
612
  ])
637
613
  ]),
638
- n.$attrs.showClose ? (N(), Re(P(xn), {
614
+ n.$attrs.showClose ? (M(), De(P(In), {
639
615
  key: 0,
640
616
  onClick: e,
641
617
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -644,7 +620,7 @@ const qr = /* @__PURE__ */ Q({
644
620
  }, null, 8, ["name", "title"])) : ue("v-if", !0)
645
621
  ]),
646
622
  default: Z(() => [
647
- Ze(n.$slots, "default")
623
+ qe(n.$slots, "default")
648
624
  ]),
649
625
  _: 2
650
626
  /* DYNAMIC */
@@ -652,14 +628,14 @@ const qr = /* @__PURE__ */ Q({
652
628
  n.$slots.footer ? {
653
629
  name: "footer",
654
630
  fn: Z(() => [
655
- Ze(n.$slots, "footer")
631
+ qe(n.$slots, "footer")
656
632
  ]),
657
633
  key: "0"
658
634
  } : void 0
659
635
  ]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
660
636
  };
661
637
  }
662
- }), es = Qe(Qr);
638
+ }), es = Je(Qr);
663
639
  function ts(o, a, r, t) {
664
640
  function e(i) {
665
641
  return i instanceof r ? i : new r(function(n) {
@@ -953,7 +929,7 @@ var ns = function(o, a) {
953
929
  });
954
930
  const rs = ["id"];
955
931
  function ss(o, a, r, t, e, i) {
956
- return N(), W("div", { id: o.id }, null, 8, rs);
932
+ return M(), j("div", { id: o.id }, null, 8, rs);
957
933
  }
958
934
  fi.render = ss;
959
935
  fi.__file = "src/components/DocumentEditor.vue";
@@ -978,7 +954,7 @@ const as = /* @__PURE__ */ Q({
978
954
  }
979
955
  },
980
956
  setup(o) {
981
- const a = o, r = Ce({
957
+ const a = o, r = _e({
982
958
  width: "100%",
983
959
  height: "100%",
984
960
  ...a.configOptions || {},
@@ -986,10 +962,10 @@ const as = /* @__PURE__ */ Q({
986
962
  }), t = () => {
987
963
  console.info("文档加载完成", a.configOptions);
988
964
  };
989
- return (e, i) => (N(), W(
965
+ return (e, i) => (M(), j(
990
966
  "div",
991
967
  {
992
- style: _e({ height: a.officeHeight })
968
+ style: rt({ height: a.officeHeight })
993
969
  },
994
970
  [
995
971
  K(P(fi), {
@@ -1004,12 +980,12 @@ const as = /* @__PURE__ */ Q({
1004
980
  /* STYLE */
1005
981
  ));
1006
982
  }
1007
- }), os = Qe(as);
983
+ }), os = Je(as);
1008
984
  var Ni;
1009
- const In = typeof window < "u", ls = (o) => typeof o == "string", us = () => {
985
+ const Pn = typeof window < "u", ls = (o) => typeof o == "string", us = () => {
1010
986
  };
1011
- In && ((Ni = window == null ? void 0 : window.navigator) != null && Ni.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1012
- function Pn(o) {
987
+ Pn && ((Ni = window == null ? void 0 : window.navigator) != null && Ni.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
988
+ function An(o) {
1013
989
  return typeof o == "function" ? o() : P(o);
1014
990
  }
1015
991
  function cs(o) {
@@ -1020,18 +996,18 @@ function fs(o) {
1020
996
  }
1021
997
  function hs(o) {
1022
998
  var a;
1023
- const r = Pn(o);
999
+ const r = An(o);
1024
1000
  return (a = r == null ? void 0 : r.$el) != null ? a : r;
1025
1001
  }
1026
- const ds = In ? window : void 0;
1027
- function ut(...o) {
1002
+ const ds = Pn ? window : void 0;
1003
+ function ct(...o) {
1028
1004
  let a, r, t, e;
1029
1005
  if (ls(o[0]) || Array.isArray(o[0]) ? ([r, t, e] = o, a = ds) : [a, r, t, e] = o, !a)
1030
1006
  return us;
1031
1007
  Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
1032
1008
  const i = [], n = () => {
1033
1009
  i.forEach((c) => c()), i.length = 0;
1034
- }, s = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), l = st(() => [hs(a), Pn(e)], ([c, f]) => {
1010
+ }, s = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), l = at(() => [hs(a), An(e)], ([c, f]) => {
1035
1011
  n(), c && i.push(...r.flatMap((d) => t.map((g) => s(c, d, g, f))));
1036
1012
  }, { immediate: !0, flush: "post" }), u = () => {
1037
1013
  l(), n();
@@ -1170,13 +1146,13 @@ const _s = {
1170
1146
  name: "original",
1171
1147
  icon: Ai(Nr)
1172
1148
  }
1173
- }, i = o, n = r, { t: s } = Cr(), l = En("image-viewer"), { nextZIndex: u } = kr(), c = Ce(), f = Ce([]), d = cr(), g = Ce(!0), p = Ce(i.initialIndex), m = fr(e.CONTAIN), y = Ce({
1149
+ }, i = o, n = r, { t: s } = Cr(), l = Sn("image-viewer"), { nextZIndex: u } = kr(), c = _e(), f = _e([]), d = cr(), g = _e(!0), p = _e(i.initialIndex), m = fr(e.CONTAIN), y = _e({
1174
1150
  scale: 1,
1175
1151
  deg: 0,
1176
1152
  offsetX: 0,
1177
1153
  offsetY: 0,
1178
1154
  enableTransition: !1
1179
- }), k = Ce(i.zIndex ?? u()), w = J(() => {
1155
+ }), k = _e(i.zIndex ?? u()), w = J(() => {
1180
1156
  const { urlList: D } = i;
1181
1157
  return D.length <= 1;
1182
1158
  }), b = J(() => p.value === 0), B = J(() => p.value === i.urlList.length - 1), O = J(() => i.urlList[p.value]), z = J(() => [
@@ -1188,12 +1164,12 @@ const _s = {
1188
1164
  l.e("next"),
1189
1165
  l.is("disabled", !i.infinite && B.value)
1190
1166
  ]), ee = J(() => {
1191
- const { scale: D, deg: V, offsetX: $, offsetY: he, enableTransition: pe } = y.value;
1192
- let ve = $ / D, Ie = he / D;
1193
- const tt = V * Math.PI / 180, Ii = Math.cos(tt), Pi = Math.sin(tt);
1194
- ve = ve * Ii + Ie * Pi, Ie = Ie * Ii - $ / D * Pi;
1167
+ const { scale: D, deg: V, offsetX: Y, offsetY: he, enableTransition: pe } = y.value;
1168
+ let ve = Y / D, xe = he / D;
1169
+ const et = V * Math.PI / 180, Ii = Math.cos(et), Pi = Math.sin(et);
1170
+ ve = ve * Ii + xe * Pi, xe = xe * Ii - Y / D * Pi;
1195
1171
  const Ot = {
1196
- transform: `scale(${D}) rotate(${V}deg) translate(${ve}px, ${Ie}px)`,
1172
+ transform: `scale(${D}) rotate(${V}deg) translate(${ve}px, ${xe}px)`,
1197
1173
  transition: pe ? "transform .3s" : ""
1198
1174
  };
1199
1175
  return m.value.name === e.CONTAIN.name && (Ot.maxWidth = Ot.maxHeight = "100%"), Ot;
@@ -1202,42 +1178,42 @@ const _s = {
1202
1178
  ie(), n("close");
1203
1179
  }
1204
1180
  function F() {
1205
- const D = Mt.throttle(($) => {
1206
- switch ($.code) {
1181
+ const D = Mt.throttle((Y) => {
1182
+ switch (Y.code) {
1207
1183
  // ESC
1208
- case We.esc:
1184
+ case je.esc:
1209
1185
  i.closeOnPressEscape && q();
1210
1186
  break;
1211
1187
  // SPACE
1212
- case We.space:
1188
+ case je.space:
1213
1189
  Ei();
1214
1190
  break;
1215
1191
  // LEFT_ARROW
1216
- case We.left:
1192
+ case je.left:
1217
1193
  Si();
1218
1194
  break;
1219
1195
  // UP_ARROW
1220
- case We.up:
1221
- Fe("zoomIn");
1196
+ case je.up:
1197
+ Ne("zoomIn");
1222
1198
  break;
1223
1199
  // RIGHT_ARROW
1224
- case We.right:
1200
+ case je.right:
1225
1201
  xi();
1226
1202
  break;
1227
1203
  // DOWN_ARROW
1228
- case We.down:
1229
- Fe("zoomOut");
1204
+ case je.down:
1205
+ Ne("zoomOut");
1230
1206
  break;
1231
1207
  }
1232
- }), V = Mt.throttle(($) => {
1233
- const he = $.deltaY || $.deltaX;
1234
- Fe(he < 0 ? "zoomIn" : "zoomOut", {
1208
+ }), V = Mt.throttle((Y) => {
1209
+ const he = Y.deltaY || Y.deltaX;
1210
+ Ne(he < 0 ? "zoomIn" : "zoomOut", {
1235
1211
  zoomRate: i.zoomRate,
1236
1212
  enableTransition: !1
1237
1213
  });
1238
1214
  });
1239
1215
  d.run(() => {
1240
- ut(document, "keydown", D), ut(document, "wheel", V);
1216
+ ct(document, "keydown", D), ct(document, "wheel", V);
1241
1217
  });
1242
1218
  }
1243
1219
  function ie() {
@@ -1249,18 +1225,18 @@ const _s = {
1249
1225
  function oe(D) {
1250
1226
  g.value = !1, D.target.alt = s("el.image.error");
1251
1227
  }
1252
- function be(D) {
1228
+ function ke(D) {
1253
1229
  if (g.value || D.button !== 0 || !c.value) return;
1254
1230
  y.value.enableTransition = !1;
1255
- const { offsetX: V, offsetY: $ } = y.value, he = D.pageX, pe = D.pageY, ve = Mt.throttle((tt) => {
1231
+ const { offsetX: V, offsetY: Y } = y.value, he = D.pageX, pe = D.pageY, ve = Mt.throttle((et) => {
1256
1232
  y.value = {
1257
1233
  ...y.value,
1258
- offsetX: V + tt.pageX - he,
1259
- offsetY: $ + tt.pageY - pe
1234
+ offsetX: V + et.pageX - he,
1235
+ offsetY: Y + et.pageY - pe
1260
1236
  };
1261
- }), Ie = ut(document, "mousemove", ve);
1262
- ut(document, "mouseup", () => {
1263
- Ie();
1237
+ }), xe = ct(document, "mousemove", ve);
1238
+ ct(document, "mouseup", () => {
1239
+ xe();
1264
1240
  }), D.preventDefault();
1265
1241
  }
1266
1242
  function Ti() {
@@ -1274,7 +1250,7 @@ const _s = {
1274
1250
  }
1275
1251
  function Ei() {
1276
1252
  if (g.value) return;
1277
- const D = t(e), V = Object.values(e), $ = m.value.name, pe = ((V == null ? void 0 : V.findIndex((ve) => ve.name === $)) + 1) % D.length;
1253
+ const D = t(e), V = Object.values(e), Y = m.value.name, pe = ((V == null ? void 0 : V.findIndex((ve) => ve.name === Y)) + 1) % D.length;
1278
1254
  m.value = e[D[pe]], Ti();
1279
1255
  }
1280
1256
  function Rt(D) {
@@ -1287,9 +1263,9 @@ const _s = {
1287
1263
  function xi() {
1288
1264
  B.value && !i.infinite || Rt(p.value + 1);
1289
1265
  }
1290
- function Fe(D, V = {}) {
1266
+ function Ne(D, V = {}) {
1291
1267
  if (g.value) return;
1292
- const { minScale: $, maxScale: he } = i, { zoomRate: pe, rotateDeg: ve, enableTransition: Ie } = {
1268
+ const { minScale: Y, maxScale: he } = i, { zoomRate: pe, rotateDeg: ve, enableTransition: xe } = {
1293
1269
  zoomRate: i.zoomRate,
1294
1270
  rotateDeg: 90,
1295
1271
  enableTransition: !0,
@@ -1297,7 +1273,7 @@ const _s = {
1297
1273
  };
1298
1274
  switch (D) {
1299
1275
  case "zoomOut":
1300
- y.value.scale > $ && (y.value.scale = Number.parseFloat(
1276
+ y.value.scale > Y && (y.value.scale = Number.parseFloat(
1301
1277
  (y.value.scale / pe).toFixed(3)
1302
1278
  ));
1303
1279
  break;
@@ -1313,14 +1289,14 @@ const _s = {
1313
1289
  y.value.deg -= ve, n("rotate", y.value.deg);
1314
1290
  break;
1315
1291
  }
1316
- y.value.enableTransition = Ie;
1292
+ y.value.enableTransition = xe;
1317
1293
  }
1318
- return st(O, () => {
1294
+ return at(O, () => {
1319
1295
  li(() => {
1320
1296
  const D = f.value[0];
1321
1297
  D != null && D.complete || (g.value = !0);
1322
1298
  });
1323
- }), st(p, (D) => {
1299
+ }), at(p, (D) => {
1324
1300
  Ti(), n("switch", D);
1325
1301
  }), hr(() => {
1326
1302
  var D, V;
@@ -1330,43 +1306,43 @@ const _s = {
1330
1306
  * @description manually switch image
1331
1307
  */
1332
1308
  setActiveItem: Rt
1333
- }), (D, V) => (N(), Re(bn, { to: "body" }, [
1334
- K(wn, {
1309
+ }), (D, V) => (M(), De(wn, { to: "body" }, [
1310
+ K(Tn, {
1335
1311
  name: "viewer-fade",
1336
1312
  appear: ""
1337
1313
  }, {
1338
1314
  default: Z(() => [
1339
- j(
1315
+ W(
1340
1316
  "div",
1341
1317
  {
1342
1318
  ref_key: "wrapper",
1343
1319
  ref: c,
1344
1320
  tabindex: -1,
1345
- class: Y(P(l).e("wrapper")),
1346
- style: _e({ zIndex: k.value })
1321
+ class: $(P(l).e("wrapper")),
1322
+ style: rt({ zIndex: k.value })
1347
1323
  },
1348
1324
  [
1349
- j(
1325
+ W(
1350
1326
  "div",
1351
1327
  {
1352
- class: Y(P(l).e("mask")),
1353
- onClick: V[0] || (V[0] = dr(($) => D.hideOnClickModal && q(), ["self"]))
1328
+ class: $(P(l).e("mask")),
1329
+ onClick: V[0] || (V[0] = dr((Y) => D.hideOnClickModal && q(), ["self"]))
1354
1330
  },
1355
1331
  null,
1356
1332
  2
1357
1333
  /* CLASS */
1358
1334
  ),
1359
1335
  ue(" CLOSE "),
1360
- j(
1336
+ W(
1361
1337
  "span",
1362
1338
  {
1363
- class: Y([P(l).e("btn"), P(l).e("close")]),
1339
+ class: $([P(l).e("btn"), P(l).e("close")]),
1364
1340
  onClick: q
1365
1341
  },
1366
1342
  [
1367
- K(P(Pe), null, {
1343
+ K(P(Ie), null, {
1368
1344
  default: Z(() => [
1369
- K(P(Sn))
1345
+ K(P(xn))
1370
1346
  ]),
1371
1347
  _: 1
1372
1348
  /* STABLE */
@@ -1376,18 +1352,18 @@ const _s = {
1376
1352
  /* CLASS */
1377
1353
  ),
1378
1354
  ue(" ARROW "),
1379
- w.value ? ue("v-if", !0) : (N(), W(
1380
- vt,
1355
+ w.value ? ue("v-if", !0) : (M(), j(
1356
+ st,
1381
1357
  { key: 0 },
1382
1358
  [
1383
- j(
1359
+ W(
1384
1360
  "span",
1385
1361
  {
1386
- class: Y(z.value),
1362
+ class: $(z.value),
1387
1363
  onClick: Si
1388
1364
  },
1389
1365
  [
1390
- K(P(Pe), null, {
1366
+ K(P(Ie), null, {
1391
1367
  default: Z(() => [
1392
1368
  K(P(Er))
1393
1369
  ]),
@@ -1398,14 +1374,14 @@ const _s = {
1398
1374
  2
1399
1375
  /* CLASS */
1400
1376
  ),
1401
- j(
1377
+ W(
1402
1378
  "span",
1403
1379
  {
1404
- class: Y(L.value),
1380
+ class: $(L.value),
1405
1381
  onClick: xi
1406
1382
  },
1407
1383
  [
1408
- K(P(Pe), null, {
1384
+ K(P(Ie), null, {
1409
1385
  default: Z(() => [
1410
1386
  K(P(xr))
1411
1387
  ]),
@@ -1421,20 +1397,20 @@ const _s = {
1421
1397
  /* STABLE_FRAGMENT */
1422
1398
  )),
1423
1399
  ue(" ACTIONS "),
1424
- j(
1400
+ W(
1425
1401
  "div",
1426
1402
  {
1427
- class: Y([P(l).e("btn"), P(l).e("actions")])
1403
+ class: $([P(l).e("btn"), P(l).e("actions")])
1428
1404
  },
1429
1405
  [
1430
- j(
1406
+ W(
1431
1407
  "div",
1432
1408
  {
1433
- class: Y(P(l).e("actions__inner"))
1409
+ class: $(P(l).e("actions__inner"))
1434
1410
  },
1435
1411
  [
1436
- K(P(Pe), {
1437
- onClick: V[1] || (V[1] = ($) => Fe("zoomOut"))
1412
+ K(P(Ie), {
1413
+ onClick: V[1] || (V[1] = (Y) => Ne("zoomOut"))
1438
1414
  }, {
1439
1415
  default: Z(() => [
1440
1416
  K(P(Ur))
@@ -1442,8 +1418,8 @@ const _s = {
1442
1418
  _: 1
1443
1419
  /* STABLE */
1444
1420
  }),
1445
- K(P(Pe), {
1446
- onClick: V[2] || (V[2] = ($) => Fe("zoomIn"))
1421
+ K(P(Ie), {
1422
+ onClick: V[2] || (V[2] = (Y) => Ne("zoomIn"))
1447
1423
  }, {
1448
1424
  default: Z(() => [
1449
1425
  K(P(Br))
@@ -1451,33 +1427,33 @@ const _s = {
1451
1427
  _: 1
1452
1428
  /* STABLE */
1453
1429
  }),
1454
- j(
1430
+ W(
1455
1431
  "i",
1456
1432
  {
1457
- class: Y(P(l).e("actions__divider"))
1433
+ class: $(P(l).e("actions__divider"))
1458
1434
  },
1459
1435
  null,
1460
1436
  2
1461
1437
  /* CLASS */
1462
1438
  ),
1463
- K(P(Pe), { onClick: Ei }, {
1439
+ K(P(Ie), { onClick: Ei }, {
1464
1440
  default: Z(() => [
1465
- (N(), Re(gr(m.value.icon)))
1441
+ (M(), De(gr(m.value.icon)))
1466
1442
  ]),
1467
1443
  _: 1
1468
1444
  /* STABLE */
1469
1445
  }),
1470
- j(
1446
+ W(
1471
1447
  "i",
1472
1448
  {
1473
- class: Y(P(l).e("actions__divider"))
1449
+ class: $(P(l).e("actions__divider"))
1474
1450
  },
1475
1451
  null,
1476
1452
  2
1477
1453
  /* CLASS */
1478
1454
  ),
1479
- K(P(Pe), {
1480
- onClick: V[3] || (V[3] = ($) => Fe("anticlockwise"))
1455
+ K(P(Ie), {
1456
+ onClick: V[3] || (V[3] = (Y) => Ne("anticlockwise"))
1481
1457
  }, {
1482
1458
  default: Z(() => [
1483
1459
  K(P(Dr))
@@ -1485,8 +1461,8 @@ const _s = {
1485
1461
  _: 1
1486
1462
  /* STABLE */
1487
1463
  }),
1488
- K(P(Pe), {
1489
- onClick: V[4] || (V[4] = ($) => Fe("clockwise"))
1464
+ K(P(Ie), {
1465
+ onClick: V[4] || (V[4] = (Y) => Ne("clockwise"))
1490
1466
  }, {
1491
1467
  default: Z(() => [
1492
1468
  K(P(Or))
@@ -1503,26 +1479,26 @@ const _s = {
1503
1479
  /* CLASS */
1504
1480
  ),
1505
1481
  ue(" CANVAS "),
1506
- j(
1482
+ W(
1507
1483
  "div",
1508
1484
  {
1509
- class: Y(P(l).e("canvas"))
1485
+ class: $(P(l).e("canvas"))
1510
1486
  },
1511
1487
  [
1512
- (N(!0), W(
1513
- vt,
1488
+ (M(!0), j(
1489
+ st,
1514
1490
  null,
1515
- pr(D.urlList, ($, he) => vr((N(), W("img", {
1491
+ pr(D.urlList, (Y, he) => vr((M(), j("img", {
1516
1492
  ref_for: !0,
1517
1493
  ref: (pe) => f.value[he] = pe,
1518
- key: $,
1519
- src: $,
1520
- style: _e(ee.value),
1521
- class: Y(P(l).e("img")),
1494
+ key: Y,
1495
+ src: Y,
1496
+ style: rt(ee.value),
1497
+ class: $(P(l).e("img")),
1522
1498
  crossorigin: D.crossorigin,
1523
1499
  onLoad: ae,
1524
1500
  onError: oe,
1525
- onMousedown: be
1501
+ onMousedown: ke
1526
1502
  }, null, 46, ks)), [
1527
1503
  [mr, he === p.value]
1528
1504
  ])),
@@ -1533,7 +1509,7 @@ const _s = {
1533
1509
  2
1534
1510
  /* CLASS */
1535
1511
  ),
1536
- Ze(D.$slots, "default")
1512
+ qe(D.$slots, "default")
1537
1513
  ],
1538
1514
  6
1539
1515
  /* CLASS, STYLE */
@@ -1544,7 +1520,7 @@ const _s = {
1544
1520
  })
1545
1521
  ]));
1546
1522
  }
1547
- }), ws = Qe(bs);
1523
+ }), ws = Je(bs);
1548
1524
  function zi(o, a) {
1549
1525
  var r = Object.keys(o);
1550
1526
  if (Object.getOwnPropertySymbols) {
@@ -1581,7 +1557,7 @@ function T(o, a) {
1581
1557
  function ji(o, a) {
1582
1558
  for (var r = 0; r < a.length; r++) {
1583
1559
  var t = a[r];
1584
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(o, An(t.key), t);
1560
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(o, Ln(t.key), t);
1585
1561
  }
1586
1562
  }
1587
1563
  function E(o, a, r) {
@@ -1590,7 +1566,7 @@ function E(o, a, r) {
1590
1566
  }), o;
1591
1567
  }
1592
1568
  function _(o, a, r) {
1593
- return a = An(a), a in o ? Object.defineProperty(o, a, {
1569
+ return a = Ln(a), a in o ? Object.defineProperty(o, a, {
1594
1570
  value: r,
1595
1571
  enumerable: !0,
1596
1572
  configurable: !0,
@@ -1714,7 +1690,7 @@ function As(o, a) {
1714
1690
  }
1715
1691
  return (a === "string" ? String : Number)(o);
1716
1692
  }
1717
- function An(o) {
1693
+ function Ln(o) {
1718
1694
  var a = As(o, "string");
1719
1695
  return typeof a == "symbol" ? a : String(a);
1720
1696
  }
@@ -1825,13 +1801,13 @@ function Ls() {
1825
1801
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, o.exports = s;
1826
1802
  }(Nt)), Nt.exports;
1827
1803
  }
1828
- var Ln = Ls();
1829
- const Dn = /* @__PURE__ */ ci(Ln);
1804
+ var Dn = Ls();
1805
+ const Rn = /* @__PURE__ */ ci(Dn);
1830
1806
  var Ds = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Ft = {
1831
1807
  info: "color: #525252; background-color: #90ee90;",
1832
1808
  error: "color: #525252; background-color: red;",
1833
1809
  warn: "color: #525252; background-color: yellow; "
1834
- }, Bt = "%c[xgplayer]", M = {
1810
+ }, Bt = "%c[xgplayer]", N = {
1835
1811
  config: {
1836
1812
  debug: Ds ? 3 : 0
1837
1813
  },
@@ -1855,7 +1831,7 @@ var Ds = typeof window < "u" && window.location && window.location.href.indexOf(
1855
1831
  }
1856
1832
  };
1857
1833
  function Rs(o) {
1858
- o.logInfo = M.logInfo.bind(o), o.logWarn = M.logWarn.bind(o), o.logError = M.logError.bind(o);
1834
+ o.logInfo = N.logInfo.bind(o), o.logWarn = N.logWarn.bind(o), o.logError = N.logError.bind(o);
1859
1835
  }
1860
1836
  var Os = /* @__PURE__ */ function() {
1861
1837
  function o(a) {
@@ -1895,7 +1871,7 @@ h.createDomFromHtml = function(o) {
1895
1871
  e.setAttribute(i, a[i]);
1896
1872
  }), e) : null;
1897
1873
  } catch (i) {
1898
- return M.logError("util.createDomFromHtml", i), null;
1874
+ return N.logError("util.createDomFromHtml", i), null;
1899
1875
  }
1900
1876
  };
1901
1877
  h.hasClass = function(o, a) {
@@ -1952,7 +1928,7 @@ h.findDom = function() {
1952
1928
  try {
1953
1929
  r = o.querySelector(a);
1954
1930
  } catch (t) {
1955
- M.logError("util.findDom", t), a.indexOf("#") === 0 && (r = o.getElementById(a.slice(1)));
1931
+ N.logError("util.findDom", t), a.indexOf("#") === 0 && (r = o.getElementById(a.slice(1)));
1956
1932
  }
1957
1933
  return r;
1958
1934
  };
@@ -2301,7 +2277,7 @@ h.getCurrentTimeByOffset = function(o, a) {
2301
2277
  }
2302
2278
  return o;
2303
2279
  };
2304
- function Rn(o) {
2280
+ function On(o) {
2305
2281
  var a = re(o);
2306
2282
  return o !== null && (a === "object" || a === "function");
2307
2283
  }
@@ -2309,7 +2285,7 @@ function Ns(o, a, r) {
2309
2285
  var t, e, i, n, s, l, u = 0, c = !1, f = !1, d = !0, g = !a && a !== 0 && typeof window.requestAnimationFrame == "function";
2310
2286
  if (typeof o != "function")
2311
2287
  throw new TypeError("Expected a function");
2312
- a = +a || 0, Rn(r) && (c = !!r.leading, f = "maxWait" in r, i = f ? Math.max(+r.maxWait || 0, a) : i, d = "trailing" in r ? !!r.trailing : d);
2288
+ a = +a || 0, On(r) && (c = !!r.leading, f = "maxWait" in r, i = f ? Math.max(+r.maxWait || 0, a) : i, d = "trailing" in r ? !!r.trailing : d);
2313
2289
  function p(F) {
2314
2290
  var ie = t, ae = e;
2315
2291
  return t = e = void 0, u = F, n = o.apply(ae, ie), n;
@@ -2352,8 +2328,8 @@ function Ns(o, a, r) {
2352
2328
  return s !== void 0;
2353
2329
  }
2354
2330
  function q() {
2355
- for (var F = Date.now(), ie = b(F), ae = arguments.length, oe = new Array(ae), be = 0; be < ae; be++)
2356
- oe[be] = arguments[be];
2331
+ for (var F = Date.now(), ie = b(F), ae = arguments.length, oe = new Array(ae), ke = 0; ke < ae; ke++)
2332
+ oe[ke] = arguments[ke];
2357
2333
  if (t = oe, e = this, l = F, ie) {
2358
2334
  if (s === void 0)
2359
2335
  return k(l);
@@ -2368,7 +2344,7 @@ function Fs(o, a, r) {
2368
2344
  var t = !0, e = !0;
2369
2345
  if (typeof o != "function")
2370
2346
  throw new TypeError("Expected a function");
2371
- return Rn(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Ns(o, a, {
2347
+ return On(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Ns(o, a, {
2372
2348
  leading: t,
2373
2349
  trailing: e,
2374
2350
  maxWait: a
@@ -2545,73 +2521,73 @@ var Gi = {
2545
2521
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
2546
2522
  }
2547
2523
  }
2548
- ), fe = "play", di = "playing", Ve = "ended", et = "pause", ot = "error", It = "seeking", Ee = "seeked", ce = "timeupdate", lt = "waiting", Te = "canplay", Vs = "canplaythrough", xe = "durationchange", On = "volumechange", Se = "loadeddata", zs = "loadedmetadata", Mn = "ratechange", Nn = "progress", gi = "loadstart", ze = "emptied", js = "stalled", Ws = "suspend", Gs = "abort", Ks = "bufferedChange", pi = "focus", Fn = "blur", vi = "ready", Bn = "urlNull", Ue = "autoplay_started", mi = "autoplay_was_prevented", Pt = "complete", _t = "replay", yi = "destroy", At = "urlchange", ri = "download_speed_change", Hn = "leaveplayer", Un = "enterplayer", Vn = "loading", we = "fullscreen_change", Ct = "cssFullscreen_change", kt = "mini_state_change", _i = "definition_change", Ys = "before_definition_change", si = "after_definition_change", $s = "SEI_PARSED", Xs = "retry", Oe = "video_resize", ai = "pip_change", zn = "rotate", jn = "screenShot", bt = "playnext", Wn = "shortcut", Gn = "xglog", wt = "user_action", Lt = "reset", Kn = "source_error", Yn = "source_success", qs = "switch_subtitle", $n = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Xn = {
2524
+ ), fe = "play", di = "playing", Ue = "ended", Qe = "pause", lt = "error", It = "seeking", Te = "seeked", ce = "timeupdate", ut = "waiting", we = "canplay", Vs = "canplaythrough", Se = "durationchange", Mn = "volumechange", Ee = "loadeddata", zs = "loadedmetadata", Nn = "ratechange", Fn = "progress", gi = "loadstart", Ve = "emptied", js = "stalled", Ws = "suspend", Gs = "abort", Ks = "bufferedChange", pi = "focus", Bn = "blur", vi = "ready", Hn = "urlNull", He = "autoplay_started", mi = "autoplay_was_prevented", Pt = "complete", _t = "replay", yi = "destroy", At = "urlchange", ri = "download_speed_change", Un = "leaveplayer", Vn = "enterplayer", zn = "loading", be = "fullscreen_change", Ct = "cssFullscreen_change", kt = "mini_state_change", _i = "definition_change", Ys = "before_definition_change", si = "after_definition_change", $s = "SEI_PARSED", Xs = "retry", Re = "video_resize", ai = "pip_change", jn = "rotate", Wn = "screenShot", bt = "playnext", Gn = "shortcut", Kn = "xglog", wt = "user_action", Lt = "reset", Yn = "source_error", $n = "source_success", qs = "switch_subtitle", Xn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], qn = {
2549
2525
  STATS_INFO: "stats_info",
2550
2526
  STATS_DOWNLOAD: "stats_download",
2551
2527
  STATS_RESET: "stats_reset"
2552
- }, qn = "fps_stuck";
2528
+ }, Zn = "fps_stuck";
2553
2529
  const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2554
2530
  __proto__: null,
2555
2531
  ABORT: Gs,
2556
2532
  AFTER_DEFINITION_CHANGE: si,
2557
2533
  AUTOPLAY_PREVENTED: mi,
2558
- AUTOPLAY_STARTED: Ue,
2534
+ AUTOPLAY_STARTED: He,
2559
2535
  BEFORE_DEFINITION_CHANGE: Ys,
2560
2536
  BUFFER_CHANGE: Ks,
2561
- CANPLAY: Te,
2537
+ CANPLAY: we,
2562
2538
  CANPLAY_THROUGH: Vs,
2563
2539
  COMPLETE: Pt,
2564
2540
  CSS_FULLSCREEN_CHANGE: Ct,
2565
2541
  DEFINITION_CHANGE: _i,
2566
2542
  DESTROY: yi,
2567
2543
  DOWNLOAD_SPEED_CHANGE: ri,
2568
- DURATION_CHANGE: xe,
2569
- EMPTIED: ze,
2570
- ENDED: Ve,
2571
- ENTER_PLAYER: Un,
2572
- ERROR: ot,
2573
- FPS_STUCK: qn,
2574
- FULLSCREEN_CHANGE: we,
2575
- LEAVE_PLAYER: Hn,
2576
- LOADED_DATA: Se,
2544
+ DURATION_CHANGE: Se,
2545
+ EMPTIED: Ve,
2546
+ ENDED: Ue,
2547
+ ENTER_PLAYER: Vn,
2548
+ ERROR: lt,
2549
+ FPS_STUCK: Zn,
2550
+ FULLSCREEN_CHANGE: be,
2551
+ LEAVE_PLAYER: Un,
2552
+ LOADED_DATA: Ee,
2577
2553
  LOADED_METADATA: zs,
2578
- LOADING: Vn,
2554
+ LOADING: zn,
2579
2555
  LOAD_START: gi,
2580
2556
  MINI_STATE_CHANGE: kt,
2581
- PAUSE: et,
2557
+ PAUSE: Qe,
2582
2558
  PIP_CHANGE: ai,
2583
2559
  PLAY: fe,
2584
- PLAYER_BLUR: Fn,
2560
+ PLAYER_BLUR: Bn,
2585
2561
  PLAYER_FOCUS: pi,
2586
2562
  PLAYING: di,
2587
2563
  PLAYNEXT: bt,
2588
- PROGRESS: Nn,
2589
- RATE_CHANGE: Mn,
2564
+ PROGRESS: Fn,
2565
+ RATE_CHANGE: Nn,
2590
2566
  READY: vi,
2591
2567
  REPLAY: _t,
2592
2568
  RESET: Lt,
2593
2569
  RETRY: Xs,
2594
- ROTATE: zn,
2595
- SCREEN_SHOT: jn,
2596
- SEEKED: Ee,
2570
+ ROTATE: jn,
2571
+ SCREEN_SHOT: Wn,
2572
+ SEEKED: Te,
2597
2573
  SEEKING: It,
2598
2574
  SEI_PARSED: $s,
2599
- SHORTCUT: Wn,
2600
- SOURCE_ERROR: Kn,
2601
- SOURCE_SUCCESS: Yn,
2575
+ SHORTCUT: Gn,
2576
+ SOURCE_ERROR: Yn,
2577
+ SOURCE_SUCCESS: $n,
2602
2578
  STALLED: js,
2603
- STATS_EVENTS: Xn,
2579
+ STATS_EVENTS: qn,
2604
2580
  SUSPEND: Ws,
2605
2581
  SWITCH_SUBTITLE: qs,
2606
2582
  TIME_UPDATE: ce,
2607
2583
  URL_CHANGE: At,
2608
- URL_NULL: Bn,
2584
+ URL_NULL: Hn,
2609
2585
  USER_ACTION: wt,
2610
- VIDEO_EVENTS: $n,
2611
- VIDEO_RESIZE: Oe,
2612
- VOLUME_CHANGE: On,
2613
- WAITING: lt,
2614
- XGLOG: Gn
2586
+ VIDEO_EVENTS: Xn,
2587
+ VIDEO_RESIZE: Re,
2588
+ VOLUME_CHANGE: Mn,
2589
+ WAITING: ut,
2590
+ XGLOG: Kn
2615
2591
  }, Symbol.toStringTag, { value: "Module" }));
2616
2592
  function Ht(o, a) {
2617
2593
  !this || !this.emit || (o === "error" ? this.errorHandler(o, a.error) : this.emit(o, a));
@@ -2693,7 +2669,7 @@ var Qs = /* @__PURE__ */ function(o) {
2693
2669
  key: "attachVideoEvents",
2694
2670
  value: function() {
2695
2671
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
2696
- this._evHandlers || (this._evHandlers = $n.map(function(n) {
2672
+ this._evHandlers || (this._evHandlers = Xn.map(function(n) {
2697
2673
  var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
2698
2674
  return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, Js(n, e));
2699
2675
  })), this._evHandlers.forEach(function(n) {
@@ -2727,7 +2703,7 @@ var Qs = /* @__PURE__ */ function(o) {
2727
2703
  var s = e.children;
2728
2704
  if (s) {
2729
2705
  this._videoSourceCount = s.length, this._videoSourceIndex = s.length, this._vLoadeddata = function(f) {
2730
- n.emit(Yn, {
2706
+ n.emit($n, {
2731
2707
  src: f.target.currentSrc,
2732
2708
  host: h.getHostFromUrl(f.target.currentSrc)
2733
2709
  });
@@ -2747,7 +2723,7 @@ var Qs = /* @__PURE__ */ function(o) {
2747
2723
  l ? l.error(f, g) : n.errorHandler("error", g);
2748
2724
  }
2749
2725
  var p = Ki[4];
2750
- n.emit(Kn, new yt(n, {
2726
+ n.emit(Yn, new yt(n, {
2751
2727
  errorType: p,
2752
2728
  errorCode: 4,
2753
2729
  errorMessage: "sources_load_error",
@@ -3005,7 +2981,7 @@ var Qs = /* @__PURE__ */ function(o) {
3005
2981
  },
3006
2982
  set: function(e) {
3007
2983
  if (this.media) {
3008
- if (this.emit(At, e), this.emit(lt), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
2984
+ if (this.emit(At, e), this.emit(ut), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
3009
2985
  this.onWaiting();
3010
2986
  return;
3011
2987
  }
@@ -3069,7 +3045,7 @@ var Qs = /* @__PURE__ */ function(o) {
3069
3045
  A(I(r.prototype), "removeAllListeners", this).call(this);
3070
3046
  }
3071
3047
  }]), r;
3072
- }(Dn), ea = /* @__PURE__ */ function() {
3048
+ }(Rn), ea = /* @__PURE__ */ function() {
3073
3049
  function o() {
3074
3050
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3075
3051
  name: "xgplayer",
@@ -3147,8 +3123,8 @@ var Qs = /* @__PURE__ */ function(o) {
3147
3123
  t.clear();
3148
3124
  }
3149
3125
  }]), o;
3150
- }(), $i = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Xi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], He = "data-xgplayerid";
3151
- function ct(o, a, r) {
3126
+ }(), $i = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Xi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Be = "data-xgplayerid";
3127
+ function ft(o, a, r) {
3152
3128
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
3153
3129
  e[i - 3] = arguments[i];
3154
3130
  var n = a.call.apply(a, [o].concat(e));
@@ -3174,20 +3150,20 @@ function Tt(o, a) {
3174
3150
  }
3175
3151
  if (this.__hooks && this.__hooks[o])
3176
3152
  try {
3177
- var n = ke(this, o, a);
3153
+ var n = Ce(this, o, a);
3178
3154
  n ? n.then ? n.then(function(s) {
3179
- s !== !1 && ct.apply(void 0, [e, a, r.next].concat(de(t)));
3155
+ s !== !1 && ft.apply(void 0, [e, a, r.next].concat(de(t)));
3180
3156
  }).catch(function(s) {
3181
3157
  throw s;
3182
- }) : ct.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments))) : n === void 0 && ct.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments)));
3158
+ }) : ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments))) : n === void 0 && ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments)));
3183
3159
  } catch (s) {
3184
3160
  throw s.message = "[pluginName: ".concat(this.pluginName, ":").concat(o, "] >> ").concat(s.message), s;
3185
3161
  }
3186
3162
  else
3187
- ct.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments)));
3163
+ ft.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments)));
3188
3164
  }).bind(this);
3189
3165
  }
3190
- function Zn(o, a) {
3166
+ function Jn(o, a) {
3191
3167
  var r = this.__hooks;
3192
3168
  if (!r || !Array.isArray(r[o]))
3193
3169
  return -1;
@@ -3199,13 +3175,13 @@ function Zn(o, a) {
3199
3175
  function Et(o, a) {
3200
3176
  var r = this.__hooks;
3201
3177
  if (r)
3202
- return r.hasOwnProperty(o) ? (Array.isArray(r[o]) || (r[o] = []), Zn.call(this, o, a) === -1 && r[o].push(a), !0) : (console.warn("has no supported hook which name [".concat(o, "]")), !1);
3178
+ return r.hasOwnProperty(o) ? (Array.isArray(r[o]) || (r[o] = []), Jn.call(this, o, a) === -1 && r[o].push(a), !0) : (console.warn("has no supported hook which name [".concat(o, "]")), !1);
3203
3179
  }
3204
3180
  function St(o, a) {
3205
3181
  var r = this.__hooks;
3206
3182
  if (r) {
3207
3183
  if (Array.isArray(r[o])) {
3208
- var t = r[o], e = Zn.call(this, o, a);
3184
+ var t = r[o], e = Jn.call(this, o, a);
3209
3185
  e !== -1 && t.splice(e, 1);
3210
3186
  }
3211
3187
  delete r[o];
@@ -3228,7 +3204,7 @@ function Ji(o) {
3228
3204
  }
3229
3205
  }
3230
3206
  }
3231
- function Jn(o) {
3207
+ function Qn(o) {
3232
3208
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
3233
3209
  o.__hooks = {}, a && a.map(function(r) {
3234
3210
  o.__hooks[r] = null;
@@ -3241,10 +3217,10 @@ function Jn(o) {
3241
3217
  }
3242
3218
  });
3243
3219
  }
3244
- function Qn(o) {
3220
+ function er(o) {
3245
3221
  o.__hooks = null;
3246
3222
  }
3247
- function ke(o, a, r) {
3223
+ function Ce(o, a, r) {
3248
3224
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
3249
3225
  e[i - 3] = arguments[i];
3250
3226
  if (o.__hooks && Array.isArray(o.__hooks[a])) {
@@ -3268,11 +3244,11 @@ function ke(o, a, r) {
3268
3244
  return r.call.apply(r, [o, o].concat(e));
3269
3245
  }
3270
3246
  function Ut(o, a) {
3271
- M.logError("[".concat(o, "] event or callback cant be undefined or null when call ").concat(a));
3247
+ N.logError("[".concat(o, "] event or callback cant be undefined or null when call ").concat(a));
3272
3248
  }
3273
- var Me = /* @__PURE__ */ function() {
3249
+ var Oe = /* @__PURE__ */ function() {
3274
3250
  function o(a) {
3275
- T(this, o), h.checkIsFunction(this.beforeCreate) && this.beforeCreate(a), Jn(this), this.__args = a, this.__events = {}, this.__onceEvents = {}, this.config = a.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(a);
3251
+ T(this, o), h.checkIsFunction(this.beforeCreate) && this.beforeCreate(a), Qn(this), this.__args = a, this.__events = {}, this.__onceEvents = {}, this.config = a.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(a);
3276
3252
  }
3277
3253
  return E(o, [{
3278
3254
  key: "beforeCreate",
@@ -3436,7 +3412,7 @@ var Me = /* @__PURE__ */ function() {
3436
3412
  var r = this, t = this.player, e = this.pluginName;
3437
3413
  this.offAll(), h.clearAllTimers(this), h.checkIsFunction(this.destroy) && this.destroy(), ["player", "playerConfig", "pluginName", "logger", "__args", "__hooks"].map(function(i) {
3438
3414
  r[i] = null;
3439
- }), t.unRegisterPlugin(e), Qn(this);
3415
+ }), t.unRegisterPlugin(e), er(this);
3440
3416
  }
3441
3417
  }], [{
3442
3418
  key: "defineGetterOrSetter",
@@ -3549,11 +3525,11 @@ function rn(o, a) {
3549
3525
  try {
3550
3526
  return i = o(), i instanceof window.Element ? (h.addClass(i, r), Object.keys(t).map(function(n) {
3551
3527
  i.setAttribute(n, t[n]);
3552
- }), i) : (M.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is a function mast return an Element Object")), null);
3528
+ }), i) : (N.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is a function mast return an Element Object")), null);
3553
3529
  } catch (n) {
3554
- return M.logError("Plugin named [".concat(e, "]:createIcon"), n), null;
3530
+ return N.logError("Plugin named [".concat(e, "]:createIcon"), n), null;
3555
3531
  }
3556
- return typeof o == "string" ? h.createDomFromHtml(o, t, r) : (M.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is invalid")), null);
3532
+ return typeof o == "string" ? h.createDomFromHtml(o, t, r) : (N.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is invalid")), null);
3557
3533
  }
3558
3534
  function oa(o, a) {
3559
3535
  var r = a.config.icons || a.playerConfig.icons;
@@ -3593,7 +3569,7 @@ var U = /* @__PURE__ */ function(o) {
3593
3569
  try {
3594
3570
  u = this.render();
3595
3571
  } catch (d) {
3596
- throw M.logError("Plugin:".concat(this.pluginName, ":render"), d), new Error("Plugin:".concat(this.pluginName, ":render:").concat(d.message));
3572
+ throw N.logError("Plugin:".concat(this.pluginName, ":render"), d), new Error("Plugin:".concat(this.pluginName, ":render:").concat(d.message));
3597
3573
  }
3598
3574
  if (u)
3599
3575
  n = r.insert(u, i, e.index), n.setAttribute("data-index", e.index);
@@ -3791,7 +3767,7 @@ var U = /* @__PURE__ */ function(o) {
3791
3767
  try {
3792
3768
  return typeof e == "string" ? this.find(e).appendChild(i) : e.appendChild(i);
3793
3769
  } catch (n) {
3794
- return M.logError("Plugin:appendChild", n), null;
3770
+ return N.logError("Plugin:appendChild", n), null;
3795
3771
  }
3796
3772
  }
3797
3773
  }, {
@@ -3864,7 +3840,7 @@ var U = /* @__PURE__ */ function(o) {
3864
3840
  return G;
3865
3841
  }
3866
3842
  }]), r;
3867
- }(Me), ua = /* @__PURE__ */ function() {
3843
+ }(Oe), ua = /* @__PURE__ */ function() {
3868
3844
  function o() {
3869
3845
  var a = this;
3870
3846
  if (T(this, o), _(this, "__trigger", function(r) {
@@ -3886,7 +3862,7 @@ var U = /* @__PURE__ */ function(o) {
3886
3862
  value: function(r, t) {
3887
3863
  if (this.observer) {
3888
3864
  this.observer.observe(r);
3889
- for (var e = r.getAttribute(He), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
3865
+ for (var e = r.getAttribute(Be), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
3890
3866
  i[s] && r === i[s].target && (n = s);
3891
3867
  n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
3892
3868
  target: r,
@@ -3930,13 +3906,13 @@ var U = /* @__PURE__ */ function(o) {
3930
3906
  return !1;
3931
3907
  }
3932
3908
  }]), o;
3933
- }(), rt = null;
3909
+ }(), nt = null;
3934
3910
  function ca(o, a) {
3935
- return rt || (rt = new ua()), rt.addObserver(o, a), rt;
3911
+ return nt || (nt = new ua()), nt.addObserver(o, a), nt;
3936
3912
  }
3937
3913
  function fa(o, a) {
3938
3914
  var r;
3939
- (r = rt) === null || r === void 0 || r.unObserver(o, a);
3915
+ (r = nt) === null || r === void 0 || r.unObserver(o, a);
3940
3916
  }
3941
3917
  var te = {
3942
3918
  pluginGroup: {},
@@ -4500,16 +4476,16 @@ var ha = function(a, r) {
4500
4476
  langKeys: [],
4501
4477
  textKeys: []
4502
4478
  };
4503
- function at(o, a) {
4479
+ function ot(o, a) {
4504
4480
  return Object.keys(a).forEach(function(r) {
4505
4481
  var t = h.typeOf(a[r]), e = h.typeOf(o[r]);
4506
4482
  if (t === "Array") {
4507
4483
  var i;
4508
4484
  e !== "Array" && (o[r] = []), (i = o[r]).push.apply(i, de(a[r]));
4509
- } else t === "Object" ? (e !== "Object" && (o[r] = {}), at(o[r], a[r])) : o[r] = a[r];
4485
+ } else t === "Object" ? (e !== "Object" && (o[r] = {}), ot(o[r], a[r])) : o[r] = a[r];
4510
4486
  }), o;
4511
4487
  }
4512
- function er() {
4488
+ function tr() {
4513
4489
  Object.keys(le.lang.en).map(function(o) {
4514
4490
  le.textKeys[o] = o;
4515
4491
  });
@@ -4526,15 +4502,15 @@ function pa(o, a) {
4526
4502
  }) : r = o;
4527
4503
  var t = a, e = t.lang;
4528
4504
  r.map(function(i) {
4529
- i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? at(e[i.LANG] || {}, i.TEXT || {}) : Ci(i, a);
4530
- }), er();
4505
+ i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? ot(e[i.LANG] || {}, i.TEXT || {}) : Ci(i, a);
4506
+ }), tr();
4531
4507
  }
4532
4508
  }
4533
4509
  function Ci(o, a) {
4534
4510
  var r = o.LANG;
4535
4511
  if (a || (a = le), !!a.lang) {
4536
4512
  var t = o.TEXT || {};
4537
- r === "zh" && (r = "zh-cn"), a.lang[r] ? at(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), er();
4513
+ r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), tr();
4538
4514
  }
4539
4515
  }
4540
4516
  function va(o) {
@@ -4544,10 +4520,10 @@ function va(o) {
4544
4520
  textKeys: {},
4545
4521
  pId: o
4546
4522
  };
4547
- return at(r.lang, le.lang), (a = r.langKeys).push.apply(a, de(le.langKeys)), at(r.textKeys, le.textKeys), r;
4523
+ return ot(r.lang, le.lang), (a = r.langKeys).push.apply(a, de(le.langKeys)), ot(r.textKeys, le.textKeys), r;
4548
4524
  }
4549
4525
  Ci(ga);
4550
- var Je = {
4526
+ var Ze = {
4551
4527
  get textKeys() {
4552
4528
  return le.textKeys;
4553
4529
  },
@@ -4572,7 +4548,7 @@ var Je = {
4572
4548
  RUNNING: 6,
4573
4549
  ENDED: 7,
4574
4550
  DESTROYED: 8
4575
- }, an = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, Wt = null, tr = /* @__PURE__ */ function(o) {
4551
+ }, an = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, Wt = null, ir = /* @__PURE__ */ function(o) {
4576
4552
  S(r, o);
4577
4553
  var a = x(r);
4578
4554
  function r() {
@@ -4658,7 +4634,7 @@ var Je = {
4658
4634
  return Wt || (Wt = new r()), Wt;
4659
4635
  }
4660
4636
  }]), r;
4661
- }(Ln.EventEmitter);
4637
+ }(Dn.EventEmitter);
4662
4638
  function ma(o) {
4663
4639
  for (var a = Object.keys(se), r = 0; r < a.length; r++) {
4664
4640
  var t = se[a[r]];
@@ -4667,7 +4643,7 @@ function ma(o) {
4667
4643
  }
4668
4644
  return null;
4669
4645
  }
4670
- var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /* @__PURE__ */ function(o) {
4646
+ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Pe = null, Dt = /* @__PURE__ */ function(o) {
4671
4647
  S(r, o);
4672
4648
  var a = x(r);
4673
4649
  function r(t) {
@@ -4677,7 +4653,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4677
4653
  e = a.call(this, i), _(v(e), "canPlayFunc", function() {
4678
4654
  if (e.config) {
4679
4655
  var p = e.config, m = p.autoplay, y = p.defaultPlaybackRate;
4680
- M.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(Te, e.canPlayFunc), e.removeClass(C.ENTER);
4656
+ N.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(we, e.canPlayFunc), e.removeClass(C.ENTER);
4681
4657
  }
4682
4658
  }), _(v(e), "onFullscreenChange", function(p, m) {
4683
4659
  var y = function() {
@@ -4697,9 +4673,9 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4697
4673
  to: !1
4698
4674
  }]
4699
4675
  });
4700
- var w = Hs(k, e.playerId, He);
4676
+ var w = Hs(k, e.playerId, Be);
4701
4677
  if (m || k && (k === e._fullscreenEl || w))
4702
- y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(we, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4678
+ y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4703
4679
  else if (e.fullscreen) {
4704
4680
  y();
4705
4681
  var b = v(e), B = b._fullScreenOffset, O = b.config;
@@ -4711,13 +4687,13 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4711
4687
  var z = e._fullscreenEl;
4712
4688
  !z && (e.root.contains(p.target) || p.target === e.root) && (z = p.target), e.recoverFullStyle(e.root, z, C.FULLSCREEN);
4713
4689
  }
4714
- e._fullscreenEl = null, e.emit(we, !1);
4690
+ e._fullscreenEl = null, e.emit(be, !1);
4715
4691
  }
4716
4692
  }), _(v(e), "_onWebkitbeginfullscreen", function(p) {
4717
4693
  e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
4718
4694
  }), _(v(e), "_onWebkitendfullscreen", function(p) {
4719
4695
  e.onFullscreenChange(p, !1);
4720
- }), Jn(v(e), ya), e.config = i, e._pluginInfoId = h.generateSessionId(), Rs(v(e));
4696
+ }), Qn(v(e), ya), e.config = i, e._pluginInfoId = h.generateSessionId(), Rs(v(e));
4721
4697
  var n = e.constructor.defaultPreset;
4722
4698
  if (e.config.presets.length) {
4723
4699
  var s = e.config.presets.indexOf("default");
@@ -4745,9 +4721,9 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4745
4721
  }, e._offsetInfo = {
4746
4722
  currentTime: -1,
4747
4723
  duration: 0
4748
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Je.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new ea(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4724
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ze.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new ea(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4749
4725
  isActiveLocked: !1
4750
- }, e.instManager = Ae;
4726
+ }, e.instManager = Pe;
4751
4727
  var l = e._initDOM();
4752
4728
  if (!l)
4753
4729
  return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), hi(e);
@@ -4771,14 +4747,14 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4771
4747
  if (n && n.nodeType === 1)
4772
4748
  this.root = n;
4773
4749
  else
4774
- return this.emit(ot, new yt("use", this.config.vid, {
4750
+ return this.emit(lt, new yt("use", this.config.vid, {
4775
4751
  line: 32,
4776
4752
  handle: "Constructor",
4777
4753
  msg: "container id can't be empty"
4778
4754
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
4779
4755
  }
4780
4756
  var s = ma(this.root);
4781
- 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 = Ae) === null || e === void 0 || e.add(this), te.init(this), this._initBaseDoms();
4757
+ s && (N.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Be, this.playerId), (e = Pe) === null || e === void 0 || e.add(this), te.init(this), this._initBaseDoms();
4782
4758
  var l = this.constructor.XgVideoProxy;
4783
4759
  if (l && this.mediaConfig.mediaType === l.mediaType) {
4784
4760
  var u = this.innerContainer || this.root;
@@ -4786,7 +4762,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4786
4762
  var c = new l(u, this.config, this.mediaConfig);
4787
4763
  this.attachVideoEvents(c), this.media = c;
4788
4764
  }
4789
- if (this.media.setAttribute(He, this.playerId), this.config.controls) {
4765
+ if (this.media.setAttribute(Be, this.playerId), this.config.controls) {
4790
4766
  var f = this.config.controls.root || null, d = te.register(this, da, {
4791
4767
  root: f
4792
4768
  });
@@ -4827,7 +4803,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4827
4803
  e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
4828
4804
  }), $i.forEach(function(i) {
4829
4805
  document && document.addEventListener(i, e.onFullscreenChange);
4830
- }), R.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Se, this.resize), this.playFunc = function() {
4806
+ }), R.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ee, this.resize), this.playFunc = function() {
4831
4807
  e.config.closeFocusVideoFocus || e.media.focus();
4832
4808
  }, this.once(fe, this.playFunc);
4833
4809
  }
@@ -4837,7 +4813,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4837
4813
  var e = this;
4838
4814
  this.root.removeEventListener("mousemove", this.mousemoveFunc), $i.forEach(function(i) {
4839
4815
  document.removeEventListener(i, e.onFullscreenChange);
4840
- }), this.playFunc && this.off(fe, this.playFunc), this.off(Te, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
4816
+ }), this.playFunc && this.off(fe, this.playFunc), this.off(we, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
4841
4817
  }
4842
4818
  }, {
4843
4819
  key: "_clearUserTimer",
@@ -4848,14 +4824,14 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4848
4824
  key: "_startInit",
4849
4825
  value: function(e) {
4850
4826
  var i = this;
4851
- if (this.media && !((!e || e === "" || h.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Bn), M.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
4827
+ if (this.media && !((!e || e === "" || h.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Hn), N.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
4852
4828
  this.handleSource && (this._detachSourceEvents(this.media), h.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")), h.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
4853
4829
  var n = this.innerContainer ? this.innerContainer : this.root;
4854
4830
  this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
4855
4831
  var s = this.media.readyState;
4856
- M.logInfo("_startInit readyState", s), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
4832
+ N.logInfo("_startInit readyState", s), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
4857
4833
  var l = this.config.startTime;
4858
- this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Te, this.canPlayFunc), (!this.hasStart || this.state < H.ATTACHED) && te.afterInit(this), this.hasStart = !0, this.setState(H.ATTACHED), h.setTimeout(this, function() {
4834
+ this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(we, this.canPlayFunc), (!this.hasStart || this.state < H.ATTACHED) && te.afterInit(this), this.hasStart = !0, this.setState(H.ATTACHED), h.setTimeout(this, function() {
4859
4835
  i.emit(Pt);
4860
4836
  }, 0);
4861
4837
  }
@@ -4866,7 +4842,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4866
4842
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
4867
4843
  this._loadingPlugins = [];
4868
4844
  var n = this.config.ignores || [], s = this.config.plugins || [], l = this.config.i18n || [];
4869
- i && Je.extend(l, this.__i18n);
4845
+ i && Ze.extend(l, this.__i18n);
4870
4846
  var u = n.join("||").toLowerCase().split("||"), c = this.plugins;
4871
4847
  s.forEach(function(f) {
4872
4848
  try {
@@ -4880,13 +4856,13 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4880
4856
  f.forceBeforeInit && (g.then(function() {
4881
4857
  e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
4882
4858
  }).catch(function(p) {
4883
- M.logError("_registerPlugins:loadingPlugin", p), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
4859
+ N.logError("_registerPlugins:loadingPlugin", p), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
4884
4860
  }), e._loadingPlugins.push(g));
4885
4861
  return;
4886
4862
  }
4887
4863
  return e.registerPlugin(f);
4888
4864
  } catch (p) {
4889
- M.logError("_registerPlugins:", p);
4865
+ N.logError("_registerPlugins:", p);
4890
4866
  }
4891
4867
  });
4892
4868
  }
@@ -4935,7 +4911,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4935
4911
  }, {
4936
4912
  key: "deregister",
4937
4913
  value: function(e) {
4938
- typeof e == "string" ? te.unRegister(this, e) : e instanceof Me && te.unRegister(this, e.pluginName);
4914
+ typeof e == "string" ? te.unRegister(this, e) : e instanceof Oe && te.unRegister(this, e.pluginName);
4939
4915
  }
4940
4916
  }, {
4941
4917
  key: "unRegisterPlugin",
@@ -4947,7 +4923,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
4947
4923
  key: "removePluginFromConfig",
4948
4924
  value: function(e) {
4949
4925
  var i;
4950
- if (typeof e == "string" ? i = e : e instanceof Me && (i = e.pluginName), !!i)
4926
+ if (typeof e == "string" ? i = e : e instanceof Oe && (i = e.pluginName), !!i)
4951
4927
  for (var n = this.config.plugins.length - 1; n > -1; n--) {
4952
4928
  var s = this.config.plugins[n];
4953
4929
  if (s.pluginName.toLowerCase() === i.toLowerCase()) {
@@ -5005,7 +4981,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5005
4981
  return s;
5006
4982
  }
5007
4983
  }).catch(function(n) {
5008
- throw n.fileName = "player", n.lineNumber = "236", M.logError("start:beforeInit:", n), n;
4984
+ throw n.fileName = "player", n.lineNumber = "236", N.logError("start:beforeInit:", n), n;
5009
4985
  });
5010
4986
  }
5011
4987
  }, {
@@ -5048,16 +5024,16 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5048
5024
  this.state < H.RUNNING && (this.removeClass(C.NO_START), !this.isCanplay && this.addClass(C.ENTER));
5049
5025
  var i = A(I(r.prototype), "play", this).call(this);
5050
5026
  return i !== void 0 && i && i.then ? i.then(function() {
5051
- e.removeClass(C.NOT_ALLOW_AUTOPLAY), e.addClass(C.PLAYING), e.state < H.RUNNING && (M.logInfo(">>>>playPromise.then"), e.setState(H.RUNNING), e.emit(Ue));
5027
+ e.removeClass(C.NOT_ALLOW_AUTOPLAY), e.addClass(C.PLAYING), e.state < H.RUNNING && (N.logInfo(">>>>playPromise.then"), e.setState(H.RUNNING), e.emit(He));
5052
5028
  }).catch(function(n) {
5053
- if (M.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
5029
+ if (N.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
5054
5030
  e.onError(), e.removeClass(C.ENTER);
5055
5031
  return;
5056
5032
  }
5057
5033
  n.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
5058
5034
  e._errorTimer = null, e.emit(mi), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(H.NOTALLOW);
5059
5035
  }, 0));
5060
- }) : (M.logWarn("video.play not return promise"), this.state < H.RUNNING && (this.setState(H.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(Ue))), i;
5036
+ }) : (N.logWarn("video.play not return promise"), this.state < H.RUNNING && (this.setState(H.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(He))), i;
5061
5037
  }
5062
5038
  }, {
5063
5039
  key: "mediaPause",
@@ -5073,7 +5049,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5073
5049
  key: "play",
5074
5050
  value: function() {
5075
5051
  var e = this;
5076
- return this.removeClass(C.PAUSED), ke(this, "play", function() {
5052
+ return this.removeClass(C.PAUSED), Ce(this, "play", function() {
5077
5053
  return e.mediaPlay();
5078
5054
  });
5079
5055
  }
@@ -5081,7 +5057,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5081
5057
  key: "pause",
5082
5058
  value: function() {
5083
5059
  var e = this;
5084
- ke(this, "pause", function() {
5060
+ Ce(this, "pause", function() {
5085
5061
  A(I(r.prototype), "pause", e).call(e);
5086
5062
  });
5087
5063
  }
@@ -5091,7 +5067,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5091
5067
  var n = this;
5092
5068
  if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
5093
5069
  var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
5094
- e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Ee, this._onceSeekCanplay), this._onceSeekCanplay = function() {
5070
+ e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Te, this._onceSeekCanplay), this._onceSeekCanplay = function() {
5095
5071
  switch (n.removeClass(C.ENTER), n.isSeeking = !1, c) {
5096
5072
  case "play":
5097
5073
  n.play();
@@ -5103,7 +5079,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5103
5079
  n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
5104
5080
  }
5105
5081
  n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
5106
- }, this.once(Ee, this._onceSeekCanplay), this.state < H.RUNNING ? (this.removeClass(C.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5082
+ }, this.once(Te, this._onceSeekCanplay), this.state < H.RUNNING ? (this.removeClass(C.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5107
5083
  }
5108
5084
  }
5109
5085
  }, {
@@ -5145,7 +5121,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5145
5121
  value: function() {
5146
5122
  this.load(), this.reloadFunc = function() {
5147
5123
  this.play();
5148
- }, this.once(Se, this.reloadFunc);
5124
+ }, this.once(Ee, this.reloadFunc);
5149
5125
  }
5150
5126
  }, {
5151
5127
  key: "resetState",
@@ -5175,7 +5151,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5175
5151
  value: function() {
5176
5152
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
5177
5153
  if (!(!s || !l)) {
5178
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(He), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(yi), (e = Ae) === null || e === void 0 || e.remove(this), te.destroy(this), Qn(this), A(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5154
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Be), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(yi), (e = Pe) === null || e === void 0 || e.remove(this), te.destroy(this), er(this), A(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5179
5155
  for (var u = n.children, c = 0; c < u.length; c++)
5180
5156
  n.removeChild(u[c]);
5181
5157
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -5193,8 +5169,8 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5193
5169
  key: "replay",
5194
5170
  value: function() {
5195
5171
  var e = this;
5196
- this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1, ke(this, "replay", function() {
5197
- e.once(Ee, function() {
5172
+ this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1, Ce(this, "replay", function() {
5173
+ e.once(Te, function() {
5198
5174
  var i = e.mediaPlay();
5199
5175
  i && i.catch && i.catch(function(n) {
5200
5176
  console.log(n);
@@ -5206,11 +5182,11 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5206
5182
  key: "retry",
5207
5183
  value: function() {
5208
5184
  var e = this;
5209
- this.removeClass(C.ERROR), this.addClass(C.LOADING), ke(this, "retry", function() {
5185
+ this.removeClass(C.ERROR), this.addClass(C.LOADING), Ce(this, "retry", function() {
5210
5186
  var i = e.currentTime, n = e.config.url, s = h.isMSE(e.media) ? {
5211
5187
  url: n
5212
5188
  } : e._preProcessUrl(n);
5213
- e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(Te, function() {
5189
+ e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(we, function() {
5214
5190
  e.mediaPlay();
5215
5191
  });
5216
5192
  });
@@ -5218,12 +5194,12 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5218
5194
  }, {
5219
5195
  key: "changeFullStyle",
5220
5196
  value: function(e, i, n, s) {
5221
- e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, s), i.setAttribute(He, this.playerId)));
5197
+ e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, s), i.setAttribute(Be, this.playerId)));
5222
5198
  }
5223
5199
  }, {
5224
5200
  key: "recoverFullStyle",
5225
5201
  value: function(e, i, n, s) {
5226
- s || (s = C.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, s), i.removeAttribute(He));
5202
+ s || (s = C.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, s), i.removeAttribute(Be));
5227
5203
  }
5228
5204
  }, {
5229
5205
  key: "getFullscreen",
@@ -5278,7 +5254,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5278
5254
  var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
5279
5255
  this.changeFullStyle(this.root, e, i);
5280
5256
  var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
5281
- l && (this.fullscreen = !0, this.emit(we, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Ct, !0);
5257
+ l && (this.fullscreen = !0, this.emit(be, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Ct, !0);
5282
5258
  }
5283
5259
  }, {
5284
5260
  key: "exitCssFullscreen",
@@ -5288,7 +5264,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5288
5264
  this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
5289
5265
  else {
5290
5266
  var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
5291
- s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(we, !1)) : this.removeClass(e);
5267
+ s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(be, !1)) : this.removeClass(e);
5292
5268
  }
5293
5269
  this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Ct, !1);
5294
5270
  }
@@ -5298,13 +5274,13 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5298
5274
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
5299
5275
  this.cssfullscreen && this.exitCssFullscreen(e);
5300
5276
  var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
5301
- this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(we, !0);
5277
+ this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(be, !0);
5302
5278
  }
5303
5279
  }, {
5304
5280
  key: "exitRotateFullscreen",
5305
5281
  value: function(e) {
5306
5282
  var i = this._fullscreenEl !== this.root ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
5307
- this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(we, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
5283
+ this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(be, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
5308
5284
  }
5309
5285
  }, {
5310
5286
  key: "setRotateDeg",
@@ -5337,7 +5313,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5337
5313
  this.onBlur(e);
5338
5314
  return;
5339
5315
  }
5340
- this._clearUserTimer(), this.emit(Fn, X({
5316
+ this._clearUserTimer(), this.emit(Bn, X({
5341
5317
  paused: this.paused,
5342
5318
  ended: this.ended
5343
5319
  }, e));
@@ -5381,7 +5357,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5381
5357
  key: "onLoadeddata",
5382
5358
  value: function() {
5383
5359
  var e = this;
5384
- this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(xe, function() {
5360
+ this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(Se, function() {
5385
5361
  e._seekToStartTime();
5386
5362
  }));
5387
5363
  }
@@ -5425,7 +5401,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5425
5401
  value: function() {
5426
5402
  var e = this;
5427
5403
  this.waitTimer && h.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = h.setTimeout(this, function() {
5428
- e.addClass(C.LOADING), e.emit(Vn), h.clearTimeout(e, e.waitTimer), e.waitTimer = null;
5404
+ e.addClass(C.LOADING), e.emit(zn), h.clearTimeout(e, e.waitTimer), e.waitTimer = null;
5429
5405
  }, this.config.minWaitDelay);
5430
5406
  }
5431
5407
  }, {
@@ -5441,7 +5417,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5441
5417
  }, {
5442
5418
  key: "onTimeupdate",
5443
5419
  value: function() {
5444
- !this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(C.LOADING)) && this.media.readyState > 2 && (this.removeClass(C.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === H.NOTALLOW && this.duration && (this.setState(H.RUNNING), this.emit(Ue)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
5420
+ !this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(C.LOADING)) && this.media.readyState > 2 && (this.removeClass(C.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === H.NOTALLOW && this.duration && (this.setState(H.RUNNING), this.emit(He)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
5445
5421
  }
5446
5422
  }, {
5447
5423
  key: "onVolumechange",
@@ -5543,7 +5519,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5543
5519
  key: "playNext",
5544
5520
  value: function(e) {
5545
5521
  var i = this;
5546
- this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, ke(this, "playnext", function() {
5522
+ this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Ce(this, "playnext", function() {
5547
5523
  i.start(), i.emit(bt, e);
5548
5524
  });
5549
5525
  }
@@ -5568,7 +5544,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5568
5544
  cWidth: k,
5569
5545
  cHeight: w + d
5570
5546
  };
5571
- this.resizePosition(), this.emit(Oe, B);
5547
+ this.resizePosition(), this.emit(Re, B);
5572
5548
  }
5573
5549
  }
5574
5550
  }
@@ -5585,7 +5561,7 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5585
5561
  }, {
5586
5562
  key: "setState",
5587
5563
  value: function(e) {
5588
- M.logInfo("setState", "state from:".concat(an[this.state], " to:").concat(an[e])), this._state = e;
5564
+ N.logInfo("setState", "state from:".concat(an[this.state], " to:").concat(an[e])), this._state = e;
5589
5565
  }
5590
5566
  }, {
5591
5567
  key: "_preProcessUrl",
@@ -5664,11 +5640,11 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5664
5640
  return this.config.lang;
5665
5641
  },
5666
5642
  set: function(e) {
5667
- var i = Je.langKeys.filter(function(n) {
5643
+ var i = Ze.langKeys.filter(function(n) {
5668
5644
  return n === e;
5669
5645
  });
5670
5646
  if (i.length === 0 && e !== "zh") {
5671
- console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(Je.langKeys.join(), "] "));
5647
+ console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(Ze.langKeys.join(), "] "));
5672
5648
  return;
5673
5649
  }
5674
5650
  this.config.lang = e, te.setLang(e, this);
@@ -5818,35 +5794,35 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5818
5794
  key: "setUserActive",
5819
5795
  value: function(e, i) {
5820
5796
  var n;
5821
- typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n = Ae) === null || n === void 0 || n.setActive(this.playerId, e);
5797
+ typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n = Pe) === null || n === void 0 || n.setActive(this.playerId, e);
5822
5798
  }
5823
5799
  }], [{
5824
5800
  key: "debugger",
5825
5801
  get: function() {
5826
- return M.config.debug;
5802
+ return N.config.debug;
5827
5803
  },
5828
5804
  set: function(e) {
5829
- M.config.debug = e;
5805
+ N.config.debug = e;
5830
5806
  }
5831
5807
  }, {
5832
5808
  key: "instManager",
5833
5809
  get: function() {
5834
- return Ae;
5810
+ return Pe;
5835
5811
  },
5836
5812
  set: function(e) {
5837
- Ae = e;
5813
+ Pe = e;
5838
5814
  }
5839
5815
  }, {
5840
5816
  key: "getCurrentUserActivePlayerId",
5841
5817
  value: function() {
5842
5818
  var e;
5843
- return (e = Ae) === null || e === void 0 ? void 0 : e.getActiveId();
5819
+ return (e = Pe) === null || e === void 0 ? void 0 : e.getActiveId();
5844
5820
  }
5845
5821
  }, {
5846
5822
  key: "setCurrentUserActive",
5847
5823
  value: function(e, i) {
5848
5824
  var n;
5849
- (n = Ae) === null || n === void 0 || n.setActive(e, i);
5825
+ (n = Pe) === null || n === void 0 || n.setActive(e, i);
5850
5826
  }
5851
5827
  }, {
5852
5828
  key: "isHevcSupported",
@@ -5872,11 +5848,11 @@ var ya = ["play", "pause", "replay", "retry"], on = 0, ln = 0, Ae = null, Dt = /
5872
5848
  }(Qs);
5873
5849
  _(Dt, "defaultPreset", null);
5874
5850
  _(Dt, "XgVideoProxy", null);
5875
- Dt.instManager = tr.getInstance();
5851
+ Dt.instManager = ir.getInstance();
5876
5852
  function ne() {
5877
5853
  return (/* @__PURE__ */ new Date()).getTime();
5878
5854
  }
5879
- var Le = {
5855
+ var Ae = {
5880
5856
  LOAD_START: "loadstart",
5881
5857
  LOADED_DATA: "loadeddata",
5882
5858
  FIRST_FRAME: "firstFrame",
@@ -5893,9 +5869,9 @@ var Le = {
5893
5869
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
5894
5870
  i[n] = arguments[n];
5895
5871
  return t = a.call.apply(a, [this].concat(i)), _(v(t), "_onTimeupdate", function() {
5896
- t._state.isTimeUpdate = !0, t._state.autoplayStart && (M.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
5872
+ t._state.isTimeUpdate = !0, t._state.autoplayStart && (N.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
5897
5873
  }), _(v(t), "_onAutoplayStart", function() {
5898
- M.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
5874
+ N.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
5899
5875
  }), _(v(t), "_onReset", function() {
5900
5876
  t._state = {
5901
5877
  autoplayStart: !1,
@@ -5905,13 +5881,13 @@ var Le = {
5905
5881
  isLs: !1
5906
5882
  }, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = ne(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && h.clearTimeout(v(t), t._waitTimer), t._waittTimer && h.clearTimeout(v(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
5907
5883
  }), _(v(t), "_onSeeking", function() {
5908
- t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = ne(), t.emitLog(Le.SEEK_START, {
5884
+ t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = ne(), t.emitLog(Ae.SEEK_START, {
5909
5885
  start: ne()
5910
5886
  }));
5911
5887
  }), _(v(t), "_onSeeked", function() {
5912
5888
  t.suspendSeekingStatus("seeked");
5913
5889
  }), _(v(t), "_onWaitingLoadStart", function() {
5914
- t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = ne(), t.fixedWaitingStart = ne(), t._waitType = 1, t.emitLog(Le.WAIT_START, {
5890
+ t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = ne(), t.fixedWaitingStart = ne(), t._waitType = 1, t.emitLog(Ae.WAIT_START, {
5915
5891
  fixedStart: t.fixedWaitingStart,
5916
5892
  start: t.waitingStart,
5917
5893
  type: 1,
@@ -5919,7 +5895,7 @@ var Le = {
5919
5895
  }));
5920
5896
  }), _(v(t), "_onWaiting", function() {
5921
5897
  t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = ne(), t._waitTimer = h.setTimeout(v(t), function() {
5922
- t._isWaiting && (t.waitingStart = ne(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Le.WAIT_START, {
5898
+ t._isWaiting && (t.waitingStart = ne(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Ae.WAIT_START, {
5923
5899
  fixedStart: t.fixedWaitingStart,
5924
5900
  start: t.waitingStart,
5925
5901
  type: t._waitType,
@@ -5938,30 +5914,30 @@ var Le = {
5938
5914
  var e = this;
5939
5915
  this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = ne(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(gi, function() {
5940
5916
  var i = e._state, n = i.autoplayStart, s = i.isFFSend;
5941
- e.startCostTime = ne() - e.newPointTime, M.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(Le.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = ne(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
5942
- }), this.on(Se, function() {
5917
+ e.startCostTime = ne() - e.newPointTime, N.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(Ae.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = ne(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
5918
+ }), this.on(Ee, function() {
5943
5919
  e.vt = ne(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
5944
5920
  var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
5945
- M.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Le.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
5946
- }), this.on(It, this._onSeeking), this.on(Ee, this._onSeeked), this.on(yi, function() {
5921
+ N.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(Ae.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
5922
+ }), this.on(It, this._onSeeking), this.on(Te, this._onSeeked), this.on(yi, function() {
5947
5923
  e.endState("destroy");
5948
5924
  }), this.on(At, function() {
5949
- e.endState("urlChange"), M.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
5950
- }), this.on([di, Te], this._onPlaying), this.on(lt, this._onWaiting), this.on(ot, this._onError), this.on(Lt, function() {
5951
- M.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
5925
+ e.endState("urlChange"), N.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
5926
+ }), this.on([di, we], this._onPlaying), this.on(ut, this._onWaiting), this.on(lt, this._onError), this.on(Lt, function() {
5927
+ N.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
5952
5928
  });
5953
5929
  }
5954
5930
  }, {
5955
5931
  key: "_initOnceEvents",
5956
5932
  value: function() {
5957
- this.off(Ue, this._onAutoplayStart), this.off(ce, this._onTimeupdate), this.once(Ue, this._onAutoplayStart), this.once(ce, this._onTimeupdate);
5933
+ this.off(He, this._onAutoplayStart), this.off(ce, this._onTimeupdate), this.once(He, this._onAutoplayStart), this.once(ce, this._onTimeupdate);
5958
5934
  }
5959
5935
  }, {
5960
5936
  key: "_sendFF",
5961
5937
  value: function(e) {
5962
5938
  this.s = ne();
5963
5939
  var i = this._state, n = i.isFFLoading, s = i.isFFSend;
5964
- M.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (M.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Le.FIRST_FRAME, {
5940
+ N.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (N.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Ae.FIRST_FRAME, {
5965
5941
  fvt: this.fvt,
5966
5942
  costTime: this.fvt,
5967
5943
  vt: this.vt,
@@ -5987,7 +5963,7 @@ var Le = {
5987
5963
  value: function(e) {
5988
5964
  if (this.seekingStart) {
5989
5965
  var i = ne(), n = i - this.seekingStart;
5990
- this.seekingStart = 0, this.emitLog(Le.SEEK_END, {
5966
+ this.seekingStart = 0, this.emitLog(Ae.SEEK_END, {
5991
5967
  end: i,
5992
5968
  costTime: n,
5993
5969
  endType: e
@@ -5999,7 +5975,7 @@ var Le = {
5999
5975
  value: function(e) {
6000
5976
  if (this._waitTimer && (h.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (h.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
6001
5977
  var i = ne(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
6002
- this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(Le.WAIT_END, {
5978
+ this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(Ae.WAIT_END, {
6003
5979
  fixedCostTime: s > l ? l : s,
6004
5980
  costTime: n > l ? l : n,
6005
5981
  type: e === "loadeddata" ? 1 : this._waitType,
@@ -6011,7 +5987,7 @@ var Le = {
6011
5987
  key: "emitLog",
6012
5988
  value: function(e, i) {
6013
5989
  var n = this.player;
6014
- this.emit(Gn, X({
5990
+ this.emit(Kn, X({
6015
5991
  t: ne(),
6016
5992
  host: h.getHostFromUrl(n.currentSrc),
6017
5993
  vtype: n.vtype,
@@ -6064,7 +6040,7 @@ var ka = /* @__PURE__ */ function(o) {
6064
6040
  pre: function(n) {
6065
6041
  n.preventDefault(), n.stopPropagation();
6066
6042
  }
6067
- }), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Ve, function() {
6043
+ }), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Ue, function() {
6068
6044
  if (e.playerConfig.loop || h.addClass(e.player.root, "replay"), !e.config.disable) {
6069
6045
  e.show();
6070
6046
  var i = e.root.querySelector("path");
@@ -6157,7 +6133,7 @@ var ka = /* @__PURE__ */ function(o) {
6157
6133
  key: "afterCreate",
6158
6134
  value: function() {
6159
6135
  var e = this;
6160
- this.on(Ve, function() {
6136
+ this.on(Ue, function() {
6161
6137
  e.isEndedShow && h.removeClass(e.root, "hide");
6162
6138
  }), this.config.hideCanplay ? (this.once(ce, function() {
6163
6139
  e.onTimeUpdate();
@@ -6295,12 +6271,12 @@ var Ta = /* @__PURE__ */ function(o) {
6295
6271
  var e = this, i = this.player, n = this.playerConfig;
6296
6272
  this.once(vi, function() {
6297
6273
  n && (n.lang && n.lang === "en" ? h.addClass(i.root, "lang-is-en") : n.lang === "jp" && h.addClass(i.root, "lang-is-jp"));
6298
- }), this.on(Ue, this.onAutoplayStart), this.on(mi, function() {
6274
+ }), this.on(He, this.onAutoplayStart), this.on(mi, function() {
6299
6275
  var s = e.config.mode === "auto" ? "auto-hide" : "hide";
6300
6276
  e.setAttr("data-state", "play"), h.removeClass(e.root, s), e.show();
6301
6277
  }), this.on(fe, function() {
6302
6278
  e.toggleTo("play");
6303
- }), this.on(et, function() {
6279
+ }), this.on(Qe, function() {
6304
6280
  e.toggleTo("pause");
6305
6281
  }), this.on(Lt, function() {
6306
6282
  e.onPlayerReset();
@@ -6495,7 +6471,7 @@ var Ta = /* @__PURE__ */ function(o) {
6495
6471
  }
6496
6472
  }]), r;
6497
6473
  }(U);
6498
- function Ne(o, a, r) {
6474
+ function Me(o, a, r) {
6499
6475
  try {
6500
6476
  return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(o.i18nKeys[a], `">
6501
6477
  `).concat(o.i18n[a], `
@@ -6558,7 +6534,7 @@ function fn(o) {
6558
6534
  var a = parseFloat(o), r = o.indexOf("%") === -1 && !Number.isNaN(a);
6559
6535
  return r && a;
6560
6536
  }
6561
- var wi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], ir = wi.length;
6537
+ var wi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], nr = wi.length;
6562
6538
  function Sa() {
6563
6539
  for (var o = {
6564
6540
  width: 0,
@@ -6567,7 +6543,7 @@ function Sa() {
6567
6543
  innerHeight: 0,
6568
6544
  outerWidth: 0,
6569
6545
  outerHeight: 0
6570
- }, a = 0; a < ir; a++) {
6546
+ }, a = 0; a < nr; a++) {
6571
6547
  var r = wi[a];
6572
6548
  o[r] = 0;
6573
6549
  }
@@ -6584,7 +6560,7 @@ function hn(o) {
6584
6560
  return Sa();
6585
6561
  var r = {};
6586
6562
  r.width = o.offsetWidth, r.height = o.offsetHeight;
6587
- for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < ir; e++) {
6563
+ for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < nr; e++) {
6588
6564
  var i = wi[e], n = a[i], s = parseFloat(n);
6589
6565
  r[i] = Number.isNaN(s) ? 0 : s;
6590
6566
  }
@@ -6819,7 +6795,7 @@ var Kt = {
6819
6795
  return parseInt(e, 10);
6820
6796
  }
6821
6797
  }]), r;
6822
- }(Dn), Pa = /* @__PURE__ */ function(o) {
6798
+ }(Rn), Pa = /* @__PURE__ */ function(o) {
6823
6799
  S(r, o);
6824
6800
  var a = x(r);
6825
6801
  function r(t) {
@@ -6853,7 +6829,7 @@ var Kt = {
6853
6829
  key: "afterCreate",
6854
6830
  value: function() {
6855
6831
  var e = this;
6856
- this.initIcons(), this.on(et, function() {
6832
+ this.initIcons(), this.on(Qe, function() {
6857
6833
  e.setAttr("data-state", "pause");
6858
6834
  }), this.on(fe, function() {
6859
6835
  e.setAttr("data-state", "play");
@@ -6936,7 +6912,7 @@ var Kt = {
6936
6912
  return `
6937
6913
  <xg-mini-layer class="xg-mini-layer">
6938
6914
  <xg-mini-header class="xgplayer-mini-header">
6939
- `.concat(Ne(this, "MINI_DRAG", this.playerConfig.isHideTips), `
6915
+ `.concat(Me(this, "MINI_DRAG", this.playerConfig.isHideTips), `
6940
6916
  </xg-mini-header>
6941
6917
  <div class="mini-cancel-btn">
6942
6918
  <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
@@ -6969,7 +6945,7 @@ var Kt = {
6969
6945
  };
6970
6946
  }
6971
6947
  }]), r;
6972
- }(U), ft = {
6948
+ }(U), ht = {
6973
6949
  mouseenter: "onMouseEnter",
6974
6950
  mouseleave: "onMouseLeave",
6975
6951
  mousemove: "onMouseMove"
@@ -6990,7 +6966,7 @@ var Kt = {
6990
6966
  var l = v(t), u = l.playerConfig, c = l.player;
6991
6967
  !u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
6992
6968
  autoHide: !1
6993
- }) : c.focus(), t.emit(Un);
6969
+ }) : c.focus(), t.emit(Vn);
6994
6970
  }), _(v(t), "onMouseLeave", function(s) {
6995
6971
  var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, f = l.closeDelayBlur;
6996
6972
  !u && !f && (c ? t.player.focus({
@@ -6998,11 +6974,11 @@ var Kt = {
6998
6974
  delay: c
6999
6975
  }) : t.player.blur({
7000
6976
  ignorePaused: !0
7001
- })), t.emit(Hn);
6977
+ })), t.emit(Un);
7002
6978
  }), _(v(t), "onVideoClick", function(s) {
7003
6979
  var l = v(t), u = l.player, c = l.playerConfig;
7004
6980
  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() {
7005
- t._clickCount && (t._clickCount--, ke(v(t), Yt[0], function(f, d) {
6981
+ t._clickCount && (t._clickCount--, Ce(v(t), Yt[0], function(f, d) {
7006
6982
  t.switchPlayPause(d.e);
7007
6983
  }, {
7008
6984
  e: s,
@@ -7016,7 +6992,7 @@ var Kt = {
7016
6992
  t._clickCount = 0;
7017
6993
  return;
7018
6994
  }
7019
- t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), ke(v(t), Yt[1], function(f, d) {
6995
+ t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Ce(v(t), Yt[1], function(f, d) {
7020
6996
  t.emitUserAction(d.e, "switch_fullscreen", {
7021
6997
  props: "fullscreen",
7022
6998
  from: u.fullscreen,
@@ -7043,8 +7019,8 @@ var Kt = {
7043
7019
  key: "initEvents",
7044
7020
  value: function() {
7045
7021
  var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
7046
- s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(ft).map(function(u) {
7047
- s.addEventListener(u, e[ft[u]], !1);
7022
+ s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(ht).map(function(u) {
7023
+ s.addEventListener(u, e[ht[u]], !1);
7048
7024
  }), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
7049
7025
  }
7050
7026
  }, {
@@ -7066,8 +7042,8 @@ var Kt = {
7066
7042
  key: "destroy",
7067
7043
  value: function() {
7068
7044
  var e = this, i = this.player, n = i.video, s = i.root;
7069
- this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(ft).map(function(l) {
7070
- s.removeEventListener(l, e[ft[l]], !1);
7045
+ this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(ht).map(function(l) {
7046
+ s.removeEventListener(l, e[ht[l]], !1);
7071
7047
  });
7072
7048
  }
7073
7049
  }], [{
@@ -7081,7 +7057,7 @@ var Kt = {
7081
7057
  return {};
7082
7058
  }
7083
7059
  }]), r;
7084
- }(Me), De = {
7060
+ }(Oe), Le = {
7085
7061
  PRESS: "press",
7086
7062
  PRESS_END: "pressend",
7087
7063
  DOUBlE_CLICK: "doubleclick",
@@ -7120,15 +7096,15 @@ var Ra = /* @__PURE__ */ function() {
7120
7096
  };
7121
7097
  T(this, o), _(this, "onTouchStart", function(e) {
7122
7098
  var i = r._pos, n = r.root, s = gn(e.touches);
7123
- 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(De.TOUCH_START, e);
7099
+ 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(Le.TOUCH_START, e);
7124
7100
  }), _(this, "onTouchCancel", function(e) {
7125
7101
  r.onTouchEnd(e);
7126
7102
  }), _(this, "onTouchEnd", function(e) {
7127
7103
  var i = r._pos, n = r.root;
7128
- 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(De.PRESS_END, e), r.trigger(De.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
7104
+ 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(Le.PRESS_END, e), r.trigger(Le.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
7129
7105
  }), _(this, "onTouchMove", function(e) {
7130
7106
  var i = r._pos, n = r.config, s = gn(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, f = u - i.y;
7131
- Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(De.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(De.TOUCH_MOVE, e));
7107
+ Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(Le.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(Le.TOUCH_MOVE, e));
7132
7108
  }), this._pos = {
7133
7109
  moving: !1,
7134
7110
  start: !1,
@@ -7148,7 +7124,7 @@ var Ra = /* @__PURE__ */ function() {
7148
7124
  value: function(r) {
7149
7125
  var t = this, e = this.config;
7150
7126
  this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
7151
- t.trigger(De.PRESS, r), t._pos.press = !0, t.__clearPress();
7127
+ t.trigger(Le.PRESS, r), t._pos.press = !0, t.__clearPress();
7152
7128
  }, e.pressDelay);
7153
7129
  }
7154
7130
  }, {
@@ -7161,11 +7137,11 @@ var Ra = /* @__PURE__ */ function() {
7161
7137
  value: function(r) {
7162
7138
  var t = this, e = this.config;
7163
7139
  if (this.dbIntrvalId) {
7164
- this.__clearDb(), this.trigger(De.DOUBlE_CLICK, r);
7140
+ this.__clearDb(), this.trigger(Le.DOUBlE_CLICK, r);
7165
7141
  return;
7166
7142
  }
7167
7143
  this.dbIntrvalId = setTimeout(function() {
7168
- t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(De.CLICK, r);
7144
+ t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(Le.CLICK, r);
7169
7145
  }, e.dbClickDelay);
7170
7146
  }
7171
7147
  }, {
@@ -7224,7 +7200,7 @@ function Oa() {
7224
7200
  <path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
7225
7201
  </svg>`, "image/svg+xml").firstChild;
7226
7202
  }
7227
- var Ge = {
7203
+ var We = {
7228
7204
  AUTO: "auto",
7229
7205
  SEEKING: "seeking",
7230
7206
  PLAYBACK: "playbackrate",
@@ -7263,7 +7239,7 @@ var Ge = {
7263
7239
  }, 10), !!l.isStart) {
7264
7240
  l.scope > -1 && i.cancelable && i.preventDefault();
7265
7241
  var c = e.config, f = c.disableGesture, d = c.gestureX;
7266
- !f && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Ge.AUTO);
7242
+ !f && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(We.AUTO);
7267
7243
  }
7268
7244
  }), _(v(e), "onRootTouchMove", function(i) {
7269
7245
  e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
@@ -7323,10 +7299,10 @@ var Ge = {
7323
7299
  d.preventDefault();
7324
7300
  }), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
7325
7301
  var u = this.player.controls;
7326
- u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(xe, function() {
7302
+ u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Se, function() {
7327
7303
  var d = e.player, g = e.config;
7328
7304
  d.duration > 0 && d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
7329
- }), this.on([Te, Ve], function() {
7305
+ }), this.on([we, Ue], function() {
7330
7306
  var d = e.pos, g = d.time, p = d.isStart;
7331
7307
  !p && g > 0 && (e.pos.time = 0);
7332
7308
  });
@@ -7349,7 +7325,7 @@ var Ge = {
7349
7325
  e.activeSeekNote(d.currentTime, d.forward);
7350
7326
  }), ["dragend", "click"].forEach(function(d) {
7351
7327
  f.addCallBack(d, function() {
7352
- e.changeAction(Ge.AUTO);
7328
+ e.changeAction(We.AUTO);
7353
7329
  });
7354
7330
  }));
7355
7331
  }
@@ -7455,7 +7431,7 @@ var Ge = {
7455
7431
  }, 500);
7456
7432
  break;
7457
7433
  }
7458
- this.changeAction(Ge.AUTO);
7434
+ this.changeAction(We.AUTO);
7459
7435
  }
7460
7436
  }, {
7461
7437
  key: "checkIsRootTarget",
@@ -7493,7 +7469,7 @@ var Ge = {
7493
7469
  key: "onClick",
7494
7470
  value: function(e) {
7495
7471
  var i = this, n = this.player;
7496
- ke(this, Xt[0], function(s, l) {
7472
+ Ce(this, Xt[0], function(s, l) {
7497
7473
  i.clickHandler(l.e);
7498
7474
  }, {
7499
7475
  e,
@@ -7504,7 +7480,7 @@ var Ge = {
7504
7480
  key: "onDbClick",
7505
7481
  value: function(e) {
7506
7482
  var i = this, n = this.player;
7507
- ke(this, Xt[1], function(s, l) {
7483
+ Ce(this, Xt[1], function(s, l) {
7508
7484
  i.dbClickHandler(l.e);
7509
7485
  }, {
7510
7486
  e,
@@ -7519,7 +7495,7 @@ var Ge = {
7519
7495
  prop: "playbackRate",
7520
7496
  from: s.playbackRate,
7521
7497
  to: n.pressRate
7522
- }), s.playbackRate = n.pressRate, this.changeAction(Ge.PLAYBACK));
7498
+ }), s.playbackRate = n.pressRate, this.changeAction(We.PLAYBACK));
7523
7499
  }
7524
7500
  }, {
7525
7501
  key: "onPressEnd",
@@ -7529,7 +7505,7 @@ var Ge = {
7529
7505
  prop: "playbackRate",
7530
7506
  from: s.playbackRate,
7531
7507
  to: i.rate
7532
- }), s.playbackRate = i.rate, i.rate = 1, this.changeAction(Ge.AUTO));
7508
+ }), s.playbackRate = i.rate, i.rate = 1, this.changeAction(We.AUTO));
7533
7509
  }
7534
7510
  }, {
7535
7511
  key: "updateTime",
@@ -7564,7 +7540,7 @@ var Ge = {
7564
7540
  value: function(e) {
7565
7541
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = this.player, s = this.config, l = !(this.duration !== 1 / 0 && this.duration > 0);
7566
7542
  if (!(!e || typeof e != "number" || l || s.disableActive)) {
7567
- e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(Ge.SEEKING);
7543
+ e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(We.SEEKING);
7568
7544
  var u = n.plugins.start;
7569
7545
  u && u.focusHide(), this.find(".xg-dur").innerHTML = h.format(this.duration), this.find(".xg-cur").innerHTML = h.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? h.removeClass(this.find(".xg-seek-show"), "xg-back") : h.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
7570
7546
  }
@@ -7904,7 +7880,7 @@ var vn = /* @__PURE__ */ function(o) {
7904
7880
  if (f === e) {
7905
7881
  if (!d && !(n && p)) {
7906
7882
  var m = n && g || c;
7907
- typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(Wn, X({
7883
+ typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(Gn, X({
7908
7884
  key: s[l],
7909
7885
  target: i.target,
7910
7886
  isPress: n
@@ -7951,7 +7927,7 @@ var vn = /* @__PURE__ */ function(o) {
7951
7927
  };
7952
7928
  }
7953
7929
  }]), r;
7954
- }(Me);
7930
+ }(Oe);
7955
7931
  function Fa() {
7956
7932
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
7957
7933
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
@@ -8372,19 +8348,19 @@ var Ba = /* @__PURE__ */ function(o) {
8372
8348
  key: "listenEvents",
8373
8349
  value: function() {
8374
8350
  var e = this;
8375
- this.on(xe, function() {
8351
+ this.on(Se, function() {
8376
8352
  e.onMouseLeave();
8377
8353
  }), this.on(ce, function() {
8378
8354
  e.onTimeupdate();
8379
- }), this.on(Ee, function() {
8355
+ }), this.on(Te, function() {
8380
8356
  e.onTimeupdate(), e.onCacheUpdate();
8381
- }), this.on(Nn, function() {
8357
+ }), this.on(Fn, function() {
8382
8358
  e.onCacheUpdate();
8383
- }), this.on(Ve, function() {
8359
+ }), this.on(Ue, function() {
8384
8360
  e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
8385
- }), this.on(ze, function() {
8361
+ }), this.on(Ve, function() {
8386
8362
  e.onReset();
8387
- }), this.on(Oe, function() {
8363
+ }), this.on(Re, function() {
8388
8364
  e.onVideoResize();
8389
8365
  });
8390
8366
  }
@@ -8624,7 +8600,7 @@ var Ba = /* @__PURE__ */ function(o) {
8624
8600
  return mn;
8625
8601
  }
8626
8602
  }]), r;
8627
- }(U), je = /* @__PURE__ */ function(o) {
8603
+ }(U), ze = /* @__PURE__ */ function(o) {
8628
8604
  S(r, o);
8629
8605
  var a = x(r);
8630
8606
  function r() {
@@ -8682,7 +8658,7 @@ var Ba = /* @__PURE__ */ function(o) {
8682
8658
  key: "listenEvents",
8683
8659
  value: function() {
8684
8660
  var e = this, i = this.player;
8685
- this.on([fe, et, ot, ze], function() {
8661
+ this.on([fe, Qe, lt, Ve], function() {
8686
8662
  e.animate(i.paused);
8687
8663
  });
8688
8664
  }
@@ -8726,7 +8702,7 @@ var Ba = /* @__PURE__ */ function(o) {
8726
8702
  return `<xg-icon class="xgplayer-play">
8727
8703
  <div class="xgplayer-icon">
8728
8704
  </div>
8729
- `.concat(Ne(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
8705
+ `.concat(Me(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
8730
8706
  </xg-icon>`);
8731
8707
  }
8732
8708
  }], [{
@@ -8744,7 +8720,7 @@ var Ba = /* @__PURE__ */ function(o) {
8744
8720
  };
8745
8721
  }
8746
8722
  }]), r;
8747
- }(je);
8723
+ }(ze);
8748
8724
  function ja() {
8749
8725
  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">
8750
8726
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
@@ -8856,7 +8832,7 @@ var Ya = /* @__PURE__ */ function(o) {
8856
8832
  to: !c
8857
8833
  });
8858
8834
  }
8859
- }), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(we, function(l) {
8835
+ }), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(be, function(l) {
8860
8836
  var u = e.find(".xg-tips");
8861
8837
  u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
8862
8838
  }), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
@@ -8917,7 +8893,7 @@ var Ya = /* @__PURE__ */ function(o) {
8917
8893
  return `<xg-icon class="xgplayer-fullscreen">
8918
8894
  <div class="xgplayer-icon">
8919
8895
  </div>
8920
- `.concat(Ne(this, e, this.playerConfig.isHideTips), `
8896
+ `.concat(Me(this, e, this.playerConfig.isHideTips), `
8921
8897
  </xg-icon>`);
8922
8898
  }
8923
8899
  }
@@ -8961,7 +8937,7 @@ var Ya = /* @__PURE__ */ function(o) {
8961
8937
  };
8962
8938
  }
8963
8939
  }]), r;
8964
- }(je), $a = /* @__PURE__ */ function(o) {
8940
+ }(ze), $a = /* @__PURE__ */ function(o) {
8965
8941
  S(r, o);
8966
8942
  var a = x(r);
8967
8943
  function r(t) {
@@ -8995,11 +8971,11 @@ var Ya = /* @__PURE__ */ function(o) {
8995
8971
  key: "listenEvents",
8996
8972
  value: function() {
8997
8973
  var e = this;
8998
- this.on([xe, Ee, ce], function(i) {
8974
+ this.on([Se, Te, ce], function(i) {
8999
8975
  i.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
9000
- }), this.on(Ve, function() {
8976
+ }), this.on(Ue, function() {
9001
8977
  e.onTimeUpdate(!0);
9002
- }), this.on(ze, function() {
8978
+ }), this.on(Ve, function() {
9003
8979
  e.onReset();
9004
8980
  });
9005
8981
  }
@@ -9083,7 +9059,7 @@ var Ya = /* @__PURE__ */ function(o) {
9083
9059
  var e = this, i = this.player, n = function() {
9084
9060
  e.isActiving = !1;
9085
9061
  };
9086
- this.off(Ee, n), i.isSeeking && i.media.seeking ? this.once(Ee, n) : this.isActiving = !1;
9062
+ this.off(Te, n), i.isSeeking && i.media.seeking ? this.once(Te, n) : this.isActiving = !1;
9087
9063
  }
9088
9064
  }, {
9089
9065
  key: "destroy",
@@ -9173,7 +9149,7 @@ var Ya = /* @__PURE__ */ function(o) {
9173
9149
  return E(r, [{
9174
9150
  key: "afterCreate",
9175
9151
  value: function() {
9176
- this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(xe, this._onDurationChange), this.on(Se, this._onLoadedData), this.on(ce, this._onTimeupdate), this.on(It, this._onSeeking), this.on(fe, this._onPlay);
9152
+ this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Se, this._onDurationChange), this.on(Ee, this._onLoadedData), this.on(ce, this._onTimeupdate), this.on(It, this._onSeeking), this.on(fe, this._onPlay);
9177
9153
  }
9178
9154
  }, {
9179
9155
  key: "setConfig",
@@ -9254,7 +9230,7 @@ var Ya = /* @__PURE__ */ function(o) {
9254
9230
  };
9255
9231
  }
9256
9232
  }]), r;
9257
- }(Me);
9233
+ }(Oe);
9258
9234
  function qa() {
9259
9235
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9260
9236
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
@@ -9354,7 +9330,7 @@ var Qa = /* @__PURE__ */ function(o) {
9354
9330
  pre: function(u) {
9355
9331
  u.preventDefault(), u.stopPropagation();
9356
9332
  }
9357
- }), 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(On, this.onVolumeChange), this.once(Se, this.onVolumeChange), h.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9333
+ }), 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(Mn, this.onVolumeChange), this.once(Ee, this.onVolumeChange), h.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9358
9334
  }
9359
9335
  }
9360
9336
  }, {
@@ -9497,7 +9473,7 @@ var to = /* @__PURE__ */ function(o) {
9497
9473
  value: function() {
9498
9474
  var e = this;
9499
9475
  if (!this.config.disable) {
9500
- A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(Oe, function() {
9476
+ A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(Re, function() {
9501
9477
  e.rotateDeg && e.config.innerRotate && h.setTimeout(e, function() {
9502
9478
  e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
9503
9479
  }, 100);
@@ -9542,7 +9518,7 @@ var to = /* @__PURE__ */ function(o) {
9542
9518
  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;
9543
9519
  this.rotateDeg || (this.rotateDeg = 0);
9544
9520
  var l = e ? 1 : -1;
9545
- this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(zn, this.rotateDeg * 360);
9521
+ this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(jn, this.rotateDeg * 360);
9546
9522
  }
9547
9523
  }, {
9548
9524
  key: "registerIcons",
@@ -9559,7 +9535,7 @@ var to = /* @__PURE__ */ function(o) {
9559
9535
  <xg-icon class="xgplayer-rotate">
9560
9536
  <div class="xgplayer-icon">
9561
9537
  </div>
9562
- `.concat(Ne(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
9538
+ `.concat(Me(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
9563
9539
  </xg-icon>`);
9564
9540
  }
9565
9541
  }], [{
@@ -9580,7 +9556,7 @@ var to = /* @__PURE__ */ function(o) {
9580
9556
  };
9581
9557
  }
9582
9558
  }]), r;
9583
- }(je);
9559
+ }(ze);
9584
9560
  function io() {
9585
9561
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9586
9562
  <path fill-rule="evenodd" clip-rule="evenodd"
@@ -9598,7 +9574,7 @@ function no() {
9598
9574
  fill="white" />
9599
9575
  </svg>`, "image/svg+xml").firstChild;
9600
9576
  }
9601
- var Ke = {
9577
+ var Ge = {
9602
9578
  PIP: "picture-in-picture",
9603
9579
  INLINE: "inline",
9604
9580
  FULLSCREEN: "fullscreen"
@@ -9633,7 +9609,7 @@ var Ke = {
9633
9609
  key: "afterCreate",
9634
9610
  value: function() {
9635
9611
  var e = this;
9636
- this.isPIPAvailable() && (A(I(r.prototype), "afterCreate", this).call(this), this.pMode = Ke.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Pt, function() {
9612
+ this.isPIPAvailable() && (A(I(r.prototype), "afterCreate", this).call(this), this.pMode = Ge.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Pt, function() {
9637
9613
  e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
9638
9614
  }));
9639
9615
  }
@@ -9670,7 +9646,7 @@ var Ke = {
9670
9646
  i.emit(ai, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
9671
9647
  }, this.onWebkitpresentationmodechanged = function(n) {
9672
9648
  var s = i.media.webkitPresentationMode;
9673
- e.pMode === Ke.FULLSCREEN && s !== Ke.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Ke.PIP ? e.enterPIPCallback(n) : s === Ke.INLINE && e.leavePIPCallback(n);
9649
+ e.pMode === Ge.FULLSCREEN && s !== Ge.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Ge.PIP ? e.enterPIPCallback(n) : s === Ge.INLINE && e.leavePIPCallback(n);
9674
9650
  }, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
9675
9651
  }
9676
9652
  }, {
@@ -9747,7 +9723,7 @@ var Ke = {
9747
9723
  key: "isPip",
9748
9724
  get: function() {
9749
9725
  var e, i = this.player;
9750
- return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === Ke.PIP;
9726
+ return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === Ge.PIP;
9751
9727
  }
9752
9728
  }, {
9753
9729
  key: "isPIPAvailable",
@@ -9774,7 +9750,7 @@ var Ke = {
9774
9750
  return `<xg-icon class="xgplayer-pip">
9775
9751
  <div class="xgplayer-icon xg-icon-disable">
9776
9752
  </div>
9777
- `.concat(Ne(this, "PIP", this.playerConfig.isHideTips), `
9753
+ `.concat(Me(this, "PIP", this.playerConfig.isHideTips), `
9778
9754
  </xg-icon>`);
9779
9755
  }
9780
9756
  }], [{
@@ -9802,7 +9778,7 @@ var Ke = {
9802
9778
  return typeof e.webkitSetPresentationMode == "function";
9803
9779
  }
9804
9780
  }]), r;
9805
- }(je);
9781
+ }(ze);
9806
9782
  function so() {
9807
9783
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
9808
9784
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
@@ -9857,7 +9833,7 @@ var ao = /* @__PURE__ */ function(o) {
9857
9833
  <xg-icon class="xgplayer-playnext">
9858
9834
  <div class="xgplayer-icon">
9859
9835
  </div>
9860
- `.concat(Ne(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
9836
+ `.concat(Me(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
9861
9837
  </xg-icon>
9862
9838
  `);
9863
9839
  }
@@ -9877,7 +9853,7 @@ var ao = /* @__PURE__ */ function(o) {
9877
9853
  };
9878
9854
  }
9879
9855
  }]), r;
9880
- }(U), gt = { exports: {} }, oo = gt.exports, yn;
9856
+ }(U), pt = { exports: {} }, oo = pt.exports, yn;
9881
9857
  function lo() {
9882
9858
  return yn || (yn = 1, function(o, a) {
9883
9859
  (function(r, t) {
@@ -9910,9 +9886,9 @@ function lo() {
9910
9886
  }
9911
9887
  m = u instanceof g ? u : new g([u], { type: l });
9912
9888
  function O(L) {
9913
- var ee = L.split(/[:;,]/), q = ee[1], F = ee[2] == "base64" ? atob : decodeURIComponent, ie = F(ee.pop()), ae = ie.length, oe = 0, be = new Uint8Array(ae);
9914
- for (oe; oe < ae; ++oe) be[oe] = ie.charCodeAt(oe);
9915
- return new g([be], { type: q });
9889
+ var ee = L.split(/[:;,]/), q = ee[1], F = ee[2] == "base64" ? atob : decodeURIComponent, ie = F(ee.pop()), ae = ie.length, oe = 0, ke = new Uint8Array(ae);
9890
+ for (oe; oe < ae; ++oe) ke[oe] = ie.charCodeAt(oe);
9891
+ return new g([ke], { type: q });
9916
9892
  }
9917
9893
  function z(L, ee) {
9918
9894
  if ("download" in f)
@@ -9948,7 +9924,7 @@ Use Save As... to download, then click back to return to this page.`) && (locati
9948
9924
  return !0;
9949
9925
  };
9950
9926
  });
9951
- }(gt)), gt.exports;
9927
+ }(pt)), pt.exports;
9952
9928
  }
9953
9929
  var uo = lo();
9954
9930
  const co = /* @__PURE__ */ ci(uo);
@@ -10023,7 +9999,7 @@ var ho = /* @__PURE__ */ function(o) {
10023
9999
  return `<xg-icon class="xgplayer-download">
10024
10000
  <div class="xgplayer-icon">
10025
10001
  </div>
10026
- `.concat(Ne(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
10002
+ `.concat(Me(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
10027
10003
  </xg-icon>`);
10028
10004
  }
10029
10005
  }], [{
@@ -10041,7 +10017,7 @@ var ho = /* @__PURE__ */ function(o) {
10041
10017
  };
10042
10018
  }
10043
10019
  }]), r;
10044
- }(je), go = /* @__PURE__ */ function(o) {
10020
+ }(ze), go = /* @__PURE__ */ function(o) {
10045
10021
  S(r, o);
10046
10022
  var a = x(r);
10047
10023
  function r() {
@@ -10059,7 +10035,7 @@ var ho = /* @__PURE__ */ function(o) {
10059
10035
  var e = this.config;
10060
10036
  this.initSize = function(i) {
10061
10037
  e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
10062
- }, this.once(Oe, this.initSize);
10038
+ }, this.once(Re, this.initSize);
10063
10039
  }
10064
10040
  }, {
10065
10041
  key: "onPluginsReady",
@@ -10096,7 +10072,7 @@ var ho = /* @__PURE__ */ function(o) {
10096
10072
  e.preventDefault(), e.stopPropagation(), this.emitUserAction(e, "shot");
10097
10073
  var n = this.config;
10098
10074
  this.shot(n.width, n.height).then(function(s) {
10099
- i.emit(jn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
10075
+ i.emit(Wn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
10100
10076
  });
10101
10077
  }
10102
10078
  }, {
@@ -10129,7 +10105,7 @@ var ho = /* @__PURE__ */ function(o) {
10129
10105
  }, {
10130
10106
  key: "destroy",
10131
10107
  value: function() {
10132
- A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(Oe, this.initSize);
10108
+ A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(Re, this.initSize);
10133
10109
  }
10134
10110
  }, {
10135
10111
  key: "render",
@@ -10167,7 +10143,7 @@ var ho = /* @__PURE__ */ function(o) {
10167
10143
  };
10168
10144
  }
10169
10145
  }]), r;
10170
- }(je), po = /* @__PURE__ */ function() {
10146
+ }(ze), po = /* @__PURE__ */ function() {
10171
10147
  function o(a) {
10172
10148
  T(this, o), this.config = a.config, this.parent = a.root, this.root = h.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), a.root.appendChild(this.root);
10173
10149
  var r = this.config.maxHeight;
@@ -10243,14 +10219,14 @@ var ho = /* @__PURE__ */ function(o) {
10243
10219
  SIDE: "side",
10244
10220
  MIDDLE: "middle",
10245
10221
  DEFAULT: "default"
10246
- }, Ye = {
10222
+ }, Ke = {
10247
10223
  CLICK: "click",
10248
10224
  HOVER: "hover"
10249
10225
  };
10250
10226
  function vo(o, a) {
10251
10227
  return o === me.SIDE ? a === G.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10252
10228
  }
10253
- var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
10229
+ var Fe = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
10254
10230
  S(r, o);
10255
10231
  var a = x(r);
10256
10232
  function r(t) {
@@ -10262,7 +10238,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
10262
10238
  }), _(v(e), "switchActiveState", function(i) {
10263
10239
  i.stopPropagation();
10264
10240
  var n = e.config.toggleMode;
10265
- n === Ye.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
10241
+ n === Ke.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
10266
10242
  }), _(v(e), "onLeave", function(i) {
10267
10243
  i.stopPropagation(), e.emit("icon_mouseleave", {
10268
10244
  pluginName: e.pluginName
@@ -10282,13 +10258,13 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
10282
10258
  key: "afterCreate",
10283
10259
  value: function() {
10284
10260
  var e = this, i = this.config;
10285
- this.initIcons(), Be = Be || this.domEventType === "touch", Be && R.device === "mobile" && i.listType === me.DEFAULT && (i.listType = me.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([Oe, we], function() {
10261
+ this.initIcons(), Fe = Fe || this.domEventType === "touch", Fe && R.device === "mobile" && i.listType === me.DEFAULT && (i.listType = me.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([Re, be], function() {
10286
10262
  e._resizeList();
10287
- }), this.once(Te, function() {
10263
+ }), this.once(we, function() {
10288
10264
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
10289
- }), Be && this.on(pi, function() {
10265
+ }), Fe && this.on(pi, function() {
10290
10266
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
10291
- }), Be ? (i.toggleMode = Ye.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ye.CLICK ? "click" : "mouseenter", i.toggleMode === Ye.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
10267
+ }), Fe ? (i.toggleMode = Ke.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ke.CLICK ? "click" : "mouseenter", i.toggleMode === Ke.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
10292
10268
  }
10293
10269
  }, {
10294
10270
  key: "initIcons",
@@ -10336,7 +10312,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
10336
10312
  var n = this.config, s = n.listType, l = n.list;
10337
10313
  this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
10338
10314
  var u = this.config.isItemClickHide;
10339
- (u || Be || s === me.SIDE) && this.toggle(!1);
10315
+ (u || Fe || s === me.SIDE) && this.toggle(!1);
10340
10316
  }
10341
10317
  }, {
10342
10318
  key: "onIconClick",
@@ -10365,7 +10341,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
10365
10341
  onItemClick: function(m, y) {
10366
10342
  n.onItemClick(m, y);
10367
10343
  },
10368
- domEventType: Be ? "touch" : "mouse"
10344
+ domEventType: Fe ? "touch" : "mouse"
10369
10345
  },
10370
10346
  root: s.listType === me.SIDE ? u.innerContainer || u.root : this.root
10371
10347
  };
@@ -10389,7 +10365,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
10389
10365
  key: "destroy",
10390
10366
  value: function() {
10391
10367
  var e = this.config;
10392
- e.toggleMode === Ye.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
10368
+ e.toggleMode === Ke.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
10393
10369
  }
10394
10370
  }, {
10395
10371
  key: "render",
@@ -10417,7 +10393,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
10417
10393
  hidePortrait: !0,
10418
10394
  isShowIcon: !1,
10419
10395
  isItemClickHide: !0,
10420
- toggleMode: Ye.HOVER,
10396
+ toggleMode: Ke.HOVER,
10421
10397
  heightLimit: !0
10422
10398
  };
10423
10399
  }
@@ -10545,7 +10521,7 @@ var Be = R.device === "mobile", xt = /* @__PURE__ */ function(o) {
10545
10521
  key: "afterCreate",
10546
10522
  value: function() {
10547
10523
  var e = this;
10548
- A(I(r.prototype), "afterCreate", this).call(this), this.on(Mn, function() {
10524
+ A(I(r.prototype), "afterCreate", this).call(this), this.on(Nn, function() {
10549
10525
  e.curValue !== e.player.playbackRate && e.renderItemList();
10550
10526
  }), this.renderItemList();
10551
10527
  }
@@ -10703,7 +10679,7 @@ var _n = /* @__PURE__ */ function(o) {
10703
10679
  return `<xg-icon class='xgplayer-cssfullscreen'>
10704
10680
  <div class="xgplayer-icon">
10705
10681
  </div>
10706
- `.concat(Ne(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
10682
+ `.concat(Me(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
10707
10683
  </xg-icon>`);
10708
10684
  }
10709
10685
  }], [{
@@ -10722,7 +10698,7 @@ var _n = /* @__PURE__ */ function(o) {
10722
10698
  };
10723
10699
  }
10724
10700
  }]), r;
10725
- }(je), ko = /* @__PURE__ */ function(o) {
10701
+ }(ze), ko = /* @__PURE__ */ function(o) {
10726
10702
  S(r, o);
10727
10703
  var a = x(r);
10728
10704
  function r() {
@@ -10736,7 +10712,7 @@ var _n = /* @__PURE__ */ function(o) {
10736
10712
  pre: function(n) {
10737
10713
  n.preventDefault(), n.stopPropagation();
10738
10714
  }
10739
- }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(ot, function(i) {
10715
+ }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(lt, function(i) {
10740
10716
  e.onError(i);
10741
10717
  });
10742
10718
  }
@@ -10871,7 +10847,7 @@ var _n = /* @__PURE__ */ function(o) {
10871
10847
  width: 6,
10872
10848
  height: 6
10873
10849
  };
10874
- function nr(o) {
10850
+ function rr(o) {
10875
10851
  Object.keys(Cn).map(function(a) {
10876
10852
  o[a] === void 0 && (o[a] = Cn[a]);
10877
10853
  });
@@ -10893,7 +10869,7 @@ var kn = {
10893
10869
  },
10894
10870
  createDot: function(a) {
10895
10871
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
10896
- if (t && (r && (nr(a), this._ispots.push(a)), !(!this.ispotsInit && r))) {
10872
+ if (t && (r && (rr(a), this._ispots.push(a)), !(!this.ispotsInit && r))) {
10897
10873
  var e = this.calcuPosition(a.time, a.duration), i = a.style || {};
10898
10874
  i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
10899
10875
  var n = "xgspot_".concat(a.id, " xgplayer-spot");
@@ -11020,17 +10996,17 @@ function wo(o) {
11020
10996
  });
11021
10997
  var t = r.config.progressDot || a.ispots || [];
11022
10998
  o._ispots = t.map(function(e) {
11023
- return nr(e), e;
10999
+ return rr(e), e;
11024
11000
  }), o.ispotsInit = !1, o.playerSize = {
11025
11001
  left: r.sizeInfo.left,
11026
11002
  width: r.sizeInfo.width
11027
- }, o.on(xe, function() {
11003
+ }, o.on(Se, function() {
11028
11004
  o.ispotsInit ? o.updateDuration() : o.initDots();
11029
- }), o.on(Oe, function() {
11005
+ }), o.on(Re, function() {
11030
11006
  o.positionDots();
11031
11007
  });
11032
11008
  }
11033
- var $e = {
11009
+ var Ye = {
11034
11010
  dragmove: "onProgressMove",
11035
11011
  dragstart: "onProgressDragStart",
11036
11012
  dragend: "onProgressDragEnd",
@@ -11088,7 +11064,7 @@ var $e = {
11088
11064
  n.seekTime && e.player.seek(n.seekTime);
11089
11065
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
11090
11066
  e.setTimeContent(h.format(i));
11091
- }), wo(this), this.on(xe, function() {
11067
+ }), wo(this), this.on(Se, function() {
11092
11068
  e.show();
11093
11069
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
11094
11070
  }
@@ -11110,8 +11086,8 @@ var $e = {
11110
11086
  key: "bindEvents",
11111
11087
  value: function() {
11112
11088
  var e = this, i = this.player.plugins.progress;
11113
- if (i && (Object.keys($e).map(function(s) {
11114
- e[$e[s]] = e[$e[s]].bind(e), i.addCallBack(s, e[$e[s]]);
11089
+ if (i && (Object.keys(Ye).map(function(s) {
11090
+ e[Ye[s]] = e[Ye[s]].bind(e), i.addCallBack(s, e[Ye[s]]);
11115
11091
  }), R.device !== "mobile")) {
11116
11092
  this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
11117
11093
  var n = this.hook("previewClick", function() {
@@ -11269,8 +11245,8 @@ var $e = {
11269
11245
  key: "destroy",
11270
11246
  value: function() {
11271
11247
  var e = this, i = this.player.plugins.progress;
11272
- i && Object.keys($e).map(function(n) {
11273
- i.removeCallBack(n, e[$e[n]]);
11248
+ i && Object.keys(Ye).map(function(n) {
11249
+ i.removeCallBack(n, e[Ye[n]]);
11274
11250
  }), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
11275
11251
  }
11276
11252
  }, {
@@ -11323,7 +11299,7 @@ var $e = {
11323
11299
  key: "afterCreate",
11324
11300
  value: function() {
11325
11301
  var e = this;
11326
- this.usable && this.initThumbnail(), this.on([xe], function() {
11302
+ this.usable && this.initThumbnail(), this.on([Se], function() {
11327
11303
  var i = e.config, n = i.pic_num, s = i.interval;
11328
11304
  e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
11329
11305
  });
@@ -11479,7 +11455,7 @@ var So = /* @__PURE__ */ function(o) {
11479
11455
  key: "afterCreate",
11480
11456
  value: function() {
11481
11457
  var e = this;
11482
- this.root && (this.on(ce, this.onTimeupdate), this.on(ze, function() {
11458
+ this.root && (this.on(ce, this.onTimeupdate), this.on(Ve, function() {
11483
11459
  e.reset();
11484
11460
  }));
11485
11461
  }
@@ -11531,7 +11507,7 @@ var So = /* @__PURE__ */ function(o) {
11531
11507
  };
11532
11508
  }
11533
11509
  }]), r;
11534
- }(U), Xe = {
11510
+ }(U), $e = {
11535
11511
  REAL_TIME: "realtime",
11536
11512
  FIRST_FRAME: "firstframe",
11537
11513
  FRAME_RATE: "framerate",
@@ -11552,7 +11528,7 @@ function Io() {
11552
11528
  return !1;
11553
11529
  }
11554
11530
  }
11555
- var ht = null, Po = /* @__PURE__ */ function(o) {
11531
+ var dt = null, Po = /* @__PURE__ */ function(o) {
11556
11532
  S(r, o);
11557
11533
  var a = x(r);
11558
11534
  function r() {
@@ -11574,7 +11550,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11574
11550
  }
11575
11551
  }), _(v(t), "start", function(s, l) {
11576
11552
  var u = t.player.video, c = xo(), f = t.checkVideoIsSupport(u);
11577
- !f || !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 === Xe.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(v(t), t.start, l) : h.requestAnimationFrame(t.start));
11553
+ !f || !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 === $e.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(v(t), t.start, l) : h.requestAnimationFrame(t.start));
11578
11554
  }), _(v(t), "stop", function() {
11579
11555
  t.frameId && (t._loopType === "timer" ? h.clearTimeout(v(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
11580
11556
  }), t;
@@ -11593,16 +11569,16 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11593
11569
  x: 0,
11594
11570
  y: 0,
11595
11571
  pi: 0
11596
- }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== Xe.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Pt, function() {
11572
+ }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== $e.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Pt, function() {
11597
11573
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
11598
- }), s !== Xe.POSTER && (s !== Xe.FIRST_FRAME && (this.on(ze, function() {
11574
+ }), s !== $e.POSTER && (s !== $e.FIRST_FRAME && (this.on(Ve, function() {
11599
11575
  e.stop();
11600
11576
  }), this.on(fe, function() {
11601
11577
  var u = e.config.startInterval;
11602
11578
  e._checkIfCanStart() && e.start(0, u);
11603
- }), this.on(et, function() {
11579
+ }), this.on(Qe, function() {
11604
11580
  e.stop();
11605
- })), this.on(Se, this.onLoadedData), this.on(gi, function() {
11581
+ })), this.on(Ee, this.onLoadedData), this.on(gi, function() {
11606
11582
  e._isLoaded = !1, e.stop();
11607
11583
  }), document.addEventListener("visibilitychange", this.onVisibilitychange)));
11608
11584
  }
@@ -11624,7 +11600,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11624
11600
  s || (s = n.isInnerRender && i.innerContainer || i.root), s.insertAdjacentHTML("afterbegin", '<div class="xgplayer-dynamic-bg" data-index="'.concat(n.index, `"><canvas>
11625
11601
  </canvas><xgmask></xgmask></div>`)), this.root = s.children[0], this.canvas = this.find("canvas"), this.canvasFilter || (this.canvas.style.filter = n.filter, this.canvas.style.webkitFilter = n.filter), this.mask = this.find("xgmask"), n.addMask && (this.mask.style.background = n.maskBg), this.canvasCtx = this.canvas.getContext("2d");
11626
11602
  } catch (l) {
11627
- M.logError("plugin:DynamicBg", l);
11603
+ N.logError("plugin:DynamicBg", l);
11628
11604
  }
11629
11605
  }
11630
11606
  }, {
@@ -11667,7 +11643,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11667
11643
  key: "_checkIfCanStart",
11668
11644
  value: function() {
11669
11645
  var e = this.config.mode;
11670
- return this._isLoaded && !this.player.paused && e !== Xe.FIRST_FRAME && e !== Xe.POSTER;
11646
+ return this._isLoaded && !this.player.paused && e !== $e.FIRST_FRAME && e !== $e.POSTER;
11671
11647
  }
11672
11648
  }, {
11673
11649
  key: "renderOnce",
@@ -11708,7 +11684,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11708
11684
  }
11709
11685
  this.canvasFilter && (this.canvasCtx.filter = s.filter), this.canvasCtx.drawImage(e, n.x, n.y, n.rwidth, n.rheight);
11710
11686
  } catch (p) {
11711
- M.logError("plugin:DynamicBg", p);
11687
+ N.logError("plugin:DynamicBg", p);
11712
11688
  }
11713
11689
  }
11714
11690
  }, {
@@ -11746,7 +11722,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11746
11722
  }, {
11747
11723
  key: "isSupport",
11748
11724
  get: function() {
11749
- return typeof ht == "boolean" || (ht = Io()), ht;
11725
+ return typeof dt == "boolean" || (dt = Io()), dt;
11750
11726
  }
11751
11727
  }, {
11752
11728
  key: "supportCanvasFilter",
@@ -11829,7 +11805,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11829
11805
  FORWARD: "快进中",
11830
11806
  LIVE_TIP: "直播"
11831
11807
  }
11832
- }, nt = "info", Zt = Xn, Lo = /* @__PURE__ */ function(o) {
11808
+ }, it = "info", Zt = qn, Lo = /* @__PURE__ */ function(o) {
11833
11809
  S(r, o);
11834
11810
  var a = x(r);
11835
11811
  function r() {
@@ -11841,7 +11817,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11841
11817
  var l = t._getTime(), u = Object.assign({}, s, {
11842
11818
  msg: s.msg || s.action
11843
11819
  });
11844
- t._stats[nt].push(X(X({
11820
+ t._stats[it].push(X(X({
11845
11821
  type: "userAction"
11846
11822
  }, l), {}, {
11847
11823
  payload: u
@@ -11889,7 +11865,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11889
11865
  key: "_info",
11890
11866
  value: function(e) {
11891
11867
  var i = this._getTime();
11892
- this._stats[nt].push(X(X({}, i), {}, {
11868
+ this._stats[it].push(X(X({}, i), {}, {
11893
11869
  payload: e
11894
11870
  }));
11895
11871
  }
@@ -11915,7 +11891,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11915
11891
  key: "reset",
11916
11892
  value: function() {
11917
11893
  var e;
11918
- this._stats = (e = {}, _(e, nt, []), _(e, "media", {}), e);
11894
+ this._stats = (e = {}, _(e, it, []), _(e, "media", {}), e);
11919
11895
  }
11920
11896
  }, {
11921
11897
  key: "getStats",
@@ -11941,7 +11917,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11941
11917
  }, {
11942
11918
  key: "_getTimeStats",
11943
11919
  value: function() {
11944
- var e = this._stats[nt], i = e.map(function(n) {
11920
+ var e = this._stats[it], i = e.map(function(n) {
11945
11921
  var s = n.payload.data, l = "";
11946
11922
  try {
11947
11923
  s instanceof Error ? l = s.msg : s !== void 0 && (l = JSON.stringify(s));
@@ -11957,7 +11933,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11957
11933
  value: function() {
11958
11934
  var e = {
11959
11935
  traceEvents: []
11960
- }, i = this._stats[nt];
11936
+ }, i = this._stats[it];
11961
11937
  return i.forEach(function(n) {
11962
11938
  n.payload.profile && e.traceEvents.push(n.payload);
11963
11939
  }), e;
@@ -11973,7 +11949,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
11973
11949
  return {};
11974
11950
  }
11975
11951
  }]), r;
11976
- }(Me), rr = /* @__PURE__ */ function(o) {
11952
+ }(Oe), sr = /* @__PURE__ */ function(o) {
11977
11953
  S(r, o);
11978
11954
  var a = x(r);
11979
11955
  function r() {
@@ -12014,7 +11990,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
12014
11990
  key: "afterCreate",
12015
11991
  value: function() {
12016
11992
  var e = this, i = this.config.useGapJump;
12017
- i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(lt, this.onGapJump), this.on(fe, function() {
11993
+ i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(ut, this.onGapJump), this.on(fe, function() {
12018
11994
  e.hasPlayed = !0;
12019
11995
  }), this.on(It, function() {
12020
11996
  e.seekingEventReceived = !0;
@@ -12062,7 +12038,7 @@ var ht = null, Po = /* @__PURE__ */ function(o) {
12062
12038
  }
12063
12039
  }]), r;
12064
12040
  }(U);
12065
- rr.BROWSER_GAP_TOLERANCE = 1e-3;
12041
+ sr.BROWSER_GAP_TOLERANCE = 1e-3;
12066
12042
  var Do = /* @__PURE__ */ function(o) {
12067
12043
  S(r, o);
12068
12044
  var a = x(r);
@@ -12087,7 +12063,7 @@ var Do = /* @__PURE__ */ function(o) {
12087
12063
  key: "afterCreate",
12088
12064
  value: function() {
12089
12065
  var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
12090
- n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(lt, this.onWaiting), this.on([di, Te], function() {
12066
+ n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(ut, this.onWaiting), this.on([di, we], function() {
12091
12067
  clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
12092
12068
  }), this.on(fe, function() {
12093
12069
  e.hasPlayed = !0;
@@ -12109,7 +12085,7 @@ var Do = /* @__PURE__ */ function(o) {
12109
12085
  };
12110
12086
  }
12111
12087
  }]), r;
12112
- }(U), qe = "cdn", dt = ["cdn"], Ro = /* @__PURE__ */ function(o) {
12088
+ }(U), Xe = "cdn", gt = ["cdn"], Ro = /* @__PURE__ */ function(o) {
12113
12089
  S(r, o);
12114
12090
  var a = x(r);
12115
12091
  function r() {
@@ -12118,7 +12094,7 @@ var Do = /* @__PURE__ */ function(o) {
12118
12094
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
12119
12095
  i[n] = arguments[n];
12120
12096
  return t = a.call.apply(a, [this].concat(i)), _(v(t), "getSpeed", function() {
12121
- var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : qe;
12097
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe;
12122
12098
  if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
12123
12099
  return 0;
12124
12100
  var l = 0;
@@ -12128,11 +12104,11 @@ var Do = /* @__PURE__ */ function(o) {
12128
12104
  }), _(v(t), "startTimer", function() {
12129
12105
  h.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
12130
12106
  }), _(v(t), "initSpeedList", function() {
12131
- t.speedListCache = {}, dt.forEach(function(s) {
12107
+ t.speedListCache = {}, gt.forEach(function(s) {
12132
12108
  t.speedListCache[s] = [];
12133
12109
  });
12134
12110
  }), _(v(t), "_onRealSpeedChange", function(s) {
12135
- s.speed && t.appendList(s.speed, s.type || qe);
12111
+ s.speed && t.appendList(s.speed, s.type || Xe);
12136
12112
  }), _(v(t), "testSpeed", function() {
12137
12113
  if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
12138
12114
  var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, f = s.testTimeStep, d = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
@@ -12157,17 +12133,17 @@ var Do = /* @__PURE__ */ function(o) {
12157
12133
  }
12158
12134
  }
12159
12135
  }), _(v(t), "appendList", function(s) {
12160
- var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : qe;
12136
+ var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Xe;
12161
12137
  if (!(!t.speedListCache || !t.speedListCache[l])) {
12162
12138
  var u = t.config.saveSpeedMax;
12163
12139
  t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
12164
12140
  var c = v(t), f = c.player;
12165
- f && (l === qe ? f.realTimeSpeed = s : f[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
12141
+ f && (l === Xe ? f.realTimeSpeed = s : f[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
12166
12142
  }
12167
12143
  }), _(v(t), "updateSpeed", function() {
12168
- var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : qe, l = t.getSpeed(s), u = v(t), c = u.player;
12144
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Xe, l = t.getSpeed(s), u = v(t), c = u.player;
12169
12145
  if (c)
12170
- if (s === qe)
12146
+ if (s === Xe)
12171
12147
  (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(ri, {
12172
12148
  speed: l,
12173
12149
  realTimeSpeed: c.realTimeSpeed
@@ -12185,7 +12161,7 @@ var Do = /* @__PURE__ */ function(o) {
12185
12161
  key: "afterCreate",
12186
12162
  value: function() {
12187
12163
  var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
12188
- (n == null ? void 0 : n.length) > 0 && dt.push.apply(dt, de(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Se, _t], this.startTimer);
12164
+ (n == null ? void 0 : n.length) > 0 && gt.push.apply(gt, de(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ee, _t], this.startTimer);
12189
12165
  }
12190
12166
  }, {
12191
12167
  key: "getSpeedName",
@@ -12212,7 +12188,7 @@ var Do = /* @__PURE__ */ function(o) {
12212
12188
  key: "destroy",
12213
12189
  value: function() {
12214
12190
  var e = this;
12215
- this.off("real_time_speed", this._onRealSpeedChange), this.off([Se, _t], this.startTimer), dt.forEach(function(i) {
12191
+ this.off("real_time_speed", this._onRealSpeedChange), this.off([Ee, _t], this.startTimer), gt.forEach(function(i) {
12216
12192
  e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
12217
12193
  }), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
12218
12194
  }
@@ -12249,11 +12225,11 @@ var Do = /* @__PURE__ */ function(o) {
12249
12225
  var l = s.getVideoPlaybackQuality;
12250
12226
  l && (this.on(fe, function() {
12251
12227
  e._startTick();
12252
- }), this.on(et, function() {
12228
+ }), this.on(Qe, function() {
12253
12229
  e._stopTick();
12254
- }), this.on(Ve, function() {
12230
+ }), this.on(Ue, function() {
12255
12231
  e._stopTick();
12256
- }), this.on(ze, function() {
12232
+ }), this.on(Ve, function() {
12257
12233
  e._stopTick();
12258
12234
  }));
12259
12235
  }
@@ -12302,7 +12278,7 @@ var Do = /* @__PURE__ */ function(o) {
12302
12278
  totalVideoFrames: i,
12303
12279
  droppedVideoFrames: n,
12304
12280
  checkInterval: s
12305
- }), this._currentStuckCount >= this.config.stuckCount && (this.emit(qn, this._payload), this._reset())) : this._reset());
12281
+ }), this._currentStuckCount >= this.config.stuckCount && (this.emit(Zn, this._payload), this._reset())) : this._reset());
12306
12282
  }
12307
12283
  }
12308
12284
  }, {
@@ -12345,12 +12321,12 @@ var Do = /* @__PURE__ */ function(o) {
12345
12321
  }
12346
12322
  }]), r;
12347
12323
  }(U);
12348
- Je.use(Ao);
12324
+ Ze.use(Ao);
12349
12325
  var Mo = /* @__PURE__ */ E(function o(a, r) {
12350
12326
  var t, e, i;
12351
12327
  T(this, o);
12352
12328
  var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Xa, Va, So, To, $a], u = [].concat(l, [za, Ya, to, ao, mo, yo, ho, go, Qa, ro]), c = [ka, ba, Ta, Ba, Ea, ko, bo, Eo, Pa];
12353
- this.plugins = [Lo, _a].concat(de(u), c, [rr, Do]);
12329
+ this.plugins = [Lo, _a].concat(de(u), c, [sr, Do]);
12354
12330
  var f = n ? "mobile" : R.device;
12355
12331
  switch (f) {
12356
12332
  case "pc":
@@ -12377,10 +12353,10 @@ _(ge, "Sniffer", R);
12377
12353
  _(ge, "Errors", yt);
12378
12354
  _(ge, "Events", Zs);
12379
12355
  _(ge, "Plugin", U);
12380
- _(ge, "BasePlugin", Me);
12381
- _(ge, "I18N", Je);
12356
+ _(ge, "BasePlugin", Oe);
12357
+ _(ge, "I18N", Ze);
12382
12358
  _(ge, "STATE_CLASS", C);
12383
- _(ge, "InstManager", tr);
12359
+ _(ge, "InstManager", ir);
12384
12360
  const No = ["id"], Fo = /* @__PURE__ */ Q({
12385
12361
  name: "ElImageViewer",
12386
12362
  __name: "Player",
@@ -12431,11 +12407,11 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
12431
12407
  }, s = J(() => ({
12432
12408
  ...n,
12433
12409
  ...t.config
12434
- })), l = a, u = oi(o, "modelValue"), c = Tn(), f = En("image-viewer");
12410
+ })), l = a, u = oi(o, "modelValue"), c = En(), f = Sn("image-viewer");
12435
12411
  function d() {
12436
12412
  l("close"), u.value = !1, r.destroy();
12437
12413
  }
12438
- return st(() => u.value, (g) => {
12414
+ return at(() => u.value, (g) => {
12439
12415
  g && li(() => {
12440
12416
  r = new ge({
12441
12417
  id: c,
@@ -12444,53 +12420,53 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
12444
12420
  });
12445
12421
  });
12446
12422
  }), (g, p) => {
12447
- const m = pt("el-icon");
12448
- return u.value ? (N(), Re(bn, {
12423
+ const m = vt("el-icon");
12424
+ return u.value ? (M(), De(wn, {
12449
12425
  key: 0,
12450
12426
  to: "body"
12451
12427
  }, [
12452
- K(wn, {
12428
+ K(Tn, {
12453
12429
  name: "viewer-fade",
12454
12430
  appear: ""
12455
12431
  }, {
12456
12432
  default: Z(() => [
12457
- j(
12433
+ W(
12458
12434
  "div",
12459
12435
  {
12460
12436
  ref: "wrapper",
12461
12437
  tabindex: -1,
12462
- class: Y(P(f).e("wrapper")),
12463
- style: _e({ zIndex: o.zIndex })
12438
+ class: $(P(f).e("wrapper")),
12439
+ style: rt({ zIndex: o.zIndex })
12464
12440
  },
12465
12441
  [
12466
- j(
12442
+ W(
12467
12443
  "div",
12468
12444
  {
12469
- class: Y(P(f).e("mask"))
12445
+ class: $(P(f).e("mask"))
12470
12446
  },
12471
12447
  null,
12472
12448
  2
12473
12449
  /* CLASS */
12474
12450
  ),
12475
12451
  ue(" CANVAS "),
12476
- j(
12452
+ W(
12477
12453
  "div",
12478
12454
  {
12479
- class: Y(P(f).e("canvas"))
12455
+ class: $(P(f).e("canvas"))
12480
12456
  },
12481
12457
  [
12482
- j("div", { id: P(c) }, null, 8, No),
12458
+ W("div", { id: P(c) }, null, 8, No),
12483
12459
  ue(" CLOSE "),
12484
- j(
12460
+ W(
12485
12461
  "span",
12486
12462
  {
12487
- class: Y([P(f).e("btn"), P(f).e("close")]),
12463
+ class: $([P(f).e("btn"), P(f).e("close")]),
12488
12464
  onClick: d
12489
12465
  },
12490
12466
  [
12491
12467
  K(m, { onClick: d }, {
12492
12468
  default: Z(() => [
12493
- K(P(Sn))
12469
+ K(P(xn))
12494
12470
  ]),
12495
12471
  _: 1
12496
12472
  /* STABLE */
@@ -12503,7 +12479,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
12503
12479
  2
12504
12480
  /* CLASS */
12505
12481
  ),
12506
- Ze(g.$slots, "default", {}, void 0, !0)
12482
+ qe(g.$slots, "default", {}, void 0, !0)
12507
12483
  ],
12508
12484
  6
12509
12485
  /* CLASS, STYLE */
@@ -12515,7 +12491,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
12515
12491
  ])) : ue("v-if", !0);
12516
12492
  };
12517
12493
  }
12518
- }), Bo = /* @__PURE__ */ ui(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = Qe(Bo), Uo = /* @__PURE__ */ Q({
12494
+ }), Bo = /* @__PURE__ */ ui(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = Je(Bo), Uo = /* @__PURE__ */ Q({
12519
12495
  __name: "IkPreviewFileDialog",
12520
12496
  props: /* @__PURE__ */ mt({
12521
12497
  file: {
@@ -12558,7 +12534,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
12558
12534
  suffix: "suffix",
12559
12535
  size: "fileSize",
12560
12536
  ...a.field
12561
- })), e = Ce(null), i = Ce(null), n = yr({
12537
+ })), e = _e(null), i = _e(null), n = yr({
12562
12538
  image: !1,
12563
12539
  office: !1,
12564
12540
  video: !1
@@ -12589,7 +12565,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
12589
12565
  }
12590
12566
  },
12591
12567
  document: {
12592
- key: Tn(),
12568
+ key: En(),
12593
12569
  title: B,
12594
12570
  url: ei(a.loadUrl, w),
12595
12571
  fileType: b,
@@ -12604,7 +12580,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
12604
12580
  console.info("预览错误: ", k);
12605
12581
  }
12606
12582
  };
12607
- st([r, a.file], ([u, c]) => {
12583
+ at([r, a.file], ([u, c]) => {
12608
12584
  u && li(() => {
12609
12585
  s(a.file);
12610
12586
  });
@@ -12614,11 +12590,11 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
12614
12590
  };
12615
12591
  return (u, c) => {
12616
12592
  var f, d, g;
12617
- return r.value ? (N(), W(
12618
- vt,
12593
+ return r.value ? (M(), j(
12594
+ st,
12619
12595
  { key: 0 },
12620
12596
  [
12621
- (f = i.value) != null && f.url && n.image ? (N(), Re(P(ws), {
12597
+ (f = i.value) != null && f.url && n.image ? (M(), De(P(ws), {
12622
12598
  key: 0,
12623
12599
  onClose: c[0] || (c[0] = (p) => l()),
12624
12600
  ref: "previewImgRef",
@@ -12666,7 +12642,7 @@ const No = ["id"], Fo = /* @__PURE__ */ Q({
12666
12642
  )) : ue("v-if", !0);
12667
12643
  };
12668
12644
  }
12669
- }), Wo = Qe(Uo);
12645
+ }), Wo = Je(Uo);
12670
12646
  export {
12671
12647
  Wo as IkPreviewFileDialog,
12672
12648
  Wo as default