1 | (function webpackUniversalModuleDefinition(root, factory) {
|
2 | if(typeof exports === 'object' && typeof module === 'object')
|
3 | module.exports = factory(require("vue"));
|
4 | else if(typeof define === 'function' && define.amd)
|
5 | define([], factory);
|
6 | else if(typeof exports === 'object')
|
7 | exports["LightGalleryVue"] = factory(require("vue"));
|
8 | else
|
9 | root["LightGalleryVue"] = factory(root["Vue"]);
|
10 | })((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__8bbf__) {
|
11 | return (function(modules) {
|
12 |
|
13 | var installedModules = {};
|
14 |
|
15 |
|
16 | function __webpack_require__(moduleId) {
|
17 |
|
18 |
|
19 | if(installedModules[moduleId]) {
|
20 | return installedModules[moduleId].exports;
|
21 | }
|
22 |
|
23 | var module = installedModules[moduleId] = {
|
24 | i: moduleId,
|
25 | l: false,
|
26 | exports: {}
|
27 | };
|
28 |
|
29 |
|
30 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31 |
|
32 |
|
33 | module.l = true;
|
34 |
|
35 |
|
36 | return module.exports;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 | __webpack_require__.m = modules;
|
42 |
|
43 |
|
44 | __webpack_require__.c = installedModules;
|
45 |
|
46 |
|
47 | __webpack_require__.d = function(exports, name, getter) {
|
48 | if(!__webpack_require__.o(exports, name)) {
|
49 | Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
50 | }
|
51 | };
|
52 |
|
53 |
|
54 | __webpack_require__.r = function(exports) {
|
55 | if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
56 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
57 | }
|
58 | Object.defineProperty(exports, '__esModule', { value: true });
|
59 | };
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | __webpack_require__.t = function(value, mode) {
|
67 | if(mode & 1) value = __webpack_require__(value);
|
68 | if(mode & 8) return value;
|
69 | if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
70 | var ns = Object.create(null);
|
71 | __webpack_require__.r(ns);
|
72 | Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
73 | if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
74 | return ns;
|
75 | };
|
76 |
|
77 |
|
78 | __webpack_require__.n = function(module) {
|
79 | var getter = module && module.__esModule ?
|
80 | function getDefault() { return module['default']; } :
|
81 | function getModuleExports() { return module; };
|
82 | __webpack_require__.d(getter, 'a', getter);
|
83 | return getter;
|
84 | };
|
85 |
|
86 |
|
87 | __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
88 |
|
89 |
|
90 | __webpack_require__.p = "";
|
91 |
|
92 |
|
93 |
|
94 | return __webpack_require__(__webpack_require__.s = "fb15");
|
95 | })
|
96 |
|
97 | ({
|
98 |
|
99 | "00ee":
|
100 | (function(module, exports, __webpack_require__) {
|
101 |
|
102 | var wellKnownSymbol = __webpack_require__("b622");
|
103 |
|
104 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
105 | var test = {};
|
106 |
|
107 | test[TO_STRING_TAG] = 'z';
|
108 |
|
109 | module.exports = String(test) === '[object z]';
|
110 |
|
111 |
|
112 | }),
|
113 |
|
114 | "0366":
|
115 | (function(module, exports, __webpack_require__) {
|
116 |
|
117 | var aFunction = __webpack_require__("1c0b");
|
118 |
|
119 |
|
120 | module.exports = function (fn, that, length) {
|
121 | aFunction(fn);
|
122 | if (that === undefined) return fn;
|
123 | switch (length) {
|
124 | case 0: return function () {
|
125 | return fn.call(that);
|
126 | };
|
127 | case 1: return function (a) {
|
128 | return fn.call(that, a);
|
129 | };
|
130 | case 2: return function (a, b) {
|
131 | return fn.call(that, a, b);
|
132 | };
|
133 | case 3: return function (a, b, c) {
|
134 | return fn.call(that, a, b, c);
|
135 | };
|
136 | }
|
137 | return function (/* ...args */) {
|
138 | return fn.apply(that, arguments);
|
139 | };
|
140 | };
|
141 |
|
142 |
|
143 | }),
|
144 |
|
145 | "0538":
|
146 | (function(module, exports, __webpack_require__) {
|
147 |
|
148 | "use strict";
|
149 |
|
150 | var aFunction = __webpack_require__("1c0b");
|
151 | var isObject = __webpack_require__("861d");
|
152 |
|
153 | var slice = [].slice;
|
154 | var factories = {};
|
155 |
|
156 | var construct = function (C, argsLength, args) {
|
157 | if (!(argsLength in factories)) {
|
158 | for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
|
159 |
|
160 | factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');
|
161 | } return factories[argsLength](C, args);
|
162 | };
|
163 |
|
164 |
|
165 |
|
166 | module.exports = Function.bind || function bind(that /* , ...args */) {
|
167 | var fn = aFunction(this);
|
168 | var partArgs = slice.call(arguments, 1);
|
169 | var boundFunction = function bound(/* args... */) {
|
170 | var args = partArgs.concat(slice.call(arguments));
|
171 | return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);
|
172 | };
|
173 | if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;
|
174 | return boundFunction;
|
175 | };
|
176 |
|
177 |
|
178 | }),
|
179 |
|
180 | "057f":
|
181 | (function(module, exports, __webpack_require__) {
|
182 |
|
183 |
|
184 | var toIndexedObject = __webpack_require__("fc6a");
|
185 | var $getOwnPropertyNames = __webpack_require__("241c").f;
|
186 |
|
187 | var toString = {}.toString;
|
188 |
|
189 | var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
190 | ? Object.getOwnPropertyNames(window) : [];
|
191 |
|
192 | var getWindowNames = function (it) {
|
193 | try {
|
194 | return $getOwnPropertyNames(it);
|
195 | } catch (error) {
|
196 | return windowNames.slice();
|
197 | }
|
198 | };
|
199 |
|
200 |
|
201 | module.exports.f = function getOwnPropertyNames(it) {
|
202 | return windowNames && toString.call(it) == '[object Window]'
|
203 | ? getWindowNames(it)
|
204 | : $getOwnPropertyNames(toIndexedObject(it));
|
205 | };
|
206 |
|
207 |
|
208 | }),
|
209 |
|
210 | "06cf":
|
211 | (function(module, exports, __webpack_require__) {
|
212 |
|
213 | var DESCRIPTORS = __webpack_require__("83ab");
|
214 | var propertyIsEnumerableModule = __webpack_require__("d1e7");
|
215 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
216 | var toIndexedObject = __webpack_require__("fc6a");
|
217 | var toPrimitive = __webpack_require__("c04e");
|
218 | var has = __webpack_require__("5135");
|
219 | var IE8_DOM_DEFINE = __webpack_require__("0cfb");
|
220 |
|
221 |
|
222 | var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
223 |
|
224 |
|
225 |
|
226 | exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
227 | O = toIndexedObject(O);
|
228 | P = toPrimitive(P, true);
|
229 | if (IE8_DOM_DEFINE) try {
|
230 | return $getOwnPropertyDescriptor(O, P);
|
231 | } catch (error) { }
|
232 | if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
|
233 | };
|
234 |
|
235 |
|
236 | }),
|
237 |
|
238 | "0cb2":
|
239 | (function(module, exports, __webpack_require__) {
|
240 |
|
241 | var toObject = __webpack_require__("7b0b");
|
242 |
|
243 | var floor = Math.floor;
|
244 | var replace = ''.replace;
|
245 | var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
246 | var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
247 |
|
248 |
|
249 | module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
|
250 | var tailPos = position + matched.length;
|
251 | var m = captures.length;
|
252 | var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
253 | if (namedCaptures !== undefined) {
|
254 | namedCaptures = toObject(namedCaptures);
|
255 | symbols = SUBSTITUTION_SYMBOLS;
|
256 | }
|
257 | return replace.call(replacement, symbols, function (match, ch) {
|
258 | var capture;
|
259 | switch (ch.charAt(0)) {
|
260 | case '$': return '$';
|
261 | case '&': return matched;
|
262 | case '`': return str.slice(0, position);
|
263 | case "'": return str.slice(tailPos);
|
264 | case '<':
|
265 | capture = namedCaptures[ch.slice(1, -1)];
|
266 | break;
|
267 | default:
|
268 | var n = +ch;
|
269 | if (n === 0) return match;
|
270 | if (n > m) {
|
271 | var f = floor(n / 10);
|
272 | if (f === 0) return match;
|
273 | if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
274 | return match;
|
275 | }
|
276 | capture = captures[n - 1];
|
277 | }
|
278 | return capture === undefined ? '' : capture;
|
279 | });
|
280 | };
|
281 |
|
282 |
|
283 | }),
|
284 |
|
285 | "0cfb":
|
286 | (function(module, exports, __webpack_require__) {
|
287 |
|
288 | var DESCRIPTORS = __webpack_require__("83ab");
|
289 | var fails = __webpack_require__("d039");
|
290 | var createElement = __webpack_require__("cc12");
|
291 |
|
292 |
|
293 | module.exports = !DESCRIPTORS && !fails(function () {
|
294 |
|
295 | return Object.defineProperty(createElement('div'), 'a', {
|
296 | get: function () { return 7; }
|
297 | }).a != 7;
|
298 | });
|
299 |
|
300 |
|
301 | }),
|
302 |
|
303 | "1276":
|
304 | (function(module, exports, __webpack_require__) {
|
305 |
|
306 | "use strict";
|
307 |
|
308 | var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
309 | var isRegExp = __webpack_require__("44e7");
|
310 | var anObject = __webpack_require__("825a");
|
311 | var requireObjectCoercible = __webpack_require__("1d80");
|
312 | var speciesConstructor = __webpack_require__("4840");
|
313 | var advanceStringIndex = __webpack_require__("8aa5");
|
314 | var toLength = __webpack_require__("50c4");
|
315 | var callRegExpExec = __webpack_require__("14c3");
|
316 | var regexpExec = __webpack_require__("9263");
|
317 | var stickyHelpers = __webpack_require__("9f7f");
|
318 |
|
319 | var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
320 | var arrayPush = [].push;
|
321 | var min = Math.min;
|
322 | var MAX_UINT32 = 0xFFFFFFFF;
|
323 |
|
324 |
|
325 | fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
|
326 | var internalSplit;
|
327 | if (
|
328 | 'abbc'.split(/(b)*/)[1] == 'c' ||
|
329 |
|
330 | 'test'.split(/(?:)/, -1).length != 4 ||
|
331 | 'ab'.split(/(?:ab)*/).length != 2 ||
|
332 | '.'.split(/(.?)(.?)/).length != 4 ||
|
333 |
|
334 | '.'.split(/()()/).length > 1 ||
|
335 | ''.split(/.?/).length
|
336 | ) {
|
337 |
|
338 | internalSplit = function (separator, limit) {
|
339 | var string = String(requireObjectCoercible(this));
|
340 | var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
341 | if (lim === 0) return [];
|
342 | if (separator === undefined) return [string];
|
343 |
|
344 | if (!isRegExp(separator)) {
|
345 | return nativeSplit.call(string, separator, lim);
|
346 | }
|
347 | var output = [];
|
348 | var flags = (separator.ignoreCase ? 'i' : '') +
|
349 | (separator.multiline ? 'm' : '') +
|
350 | (separator.unicode ? 'u' : '') +
|
351 | (separator.sticky ? 'y' : '');
|
352 | var lastLastIndex = 0;
|
353 |
|
354 | var separatorCopy = new RegExp(separator.source, flags + 'g');
|
355 | var match, lastIndex, lastLength;
|
356 | while (match = regexpExec.call(separatorCopy, string)) {
|
357 | lastIndex = separatorCopy.lastIndex;
|
358 | if (lastIndex > lastLastIndex) {
|
359 | output.push(string.slice(lastLastIndex, match.index));
|
360 | if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
361 | lastLength = match[0].length;
|
362 | lastLastIndex = lastIndex;
|
363 | if (output.length >= lim) break;
|
364 | }
|
365 | if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++;
|
366 | }
|
367 | if (lastLastIndex === string.length) {
|
368 | if (lastLength || !separatorCopy.test('')) output.push('');
|
369 | } else output.push(string.slice(lastLastIndex));
|
370 | return output.length > lim ? output.slice(0, lim) : output;
|
371 | };
|
372 |
|
373 | } else if ('0'.split(undefined, 0).length) {
|
374 | internalSplit = function (separator, limit) {
|
375 | return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
376 | };
|
377 | } else internalSplit = nativeSplit;
|
378 |
|
379 | return [
|
380 |
|
381 |
|
382 | function split(separator, limit) {
|
383 | var O = requireObjectCoercible(this);
|
384 | var splitter = separator == undefined ? undefined : separator[SPLIT];
|
385 | return splitter !== undefined
|
386 | ? splitter.call(separator, O, limit)
|
387 | : internalSplit.call(String(O), separator, limit);
|
388 | },
|
389 |
|
390 |
|
391 |
|
392 |
|
393 |
|
394 | function (regexp, limit) {
|
395 | var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
|
396 | if (res.done) return res.value;
|
397 |
|
398 | var rx = anObject(regexp);
|
399 | var S = String(this);
|
400 | var C = speciesConstructor(rx, RegExp);
|
401 |
|
402 | var unicodeMatching = rx.unicode;
|
403 | var flags = (rx.ignoreCase ? 'i' : '') +
|
404 | (rx.multiline ? 'm' : '') +
|
405 | (rx.unicode ? 'u' : '') +
|
406 | (UNSUPPORTED_Y ? 'g' : 'y');
|
407 |
|
408 |
|
409 |
|
410 | var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
411 | var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
412 | if (lim === 0) return [];
|
413 | if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
414 | var p = 0;
|
415 | var q = 0;
|
416 | var A = [];
|
417 | while (q < S.length) {
|
418 | splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
419 | var z = callRegExpExec(splitter, UNSUPPORTED_Y ? S.slice(q) : S);
|
420 | var e;
|
421 | if (
|
422 | z === null ||
|
423 | (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
424 | ) {
|
425 | q = advanceStringIndex(S, q, unicodeMatching);
|
426 | } else {
|
427 | A.push(S.slice(p, q));
|
428 | if (A.length === lim) return A;
|
429 | for (var i = 1; i <= z.length - 1; i++) {
|
430 | A.push(z[i]);
|
431 | if (A.length === lim) return A;
|
432 | }
|
433 | q = p = e;
|
434 | }
|
435 | }
|
436 | A.push(S.slice(p));
|
437 | return A;
|
438 | }
|
439 | ];
|
440 | }, UNSUPPORTED_Y);
|
441 |
|
442 |
|
443 | }),
|
444 |
|
445 | "14c3":
|
446 | (function(module, exports, __webpack_require__) {
|
447 |
|
448 | var classof = __webpack_require__("c6b6");
|
449 | var regexpExec = __webpack_require__("9263");
|
450 |
|
451 |
|
452 |
|
453 | module.exports = function (R, S) {
|
454 | var exec = R.exec;
|
455 | if (typeof exec === 'function') {
|
456 | var result = exec.call(R, S);
|
457 | if (typeof result !== 'object') {
|
458 | throw TypeError('RegExp exec method returned something other than an Object or null');
|
459 | }
|
460 | return result;
|
461 | }
|
462 |
|
463 | if (classof(R) !== 'RegExp') {
|
464 | throw TypeError('RegExp#exec called on incompatible receiver');
|
465 | }
|
466 |
|
467 | return regexpExec.call(R, S);
|
468 | };
|
469 |
|
470 |
|
471 |
|
472 | }),
|
473 |
|
474 | "159b":
|
475 | (function(module, exports, __webpack_require__) {
|
476 |
|
477 | var global = __webpack_require__("da84");
|
478 | var DOMIterables = __webpack_require__("fdbc");
|
479 | var forEach = __webpack_require__("17c2");
|
480 | var createNonEnumerableProperty = __webpack_require__("9112");
|
481 |
|
482 | for (var COLLECTION_NAME in DOMIterables) {
|
483 | var Collection = global[COLLECTION_NAME];
|
484 | var CollectionPrototype = Collection && Collection.prototype;
|
485 |
|
486 | if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
|
487 | createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
|
488 | } catch (error) {
|
489 | CollectionPrototype.forEach = forEach;
|
490 | }
|
491 | }
|
492 |
|
493 |
|
494 | }),
|
495 |
|
496 | "17c2":
|
497 | (function(module, exports, __webpack_require__) {
|
498 |
|
499 | "use strict";
|
500 |
|
501 | var $forEach = __webpack_require__("b727").forEach;
|
502 | var arrayMethodIsStrict = __webpack_require__("a640");
|
503 |
|
504 | var STRICT_METHOD = arrayMethodIsStrict('forEach');
|
505 |
|
506 |
|
507 |
|
508 | module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
509 | return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
510 |
|
511 | } : [].forEach;
|
512 |
|
513 |
|
514 | }),
|
515 |
|
516 | "19aa":
|
517 | (function(module, exports) {
|
518 |
|
519 | module.exports = function (it, Constructor, name) {
|
520 | if (!(it instanceof Constructor)) {
|
521 | throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
|
522 | } return it;
|
523 | };
|
524 |
|
525 |
|
526 | }),
|
527 |
|
528 | "1be4":
|
529 | (function(module, exports, __webpack_require__) {
|
530 |
|
531 | var getBuiltIn = __webpack_require__("d066");
|
532 |
|
533 | module.exports = getBuiltIn('document', 'documentElement');
|
534 |
|
535 |
|
536 | }),
|
537 |
|
538 | "1c0b":
|
539 | (function(module, exports) {
|
540 |
|
541 | module.exports = function (it) {
|
542 | if (typeof it != 'function') {
|
543 | throw TypeError(String(it) + ' is not a function');
|
544 | } return it;
|
545 | };
|
546 |
|
547 |
|
548 | }),
|
549 |
|
550 | "1c7e":
|
551 | (function(module, exports, __webpack_require__) {
|
552 |
|
553 | var wellKnownSymbol = __webpack_require__("b622");
|
554 |
|
555 | var ITERATOR = wellKnownSymbol('iterator');
|
556 | var SAFE_CLOSING = false;
|
557 |
|
558 | try {
|
559 | var called = 0;
|
560 | var iteratorWithReturn = {
|
561 | next: function () {
|
562 | return { done: !!called++ };
|
563 | },
|
564 | 'return': function () {
|
565 | SAFE_CLOSING = true;
|
566 | }
|
567 | };
|
568 | iteratorWithReturn[ITERATOR] = function () {
|
569 | return this;
|
570 | };
|
571 |
|
572 | Array.from(iteratorWithReturn, function () { throw 2; });
|
573 | } catch (error) { }
|
574 |
|
575 | module.exports = function (exec, SKIP_CLOSING) {
|
576 | if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
577 | var ITERATION_SUPPORT = false;
|
578 | try {
|
579 | var object = {};
|
580 | object[ITERATOR] = function () {
|
581 | return {
|
582 | next: function () {
|
583 | return { done: ITERATION_SUPPORT = true };
|
584 | }
|
585 | };
|
586 | };
|
587 | exec(object);
|
588 | } catch (error) { }
|
589 | return ITERATION_SUPPORT;
|
590 | };
|
591 |
|
592 |
|
593 | }),
|
594 |
|
595 | "1cdc":
|
596 | (function(module, exports, __webpack_require__) {
|
597 |
|
598 | var userAgent = __webpack_require__("342f");
|
599 |
|
600 | module.exports = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent);
|
601 |
|
602 |
|
603 | }),
|
604 |
|
605 | "1d80":
|
606 | (function(module, exports) {
|
607 |
|
608 |
|
609 |
|
610 | module.exports = function (it) {
|
611 | if (it == undefined) throw TypeError("Can't call method on " + it);
|
612 | return it;
|
613 | };
|
614 |
|
615 |
|
616 | }),
|
617 |
|
618 | "1dde":
|
619 | (function(module, exports, __webpack_require__) {
|
620 |
|
621 | var fails = __webpack_require__("d039");
|
622 | var wellKnownSymbol = __webpack_require__("b622");
|
623 | var V8_VERSION = __webpack_require__("2d00");
|
624 |
|
625 | var SPECIES = wellKnownSymbol('species');
|
626 |
|
627 | module.exports = function (METHOD_NAME) {
|
628 |
|
629 |
|
630 |
|
631 | return V8_VERSION >= 51 || !fails(function () {
|
632 | var array = [];
|
633 | var constructor = array.constructor = {};
|
634 | constructor[SPECIES] = function () {
|
635 | return { foo: 1 };
|
636 | };
|
637 | return array[METHOD_NAME](Boolean).foo !== 1;
|
638 | });
|
639 | };
|
640 |
|
641 |
|
642 | }),
|
643 |
|
644 | "2266":
|
645 | (function(module, exports, __webpack_require__) {
|
646 |
|
647 | var anObject = __webpack_require__("825a");
|
648 | var isArrayIteratorMethod = __webpack_require__("e95a");
|
649 | var toLength = __webpack_require__("50c4");
|
650 | var bind = __webpack_require__("0366");
|
651 | var getIteratorMethod = __webpack_require__("35a1");
|
652 | var iteratorClose = __webpack_require__("2a62");
|
653 |
|
654 | var Result = function (stopped, result) {
|
655 | this.stopped = stopped;
|
656 | this.result = result;
|
657 | };
|
658 |
|
659 | module.exports = function (iterable, unboundFunction, options) {
|
660 | var that = options && options.that;
|
661 | var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
662 | var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
663 | var INTERRUPTED = !!(options && options.INTERRUPTED);
|
664 | var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
|
665 | var iterator, iterFn, index, length, result, next, step;
|
666 |
|
667 | var stop = function (condition) {
|
668 | if (iterator) iteratorClose(iterator);
|
669 | return new Result(true, condition);
|
670 | };
|
671 |
|
672 | var callFn = function (value) {
|
673 | if (AS_ENTRIES) {
|
674 | anObject(value);
|
675 | return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
676 | } return INTERRUPTED ? fn(value, stop) : fn(value);
|
677 | };
|
678 |
|
679 | if (IS_ITERATOR) {
|
680 | iterator = iterable;
|
681 | } else {
|
682 | iterFn = getIteratorMethod(iterable);
|
683 | if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
|
684 |
|
685 | if (isArrayIteratorMethod(iterFn)) {
|
686 | for (index = 0, length = toLength(iterable.length); length > index; index++) {
|
687 | result = callFn(iterable[index]);
|
688 | if (result && result instanceof Result) return result;
|
689 | } return new Result(false);
|
690 | }
|
691 | iterator = iterFn.call(iterable);
|
692 | }
|
693 |
|
694 | next = iterator.next;
|
695 | while (!(step = next.call(iterator)).done) {
|
696 | try {
|
697 | result = callFn(step.value);
|
698 | } catch (error) {
|
699 | iteratorClose(iterator);
|
700 | throw error;
|
701 | }
|
702 | if (typeof result == 'object' && result && result instanceof Result) return result;
|
703 | } return new Result(false);
|
704 | };
|
705 |
|
706 |
|
707 | }),
|
708 |
|
709 | "23cb":
|
710 | (function(module, exports, __webpack_require__) {
|
711 |
|
712 | var toInteger = __webpack_require__("a691");
|
713 |
|
714 | var max = Math.max;
|
715 | var min = Math.min;
|
716 |
|
717 |
|
718 |
|
719 |
|
720 | module.exports = function (index, length) {
|
721 | var integer = toInteger(index);
|
722 | return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
723 | };
|
724 |
|
725 |
|
726 | }),
|
727 |
|
728 | "23e7":
|
729 | (function(module, exports, __webpack_require__) {
|
730 |
|
731 | var global = __webpack_require__("da84");
|
732 | var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
733 | var createNonEnumerableProperty = __webpack_require__("9112");
|
734 | var redefine = __webpack_require__("6eeb");
|
735 | var setGlobal = __webpack_require__("ce4e");
|
736 | var copyConstructorProperties = __webpack_require__("e893");
|
737 | var isForced = __webpack_require__("94ca");
|
738 |
|
739 |
|
740 |
|
741 |
|
742 |
|
743 |
|
744 |
|
745 |
|
746 |
|
747 |
|
748 |
|
749 |
|
750 |
|
751 |
|
752 |
|
753 | module.exports = function (options, source) {
|
754 | var TARGET = options.target;
|
755 | var GLOBAL = options.global;
|
756 | var STATIC = options.stat;
|
757 | var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
758 | if (GLOBAL) {
|
759 | target = global;
|
760 | } else if (STATIC) {
|
761 | target = global[TARGET] || setGlobal(TARGET, {});
|
762 | } else {
|
763 | target = (global[TARGET] || {}).prototype;
|
764 | }
|
765 | if (target) for (key in source) {
|
766 | sourceProperty = source[key];
|
767 | if (options.noTargetGet) {
|
768 | descriptor = getOwnPropertyDescriptor(target, key);
|
769 | targetProperty = descriptor && descriptor.value;
|
770 | } else targetProperty = target[key];
|
771 | FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
772 |
|
773 | if (!FORCED && targetProperty !== undefined) {
|
774 | if (typeof sourceProperty === typeof targetProperty) continue;
|
775 | copyConstructorProperties(sourceProperty, targetProperty);
|
776 | }
|
777 |
|
778 | if (options.sham || (targetProperty && targetProperty.sham)) {
|
779 | createNonEnumerableProperty(sourceProperty, 'sham', true);
|
780 | }
|
781 |
|
782 | redefine(target, key, sourceProperty, options);
|
783 | }
|
784 | };
|
785 |
|
786 |
|
787 | }),
|
788 |
|
789 | "241c":
|
790 | (function(module, exports, __webpack_require__) {
|
791 |
|
792 | var internalObjectKeys = __webpack_require__("ca84");
|
793 | var enumBugKeys = __webpack_require__("7839");
|
794 |
|
795 | var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
796 |
|
797 |
|
798 |
|
799 |
|
800 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
801 | return internalObjectKeys(O, hiddenKeys);
|
802 | };
|
803 |
|
804 |
|
805 | }),
|
806 |
|
807 | "25f0":
|
808 | (function(module, exports, __webpack_require__) {
|
809 |
|
810 | "use strict";
|
811 |
|
812 | var redefine = __webpack_require__("6eeb");
|
813 | var anObject = __webpack_require__("825a");
|
814 | var fails = __webpack_require__("d039");
|
815 | var flags = __webpack_require__("ad6d");
|
816 |
|
817 | var TO_STRING = 'toString';
|
818 | var RegExpPrototype = RegExp.prototype;
|
819 | var nativeToString = RegExpPrototype[TO_STRING];
|
820 |
|
821 | var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
822 |
|
823 | var INCORRECT_NAME = nativeToString.name != TO_STRING;
|
824 |
|
825 |
|
826 |
|
827 | if (NOT_GENERIC || INCORRECT_NAME) {
|
828 | redefine(RegExp.prototype, TO_STRING, function toString() {
|
829 | var R = anObject(this);
|
830 | var p = String(R.source);
|
831 | var rf = R.flags;
|
832 | var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
|
833 | return '/' + p + '/' + f;
|
834 | }, { unsafe: true });
|
835 | }
|
836 |
|
837 |
|
838 | }),
|
839 |
|
840 | "2626":
|
841 | (function(module, exports, __webpack_require__) {
|
842 |
|
843 | "use strict";
|
844 |
|
845 | var getBuiltIn = __webpack_require__("d066");
|
846 | var definePropertyModule = __webpack_require__("9bf2");
|
847 | var wellKnownSymbol = __webpack_require__("b622");
|
848 | var DESCRIPTORS = __webpack_require__("83ab");
|
849 |
|
850 | var SPECIES = wellKnownSymbol('species');
|
851 |
|
852 | module.exports = function (CONSTRUCTOR_NAME) {
|
853 | var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
854 | var defineProperty = definePropertyModule.f;
|
855 |
|
856 | if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
|
857 | defineProperty(Constructor, SPECIES, {
|
858 | configurable: true,
|
859 | get: function () { return this; }
|
860 | });
|
861 | }
|
862 | };
|
863 |
|
864 |
|
865 | }),
|
866 |
|
867 | "2a62":
|
868 | (function(module, exports, __webpack_require__) {
|
869 |
|
870 | var anObject = __webpack_require__("825a");
|
871 |
|
872 | module.exports = function (iterator) {
|
873 | var returnMethod = iterator['return'];
|
874 | if (returnMethod !== undefined) {
|
875 | return anObject(returnMethod.call(iterator)).value;
|
876 | }
|
877 | };
|
878 |
|
879 |
|
880 | }),
|
881 |
|
882 | "2cf4":
|
883 | (function(module, exports, __webpack_require__) {
|
884 |
|
885 | var global = __webpack_require__("da84");
|
886 | var fails = __webpack_require__("d039");
|
887 | var bind = __webpack_require__("0366");
|
888 | var html = __webpack_require__("1be4");
|
889 | var createElement = __webpack_require__("cc12");
|
890 | var IS_IOS = __webpack_require__("1cdc");
|
891 | var IS_NODE = __webpack_require__("605d");
|
892 |
|
893 | var location = global.location;
|
894 | var set = global.setImmediate;
|
895 | var clear = global.clearImmediate;
|
896 | var process = global.process;
|
897 | var MessageChannel = global.MessageChannel;
|
898 | var Dispatch = global.Dispatch;
|
899 | var counter = 0;
|
900 | var queue = {};
|
901 | var ONREADYSTATECHANGE = 'onreadystatechange';
|
902 | var defer, channel, port;
|
903 |
|
904 | var run = function (id) {
|
905 |
|
906 | if (queue.hasOwnProperty(id)) {
|
907 | var fn = queue[id];
|
908 | delete queue[id];
|
909 | fn();
|
910 | }
|
911 | };
|
912 |
|
913 | var runner = function (id) {
|
914 | return function () {
|
915 | run(id);
|
916 | };
|
917 | };
|
918 |
|
919 | var listener = function (event) {
|
920 | run(event.data);
|
921 | };
|
922 |
|
923 | var post = function (id) {
|
924 |
|
925 | global.postMessage(id + '', location.protocol + '//' + location.host);
|
926 | };
|
927 |
|
928 |
|
929 | if (!set || !clear) {
|
930 | set = function setImmediate(fn) {
|
931 | var args = [];
|
932 | var i = 1;
|
933 | while (arguments.length > i) args.push(arguments[i++]);
|
934 | queue[++counter] = function () {
|
935 |
|
936 | (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
|
937 | };
|
938 | defer(counter);
|
939 | return counter;
|
940 | };
|
941 | clear = function clearImmediate(id) {
|
942 | delete queue[id];
|
943 | };
|
944 |
|
945 | if (IS_NODE) {
|
946 | defer = function (id) {
|
947 | process.nextTick(runner(id));
|
948 | };
|
949 |
|
950 | } else if (Dispatch && Dispatch.now) {
|
951 | defer = function (id) {
|
952 | Dispatch.now(runner(id));
|
953 | };
|
954 |
|
955 |
|
956 | } else if (MessageChannel && !IS_IOS) {
|
957 | channel = new MessageChannel();
|
958 | port = channel.port2;
|
959 | channel.port1.onmessage = listener;
|
960 | defer = bind(port.postMessage, port, 1);
|
961 |
|
962 |
|
963 | } else if (
|
964 | global.addEventListener &&
|
965 | typeof postMessage == 'function' &&
|
966 | !global.importScripts &&
|
967 | location && location.protocol !== 'file:' &&
|
968 | !fails(post)
|
969 | ) {
|
970 | defer = post;
|
971 | global.addEventListener('message', listener, false);
|
972 |
|
973 | } else if (ONREADYSTATECHANGE in createElement('script')) {
|
974 | defer = function (id) {
|
975 | html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
976 | html.removeChild(this);
|
977 | run(id);
|
978 | };
|
979 | };
|
980 |
|
981 | } else {
|
982 | defer = function (id) {
|
983 | setTimeout(runner(id), 0);
|
984 | };
|
985 | }
|
986 | }
|
987 |
|
988 | module.exports = {
|
989 | set: set,
|
990 | clear: clear
|
991 | };
|
992 |
|
993 |
|
994 | /***/ }),
|
995 |
|
996 | /***/ "2d00":
|
997 | /***/ (function(module, exports, __webpack_require__) {
|
998 |
|
999 | var global = __webpack_require__("da84");
|
1000 | var userAgent = __webpack_require__("342f");
|
1001 |
|
1002 | var process = global.process;
|
1003 | var versions = process && process.versions;
|
1004 | var v8 = versions && versions.v8;
|
1005 | var match, version;
|
1006 |
|
1007 | if (v8) {
|
1008 | match = v8.split('.');
|
1009 | version = match[0] + match[1];
|
1010 | } else if (userAgent) {
|
1011 | match = userAgent.match(/Edge\/(\d+)/);
|
1012 | if (!match || match[1] >= 74) {
|
1013 | match = userAgent.match(/Chrome\/(\d+)/);
|
1014 | if (match) version = match[1];
|
1015 | }
|
1016 | }
|
1017 |
|
1018 | module.exports = version && +version;
|
1019 |
|
1020 |
|
1021 | }),
|
1022 |
|
1023 | "3410":
|
1024 | (function(module, exports, __webpack_require__) {
|
1025 |
|
1026 | var $ = __webpack_require__("23e7");
|
1027 | var fails = __webpack_require__("d039");
|
1028 | var toObject = __webpack_require__("7b0b");
|
1029 | var nativeGetPrototypeOf = __webpack_require__("e163");
|
1030 | var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
|
1031 |
|
1032 | var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });
|
1033 |
|
1034 |
|
1035 |
|
1036 | $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
|
1037 | getPrototypeOf: function getPrototypeOf(it) {
|
1038 | return nativeGetPrototypeOf(toObject(it));
|
1039 | }
|
1040 | });
|
1041 |
|
1042 |
|
1043 |
|
1044 | }),
|
1045 |
|
1046 | "342f":
|
1047 | (function(module, exports, __webpack_require__) {
|
1048 |
|
1049 | var getBuiltIn = __webpack_require__("d066");
|
1050 |
|
1051 | module.exports = getBuiltIn('navigator', 'userAgent') || '';
|
1052 |
|
1053 |
|
1054 | }),
|
1055 |
|
1056 | "35a1":
|
1057 | (function(module, exports, __webpack_require__) {
|
1058 |
|
1059 | var classof = __webpack_require__("f5df");
|
1060 | var Iterators = __webpack_require__("3f8c");
|
1061 | var wellKnownSymbol = __webpack_require__("b622");
|
1062 |
|
1063 | var ITERATOR = wellKnownSymbol('iterator');
|
1064 |
|
1065 | module.exports = function (it) {
|
1066 | if (it != undefined) return it[ITERATOR]
|
1067 | || it['@@iterator']
|
1068 | || Iterators[classof(it)];
|
1069 | };
|
1070 |
|
1071 |
|
1072 | }),
|
1073 |
|
1074 | "37e8":
|
1075 | (function(module, exports, __webpack_require__) {
|
1076 |
|
1077 | var DESCRIPTORS = __webpack_require__("83ab");
|
1078 | var definePropertyModule = __webpack_require__("9bf2");
|
1079 | var anObject = __webpack_require__("825a");
|
1080 | var objectKeys = __webpack_require__("df75");
|
1081 |
|
1082 |
|
1083 |
|
1084 |
|
1085 | module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
|
1086 | anObject(O);
|
1087 | var keys = objectKeys(Properties);
|
1088 | var length = keys.length;
|
1089 | var index = 0;
|
1090 | var key;
|
1091 | while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
|
1092 | return O;
|
1093 | };
|
1094 |
|
1095 |
|
1096 | }),
|
1097 |
|
1098 | "3bbe":
|
1099 | (function(module, exports, __webpack_require__) {
|
1100 |
|
1101 | var isObject = __webpack_require__("861d");
|
1102 |
|
1103 | module.exports = function (it) {
|
1104 | if (!isObject(it) && it !== null) {
|
1105 | throw TypeError("Can't set " + String(it) + ' as a prototype');
|
1106 | } return it;
|
1107 | };
|
1108 |
|
1109 |
|
1110 | }),
|
1111 |
|
1112 | "3ca3":
|
1113 | (function(module, exports, __webpack_require__) {
|
1114 |
|
1115 | "use strict";
|
1116 |
|
1117 | var charAt = __webpack_require__("6547").charAt;
|
1118 | var InternalStateModule = __webpack_require__("69f3");
|
1119 | var defineIterator = __webpack_require__("7dd0");
|
1120 |
|
1121 | var STRING_ITERATOR = 'String Iterator';
|
1122 | var setInternalState = InternalStateModule.set;
|
1123 | var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
|
1124 |
|
1125 |
|
1126 |
|
1127 | defineIterator(String, 'String', function (iterated) {
|
1128 | setInternalState(this, {
|
1129 | type: STRING_ITERATOR,
|
1130 | string: String(iterated),
|
1131 | index: 0
|
1132 | });
|
1133 |
|
1134 |
|
1135 | }, function next() {
|
1136 | var state = getInternalState(this);
|
1137 | var string = state.string;
|
1138 | var index = state.index;
|
1139 | var point;
|
1140 | if (index >= string.length) return { value: undefined, done: true };
|
1141 | point = charAt(string, index);
|
1142 | state.index += point.length;
|
1143 | return { value: point, done: false };
|
1144 | });
|
1145 |
|
1146 |
|
1147 | }),
|
1148 |
|
1149 | "3f8c":
|
1150 | (function(module, exports) {
|
1151 |
|
1152 | module.exports = {};
|
1153 |
|
1154 |
|
1155 | }),
|
1156 |
|
1157 | "428f":
|
1158 | (function(module, exports, __webpack_require__) {
|
1159 |
|
1160 | var global = __webpack_require__("da84");
|
1161 |
|
1162 | module.exports = global;
|
1163 |
|
1164 |
|
1165 | }),
|
1166 |
|
1167 | "44ad":
|
1168 | (function(module, exports, __webpack_require__) {
|
1169 |
|
1170 | var fails = __webpack_require__("d039");
|
1171 | var classof = __webpack_require__("c6b6");
|
1172 |
|
1173 | var split = ''.split;
|
1174 |
|
1175 |
|
1176 | module.exports = fails(function () {
|
1177 |
|
1178 |
|
1179 | return !Object('z').propertyIsEnumerable(0);
|
1180 | }) ? function (it) {
|
1181 | return classof(it) == 'String' ? split.call(it, '') : Object(it);
|
1182 | } : Object;
|
1183 |
|
1184 |
|
1185 | }),
|
1186 |
|
1187 | "44d2":
|
1188 | (function(module, exports, __webpack_require__) {
|
1189 |
|
1190 | var wellKnownSymbol = __webpack_require__("b622");
|
1191 | var create = __webpack_require__("7c73");
|
1192 | var definePropertyModule = __webpack_require__("9bf2");
|
1193 |
|
1194 | var UNSCOPABLES = wellKnownSymbol('unscopables');
|
1195 | var ArrayPrototype = Array.prototype;
|
1196 |
|
1197 |
|
1198 |
|
1199 | if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
1200 | definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
1201 | configurable: true,
|
1202 | value: create(null)
|
1203 | });
|
1204 | }
|
1205 |
|
1206 |
|
1207 | module.exports = function (key) {
|
1208 | ArrayPrototype[UNSCOPABLES][key] = true;
|
1209 | };
|
1210 |
|
1211 |
|
1212 | }),
|
1213 |
|
1214 | "44de":
|
1215 | (function(module, exports, __webpack_require__) {
|
1216 |
|
1217 | var global = __webpack_require__("da84");
|
1218 |
|
1219 | module.exports = function (a, b) {
|
1220 | var console = global.console;
|
1221 | if (console && console.error) {
|
1222 | arguments.length === 1 ? console.error(a) : console.error(a, b);
|
1223 | }
|
1224 | };
|
1225 |
|
1226 |
|
1227 | }),
|
1228 |
|
1229 | "44e7":
|
1230 | (function(module, exports, __webpack_require__) {
|
1231 |
|
1232 | var isObject = __webpack_require__("861d");
|
1233 | var classof = __webpack_require__("c6b6");
|
1234 | var wellKnownSymbol = __webpack_require__("b622");
|
1235 |
|
1236 | var MATCH = wellKnownSymbol('match');
|
1237 |
|
1238 |
|
1239 |
|
1240 | module.exports = function (it) {
|
1241 | var isRegExp;
|
1242 | return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
1243 | };
|
1244 |
|
1245 |
|
1246 | }),
|
1247 |
|
1248 | "466d":
|
1249 | (function(module, exports, __webpack_require__) {
|
1250 |
|
1251 | "use strict";
|
1252 |
|
1253 | var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
1254 | var anObject = __webpack_require__("825a");
|
1255 | var toLength = __webpack_require__("50c4");
|
1256 | var requireObjectCoercible = __webpack_require__("1d80");
|
1257 | var advanceStringIndex = __webpack_require__("8aa5");
|
1258 | var regExpExec = __webpack_require__("14c3");
|
1259 |
|
1260 |
|
1261 | fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
|
1262 | return [
|
1263 |
|
1264 |
|
1265 | function match(regexp) {
|
1266 | var O = requireObjectCoercible(this);
|
1267 | var matcher = regexp == undefined ? undefined : regexp[MATCH];
|
1268 | return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
|
1269 | },
|
1270 |
|
1271 |
|
1272 | function (regexp) {
|
1273 | var res = maybeCallNative(nativeMatch, regexp, this);
|
1274 | if (res.done) return res.value;
|
1275 |
|
1276 | var rx = anObject(regexp);
|
1277 | var S = String(this);
|
1278 |
|
1279 | if (!rx.global) return regExpExec(rx, S);
|
1280 |
|
1281 | var fullUnicode = rx.unicode;
|
1282 | rx.lastIndex = 0;
|
1283 | var A = [];
|
1284 | var n = 0;
|
1285 | var result;
|
1286 | while ((result = regExpExec(rx, S)) !== null) {
|
1287 | var matchStr = String(result[0]);
|
1288 | A[n] = matchStr;
|
1289 | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1290 | n++;
|
1291 | }
|
1292 | return n === 0 ? null : A;
|
1293 | }
|
1294 | ];
|
1295 | });
|
1296 |
|
1297 |
|
1298 | }),
|
1299 |
|
1300 | "4840":
|
1301 | (function(module, exports, __webpack_require__) {
|
1302 |
|
1303 | var anObject = __webpack_require__("825a");
|
1304 | var aFunction = __webpack_require__("1c0b");
|
1305 | var wellKnownSymbol = __webpack_require__("b622");
|
1306 |
|
1307 | var SPECIES = wellKnownSymbol('species');
|
1308 |
|
1309 |
|
1310 |
|
1311 | module.exports = function (O, defaultConstructor) {
|
1312 | var C = anObject(O).constructor;
|
1313 | var S;
|
1314 | return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
|
1315 | };
|
1316 |
|
1317 |
|
1318 | }),
|
1319 |
|
1320 | "4930":
|
1321 | (function(module, exports, __webpack_require__) {
|
1322 |
|
1323 | var IS_NODE = __webpack_require__("605d");
|
1324 | var V8_VERSION = __webpack_require__("2d00");
|
1325 | var fails = __webpack_require__("d039");
|
1326 |
|
1327 |
|
1328 | module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
1329 |
|
1330 | return !Symbol.sham &&
|
1331 |
|
1332 |
|
1333 | (IS_NODE ? V8_VERSION === 38 : V8_VERSION > 37 && V8_VERSION < 41);
|
1334 | });
|
1335 |
|
1336 |
|
1337 | }),
|
1338 |
|
1339 | "4ae1":
|
1340 | (function(module, exports, __webpack_require__) {
|
1341 |
|
1342 | var $ = __webpack_require__("23e7");
|
1343 | var getBuiltIn = __webpack_require__("d066");
|
1344 | var aFunction = __webpack_require__("1c0b");
|
1345 | var anObject = __webpack_require__("825a");
|
1346 | var isObject = __webpack_require__("861d");
|
1347 | var create = __webpack_require__("7c73");
|
1348 | var bind = __webpack_require__("0538");
|
1349 | var fails = __webpack_require__("d039");
|
1350 |
|
1351 | var nativeConstruct = getBuiltIn('Reflect', 'construct');
|
1352 |
|
1353 |
|
1354 |
|
1355 |
|
1356 |
|
1357 | var NEW_TARGET_BUG = fails(function () {
|
1358 | function F() { }
|
1359 | return !(nativeConstruct(function () { }, [], F) instanceof F);
|
1360 | });
|
1361 | var ARGS_BUG = !fails(function () {
|
1362 | nativeConstruct(function () { });
|
1363 | });
|
1364 | var FORCED = NEW_TARGET_BUG || ARGS_BUG;
|
1365 |
|
1366 | $({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
|
1367 | construct: function construct(Target, args /* , newTarget */) {
|
1368 | aFunction(Target);
|
1369 | anObject(args);
|
1370 | var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
|
1371 | if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
|
1372 | if (Target == newTarget) {
|
1373 |
|
1374 | switch (args.length) {
|
1375 | case 0: return new Target();
|
1376 | case 1: return new Target(args[0]);
|
1377 | case 2: return new Target(args[0], args[1]);
|
1378 | case 3: return new Target(args[0], args[1], args[2]);
|
1379 | case 4: return new Target(args[0], args[1], args[2], args[3]);
|
1380 | }
|
1381 |
|
1382 | var $args = [null];
|
1383 | $args.push.apply($args, args);
|
1384 | return new (bind.apply(Target, $args))();
|
1385 | }
|
1386 |
|
1387 | var proto = newTarget.prototype;
|
1388 | var instance = create(isObject(proto) ? proto : Object.prototype);
|
1389 | var result = Function.apply.call(Target, instance, args);
|
1390 | return isObject(result) ? result : instance;
|
1391 | }
|
1392 | });
|
1393 |
|
1394 |
|
1395 | }),
|
1396 |
|
1397 | "4d64":
|
1398 | (function(module, exports, __webpack_require__) {
|
1399 |
|
1400 | var toIndexedObject = __webpack_require__("fc6a");
|
1401 | var toLength = __webpack_require__("50c4");
|
1402 | var toAbsoluteIndex = __webpack_require__("23cb");
|
1403 |
|
1404 |
|
1405 | var createMethod = function (IS_INCLUDES) {
|
1406 | return function ($this, el, fromIndex) {
|
1407 | var O = toIndexedObject($this);
|
1408 | var length = toLength(O.length);
|
1409 | var index = toAbsoluteIndex(fromIndex, length);
|
1410 | var value;
|
1411 |
|
1412 |
|
1413 | if (IS_INCLUDES && el != el) while (length > index) {
|
1414 | value = O[index++];
|
1415 |
|
1416 | if (value != value) return true;
|
1417 |
|
1418 | } else for (;length > index; index++) {
|
1419 | if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
1420 | } return !IS_INCLUDES && -1;
|
1421 | };
|
1422 | };
|
1423 |
|
1424 | module.exports = {
|
1425 |
|
1426 |
|
1427 | includes: createMethod(true),
|
1428 |
|
1429 |
|
1430 | indexOf: createMethod(false)
|
1431 | };
|
1432 |
|
1433 |
|
1434 | }),
|
1435 |
|
1436 | "4de4":
|
1437 | (function(module, exports, __webpack_require__) {
|
1438 |
|
1439 | "use strict";
|
1440 |
|
1441 | var $ = __webpack_require__("23e7");
|
1442 | var $filter = __webpack_require__("b727").filter;
|
1443 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
1444 |
|
1445 | var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
|
1446 |
|
1447 |
|
1448 |
|
1449 |
|
1450 | $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
1451 | filter: function filter(callbackfn /* , thisArg */) {
|
1452 | return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1453 | }
|
1454 | });
|
1455 |
|
1456 |
|
1457 | }),
|
1458 |
|
1459 | "4df4":
|
1460 | (function(module, exports, __webpack_require__) {
|
1461 |
|
1462 | "use strict";
|
1463 |
|
1464 | var bind = __webpack_require__("0366");
|
1465 | var toObject = __webpack_require__("7b0b");
|
1466 | var callWithSafeIterationClosing = __webpack_require__("9bdd");
|
1467 | var isArrayIteratorMethod = __webpack_require__("e95a");
|
1468 | var toLength = __webpack_require__("50c4");
|
1469 | var createProperty = __webpack_require__("8418");
|
1470 | var getIteratorMethod = __webpack_require__("35a1");
|
1471 |
|
1472 |
|
1473 |
|
1474 | module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
|
1475 | var O = toObject(arrayLike);
|
1476 | var C = typeof this == 'function' ? this : Array;
|
1477 | var argumentsLength = arguments.length;
|
1478 | var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
1479 | var mapping = mapfn !== undefined;
|
1480 | var iteratorMethod = getIteratorMethod(O);
|
1481 | var index = 0;
|
1482 | var length, result, step, iterator, next, value;
|
1483 | if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
|
1484 |
|
1485 | if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
|
1486 | iterator = iteratorMethod.call(O);
|
1487 | next = iterator.next;
|
1488 | result = new C();
|
1489 | for (;!(step = next.call(iterator)).done; index++) {
|
1490 | value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
1491 | createProperty(result, index, value);
|
1492 | }
|
1493 | } else {
|
1494 | length = toLength(O.length);
|
1495 | result = new C(length);
|
1496 | for (;length > index; index++) {
|
1497 | value = mapping ? mapfn(O[index], index) : O[index];
|
1498 | createProperty(result, index, value);
|
1499 | }
|
1500 | }
|
1501 | result.length = index;
|
1502 | return result;
|
1503 | };
|
1504 |
|
1505 |
|
1506 | }),
|
1507 |
|
1508 | "50c4":
|
1509 | (function(module, exports, __webpack_require__) {
|
1510 |
|
1511 | var toInteger = __webpack_require__("a691");
|
1512 |
|
1513 | var min = Math.min;
|
1514 |
|
1515 |
|
1516 |
|
1517 | module.exports = function (argument) {
|
1518 | return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0;
|
1519 | };
|
1520 |
|
1521 |
|
1522 | }),
|
1523 |
|
1524 | "5135":
|
1525 | (function(module, exports) {
|
1526 |
|
1527 | var hasOwnProperty = {}.hasOwnProperty;
|
1528 |
|
1529 | module.exports = function (it, key) {
|
1530 | return hasOwnProperty.call(it, key);
|
1531 | };
|
1532 |
|
1533 |
|
1534 | }),
|
1535 |
|
1536 | "5319":
|
1537 | (function(module, exports, __webpack_require__) {
|
1538 |
|
1539 | "use strict";
|
1540 |
|
1541 | var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
|
1542 | var anObject = __webpack_require__("825a");
|
1543 | var toLength = __webpack_require__("50c4");
|
1544 | var toInteger = __webpack_require__("a691");
|
1545 | var requireObjectCoercible = __webpack_require__("1d80");
|
1546 | var advanceStringIndex = __webpack_require__("8aa5");
|
1547 | var getSubstitution = __webpack_require__("0cb2");
|
1548 | var regExpExec = __webpack_require__("14c3");
|
1549 |
|
1550 | var max = Math.max;
|
1551 | var min = Math.min;
|
1552 |
|
1553 | var maybeToString = function (it) {
|
1554 | return it === undefined ? it : String(it);
|
1555 | };
|
1556 |
|
1557 |
|
1558 | fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
|
1559 | var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
1560 | var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
1561 | var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
1562 |
|
1563 | return [
|
1564 |
|
1565 |
|
1566 | function replace(searchValue, replaceValue) {
|
1567 | var O = requireObjectCoercible(this);
|
1568 | var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
|
1569 | return replacer !== undefined
|
1570 | ? replacer.call(searchValue, O, replaceValue)
|
1571 | : nativeReplace.call(String(O), searchValue, replaceValue);
|
1572 | },
|
1573 |
|
1574 |
|
1575 | function (regexp, replaceValue) {
|
1576 | if (
|
1577 | (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
|
1578 | (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
|
1579 | ) {
|
1580 | var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
|
1581 | if (res.done) return res.value;
|
1582 | }
|
1583 |
|
1584 | var rx = anObject(regexp);
|
1585 | var S = String(this);
|
1586 |
|
1587 | var functionalReplace = typeof replaceValue === 'function';
|
1588 | if (!functionalReplace) replaceValue = String(replaceValue);
|
1589 |
|
1590 | var global = rx.global;
|
1591 | if (global) {
|
1592 | var fullUnicode = rx.unicode;
|
1593 | rx.lastIndex = 0;
|
1594 | }
|
1595 | var results = [];
|
1596 | while (true) {
|
1597 | var result = regExpExec(rx, S);
|
1598 | if (result === null) break;
|
1599 |
|
1600 | results.push(result);
|
1601 | if (!global) break;
|
1602 |
|
1603 | var matchStr = String(result[0]);
|
1604 | if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1605 | }
|
1606 |
|
1607 | var accumulatedResult = '';
|
1608 | var nextSourcePosition = 0;
|
1609 | for (var i = 0; i < results.length; i++) {
|
1610 | result = results[i];
|
1611 |
|
1612 | var matched = String(result[0]);
|
1613 | var position = max(min(toInteger(result.index), S.length), 0);
|
1614 | var captures = [];
|
1615 |
|
1616 |
|
1617 |
|
1618 |
|
1619 |
|
1620 | for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
1621 | var namedCaptures = result.groups;
|
1622 | if (functionalReplace) {
|
1623 | var replacerArgs = [matched].concat(captures, position, S);
|
1624 | if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
1625 | var replacement = String(replaceValue.apply(undefined, replacerArgs));
|
1626 | } else {
|
1627 | replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
1628 | }
|
1629 | if (position >= nextSourcePosition) {
|
1630 | accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
1631 | nextSourcePosition = position + matched.length;
|
1632 | }
|
1633 | }
|
1634 | return accumulatedResult + S.slice(nextSourcePosition);
|
1635 | }
|
1636 | ];
|
1637 | });
|
1638 |
|
1639 |
|
1640 | }),
|
1641 |
|
1642 | "5692":
|
1643 | (function(module, exports, __webpack_require__) {
|
1644 |
|
1645 | var IS_PURE = __webpack_require__("c430");
|
1646 | var store = __webpack_require__("c6cd");
|
1647 |
|
1648 | (module.exports = function (key, value) {
|
1649 | return store[key] || (store[key] = value !== undefined ? value : {});
|
1650 | })('versions', []).push({
|
1651 | version: '3.10.1',
|
1652 | mode: IS_PURE ? 'pure' : 'global',
|
1653 | copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
1654 | });
|
1655 |
|
1656 |
|
1657 | }),
|
1658 |
|
1659 | "56ef":
|
1660 | (function(module, exports, __webpack_require__) {
|
1661 |
|
1662 | var getBuiltIn = __webpack_require__("d066");
|
1663 | var getOwnPropertyNamesModule = __webpack_require__("241c");
|
1664 | var getOwnPropertySymbolsModule = __webpack_require__("7418");
|
1665 | var anObject = __webpack_require__("825a");
|
1666 |
|
1667 |
|
1668 | module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
1669 | var keys = getOwnPropertyNamesModule.f(anObject(it));
|
1670 | var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
1671 | return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
|
1672 | };
|
1673 |
|
1674 |
|
1675 | }),
|
1676 |
|
1677 | "5c6c":
|
1678 | (function(module, exports) {
|
1679 |
|
1680 | module.exports = function (bitmap, value) {
|
1681 | return {
|
1682 | enumerable: !(bitmap & 1),
|
1683 | configurable: !(bitmap & 2),
|
1684 | writable: !(bitmap & 4),
|
1685 | value: value
|
1686 | };
|
1687 | };
|
1688 |
|
1689 |
|
1690 | }),
|
1691 |
|
1692 | "605d":
|
1693 | (function(module, exports, __webpack_require__) {
|
1694 |
|
1695 | var classof = __webpack_require__("c6b6");
|
1696 | var global = __webpack_require__("da84");
|
1697 |
|
1698 | module.exports = classof(global.process) == 'process';
|
1699 |
|
1700 |
|
1701 | }),
|
1702 |
|
1703 | "6547":
|
1704 | (function(module, exports, __webpack_require__) {
|
1705 |
|
1706 | var toInteger = __webpack_require__("a691");
|
1707 | var requireObjectCoercible = __webpack_require__("1d80");
|
1708 |
|
1709 |
|
1710 | var createMethod = function (CONVERT_TO_STRING) {
|
1711 | return function ($this, pos) {
|
1712 | var S = String(requireObjectCoercible($this));
|
1713 | var position = toInteger(pos);
|
1714 | var size = S.length;
|
1715 | var first, second;
|
1716 | if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
1717 | first = S.charCodeAt(position);
|
1718 | return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
1719 | || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
|
1720 | ? CONVERT_TO_STRING ? S.charAt(position) : first
|
1721 | : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
1722 | };
|
1723 | };
|
1724 |
|
1725 | module.exports = {
|
1726 |
|
1727 |
|
1728 | codeAt: createMethod(false),
|
1729 |
|
1730 |
|
1731 | charAt: createMethod(true)
|
1732 | };
|
1733 |
|
1734 |
|
1735 | }),
|
1736 |
|
1737 | "65f0":
|
1738 | (function(module, exports, __webpack_require__) {
|
1739 |
|
1740 | var isObject = __webpack_require__("861d");
|
1741 | var isArray = __webpack_require__("e8b5");
|
1742 | var wellKnownSymbol = __webpack_require__("b622");
|
1743 |
|
1744 | var SPECIES = wellKnownSymbol('species');
|
1745 |
|
1746 |
|
1747 |
|
1748 | module.exports = function (originalArray, length) {
|
1749 | var C;
|
1750 | if (isArray(originalArray)) {
|
1751 | C = originalArray.constructor;
|
1752 |
|
1753 | if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
|
1754 | else if (isObject(C)) {
|
1755 | C = C[SPECIES];
|
1756 | if (C === null) C = undefined;
|
1757 | }
|
1758 | } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
|
1759 | };
|
1760 |
|
1761 |
|
1762 | }),
|
1763 |
|
1764 | "69f3":
|
1765 | (function(module, exports, __webpack_require__) {
|
1766 |
|
1767 | var NATIVE_WEAK_MAP = __webpack_require__("7f9a");
|
1768 | var global = __webpack_require__("da84");
|
1769 | var isObject = __webpack_require__("861d");
|
1770 | var createNonEnumerableProperty = __webpack_require__("9112");
|
1771 | var objectHas = __webpack_require__("5135");
|
1772 | var shared = __webpack_require__("c6cd");
|
1773 | var sharedKey = __webpack_require__("f772");
|
1774 | var hiddenKeys = __webpack_require__("d012");
|
1775 |
|
1776 | var WeakMap = global.WeakMap;
|
1777 | var set, get, has;
|
1778 |
|
1779 | var enforce = function (it) {
|
1780 | return has(it) ? get(it) : set(it, {});
|
1781 | };
|
1782 |
|
1783 | var getterFor = function (TYPE) {
|
1784 | return function (it) {
|
1785 | var state;
|
1786 | if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
1787 | throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
1788 | } return state;
|
1789 | };
|
1790 | };
|
1791 |
|
1792 | if (NATIVE_WEAK_MAP) {
|
1793 | var store = shared.state || (shared.state = new WeakMap());
|
1794 | var wmget = store.get;
|
1795 | var wmhas = store.has;
|
1796 | var wmset = store.set;
|
1797 | set = function (it, metadata) {
|
1798 | metadata.facade = it;
|
1799 | wmset.call(store, it, metadata);
|
1800 | return metadata;
|
1801 | };
|
1802 | get = function (it) {
|
1803 | return wmget.call(store, it) || {};
|
1804 | };
|
1805 | has = function (it) {
|
1806 | return wmhas.call(store, it);
|
1807 | };
|
1808 | } else {
|
1809 | var STATE = sharedKey('state');
|
1810 | hiddenKeys[STATE] = true;
|
1811 | set = function (it, metadata) {
|
1812 | metadata.facade = it;
|
1813 | createNonEnumerableProperty(it, STATE, metadata);
|
1814 | return metadata;
|
1815 | };
|
1816 | get = function (it) {
|
1817 | return objectHas(it, STATE) ? it[STATE] : {};
|
1818 | };
|
1819 | has = function (it) {
|
1820 | return objectHas(it, STATE);
|
1821 | };
|
1822 | }
|
1823 |
|
1824 | module.exports = {
|
1825 | set: set,
|
1826 | get: get,
|
1827 | has: has,
|
1828 | enforce: enforce,
|
1829 | getterFor: getterFor
|
1830 | };
|
1831 |
|
1832 |
|
1833 | /***/ }),
|
1834 |
|
1835 | /***/ "6eeb":
|
1836 | /***/ (function(module, exports, __webpack_require__) {
|
1837 |
|
1838 | var global = __webpack_require__("da84");
|
1839 | var createNonEnumerableProperty = __webpack_require__("9112");
|
1840 | var has = __webpack_require__("5135");
|
1841 | var setGlobal = __webpack_require__("ce4e");
|
1842 | var inspectSource = __webpack_require__("8925");
|
1843 | var InternalStateModule = __webpack_require__("69f3");
|
1844 |
|
1845 | var getInternalState = InternalStateModule.get;
|
1846 | var enforceInternalState = InternalStateModule.enforce;
|
1847 | var TEMPLATE = String(String).split('String');
|
1848 |
|
1849 | (module.exports = function (O, key, value, options) {
|
1850 | var unsafe = options ? !!options.unsafe : false;
|
1851 | var simple = options ? !!options.enumerable : false;
|
1852 | var noTargetGet = options ? !!options.noTargetGet : false;
|
1853 | var state;
|
1854 | if (typeof value == 'function') {
|
1855 | if (typeof key == 'string' && !has(value, 'name')) {
|
1856 | createNonEnumerableProperty(value, 'name', key);
|
1857 | }
|
1858 | state = enforceInternalState(value);
|
1859 | if (!state.source) {
|
1860 | state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
1861 | }
|
1862 | }
|
1863 | if (O === global) {
|
1864 | if (simple) O[key] = value;
|
1865 | else setGlobal(key, value);
|
1866 | return;
|
1867 | } else if (!unsafe) {
|
1868 | delete O[key];
|
1869 | } else if (!noTargetGet && O[key]) {
|
1870 | simple = true;
|
1871 | }
|
1872 | if (simple) O[key] = value;
|
1873 | else createNonEnumerableProperty(O, key, value);
|
1874 |
|
1875 | })(Function.prototype, 'toString', function toString() {
|
1876 | return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
1877 | });
|
1878 |
|
1879 |
|
1880 | }),
|
1881 |
|
1882 | "7037":
|
1883 | (function(module, exports, __webpack_require__) {
|
1884 |
|
1885 | __webpack_require__("a4d3");
|
1886 |
|
1887 | __webpack_require__("e01a");
|
1888 |
|
1889 | __webpack_require__("d3b7");
|
1890 |
|
1891 | __webpack_require__("d28b");
|
1892 |
|
1893 | __webpack_require__("e260");
|
1894 |
|
1895 | __webpack_require__("3ca3");
|
1896 |
|
1897 | __webpack_require__("ddb0");
|
1898 |
|
1899 | function _typeof(obj) {
|
1900 | "@babel/helpers - typeof";
|
1901 |
|
1902 | if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
1903 | module.exports = _typeof = function _typeof(obj) {
|
1904 | return typeof obj;
|
1905 | };
|
1906 |
|
1907 | module.exports["default"] = module.exports, module.exports.__esModule = true;
|
1908 | } else {
|
1909 | module.exports = _typeof = function _typeof(obj) {
|
1910 | return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
1911 | };
|
1912 |
|
1913 | module.exports["default"] = module.exports, module.exports.__esModule = true;
|
1914 | }
|
1915 |
|
1916 | return _typeof(obj);
|
1917 | }
|
1918 |
|
1919 | module.exports = _typeof;
|
1920 | module.exports["default"] = module.exports, module.exports.__esModule = true;
|
1921 |
|
1922 | }),
|
1923 |
|
1924 | "7418":
|
1925 | (function(module, exports) {
|
1926 |
|
1927 |
|
1928 | exports.f = Object.getOwnPropertySymbols;
|
1929 |
|
1930 |
|
1931 | }),
|
1932 |
|
1933 | "746f":
|
1934 | (function(module, exports, __webpack_require__) {
|
1935 |
|
1936 | var path = __webpack_require__("428f");
|
1937 | var has = __webpack_require__("5135");
|
1938 | var wrappedWellKnownSymbolModule = __webpack_require__("e538");
|
1939 | var defineProperty = __webpack_require__("9bf2").f;
|
1940 |
|
1941 | module.exports = function (NAME) {
|
1942 | var Symbol = path.Symbol || (path.Symbol = {});
|
1943 | if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
|
1944 | value: wrappedWellKnownSymbolModule.f(NAME)
|
1945 | });
|
1946 | };
|
1947 |
|
1948 |
|
1949 | }),
|
1950 |
|
1951 | "7839":
|
1952 | (function(module, exports) {
|
1953 |
|
1954 |
|
1955 | module.exports = [
|
1956 | 'constructor',
|
1957 | 'hasOwnProperty',
|
1958 | 'isPrototypeOf',
|
1959 | 'propertyIsEnumerable',
|
1960 | 'toLocaleString',
|
1961 | 'toString',
|
1962 | 'valueOf'
|
1963 | ];
|
1964 |
|
1965 |
|
1966 | }),
|
1967 |
|
1968 | "7b0b":
|
1969 | (function(module, exports, __webpack_require__) {
|
1970 |
|
1971 | var requireObjectCoercible = __webpack_require__("1d80");
|
1972 |
|
1973 |
|
1974 |
|
1975 | module.exports = function (argument) {
|
1976 | return Object(requireObjectCoercible(argument));
|
1977 | };
|
1978 |
|
1979 |
|
1980 | }),
|
1981 |
|
1982 | "7c73":
|
1983 | (function(module, exports, __webpack_require__) {
|
1984 |
|
1985 | var anObject = __webpack_require__("825a");
|
1986 | var defineProperties = __webpack_require__("37e8");
|
1987 | var enumBugKeys = __webpack_require__("7839");
|
1988 | var hiddenKeys = __webpack_require__("d012");
|
1989 | var html = __webpack_require__("1be4");
|
1990 | var documentCreateElement = __webpack_require__("cc12");
|
1991 | var sharedKey = __webpack_require__("f772");
|
1992 |
|
1993 | var GT = '>';
|
1994 | var LT = '<';
|
1995 | var PROTOTYPE = 'prototype';
|
1996 | var SCRIPT = 'script';
|
1997 | var IE_PROTO = sharedKey('IE_PROTO');
|
1998 |
|
1999 | var EmptyConstructor = function () { };
|
2000 |
|
2001 | var scriptTag = function (content) {
|
2002 | return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
2003 | };
|
2004 |
|
2005 |
|
2006 | var NullProtoObjectViaActiveX = function (activeXDocument) {
|
2007 | activeXDocument.write(scriptTag(''));
|
2008 | activeXDocument.close();
|
2009 | var temp = activeXDocument.parentWindow.Object;
|
2010 | activeXDocument = null;
|
2011 | return temp;
|
2012 | };
|
2013 |
|
2014 |
|
2015 | var NullProtoObjectViaIFrame = function () {
|
2016 |
|
2017 | var iframe = documentCreateElement('iframe');
|
2018 | var JS = 'java' + SCRIPT + ':';
|
2019 | var iframeDocument;
|
2020 | iframe.style.display = 'none';
|
2021 | html.appendChild(iframe);
|
2022 |
|
2023 | iframe.src = String(JS);
|
2024 | iframeDocument = iframe.contentWindow.document;
|
2025 | iframeDocument.open();
|
2026 | iframeDocument.write(scriptTag('document.F=Object'));
|
2027 | iframeDocument.close();
|
2028 | return iframeDocument.F;
|
2029 | };
|
2030 |
|
2031 |
|
2032 |
|
2033 |
|
2034 |
|
2035 |
|
2036 | var activeXDocument;
|
2037 | var NullProtoObject = function () {
|
2038 | try {
|
2039 |
|
2040 | activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
2041 | } catch (error) { }
|
2042 | NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
2043 | var length = enumBugKeys.length;
|
2044 | while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
2045 | return NullProtoObject();
|
2046 | };
|
2047 |
|
2048 | hiddenKeys[IE_PROTO] = true;
|
2049 |
|
2050 |
|
2051 |
|
2052 | module.exports = Object.create || function create(O, Properties) {
|
2053 | var result;
|
2054 | if (O !== null) {
|
2055 | EmptyConstructor[PROTOTYPE] = anObject(O);
|
2056 | result = new EmptyConstructor();
|
2057 | EmptyConstructor[PROTOTYPE] = null;
|
2058 |
|
2059 | result[IE_PROTO] = O;
|
2060 | } else result = NullProtoObject();
|
2061 | return Properties === undefined ? result : defineProperties(result, Properties);
|
2062 | };
|
2063 |
|
2064 |
|
2065 | }),
|
2066 |
|
2067 | "7db0":
|
2068 | (function(module, exports, __webpack_require__) {
|
2069 |
|
2070 | "use strict";
|
2071 |
|
2072 | var $ = __webpack_require__("23e7");
|
2073 | var $find = __webpack_require__("b727").find;
|
2074 | var addToUnscopables = __webpack_require__("44d2");
|
2075 |
|
2076 | var FIND = 'find';
|
2077 | var SKIPS_HOLES = true;
|
2078 |
|
2079 |
|
2080 | if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
2081 |
|
2082 |
|
2083 |
|
2084 | $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
2085 | find: function find(callbackfn /* , that = undefined */) {
|
2086 | return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
2087 | }
|
2088 | });
|
2089 |
|
2090 |
|
2091 | addToUnscopables(FIND);
|
2092 |
|
2093 |
|
2094 | }),
|
2095 |
|
2096 | "7dd0":
|
2097 | (function(module, exports, __webpack_require__) {
|
2098 |
|
2099 | "use strict";
|
2100 |
|
2101 | var $ = __webpack_require__("23e7");
|
2102 | var createIteratorConstructor = __webpack_require__("9ed3");
|
2103 | var getPrototypeOf = __webpack_require__("e163");
|
2104 | var setPrototypeOf = __webpack_require__("d2bb");
|
2105 | var setToStringTag = __webpack_require__("d44e");
|
2106 | var createNonEnumerableProperty = __webpack_require__("9112");
|
2107 | var redefine = __webpack_require__("6eeb");
|
2108 | var wellKnownSymbol = __webpack_require__("b622");
|
2109 | var IS_PURE = __webpack_require__("c430");
|
2110 | var Iterators = __webpack_require__("3f8c");
|
2111 | var IteratorsCore = __webpack_require__("ae93");
|
2112 |
|
2113 | var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
2114 | var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
2115 | var ITERATOR = wellKnownSymbol('iterator');
|
2116 | var KEYS = 'keys';
|
2117 | var VALUES = 'values';
|
2118 | var ENTRIES = 'entries';
|
2119 |
|
2120 | var returnThis = function () { return this; };
|
2121 |
|
2122 | module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
2123 | createIteratorConstructor(IteratorConstructor, NAME, next);
|
2124 |
|
2125 | var getIterationMethod = function (KIND) {
|
2126 | if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
2127 | if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
2128 | switch (KIND) {
|
2129 | case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
2130 | case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
2131 | case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
2132 | } return function () { return new IteratorConstructor(this); };
|
2133 | };
|
2134 |
|
2135 | var TO_STRING_TAG = NAME + ' Iterator';
|
2136 | var INCORRECT_VALUES_NAME = false;
|
2137 | var IterablePrototype = Iterable.prototype;
|
2138 | var nativeIterator = IterablePrototype[ITERATOR]
|
2139 | || IterablePrototype['@@iterator']
|
2140 | || DEFAULT && IterablePrototype[DEFAULT];
|
2141 | var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
2142 | var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
2143 | var CurrentIteratorPrototype, methods, KEY;
|
2144 |
|
2145 |
|
2146 | if (anyNativeIterator) {
|
2147 | CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
2148 | if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
2149 | if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
2150 | if (setPrototypeOf) {
|
2151 | setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
2152 | } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {
|
2153 | createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
|
2154 | }
|
2155 | }
|
2156 |
|
2157 | setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
|
2158 | if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
|
2159 | }
|
2160 | }
|
2161 |
|
2162 |
|
2163 | if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
2164 | INCORRECT_VALUES_NAME = true;
|
2165 | defaultIterator = function values() { return nativeIterator.call(this); };
|
2166 | }
|
2167 |
|
2168 |
|
2169 | if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
|
2170 | createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
|
2171 | }
|
2172 | Iterators[NAME] = defaultIterator;
|
2173 |
|
2174 |
|
2175 | if (DEFAULT) {
|
2176 | methods = {
|
2177 | values: getIterationMethod(VALUES),
|
2178 | keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
2179 | entries: getIterationMethod(ENTRIES)
|
2180 | };
|
2181 | if (FORCED) for (KEY in methods) {
|
2182 | if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
2183 | redefine(IterablePrototype, KEY, methods[KEY]);
|
2184 | }
|
2185 | } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
2186 | }
|
2187 |
|
2188 | return methods;
|
2189 | };
|
2190 |
|
2191 |
|
2192 | }),
|
2193 |
|
2194 | "7f9a":
|
2195 | (function(module, exports, __webpack_require__) {
|
2196 |
|
2197 | var global = __webpack_require__("da84");
|
2198 | var inspectSource = __webpack_require__("8925");
|
2199 |
|
2200 | var WeakMap = global.WeakMap;
|
2201 |
|
2202 | module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
|
2203 |
|
2204 |
|
2205 | }),
|
2206 |
|
2207 | "825a":
|
2208 | (function(module, exports, __webpack_require__) {
|
2209 |
|
2210 | var isObject = __webpack_require__("861d");
|
2211 |
|
2212 | module.exports = function (it) {
|
2213 | if (!isObject(it)) {
|
2214 | throw TypeError(String(it) + ' is not an object');
|
2215 | } return it;
|
2216 | };
|
2217 |
|
2218 |
|
2219 | }),
|
2220 |
|
2221 | "83ab":
|
2222 | (function(module, exports, __webpack_require__) {
|
2223 |
|
2224 | var fails = __webpack_require__("d039");
|
2225 |
|
2226 |
|
2227 | module.exports = !fails(function () {
|
2228 |
|
2229 | return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
2230 | });
|
2231 |
|
2232 |
|
2233 | }),
|
2234 |
|
2235 | "8418":
|
2236 | (function(module, exports, __webpack_require__) {
|
2237 |
|
2238 | "use strict";
|
2239 |
|
2240 | var toPrimitive = __webpack_require__("c04e");
|
2241 | var definePropertyModule = __webpack_require__("9bf2");
|
2242 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
2243 |
|
2244 | module.exports = function (object, key, value) {
|
2245 | var propertyKey = toPrimitive(key);
|
2246 | if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
|
2247 | else object[propertyKey] = value;
|
2248 | };
|
2249 |
|
2250 |
|
2251 | }),
|
2252 |
|
2253 | "861d":
|
2254 | (function(module, exports) {
|
2255 |
|
2256 | module.exports = function (it) {
|
2257 | return typeof it === 'object' ? it !== null : typeof it === 'function';
|
2258 | };
|
2259 |
|
2260 |
|
2261 | }),
|
2262 |
|
2263 | "8875":
|
2264 | (function(module, exports, __webpack_require__) {
|
2265 |
|
2266 | var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
2267 |
|
2268 |
|
2269 |
|
2270 |
|
2271 |
|
2272 | (function (root, factory) {
|
2273 | if (true) {
|
2274 | !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
2275 | __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
2276 | (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
2277 | __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
2278 | } else {}
|
2279 | }(typeof self !== 'undefined' ? self : this, function () {
|
2280 | function getCurrentScript () {
|
2281 | var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
|
2282 |
|
2283 | if (!descriptor && 'currentScript' in document && document.currentScript) {
|
2284 | return document.currentScript
|
2285 | }
|
2286 |
|
2287 |
|
2288 | if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
|
2289 | return document.currentScript
|
2290 | }
|
2291 |
|
2292 |
|
2293 |
|
2294 | try {
|
2295 | throw new Error();
|
2296 | }
|
2297 | catch (err) {
|
2298 |
|
2299 | var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
|
2300 | ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
|
2301 | stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
|
2302 | scriptLocation = (stackDetails && stackDetails[1]) || false,
|
2303 | line = (stackDetails && stackDetails[2]) || false,
|
2304 | currentLocation = document.location.href.replace(document.location.hash, ''),
|
2305 | pageSource,
|
2306 | inlineScriptSourceRegExp,
|
2307 | inlineScriptSource,
|
2308 | scripts = document.getElementsByTagName('script');
|
2309 |
|
2310 | if (scriptLocation === currentLocation) {
|
2311 | pageSource = document.documentElement.outerHTML;
|
2312 | inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
|
2313 | inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
|
2314 | }
|
2315 |
|
2316 | for (var i = 0; i < scripts.length; i++) {
|
2317 |
|
2318 | if (scripts[i].readyState === 'interactive') {
|
2319 | return scripts[i];
|
2320 | }
|
2321 |
|
2322 |
|
2323 | if (scripts[i].src === scriptLocation) {
|
2324 | return scripts[i];
|
2325 | }
|
2326 |
|
2327 |
|
2328 | if (
|
2329 | scriptLocation === currentLocation &&
|
2330 | scripts[i].innerHTML &&
|
2331 | scripts[i].innerHTML.trim() === inlineScriptSource
|
2332 | ) {
|
2333 | return scripts[i];
|
2334 | }
|
2335 | }
|
2336 |
|
2337 |
|
2338 | return null;
|
2339 | }
|
2340 | };
|
2341 |
|
2342 | return getCurrentScript
|
2343 | }));
|
2344 |
|
2345 |
|
2346 | }),
|
2347 |
|
2348 | "8925":
|
2349 | (function(module, exports, __webpack_require__) {
|
2350 |
|
2351 | var store = __webpack_require__("c6cd");
|
2352 |
|
2353 | var functionToString = Function.toString;
|
2354 |
|
2355 |
|
2356 | if (typeof store.inspectSource != 'function') {
|
2357 | store.inspectSource = function (it) {
|
2358 | return functionToString.call(it);
|
2359 | };
|
2360 | }
|
2361 |
|
2362 | module.exports = store.inspectSource;
|
2363 |
|
2364 |
|
2365 | }),
|
2366 |
|
2367 | "8aa5":
|
2368 | (function(module, exports, __webpack_require__) {
|
2369 |
|
2370 | "use strict";
|
2371 |
|
2372 | var charAt = __webpack_require__("6547").charAt;
|
2373 |
|
2374 |
|
2375 |
|
2376 | module.exports = function (S, index, unicode) {
|
2377 | return index + (unicode ? charAt(S, index).length : 1);
|
2378 | };
|
2379 |
|
2380 |
|
2381 | }),
|
2382 |
|
2383 | "8bbf":
|
2384 | (function(module, exports) {
|
2385 |
|
2386 | module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;
|
2387 |
|
2388 | }),
|
2389 |
|
2390 | "90e3":
|
2391 | (function(module, exports) {
|
2392 |
|
2393 | var id = 0;
|
2394 | var postfix = Math.random();
|
2395 |
|
2396 | module.exports = function (key) {
|
2397 | return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
2398 | };
|
2399 |
|
2400 |
|
2401 | }),
|
2402 |
|
2403 | "9112":
|
2404 | (function(module, exports, __webpack_require__) {
|
2405 |
|
2406 | var DESCRIPTORS = __webpack_require__("83ab");
|
2407 | var definePropertyModule = __webpack_require__("9bf2");
|
2408 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
2409 |
|
2410 | module.exports = DESCRIPTORS ? function (object, key, value) {
|
2411 | return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
|
2412 | } : function (object, key, value) {
|
2413 | object[key] = value;
|
2414 | return object;
|
2415 | };
|
2416 |
|
2417 |
|
2418 | }),
|
2419 |
|
2420 | "9263":
|
2421 | (function(module, exports, __webpack_require__) {
|
2422 |
|
2423 | "use strict";
|
2424 |
|
2425 | var regexpFlags = __webpack_require__("ad6d");
|
2426 | var stickyHelpers = __webpack_require__("9f7f");
|
2427 | var shared = __webpack_require__("5692");
|
2428 |
|
2429 | var nativeExec = RegExp.prototype.exec;
|
2430 | var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
2431 |
|
2432 | var patchedExec = nativeExec;
|
2433 |
|
2434 | var UPDATES_LAST_INDEX_WRONG = (function () {
|
2435 | var re1 = /a/;
|
2436 | var re2 = /b*/g;
|
2437 | nativeExec.call(re1, 'a');
|
2438 | nativeExec.call(re2, 'a');
|
2439 | return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
2440 | })();
|
2441 |
|
2442 | var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
|
2443 |
|
2444 |
|
2445 |
|
2446 | var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
2447 |
|
2448 | var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
|
2449 |
|
2450 | if (PATCH) {
|
2451 | patchedExec = function exec(str) {
|
2452 | var re = this;
|
2453 | var lastIndex, reCopy, match, i;
|
2454 | var sticky = UNSUPPORTED_Y && re.sticky;
|
2455 | var flags = regexpFlags.call(re);
|
2456 | var source = re.source;
|
2457 | var charsAdded = 0;
|
2458 | var strCopy = str;
|
2459 |
|
2460 | if (sticky) {
|
2461 | flags = flags.replace('y', '');
|
2462 | if (flags.indexOf('g') === -1) {
|
2463 | flags += 'g';
|
2464 | }
|
2465 |
|
2466 | strCopy = String(str).slice(re.lastIndex);
|
2467 |
|
2468 | if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
|
2469 | source = '(?: ' + source + ')';
|
2470 | strCopy = ' ' + strCopy;
|
2471 | charsAdded++;
|
2472 | }
|
2473 |
|
2474 |
|
2475 | reCopy = new RegExp('^(?:' + source + ')', flags);
|
2476 | }
|
2477 |
|
2478 | if (NPCG_INCLUDED) {
|
2479 | reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
2480 | }
|
2481 | if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
2482 |
|
2483 | match = nativeExec.call(sticky ? reCopy : re, strCopy);
|
2484 |
|
2485 | if (sticky) {
|
2486 | if (match) {
|
2487 | match.input = match.input.slice(charsAdded);
|
2488 | match[0] = match[0].slice(charsAdded);
|
2489 | match.index = re.lastIndex;
|
2490 | re.lastIndex += match[0].length;
|
2491 | } else re.lastIndex = 0;
|
2492 | } else if (UPDATES_LAST_INDEX_WRONG && match) {
|
2493 | re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
2494 | }
|
2495 | if (NPCG_INCLUDED && match && match.length > 1) {
|
2496 |
|
2497 |
|
2498 | nativeReplace.call(match[0], reCopy, function () {
|
2499 | for (i = 1; i < arguments.length - 2; i++) {
|
2500 | if (arguments[i] === undefined) match[i] = undefined;
|
2501 | }
|
2502 | });
|
2503 | }
|
2504 |
|
2505 | return match;
|
2506 | };
|
2507 | }
|
2508 |
|
2509 | module.exports = patchedExec;
|
2510 |
|
2511 |
|
2512 | }),
|
2513 |
|
2514 | "94ca":
|
2515 | (function(module, exports, __webpack_require__) {
|
2516 |
|
2517 | var fails = __webpack_require__("d039");
|
2518 |
|
2519 | var replacement = /#|\.prototype\./;
|
2520 |
|
2521 | var isForced = function (feature, detection) {
|
2522 | var value = data[normalize(feature)];
|
2523 | return value == POLYFILL ? true
|
2524 | : value == NATIVE ? false
|
2525 | : typeof detection == 'function' ? fails(detection)
|
2526 | : !!detection;
|
2527 | };
|
2528 |
|
2529 | var normalize = isForced.normalize = function (string) {
|
2530 | return String(string).replace(replacement, '.').toLowerCase();
|
2531 | };
|
2532 |
|
2533 | var data = isForced.data = {};
|
2534 | var NATIVE = isForced.NATIVE = 'N';
|
2535 | var POLYFILL = isForced.POLYFILL = 'P';
|
2536 |
|
2537 | module.exports = isForced;
|
2538 |
|
2539 |
|
2540 | }),
|
2541 |
|
2542 | "99af":
|
2543 | (function(module, exports, __webpack_require__) {
|
2544 |
|
2545 | "use strict";
|
2546 |
|
2547 | var $ = __webpack_require__("23e7");
|
2548 | var fails = __webpack_require__("d039");
|
2549 | var isArray = __webpack_require__("e8b5");
|
2550 | var isObject = __webpack_require__("861d");
|
2551 | var toObject = __webpack_require__("7b0b");
|
2552 | var toLength = __webpack_require__("50c4");
|
2553 | var createProperty = __webpack_require__("8418");
|
2554 | var arraySpeciesCreate = __webpack_require__("65f0");
|
2555 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
2556 | var wellKnownSymbol = __webpack_require__("b622");
|
2557 | var V8_VERSION = __webpack_require__("2d00");
|
2558 |
|
2559 | var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
2560 | var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
2561 | var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
2562 |
|
2563 |
|
2564 |
|
2565 |
|
2566 | var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
|
2567 | var array = [];
|
2568 | array[IS_CONCAT_SPREADABLE] = false;
|
2569 | return array.concat()[0] !== array;
|
2570 | });
|
2571 |
|
2572 | var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
2573 |
|
2574 | var isConcatSpreadable = function (O) {
|
2575 | if (!isObject(O)) return false;
|
2576 | var spreadable = O[IS_CONCAT_SPREADABLE];
|
2577 | return spreadable !== undefined ? !!spreadable : isArray(O);
|
2578 | };
|
2579 |
|
2580 | var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
2581 |
|
2582 |
|
2583 |
|
2584 |
|
2585 | $({ target: 'Array', proto: true, forced: FORCED }, {
|
2586 |
|
2587 | concat: function concat(arg) {
|
2588 | var O = toObject(this);
|
2589 | var A = arraySpeciesCreate(O, 0);
|
2590 | var n = 0;
|
2591 | var i, k, length, len, E;
|
2592 | for (i = -1, length = arguments.length; i < length; i++) {
|
2593 | E = i === -1 ? O : arguments[i];
|
2594 | if (isConcatSpreadable(E)) {
|
2595 | len = toLength(E.length);
|
2596 | if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
2597 | for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
2598 | } else {
|
2599 | if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
2600 | createProperty(A, n++, E);
|
2601 | }
|
2602 | }
|
2603 | A.length = n;
|
2604 | return A;
|
2605 | }
|
2606 | });
|
2607 |
|
2608 |
|
2609 | }),
|
2610 |
|
2611 | "9bdd":
|
2612 | (function(module, exports, __webpack_require__) {
|
2613 |
|
2614 | var anObject = __webpack_require__("825a");
|
2615 | var iteratorClose = __webpack_require__("2a62");
|
2616 |
|
2617 |
|
2618 | module.exports = function (iterator, fn, value, ENTRIES) {
|
2619 | try {
|
2620 | return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
2621 |
|
2622 | } catch (error) {
|
2623 | iteratorClose(iterator);
|
2624 | throw error;
|
2625 | }
|
2626 | };
|
2627 |
|
2628 |
|
2629 | }),
|
2630 |
|
2631 | "9bf2":
|
2632 | (function(module, exports, __webpack_require__) {
|
2633 |
|
2634 | var DESCRIPTORS = __webpack_require__("83ab");
|
2635 | var IE8_DOM_DEFINE = __webpack_require__("0cfb");
|
2636 | var anObject = __webpack_require__("825a");
|
2637 | var toPrimitive = __webpack_require__("c04e");
|
2638 |
|
2639 |
|
2640 | var $defineProperty = Object.defineProperty;
|
2641 |
|
2642 |
|
2643 |
|
2644 | exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {
|
2645 | anObject(O);
|
2646 | P = toPrimitive(P, true);
|
2647 | anObject(Attributes);
|
2648 | if (IE8_DOM_DEFINE) try {
|
2649 | return $defineProperty(O, P, Attributes);
|
2650 | } catch (error) { }
|
2651 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
2652 | if ('value' in Attributes) O[P] = Attributes.value;
|
2653 | return O;
|
2654 | };
|
2655 |
|
2656 |
|
2657 | }),
|
2658 |
|
2659 | "9ed3":
|
2660 | (function(module, exports, __webpack_require__) {
|
2661 |
|
2662 | "use strict";
|
2663 |
|
2664 | var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype;
|
2665 | var create = __webpack_require__("7c73");
|
2666 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
2667 | var setToStringTag = __webpack_require__("d44e");
|
2668 | var Iterators = __webpack_require__("3f8c");
|
2669 |
|
2670 | var returnThis = function () { return this; };
|
2671 |
|
2672 | module.exports = function (IteratorConstructor, NAME, next) {
|
2673 | var TO_STRING_TAG = NAME + ' Iterator';
|
2674 | IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
|
2675 | setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
|
2676 | Iterators[TO_STRING_TAG] = returnThis;
|
2677 | return IteratorConstructor;
|
2678 | };
|
2679 |
|
2680 |
|
2681 | }),
|
2682 |
|
2683 | "9f7f":
|
2684 | (function(module, exports, __webpack_require__) {
|
2685 |
|
2686 | "use strict";
|
2687 |
|
2688 |
|
2689 | var fails = __webpack_require__("d039");
|
2690 |
|
2691 |
|
2692 |
|
2693 | function RE(s, f) {
|
2694 | return RegExp(s, f);
|
2695 | }
|
2696 |
|
2697 | exports.UNSUPPORTED_Y = fails(function () {
|
2698 |
|
2699 | var re = RE('a', 'y');
|
2700 | re.lastIndex = 2;
|
2701 | return re.exec('abcd') != null;
|
2702 | });
|
2703 |
|
2704 | exports.BROKEN_CARET = fails(function () {
|
2705 |
|
2706 | var re = RE('^r', 'gy');
|
2707 | re.lastIndex = 2;
|
2708 | return re.exec('str') != null;
|
2709 | });
|
2710 |
|
2711 |
|
2712 | }),
|
2713 |
|
2714 | "a434":
|
2715 | (function(module, exports, __webpack_require__) {
|
2716 |
|
2717 | "use strict";
|
2718 |
|
2719 | var $ = __webpack_require__("23e7");
|
2720 | var toAbsoluteIndex = __webpack_require__("23cb");
|
2721 | var toInteger = __webpack_require__("a691");
|
2722 | var toLength = __webpack_require__("50c4");
|
2723 | var toObject = __webpack_require__("7b0b");
|
2724 | var arraySpeciesCreate = __webpack_require__("65f0");
|
2725 | var createProperty = __webpack_require__("8418");
|
2726 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
2727 |
|
2728 | var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
|
2729 |
|
2730 | var max = Math.max;
|
2731 | var min = Math.min;
|
2732 | var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
2733 | var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
|
2734 |
|
2735 |
|
2736 |
|
2737 |
|
2738 | $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
2739 | splice: function splice(start, deleteCount /* , ...items */) {
|
2740 | var O = toObject(this);
|
2741 | var len = toLength(O.length);
|
2742 | var actualStart = toAbsoluteIndex(start, len);
|
2743 | var argumentsLength = arguments.length;
|
2744 | var insertCount, actualDeleteCount, A, k, from, to;
|
2745 | if (argumentsLength === 0) {
|
2746 | insertCount = actualDeleteCount = 0;
|
2747 | } else if (argumentsLength === 1) {
|
2748 | insertCount = 0;
|
2749 | actualDeleteCount = len - actualStart;
|
2750 | } else {
|
2751 | insertCount = argumentsLength - 2;
|
2752 | actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
|
2753 | }
|
2754 | if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
|
2755 | throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
|
2756 | }
|
2757 | A = arraySpeciesCreate(O, actualDeleteCount);
|
2758 | for (k = 0; k < actualDeleteCount; k++) {
|
2759 | from = actualStart + k;
|
2760 | if (from in O) createProperty(A, k, O[from]);
|
2761 | }
|
2762 | A.length = actualDeleteCount;
|
2763 | if (insertCount < actualDeleteCount) {
|
2764 | for (k = actualStart; k < len - actualDeleteCount; k++) {
|
2765 | from = k + actualDeleteCount;
|
2766 | to = k + insertCount;
|
2767 | if (from in O) O[to] = O[from];
|
2768 | else delete O[to];
|
2769 | }
|
2770 | for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
|
2771 | } else if (insertCount > actualDeleteCount) {
|
2772 | for (k = len - actualDeleteCount; k > actualStart; k--) {
|
2773 | from = k + actualDeleteCount - 1;
|
2774 | to = k + insertCount - 1;
|
2775 | if (from in O) O[to] = O[from];
|
2776 | else delete O[to];
|
2777 | }
|
2778 | }
|
2779 | for (k = 0; k < insertCount; k++) {
|
2780 | O[k + actualStart] = arguments[k + 2];
|
2781 | }
|
2782 | O.length = len - actualDeleteCount + insertCount;
|
2783 | return A;
|
2784 | }
|
2785 | });
|
2786 |
|
2787 |
|
2788 | }),
|
2789 |
|
2790 | "a4b4":
|
2791 | (function(module, exports, __webpack_require__) {
|
2792 |
|
2793 | var userAgent = __webpack_require__("342f");
|
2794 |
|
2795 | module.exports = /web0s(?!.*chrome)/i.test(userAgent);
|
2796 |
|
2797 |
|
2798 | }),
|
2799 |
|
2800 | "a4d3":
|
2801 | (function(module, exports, __webpack_require__) {
|
2802 |
|
2803 | "use strict";
|
2804 |
|
2805 | var $ = __webpack_require__("23e7");
|
2806 | var global = __webpack_require__("da84");
|
2807 | var getBuiltIn = __webpack_require__("d066");
|
2808 | var IS_PURE = __webpack_require__("c430");
|
2809 | var DESCRIPTORS = __webpack_require__("83ab");
|
2810 | var NATIVE_SYMBOL = __webpack_require__("4930");
|
2811 | var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
|
2812 | var fails = __webpack_require__("d039");
|
2813 | var has = __webpack_require__("5135");
|
2814 | var isArray = __webpack_require__("e8b5");
|
2815 | var isObject = __webpack_require__("861d");
|
2816 | var anObject = __webpack_require__("825a");
|
2817 | var toObject = __webpack_require__("7b0b");
|
2818 | var toIndexedObject = __webpack_require__("fc6a");
|
2819 | var toPrimitive = __webpack_require__("c04e");
|
2820 | var createPropertyDescriptor = __webpack_require__("5c6c");
|
2821 | var nativeObjectCreate = __webpack_require__("7c73");
|
2822 | var objectKeys = __webpack_require__("df75");
|
2823 | var getOwnPropertyNamesModule = __webpack_require__("241c");
|
2824 | var getOwnPropertyNamesExternal = __webpack_require__("057f");
|
2825 | var getOwnPropertySymbolsModule = __webpack_require__("7418");
|
2826 | var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
|
2827 | var definePropertyModule = __webpack_require__("9bf2");
|
2828 | var propertyIsEnumerableModule = __webpack_require__("d1e7");
|
2829 | var createNonEnumerableProperty = __webpack_require__("9112");
|
2830 | var redefine = __webpack_require__("6eeb");
|
2831 | var shared = __webpack_require__("5692");
|
2832 | var sharedKey = __webpack_require__("f772");
|
2833 | var hiddenKeys = __webpack_require__("d012");
|
2834 | var uid = __webpack_require__("90e3");
|
2835 | var wellKnownSymbol = __webpack_require__("b622");
|
2836 | var wrappedWellKnownSymbolModule = __webpack_require__("e538");
|
2837 | var defineWellKnownSymbol = __webpack_require__("746f");
|
2838 | var setToStringTag = __webpack_require__("d44e");
|
2839 | var InternalStateModule = __webpack_require__("69f3");
|
2840 | var $forEach = __webpack_require__("b727").forEach;
|
2841 |
|
2842 | var HIDDEN = sharedKey('hidden');
|
2843 | var SYMBOL = 'Symbol';
|
2844 | var PROTOTYPE = 'prototype';
|
2845 | var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
2846 | var setInternalState = InternalStateModule.set;
|
2847 | var getInternalState = InternalStateModule.getterFor(SYMBOL);
|
2848 | var ObjectPrototype = Object[PROTOTYPE];
|
2849 | var $Symbol = global.Symbol;
|
2850 | var $stringify = getBuiltIn('JSON', 'stringify');
|
2851 | var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
2852 | var nativeDefineProperty = definePropertyModule.f;
|
2853 | var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
|
2854 | var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
|
2855 | var AllSymbols = shared('symbols');
|
2856 | var ObjectPrototypeSymbols = shared('op-symbols');
|
2857 | var StringToSymbolRegistry = shared('string-to-symbol-registry');
|
2858 | var SymbolToStringRegistry = shared('symbol-to-string-registry');
|
2859 | var WellKnownSymbolsStore = shared('wks');
|
2860 | var QObject = global.QObject;
|
2861 |
|
2862 | var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
2863 |
|
2864 |
|
2865 | var setSymbolDescriptor = DESCRIPTORS && fails(function () {
|
2866 | return nativeObjectCreate(nativeDefineProperty({}, 'a', {
|
2867 | get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
|
2868 | })).a != 7;
|
2869 | }) ? function (O, P, Attributes) {
|
2870 | var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
|
2871 | if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
|
2872 | nativeDefineProperty(O, P, Attributes);
|
2873 | if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
|
2874 | nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
|
2875 | }
|
2876 | } : nativeDefineProperty;
|
2877 |
|
2878 | var wrap = function (tag, description) {
|
2879 | var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
|
2880 | setInternalState(symbol, {
|
2881 | type: SYMBOL,
|
2882 | tag: tag,
|
2883 | description: description
|
2884 | });
|
2885 | if (!DESCRIPTORS) symbol.description = description;
|
2886 | return symbol;
|
2887 | };
|
2888 |
|
2889 | var isSymbol = USE_SYMBOL_AS_UID ? function (it) {
|
2890 | return typeof it == 'symbol';
|
2891 | } : function (it) {
|
2892 | return Object(it) instanceof $Symbol;
|
2893 | };
|
2894 |
|
2895 | var $defineProperty = function defineProperty(O, P, Attributes) {
|
2896 | if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
2897 | anObject(O);
|
2898 | var key = toPrimitive(P, true);
|
2899 | anObject(Attributes);
|
2900 | if (has(AllSymbols, key)) {
|
2901 | if (!Attributes.enumerable) {
|
2902 | if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
|
2903 | O[HIDDEN][key] = true;
|
2904 | } else {
|
2905 | if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
2906 | Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
|
2907 | } return setSymbolDescriptor(O, key, Attributes);
|
2908 | } return nativeDefineProperty(O, key, Attributes);
|
2909 | };
|
2910 |
|
2911 | var $defineProperties = function defineProperties(O, Properties) {
|
2912 | anObject(O);
|
2913 | var properties = toIndexedObject(Properties);
|
2914 | var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
|
2915 | $forEach(keys, function (key) {
|
2916 | if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
|
2917 | });
|
2918 | return O;
|
2919 | };
|
2920 |
|
2921 | var $create = function create(O, Properties) {
|
2922 | return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
|
2923 | };
|
2924 |
|
2925 | var $propertyIsEnumerable = function propertyIsEnumerable(V) {
|
2926 | var P = toPrimitive(V, true);
|
2927 | var enumerable = nativePropertyIsEnumerable.call(this, P);
|
2928 | if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
|
2929 | return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
2930 | };
|
2931 |
|
2932 | var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
|
2933 | var it = toIndexedObject(O);
|
2934 | var key = toPrimitive(P, true);
|
2935 | if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
|
2936 | var descriptor = nativeGetOwnPropertyDescriptor(it, key);
|
2937 | if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
|
2938 | descriptor.enumerable = true;
|
2939 | }
|
2940 | return descriptor;
|
2941 | };
|
2942 |
|
2943 | var $getOwnPropertyNames = function getOwnPropertyNames(O) {
|
2944 | var names = nativeGetOwnPropertyNames(toIndexedObject(O));
|
2945 | var result = [];
|
2946 | $forEach(names, function (key) {
|
2947 | if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
|
2948 | });
|
2949 | return result;
|
2950 | };
|
2951 |
|
2952 | var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
|
2953 | var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
|
2954 | var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
|
2955 | var result = [];
|
2956 | $forEach(names, function (key) {
|
2957 | if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
|
2958 | result.push(AllSymbols[key]);
|
2959 | }
|
2960 | });
|
2961 | return result;
|
2962 | };
|
2963 |
|
2964 |
|
2965 |
|
2966 | if (!NATIVE_SYMBOL) {
|
2967 | $Symbol = function Symbol() {
|
2968 | if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
|
2969 | var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
|
2970 | var tag = uid(description);
|
2971 | var setter = function (value) {
|
2972 | if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
|
2973 | if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
2974 | setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
|
2975 | };
|
2976 | if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
|
2977 | return wrap(tag, description);
|
2978 | };
|
2979 |
|
2980 | redefine($Symbol[PROTOTYPE], 'toString', function toString() {
|
2981 | return getInternalState(this).tag;
|
2982 | });
|
2983 |
|
2984 | redefine($Symbol, 'withoutSetter', function (description) {
|
2985 | return wrap(uid(description), description);
|
2986 | });
|
2987 |
|
2988 | propertyIsEnumerableModule.f = $propertyIsEnumerable;
|
2989 | definePropertyModule.f = $defineProperty;
|
2990 | getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
|
2991 | getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
|
2992 | getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
|
2993 |
|
2994 | wrappedWellKnownSymbolModule.f = function (name) {
|
2995 | return wrap(wellKnownSymbol(name), name);
|
2996 | };
|
2997 |
|
2998 | if (DESCRIPTORS) {
|
2999 |
|
3000 | nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
|
3001 | configurable: true,
|
3002 | get: function description() {
|
3003 | return getInternalState(this).description;
|
3004 | }
|
3005 | });
|
3006 | if (!IS_PURE) {
|
3007 | redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
|
3008 | }
|
3009 | }
|
3010 | }
|
3011 |
|
3012 | $({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
|
3013 | Symbol: $Symbol
|
3014 | });
|
3015 |
|
3016 | $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
|
3017 | defineWellKnownSymbol(name);
|
3018 | });
|
3019 |
|
3020 | $({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
|
3021 |
|
3022 |
|
3023 | 'for': function (key) {
|
3024 | var string = String(key);
|
3025 | if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
|
3026 | var symbol = $Symbol(string);
|
3027 | StringToSymbolRegistry[string] = symbol;
|
3028 | SymbolToStringRegistry[symbol] = string;
|
3029 | return symbol;
|
3030 | },
|
3031 |
|
3032 |
|
3033 | keyFor: function keyFor(sym) {
|
3034 | if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
|
3035 | if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
3036 | },
|
3037 | useSetter: function () { USE_SETTER = true; },
|
3038 | useSimple: function () { USE_SETTER = false; }
|
3039 | });
|
3040 |
|
3041 | $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
|
3042 |
|
3043 |
|
3044 | create: $create,
|
3045 |
|
3046 |
|
3047 | defineProperty: $defineProperty,
|
3048 |
|
3049 |
|
3050 | defineProperties: $defineProperties,
|
3051 |
|
3052 |
|
3053 | getOwnPropertyDescriptor: $getOwnPropertyDescriptor
|
3054 | });
|
3055 |
|
3056 | $({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
|
3057 |
|
3058 |
|
3059 | getOwnPropertyNames: $getOwnPropertyNames,
|
3060 |
|
3061 |
|
3062 | getOwnPropertySymbols: $getOwnPropertySymbols
|
3063 | });
|
3064 |
|
3065 |
|
3066 |
|
3067 | $({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
|
3068 | getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
3069 | return getOwnPropertySymbolsModule.f(toObject(it));
|
3070 | }
|
3071 | });
|
3072 |
|
3073 |
|
3074 |
|
3075 | if ($stringify) {
|
3076 | var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
|
3077 | var symbol = $Symbol();
|
3078 |
|
3079 | return $stringify([symbol]) != '[null]'
|
3080 |
|
3081 | || $stringify({ a: symbol }) != '{}'
|
3082 |
|
3083 | || $stringify(Object(symbol)) != '{}';
|
3084 | });
|
3085 |
|
3086 | $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
|
3087 |
|
3088 | stringify: function stringify(it, replacer, space) {
|
3089 | var args = [it];
|
3090 | var index = 1;
|
3091 | var $replacer;
|
3092 | while (arguments.length > index) args.push(arguments[index++]);
|
3093 | $replacer = replacer;
|
3094 | if (!isObject(replacer) && it === undefined || isSymbol(it)) return;
|
3095 | if (!isArray(replacer)) replacer = function (key, value) {
|
3096 | if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
3097 | if (!isSymbol(value)) return value;
|
3098 | };
|
3099 | args[1] = replacer;
|
3100 | return $stringify.apply(null, args);
|
3101 | }
|
3102 | });
|
3103 | }
|
3104 |
|
3105 |
|
3106 |
|
3107 | if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
|
3108 | createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
3109 | }
|
3110 |
|
3111 |
|
3112 | setToStringTag($Symbol, SYMBOL);
|
3113 |
|
3114 | hiddenKeys[HIDDEN] = true;
|
3115 |
|
3116 |
|
3117 | }),
|
3118 |
|
3119 | "a630":
|
3120 | (function(module, exports, __webpack_require__) {
|
3121 |
|
3122 | var $ = __webpack_require__("23e7");
|
3123 | var from = __webpack_require__("4df4");
|
3124 | var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
3125 |
|
3126 | var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
|
3127 |
|
3128 | Array.from(iterable);
|
3129 | });
|
3130 |
|
3131 |
|
3132 |
|
3133 | $({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
|
3134 | from: from
|
3135 | });
|
3136 |
|
3137 |
|
3138 | }),
|
3139 |
|
3140 | "a640":
|
3141 | (function(module, exports, __webpack_require__) {
|
3142 |
|
3143 | "use strict";
|
3144 |
|
3145 | var fails = __webpack_require__("d039");
|
3146 |
|
3147 | module.exports = function (METHOD_NAME, argument) {
|
3148 | var method = [][METHOD_NAME];
|
3149 | return !!method && fails(function () {
|
3150 |
|
3151 | method.call(null, argument || function () { throw 1; }, 1);
|
3152 | });
|
3153 | };
|
3154 |
|
3155 |
|
3156 | }),
|
3157 |
|
3158 | "a691":
|
3159 | (function(module, exports) {
|
3160 |
|
3161 | var ceil = Math.ceil;
|
3162 | var floor = Math.floor;
|
3163 |
|
3164 |
|
3165 |
|
3166 | module.exports = function (argument) {
|
3167 | return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
|
3168 | };
|
3169 |
|
3170 |
|
3171 | }),
|
3172 |
|
3173 | "ac1f":
|
3174 | (function(module, exports, __webpack_require__) {
|
3175 |
|
3176 | "use strict";
|
3177 |
|
3178 | var $ = __webpack_require__("23e7");
|
3179 | var exec = __webpack_require__("9263");
|
3180 |
|
3181 |
|
3182 |
|
3183 | $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
3184 | exec: exec
|
3185 | });
|
3186 |
|
3187 |
|
3188 | }),
|
3189 |
|
3190 | "ad6d":
|
3191 | (function(module, exports, __webpack_require__) {
|
3192 |
|
3193 | "use strict";
|
3194 |
|
3195 | var anObject = __webpack_require__("825a");
|
3196 |
|
3197 |
|
3198 |
|
3199 | module.exports = function () {
|
3200 | var that = anObject(this);
|
3201 | var result = '';
|
3202 | if (that.global) result += 'g';
|
3203 | if (that.ignoreCase) result += 'i';
|
3204 | if (that.multiline) result += 'm';
|
3205 | if (that.dotAll) result += 's';
|
3206 | if (that.unicode) result += 'u';
|
3207 | if (that.sticky) result += 'y';
|
3208 | return result;
|
3209 | };
|
3210 |
|
3211 |
|
3212 | }),
|
3213 |
|
3214 | "ae93":
|
3215 | (function(module, exports, __webpack_require__) {
|
3216 |
|
3217 | "use strict";
|
3218 |
|
3219 | var fails = __webpack_require__("d039");
|
3220 | var getPrototypeOf = __webpack_require__("e163");
|
3221 | var createNonEnumerableProperty = __webpack_require__("9112");
|
3222 | var has = __webpack_require__("5135");
|
3223 | var wellKnownSymbol = __webpack_require__("b622");
|
3224 | var IS_PURE = __webpack_require__("c430");
|
3225 |
|
3226 | var ITERATOR = wellKnownSymbol('iterator');
|
3227 | var BUGGY_SAFARI_ITERATORS = false;
|
3228 |
|
3229 | var returnThis = function () { return this; };
|
3230 |
|
3231 |
|
3232 |
|
3233 | var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
3234 |
|
3235 |
|
3236 | if ([].keys) {
|
3237 | arrayIterator = [].keys();
|
3238 |
|
3239 | if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
|
3240 | else {
|
3241 | PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
|
3242 | if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
|
3243 | }
|
3244 | }
|
3245 |
|
3246 | var NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {
|
3247 | var test = {};
|
3248 |
|
3249 | return IteratorPrototype[ITERATOR].call(test) !== test;
|
3250 | });
|
3251 |
|
3252 | if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};
|
3253 |
|
3254 |
|
3255 | if ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !has(IteratorPrototype, ITERATOR)) {
|
3256 | createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
|
3257 | }
|
3258 |
|
3259 | module.exports = {
|
3260 | IteratorPrototype: IteratorPrototype,
|
3261 | BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
|
3262 | };
|
3263 |
|
3264 |
|
3265 | }),
|
3266 |
|
3267 | "b041":
|
3268 | (function(module, exports, __webpack_require__) {
|
3269 |
|
3270 | "use strict";
|
3271 |
|
3272 | var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
|
3273 | var classof = __webpack_require__("f5df");
|
3274 |
|
3275 |
|
3276 |
|
3277 | module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
|
3278 | return '[object ' + classof(this) + ']';
|
3279 | };
|
3280 |
|
3281 |
|
3282 | }),
|
3283 |
|
3284 | "b0c0":
|
3285 | (function(module, exports, __webpack_require__) {
|
3286 |
|
3287 | var DESCRIPTORS = __webpack_require__("83ab");
|
3288 | var defineProperty = __webpack_require__("9bf2").f;
|
3289 |
|
3290 | var FunctionPrototype = Function.prototype;
|
3291 | var FunctionPrototypeToString = FunctionPrototype.toString;
|
3292 | var nameRE = /^\s*function ([^ (]*)/;
|
3293 | var NAME = 'name';
|
3294 |
|
3295 |
|
3296 |
|
3297 | if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
|
3298 | defineProperty(FunctionPrototype, NAME, {
|
3299 | configurable: true,
|
3300 | get: function () {
|
3301 | try {
|
3302 | return FunctionPrototypeToString.call(this).match(nameRE)[1];
|
3303 | } catch (error) {
|
3304 | return '';
|
3305 | }
|
3306 | }
|
3307 | });
|
3308 | }
|
3309 |
|
3310 |
|
3311 | }),
|
3312 |
|
3313 | "b575":
|
3314 | (function(module, exports, __webpack_require__) {
|
3315 |
|
3316 | var global = __webpack_require__("da84");
|
3317 | var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
3318 | var macrotask = __webpack_require__("2cf4").set;
|
3319 | var IS_IOS = __webpack_require__("1cdc");
|
3320 | var IS_WEBOS_WEBKIT = __webpack_require__("a4b4");
|
3321 | var IS_NODE = __webpack_require__("605d");
|
3322 |
|
3323 | var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
|
3324 | var document = global.document;
|
3325 | var process = global.process;
|
3326 | var Promise = global.Promise;
|
3327 |
|
3328 | var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
3329 | var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
3330 |
|
3331 | var flush, head, last, notify, toggle, node, promise, then;
|
3332 |
|
3333 |
|
3334 | if (!queueMicrotask) {
|
3335 | flush = function () {
|
3336 | var parent, fn;
|
3337 | if (IS_NODE && (parent = process.domain)) parent.exit();
|
3338 | while (head) {
|
3339 | fn = head.fn;
|
3340 | head = head.next;
|
3341 | try {
|
3342 | fn();
|
3343 | } catch (error) {
|
3344 | if (head) notify();
|
3345 | else last = undefined;
|
3346 | throw error;
|
3347 | }
|
3348 | } last = undefined;
|
3349 | if (parent) parent.enter();
|
3350 | };
|
3351 |
|
3352 |
|
3353 |
|
3354 | if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
|
3355 | toggle = true;
|
3356 | node = document.createTextNode('');
|
3357 | new MutationObserver(flush).observe(node, { characterData: true });
|
3358 | notify = function () {
|
3359 | node.data = toggle = !toggle;
|
3360 | };
|
3361 |
|
3362 | } else if (Promise && Promise.resolve) {
|
3363 |
|
3364 | promise = Promise.resolve(undefined);
|
3365 | then = promise.then;
|
3366 | notify = function () {
|
3367 | then.call(promise, flush);
|
3368 | };
|
3369 |
|
3370 | } else if (IS_NODE) {
|
3371 | notify = function () {
|
3372 | process.nextTick(flush);
|
3373 | };
|
3374 |
|
3375 |
|
3376 |
|
3377 |
|
3378 |
|
3379 |
|
3380 | } else {
|
3381 | notify = function () {
|
3382 |
|
3383 | macrotask.call(global, flush);
|
3384 | };
|
3385 | }
|
3386 | }
|
3387 |
|
3388 | module.exports = queueMicrotask || function (fn) {
|
3389 | var task = { fn: fn, next: undefined };
|
3390 | if (last) last.next = task;
|
3391 | if (!head) {
|
3392 | head = task;
|
3393 | notify();
|
3394 | } last = task;
|
3395 | };
|
3396 |
|
3397 |
|
3398 | }),
|
3399 |
|
3400 | "b622":
|
3401 | (function(module, exports, __webpack_require__) {
|
3402 |
|
3403 | var global = __webpack_require__("da84");
|
3404 | var shared = __webpack_require__("5692");
|
3405 | var has = __webpack_require__("5135");
|
3406 | var uid = __webpack_require__("90e3");
|
3407 | var NATIVE_SYMBOL = __webpack_require__("4930");
|
3408 | var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
|
3409 |
|
3410 | var WellKnownSymbolsStore = shared('wks');
|
3411 | var Symbol = global.Symbol;
|
3412 | var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
|
3413 |
|
3414 | module.exports = function (name) {
|
3415 | if (!has(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
3416 | if (NATIVE_SYMBOL && has(Symbol, name)) {
|
3417 | WellKnownSymbolsStore[name] = Symbol[name];
|
3418 | } else {
|
3419 | WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
3420 | }
|
3421 | } return WellKnownSymbolsStore[name];
|
3422 | };
|
3423 |
|
3424 |
|
3425 | }),
|
3426 |
|
3427 | "b64b":
|
3428 | (function(module, exports, __webpack_require__) {
|
3429 |
|
3430 | var $ = __webpack_require__("23e7");
|
3431 | var toObject = __webpack_require__("7b0b");
|
3432 | var nativeKeys = __webpack_require__("df75");
|
3433 | var fails = __webpack_require__("d039");
|
3434 |
|
3435 | var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
|
3436 |
|
3437 |
|
3438 |
|
3439 | $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
3440 | keys: function keys(it) {
|
3441 | return nativeKeys(toObject(it));
|
3442 | }
|
3443 | });
|
3444 |
|
3445 |
|
3446 | }),
|
3447 |
|
3448 | "b727":
|
3449 | (function(module, exports, __webpack_require__) {
|
3450 |
|
3451 | var bind = __webpack_require__("0366");
|
3452 | var IndexedObject = __webpack_require__("44ad");
|
3453 | var toObject = __webpack_require__("7b0b");
|
3454 | var toLength = __webpack_require__("50c4");
|
3455 | var arraySpeciesCreate = __webpack_require__("65f0");
|
3456 |
|
3457 | var push = [].push;
|
3458 |
|
3459 |
|
3460 | var createMethod = function (TYPE) {
|
3461 | var IS_MAP = TYPE == 1;
|
3462 | var IS_FILTER = TYPE == 2;
|
3463 | var IS_SOME = TYPE == 3;
|
3464 | var IS_EVERY = TYPE == 4;
|
3465 | var IS_FIND_INDEX = TYPE == 6;
|
3466 | var IS_FILTER_OUT = TYPE == 7;
|
3467 | var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
3468 | return function ($this, callbackfn, that, specificCreate) {
|
3469 | var O = toObject($this);
|
3470 | var self = IndexedObject(O);
|
3471 | var boundFunction = bind(callbackfn, that, 3);
|
3472 | var length = toLength(self.length);
|
3473 | var index = 0;
|
3474 | var create = specificCreate || arraySpeciesCreate;
|
3475 | var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
|
3476 | var value, result;
|
3477 | for (;length > index; index++) if (NO_HOLES || index in self) {
|
3478 | value = self[index];
|
3479 | result = boundFunction(value, index, O);
|
3480 | if (TYPE) {
|
3481 | if (IS_MAP) target[index] = result;
|
3482 | else if (result) switch (TYPE) {
|
3483 | case 3: return true;
|
3484 | case 5: return value;
|
3485 | case 6: return index;
|
3486 | case 2: push.call(target, value);
|
3487 | } else switch (TYPE) {
|
3488 | case 4: return false;
|
3489 | case 7: push.call(target, value);
|
3490 | }
|
3491 | }
|
3492 | }
|
3493 | return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
3494 | };
|
3495 | };
|
3496 |
|
3497 | module.exports = {
|
3498 |
|
3499 |
|
3500 | forEach: createMethod(0),
|
3501 |
|
3502 |
|
3503 | map: createMethod(1),
|
3504 |
|
3505 |
|
3506 | filter: createMethod(2),
|
3507 |
|
3508 |
|
3509 | some: createMethod(3),
|
3510 |
|
3511 |
|
3512 | every: createMethod(4),
|
3513 |
|
3514 |
|
3515 | find: createMethod(5),
|
3516 |
|
3517 |
|
3518 | findIndex: createMethod(6),
|
3519 |
|
3520 |
|
3521 | filterOut: createMethod(7)
|
3522 | };
|
3523 |
|
3524 |
|
3525 | }),
|
3526 |
|
3527 | "c04e":
|
3528 | (function(module, exports, __webpack_require__) {
|
3529 |
|
3530 | var isObject = __webpack_require__("861d");
|
3531 |
|
3532 |
|
3533 |
|
3534 |
|
3535 |
|
3536 | module.exports = function (input, PREFERRED_STRING) {
|
3537 | if (!isObject(input)) return input;
|
3538 | var fn, val;
|
3539 | if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
3540 | if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
|
3541 | if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
|
3542 | throw TypeError("Can't convert object to primitive value");
|
3543 | };
|
3544 |
|
3545 |
|
3546 | }),
|
3547 |
|
3548 | "c430":
|
3549 | (function(module, exports) {
|
3550 |
|
3551 | module.exports = false;
|
3552 |
|
3553 |
|
3554 | }),
|
3555 |
|
3556 | "c6b6":
|
3557 | (function(module, exports) {
|
3558 |
|
3559 | var toString = {}.toString;
|
3560 |
|
3561 | module.exports = function (it) {
|
3562 | return toString.call(it).slice(8, -1);
|
3563 | };
|
3564 |
|
3565 |
|
3566 | }),
|
3567 |
|
3568 | "c6cd":
|
3569 | (function(module, exports, __webpack_require__) {
|
3570 |
|
3571 | var global = __webpack_require__("da84");
|
3572 | var setGlobal = __webpack_require__("ce4e");
|
3573 |
|
3574 | var SHARED = '__core-js_shared__';
|
3575 | var store = global[SHARED] || setGlobal(SHARED, {});
|
3576 |
|
3577 | module.exports = store;
|
3578 |
|
3579 |
|
3580 | }),
|
3581 |
|
3582 | "c8ba":
|
3583 | (function(module, exports) {
|
3584 |
|
3585 | var g;
|
3586 |
|
3587 |
|
3588 | g = (function() {
|
3589 | return this;
|
3590 | })();
|
3591 |
|
3592 | try {
|
3593 |
|
3594 | g = g || new Function("return this")();
|
3595 | } catch (e) {
|
3596 |
|
3597 | if (typeof window === "object") g = window;
|
3598 | }
|
3599 |
|
3600 |
|
3601 |
|
3602 |
|
3603 |
|
3604 | module.exports = g;
|
3605 |
|
3606 |
|
3607 | }),
|
3608 |
|
3609 | "ca84":
|
3610 | (function(module, exports, __webpack_require__) {
|
3611 |
|
3612 | var has = __webpack_require__("5135");
|
3613 | var toIndexedObject = __webpack_require__("fc6a");
|
3614 | var indexOf = __webpack_require__("4d64").indexOf;
|
3615 | var hiddenKeys = __webpack_require__("d012");
|
3616 |
|
3617 | module.exports = function (object, names) {
|
3618 | var O = toIndexedObject(object);
|
3619 | var i = 0;
|
3620 | var result = [];
|
3621 | var key;
|
3622 | for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
|
3623 |
|
3624 | while (names.length > i) if (has(O, key = names[i++])) {
|
3625 | ~indexOf(result, key) || result.push(key);
|
3626 | }
|
3627 | return result;
|
3628 | };
|
3629 |
|
3630 |
|
3631 | }),
|
3632 |
|
3633 | "cc12":
|
3634 | (function(module, exports, __webpack_require__) {
|
3635 |
|
3636 | var global = __webpack_require__("da84");
|
3637 | var isObject = __webpack_require__("861d");
|
3638 |
|
3639 | var document = global.document;
|
3640 |
|
3641 | var EXISTS = isObject(document) && isObject(document.createElement);
|
3642 |
|
3643 | module.exports = function (it) {
|
3644 | return EXISTS ? document.createElement(it) : {};
|
3645 | };
|
3646 |
|
3647 |
|
3648 | }),
|
3649 |
|
3650 | "cdf9":
|
3651 | (function(module, exports, __webpack_require__) {
|
3652 |
|
3653 | var anObject = __webpack_require__("825a");
|
3654 | var isObject = __webpack_require__("861d");
|
3655 | var newPromiseCapability = __webpack_require__("f069");
|
3656 |
|
3657 | module.exports = function (C, x) {
|
3658 | anObject(C);
|
3659 | if (isObject(x) && x.constructor === C) return x;
|
3660 | var promiseCapability = newPromiseCapability.f(C);
|
3661 | var resolve = promiseCapability.resolve;
|
3662 | resolve(x);
|
3663 | return promiseCapability.promise;
|
3664 | };
|
3665 |
|
3666 |
|
3667 | }),
|
3668 |
|
3669 | "ce4e":
|
3670 | (function(module, exports, __webpack_require__) {
|
3671 |
|
3672 | var global = __webpack_require__("da84");
|
3673 | var createNonEnumerableProperty = __webpack_require__("9112");
|
3674 |
|
3675 | module.exports = function (key, value) {
|
3676 | try {
|
3677 | createNonEnumerableProperty(global, key, value);
|
3678 | } catch (error) {
|
3679 | global[key] = value;
|
3680 | } return value;
|
3681 | };
|
3682 |
|
3683 |
|
3684 | }),
|
3685 |
|
3686 | "d012":
|
3687 | (function(module, exports) {
|
3688 |
|
3689 | module.exports = {};
|
3690 |
|
3691 |
|
3692 | }),
|
3693 |
|
3694 | "d039":
|
3695 | (function(module, exports) {
|
3696 |
|
3697 | module.exports = function (exec) {
|
3698 | try {
|
3699 | return !!exec();
|
3700 | } catch (error) {
|
3701 | return true;
|
3702 | }
|
3703 | };
|
3704 |
|
3705 |
|
3706 | }),
|
3707 |
|
3708 | "d066":
|
3709 | (function(module, exports, __webpack_require__) {
|
3710 |
|
3711 | var path = __webpack_require__("428f");
|
3712 | var global = __webpack_require__("da84");
|
3713 |
|
3714 | var aFunction = function (variable) {
|
3715 | return typeof variable == 'function' ? variable : undefined;
|
3716 | };
|
3717 |
|
3718 | module.exports = function (namespace, method) {
|
3719 | return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
|
3720 | : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
|
3721 | };
|
3722 |
|
3723 |
|
3724 | }),
|
3725 |
|
3726 | "d1e7":
|
3727 | (function(module, exports, __webpack_require__) {
|
3728 |
|
3729 | "use strict";
|
3730 |
|
3731 | var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
3732 |
|
3733 | var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
3734 |
|
3735 |
|
3736 | var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
3737 |
|
3738 |
|
3739 |
|
3740 | exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
3741 | var descriptor = getOwnPropertyDescriptor(this, V);
|
3742 | return !!descriptor && descriptor.enumerable;
|
3743 | } : $propertyIsEnumerable;
|
3744 |
|
3745 |
|
3746 | }),
|
3747 |
|
3748 | "d28b":
|
3749 | (function(module, exports, __webpack_require__) {
|
3750 |
|
3751 | var defineWellKnownSymbol = __webpack_require__("746f");
|
3752 |
|
3753 |
|
3754 |
|
3755 | defineWellKnownSymbol('iterator');
|
3756 |
|
3757 |
|
3758 | }),
|
3759 |
|
3760 | "d2bb":
|
3761 | (function(module, exports, __webpack_require__) {
|
3762 |
|
3763 |
|
3764 | var anObject = __webpack_require__("825a");
|
3765 | var aPossiblePrototype = __webpack_require__("3bbe");
|
3766 |
|
3767 |
|
3768 |
|
3769 |
|
3770 |
|
3771 | module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
3772 | var CORRECT_SETTER = false;
|
3773 | var test = {};
|
3774 | var setter;
|
3775 | try {
|
3776 |
|
3777 | setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
3778 | setter.call(test, []);
|
3779 | CORRECT_SETTER = test instanceof Array;
|
3780 | } catch (error) { }
|
3781 | return function setPrototypeOf(O, proto) {
|
3782 | anObject(O);
|
3783 | aPossiblePrototype(proto);
|
3784 | if (CORRECT_SETTER) setter.call(O, proto);
|
3785 | else O.__proto__ = proto;
|
3786 | return O;
|
3787 | };
|
3788 | }() : undefined);
|
3789 |
|
3790 |
|
3791 | }),
|
3792 |
|
3793 | "d3b7":
|
3794 | (function(module, exports, __webpack_require__) {
|
3795 |
|
3796 | var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
|
3797 | var redefine = __webpack_require__("6eeb");
|
3798 | var toString = __webpack_require__("b041");
|
3799 |
|
3800 |
|
3801 |
|
3802 | if (!TO_STRING_TAG_SUPPORT) {
|
3803 | redefine(Object.prototype, 'toString', toString, { unsafe: true });
|
3804 | }
|
3805 |
|
3806 |
|
3807 | }),
|
3808 |
|
3809 | "d44e":
|
3810 | (function(module, exports, __webpack_require__) {
|
3811 |
|
3812 | var defineProperty = __webpack_require__("9bf2").f;
|
3813 | var has = __webpack_require__("5135");
|
3814 | var wellKnownSymbol = __webpack_require__("b622");
|
3815 |
|
3816 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
3817 |
|
3818 | module.exports = function (it, TAG, STATIC) {
|
3819 | if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
|
3820 | defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
|
3821 | }
|
3822 | };
|
3823 |
|
3824 |
|
3825 | }),
|
3826 |
|
3827 | "d784":
|
3828 | (function(module, exports, __webpack_require__) {
|
3829 |
|
3830 | "use strict";
|
3831 |
|
3832 |
|
3833 | __webpack_require__("ac1f");
|
3834 | var redefine = __webpack_require__("6eeb");
|
3835 | var fails = __webpack_require__("d039");
|
3836 | var wellKnownSymbol = __webpack_require__("b622");
|
3837 | var createNonEnumerableProperty = __webpack_require__("9112");
|
3838 |
|
3839 | var SPECIES = wellKnownSymbol('species');
|
3840 |
|
3841 | var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
3842 |
|
3843 |
|
3844 |
|
3845 | var re = /./;
|
3846 | re.exec = function () {
|
3847 | var result = [];
|
3848 | result.groups = { a: '7' };
|
3849 | return result;
|
3850 | };
|
3851 | return ''.replace(re, '$<a>') !== '7';
|
3852 | });
|
3853 |
|
3854 |
|
3855 |
|
3856 | var REPLACE_KEEPS_$0 = (function () {
|
3857 |
|
3858 | return 'a'.replace(/./, '$0') === '$0';
|
3859 | })();
|
3860 |
|
3861 | var REPLACE = wellKnownSymbol('replace');
|
3862 |
|
3863 | var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
3864 | if (/./[REPLACE]) {
|
3865 | return /./[REPLACE]('a', '$0') === '';
|
3866 | }
|
3867 | return false;
|
3868 | })();
|
3869 |
|
3870 |
|
3871 |
|
3872 | var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
3873 |
|
3874 | var re = /(?:)/;
|
3875 | var originalExec = re.exec;
|
3876 | re.exec = function () { return originalExec.apply(this, arguments); };
|
3877 | var result = 'ab'.split(re);
|
3878 | return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
3879 | });
|
3880 |
|
3881 | module.exports = function (KEY, length, exec, sham) {
|
3882 | var SYMBOL = wellKnownSymbol(KEY);
|
3883 |
|
3884 | var DELEGATES_TO_SYMBOL = !fails(function () {
|
3885 |
|
3886 | var O = {};
|
3887 | O[SYMBOL] = function () { return 7; };
|
3888 | return ''[KEY](O) != 7;
|
3889 | });
|
3890 |
|
3891 | var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
|
3892 |
|
3893 | var execCalled = false;
|
3894 | var re = /a/;
|
3895 |
|
3896 | if (KEY === 'split') {
|
3897 |
|
3898 |
|
3899 |
|
3900 | re = {};
|
3901 |
|
3902 |
|
3903 | re.constructor = {};
|
3904 | re.constructor[SPECIES] = function () { return re; };
|
3905 | re.flags = '';
|
3906 | re[SYMBOL] = /./[SYMBOL];
|
3907 | }
|
3908 |
|
3909 | re.exec = function () { execCalled = true; return null; };
|
3910 |
|
3911 | re[SYMBOL]('');
|
3912 | return !execCalled;
|
3913 | });
|
3914 |
|
3915 | if (
|
3916 | !DELEGATES_TO_SYMBOL ||
|
3917 | !DELEGATES_TO_EXEC ||
|
3918 | (KEY === 'replace' && !(
|
3919 | REPLACE_SUPPORTS_NAMED_GROUPS &&
|
3920 | REPLACE_KEEPS_$0 &&
|
3921 | !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
3922 | )) ||
|
3923 | (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
3924 | ) {
|
3925 | var nativeRegExpMethod = /./[SYMBOL];
|
3926 | var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
3927 | if (regexp.exec === RegExp.prototype.exec) {
|
3928 | if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
3929 |
|
3930 |
|
3931 |
|
3932 | return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
3933 | }
|
3934 | return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
3935 | }
|
3936 | return { done: false };
|
3937 | }, {
|
3938 | REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
3939 | REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
3940 | });
|
3941 | var stringMethod = methods[0];
|
3942 | var regexMethod = methods[1];
|
3943 |
|
3944 | redefine(String.prototype, KEY, stringMethod);
|
3945 | redefine(RegExp.prototype, SYMBOL, length == 2
|
3946 |
|
3947 |
|
3948 | ? function (string, arg) { return regexMethod.call(string, this, arg); }
|
3949 |
|
3950 |
|
3951 | : function (string) { return regexMethod.call(string, this); }
|
3952 | );
|
3953 | }
|
3954 |
|
3955 | if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
|
3956 | };
|
3957 |
|
3958 |
|
3959 | }),
|
3960 |
|
3961 | "d81d":
|
3962 | (function(module, exports, __webpack_require__) {
|
3963 |
|
3964 | "use strict";
|
3965 |
|
3966 | var $ = __webpack_require__("23e7");
|
3967 | var $map = __webpack_require__("b727").map;
|
3968 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
3969 |
|
3970 | var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
|
3971 |
|
3972 |
|
3973 |
|
3974 |
|
3975 | $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
3976 | map: function map(callbackfn /* , thisArg */) {
|
3977 | return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
3978 | }
|
3979 | });
|
3980 |
|
3981 |
|
3982 | }),
|
3983 |
|
3984 | "da84":
|
3985 | (function(module, exports, __webpack_require__) {
|
3986 |
|
3987 | (function(global) {var check = function (it) {
|
3988 | return it && it.Math == Math && it;
|
3989 | };
|
3990 |
|
3991 |
|
3992 | module.exports =
|
3993 |
|
3994 | check(typeof globalThis == 'object' && globalThis) ||
|
3995 | check(typeof window == 'object' && window) ||
|
3996 |
|
3997 | check(typeof self == 'object' && self) ||
|
3998 | check(typeof global == 'object' && global) ||
|
3999 |
|
4000 | (function () { return this; })() || Function('return this')();
|
4001 |
|
4002 | }.call(this, __webpack_require__("c8ba")))
|
4003 |
|
4004 | }),
|
4005 |
|
4006 | "dbb4":
|
4007 | (function(module, exports, __webpack_require__) {
|
4008 |
|
4009 | var $ = __webpack_require__("23e7");
|
4010 | var DESCRIPTORS = __webpack_require__("83ab");
|
4011 | var ownKeys = __webpack_require__("56ef");
|
4012 | var toIndexedObject = __webpack_require__("fc6a");
|
4013 | var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
|
4014 | var createProperty = __webpack_require__("8418");
|
4015 |
|
4016 |
|
4017 |
|
4018 | $({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
|
4019 | getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
|
4020 | var O = toIndexedObject(object);
|
4021 | var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
4022 | var keys = ownKeys(O);
|
4023 | var result = {};
|
4024 | var index = 0;
|
4025 | var key, descriptor;
|
4026 | while (keys.length > index) {
|
4027 | descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
|
4028 | if (descriptor !== undefined) createProperty(result, key, descriptor);
|
4029 | }
|
4030 | return result;
|
4031 | }
|
4032 | });
|
4033 |
|
4034 |
|
4035 | }),
|
4036 |
|
4037 | "ddb0":
|
4038 | (function(module, exports, __webpack_require__) {
|
4039 |
|
4040 | var global = __webpack_require__("da84");
|
4041 | var DOMIterables = __webpack_require__("fdbc");
|
4042 | var ArrayIteratorMethods = __webpack_require__("e260");
|
4043 | var createNonEnumerableProperty = __webpack_require__("9112");
|
4044 | var wellKnownSymbol = __webpack_require__("b622");
|
4045 |
|
4046 | var ITERATOR = wellKnownSymbol('iterator');
|
4047 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
4048 | var ArrayValues = ArrayIteratorMethods.values;
|
4049 |
|
4050 | for (var COLLECTION_NAME in DOMIterables) {
|
4051 | var Collection = global[COLLECTION_NAME];
|
4052 | var CollectionPrototype = Collection && Collection.prototype;
|
4053 | if (CollectionPrototype) {
|
4054 |
|
4055 | if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
4056 | createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
4057 | } catch (error) {
|
4058 | CollectionPrototype[ITERATOR] = ArrayValues;
|
4059 | }
|
4060 | if (!CollectionPrototype[TO_STRING_TAG]) {
|
4061 | createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
|
4062 | }
|
4063 | if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
4064 |
|
4065 | if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
4066 | createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
4067 | } catch (error) {
|
4068 | CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
4069 | }
|
4070 | }
|
4071 | }
|
4072 | }
|
4073 |
|
4074 |
|
4075 | }),
|
4076 |
|
4077 | "df75":
|
4078 | (function(module, exports, __webpack_require__) {
|
4079 |
|
4080 | var internalObjectKeys = __webpack_require__("ca84");
|
4081 | var enumBugKeys = __webpack_require__("7839");
|
4082 |
|
4083 |
|
4084 |
|
4085 |
|
4086 | module.exports = Object.keys || function keys(O) {
|
4087 | return internalObjectKeys(O, enumBugKeys);
|
4088 | };
|
4089 |
|
4090 |
|
4091 | }),
|
4092 |
|
4093 | "e01a":
|
4094 | (function(module, exports, __webpack_require__) {
|
4095 |
|
4096 | "use strict";
|
4097 |
|
4098 |
|
4099 |
|
4100 | var $ = __webpack_require__("23e7");
|
4101 | var DESCRIPTORS = __webpack_require__("83ab");
|
4102 | var global = __webpack_require__("da84");
|
4103 | var has = __webpack_require__("5135");
|
4104 | var isObject = __webpack_require__("861d");
|
4105 | var defineProperty = __webpack_require__("9bf2").f;
|
4106 | var copyConstructorProperties = __webpack_require__("e893");
|
4107 |
|
4108 | var NativeSymbol = global.Symbol;
|
4109 |
|
4110 | if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
|
4111 |
|
4112 | NativeSymbol().description !== undefined
|
4113 | )) {
|
4114 | var EmptyStringDescriptionStore = {};
|
4115 |
|
4116 | var SymbolWrapper = function Symbol() {
|
4117 | var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
|
4118 | var result = this instanceof SymbolWrapper
|
4119 | ? new NativeSymbol(description)
|
4120 |
|
4121 | : description === undefined ? NativeSymbol() : NativeSymbol(description);
|
4122 | if (description === '') EmptyStringDescriptionStore[result] = true;
|
4123 | return result;
|
4124 | };
|
4125 | copyConstructorProperties(SymbolWrapper, NativeSymbol);
|
4126 | var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
|
4127 | symbolPrototype.constructor = SymbolWrapper;
|
4128 |
|
4129 | var symbolToString = symbolPrototype.toString;
|
4130 | var native = String(NativeSymbol('test')) == 'Symbol(test)';
|
4131 | var regexp = /^Symbol\((.*)\)[^)]+$/;
|
4132 | defineProperty(symbolPrototype, 'description', {
|
4133 | configurable: true,
|
4134 | get: function description() {
|
4135 | var symbol = isObject(this) ? this.valueOf() : this;
|
4136 | var string = symbolToString.call(symbol);
|
4137 | if (has(EmptyStringDescriptionStore, symbol)) return '';
|
4138 | var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
|
4139 | return desc === '' ? undefined : desc;
|
4140 | }
|
4141 | });
|
4142 |
|
4143 | $({ global: true, forced: true }, {
|
4144 | Symbol: SymbolWrapper
|
4145 | });
|
4146 | }
|
4147 |
|
4148 |
|
4149 | }),
|
4150 |
|
4151 | "e163":
|
4152 | (function(module, exports, __webpack_require__) {
|
4153 |
|
4154 | var has = __webpack_require__("5135");
|
4155 | var toObject = __webpack_require__("7b0b");
|
4156 | var sharedKey = __webpack_require__("f772");
|
4157 | var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
|
4158 |
|
4159 | var IE_PROTO = sharedKey('IE_PROTO');
|
4160 | var ObjectPrototype = Object.prototype;
|
4161 |
|
4162 |
|
4163 |
|
4164 |
|
4165 | module.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {
|
4166 | O = toObject(O);
|
4167 | if (has(O, IE_PROTO)) return O[IE_PROTO];
|
4168 | if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
4169 | return O.constructor.prototype;
|
4170 | } return O instanceof Object ? ObjectPrototype : null;
|
4171 | };
|
4172 |
|
4173 |
|
4174 | }),
|
4175 |
|
4176 | "e177":
|
4177 | (function(module, exports, __webpack_require__) {
|
4178 |
|
4179 | var fails = __webpack_require__("d039");
|
4180 |
|
4181 | module.exports = !fails(function () {
|
4182 | function F() { }
|
4183 | F.prototype.constructor = null;
|
4184 |
|
4185 | return Object.getPrototypeOf(new F()) !== F.prototype;
|
4186 | });
|
4187 |
|
4188 |
|
4189 | }),
|
4190 |
|
4191 | "e260":
|
4192 | (function(module, exports, __webpack_require__) {
|
4193 |
|
4194 | "use strict";
|
4195 |
|
4196 | var toIndexedObject = __webpack_require__("fc6a");
|
4197 | var addToUnscopables = __webpack_require__("44d2");
|
4198 | var Iterators = __webpack_require__("3f8c");
|
4199 | var InternalStateModule = __webpack_require__("69f3");
|
4200 | var defineIterator = __webpack_require__("7dd0");
|
4201 |
|
4202 | var ARRAY_ITERATOR = 'Array Iterator';
|
4203 | var setInternalState = InternalStateModule.set;
|
4204 | var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
|
4205 |
|
4206 |
|
4207 |
|
4208 |
|
4209 |
|
4210 |
|
4211 |
|
4212 |
|
4213 |
|
4214 |
|
4215 |
|
4216 | module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
|
4217 | setInternalState(this, {
|
4218 | type: ARRAY_ITERATOR,
|
4219 | target: toIndexedObject(iterated),
|
4220 | index: 0,
|
4221 | kind: kind
|
4222 | });
|
4223 |
|
4224 |
|
4225 | }, function () {
|
4226 | var state = getInternalState(this);
|
4227 | var target = state.target;
|
4228 | var kind = state.kind;
|
4229 | var index = state.index++;
|
4230 | if (!target || index >= target.length) {
|
4231 | state.target = undefined;
|
4232 | return { value: undefined, done: true };
|
4233 | }
|
4234 | if (kind == 'keys') return { value: index, done: false };
|
4235 | if (kind == 'values') return { value: target[index], done: false };
|
4236 | return { value: [index, target[index]], done: false };
|
4237 | }, 'values');
|
4238 |
|
4239 |
|
4240 |
|
4241 |
|
4242 | Iterators.Arguments = Iterators.Array;
|
4243 |
|
4244 |
|
4245 | addToUnscopables('keys');
|
4246 | addToUnscopables('values');
|
4247 | addToUnscopables('entries');
|
4248 |
|
4249 |
|
4250 | }),
|
4251 |
|
4252 | "e2cc":
|
4253 | (function(module, exports, __webpack_require__) {
|
4254 |
|
4255 | var redefine = __webpack_require__("6eeb");
|
4256 |
|
4257 | module.exports = function (target, src, options) {
|
4258 | for (var key in src) redefine(target, key, src[key], options);
|
4259 | return target;
|
4260 | };
|
4261 |
|
4262 |
|
4263 | }),
|
4264 |
|
4265 | "e439":
|
4266 | (function(module, exports, __webpack_require__) {
|
4267 |
|
4268 | var $ = __webpack_require__("23e7");
|
4269 | var fails = __webpack_require__("d039");
|
4270 | var toIndexedObject = __webpack_require__("fc6a");
|
4271 | var nativeGetOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
4272 | var DESCRIPTORS = __webpack_require__("83ab");
|
4273 |
|
4274 | var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
|
4275 | var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
|
4276 |
|
4277 |
|
4278 |
|
4279 | $({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
|
4280 | getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
|
4281 | return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
|
4282 | }
|
4283 | });
|
4284 |
|
4285 |
|
4286 | }),
|
4287 |
|
4288 | "e538":
|
4289 | (function(module, exports, __webpack_require__) {
|
4290 |
|
4291 | var wellKnownSymbol = __webpack_require__("b622");
|
4292 |
|
4293 | exports.f = wellKnownSymbol;
|
4294 |
|
4295 |
|
4296 | }),
|
4297 |
|
4298 | "e667":
|
4299 | (function(module, exports) {
|
4300 |
|
4301 | module.exports = function (exec) {
|
4302 | try {
|
4303 | return { error: false, value: exec() };
|
4304 | } catch (error) {
|
4305 | return { error: true, value: error };
|
4306 | }
|
4307 | };
|
4308 |
|
4309 |
|
4310 | }),
|
4311 |
|
4312 | "e6cf":
|
4313 | (function(module, exports, __webpack_require__) {
|
4314 |
|
4315 | "use strict";
|
4316 |
|
4317 | var $ = __webpack_require__("23e7");
|
4318 | var IS_PURE = __webpack_require__("c430");
|
4319 | var global = __webpack_require__("da84");
|
4320 | var getBuiltIn = __webpack_require__("d066");
|
4321 | var NativePromise = __webpack_require__("fea9");
|
4322 | var redefine = __webpack_require__("6eeb");
|
4323 | var redefineAll = __webpack_require__("e2cc");
|
4324 | var setToStringTag = __webpack_require__("d44e");
|
4325 | var setSpecies = __webpack_require__("2626");
|
4326 | var isObject = __webpack_require__("861d");
|
4327 | var aFunction = __webpack_require__("1c0b");
|
4328 | var anInstance = __webpack_require__("19aa");
|
4329 | var inspectSource = __webpack_require__("8925");
|
4330 | var iterate = __webpack_require__("2266");
|
4331 | var checkCorrectnessOfIteration = __webpack_require__("1c7e");
|
4332 | var speciesConstructor = __webpack_require__("4840");
|
4333 | var task = __webpack_require__("2cf4").set;
|
4334 | var microtask = __webpack_require__("b575");
|
4335 | var promiseResolve = __webpack_require__("cdf9");
|
4336 | var hostReportErrors = __webpack_require__("44de");
|
4337 | var newPromiseCapabilityModule = __webpack_require__("f069");
|
4338 | var perform = __webpack_require__("e667");
|
4339 | var InternalStateModule = __webpack_require__("69f3");
|
4340 | var isForced = __webpack_require__("94ca");
|
4341 | var wellKnownSymbol = __webpack_require__("b622");
|
4342 | var IS_NODE = __webpack_require__("605d");
|
4343 | var V8_VERSION = __webpack_require__("2d00");
|
4344 |
|
4345 | var SPECIES = wellKnownSymbol('species');
|
4346 | var PROMISE = 'Promise';
|
4347 | var getInternalState = InternalStateModule.get;
|
4348 | var setInternalState = InternalStateModule.set;
|
4349 | var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
4350 | var PromiseConstructor = NativePromise;
|
4351 | var TypeError = global.TypeError;
|
4352 | var document = global.document;
|
4353 | var process = global.process;
|
4354 | var $fetch = getBuiltIn('fetch');
|
4355 | var newPromiseCapability = newPromiseCapabilityModule.f;
|
4356 | var newGenericPromiseCapability = newPromiseCapability;
|
4357 | var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
|
4358 | var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
|
4359 | var UNHANDLED_REJECTION = 'unhandledrejection';
|
4360 | var REJECTION_HANDLED = 'rejectionhandled';
|
4361 | var PENDING = 0;
|
4362 | var FULFILLED = 1;
|
4363 | var REJECTED = 2;
|
4364 | var HANDLED = 1;
|
4365 | var UNHANDLED = 2;
|
4366 | var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
4367 |
|
4368 | var FORCED = isForced(PROMISE, function () {
|
4369 | var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
|
4370 | if (!GLOBAL_CORE_JS_PROMISE) {
|
4371 |
|
4372 |
|
4373 |
|
4374 | if (V8_VERSION === 66) return true;
|
4375 |
|
4376 | if (!IS_NODE && !NATIVE_REJECTION_EVENT) return true;
|
4377 | }
|
4378 |
|
4379 | if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
|
4380 |
|
4381 |
|
4382 |
|
4383 | if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
|
4384 |
|
4385 | var promise = PromiseConstructor.resolve(1);
|
4386 | var FakePromise = function (exec) {
|
4387 | exec(function () { }, function () { });
|
4388 | };
|
4389 | var constructor = promise.constructor = {};
|
4390 | constructor[SPECIES] = FakePromise;
|
4391 | return !(promise.then(function () { }) instanceof FakePromise);
|
4392 | });
|
4393 |
|
4394 | var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
|
4395 | PromiseConstructor.all(iterable)['catch'](function () { });
|
4396 | });
|
4397 |
|
4398 |
|
4399 | var isThenable = function (it) {
|
4400 | var then;
|
4401 | return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
4402 | };
|
4403 |
|
4404 | var notify = function (state, isReject) {
|
4405 | if (state.notified) return;
|
4406 | state.notified = true;
|
4407 | var chain = state.reactions;
|
4408 | microtask(function () {
|
4409 | var value = state.value;
|
4410 | var ok = state.state == FULFILLED;
|
4411 | var index = 0;
|
4412 |
|
4413 | while (chain.length > index) {
|
4414 | var reaction = chain[index++];
|
4415 | var handler = ok ? reaction.ok : reaction.fail;
|
4416 | var resolve = reaction.resolve;
|
4417 | var reject = reaction.reject;
|
4418 | var domain = reaction.domain;
|
4419 | var result, then, exited;
|
4420 | try {
|
4421 | if (handler) {
|
4422 | if (!ok) {
|
4423 | if (state.rejection === UNHANDLED) onHandleUnhandled(state);
|
4424 | state.rejection = HANDLED;
|
4425 | }
|
4426 | if (handler === true) result = value;
|
4427 | else {
|
4428 | if (domain) domain.enter();
|
4429 | result = handler(value);
|
4430 | if (domain) {
|
4431 | domain.exit();
|
4432 | exited = true;
|
4433 | }
|
4434 | }
|
4435 | if (result === reaction.promise) {
|
4436 | reject(TypeError('Promise-chain cycle'));
|
4437 | } else if (then = isThenable(result)) {
|
4438 | then.call(result, resolve, reject);
|
4439 | } else resolve(result);
|
4440 | } else reject(value);
|
4441 | } catch (error) {
|
4442 | if (domain && !exited) domain.exit();
|
4443 | reject(error);
|
4444 | }
|
4445 | }
|
4446 | state.reactions = [];
|
4447 | state.notified = false;
|
4448 | if (isReject && !state.rejection) onUnhandled(state);
|
4449 | });
|
4450 | };
|
4451 |
|
4452 | var dispatchEvent = function (name, promise, reason) {
|
4453 | var event, handler;
|
4454 | if (DISPATCH_EVENT) {
|
4455 | event = document.createEvent('Event');
|
4456 | event.promise = promise;
|
4457 | event.reason = reason;
|
4458 | event.initEvent(name, false, true);
|
4459 | global.dispatchEvent(event);
|
4460 | } else event = { promise: promise, reason: reason };
|
4461 | if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
|
4462 | else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
4463 | };
|
4464 |
|
4465 | var onUnhandled = function (state) {
|
4466 | task.call(global, function () {
|
4467 | var promise = state.facade;
|
4468 | var value = state.value;
|
4469 | var IS_UNHANDLED = isUnhandled(state);
|
4470 | var result;
|
4471 | if (IS_UNHANDLED) {
|
4472 | result = perform(function () {
|
4473 | if (IS_NODE) {
|
4474 | process.emit('unhandledRejection', value, promise);
|
4475 | } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
4476 | });
|
4477 |
|
4478 | state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
4479 | if (result.error) throw result.value;
|
4480 | }
|
4481 | });
|
4482 | };
|
4483 |
|
4484 | var isUnhandled = function (state) {
|
4485 | return state.rejection !== HANDLED && !state.parent;
|
4486 | };
|
4487 |
|
4488 | var onHandleUnhandled = function (state) {
|
4489 | task.call(global, function () {
|
4490 | var promise = state.facade;
|
4491 | if (IS_NODE) {
|
4492 | process.emit('rejectionHandled', promise);
|
4493 | } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
4494 | });
|
4495 | };
|
4496 |
|
4497 | var bind = function (fn, state, unwrap) {
|
4498 | return function (value) {
|
4499 | fn(state, value, unwrap);
|
4500 | };
|
4501 | };
|
4502 |
|
4503 | var internalReject = function (state, value, unwrap) {
|
4504 | if (state.done) return;
|
4505 | state.done = true;
|
4506 | if (unwrap) state = unwrap;
|
4507 | state.value = value;
|
4508 | state.state = REJECTED;
|
4509 | notify(state, true);
|
4510 | };
|
4511 |
|
4512 | var internalResolve = function (state, value, unwrap) {
|
4513 | if (state.done) return;
|
4514 | state.done = true;
|
4515 | if (unwrap) state = unwrap;
|
4516 | try {
|
4517 | if (state.facade === value) throw TypeError("Promise can't be resolved itself");
|
4518 | var then = isThenable(value);
|
4519 | if (then) {
|
4520 | microtask(function () {
|
4521 | var wrapper = { done: false };
|
4522 | try {
|
4523 | then.call(value,
|
4524 | bind(internalResolve, wrapper, state),
|
4525 | bind(internalReject, wrapper, state)
|
4526 | );
|
4527 | } catch (error) {
|
4528 | internalReject(wrapper, error, state);
|
4529 | }
|
4530 | });
|
4531 | } else {
|
4532 | state.value = value;
|
4533 | state.state = FULFILLED;
|
4534 | notify(state, false);
|
4535 | }
|
4536 | } catch (error) {
|
4537 | internalReject({ done: false }, error, state);
|
4538 | }
|
4539 | };
|
4540 |
|
4541 |
|
4542 | if (FORCED) {
|
4543 |
|
4544 | PromiseConstructor = function Promise(executor) {
|
4545 | anInstance(this, PromiseConstructor, PROMISE);
|
4546 | aFunction(executor);
|
4547 | Internal.call(this);
|
4548 | var state = getInternalState(this);
|
4549 | try {
|
4550 | executor(bind(internalResolve, state), bind(internalReject, state));
|
4551 | } catch (error) {
|
4552 | internalReject(state, error);
|
4553 | }
|
4554 | };
|
4555 |
|
4556 | Internal = function Promise(executor) {
|
4557 | setInternalState(this, {
|
4558 | type: PROMISE,
|
4559 | done: false,
|
4560 | notified: false,
|
4561 | parent: false,
|
4562 | reactions: [],
|
4563 | rejection: false,
|
4564 | state: PENDING,
|
4565 | value: undefined
|
4566 | });
|
4567 | };
|
4568 | Internal.prototype = redefineAll(PromiseConstructor.prototype, {
|
4569 |
|
4570 |
|
4571 | then: function then(onFulfilled, onRejected) {
|
4572 | var state = getInternalPromiseState(this);
|
4573 | var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
|
4574 | reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
4575 | reaction.fail = typeof onRejected == 'function' && onRejected;
|
4576 | reaction.domain = IS_NODE ? process.domain : undefined;
|
4577 | state.parent = true;
|
4578 | state.reactions.push(reaction);
|
4579 | if (state.state != PENDING) notify(state, false);
|
4580 | return reaction.promise;
|
4581 | },
|
4582 |
|
4583 |
|
4584 | 'catch': function (onRejected) {
|
4585 | return this.then(undefined, onRejected);
|
4586 | }
|
4587 | });
|
4588 | OwnPromiseCapability = function () {
|
4589 | var promise = new Internal();
|
4590 | var state = getInternalState(promise);
|
4591 | this.promise = promise;
|
4592 | this.resolve = bind(internalResolve, state);
|
4593 | this.reject = bind(internalReject, state);
|
4594 | };
|
4595 | newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
4596 | return C === PromiseConstructor || C === PromiseWrapper
|
4597 | ? new OwnPromiseCapability(C)
|
4598 | : newGenericPromiseCapability(C);
|
4599 | };
|
4600 |
|
4601 | if (!IS_PURE && typeof NativePromise == 'function') {
|
4602 | nativeThen = NativePromise.prototype.then;
|
4603 |
|
4604 |
|
4605 | redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
|
4606 | var that = this;
|
4607 | return new PromiseConstructor(function (resolve, reject) {
|
4608 | nativeThen.call(that, resolve, reject);
|
4609 | }).then(onFulfilled, onRejected);
|
4610 |
|
4611 | }, { unsafe: true });
|
4612 |
|
4613 |
|
4614 | if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
|
4615 |
|
4616 | fetch: function fetch(input /* , init */) {
|
4617 | return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
|
4618 | }
|
4619 | });
|
4620 | }
|
4621 | }
|
4622 |
|
4623 | $({ global: true, wrap: true, forced: FORCED }, {
|
4624 | Promise: PromiseConstructor
|
4625 | });
|
4626 |
|
4627 | setToStringTag(PromiseConstructor, PROMISE, false, true);
|
4628 | setSpecies(PROMISE);
|
4629 |
|
4630 | PromiseWrapper = getBuiltIn(PROMISE);
|
4631 |
|
4632 |
|
4633 | $({ target: PROMISE, stat: true, forced: FORCED }, {
|
4634 |
|
4635 |
|
4636 | reject: function reject(r) {
|
4637 | var capability = newPromiseCapability(this);
|
4638 | capability.reject.call(undefined, r);
|
4639 | return capability.promise;
|
4640 | }
|
4641 | });
|
4642 |
|
4643 | $({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
|
4644 |
|
4645 |
|
4646 | resolve: function resolve(x) {
|
4647 | return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
|
4648 | }
|
4649 | });
|
4650 |
|
4651 | $({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
4652 |
|
4653 |
|
4654 | all: function all(iterable) {
|
4655 | var C = this;
|
4656 | var capability = newPromiseCapability(C);
|
4657 | var resolve = capability.resolve;
|
4658 | var reject = capability.reject;
|
4659 | var result = perform(function () {
|
4660 | var $promiseResolve = aFunction(C.resolve);
|
4661 | var values = [];
|
4662 | var counter = 0;
|
4663 | var remaining = 1;
|
4664 | iterate(iterable, function (promise) {
|
4665 | var index = counter++;
|
4666 | var alreadyCalled = false;
|
4667 | values.push(undefined);
|
4668 | remaining++;
|
4669 | $promiseResolve.call(C, promise).then(function (value) {
|
4670 | if (alreadyCalled) return;
|
4671 | alreadyCalled = true;
|
4672 | values[index] = value;
|
4673 | --remaining || resolve(values);
|
4674 | }, reject);
|
4675 | });
|
4676 | --remaining || resolve(values);
|
4677 | });
|
4678 | if (result.error) reject(result.value);
|
4679 | return capability.promise;
|
4680 | },
|
4681 |
|
4682 |
|
4683 | race: function race(iterable) {
|
4684 | var C = this;
|
4685 | var capability = newPromiseCapability(C);
|
4686 | var reject = capability.reject;
|
4687 | var result = perform(function () {
|
4688 | var $promiseResolve = aFunction(C.resolve);
|
4689 | iterate(iterable, function (promise) {
|
4690 | $promiseResolve.call(C, promise).then(capability.resolve, reject);
|
4691 | });
|
4692 | });
|
4693 | if (result.error) reject(result.value);
|
4694 | return capability.promise;
|
4695 | }
|
4696 | });
|
4697 |
|
4698 |
|
4699 | }),
|
4700 |
|
4701 | "e893":
|
4702 | (function(module, exports, __webpack_require__) {
|
4703 |
|
4704 | var has = __webpack_require__("5135");
|
4705 | var ownKeys = __webpack_require__("56ef");
|
4706 | var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
|
4707 | var definePropertyModule = __webpack_require__("9bf2");
|
4708 |
|
4709 | module.exports = function (target, source) {
|
4710 | var keys = ownKeys(source);
|
4711 | var defineProperty = definePropertyModule.f;
|
4712 | var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
4713 | for (var i = 0; i < keys.length; i++) {
|
4714 | var key = keys[i];
|
4715 | if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
4716 | }
|
4717 | };
|
4718 |
|
4719 |
|
4720 | }),
|
4721 |
|
4722 | "e8b5":
|
4723 | (function(module, exports, __webpack_require__) {
|
4724 |
|
4725 | var classof = __webpack_require__("c6b6");
|
4726 |
|
4727 |
|
4728 |
|
4729 |
|
4730 | module.exports = Array.isArray || function isArray(arg) {
|
4731 | return classof(arg) == 'Array';
|
4732 | };
|
4733 |
|
4734 |
|
4735 | }),
|
4736 |
|
4737 | "e95a":
|
4738 | (function(module, exports, __webpack_require__) {
|
4739 |
|
4740 | var wellKnownSymbol = __webpack_require__("b622");
|
4741 | var Iterators = __webpack_require__("3f8c");
|
4742 |
|
4743 | var ITERATOR = wellKnownSymbol('iterator');
|
4744 | var ArrayPrototype = Array.prototype;
|
4745 |
|
4746 |
|
4747 | module.exports = function (it) {
|
4748 | return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
|
4749 | };
|
4750 |
|
4751 |
|
4752 | }),
|
4753 |
|
4754 | "f069":
|
4755 | (function(module, exports, __webpack_require__) {
|
4756 |
|
4757 | "use strict";
|
4758 |
|
4759 | var aFunction = __webpack_require__("1c0b");
|
4760 |
|
4761 | var PromiseCapability = function (C) {
|
4762 | var resolve, reject;
|
4763 | this.promise = new C(function ($$resolve, $$reject) {
|
4764 | if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
4765 | resolve = $$resolve;
|
4766 | reject = $$reject;
|
4767 | });
|
4768 | this.resolve = aFunction(resolve);
|
4769 | this.reject = aFunction(reject);
|
4770 | };
|
4771 |
|
4772 |
|
4773 | module.exports.f = function (C) {
|
4774 | return new PromiseCapability(C);
|
4775 | };
|
4776 |
|
4777 |
|
4778 | }),
|
4779 |
|
4780 | "f5df":
|
4781 | (function(module, exports, __webpack_require__) {
|
4782 |
|
4783 | var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
|
4784 | var classofRaw = __webpack_require__("c6b6");
|
4785 | var wellKnownSymbol = __webpack_require__("b622");
|
4786 |
|
4787 | var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
4788 |
|
4789 | var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
4790 |
|
4791 |
|
4792 | var tryGet = function (it, key) {
|
4793 | try {
|
4794 | return it[key];
|
4795 | } catch (error) { }
|
4796 | };
|
4797 |
|
4798 |
|
4799 | module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
4800 | var O, tag, result;
|
4801 | return it === undefined ? 'Undefined' : it === null ? 'Null'
|
4802 |
|
4803 | : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
|
4804 |
|
4805 | : CORRECT_ARGUMENTS ? classofRaw(O)
|
4806 |
|
4807 | : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
|
4808 | };
|
4809 |
|
4810 |
|
4811 | }),
|
4812 |
|
4813 | "f772":
|
4814 | (function(module, exports, __webpack_require__) {
|
4815 |
|
4816 | var shared = __webpack_require__("5692");
|
4817 | var uid = __webpack_require__("90e3");
|
4818 |
|
4819 | var keys = shared('keys');
|
4820 |
|
4821 | module.exports = function (key) {
|
4822 | return keys[key] || (keys[key] = uid(key));
|
4823 | };
|
4824 |
|
4825 |
|
4826 | }),
|
4827 |
|
4828 | "fb15":
|
4829 | (function(module, __webpack_exports__, __webpack_require__) {
|
4830 |
|
4831 | "use strict";
|
4832 |
|
4833 | __webpack_require__.r(__webpack_exports__);
|
4834 |
|
4835 |
|
4836 |
|
4837 |
|
4838 | if (typeof window !== 'undefined') {
|
4839 | var currentScript = window.document.currentScript
|
4840 | if (true) {
|
4841 | var getCurrentScript = __webpack_require__("8875")
|
4842 | currentScript = getCurrentScript()
|
4843 |
|
4844 |
|
4845 | if (!('currentScript' in document)) {
|
4846 | Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
|
4847 | }
|
4848 | }
|
4849 |
|
4850 | var setPublicPath_src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
4851 | if (setPublicPath_src) {
|
4852 | __webpack_require__.p = setPublicPath_src[1]
|
4853 | }
|
4854 | }
|
4855 |
|
4856 |
|
4857 | var setPublicPath = (null);
|
4858 |
|
4859 |
|
4860 | var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
|
4861 |
|
4862 |
|
4863 |
|
4864 | var _hoisted_1 = {
|
4865 | ref: "container",
|
4866 | class: "lightgallery-vue"
|
4867 | };
|
4868 | function render(_ctx, _cache, $props, $setup, $data, $options) {
|
4869 | return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", _hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "default")], 512);
|
4870 | }
|
4871 |
|
4872 |
|
4873 |
|
4874 | var es_object_keys = __webpack_require__("b64b");
|
4875 |
|
4876 |
|
4877 | var es_symbol = __webpack_require__("a4d3");
|
4878 |
|
4879 |
|
4880 | var es_array_filter = __webpack_require__("4de4");
|
4881 |
|
4882 |
|
4883 | var es_object_get_own_property_descriptor = __webpack_require__("e439");
|
4884 |
|
4885 |
|
4886 | var web_dom_collections_for_each = __webpack_require__("159b");
|
4887 |
|
4888 |
|
4889 | var es_object_get_own_property_descriptors = __webpack_require__("dbb4");
|
4890 |
|
4891 |
|
4892 | function _defineProperty(obj, key, value) {
|
4893 | if (key in obj) {
|
4894 | Object.defineProperty(obj, key, {
|
4895 | value: value,
|
4896 | enumerable: true,
|
4897 | configurable: true,
|
4898 | writable: true
|
4899 | });
|
4900 | } else {
|
4901 | obj[key] = value;
|
4902 | }
|
4903 |
|
4904 | return obj;
|
4905 | }
|
4906 |
|
4907 |
|
4908 |
|
4909 |
|
4910 |
|
4911 |
|
4912 |
|
4913 |
|
4914 |
|
4915 | function ownKeys(object, enumerableOnly) {
|
4916 | var keys = Object.keys(object);
|
4917 |
|
4918 | if (Object.getOwnPropertySymbols) {
|
4919 | var symbols = Object.getOwnPropertySymbols(object);
|
4920 | if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
4921 | return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
4922 | });
|
4923 | keys.push.apply(keys, symbols);
|
4924 | }
|
4925 |
|
4926 | return keys;
|
4927 | }
|
4928 |
|
4929 | function _objectSpread2(target) {
|
4930 | for (var i = 1; i < arguments.length; i++) {
|
4931 | var source = arguments[i] != null ? arguments[i] : {};
|
4932 |
|
4933 | if (i % 2) {
|
4934 | ownKeys(Object(source), true).forEach(function (key) {
|
4935 | _defineProperty(target, key, source[key]);
|
4936 | });
|
4937 | } else if (Object.getOwnPropertyDescriptors) {
|
4938 | Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
4939 | } else {
|
4940 | ownKeys(Object(source)).forEach(function (key) {
|
4941 | Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
4942 | });
|
4943 | }
|
4944 | }
|
4945 |
|
4946 | return target;
|
4947 | }
|
4948 |
|
4949 | function _classCallCheck(instance, Constructor) {
|
4950 | if (!(instance instanceof Constructor)) {
|
4951 | throw new TypeError("Cannot call a class as a function");
|
4952 | }
|
4953 | }
|
4954 |
|
4955 | function _defineProperties(target, props) {
|
4956 | for (var i = 0; i < props.length; i++) {
|
4957 | var descriptor = props[i];
|
4958 | descriptor.enumerable = descriptor.enumerable || false;
|
4959 | descriptor.configurable = true;
|
4960 | if ("value" in descriptor) descriptor.writable = true;
|
4961 | Object.defineProperty(target, descriptor.key, descriptor);
|
4962 | }
|
4963 | }
|
4964 |
|
4965 | function _createClass(Constructor, protoProps, staticProps) {
|
4966 | if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
4967 | if (staticProps) _defineProperties(Constructor, staticProps);
|
4968 | return Constructor;
|
4969 | }
|
4970 |
|
4971 | function _setPrototypeOf(o, p) {
|
4972 | _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
4973 | o.__proto__ = p;
|
4974 | return o;
|
4975 | };
|
4976 |
|
4977 | return _setPrototypeOf(o, p);
|
4978 | }
|
4979 |
|
4980 |
|
4981 | function _inherits(subClass, superClass) {
|
4982 | if (typeof superClass !== "function" && superClass !== null) {
|
4983 | throw new TypeError("Super expression must either be null or a function");
|
4984 | }
|
4985 |
|
4986 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
4987 | constructor: {
|
4988 | value: subClass,
|
4989 | writable: true,
|
4990 | configurable: true
|
4991 | }
|
4992 | });
|
4993 | if (superClass) _setPrototypeOf(subClass, superClass);
|
4994 | }
|
4995 |
|
4996 | var es_reflect_construct = __webpack_require__("4ae1");
|
4997 |
|
4998 |
|
4999 | var es_object_get_prototype_of = __webpack_require__("3410");
|
5000 |
|
5001 |
|
5002 |
|
5003 | function _getPrototypeOf(o) {
|
5004 | _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
5005 | return o.__proto__ || Object.getPrototypeOf(o);
|
5006 | };
|
5007 | return _getPrototypeOf(o);
|
5008 | }
|
5009 |
|
5010 |
|
5011 | function _isNativeReflectConstruct() {
|
5012 | if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
5013 | if (Reflect.construct.sham) return false;
|
5014 | if (typeof Proxy === "function") return true;
|
5015 |
|
5016 | try {
|
5017 | Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
5018 | return true;
|
5019 | } catch (e) {
|
5020 | return false;
|
5021 | }
|
5022 | }
|
5023 |
|
5024 | var helpers_typeof = __webpack_require__("7037");
|
5025 | var typeof_default = __webpack_require__.n(helpers_typeof);
|
5026 |
|
5027 |
|
5028 | function _assertThisInitialized(self) {
|
5029 | if (self === void 0) {
|
5030 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
5031 | }
|
5032 |
|
5033 | return self;
|
5034 | }
|
5035 |
|
5036 |
|
5037 |
|
5038 | function _possibleConstructorReturn(self, call) {
|
5039 | if (call && (typeof_default()(call) === "object" || typeof call === "function")) {
|
5040 | return call;
|
5041 | }
|
5042 |
|
5043 | return _assertThisInitialized(self);
|
5044 | }
|
5045 |
|
5046 |
|
5047 |
|
5048 |
|
5049 |
|
5050 | function _createSuper(Derived) {
|
5051 | var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
5052 | return function _createSuperInternal() {
|
5053 | var Super = _getPrototypeOf(Derived),
|
5054 | result;
|
5055 |
|
5056 | if (hasNativeReflectConstruct) {
|
5057 | var NewTarget = _getPrototypeOf(this).constructor;
|
5058 | result = Reflect.construct(Super, arguments, NewTarget);
|
5059 | } else {
|
5060 | result = Super.apply(this, arguments);
|
5061 | }
|
5062 |
|
5063 | return _possibleConstructorReturn(this, result);
|
5064 | };
|
5065 | }
|
5066 |
|
5067 | var es_array_slice = __webpack_require__("fb6a");
|
5068 |
|
5069 |
|
5070 | var es_regexp_exec = __webpack_require__("ac1f");
|
5071 |
|
5072 |
|
5073 | var es_string_split = __webpack_require__("1276");
|
5074 |
|
5075 |
|
5076 |
|
5077 |
|
5078 |
|
5079 |
|
5080 |
|
5081 |
|
5082 |
|
5083 |
|
5084 |
|
5085 |
|
5086 |
|
5087 |
|
5088 |
|
5089 |
|
5090 |
|
5091 |
|
5092 | var extendStatics = function(d, b) {
|
5093 | extendStatics = Object.setPrototypeOf ||
|
5094 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5095 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
5096 | return extendStatics(d, b);
|
5097 | };
|
5098 |
|
5099 | function __extends(d, b) {
|
5100 | extendStatics(d, b);
|
5101 | function __() { this.constructor = d; }
|
5102 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
5103 | }
|
5104 |
|
5105 | var __assign = function() {
|
5106 | __assign = Object.assign || function __assign(t) {
|
5107 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5108 | s = arguments[i];
|
5109 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
5110 | }
|
5111 | return t;
|
5112 | }
|
5113 | return __assign.apply(this, arguments);
|
5114 | }
|
5115 |
|
5116 | function __rest(s, e) {
|
5117 | var t = {};
|
5118 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
5119 | t[p] = s[p];
|
5120 | if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
5121 | for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
5122 | if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
5123 | t[p[i]] = s[p[i]];
|
5124 | }
|
5125 | return t;
|
5126 | }
|
5127 |
|
5128 | function __decorate(decorators, target, key, desc) {
|
5129 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
5130 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5131 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5132 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
5133 | }
|
5134 |
|
5135 | function __param(paramIndex, decorator) {
|
5136 | return function (target, key) { decorator(target, key, paramIndex); }
|
5137 | }
|
5138 |
|
5139 | function __metadata(metadataKey, metadataValue) {
|
5140 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
5141 | }
|
5142 |
|
5143 | function __awaiter(thisArg, _arguments, P, generator) {
|
5144 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
5145 | return new (P || (P = Promise))(function (resolve, reject) {
|
5146 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
5147 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
5148 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
5149 | step((generator = generator.apply(thisArg, _arguments || [])).next());
|
5150 | });
|
5151 | }
|
5152 |
|
5153 | function __generator(thisArg, body) {
|
5154 | var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
5155 | return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
5156 | function verb(n) { return function (v) { return step([n, v]); }; }
|
5157 | function step(op) {
|
5158 | if (f) throw new TypeError("Generator is already executing.");
|
5159 | while (_) try {
|
5160 | if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
5161 | if (y = 0, t) op = [op[0] & 2, t.value];
|
5162 | switch (op[0]) {
|
5163 | case 0: case 1: t = op; break;
|
5164 | case 4: _.label++; return { value: op[1], done: false };
|
5165 | case 5: _.label++; y = op[1]; op = [0]; continue;
|
5166 | case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
5167 | default:
|
5168 | if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
5169 | if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
5170 | if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
5171 | if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
5172 | if (t[2]) _.ops.pop();
|
5173 | _.trys.pop(); continue;
|
5174 | }
|
5175 | op = body.call(thisArg, _);
|
5176 | } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
5177 | if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
5178 | }
|
5179 | }
|
5180 |
|
5181 | function __createBinding(o, m, k, k2) {
|
5182 | if (k2 === undefined) k2 = k;
|
5183 | o[k2] = m[k];
|
5184 | }
|
5185 |
|
5186 | function __exportStar(m, exports) {
|
5187 | for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
|
5188 | }
|
5189 |
|
5190 | function __values(o) {
|
5191 | var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
5192 | if (m) return m.call(o);
|
5193 | if (o && typeof o.length === "number") return {
|
5194 | next: function () {
|
5195 | if (o && i >= o.length) o = void 0;
|
5196 | return { value: o && o[i++], done: !o };
|
5197 | }
|
5198 | };
|
5199 | throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
5200 | }
|
5201 |
|
5202 | function __read(o, n) {
|
5203 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
5204 | if (!m) return o;
|
5205 | var i = m.call(o), r, ar = [], e;
|
5206 | try {
|
5207 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
5208 | }
|
5209 | catch (error) { e = { error: error }; }
|
5210 | finally {
|
5211 | try {
|
5212 | if (r && !r.done && (m = i["return"])) m.call(i);
|
5213 | }
|
5214 | finally { if (e) throw e.error; }
|
5215 | }
|
5216 | return ar;
|
5217 | }
|
5218 |
|
5219 | function __spread() {
|
5220 | for (var ar = [], i = 0; i < arguments.length; i++)
|
5221 | ar = ar.concat(__read(arguments[i]));
|
5222 | return ar;
|
5223 | }
|
5224 |
|
5225 | function __spreadArrays() {
|
5226 | for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
5227 | for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
5228 | for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
5229 | r[k] = a[j];
|
5230 | return r;
|
5231 | };
|
5232 |
|
5233 | function __await(v) {
|
5234 | return this instanceof __await ? (this.v = v, this) : new __await(v);
|
5235 | }
|
5236 |
|
5237 | function __asyncGenerator(thisArg, _arguments, generator) {
|
5238 | if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
5239 | var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
5240 | return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
5241 | function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
5242 | function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
5243 | function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
5244 | function fulfill(value) { resume("next", value); }
|
5245 | function reject(value) { resume("throw", value); }
|
5246 | function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
5247 | }
|
5248 |
|
5249 | function __asyncDelegator(o) {
|
5250 | var i, p;
|
5251 | return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
5252 | function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
5253 | }
|
5254 |
|
5255 | function __asyncValues(o) {
|
5256 | if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
5257 | var m = o[Symbol.asyncIterator], i;
|
5258 | return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
5259 | function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
5260 | function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
5261 | }
|
5262 |
|
5263 | function __makeTemplateObject(cooked, raw) {
|
5264 | if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
5265 | return cooked;
|
5266 | };
|
5267 |
|
5268 | function __importStar(mod) {
|
5269 | if (mod && mod.__esModule) return mod;
|
5270 | var result = {};
|
5271 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
5272 | result.default = mod;
|
5273 | return result;
|
5274 | }
|
5275 |
|
5276 | function __importDefault(mod) {
|
5277 | return (mod && mod.__esModule) ? mod : { default: mod };
|
5278 | }
|
5279 |
|
5280 | function __classPrivateFieldGet(receiver, privateMap) {
|
5281 | if (!privateMap.has(receiver)) {
|
5282 | throw new TypeError("attempted to get private field on non-instance");
|
5283 | }
|
5284 | return privateMap.get(receiver);
|
5285 | }
|
5286 |
|
5287 | function __classPrivateFieldSet(receiver, privateMap, value) {
|
5288 | if (!privateMap.has(receiver)) {
|
5289 | throw new TypeError("attempted to set private field on non-instance");
|
5290 | }
|
5291 | privateMap.set(receiver, value);
|
5292 | return value;
|
5293 | }
|
5294 |
|
5295 |
|
5296 |
|
5297 |
|
5298 |
|
5299 |
|
5300 |
|
5301 |
|
5302 |
|
5303 | function vue_class_component_esm_bundler_classCallCheck(instance, Constructor) {
|
5304 | if (!(instance instanceof Constructor)) {
|
5305 | throw new TypeError("Cannot call a class as a function");
|
5306 | }
|
5307 | }
|
5308 |
|
5309 | function vue_class_component_esm_bundler_defineProperties(target, props) {
|
5310 | for (var i = 0; i < props.length; i++) {
|
5311 | var descriptor = props[i];
|
5312 | descriptor.enumerable = descriptor.enumerable || false;
|
5313 | descriptor.configurable = true;
|
5314 | if ("value" in descriptor) descriptor.writable = true;
|
5315 | Object.defineProperty(target, descriptor.key, descriptor);
|
5316 | }
|
5317 | }
|
5318 |
|
5319 | function vue_class_component_esm_bundler_createClass(Constructor, protoProps, staticProps) {
|
5320 | if (protoProps) vue_class_component_esm_bundler_defineProperties(Constructor.prototype, protoProps);
|
5321 | if (staticProps) vue_class_component_esm_bundler_defineProperties(Constructor, staticProps);
|
5322 | return Constructor;
|
5323 | }
|
5324 |
|
5325 | function vue_class_component_esm_bundler_defineProperty(obj, key, value) {
|
5326 | if (key in obj) {
|
5327 | Object.defineProperty(obj, key, {
|
5328 | value: value,
|
5329 | enumerable: true,
|
5330 | configurable: true,
|
5331 | writable: true
|
5332 | });
|
5333 | } else {
|
5334 | obj[key] = value;
|
5335 | }
|
5336 |
|
5337 | return obj;
|
5338 | }
|
5339 |
|
5340 | function vue_class_component_esm_bundler_ownKeys(object, enumerableOnly) {
|
5341 | var keys = Object.keys(object);
|
5342 |
|
5343 | if (Object.getOwnPropertySymbols) {
|
5344 | var symbols = Object.getOwnPropertySymbols(object);
|
5345 | if (enumerableOnly) symbols = symbols.filter(function (sym) {
|
5346 | return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
5347 | });
|
5348 | keys.push.apply(keys, symbols);
|
5349 | }
|
5350 |
|
5351 | return keys;
|
5352 | }
|
5353 |
|
5354 | function vue_class_component_esm_bundler_objectSpread2(target) {
|
5355 | for (var i = 1; i < arguments.length; i++) {
|
5356 | var source = arguments[i] != null ? arguments[i] : {};
|
5357 |
|
5358 | if (i % 2) {
|
5359 | vue_class_component_esm_bundler_ownKeys(Object(source), true).forEach(function (key) {
|
5360 | vue_class_component_esm_bundler_defineProperty(target, key, source[key]);
|
5361 | });
|
5362 | } else if (Object.getOwnPropertyDescriptors) {
|
5363 | Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
5364 | } else {
|
5365 | vue_class_component_esm_bundler_ownKeys(Object(source)).forEach(function (key) {
|
5366 | Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
5367 | });
|
5368 | }
|
5369 | }
|
5370 |
|
5371 | return target;
|
5372 | }
|
5373 |
|
5374 | function vue_class_component_esm_bundler_inherits(subClass, superClass) {
|
5375 | if (typeof superClass !== "function" && superClass !== null) {
|
5376 | throw new TypeError("Super expression must either be null or a function");
|
5377 | }
|
5378 |
|
5379 | subClass.prototype = Object.create(superClass && superClass.prototype, {
|
5380 | constructor: {
|
5381 | value: subClass,
|
5382 | writable: true,
|
5383 | configurable: true
|
5384 | }
|
5385 | });
|
5386 | if (superClass) vue_class_component_esm_bundler_setPrototypeOf(subClass, superClass);
|
5387 | }
|
5388 |
|
5389 | function vue_class_component_esm_bundler_getPrototypeOf(o) {
|
5390 | vue_class_component_esm_bundler_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
5391 | return o.__proto__ || Object.getPrototypeOf(o);
|
5392 | };
|
5393 | return vue_class_component_esm_bundler_getPrototypeOf(o);
|
5394 | }
|
5395 |
|
5396 | function vue_class_component_esm_bundler_setPrototypeOf(o, p) {
|
5397 | vue_class_component_esm_bundler_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
5398 | o.__proto__ = p;
|
5399 | return o;
|
5400 | };
|
5401 |
|
5402 | return vue_class_component_esm_bundler_setPrototypeOf(o, p);
|
5403 | }
|
5404 |
|
5405 | function vue_class_component_esm_bundler_isNativeReflectConstruct() {
|
5406 | if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
5407 | if (Reflect.construct.sham) return false;
|
5408 | if (typeof Proxy === "function") return true;
|
5409 |
|
5410 | try {
|
5411 | Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
5412 | return true;
|
5413 | } catch (e) {
|
5414 | return false;
|
5415 | }
|
5416 | }
|
5417 |
|
5418 | function _construct(Parent, args, Class) {
|
5419 | if (vue_class_component_esm_bundler_isNativeReflectConstruct()) {
|
5420 | _construct = Reflect.construct;
|
5421 | } else {
|
5422 | _construct = function _construct(Parent, args, Class) {
|
5423 | var a = [null];
|
5424 | a.push.apply(a, args);
|
5425 | var Constructor = Function.bind.apply(Parent, a);
|
5426 | var instance = new Constructor();
|
5427 | if (Class) vue_class_component_esm_bundler_setPrototypeOf(instance, Class.prototype);
|
5428 | return instance;
|
5429 | };
|
5430 | }
|
5431 |
|
5432 | return _construct.apply(null, arguments);
|
5433 | }
|
5434 |
|
5435 | function vue_class_component_esm_bundler_assertThisInitialized(self) {
|
5436 | if (self === void 0) {
|
5437 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
5438 | }
|
5439 |
|
5440 | return self;
|
5441 | }
|
5442 |
|
5443 | function vue_class_component_esm_bundler_possibleConstructorReturn(self, call) {
|
5444 | if (call && (typeof call === "object" || typeof call === "function")) {
|
5445 | return call;
|
5446 | }
|
5447 |
|
5448 | return vue_class_component_esm_bundler_assertThisInitialized(self);
|
5449 | }
|
5450 |
|
5451 | function vue_class_component_esm_bundler_createSuper(Derived) {
|
5452 | var hasNativeReflectConstruct = vue_class_component_esm_bundler_isNativeReflectConstruct();
|
5453 |
|
5454 | return function _createSuperInternal() {
|
5455 | var Super = vue_class_component_esm_bundler_getPrototypeOf(Derived),
|
5456 | result;
|
5457 |
|
5458 | if (hasNativeReflectConstruct) {
|
5459 | var NewTarget = vue_class_component_esm_bundler_getPrototypeOf(this).constructor;
|
5460 |
|
5461 | result = Reflect.construct(Super, arguments, NewTarget);
|
5462 | } else {
|
5463 | result = Super.apply(this, arguments);
|
5464 | }
|
5465 |
|
5466 | return vue_class_component_esm_bundler_possibleConstructorReturn(this, result);
|
5467 | };
|
5468 | }
|
5469 |
|
5470 | function _toConsumableArray(arr) {
|
5471 | return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
5472 | }
|
5473 |
|
5474 | function _arrayWithoutHoles(arr) {
|
5475 | if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
5476 | }
|
5477 |
|
5478 | function _iterableToArray(iter) {
|
5479 | if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
5480 | }
|
5481 |
|
5482 | function _unsupportedIterableToArray(o, minLen) {
|
5483 | if (!o) return;
|
5484 | if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
5485 | var n = Object.prototype.toString.call(o).slice(8, -1);
|
5486 | if (n === "Object" && o.constructor) n = o.constructor.name;
|
5487 | if (n === "Map" || n === "Set") return Array.from(o);
|
5488 | if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
5489 | }
|
5490 |
|
5491 | function _arrayLikeToArray(arr, len) {
|
5492 | if (len == null || len > arr.length) len = arr.length;
|
5493 |
|
5494 | for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
5495 |
|
5496 | return arr2;
|
5497 | }
|
5498 |
|
5499 | function _nonIterableSpread() {
|
5500 | throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
5501 | }
|
5502 |
|
5503 | function defineGetter(obj, key, getter) {
|
5504 | Object.defineProperty(obj, key, {
|
5505 | get: getter,
|
5506 | enumerable: false,
|
5507 | configurable: true
|
5508 | });
|
5509 | }
|
5510 |
|
5511 | function defineProxy(proxy, key, target) {
|
5512 | Object.defineProperty(proxy, key, {
|
5513 | get: function get() {
|
5514 | return target[key].value;
|
5515 | },
|
5516 | set: function set(value) {
|
5517 | target[key].value = value;
|
5518 | },
|
5519 | enumerable: true,
|
5520 | configurable: true
|
5521 | });
|
5522 | }
|
5523 |
|
5524 | function getSuper(Ctor) {
|
5525 | var superProto = Object.getPrototypeOf(Ctor.prototype);
|
5526 |
|
5527 | if (!superProto) {
|
5528 | return undefined;
|
5529 | }
|
5530 |
|
5531 | return superProto.constructor;
|
5532 | }
|
5533 |
|
5534 | function getOwn(value, key) {
|
5535 | return value.hasOwnProperty(key) ? value[key] : undefined;
|
5536 | }
|
5537 |
|
5538 | var vue_class_component_esm_bundler_VueImpl = function () {
|
5539 | function VueImpl(props, ctx) {
|
5540 | var _this = this;
|
5541 |
|
5542 | vue_class_component_esm_bundler_classCallCheck(this, VueImpl);
|
5543 |
|
5544 | defineGetter(this, '$props', function () {
|
5545 | return props;
|
5546 | });
|
5547 | defineGetter(this, '$attrs', function () {
|
5548 | return ctx.attrs;
|
5549 | });
|
5550 | defineGetter(this, '$slots', function () {
|
5551 | return ctx.slots;
|
5552 | });
|
5553 | defineGetter(this, '$emit', function () {
|
5554 | return ctx.emit;
|
5555 | });
|
5556 | Object.keys(props).forEach(function (key) {
|
5557 | Object.defineProperty(_this, key, {
|
5558 | enumerable: false,
|
5559 | configurable: true,
|
5560 | writable: true,
|
5561 | value: props[key]
|
5562 | });
|
5563 | });
|
5564 | }
|
5565 |
|
5566 | vue_class_component_esm_bundler_createClass(VueImpl, null, [{
|
5567 | key: "registerHooks",
|
5568 | value: function registerHooks(keys) {
|
5569 | var _this$__h;
|
5570 |
|
5571 | (_this$__h = this.__h).push.apply(_this$__h, _toConsumableArray(keys));
|
5572 | }
|
5573 | }, {
|
5574 | key: "with",
|
5575 | value: function _with(Props) {
|
5576 | var propsMeta = new Props();
|
5577 | var props = {};
|
5578 | Object.keys(propsMeta).forEach(function (key) {
|
5579 | var meta = propsMeta[key];
|
5580 | props[key] = meta !== null && meta !== void 0 ? meta : null;
|
5581 | });
|
5582 |
|
5583 | var PropsMixin = function (_this2) {
|
5584 | vue_class_component_esm_bundler_inherits(PropsMixin, _this2);
|
5585 |
|
5586 | var _super = vue_class_component_esm_bundler_createSuper(PropsMixin);
|
5587 |
|
5588 | function PropsMixin() {
|
5589 | vue_class_component_esm_bundler_classCallCheck(this, PropsMixin);
|
5590 |
|
5591 | return _super.apply(this, arguments);
|
5592 | }
|
5593 |
|
5594 | return PropsMixin;
|
5595 | }(this);
|
5596 |
|
5597 | PropsMixin.__b = {
|
5598 | props: props
|
5599 | };
|
5600 | return PropsMixin;
|
5601 | }
|
5602 | }, {
|
5603 | key: "__vccOpts",
|
5604 | get: function get() {
|
5605 |
|
5606 | if (this === Vue) {
|
5607 | return {};
|
5608 | }
|
5609 |
|
5610 | var Ctor = this;
|
5611 | var cache = getOwn(Ctor, '__c');
|
5612 |
|
5613 | if (cache) {
|
5614 | return cache;
|
5615 | }
|
5616 |
|
5617 |
|
5618 | var options = vue_class_component_esm_bundler_objectSpread2({}, getOwn(Ctor, '__o'));
|
5619 |
|
5620 | Ctor.__c = options;
|
5621 |
|
5622 | var Super = getSuper(Ctor);
|
5623 |
|
5624 | if (Super) {
|
5625 | options["extends"] = Super.__vccOpts;
|
5626 | }
|
5627 |
|
5628 |
|
5629 | var base = getOwn(Ctor, '__b');
|
5630 |
|
5631 | if (base) {
|
5632 | options.mixins = options.mixins || [];
|
5633 | options.mixins.unshift(base);
|
5634 | }
|
5635 |
|
5636 | options.methods = vue_class_component_esm_bundler_objectSpread2({}, options.methods);
|
5637 | options.computed = vue_class_component_esm_bundler_objectSpread2({}, options.computed);
|
5638 | var proto = Ctor.prototype;
|
5639 | Object.getOwnPropertyNames(proto).forEach(function (key) {
|
5640 | if (key === 'constructor') {
|
5641 | return;
|
5642 | }
|
5643 |
|
5644 |
|
5645 | if (Ctor.__h.indexOf(key) > -1) {
|
5646 | options[key] = proto[key];
|
5647 | return;
|
5648 | }
|
5649 |
|
5650 | var descriptor = Object.getOwnPropertyDescriptor(proto, key);
|
5651 |
|
5652 | if (typeof descriptor.value === 'function') {
|
5653 | options.methods[key] = descriptor.value;
|
5654 | return;
|
5655 | }
|
5656 |
|
5657 |
|
5658 | if (descriptor.get || descriptor.set) {
|
5659 | options.computed[key] = {
|
5660 | get: descriptor.get,
|
5661 | set: descriptor.set
|
5662 | };
|
5663 | return;
|
5664 | }
|
5665 | });
|
5666 |
|
5667 | options.setup = function (props, ctx) {
|
5668 | var _promise;
|
5669 |
|
5670 | var data = new Ctor(props, ctx);
|
5671 | var dataKeys = Object.keys(data);
|
5672 | var plainData = {};
|
5673 | var promise = null;
|
5674 |
|
5675 | dataKeys.forEach(function (key) {
|
5676 |
|
5677 |
|
5678 | if (data[key] === undefined || data[key] && data[key].__s) {
|
5679 | return;
|
5680 | }
|
5681 |
|
5682 | plainData[key] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(data[key]);
|
5683 | defineProxy(data, key, plainData);
|
5684 | });
|
5685 |
|
5686 | dataKeys.forEach(function (key) {
|
5687 | if (data[key] && data[key].__s) {
|
5688 | var setupState = data[key].__s();
|
5689 |
|
5690 | if (setupState instanceof Promise) {
|
5691 | if (!promise) {
|
5692 | promise = Promise.resolve(plainData);
|
5693 | }
|
5694 |
|
5695 | promise = promise.then(function () {
|
5696 | return setupState.then(function (value) {
|
5697 | plainData[key] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["proxyRefs"])(value);
|
5698 | return plainData;
|
5699 | });
|
5700 | });
|
5701 | } else {
|
5702 | plainData[key] = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["proxyRefs"])(setupState);
|
5703 | }
|
5704 | }
|
5705 | });
|
5706 | return (_promise = promise) !== null && _promise !== void 0 ? _promise : plainData;
|
5707 | };
|
5708 |
|
5709 | var decorators = getOwn(Ctor, '__d');
|
5710 |
|
5711 | if (decorators) {
|
5712 | decorators.forEach(function (fn) {
|
5713 | return fn(options);
|
5714 | });
|
5715 | }
|
5716 |
|
5717 |
|
5718 | var injections = ['render', 'ssrRender', '__file', '__cssModules', '__scopeId', '__hmrId'];
|
5719 | injections.forEach(function (key) {
|
5720 | if (Ctor[key]) {
|
5721 | options[key] = Ctor[key];
|
5722 | }
|
5723 | });
|
5724 | return options;
|
5725 | }
|
5726 | }]);
|
5727 |
|
5728 | return VueImpl;
|
5729 | }();
|
5730 |
|
5731 | vue_class_component_esm_bundler_VueImpl.__h = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeUnmount', 'unmounted', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch'];
|
5732 | var Vue = vue_class_component_esm_bundler_VueImpl;
|
5733 |
|
5734 | function Options(options) {
|
5735 | return function (Component) {
|
5736 | Component.__o = options;
|
5737 | return Component;
|
5738 | };
|
5739 | }
|
5740 | function createDecorator(factory) {
|
5741 | return function (target, key, index) {
|
5742 | var Ctor = typeof target === 'function' ? target : target.constructor;
|
5743 |
|
5744 | if (!Ctor.__d) {
|
5745 | Ctor.__d = [];
|
5746 | }
|
5747 |
|
5748 | if (typeof index !== 'number') {
|
5749 | index = undefined;
|
5750 | }
|
5751 |
|
5752 | Ctor.__d.push(function (options) {
|
5753 | return factory(options, key, index);
|
5754 | });
|
5755 | };
|
5756 | }
|
5757 | function mixins() {
|
5758 | for (var _len = arguments.length, Ctors = new Array(_len), _key = 0; _key < _len; _key++) {
|
5759 | Ctors[_key] = arguments[_key];
|
5760 | }
|
5761 |
|
5762 | var _a;
|
5763 |
|
5764 | return _a = function (_Vue) {
|
5765 | vue_class_component_esm_bundler_inherits(MixedVue, _Vue);
|
5766 |
|
5767 | var _super = vue_class_component_esm_bundler_createSuper(MixedVue);
|
5768 |
|
5769 | function MixedVue() {
|
5770 | var _this;
|
5771 |
|
5772 | for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
5773 | args[_key2] = arguments[_key2];
|
5774 | }
|
5775 |
|
5776 | vue_class_component_esm_bundler_classCallCheck(this, MixedVue);
|
5777 |
|
5778 | _this = _super.call.apply(_super, [this].concat(args));
|
5779 | Ctors.forEach(function (Ctor) {
|
5780 | var data = _construct(Ctor, args);
|
5781 |
|
5782 | Object.keys(data).forEach(function (key) {
|
5783 | _this[key] = data[key];
|
5784 | });
|
5785 | });
|
5786 | return _this;
|
5787 | }
|
5788 |
|
5789 | return MixedVue;
|
5790 | }(Vue), _a.__b = {
|
5791 | mixins: Ctors.map(function (Ctor) {
|
5792 | return Ctor.__vccOpts;
|
5793 | })
|
5794 | }, _a;
|
5795 | }
|
5796 | function setup(setupFn) {
|
5797 |
|
5798 |
|
5799 | return {
|
5800 | __s: setupFn
|
5801 | };
|
5802 | }
|
5803 |
|
5804 |
|
5805 | function prop(options) {
|
5806 | return options;
|
5807 | }
|
5808 |
|
5809 |
|
5810 |
|
5811 |
|
5812 | var es_array_concat = __webpack_require__("99af");
|
5813 |
|
5814 |
|
5815 | var es_array_find = __webpack_require__("7db0");
|
5816 |
|
5817 |
|
5818 |
|
5819 |
|
5820 |
|
5821 |
|
5822 |
|
5823 | var lGEvents = {
|
5824 | afterAppendSlide: 'lgAfterAppendSlide',
|
5825 | init: 'lgInit',
|
5826 | hasVideo: 'lgHasVideo',
|
5827 | containerResize: 'lgContainerResize',
|
5828 | updateSlides: 'lgUpdateSlides',
|
5829 | afterAppendSubHtml: 'lgAfterAppendSubHtml',
|
5830 | beforeOpen: 'lgBeforeOpen',
|
5831 | afterOpen: 'lgAfterOpen',
|
5832 | slideItemLoad: 'lgSlideItemLoad',
|
5833 | beforeSlide: 'lgBeforeSlide',
|
5834 | afterSlide: 'lgAfterSlide',
|
5835 | posterClick: 'lgPosterClick',
|
5836 | dragStart: 'lgDragStart',
|
5837 | dragMove: 'lgDragMove',
|
5838 | dragEnd: 'lgDragEnd',
|
5839 | beforeNextSlide: 'lgBeforeNextSlide',
|
5840 | beforePrevSlide: 'lgBeforePrevSlide',
|
5841 | beforeClose: 'lgBeforeClose',
|
5842 | afterClose: 'lgAfterClose',
|
5843 | rotateLeft: 'lgRotateLeft',
|
5844 | rotateRight: 'lgRotateRight',
|
5845 | flipHorizontal: 'lgFlipHorizontal',
|
5846 | flipVertical: 'lgFlipVertical',
|
5847 | autoplay: 'lgAutoplay',
|
5848 | autoplayStart: 'lgAutoplayStart',
|
5849 | autoplayStop: 'lgAutoplayStop'
|
5850 | };
|
5851 |
|
5852 | var lightGalleryCoreSettings = {
|
5853 | mode: 'lg-slide',
|
5854 | easing: 'ease',
|
5855 | speed: 400,
|
5856 | licenseKey: '0000-0000-000-0000',
|
5857 | height: '100%',
|
5858 | width: '100%',
|
5859 | addClass: '',
|
5860 | startClass: 'lg-start-zoom',
|
5861 | backdropDuration: 300,
|
5862 | container: '',
|
5863 | startAnimationDuration: 400,
|
5864 | zoomFromOrigin: true,
|
5865 | hideBarsDelay: 0,
|
5866 | showBarsAfter: 10000,
|
5867 | slideDelay: 0,
|
5868 | supportLegacyBrowser: true,
|
5869 | allowMediaOverlap: false,
|
5870 | videoMaxSize: '1280-720',
|
5871 | loadYouTubePoster: true,
|
5872 | defaultCaptionHeight: 0,
|
5873 | ariaLabelledby: '',
|
5874 | ariaDescribedby: '',
|
5875 | resetScrollPosition: true,
|
5876 | hideScrollbar: false,
|
5877 | closable: true,
|
5878 | swipeToClose: true,
|
5879 | closeOnTap: true,
|
5880 | showCloseIcon: true,
|
5881 | showMaximizeIcon: false,
|
5882 | loop: true,
|
5883 | escKey: true,
|
5884 | keyPress: true,
|
5885 | trapFocus: true,
|
5886 | controls: true,
|
5887 | slideEndAnimation: true,
|
5888 | hideControlOnEnd: false,
|
5889 | mousewheel: false,
|
5890 | getCaptionFromTitleOrAlt: true,
|
5891 | appendSubHtmlTo: '.lg-sub-html',
|
5892 | subHtmlSelectorRelative: false,
|
5893 | preload: 2,
|
5894 | numberOfSlideItemsInDom: 10,
|
5895 | selector: '',
|
5896 | selectWithin: '',
|
5897 | nextHtml: '',
|
5898 | prevHtml: '',
|
5899 | index: 0,
|
5900 | iframeWidth: '100%',
|
5901 | iframeHeight: '100%',
|
5902 | iframeMaxWidth: '100%',
|
5903 | iframeMaxHeight: '100%',
|
5904 | download: true,
|
5905 | counter: true,
|
5906 | appendCounterTo: '.lg-toolbar',
|
5907 | swipeThreshold: 50,
|
5908 | enableSwipe: true,
|
5909 | enableDrag: true,
|
5910 | dynamic: false,
|
5911 | dynamicEl: [],
|
5912 | extraProps: [],
|
5913 | exThumbImage: '',
|
5914 | isMobile: undefined,
|
5915 | mobileSettings: {
|
5916 | controls: false,
|
5917 | showCloseIcon: false,
|
5918 | download: false
|
5919 | },
|
5920 | plugins: [],
|
5921 | strings: {
|
5922 | closeGallery: 'Close gallery',
|
5923 | toggleMaximize: 'Toggle maximize',
|
5924 | previousSlide: 'Previous slide',
|
5925 | nextSlide: 'Next slide',
|
5926 | download: 'Download',
|
5927 | playVideo: 'Play video'
|
5928 | }
|
5929 | };
|
5930 |
|
5931 | function arrayLikeToArray_arrayLikeToArray(arr, len) {
|
5932 | if (len == null || len > arr.length) len = arr.length;
|
5933 |
|
5934 | for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
5935 | arr2[i] = arr[i];
|
5936 | }
|
5937 |
|
5938 | return arr2;
|
5939 | }
|
5940 |
|
5941 |
|
5942 | function arrayWithoutHoles_arrayWithoutHoles(arr) {
|
5943 | if (Array.isArray(arr)) return arrayLikeToArray_arrayLikeToArray(arr);
|
5944 | }
|
5945 |
|
5946 | var es_symbol_description = __webpack_require__("e01a");
|
5947 |
|
5948 |
|
5949 | var es_object_to_string = __webpack_require__("d3b7");
|
5950 |
|
5951 |
|
5952 | var es_symbol_iterator = __webpack_require__("d28b");
|
5953 |
|
5954 |
|
5955 | var es_array_iterator = __webpack_require__("e260");
|
5956 |
|
5957 |
|
5958 | var es_string_iterator = __webpack_require__("3ca3");
|
5959 |
|
5960 |
|
5961 | var web_dom_collections_iterator = __webpack_require__("ddb0");
|
5962 |
|
5963 |
|
5964 | var es_array_from = __webpack_require__("a630");
|
5965 |
|
5966 |
|
5967 |
|
5968 |
|
5969 |
|
5970 |
|
5971 |
|
5972 |
|
5973 |
|
5974 |
|
5975 | function iterableToArray_iterableToArray(iter) {
|
5976 | if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
|
5977 | }
|
5978 |
|
5979 | var es_function_name = __webpack_require__("b0c0");
|
5980 |
|
5981 |
|
5982 |
|
5983 |
|
5984 |
|
5985 |
|
5986 |
|
5987 |
|
5988 | function unsupportedIterableToArray_unsupportedIterableToArray(o, minLen) {
|
5989 | if (!o) return;
|
5990 | if (typeof o === "string") return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
5991 | var n = Object.prototype.toString.call(o).slice(8, -1);
|
5992 | if (n === "Object" && o.constructor) n = o.constructor.name;
|
5993 | if (n === "Map" || n === "Set") return Array.from(o);
|
5994 | if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray_arrayLikeToArray(o, minLen);
|
5995 | }
|
5996 |
|
5997 | function nonIterableSpread_nonIterableSpread() {
|
5998 | throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
5999 | }
|
6000 |
|
6001 |
|
6002 |
|
6003 |
|
6004 |
|
6005 | function toConsumableArray_toConsumableArray(arr) {
|
6006 | return arrayWithoutHoles_arrayWithoutHoles(arr) || iterableToArray_iterableToArray(arr) || unsupportedIterableToArray_unsupportedIterableToArray(arr) || nonIterableSpread_nonIterableSpread();
|
6007 | }
|
6008 |
|
6009 | var es_string_replace = __webpack_require__("5319");
|
6010 |
|
6011 |
|
6012 | var es_array_map = __webpack_require__("d81d");
|
6013 |
|
6014 |
|
6015 | var es_array_splice = __webpack_require__("a434");
|
6016 |
|
6017 |
|
6018 | var es_string_match = __webpack_require__("466d");
|
6019 |
|
6020 |
|
6021 | var es_promise = __webpack_require__("e6cf");
|
6022 |
|
6023 |
|
6024 | var es_regexp_to_string = __webpack_require__("25f0");
|
6025 |
|
6026 |
|
6027 |
|
6028 |
|
6029 |
|
6030 |
|
6031 |
|
6032 |
|
6033 |
|
6034 |
|
6035 |
|
6036 |
|
6037 |
|
6038 |
|
6039 |
|
6040 | function initLgPolyfills() {
|
6041 | (function () {
|
6042 | if (typeof window.CustomEvent === 'function') return false;
|
6043 |
|
6044 | function CustomEvent(event, params) {
|
6045 | params = params || {
|
6046 | bubbles: false,
|
6047 | cancelable: false,
|
6048 | detail: null
|
6049 | };
|
6050 | var evt = document.createEvent('CustomEvent');
|
6051 | evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
|
6052 | return evt;
|
6053 | }
|
6054 |
|
6055 | window.CustomEvent = CustomEvent;
|
6056 | })();
|
6057 |
|
6058 | (function () {
|
6059 | if (!Element.prototype.matches) {
|
6060 | Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
6061 | }
|
6062 | })();
|
6063 | }
|
6064 |
|
6065 | var lgQuery_lgQuery = function () {
|
6066 | function lgQuery(selector) {
|
6067 | _classCallCheck(this, lgQuery);
|
6068 |
|
6069 | this.cssVenderPrefixes = ['TransitionDuration', 'TransitionTimingFunction', 'Transform', 'Transition'];
|
6070 | this.selector = this._getSelector(selector);
|
6071 | this.firstElement = this._getFirstEl();
|
6072 | return this;
|
6073 | }
|
6074 |
|
6075 | _createClass(lgQuery, [{
|
6076 | key: "_getSelector",
|
6077 | value: function _getSelector(selector) {
|
6078 | var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
|
6079 |
|
6080 | if (typeof selector !== 'string') {
|
6081 | return selector;
|
6082 | }
|
6083 |
|
6084 | context = context || document;
|
6085 | var fl = selector.substring(0, 1);
|
6086 |
|
6087 | if (fl === '#') {
|
6088 | return context.querySelector(selector);
|
6089 | } else {
|
6090 | return context.querySelectorAll(selector);
|
6091 | }
|
6092 | }
|
6093 | }, {
|
6094 | key: "_each",
|
6095 | value: function _each(func) {
|
6096 | if (!this.selector) {
|
6097 | return this;
|
6098 | }
|
6099 |
|
6100 | if (this.selector.length !== undefined) {
|
6101 | [].forEach.call(this.selector, func);
|
6102 | } else {
|
6103 | func(this.selector, 0);
|
6104 | }
|
6105 |
|
6106 | return this;
|
6107 | }
|
6108 | }, {
|
6109 | key: "_setCssVendorPrefix",
|
6110 | value: function _setCssVendorPrefix(el, cssProperty, value) {
|
6111 |
|
6112 | var property = cssProperty.replace(/-([a-z])/gi, function (s, group1) {
|
6113 | return group1.toUpperCase();
|
6114 | });
|
6115 |
|
6116 | if (this.cssVenderPrefixes.indexOf(property) !== -1) {
|
6117 | el.style[property.charAt(0).toLowerCase() + property.slice(1)] = value;
|
6118 | el.style['webkit' + property] = value;
|
6119 | el.style['moz' + property] = value;
|
6120 | el.style['ms' + property] = value;
|
6121 | el.style['o' + property] = value;
|
6122 | } else {
|
6123 | el.style[property] = value;
|
6124 | }
|
6125 | }
|
6126 | }, {
|
6127 | key: "_getFirstEl",
|
6128 | value: function _getFirstEl() {
|
6129 | if (this.selector && this.selector.length !== undefined) {
|
6130 | return this.selector[0];
|
6131 | } else {
|
6132 | return this.selector;
|
6133 | }
|
6134 | }
|
6135 | }, {
|
6136 | key: "isEventMatched",
|
6137 | value: function isEventMatched(event, eventName) {
|
6138 | var eventNamespace = eventName.split('.');
|
6139 | return event.split('.').filter(function (e) {
|
6140 | return e;
|
6141 | }).every(function (e) {
|
6142 | return eventNamespace.indexOf(e) !== -1;
|
6143 | });
|
6144 | }
|
6145 | }, {
|
6146 | key: "attr",
|
6147 | value: function attr(_attr, value) {
|
6148 | if (value === undefined) {
|
6149 | if (!this.firstElement) {
|
6150 | return '';
|
6151 | }
|
6152 |
|
6153 | return this.firstElement.getAttribute(_attr);
|
6154 | }
|
6155 |
|
6156 | this._each(function (el) {
|
6157 | el.setAttribute(_attr, value);
|
6158 | });
|
6159 |
|
6160 | return this;
|
6161 | }
|
6162 | }, {
|
6163 | key: "find",
|
6164 | value: function find(selector) {
|
6165 | return $LG(this._getSelector(selector, this.selector));
|
6166 | }
|
6167 | }, {
|
6168 | key: "first",
|
6169 | value: function first() {
|
6170 | if (this.selector && this.selector.length !== undefined) {
|
6171 | return $LG(this.selector[0]);
|
6172 | } else {
|
6173 | return $LG(this.selector);
|
6174 | }
|
6175 | }
|
6176 | }, {
|
6177 | key: "eq",
|
6178 | value: function eq(index) {
|
6179 | return $LG(this.selector[index]);
|
6180 | }
|
6181 | }, {
|
6182 | key: "parent",
|
6183 | value: function parent() {
|
6184 | return $LG(this.selector.parentElement);
|
6185 | }
|
6186 | }, {
|
6187 | key: "get",
|
6188 | value: function get() {
|
6189 | return this._getFirstEl();
|
6190 | }
|
6191 | }, {
|
6192 | key: "removeAttr",
|
6193 | value: function removeAttr(attributes) {
|
6194 | var attrs = attributes.split(' ');
|
6195 |
|
6196 | this._each(function (el) {
|
6197 | attrs.forEach(function (attr) {
|
6198 | return el.removeAttribute(attr);
|
6199 | });
|
6200 | });
|
6201 |
|
6202 | return this;
|
6203 | }
|
6204 | }, {
|
6205 | key: "wrap",
|
6206 | value: function wrap(className) {
|
6207 | if (!this.firstElement) {
|
6208 | return this;
|
6209 | }
|
6210 |
|
6211 | var wrapper = document.createElement('div');
|
6212 | wrapper.className = className;
|
6213 | this.firstElement.parentNode.insertBefore(wrapper, this.firstElement);
|
6214 | this.firstElement.parentNode.removeChild(this.firstElement);
|
6215 | wrapper.appendChild(this.firstElement);
|
6216 | return this;
|
6217 | }
|
6218 | }, {
|
6219 | key: "addClass",
|
6220 | value: function addClass() {
|
6221 | var classNames = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
6222 |
|
6223 | this._each(function (el) {
|
6224 |
|
6225 | classNames.split(' ').forEach(function (className) {
|
6226 | if (className) {
|
6227 | el.classList.add(className);
|
6228 | }
|
6229 | });
|
6230 | });
|
6231 |
|
6232 | return this;
|
6233 | }
|
6234 | }, {
|
6235 | key: "removeClass",
|
6236 | value: function removeClass(classNames) {
|
6237 | this._each(function (el) {
|
6238 |
|
6239 | classNames.split(' ').forEach(function (className) {
|
6240 | if (className) {
|
6241 | el.classList.remove(className);
|
6242 | }
|
6243 | });
|
6244 | });
|
6245 |
|
6246 | return this;
|
6247 | }
|
6248 | }, {
|
6249 | key: "hasClass",
|
6250 | value: function hasClass(className) {
|
6251 | if (!this.firstElement) {
|
6252 | return false;
|
6253 | }
|
6254 |
|
6255 | return this.firstElement.classList.contains(className);
|
6256 | }
|
6257 | }, {
|
6258 | key: "hasAttribute",
|
6259 | value: function hasAttribute(attribute) {
|
6260 | if (!this.firstElement) {
|
6261 | return false;
|
6262 | }
|
6263 |
|
6264 | return this.firstElement.hasAttribute(attribute);
|
6265 | }
|
6266 | }, {
|
6267 | key: "toggleClass",
|
6268 | value: function toggleClass(className) {
|
6269 | if (!this.firstElement) {
|
6270 | return this;
|
6271 | }
|
6272 |
|
6273 | if (this.hasClass(className)) {
|
6274 | this.removeClass(className);
|
6275 | } else {
|
6276 | this.addClass(className);
|
6277 | }
|
6278 |
|
6279 | return this;
|
6280 | }
|
6281 | }, {
|
6282 | key: "css",
|
6283 | value: function css(property, value) {
|
6284 | var _this = this;
|
6285 |
|
6286 | this._each(function (el) {
|
6287 | _this._setCssVendorPrefix(el, property, value);
|
6288 | });
|
6289 |
|
6290 | return this;
|
6291 | }
|
6292 |
|
6293 | }, {
|
6294 | key: "on",
|
6295 | value: function on(events, listener) {
|
6296 | var _this2 = this;
|
6297 |
|
6298 | if (!this.selector) {
|
6299 | return this;
|
6300 | }
|
6301 |
|
6302 | events.split(' ').forEach(function (event) {
|
6303 | if (!Array.isArray(lgQuery.eventListeners[event])) {
|
6304 | lgQuery.eventListeners[event] = [];
|
6305 | }
|
6306 |
|
6307 | lgQuery.eventListeners[event].push(listener);
|
6308 |
|
6309 | _this2.selector.addEventListener(event.split('.')[0], listener);
|
6310 | });
|
6311 | return this;
|
6312 | }
|
6313 |
|
6314 | }, {
|
6315 | key: "once",
|
6316 | value: function once(event, listener) {
|
6317 | var _this3 = this;
|
6318 |
|
6319 | this.on(event, function () {
|
6320 | _this3.off(event);
|
6321 |
|
6322 | listener(event);
|
6323 | });
|
6324 | return this;
|
6325 | }
|
6326 | }, {
|
6327 | key: "off",
|
6328 | value: function off(event) {
|
6329 | var _this4 = this;
|
6330 |
|
6331 | if (!this.selector) {
|
6332 | return this;
|
6333 | }
|
6334 |
|
6335 | Object.keys(lgQuery.eventListeners).forEach(function (eventName) {
|
6336 | if (_this4.isEventMatched(event, eventName)) {
|
6337 | lgQuery.eventListeners[eventName].forEach(function (listener) {
|
6338 | _this4.selector.removeEventListener(eventName.split('.')[0], listener);
|
6339 | });
|
6340 | lgQuery.eventListeners[eventName] = [];
|
6341 | }
|
6342 | });
|
6343 | return this;
|
6344 | }
|
6345 | }, {
|
6346 | key: "trigger",
|
6347 | value: function trigger(event, detail) {
|
6348 | if (!this.firstElement) {
|
6349 | return this;
|
6350 | }
|
6351 |
|
6352 | var customEvent = new CustomEvent(event.split('.')[0], {
|
6353 | detail: detail || null
|
6354 | });
|
6355 | this.firstElement.dispatchEvent(customEvent);
|
6356 | return this;
|
6357 | }
|
6358 |
|
6359 | }, {
|
6360 | key: "load",
|
6361 | value: function load(url) {
|
6362 | var _this5 = this;
|
6363 |
|
6364 | fetch(url).then(function (res) {
|
6365 | return res.text();
|
6366 | }).then(function (html) {
|
6367 | _this5.selector.innerHTML = html;
|
6368 | });
|
6369 | return this;
|
6370 | }
|
6371 | }, {
|
6372 | key: "html",
|
6373 | value: function html(_html) {
|
6374 | if (_html === undefined) {
|
6375 | if (!this.firstElement) {
|
6376 | return '';
|
6377 | }
|
6378 |
|
6379 | return this.firstElement.innerHTML;
|
6380 | }
|
6381 |
|
6382 | this._each(function (el) {
|
6383 | el.innerHTML = _html;
|
6384 | });
|
6385 |
|
6386 | return this;
|
6387 | }
|
6388 | }, {
|
6389 | key: "append",
|
6390 | value: function append(html) {
|
6391 | this._each(function (el) {
|
6392 | if (typeof html === 'string') {
|
6393 | el.insertAdjacentHTML('beforeend', html);
|
6394 | } else {
|
6395 | el.appendChild(html);
|
6396 | }
|
6397 | });
|
6398 |
|
6399 | return this;
|
6400 | }
|
6401 | }, {
|
6402 | key: "prepend",
|
6403 | value: function prepend(html) {
|
6404 | this._each(function (el) {
|
6405 | el.insertAdjacentHTML('afterbegin', html);
|
6406 | });
|
6407 |
|
6408 | return this;
|
6409 | }
|
6410 | }, {
|
6411 | key: "remove",
|
6412 | value: function remove() {
|
6413 | this._each(function (el) {
|
6414 | el.parentNode.removeChild(el);
|
6415 | });
|
6416 |
|
6417 | return this;
|
6418 | }
|
6419 | }, {
|
6420 | key: "empty",
|
6421 | value: function empty() {
|
6422 | this._each(function (el) {
|
6423 | el.innerHTML = '';
|
6424 | });
|
6425 |
|
6426 | return this;
|
6427 | }
|
6428 | }, {
|
6429 | key: "scrollTop",
|
6430 | value: function scrollTop(_scrollTop) {
|
6431 | if (_scrollTop !== undefined) {
|
6432 | document.body.scrollTop = _scrollTop;
|
6433 | document.documentElement.scrollTop = _scrollTop;
|
6434 | return this;
|
6435 | } else {
|
6436 | return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
6437 | }
|
6438 | }
|
6439 | }, {
|
6440 | key: "scrollLeft",
|
6441 | value: function scrollLeft(_scrollLeft) {
|
6442 | if (_scrollLeft !== undefined) {
|
6443 | document.body.scrollLeft = _scrollLeft;
|
6444 | document.documentElement.scrollLeft = _scrollLeft;
|
6445 | return this;
|
6446 | } else {
|
6447 | return window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0;
|
6448 | }
|
6449 | }
|
6450 | }, {
|
6451 | key: "offset",
|
6452 | value: function offset() {
|
6453 | if (!this.firstElement) {
|
6454 | return {
|
6455 | left: 0,
|
6456 | top: 0
|
6457 | };
|
6458 | }
|
6459 |
|
6460 | var rect = this.firstElement.getBoundingClientRect();
|
6461 | var bodyMarginLeft = $LG('body').style().marginLeft;
|
6462 |
|
6463 | return {
|
6464 | left: rect.left - parseFloat(bodyMarginLeft) + this.scrollLeft(),
|
6465 | top: rect.top + this.scrollTop()
|
6466 | };
|
6467 | }
|
6468 | }, {
|
6469 | key: "style",
|
6470 | value: function style() {
|
6471 | if (!this.firstElement) {
|
6472 | return {};
|
6473 | }
|
6474 |
|
6475 | return this.firstElement.currentStyle || window.getComputedStyle(this.firstElement);
|
6476 | }
|
6477 |
|
6478 | }, {
|
6479 | key: "width",
|
6480 | value: function width() {
|
6481 | var style = this.style();
|
6482 | return this.firstElement.clientWidth - parseFloat(style.paddingLeft) - parseFloat(style.paddingRight);
|
6483 | }
|
6484 |
|
6485 | }, {
|
6486 | key: "height",
|
6487 | value: function height() {
|
6488 | var style = this.style();
|
6489 | return this.firstElement.clientHeight - parseFloat(style.paddingTop) - parseFloat(style.paddingBottom);
|
6490 | }
|
6491 | }], [{
|
6492 | key: "generateUUID",
|
6493 | value: function generateUUID() {
|
6494 | return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
6495 | var r = Math.random() * 16 | 0,
|
6496 | v = c == 'x' ? r : r & 0x3 | 0x8;
|
6497 | return v.toString(16);
|
6498 | });
|
6499 | }
|
6500 | }]);
|
6501 |
|
6502 | return lgQuery;
|
6503 | }();
|
6504 | lgQuery_lgQuery.eventListeners = {};
|
6505 | function $LG(selector) {
|
6506 | initLgPolyfills();
|
6507 | return new lgQuery_lgQuery(selector);
|
6508 | }
|
6509 |
|
6510 |
|
6511 |
|
6512 |
|
6513 |
|
6514 |
|
6515 |
|
6516 |
|
6517 |
|
6518 |
|
6519 |
|
6520 |
|
6521 |
|
6522 |
|
6523 |
|
6524 |
|
6525 | var defaultDynamicOptions = ['src', 'sources', 'subHtml', 'subHtmlUrl', 'html', 'video', 'poster', 'slideName', 'responsive', 'srcset', 'sizes', 'iframe', 'downloadUrl', 'download', 'width', 'facebookShareUrl', 'tweetText', 'iframeTitle', 'twitterShareUrl', 'pinterestShareUrl', 'pinterestText', 'fbHtml', 'disqusIdentifier', 'disqusUrl'];
|
6526 |
|
6527 | function convertToData(attr) {
|
6528 |
|
6529 | if (attr === 'href') {
|
6530 | return 'src';
|
6531 | }
|
6532 |
|
6533 | attr = attr.replace('data-', '');
|
6534 | attr = attr.charAt(0).toLowerCase() + attr.slice(1);
|
6535 | attr = attr.replace(/-([a-z])/g, function (g) {
|
6536 | return g[1].toUpperCase();
|
6537 | });
|
6538 | return attr;
|
6539 | }
|
6540 | var utils = {
|
6541 | |
6542 |
|
6543 |
|
6544 | getSize: function getSize(el, container) {
|
6545 | var spacing = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
6546 | var defaultLgSize = arguments.length > 3 ? arguments[3] : undefined;
|
6547 | var LGel = $LG(el);
|
6548 | var lgSize = LGel.attr('data-lg-size') || defaultLgSize;
|
6549 |
|
6550 | if (!lgSize) {
|
6551 | return;
|
6552 | }
|
6553 |
|
6554 | var isResponsiveSizes = lgSize.split(',');
|
6555 |
|
6556 | if (isResponsiveSizes[1]) {
|
6557 | var wWidth = window.innerWidth;
|
6558 |
|
6559 | for (var i = 0; i < isResponsiveSizes.length; i++) {
|
6560 | var _size = isResponsiveSizes[i];
|
6561 | var responsiveWidth = parseInt(_size.split('-')[2], 10);
|
6562 |
|
6563 | if (responsiveWidth > wWidth) {
|
6564 | lgSize = _size;
|
6565 | break;
|
6566 | }
|
6567 |
|
6568 |
|
6569 | if (i === isResponsiveSizes.length - 1) {
|
6570 | lgSize = _size;
|
6571 | }
|
6572 | }
|
6573 | }
|
6574 |
|
6575 | var size = lgSize.split('-');
|
6576 | var width = parseInt(size[0], 10);
|
6577 | var height = parseInt(size[1], 10);
|
6578 | var cWidth = container.width();
|
6579 | var cHeight = container.height() - spacing;
|
6580 | var maxWidth = Math.min(cWidth, width);
|
6581 | var maxHeight = Math.min(cHeight, height);
|
6582 | var ratio = Math.min(maxWidth / width, maxHeight / height);
|
6583 | return {
|
6584 | width: width * ratio,
|
6585 | height: height * ratio
|
6586 | };
|
6587 | },
|
6588 |
|
6589 | |
6590 |
|
6591 |
|
6592 |
|
6593 |
|
6594 | getTransform: function getTransform(el, container, top, bottom, imageSize) {
|
6595 | if (!imageSize) {
|
6596 | return;
|
6597 | }
|
6598 |
|
6599 | var LGel = $LG(el).find('img').first();
|
6600 |
|
6601 | if (!LGel.get()) {
|
6602 | return;
|
6603 | }
|
6604 |
|
6605 | var containerRect = container.get().getBoundingClientRect();
|
6606 | var wWidth = containerRect.width;
|
6607 |
|
6608 | var wHeight = container.height() - (top + bottom);
|
6609 | var elWidth = LGel.width();
|
6610 | var elHeight = LGel.height();
|
6611 | var elStyle = LGel.style();
|
6612 | var x = (wWidth - elWidth) / 2 - LGel.offset().left + (parseFloat(elStyle.paddingLeft) || 0) + (parseFloat(elStyle.borderLeft) || 0) + $LG(window).scrollLeft() + containerRect.left;
|
6613 | var y = (wHeight - elHeight) / 2 - LGel.offset().top + (parseFloat(elStyle.paddingTop) || 0) + (parseFloat(elStyle.borderTop) || 0) + $LG(window).scrollTop() + top;
|
6614 | var scX = elWidth / imageSize.width;
|
6615 | var scY = elHeight / imageSize.height;
|
6616 | var transform = 'translate3d(' + (x *= -1) + 'px, ' + (y *= -1) + 'px, 0) scale3d(' + scX + ', ' + scY + ', 1)';
|
6617 | return transform;
|
6618 | },
|
6619 | getIframeMarkup: function getIframeMarkup(iframeWidth, iframeHeight, iframeMaxWidth, iframeMaxHeight, src, iframeTitle) {
|
6620 | var title = iframeTitle ? 'title="' + iframeTitle + '"' : '';
|
6621 | return "<div class=\"lg-video-cont lg-has-iframe\" style=\"width:".concat(iframeWidth, "; max-width:").concat(iframeMaxWidth, "; height: ").concat(iframeHeight, "; max-height:").concat(iframeMaxHeight, "\">\n <iframe class=\"lg-object\" frameborder=\"0\" ").concat(title, " src=\"").concat(src, "\" allowfullscreen=\"true\"></iframe>\n </div>");
|
6622 | },
|
6623 | getImgMarkup: function getImgMarkup(index, src, altAttr, srcset, sizes, sources) {
|
6624 | var srcsetAttr = srcset ? "srcset=\"".concat(srcset, "\"") : '';
|
6625 | var sizesAttr = sizes ? "sizes=\"".concat(sizes, "\"") : '';
|
6626 | var imgMarkup = "<img ".concat(altAttr, " ").concat(srcsetAttr, " ").concat(sizesAttr, " class=\"lg-object lg-image\" data-index=\"").concat(index, "\" src=\"").concat(src, "\" />");
|
6627 | var sourceTag = '';
|
6628 |
|
6629 | if (sources) {
|
6630 | var sourceObj = typeof sources === 'string' ? JSON.parse(sources) : sources;
|
6631 | sourceTag = sourceObj.map(function (source) {
|
6632 | var attrs = '';
|
6633 | Object.keys(source).forEach(function (key) {
|
6634 |
|
6635 | attrs += " ".concat(key, "=\"").concat(source[key], "\"");
|
6636 | });
|
6637 | return "<source ".concat(attrs, "></source>");
|
6638 | });
|
6639 | }
|
6640 |
|
6641 | return "".concat(sourceTag).concat(imgMarkup);
|
6642 | },
|
6643 |
|
6644 | getResponsiveSrc: function getResponsiveSrc(srcItms) {
|
6645 | var rsWidth = [];
|
6646 | var rsSrc = [];
|
6647 | var src = '';
|
6648 |
|
6649 | for (var i = 0; i < srcItms.length; i++) {
|
6650 | var _src = srcItms[i].split(' ');
|
6651 |
|
6652 |
|
6653 | if (_src[0] === '') {
|
6654 | _src.splice(0, 1);
|
6655 | }
|
6656 |
|
6657 | rsSrc.push(_src[0]);
|
6658 | rsWidth.push(_src[1]);
|
6659 | }
|
6660 |
|
6661 | var wWidth = window.innerWidth;
|
6662 |
|
6663 | for (var j = 0; j < rsWidth.length; j++) {
|
6664 | if (parseInt(rsWidth[j], 10) > wWidth) {
|
6665 | src = rsSrc[j];
|
6666 | break;
|
6667 | }
|
6668 | }
|
6669 |
|
6670 | return src;
|
6671 | },
|
6672 | isImageLoaded: function isImageLoaded(img) {
|
6673 | if (!img) return false;
|
6674 |
|
6675 |
|
6676 |
|
6677 | if (!img.complete) {
|
6678 | return false;
|
6679 | }
|
6680 |
|
6681 |
|
6682 |
|
6683 |
|
6684 | if (img.naturalWidth === 0) {
|
6685 | return false;
|
6686 | }
|
6687 |
|
6688 |
|
6689 | return true;
|
6690 | },
|
6691 | getVideoPosterMarkup: function getVideoPosterMarkup(_poster, dummyImg, videoContStyle, playVideoString, _isVideo) {
|
6692 | var videoClass = '';
|
6693 |
|
6694 | if (_isVideo && _isVideo.youtube) {
|
6695 | videoClass = 'lg-has-youtube';
|
6696 | } else if (_isVideo && _isVideo.vimeo) {
|
6697 | videoClass = 'lg-has-vimeo';
|
6698 | } else {
|
6699 | videoClass = 'lg-has-html5';
|
6700 | }
|
6701 |
|
6702 | return "<div class=\"lg-video-cont ".concat(videoClass, "\" style=\"").concat(videoContStyle, "\">\n <div class=\"lg-video-play-button\">\n <svg\n viewBox=\"0 0 20 20\"\n preserveAspectRatio=\"xMidYMid\"\n focusable=\"false\"\n aria-labelledby=\"").concat(playVideoString, "\"\n role=\"img\"\n class=\"lg-video-play-icon\"\n >\n <title>").concat(playVideoString, "</title>\n <polygon class=\"lg-video-play-icon-inner\" points=\"1,0 20,10 1,20\"></polygon>\n </svg>\n <svg class=\"lg-video-play-icon-bg\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle></svg>\n <svg class=\"lg-video-play-icon-circle\" viewBox=\"0 0 50 50\" focusable=\"false\">\n <circle cx=\"50%\" cy=\"50%\" r=\"20\"></circle>\n </svg>\n </div>\n ").concat(dummyImg || '', "\n <img class=\"lg-object lg-video-poster\" src=\"").concat(_poster, "\" />\n </div>");
|
6703 | },
|
6704 | getFocusableElements: function getFocusableElements(container) {
|
6705 | var elements = container.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])');
|
6706 | var visibleElements = [].filter.call(elements, function (element) {
|
6707 | var style = window.getComputedStyle(element);
|
6708 | return style.display !== 'none' && style.visibility !== 'hidden';
|
6709 | });
|
6710 | return visibleElements;
|
6711 | },
|
6712 |
|
6713 | |
6714 |
|
6715 |
|
6716 |
|
6717 |
|
6718 |
|
6719 |
|
6720 | getDynamicOptions: function getDynamicOptions(items, extraProps, getCaptionFromTitleOrAlt, exThumbImage) {
|
6721 | var dynamicElements = [];
|
6722 | var availableDynamicOptions = [].concat(defaultDynamicOptions, toConsumableArray_toConsumableArray(extraProps));
|
6723 | [].forEach.call(items, function (item) {
|
6724 | var dynamicEl = {};
|
6725 |
|
6726 | for (var i = 0; i < item.attributes.length; i++) {
|
6727 | var attr = item.attributes[i];
|
6728 |
|
6729 | if (attr.specified) {
|
6730 | var dynamicAttr = convertToData(attr.name);
|
6731 | var label = '';
|
6732 |
|
6733 | if (availableDynamicOptions.indexOf(dynamicAttr) > -1) {
|
6734 | label = dynamicAttr;
|
6735 | }
|
6736 |
|
6737 | if (label) {
|
6738 | dynamicEl[label] = attr.value;
|
6739 | }
|
6740 | }
|
6741 | }
|
6742 |
|
6743 | var currentItem = $LG(item);
|
6744 | var alt = currentItem.find('img').first().attr('alt');
|
6745 | var title = currentItem.attr('title');
|
6746 | var thumb = exThumbImage ? currentItem.attr(exThumbImage) : currentItem.find('img').first().attr('src');
|
6747 | dynamicEl.thumb = thumb;
|
6748 |
|
6749 | if (getCaptionFromTitleOrAlt && !dynamicEl.subHtml) {
|
6750 | dynamicEl.subHtml = title || alt || '';
|
6751 | }
|
6752 |
|
6753 | dynamicEl.alt = alt || title || '';
|
6754 | dynamicElements.push(dynamicEl);
|
6755 | });
|
6756 | return dynamicElements;
|
6757 | },
|
6758 | isMobile: function isMobile() {
|
6759 | return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
6760 | },
|
6761 |
|
6762 | |
6763 |
|
6764 |
|
6765 |
|
6766 |
|
6767 |
|
6768 |
|
6769 |
|
6770 | isVideo: function isVideo(src, isHTML5VIdeo, index) {
|
6771 | if (!src) {
|
6772 | if (isHTML5VIdeo) {
|
6773 | return {
|
6774 | html5: true
|
6775 | };
|
6776 | } else {
|
6777 | console.error('lightGallery :- data-src is not provided on slide item ' + (index + 1) + '. Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/');
|
6778 | return;
|
6779 | }
|
6780 | }
|
6781 |
|
6782 | var youtube = src.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i);
|
6783 | var vimeo = src.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i);
|
6784 | var wistia = src.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);
|
6785 |
|
6786 | if (youtube) {
|
6787 | return {
|
6788 | youtube: youtube
|
6789 | };
|
6790 | } else if (vimeo) {
|
6791 | return {
|
6792 | vimeo: vimeo
|
6793 | };
|
6794 | } else if (wistia) {
|
6795 | return {
|
6796 | wistia: wistia
|
6797 | };
|
6798 | }
|
6799 | }
|
6800 | };
|
6801 | var lg_utils = (utils);
|
6802 |
|
6803 |
|
6804 |
|
6805 |
|
6806 |
|
6807 |
|
6808 |
|
6809 |
|
6810 |
|
6811 |
|
6812 |
|
6813 |
|
6814 |
|
6815 |
|
6816 |
|
6817 |
|
6818 | var lgId = 0;
|
6819 | var lightgallery_LightGallery = function () {
|
6820 | function LightGallery(element, options) {
|
6821 | _classCallCheck(this, LightGallery);
|
6822 |
|
6823 | this.lgOpened = false;
|
6824 | this.index = 0;
|
6825 |
|
6826 | this.plugins = [];
|
6827 |
|
6828 | this.lGalleryOn = false;
|
6829 |
|
6830 | this.lgBusy = false;
|
6831 | this.currentItemsInDom = [];
|
6832 |
|
6833 | this.prevScrollTop = 0;
|
6834 | this.bodyPaddingRight = 0;
|
6835 | this.isDummyImageRemoved = false;
|
6836 | this.dragOrSwipeEnabled = false;
|
6837 | this.mediaContainerPosition = {
|
6838 | top: 0,
|
6839 | bottom: 0
|
6840 | };
|
6841 |
|
6842 | if (!element) {
|
6843 | return this;
|
6844 | }
|
6845 |
|
6846 | lgId++;
|
6847 | this.lgId = lgId;
|
6848 | this.el = element;
|
6849 | this.LGel = $LG(element);
|
6850 | this.generateSettings(options);
|
6851 | this.buildModules();
|
6852 |
|
6853 | if (this.settings.dynamic && this.settings.dynamicEl !== undefined && !Array.isArray(this.settings.dynamicEl)) {
|
6854 | throw 'When using dynamic mode, you must also define dynamicEl as an Array.';
|
6855 | }
|
6856 |
|
6857 | this.galleryItems = this.getItems();
|
6858 | this.normalizeSettings();
|
6859 |
|
6860 | this.init();
|
6861 | this.validateLicense();
|
6862 | return this;
|
6863 | }
|
6864 |
|
6865 | _createClass(LightGallery, [{
|
6866 | key: "generateSettings",
|
6867 | value: function generateSettings(options) {
|
6868 |
|
6869 | this.settings = _objectSpread2(_objectSpread2({}, lightGalleryCoreSettings), options);
|
6870 |
|
6871 | if (this.settings.isMobile && typeof this.settings.isMobile === 'function' ? this.settings.isMobile() : lg_utils.isMobile()) {
|
6872 | var mobileSettings = _objectSpread2(_objectSpread2({}, this.settings.mobileSettings), this.settings.mobileSettings);
|
6873 |
|
6874 | this.settings = _objectSpread2(_objectSpread2({}, this.settings), mobileSettings);
|
6875 | }
|
6876 | }
|
6877 | }, {
|
6878 | key: "normalizeSettings",
|
6879 | value: function normalizeSettings() {
|
6880 | if (this.settings.slideEndAnimation) {
|
6881 | this.settings.hideControlOnEnd = false;
|
6882 | }
|
6883 |
|
6884 | if (!this.settings.closable) {
|
6885 | this.settings.swipeToClose = false;
|
6886 | }
|
6887 |
|
6888 |
|
6889 | this.zoomFromOrigin = this.settings.zoomFromOrigin;
|
6890 |
|
6891 |
|
6892 | if (this.settings.dynamic) {
|
6893 | this.zoomFromOrigin = false;
|
6894 | }
|
6895 |
|
6896 | if (!this.settings.container) {
|
6897 | this.settings.container = document.body;
|
6898 | }
|
6899 |
|
6900 |
|
6901 | this.settings.preload = Math.min(this.settings.preload, this.galleryItems.length);
|
6902 | }
|
6903 | }, {
|
6904 | key: "init",
|
6905 | value: function init() {
|
6906 | var _this = this;
|
6907 |
|
6908 | this.addSlideVideoInfo(this.galleryItems);
|
6909 | this.buildStructure();
|
6910 | this.LGel.trigger(lGEvents.init, {
|
6911 | instance: this
|
6912 | });
|
6913 |
|
6914 | if (this.settings.keyPress) {
|
6915 | this.keyPress();
|
6916 | }
|
6917 |
|
6918 | setTimeout(function () {
|
6919 | _this.enableDrag();
|
6920 |
|
6921 | _this.enableSwipe();
|
6922 |
|
6923 | _this.triggerPosterClick();
|
6924 | }, 50);
|
6925 | this.arrow();
|
6926 |
|
6927 | if (this.settings.mousewheel) {
|
6928 | this.mousewheel();
|
6929 | }
|
6930 |
|
6931 | if (!this.settings.dynamic) {
|
6932 | this.openGalleryOnItemClick();
|
6933 | }
|
6934 | }
|
6935 | }, {
|
6936 | key: "openGalleryOnItemClick",
|
6937 | value: function openGalleryOnItemClick() {
|
6938 | var _this2 = this;
|
6939 |
|
6940 | var _loop2 = function _loop2(index) {
|
6941 | var element = _this2.items[index];
|
6942 | var $element = $LG(element);
|
6943 |
|
6944 |
|
6945 | var uuid = lgQuery_lgQuery.generateUUID();
|
6946 | $element.attr('data-lg-id', uuid).on("click.lgcustom-item-".concat(uuid), function (e) {
|
6947 | e.preventDefault();
|
6948 | var currentItemIndex = _this2.settings.index || index;
|
6949 |
|
6950 | _this2.openGallery(currentItemIndex, element);
|
6951 | });
|
6952 | };
|
6953 |
|
6954 |
|
6955 | for (var index = 0; index < this.items.length; index++) {
|
6956 | _loop2(index);
|
6957 | }
|
6958 | }
|
6959 | |
6960 |
|
6961 |
|
6962 |
|
6963 |
|
6964 |
|
6965 |
|
6966 | }, {
|
6967 | key: "buildModules",
|
6968 | value: function buildModules() {
|
6969 | var _this3 = this;
|
6970 |
|
6971 | this.settings.plugins.forEach(function (plugin) {
|
6972 | _this3.plugins.push(new plugin(_this3, $LG));
|
6973 | });
|
6974 | }
|
6975 | }, {
|
6976 | key: "validateLicense",
|
6977 | value: function validateLicense() {
|
6978 | if (!this.settings.licenseKey) {
|
6979 | console.error('Please provide a valid license key');
|
6980 | } else if (this.settings.licenseKey === '0000-0000-000-0000') {
|
6981 | console.warn("lightGallery: ".concat(this.settings.licenseKey, " license key is not valid for production use"));
|
6982 | }
|
6983 | }
|
6984 | }, {
|
6985 | key: "getSlideItem",
|
6986 | value: function getSlideItem(index) {
|
6987 | return $LG(this.getSlideItemId(index));
|
6988 | }
|
6989 | }, {
|
6990 | key: "getSlideItemId",
|
6991 | value: function getSlideItemId(index) {
|
6992 | return "#lg-item-".concat(this.lgId, "-").concat(index);
|
6993 | }
|
6994 | }, {
|
6995 | key: "getIdName",
|
6996 | value: function getIdName(id) {
|
6997 | return "".concat(id, "-").concat(this.lgId);
|
6998 | }
|
6999 | }, {
|
7000 | key: "getElementById",
|
7001 | value: function getElementById(id) {
|
7002 | return $LG("#".concat(this.getIdName(id)));
|
7003 | }
|
7004 | }, {
|
7005 | key: "manageSingleSlideClassName",
|
7006 | value: function manageSingleSlideClassName() {
|
7007 | if (this.galleryItems.length < 2) {
|
7008 | this.outer.addClass('lg-single-item');
|
7009 | } else {
|
7010 | this.outer.removeClass('lg-single-item');
|
7011 | }
|
7012 | }
|
7013 | }, {
|
7014 | key: "buildStructure",
|
7015 | value: function buildStructure() {
|
7016 | var _this4 = this;
|
7017 |
|
7018 | var container = this.$container && this.$container.get();
|
7019 |
|
7020 | if (container) {
|
7021 | return;
|
7022 | }
|
7023 |
|
7024 | var controls = '';
|
7025 | var subHtmlCont = '';
|
7026 |
|
7027 | if (this.settings.controls) {
|
7028 | controls = "<button type=\"button\" id=\"".concat(this.getIdName('lg-prev'), "\" aria-label=\"").concat(this.settings.strings['previousSlide'], "\" class=\"lg-prev lg-icon\"> ").concat(this.settings.prevHtml, " </button>\n <button type=\"button\" id=\"").concat(this.getIdName('lg-next'), "\" aria-label=\"").concat(this.settings.strings['nextSlide'], "\" class=\"lg-next lg-icon\"> ").concat(this.settings.nextHtml, " </button>");
|
7029 | }
|
7030 |
|
7031 | if (this.settings.appendSubHtmlTo !== '.lg-item') {
|
7032 | subHtmlCont = '<div class="lg-sub-html" role="status" aria-live="polite"></div>';
|
7033 | }
|
7034 |
|
7035 | var addClasses = '';
|
7036 |
|
7037 | if (this.settings.allowMediaOverlap) {
|
7038 |
|
7039 | addClasses += 'lg-media-overlap ';
|
7040 | }
|
7041 |
|
7042 | var ariaLabelledby = this.settings.ariaLabelledby ? 'aria-labelledby="' + this.settings.ariaLabelledby + '"' : '';
|
7043 | var ariaDescribedby = this.settings.ariaDescribedby ? 'aria-describedby="' + this.settings.ariaDescribedby + '"' : '';
|
7044 | var containerClassName = "lg-container ".concat(this.settings.addClass, " ").concat(document.body !== this.settings.container ? 'lg-inline' : '');
|
7045 | var closeIcon = this.settings.closable && this.settings.showCloseIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['closeGallery'], "\" id=\"").concat(this.getIdName('lg-close'), "\" class=\"lg-close lg-icon\"></button>") : '';
|
7046 | var maximizeIcon = this.settings.showMaximizeIcon ? "<button type=\"button\" aria-label=\"".concat(this.settings.strings['toggleMaximize'], "\" id=\"").concat(this.getIdName('lg-maximize'), "\" class=\"lg-maximize lg-icon\"></button>") : '';
|
7047 | var template = "\n <div class=\"".concat(containerClassName, "\" id=\"").concat(this.getIdName('lg-container'), "\" tabindex=\"-1\" aria-modal=\"true\" ").concat(ariaLabelledby, " ").concat(ariaDescribedby, " role=\"dialog\"\n >\n <div id=\"").concat(this.getIdName('lg-backdrop'), "\" class=\"lg-backdrop\"></div>\n\n <div id=\"").concat(this.getIdName('lg-outer'), "\" class=\"lg-outer lg-use-css3 lg-css3 lg-hide-items ").concat(addClasses, " \">\n\n <div id=\"").concat(this.getIdName('lg-content'), "\" class=\"lg-content\">\n <div id=\"").concat(this.getIdName('lg-inner'), "\" class=\"lg-inner\">\n </div>\n ").concat(controls, "\n </div>\n <div id=\"").concat(this.getIdName('lg-toolbar'), "\" class=\"lg-toolbar lg-group\">\n ").concat(maximizeIcon, "\n ").concat(closeIcon, "\n </div>\n ").concat(this.settings.appendSubHtmlTo === '.lg-outer' ? subHtmlCont : '', "\n <div id=\"").concat(this.getIdName('lg-components'), "\" class=\"lg-components\">\n ").concat(this.settings.appendSubHtmlTo === '.lg-sub-html' ? subHtmlCont : '', "\n </div>\n </div>\n </div>\n ");
|
7048 | $LG(this.settings.container).append(template);
|
7049 |
|
7050 | if (document.body !== this.settings.container) {
|
7051 | $LG(this.settings.container).css('position', 'relative');
|
7052 | }
|
7053 |
|
7054 | this.outer = this.getElementById('lg-outer');
|
7055 | this.$lgComponents = this.getElementById('lg-components');
|
7056 | this.$backdrop = this.getElementById('lg-backdrop');
|
7057 | this.$container = this.getElementById('lg-container');
|
7058 | this.$inner = this.getElementById('lg-inner');
|
7059 | this.$content = this.getElementById('lg-content');
|
7060 | this.$toolbar = this.getElementById('lg-toolbar');
|
7061 | this.$backdrop.css('transition-duration', this.settings.backdropDuration + 'ms');
|
7062 | var outerClassNames = "".concat(this.settings.mode, " ");
|
7063 | this.manageSingleSlideClassName();
|
7064 |
|
7065 | if (this.settings.enableDrag) {
|
7066 | outerClassNames += 'lg-grab ';
|
7067 | }
|
7068 |
|
7069 | this.outer.addClass(outerClassNames);
|
7070 | this.$inner.css('transition-timing-function', this.settings.easing);
|
7071 | this.$inner.css('transition-duration', this.settings.speed + 'ms');
|
7072 |
|
7073 | if (this.settings.download) {
|
7074 | this.$toolbar.append("<a id=\"".concat(this.getIdName('lg-download'), "\" target=\"_blank\" rel=\"noopener\" aria-label=\"").concat(this.settings.strings['download'], "\" download class=\"lg-download lg-icon\"></a>"));
|
7075 | }
|
7076 |
|
7077 | this.counter();
|
7078 | $LG(window).on("resize.lg.global".concat(this.lgId, " orientationchange.lg.global").concat(this.lgId), function () {
|
7079 | _this4.refreshOnResize();
|
7080 | });
|
7081 | this.hideBars();
|
7082 | this.manageCloseGallery();
|
7083 | this.toggleMaximize();
|
7084 | this.initModules();
|
7085 | }
|
7086 | }, {
|
7087 | key: "refreshOnResize",
|
7088 | value: function refreshOnResize() {
|
7089 | if (this.lgOpened) {
|
7090 | var currentGalleryItem = this.galleryItems[this.index];
|
7091 | var __slideVideoInfo = currentGalleryItem.__slideVideoInfo;
|
7092 | this.mediaContainerPosition = this.getMediaContainerPosition();
|
7093 | var _this$mediaContainerP = this.mediaContainerPosition,
|
7094 | top = _this$mediaContainerP.top,
|
7095 | bottom = _this$mediaContainerP.bottom;
|
7096 | this.currentImageSize = lg_utils.getSize(this.items[this.index], this.outer, top + bottom, __slideVideoInfo && this.settings.videoMaxSize);
|
7097 |
|
7098 | if (__slideVideoInfo) {
|
7099 | this.resizeVideoSlide(this.index, this.currentImageSize);
|
7100 | }
|
7101 |
|
7102 | if (this.zoomFromOrigin && !this.isDummyImageRemoved) {
|
7103 | var imgStyle = this.getDummyImgStyles(this.currentImageSize);
|
7104 | this.outer.find('.lg-current .lg-dummy-img').first().attr('style', imgStyle);
|
7105 | }
|
7106 |
|
7107 | this.LGel.trigger(lGEvents.containerResize);
|
7108 | }
|
7109 | }
|
7110 | }, {
|
7111 | key: "resizeVideoSlide",
|
7112 | value: function resizeVideoSlide(index, imageSize) {
|
7113 | var lgVideoStyle = this.getVideoContStyle(imageSize);
|
7114 | var currentSlide = this.getSlideItem(index);
|
7115 | currentSlide.find('.lg-video-cont').attr('style', lgVideoStyle);
|
7116 | }
|
7117 | |
7118 |
|
7119 |
|
7120 |
|
7121 |
|
7122 |
|
7123 |
|
7124 |
|
7125 |
|
7126 |
|
7127 |
|
7128 |
|
7129 |
|
7130 |
|
7131 |
|
7132 |
|
7133 |
|
7134 |
|
7135 |
|
7136 |
|
7137 |
|
7138 |
|
7139 |
|
7140 |
|
7141 |
|
7142 |
|
7143 |
|
7144 |
|
7145 |
|
7146 |
|
7147 |
|
7148 |
|
7149 |
|
7150 |
|
7151 |
|
7152 |
|
7153 |
|
7154 |
|
7155 |
|
7156 |
|
7157 |
|
7158 |
|
7159 |
|
7160 | }, {
|
7161 | key: "updateSlides",
|
7162 | value: function updateSlides(items, index) {
|
7163 | if (this.index > items.length - 1) {
|
7164 | this.index = items.length - 1;
|
7165 | }
|
7166 |
|
7167 | if (items.length === 1) {
|
7168 | this.index = 0;
|
7169 | }
|
7170 |
|
7171 | if (!items.length) {
|
7172 | this.closeGallery();
|
7173 | return;
|
7174 | }
|
7175 |
|
7176 | var currentSrc = this.galleryItems[index].src;
|
7177 | this.galleryItems = items;
|
7178 | this.updateControls();
|
7179 | this.$inner.empty();
|
7180 | this.currentItemsInDom = [];
|
7181 | var _index = 0;
|
7182 |
|
7183 | this.galleryItems.some(function (galleryItem, itemIndex) {
|
7184 | if (galleryItem.src === currentSrc) {
|
7185 | _index = itemIndex;
|
7186 | return true;
|
7187 | }
|
7188 |
|
7189 | return false;
|
7190 | });
|
7191 | this.currentItemsInDom = this.organizeSlideItems(_index, -1);
|
7192 | this.loadContent(_index, true);
|
7193 | this.getSlideItem(_index).addClass('lg-current');
|
7194 | this.index = _index;
|
7195 | this.updateCurrentCounter(_index);
|
7196 | this.LGel.trigger(lGEvents.updateSlides);
|
7197 | }
|
7198 |
|
7199 | }, {
|
7200 | key: "getItems",
|
7201 | value: function getItems() {
|
7202 |
|
7203 | this.items = [];
|
7204 |
|
7205 | if (!this.settings.dynamic) {
|
7206 | if (this.settings.selector === 'this') {
|
7207 | this.items.push(this.el);
|
7208 | } else if (this.settings.selector) {
|
7209 | if (typeof this.settings.selector === 'string') {
|
7210 | if (this.settings.selectWithin) {
|
7211 | var selectWithin = $LG(this.settings.selectWithin);
|
7212 | this.items = selectWithin.find(this.settings.selector).get();
|
7213 | } else {
|
7214 | this.items = this.el.querySelectorAll(this.settings.selector);
|
7215 | }
|
7216 | } else {
|
7217 | this.items = this.settings.selector;
|
7218 | }
|
7219 | } else {
|
7220 | this.items = this.el.children;
|
7221 | }
|
7222 |
|
7223 | return lg_utils.getDynamicOptions(this.items, this.settings.extraProps, this.settings.getCaptionFromTitleOrAlt, this.settings.exThumbImage);
|
7224 | } else {
|
7225 | return this.settings.dynamicEl || [];
|
7226 | }
|
7227 | }
|
7228 | }, {
|
7229 | key: "shouldHideScrollbar",
|
7230 | value: function shouldHideScrollbar() {
|
7231 | return this.settings.hideScrollbar && document.body === this.settings.container;
|
7232 | }
|
7233 | }, {
|
7234 | key: "hideScrollbar",
|
7235 | value: function hideScrollbar() {
|
7236 | if (!this.shouldHideScrollbar()) {
|
7237 | return;
|
7238 | }
|
7239 |
|
7240 | this.bodyPaddingRight = parseFloat($LG('body').style().paddingRight);
|
7241 | var bodyRect = document.documentElement.getBoundingClientRect();
|
7242 | var scrollbarWidth = window.innerWidth - bodyRect.width;
|
7243 | $LG(document.body).css('padding-right', scrollbarWidth + this.bodyPaddingRight + 'px');
|
7244 | $LG(document.body).addClass('lg-overlay-open');
|
7245 | }
|
7246 | }, {
|
7247 | key: "resetScrollBar",
|
7248 | value: function resetScrollBar() {
|
7249 | if (!this.shouldHideScrollbar()) {
|
7250 | return;
|
7251 | }
|
7252 |
|
7253 | $LG(document.body).css('padding-right', this.bodyPaddingRight + 'px');
|
7254 | $LG(document.body).removeClass('lg-overlay-open');
|
7255 | }
|
7256 | |
7257 |
|
7258 |
|
7259 |
|
7260 |
|
7261 |
|
7262 |
|
7263 |
|
7264 |
|
7265 |
|
7266 |
|
7267 |
|
7268 |
|
7269 |
|
7270 |
|
7271 |
|
7272 |
|
7273 |
|
7274 |
|
7275 |
|
7276 |
|
7277 |
|
7278 |
|
7279 |
|
7280 |
|
7281 |
|
7282 |
|
7283 |
|
7284 |
|
7285 | }, {
|
7286 | key: "openGallery",
|
7287 | value: function openGallery() {
|
7288 | var _this5 = this;
|
7289 |
|
7290 | var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.settings.index;
|
7291 | var element = arguments.length > 1 ? arguments[1] : undefined;
|
7292 |
|
7293 | if (this.lgOpened) return;
|
7294 | this.lgOpened = true;
|
7295 | this.outer.removeClass('lg-hide-items');
|
7296 | this.hideScrollbar();
|
7297 |
|
7298 | this.$container.addClass('lg-show');
|
7299 | var itemsToBeInsertedToDom = this.getItemsToBeInsertedToDom(index, index);
|
7300 | this.currentItemsInDom = itemsToBeInsertedToDom;
|
7301 | var items = '';
|
7302 | itemsToBeInsertedToDom.forEach(function (item) {
|
7303 | items = items + "<div id=\"".concat(item, "\" class=\"lg-item\"></div>");
|
7304 | });
|
7305 | this.$inner.append(items);
|
7306 | this.addHtml(index);
|
7307 | var transform = '';
|
7308 | this.mediaContainerPosition = this.getMediaContainerPosition();
|
7309 | var _this$mediaContainerP2 = this.mediaContainerPosition,
|
7310 | top = _this$mediaContainerP2.top,
|
7311 | bottom = _this$mediaContainerP2.bottom;
|
7312 |
|
7313 | if (!this.settings.allowMediaOverlap) {
|
7314 | this.setMediaContainerPosition(top, bottom);
|
7315 | }
|
7316 |
|
7317 | var __slideVideoInfo = this.galleryItems[index].__slideVideoInfo;
|
7318 |
|
7319 | if (this.zoomFromOrigin && element) {
|
7320 | this.currentImageSize = lg_utils.getSize(element, this.outer, top + bottom, __slideVideoInfo && this.settings.videoMaxSize);
|
7321 | transform = lg_utils.getTransform(element, this.outer, top, bottom, this.currentImageSize);
|
7322 | }
|
7323 |
|
7324 | if (!this.zoomFromOrigin || !transform) {
|
7325 | this.outer.addClass(this.settings.startClass);
|
7326 | this.getSlideItem(index).removeClass('lg-complete');
|
7327 | }
|
7328 |
|
7329 | var timeout = this.settings.zoomFromOrigin ? 100 : this.settings.backdropDuration;
|
7330 | setTimeout(function () {
|
7331 | _this5.outer.addClass('lg-components-open');
|
7332 | }, timeout);
|
7333 | this.index = index;
|
7334 | this.LGel.trigger(lGEvents.beforeOpen);
|
7335 |
|
7336 | this.getSlideItem(index).addClass('lg-current');
|
7337 | this.lGalleryOn = false;
|
7338 |
|
7339 | this.prevScrollTop = $LG(window).scrollTop();
|
7340 | setTimeout(function () {
|
7341 |
|
7342 |
|
7343 | if (_this5.zoomFromOrigin && transform) {
|
7344 | var currentSlide = _this5.getSlideItem(index);
|
7345 |
|
7346 | currentSlide.css('transform', transform);
|
7347 | setTimeout(function () {
|
7348 | currentSlide.addClass('lg-start-progress lg-start-end-progress').css('transition-duration', _this5.settings.startAnimationDuration + 'ms');
|
7349 |
|
7350 | _this5.outer.addClass('lg-zoom-from-image');
|
7351 | });
|
7352 | setTimeout(function () {
|
7353 | currentSlide.css('transform', 'translate3d(0, 0, 0)');
|
7354 | }, 100);
|
7355 | }
|
7356 |
|
7357 | setTimeout(function () {
|
7358 | _this5.$backdrop.addClass('in');
|
7359 |
|
7360 | _this5.$container.addClass('lg-show-in');
|
7361 | }, 10);
|
7362 | setTimeout(function () {
|
7363 | if (_this5.settings.trapFocus && document.body === _this5.settings.container) {
|
7364 | _this5.trapFocus();
|
7365 | }
|
7366 | }, _this5.settings.backdropDuration + 50);
|
7367 |
|
7368 | if (!_this5.zoomFromOrigin || !transform) {
|
7369 | setTimeout(function () {
|
7370 | _this5.outer.addClass('lg-visible');
|
7371 | }, _this5.settings.backdropDuration);
|
7372 | }
|
7373 |
|
7374 |
|
7375 | _this5.slide(index, false, false, false);
|
7376 |
|
7377 | _this5.LGel.trigger(lGEvents.afterOpen);
|
7378 | });
|
7379 |
|
7380 | if (document.body === this.settings.container) {
|
7381 | $LG('html').addClass('lg-on');
|
7382 | }
|
7383 | }
|
7384 | |
7385 |
|
7386 |
|
7387 |
|
7388 |
|
7389 |
|
7390 |
|
7391 | }, {
|
7392 | key: "getMediaContainerPosition",
|
7393 | value: function getMediaContainerPosition() {
|
7394 | if (this.settings.allowMediaOverlap) {
|
7395 | return {
|
7396 | top: 0,
|
7397 | bottom: 0
|
7398 | };
|
7399 | }
|
7400 |
|
7401 | var top = this.$toolbar.get().clientHeight || 0;
|
7402 | var subHtml = this.outer.find('.lg-components .lg-sub-html').get();
|
7403 | var captionHeight = this.settings.defaultCaptionHeight || subHtml && subHtml.clientHeight || 0;
|
7404 | var thumbContainer = this.outer.find('.lg-thumb-outer').get();
|
7405 | var thumbHeight = thumbContainer ? thumbContainer.clientHeight : 0;
|
7406 | var bottom = thumbHeight + captionHeight;
|
7407 | return {
|
7408 | top: top,
|
7409 | bottom: bottom
|
7410 | };
|
7411 | }
|
7412 | }, {
|
7413 | key: "setMediaContainerPosition",
|
7414 | value: function setMediaContainerPosition() {
|
7415 | var top = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
7416 | var bottom = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
7417 | this.$content.css('top', top + 'px').css('bottom', bottom + 'px');
|
7418 | }
|
7419 | }, {
|
7420 | key: "hideBars",
|
7421 | value: function hideBars() {
|
7422 | var _this6 = this;
|
7423 |
|
7424 |
|
7425 | setTimeout(function () {
|
7426 | _this6.outer.removeClass('lg-hide-items');
|
7427 |
|
7428 | if (_this6.settings.hideBarsDelay > 0) {
|
7429 | _this6.outer.on('mousemove.lg click.lg touchstart.lg', function () {
|
7430 | _this6.outer.removeClass('lg-hide-items');
|
7431 |
|
7432 | clearTimeout(_this6.hideBarTimeout);
|
7433 |
|
7434 | _this6.hideBarTimeout = setTimeout(function () {
|
7435 | _this6.outer.addClass('lg-hide-items');
|
7436 | }, _this6.settings.hideBarsDelay);
|
7437 | });
|
7438 |
|
7439 | _this6.outer.trigger('mousemove.lg');
|
7440 | }
|
7441 | }, this.settings.showBarsAfter);
|
7442 | }
|
7443 | }, {
|
7444 | key: "initPictureFill",
|
7445 | value: function initPictureFill($img) {
|
7446 | if (this.settings.supportLegacyBrowser) {
|
7447 | try {
|
7448 | picturefill({
|
7449 | elements: [$img.get()]
|
7450 | });
|
7451 | } catch (e) {
|
7452 | console.warn('lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.');
|
7453 | }
|
7454 | }
|
7455 | }
|
7456 | |
7457 |
|
7458 |
|
7459 |
|
7460 |
|
7461 | }, {
|
7462 | key: "counter",
|
7463 | value: function counter() {
|
7464 | if (this.settings.counter) {
|
7465 | var counterHtml = "<div class=\"lg-counter\" role=\"status\" aria-live=\"polite\">\n <span id=\"".concat(this.getIdName('lg-counter-current'), "\" class=\"lg-counter-current\">").concat(this.index + 1, " </span> /\n <span id=\"").concat(this.getIdName('lg-counter-all'), "\" class=\"lg-counter-all\">").concat(this.galleryItems.length, " </span></div>");
|
7466 | this.outer.find(this.settings.appendCounterTo).append(counterHtml);
|
7467 | }
|
7468 | }
|
7469 | |
7470 |
|
7471 |
|
7472 |
|
7473 |
|
7474 | }, {
|
7475 | key: "addHtml",
|
7476 | value: function addHtml(index) {
|
7477 | var subHtml;
|
7478 | var subHtmlUrl;
|
7479 |
|
7480 | if (this.galleryItems[index].subHtmlUrl) {
|
7481 | subHtmlUrl = this.galleryItems[index].subHtmlUrl;
|
7482 | } else {
|
7483 | subHtml = this.galleryItems[index].subHtml;
|
7484 | }
|
7485 |
|
7486 | if (!subHtmlUrl) {
|
7487 | if (subHtml) {
|
7488 |
|
7489 |
|
7490 | var fL = subHtml.substring(0, 1);
|
7491 |
|
7492 | if (fL === '.' || fL === '#') {
|
7493 | if (this.settings.subHtmlSelectorRelative && !this.settings.dynamic) {
|
7494 | subHtml = $LG(this.items).eq(index).find(subHtml).first().html();
|
7495 | } else {
|
7496 | subHtml = $LG(subHtml).first().html();
|
7497 | }
|
7498 | }
|
7499 | } else {
|
7500 | subHtml = '';
|
7501 | }
|
7502 | }
|
7503 |
|
7504 | if (this.settings.appendSubHtmlTo !== '.lg-item') {
|
7505 | if (subHtmlUrl) {
|
7506 | this.outer.find('.lg-sub-html').load(subHtmlUrl);
|
7507 | } else {
|
7508 | this.outer.find('.lg-sub-html').html(subHtml);
|
7509 | }
|
7510 | } else {
|
7511 | var currentSlide = $LG(this.getSlideItemId(index));
|
7512 |
|
7513 | if (subHtmlUrl) {
|
7514 | currentSlide.load(subHtmlUrl);
|
7515 | } else {
|
7516 | currentSlide.append("<div class=\"lg-sub-html\">".concat(subHtml, "</div>"));
|
7517 | }
|
7518 | }
|
7519 |
|
7520 |
|
7521 | if (typeof subHtml !== 'undefined' && subHtml !== null) {
|
7522 | if (subHtml === '') {
|
7523 | this.outer.find(this.settings.appendSubHtmlTo).addClass('lg-empty-html');
|
7524 | } else {
|
7525 | this.outer.find(this.settings.appendSubHtmlTo).removeClass('lg-empty-html');
|
7526 | }
|
7527 | }
|
7528 |
|
7529 | this.LGel.trigger(lGEvents.afterAppendSubHtml, {
|
7530 | index: index
|
7531 | });
|
7532 | }
|
7533 | |
7534 |
|
7535 |
|
7536 |
|
7537 |
|
7538 |
|
7539 | }, {
|
7540 | key: "preload",
|
7541 | value: function preload(index) {
|
7542 | for (var i = 1; i <= this.settings.preload; i++) {
|
7543 | if (i >= this.galleryItems.length - index) {
|
7544 | break;
|
7545 | }
|
7546 |
|
7547 | this.loadContent(index + i, false);
|
7548 | }
|
7549 |
|
7550 | for (var j = 1; j <= this.settings.preload; j++) {
|
7551 | if (index - j < 0) {
|
7552 | break;
|
7553 | }
|
7554 |
|
7555 | this.loadContent(index - j, false);
|
7556 | }
|
7557 | }
|
7558 | }, {
|
7559 | key: "getDummyImgStyles",
|
7560 | value: function getDummyImgStyles(imageSize) {
|
7561 | if (!imageSize) return '';
|
7562 | return "width:".concat(imageSize.width, "px;\n margin-left: -").concat(imageSize.width / 2, "px;\n margin-top: -").concat(imageSize.height / 2, "px;\n height:").concat(imageSize.height, "px");
|
7563 | }
|
7564 | }, {
|
7565 | key: "getVideoContStyle",
|
7566 | value: function getVideoContStyle(imageSize) {
|
7567 | if (!imageSize) return '';
|
7568 | return "width:".concat(imageSize.width, "px;\n height:").concat(imageSize.height, "px");
|
7569 | }
|
7570 | }, {
|
7571 | key: "getDummyImageContent",
|
7572 | value: function getDummyImageContent($currentSlide, index, alt) {
|
7573 | var $currentItem;
|
7574 |
|
7575 | if (!this.settings.dynamic) {
|
7576 | $currentItem = $LG(this.items).eq(index);
|
7577 | }
|
7578 |
|
7579 | if ($currentItem) {
|
7580 | var _dummyImgSrc;
|
7581 |
|
7582 | if (!this.settings.exThumbImage) {
|
7583 | _dummyImgSrc = $currentItem.find('img').first().attr('src');
|
7584 | } else {
|
7585 | _dummyImgSrc = $currentItem.attr(this.settings.exThumbImage);
|
7586 | }
|
7587 |
|
7588 | if (!_dummyImgSrc) return '';
|
7589 | var imgStyle = this.getDummyImgStyles(this.currentImageSize);
|
7590 | var dummyImgContent = "<img ".concat(alt, " style=\"").concat(imgStyle, "\" class=\"lg-dummy-img\" src=\"").concat(_dummyImgSrc, "\" />");
|
7591 | $currentSlide.addClass('lg-first-slide');
|
7592 | this.outer.addClass('lg-first-slide-loading');
|
7593 | return dummyImgContent;
|
7594 | }
|
7595 |
|
7596 | return '';
|
7597 | }
|
7598 | }, {
|
7599 | key: "setImgMarkup",
|
7600 | value: function setImgMarkup(src, $currentSlide, index) {
|
7601 | var currentGalleryItem = this.galleryItems[index];
|
7602 | var alt = currentGalleryItem.alt,
|
7603 | srcset = currentGalleryItem.srcset,
|
7604 | sizes = currentGalleryItem.sizes,
|
7605 | sources = currentGalleryItem.sources;
|
7606 |
|
7607 |
|
7608 | var imgContent = '';
|
7609 | var altAttr = alt ? 'alt="' + alt + '"' : '';
|
7610 |
|
7611 | if (this.isFirstSlideWithZoomAnimation()) {
|
7612 | imgContent = this.getDummyImageContent($currentSlide, index, altAttr);
|
7613 | } else {
|
7614 | imgContent = lg_utils.getImgMarkup(index, src, altAttr, srcset, sizes, sources);
|
7615 | }
|
7616 |
|
7617 | var imgMarkup = "<picture class=\"lg-img-wrap\"> ".concat(imgContent, "</picture>");
|
7618 | $currentSlide.prepend(imgMarkup);
|
7619 | }
|
7620 | }, {
|
7621 | key: "onSlideObjectLoad",
|
7622 | value: function onSlideObjectLoad($slide, isHTML5VideoWithoutPoster, onLoad, onError) {
|
7623 | var mediaObject = $slide.find('.lg-object').first();
|
7624 |
|
7625 | if (lg_utils.isImageLoaded(mediaObject.get()) || isHTML5VideoWithoutPoster) {
|
7626 | onLoad();
|
7627 | } else {
|
7628 | mediaObject.on('load.lg error.lg', function () {
|
7629 | onLoad && onLoad();
|
7630 | });
|
7631 | mediaObject.on('error.lg', function () {
|
7632 | onError && onError();
|
7633 | });
|
7634 | }
|
7635 | }
|
7636 | |
7637 |
|
7638 |
|
7639 |
|
7640 |
|
7641 |
|
7642 |
|
7643 |
|
7644 |
|
7645 | }, {
|
7646 | key: "onLgObjectLoad",
|
7647 | value: function onLgObjectLoad(currentSlide, index, delay, speed, isFirstSlide, isHTML5VideoWithoutPoster) {
|
7648 | var _this7 = this;
|
7649 |
|
7650 | this.onSlideObjectLoad(currentSlide, isHTML5VideoWithoutPoster, function () {
|
7651 | _this7.triggerSlideItemLoad(currentSlide, index, delay, speed, isFirstSlide);
|
7652 | }, function () {
|
7653 | currentSlide.addClass('lg-complete lg-complete_');
|
7654 | currentSlide.html('<span class="lg-error-msg">Oops... Failed to load content...</span>');
|
7655 | });
|
7656 | }
|
7657 | }, {
|
7658 | key: "triggerSlideItemLoad",
|
7659 | value: function triggerSlideItemLoad($currentSlide, index, delay, speed, isFirstSlide) {
|
7660 | var _this8 = this;
|
7661 |
|
7662 | var currentGalleryItem = this.galleryItems[index];
|
7663 |
|
7664 |
|
7665 | var _speed = isFirstSlide && this.getSlideType(currentGalleryItem) === 'video' && !currentGalleryItem.poster ? speed : 0;
|
7666 |
|
7667 | setTimeout(function () {
|
7668 | $currentSlide.addClass('lg-complete lg-complete_');
|
7669 |
|
7670 | _this8.LGel.trigger(lGEvents.slideItemLoad, {
|
7671 | index: index,
|
7672 | delay: delay || 0,
|
7673 | isFirstSlide: isFirstSlide
|
7674 | });
|
7675 | }, _speed);
|
7676 | }
|
7677 | }, {
|
7678 | key: "isFirstSlideWithZoomAnimation",
|
7679 | value: function isFirstSlideWithZoomAnimation() {
|
7680 | return !!(!this.lGalleryOn && this.zoomFromOrigin && this.currentImageSize);
|
7681 | }
|
7682 |
|
7683 | }, {
|
7684 | key: "addSlideVideoInfo",
|
7685 | value: function addSlideVideoInfo(items) {
|
7686 | var _this9 = this;
|
7687 |
|
7688 | items.forEach(function (element, index) {
|
7689 | element.__slideVideoInfo = lg_utils.isVideo(element.src, !!element.video, index);
|
7690 |
|
7691 | if (element.__slideVideoInfo && _this9.settings.loadYouTubePoster && !element.poster && element.__slideVideoInfo.youtube) {
|
7692 | element.poster = "//img.youtube.com/vi/".concat(element.__slideVideoInfo.youtube[1], "/maxresdefault.jpg");
|
7693 | }
|
7694 | });
|
7695 | }
|
7696 | |
7697 |
|
7698 |
|
7699 |
|
7700 |
|
7701 |
|
7702 |
|
7703 | }, {
|
7704 | key: "loadContent",
|
7705 | value: function loadContent(index, rec) {
|
7706 | var _this10 = this;
|
7707 |
|
7708 | var currentGalleryItem = this.galleryItems[index];
|
7709 | var $currentSlide = $LG(this.getSlideItemId(index));
|
7710 | var poster = currentGalleryItem.poster,
|
7711 | srcset = currentGalleryItem.srcset,
|
7712 | sizes = currentGalleryItem.sizes,
|
7713 | sources = currentGalleryItem.sources;
|
7714 | var src = currentGalleryItem.src;
|
7715 | var video = currentGalleryItem.video;
|
7716 |
|
7717 | var _html5Video = video && typeof video === 'string' ? JSON.parse(video) : video;
|
7718 |
|
7719 | if (currentGalleryItem.responsive) {
|
7720 | var srcDyItms = currentGalleryItem.responsive.split(',');
|
7721 | src = lg_utils.getResponsiveSrc(srcDyItms) || src;
|
7722 | }
|
7723 |
|
7724 | var videoInfo = currentGalleryItem.__slideVideoInfo;
|
7725 | var lgVideoStyle = '';
|
7726 | var iframe = !!currentGalleryItem.iframe;
|
7727 | var isFirstSlide = !this.lGalleryOn;
|
7728 |
|
7729 | var delay = 0;
|
7730 |
|
7731 | if (isFirstSlide) {
|
7732 | if (this.zoomFromOrigin && this.currentImageSize) {
|
7733 | delay = this.settings.startAnimationDuration + 10;
|
7734 | } else {
|
7735 | delay = this.settings.backdropDuration + 10;
|
7736 | }
|
7737 | }
|
7738 |
|
7739 | if (!$currentSlide.hasClass('lg-loaded')) {
|
7740 | if (videoInfo) {
|
7741 | var _this$mediaContainerP3 = this.mediaContainerPosition,
|
7742 | top = _this$mediaContainerP3.top,
|
7743 | bottom = _this$mediaContainerP3.bottom;
|
7744 | var videoSize = lg_utils.getSize(this.items[index], this.outer, top + bottom, videoInfo && this.settings.videoMaxSize);
|
7745 | lgVideoStyle = this.getVideoContStyle(videoSize);
|
7746 | }
|
7747 |
|
7748 | if (iframe) {
|
7749 | var markup = lg_utils.getIframeMarkup(this.settings.iframeWidth, this.settings.iframeHeight, this.settings.iframeMaxWidth, this.settings.iframeMaxHeight, src, currentGalleryItem.iframeTitle);
|
7750 | $currentSlide.prepend(markup);
|
7751 | } else if (poster) {
|
7752 | var dummyImg = '';
|
7753 | var hasStartAnimation = isFirstSlide && this.zoomFromOrigin && this.currentImageSize;
|
7754 |
|
7755 | if (hasStartAnimation) {
|
7756 | dummyImg = this.getDummyImageContent($currentSlide, index, '');
|
7757 | }
|
7758 |
|
7759 | var _markup = lg_utils.getVideoPosterMarkup(poster, dummyImg || '', lgVideoStyle, this.settings.strings['playVideo'], videoInfo);
|
7760 |
|
7761 | $currentSlide.prepend(_markup);
|
7762 | } else if (videoInfo) {
|
7763 | var _markup2 = "<div class=\"lg-video-cont \" style=\"".concat(lgVideoStyle, "\"></div>");
|
7764 |
|
7765 | $currentSlide.prepend(_markup2);
|
7766 | } else {
|
7767 | this.setImgMarkup(src, $currentSlide, index);
|
7768 |
|
7769 | if (srcset || sources) {
|
7770 | var $img = $currentSlide.find('.lg-object');
|
7771 | this.initPictureFill($img);
|
7772 | }
|
7773 | }
|
7774 |
|
7775 | if (poster || videoInfo) {
|
7776 | this.LGel.trigger(lGEvents.hasVideo, {
|
7777 | index: index,
|
7778 | src: src,
|
7779 | html5Video: _html5Video,
|
7780 | hasPoster: !!poster
|
7781 | });
|
7782 | }
|
7783 |
|
7784 | this.LGel.trigger(lGEvents.afterAppendSlide, {
|
7785 | index: index
|
7786 | });
|
7787 |
|
7788 | if (this.lGalleryOn && this.settings.appendSubHtmlTo === '.lg-item') {
|
7789 | this.addHtml(index);
|
7790 | }
|
7791 | }
|
7792 |
|
7793 |
|
7794 | var _speed = 0;
|
7795 |
|
7796 |
|
7797 | if (delay && !$LG(document.body).hasClass('lg-from-hash')) {
|
7798 | _speed = delay;
|
7799 | }
|
7800 |
|
7801 |
|
7802 | if (this.isFirstSlideWithZoomAnimation()) {
|
7803 | setTimeout(function () {
|
7804 | $currentSlide.removeClass('lg-start-end-progress lg-start-progress').removeAttr('style');
|
7805 | }, this.settings.startAnimationDuration + 100);
|
7806 |
|
7807 | if (!$currentSlide.hasClass('lg-loaded')) {
|
7808 | setTimeout(function () {
|
7809 | if (_this10.getSlideType(currentGalleryItem) === 'image') {
|
7810 | var alt = currentGalleryItem.alt;
|
7811 | var altAttr = alt ? 'alt="' + alt + '"' : '';
|
7812 | $currentSlide.find('.lg-img-wrap').append(lg_utils.getImgMarkup(index, src, altAttr, srcset, sizes, currentGalleryItem.sources));
|
7813 |
|
7814 | if (srcset || sources) {
|
7815 | var _$img = $currentSlide.find('.lg-object');
|
7816 |
|
7817 | _this10.initPictureFill(_$img);
|
7818 | }
|
7819 | }
|
7820 |
|
7821 | if (_this10.getSlideType(currentGalleryItem) === 'image' || _this10.getSlideType(currentGalleryItem) === 'video' && poster) {
|
7822 | _this10.onLgObjectLoad($currentSlide, index, delay, _speed, true, false);
|
7823 |
|
7824 |
|
7825 | _this10.onSlideObjectLoad($currentSlide, !!(videoInfo && videoInfo.html5 && !poster), function () {
|
7826 | _this10.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
|
7827 | }, function () {
|
7828 | _this10.loadContentOnFirstSlideLoad(index, $currentSlide, _speed);
|
7829 | });
|
7830 | }
|
7831 | }, this.settings.startAnimationDuration + 100);
|
7832 | }
|
7833 | }
|
7834 |
|
7835 |
|
7836 | $currentSlide.addClass('lg-loaded');
|
7837 |
|
7838 | if (!this.isFirstSlideWithZoomAnimation() || this.getSlideType(currentGalleryItem) === 'video' && !poster) {
|
7839 | this.onLgObjectLoad($currentSlide, index, delay, _speed, isFirstSlide, !!(videoInfo && videoInfo.html5 && !poster));
|
7840 | }
|
7841 |
|
7842 |
|
7843 | if ((!this.zoomFromOrigin || !this.currentImageSize) && $currentSlide.hasClass('lg-complete_') && !this.lGalleryOn) {
|
7844 | setTimeout(function () {
|
7845 | $currentSlide.addClass('lg-complete');
|
7846 | }, this.settings.backdropDuration);
|
7847 | }
|
7848 |
|
7849 |
|
7850 |
|
7851 | this.lGalleryOn = true;
|
7852 |
|
7853 | if (rec === true) {
|
7854 | if (!$currentSlide.hasClass('lg-complete_')) {
|
7855 | $currentSlide.find('.lg-object').first().on('load.lg error.lg', function () {
|
7856 | _this10.preload(index);
|
7857 | });
|
7858 | } else {
|
7859 | this.preload(index);
|
7860 | }
|
7861 | }
|
7862 | }
|
7863 | |
7864 |
|
7865 |
|
7866 |
|
7867 |
|
7868 |
|
7869 |
|
7870 |
|
7871 | }, {
|
7872 | key: "loadContentOnFirstSlideLoad",
|
7873 | value: function loadContentOnFirstSlideLoad(index, $currentSlide, speed) {
|
7874 | var _this11 = this;
|
7875 |
|
7876 | setTimeout(function () {
|
7877 | $currentSlide.find('.lg-dummy-img').remove();
|
7878 | $currentSlide.removeClass('lg-first-slide');
|
7879 |
|
7880 | _this11.outer.removeClass('lg-first-slide-loading');
|
7881 |
|
7882 | _this11.isDummyImageRemoved = true;
|
7883 |
|
7884 | _this11.preload(index);
|
7885 | }, speed + 300);
|
7886 | }
|
7887 | }, {
|
7888 | key: "getItemsToBeInsertedToDom",
|
7889 | value: function getItemsToBeInsertedToDom(index, prevIndex) {
|
7890 | var _this12 = this;
|
7891 |
|
7892 | var numberOfItems = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
7893 | var itemsToBeInsertedToDom = [];
|
7894 |
|
7895 | var possibleNumberOfItems = Math.max(numberOfItems, 3);
|
7896 | possibleNumberOfItems = Math.min(possibleNumberOfItems, this.galleryItems.length);
|
7897 | var prevIndexItem = "lg-item-".concat(this.lgId, "-").concat(prevIndex);
|
7898 |
|
7899 | if (this.galleryItems.length <= 3) {
|
7900 | this.galleryItems.forEach(function (_element, index) {
|
7901 | itemsToBeInsertedToDom.push("lg-item-".concat(_this12.lgId, "-").concat(index));
|
7902 | });
|
7903 | return itemsToBeInsertedToDom;
|
7904 | }
|
7905 |
|
7906 | if (index < (this.galleryItems.length - 1) / 2) {
|
7907 | for (var idx = index; idx > index - possibleNumberOfItems / 2 && idx >= 0; idx--) {
|
7908 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(idx));
|
7909 | }
|
7910 |
|
7911 | var numberOfExistingItems = itemsToBeInsertedToDom.length;
|
7912 |
|
7913 | for (var _idx = 0; _idx < possibleNumberOfItems - numberOfExistingItems; _idx++) {
|
7914 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(index + _idx + 1));
|
7915 | }
|
7916 | } else {
|
7917 | for (var _idx2 = index; _idx2 <= this.galleryItems.length - 1 && _idx2 < index + possibleNumberOfItems / 2; _idx2++) {
|
7918 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(_idx2));
|
7919 | }
|
7920 |
|
7921 | var _numberOfExistingItems = itemsToBeInsertedToDom.length;
|
7922 |
|
7923 | for (var _idx3 = 0; _idx3 < possibleNumberOfItems - _numberOfExistingItems; _idx3++) {
|
7924 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(index - _idx3 - 1));
|
7925 | }
|
7926 | }
|
7927 |
|
7928 | if (this.settings.loop) {
|
7929 | if (index === this.galleryItems.length - 1) {
|
7930 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-", 0));
|
7931 | } else if (index === 0) {
|
7932 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(this.galleryItems.length - 1));
|
7933 | }
|
7934 | }
|
7935 |
|
7936 | if (itemsToBeInsertedToDom.indexOf(prevIndexItem) === -1) {
|
7937 | itemsToBeInsertedToDom.push("lg-item-".concat(this.lgId, "-").concat(prevIndex));
|
7938 | }
|
7939 |
|
7940 | return itemsToBeInsertedToDom;
|
7941 | }
|
7942 | }, {
|
7943 | key: "organizeSlideItems",
|
7944 | value: function organizeSlideItems(index, prevIndex) {
|
7945 | var _this13 = this;
|
7946 |
|
7947 | var itemsToBeInsertedToDom = this.getItemsToBeInsertedToDom(index, prevIndex, this.settings.numberOfSlideItemsInDom);
|
7948 | itemsToBeInsertedToDom.forEach(function (item) {
|
7949 | if (_this13.currentItemsInDom.indexOf(item) === -1) {
|
7950 | _this13.$inner.append("<div id=\"".concat(item, "\" class=\"lg-item\"></div>"));
|
7951 | }
|
7952 | });
|
7953 | this.currentItemsInDom.forEach(function (item) {
|
7954 | if (itemsToBeInsertedToDom.indexOf(item) === -1) {
|
7955 | $LG("#".concat(item)).remove();
|
7956 | }
|
7957 | });
|
7958 | return itemsToBeInsertedToDom;
|
7959 | }
|
7960 | |
7961 |
|
7962 |
|
7963 |
|
7964 | }, {
|
7965 | key: "getPreviousSlideIndex",
|
7966 | value: function getPreviousSlideIndex() {
|
7967 | var prevIndex = 0;
|
7968 |
|
7969 | try {
|
7970 | var currentItemId = this.outer.find('.lg-current').first().attr('id');
|
7971 | prevIndex = parseInt(currentItemId.split('-')[3]) || 0;
|
7972 | } catch (error) {
|
7973 | prevIndex = 0;
|
7974 | }
|
7975 |
|
7976 | return prevIndex;
|
7977 | }
|
7978 | }, {
|
7979 | key: "setDownloadValue",
|
7980 | value: function setDownloadValue(index) {
|
7981 | if (this.settings.download) {
|
7982 | var currentGalleryItem = this.galleryItems[index];
|
7983 | var hideDownloadBtn = currentGalleryItem.downloadUrl === false || currentGalleryItem.downloadUrl === 'false';
|
7984 |
|
7985 | if (hideDownloadBtn) {
|
7986 | this.outer.addClass('lg-hide-download');
|
7987 | } else {
|
7988 | var $download = this.getElementById('lg-download');
|
7989 | this.outer.removeClass('lg-hide-download');
|
7990 | $download.attr('href', currentGalleryItem.downloadUrl || currentGalleryItem.src);
|
7991 |
|
7992 | if (currentGalleryItem.download) {
|
7993 | $download.attr('download', currentGalleryItem.download);
|
7994 | }
|
7995 | }
|
7996 | }
|
7997 | }
|
7998 | }, {
|
7999 | key: "makeSlideAnimation",
|
8000 | value: function makeSlideAnimation(direction, currentSlideItem, previousSlideItem) {
|
8001 | var _this14 = this;
|
8002 |
|
8003 | if (this.lGalleryOn) {
|
8004 | previousSlideItem.addClass('lg-slide-progress');
|
8005 | }
|
8006 |
|
8007 | setTimeout(function () {
|
8008 |
|
8009 | _this14.outer.addClass('lg-no-trans');
|
8010 |
|
8011 | _this14.outer.find('.lg-item').removeClass('lg-prev-slide lg-next-slide');
|
8012 |
|
8013 | if (direction === 'prev') {
|
8014 |
|
8015 | currentSlideItem.addClass('lg-prev-slide');
|
8016 | previousSlideItem.addClass('lg-next-slide');
|
8017 | } else {
|
8018 |
|
8019 | currentSlideItem.addClass('lg-next-slide');
|
8020 | previousSlideItem.addClass('lg-prev-slide');
|
8021 | }
|
8022 |
|
8023 |
|
8024 | setTimeout(function () {
|
8025 | _this14.outer.find('.lg-item').removeClass('lg-current');
|
8026 |
|
8027 | currentSlideItem.addClass('lg-current');
|
8028 |
|
8029 | _this14.outer.removeClass('lg-no-trans');
|
8030 | }, 50);
|
8031 | }, this.lGalleryOn ? this.settings.slideDelay : 0);
|
8032 | }
|
8033 | |
8034 |
|
8035 |
|
8036 |
|
8037 |
|
8038 |
|
8039 |
|
8040 |
|
8041 |
|
8042 |
|
8043 |
|
8044 |
|
8045 |
|
8046 |
|
8047 | }, {
|
8048 | key: "slide",
|
8049 | value: function slide(index, fromTouch, fromThumb, direction) {
|
8050 | var _this15 = this;
|
8051 |
|
8052 | var prevIndex = this.getPreviousSlideIndex();
|
8053 | this.currentItemsInDom = this.organizeSlideItems(index, prevIndex);
|
8054 |
|
8055 | if (this.lGalleryOn && prevIndex === index) {
|
8056 | return;
|
8057 | }
|
8058 |
|
8059 | var numberOfGalleryItems = this.galleryItems.length;
|
8060 |
|
8061 | if (!this.lgBusy) {
|
8062 | if (this.settings.counter) {
|
8063 | this.updateCurrentCounter(index);
|
8064 | }
|
8065 |
|
8066 | var currentSlideItem = this.getSlideItem(index);
|
8067 | var previousSlideItem = this.getSlideItem(prevIndex);
|
8068 | var currentGalleryItem = this.galleryItems[index];
|
8069 | var videoInfo = currentGalleryItem.__slideVideoInfo;
|
8070 | this.outer.attr('data-lg-slide-type', this.getSlideType(currentGalleryItem));
|
8071 | this.setDownloadValue(index);
|
8072 |
|
8073 | if (videoInfo) {
|
8074 | var _this$mediaContainerP4 = this.mediaContainerPosition,
|
8075 | top = _this$mediaContainerP4.top,
|
8076 | bottom = _this$mediaContainerP4.bottom;
|
8077 | var videoSize = lg_utils.getSize(this.items[index], this.outer, top + bottom, videoInfo && this.settings.videoMaxSize);
|
8078 | this.resizeVideoSlide(index, videoSize);
|
8079 | }
|
8080 |
|
8081 | this.LGel.trigger(lGEvents.beforeSlide, {
|
8082 | prevIndex: prevIndex,
|
8083 | index: index,
|
8084 | fromTouch: !!fromTouch,
|
8085 | fromThumb: !!fromThumb
|
8086 | });
|
8087 | this.lgBusy = true;
|
8088 | clearTimeout(this.hideBarTimeout);
|
8089 | this.arrowDisable(index);
|
8090 |
|
8091 | if (!direction) {
|
8092 | if (index < prevIndex) {
|
8093 | direction = 'prev';
|
8094 | } else if (index > prevIndex) {
|
8095 | direction = 'next';
|
8096 | }
|
8097 | }
|
8098 |
|
8099 | if (!fromTouch) {
|
8100 | this.makeSlideAnimation(direction, currentSlideItem, previousSlideItem);
|
8101 | } else {
|
8102 | this.outer.find('.lg-item').removeClass('lg-prev-slide lg-current lg-next-slide');
|
8103 | var touchPrev;
|
8104 | var touchNext;
|
8105 |
|
8106 | if (numberOfGalleryItems > 2) {
|
8107 | touchPrev = index - 1;
|
8108 | touchNext = index + 1;
|
8109 |
|
8110 | if (index === 0 && prevIndex === numberOfGalleryItems - 1) {
|
8111 |
|
8112 | touchNext = 0;
|
8113 | touchPrev = numberOfGalleryItems - 1;
|
8114 | } else if (index === numberOfGalleryItems - 1 && prevIndex === 0) {
|
8115 |
|
8116 | touchNext = 0;
|
8117 | touchPrev = numberOfGalleryItems - 1;
|
8118 | }
|
8119 | } else {
|
8120 | touchPrev = 0;
|
8121 | touchNext = 1;
|
8122 | }
|
8123 |
|
8124 | if (direction === 'prev') {
|
8125 | this.getSlideItem(touchNext).addClass('lg-next-slide');
|
8126 | } else {
|
8127 | this.getSlideItem(touchPrev).addClass('lg-prev-slide');
|
8128 | }
|
8129 |
|
8130 | currentSlideItem.addClass('lg-current');
|
8131 | }
|
8132 |
|
8133 |
|
8134 | if (!this.lGalleryOn) {
|
8135 | this.loadContent(index, true);
|
8136 | } else {
|
8137 | setTimeout(function () {
|
8138 | _this15.loadContent(index, true);
|
8139 |
|
8140 |
|
8141 | if (_this15.settings.appendSubHtmlTo !== '.lg-item') {
|
8142 | _this15.addHtml(index);
|
8143 | }
|
8144 | }, this.settings.speed + 50 + (fromTouch ? 0 : this.settings.slideDelay));
|
8145 | }
|
8146 |
|
8147 | setTimeout(function () {
|
8148 | _this15.lgBusy = false;
|
8149 | previousSlideItem.removeClass('lg-slide-progress');
|
8150 |
|
8151 | _this15.LGel.trigger(lGEvents.afterSlide, {
|
8152 | prevIndex: prevIndex,
|
8153 | index: index,
|
8154 | fromTouch: fromTouch,
|
8155 | fromThumb: fromThumb
|
8156 | });
|
8157 | }, (this.lGalleryOn ? this.settings.speed + 100 : 100) + (fromTouch ? 0 : this.settings.slideDelay));
|
8158 | }
|
8159 |
|
8160 | this.index = index;
|
8161 | }
|
8162 | }, {
|
8163 | key: "updateCurrentCounter",
|
8164 | value: function updateCurrentCounter(index) {
|
8165 | this.getElementById('lg-counter-current').html(index + 1 + '');
|
8166 | }
|
8167 | }, {
|
8168 | key: "updateCounterTotal",
|
8169 | value: function updateCounterTotal() {
|
8170 | this.getElementById('lg-counter-all').html(this.galleryItems.length + '');
|
8171 | }
|
8172 | }, {
|
8173 | key: "getSlideType",
|
8174 | value: function getSlideType(item) {
|
8175 | if (item.__slideVideoInfo) {
|
8176 | return 'video';
|
8177 | } else if (item.iframe) {
|
8178 | return 'iframe';
|
8179 | } else {
|
8180 | return 'image';
|
8181 | }
|
8182 | }
|
8183 | }, {
|
8184 | key: "touchMove",
|
8185 | value: function touchMove(startCoords, endCoords, e) {
|
8186 | var distanceX = endCoords.pageX - startCoords.pageX;
|
8187 | var distanceY = endCoords.pageY - startCoords.pageY;
|
8188 | var allowSwipe = false;
|
8189 |
|
8190 | if (this.swipeDirection) {
|
8191 | allowSwipe = true;
|
8192 | } else {
|
8193 | if (Math.abs(distanceX) > 15) {
|
8194 | this.swipeDirection = 'horizontal';
|
8195 | allowSwipe = true;
|
8196 | } else if (Math.abs(distanceY) > 15) {
|
8197 | this.swipeDirection = 'vertical';
|
8198 | allowSwipe = true;
|
8199 | }
|
8200 | }
|
8201 |
|
8202 | if (!allowSwipe) {
|
8203 | return;
|
8204 | }
|
8205 |
|
8206 | var $currentSlide = this.getSlideItem(this.index);
|
8207 |
|
8208 | if (this.swipeDirection === 'horizontal') {
|
8209 | e === null || e === void 0 ? void 0 : e.preventDefault();
|
8210 |
|
8211 | this.outer.addClass('lg-dragging');
|
8212 |
|
8213 | this.setTranslate($currentSlide, distanceX, 0);
|
8214 |
|
8215 | var width = $currentSlide.get().offsetWidth;
|
8216 | var slideWidthAmount = width * 15 / 100;
|
8217 | var gutter = slideWidthAmount - Math.abs(distanceX * 10 / 100);
|
8218 | this.setTranslate(this.outer.find('.lg-prev-slide').first(), -width + distanceX - gutter, 0);
|
8219 | this.setTranslate(this.outer.find('.lg-next-slide').first(), width + distanceX + gutter, 0);
|
8220 | } else if (this.swipeDirection === 'vertical') {
|
8221 | if (this.settings.swipeToClose) {
|
8222 | e === null || e === void 0 ? void 0 : e.preventDefault();
|
8223 | this.$container.addClass('lg-dragging-vertical');
|
8224 | var opacity = 1 - Math.abs(distanceY) / window.innerHeight;
|
8225 | this.$backdrop.css('opacity', opacity);
|
8226 | var scale = 1 - Math.abs(distanceY) / (window.innerWidth * 2);
|
8227 | this.setTranslate($currentSlide, 0, distanceY, scale, scale);
|
8228 |
|
8229 | if (Math.abs(distanceY) > 100) {
|
8230 | this.outer.addClass('lg-hide-items').removeClass('lg-components-open');
|
8231 | }
|
8232 | }
|
8233 | }
|
8234 | }
|
8235 | }, {
|
8236 | key: "touchEnd",
|
8237 | value: function touchEnd(endCoords, startCoords, event) {
|
8238 | var _this16 = this;
|
8239 |
|
8240 | var distance;
|
8241 |
|
8242 | if (this.settings.mode !== 'lg-slide') {
|
8243 | this.outer.addClass('lg-slide');
|
8244 | }
|
8245 |
|
8246 |
|
8247 | setTimeout(function () {
|
8248 | _this16.$container.removeClass('lg-dragging-vertical');
|
8249 |
|
8250 | _this16.outer.removeClass('lg-dragging lg-hide-items').addClass('lg-components-open');
|
8251 |
|
8252 | var triggerClick = true;
|
8253 |
|
8254 | if (_this16.swipeDirection === 'horizontal') {
|
8255 | distance = endCoords.pageX - startCoords.pageX;
|
8256 | var distanceAbs = Math.abs(endCoords.pageX - startCoords.pageX);
|
8257 |
|
8258 | if (distance < 0 && distanceAbs > _this16.settings.swipeThreshold) {
|
8259 | _this16.goToNextSlide(true);
|
8260 |
|
8261 | triggerClick = false;
|
8262 | } else if (distance > 0 && distanceAbs > _this16.settings.swipeThreshold) {
|
8263 | _this16.goToPrevSlide(true);
|
8264 |
|
8265 | triggerClick = false;
|
8266 | }
|
8267 | } else if (_this16.swipeDirection === 'vertical') {
|
8268 | distance = Math.abs(endCoords.pageY - startCoords.pageY);
|
8269 |
|
8270 | if (_this16.settings.closable && _this16.settings.swipeToClose && distance > 100) {
|
8271 | _this16.closeGallery();
|
8272 |
|
8273 | return;
|
8274 | } else {
|
8275 | _this16.$backdrop.css('opacity', 1);
|
8276 | }
|
8277 | }
|
8278 |
|
8279 | _this16.outer.find('.lg-item').removeAttr('style');
|
8280 |
|
8281 | if (triggerClick && Math.abs(endCoords.pageX - startCoords.pageX) < 5) {
|
8282 |
|
8283 | var target = $LG(event.target);
|
8284 |
|
8285 | if (_this16.isPosterElement(target)) {
|
8286 | _this16.LGel.trigger(lGEvents.posterClick);
|
8287 | }
|
8288 | }
|
8289 |
|
8290 | _this16.swipeDirection = undefined;
|
8291 | });
|
8292 |
|
8293 | setTimeout(function () {
|
8294 | if (!_this16.outer.hasClass('lg-dragging') && _this16.settings.mode !== 'lg-slide') {
|
8295 | _this16.outer.removeClass('lg-slide');
|
8296 | }
|
8297 | }, this.settings.speed + 100);
|
8298 | }
|
8299 | }, {
|
8300 | key: "enableSwipe",
|
8301 | value: function enableSwipe() {
|
8302 | var _this17 = this;
|
8303 |
|
8304 | var startCoords = {};
|
8305 | var endCoords = {};
|
8306 | var isMoved = false;
|
8307 | var isSwiping = false;
|
8308 |
|
8309 | if (this.settings.enableSwipe) {
|
8310 | this.$inner.on('touchstart.lg', function (e) {
|
8311 | _this17.dragOrSwipeEnabled = true;
|
8312 |
|
8313 | var $item = _this17.getSlideItem(_this17.index);
|
8314 |
|
8315 | if (($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) && !_this17.outer.hasClass('lg-zoomed') && !_this17.lgBusy && e.touches.length === 1) {
|
8316 | isSwiping = true;
|
8317 | _this17.touchAction = 'swipe';
|
8318 |
|
8319 | _this17.manageSwipeClass();
|
8320 |
|
8321 | startCoords = {
|
8322 | pageX: e.touches[0].pageX,
|
8323 | pageY: e.touches[0].pageY
|
8324 | };
|
8325 | }
|
8326 | });
|
8327 | this.$inner.on('touchmove.lg', function (e) {
|
8328 | if (isSwiping && _this17.touchAction === 'swipe' && e.touches.length === 1) {
|
8329 | endCoords = {
|
8330 | pageX: e.touches[0].pageX,
|
8331 | pageY: e.touches[0].pageY
|
8332 | };
|
8333 |
|
8334 | _this17.touchMove(startCoords, endCoords, e);
|
8335 |
|
8336 | isMoved = true;
|
8337 | }
|
8338 | });
|
8339 | this.$inner.on('touchend.lg', function (event) {
|
8340 | if (_this17.touchAction === 'swipe') {
|
8341 | if (isMoved) {
|
8342 | isMoved = false;
|
8343 |
|
8344 | _this17.touchEnd(endCoords, startCoords, event);
|
8345 | } else if (isSwiping) {
|
8346 | var target = $LG(event.target);
|
8347 |
|
8348 | if (_this17.isPosterElement(target)) {
|
8349 | _this17.LGel.trigger(lGEvents.posterClick);
|
8350 | }
|
8351 | }
|
8352 |
|
8353 | _this17.touchAction = undefined;
|
8354 | isSwiping = false;
|
8355 | }
|
8356 | });
|
8357 | }
|
8358 | }
|
8359 | }, {
|
8360 | key: "enableDrag",
|
8361 | value: function enableDrag() {
|
8362 | var _this18 = this;
|
8363 |
|
8364 | var startCoords = {};
|
8365 | var endCoords = {};
|
8366 | var isDraging = false;
|
8367 | var isMoved = false;
|
8368 |
|
8369 | if (this.settings.enableDrag) {
|
8370 | this.outer.on('mousedown.lg', function (e) {
|
8371 | _this18.dragOrSwipeEnabled = true;
|
8372 |
|
8373 | var $item = _this18.getSlideItem(_this18.index);
|
8374 |
|
8375 | if ($LG(e.target).hasClass('lg-item') || $item.get().contains(e.target)) {
|
8376 | if (!_this18.outer.hasClass('lg-zoomed') && !_this18.lgBusy) {
|
8377 | e.preventDefault();
|
8378 |
|
8379 | if (!_this18.lgBusy) {
|
8380 | _this18.manageSwipeClass();
|
8381 |
|
8382 | startCoords = {
|
8383 | pageX: e.pageX,
|
8384 | pageY: e.pageY
|
8385 | };
|
8386 | isDraging = true;
|
8387 |
|
8388 | _this18.outer.get().scrollLeft += 1;
|
8389 | _this18.outer.get().scrollLeft -= 1;
|
8390 |
|
8391 | _this18.outer.removeClass('lg-grab').addClass('lg-grabbing');
|
8392 |
|
8393 | _this18.LGel.trigger(lGEvents.dragStart);
|
8394 | }
|
8395 | }
|
8396 | }
|
8397 | });
|
8398 | $LG(window).on("mousemove.lg.global".concat(this.lgId), function (e) {
|
8399 | if (isDraging && _this18.lgOpened) {
|
8400 | isMoved = true;
|
8401 | endCoords = {
|
8402 | pageX: e.pageX,
|
8403 | pageY: e.pageY
|
8404 | };
|
8405 |
|
8406 | _this18.touchMove(startCoords, endCoords);
|
8407 |
|
8408 | _this18.LGel.trigger(lGEvents.dragMove);
|
8409 | }
|
8410 | });
|
8411 | $LG(window).on("mouseup.lg.global".concat(this.lgId), function (event) {
|
8412 | if (!_this18.lgOpened) {
|
8413 | return;
|
8414 | }
|
8415 |
|
8416 | var target = $LG(event.target);
|
8417 |
|
8418 | if (isMoved) {
|
8419 | isMoved = false;
|
8420 |
|
8421 | _this18.touchEnd(endCoords, startCoords, event);
|
8422 |
|
8423 | _this18.LGel.trigger(lGEvents.dragEnd);
|
8424 | } else if (_this18.isPosterElement(target)) {
|
8425 | _this18.LGel.trigger(lGEvents.posterClick);
|
8426 | }
|
8427 |
|
8428 |
|
8429 | if (isDraging) {
|
8430 | isDraging = false;
|
8431 |
|
8432 | _this18.outer.removeClass('lg-grabbing').addClass('lg-grab');
|
8433 | }
|
8434 | });
|
8435 | }
|
8436 | }
|
8437 | }, {
|
8438 | key: "triggerPosterClick",
|
8439 | value: function triggerPosterClick() {
|
8440 | var _this19 = this;
|
8441 |
|
8442 | this.$inner.on('click.lg', function (event) {
|
8443 | if (!_this19.dragOrSwipeEnabled && _this19.isPosterElement($LG(event.target))) {
|
8444 | _this19.LGel.trigger(lGEvents.posterClick);
|
8445 | }
|
8446 | });
|
8447 | }
|
8448 | }, {
|
8449 | key: "manageSwipeClass",
|
8450 | value: function manageSwipeClass() {
|
8451 | var _touchNext = this.index + 1;
|
8452 |
|
8453 | var _touchPrev = this.index - 1;
|
8454 |
|
8455 | if (this.settings.loop && this.galleryItems.length > 2) {
|
8456 | if (this.index === 0) {
|
8457 | _touchPrev = this.galleryItems.length - 1;
|
8458 | } else if (this.index === this.galleryItems.length - 1) {
|
8459 | _touchNext = 0;
|
8460 | }
|
8461 | }
|
8462 |
|
8463 | this.outer.find('.lg-item').removeClass('lg-next-slide lg-prev-slide');
|
8464 |
|
8465 | if (_touchPrev > -1) {
|
8466 | this.getSlideItem(_touchPrev).addClass('lg-prev-slide');
|
8467 | }
|
8468 |
|
8469 | this.getSlideItem(_touchNext).addClass('lg-next-slide');
|
8470 | }
|
8471 | |
8472 |
|
8473 |
|
8474 |
|
8475 |
|
8476 |
|
8477 |
|
8478 |
|
8479 |
|
8480 |
|
8481 | }, {
|
8482 | key: "goToNextSlide",
|
8483 | value: function goToNextSlide(fromTouch) {
|
8484 | var _this20 = this;
|
8485 |
|
8486 | var _loop = this.settings.loop;
|
8487 |
|
8488 | if (fromTouch && this.galleryItems.length < 3) {
|
8489 | _loop = false;
|
8490 | }
|
8491 |
|
8492 | if (!this.lgBusy) {
|
8493 | if (this.index + 1 < this.galleryItems.length) {
|
8494 | this.index++;
|
8495 | this.LGel.trigger(lGEvents.beforeNextSlide, {
|
8496 | index: this.index
|
8497 | });
|
8498 | this.slide(this.index, !!fromTouch, false, 'next');
|
8499 | } else {
|
8500 | if (_loop) {
|
8501 | this.index = 0;
|
8502 | this.LGel.trigger(lGEvents.beforeNextSlide, {
|
8503 | index: this.index
|
8504 | });
|
8505 | this.slide(this.index, !!fromTouch, false, 'next');
|
8506 | } else if (this.settings.slideEndAnimation && !fromTouch) {
|
8507 | this.outer.addClass('lg-right-end');
|
8508 | setTimeout(function () {
|
8509 | _this20.outer.removeClass('lg-right-end');
|
8510 | }, 400);
|
8511 | }
|
8512 | }
|
8513 | }
|
8514 | }
|
8515 | |
8516 |
|
8517 |
|
8518 |
|
8519 |
|
8520 |
|
8521 |
|
8522 |
|
8523 |
|
8524 |
|
8525 |
|
8526 | }, {
|
8527 | key: "goToPrevSlide",
|
8528 | value: function goToPrevSlide(fromTouch) {
|
8529 | var _this21 = this;
|
8530 |
|
8531 | var _loop = this.settings.loop;
|
8532 |
|
8533 | if (fromTouch && this.galleryItems.length < 3) {
|
8534 | _loop = false;
|
8535 | }
|
8536 |
|
8537 | if (!this.lgBusy) {
|
8538 | if (this.index > 0) {
|
8539 | this.index--;
|
8540 | this.LGel.trigger(lGEvents.beforePrevSlide, {
|
8541 | index: this.index,
|
8542 | fromTouch: fromTouch
|
8543 | });
|
8544 | this.slide(this.index, !!fromTouch, false, 'prev');
|
8545 | } else {
|
8546 | if (_loop) {
|
8547 | this.index = this.galleryItems.length - 1;
|
8548 | this.LGel.trigger(lGEvents.beforePrevSlide, {
|
8549 | index: this.index,
|
8550 | fromTouch: fromTouch
|
8551 | });
|
8552 | this.slide(this.index, !!fromTouch, false, 'prev');
|
8553 | } else if (this.settings.slideEndAnimation && !fromTouch) {
|
8554 | this.outer.addClass('lg-left-end');
|
8555 | setTimeout(function () {
|
8556 | _this21.outer.removeClass('lg-left-end');
|
8557 | }, 400);
|
8558 | }
|
8559 | }
|
8560 | }
|
8561 | }
|
8562 | }, {
|
8563 | key: "keyPress",
|
8564 | value: function keyPress() {
|
8565 | var _this22 = this;
|
8566 |
|
8567 | $LG(window).on("keydown.lg.global".concat(this.lgId), function (e) {
|
8568 | if (_this22.lgOpened && _this22.settings.escKey === true && e.keyCode === 27) {
|
8569 | e.preventDefault();
|
8570 |
|
8571 | if (_this22.settings.allowMediaOverlap && _this22.outer.hasClass('lg-can-toggle') && _this22.outer.hasClass('lg-components-open')) {
|
8572 | _this22.outer.removeClass('lg-components-open');
|
8573 | } else {
|
8574 | _this22.closeGallery();
|
8575 | }
|
8576 | }
|
8577 |
|
8578 | if (_this22.lgOpened && _this22.galleryItems.length > 1) {
|
8579 | if (e.keyCode === 37) {
|
8580 | e.preventDefault();
|
8581 |
|
8582 | _this22.goToPrevSlide();
|
8583 | }
|
8584 |
|
8585 | if (e.keyCode === 39) {
|
8586 | e.preventDefault();
|
8587 |
|
8588 | _this22.goToNextSlide();
|
8589 | }
|
8590 | }
|
8591 | });
|
8592 | }
|
8593 | }, {
|
8594 | key: "arrow",
|
8595 | value: function arrow() {
|
8596 | var _this23 = this;
|
8597 |
|
8598 | this.getElementById('lg-prev').on('click.lg', function () {
|
8599 | _this23.goToPrevSlide();
|
8600 | });
|
8601 | this.getElementById('lg-next').on('click.lg', function () {
|
8602 | _this23.goToNextSlide();
|
8603 | });
|
8604 | }
|
8605 | }, {
|
8606 | key: "arrowDisable",
|
8607 | value: function arrowDisable(index) {
|
8608 |
|
8609 | if (!this.settings.loop && this.settings.hideControlOnEnd) {
|
8610 | var $prev = this.getElementById('lg-prev');
|
8611 | var $next = this.getElementById('lg-next');
|
8612 |
|
8613 | if (index + 1 === this.galleryItems.length) {
|
8614 | $next.attr('disabled', 'disabled').addClass('disabled');
|
8615 | } else {
|
8616 | $next.removeAttr('disabled').removeClass('disabled');
|
8617 | }
|
8618 |
|
8619 | if (index === 0) {
|
8620 | $prev.attr('disabled', 'disabled').addClass('disabled');
|
8621 | } else {
|
8622 | $prev.removeAttr('disabled').removeClass('disabled');
|
8623 | }
|
8624 | }
|
8625 | }
|
8626 | }, {
|
8627 | key: "setTranslate",
|
8628 | value: function setTranslate($el, xValue, yValue) {
|
8629 | var scaleX = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
8630 | var scaleY = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
8631 | $el.css('transform', 'translate3d(' + xValue + 'px, ' + yValue + 'px, 0px) scale3d(' + scaleX + ', ' + scaleY + ', 1)');
|
8632 | }
|
8633 | }, {
|
8634 | key: "mousewheel",
|
8635 | value: function mousewheel() {
|
8636 | var _this24 = this;
|
8637 |
|
8638 | var lastCall = 0;
|
8639 | this.outer.on('wheel.lg', function (e) {
|
8640 | if (!e.deltaY || _this24.galleryItems.length < 2) {
|
8641 | return;
|
8642 | }
|
8643 |
|
8644 | e.preventDefault();
|
8645 | var now = new Date().getTime();
|
8646 |
|
8647 | if (now - lastCall < 1000) {
|
8648 | return;
|
8649 | }
|
8650 |
|
8651 | lastCall = now;
|
8652 |
|
8653 | if (e.deltaY > 0) {
|
8654 | _this24.goToNextSlide();
|
8655 | } else if (e.deltaY < 0) {
|
8656 | _this24.goToPrevSlide();
|
8657 | }
|
8658 | });
|
8659 | }
|
8660 | }, {
|
8661 | key: "isSlideElement",
|
8662 | value: function isSlideElement(target) {
|
8663 | return target.hasClass('lg-outer') || target.hasClass('lg-item') || target.hasClass('lg-img-wrap');
|
8664 | }
|
8665 | }, {
|
8666 | key: "isPosterElement",
|
8667 | value: function isPosterElement(target) {
|
8668 | var playButton = this.getSlideItem(this.index).find('.lg-video-play-button').get();
|
8669 | return target.hasClass('lg-video-poster') || target.hasClass('lg-video-play-button') || playButton && playButton.contains(target.get());
|
8670 | }
|
8671 | |
8672 |
|
8673 |
|
8674 |
|
8675 |
|
8676 | }, {
|
8677 | key: "toggleMaximize",
|
8678 | value: function toggleMaximize() {
|
8679 | var _this25 = this;
|
8680 |
|
8681 | this.getElementById('lg-maximize').on('click.lg', function () {
|
8682 | _this25.$container.toggleClass('lg-inline');
|
8683 |
|
8684 | _this25.refreshOnResize();
|
8685 | });
|
8686 | }
|
8687 | }, {
|
8688 | key: "invalidateItems",
|
8689 | value: function invalidateItems() {
|
8690 | for (var index = 0; index < this.items.length; index++) {
|
8691 | var element = this.items[index];
|
8692 | var $element = $LG(element);
|
8693 | $element.off("click.lgcustom-item-".concat($element.attr('data-lg-id')));
|
8694 | }
|
8695 | }
|
8696 | }, {
|
8697 | key: "trapFocus",
|
8698 | value: function trapFocus() {
|
8699 | var _this26 = this;
|
8700 |
|
8701 | this.$container.get().focus({
|
8702 | preventScroll: true
|
8703 | });
|
8704 | $LG(window).on("keydown.lg.global".concat(this.lgId), function (e) {
|
8705 | if (!_this26.lgOpened) {
|
8706 | return;
|
8707 | }
|
8708 |
|
8709 | var isTabPressed = e.key === 'Tab' || e.keyCode === 9;
|
8710 |
|
8711 | if (!isTabPressed) {
|
8712 | return;
|
8713 | }
|
8714 |
|
8715 | var focusableEls = lg_utils.getFocusableElements(_this26.$container.get());
|
8716 | var firstFocusableEl = focusableEls[0];
|
8717 | var lastFocusableEl = focusableEls[focusableEls.length - 1];
|
8718 |
|
8719 | if (e.shiftKey) {
|
8720 | if (document.activeElement === firstFocusableEl) {
|
8721 | lastFocusableEl.focus();
|
8722 | e.preventDefault();
|
8723 | }
|
8724 | } else {
|
8725 | if (document.activeElement === lastFocusableEl) {
|
8726 | firstFocusableEl.focus();
|
8727 | e.preventDefault();
|
8728 | }
|
8729 | }
|
8730 | });
|
8731 | }
|
8732 | }, {
|
8733 | key: "manageCloseGallery",
|
8734 | value: function manageCloseGallery() {
|
8735 | var _this27 = this;
|
8736 |
|
8737 | if (!this.settings.closable) return;
|
8738 | var mousedown = false;
|
8739 | this.getElementById('lg-close').on('click.lg', function () {
|
8740 | _this27.closeGallery();
|
8741 | });
|
8742 |
|
8743 | if (this.settings.closeOnTap) {
|
8744 |
|
8745 |
|
8746 | this.outer.on('mousedown.lg', function (e) {
|
8747 | var target = $LG(e.target);
|
8748 |
|
8749 | if (_this27.isSlideElement(target)) {
|
8750 | mousedown = true;
|
8751 | } else {
|
8752 | mousedown = false;
|
8753 | }
|
8754 | });
|
8755 | this.outer.on('mousemove.lg', function () {
|
8756 | mousedown = false;
|
8757 | });
|
8758 | this.outer.on('mouseup.lg', function (e) {
|
8759 | var target = $LG(e.target);
|
8760 |
|
8761 | if (_this27.isSlideElement(target) && mousedown) {
|
8762 | if (!_this27.outer.hasClass('lg-dragging')) {
|
8763 | _this27.closeGallery();
|
8764 | }
|
8765 | }
|
8766 | });
|
8767 | }
|
8768 | }
|
8769 | |
8770 |
|
8771 |
|
8772 |
|
8773 |
|
8774 |
|
8775 |
|
8776 |
|
8777 |
|
8778 |
|
8779 |
|
8780 |
|
8781 | }, {
|
8782 | key: "closeGallery",
|
8783 | value: function closeGallery(force) {
|
8784 | var _this28 = this;
|
8785 |
|
8786 | if (!this.lgOpened || !this.settings.closable && !force) {
|
8787 | return 0;
|
8788 | }
|
8789 |
|
8790 | this.LGel.trigger(lGEvents.beforeClose);
|
8791 |
|
8792 | if (this.settings.resetScrollPosition && !this.settings.hideScrollbar) {
|
8793 | $LG(window).scrollTop(this.prevScrollTop);
|
8794 | }
|
8795 |
|
8796 | var currentItem = this.items[this.index];
|
8797 | var transform;
|
8798 |
|
8799 | if (this.zoomFromOrigin && currentItem) {
|
8800 | var _this$mediaContainerP5 = this.mediaContainerPosition,
|
8801 | top = _this$mediaContainerP5.top,
|
8802 | bottom = _this$mediaContainerP5.bottom;
|
8803 | var _this$galleryItems$th = this.galleryItems[this.index],
|
8804 | __slideVideoInfo = _this$galleryItems$th.__slideVideoInfo,
|
8805 | poster = _this$galleryItems$th.poster;
|
8806 | var imageSize = lg_utils.getSize(currentItem, this.outer, top + bottom, __slideVideoInfo && poster && this.settings.videoMaxSize);
|
8807 | transform = lg_utils.getTransform(currentItem, this.outer, top, bottom, imageSize);
|
8808 | }
|
8809 |
|
8810 | if (this.zoomFromOrigin && transform) {
|
8811 | this.outer.addClass('lg-closing lg-zoom-from-image');
|
8812 | this.getSlideItem(this.index).addClass('lg-start-end-progress').css('transition-duration', this.settings.startAnimationDuration + 'ms').css('transform', transform);
|
8813 | } else {
|
8814 | this.outer.addClass('lg-hide-items');
|
8815 |
|
8816 |
|
8817 | this.outer.removeClass('lg-zoom-from-image');
|
8818 | }
|
8819 |
|
8820 |
|
8821 |
|
8822 |
|
8823 | this.destroyModules();
|
8824 | this.lGalleryOn = false;
|
8825 | this.isDummyImageRemoved = false;
|
8826 | this.zoomFromOrigin = this.settings.zoomFromOrigin;
|
8827 | clearTimeout(this.hideBarTimeout);
|
8828 | this.hideBarTimeout = false;
|
8829 | $LG('html').removeClass('lg-on');
|
8830 | this.outer.removeClass('lg-visible lg-components-open');
|
8831 |
|
8832 | this.$backdrop.removeClass('in').css('opacity', 0);
|
8833 | var removeTimeout = this.zoomFromOrigin && transform ? Math.max(this.settings.startAnimationDuration, this.settings.backdropDuration) : this.settings.backdropDuration;
|
8834 | this.$container.removeClass('lg-show-in');
|
8835 |
|
8836 | setTimeout(function () {
|
8837 | if (_this28.zoomFromOrigin && transform) {
|
8838 | _this28.outer.removeClass('lg-zoom-from-image');
|
8839 | }
|
8840 |
|
8841 | _this28.$container.removeClass('lg-show');
|
8842 |
|
8843 |
|
8844 | _this28.resetScrollBar();
|
8845 |
|
8846 |
|
8847 | _this28.$backdrop.removeAttr('style').css('transition-duration', _this28.settings.backdropDuration + 'ms');
|
8848 |
|
8849 | _this28.outer.removeClass("lg-closing ".concat(_this28.settings.startClass));
|
8850 |
|
8851 | _this28.getSlideItem(_this28.index).removeClass('lg-start-end-progress');
|
8852 |
|
8853 | _this28.$inner.empty();
|
8854 |
|
8855 | if (_this28.lgOpened) {
|
8856 | _this28.LGel.trigger(lGEvents.afterClose, {
|
8857 | instance: _this28
|
8858 | });
|
8859 | }
|
8860 |
|
8861 | if (_this28.$container.get()) {
|
8862 | _this28.$container.get().blur();
|
8863 | }
|
8864 |
|
8865 | _this28.lgOpened = false;
|
8866 | }, removeTimeout + 100);
|
8867 | return removeTimeout + 100;
|
8868 | }
|
8869 | }, {
|
8870 | key: "initModules",
|
8871 | value: function initModules() {
|
8872 | this.plugins.forEach(function (module) {
|
8873 | try {
|
8874 | module.init();
|
8875 | } catch (err) {
|
8876 | console.warn("lightGallery:- make sure lightGallery module is properly initiated");
|
8877 | }
|
8878 | });
|
8879 | }
|
8880 | }, {
|
8881 | key: "destroyModules",
|
8882 | value: function destroyModules(destroy) {
|
8883 | this.plugins.forEach(function (module) {
|
8884 | try {
|
8885 | if (destroy) {
|
8886 | module.destroy();
|
8887 | } else {
|
8888 | module.closeGallery && module.closeGallery();
|
8889 | }
|
8890 | } catch (err) {
|
8891 | console.warn("lightGallery:- make sure lightGallery module is properly destroyed");
|
8892 | }
|
8893 | });
|
8894 | }
|
8895 | |
8896 |
|
8897 |
|
8898 |
|
8899 |
|
8900 |
|
8901 |
|
8902 |
|
8903 |
|
8904 |
|
8905 |
|
8906 |
|
8907 |
|
8908 |
|
8909 |
|
8910 | }, {
|
8911 | key: "refresh",
|
8912 | value: function refresh(galleryItems) {
|
8913 | if (!this.settings.dynamic) {
|
8914 | this.invalidateItems();
|
8915 | }
|
8916 |
|
8917 | if (galleryItems) {
|
8918 | this.galleryItems = galleryItems;
|
8919 | } else {
|
8920 | this.galleryItems = this.getItems();
|
8921 | }
|
8922 |
|
8923 | this.updateControls();
|
8924 | this.openGalleryOnItemClick();
|
8925 | this.LGel.trigger(lGEvents.updateSlides);
|
8926 | }
|
8927 | }, {
|
8928 | key: "updateControls",
|
8929 | value: function updateControls() {
|
8930 | this.addSlideVideoInfo(this.galleryItems);
|
8931 | this.updateCounterTotal();
|
8932 | this.manageSingleSlideClassName();
|
8933 | }
|
8934 | }, {
|
8935 | key: "destroyGallery",
|
8936 | value: function destroyGallery() {
|
8937 | this.destroyModules(true);
|
8938 |
|
8939 | if (!this.settings.dynamic) {
|
8940 | this.invalidateItems();
|
8941 | }
|
8942 |
|
8943 | $LG(window).off(".lg.global".concat(this.lgId));
|
8944 | this.LGel.off('.lg');
|
8945 | this.$container.remove();
|
8946 | }
|
8947 | |
8948 |
|
8949 |
|
8950 |
|
8951 |
|
8952 |
|
8953 |
|
8954 |
|
8955 |
|
8956 |
|
8957 |
|
8958 |
|
8959 |
|
8960 |
|
8961 | }, {
|
8962 | key: "destroy",
|
8963 | value: function destroy() {
|
8964 | var closeTimeout = this.closeGallery(true);
|
8965 |
|
8966 | if (closeTimeout) {
|
8967 | setTimeout(this.destroyGallery.bind(this), closeTimeout);
|
8968 | } else {
|
8969 | this.destroyGallery();
|
8970 | }
|
8971 |
|
8972 | return closeTimeout;
|
8973 | }
|
8974 | }]);
|
8975 |
|
8976 | return LightGallery;
|
8977 | }();
|
8978 |
|
8979 |
|
8980 |
|
8981 | function lightGallery(el, options) {
|
8982 | return new lightgallery_LightGallery(el, options);
|
8983 | }
|
8984 |
|
8985 | var src_0 = (lightGallery);
|
8986 |
|
8987 |
|
8988 |
|
8989 |
|
8990 |
|
8991 |
|
8992 |
|
8993 |
|
8994 |
|
8995 |
|
8996 |
|
8997 |
|
8998 |
|
8999 |
|
9000 |
|
9001 |
|
9002 | var LightGalleryvue_type_script_lang_ts_Lightgallery = function (_Vue) {
|
9003 | _inherits(Lightgallery, _Vue);
|
9004 |
|
9005 | var _super = _createSuper(Lightgallery);
|
9006 |
|
9007 | function Lightgallery() {
|
9008 | _classCallCheck(this, Lightgallery);
|
9009 |
|
9010 | return _super.apply(this, arguments);
|
9011 | }
|
9012 |
|
9013 | _createClass(Lightgallery, [{
|
9014 | key: "mounted",
|
9015 | value: function mounted() {
|
9016 | this.registerEvents.call(this);
|
9017 | this.LG = src_0(this.$refs.container, _objectSpread2({}, this.settings));
|
9018 | }
|
9019 | }, {
|
9020 | key: "unmounted",
|
9021 | value: function unmounted() {
|
9022 | this.LG.destroy();
|
9023 | }
|
9024 |
|
9025 |
|
9026 | }, {
|
9027 | key: "getMethodName",
|
9028 | value: function getMethodName(word) {
|
9029 | return "on".concat(word.charAt(0).toUpperCase() + word.slice(1));
|
9030 | }
|
9031 |
|
9032 |
|
9033 | }, {
|
9034 | key: "registerEvents",
|
9035 | value: function registerEvents() {
|
9036 | var _this = this;
|
9037 |
|
9038 | Object.keys(lGEvents).forEach(function (key) {
|
9039 |
|
9040 | _this.$refs.container.addEventListener(lGEvents[key].split('.')[0], function (event) {
|
9041 | if (_this[_this.getMethodName(key)]) {
|
9042 | _this[_this.getMethodName.call(_this, key)](event.detail);
|
9043 | }
|
9044 | });
|
9045 | });
|
9046 | }
|
9047 | }]);
|
9048 |
|
9049 | return Lightgallery;
|
9050 | }(Vue);
|
9051 |
|
9052 | LightGalleryvue_type_script_lang_ts_Lightgallery = __decorate([Options({
|
9053 | props: {
|
9054 | settings: {
|
9055 | type: Object
|
9056 | },
|
9057 | onAfterAppendSlide: {
|
9058 | type: Function
|
9059 | },
|
9060 | onInit: {
|
9061 | type: Function
|
9062 | },
|
9063 | onHasVideo: {
|
9064 | type: Function
|
9065 | },
|
9066 | onContainerResize: {
|
9067 | type: Function
|
9068 | },
|
9069 | onAfterAppendSubHtml: {
|
9070 | type: Function
|
9071 | },
|
9072 | onBeforeOpen: {
|
9073 | type: Function
|
9074 | },
|
9075 | onAfterOpen: {
|
9076 | type: Function
|
9077 | },
|
9078 | onSlideItemLoad: {
|
9079 | type: Function
|
9080 | },
|
9081 | onBeforeSlide: {
|
9082 | type: Function
|
9083 | },
|
9084 | onAfterSlide: {
|
9085 | type: Function
|
9086 | },
|
9087 | onPosterClick: {
|
9088 | type: Function
|
9089 | },
|
9090 | onDragStart: {
|
9091 | type: Function
|
9092 | },
|
9093 | onDragMove: {
|
9094 | type: Function
|
9095 | },
|
9096 | onDragEnd: {
|
9097 | type: Function
|
9098 | },
|
9099 | onBeforeNextSlide: {
|
9100 | type: Function
|
9101 | },
|
9102 | onBeforePrevSlide: {
|
9103 | type: Function
|
9104 | },
|
9105 | onBeforeClose: {
|
9106 | type: Function
|
9107 | },
|
9108 | onAfterClose: {
|
9109 | type: Function
|
9110 | },
|
9111 | onRotateLeft: {
|
9112 | type: Function
|
9113 | },
|
9114 | onRotateRight: {
|
9115 | type: Function
|
9116 | },
|
9117 | onFlipHorizontal: {
|
9118 | type: Function
|
9119 | },
|
9120 | onFlipVertical: {
|
9121 | type: Function
|
9122 | }
|
9123 | }
|
9124 | })], LightGalleryvue_type_script_lang_ts_Lightgallery);
|
9125 | var LightGalleryvue_type_script_lang_ts = (LightGalleryvue_type_script_lang_ts_Lightgallery);
|
9126 |
|
9127 |
|
9128 |
|
9129 |
|
9130 |
|
9131 |
|
9132 | LightGalleryvue_type_script_lang_ts.render = render
|
9133 |
|
9134 | var components_LightGallery = (LightGalleryvue_type_script_lang_ts);
|
9135 |
|
9136 |
|
9137 |
|
9138 | var entry_lib = __webpack_exports__["default"] = (components_LightGallery);
|
9139 |
|
9140 |
|
9141 |
|
9142 | }),
|
9143 |
|
9144 | "fb6a":
|
9145 | (function(module, exports, __webpack_require__) {
|
9146 |
|
9147 | "use strict";
|
9148 |
|
9149 | var $ = __webpack_require__("23e7");
|
9150 | var isObject = __webpack_require__("861d");
|
9151 | var isArray = __webpack_require__("e8b5");
|
9152 | var toAbsoluteIndex = __webpack_require__("23cb");
|
9153 | var toLength = __webpack_require__("50c4");
|
9154 | var toIndexedObject = __webpack_require__("fc6a");
|
9155 | var createProperty = __webpack_require__("8418");
|
9156 | var wellKnownSymbol = __webpack_require__("b622");
|
9157 | var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
9158 |
|
9159 | var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
|
9160 |
|
9161 | var SPECIES = wellKnownSymbol('species');
|
9162 | var nativeSlice = [].slice;
|
9163 | var max = Math.max;
|
9164 |
|
9165 |
|
9166 |
|
9167 |
|
9168 | $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
9169 | slice: function slice(start, end) {
|
9170 | var O = toIndexedObject(this);
|
9171 | var length = toLength(O.length);
|
9172 | var k = toAbsoluteIndex(start, length);
|
9173 | var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
9174 |
|
9175 | var Constructor, result, n;
|
9176 | if (isArray(O)) {
|
9177 | Constructor = O.constructor;
|
9178 |
|
9179 | if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
|
9180 | Constructor = undefined;
|
9181 | } else if (isObject(Constructor)) {
|
9182 | Constructor = Constructor[SPECIES];
|
9183 | if (Constructor === null) Constructor = undefined;
|
9184 | }
|
9185 | if (Constructor === Array || Constructor === undefined) {
|
9186 | return nativeSlice.call(O, k, fin);
|
9187 | }
|
9188 | }
|
9189 | result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
|
9190 | for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
9191 | result.length = n;
|
9192 | return result;
|
9193 | }
|
9194 | });
|
9195 |
|
9196 |
|
9197 | }),
|
9198 |
|
9199 | "fc6a":
|
9200 | (function(module, exports, __webpack_require__) {
|
9201 |
|
9202 |
|
9203 | var IndexedObject = __webpack_require__("44ad");
|
9204 | var requireObjectCoercible = __webpack_require__("1d80");
|
9205 |
|
9206 | module.exports = function (it) {
|
9207 | return IndexedObject(requireObjectCoercible(it));
|
9208 | };
|
9209 |
|
9210 |
|
9211 | }),
|
9212 |
|
9213 | "fdbc":
|
9214 | (function(module, exports) {
|
9215 |
|
9216 |
|
9217 |
|
9218 | module.exports = {
|
9219 | CSSRuleList: 0,
|
9220 | CSSStyleDeclaration: 0,
|
9221 | CSSValueList: 0,
|
9222 | ClientRectList: 0,
|
9223 | DOMRectList: 0,
|
9224 | DOMStringList: 0,
|
9225 | DOMTokenList: 1,
|
9226 | DataTransferItemList: 0,
|
9227 | FileList: 0,
|
9228 | HTMLAllCollection: 0,
|
9229 | HTMLCollection: 0,
|
9230 | HTMLFormElement: 0,
|
9231 | HTMLSelectElement: 0,
|
9232 | MediaList: 0,
|
9233 | MimeTypeArray: 0,
|
9234 | NamedNodeMap: 0,
|
9235 | NodeList: 1,
|
9236 | PaintRequestList: 0,
|
9237 | Plugin: 0,
|
9238 | PluginArray: 0,
|
9239 | SVGLengthList: 0,
|
9240 | SVGNumberList: 0,
|
9241 | SVGPathSegList: 0,
|
9242 | SVGPointList: 0,
|
9243 | SVGStringList: 0,
|
9244 | SVGTransformList: 0,
|
9245 | SourceBufferList: 0,
|
9246 | StyleSheetList: 0,
|
9247 | TextTrackCueList: 0,
|
9248 | TextTrackList: 0,
|
9249 | TouchList: 0
|
9250 | };
|
9251 |
|
9252 |
|
9253 | }),
|
9254 |
|
9255 | "fdbf":
|
9256 | (function(module, exports, __webpack_require__) {
|
9257 |
|
9258 |
|
9259 | var NATIVE_SYMBOL = __webpack_require__("4930");
|
9260 |
|
9261 | module.exports = NATIVE_SYMBOL
|
9262 | && !Symbol.sham
|
9263 | && typeof Symbol.iterator == 'symbol';
|
9264 |
|
9265 |
|
9266 | }),
|
9267 |
|
9268 | "fea9":
|
9269 | (function(module, exports, __webpack_require__) {
|
9270 |
|
9271 | var global = __webpack_require__("da84");
|
9272 |
|
9273 | module.exports = global.Promise;
|
9274 |
|
9275 |
|
9276 | })
|
9277 |
|
9278 | })["default"];
|
9279 | });
|
9280 |
|
\ | No newline at end of file |