UNPKG

71.7 kBJavaScriptView Raw
1module.exports =
2/******/ (function(modules) { // webpackBootstrap
3/******/ // The module cache
4/******/ var installedModules = {};
5/******/
6/******/ // The require function
7/******/ function __webpack_require__(moduleId) {
8/******/
9/******/ // Check if module is in cache
10/******/ if(installedModules[moduleId]) {
11/******/ return installedModules[moduleId].exports;
12/******/ }
13/******/ // Create a new module (and put it into the cache)
14/******/ var module = installedModules[moduleId] = {
15/******/ i: moduleId,
16/******/ l: false,
17/******/ exports: {}
18/******/ };
19/******/
20/******/ // Execute the module function
21/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22/******/
23/******/ // Flag the module as loaded
24/******/ module.l = true;
25/******/
26/******/ // Return the exports of the module
27/******/ return module.exports;
28/******/ }
29/******/
30/******/
31/******/ // expose the modules object (__webpack_modules__)
32/******/ __webpack_require__.m = modules;
33/******/
34/******/ // expose the module cache
35/******/ __webpack_require__.c = installedModules;
36/******/
37/******/ // define getter function for harmony exports
38/******/ __webpack_require__.d = function(exports, name, getter) {
39/******/ if(!__webpack_require__.o(exports, name)) {
40/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41/******/ }
42/******/ };
43/******/
44/******/ // define __esModule on exports
45/******/ __webpack_require__.r = function(exports) {
46/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48/******/ }
49/******/ Object.defineProperty(exports, '__esModule', { value: true });
50/******/ };
51/******/
52/******/ // create a fake namespace object
53/******/ // mode & 1: value is a module id, require it
54/******/ // mode & 2: merge all properties of value into the ns
55/******/ // mode & 4: return value when already ns object
56/******/ // mode & 8|1: behave like require
57/******/ __webpack_require__.t = function(value, mode) {
58/******/ if(mode & 1) value = __webpack_require__(value);
59/******/ if(mode & 8) return value;
60/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61/******/ var ns = Object.create(null);
62/******/ __webpack_require__.r(ns);
63/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65/******/ return ns;
66/******/ };
67/******/
68/******/ // getDefaultExport function for compatibility with non-harmony modules
69/******/ __webpack_require__.n = function(module) {
70/******/ var getter = module && module.__esModule ?
71/******/ function getDefault() { return module['default']; } :
72/******/ function getModuleExports() { return module; };
73/******/ __webpack_require__.d(getter, 'a', getter);
74/******/ return getter;
75/******/ };
76/******/
77/******/ // Object.prototype.hasOwnProperty.call
78/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79/******/
80/******/ // __webpack_public_path__
81/******/ __webpack_require__.p = "";
82/******/
83/******/
84/******/ // Load entry module and return exports
85/******/ return __webpack_require__(__webpack_require__.s = "fb15");
86/******/ })
87/************************************************************************/
88/******/ ({
89
90/***/ "01f9":
91/***/ (function(module, exports, __webpack_require__) {
92
93"use strict";
94
95var LIBRARY = __webpack_require__("2d00");
96var $export = __webpack_require__("5ca1");
97var redefine = __webpack_require__("2aba");
98var hide = __webpack_require__("32e9");
99var Iterators = __webpack_require__("84f2");
100var $iterCreate = __webpack_require__("41a0");
101var setToStringTag = __webpack_require__("7f20");
102var getPrototypeOf = __webpack_require__("38fd");
103var ITERATOR = __webpack_require__("2b4c")('iterator');
104var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
105var FF_ITERATOR = '@@iterator';
106var KEYS = 'keys';
107var VALUES = 'values';
108
109var returnThis = function () { return this; };
110
111module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
112 $iterCreate(Constructor, NAME, next);
113 var getMethod = function (kind) {
114 if (!BUGGY && kind in proto) return proto[kind];
115 switch (kind) {
116 case KEYS: return function keys() { return new Constructor(this, kind); };
117 case VALUES: return function values() { return new Constructor(this, kind); };
118 } return function entries() { return new Constructor(this, kind); };
119 };
120 var TAG = NAME + ' Iterator';
121 var DEF_VALUES = DEFAULT == VALUES;
122 var VALUES_BUG = false;
123 var proto = Base.prototype;
124 var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
125 var $default = $native || getMethod(DEFAULT);
126 var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
127 var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
128 var methods, key, IteratorPrototype;
129 // Fix native
130 if ($anyNative) {
131 IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
132 if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
133 // Set @@toStringTag to native iterators
134 setToStringTag(IteratorPrototype, TAG, true);
135 // fix for some old engines
136 if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
137 }
138 }
139 // fix Array#{values, @@iterator}.name in V8 / FF
140 if (DEF_VALUES && $native && $native.name !== VALUES) {
141 VALUES_BUG = true;
142 $default = function values() { return $native.call(this); };
143 }
144 // Define iterator
145 if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
146 hide(proto, ITERATOR, $default);
147 }
148 // Plug for library
149 Iterators[NAME] = $default;
150 Iterators[TAG] = returnThis;
151 if (DEFAULT) {
152 methods = {
153 values: DEF_VALUES ? $default : getMethod(VALUES),
154 keys: IS_SET ? $default : getMethod(KEYS),
155 entries: $entries
156 };
157 if (FORCED) for (key in methods) {
158 if (!(key in proto)) redefine(proto, key, methods[key]);
159 } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
160 }
161 return methods;
162};
163
164
165/***/ }),
166
167/***/ "02f4":
168/***/ (function(module, exports, __webpack_require__) {
169
170var toInteger = __webpack_require__("4588");
171var defined = __webpack_require__("be13");
172// true -> String#at
173// false -> String#codePointAt
174module.exports = function (TO_STRING) {
175 return function (that, pos) {
176 var s = String(defined(that));
177 var i = toInteger(pos);
178 var l = s.length;
179 var a, b;
180 if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
181 a = s.charCodeAt(i);
182 return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
183 ? TO_STRING ? s.charAt(i) : a
184 : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
185 };
186};
187
188
189/***/ }),
190
191/***/ "0390":
192/***/ (function(module, exports, __webpack_require__) {
193
194"use strict";
195
196var at = __webpack_require__("02f4")(true);
197
198 // `AdvanceStringIndex` abstract operation
199// https://tc39.github.io/ecma262/#sec-advancestringindex
200module.exports = function (S, index, unicode) {
201 return index + (unicode ? at(S, index).length : 1);
202};
203
204
205/***/ }),
206
207/***/ "0bfb":
208/***/ (function(module, exports, __webpack_require__) {
209
210"use strict";
211
212// 21.2.5.3 get RegExp.prototype.flags
213var anObject = __webpack_require__("cb7c");
214module.exports = function () {
215 var that = anObject(this);
216 var result = '';
217 if (that.global) result += 'g';
218 if (that.ignoreCase) result += 'i';
219 if (that.multiline) result += 'm';
220 if (that.unicode) result += 'u';
221 if (that.sticky) result += 'y';
222 return result;
223};
224
225
226/***/ }),
227
228/***/ "0d58":
229/***/ (function(module, exports, __webpack_require__) {
230
231// 19.1.2.14 / 15.2.3.14 Object.keys(O)
232var $keys = __webpack_require__("ce10");
233var enumBugKeys = __webpack_require__("e11e");
234
235module.exports = Object.keys || function keys(O) {
236 return $keys(O, enumBugKeys);
237};
238
239
240/***/ }),
241
242/***/ "1495":
243/***/ (function(module, exports, __webpack_require__) {
244
245var dP = __webpack_require__("86cc");
246var anObject = __webpack_require__("cb7c");
247var getKeys = __webpack_require__("0d58");
248
249module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
250 anObject(O);
251 var keys = getKeys(Properties);
252 var length = keys.length;
253 var i = 0;
254 var P;
255 while (length > i) dP.f(O, P = keys[i++], Properties[P]);
256 return O;
257};
258
259
260/***/ }),
261
262/***/ "214f":
263/***/ (function(module, exports, __webpack_require__) {
264
265"use strict";
266
267__webpack_require__("b0c5");
268var redefine = __webpack_require__("2aba");
269var hide = __webpack_require__("32e9");
270var fails = __webpack_require__("79e5");
271var defined = __webpack_require__("be13");
272var wks = __webpack_require__("2b4c");
273var regexpExec = __webpack_require__("520a");
274
275var SPECIES = wks('species');
276
277var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
278 // #replace needs built-in support for named groups.
279 // #match works fine because it just return the exec results, even if it has
280 // a "grops" property.
281 var re = /./;
282 re.exec = function () {
283 var result = [];
284 result.groups = { a: '7' };
285 return result;
286 };
287 return ''.replace(re, '$<a>') !== '7';
288});
289
290var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
291 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
292 var re = /(?:)/;
293 var originalExec = re.exec;
294 re.exec = function () { return originalExec.apply(this, arguments); };
295 var result = 'ab'.split(re);
296 return result.length === 2 && result[0] === 'a' && result[1] === 'b';
297})();
298
299module.exports = function (KEY, length, exec) {
300 var SYMBOL = wks(KEY);
301
302 var DELEGATES_TO_SYMBOL = !fails(function () {
303 // String methods call symbol-named RegEp methods
304 var O = {};
305 O[SYMBOL] = function () { return 7; };
306 return ''[KEY](O) != 7;
307 });
308
309 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
310 // Symbol-named RegExp methods call .exec
311 var execCalled = false;
312 var re = /a/;
313 re.exec = function () { execCalled = true; return null; };
314 if (KEY === 'split') {
315 // RegExp[@@split] doesn't call the regex's exec method, but first creates
316 // a new one. We need to return the patched regex when creating the new one.
317 re.constructor = {};
318 re.constructor[SPECIES] = function () { return re; };
319 }
320 re[SYMBOL]('');
321 return !execCalled;
322 }) : undefined;
323
324 if (
325 !DELEGATES_TO_SYMBOL ||
326 !DELEGATES_TO_EXEC ||
327 (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
328 (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
329 ) {
330 var nativeRegExpMethod = /./[SYMBOL];
331 var fns = exec(
332 defined,
333 SYMBOL,
334 ''[KEY],
335 function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
336 if (regexp.exec === regexpExec) {
337 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
338 // The native String method already delegates to @@method (this
339 // polyfilled function), leasing to infinite recursion.
340 // We avoid it by directly calling the native @@method method.
341 return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
342 }
343 return { done: true, value: nativeMethod.call(str, regexp, arg2) };
344 }
345 return { done: false };
346 }
347 );
348 var strfn = fns[0];
349 var rxfn = fns[1];
350
351 redefine(String.prototype, KEY, strfn);
352 hide(RegExp.prototype, SYMBOL, length == 2
353 // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
354 // 21.2.5.11 RegExp.prototype[@@split](string, limit)
355 ? function (string, arg) { return rxfn.call(string, this, arg); }
356 // 21.2.5.6 RegExp.prototype[@@match](string)
357 // 21.2.5.9 RegExp.prototype[@@search](string)
358 : function (string) { return rxfn.call(string, this); }
359 );
360 }
361};
362
363
364/***/ }),
365
366/***/ "230e":
367/***/ (function(module, exports, __webpack_require__) {
368
369var isObject = __webpack_require__("d3f4");
370var document = __webpack_require__("7726").document;
371// typeof document.createElement is 'object' in old IE
372var is = isObject(document) && isObject(document.createElement);
373module.exports = function (it) {
374 return is ? document.createElement(it) : {};
375};
376
377
378/***/ }),
379
380/***/ "23c6":
381/***/ (function(module, exports, __webpack_require__) {
382
383// getting tag from 19.1.3.6 Object.prototype.toString()
384var cof = __webpack_require__("2d95");
385var TAG = __webpack_require__("2b4c")('toStringTag');
386// ES3 wrong here
387var ARG = cof(function () { return arguments; }()) == 'Arguments';
388
389// fallback for IE11 Script Access Denied error
390var tryGet = function (it, key) {
391 try {
392 return it[key];
393 } catch (e) { /* empty */ }
394};
395
396module.exports = function (it) {
397 var O, T, B;
398 return it === undefined ? 'Undefined' : it === null ? 'Null'
399 // @@toStringTag case
400 : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
401 // builtinTag case
402 : ARG ? cof(O)
403 // ES3 arguments fallback
404 : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
405};
406
407
408/***/ }),
409
410/***/ "2621":
411/***/ (function(module, exports) {
412
413exports.f = Object.getOwnPropertySymbols;
414
415
416/***/ }),
417
418/***/ "2aba":
419/***/ (function(module, exports, __webpack_require__) {
420
421var global = __webpack_require__("7726");
422var hide = __webpack_require__("32e9");
423var has = __webpack_require__("69a8");
424var SRC = __webpack_require__("ca5a")('src');
425var $toString = __webpack_require__("fa5b");
426var TO_STRING = 'toString';
427var TPL = ('' + $toString).split(TO_STRING);
428
429__webpack_require__("8378").inspectSource = function (it) {
430 return $toString.call(it);
431};
432
433(module.exports = function (O, key, val, safe) {
434 var isFunction = typeof val == 'function';
435 if (isFunction) has(val, 'name') || hide(val, 'name', key);
436 if (O[key] === val) return;
437 if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
438 if (O === global) {
439 O[key] = val;
440 } else if (!safe) {
441 delete O[key];
442 hide(O, key, val);
443 } else if (O[key]) {
444 O[key] = val;
445 } else {
446 hide(O, key, val);
447 }
448// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
449})(Function.prototype, TO_STRING, function toString() {
450 return typeof this == 'function' && this[SRC] || $toString.call(this);
451});
452
453
454/***/ }),
455
456/***/ "2aeb":
457/***/ (function(module, exports, __webpack_require__) {
458
459// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
460var anObject = __webpack_require__("cb7c");
461var dPs = __webpack_require__("1495");
462var enumBugKeys = __webpack_require__("e11e");
463var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
464var Empty = function () { /* empty */ };
465var PROTOTYPE = 'prototype';
466
467// Create object with fake `null` prototype: use iframe Object with cleared prototype
468var createDict = function () {
469 // Thrash, waste and sodomy: IE GC bug
470 var iframe = __webpack_require__("230e")('iframe');
471 var i = enumBugKeys.length;
472 var lt = '<';
473 var gt = '>';
474 var iframeDocument;
475 iframe.style.display = 'none';
476 __webpack_require__("fab2").appendChild(iframe);
477 iframe.src = 'javascript:'; // eslint-disable-line no-script-url
478 // createDict = iframe.contentWindow.Object;
479 // html.removeChild(iframe);
480 iframeDocument = iframe.contentWindow.document;
481 iframeDocument.open();
482 iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
483 iframeDocument.close();
484 createDict = iframeDocument.F;
485 while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
486 return createDict();
487};
488
489module.exports = Object.create || function create(O, Properties) {
490 var result;
491 if (O !== null) {
492 Empty[PROTOTYPE] = anObject(O);
493 result = new Empty();
494 Empty[PROTOTYPE] = null;
495 // add "__proto__" for Object.getPrototypeOf polyfill
496 result[IE_PROTO] = O;
497 } else result = createDict();
498 return Properties === undefined ? result : dPs(result, Properties);
499};
500
501
502/***/ }),
503
504/***/ "2b4c":
505/***/ (function(module, exports, __webpack_require__) {
506
507var store = __webpack_require__("5537")('wks');
508var uid = __webpack_require__("ca5a");
509var Symbol = __webpack_require__("7726").Symbol;
510var USE_SYMBOL = typeof Symbol == 'function';
511
512var $exports = module.exports = function (name) {
513 return store[name] || (store[name] =
514 USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
515};
516
517$exports.store = store;
518
519
520/***/ }),
521
522/***/ "2d00":
523/***/ (function(module, exports) {
524
525module.exports = false;
526
527
528/***/ }),
529
530/***/ "2d95":
531/***/ (function(module, exports) {
532
533var toString = {}.toString;
534
535module.exports = function (it) {
536 return toString.call(it).slice(8, -1);
537};
538
539
540/***/ }),
541
542/***/ "2fdb":
543/***/ (function(module, exports, __webpack_require__) {
544
545"use strict";
546// 21.1.3.7 String.prototype.includes(searchString, position = 0)
547
548var $export = __webpack_require__("5ca1");
549var context = __webpack_require__("d2c8");
550var INCLUDES = 'includes';
551
552$export($export.P + $export.F * __webpack_require__("5147")(INCLUDES), 'String', {
553 includes: function includes(searchString /* , position = 0 */) {
554 return !!~context(this, searchString, INCLUDES)
555 .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
556 }
557});
558
559
560/***/ }),
561
562/***/ "32e9":
563/***/ (function(module, exports, __webpack_require__) {
564
565var dP = __webpack_require__("86cc");
566var createDesc = __webpack_require__("4630");
567module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
568 return dP.f(object, key, createDesc(1, value));
569} : function (object, key, value) {
570 object[key] = value;
571 return object;
572};
573
574
575/***/ }),
576
577/***/ "38fd":
578/***/ (function(module, exports, __webpack_require__) {
579
580// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
581var has = __webpack_require__("69a8");
582var toObject = __webpack_require__("4bf8");
583var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
584var ObjectProto = Object.prototype;
585
586module.exports = Object.getPrototypeOf || function (O) {
587 O = toObject(O);
588 if (has(O, IE_PROTO)) return O[IE_PROTO];
589 if (typeof O.constructor == 'function' && O instanceof O.constructor) {
590 return O.constructor.prototype;
591 } return O instanceof Object ? ObjectProto : null;
592};
593
594
595/***/ }),
596
597/***/ "41a0":
598/***/ (function(module, exports, __webpack_require__) {
599
600"use strict";
601
602var create = __webpack_require__("2aeb");
603var descriptor = __webpack_require__("4630");
604var setToStringTag = __webpack_require__("7f20");
605var IteratorPrototype = {};
606
607// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
608__webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; });
609
610module.exports = function (Constructor, NAME, next) {
611 Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
612 setToStringTag(Constructor, NAME + ' Iterator');
613};
614
615
616/***/ }),
617
618/***/ "456d":
619/***/ (function(module, exports, __webpack_require__) {
620
621// 19.1.2.14 Object.keys(O)
622var toObject = __webpack_require__("4bf8");
623var $keys = __webpack_require__("0d58");
624
625__webpack_require__("5eda")('keys', function () {
626 return function keys(it) {
627 return $keys(toObject(it));
628 };
629});
630
631
632/***/ }),
633
634/***/ "4588":
635/***/ (function(module, exports) {
636
637// 7.1.4 ToInteger
638var ceil = Math.ceil;
639var floor = Math.floor;
640module.exports = function (it) {
641 return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
642};
643
644
645/***/ }),
646
647/***/ "4630":
648/***/ (function(module, exports) {
649
650module.exports = function (bitmap, value) {
651 return {
652 enumerable: !(bitmap & 1),
653 configurable: !(bitmap & 2),
654 writable: !(bitmap & 4),
655 value: value
656 };
657};
658
659
660/***/ }),
661
662/***/ "4bf8":
663/***/ (function(module, exports, __webpack_require__) {
664
665// 7.1.13 ToObject(argument)
666var defined = __webpack_require__("be13");
667module.exports = function (it) {
668 return Object(defined(it));
669};
670
671
672/***/ }),
673
674/***/ "5147":
675/***/ (function(module, exports, __webpack_require__) {
676
677var MATCH = __webpack_require__("2b4c")('match');
678module.exports = function (KEY) {
679 var re = /./;
680 try {
681 '/./'[KEY](re);
682 } catch (e) {
683 try {
684 re[MATCH] = false;
685 return !'/./'[KEY](re);
686 } catch (f) { /* empty */ }
687 } return true;
688};
689
690
691/***/ }),
692
693/***/ "520a":
694/***/ (function(module, exports, __webpack_require__) {
695
696"use strict";
697
698
699var regexpFlags = __webpack_require__("0bfb");
700
701var nativeExec = RegExp.prototype.exec;
702// This always refers to the native implementation, because the
703// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
704// which loads this file before patching the method.
705var nativeReplace = String.prototype.replace;
706
707var patchedExec = nativeExec;
708
709var LAST_INDEX = 'lastIndex';
710
711var UPDATES_LAST_INDEX_WRONG = (function () {
712 var re1 = /a/,
713 re2 = /b*/g;
714 nativeExec.call(re1, 'a');
715 nativeExec.call(re2, 'a');
716 return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
717})();
718
719// nonparticipating capturing group, copied from es5-shim's String#split patch.
720var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
721
722var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
723
724if (PATCH) {
725 patchedExec = function exec(str) {
726 var re = this;
727 var lastIndex, reCopy, match, i;
728
729 if (NPCG_INCLUDED) {
730 reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
731 }
732 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
733
734 match = nativeExec.call(re, str);
735
736 if (UPDATES_LAST_INDEX_WRONG && match) {
737 re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
738 }
739 if (NPCG_INCLUDED && match && match.length > 1) {
740 // Fix browsers whose `exec` methods don't consistently return `undefined`
741 // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
742 // eslint-disable-next-line no-loop-func
743 nativeReplace.call(match[0], reCopy, function () {
744 for (i = 1; i < arguments.length - 2; i++) {
745 if (arguments[i] === undefined) match[i] = undefined;
746 }
747 });
748 }
749
750 return match;
751 };
752}
753
754module.exports = patchedExec;
755
756
757/***/ }),
758
759/***/ "52a7":
760/***/ (function(module, exports) {
761
762exports.f = {}.propertyIsEnumerable;
763
764
765/***/ }),
766
767/***/ "5537":
768/***/ (function(module, exports, __webpack_require__) {
769
770var core = __webpack_require__("8378");
771var global = __webpack_require__("7726");
772var SHARED = '__core-js_shared__';
773var store = global[SHARED] || (global[SHARED] = {});
774
775(module.exports = function (key, value) {
776 return store[key] || (store[key] = value !== undefined ? value : {});
777})('versions', []).push({
778 version: core.version,
779 mode: __webpack_require__("2d00") ? 'pure' : 'global',
780 copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
781});
782
783
784/***/ }),
785
786/***/ "5ca1":
787/***/ (function(module, exports, __webpack_require__) {
788
789var global = __webpack_require__("7726");
790var core = __webpack_require__("8378");
791var hide = __webpack_require__("32e9");
792var redefine = __webpack_require__("2aba");
793var ctx = __webpack_require__("9b43");
794var PROTOTYPE = 'prototype';
795
796var $export = function (type, name, source) {
797 var IS_FORCED = type & $export.F;
798 var IS_GLOBAL = type & $export.G;
799 var IS_STATIC = type & $export.S;
800 var IS_PROTO = type & $export.P;
801 var IS_BIND = type & $export.B;
802 var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
803 var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
804 var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
805 var key, own, out, exp;
806 if (IS_GLOBAL) source = name;
807 for (key in source) {
808 // contains in native
809 own = !IS_FORCED && target && target[key] !== undefined;
810 // export native or passed
811 out = (own ? target : source)[key];
812 // bind timers to global for call from export context
813 exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
814 // extend global
815 if (target) redefine(target, key, out, type & $export.U);
816 // export
817 if (exports[key] != out) hide(exports, key, exp);
818 if (IS_PROTO && expProto[key] != out) expProto[key] = out;
819 }
820};
821global.core = core;
822// type bitmap
823$export.F = 1; // forced
824$export.G = 2; // global
825$export.S = 4; // static
826$export.P = 8; // proto
827$export.B = 16; // bind
828$export.W = 32; // wrap
829$export.U = 64; // safe
830$export.R = 128; // real proto method for `library`
831module.exports = $export;
832
833
834/***/ }),
835
836/***/ "5eda":
837/***/ (function(module, exports, __webpack_require__) {
838
839// most Object methods by ES6 should accept primitives
840var $export = __webpack_require__("5ca1");
841var core = __webpack_require__("8378");
842var fails = __webpack_require__("79e5");
843module.exports = function (KEY, exec) {
844 var fn = (core.Object || {})[KEY] || Object[KEY];
845 var exp = {};
846 exp[KEY] = exec(fn);
847 $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
848};
849
850
851/***/ }),
852
853/***/ "5f1b":
854/***/ (function(module, exports, __webpack_require__) {
855
856"use strict";
857
858
859var classof = __webpack_require__("23c6");
860var builtinExec = RegExp.prototype.exec;
861
862 // `RegExpExec` abstract operation
863// https://tc39.github.io/ecma262/#sec-regexpexec
864module.exports = function (R, S) {
865 var exec = R.exec;
866 if (typeof exec === 'function') {
867 var result = exec.call(R, S);
868 if (typeof result !== 'object') {
869 throw new TypeError('RegExp exec method returned something other than an Object or null');
870 }
871 return result;
872 }
873 if (classof(R) !== 'RegExp') {
874 throw new TypeError('RegExp#exec called on incompatible receiver');
875 }
876 return builtinExec.call(R, S);
877};
878
879
880/***/ }),
881
882/***/ "613b":
883/***/ (function(module, exports, __webpack_require__) {
884
885var shared = __webpack_require__("5537")('keys');
886var uid = __webpack_require__("ca5a");
887module.exports = function (key) {
888 return shared[key] || (shared[key] = uid(key));
889};
890
891
892/***/ }),
893
894/***/ "626a":
895/***/ (function(module, exports, __webpack_require__) {
896
897// fallback for non-array-like ES3 and non-enumerable old V8 strings
898var cof = __webpack_require__("2d95");
899// eslint-disable-next-line no-prototype-builtins
900module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
901 return cof(it) == 'String' ? it.split('') : Object(it);
902};
903
904
905/***/ }),
906
907/***/ "6762":
908/***/ (function(module, exports, __webpack_require__) {
909
910"use strict";
911
912// https://github.com/tc39/Array.prototype.includes
913var $export = __webpack_require__("5ca1");
914var $includes = __webpack_require__("c366")(true);
915
916$export($export.P, 'Array', {
917 includes: function includes(el /* , fromIndex = 0 */) {
918 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
919 }
920});
921
922__webpack_require__("9c6c")('includes');
923
924
925/***/ }),
926
927/***/ "6821":
928/***/ (function(module, exports, __webpack_require__) {
929
930// to indexed object, toObject with fallback for non-array-like ES3 strings
931var IObject = __webpack_require__("626a");
932var defined = __webpack_require__("be13");
933module.exports = function (it) {
934 return IObject(defined(it));
935};
936
937
938/***/ }),
939
940/***/ "69a8":
941/***/ (function(module, exports) {
942
943var hasOwnProperty = {}.hasOwnProperty;
944module.exports = function (it, key) {
945 return hasOwnProperty.call(it, key);
946};
947
948
949/***/ }),
950
951/***/ "6a99":
952/***/ (function(module, exports, __webpack_require__) {
953
954// 7.1.1 ToPrimitive(input [, PreferredType])
955var isObject = __webpack_require__("d3f4");
956// instead of the ES6 spec version, we didn't implement @@toPrimitive case
957// and the second argument - flag - preferred type is a string
958module.exports = function (it, S) {
959 if (!isObject(it)) return it;
960 var fn, val;
961 if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
962 if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
963 if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
964 throw TypeError("Can't convert object to primitive value");
965};
966
967
968/***/ }),
969
970/***/ "7333":
971/***/ (function(module, exports, __webpack_require__) {
972
973"use strict";
974
975// 19.1.2.1 Object.assign(target, source, ...)
976var getKeys = __webpack_require__("0d58");
977var gOPS = __webpack_require__("2621");
978var pIE = __webpack_require__("52a7");
979var toObject = __webpack_require__("4bf8");
980var IObject = __webpack_require__("626a");
981var $assign = Object.assign;
982
983// should work with symbols and should have deterministic property order (V8 bug)
984module.exports = !$assign || __webpack_require__("79e5")(function () {
985 var A = {};
986 var B = {};
987 // eslint-disable-next-line no-undef
988 var S = Symbol();
989 var K = 'abcdefghijklmnopqrst';
990 A[S] = 7;
991 K.split('').forEach(function (k) { B[k] = k; });
992 return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
993}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
994 var T = toObject(target);
995 var aLen = arguments.length;
996 var index = 1;
997 var getSymbols = gOPS.f;
998 var isEnum = pIE.f;
999 while (aLen > index) {
1000 var S = IObject(arguments[index++]);
1001 var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
1002 var length = keys.length;
1003 var j = 0;
1004 var key;
1005 while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
1006 } return T;
1007} : $assign;
1008
1009
1010/***/ }),
1011
1012/***/ "7726":
1013/***/ (function(module, exports) {
1014
1015// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1016var global = module.exports = typeof window != 'undefined' && window.Math == Math
1017 ? window : typeof self != 'undefined' && self.Math == Math ? self
1018 // eslint-disable-next-line no-new-func
1019 : Function('return this')();
1020if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
1021
1022
1023/***/ }),
1024
1025/***/ "77f1":
1026/***/ (function(module, exports, __webpack_require__) {
1027
1028var toInteger = __webpack_require__("4588");
1029var max = Math.max;
1030var min = Math.min;
1031module.exports = function (index, length) {
1032 index = toInteger(index);
1033 return index < 0 ? max(index + length, 0) : min(index, length);
1034};
1035
1036
1037/***/ }),
1038
1039/***/ "79e5":
1040/***/ (function(module, exports) {
1041
1042module.exports = function (exec) {
1043 try {
1044 return !!exec();
1045 } catch (e) {
1046 return true;
1047 }
1048};
1049
1050
1051/***/ }),
1052
1053/***/ "7f20":
1054/***/ (function(module, exports, __webpack_require__) {
1055
1056var def = __webpack_require__("86cc").f;
1057var has = __webpack_require__("69a8");
1058var TAG = __webpack_require__("2b4c")('toStringTag');
1059
1060module.exports = function (it, tag, stat) {
1061 if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
1062};
1063
1064
1065/***/ }),
1066
1067/***/ "8378":
1068/***/ (function(module, exports) {
1069
1070var core = module.exports = { version: '2.6.5' };
1071if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
1072
1073
1074/***/ }),
1075
1076/***/ "84f2":
1077/***/ (function(module, exports) {
1078
1079module.exports = {};
1080
1081
1082/***/ }),
1083
1084/***/ "86cc":
1085/***/ (function(module, exports, __webpack_require__) {
1086
1087var anObject = __webpack_require__("cb7c");
1088var IE8_DOM_DEFINE = __webpack_require__("c69a");
1089var toPrimitive = __webpack_require__("6a99");
1090var dP = Object.defineProperty;
1091
1092exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
1093 anObject(O);
1094 P = toPrimitive(P, true);
1095 anObject(Attributes);
1096 if (IE8_DOM_DEFINE) try {
1097 return dP(O, P, Attributes);
1098 } catch (e) { /* empty */ }
1099 if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
1100 if ('value' in Attributes) O[P] = Attributes.value;
1101 return O;
1102};
1103
1104
1105/***/ }),
1106
1107/***/ "9b43":
1108/***/ (function(module, exports, __webpack_require__) {
1109
1110// optional / simple context binding
1111var aFunction = __webpack_require__("d8e8");
1112module.exports = function (fn, that, length) {
1113 aFunction(fn);
1114 if (that === undefined) return fn;
1115 switch (length) {
1116 case 1: return function (a) {
1117 return fn.call(that, a);
1118 };
1119 case 2: return function (a, b) {
1120 return fn.call(that, a, b);
1121 };
1122 case 3: return function (a, b, c) {
1123 return fn.call(that, a, b, c);
1124 };
1125 }
1126 return function (/* ...args */) {
1127 return fn.apply(that, arguments);
1128 };
1129};
1130
1131
1132/***/ }),
1133
1134/***/ "9c6c":
1135/***/ (function(module, exports, __webpack_require__) {
1136
1137// 22.1.3.31 Array.prototype[@@unscopables]
1138var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
1139var ArrayProto = Array.prototype;
1140if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
1141module.exports = function (key) {
1142 ArrayProto[UNSCOPABLES][key] = true;
1143};
1144
1145
1146/***/ }),
1147
1148/***/ "9def":
1149/***/ (function(module, exports, __webpack_require__) {
1150
1151// 7.1.15 ToLength
1152var toInteger = __webpack_require__("4588");
1153var min = Math.min;
1154module.exports = function (it) {
1155 return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
1156};
1157
1158
1159/***/ }),
1160
1161/***/ "9e1e":
1162/***/ (function(module, exports, __webpack_require__) {
1163
1164// Thank's IE8 for his funny defineProperty
1165module.exports = !__webpack_require__("79e5")(function () {
1166 return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
1167});
1168
1169
1170/***/ }),
1171
1172/***/ "a352":
1173/***/ (function(module, exports) {
1174
1175module.exports = require("sortablejs");
1176
1177/***/ }),
1178
1179/***/ "a481":
1180/***/ (function(module, exports, __webpack_require__) {
1181
1182"use strict";
1183
1184
1185var anObject = __webpack_require__("cb7c");
1186var toObject = __webpack_require__("4bf8");
1187var toLength = __webpack_require__("9def");
1188var toInteger = __webpack_require__("4588");
1189var advanceStringIndex = __webpack_require__("0390");
1190var regExpExec = __webpack_require__("5f1b");
1191var max = Math.max;
1192var min = Math.min;
1193var floor = Math.floor;
1194var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
1195var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
1196
1197var maybeToString = function (it) {
1198 return it === undefined ? it : String(it);
1199};
1200
1201// @@replace logic
1202__webpack_require__("214f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
1203 return [
1204 // `String.prototype.replace` method
1205 // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1206 function replace(searchValue, replaceValue) {
1207 var O = defined(this);
1208 var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
1209 return fn !== undefined
1210 ? fn.call(searchValue, O, replaceValue)
1211 : $replace.call(String(O), searchValue, replaceValue);
1212 },
1213 // `RegExp.prototype[@@replace]` method
1214 // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1215 function (regexp, replaceValue) {
1216 var res = maybeCallNative($replace, regexp, this, replaceValue);
1217 if (res.done) return res.value;
1218
1219 var rx = anObject(regexp);
1220 var S = String(this);
1221 var functionalReplace = typeof replaceValue === 'function';
1222 if (!functionalReplace) replaceValue = String(replaceValue);
1223 var global = rx.global;
1224 if (global) {
1225 var fullUnicode = rx.unicode;
1226 rx.lastIndex = 0;
1227 }
1228 var results = [];
1229 while (true) {
1230 var result = regExpExec(rx, S);
1231 if (result === null) break;
1232 results.push(result);
1233 if (!global) break;
1234 var matchStr = String(result[0]);
1235 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1236 }
1237 var accumulatedResult = '';
1238 var nextSourcePosition = 0;
1239 for (var i = 0; i < results.length; i++) {
1240 result = results[i];
1241 var matched = String(result[0]);
1242 var position = max(min(toInteger(result.index), S.length), 0);
1243 var captures = [];
1244 // NOTE: This is equivalent to
1245 // captures = result.slice(1).map(maybeToString)
1246 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1247 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1248 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1249 for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1250 var namedCaptures = result.groups;
1251 if (functionalReplace) {
1252 var replacerArgs = [matched].concat(captures, position, S);
1253 if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1254 var replacement = String(replaceValue.apply(undefined, replacerArgs));
1255 } else {
1256 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1257 }
1258 if (position >= nextSourcePosition) {
1259 accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1260 nextSourcePosition = position + matched.length;
1261 }
1262 }
1263 return accumulatedResult + S.slice(nextSourcePosition);
1264 }
1265 ];
1266
1267 // https://tc39.github.io/ecma262/#sec-getsubstitution
1268 function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1269 var tailPos = position + matched.length;
1270 var m = captures.length;
1271 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1272 if (namedCaptures !== undefined) {
1273 namedCaptures = toObject(namedCaptures);
1274 symbols = SUBSTITUTION_SYMBOLS;
1275 }
1276 return $replace.call(replacement, symbols, function (match, ch) {
1277 var capture;
1278 switch (ch.charAt(0)) {
1279 case '$': return '$';
1280 case '&': return matched;
1281 case '`': return str.slice(0, position);
1282 case "'": return str.slice(tailPos);
1283 case '<':
1284 capture = namedCaptures[ch.slice(1, -1)];
1285 break;
1286 default: // \d\d?
1287 var n = +ch;
1288 if (n === 0) return match;
1289 if (n > m) {
1290 var f = floor(n / 10);
1291 if (f === 0) return match;
1292 if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1293 return match;
1294 }
1295 capture = captures[n - 1];
1296 }
1297 return capture === undefined ? '' : capture;
1298 });
1299 }
1300});
1301
1302
1303/***/ }),
1304
1305/***/ "aae3":
1306/***/ (function(module, exports, __webpack_require__) {
1307
1308// 7.2.8 IsRegExp(argument)
1309var isObject = __webpack_require__("d3f4");
1310var cof = __webpack_require__("2d95");
1311var MATCH = __webpack_require__("2b4c")('match');
1312module.exports = function (it) {
1313 var isRegExp;
1314 return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
1315};
1316
1317
1318/***/ }),
1319
1320/***/ "ac6a":
1321/***/ (function(module, exports, __webpack_require__) {
1322
1323var $iterators = __webpack_require__("cadf");
1324var getKeys = __webpack_require__("0d58");
1325var redefine = __webpack_require__("2aba");
1326var global = __webpack_require__("7726");
1327var hide = __webpack_require__("32e9");
1328var Iterators = __webpack_require__("84f2");
1329var wks = __webpack_require__("2b4c");
1330var ITERATOR = wks('iterator');
1331var TO_STRING_TAG = wks('toStringTag');
1332var ArrayValues = Iterators.Array;
1333
1334var DOMIterables = {
1335 CSSRuleList: true, // TODO: Not spec compliant, should be false.
1336 CSSStyleDeclaration: false,
1337 CSSValueList: false,
1338 ClientRectList: false,
1339 DOMRectList: false,
1340 DOMStringList: false,
1341 DOMTokenList: true,
1342 DataTransferItemList: false,
1343 FileList: false,
1344 HTMLAllCollection: false,
1345 HTMLCollection: false,
1346 HTMLFormElement: false,
1347 HTMLSelectElement: false,
1348 MediaList: true, // TODO: Not spec compliant, should be false.
1349 MimeTypeArray: false,
1350 NamedNodeMap: false,
1351 NodeList: true,
1352 PaintRequestList: false,
1353 Plugin: false,
1354 PluginArray: false,
1355 SVGLengthList: false,
1356 SVGNumberList: false,
1357 SVGPathSegList: false,
1358 SVGPointList: false,
1359 SVGStringList: false,
1360 SVGTransformList: false,
1361 SourceBufferList: false,
1362 StyleSheetList: true, // TODO: Not spec compliant, should be false.
1363 TextTrackCueList: false,
1364 TextTrackList: false,
1365 TouchList: false
1366};
1367
1368for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
1369 var NAME = collections[i];
1370 var explicit = DOMIterables[NAME];
1371 var Collection = global[NAME];
1372 var proto = Collection && Collection.prototype;
1373 var key;
1374 if (proto) {
1375 if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
1376 if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
1377 Iterators[NAME] = ArrayValues;
1378 if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
1379 }
1380}
1381
1382
1383/***/ }),
1384
1385/***/ "b0c5":
1386/***/ (function(module, exports, __webpack_require__) {
1387
1388"use strict";
1389
1390var regexpExec = __webpack_require__("520a");
1391__webpack_require__("5ca1")({
1392 target: 'RegExp',
1393 proto: true,
1394 forced: regexpExec !== /./.exec
1395}, {
1396 exec: regexpExec
1397});
1398
1399
1400/***/ }),
1401
1402/***/ "be13":
1403/***/ (function(module, exports) {
1404
1405// 7.2.1 RequireObjectCoercible(argument)
1406module.exports = function (it) {
1407 if (it == undefined) throw TypeError("Can't call method on " + it);
1408 return it;
1409};
1410
1411
1412/***/ }),
1413
1414/***/ "c366":
1415/***/ (function(module, exports, __webpack_require__) {
1416
1417// false -> Array#indexOf
1418// true -> Array#includes
1419var toIObject = __webpack_require__("6821");
1420var toLength = __webpack_require__("9def");
1421var toAbsoluteIndex = __webpack_require__("77f1");
1422module.exports = function (IS_INCLUDES) {
1423 return function ($this, el, fromIndex) {
1424 var O = toIObject($this);
1425 var length = toLength(O.length);
1426 var index = toAbsoluteIndex(fromIndex, length);
1427 var value;
1428 // Array#includes uses SameValueZero equality algorithm
1429 // eslint-disable-next-line no-self-compare
1430 if (IS_INCLUDES && el != el) while (length > index) {
1431 value = O[index++];
1432 // eslint-disable-next-line no-self-compare
1433 if (value != value) return true;
1434 // Array#indexOf ignores holes, Array#includes - not
1435 } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
1436 if (O[index] === el) return IS_INCLUDES || index || 0;
1437 } return !IS_INCLUDES && -1;
1438 };
1439};
1440
1441
1442/***/ }),
1443
1444/***/ "c649":
1445/***/ (function(module, __webpack_exports__, __webpack_require__) {
1446
1447"use strict";
1448/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return insertNodeAt; });
1449/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return camelize; });
1450/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return console; });
1451/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return removeNode; });
1452/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a481");
1453/* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__);
1454
1455
1456function getConsole() {
1457 if (typeof window !== "undefined") {
1458 return window.console;
1459 }
1460
1461 return global.console;
1462}
1463
1464var console = getConsole();
1465
1466function cached(fn) {
1467 var cache = Object.create(null);
1468 return function cachedFn(str) {
1469 var hit = cache[str];
1470 return hit || (cache[str] = fn(str));
1471 };
1472}
1473
1474var regex = /-(\w)/g;
1475var camelize = cached(function (str) {
1476 return str.replace(regex, function (_, c) {
1477 return c ? c.toUpperCase() : "";
1478 });
1479});
1480
1481function removeNode(node) {
1482 if (node.parentElement !== null) {
1483 node.parentElement.removeChild(node);
1484 }
1485}
1486
1487function insertNodeAt(fatherNode, node, position) {
1488 var refNode = position === 0 ? fatherNode.children[0] : fatherNode.children[position - 1].nextSibling;
1489 fatherNode.insertBefore(node, refNode);
1490}
1491
1492
1493/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
1494
1495/***/ }),
1496
1497/***/ "c69a":
1498/***/ (function(module, exports, __webpack_require__) {
1499
1500module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
1501 return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
1502});
1503
1504
1505/***/ }),
1506
1507/***/ "c8ba":
1508/***/ (function(module, exports) {
1509
1510var g;
1511
1512// This works in non-strict mode
1513g = (function() {
1514 return this;
1515})();
1516
1517try {
1518 // This works if eval is allowed (see CSP)
1519 g = g || new Function("return this")();
1520} catch (e) {
1521 // This works if the window reference is available
1522 if (typeof window === "object") g = window;
1523}
1524
1525// g can still be undefined, but nothing to do about it...
1526// We return undefined, instead of nothing here, so it's
1527// easier to handle this case. if(!global) { ...}
1528
1529module.exports = g;
1530
1531
1532/***/ }),
1533
1534/***/ "ca5a":
1535/***/ (function(module, exports) {
1536
1537var id = 0;
1538var px = Math.random();
1539module.exports = function (key) {
1540 return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1541};
1542
1543
1544/***/ }),
1545
1546/***/ "cadf":
1547/***/ (function(module, exports, __webpack_require__) {
1548
1549"use strict";
1550
1551var addToUnscopables = __webpack_require__("9c6c");
1552var step = __webpack_require__("d53b");
1553var Iterators = __webpack_require__("84f2");
1554var toIObject = __webpack_require__("6821");
1555
1556// 22.1.3.4 Array.prototype.entries()
1557// 22.1.3.13 Array.prototype.keys()
1558// 22.1.3.29 Array.prototype.values()
1559// 22.1.3.30 Array.prototype[@@iterator]()
1560module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) {
1561 this._t = toIObject(iterated); // target
1562 this._i = 0; // next index
1563 this._k = kind; // kind
1564// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
1565}, function () {
1566 var O = this._t;
1567 var kind = this._k;
1568 var index = this._i++;
1569 if (!O || index >= O.length) {
1570 this._t = undefined;
1571 return step(1);
1572 }
1573 if (kind == 'keys') return step(0, index);
1574 if (kind == 'values') return step(0, O[index]);
1575 return step(0, [index, O[index]]);
1576}, 'values');
1577
1578// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
1579Iterators.Arguments = Iterators.Array;
1580
1581addToUnscopables('keys');
1582addToUnscopables('values');
1583addToUnscopables('entries');
1584
1585
1586/***/ }),
1587
1588/***/ "cb7c":
1589/***/ (function(module, exports, __webpack_require__) {
1590
1591var isObject = __webpack_require__("d3f4");
1592module.exports = function (it) {
1593 if (!isObject(it)) throw TypeError(it + ' is not an object!');
1594 return it;
1595};
1596
1597
1598/***/ }),
1599
1600/***/ "ce10":
1601/***/ (function(module, exports, __webpack_require__) {
1602
1603var has = __webpack_require__("69a8");
1604var toIObject = __webpack_require__("6821");
1605var arrayIndexOf = __webpack_require__("c366")(false);
1606var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
1607
1608module.exports = function (object, names) {
1609 var O = toIObject(object);
1610 var i = 0;
1611 var result = [];
1612 var key;
1613 for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
1614 // Don't enum bug & hidden keys
1615 while (names.length > i) if (has(O, key = names[i++])) {
1616 ~arrayIndexOf(result, key) || result.push(key);
1617 }
1618 return result;
1619};
1620
1621
1622/***/ }),
1623
1624/***/ "d2c8":
1625/***/ (function(module, exports, __webpack_require__) {
1626
1627// helper for String#{startsWith, endsWith, includes}
1628var isRegExp = __webpack_require__("aae3");
1629var defined = __webpack_require__("be13");
1630
1631module.exports = function (that, searchString, NAME) {
1632 if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
1633 return String(defined(that));
1634};
1635
1636
1637/***/ }),
1638
1639/***/ "d3f4":
1640/***/ (function(module, exports) {
1641
1642module.exports = function (it) {
1643 return typeof it === 'object' ? it !== null : typeof it === 'function';
1644};
1645
1646
1647/***/ }),
1648
1649/***/ "d53b":
1650/***/ (function(module, exports) {
1651
1652module.exports = function (done, value) {
1653 return { value: value, done: !!done };
1654};
1655
1656
1657/***/ }),
1658
1659/***/ "d8e8":
1660/***/ (function(module, exports) {
1661
1662module.exports = function (it) {
1663 if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1664 return it;
1665};
1666
1667
1668/***/ }),
1669
1670/***/ "e11e":
1671/***/ (function(module, exports) {
1672
1673// IE 8- don't enum bug keys
1674module.exports = (
1675 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
1676).split(',');
1677
1678
1679/***/ }),
1680
1681/***/ "f559":
1682/***/ (function(module, exports, __webpack_require__) {
1683
1684"use strict";
1685// 21.1.3.18 String.prototype.startsWith(searchString [, position ])
1686
1687var $export = __webpack_require__("5ca1");
1688var toLength = __webpack_require__("9def");
1689var context = __webpack_require__("d2c8");
1690var STARTS_WITH = 'startsWith';
1691var $startsWith = ''[STARTS_WITH];
1692
1693$export($export.P + $export.F * __webpack_require__("5147")(STARTS_WITH), 'String', {
1694 startsWith: function startsWith(searchString /* , position = 0 */) {
1695 var that = context(this, searchString, STARTS_WITH);
1696 var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
1697 var search = String(searchString);
1698 return $startsWith
1699 ? $startsWith.call(that, search, index)
1700 : that.slice(index, index + search.length) === search;
1701 }
1702});
1703
1704
1705/***/ }),
1706
1707/***/ "f6fd":
1708/***/ (function(module, exports) {
1709
1710// document.currentScript polyfill by Adam Miller
1711
1712// MIT license
1713
1714(function(document){
1715 var currentScript = "currentScript",
1716 scripts = document.getElementsByTagName('script'); // Live NodeList collection
1717
1718 // If browser needs currentScript polyfill, add get currentScript() to the document object
1719 if (!(currentScript in document)) {
1720 Object.defineProperty(document, currentScript, {
1721 get: function(){
1722
1723 // IE 6-10 supports script readyState
1724 // IE 10+ support stack trace
1725 try { throw new Error(); }
1726 catch (err) {
1727
1728 // Find the second match for the "at" string to get file src url from stack.
1729 // Specifically works with the format of stack traces in IE.
1730 var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
1731
1732 // For all scripts on the page, if src matches or if ready state is interactive, return the script tag
1733 for(i in scripts){
1734 if(scripts[i].src == res || scripts[i].readyState == "interactive"){
1735 return scripts[i];
1736 }
1737 }
1738
1739 // If no match, return null
1740 return null;
1741 }
1742 }
1743 });
1744 }
1745})(document);
1746
1747
1748/***/ }),
1749
1750/***/ "f751":
1751/***/ (function(module, exports, __webpack_require__) {
1752
1753// 19.1.3.1 Object.assign(target, source)
1754var $export = __webpack_require__("5ca1");
1755
1756$export($export.S + $export.F, 'Object', { assign: __webpack_require__("7333") });
1757
1758
1759/***/ }),
1760
1761/***/ "fa5b":
1762/***/ (function(module, exports, __webpack_require__) {
1763
1764module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
1765
1766
1767/***/ }),
1768
1769/***/ "fab2":
1770/***/ (function(module, exports, __webpack_require__) {
1771
1772var document = __webpack_require__("7726").document;
1773module.exports = document && document.documentElement;
1774
1775
1776/***/ }),
1777
1778/***/ "fb15":
1779/***/ (function(module, __webpack_exports__, __webpack_require__) {
1780
1781"use strict";
1782// ESM COMPAT FLAG
1783__webpack_require__.r(__webpack_exports__);
1784
1785// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
1786// This file is imported into lib/wc client bundles.
1787
1788if (typeof window !== 'undefined') {
1789 if (true) {
1790 __webpack_require__("f6fd")
1791 }
1792
1793 var setPublicPath_i
1794 if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
1795 __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line
1796 }
1797}
1798
1799// Indicate to webpack that this file can be concatenated
1800/* harmony default export */ var setPublicPath = (null);
1801
1802// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.assign.js
1803var es6_object_assign = __webpack_require__("f751");
1804
1805// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.starts-with.js
1806var es6_string_starts_with = __webpack_require__("f559");
1807
1808// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
1809var web_dom_iterable = __webpack_require__("ac6a");
1810
1811// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
1812var es6_array_iterator = __webpack_require__("cadf");
1813
1814// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
1815var es6_object_keys = __webpack_require__("456d");
1816
1817// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
1818function _arrayWithHoles(arr) {
1819 if (Array.isArray(arr)) return arr;
1820}
1821// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1822function _iterableToArrayLimit(arr, i) {
1823 if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
1824 var _arr = [];
1825 var _n = true;
1826 var _d = false;
1827 var _e = undefined;
1828
1829 try {
1830 for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
1831 _arr.push(_s.value);
1832
1833 if (i && _arr.length === i) break;
1834 }
1835 } catch (err) {
1836 _d = true;
1837 _e = err;
1838 } finally {
1839 try {
1840 if (!_n && _i["return"] != null) _i["return"]();
1841 } finally {
1842 if (_d) throw _e;
1843 }
1844 }
1845
1846 return _arr;
1847}
1848// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
1849function _arrayLikeToArray(arr, len) {
1850 if (len == null || len > arr.length) len = arr.length;
1851
1852 for (var i = 0, arr2 = new Array(len); i < len; i++) {
1853 arr2[i] = arr[i];
1854 }
1855
1856 return arr2;
1857}
1858// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
1859
1860function _unsupportedIterableToArray(o, minLen) {
1861 if (!o) return;
1862 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1863 var n = Object.prototype.toString.call(o).slice(8, -1);
1864 if (n === "Object" && o.constructor) n = o.constructor.name;
1865 if (n === "Map" || n === "Set") return Array.from(o);
1866 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1867}
1868// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
1869function _nonIterableRest() {
1870 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1871}
1872// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
1873
1874
1875
1876
1877function _slicedToArray(arr, i) {
1878 return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
1879}
1880// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js
1881var es7_array_includes = __webpack_require__("6762");
1882
1883// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js
1884var es6_string_includes = __webpack_require__("2fdb");
1885
1886// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1887
1888function _arrayWithoutHoles(arr) {
1889 if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1890}
1891// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1892function _iterableToArray(iter) {
1893 if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
1894}
1895// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1896function _nonIterableSpread() {
1897 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1898}
1899// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1900
1901
1902
1903
1904function _toConsumableArray(arr) {
1905 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1906}
1907// EXTERNAL MODULE: external {"commonjs":"sortablejs","commonjs2":"sortablejs","amd":"sortablejs","root":"Sortable"}
1908var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_ = __webpack_require__("a352");
1909var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_);
1910
1911// EXTERNAL MODULE: ./src/util/helper.js
1912var helper = __webpack_require__("c649");
1913
1914// CONCATENATED MODULE: ./src/vuedraggable.js
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927function buildAttribute(object, propName, value) {
1928 if (value === undefined) {
1929 return object;
1930 }
1931
1932 object = object || {};
1933 object[propName] = value;
1934 return object;
1935}
1936
1937function computeVmIndex(vnodes, element) {
1938 return vnodes.map(function (elt) {
1939 return elt.elm;
1940 }).indexOf(element);
1941}
1942
1943function _computeIndexes(slots, children, isTransition, footerOffset) {
1944 if (!slots) {
1945 return [];
1946 }
1947
1948 var elmFromNodes = slots.map(function (elt) {
1949 return elt.elm;
1950 });
1951 var footerIndex = children.length - footerOffset;
1952
1953 var rawIndexes = _toConsumableArray(children).map(function (elt, idx) {
1954 return idx >= footerIndex ? elmFromNodes.length : elmFromNodes.indexOf(elt);
1955 });
1956
1957 return isTransition ? rawIndexes.filter(function (ind) {
1958 return ind !== -1;
1959 }) : rawIndexes;
1960}
1961
1962function emit(evtName, evtData) {
1963 var _this = this;
1964
1965 this.$nextTick(function () {
1966 return _this.$emit(evtName.toLowerCase(), evtData);
1967 });
1968}
1969
1970function delegateAndEmit(evtName) {
1971 var _this2 = this;
1972
1973 return function (evtData) {
1974 if (_this2.realList !== null) {
1975 _this2["onDrag" + evtName](evtData);
1976 }
1977
1978 emit.call(_this2, evtName, evtData);
1979 };
1980}
1981
1982function isTransitionName(name) {
1983 return ["transition-group", "TransitionGroup"].includes(name);
1984}
1985
1986function vuedraggable_isTransition(slots) {
1987 if (!slots || slots.length !== 1) {
1988 return false;
1989 }
1990
1991 var _slots = _slicedToArray(slots, 1),
1992 componentOptions = _slots[0].componentOptions;
1993
1994 if (!componentOptions) {
1995 return false;
1996 }
1997
1998 return isTransitionName(componentOptions.tag);
1999}
2000
2001function getSlot(slot, scopedSlot, key) {
2002 return slot[key] || (scopedSlot[key] ? scopedSlot[key]() : undefined);
2003}
2004
2005function computeChildrenAndOffsets(children, slot, scopedSlot) {
2006 var headerOffset = 0;
2007 var footerOffset = 0;
2008 var header = getSlot(slot, scopedSlot, "header");
2009
2010 if (header) {
2011 headerOffset = header.length;
2012 children = children ? [].concat(_toConsumableArray(header), _toConsumableArray(children)) : _toConsumableArray(header);
2013 }
2014
2015 var footer = getSlot(slot, scopedSlot, "footer");
2016
2017 if (footer) {
2018 footerOffset = footer.length;
2019 children = children ? [].concat(_toConsumableArray(children), _toConsumableArray(footer)) : _toConsumableArray(footer);
2020 }
2021
2022 return {
2023 children: children,
2024 headerOffset: headerOffset,
2025 footerOffset: footerOffset
2026 };
2027}
2028
2029function getComponentAttributes($attrs, componentData) {
2030 var attributes = null;
2031
2032 var update = function update(name, value) {
2033 attributes = buildAttribute(attributes, name, value);
2034 };
2035
2036 var attrs = Object.keys($attrs).filter(function (key) {
2037 return key === "id" || key.startsWith("data-");
2038 }).reduce(function (res, key) {
2039 res[key] = $attrs[key];
2040 return res;
2041 }, {});
2042 update("attrs", attrs);
2043
2044 if (!componentData) {
2045 return attributes;
2046 }
2047
2048 var on = componentData.on,
2049 props = componentData.props,
2050 componentDataAttrs = componentData.attrs;
2051 update("on", on);
2052 update("props", props);
2053 Object.assign(attributes.attrs, componentDataAttrs);
2054 return attributes;
2055}
2056
2057var eventsListened = ["Start", "Add", "Remove", "Update", "End"];
2058var eventsToEmit = ["Choose", "Unchoose", "Sort", "Filter", "Clone"];
2059var readonlyProperties = ["Move"].concat(eventsListened, eventsToEmit).map(function (evt) {
2060 return "on" + evt;
2061});
2062var draggingElement = null;
2063var props = {
2064 options: Object,
2065 list: {
2066 type: Array,
2067 required: false,
2068 default: null
2069 },
2070 value: {
2071 type: Array,
2072 required: false,
2073 default: null
2074 },
2075 noTransitionOnDrag: {
2076 type: Boolean,
2077 default: false
2078 },
2079 clone: {
2080 type: Function,
2081 default: function _default(original) {
2082 return original;
2083 }
2084 },
2085 element: {
2086 type: String,
2087 default: "div"
2088 },
2089 tag: {
2090 type: String,
2091 default: null
2092 },
2093 move: {
2094 type: Function,
2095 default: null
2096 },
2097 componentData: {
2098 type: Object,
2099 required: false,
2100 default: null
2101 }
2102};
2103var draggableComponent = {
2104 name: "draggable",
2105 inheritAttrs: false,
2106 props: props,
2107 data: function data() {
2108 return {
2109 transitionMode: false,
2110 noneFunctionalComponentMode: false
2111 };
2112 },
2113 render: function render(h) {
2114 var slots = this.$slots.default;
2115 this.transitionMode = vuedraggable_isTransition(slots);
2116
2117 var _computeChildrenAndOf = computeChildrenAndOffsets(slots, this.$slots, this.$scopedSlots),
2118 children = _computeChildrenAndOf.children,
2119 headerOffset = _computeChildrenAndOf.headerOffset,
2120 footerOffset = _computeChildrenAndOf.footerOffset;
2121
2122 this.headerOffset = headerOffset;
2123 this.footerOffset = footerOffset;
2124 var attributes = getComponentAttributes(this.$attrs, this.componentData);
2125 return h(this.getTag(), attributes, children);
2126 },
2127 created: function created() {
2128 if (this.list !== null && this.value !== null) {
2129 helper["b" /* console */].error("Value and list props are mutually exclusive! Please set one or another.");
2130 }
2131
2132 if (this.element !== "div") {
2133 helper["b" /* console */].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props");
2134 }
2135
2136 if (this.options !== undefined) {
2137 helper["b" /* console */].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props");
2138 }
2139 },
2140 mounted: function mounted() {
2141 var _this3 = this;
2142
2143 this.noneFunctionalComponentMode = this.getTag().toLowerCase() !== this.$el.nodeName.toLowerCase() && !this.getIsFunctional();
2144
2145 if (this.noneFunctionalComponentMode && this.transitionMode) {
2146 throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));
2147 }
2148
2149 var optionsAdded = {};
2150 eventsListened.forEach(function (elt) {
2151 optionsAdded["on" + elt] = delegateAndEmit.call(_this3, elt);
2152 });
2153 eventsToEmit.forEach(function (elt) {
2154 optionsAdded["on" + elt] = emit.bind(_this3, elt);
2155 });
2156 var attributes = Object.keys(this.$attrs).reduce(function (res, key) {
2157 res[Object(helper["a" /* camelize */])(key)] = _this3.$attrs[key];
2158 return res;
2159 }, {});
2160 var options = Object.assign({}, this.options, attributes, optionsAdded, {
2161 onMove: function onMove(evt, originalEvent) {
2162 return _this3.onDragMove(evt, originalEvent);
2163 }
2164 });
2165 !("draggable" in options) && (options.draggable = ">*");
2166 this._sortable = new external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default.a(this.rootContainer, options);
2167 this.computeIndexes();
2168 },
2169 beforeDestroy: function beforeDestroy() {
2170 if (this._sortable !== undefined) this._sortable.destroy();
2171 },
2172 computed: {
2173 rootContainer: function rootContainer() {
2174 return this.transitionMode ? this.$el.children[0] : this.$el;
2175 },
2176 realList: function realList() {
2177 return this.list ? this.list : this.value;
2178 }
2179 },
2180 watch: {
2181 options: {
2182 handler: function handler(newOptionValue) {
2183 this.updateOptions(newOptionValue);
2184 },
2185 deep: true
2186 },
2187 $attrs: {
2188 handler: function handler(newOptionValue) {
2189 this.updateOptions(newOptionValue);
2190 },
2191 deep: true
2192 },
2193 realList: function realList() {
2194 this.computeIndexes();
2195 }
2196 },
2197 methods: {
2198 getIsFunctional: function getIsFunctional() {
2199 var fnOptions = this._vnode.fnOptions;
2200 return fnOptions && fnOptions.functional;
2201 },
2202 getTag: function getTag() {
2203 return this.tag || this.element;
2204 },
2205 updateOptions: function updateOptions(newOptionValue) {
2206 for (var property in newOptionValue) {
2207 var value = Object(helper["a" /* camelize */])(property);
2208
2209 if (readonlyProperties.indexOf(value) === -1) {
2210 this._sortable.option(value, newOptionValue[property]);
2211 }
2212 }
2213 },
2214 getChildrenNodes: function getChildrenNodes() {
2215 if (this.noneFunctionalComponentMode) {
2216 return this.$children[0].$slots.default;
2217 }
2218
2219 var rawNodes = this.$slots.default;
2220 return this.transitionMode ? rawNodes[0].child.$slots.default : rawNodes;
2221 },
2222 computeIndexes: function computeIndexes() {
2223 var _this4 = this;
2224
2225 this.$nextTick(function () {
2226 _this4.visibleIndexes = _computeIndexes(_this4.getChildrenNodes(), _this4.rootContainer.children, _this4.transitionMode, _this4.footerOffset);
2227 });
2228 },
2229 getUnderlyingVm: function getUnderlyingVm(htmlElt) {
2230 var index = computeVmIndex(this.getChildrenNodes() || [], htmlElt);
2231
2232 if (index === -1) {
2233 //Edge case during move callback: related element might be
2234 //an element different from collection
2235 return null;
2236 }
2237
2238 var element = this.realList[index];
2239 return {
2240 index: index,
2241 element: element
2242 };
2243 },
2244 getUnderlyingPotencialDraggableComponent: function getUnderlyingPotencialDraggableComponent(_ref) {
2245 var vue = _ref.__vue__;
2246
2247 if (!vue || !vue.$options || !isTransitionName(vue.$options._componentTag)) {
2248 if (!("realList" in vue) && vue.$children.length === 1 && "realList" in vue.$children[0]) return vue.$children[0];
2249 return vue;
2250 }
2251
2252 return vue.$parent;
2253 },
2254 emitChanges: function emitChanges(evt) {
2255 var _this5 = this;
2256
2257 this.$nextTick(function () {
2258 _this5.$emit("change", evt);
2259 });
2260 },
2261 alterList: function alterList(onList) {
2262 if (this.list) {
2263 onList(this.list);
2264 return;
2265 }
2266
2267 var newList = _toConsumableArray(this.value);
2268
2269 onList(newList);
2270 this.$emit("input", newList);
2271 },
2272 spliceList: function spliceList() {
2273 var _arguments = arguments;
2274
2275 var spliceList = function spliceList(list) {
2276 return list.splice.apply(list, _toConsumableArray(_arguments));
2277 };
2278
2279 this.alterList(spliceList);
2280 },
2281 updatePosition: function updatePosition(oldIndex, newIndex) {
2282 var updatePosition = function updatePosition(list) {
2283 return list.splice(newIndex, 0, list.splice(oldIndex, 1)[0]);
2284 };
2285
2286 this.alterList(updatePosition);
2287 },
2288 getRelatedContextFromMoveEvent: function getRelatedContextFromMoveEvent(_ref2) {
2289 var to = _ref2.to,
2290 related = _ref2.related;
2291 var component = this.getUnderlyingPotencialDraggableComponent(to);
2292
2293 if (!component) {
2294 return {
2295 component: component
2296 };
2297 }
2298
2299 var list = component.realList;
2300 var context = {
2301 list: list,
2302 component: component
2303 };
2304
2305 if (to !== related && list && component.getUnderlyingVm) {
2306 var destination = component.getUnderlyingVm(related);
2307
2308 if (destination) {
2309 return Object.assign(destination, context);
2310 }
2311 }
2312
2313 return context;
2314 },
2315 getVmIndex: function getVmIndex(domIndex) {
2316 var indexes = this.visibleIndexes;
2317 var numberIndexes = indexes.length;
2318 return domIndex > numberIndexes - 1 ? numberIndexes : indexes[domIndex];
2319 },
2320 getComponent: function getComponent() {
2321 return this.$slots.default[0].componentInstance;
2322 },
2323 resetTransitionData: function resetTransitionData(index) {
2324 if (!this.noTransitionOnDrag || !this.transitionMode) {
2325 return;
2326 }
2327
2328 var nodes = this.getChildrenNodes();
2329 nodes[index].data = null;
2330 var transitionContainer = this.getComponent();
2331 transitionContainer.children = [];
2332 transitionContainer.kept = undefined;
2333 },
2334 onDragStart: function onDragStart(evt) {
2335 this.context = this.getUnderlyingVm(evt.item);
2336 evt.item._underlying_vm_ = this.clone(this.context.element);
2337 draggingElement = evt.item;
2338 },
2339 onDragAdd: function onDragAdd(evt) {
2340 var element = evt.item._underlying_vm_;
2341
2342 if (element === undefined) {
2343 return;
2344 }
2345
2346 Object(helper["d" /* removeNode */])(evt.item);
2347 var newIndex = this.getVmIndex(evt.newIndex);
2348 this.spliceList(newIndex, 0, element);
2349 this.computeIndexes();
2350 var added = {
2351 element: element,
2352 newIndex: newIndex
2353 };
2354 this.emitChanges({
2355 added: added
2356 });
2357 },
2358 onDragRemove: function onDragRemove(evt) {
2359 Object(helper["c" /* insertNodeAt */])(this.rootContainer, evt.item, evt.oldIndex);
2360
2361 if (evt.pullMode === "clone") {
2362 Object(helper["d" /* removeNode */])(evt.clone);
2363 return;
2364 }
2365
2366 var oldIndex = this.context.index;
2367 this.spliceList(oldIndex, 1);
2368 var removed = {
2369 element: this.context.element,
2370 oldIndex: oldIndex
2371 };
2372 this.resetTransitionData(oldIndex);
2373 this.emitChanges({
2374 removed: removed
2375 });
2376 },
2377 onDragUpdate: function onDragUpdate(evt) {
2378 Object(helper["d" /* removeNode */])(evt.item);
2379 Object(helper["c" /* insertNodeAt */])(evt.from, evt.item, evt.oldIndex);
2380 var oldIndex = this.context.index;
2381 var newIndex = this.getVmIndex(evt.newIndex);
2382 this.updatePosition(oldIndex, newIndex);
2383 var moved = {
2384 element: this.context.element,
2385 oldIndex: oldIndex,
2386 newIndex: newIndex
2387 };
2388 this.emitChanges({
2389 moved: moved
2390 });
2391 },
2392 updateProperty: function updateProperty(evt, propertyName) {
2393 evt.hasOwnProperty(propertyName) && (evt[propertyName] += this.headerOffset);
2394 },
2395 computeFutureIndex: function computeFutureIndex(relatedContext, evt) {
2396 if (!relatedContext.element) {
2397 return 0;
2398 }
2399
2400 var domChildren = _toConsumableArray(evt.to.children).filter(function (el) {
2401 return el.style["display"] !== "none";
2402 });
2403
2404 var currentDOMIndex = domChildren.indexOf(evt.related);
2405 var currentIndex = relatedContext.component.getVmIndex(currentDOMIndex);
2406 var draggedInList = domChildren.indexOf(draggingElement) !== -1;
2407 return draggedInList || !evt.willInsertAfter ? currentIndex : currentIndex + 1;
2408 },
2409 onDragMove: function onDragMove(evt, originalEvent) {
2410 var onMove = this.move;
2411
2412 if (!onMove || !this.realList) {
2413 return true;
2414 }
2415
2416 var relatedContext = this.getRelatedContextFromMoveEvent(evt);
2417 var draggedContext = this.context;
2418 var futureIndex = this.computeFutureIndex(relatedContext, evt);
2419 Object.assign(draggedContext, {
2420 futureIndex: futureIndex
2421 });
2422 var sendEvt = Object.assign({}, evt, {
2423 relatedContext: relatedContext,
2424 draggedContext: draggedContext
2425 });
2426 return onMove(sendEvt, originalEvent);
2427 },
2428 onDragEnd: function onDragEnd() {
2429 this.computeIndexes();
2430 draggingElement = null;
2431 }
2432 }
2433};
2434
2435if (typeof window !== "undefined" && "Vue" in window) {
2436 window.Vue.component("draggable", draggableComponent);
2437}
2438
2439/* harmony default export */ var vuedraggable = (draggableComponent);
2440// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
2441
2442
2443/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (vuedraggable);
2444
2445
2446
2447/***/ })
2448
2449/******/ })["default"];
2450//# sourceMappingURL=vuedraggable.common.js.map
\No newline at end of file