@flyfish-group/file-viewer3 1.0.4 → 1.0.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.
@@ -1,68 +1,60 @@
1
- import { defineComponent as Se, ref as qe, watch as Tt, nextTick as Ot, onMounted as Ue, onUnmounted as Be, openBlock as ft, createElementBlock as At, renderSlot as Ze, computed as $e, createBlock as Ke, unref as Ge, withCtx as Qe, Fragment as Je, renderList as ti } from "vue";
1
+ import { defineComponent as Se, ref as qe, watch as Tt, nextTick as Ot, onMounted as Ue, onUnmounted as Be, openBlock as ft, createElementBlock as Dt, renderSlot as Ze, computed as $e, createBlock as Ke, unref as Ge, withCtx as Qe, Fragment as Je, renderList as ti } from "vue";
2
2
  import { _ as ei } from "./index.js";
3
3
  /*!
4
- * Viewer.js v1.11.6
4
+ * Viewer.js v1.11.7
5
5
  * https://fengyuanchen.github.io/viewerjs
6
6
  *
7
7
  * Copyright 2015-present Chen Fengyuan
8
8
  * Released under the MIT license
9
9
  *
10
- * Date: 2023-09-17T03:16:38.052Z
10
+ * Date: 2024-11-24T04:32:19.116Z
11
11
  */
12
- function Yt(e, t) {
13
- var i = Object.keys(e);
14
- if (Object.getOwnPropertySymbols) {
15
- var n = Object.getOwnPropertySymbols(e);
16
- t && (n = n.filter(function(r) {
17
- return Object.getOwnPropertyDescriptor(e, r).enumerable;
18
- })), i.push.apply(i, n);
19
- }
20
- return i;
21
- }
22
- function kt(e) {
23
- for (var t = 1; t < arguments.length; t++) {
24
- var i = arguments[t] != null ? arguments[t] : {};
25
- t % 2 ? Yt(Object(i), !0).forEach(function(n) {
26
- ri(e, n, i[n]);
27
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Yt(Object(i)).forEach(function(n) {
28
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
29
- });
30
- }
31
- return e;
32
- }
33
- function Dt(e) {
34
- "@babel/helpers - typeof";
35
- return Dt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
36
- return typeof t;
37
- } : function(t) {
38
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
39
- }, Dt(e);
40
- }
41
12
  function ii(e, t) {
42
13
  if (!(e instanceof t))
43
14
  throw new TypeError("Cannot call a class as a function");
44
15
  }
45
- function Wt(e, t) {
16
+ function Yt(e, t) {
46
17
  for (var i = 0; i < t.length; i++) {
47
18
  var n = t[i];
48
19
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, xe(n.key), n);
49
20
  }
50
21
  }
51
22
  function ni(e, t, i) {
52
- return t && Wt(e.prototype, t), i && Wt(e, i), Object.defineProperty(e, "prototype", {
23
+ return t && Yt(e.prototype, t), i && Yt(e, i), Object.defineProperty(e, "prototype", {
53
24
  writable: !1
54
25
  }), e;
55
26
  }
56
27
  function ri(e, t, i) {
57
- return t = xe(t), t in e ? Object.defineProperty(e, t, {
28
+ return (t = xe(t)) in e ? Object.defineProperty(e, t, {
58
29
  value: i,
59
30
  enumerable: !0,
60
31
  configurable: !0,
61
32
  writable: !0
62
33
  }) : e[t] = i, e;
63
34
  }
35
+ function Wt(e, t) {
36
+ var i = Object.keys(e);
37
+ if (Object.getOwnPropertySymbols) {
38
+ var n = Object.getOwnPropertySymbols(e);
39
+ t && (n = n.filter(function(r) {
40
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
41
+ })), i.push.apply(i, n);
42
+ }
43
+ return i;
44
+ }
45
+ function kt(e) {
46
+ for (var t = 1; t < arguments.length; t++) {
47
+ var i = arguments[t] != null ? arguments[t] : {};
48
+ t % 2 ? Wt(Object(i), !0).forEach(function(n) {
49
+ ri(e, n, i[n]);
50
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Wt(Object(i)).forEach(function(n) {
51
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
52
+ });
53
+ }
54
+ return e;
55
+ }
64
56
  function ai(e, t) {
65
- if (typeof e != "object" || e === null)
57
+ if (typeof e != "object" || !e)
66
58
  return e;
67
59
  var i = e[Symbol.toPrimitive];
68
60
  if (i !== void 0) {
@@ -75,7 +67,15 @@ function ai(e, t) {
75
67
  }
76
68
  function xe(e) {
77
69
  var t = ai(e, "string");
78
- return typeof t == "symbol" ? t : String(t);
70
+ return typeof t == "symbol" ? t : t + "";
71
+ }
72
+ function _t(e) {
73
+ "@babel/helpers - typeof";
74
+ return _t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
75
+ return typeof t;
76
+ } : function(t) {
77
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
78
+ }, _t(e);
79
79
  }
80
80
  var Xt = {
81
81
  /**
@@ -282,11 +282,11 @@ var Xt = {
282
282
  zoomed: null,
283
283
  play: null,
284
284
  stop: null
285
- }, oi = '<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>', yt = typeof window != "undefined" && typeof window.document != "undefined", P = yt ? window : {}, K = yt && P.document.documentElement ? "ontouchstart" in P.document.documentElement : !1, jt = yt ? "PointerEvent" in P : !1, v = "viewer", dt = "move", _e = "switch", it = "zoom", lt = "".concat(v, "-active"), si = "".concat(v, "-close"), vt = "".concat(v, "-fade"), It = "".concat(v, "-fixed"), li = "".concat(v, "-fullscreen"), Ht = "".concat(v, "-fullscreen-exit"), W = "".concat(v, "-hide"), ui = "".concat(v, "-hide-md-down"), ci = "".concat(v, "-hide-sm-down"), hi = "".concat(v, "-hide-xs-down"), k = "".concat(v, "-in"), nt = "".concat(v, "-invisible"), G = "".concat(v, "-loading"), fi = "".concat(v, "-move"), qt = "".concat(v, "-open"), q = "".concat(v, "-show"), x = "".concat(v, "-transition"), Q = "click", Nt = "dblclick", Ut = "dragstart", Bt = "focusin", Zt = "keydown", j = "load", X = "error", di = K ? "touchend touchcancel" : "mouseup", vi = K ? "touchmove" : "mousemove", mi = K ? "touchstart" : "mousedown", $t = jt ? "pointerdown" : mi, Kt = jt ? "pointermove" : vi, Gt = jt ? "pointerup pointercancel" : di, Qt = "resize", z = "transitionend", Jt = "wheel", te = "ready", ee = "show", ie = "shown", ne = "hide", re = "hidden", ae = "view", at = "viewed", oe = "move", se = "moved", le = "rotate", ue = "rotated", ce = "scale", he = "scaled", fe = "zoom", de = "zoomed", ve = "play", me = "stop", gt = "".concat(v, "Action"), zt = /\s\s*/, ut = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"];
285
+ }, oi = '<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>', yt = typeof window != "undefined" && typeof window.document != "undefined", F = yt ? window : {}, K = yt && F.document.documentElement ? "ontouchstart" in F.document.documentElement : !1, jt = yt ? "PointerEvent" in F : !1, v = "viewer", dt = "move", Ae = "switch", it = "zoom", lt = "".concat(v, "-active"), si = "".concat(v, "-close"), vt = "".concat(v, "-fade"), It = "".concat(v, "-fixed"), li = "".concat(v, "-fullscreen"), Ht = "".concat(v, "-fullscreen-exit"), W = "".concat(v, "-hide"), ui = "".concat(v, "-hide-md-down"), ci = "".concat(v, "-hide-sm-down"), hi = "".concat(v, "-hide-xs-down"), k = "".concat(v, "-in"), nt = "".concat(v, "-invisible"), G = "".concat(v, "-loading"), fi = "".concat(v, "-move"), qt = "".concat(v, "-open"), q = "".concat(v, "-show"), x = "".concat(v, "-transition"), Q = "click", Nt = "dblclick", Ut = "dragstart", Bt = "focusin", Zt = "keydown", j = "load", X = "error", di = K ? "touchend touchcancel" : "mouseup", vi = K ? "touchmove" : "mousemove", mi = K ? "touchstart" : "mousedown", $t = jt ? "pointerdown" : mi, Kt = jt ? "pointermove" : vi, Gt = jt ? "pointerup pointercancel" : di, Qt = "resize", z = "transitionend", Jt = "wheel", te = "ready", ee = "show", ie = "shown", ne = "hide", re = "hidden", ae = "view", at = "viewed", oe = "move", se = "moved", le = "rotate", ue = "rotated", ce = "scale", he = "scaled", fe = "zoom", de = "zoomed", ve = "play", me = "stop", gt = "".concat(v, "Action"), zt = /\s\s*/, ut = ["zoom-in", "zoom-out", "one-to-one", "reset", "prev", "play", "next", "rotate-left", "rotate-right", "flip-horizontal", "flip-vertical"];
286
286
  function ot(e) {
287
287
  return typeof e == "string";
288
288
  }
289
- var gi = Number.isNaN || P.isNaN;
289
+ var gi = Number.isNaN || F.isNaN;
290
290
  function O(e) {
291
291
  return typeof e == "number" && !gi(e);
292
292
  }
@@ -294,7 +294,7 @@ function B(e) {
294
294
  return typeof e == "undefined";
295
295
  }
296
296
  function J(e) {
297
- return Dt(e) === "object" && e !== null;
297
+ return _t(e) === "object" && e !== null;
298
298
  }
299
299
  var pi = Object.prototype.hasOwnProperty;
300
300
  function Z(e) {
@@ -395,7 +395,7 @@ function $(e, t) {
395
395
  function Ct(e, t, i) {
396
396
  J(i) ? e[t] = i : e.dataset ? e.dataset[t] = i : e.setAttribute("data-".concat(Lt(t)), i);
397
397
  }
398
- var Ae = function() {
398
+ var De = function() {
399
399
  var e = !1;
400
400
  if (yt) {
401
401
  var t = !1, i = function() {
@@ -412,14 +412,14 @@ var Ae = function() {
412
412
  t = a;
413
413
  }
414
414
  });
415
- P.addEventListener("test", i, n), P.removeEventListener("test", i, n);
415
+ F.addEventListener("test", i, n), F.removeEventListener("test", i, n);
416
416
  }
417
417
  return e;
418
418
  }();
419
419
  function b(e, t, i) {
420
420
  var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, r = i;
421
421
  t.trim().split(zt).forEach(function(a) {
422
- if (!Ae) {
422
+ if (!De) {
423
423
  var o = e.listeners;
424
424
  o && o[a] && o[a][i] && (r = o[a][i], delete o[a][i], Object.keys(o[a]).length === 0 && delete o[a], Object.keys(o).length === 0 && delete e.listeners);
425
425
  }
@@ -429,7 +429,7 @@ function b(e, t, i) {
429
429
  function d(e, t, i) {
430
430
  var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, r = i;
431
431
  t.trim().split(zt).forEach(function(a) {
432
- if (n.once && !Ae) {
432
+ if (n.once && !De) {
433
433
  var o = e.listeners, s = o === void 0 ? {} : o;
434
434
  r = function() {
435
435
  delete s[a][i], e.removeEventListener(a, r, n);
@@ -441,7 +441,7 @@ function d(e, t, i) {
441
441
  e.addEventListener(a, r, n);
442
442
  });
443
443
  }
444
- function A(e, t, i, n) {
444
+ function D(e, t, i, n) {
445
445
  var r;
446
446
  return p(Event) && p(CustomEvent) ? r = new CustomEvent(t, kt({
447
447
  bubbles: !0,
@@ -469,8 +469,8 @@ function mt(e) {
469
469
  function Ti(e) {
470
470
  return ot(e) ? decodeURIComponent(e.replace(/^.*\//, "").replace(/[?&#].*$/, "")) : "";
471
471
  }
472
- var St = P.navigator && /Version\/\d+(\.\d+)+?\s+Safari/i.test(P.navigator.userAgent);
473
- function De(e, t, i) {
472
+ var St = F.navigator && /Version\/\d+(\.\d+)+?\s+Safari/i.test(F.navigator.userAgent);
473
+ function _e(e, t, i) {
474
474
  var n = document.createElement("img");
475
475
  if (e.naturalWidth && !St)
476
476
  return i(e.naturalWidth, e.naturalHeight), n;
@@ -556,9 +556,9 @@ var xi = {
556
556
  var c = o.src, l = o.alt || Ti(c), u = t.getImageURL(o);
557
557
  if (c || u) {
558
558
  var h = document.createElement("li"), m = document.createElement("img");
559
- y(n.inheritedAttributes, function(_) {
560
- var S = o.getAttribute(_);
561
- S !== null && m.setAttribute(_, S);
559
+ y(n.inheritedAttributes, function(A) {
560
+ var S = o.getAttribute(A);
561
+ S !== null && m.setAttribute(A, S);
562
562
  }), n.navbar && (m.src = c || u), m.alt = l, m.setAttribute("data-original-url", u || c), h.setAttribute("data-index", s), h.setAttribute("data-viewer-action", "view"), h.setAttribute("role", "button"), n.keyboard && h.setAttribute("tabindex", 0), h.appendChild(m), r.appendChild(h), a.push(h);
563
563
  }
564
564
  }), this.items = a, y(a, function(o) {
@@ -601,19 +601,19 @@ var xi = {
601
601
  abort: function() {
602
602
  u.onload = null;
603
603
  }
604
- }, u = De(r, n, function(h, m) {
605
- var _ = h / m, S = Math.max(0, Math.min(1, n.initialCoverage)), T = s, D = c;
606
- i.imageInitializing = !1, c * _ > s ? D = s / _ : T = c * _, S = O(S) ? S : 0.9, T = Math.min(T * S, h), D = Math.min(D * S, m);
607
- var I = (s - T) / 2, N = (c - D) / 2, E = {
604
+ }, u = _e(r, n, function(h, m) {
605
+ var A = h / m, S = Math.max(0, Math.min(1, n.initialCoverage)), T = s, _ = c;
606
+ i.imageInitializing = !1, c * A > s ? _ = s / A : T = c * A, S = O(S) ? S : 0.9, T = Math.min(T * S, h), _ = Math.min(_ * S, m);
607
+ var I = (s - T) / 2, N = (c - _) / 2, E = {
608
608
  left: I,
609
609
  top: N,
610
610
  x: I,
611
611
  y: N,
612
612
  width: T,
613
- height: D,
613
+ height: _,
614
614
  oldRatio: 1,
615
615
  ratio: T / h,
616
- aspectRatio: _,
616
+ aspectRatio: A,
617
617
  naturalWidth: h,
618
618
  naturalHeight: m
619
619
  }, R = C({}, E);
@@ -647,7 +647,7 @@ var xi = {
647
647
  var t = this.image;
648
648
  t && (this.viewing && this.viewing.abort(), t.parentNode.removeChild(t), this.image = null, this.title.innerHTML = "");
649
649
  }
650
- }, _i = {
650
+ }, Ai = {
651
651
  bind: function() {
652
652
  var t = this.options, i = this.viewer, n = this.canvas, r = this.element.ownerDocument;
653
653
  d(i, Q, this.onClick = this.click.bind(this)), d(i, Ut, this.onDragStart = this.dragstart.bind(this)), d(n, $t, this.onPointerDown = this.pointerdown.bind(this)), d(r, Kt, this.onPointerMove = this.pointermove.bind(this)), d(r, Gt, this.onPointerUp = this.pointerup.bind(this)), d(r, Zt, this.onKeyDown = this.keydown.bind(this)), d(window, Qt, this.onResize = this.resize.bind(this)), t.zoomable && t.zoomOnWheel && d(i, Jt, this.onWheel = this.wheel.bind(this), {
@@ -662,7 +662,7 @@ var xi = {
662
662
  capture: !0
663
663
  }), t.toggleOnDblclick && b(n, Nt, this.onDblclick);
664
664
  }
665
- }, Ai = {
665
+ }, Di = {
666
666
  click: function(t) {
667
667
  var i = this.options, n = this.imageData, r = t.target, a = $(r, gt);
668
668
  switch (!a && r.localName === "img" && r.parentElement.localName === "li" && (r = r.parentElement, a = $(r, gt)), K && t.isTrusted && r === this.canvas && clearTimeout(this.clickCanvasTimeout), a) {
@@ -723,7 +723,7 @@ var xi = {
723
723
  st(r, fi, n.movable), st(r, x, n.transition), t.renderImage(function() {
724
724
  t.viewed = !0, t.viewing = !1, p(n.viewed) && d(i, at, n.viewed, {
725
725
  once: !0
726
- }), A(i, at, {
726
+ }), D(i, at, {
727
727
  originalImage: t.images[a],
728
728
  index: a,
729
729
  image: r
@@ -735,7 +735,7 @@ var xi = {
735
735
  },
736
736
  loadImage: function(t) {
737
737
  var i = t.target, n = i.parentNode, r = n.offsetWidth || 30, a = n.offsetHeight || 50, o = !!$(i, "filled");
738
- De(i, this.options, function(s, c) {
738
+ _e(i, this.options, function(s, c) {
739
739
  var l = s / c, u = r, h = a;
740
740
  a * l > r ? o ? u = a * l : h = r / l : o ? h = r / l : u = a * l, L(i, C({
741
741
  width: u,
@@ -793,7 +793,7 @@ var xi = {
793
793
  n[s.identifier] = ht(s);
794
794
  }) : n[t.pointerId || 0] = ht(t);
795
795
  var o = i.movable ? dt : !1;
796
- i.zoomOnTouch && i.zoomable && Object.keys(n).length > 1 ? o = it : i.slideOnTouch && (t.pointerType === "touch" || t.type === "touchstart") && this.isSwitchable() && (o = _e), i.transition && (o === dt || o === it) && g(this.image, x), this.action = o;
796
+ i.zoomOnTouch && i.zoomable && Object.keys(n).length > 1 ? o = it : i.slideOnTouch && (t.pointerType === "touch" || t.type === "touchstart") && this.isSwitchable() && (o = Ae), i.transition && (o === dt || o === it) && g(this.image, x), this.action = o;
797
797
  }
798
798
  },
799
799
  pointermove: function(t) {
@@ -807,13 +807,13 @@ var xi = {
807
807
  t.changedTouches ? y(t.changedTouches, function(s) {
808
808
  o = a[s.identifier], delete a[s.identifier];
809
809
  }) : (o = a[t.pointerId || 0], delete a[t.pointerId || 0]), r && (t.preventDefault(), n.transition && (r === dt || r === it) && f(this.image, x), this.action = !1, K && r !== it && o && Date.now() - o.timeStamp < 500 && (clearTimeout(this.clickCanvasTimeout), clearTimeout(this.doubleClickImageTimeout), n.toggleOnDblclick && this.viewed && t.target === this.image ? this.imageClicked ? (this.imageClicked = !1, this.doubleClickImageTimeout = setTimeout(function() {
810
- A(i.image, Nt, {
810
+ D(i.image, Nt, {
811
811
  originalEvent: t
812
812
  });
813
813
  }, 50)) : (this.imageClicked = !0, this.doubleClickImageTimeout = setTimeout(function() {
814
814
  i.imageClicked = !1;
815
815
  }, 500)) : (this.imageClicked = !1, n.backdrop && n.backdrop !== "static" && t.target === this.canvas && (this.clickCanvasTimeout = setTimeout(function() {
816
- A(i.canvas, Q, {
816
+ D(i.canvas, Q, {
817
817
  originalEvent: t
818
818
  });
819
819
  }, 50)))));
@@ -830,7 +830,7 @@ var xi = {
830
830
  y(this.player.getElementsByTagName("img"), function(i) {
831
831
  d(i, j, t.loadImage.bind(t), {
832
832
  once: !0
833
- }), A(i, j);
833
+ }), D(i, j);
834
834
  });
835
835
  }
836
836
  },
@@ -844,7 +844,7 @@ var xi = {
844
844
  t.deltaY ? r = t.deltaY > 0 ? 1 : -1 : t.wheelDelta ? r = -t.wheelDelta / 120 : t.detail && (r = t.detail > 0 ? 1 : -1), this.zoom(-r * n, !0, null, t);
845
845
  }
846
846
  }
847
- }, Di = {
847
+ }, _i = {
848
848
  /** Show the viewer (only available in modal mode)
849
849
  * @param {boolean} [immediate=false] - Indicates if show the viewer immediately or not.
850
850
  * @returns {Viewer} this
@@ -857,7 +857,7 @@ var xi = {
857
857
  return this.build(), this.ready && this.show(t), this;
858
858
  if (p(n.show) && d(i, ee, n.show, {
859
859
  once: !0
860
- }), A(i, ee) === !1 || !this.ready)
860
+ }), D(i, ee) === !1 || !this.ready)
861
861
  return this;
862
862
  this.hiding && this.transitioning.abort(), this.showing = !0, this.open();
863
863
  var r = this.viewer;
@@ -885,15 +885,15 @@ var xi = {
885
885
  return this;
886
886
  if (p(r.hide) && d(n, ne, r.hide, {
887
887
  once: !0
888
- }), A(n, ne) === !1)
888
+ }), D(n, ne) === !1)
889
889
  return this;
890
890
  this.showing && this.transitioning.abort(), this.hiding = !0, this.played ? this.stop() : this.viewing && this.viewing.abort();
891
891
  var a = this.viewer, o = this.image, s = function() {
892
892
  g(a, k), t.hidden();
893
893
  };
894
894
  if (r.transition && !i) {
895
- var c = function u(h) {
896
- h && h.target === a && (b(a, z, u), t.hidden());
895
+ var c = function(h) {
896
+ h && h.target === a && (b(a, z, c), t.hidden());
897
897
  }, l = function() {
898
898
  U(a, x) ? (d(a, z, c), g(a, k)) : s();
899
899
  };
@@ -921,12 +921,12 @@ var xi = {
921
921
  return this.index = i, this.show();
922
922
  this.viewing && this.viewing.abort();
923
923
  var n = this.element, r = this.options, a = this.title, o = this.canvas, s = this.items[i], c = s.querySelector("img"), l = $(c, "originalUrl"), u = c.getAttribute("alt"), h = document.createElement("img");
924
- if (y(r.inheritedAttributes, function(D) {
925
- var I = c.getAttribute(D);
926
- I !== null && h.setAttribute(D, I);
924
+ if (y(r.inheritedAttributes, function(_) {
925
+ var I = c.getAttribute(_);
926
+ I !== null && h.setAttribute(_, I);
927
927
  }), h.src = l, h.alt = u, p(r.view) && d(n, ae, r.view, {
928
928
  once: !0
929
- }), A(n, ae, {
929
+ }), D(n, ae, {
930
930
  originalImage: this.images[i],
931
931
  index: i,
932
932
  image: h
@@ -934,15 +934,15 @@ var xi = {
934
934
  return this;
935
935
  var m = this.items[this.index];
936
936
  m && (g(m, lt), m.removeAttribute("aria-selected")), f(s, lt), s.setAttribute("aria-selected", !0), r.focus && s.focus(), this.image = h, this.viewed = !1, this.index = i, this.imageData = {}, f(h, nt), r.loading && f(o, G), o.innerHTML = "", o.appendChild(h), this.renderList(), a.innerHTML = "";
937
- var _ = function() {
937
+ var A = function() {
938
938
  var I = t.imageData, N = Array.isArray(r.title) ? r.title[1] : r.title;
939
939
  a.innerHTML = yi(p(N) ? N.call(t, h, I) : "".concat(u, " (").concat(I.naturalWidth, " × ").concat(I.naturalHeight, ")"));
940
940
  }, S, T;
941
- return d(n, at, _, {
941
+ return d(n, at, A, {
942
942
  once: !0
943
943
  }), this.viewing = {
944
944
  abort: function() {
945
- b(n, at, _), h.complete ? t.imageRendering ? t.imageRendering.abort() : t.imageInitializing && t.imageInitializing.abort() : (h.src = "", b(h, j, S), t.timeout && clearTimeout(t.timeout));
945
+ b(n, at, A), h.complete ? t.imageRendering ? t.imageRendering.abort() : t.imageInitializing && t.imageInitializing.abort() : (h.src = "", b(h, j, S), t.timeout && clearTimeout(t.timeout));
946
946
  }
947
947
  }, h.complete ? this.load() : (d(h, j, S = function() {
948
948
  b(h, X, T), t.load();
@@ -1000,7 +1000,7 @@ var xi = {
1000
1000
  if (O(t) ? u = !0 : t = c, O(n) ? u = !0 : n = l, u) {
1001
1001
  if (p(o.move) && d(a, oe, o.move, {
1002
1002
  once: !0
1003
- }), A(a, oe, {
1003
+ }), D(a, oe, {
1004
1004
  x: t,
1005
1005
  y: n,
1006
1006
  oldX: c,
@@ -1011,7 +1011,7 @@ var xi = {
1011
1011
  s.x = t, s.y = n, s.left = t, s.top = n, this.moving = !0, this.renderImage(function() {
1012
1012
  i.moving = !1, p(o.moved) && d(a, se, o.moved, {
1013
1013
  once: !0
1014
- }), A(a, se, {
1014
+ }), D(a, se, {
1015
1015
  x: t,
1016
1016
  y: n,
1017
1017
  oldX: c,
@@ -1044,7 +1044,7 @@ var xi = {
1044
1044
  var o = a.rotate;
1045
1045
  if (p(r.rotate) && d(n, le, r.rotate, {
1046
1046
  once: !0
1047
- }), A(n, le, {
1047
+ }), D(n, le, {
1048
1048
  degree: t,
1049
1049
  oldDegree: o
1050
1050
  }) === !1)
@@ -1052,7 +1052,7 @@ var xi = {
1052
1052
  a.rotate = t, this.rotating = !0, this.renderImage(function() {
1053
1053
  i.rotating = !1, p(r.rotated) && d(n, ue, r.rotated, {
1054
1054
  once: !0
1055
- }), A(n, ue, {
1055
+ }), D(n, ue, {
1056
1056
  degree: t,
1057
1057
  oldDegree: o
1058
1058
  }, {
@@ -1091,7 +1091,7 @@ var xi = {
1091
1091
  if (O(t) ? l = !0 : t = s, O(n) ? l = !0 : n = c, l) {
1092
1092
  if (p(a.scale) && d(r, ce, a.scale, {
1093
1093
  once: !0
1094
- }), A(r, ce, {
1094
+ }), D(r, ce, {
1095
1095
  scaleX: t,
1096
1096
  scaleY: n,
1097
1097
  oldScaleX: s,
@@ -1101,7 +1101,7 @@ var xi = {
1101
1101
  o.scaleX = t, o.scaleY = n, this.scaling = !0, this.renderImage(function() {
1102
1102
  i.scaling = !1, p(a.scaled) && d(r, he, a.scaled, {
1103
1103
  once: !0
1104
- }), A(r, he, {
1104
+ }), D(r, he, {
1105
1105
  scaleX: t,
1106
1106
  scaleY: n,
1107
1107
  oldScaleX: s,
@@ -1136,7 +1136,7 @@ var xi = {
1136
1136
  * @returns {Viewer} this
1137
1137
  */
1138
1138
  zoomTo: function(t) {
1139
- var i = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, s = this.element, c = this.options, l = this.pointers, u = this.imageData, h = u.x, m = u.y, _ = u.width, S = u.height, T = u.naturalWidth, D = u.naturalHeight;
1139
+ var i = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, s = this.element, c = this.options, l = this.pointers, u = this.imageData, h = u.x, m = u.y, A = u.width, S = u.height, T = u.naturalWidth, _ = u.naturalHeight;
1140
1140
  if (t = Math.max(0, t), O(t) && this.viewed && !this.played && (o || c.zoomable)) {
1141
1141
  if (!o) {
1142
1142
  var I = Math.max(0.01, c.minZoomRatio), N = Math.min(100, c.maxZoomRatio);
@@ -1153,10 +1153,10 @@ var xi = {
1153
1153
  t > 0.99 && t < 1.01 && (t = 1);
1154
1154
  break;
1155
1155
  }
1156
- var E = T * t, R = D * t, M = E - _, V = R - S, Y = u.ratio;
1156
+ var E = T * t, R = _ * t, M = E - A, V = R - S, Y = u.ratio;
1157
1157
  if (p(c.zoom) && d(s, fe, c.zoom, {
1158
1158
  once: !0
1159
- }), A(s, fe, {
1159
+ }), D(s, fe, {
1160
1160
  ratio: t,
1161
1161
  oldRatio: Y,
1162
1162
  originalEvent: a
@@ -1167,13 +1167,13 @@ var xi = {
1167
1167
  pageX: a.pageX,
1168
1168
  pageY: a.pageY
1169
1169
  };
1170
- u.x -= M * ((H.pageX - tt.left - h) / _), u.y -= V * ((H.pageY - tt.top - m) / S);
1170
+ u.x -= M * ((H.pageX - tt.left - h) / A), u.y -= V * ((H.pageY - tt.top - m) / S);
1171
1171
  } else
1172
- Z(r) && O(r.x) && O(r.y) ? (u.x -= M * ((r.x - h) / _), u.y -= V * ((r.y - m) / S)) : (u.x -= M / 2, u.y -= V / 2);
1172
+ Z(r) && O(r.x) && O(r.y) ? (u.x -= M * ((r.x - h) / A), u.y -= V * ((r.y - m) / S)) : (u.x -= M / 2, u.y -= V / 2);
1173
1173
  u.left = u.x, u.top = u.y, u.width = E, u.height = R, u.oldRatio = Y, u.ratio = t, this.renderImage(function() {
1174
1174
  i.zooming = !1, p(c.zoomed) && d(s, de, c.zoomed, {
1175
1175
  once: !0
1176
- }), A(s, de, {
1176
+ }), D(s, de, {
1177
1177
  ratio: t,
1178
1178
  oldRatio: Y,
1179
1179
  originalEvent: a
@@ -1196,19 +1196,19 @@ var xi = {
1196
1196
  var n = this.element, r = this.options;
1197
1197
  if (p(r.play) && d(n, ve, r.play, {
1198
1198
  once: !0
1199
- }), A(n, ve) === !1)
1199
+ }), D(n, ve) === !1)
1200
1200
  return this;
1201
1201
  var a = this.player, o = this.loadImage.bind(this), s = [], c = 0, l = 0;
1202
- if (this.played = !0, this.onLoadWhenPlay = o, i && this.requestFullscreen(i), f(a, q), y(this.items, function(m, _) {
1202
+ if (this.played = !0, this.onLoadWhenPlay = o, i && this.requestFullscreen(i), f(a, q), y(this.items, function(m, A) {
1203
1203
  var S = m.querySelector("img"), T = document.createElement("img");
1204
- T.src = $(S, "originalUrl"), T.alt = S.getAttribute("alt"), T.referrerPolicy = S.referrerPolicy, c += 1, f(T, vt), st(T, x, r.transition), U(m, lt) && (f(T, k), l = _), s.push(T), d(T, j, o, {
1204
+ T.src = $(S, "originalUrl"), T.alt = S.getAttribute("alt"), T.referrerPolicy = S.referrerPolicy, c += 1, f(T, vt), st(T, x, r.transition), U(m, lt) && (f(T, k), l = A), s.push(T), d(T, j, o, {
1205
1205
  once: !0
1206
1206
  }), a.appendChild(T);
1207
1207
  }), O(r.interval) && r.interval > 0) {
1208
- var u = function m() {
1209
- clearTimeout(t.playing.timeout), g(s[l], k), l -= 1, l = l >= 0 ? l : c - 1, f(s[l], k), t.playing.timeout = setTimeout(m, r.interval);
1210
- }, h = function m() {
1211
- clearTimeout(t.playing.timeout), g(s[l], k), l += 1, l = l < c ? l : 0, f(s[l], k), t.playing.timeout = setTimeout(m, r.interval);
1208
+ var u = function() {
1209
+ clearTimeout(t.playing.timeout), g(s[l], k), l -= 1, l = l >= 0 ? l : c - 1, f(s[l], k), t.playing.timeout = setTimeout(u, r.interval);
1210
+ }, h = function() {
1211
+ clearTimeout(t.playing.timeout), g(s[l], k), l += 1, l = l < c ? l : 0, f(s[l], k), t.playing.timeout = setTimeout(h, r.interval);
1212
1212
  };
1213
1213
  c > 1 && (this.playing = {
1214
1214
  prev: u,
@@ -1226,7 +1226,7 @@ var xi = {
1226
1226
  var i = this.element, n = this.options;
1227
1227
  if (p(n.stop) && d(i, me, n.stop, {
1228
1228
  once: !0
1229
- }), A(i, me) === !1)
1229
+ }), D(i, me) === !1)
1230
1230
  return this;
1231
1231
  var r = this.player;
1232
1232
  return clearTimeout(this.playing.timeout), this.playing = !1, this.played = !1, y(r.getElementsByTagName("img"), function(a) {
@@ -1262,7 +1262,7 @@ var xi = {
1262
1262
  // Show the current ratio of the image with percentage
1263
1263
  tooltip: function() {
1264
1264
  var t = this, i = this.options, n = this.tooltipBox, r = this.imageData;
1265
- return !this.viewed || this.played || !i.tooltip ? this : (n.textContent = "".concat(Math.round(r.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : i.transition ? (this.fading && A(n, z), f(n, q), f(n, vt), f(n, x), n.removeAttribute("aria-hidden"), n.initialOffsetWidth = n.offsetWidth, f(n, k)) : (f(n, q), n.removeAttribute("aria-hidden")), this.tooltipping = setTimeout(function() {
1265
+ return !this.viewed || this.played || !i.tooltip ? this : (n.textContent = "".concat(Math.round(r.ratio * 100), "%"), this.tooltipping ? clearTimeout(this.tooltipping) : i.transition ? (this.fading && D(n, z), f(n, q), f(n, vt), f(n, x), n.removeAttribute("aria-hidden"), n.initialOffsetWidth = n.offsetWidth, f(n, k)) : (f(n, q), n.removeAttribute("aria-hidden")), this.tooltipping = setTimeout(function() {
1266
1266
  i.transition ? (d(n, z, function() {
1267
1267
  g(n, q), g(n, vt), g(n, x), n.setAttribute("aria-hidden", !0), t.fading = !1;
1268
1268
  }, {
@@ -1356,13 +1356,13 @@ var xi = {
1356
1356
  var t = this.element, i = this.options, n = this.viewer;
1357
1357
  this.fulled = !0, this.isShown = !0, this.render(), this.bind(), this.showing = !1, i.focus && (n.focus(), this.enforceFocus()), p(i.shown) && d(t, ie, i.shown, {
1358
1358
  once: !0
1359
- }), A(t, ie) !== !1 && this.ready && this.isShown && !this.hiding && this.view(this.index);
1359
+ }), D(t, ie) !== !1 && this.ready && this.isShown && !this.hiding && this.view(this.index);
1360
1360
  },
1361
1361
  hidden: function() {
1362
1362
  var t = this.element, i = this.options, n = this.viewer;
1363
1363
  i.fucus && this.clearEnforceFocus(), this.close(), this.unbind(), f(n, W), n.removeAttribute("role"), n.removeAttribute("aria-labelledby"), n.removeAttribute("aria-modal"), n.setAttribute("aria-hidden", !0), this.resetList(), this.resetImage(), this.fulled = !1, this.viewed = !1, this.isShown = !1, this.hiding = !1, this.destroyed || (p(i.hidden) && d(t, re, i.hidden, {
1364
1364
  once: !0
1365
- }), A(t, re, null, {
1365
+ }), D(t, re, null, {
1366
1366
  cancelable: !1
1367
1367
  }));
1368
1368
  },
@@ -1388,7 +1388,7 @@ var xi = {
1388
1388
  case it:
1389
1389
  this.zoom(Oi(n), !1, null, t);
1390
1390
  break;
1391
- case _e: {
1391
+ case Ae: {
1392
1392
  this.action = "switched";
1393
1393
  var s = Math.abs(a);
1394
1394
  s > 1 && s > Math.abs(o) && (this.pointers = {}, a > 1 ? this.prev(i.loop) : a < -1 && this.next(i.loop));
@@ -1404,7 +1404,7 @@ var xi = {
1404
1404
  var t = this.imageData, i = this.viewerData;
1405
1405
  return this.length > 1 && t.x >= 0 && t.y >= 0 && t.width <= i.width && t.height <= i.height;
1406
1406
  }
1407
- }, Ni = P.Viewer, Ci = function(e) {
1407
+ }, Ni = F.Viewer, Ci = function(e) {
1408
1408
  return function() {
1409
1409
  return e += 1, e;
1410
1410
  };
@@ -1476,12 +1476,12 @@ var xi = {
1476
1476
  if (this.parent = r, this.viewer = o, this.title = s, this.toolbar = c, this.navbar = l, this.button = u, this.canvas = h, this.footer = o.querySelector(".".concat(v, "-footer")), this.tooltipBox = o.querySelector(".".concat(v, "-tooltip")), this.player = o.querySelector(".".concat(v, "-player")), this.list = o.querySelector(".".concat(v, "-list")), o.id = "".concat(v).concat(this.id), s.id = "".concat(v, "Title").concat(this.id), f(s, n.title ? ct(Array.isArray(n.title) ? n.title[0] : n.title) : W), f(l, n.navbar ? ct(n.navbar) : W), st(u, W, !n.button), n.keyboard && u.setAttribute("tabindex", 0), n.backdrop && (f(o, "".concat(v, "-backdrop")), !n.inline && n.backdrop !== "static" && Ct(h, gt, "hide")), ot(n.className) && n.className && n.className.split(zt).forEach(function(E) {
1477
1477
  f(o, E);
1478
1478
  }), n.toolbar) {
1479
- var m = document.createElement("ul"), _ = Z(n.toolbar), S = ut.slice(0, 3), T = ut.slice(7, 9), D = ut.slice(9);
1480
- _ || f(c, ct(n.toolbar)), y(_ ? n.toolbar : ut, function(E, R) {
1481
- var M = _ && Z(E), V = _ ? Lt(R) : E, Y = M && !B(E.show) ? E.show : E;
1482
- if (!(!Y || !n.zoomable && S.indexOf(V) !== -1 || !n.rotatable && T.indexOf(V) !== -1 || !n.scalable && D.indexOf(V) !== -1)) {
1483
- var tt = M && !B(E.size) ? E.size : E, H = M && !B(E.click) ? E.click : E, F = document.createElement("li");
1484
- n.keyboard && F.setAttribute("tabindex", 0), F.setAttribute("role", "button"), f(F, "".concat(v, "-").concat(V)), p(H) || Ct(F, gt, V), O(Y) && f(F, ct(Y)), ["small", "large"].indexOf(tt) !== -1 ? f(F, "".concat(v, "-").concat(tt)) : V === "play" && f(F, "".concat(v, "-large")), p(H) && d(F, Q, H), m.appendChild(F);
1479
+ var m = document.createElement("ul"), A = Z(n.toolbar), S = ut.slice(0, 3), T = ut.slice(7, 9), _ = ut.slice(9);
1480
+ A || f(c, ct(n.toolbar)), y(A ? n.toolbar : ut, function(E, R) {
1481
+ var M = A && Z(E), V = A ? Lt(R) : E, Y = M && !B(E.show) ? E.show : E;
1482
+ if (!(!Y || !n.zoomable && S.indexOf(V) !== -1 || !n.rotatable && T.indexOf(V) !== -1 || !n.scalable && _.indexOf(V) !== -1)) {
1483
+ var tt = M && !B(E.size) ? E.size : E, H = M && !B(E.click) ? E.click : E, P = document.createElement("li");
1484
+ n.keyboard && P.setAttribute("tabindex", 0), P.setAttribute("role", "button"), f(P, "".concat(v, "-").concat(V)), p(H) || Ct(P, gt, V), O(Y) && f(P, ct(Y)), ["small", "large"].indexOf(tt) !== -1 ? f(P, "".concat(v, "-").concat(tt)) : V === "play" && f(P, "".concat(v, "-large")), p(H) && d(P, Q, H), m.appendChild(P);
1485
1485
  }
1486
1486
  }), c.appendChild(m);
1487
1487
  } else
@@ -1507,7 +1507,7 @@ var xi = {
1507
1507
  }
1508
1508
  if (n.inline && (this.render(), this.bind(), this.isShown = !0), this.ready = !0, p(n.ready) && d(i, te, n.ready, {
1509
1509
  once: !0
1510
- }), A(i, te) === !1) {
1510
+ }), D(i, te) === !1) {
1511
1511
  this.ready = !1;
1512
1512
  return;
1513
1513
  }
@@ -1532,9 +1532,9 @@ var xi = {
1532
1532
  value: function(i) {
1533
1533
  C(Xt, Z(i) && i);
1534
1534
  }
1535
- }]), e;
1535
+ }]);
1536
1536
  }();
1537
- C(Ie.prototype, xi, _i, Ai, Di, Ii);
1537
+ C(Ie.prototype, xi, Ai, Di, _i, Ii);
1538
1538
  var ki = typeof global == "object" && global && global.Object === Object && global;
1539
1539
  const Ne = ki;
1540
1540
  var ji = typeof self == "object" && self && self.Object === Object && self, zi = Ne || ji || Function("return this")();
@@ -1542,7 +1542,7 @@ const Vt = zi;
1542
1542
  var Li = Vt.Symbol;
1543
1543
  const pt = Li;
1544
1544
  var Ce = Object.prototype, Vi = Ce.hasOwnProperty, Ri = Ce.toString, et = pt ? pt.toStringTag : void 0;
1545
- function Fi(e) {
1545
+ function Pi(e) {
1546
1546
  var t = Vi.call(e, et), i = e[et];
1547
1547
  try {
1548
1548
  e[et] = void 0;
@@ -1552,15 +1552,15 @@ function Fi(e) {
1552
1552
  var r = Ri.call(e);
1553
1553
  return n && (t ? e[et] = i : delete e[et]), r;
1554
1554
  }
1555
- var Pi = Object.prototype, Mi = Pi.toString;
1555
+ var Fi = Object.prototype, Mi = Fi.toString;
1556
1556
  function Yi(e) {
1557
1557
  return Mi.call(e);
1558
1558
  }
1559
1559
  var Wi = "[object Null]", Xi = "[object Undefined]", ge = pt ? pt.toStringTag : void 0;
1560
1560
  function Rt(e) {
1561
- return e == null ? e === void 0 ? Xi : Wi : ge && ge in Object(e) ? Fi(e) : Yi(e);
1561
+ return e == null ? e === void 0 ? Xi : Wi : ge && ge in Object(e) ? Pi(e) : Yi(e);
1562
1562
  }
1563
- function Ft(e) {
1563
+ function Pt(e) {
1564
1564
  return e != null && typeof e == "object";
1565
1565
  }
1566
1566
  var Hi = Array.isArray;
@@ -1681,15 +1681,15 @@ function Le(e, t, i) {
1681
1681
  writable: !0
1682
1682
  }) : e[t] = i;
1683
1683
  }
1684
- function Pt(e, t) {
1684
+ function Ft(e, t) {
1685
1685
  return e === t || e !== e && t !== t;
1686
1686
  }
1687
- var xn = Object.prototype, _n = xn.hasOwnProperty;
1687
+ var xn = Object.prototype, An = xn.hasOwnProperty;
1688
1688
  function Ve(e, t, i) {
1689
1689
  var n = e[t];
1690
- (!(_n.call(e, t) && Pt(n, i)) || i === void 0 && !(t in e)) && Le(e, t, i);
1690
+ (!(An.call(e, t) && Ft(n, i)) || i === void 0 && !(t in e)) && Le(e, t, i);
1691
1691
  }
1692
- function An(e, t, i, n) {
1692
+ function Dn(e, t, i, n) {
1693
1693
  var r = !i;
1694
1694
  i || (i = {});
1695
1695
  for (var a = -1, o = t.length; ++a < o; ) {
@@ -1699,7 +1699,7 @@ function An(e, t, i, n) {
1699
1699
  return i;
1700
1700
  }
1701
1701
  var be = Math.max;
1702
- function Dn(e, t, i) {
1702
+ function _n(e, t, i) {
1703
1703
  return t = be(t === void 0 ? e.length - 1 : t, 0), function() {
1704
1704
  for (var n = arguments, r = -1, a = be(n.length - t, 0), o = Array(a); ++r < a; )
1705
1705
  o[r] = n[t + r];
@@ -1710,25 +1710,25 @@ function Dn(e, t, i) {
1710
1710
  };
1711
1711
  }
1712
1712
  function Re(e, t) {
1713
- return Tn(Dn(e, t, ke), e + "");
1713
+ return Tn(_n(e, t, ke), e + "");
1714
1714
  }
1715
1715
  var In = 9007199254740991;
1716
- function Fe(e) {
1716
+ function Pe(e) {
1717
1717
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= In;
1718
1718
  }
1719
1719
  function Et(e) {
1720
- return e != null && Fe(e.length) && !je(e);
1720
+ return e != null && Pe(e.length) && !je(e);
1721
1721
  }
1722
- function Pe(e, t, i) {
1722
+ function Fe(e, t, i) {
1723
1723
  if (!wt(i))
1724
1724
  return !1;
1725
1725
  var n = typeof t;
1726
- return (n == "number" ? Et(i) && ze(t, i.length) : n == "string" && t in i) ? Pt(i[t], e) : !1;
1726
+ return (n == "number" ? Et(i) && ze(t, i.length) : n == "string" && t in i) ? Ft(i[t], e) : !1;
1727
1727
  }
1728
1728
  function Nn(e) {
1729
1729
  return Re(function(t, i) {
1730
1730
  var n = -1, r = i.length, a = r > 1 ? i[r - 1] : void 0, o = r > 2 ? i[2] : void 0;
1731
- for (a = e.length > 3 && typeof a == "function" ? (r--, a) : void 0, o && Pe(i[0], i[1], o) && (a = r < 3 ? void 0 : a, r = 1), t = Object(t); ++n < r; ) {
1731
+ for (a = e.length > 3 && typeof a == "function" ? (r--, a) : void 0, o && Fe(i[0], i[1], o) && (a = r < 3 ? void 0 : a, r = 1), t = Object(t); ++n < r; ) {
1732
1732
  var s = i[n];
1733
1733
  s && e(t, s, n, a);
1734
1734
  }
@@ -1747,34 +1747,34 @@ function kn(e, t) {
1747
1747
  }
1748
1748
  var jn = "[object Arguments]";
1749
1749
  function ye(e) {
1750
- return Ft(e) && Rt(e) == jn;
1750
+ return Pt(e) && Rt(e) == jn;
1751
1751
  }
1752
1752
  var Me = Object.prototype, zn = Me.hasOwnProperty, Ln = Me.propertyIsEnumerable, Vn = ye(function() {
1753
1753
  return arguments;
1754
1754
  }()) ? ye : function(e) {
1755
- return Ft(e) && zn.call(e, "callee") && !Ln.call(e, "callee");
1755
+ return Pt(e) && zn.call(e, "callee") && !Ln.call(e, "callee");
1756
1756
  };
1757
1757
  const Rn = Vn;
1758
- function Fn() {
1758
+ function Pn() {
1759
1759
  return !1;
1760
1760
  }
1761
- var Ye = typeof exports == "object" && exports && !exports.nodeType && exports, we = Ye && typeof module == "object" && module && !module.nodeType && module, Pn = we && we.exports === Ye, Ee = Pn ? Vt.Buffer : void 0, Mn = Ee ? Ee.isBuffer : void 0, Yn = Mn || Fn;
1761
+ var Ye = typeof exports == "object" && exports && !exports.nodeType && exports, we = Ye && typeof module == "object" && module && !module.nodeType && module, Fn = we && we.exports === Ye, Ee = Fn ? Vt.Buffer : void 0, Mn = Ee ? Ee.isBuffer : void 0, Yn = Mn || Pn;
1762
1762
  const Wn = Yn;
1763
1763
  var Xn = "[object Arguments]", Hn = "[object Array]", qn = "[object Boolean]", Un = "[object Date]", Bn = "[object Error]", Zn = "[object Function]", $n = "[object Map]", Kn = "[object Number]", Gn = "[object Object]", Qn = "[object RegExp]", Jn = "[object Set]", tr = "[object String]", er = "[object WeakMap]", ir = "[object ArrayBuffer]", nr = "[object DataView]", rr = "[object Float32Array]", ar = "[object Float64Array]", or = "[object Int8Array]", sr = "[object Int16Array]", lr = "[object Int32Array]", ur = "[object Uint8Array]", cr = "[object Uint8ClampedArray]", hr = "[object Uint16Array]", fr = "[object Uint32Array]", w = {};
1764
1764
  w[rr] = w[ar] = w[or] = w[sr] = w[lr] = w[ur] = w[cr] = w[hr] = w[fr] = !0;
1765
1765
  w[Xn] = w[Hn] = w[ir] = w[qn] = w[nr] = w[Un] = w[Bn] = w[Zn] = w[$n] = w[Kn] = w[Gn] = w[Qn] = w[Jn] = w[tr] = w[er] = !1;
1766
1766
  function dr(e) {
1767
- return Ft(e) && Fe(e.length) && !!w[Rt(e)];
1767
+ return Pt(e) && Pe(e.length) && !!w[Rt(e)];
1768
1768
  }
1769
1769
  function vr(e) {
1770
1770
  return function(t) {
1771
1771
  return e(t);
1772
1772
  };
1773
1773
  }
1774
- var We = typeof exports == "object" && exports && !exports.nodeType && exports, rt = We && typeof module == "object" && module && !module.nodeType && module, mr = rt && rt.exports === We, _t = mr && Ne.process, gr = function() {
1774
+ var We = typeof exports == "object" && exports && !exports.nodeType && exports, rt = We && typeof module == "object" && module && !module.nodeType && module, mr = rt && rt.exports === We, At = mr && Ne.process, gr = function() {
1775
1775
  try {
1776
1776
  var e = rt && rt.require && rt.require("util").types;
1777
- return e || _t && _t.binding && _t.binding("util");
1777
+ return e || At && At.binding && At.binding("util");
1778
1778
  } catch (t) {
1779
1779
  }
1780
1780
  }();
@@ -1796,7 +1796,7 @@ function Er(e, t) {
1796
1796
  var Tr = Er(Object.keys, Object);
1797
1797
  const Or = Tr;
1798
1798
  var Sr = Object.prototype, xr = Sr.hasOwnProperty;
1799
- function _r(e) {
1799
+ function Ar(e) {
1800
1800
  if (!Mt(e))
1801
1801
  return Or(e);
1802
1802
  var t = [];
@@ -1804,13 +1804,13 @@ function _r(e) {
1804
1804
  xr.call(e, i) && i != "constructor" && t.push(i);
1805
1805
  return t;
1806
1806
  }
1807
- function Ar(e) {
1808
- return Et(e) ? Xe(e) : _r(e);
1807
+ function Dr(e) {
1808
+ return Et(e) ? Xe(e) : Ar(e);
1809
1809
  }
1810
- var Dr = Object.prototype, Ir = Dr.hasOwnProperty;
1810
+ var _r = Object.prototype, Ir = _r.hasOwnProperty;
1811
1811
  Nn(function(e, t) {
1812
1812
  if (Mt(t) || Et(t)) {
1813
- An(t, Ar(t), e);
1813
+ Dn(t, Dr(t), e);
1814
1814
  return;
1815
1815
  }
1816
1816
  for (var i in t)
@@ -1839,10 +1839,10 @@ var He = Object.prototype, Lr = He.hasOwnProperty;
1839
1839
  Re(function(e, t) {
1840
1840
  e = Object(e);
1841
1841
  var i = -1, n = t.length, r = n > 2 ? t[2] : void 0;
1842
- for (r && Pe(t[0], t[1], r) && (n = 1); ++i < n; )
1842
+ for (r && Fe(t[0], t[1], r) && (n = 1); ++i < n; )
1843
1843
  for (var a = t[i], o = zr(a), s = -1, c = o.length; ++s < c; ) {
1844
1844
  var l = o[s], u = e[l];
1845
- (u === void 0 || Pt(u, He[l]) && !Lr.call(e, l)) && (e[l] = a[l]);
1845
+ (u === void 0 || Ft(u, He[l]) && !Lr.call(e, l)) && (e[l] = a[l]);
1846
1846
  }
1847
1847
  return e;
1848
1848
  });
@@ -1911,16 +1911,16 @@ const Vr = Se({
1911
1911
  for (const [n, r] of t)
1912
1912
  i[n] = r;
1913
1913
  return i;
1914
- }, Fr = { ref: "root" };
1915
- function Pr(e, t, i, n, r, a) {
1916
- return ft(), At("div", Fr, [
1914
+ }, Pr = { ref: "root" };
1915
+ function Fr(e, t, i, n, r, a) {
1916
+ return ft(), Dt("div", Pr, [
1917
1917
  Ze(e.$slots, "default", {
1918
1918
  images: e.images,
1919
1919
  options: e.options
1920
1920
  })
1921
1921
  ], 512);
1922
1922
  }
1923
- const Mr = /* @__PURE__ */ Rr(Vr, [["render", Pr]]);
1923
+ const Mr = /* @__PURE__ */ Rr(Vr, [["render", Fr]]);
1924
1924
  const Yr = ["src"], Wr = /* @__PURE__ */ Se({
1925
1925
  __name: "ImageViewer",
1926
1926
  props: {
@@ -1933,7 +1933,7 @@ const Yr = ["src"], Wr = /* @__PURE__ */ Se({
1933
1933
  style: { height: "100%" }
1934
1934
  }, {
1935
1935
  default: Qe(() => [
1936
- (ft(!0), At(Je, null, ti(i.value, (a) => (ft(), At("img", {
1936
+ (ft(!0), Dt(Je, null, ti(i.value, (a) => (ft(), Dt("img", {
1937
1937
  alt: "图片",
1938
1938
  src: a.src,
1939
1939
  key: a.index,