项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

3271 line
91 KiB

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