vuedraggable.common.js 70 KB

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