@flyfish-group/file-viewer3 1.0.5 → 1.0.6

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 (79) hide show
  1. package/LICENSE +160 -0
  2. package/README.md +40 -15
  3. package/dist/components/CadViewer.js +1 -0
  4. package/dist/components/CodeViewer.js +1 -0
  5. package/dist/components/ImageViewer.js +1 -1950
  6. package/dist/components/MarkdownViewer.js +1 -1469
  7. package/dist/components/OfdViewer.js +1 -0
  8. package/dist/components/PdfView.js +1 -22630
  9. package/dist/components/PptxRender.js +1 -22428
  10. package/dist/components/XlsxTable.js +1 -55468
  11. package/dist/components/_plugin-vue_export-helper.js +1 -0
  12. package/dist/components/asyncToGenerator.js +1 -0
  13. package/dist/components/chunk.js +1 -0
  14. package/dist/components/dist.js +1 -0
  15. package/dist/components/docx-preview.js +1 -5795
  16. package/dist/components/jszip.min.js +1 -0
  17. package/dist/components/objectSpread2.js +1 -0
  18. package/dist/components/ofd.js +1 -0
  19. package/dist/components/use.js +1 -0
  20. package/dist/components/worker-ref.js +1 -21
  21. package/dist/components/wrapAsyncGenerator.js +1 -0
  22. package/dist/file-viewer3.css +2 -0
  23. package/dist/index.mjs +1 -6
  24. package/dist/index.umd.js +1 -313
  25. package/dist/src/components/utils.d.ts +3 -0
  26. package/dist/src/main.d.ts +0 -0
  27. package/dist/src/package/common/type.d.ts +30 -0
  28. package/dist/src/package/common/util.d.ts +5 -0
  29. package/dist/src/package/common/worker-ref.d.ts +12 -0
  30. package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +8 -0
  31. package/dist/src/package/components/FileViewer/index.d.ts +2 -0
  32. package/dist/src/package/components/FileViewer/util.d.ts +2 -0
  33. package/dist/src/package/index.d.ts +15 -3
  34. package/dist/src/package/use/index.d.ts +2 -0
  35. package/dist/src/package/use/loading.d.ts +33 -0
  36. package/dist/src/package/use/worker.d.ts +24 -0
  37. package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +7 -0
  38. package/dist/src/package/vendors/cad/index.d.ts +7 -0
  39. package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +6 -0
  40. package/dist/src/package/vendors/image/index.d.ts +4 -0
  41. package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +6 -0
  42. package/dist/src/package/vendors/md/index.d.ts +4 -0
  43. package/dist/src/package/vendors/mp4/index.d.ts +4 -0
  44. package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +6 -0
  45. package/dist/src/package/vendors/ofd/index.d.ts +7 -0
  46. package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +6 -0
  47. package/dist/src/package/vendors/pdf/index.d.ts +1 -0
  48. package/dist/src/package/vendors/pdf/worker/index.d.ts +4 -0
  49. package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +9 -0
  50. package/dist/src/package/vendors/pptx/index.d.ts +6 -0
  51. package/dist/src/package/vendors/pptx/options.d.ts +39 -0
  52. package/dist/src/package/vendors/pptx/support/chart.d.ts +4 -0
  53. package/dist/src/package/vendors/pptx/worker/index.d.ts +4 -0
  54. package/dist/src/package/vendors/renders.d.ts +3 -0
  55. package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +7 -0
  56. package/dist/src/package/vendors/text/index.d.ts +10 -0
  57. package/dist/src/package/vendors/word/doc.d.ts +5 -0
  58. package/dist/src/package/vendors/word/docx.d.ts +5 -0
  59. package/dist/src/package/vendors/word/index.d.ts +3 -0
  60. package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +79 -0
  61. package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +22 -0
  62. package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +6 -0
  63. package/dist/src/package/vendors/xlsx/index.d.ts +5 -0
  64. package/dist/src/package/vendors/xlsx/util.d.ts +8 -0
  65. package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -0
  66. package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +69 -0
  67. package/dist/src/package/vendors/xlsx/worker/sheetjs/color.d.ts +2 -0
  68. package/dist/src/package/vendors/xlsx/worker/sheetjs/index.d.ts +4 -0
  69. package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +1 -0
  70. package/dist/worker/pdf.worker.js +1 -58
  71. package/dist/worker/pptx.worker.js +1 -21
  72. package/dist/worker/sheet.worker.js +1 -38
  73. package/package.json +50 -42
  74. package/dist/components/_commonjs-dynamic-modules.js +0 -6
  75. package/dist/components/_commonjsHelpers.js +0 -30
  76. package/dist/components/index.js +0 -4914
  77. package/dist/index.d.ts +0 -48
  78. package/dist/style.css +0 -57
  79. package/dist/worker/xlsx.worker.js +0 -62
@@ -1,1950 +1 @@
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
- import { _ as ei } from "./index.js";
3
- /*!
4
- * Viewer.js v1.11.7
5
- * https://fengyuanchen.github.io/viewerjs
6
- *
7
- * Copyright 2015-present Chen Fengyuan
8
- * Released under the MIT license
9
- *
10
- * Date: 2024-11-24T04:32:19.116Z
11
- */
12
- function ii(e, t) {
13
- if (!(e instanceof t))
14
- throw new TypeError("Cannot call a class as a function");
15
- }
16
- function Yt(e, t) {
17
- for (var i = 0; i < t.length; i++) {
18
- var n = t[i];
19
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, xe(n.key), n);
20
- }
21
- }
22
- function ni(e, t, i) {
23
- return t && Yt(e.prototype, t), i && Yt(e, i), Object.defineProperty(e, "prototype", {
24
- writable: !1
25
- }), e;
26
- }
27
- function ri(e, t, i) {
28
- return (t = xe(t)) in e ? Object.defineProperty(e, t, {
29
- value: i,
30
- enumerable: !0,
31
- configurable: !0,
32
- writable: !0
33
- }) : e[t] = i, e;
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
- }
56
- function ai(e, t) {
57
- if (typeof e != "object" || !e)
58
- return e;
59
- var i = e[Symbol.toPrimitive];
60
- if (i !== void 0) {
61
- var n = i.call(e, t || "default");
62
- if (typeof n != "object")
63
- return n;
64
- throw new TypeError("@@toPrimitive must return a primitive value.");
65
- }
66
- return (t === "string" ? String : Number)(e);
67
- }
68
- function xe(e) {
69
- var t = ai(e, "string");
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
- }
80
- var Xt = {
81
- /**
82
- * Enable a modal backdrop, specify `static` for a backdrop
83
- * which doesn't close the modal on click.
84
- * @type {boolean}
85
- */
86
- backdrop: !0,
87
- /**
88
- * Show the button on the top-right of the viewer.
89
- * @type {boolean}
90
- */
91
- button: !0,
92
- /**
93
- * Show the navbar.
94
- * @type {boolean | number}
95
- */
96
- navbar: !0,
97
- /**
98
- * Specify the visibility and the content of the title.
99
- * @type {boolean | number | Function | Array}
100
- */
101
- title: !0,
102
- /**
103
- * Show the toolbar.
104
- * @type {boolean | number | Object}
105
- */
106
- toolbar: !0,
107
- /**
108
- * Custom class name(s) to add to the viewer's root element.
109
- * @type {string}
110
- */
111
- className: "",
112
- /**
113
- * Define where to put the viewer in modal mode.
114
- * @type {string | Element}
115
- */
116
- container: "body",
117
- /**
118
- * Filter the images for viewing. Return true if the image is viewable.
119
- * @type {Function}
120
- */
121
- filter: null,
122
- /**
123
- * Enable to request fullscreen when play.
124
- * {@link https://developer.mozilla.org/en-US/docs/Web/API/FullscreenOptions}
125
- * @type {boolean|FullscreenOptions}
126
- */
127
- fullscreen: !0,
128
- /**
129
- * Define the extra attributes to inherit from the original image.
130
- * @type {Array}
131
- */
132
- inheritedAttributes: ["crossOrigin", "decoding", "isMap", "loading", "referrerPolicy", "sizes", "srcset", "useMap"],
133
- /**
134
- * Define the initial coverage of the viewing image.
135
- * @type {number}
136
- */
137
- initialCoverage: 0.9,
138
- /**
139
- * Define the initial index of the image for viewing.
140
- * @type {number}
141
- */
142
- initialViewIndex: 0,
143
- /**
144
- * Enable inline mode.
145
- * @type {boolean}
146
- */
147
- inline: !1,
148
- /**
149
- * The amount of time to delay between automatically cycling an image when playing.
150
- * @type {number}
151
- */
152
- interval: 5e3,
153
- /**
154
- * Enable keyboard support.
155
- * @type {boolean}
156
- */
157
- keyboard: !0,
158
- /**
159
- * Focus the viewer when initialized.
160
- * @type {boolean}
161
- */
162
- focus: !0,
163
- /**
164
- * Indicate if show a loading spinner when load image or not.
165
- * @type {boolean}
166
- */
167
- loading: !0,
168
- /**
169
- * Indicate if enable loop viewing or not.
170
- * @type {boolean}
171
- */
172
- loop: !0,
173
- /**
174
- * Min width of the viewer in inline mode.
175
- * @type {number}
176
- */
177
- minWidth: 200,
178
- /**
179
- * Min height of the viewer in inline mode.
180
- * @type {number}
181
- */
182
- minHeight: 100,
183
- /**
184
- * Enable to move the image.
185
- * @type {boolean}
186
- */
187
- movable: !0,
188
- /**
189
- * Enable to rotate the image.
190
- * @type {boolean}
191
- */
192
- rotatable: !0,
193
- /**
194
- * Enable to scale the image.
195
- * @type {boolean}
196
- */
197
- scalable: !0,
198
- /**
199
- * Enable to zoom the image.
200
- * @type {boolean}
201
- */
202
- zoomable: !0,
203
- /**
204
- * Enable to zoom the current image by dragging on the touch screen.
205
- * @type {boolean}
206
- */
207
- zoomOnTouch: !0,
208
- /**
209
- * Enable to zoom the image by wheeling mouse.
210
- * @type {boolean}
211
- */
212
- zoomOnWheel: !0,
213
- /**
214
- * Enable to slide to the next or previous image by swiping on the touch screen.
215
- * @type {boolean}
216
- */
217
- slideOnTouch: !0,
218
- /**
219
- * Indicate if toggle the image size between its natural size
220
- * and initial size when double click on the image or not.
221
- * @type {boolean}
222
- */
223
- toggleOnDblclick: !0,
224
- /**
225
- * Show the tooltip with image ratio (percentage) when zoom in or zoom out.
226
- * @type {boolean}
227
- */
228
- tooltip: !0,
229
- /**
230
- * Enable CSS3 Transition for some special elements.
231
- * @type {boolean}
232
- */
233
- transition: !0,
234
- /**
235
- * Define the CSS `z-index` value of viewer in modal mode.
236
- * @type {number}
237
- */
238
- zIndex: 2015,
239
- /**
240
- * Define the CSS `z-index` value of viewer in inline mode.
241
- * @type {number}
242
- */
243
- zIndexInline: 0,
244
- /**
245
- * Define the ratio when zoom the image by wheeling mouse.
246
- * @type {number}
247
- */
248
- zoomRatio: 0.1,
249
- /**
250
- * Define the min ratio of the image when zoom out.
251
- * @type {number}
252
- */
253
- minZoomRatio: 0.01,
254
- /**
255
- * Define the max ratio of the image when zoom in.
256
- * @type {number}
257
- */
258
- maxZoomRatio: 100,
259
- /**
260
- * Define where to get the original image URL for viewing.
261
- * @type {string | Function}
262
- */
263
- url: "src",
264
- /**
265
- * Event shortcuts.
266
- * @type {Function}
267
- */
268
- ready: null,
269
- show: null,
270
- shown: null,
271
- hide: null,
272
- hidden: null,
273
- view: null,
274
- viewed: null,
275
- move: null,
276
- moved: null,
277
- rotate: null,
278
- rotated: null,
279
- scale: null,
280
- scaled: null,
281
- zoom: null,
282
- zoomed: null,
283
- play: null,
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", 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
- function ot(e) {
287
- return typeof e == "string";
288
- }
289
- var gi = Number.isNaN || F.isNaN;
290
- function O(e) {
291
- return typeof e == "number" && !gi(e);
292
- }
293
- function B(e) {
294
- return typeof e == "undefined";
295
- }
296
- function J(e) {
297
- return _t(e) === "object" && e !== null;
298
- }
299
- var pi = Object.prototype.hasOwnProperty;
300
- function Z(e) {
301
- if (!J(e))
302
- return !1;
303
- try {
304
- var t = e.constructor, i = t.prototype;
305
- return t && i && pi.call(i, "isPrototypeOf");
306
- } catch (n) {
307
- return !1;
308
- }
309
- }
310
- function p(e) {
311
- return typeof e == "function";
312
- }
313
- function y(e, t) {
314
- if (e && p(t))
315
- if (Array.isArray(e) || O(e.length)) {
316
- var i = e.length, n;
317
- for (n = 0; n < i && t.call(e, e[n], n, e) !== !1; n += 1)
318
- ;
319
- } else
320
- J(e) && Object.keys(e).forEach(function(r) {
321
- t.call(e, e[r], r, e);
322
- });
323
- return e;
324
- }
325
- var C = Object.assign || function(t) {
326
- for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
327
- n[r - 1] = arguments[r];
328
- return J(t) && n.length > 0 && n.forEach(function(a) {
329
- J(a) && Object.keys(a).forEach(function(o) {
330
- t[o] = a[o];
331
- });
332
- }), t;
333
- }, bi = /^(?:width|height|left|top|marginLeft|marginTop)$/;
334
- function L(e, t) {
335
- var i = e.style;
336
- y(t, function(n, r) {
337
- bi.test(r) && O(n) && (n += "px"), i[r] = n;
338
- });
339
- }
340
- function yi(e) {
341
- return ot(e) ? e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/</g, "&lt;").replace(/>/g, "&gt;") : e;
342
- }
343
- function U(e, t) {
344
- return !e || !t ? !1 : e.classList ? e.classList.contains(t) : e.className.indexOf(t) > -1;
345
- }
346
- function f(e, t) {
347
- if (!(!e || !t)) {
348
- if (O(e.length)) {
349
- y(e, function(n) {
350
- f(n, t);
351
- });
352
- return;
353
- }
354
- if (e.classList) {
355
- e.classList.add(t);
356
- return;
357
- }
358
- var i = e.className.trim();
359
- i ? i.indexOf(t) < 0 && (e.className = "".concat(i, " ").concat(t)) : e.className = t;
360
- }
361
- }
362
- function g(e, t) {
363
- if (!(!e || !t)) {
364
- if (O(e.length)) {
365
- y(e, function(i) {
366
- g(i, t);
367
- });
368
- return;
369
- }
370
- if (e.classList) {
371
- e.classList.remove(t);
372
- return;
373
- }
374
- e.className.indexOf(t) >= 0 && (e.className = e.className.replace(t, ""));
375
- }
376
- }
377
- function st(e, t, i) {
378
- if (t) {
379
- if (O(e.length)) {
380
- y(e, function(n) {
381
- st(n, t, i);
382
- });
383
- return;
384
- }
385
- i ? f(e, t) : g(e, t);
386
- }
387
- }
388
- var wi = /([a-z\d])([A-Z])/g;
389
- function Lt(e) {
390
- return e.replace(wi, "$1-$2").toLowerCase();
391
- }
392
- function $(e, t) {
393
- return J(e[t]) ? e[t] : e.dataset ? e.dataset[t] : e.getAttribute("data-".concat(Lt(t)));
394
- }
395
- function Ct(e, t, i) {
396
- J(i) ? e[t] = i : e.dataset ? e.dataset[t] = i : e.setAttribute("data-".concat(Lt(t)), i);
397
- }
398
- var De = function() {
399
- var e = !1;
400
- if (yt) {
401
- var t = !1, i = function() {
402
- }, n = Object.defineProperty({}, "once", {
403
- get: function() {
404
- return e = !0, t;
405
- },
406
- /**
407
- * This setter can fix a `TypeError` in strict mode
408
- * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Getter_only}
409
- * @param {boolean} value - The value to set
410
- */
411
- set: function(a) {
412
- t = a;
413
- }
414
- });
415
- F.addEventListener("test", i, n), F.removeEventListener("test", i, n);
416
- }
417
- return e;
418
- }();
419
- function b(e, t, i) {
420
- var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, r = i;
421
- t.trim().split(zt).forEach(function(a) {
422
- if (!De) {
423
- var o = e.listeners;
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
- }
426
- e.removeEventListener(a, r, n);
427
- });
428
- }
429
- function d(e, t, i) {
430
- var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, r = i;
431
- t.trim().split(zt).forEach(function(a) {
432
- if (n.once && !De) {
433
- var o = e.listeners, s = o === void 0 ? {} : o;
434
- r = function() {
435
- delete s[a][i], e.removeEventListener(a, r, n);
436
- for (var l = arguments.length, u = new Array(l), h = 0; h < l; h++)
437
- u[h] = arguments[h];
438
- i.apply(e, u);
439
- }, s[a] || (s[a] = {}), s[a][i] && e.removeEventListener(a, s[a][i], n), s[a][i] = r, e.listeners = s;
440
- }
441
- e.addEventListener(a, r, n);
442
- });
443
- }
444
- function D(e, t, i, n) {
445
- var r;
446
- return p(Event) && p(CustomEvent) ? r = new CustomEvent(t, kt({
447
- bubbles: !0,
448
- cancelable: !0,
449
- detail: i
450
- }, n)) : (r = document.createEvent("CustomEvent"), r.initCustomEvent(t, !0, !0, i)), e.dispatchEvent(r);
451
- }
452
- function Ei(e) {
453
- var t = e.getBoundingClientRect();
454
- return {
455
- left: t.left + (window.pageXOffset - document.documentElement.clientLeft),
456
- top: t.top + (window.pageYOffset - document.documentElement.clientTop)
457
- };
458
- }
459
- function mt(e) {
460
- var t = e.rotate, i = e.scaleX, n = e.scaleY, r = e.translateX, a = e.translateY, o = [];
461
- O(r) && r !== 0 && o.push("translateX(".concat(r, "px)")), O(a) && a !== 0 && o.push("translateY(".concat(a, "px)")), O(t) && t !== 0 && o.push("rotate(".concat(t, "deg)")), O(i) && i !== 1 && o.push("scaleX(".concat(i, ")")), O(n) && n !== 1 && o.push("scaleY(".concat(n, ")"));
462
- var s = o.length ? o.join(" ") : "none";
463
- return {
464
- WebkitTransform: s,
465
- msTransform: s,
466
- transform: s
467
- };
468
- }
469
- function Ti(e) {
470
- return ot(e) ? decodeURIComponent(e.replace(/^.*\//, "").replace(/[?&#].*$/, "")) : "";
471
- }
472
- var St = F.navigator && /Version\/\d+(\.\d+)+?\s+Safari/i.test(F.navigator.userAgent);
473
- function _e(e, t, i) {
474
- var n = document.createElement("img");
475
- if (e.naturalWidth && !St)
476
- return i(e.naturalWidth, e.naturalHeight), n;
477
- var r = document.body || document.documentElement;
478
- return n.onload = function() {
479
- i(n.width, n.height), St || r.removeChild(n);
480
- }, y(t.inheritedAttributes, function(a) {
481
- var o = e.getAttribute(a);
482
- o !== null && n.setAttribute(a, o);
483
- }), n.src = e.src, St || (n.style.cssText = "left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;", r.appendChild(n)), n;
484
- }
485
- function ct(e) {
486
- switch (e) {
487
- case 2:
488
- return hi;
489
- case 3:
490
- return ci;
491
- case 4:
492
- return ui;
493
- default:
494
- return "";
495
- }
496
- }
497
- function Oi(e) {
498
- var t = kt({}, e), i = [];
499
- return y(e, function(n, r) {
500
- delete t[r], y(t, function(a) {
501
- var o = Math.abs(n.startX - a.startX), s = Math.abs(n.startY - a.startY), c = Math.abs(n.endX - a.endX), l = Math.abs(n.endY - a.endY), u = Math.sqrt(o * o + s * s), h = Math.sqrt(c * c + l * l), m = (h - u) / u;
502
- i.push(m);
503
- });
504
- }), i.sort(function(n, r) {
505
- return Math.abs(n) < Math.abs(r);
506
- }), i[0];
507
- }
508
- function ht(e, t) {
509
- var i = e.pageX, n = e.pageY, r = {
510
- endX: i,
511
- endY: n
512
- };
513
- return t ? r : kt({
514
- timeStamp: Date.now(),
515
- startX: i,
516
- startY: n
517
- }, r);
518
- }
519
- function Si(e) {
520
- var t = 0, i = 0, n = 0;
521
- return y(e, function(r) {
522
- var a = r.startX, o = r.startY;
523
- t += a, i += o, n += 1;
524
- }), t /= n, i /= n, {
525
- pageX: t,
526
- pageY: i
527
- };
528
- }
529
- var xi = {
530
- render: function() {
531
- this.initContainer(), this.initViewer(), this.initList(), this.renderViewer();
532
- },
533
- initBody: function() {
534
- var t = this.element.ownerDocument, i = t.body || t.documentElement;
535
- this.body = i, this.scrollbarWidth = window.innerWidth - t.documentElement.clientWidth, this.initialBodyPaddingRight = i.style.paddingRight, this.initialBodyComputedPaddingRight = window.getComputedStyle(i).paddingRight;
536
- },
537
- initContainer: function() {
538
- this.containerData = {
539
- width: window.innerWidth,
540
- height: window.innerHeight
541
- };
542
- },
543
- initViewer: function() {
544
- var t = this.options, i = this.parent, n;
545
- t.inline && (n = {
546
- width: Math.max(i.offsetWidth, t.minWidth),
547
- height: Math.max(i.offsetHeight, t.minHeight)
548
- }, this.parentData = n), (this.fulled || !n) && (n = this.containerData), this.viewerData = C({}, n);
549
- },
550
- renderViewer: function() {
551
- this.options.inline && !this.fulled && L(this.viewer, this.viewerData);
552
- },
553
- initList: function() {
554
- var t = this, i = this.element, n = this.options, r = this.list, a = [];
555
- r.innerHTML = "", y(this.images, function(o, s) {
556
- var c = o.src, l = o.alt || Ti(c), u = t.getImageURL(o);
557
- if (c || u) {
558
- var h = document.createElement("li"), m = document.createElement("img");
559
- y(n.inheritedAttributes, function(A) {
560
- var S = o.getAttribute(A);
561
- S !== null && m.setAttribute(A, S);
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
- }
564
- }), this.items = a, y(a, function(o) {
565
- var s = o.firstElementChild, c, l;
566
- Ct(s, "filled", !0), n.loading && f(o, G), d(s, j, c = function(h) {
567
- b(s, X, l), n.loading && g(o, G), t.loadImage(h);
568
- }, {
569
- once: !0
570
- }), d(s, X, l = function() {
571
- b(s, j, c), n.loading && g(o, G);
572
- }, {
573
- once: !0
574
- });
575
- }), n.transition && d(i, at, function() {
576
- f(r, x);
577
- }, {
578
- once: !0
579
- });
580
- },
581
- renderList: function() {
582
- var t = this.index, i = this.items[t];
583
- if (i) {
584
- var n = i.nextElementSibling, r = parseInt(window.getComputedStyle(n || i).marginLeft, 10), a = i.offsetWidth, o = a + r;
585
- L(this.list, C({
586
- width: o * this.length - r
587
- }, mt({
588
- translateX: (this.viewerData.width - a) / 2 - o * t
589
- })));
590
- }
591
- },
592
- resetList: function() {
593
- var t = this.list;
594
- t.innerHTML = "", g(t, x), L(t, mt({
595
- translateX: 0
596
- }));
597
- },
598
- initImage: function(t) {
599
- var i = this, n = this.options, r = this.image, a = this.viewerData, o = this.footer.offsetHeight, s = a.width, c = Math.max(a.height - o, o), l = this.imageData || {}, u;
600
- this.imageInitializing = {
601
- abort: function() {
602
- u.onload = null;
603
- }
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
- left: I,
609
- top: N,
610
- x: I,
611
- y: N,
612
- width: T,
613
- height: _,
614
- oldRatio: 1,
615
- ratio: T / h,
616
- aspectRatio: A,
617
- naturalWidth: h,
618
- naturalHeight: m
619
- }, R = C({}, E);
620
- n.rotatable && (E.rotate = l.rotate || 0, R.rotate = 0), n.scalable && (E.scaleX = l.scaleX || 1, E.scaleY = l.scaleY || 1, R.scaleX = 1, R.scaleY = 1), i.imageData = E, i.initialImageData = R, t && t();
621
- });
622
- },
623
- renderImage: function(t) {
624
- var i = this, n = this.image, r = this.imageData;
625
- if (L(n, C({
626
- width: r.width,
627
- height: r.height,
628
- // XXX: Not to use translateX/Y to avoid image shaking when zooming
629
- marginLeft: r.x,
630
- marginTop: r.y
631
- }, mt(r))), t)
632
- if ((this.viewing || this.moving || this.rotating || this.scaling || this.zooming) && this.options.transition && U(n, x)) {
633
- var a = function() {
634
- i.imageRendering = !1, t();
635
- };
636
- this.imageRendering = {
637
- abort: function() {
638
- b(n, z, a);
639
- }
640
- }, d(n, z, a, {
641
- once: !0
642
- });
643
- } else
644
- t();
645
- },
646
- resetImage: function() {
647
- var t = this.image;
648
- t && (this.viewing && this.viewing.abort(), t.parentNode.removeChild(t), this.image = null, this.title.innerHTML = "");
649
- }
650
- }, Ai = {
651
- bind: function() {
652
- var t = this.options, i = this.viewer, n = this.canvas, r = this.element.ownerDocument;
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), {
654
- passive: !1,
655
- capture: !0
656
- }), t.toggleOnDblclick && d(n, Nt, this.onDblclick = this.dblclick.bind(this));
657
- },
658
- unbind: function() {
659
- var t = this.options, i = this.viewer, n = this.canvas, r = this.element.ownerDocument;
660
- b(i, Q, this.onClick), b(i, Ut, this.onDragStart), b(n, $t, this.onPointerDown), b(r, Kt, this.onPointerMove), b(r, Gt, this.onPointerUp), b(r, Zt, this.onKeyDown), b(window, Qt, this.onResize), t.zoomable && t.zoomOnWheel && b(i, Jt, this.onWheel, {
661
- passive: !1,
662
- capture: !0
663
- }), t.toggleOnDblclick && b(n, Nt, this.onDblclick);
664
- }
665
- }, Di = {
666
- click: function(t) {
667
- var i = this.options, n = this.imageData, r = t.target, a = $(r, gt);
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) {
669
- case "mix":
670
- this.played ? this.stop() : i.inline ? this.fulled ? this.exit() : this.full() : this.hide();
671
- break;
672
- case "hide":
673
- this.pointerMoved || this.hide();
674
- break;
675
- case "view":
676
- this.view($(r, "index"));
677
- break;
678
- case "zoom-in":
679
- this.zoom(0.1, !0);
680
- break;
681
- case "zoom-out":
682
- this.zoom(-0.1, !0);
683
- break;
684
- case "one-to-one":
685
- this.toggle();
686
- break;
687
- case "reset":
688
- this.reset();
689
- break;
690
- case "prev":
691
- this.prev(i.loop);
692
- break;
693
- case "play":
694
- this.play(i.fullscreen);
695
- break;
696
- case "next":
697
- this.next(i.loop);
698
- break;
699
- case "rotate-left":
700
- this.rotate(-90);
701
- break;
702
- case "rotate-right":
703
- this.rotate(90);
704
- break;
705
- case "flip-horizontal":
706
- this.scaleX(-n.scaleX || -1);
707
- break;
708
- case "flip-vertical":
709
- this.scaleY(-n.scaleY || -1);
710
- break;
711
- default:
712
- this.played && this.stop();
713
- }
714
- },
715
- dblclick: function(t) {
716
- t.preventDefault(), this.viewed && t.target === this.image && (K && t.isTrusted && clearTimeout(this.doubleClickImageTimeout), this.toggle(t.isTrusted ? t : t.detail && t.detail.originalEvent));
717
- },
718
- load: function() {
719
- var t = this;
720
- this.timeout && (clearTimeout(this.timeout), this.timeout = !1);
721
- var i = this.element, n = this.options, r = this.image, a = this.index, o = this.viewerData;
722
- g(r, nt), n.loading && g(this.canvas, G), r.style.cssText = "height:0;" + "margin-left:".concat(o.width / 2, "px;") + "margin-top:".concat(o.height / 2, "px;") + "max-width:none!important;position:relative;width:0;", this.initImage(function() {
723
- st(r, fi, n.movable), st(r, x, n.transition), t.renderImage(function() {
724
- t.viewed = !0, t.viewing = !1, p(n.viewed) && d(i, at, n.viewed, {
725
- once: !0
726
- }), D(i, at, {
727
- originalImage: t.images[a],
728
- index: a,
729
- image: r
730
- }, {
731
- cancelable: !1
732
- });
733
- });
734
- });
735
- },
736
- loadImage: function(t) {
737
- var i = t.target, n = i.parentNode, r = n.offsetWidth || 30, a = n.offsetHeight || 50, o = !!$(i, "filled");
738
- _e(i, this.options, function(s, c) {
739
- var l = s / c, u = r, h = a;
740
- a * l > r ? o ? u = a * l : h = r / l : o ? h = r / l : u = a * l, L(i, C({
741
- width: u,
742
- height: h
743
- }, mt({
744
- translateX: (r - u) / 2,
745
- translateY: (a - h) / 2
746
- })));
747
- });
748
- },
749
- keydown: function(t) {
750
- var i = this.options;
751
- if (i.keyboard) {
752
- var n = t.keyCode || t.which || t.charCode;
753
- switch (n) {
754
- case 13:
755
- this.viewer.contains(t.target) && this.click(t);
756
- break;
757
- }
758
- if (this.fulled)
759
- switch (n) {
760
- case 27:
761
- this.played ? this.stop() : i.inline ? this.fulled && this.exit() : this.hide();
762
- break;
763
- case 32:
764
- this.played && this.stop();
765
- break;
766
- case 37:
767
- this.played && this.playing ? this.playing.prev() : this.prev(i.loop);
768
- break;
769
- case 38:
770
- t.preventDefault(), this.zoom(i.zoomRatio, !0);
771
- break;
772
- case 39:
773
- this.played && this.playing ? this.playing.next() : this.next(i.loop);
774
- break;
775
- case 40:
776
- t.preventDefault(), this.zoom(-i.zoomRatio, !0);
777
- break;
778
- case 48:
779
- case 49:
780
- t.ctrlKey && (t.preventDefault(), this.toggle());
781
- break;
782
- }
783
- }
784
- },
785
- dragstart: function(t) {
786
- t.target.localName === "img" && t.preventDefault();
787
- },
788
- pointerdown: function(t) {
789
- var i = this.options, n = this.pointers, r = t.buttons, a = t.button;
790
- if (this.pointerMoved = !1, !(!this.viewed || this.showing || this.viewing || this.hiding || (t.type === "mousedown" || t.type === "pointerdown" && t.pointerType === "mouse") && // No primary button (Usually the left button)
791
- (O(r) && r !== 1 || O(a) && a !== 0 || t.ctrlKey))) {
792
- t.preventDefault(), t.changedTouches ? y(t.changedTouches, function(s) {
793
- n[s.identifier] = ht(s);
794
- }) : n[t.pointerId || 0] = ht(t);
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 = Ae), i.transition && (o === dt || o === it) && g(this.image, x), this.action = o;
797
- }
798
- },
799
- pointermove: function(t) {
800
- var i = this.pointers, n = this.action;
801
- !this.viewed || !n || (t.preventDefault(), t.changedTouches ? y(t.changedTouches, function(r) {
802
- C(i[r.identifier] || {}, ht(r, !0));
803
- }) : C(i[t.pointerId || 0] || {}, ht(t, !0)), this.change(t));
804
- },
805
- pointerup: function(t) {
806
- var i = this, n = this.options, r = this.action, a = this.pointers, o;
807
- t.changedTouches ? y(t.changedTouches, function(s) {
808
- o = a[s.identifier], delete a[s.identifier];
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
- D(i.image, Nt, {
811
- originalEvent: t
812
- });
813
- }, 50)) : (this.imageClicked = !0, this.doubleClickImageTimeout = setTimeout(function() {
814
- i.imageClicked = !1;
815
- }, 500)) : (this.imageClicked = !1, n.backdrop && n.backdrop !== "static" && t.target === this.canvas && (this.clickCanvasTimeout = setTimeout(function() {
816
- D(i.canvas, Q, {
817
- originalEvent: t
818
- });
819
- }, 50)))));
820
- },
821
- resize: function() {
822
- var t = this;
823
- if (!(!this.isShown || this.hiding) && (this.fulled && (this.close(), this.initBody(), this.open()), this.initContainer(), this.initViewer(), this.renderViewer(), this.renderList(), this.viewed && this.initImage(function() {
824
- t.renderImage();
825
- }), this.played)) {
826
- if (this.options.fullscreen && this.fulled && !(document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement)) {
827
- this.stop();
828
- return;
829
- }
830
- y(this.player.getElementsByTagName("img"), function(i) {
831
- d(i, j, t.loadImage.bind(t), {
832
- once: !0
833
- }), D(i, j);
834
- });
835
- }
836
- },
837
- wheel: function(t) {
838
- var i = this;
839
- if (this.viewed && (t.preventDefault(), !this.wheeling)) {
840
- this.wheeling = !0, setTimeout(function() {
841
- i.wheeling = !1;
842
- }, 50);
843
- var n = Number(this.options.zoomRatio) || 0.1, r = 1;
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
- }
846
- }
847
- }, _i = {
848
- /** Show the viewer (only available in modal mode)
849
- * @param {boolean} [immediate=false] - Indicates if show the viewer immediately or not.
850
- * @returns {Viewer} this
851
- */
852
- show: function() {
853
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i = this.element, n = this.options;
854
- if (n.inline || this.showing || this.isShown || this.showing)
855
- return this;
856
- if (!this.ready)
857
- return this.build(), this.ready && this.show(t), this;
858
- if (p(n.show) && d(i, ee, n.show, {
859
- once: !0
860
- }), D(i, ee) === !1 || !this.ready)
861
- return this;
862
- this.hiding && this.transitioning.abort(), this.showing = !0, this.open();
863
- var r = this.viewer;
864
- if (g(r, W), r.setAttribute("role", "dialog"), r.setAttribute("aria-labelledby", this.title.id), r.setAttribute("aria-modal", !0), r.removeAttribute("aria-hidden"), n.transition && !t) {
865
- var a = this.shown.bind(this);
866
- this.transitioning = {
867
- abort: function() {
868
- b(r, z, a), g(r, k);
869
- }
870
- }, f(r, x), r.initialOffsetWidth = r.offsetWidth, d(r, z, a, {
871
- once: !0
872
- }), f(r, k);
873
- } else
874
- f(r, k), this.shown();
875
- return this;
876
- },
877
- /**
878
- * Hide the viewer (only available in modal mode)
879
- * @param {boolean} [immediate=false] - Indicates if hide the viewer immediately or not.
880
- * @returns {Viewer} this
881
- */
882
- hide: function() {
883
- var t = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, n = this.element, r = this.options;
884
- if (r.inline || this.hiding || !(this.isShown || this.showing))
885
- return this;
886
- if (p(r.hide) && d(n, ne, r.hide, {
887
- once: !0
888
- }), D(n, ne) === !1)
889
- return this;
890
- this.showing && this.transitioning.abort(), this.hiding = !0, this.played ? this.stop() : this.viewing && this.viewing.abort();
891
- var a = this.viewer, o = this.image, s = function() {
892
- g(a, k), t.hidden();
893
- };
894
- if (r.transition && !i) {
895
- var c = function(h) {
896
- h && h.target === a && (b(a, z, c), t.hidden());
897
- }, l = function() {
898
- U(a, x) ? (d(a, z, c), g(a, k)) : s();
899
- };
900
- this.transitioning = {
901
- abort: function() {
902
- t.viewed && U(o, x) ? b(o, z, l) : U(a, x) && b(a, z, c);
903
- }
904
- }, this.viewed && U(o, x) ? (d(o, z, l, {
905
- once: !0
906
- }), this.zoomTo(0, !1, null, null, !0)) : l();
907
- } else
908
- s();
909
- return this;
910
- },
911
- /**
912
- * View one of the images with image's index
913
- * @param {number} index - The index of the image to view.
914
- * @returns {Viewer} this
915
- */
916
- view: function() {
917
- var t = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.initialViewIndex;
918
- if (i = Number(i) || 0, this.hiding || this.played || i < 0 || i >= this.length || this.viewed && i === this.index)
919
- return this;
920
- if (!this.isShown)
921
- return this.index = i, this.show();
922
- this.viewing && this.viewing.abort();
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(_) {
925
- var I = c.getAttribute(_);
926
- I !== null && h.setAttribute(_, I);
927
- }), h.src = l, h.alt = u, p(r.view) && d(n, ae, r.view, {
928
- once: !0
929
- }), D(n, ae, {
930
- originalImage: this.images[i],
931
- index: i,
932
- image: h
933
- }) === !1 || !this.isShown || this.hiding || this.played)
934
- return this;
935
- var m = this.items[this.index];
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 A = function() {
938
- var I = t.imageData, N = Array.isArray(r.title) ? r.title[1] : r.title;
939
- a.innerHTML = yi(p(N) ? N.call(t, h, I) : "".concat(u, " (").concat(I.naturalWidth, " × ").concat(I.naturalHeight, ")"));
940
- }, S, T;
941
- return d(n, at, A, {
942
- once: !0
943
- }), this.viewing = {
944
- abort: function() {
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
- }
947
- }, h.complete ? this.load() : (d(h, j, S = function() {
948
- b(h, X, T), t.load();
949
- }, {
950
- once: !0
951
- }), d(h, X, T = function() {
952
- b(h, j, S), t.timeout && (clearTimeout(t.timeout), t.timeout = !1), g(h, nt), r.loading && g(t.canvas, G);
953
- }, {
954
- once: !0
955
- }), this.timeout && clearTimeout(this.timeout), this.timeout = setTimeout(function() {
956
- g(h, nt), t.timeout = !1;
957
- }, 1e3)), this;
958
- },
959
- /**
960
- * View the previous image
961
- * @param {boolean} [loop=false] - Indicate if view the last one
962
- * when it is the first one at present.
963
- * @returns {Viewer} this
964
- */
965
- prev: function() {
966
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i = this.index - 1;
967
- return i < 0 && (i = t ? this.length - 1 : 0), this.view(i), this;
968
- },
969
- /**
970
- * View the next image
971
- * @param {boolean} [loop=false] - Indicate if view the first one
972
- * when it is the last one at present.
973
- * @returns {Viewer} this
974
- */
975
- next: function() {
976
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i = this.length - 1, n = this.index + 1;
977
- return n > i && (n = t ? 0 : i), this.view(n), this;
978
- },
979
- /**
980
- * Move the image with relative offsets.
981
- * @param {number} x - The moving distance in the horizontal direction.
982
- * @param {number} [y=x] The moving distance in the vertical direction.
983
- * @returns {Viewer} this
984
- */
985
- move: function(t) {
986
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, n = this.imageData;
987
- return this.moveTo(B(t) ? t : n.x + Number(t), B(i) ? i : n.y + Number(i)), this;
988
- },
989
- /**
990
- * Move the image to an absolute point.
991
- * @param {number} x - The new position in the horizontal direction.
992
- * @param {number} [y=x] - The new position in the vertical direction.
993
- * @param {Event} [_originalEvent=null] - The original event if any.
994
- * @returns {Viewer} this
995
- */
996
- moveTo: function(t) {
997
- var i = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, a = this.element, o = this.options, s = this.imageData;
998
- if (t = Number(t), n = Number(n), this.viewed && !this.played && o.movable) {
999
- var c = s.x, l = s.y, u = !1;
1000
- if (O(t) ? u = !0 : t = c, O(n) ? u = !0 : n = l, u) {
1001
- if (p(o.move) && d(a, oe, o.move, {
1002
- once: !0
1003
- }), D(a, oe, {
1004
- x: t,
1005
- y: n,
1006
- oldX: c,
1007
- oldY: l,
1008
- originalEvent: r
1009
- }) === !1)
1010
- return this;
1011
- s.x = t, s.y = n, s.left = t, s.top = n, this.moving = !0, this.renderImage(function() {
1012
- i.moving = !1, p(o.moved) && d(a, se, o.moved, {
1013
- once: !0
1014
- }), D(a, se, {
1015
- x: t,
1016
- y: n,
1017
- oldX: c,
1018
- oldY: l,
1019
- originalEvent: r
1020
- }, {
1021
- cancelable: !1
1022
- });
1023
- });
1024
- }
1025
- }
1026
- return this;
1027
- },
1028
- /**
1029
- * Rotate the image with a relative degree.
1030
- * @param {number} degree - The rotate degree.
1031
- * @returns {Viewer} this
1032
- */
1033
- rotate: function(t) {
1034
- return this.rotateTo((this.imageData.rotate || 0) + Number(t)), this;
1035
- },
1036
- /**
1037
- * Rotate the image to an absolute degree.
1038
- * @param {number} degree - The rotate degree.
1039
- * @returns {Viewer} this
1040
- */
1041
- rotateTo: function(t) {
1042
- var i = this, n = this.element, r = this.options, a = this.imageData;
1043
- if (t = Number(t), O(t) && this.viewed && !this.played && r.rotatable) {
1044
- var o = a.rotate;
1045
- if (p(r.rotate) && d(n, le, r.rotate, {
1046
- once: !0
1047
- }), D(n, le, {
1048
- degree: t,
1049
- oldDegree: o
1050
- }) === !1)
1051
- return this;
1052
- a.rotate = t, this.rotating = !0, this.renderImage(function() {
1053
- i.rotating = !1, p(r.rotated) && d(n, ue, r.rotated, {
1054
- once: !0
1055
- }), D(n, ue, {
1056
- degree: t,
1057
- oldDegree: o
1058
- }, {
1059
- cancelable: !1
1060
- });
1061
- });
1062
- }
1063
- return this;
1064
- },
1065
- /**
1066
- * Scale the image on the x-axis.
1067
- * @param {number} scaleX - The scale ratio on the x-axis.
1068
- * @returns {Viewer} this
1069
- */
1070
- scaleX: function(t) {
1071
- return this.scale(t, this.imageData.scaleY), this;
1072
- },
1073
- /**
1074
- * Scale the image on the y-axis.
1075
- * @param {number} scaleY - The scale ratio on the y-axis.
1076
- * @returns {Viewer} this
1077
- */
1078
- scaleY: function(t) {
1079
- return this.scale(this.imageData.scaleX, t), this;
1080
- },
1081
- /**
1082
- * Scale the image.
1083
- * @param {number} scaleX - The scale ratio on the x-axis.
1084
- * @param {number} [scaleY=scaleX] - The scale ratio on the y-axis.
1085
- * @returns {Viewer} this
1086
- */
1087
- scale: function(t) {
1088
- var i = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, r = this.element, a = this.options, o = this.imageData;
1089
- if (t = Number(t), n = Number(n), this.viewed && !this.played && a.scalable) {
1090
- var s = o.scaleX, c = o.scaleY, l = !1;
1091
- if (O(t) ? l = !0 : t = s, O(n) ? l = !0 : n = c, l) {
1092
- if (p(a.scale) && d(r, ce, a.scale, {
1093
- once: !0
1094
- }), D(r, ce, {
1095
- scaleX: t,
1096
- scaleY: n,
1097
- oldScaleX: s,
1098
- oldScaleY: c
1099
- }) === !1)
1100
- return this;
1101
- o.scaleX = t, o.scaleY = n, this.scaling = !0, this.renderImage(function() {
1102
- i.scaling = !1, p(a.scaled) && d(r, he, a.scaled, {
1103
- once: !0
1104
- }), D(r, he, {
1105
- scaleX: t,
1106
- scaleY: n,
1107
- oldScaleX: s,
1108
- oldScaleY: c
1109
- }, {
1110
- cancelable: !1
1111
- });
1112
- });
1113
- }
1114
- }
1115
- return this;
1116
- },
1117
- /**
1118
- * Zoom the image with a relative ratio.
1119
- * @param {number} ratio - The target ratio.
1120
- * @param {boolean} [showTooltip=false] - Indicates whether to show the tooltip.
1121
- * @param {Object} [pivot] - The pivot point coordinate for zooming.
1122
- * @param {Event} [_originalEvent=null] - The original event if any.
1123
- * @returns {Viewer} this
1124
- */
1125
- zoom: function(t) {
1126
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, a = this.imageData;
1127
- return t = Number(t), t < 0 ? t = 1 / (1 - t) : t = 1 + t, this.zoomTo(a.width * t / a.naturalWidth, i, n, r), this;
1128
- },
1129
- /**
1130
- * Zoom the image to an absolute ratio.
1131
- * @param {number} ratio - The target ratio.
1132
- * @param {boolean} [showTooltip] - Indicates whether to show the tooltip.
1133
- * @param {Object} [pivot] - The pivot point coordinate for zooming.
1134
- * @param {Event} [_originalEvent=null] - The original event if any.
1135
- * @param {Event} [_zoomable=false] - Indicates if the current zoom is available or not.
1136
- * @returns {Viewer} this
1137
- */
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, A = u.width, S = u.height, T = u.naturalWidth, _ = u.naturalHeight;
1140
- if (t = Math.max(0, t), O(t) && this.viewed && !this.played && (o || c.zoomable)) {
1141
- if (!o) {
1142
- var I = Math.max(0.01, c.minZoomRatio), N = Math.min(100, c.maxZoomRatio);
1143
- t = Math.min(Math.max(t, I), N);
1144
- }
1145
- if (a)
1146
- switch (a.type) {
1147
- case "wheel":
1148
- c.zoomRatio >= 0.055 && t > 0.95 && t < 1.05 && (t = 1);
1149
- break;
1150
- case "pointermove":
1151
- case "touchmove":
1152
- case "mousemove":
1153
- t > 0.99 && t < 1.01 && (t = 1);
1154
- break;
1155
- }
1156
- var E = T * t, R = _ * t, M = E - A, V = R - S, Y = u.ratio;
1157
- if (p(c.zoom) && d(s, fe, c.zoom, {
1158
- once: !0
1159
- }), D(s, fe, {
1160
- ratio: t,
1161
- oldRatio: Y,
1162
- originalEvent: a
1163
- }) === !1)
1164
- return this;
1165
- if (this.zooming = !0, a) {
1166
- var tt = Ei(this.viewer), H = l && Object.keys(l).length > 0 ? Si(l) : {
1167
- pageX: a.pageX,
1168
- pageY: a.pageY
1169
- };
1170
- u.x -= M * ((H.pageX - tt.left - h) / A), u.y -= V * ((H.pageY - tt.top - m) / S);
1171
- } else
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
- u.left = u.x, u.top = u.y, u.width = E, u.height = R, u.oldRatio = Y, u.ratio = t, this.renderImage(function() {
1174
- i.zooming = !1, p(c.zoomed) && d(s, de, c.zoomed, {
1175
- once: !0
1176
- }), D(s, de, {
1177
- ratio: t,
1178
- oldRatio: Y,
1179
- originalEvent: a
1180
- }, {
1181
- cancelable: !1
1182
- });
1183
- }), n && this.tooltip();
1184
- }
1185
- return this;
1186
- },
1187
- /**
1188
- * Play the images
1189
- * @param {boolean|FullscreenOptions} [fullscreen=false] - Indicate if request fullscreen or not.
1190
- * @returns {Viewer} this
1191
- */
1192
- play: function() {
1193
- var t = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
1194
- if (!this.isShown || this.played)
1195
- return this;
1196
- var n = this.element, r = this.options;
1197
- if (p(r.play) && d(n, ve, r.play, {
1198
- once: !0
1199
- }), D(n, ve) === !1)
1200
- return this;
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, A) {
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 = A), s.push(T), d(T, j, o, {
1205
- once: !0
1206
- }), a.appendChild(T);
1207
- }), O(r.interval) && r.interval > 0) {
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
- };
1213
- c > 1 && (this.playing = {
1214
- prev: u,
1215
- next: h,
1216
- timeout: setTimeout(h, r.interval)
1217
- });
1218
- }
1219
- return this;
1220
- },
1221
- // Stop play
1222
- stop: function() {
1223
- var t = this;
1224
- if (!this.played)
1225
- return this;
1226
- var i = this.element, n = this.options;
1227
- if (p(n.stop) && d(i, me, n.stop, {
1228
- once: !0
1229
- }), D(i, me) === !1)
1230
- return this;
1231
- var r = this.player;
1232
- return clearTimeout(this.playing.timeout), this.playing = !1, this.played = !1, y(r.getElementsByTagName("img"), function(a) {
1233
- b(a, j, t.onLoadWhenPlay);
1234
- }), g(r, q), r.innerHTML = "", this.exitFullscreen(), this;
1235
- },
1236
- // Enter modal mode (only available in inline mode)
1237
- full: function() {
1238
- var t = this, i = this.options, n = this.viewer, r = this.image, a = this.list;
1239
- return !this.isShown || this.played || this.fulled || !i.inline ? this : (this.fulled = !0, this.open(), f(this.button, Ht), i.transition && (g(a, x), this.viewed && g(r, x)), f(n, It), n.setAttribute("role", "dialog"), n.setAttribute("aria-labelledby", this.title.id), n.setAttribute("aria-modal", !0), n.removeAttribute("style"), L(n, {
1240
- zIndex: i.zIndex
1241
- }), i.focus && this.enforceFocus(), this.initContainer(), this.viewerData = C({}, this.containerData), this.renderList(), this.viewed && this.initImage(function() {
1242
- t.renderImage(function() {
1243
- i.transition && setTimeout(function() {
1244
- f(r, x), f(a, x);
1245
- }, 0);
1246
- });
1247
- }), this);
1248
- },
1249
- // Exit modal mode (only available in inline mode)
1250
- exit: function() {
1251
- var t = this, i = this.options, n = this.viewer, r = this.image, a = this.list;
1252
- return !this.isShown || this.played || !this.fulled || !i.inline ? this : (this.fulled = !1, this.close(), g(this.button, Ht), i.transition && (g(a, x), this.viewed && g(r, x)), i.focus && this.clearEnforceFocus(), n.removeAttribute("role"), n.removeAttribute("aria-labelledby"), n.removeAttribute("aria-modal"), g(n, It), L(n, {
1253
- zIndex: i.zIndexInline
1254
- }), this.viewerData = C({}, this.parentData), this.renderViewer(), this.renderList(), this.viewed && this.initImage(function() {
1255
- t.renderImage(function() {
1256
- i.transition && setTimeout(function() {
1257
- f(r, x), f(a, x);
1258
- }, 0);
1259
- });
1260
- }), this);
1261
- },
1262
- // Show the current ratio of the image with percentage
1263
- tooltip: function() {
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 && 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
- i.transition ? (d(n, z, function() {
1267
- g(n, q), g(n, vt), g(n, x), n.setAttribute("aria-hidden", !0), t.fading = !1;
1268
- }, {
1269
- once: !0
1270
- }), g(n, k), t.fading = !0) : (g(n, q), n.setAttribute("aria-hidden", !0)), t.tooltipping = !1;
1271
- }, 1e3), this);
1272
- },
1273
- /**
1274
- * Toggle the image size between its current size and natural size
1275
- * @param {Event} [_originalEvent=null] - The original event if any.
1276
- * @returns {Viewer} this
1277
- */
1278
- toggle: function() {
1279
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
1280
- return this.imageData.ratio === 1 ? this.zoomTo(this.imageData.oldRatio, !0, null, t) : this.zoomTo(1, !0, null, t), this;
1281
- },
1282
- // Reset the image to its initial state
1283
- reset: function() {
1284
- return this.viewed && !this.played && (this.imageData = C({}, this.initialImageData), this.renderImage()), this;
1285
- },
1286
- // Update viewer when images changed
1287
- update: function() {
1288
- var t = this, i = this.element, n = this.options, r = this.isImg;
1289
- if (r && !i.parentNode)
1290
- return this.destroy();
1291
- var a = [];
1292
- if (y(r ? [i] : i.querySelectorAll("img"), function(l) {
1293
- p(n.filter) ? n.filter.call(t, l) && a.push(l) : t.getImageURL(l) && a.push(l);
1294
- }), !a.length)
1295
- return this;
1296
- if (this.images = a, this.length = a.length, this.ready) {
1297
- var o = [];
1298
- if (y(this.items, function(l, u) {
1299
- var h = l.querySelector("img"), m = a[u];
1300
- m && h ? (m.src !== h.src || m.alt !== h.alt) && o.push(u) : o.push(u);
1301
- }), L(this.list, {
1302
- width: "auto"
1303
- }), this.initList(), this.isShown)
1304
- if (this.length) {
1305
- if (this.viewed) {
1306
- var s = o.indexOf(this.index);
1307
- if (s >= 0)
1308
- this.viewed = !1, this.view(Math.max(Math.min(this.index - s, this.length - 1), 0));
1309
- else {
1310
- var c = this.items[this.index];
1311
- f(c, lt), c.setAttribute("aria-selected", !0);
1312
- }
1313
- }
1314
- } else
1315
- this.image = null, this.viewed = !1, this.index = 0, this.imageData = {}, this.canvas.innerHTML = "", this.title.innerHTML = "";
1316
- } else
1317
- this.build();
1318
- return this;
1319
- },
1320
- // Destroy the viewer
1321
- destroy: function() {
1322
- var t = this.element, i = this.options;
1323
- return t[v] ? (this.destroyed = !0, this.ready ? (this.played && this.stop(), i.inline ? (this.fulled && this.exit(), this.unbind()) : this.isShown ? (this.viewing && (this.imageRendering ? this.imageRendering.abort() : this.imageInitializing && this.imageInitializing.abort()), this.hiding && this.transitioning.abort(), this.hidden()) : this.showing && (this.transitioning.abort(), this.hidden()), this.ready = !1, this.viewer.parentNode.removeChild(this.viewer)) : i.inline && (this.delaying ? this.delaying.abort() : this.initializing && this.initializing.abort()), i.inline || b(t, Q, this.onStart), t[v] = void 0, this) : this;
1324
- }
1325
- }, Ii = {
1326
- getImageURL: function(t) {
1327
- var i = this.options.url;
1328
- return ot(i) ? i = t.getAttribute(i) : p(i) ? i = i.call(this, t) : i = "", i;
1329
- },
1330
- enforceFocus: function() {
1331
- var t = this;
1332
- this.clearEnforceFocus(), d(document, Bt, this.onFocusin = function(i) {
1333
- var n = t.viewer, r = i.target;
1334
- if (!(r === document || r === n || n.contains(r))) {
1335
- for (; r; ) {
1336
- if (r.getAttribute("tabindex") !== null || r.getAttribute("aria-modal") === "true")
1337
- return;
1338
- r = r.parentElement;
1339
- }
1340
- n.focus();
1341
- }
1342
- });
1343
- },
1344
- clearEnforceFocus: function() {
1345
- this.onFocusin && (b(document, Bt, this.onFocusin), this.onFocusin = null);
1346
- },
1347
- open: function() {
1348
- var t = this.body;
1349
- f(t, qt), this.scrollbarWidth > 0 && (t.style.paddingRight = "".concat(this.scrollbarWidth + (parseFloat(this.initialBodyComputedPaddingRight) || 0), "px"));
1350
- },
1351
- close: function() {
1352
- var t = this.body;
1353
- g(t, qt), this.scrollbarWidth > 0 && (t.style.paddingRight = this.initialBodyPaddingRight);
1354
- },
1355
- shown: function() {
1356
- var t = this.element, i = this.options, n = this.viewer;
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
- once: !0
1359
- }), D(t, ie) !== !1 && this.ready && this.isShown && !this.hiding && this.view(this.index);
1360
- },
1361
- hidden: function() {
1362
- var t = this.element, i = this.options, n = this.viewer;
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
- once: !0
1365
- }), D(t, re, null, {
1366
- cancelable: !1
1367
- }));
1368
- },
1369
- requestFullscreen: function(t) {
1370
- var i = this.element.ownerDocument;
1371
- if (this.fulled && !(i.fullscreenElement || i.webkitFullscreenElement || i.mozFullScreenElement || i.msFullscreenElement)) {
1372
- var n = i.documentElement;
1373
- n.requestFullscreen ? Z(t) ? n.requestFullscreen(t) : n.requestFullscreen() : n.webkitRequestFullscreen ? n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT) : n.mozRequestFullScreen ? n.mozRequestFullScreen() : n.msRequestFullscreen && n.msRequestFullscreen();
1374
- }
1375
- },
1376
- exitFullscreen: function() {
1377
- var t = this.element.ownerDocument;
1378
- this.fulled && (t.fullscreenElement || t.webkitFullscreenElement || t.mozFullScreenElement || t.msFullscreenElement) && (t.exitFullscreen ? t.exitFullscreen() : t.webkitExitFullscreen ? t.webkitExitFullscreen() : t.mozCancelFullScreen ? t.mozCancelFullScreen() : t.msExitFullscreen && t.msExitFullscreen());
1379
- },
1380
- change: function(t) {
1381
- var i = this.options, n = this.pointers, r = n[Object.keys(n)[0]];
1382
- if (r) {
1383
- var a = r.endX - r.startX, o = r.endY - r.startY;
1384
- switch (this.action) {
1385
- case dt:
1386
- (a !== 0 || o !== 0) && (this.pointerMoved = !0, this.move(a, o, t));
1387
- break;
1388
- case it:
1389
- this.zoom(Oi(n), !1, null, t);
1390
- break;
1391
- case Ae: {
1392
- this.action = "switched";
1393
- var s = Math.abs(a);
1394
- s > 1 && s > Math.abs(o) && (this.pointers = {}, a > 1 ? this.prev(i.loop) : a < -1 && this.next(i.loop));
1395
- break;
1396
- }
1397
- }
1398
- y(n, function(c) {
1399
- c.startX = c.endX, c.startY = c.endY;
1400
- });
1401
- }
1402
- },
1403
- isSwitchable: function() {
1404
- var t = this.imageData, i = this.viewerData;
1405
- return this.length > 1 && t.x >= 0 && t.y >= 0 && t.width <= i.width && t.height <= i.height;
1406
- }
1407
- }, Ni = F.Viewer, Ci = function(e) {
1408
- return function() {
1409
- return e += 1, e;
1410
- };
1411
- }(-1), Ie = /* @__PURE__ */ function() {
1412
- function e(t) {
1413
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1414
- if (ii(this, e), !t || t.nodeType !== 1)
1415
- throw new Error("The first argument is required and must be an element.");
1416
- this.element = t, this.options = C({}, Xt, Z(i) && i), this.action = !1, this.fading = !1, this.fulled = !1, this.hiding = !1, this.imageClicked = !1, this.imageData = {}, this.index = this.options.initialViewIndex, this.isImg = !1, this.isShown = !1, this.length = 0, this.moving = !1, this.played = !1, this.playing = !1, this.pointers = {}, this.ready = !1, this.rotating = !1, this.scaling = !1, this.showing = !1, this.timeout = !1, this.tooltipping = !1, this.viewed = !1, this.viewing = !1, this.wheeling = !1, this.zooming = !1, this.pointerMoved = !1, this.id = Ci(), this.init();
1417
- }
1418
- return ni(e, [{
1419
- key: "init",
1420
- value: function() {
1421
- var i = this, n = this.element, r = this.options;
1422
- if (!n[v]) {
1423
- n[v] = this, r.focus && !r.keyboard && (r.focus = !1);
1424
- var a = n.localName === "img", o = [];
1425
- if (y(a ? [n] : n.querySelectorAll("img"), function(l) {
1426
- p(r.filter) ? r.filter.call(i, l) && o.push(l) : i.getImageURL(l) && o.push(l);
1427
- }), this.isImg = a, this.length = o.length, this.images = o, this.initBody(), B(document.createElement(v).style.transition) && (r.transition = !1), r.inline) {
1428
- var s = 0, c = function() {
1429
- if (s += 1, s === i.length) {
1430
- var u;
1431
- i.initializing = !1, i.delaying = {
1432
- abort: function() {
1433
- clearTimeout(u);
1434
- }
1435
- }, u = setTimeout(function() {
1436
- i.delaying = !1, i.build();
1437
- }, 0);
1438
- }
1439
- };
1440
- this.initializing = {
1441
- abort: function() {
1442
- y(o, function(u) {
1443
- u.complete || (b(u, j, c), b(u, X, c));
1444
- });
1445
- }
1446
- }, y(o, function(l) {
1447
- if (l.complete)
1448
- c();
1449
- else {
1450
- var u, h;
1451
- d(l, j, u = function() {
1452
- b(l, X, h), c();
1453
- }, {
1454
- once: !0
1455
- }), d(l, X, h = function() {
1456
- b(l, j, u), c();
1457
- }, {
1458
- once: !0
1459
- });
1460
- }
1461
- });
1462
- } else
1463
- d(n, Q, this.onStart = function(l) {
1464
- var u = l.target;
1465
- u.localName === "img" && (!p(r.filter) || r.filter.call(i, u)) && i.view(i.images.indexOf(u));
1466
- });
1467
- }
1468
- }
1469
- }, {
1470
- key: "build",
1471
- value: function() {
1472
- if (!this.ready) {
1473
- var i = this.element, n = this.options, r = i.parentNode, a = document.createElement("div");
1474
- a.innerHTML = oi;
1475
- var o = a.querySelector(".".concat(v, "-container")), s = o.querySelector(".".concat(v, "-title")), c = o.querySelector(".".concat(v, "-toolbar")), l = o.querySelector(".".concat(v, "-navbar")), u = o.querySelector(".".concat(v, "-button")), h = o.querySelector(".".concat(v, "-canvas"));
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
- f(o, E);
1478
- }), n.toolbar) {
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
- }
1486
- }), c.appendChild(m);
1487
- } else
1488
- f(c, W);
1489
- if (!n.rotatable) {
1490
- var I = c.querySelectorAll('li[class*="rotate"]');
1491
- f(I, nt), y(I, function(E) {
1492
- c.appendChild(E);
1493
- });
1494
- }
1495
- if (n.inline)
1496
- f(u, li), L(o, {
1497
- zIndex: n.zIndexInline
1498
- }), window.getComputedStyle(r).position === "static" && L(r, {
1499
- position: "relative"
1500
- }), r.insertBefore(o, i.nextSibling);
1501
- else {
1502
- f(u, si), f(o, It), f(o, vt), f(o, W), L(o, {
1503
- zIndex: n.zIndex
1504
- });
1505
- var N = n.container;
1506
- ot(N) && (N = i.ownerDocument.querySelector(N)), N || (N = this.body), N.appendChild(o);
1507
- }
1508
- if (n.inline && (this.render(), this.bind(), this.isShown = !0), this.ready = !0, p(n.ready) && d(i, te, n.ready, {
1509
- once: !0
1510
- }), D(i, te) === !1) {
1511
- this.ready = !1;
1512
- return;
1513
- }
1514
- this.ready && n.inline && this.view(this.index);
1515
- }
1516
- }
1517
- /**
1518
- * Get the no conflict viewer class.
1519
- * @returns {Viewer} The viewer class.
1520
- */
1521
- }], [{
1522
- key: "noConflict",
1523
- value: function() {
1524
- return window.Viewer = Ni, e;
1525
- }
1526
- /**
1527
- * Change the default options.
1528
- * @param {Object} options - The new default options.
1529
- */
1530
- }, {
1531
- key: "setDefaults",
1532
- value: function(i) {
1533
- C(Xt, Z(i) && i);
1534
- }
1535
- }]);
1536
- }();
1537
- C(Ie.prototype, xi, Ai, Di, _i, Ii);
1538
- var ki = typeof global == "object" && global && global.Object === Object && global;
1539
- const Ne = ki;
1540
- var ji = typeof self == "object" && self && self.Object === Object && self, zi = Ne || ji || Function("return this")();
1541
- const Vt = zi;
1542
- var Li = Vt.Symbol;
1543
- const pt = Li;
1544
- var Ce = Object.prototype, Vi = Ce.hasOwnProperty, Ri = Ce.toString, et = pt ? pt.toStringTag : void 0;
1545
- function Pi(e) {
1546
- var t = Vi.call(e, et), i = e[et];
1547
- try {
1548
- e[et] = void 0;
1549
- var n = !0;
1550
- } catch (a) {
1551
- }
1552
- var r = Ri.call(e);
1553
- return n && (t ? e[et] = i : delete e[et]), r;
1554
- }
1555
- var Fi = Object.prototype, Mi = Fi.toString;
1556
- function Yi(e) {
1557
- return Mi.call(e);
1558
- }
1559
- var Wi = "[object Null]", Xi = "[object Undefined]", ge = pt ? pt.toStringTag : void 0;
1560
- function Rt(e) {
1561
- return e == null ? e === void 0 ? Xi : Wi : ge && ge in Object(e) ? Pi(e) : Yi(e);
1562
- }
1563
- function Pt(e) {
1564
- return e != null && typeof e == "object";
1565
- }
1566
- var Hi = Array.isArray;
1567
- const qi = Hi;
1568
- function wt(e) {
1569
- var t = typeof e;
1570
- return e != null && (t == "object" || t == "function");
1571
- }
1572
- function ke(e) {
1573
- return e;
1574
- }
1575
- var Ui = "[object AsyncFunction]", Bi = "[object Function]", Zi = "[object GeneratorFunction]", $i = "[object Proxy]";
1576
- function je(e) {
1577
- if (!wt(e))
1578
- return !1;
1579
- var t = Rt(e);
1580
- return t == Bi || t == Zi || t == Ui || t == $i;
1581
- }
1582
- var Ki = Vt["__core-js_shared__"];
1583
- const xt = Ki;
1584
- var pe = function() {
1585
- var e = /[^.]+$/.exec(xt && xt.keys && xt.keys.IE_PROTO || "");
1586
- return e ? "Symbol(src)_1." + e : "";
1587
- }();
1588
- function Gi(e) {
1589
- return !!pe && pe in e;
1590
- }
1591
- var Qi = Function.prototype, Ji = Qi.toString;
1592
- function tn(e) {
1593
- if (e != null) {
1594
- try {
1595
- return Ji.call(e);
1596
- } catch (t) {
1597
- }
1598
- try {
1599
- return e + "";
1600
- } catch (t) {
1601
- }
1602
- }
1603
- return "";
1604
- }
1605
- var en = /[\\^$.*+?()[\]{}|]/g, nn = /^\[object .+?Constructor\]$/, rn = Function.prototype, an = Object.prototype, on = rn.toString, sn = an.hasOwnProperty, ln = RegExp(
1606
- "^" + on.call(sn).replace(en, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
1607
- );
1608
- function un(e) {
1609
- if (!wt(e) || Gi(e))
1610
- return !1;
1611
- var t = je(e) ? ln : nn;
1612
- return t.test(tn(e));
1613
- }
1614
- function cn(e, t) {
1615
- return e == null ? void 0 : e[t];
1616
- }
1617
- function hn(e, t) {
1618
- var i = cn(e, t);
1619
- return un(i) ? i : void 0;
1620
- }
1621
- function fn(e, t, i) {
1622
- switch (i.length) {
1623
- case 0:
1624
- return e.call(t);
1625
- case 1:
1626
- return e.call(t, i[0]);
1627
- case 2:
1628
- return e.call(t, i[0], i[1]);
1629
- case 3:
1630
- return e.call(t, i[0], i[1], i[2]);
1631
- }
1632
- return e.apply(t, i);
1633
- }
1634
- var dn = 800, vn = 16, mn = Date.now;
1635
- function gn(e) {
1636
- var t = 0, i = 0;
1637
- return function() {
1638
- var n = mn(), r = vn - (n - i);
1639
- if (i = n, r > 0) {
1640
- if (++t >= dn)
1641
- return arguments[0];
1642
- } else
1643
- t = 0;
1644
- return e.apply(void 0, arguments);
1645
- };
1646
- }
1647
- function pn(e) {
1648
- return function() {
1649
- return e;
1650
- };
1651
- }
1652
- var bn = function() {
1653
- try {
1654
- var e = hn(Object, "defineProperty");
1655
- return e({}, "", {}), e;
1656
- } catch (t) {
1657
- }
1658
- }();
1659
- const bt = bn;
1660
- var yn = bt ? function(e, t) {
1661
- return bt(e, "toString", {
1662
- configurable: !0,
1663
- enumerable: !1,
1664
- value: pn(t),
1665
- writable: !0
1666
- });
1667
- } : ke;
1668
- const wn = yn;
1669
- var En = gn(wn);
1670
- const Tn = En;
1671
- var On = 9007199254740991, Sn = /^(?:0|[1-9]\d*)$/;
1672
- function ze(e, t) {
1673
- var i = typeof e;
1674
- return t = t == null ? On : t, !!t && (i == "number" || i != "symbol" && Sn.test(e)) && e > -1 && e % 1 == 0 && e < t;
1675
- }
1676
- function Le(e, t, i) {
1677
- t == "__proto__" && bt ? bt(e, t, {
1678
- configurable: !0,
1679
- enumerable: !0,
1680
- value: i,
1681
- writable: !0
1682
- }) : e[t] = i;
1683
- }
1684
- function Ft(e, t) {
1685
- return e === t || e !== e && t !== t;
1686
- }
1687
- var xn = Object.prototype, An = xn.hasOwnProperty;
1688
- function Ve(e, t, i) {
1689
- var n = e[t];
1690
- (!(An.call(e, t) && Ft(n, i)) || i === void 0 && !(t in e)) && Le(e, t, i);
1691
- }
1692
- function Dn(e, t, i, n) {
1693
- var r = !i;
1694
- i || (i = {});
1695
- for (var a = -1, o = t.length; ++a < o; ) {
1696
- var s = t[a], c = n ? n(i[s], e[s], s, i, e) : void 0;
1697
- c === void 0 && (c = e[s]), r ? Le(i, s, c) : Ve(i, s, c);
1698
- }
1699
- return i;
1700
- }
1701
- var be = Math.max;
1702
- function _n(e, t, i) {
1703
- return t = be(t === void 0 ? e.length - 1 : t, 0), function() {
1704
- for (var n = arguments, r = -1, a = be(n.length - t, 0), o = Array(a); ++r < a; )
1705
- o[r] = n[t + r];
1706
- r = -1;
1707
- for (var s = Array(t + 1); ++r < t; )
1708
- s[r] = n[r];
1709
- return s[t] = i(o), fn(e, this, s);
1710
- };
1711
- }
1712
- function Re(e, t) {
1713
- return Tn(_n(e, t, ke), e + "");
1714
- }
1715
- var In = 9007199254740991;
1716
- function Pe(e) {
1717
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= In;
1718
- }
1719
- function Et(e) {
1720
- return e != null && Pe(e.length) && !je(e);
1721
- }
1722
- function Fe(e, t, i) {
1723
- if (!wt(i))
1724
- return !1;
1725
- var n = typeof t;
1726
- return (n == "number" ? Et(i) && ze(t, i.length) : n == "string" && t in i) ? Ft(i[t], e) : !1;
1727
- }
1728
- function Nn(e) {
1729
- return Re(function(t, i) {
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 && Fe(i[0], i[1], o) && (a = r < 3 ? void 0 : a, r = 1), t = Object(t); ++n < r; ) {
1732
- var s = i[n];
1733
- s && e(t, s, n, a);
1734
- }
1735
- return t;
1736
- });
1737
- }
1738
- var Cn = Object.prototype;
1739
- function Mt(e) {
1740
- var t = e && e.constructor, i = typeof t == "function" && t.prototype || Cn;
1741
- return e === i;
1742
- }
1743
- function kn(e, t) {
1744
- for (var i = -1, n = Array(e); ++i < e; )
1745
- n[i] = t(i);
1746
- return n;
1747
- }
1748
- var jn = "[object Arguments]";
1749
- function ye(e) {
1750
- return Pt(e) && Rt(e) == jn;
1751
- }
1752
- var Me = Object.prototype, zn = Me.hasOwnProperty, Ln = Me.propertyIsEnumerable, Vn = ye(function() {
1753
- return arguments;
1754
- }()) ? ye : function(e) {
1755
- return Pt(e) && zn.call(e, "callee") && !Ln.call(e, "callee");
1756
- };
1757
- const Rn = Vn;
1758
- function Pn() {
1759
- return !1;
1760
- }
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
- const Wn = Yn;
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
- w[rr] = w[ar] = w[or] = w[sr] = w[lr] = w[ur] = w[cr] = w[hr] = w[fr] = !0;
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
- function dr(e) {
1767
- return Pt(e) && Pe(e.length) && !!w[Rt(e)];
1768
- }
1769
- function vr(e) {
1770
- return function(t) {
1771
- return e(t);
1772
- };
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, At = mr && Ne.process, gr = function() {
1775
- try {
1776
- var e = rt && rt.require && rt.require("util").types;
1777
- return e || At && At.binding && At.binding("util");
1778
- } catch (t) {
1779
- }
1780
- }();
1781
- const Te = gr;
1782
- var Oe = Te && Te.isTypedArray, pr = Oe ? vr(Oe) : dr;
1783
- const br = pr;
1784
- var yr = Object.prototype, wr = yr.hasOwnProperty;
1785
- function Xe(e, t) {
1786
- var i = qi(e), n = !i && Rn(e), r = !i && !n && Wn(e), a = !i && !n && !r && br(e), o = i || n || r || a, s = o ? kn(e.length, String) : [], c = s.length;
1787
- for (var l in e)
1788
- (t || wr.call(e, l)) && !(o && (l == "length" || r && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || ze(l, c))) && s.push(l);
1789
- return s;
1790
- }
1791
- function Er(e, t) {
1792
- return function(i) {
1793
- return e(t(i));
1794
- };
1795
- }
1796
- var Tr = Er(Object.keys, Object);
1797
- const Or = Tr;
1798
- var Sr = Object.prototype, xr = Sr.hasOwnProperty;
1799
- function Ar(e) {
1800
- if (!Mt(e))
1801
- return Or(e);
1802
- var t = [];
1803
- for (var i in Object(e))
1804
- xr.call(e, i) && i != "constructor" && t.push(i);
1805
- return t;
1806
- }
1807
- function Dr(e) {
1808
- return Et(e) ? Xe(e) : Ar(e);
1809
- }
1810
- var _r = Object.prototype, Ir = _r.hasOwnProperty;
1811
- Nn(function(e, t) {
1812
- if (Mt(t) || Et(t)) {
1813
- Dn(t, Dr(t), e);
1814
- return;
1815
- }
1816
- for (var i in t)
1817
- Ir.call(t, i) && Ve(e, i, t[i]);
1818
- });
1819
- function Nr(e) {
1820
- var t = [];
1821
- if (e != null)
1822
- for (var i in Object(e))
1823
- t.push(i);
1824
- return t;
1825
- }
1826
- var Cr = Object.prototype, kr = Cr.hasOwnProperty;
1827
- function jr(e) {
1828
- if (!wt(e))
1829
- return Nr(e);
1830
- var t = Mt(e), i = [];
1831
- for (var n in e)
1832
- n == "constructor" && (t || !kr.call(e, n)) || i.push(n);
1833
- return i;
1834
- }
1835
- function zr(e) {
1836
- return Et(e) ? Xe(e, !0) : jr(e);
1837
- }
1838
- var He = Object.prototype, Lr = He.hasOwnProperty;
1839
- Re(function(e, t) {
1840
- e = Object(e);
1841
- var i = -1, n = t.length, r = n > 2 ? t[2] : void 0;
1842
- for (r && Fe(t[0], t[1], r) && (n = 1); ++i < n; )
1843
- for (var a = t[i], o = zr(a), s = -1, c = o.length; ++s < c; ) {
1844
- var l = o[s], u = e[l];
1845
- (u === void 0 || Ft(u, He[l]) && !Lr.call(e, l)) && (e[l] = a[l]);
1846
- }
1847
- return e;
1848
- });
1849
- const Vr = Se({
1850
- name: "Viewer",
1851
- props: {
1852
- images: {
1853
- type: Array,
1854
- default: () => []
1855
- },
1856
- rebuild: {
1857
- type: Boolean,
1858
- default: !1
1859
- },
1860
- trigger: {
1861
- type: Object,
1862
- default: null
1863
- },
1864
- options: {
1865
- type: Object,
1866
- default: () => null
1867
- }
1868
- },
1869
- emits: ["inited"],
1870
- setup(e, { emit: t }) {
1871
- let i;
1872
- const n = qe();
1873
- function r() {
1874
- i = new Ie(n.value, e.options), t("inited", i);
1875
- }
1876
- function a() {
1877
- i && i.destroy();
1878
- }
1879
- function o() {
1880
- a(), r();
1881
- }
1882
- function s() {
1883
- i ? (i.update(), t("inited", i)) : r();
1884
- }
1885
- function c() {
1886
- e.rebuild ? o() : s();
1887
- }
1888
- const l = { deep: !0 };
1889
- return Tt(() => e.images, () => {
1890
- Ot(() => {
1891
- c();
1892
- });
1893
- }, l), Tt(() => e.trigger, () => {
1894
- Ot(() => {
1895
- c();
1896
- });
1897
- }, l), Tt(() => e.options, () => {
1898
- Ot(() => {
1899
- o();
1900
- });
1901
- }, l), Ue(() => r()), Be(() => a()), {
1902
- root: n,
1903
- createViewer: r,
1904
- rebuildViewer: o,
1905
- updateViewer: s,
1906
- destroyViewer: a
1907
- };
1908
- }
1909
- }), Rr = (e, t) => {
1910
- const i = e.__vccOpts || e;
1911
- for (const [n, r] of t)
1912
- i[n] = r;
1913
- return i;
1914
- }, Pr = { ref: "root" };
1915
- function Fr(e, t, i, n, r, a) {
1916
- return ft(), Dt("div", Pr, [
1917
- Ze(e.$slots, "default", {
1918
- images: e.images,
1919
- options: e.options
1920
- })
1921
- ], 512);
1922
- }
1923
- const Mr = /* @__PURE__ */ Rr(Vr, [["render", Fr]]);
1924
- const Yr = ["src"], Wr = /* @__PURE__ */ Se({
1925
- __name: "ImageViewer",
1926
- props: {
1927
- image: {}
1928
- },
1929
- setup(e) {
1930
- const t = e, i = $e(() => t.image ? [{ src: t.image, index: 0 }] : []);
1931
- return (n, r) => (ft(), Ke(Ge(Mr), {
1932
- images: i.value,
1933
- style: { height: "100%" }
1934
- }, {
1935
- default: Qe(() => [
1936
- (ft(!0), Dt(Je, null, ti(i.value, (a) => (ft(), Dt("img", {
1937
- alt: "图片",
1938
- src: a.src,
1939
- key: a.index,
1940
- class: "image"
1941
- }, null, 8, Yr))), 128))
1942
- ]),
1943
- _: 1
1944
- }, 8, ["images"]));
1945
- }
1946
- });
1947
- const qr = /* @__PURE__ */ ei(Wr, [["__scopeId", "data-v-b0f61c51"]]);
1948
- export {
1949
- qr as default
1950
- };
1
+ var er=a1;function a0(){var eH=['12132IHMEOe','hide','return\x20this','byteOffset','innerWidth','webkitRequestFullscreen','delaying','onKeyDown','keyboard','parentNode','tooltipBox','oldRatio','rotatable','image','getBoundingClientRect','focus','[object\x20Array]','renderViewer','index','fulled','tooltipping','translateY(','interval','full','onStart','imageRendering','naturalWidth','changedTouches','offsetWidth','aria-hidden','played','toggle','innerHTML','indexOf','prototype','build','role','list','onDblclick','moved','which','wheeling','position','split','833326MeRxPr','tabindex','navbar','player','createElement','initializing','slice','getOwnPropertySymbols','containerData','clearEnforceFocus','function','appendChild','img','rotate','removeEventListener','timeout','1687312IHbAfX','__core-js_shared__','46160XZNVvQ','destroyed','filter','loading','prev','touchend\x20touchcancel','toolbar','top','[object\x20Uint8ClampedArray]','data-viewer-action','tooltip','dblclick','hidden','marginLeft','parent','click','initList','viewer','string','userAgent','doubleClickImageTimeout','scaling','scaleX','flip-horizontal','move','exec','update','onDragStart','renderImage','shown','3TLWCdY','renderList','classList','mousemove','exitFullscreen','pointerup','[object\x20Float64Array]','keydown','endX','load','min','isShown','mix','ready','Viewer','clickCanvasTimeout','getImageURL','defineProperty','imageData','alt','pointers','setAttribute','startX','zoomable','zoom-in','body','247007TpSKMW','stop','Object','fullscreen','showing','2264590gCknPo','initImage','px;max-width:none!important;position:relative;width:0;','originalUrl','images','view','querySelector','-in','documentElement','value','default','element','width','[object\x20Function]','-large','height','exports','sort','imageInitializing','hiding','Symbol(src)_1.','isMap','canvas','scaleY','length','hasOwnProperty','resetList','viewing','onLoadWhenPlay','object','offsetHeight','button','imageClicked','getOwnPropertyDescriptors','cssText','pointerId','playing','inline','[object\x20DataView]','title','number','style','isSwitchable','zoomOnTouch','initContainer','[object\x20Error]','options','bind','mozCancelFullScreen','px)','transitioning','src','test','minZoomRatio','size','rotateTo','getComputedStyle','open','startY','toStringTag','complete','abs','transitionend','exit','forEach','abort','getAttribute','removeAttribute','minWidth','ownerDocument','preventDefault','show','type','transition','dialog','translateY','innerHeight','max','1134ryGWjU','localName','scalable','close','contains','Symbol','webkitFullscreenElement','next','loop','keys','8550855KuDXiF','viewed','paddingRight','zoomOnWheel','isImg','dataset','backdrop','resetImage','ontouchstart','zIndex','touchstart','clientTop','pageX','push','detail','wheelDelta','ratio','aria-labelledby','div','viewerData','zoom','textContent','$1-$2','identifier','call','action','-toolbar','static','left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;','parentElement'];a0=function(){return eH;};return a0();}(function(ak,al){var cG=a1,am=ak();while(!![]){try{var an=parseInt(cG(0x24e))/0x1+-parseInt(cG(0x204))/0x2*(parseInt(cG(0x234))/0x3)+-parseInt(cG(0x214))/0x4+-parseInt(cG(0x253))/0x5+parseInt(cG(0x1d8))/0x6*(parseInt(cG(0x1b0))/0x7)+-parseInt(cG(0x216))/0x8+parseInt(cG(0x1ba))/0x9;if(an===al)break;else am['push'](am['shift']());}catch(ao){am['push'](am['shift']());}}}(a0,0x3789f));import{a as a2,t}from'./chunk.js';import{n}from'./asyncToGenerator.js';import{t as a3}from'./_plugin-vue_export-helper.js';import{Fragment as a4,computed as a5,createBlock as a6,createElementBlock as a7,defineComponent as a8,nextTick as a9,onMounted as aa,onUnmounted as ab,openBlock as ac,ref as ad,renderList as af,renderSlot as ag,unref as ah,watch as ai,withCtx as aj}from'vue';var y=a2(t((ak,al)=>{(function(am,an){var cH=a1;typeof ak=='object'&&al!==void 0x0?al[cH(0x263)]=an():typeof define=='function'&&define['amd']?define(an):(am=typeof globalThis<'u'?globalThis:am||self,am['Viewer']=an());}(ak,function(){var cP=a1;function am(cf,cg){if(!(cf instanceof cg))throw TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}function an(cf,cg){for(var ch=0x0;ch<cg['length'];ch++){var ci=cg[ch];ci['enumerable']=ci['enumerable']||!0x1,ci['configurable']=!0x0,'value'in ci&&(ci['writable']=!0x0),Object['defineProperty'](cf,au(ci['key']),ci);}}function ao(cf,cg,ch){var cI=a1;return cg&&an(cf[cI(0x1fa)],cg),ch&&an(cf,ch),Object['defineProperty'](cf,'prototype',{'writable':!0x1}),cf;}function ap(cf,cg,ch){return(cg=au(cg))in cf?Object['defineProperty'](cf,cg,{'value':ch,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):cf[cg]=ch,cf;}function aq(cf,cg){var cJ=a1,ch=Object['keys'](cf);if(Object['getOwnPropertySymbols']){var ci=Object[cJ(0x20b)](cf);cg&&(ci=ci['filter'](function(cj){return Object['getOwnPropertyDescriptor'](cf,cj)['enumerable'];})),ch['push']['apply'](ch,ci);}return ch;}function ar(cf){var cK=a1;for(var cg=0x1;cg<arguments['length'];cg++){var ch=arguments[cg]==null?{}:arguments[cg];cg%0x2?aq(Object(ch),!0x0)['forEach'](function(ci){ap(cf,ci,ch[ci]);}):Object['getOwnPropertyDescriptors']?Object['defineProperties'](cf,Object[cK(0x183)](ch)):aq(Object(ch))[cK(0x1a2)](function(ci){var cL=cK;Object[cL(0x245)](cf,ci,Object['getOwnPropertyDescriptor'](ch,ci));});}return cf;}function as(cf,cg){var cM=a1;if(typeof cf!='object'||!cf)return cf;var ch=cf[Symbol['toPrimitive']];if(ch!==void 0x0){var ci=ch['call'](cf,cg||cM(0x25d));if(typeof ci!='object')return ci;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(cg==='string'?String:Number)(cf);}function au(cf){var cN=a1,cg=as(cf,cN(0x228));return typeof cg=='symbol'?cg:cg+'';}function av(cf){'@babel/helpers - typeof';var cO=a1;return av=typeof Symbol==cO(0x20e)&&typeof Symbol['iterator']=='symbol'?function(cg){return typeof cg;}:function(cg){return cg&&typeof Symbol=='function'&&cg['constructor']===Symbol&&cg!==Symbol['prototype']?'symbol':typeof cg;},av(cf);}var aw={'backdrop':!0x0,'button':!0x0,'navbar':!0x0,'title':!0x0,'toolbar':!0x0,'className':'','container':cP(0x24d),'filter':null,'fullscreen':!0x0,'inheritedAttributes':['crossOrigin','decoding',cP(0x268),'loading','referrerPolicy','sizes','srcset','useMap'],'initialCoverage':0.9,'initialViewIndex':0x0,'inline':!0x1,'interval':0x1388,'keyboard':!0x0,'focus':!0x0,'loading':!0x0,'loop':!0x0,'minWidth':0xc8,'minHeight':0x64,'movable':!0x0,'rotatable':!0x0,'scalable':!0x0,'zoomable':!0x0,'zoomOnTouch':!0x0,'zoomOnWheel':!0x0,'slideOnTouch':!0x0,'toggleOnDblclick':!0x0,'tooltip':!0x0,'transition':!0x0,'zIndex':0x7df,'zIndexInline':0x0,'zoomRatio':0.1,'minZoomRatio':0.01,'maxZoomRatio':0x64,'url':'src','ready':null,'show':null,'shown':null,'hide':null,'hidden':null,'view':null,'viewed':null,'move':null,'moved':null,'rotate':null,'rotated':null,'scale':null,'scaled':null,'zoom':null,'zoomed':null,'play':null,'stop':null},ax='<div\x20class=\x22viewer-container\x22\x20tabindex=\x22-1\x22\x20touch-action=\x22none\x22><div\x20class=\x22viewer-canvas\x22></div><div\x20class=\x22viewer-footer\x22><div\x20class=\x22viewer-title\x22></div><div\x20class=\x22viewer-toolbar\x22></div><div\x20class=\x22viewer-navbar\x22><ul\x20class=\x22viewer-list\x22\x20role=\x22navigation\x22></ul></div></div><div\x20class=\x22viewer-tooltip\x22\x20role=\x22alert\x22\x20aria-hidden=\x22true\x22></div><div\x20class=\x22viewer-button\x22\x20data-viewer-action=\x22mix\x22\x20role=\x22button\x22></div><div\x20class=\x22viewer-player\x22></div></div>',ay=typeof window<'u'&&window['document']!==void 0x0,az=ay?window:{},aA=ay&&az['document'][cP(0x25b)]?cP(0x1c2)in az['document']['documentElement']:!0x1,aB=ay?'PointerEvent'in az:!0x1,aC='viewer',aD=cP(0x22e),aE='switch',aF='zoom',aG=aC+'-active',aH=aC+'-close',aI=aC+'-fade',aJ=aC+'-fixed',aK=aC+'-fullscreen',aL=aC+'-fullscreen-exit',aM=aC+'-hide',aN=aC+'-hide-md-down',aO=aC+'-hide-sm-down',aP=aC+'-hide-xs-down',aQ=aC+cP(0x25a),aR=aC+'-invisible',aS=aC+'-loading',aT=aC+'-move',aU=aC+'-open',aV=aC+'-show',aW=aC+'-transition',aX='click',aY='dblclick',aZ='dragstart',b0='focusin',b1='keydown',b2='load',b3='error',b4=aA?cP(0x21b):'mouseup',b5=aA?'touchmove':'mousemove',b6=aB?'pointerdown':aA?cP(0x1c4):'mousedown',b7=aB?'pointermove':b5,b8=aB?'pointerup\x20pointercancel':b4,b9='resize',ba=cP(0x1a0),bb='wheel',bc='ready',bd='show',bf='shown',bg='hide',bh='hidden',bi='view',bj=cP(0x1bb),bk='move',bl=cP(0x1ff),bm='rotate',bn='rotated',bo='scale',bp='scaled',bq='zoom',br='zoomed',bs='play',bu='stop',bv=aC+'Action',bw=/\s\s*/,bx=[cP(0x24c),'zoom-out','one-to-one','reset','prev','play','next','rotate-left','rotate-right',cP(0x22d),'flip-vertical'];function by(cf){return typeof cf=='string';}var bz=Number['isNaN']||az['isNaN'];function bA(cf){var cQ=cP;return typeof cf==cQ(0x18a)&&!bz(cf);}function bB(cf){return cf===void 0x0;}function bC(cf){return av(cf)==='object'&&cf!==null;}var bD=Object['prototype']['hasOwnProperty'];function bE(cf){if(!bC(cf))return!0x1;try{var cg=cf['constructor'],ch=cg['prototype'];return cg&&ch&&bD['call'](ch,'isPrototypeOf');}catch(ci){return!0x1;}}function bF(cf){return typeof cf=='function';}function bG(cf,cg){var cR=cP;if(cf&&bF(cg)){if(Array['isArray'](cf)||bA(cf[cR(0x26b)])){var ch=cf['length'],ci;for(ci=0x0;ci<ch&&cg['call'](cf,cf[ci],ci,cf)!==!0x1;ci+=0x1);}else bC(cf)&&Object['keys'](cf)['forEach'](function(cj){cg['call'](cf,cf[cj],cj,cf);});}return cf;}var bH=Object['assign']||function(cf){var cg=[...arguments]['slice'](0x1);return bC(cf)&&cg['length']>0x0&&cg['forEach'](function(ch){bC(ch)&&Object['keys'](ch)['forEach'](function(ci){cf[ci]=ch[ci];});}),cf;},bI=/^(?:width|height|left|top|marginLeft|marginTop)$/;function bJ(cf,cg){var cS=cP,ch=cf[cS(0x18b)];bG(cg,function(ci,cj){bI['test'](cj)&&bA(ci)&&(ci+='px'),ch[cj]=ci;});}function bK(cf){return by(cf)?cf['replace'](/&(?!amp;|quot;|#39;|lt;|gt;)/g,'&amp;')['replace'](/"/g,'&quot;')['replace'](/'/g,'&#39;')['replace'](/</g,'&lt;')['replace'](/>/g,'&gt;'):cf;}function bL(cf,cg){var cT=cP;return!cf||!cg?!0x1:cf[cT(0x236)]?cf['classList']['contains'](cg):cf['className']['indexOf'](cg)>-0x1;}function bM(cf,cg){if(!(!cf||!cg)){if(bA(cf['length'])){bG(cf,function(ci){bM(ci,cg);});return;}if(cf['classList']){cf['classList']['add'](cg);return;}var ch=cf['className']['trim']();ch?ch['indexOf'](cg)<0x0&&(cf['className']=ch+'\x20'+cg):cf['className']=cg;}}function bN(cf,cg){var cU=cP;if(!(!cf||!cg)){if(bA(cf['length'])){bG(cf,function(ch){bN(ch,cg);});return;}if(cf['classList']){cf[cU(0x236)]['remove'](cg);return;}cf['className']['indexOf'](cg)>=0x0&&(cf['className']=cf['className']['replace'](cg,''));}}function bO(cf,cg,ch){if(cg){if(bA(cf['length'])){bG(cf,function(ci){bO(ci,cg,ch);});return;}ch?bM(cf,cg):bN(cf,cg);}}var bP=/([a-z\d])([A-Z])/g;function bQ(cf){var cV=cP;return cf['replace'](bP,cV(0x1d0))['toLowerCase']();}function bR(cf,cg){return bC(cf[cg])?cf[cg]:cf['dataset']?cf['dataset'][cg]:cf['getAttribute']('data-'+bQ(cg));}function bS(cf,cg,ch){var cW=cP;bC(ch)?cf[cg]=ch:cf['dataset']?cf[cW(0x1bf)][cg]=ch:cf['setAttribute']('data-'+bQ(cg),ch);}var bT=(function(){var cf=!0x1;if(ay){var cg=!0x1,ch=function(){},ci=Object['defineProperty']({},'once',{'get':function(){return cf=!0x0,cg;},'set':function(cj){cg=cj;}});az['addEventListener']('test',ch,ci),az['removeEventListener']('test',ch,ci);}return cf;}());function bU(cf,cg,ch){var cX=cP,ci=arguments['length']>0x3&&arguments[0x3]!==void 0x0?arguments[0x3]:{},cj=ch;cg['trim']()['split'](bw)[cX(0x1a2)](function(ck){var cY=cX;if(!bT){var cl=cf['listeners'];cl&&cl[ck]&&cl[ck][ch]&&(cj=cl[ck][ch],delete cl[ck][ch],Object['keys'](cl[ck])['length']===0x0&&delete cl[ck],Object['keys'](cl)['length']===0x0&&delete cf['listeners']);}cf[cY(0x212)](ck,cj,ci);});}function bV(cf,cg,ch){var cZ=cP,ci=arguments['length']>0x3&&arguments[0x3]!==void 0x0?arguments[0x3]:{},cj=ch;cg['trim']()[cZ(0x203)](bw)['forEach'](function(ck){if(ci['once']&&!bT){var cl=cf['listeners'],cm=cl===void 0x0?{}:cl;cj=function(){delete cm[ck][ch],cf['removeEventListener'](ck,cj,ci);var cn=[...arguments];ch['apply'](cf,cn);},cm[ck]||(cm[ck]={}),cm[ck][ch]&&cf['removeEventListener'](ck,cm[ck][ch],ci),cm[ck][ch]=cj,cf['listeners']=cm;}cf['addEventListener'](ck,cj,ci);});}function bW(cf,cg,ch,ci){var cj;return bF(Event)&&bF(CustomEvent)?cj=new CustomEvent(cg,ar({'bubbles':!0x0,'cancelable':!0x0,'detail':ch},ci)):(cj=document['createEvent']('CustomEvent'),cj['initCustomEvent'](cg,!0x0,!0x0,ch)),cf['dispatchEvent'](cj);}function bX(cf){var d0=cP,cg=cf[d0(0x1e6)]();return{'left':cg['left']+(window['pageXOffset']-document['documentElement']['clientLeft']),'top':cg['top']+(window['pageYOffset']-document['documentElement'][d0(0x1c5)])};}function bY(cf){var d1=cP,cg=cf['rotate'],ch=cf['scaleX'],ci=cf['scaleY'],cj=cf['translateX'],ck=cf[d1(0x1ad)],cl=[];bA(cj)&&cj!==0x0&&cl['push']('translateX('+cj+'px)'),bA(ck)&&ck!==0x0&&cl['push'](d1(0x1ed)+ck+d1(0x193)),bA(cg)&&cg!==0x0&&cl['push']('rotate('+cg+'deg)'),bA(ch)&&ch!==0x1&&cl['push']('scaleX('+ch+')'),bA(ci)&&ci!==0x1&&cl['push']('scaleY('+ci+')');var cm=cl['length']?cl['join']('\x20'):'none';return{'WebkitTransform':cm,'msTransform':cm,'transform':cm};}function bZ(cf){return by(cf)?decodeURIComponent(cf['replace'](/^.*\//,'')['replace'](/[?&#].*$/,'')):'';}var c0=az['navigator']&&/Version\/\d+(\.\d+)+?\s+Safari/i[cP(0x196)](az['navigator'][cP(0x229)]);function c1(cf,cg,ch){var d2=cP,ci=document['createElement']('img');if(cf['naturalWidth']&&!c0)return ch(cf['naturalWidth'],cf['naturalHeight']),ci;var cj=document[d2(0x24d)]||document['documentElement'];return ci['onload']=function(){ch(ci['width'],ci['height']),c0||cj['removeChild'](ci);},bG(cg['inheritedAttributes'],function(ck){var cl=cf['getAttribute'](ck);cl!==null&&ci['setAttribute'](ck,cl);}),ci['src']=cf['src'],c0||(ci['style'][d2(0x184)]=d2(0x1d6),cj['appendChild'](ci)),ci;}function c2(cf){switch(cf){case 0x2:return aP;case 0x3:return aO;case 0x4:return aN;default:return'';}}function c3(cf){var d4=cP,cg=ar({},cf),ch=[];return bG(cf,function(ci,cj){delete cg[cj],bG(cg,function(ck){var d3=a1,cl=Math['abs'](ci['startX']-ck['startX']),cm=Math[d3(0x19f)](ci['startY']-ck[d3(0x19c)]),cn=Math['abs'](ci['endX']-ck['endX']),co=Math['abs'](ci['endY']-ck['endY']),cp=Math['sqrt'](cl*cl+cm*cm),cq=(Math['sqrt'](cn*cn+co*co)-cp)/cp;ch[d3(0x1c7)](cq);});}),ch[d4(0x264)](function(ci,cj){var d5=d4;return Math[d5(0x19f)](ci)<Math['abs'](cj);}),ch[0x0];}function c4(cf,cg){var d6=cP,ch=cf[d6(0x1c6)],ci=cf['pageY'],cj={'endX':ch,'endY':ci};return cg?cj:ar({'timeStamp':Date['now'](),'startX':ch,'startY':ci},cj);}function c5(cf){var cg=0x0,ch=0x0,ci=0x0;return bG(cf,function(cj){var d7=a1,ck=cj['startX'],cl=cj[d7(0x19c)];cg+=ck,ch+=cl,ci+=0x1;}),cg/=ci,ch/=ci,{'pageX':cg,'pageY':ch};}var c6={'render':function(){var d8=cP;this['initContainer'](),this['initViewer'](),this[d8(0x226)](),this[d8(0x1e9)]();},'initBody':function(){var d9=cP,cf=this['element']['ownerDocument'],cg=cf['body']||cf[d9(0x25b)];this['body']=cg,this['scrollbarWidth']=window['innerWidth']-cf['documentElement']['clientWidth'],this['initialBodyPaddingRight']=cg['style']['paddingRight'],this['initialBodyComputedPaddingRight']=window[d9(0x19a)](cg)['paddingRight'];},'initContainer':function(){var da=cP;this['containerData']={'width':window[da(0x1dc)],'height':window[da(0x1ae)]};},'initViewer':function(){var db=cP,cf=this['options'],cg=this[db(0x224)],ch;cf['inline']&&(ch={'width':Math['max'](cg[db(0x1f4)],cf[db(0x1a6)]),'height':Math['max'](cg['offsetHeight'],cf['minHeight'])},this['parentData']=ch),(this['fulled']||!ch)&&(ch=this[db(0x20c)]),this['viewerData']=bH({},ch);},'renderViewer':function(){this['options']['inline']&&!this['fulled']&&bJ(this['viewer'],this['viewerData']);},'initList':function(){var dc=cP,cf=this,cg=this[dc(0x25e)],ch=this['options'],ci=this['list'],cj=[];ci['innerHTML']='',bG(this[dc(0x257)],function(ck,cl){var dd=dc,cm=ck['src'],cn=ck[dd(0x247)]||bZ(cm),co=cf['getImageURL'](ck);if(cm||co){var cp=document[dd(0x208)]('li'),cq=document['createElement']('img');bG(ch['inheritedAttributes'],function(cr){var cs=ck['getAttribute'](cr);cs!==null&&cq['setAttribute'](cr,cs);}),ch['navbar']&&(cq['src']=cm||co),cq[dd(0x247)]=cn,cq['setAttribute']('data-original-url',co||cm),cp['setAttribute']('data-index',cl),cp[dd(0x249)](dd(0x21f),'view'),cp['setAttribute']('role',dd(0x181)),ch['keyboard']&&cp[dd(0x249)]('tabindex',0x0),cp['appendChild'](cq),ci['appendChild'](cp),cj['push'](cp);}}),this['items']=cj,bG(cj,function(ck){var cl=ck['firstElementChild'],cm,cn;bS(cl,'filled',!0x0),ch['loading']&&bM(ck,aS),bV(cl,b2,cm=function(co){var df=a1;bU(cl,b3,cn),ch[df(0x219)]&&bN(ck,aS),cf['loadImage'](co);},{'once':!0x0}),bV(cl,b3,cn=function(){bU(cl,b2,cm),ch['loading']&&bN(ck,aS);},{'once':!0x0});}),ch[dc(0x1ab)]&&bV(cg,bj,function(){bM(ci,aW);},{'once':!0x0});},'renderList':function(){var dg=cP,cf=this['index'],cg=this['items'][cf];if(cg){var ch=cg['nextElementSibling'],ci=parseInt(window['getComputedStyle'](ch||cg)[dg(0x223)],0xa),cj=cg['offsetWidth'],ck=cj+ci;bJ(this['list'],bH({'width':ck*this['length']-ci},bY({'translateX':(this['viewerData'][dg(0x25f)]-cj)/0x2-ck*cf})));}},'resetList':function(){var dh=cP,cf=this[dh(0x1fd)];cf[dh(0x1f8)]='',bN(cf,aW),bJ(cf,bY({'translateX':0x0}));},'initImage':function(cf){var di=cP,cg=this,ch=this['options'],ci=this[di(0x1e5)],cj=this['viewerData'],ck=this['footer'][di(0x180)],cl=cj['width'],cm=Math[di(0x1af)](cj['height']-ck,ck),cn=this[di(0x246)]||{},co;this['imageInitializing']={'abort':function(){co['onload']=null;}},co=c1(ci,ch,function(cp,cq){var dj=di,cr=cp/cq,cs=Math['max'](0x0,Math['min'](0x1,ch['initialCoverage'])),cu=cl,cv=cm;cg['imageInitializing']=!0x1,cm*cr>cl?cv=cl/cr:cu=cm*cr,cs=bA(cs)?cs:0.9,cu=Math['min'](cu*cs,cp),cv=Math['min'](cv*cs,cq);var cw=(cl-cu)/0x2,cx=(cm-cv)/0x2,cy={'left':cw,'top':cx,'x':cw,'y':cx,'width':cu,'height':cv,'oldRatio':0x1,'ratio':cu/cp,'aspectRatio':cr,'naturalWidth':cp,'naturalHeight':cq},cz=bH({},cy);ch['rotatable']&&(cy['rotate']=cn['rotate']||0x0,cz['rotate']=0x0),ch[dj(0x1b2)]&&(cy['scaleX']=cn['scaleX']||0x1,cy['scaleY']=cn['scaleY']||0x1,cz['scaleX']=0x1,cz['scaleY']=0x1),cg['imageData']=cy,cg['initialImageData']=cz,cf&&cf();});},'renderImage':function(cf){var dk=cP,cg=this,ch=this[dk(0x1e5)],ci=this['imageData'];if(bJ(ch,bH({'width':ci['width'],'height':ci['height'],'marginLeft':ci['x'],'marginTop':ci['y']},bY(ci))),cf){if((this['viewing']||this['moving']||this['rotating']||this['scaling']||this['zooming'])&&this['options']['transition']&&bL(ch,aW)){var cj=function(){cg['imageRendering']=!0x1,cf();};this[dk(0x1f1)]={'abort':function(){bU(ch,ba,cj);}},bV(ch,ba,cj,{'once':!0x0});}else cf();}},'resetImage':function(){var cf=this['image'];cf&&(this['viewing']&&this['viewing']['abort'](),cf['parentNode']['removeChild'](cf),this['image']=null,this['title']['innerHTML']='');}},c7={'bind':function(){var dl=cP,cf=this['options'],cg=this['viewer'],ch=this['canvas'],ci=this[dl(0x25e)]['ownerDocument'];bV(cg,aX,this['onClick']=this['click']['bind'](this)),bV(cg,aZ,this['onDragStart']=this['dragstart']['bind'](this)),bV(ch,b6,this['onPointerDown']=this['pointerdown']['bind'](this)),bV(ci,b7,this['onPointerMove']=this['pointermove'][dl(0x191)](this)),bV(ci,b8,this['onPointerUp']=this[dl(0x239)]['bind'](this)),bV(ci,b1,this['onKeyDown']=this[dl(0x23b)]['bind'](this)),bV(window,b9,this['onResize']=this['resize'][dl(0x191)](this)),cf['zoomable']&&cf[dl(0x1bd)]&&bV(cg,bb,this['onWheel']=this['wheel']['bind'](this),{'passive':!0x1,'capture':!0x0}),cf['toggleOnDblclick']&&bV(ch,aY,this['onDblclick']=this[dl(0x221)]['bind'](this));},'unbind':function(){var dm=cP,cf=this['options'],cg=this['viewer'],ch=this['canvas'],ci=this['element']['ownerDocument'];bU(cg,aX,this['onClick']),bU(cg,aZ,this[dm(0x231)]),bU(ch,b6,this['onPointerDown']),bU(ci,b7,this['onPointerMove']),bU(ci,b8,this['onPointerUp']),bU(ci,b1,this[dm(0x1df)]),bU(window,b9,this['onResize']),cf[dm(0x24b)]&&cf['zoomOnWheel']&&bU(cg,bb,this['onWheel'],{'passive':!0x1,'capture':!0x0}),cf['toggleOnDblclick']&&bU(ch,aY,this[dm(0x1fe)]);}},c8={'click':function(cf){var dn=cP,cg=this['options'],ch=this[dn(0x246)],ci=cf['target'],cj=bR(ci,bv);switch(!cj&&ci['localName']==='img'&&ci[dn(0x1d7)]['localName']==='li'&&(ci=ci['parentElement'],cj=bR(ci,bv)),aA&&cf['isTrusted']&&ci===this['canvas']&&clearTimeout(this['clickCanvasTimeout']),cj){case dn(0x240):this['played']?this['stop']():cg[dn(0x187)]?this['fulled']?this['exit']():this[dn(0x1ef)]():this['hide']();break;case'hide':this['pointerMoved']||this['hide']();break;case'view':this['view'](bR(ci,dn(0x1ea)));break;case'zoom-in':this['zoom'](0.1,!0x0);break;case'zoom-out':this[dn(0x1ce)](-0.1,!0x0);break;case'one-to-one':this[dn(0x1f7)]();break;case'reset':this['reset']();break;case'prev':this['prev'](cg[dn(0x1b8)]);break;case'play':this['play'](cg['fullscreen']);break;case dn(0x1b7):this[dn(0x1b7)](cg['loop']);break;case'rotate-left':this['rotate'](-0x5a);break;case'rotate-right':this['rotate'](0x5a);break;case dn(0x22d):this['scaleX'](-ch['scaleX']||-0x1);break;case'flip-vertical':this[dn(0x26a)](-ch['scaleY']||-0x1);break;default:this['played']&&this['stop']();}},'dblclick':function(cf){var dp=cP;cf[dp(0x1a8)](),this['viewed']&&cf['target']===this[dp(0x1e5)]&&(aA&&cf['isTrusted']&&clearTimeout(this['doubleClickImageTimeout']),this['toggle'](cf['isTrusted']?cf:cf[dp(0x1c8)]&&cf['detail']['originalEvent']));},'load':function(){var dq=cP,cf=this;this['timeout']&&(clearTimeout(this['timeout']),this[dq(0x213)]=!0x1);var cg=this['element'],ch=this['options'],ci=this['image'],cj=this['index'],ck=this['viewerData'];bN(ci,aR),ch['loading']&&bN(this['canvas'],aS),ci['style'][dq(0x184)]='height:0;margin-left:'+ck[dq(0x25f)]/0x2+'px;margin-top:'+ck[dq(0x262)]/0x2+dq(0x255),this[dq(0x254)](function(){var dr=dq;bO(ci,aT,ch['movable']),bO(ci,aW,ch['transition']),cf[dr(0x232)](function(){var ds=dr;cf['viewed']=!0x0,cf['viewing']=!0x1,bF(ch[ds(0x1bb)])&&bV(cg,bj,ch[ds(0x1bb)],{'once':!0x0}),bW(cg,bj,{'originalImage':cf['images'][cj],'index':cj,'image':ci},{'cancelable':!0x1});});});},'loadImage':function(cf){var du=cP,cg=cf['target'],ch=cg[du(0x1e1)],ci=ch[du(0x1f4)]||0x1e,cj=ch['offsetHeight']||0x32,ck=!!bR(cg,'filled');c1(cg,this[du(0x190)],function(cl,cm){var cn=cl/cm,co=ci,cp=cj;cj*cn>ci?ck?co=cj*cn:cp=ci/cn:ck?cp=ci/cn:co=cj*cn,bJ(cg,bH({'width':co,'height':cp},bY({'translateX':(ci-co)/0x2,'translateY':(cj-cp)/0x2})));});},'keydown':function(cf){var dv=cP,cg=this['options'];if(cg['keyboard']){var ch=cf['keyCode']||cf[dv(0x200)]||cf['charCode'];switch(ch){case 0xd:this['viewer'][dv(0x1b4)](cf['target'])&&this['click'](cf);break;}if(this[dv(0x1eb)])switch(ch){case 0x1b:this['played']?this['stop']():cg['inline']?this['fulled']&&this['exit']():this['hide']();break;case 0x20:this['played']&&this['stop']();break;case 0x25:this['played']&&this['playing']?this['playing']['prev']():this['prev'](cg[dv(0x1b8)]);break;case 0x26:cf['preventDefault'](),this['zoom'](cg['zoomRatio'],!0x0);break;case 0x27:this[dv(0x1f6)]&&this['playing']?this['playing'][dv(0x1b7)]():this['next'](cg['loop']);break;case 0x28:cf['preventDefault'](),this['zoom'](-cg['zoomRatio'],!0x0);break;case 0x30:case 0x31:cf['ctrlKey']&&(cf['preventDefault'](),this['toggle']());break;}}},'dragstart':function(cf){cf['target']['localName']==='img'&&cf['preventDefault']();},'pointerdown':function(cf){var dw=cP,cg=this['options'],ch=this['pointers'],ci=cf['buttons'],cj=cf['button'];if(this['pointerMoved']=!0x1,!(!this['viewed']||this['showing']||this[dw(0x26e)]||this['hiding']||(cf['type']==='mousedown'||cf['type']==='pointerdown'&&cf['pointerType']==='mouse')&&(bA(ci)&&ci!==0x1||bA(cj)&&cj!==0x0||cf['ctrlKey']))){cf['preventDefault'](),cf[dw(0x1f3)]?bG(cf[dw(0x1f3)],function(cl){ch[cl['identifier']]=c4(cl);}):ch[cf['pointerId']||0x0]=c4(cf);var ck=cg['movable']?aD:!0x1;cg[dw(0x18d)]&&cg['zoomable']&&Object['keys'](ch)[dw(0x26b)]>0x1?ck=aF:cg['slideOnTouch']&&(cf['pointerType']==='touch'||cf['type']===dw(0x1c4))&&this[dw(0x18c)]()&&(ck=aE),cg['transition']&&(ck===aD||ck===aF)&&bN(this['image'],aW),this['action']=ck;}},'pointermove':function(cf){var cg=this['pointers'],ch=this['action'];!this['viewed']||!ch||(cf['preventDefault'](),cf['changedTouches']?bG(cf['changedTouches'],function(ci){var dx=a1;bH(cg[ci[dx(0x1d1)]]||{},c4(ci,!0x0));}):bH(cg[cf['pointerId']||0x0]||{},c4(cf,!0x0)),this['change'](cf));},'pointerup':function(cf){var dy=cP,cg=this,ch=this['options'],ci=this['action'],cj=this[dy(0x248)],ck;cf['changedTouches']?bG(cf['changedTouches'],function(cl){ck=cj[cl['identifier']],delete cj[cl['identifier']];}):(ck=cj[cf['pointerId']||0x0],delete cj[cf[dy(0x185)]||0x0]),ci&&(cf[dy(0x1a8)](),ch['transition']&&(ci===aD||ci===aF)&&bM(this['image'],aW),this['action']=!0x1,aA&&ci!==aF&&ck&&Date['now']()-ck['timeStamp']<0x1f4&&(clearTimeout(this[dy(0x243)]),clearTimeout(this['doubleClickImageTimeout']),ch['toggleOnDblclick']&&this[dy(0x1bb)]&&cf['target']===this['image']?this[dy(0x182)]?(this['imageClicked']=!0x1,this[dy(0x22a)]=setTimeout(function(){bW(cg['image'],aY,{'originalEvent':cf});},0x32)):(this[dy(0x182)]=!0x0,this['doubleClickImageTimeout']=setTimeout(function(){var dz=dy;cg[dz(0x182)]=!0x1;},0x1f4)):(this['imageClicked']=!0x1,ch['backdrop']&&ch['backdrop']!=='static'&&cf['target']===this[dy(0x269)]&&(this[dy(0x243)]=setTimeout(function(){bW(cg['canvas'],aX,{'originalEvent':cf});},0x32)))));},'resize':function(){var dA=cP,cf=this;if(!(!this['isShown']||this['hiding'])&&(this['fulled']&&(this[dA(0x1b3)](),this['initBody'](),this['open']()),this[dA(0x18e)](),this['initViewer'](),this[dA(0x1e9)](),this['renderList'](),this[dA(0x1bb)]&&this['initImage'](function(){cf['renderImage']();}),this['played'])){if(this['options'][dA(0x251)]&&this['fulled']&&!(document['fullscreenElement']||document['webkitFullscreenElement']||document['mozFullScreenElement']||document['msFullscreenElement'])){this[dA(0x24f)]();return;}bG(this['player']['getElementsByTagName'](dA(0x210)),function(cg){var dB=dA;bV(cg,b2,cf['loadImage'][dB(0x191)](cf),{'once':!0x0}),bW(cg,b2);});}},'wheel':function(cf){var dC=cP,cg=this;if(this['viewed']&&(cf[dC(0x1a8)](),!this['wheeling'])){this[dC(0x201)]=!0x0,setTimeout(function(){var dD=dC;cg[dD(0x201)]=!0x1;},0x32);var ch=Number(this['options']['zoomRatio'])||0.1,ci=0x1;cf['deltaY']?ci=cf['deltaY']>0x0?0x1:-0x1:cf[dC(0x1c9)]?ci=-cf['wheelDelta']/0x78:cf['detail']&&(ci=cf[dC(0x1c8)]>0x0?0x1:-0x1),this['zoom'](-ci*ch,!0x0,null,cf);}}},c9={'show':function(){var dE=cP,cf=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:!0x1,cg=this['element'],ch=this[dE(0x190)];if(ch['inline']||this['showing']||this['isShown']||this['showing'])return this;if(!this['ready'])return this['build'](),this[dE(0x241)]&&this['show'](cf),this;if(bF(ch[dE(0x1a9)])&&bV(cg,bd,ch['show'],{'once':!0x0}),bW(cg,bd)===!0x1||!this[dE(0x241)])return this;this[dE(0x266)]&&this['transitioning'][dE(0x1a3)](),this['showing']=!0x0,this[dE(0x19b)]();var ci=this['viewer'];if(bN(ci,aM),ci['setAttribute']('role','dialog'),ci['setAttribute']('aria-labelledby',this['title']['id']),ci['setAttribute']('aria-modal',!0x0),ci['removeAttribute']('aria-hidden'),ch['transition']&&!cf){var cj=this['shown'][dE(0x191)](this);this['transitioning']={'abort':function(){bU(ci,ba,cj),bN(ci,aQ);}},bM(ci,aW),ci['initialOffsetWidth']=ci['offsetWidth'],bV(ci,ba,cj,{'once':!0x0}),bM(ci,aQ);}else bM(ci,aQ),this['shown']();return this;},'hide':function(){var dF=cP,cf=this,cg=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:!0x1,ch=this['element'],ci=this['options'];if(ci[dF(0x187)]||this['hiding']||!(this['isShown']||this['showing'])||(bF(ci['hide'])&&bV(ch,bg,ci[dF(0x1d9)],{'once':!0x0}),bW(ch,bg)===!0x1))return this;this[dF(0x252)]&&this[dF(0x194)]['abort'](),this['hiding']=!0x0,this['played']?this['stop']():this['viewing']&&this['viewing']['abort']();var cj=this[dF(0x227)],ck=this['image'],cl=function(){bN(cj,aQ),cf['hidden']();};if(ci['transition']&&!cg){var cm=function(co){var dG=dF;co&&co['target']===cj&&(bU(cj,ba,cm),cf[dG(0x222)]());},cn=function(){bL(cj,aW)?(bV(cj,ba,cm),bN(cj,aQ)):cl();};this['transitioning']={'abort':function(){cf['viewed']&&bL(ck,aW)?bU(ck,ba,cn):bL(cj,aW)&&bU(cj,ba,cm);}},this[dF(0x1bb)]&&bL(ck,aW)?(bV(ck,ba,cn,{'once':!0x0}),this['zoomTo'](0x0,!0x1,null,null,!0x0)):cn();}else cl();return this;},'view':function(){var dH=cP,cf=this,cg=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:this['options']['initialViewIndex'];if(cg=Number(cg)||0x0,this['hiding']||this['played']||cg<0x0||cg>=this['length']||this['viewed']&&cg===this['index'])return this;if(!this[dH(0x23f)])return this['index']=cg,this['show']();this['viewing']&&this['viewing'][dH(0x1a3)]();var ch=this['element'],ci=this[dH(0x190)],cj=this['title'],ck=this['canvas'],cl=this['items'][cg],cm=cl[dH(0x259)]('img'),cn=bR(cm,'originalUrl'),co=cm['getAttribute'](dH(0x247)),cp=document['createElement']('img');if(bG(ci['inheritedAttributes'],function(cv){var cw=cm['getAttribute'](cv);cw!==null&&cp['setAttribute'](cv,cw);}),cp['src']=cn,cp['alt']=co,bF(ci[dH(0x258)])&&bV(ch,bi,ci['view'],{'once':!0x0}),bW(ch,bi,{'originalImage':this['images'][cg],'index':cg,'image':cp})===!0x1||!this['isShown']||this[dH(0x266)]||this[dH(0x1f6)])return this;var cq=this['items'][this['index']];cq&&(bN(cq,aG),cq['removeAttribute']('aria-selected')),bM(cl,aG),cl['setAttribute']('aria-selected',!0x0),ci[dH(0x1e7)]&&cl['focus'](),this['image']=cp,this['viewed']=!0x1,this['index']=cg,this[dH(0x246)]={},bM(cp,aR),ci['loading']&&bM(ck,aS),ck[dH(0x1f8)]='',ck[dH(0x20f)](cp),this['renderList'](),cj['innerHTML']='';var cr=function(){var dI=dH,cv=cf['imageData'],cw=Array['isArray'](ci['title'])?ci[dI(0x189)][0x1]:ci[dI(0x189)];cj['innerHTML']=bK(bF(cw)?cw['call'](cf,cp,cv):co+'\x20('+cv[dI(0x1f2)]+'\x20×\x20'+cv['naturalHeight']+')');},cs,cu;return bV(ch,bj,cr,{'once':!0x0}),this[dH(0x26e)]={'abort':function(){var dJ=dH;bU(ch,bj,cr),cp[dJ(0x19e)]?cf[dJ(0x1f1)]?cf['imageRendering']['abort']():cf['imageInitializing']&&cf[dJ(0x265)]['abort']():(cp['src']='',bU(cp,b2,cs),cf[dJ(0x213)]&&clearTimeout(cf['timeout']));}},cp['complete']?this[dH(0x23d)]():(bV(cp,b2,cs=function(){bU(cp,b3,cu),cf['load']();},{'once':!0x0}),bV(cp,b3,cu=function(){bU(cp,b2,cs),cf['timeout']&&(clearTimeout(cf['timeout']),cf['timeout']=!0x1),bN(cp,aR),ci['loading']&&bN(cf['canvas'],aS);},{'once':!0x0}),this['timeout']&&clearTimeout(this['timeout']),this['timeout']=setTimeout(function(){var dK=dH;bN(cp,aR),cf[dK(0x213)]=!0x1;},0x3e8)),this;},'prev':function(){var cf=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:!0x1,cg=this['index']-0x1;return cg<0x0&&(cg=cf?this['length']-0x1:0x0),this['view'](cg),this;},'next':function(){var dL=cP,cf=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:!0x1,cg=this[dL(0x26b)]-0x1,ch=this[dL(0x1ea)]+0x1;return ch>cg&&(ch=cf?0x0:cg),this[dL(0x258)](ch),this;},'move':function(cf){var dM=cP,cg=arguments[dM(0x26b)]>0x1&&arguments[0x1]!==void 0x0?arguments[0x1]:cf,ch=this['imageData'];return this['moveTo'](bB(cf)?cf:ch['x']+Number(cf),bB(cg)?cg:ch['y']+Number(cg)),this;},'moveTo':function(cf){var dN=cP,cg=this,ch=arguments[dN(0x26b)]>0x1&&arguments[0x1]!==void 0x0?arguments[0x1]:cf,ci=arguments[dN(0x26b)]>0x2&&arguments[0x2]!==void 0x0?arguments[0x2]:null,cj=this[dN(0x25e)],ck=this['options'],cl=this['imageData'];if(cf=Number(cf),ch=Number(ch),this['viewed']&&!this['played']&&ck['movable']){var cm=cl['x'],cn=cl['y'],co=!0x1;if(bA(cf)?co=!0x0:cf=cm,bA(ch)?co=!0x0:ch=cn,co){if(bF(ck['move'])&&bV(cj,bk,ck['move'],{'once':!0x0}),bW(cj,bk,{'x':cf,'y':ch,'oldX':cm,'oldY':cn,'originalEvent':ci})===!0x1)return this;cl['x']=cf,cl['y']=ch,cl['left']=cf,cl[dN(0x21d)]=ch,this['moving']=!0x0,this['renderImage'](function(){cg['moving']=!0x1,bF(ck['moved'])&&bV(cj,bl,ck['moved'],{'once':!0x0}),bW(cj,bl,{'x':cf,'y':ch,'oldX':cm,'oldY':cn,'originalEvent':ci},{'cancelable':!0x1});});}}return this;},'rotate':function(cf){var dO=cP;return this[dO(0x199)]((this['imageData']['rotate']||0x0)+Number(cf)),this;},'rotateTo':function(cf){var dP=cP,cg=this,ch=this['element'],ci=this['options'],cj=this[dP(0x246)];if(cf=Number(cf),bA(cf)&&this['viewed']&&!this['played']&&ci['rotatable']){var ck=cj['rotate'];if(bF(ci['rotate'])&&bV(ch,bm,ci['rotate'],{'once':!0x0}),bW(ch,bm,{'degree':cf,'oldDegree':ck})===!0x1)return this;cj[dP(0x211)]=cf,this['rotating']=!0x0,this['renderImage'](function(){cg['rotating']=!0x1,bF(ci['rotated'])&&bV(ch,bn,ci['rotated'],{'once':!0x0}),bW(ch,bn,{'degree':cf,'oldDegree':ck},{'cancelable':!0x1});});}return this;},'scaleX':function(cf){return this['scale'](cf,this['imageData']['scaleY']),this;},'scaleY':function(cf){var dQ=cP;return this['scale'](this['imageData'][dQ(0x22c)],cf),this;},'scale':function(cf){var dR=cP,cg=this,ch=arguments['length']>0x1&&arguments[0x1]!==void 0x0?arguments[0x1]:cf,ci=this[dR(0x25e)],cj=this[dR(0x190)],ck=this['imageData'];if(cf=Number(cf),ch=Number(ch),this['viewed']&&!this['played']&&cj['scalable']){var cl=ck[dR(0x22c)],cm=ck['scaleY'],cn=!0x1;if(bA(cf)?cn=!0x0:cf=cl,bA(ch)?cn=!0x0:ch=cm,cn){if(bF(cj['scale'])&&bV(ci,bo,cj['scale'],{'once':!0x0}),bW(ci,bo,{'scaleX':cf,'scaleY':ch,'oldScaleX':cl,'oldScaleY':cm})===!0x1)return this;ck['scaleX']=cf,ck['scaleY']=ch,this['scaling']=!0x0,this['renderImage'](function(){cg['scaling']=!0x1,bF(cj['scaled'])&&bV(ci,bp,cj['scaled'],{'once':!0x0}),bW(ci,bp,{'scaleX':cf,'scaleY':ch,'oldScaleX':cl,'oldScaleY':cm},{'cancelable':!0x1});});}}return this;},'zoom':function(cf){var dS=cP,cg=arguments['length']>0x1&&arguments[0x1]!==void 0x0?arguments[0x1]:!0x1,ch=arguments['length']>0x2&&arguments[0x2]!==void 0x0?arguments[0x2]:null,ci=arguments['length']>0x3&&arguments[0x3]!==void 0x0?arguments[0x3]:null,cj=this[dS(0x246)];return cf=Number(cf),cf=cf<0x0?0x1/(0x1-cf):0x1+cf,this['zoomTo'](cj['width']*cf/cj['naturalWidth'],cg,ch,ci),this;},'zoomTo':function(cf){var dT=cP,cg=this,ch=arguments[dT(0x26b)]>0x1&&arguments[0x1]!==void 0x0?arguments[0x1]:!0x1,ci=arguments['length']>0x2&&arguments[0x2]!==void 0x0?arguments[0x2]:null,cj=arguments['length']>0x3&&arguments[0x3]!==void 0x0?arguments[0x3]:null,ck=arguments[dT(0x26b)]>0x4&&arguments[0x4]!==void 0x0?arguments[0x4]:!0x1,cl=this['element'],cm=this[dT(0x190)],cn=this['pointers'],co=this['imageData'],cp=co['x'],cq=co['y'],cr=co['width'],cs=co['height'],cu=co['naturalWidth'],cv=co['naturalHeight'];if(cf=Math['max'](0x0,cf),bA(cf)&&this['viewed']&&!this['played']&&(ck||cm['zoomable'])){if(!ck){var cw=Math['max'](0.01,cm[dT(0x197)]),cx=Math[dT(0x23e)](0x64,cm['maxZoomRatio']);cf=Math['min'](Math['max'](cf,cw),cx);}if(cj)switch(cj[dT(0x1aa)]){case'wheel':cm['zoomRatio']>=0.055&&cf>0.95&&cf<1.05&&(cf=0x1);break;case'pointermove':case'touchmove':case dT(0x237):cf>0.99&&cf<1.01&&(cf=0x1);break;}var cy=cu*cf,cz=cv*cf,cA=cy-cr,cB=cz-cs,cC=co['ratio'];if(bF(cm['zoom'])&&bV(cl,bq,cm['zoom'],{'once':!0x0}),bW(cl,bq,{'ratio':cf,'oldRatio':cC,'originalEvent':cj})===!0x1)return this;if(this['zooming']=!0x0,cj){var cD=bX(this['viewer']),cE=cn&&Object[dT(0x1b9)](cn)['length']>0x0?c5(cn):{'pageX':cj['pageX'],'pageY':cj['pageY']};co['x']-=cA*((cE['pageX']-cD['left']-cp)/cr),co['y']-=cB*((cE['pageY']-cD['top']-cq)/cs);}else bE(ci)&&bA(ci['x'])&&bA(ci['y'])?(co['x']-=cA*((ci['x']-cp)/cr),co['y']-=cB*((ci['y']-cq)/cs)):(co['x']-=cA/0x2,co['y']-=cB/0x2);co['left']=co['x'],co[dT(0x21d)]=co['y'],co['width']=cy,co['height']=cz,co[dT(0x1e3)]=cC,co['ratio']=cf,this['renderImage'](function(){cg['zooming']=!0x1,bF(cm['zoomed'])&&bV(cl,br,cm['zoomed'],{'once':!0x0}),bW(cl,br,{'ratio':cf,'oldRatio':cC,'originalEvent':cj},{'cancelable':!0x1});}),ch&&this['tooltip']();}return this;},'play':function(){var dU=cP,cf=this,cg=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:!0x1;if(!this['isShown']||this['played'])return this;var ch=this['element'],ci=this[dU(0x190)];if(bF(ci['play'])&&bV(ch,bs,ci['play'],{'once':!0x0}),bW(ch,bs)===!0x1)return this;var cj=this[dU(0x207)],ck=this['loadImage'][dU(0x191)](this),cl=[],cm=0x0,cn=0x0;if(this['played']=!0x0,this[dU(0x26f)]=ck,cg&&this['requestFullscreen'](cg),bM(cj,aV),bG(this['items'],function(cq,cr){var dV=dU,cs=cq[dV(0x259)]('img'),cu=document['createElement'](dV(0x210));cu['src']=bR(cs,dV(0x256)),cu[dV(0x247)]=cs[dV(0x1a4)](dV(0x247)),cu['referrerPolicy']=cs['referrerPolicy'],cm+=0x1,bM(cu,aI),bO(cu,aW,ci['transition']),bL(cq,aG)&&(bM(cu,aQ),cn=cr),cl['push'](cu),bV(cu,b2,ck,{'once':!0x0}),cj['appendChild'](cu);}),bA(ci[dU(0x1ee)])&&ci['interval']>0x0){var co=function(){var dW=dU;clearTimeout(cf[dW(0x186)]['timeout']),bN(cl[cn],aQ),--cn,cn=cn>=0x0?cn:cm-0x1,bM(cl[cn],aQ),cf['playing']['timeout']=setTimeout(co,ci['interval']);},cp=function(){clearTimeout(cf['playing']['timeout']),bN(cl[cn],aQ),cn+=0x1,cn=cn<cm?cn:0x0,bM(cl[cn],aQ),cf['playing']['timeout']=setTimeout(cp,ci['interval']);};cm>0x1&&(this['playing']={'prev':co,'next':cp,'timeout':setTimeout(cp,ci['interval'])});}return this;},'stop':function(){var dX=cP,cf=this;if(!this['played'])return this;var cg=this['element'],ch=this['options'];if(bF(ch['stop'])&&bV(cg,bu,ch['stop'],{'once':!0x0}),bW(cg,bu)===!0x1)return this;var ci=this['player'];return clearTimeout(this['playing'][dX(0x213)]),this['playing']=!0x1,this['played']=!0x1,bG(ci['getElementsByTagName']('img'),function(cj){bU(cj,b2,cf['onLoadWhenPlay']);}),bN(ci,aV),ci['innerHTML']='',this['exitFullscreen'](),this;},'full':function(){var dY=cP,cf=this,cg=this['options'],ch=this['viewer'],ci=this['image'],cj=this['list'];return!this['isShown']||this[dY(0x1f6)]||this[dY(0x1eb)]||!cg[dY(0x187)]?this:(this['fulled']=!0x0,this[dY(0x19b)](),bM(this['button'],aL),cg['transition']&&(bN(cj,aW),this['viewed']&&bN(ci,aW)),bM(ch,aJ),ch['setAttribute']('role',dY(0x1ac)),ch[dY(0x249)](dY(0x1cb),this['title']['id']),ch['setAttribute']('aria-modal',!0x0),ch['removeAttribute']('style'),bJ(ch,{'zIndex':cg['zIndex']}),cg['focus']&&this['enforceFocus'](),this['initContainer'](),this['viewerData']=bH({},this['containerData']),this[dY(0x235)](),this[dY(0x1bb)]&&this['initImage'](function(){cf['renderImage'](function(){cg['transition']&&setTimeout(function(){bM(ci,aW),bM(cj,aW);},0x0);});}),this);},'exit':function(){var dZ=cP,cf=this,cg=this['options'],ch=this['viewer'],ci=this['image'],cj=this['list'];return!this['isShown']||this['played']||!this['fulled']||!cg['inline']?this:(this['fulled']=!0x1,this[dZ(0x1b3)](),bN(this['button'],aL),cg['transition']&&(bN(cj,aW),this['viewed']&&bN(ci,aW)),cg['focus']&&this[dZ(0x20d)](),ch['removeAttribute']('role'),ch[dZ(0x1a5)]('aria-labelledby'),ch['removeAttribute']('aria-modal'),bN(ch,aJ),bJ(ch,{'zIndex':cg['zIndexInline']}),this['viewerData']=bH({},this['parentData']),this['renderViewer'](),this['renderList'](),this['viewed']&&this['initImage'](function(){cf['renderImage'](function(){var e0=a1;cg[e0(0x1ab)]&&setTimeout(function(){bM(ci,aW),bM(cj,aW);},0x0);});}),this);},'tooltip':function(){var e1=cP,cf=this,cg=this['options'],ch=this['tooltipBox'],ci=this[e1(0x246)];return!this['viewed']||this['played']||!cg[e1(0x220)]?this:(ch[e1(0x1cf)]=Math['round'](ci['ratio']*0x64)+'%',this[e1(0x1ec)]?clearTimeout(this['tooltipping']):cg['transition']?(this['fading']&&bW(ch,ba),bM(ch,aV),bM(ch,aI),bM(ch,aW),ch[e1(0x1a5)]('aria-hidden'),ch['initialOffsetWidth']=ch[e1(0x1f4)],bM(ch,aQ)):(bM(ch,aV),ch['removeAttribute']('aria-hidden')),this['tooltipping']=setTimeout(function(){cg['transition']?(bV(ch,ba,function(){var e2=a1;bN(ch,aV),bN(ch,aI),bN(ch,aW),ch['setAttribute'](e2(0x1f5),!0x0),cf['fading']=!0x1;},{'once':!0x0}),bN(ch,aQ),cf['fading']=!0x0):(bN(ch,aV),ch['setAttribute']('aria-hidden',!0x0)),cf['tooltipping']=!0x1;},0x3e8),this);},'toggle':function(){var e3=cP,cf=arguments['length']>0x0&&arguments[0x0]!==void 0x0?arguments[0x0]:null;return this['imageData'][e3(0x1ca)]===0x1?this['zoomTo'](this['imageData'][e3(0x1e3)],!0x0,null,cf):this['zoomTo'](0x1,!0x0,null,cf),this;},'reset':function(){var e4=cP;return this[e4(0x1bb)]&&!this[e4(0x1f6)]&&(this['imageData']=bH({},this['initialImageData']),this['renderImage']()),this;},'update':function(){var e7=cP,cf=this,cg=this['element'],ch=this['options'],ci=this['isImg'];if(ci&&!cg['parentNode'])return this['destroy']();var cj=[];if(bG(ci?[cg]:cg['querySelectorAll']('img'),function(cn){var e5=a1;bF(ch[e5(0x218)])?ch[e5(0x218)]['call'](cf,cn)&&cj['push'](cn):cf['getImageURL'](cn)&&cj['push'](cn);}),!cj['length'])return this;if(this['images']=cj,this['length']=cj['length'],this['ready']){var ck=[];if(bG(this['items'],function(cn,co){var e6=a1,cp=cn['querySelector']('img'),cq=cj[co];cq&&cp?(cq['src']!==cp['src']||cq[e6(0x247)]!==cp[e6(0x247)])&&ck['push'](co):ck[e6(0x1c7)](co);}),bJ(this['list'],{'width':'auto'}),this['initList'](),this['isShown']){if(this['length']){if(this['viewed']){var cl=ck[e7(0x1f9)](this['index']);if(cl>=0x0)this['viewed']=!0x1,this['view'](Math['max'](Math[e7(0x23e)](this['index']-cl,this['length']-0x1),0x0));else{var cm=this['items'][this['index']];bM(cm,aG),cm['setAttribute']('aria-selected',!0x0);}}}else this['image']=null,this['viewed']=!0x1,this['index']=0x0,this['imageData']={},this['canvas']['innerHTML']='',this[e7(0x189)]['innerHTML']='';}}else this[e7(0x1fb)]();return this;},'destroy':function(){var e8=cP,cf=this['element'],cg=this[e8(0x190)];return cf[aC]?(this[e8(0x217)]=!0x0,this[e8(0x241)]?(this['played']&&this['stop'](),cg['inline']?(this['fulled']&&this[e8(0x1a1)](),this['unbind']()):this['isShown']?(this['viewing']&&(this[e8(0x1f1)]?this[e8(0x1f1)]['abort']():this[e8(0x265)]&&this['imageInitializing']['abort']()),this['hiding']&&this['transitioning']['abort'](),this['hidden']()):this['showing']&&(this[e8(0x194)]['abort'](),this['hidden']()),this[e8(0x241)]=!0x1,this['viewer']['parentNode']['removeChild'](this[e8(0x227)])):cg['inline']&&(this['delaying']?this['delaying']['abort']():this['initializing']&&this['initializing']['abort']()),cg['inline']||bU(cf,aX,this[e8(0x1f0)]),cf[aC]=void 0x0,this):this;}},ca={'getImageURL':function(cf){var cg=this['options']['url'];return cg=by(cg)?cf['getAttribute'](cg):bF(cg)?cg['call'](this,cf):'',cg;},'enforceFocus':function(){var cf=this;this['clearEnforceFocus'](),bV(document,b0,this['onFocusin']=function(cg){var e9=a1,ch=cf['viewer'],ci=cg['target'];if(!(ci===document||ci===ch||ch['contains'](ci))){for(;ci;){if(ci['getAttribute'](e9(0x205))!==null||ci['getAttribute']('aria-modal')==='true')return;ci=ci['parentElement'];}ch['focus']();}});},'clearEnforceFocus':function(){this['onFocusin']&&(bU(document,b0,this['onFocusin']),this['onFocusin']=null);},'open':function(){var ea=cP,cf=this['body'];bM(cf,aU),this['scrollbarWidth']>0x0&&(cf['style'][ea(0x1bc)]=this['scrollbarWidth']+(parseFloat(this['initialBodyComputedPaddingRight'])||0x0)+'px');},'close':function(){var eb=cP,cf=this[eb(0x24d)];bN(cf,aU),this['scrollbarWidth']>0x0&&(cf['style']['paddingRight']=this['initialBodyPaddingRight']);},'shown':function(){var ec=cP,cf=this['element'],cg=this['options'],ch=this['viewer'];this['fulled']=!0x0,this['isShown']=!0x0,this['render'](),this['bind'](),this['showing']=!0x1,cg['focus']&&(ch['focus'](),this['enforceFocus']()),bF(cg['shown'])&&bV(cf,bf,cg[ec(0x233)],{'once':!0x0}),bW(cf,bf)!==!0x1&&this['ready']&&this['isShown']&&!this['hiding']&&this['view'](this['index']);},'hidden':function(){var ed=cP,cf=this['element'],cg=this['options'],ch=this['viewer'];cg['fucus']&&this['clearEnforceFocus'](),this['close'](),this['unbind'](),bM(ch,aM),ch['removeAttribute'](ed(0x1fc)),ch['removeAttribute']('aria-labelledby'),ch['removeAttribute']('aria-modal'),ch['setAttribute'](ed(0x1f5),!0x0),this[ed(0x26d)](),this[ed(0x1c1)](),this[ed(0x1eb)]=!0x1,this['viewed']=!0x1,this['isShown']=!0x1,this['hiding']=!0x1,this['destroyed']||(bF(cg['hidden'])&&bV(cf,bh,cg[ed(0x222)],{'once':!0x0}),bW(cf,bh,null,{'cancelable':!0x1}));},'requestFullscreen':function(cf){var ef=cP,cg=this['element'][ef(0x1a7)];if(this[ef(0x1eb)]&&!(cg['fullscreenElement']||cg['webkitFullscreenElement']||cg['mozFullScreenElement']||cg['msFullscreenElement'])){var ch=cg[ef(0x25b)];ch['requestFullscreen']?bE(cf)?ch['requestFullscreen'](cf):ch['requestFullscreen']():ch['webkitRequestFullscreen']?ch[ef(0x1dd)](Element['ALLOW_KEYBOARD_INPUT']):ch['mozRequestFullScreen']?ch['mozRequestFullScreen']():ch['msRequestFullscreen']&&ch['msRequestFullscreen']();}},'exitFullscreen':function(){var eg=cP,cf=this['element']['ownerDocument'];this['fulled']&&(cf['fullscreenElement']||cf[eg(0x1b6)]||cf['mozFullScreenElement']||cf['msFullscreenElement'])&&(cf['exitFullscreen']?cf[eg(0x238)]():cf['webkitExitFullscreen']?cf['webkitExitFullscreen']():cf['mozCancelFullScreen']?cf[eg(0x192)]():cf['msExitFullscreen']&&cf['msExitFullscreen']());},'change':function(cf){var eh=cP,cg=this[eh(0x190)],ch=this['pointers'],ci=ch[Object['keys'](ch)[0x0]];if(ci){var cj=ci['endX']-ci['startX'],ck=ci['endY']-ci['startY'];switch(this[eh(0x1d3)]){case aD:(cj!==0x0||ck!==0x0)&&(this['pointerMoved']=!0x0,this[eh(0x22e)](cj,ck,cf));break;case aF:this['zoom'](c3(ch),!0x1,null,cf);break;case aE:this['action']='switched';var cl=Math['abs'](cj);cl>0x1&&cl>Math['abs'](ck)&&(this['pointers']={},cj>0x1?this[eh(0x21a)](cg['loop']):cj<-0x1&&this['next'](cg['loop']));break;}bG(ch,function(cm){var ei=eh;cm[ei(0x24a)]=cm[ei(0x23c)],cm['startY']=cm['endY'];});}},'isSwitchable':function(){var ej=cP,cf=this['imageData'],cg=this[ej(0x1cd)];return this['length']>0x1&&cf['x']>=0x0&&cf['y']>=0x0&&cf['width']<=cg['width']&&cf[ej(0x262)]<=cg[ej(0x262)];}},cb=az[cP(0x242)],cc=function(cf){return function(){return cf+=0x1,cf;};}(-0x1),cd=(function(){function cf(cg){var ek=a1,ch=arguments[ek(0x26b)]>0x1&&arguments[0x1]!==void 0x0?arguments[0x1]:{};if(am(this,cf),!cg||cg['nodeType']!==0x1)throw Error('The\x20first\x20argument\x20is\x20required\x20and\x20must\x20be\x20an\x20element.');this['element']=cg,this['options']=bH({},aw,bE(ch)&&ch),this['action']=!0x1,this['fading']=!0x1,this[ek(0x1eb)]=!0x1,this[ek(0x266)]=!0x1,this['imageClicked']=!0x1,this['imageData']={},this['index']=this[ek(0x190)]['initialViewIndex'],this['isImg']=!0x1,this['isShown']=!0x1,this['length']=0x0,this['moving']=!0x1,this['played']=!0x1,this['playing']=!0x1,this['pointers']={},this['ready']=!0x1,this['rotating']=!0x1,this[ek(0x22b)]=!0x1,this['showing']=!0x1,this['timeout']=!0x1,this['tooltipping']=!0x1,this['viewed']=!0x1,this[ek(0x26e)]=!0x1,this['wheeling']=!0x1,this['zooming']=!0x1,this['pointerMoved']=!0x1,this['id']=cc(),this['init']();}return ao(cf,[{'key':'init','value':function(){var el=a1,cg=this,ch=this['element'],ci=this['options'];if(!ch[aC]){ch[aC]=this,ci['focus']&&!ci['keyboard']&&(ci[el(0x1e7)]=!0x1);var cj=ch['localName']===el(0x210),ck=[];if(bG(cj?[ch]:ch['querySelectorAll']('img'),function(cn){var em=el;bF(ci['filter'])?ci['filter']['call'](cg,cn)&&ck['push'](cn):cg[em(0x244)](cn)&&ck['push'](cn);}),this[el(0x1be)]=cj,this[el(0x26b)]=ck['length'],this['images']=ck,this['initBody'](),bB(document[el(0x208)](aC)['style']['transition'])&&(ci['transition']=!0x1),ci['inline']){var cl=0x0,cm=function(){var en=el;if(cl+=0x1,cl===cg['length']){var cn;cg[en(0x209)]=!0x1,cg[en(0x1de)]={'abort':function(){clearTimeout(cn);}},cn=setTimeout(function(){cg['delaying']=!0x1,cg['build']();},0x0);}};this['initializing']={'abort':function(){bG(ck,function(cn){cn['complete']||(bU(cn,b2,cm),bU(cn,b3,cm));});}},bG(ck,function(cn){if(cn['complete'])cm();else{var co,cp;bV(cn,b2,co=function(){bU(cn,b3,cp),cm();},{'once':!0x0}),bV(cn,b3,cp=function(){bU(cn,b2,co),cm();},{'once':!0x0});}});}else bV(ch,aX,this['onStart']=function(cn){var eo=el,co=cn['target'];co[eo(0x1b1)]==='img'&&(!bF(ci['filter'])||ci['filter']['call'](cg,co))&&cg['view'](cg['images']['indexOf'](co));});}}},{'key':'build','value':function(){var ep=a1;if(!this[ep(0x241)]){var cg=this['element'],ch=this['options'],ci=cg['parentNode'],cj=document['createElement']('div');cj['innerHTML']=ax;var ck=cj[ep(0x259)]('.'+aC+'-container'),cl=ck['querySelector']('.'+aC+'-title'),cm=ck['querySelector']('.'+aC+ep(0x1d4)),cn=ck['querySelector']('.'+aC+'-navbar'),co=ck['querySelector']('.'+aC+'-button'),cp=ck['querySelector']('.'+aC+'-canvas');if(this[ep(0x224)]=ci,this['viewer']=ck,this['title']=cl,this['toolbar']=cm,this[ep(0x206)]=cn,this['button']=co,this['canvas']=cp,this['footer']=ck[ep(0x259)]('.'+aC+'-footer'),this[ep(0x1e2)]=ck['querySelector']('.'+aC+'-tooltip'),this[ep(0x207)]=ck['querySelector']('.'+aC+'-player'),this['list']=ck['querySelector']('.'+aC+'-list'),ck['id']=''+aC+this['id'],cl['id']=aC+'Title'+this['id'],bM(cl,ch['title']?c2(Array['isArray'](ch['title'])?ch['title'][0x0]:ch['title']):aM),bM(cn,ch['navbar']?c2(ch['navbar']):aM),bO(co,aM,!ch['button']),ch['keyboard']&&co['setAttribute']('tabindex',0x0),ch[ep(0x1c0)]&&(bM(ck,aC+'-backdrop'),!ch['inline']&&ch['backdrop']!=='static'&&bS(cp,bv,'hide')),by(ch['className'])&&ch['className']&&ch['className']['split'](bw)['forEach'](function(cy){bM(ck,cy);}),ch['toolbar']){var cq=document['createElement']('ul'),cr=bE(ch[ep(0x21c)]),cs=bx['slice'](0x0,0x3),cu=bx['slice'](0x7,0x9),cv=bx[ep(0x20a)](0x9);cr||bM(cm,c2(ch['toolbar'])),bG(cr?ch['toolbar']:bx,function(cy,cz){var eq=ep,cA=cr&&bE(cy),cB=cr?bQ(cz):cy,cC=cA&&!bB(cy['show'])?cy['show']:cy;if(!(!cC||!ch['zoomable']&&cs['indexOf'](cB)!==-0x1||!ch['rotatable']&&cu['indexOf'](cB)!==-0x1||!ch['scalable']&&cv['indexOf'](cB)!==-0x1)){var cD=cA&&!bB(cy[eq(0x198)])?cy[eq(0x198)]:cy,cE=cA&&!bB(cy[eq(0x225)])?cy['click']:cy,cF=document['createElement']('li');ch[eq(0x1e0)]&&cF['setAttribute']('tabindex',0x0),cF['setAttribute']('role',eq(0x181)),bM(cF,aC+'-'+cB),bF(cE)||bS(cF,bv,cB),bA(cC)&&bM(cF,c2(cC)),['small','large']['indexOf'](cD)===-0x1?cB==='play'&&bM(cF,aC+eq(0x261)):bM(cF,aC+'-'+cD),bF(cE)&&bV(cF,aX,cE),cq['appendChild'](cF);}}),cm['appendChild'](cq);}else bM(cm,aM);if(!ch[ep(0x1e4)]){var cw=cm['querySelectorAll']('li[class*=\x22rotate\x22]');bM(cw,aR),bG(cw,function(cy){cm['appendChild'](cy);});}if(ch[ep(0x187)])bM(co,aK),bJ(ck,{'zIndex':ch['zIndexInline']}),window['getComputedStyle'](ci)[ep(0x202)]===ep(0x1d5)&&bJ(ci,{'position':'relative'}),ci['insertBefore'](ck,cg['nextSibling']);else{bM(co,aH),bM(ck,aJ),bM(ck,aI),bM(ck,aM),bJ(ck,{'zIndex':ch[ep(0x1c3)]});var cx=ch['container'];by(cx)&&(cx=cg['ownerDocument']['querySelector'](cx)),cx||(cx=this['body']),cx['appendChild'](ck);}if(ch['inline']&&(this['render'](),this['bind'](),this[ep(0x23f)]=!0x0),this[ep(0x241)]=!0x0,bF(ch[ep(0x241)])&&bV(cg,bc,ch['ready'],{'once':!0x0}),bW(cg,bc)===!0x1){this['ready']=!0x1;return;}this[ep(0x241)]&&ch['inline']&&this['view'](this[ep(0x1ea)]);}}}],[{'key':'noConflict','value':function(){return window['Viewer']=cb,cf;}},{'key':'setDefaults','value':function(cg){bH(aw,bE(cg)&&cg);}}]);}());return bH(cd['prototype'],c6,c7,c8,c9,ca),cd;}));})(),0x1);n();var ee=typeof global==er(0x17f)&&global&&global[er(0x250)]===Object&&global,b=typeof self==er(0x17f)&&self&&self['Object']===Object&&self,x=ee||b||Function(er(0x1da))(),S=x[er(0x1b5)],te=Object['prototype'],C=te['hasOwnProperty'],ne=te['toString'],w=S?S['toStringTag']:void 0x0;function re(ak){var al=C['call'](ak,w),am=ak[w];try{ak[w]=void 0x0;var an=!0x0;}catch(ap){}var ao=ne['call'](ak);return an&&(al?ak[w]=am:delete ak[w]),ao;}var T=Object['prototype']['toString'];function ie(ak){var es=er;return T[es(0x1d2)](ak);}var E='[object\x20Null]',ae='[object\x20Undefined]',oe=S?S[er(0x19d)]:void 0x0;function D(ak){return ak==null?ak===void 0x0?ae:E:oe&&oe in Object(ak)?re(ak):ie(ak);}function O(ak){var eu=er;return typeof ak==eu(0x17f)&&!!ak;}var k=Array['isArray'];function A(ak){var al=typeof ak;return ak!=null&&(al=='object'||al=='function');}function se(ak){return ak;}var ce='[object\x20AsyncFunction]',le='[object\x20Function]',j='[object\x20GeneratorFunction]',M='[object\x20Proxy]';function ue(ak){if(!A(ak))return!0x1;var al=D(ak);return al==le||al==j||al==ce||al==M;}var de=x[er(0x215)],fe=(function(){var ev=er,ak=/[^.]+$/[ev(0x22f)](de&&de[ev(0x1b9)]&&de['keys']['IE_PROTO']||'');return ak?ev(0x267)+ak:'';}());function pe(ak){return!!fe&&fe in ak;}var me=Function['prototype']['toString'];function he(ak){if(ak!=null){try{return me['call'](ak);}catch(al){}try{return ak+'';}catch(am){}}return'';}var N=/[\\^$.*+?()[\]{}|]/g,ge=/^\[object .+?Constructor\]$/,_e=Function['prototype'],ve=Object['prototype'],ye=_e['toString'],be=ve['hasOwnProperty'],xe=RegExp('^'+ye['call'](be)['replace'](N,'\x5c$&')['replace'](/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');function Se(ak){return!A(ak)||pe(ak)?!0x1:(ue(ak)?xe:ge)['test'](he(ak));}function Ce(ak,al){return ak==null?void 0x0:ak[al];}function we(ak,al){var am=Ce(ak,al);return Se(am)?am:void 0x0;}function Te(ak,al,am){var ew=er;switch(am[ew(0x26b)]){case 0x0:return ak['call'](al);case 0x1:return ak['call'](al,am[0x0]);case 0x2:return ak[ew(0x1d2)](al,am[0x0],am[0x1]);case 0x3:return ak[ew(0x1d2)](al,am[0x0],am[0x1],am[0x2]);}return ak['apply'](al,am);}var Ee=0x320,De=0x10,Oe=Date['now'];function ke(ak){var al=0x0,am=0x0;return function(){var an=Oe(),ao=De-(an-am);if(am=an,ao>0x0){if(++al>=Ee)return arguments[0x0];}else al=0x0;return ak['apply'](void 0x0,arguments);};}function Ae(ak){return function(){return ak;};}var P=(function(){try{var ak=we(Object,'defineProperty');return ak({},'',{}),ak;}catch(al){}}()),je=ke(P?function(ak,al){return P(ak,'toString',{'configurable':!0x0,'enumerable':!0x1,'value':Ae(al),'writable':!0x0});}:se),Me=0x1fffffffffffff,Ne=/^(?:0|[1-9]\d*)$/;function Pe(ak,al){var am=typeof ak;return al=al==null?Me:al,!!al&&(am=='number'||am!='symbol'&&Ne['test'](ak))&&ak>-0x1&&ak%0x1==0x0&&ak<al;}function F(ak,al,am){al=='__proto__'&&P?P(ak,al,{'configurable':!0x0,'enumerable':!0x0,'value':am,'writable':!0x0}):ak[al]=am;}function I(ak,al){return ak===al||ak!==ak&&al!==al;}var Fe=Object[er(0x1fa)][er(0x26c)];function L(ak,al,am){var an=ak[al];(!(Fe['call'](ak,al)&&I(an,am))||am===void 0x0&&!(al in ak))&&F(ak,al,am);}function R(ak,al,am,an){var ao=!am;am||(am={});for(var ap=-0x1,aq=al['length'];++ap<aq;){var ar=al[ap],as=an?an(am[ar],ak[ar],ar,am,ak):void 0x0;as===void 0x0&&(as=ak[ar]),ao?F(am,ar,as):L(am,ar,as);}return am;}var z=Math['max'];function Ie(ak,al,am){return al=z(al===void 0x0?ak['length']-0x1:al,0x0),function(){for(var an=arguments,ao=-0x1,ap=z(an['length']-al,0x0),aq=Array(ap);++ao<ap;)aq[ao]=an[al+ao];ao=-0x1;for(var ar=Array(al+0x1);++ao<al;)ar[ao]=an[ao];return ar[al]=am(aq),Te(ak,this,ar);};}function B(ak,al){return je(Ie(ak,al,se),ak+'');}var V=0x1fffffffffffff;function H(ak){return typeof ak=='number'&&ak>-0x1&&ak%0x1==0x0&&ak<=V;}function U(ak){return ak!=null&&H(ak['length'])&&!ue(ak);}function Le(ak,al,am){var ex=er;if(!A(am))return!0x1;var an=typeof al;return(an=='number'?U(am)&&Pe(al,am['length']):an==ex(0x228)&&al in am)?I(am[al],ak):!0x1;}function W(ak){return B(function(al,am){var an=-0x1,ao=am['length'],ap=ao>0x1?am[ao-0x1]:void 0x0,aq=ao>0x2?am[0x2]:void 0x0;for(ap=ak['length']>0x3&&typeof ap=='function'?(ao--,ap):void 0x0,aq&&Le(am[0x0],am[0x1],aq)&&(ap=ao<0x3?void 0x0:ap,ao=0x1),al=Object(al);++an<ao;){var ar=am[an];ar&&ak(al,ar,an,ap);}return al;});}function a1(a,b){a=a-0x17f;var c=a0();var d=c[a];return d;}var Re=Object['prototype'];function G(ak){var ey=er,al=ak&&ak['constructor'];return ak===(typeof al==ey(0x20e)&&al['prototype']||Re);}function K(ak,al){for(var am=-0x1,an=Array(ak);++am<ak;)an[am]=al(am);return an;}var q='[object\x20Arguments]';function J(ak){return O(ak)&&D(ak)==q;}var ze=Object['prototype'],Be=ze['hasOwnProperty'],Y=ze['propertyIsEnumerable'],Ve=J((function(){return arguments;}()))?J:function(ak){var ez=er;return O(ak)&&Be[ez(0x1d2)](ak,'callee')&&!Y['call'](ak,'callee');};function He(){return!0x1;}var X=typeof exports==er(0x17f)&&exports&&!exports['nodeType']&&exports,Z=X&&typeof module=='object'&&module&&!module['nodeType']&&module,Q=Z&&Z['exports']===X?x['Buffer']:void 0x0,Ue=(Q?Q['isBuffer']:void 0x0)||He,We='[object\x20Arguments]',Ge=er(0x1e8),Ke='[object\x20Boolean]',qe='[object\x20Date]',Je=er(0x18f),Ye=er(0x260),Xe='[object\x20Map]',Ze='[object\x20Number]',Qe='[object\x20Object]',$e='[object\x20RegExp]',et='[object\x20Set]',tt='[object\x20String]',nt='[object\x20WeakMap]',rt='[object\x20ArrayBuffer]',it=er(0x188),at='[object\x20Float32Array]',ot=er(0x23a),st='[object\x20Int8Array]',ct='[object\x20Int16Array]',lt='[object\x20Int32Array]',ut='[object\x20Uint8Array]',dt=er(0x21e),ft='[object\x20Uint16Array]',pt='[object\x20Uint32Array]',$={};$[at]=$[ot]=$[st]=$[ct]=$[lt]=$[ut]=$[dt]=$[ft]=$[pt]=!0x0,$[We]=$[Ge]=$[rt]=$[Ke]=$[it]=$[qe]=$[Je]=$[Ye]=$[Xe]=$[Ze]=$[Qe]=$[$e]=$[et]=$[tt]=$[nt]=!0x1;function mt(ak){var eA=er;return O(ak)&&H(ak[eA(0x26b)])&&!!$[D(ak)];}function ht(ak){return function(al){return ak(al);};}var gt=typeof exports==er(0x17f)&&exports&&!exports['nodeType']&&exports,_t=gt&&typeof module==er(0x17f)&&module&&!module['nodeType']&&module,vt=_t&&_t[er(0x263)]===gt&&ee['process'],yt=(function(){try{return _t&&_t['require']&&_t['require']('util')['types']||vt&&vt['binding']&&vt['binding']('util');}catch(ak){}}()),bt=yt&&yt['isTypedArray'],xt=bt?ht(bt):mt,St=Object['prototype']['hasOwnProperty'];function Ct(ak,al){var eB=er,am=k(ak),an=!am&&Ve(ak),ao=!am&&!an&&Ue(ak),ap=!am&&!an&&!ao&&xt(ak),aq=am||an||ao||ap,ar=aq?K(ak['length'],String):[],as=ar[eB(0x26b)];for(var au in ak)(al||St['call'](ak,au))&&!(aq&&(au=='length'||ao&&(au=='offset'||au=='parent')||ap&&(au=='buffer'||au=='byteLength'||au==eB(0x1db))||Pe(au,as)))&&ar['push'](au);return ar;}function wt(ak,al){return function(am){return ak(al(am));};}var Tt=wt(Object[er(0x1b9)],Object),Et=Object['prototype']['hasOwnProperty'];function Dt(ak){if(!G(ak))return Tt(ak);var al=[];for(var am in Object(ak))Et['call'](ak,am)&&am!='constructor'&&al['push'](am);return al;}function Ot(ak){return U(ak)?Ct(ak):Dt(ak);}var kt=Object[er(0x1fa)]['hasOwnProperty'];W(function(ak,al){if(G(al)||U(al)){R(al,Ot(al),ak);return;}for(var am in al)kt['call'](al,am)&&L(ak,am,al[am]);});function At(ak){var al=[];if(ak!=null){for(var am in Object(ak))al['push'](am);}return al;}var jt=Object['prototype']['hasOwnProperty'];function Mt(ak){var eC=er;if(!A(ak))return At(ak);var al=G(ak),am=[];for(var an in ak)an=='constructor'&&(al||!jt['call'](ak,an))||am[eC(0x1c7)](an);return am;}function Nt(ak){return U(ak)?Ct(ak,!0x0):Mt(ak);}var Pt=Object[er(0x1fa)],Ft=Pt[er(0x26c)];B(function(ak,al){ak=Object(ak);var am=-0x1,an=al['length'],ao=an>0x2?al[0x2]:void 0x0;for(ao&&Le(al[0x0],al[0x1],ao)&&(an=0x1);++am<an;)for(var ap=al[am],aq=Nt(ap),ar=-0x1,as=aq['length'];++ar<as;){var au=aq[ar],av=ak[au];(av===void 0x0||I(av,Pt[au])&&!Ft['call'](ak,au))&&(ak[au]=ap[au]);}return ak;});var It=a8({'name':'Viewer','props':{'images':{'type':Array,'default':()=>[]},'rebuild':{'type':Boolean,'default':!0x1},'trigger':{'type':Object,'default':null},'options':{'type':Object,'default':()=>null}},'emits':['inited'],'setup'(ak,{emit:al}){let am,an=ad();function ao(){var eD=a1;am=new y['default'](an['value'],ak[eD(0x190)]),al('inited',am);}function ap(){am&&am['destroy']();}function aq(){ap(),ao();}function ar(){var eE=a1;am?(am[eE(0x230)](),al('inited',am)):ao();}function as(){ak['rebuild']?aq():ar();}let au={'deep':!0x0};return ai(()=>ak['images'],()=>{a9(()=>{as();});},au),ai(()=>ak['trigger'],()=>{a9(()=>{as();});},au),ai(()=>ak['options'],()=>{a9(()=>{aq();});},au),aa(()=>ao()),ab(()=>ap()),{'root':an,'createViewer':ao,'rebuildViewer':aq,'updateViewer':ar,'destroyViewer':ap};}}),Lt=(ak,al)=>{let am=ak['__vccOpts']||ak;for(let [an,ao]of al)am[an]=ao;return am;},Rt={'ref':'root'};function zt(ak,al,am,an,ao,ap){var eF=er;return ac(),a7(eF(0x1cc),Rt,[ag(ak['$slots'],'default',{'images':ak['images'],'options':ak['options']})],0x200);}var Bt=Lt(It,[['render',zt]]),Vt=[er(0x195)],Ht=a3(a8({'__name':'ImageViewer','props':{'image':{}},'setup'(ak){var eG=er;let al=ak,am=a5(()=>al['image']?[{'src':al[eG(0x1e5)],'index':0x0}]:[]);return(an,ao)=>(ac(),a6(ah(Bt),{'images':am['value'],'style':{'height':'100%'}},{'default':aj(()=>[(ac(!0x0),a7(a4,null,af(am[eG(0x25c)],ap=>(ac(),a7('img',{'alt':'图片','src':ap['src'],'key':ap['index'],'class':'image'},null,0x8,Vt))),0x80))]),'_':0x1},0x8,[eG(0x257)]));}}),[['__scopeId','data-v-b0f61c51']]);export{Ht as default};