12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450 |
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = "fb15");
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ "01f9":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var LIBRARY = __webpack_require__("2d00");
- var $export = __webpack_require__("5ca1");
- var redefine = __webpack_require__("2aba");
- var hide = __webpack_require__("32e9");
- var Iterators = __webpack_require__("84f2");
- var $iterCreate = __webpack_require__("41a0");
- var setToStringTag = __webpack_require__("7f20");
- var getPrototypeOf = __webpack_require__("38fd");
- var ITERATOR = __webpack_require__("2b4c")('iterator');
- var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
- var FF_ITERATOR = '@@iterator';
- var KEYS = 'keys';
- var VALUES = 'values';
- var returnThis = function () { return this; };
- module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
- var getMethod = function (kind) {
- if (!BUGGY && kind in proto) return proto[kind];
- switch (kind) {
- case KEYS: return function keys() { return new Constructor(this, kind); };
- case VALUES: return function values() { return new Constructor(this, kind); };
- } return function entries() { return new Constructor(this, kind); };
- };
- var TAG = NAME + ' Iterator';
- var DEF_VALUES = DEFAULT == VALUES;
- var VALUES_BUG = false;
- var proto = Base.prototype;
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
- var $default = $native || getMethod(DEFAULT);
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
- var methods, key, IteratorPrototype;
- // Fix native
- if ($anyNative) {
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
- // Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
- // fix for some old engines
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
- }
- }
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEF_VALUES && $native && $native.name !== VALUES) {
- VALUES_BUG = true;
- $default = function values() { return $native.call(this); };
- }
- // Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
- hide(proto, ITERATOR, $default);
- }
- // Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
- if (DEFAULT) {
- methods = {
- values: DEF_VALUES ? $default : getMethod(VALUES),
- keys: IS_SET ? $default : getMethod(KEYS),
- entries: $entries
- };
- if (FORCED) for (key in methods) {
- if (!(key in proto)) redefine(proto, key, methods[key]);
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
- }
- return methods;
- };
- /***/ }),
- /***/ "02f4":
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__("4588");
- var defined = __webpack_require__("be13");
- // true -> String#at
- // false -> String#codePointAt
- module.exports = function (TO_STRING) {
- return function (that, pos) {
- var s = String(defined(that));
- var i = toInteger(pos);
- var l = s.length;
- var a, b;
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
- a = s.charCodeAt(i);
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
- ? TO_STRING ? s.charAt(i) : a
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
- };
- };
- /***/ }),
- /***/ "0390":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var at = __webpack_require__("02f4")(true);
- // `AdvanceStringIndex` abstract operation
- // https://tc39.github.io/ecma262/#sec-advancestringindex
- module.exports = function (S, index, unicode) {
- return index + (unicode ? at(S, index).length : 1);
- };
- /***/ }),
- /***/ "0bfb":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 21.2.5.3 get RegExp.prototype.flags
- var anObject = __webpack_require__("cb7c");
- module.exports = function () {
- var that = anObject(this);
- var result = '';
- if (that.global) result += 'g';
- if (that.ignoreCase) result += 'i';
- if (that.multiline) result += 'm';
- if (that.unicode) result += 'u';
- if (that.sticky) result += 'y';
- return result;
- };
- /***/ }),
- /***/ "0d58":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__("ce10");
- var enumBugKeys = __webpack_require__("e11e");
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
- /***/ }),
- /***/ "1495":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("86cc");
- var anObject = __webpack_require__("cb7c");
- var getKeys = __webpack_require__("0d58");
- module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
- };
- /***/ }),
- /***/ "214f":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- __webpack_require__("b0c5");
- var redefine = __webpack_require__("2aba");
- var hide = __webpack_require__("32e9");
- var fails = __webpack_require__("79e5");
- var defined = __webpack_require__("be13");
- var wks = __webpack_require__("2b4c");
- var regexpExec = __webpack_require__("520a");
- var SPECIES = wks('species');
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
- // #replace needs built-in support for named groups.
- // #match works fine because it just return the exec results, even if it has
- // a "grops" property.
- var re = /./;
- re.exec = function () {
- var result = [];
- result.groups = { a: '7' };
- return result;
- };
- return ''.replace(re, '$<a>') !== '7';
- });
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
- var re = /(?:)/;
- var originalExec = re.exec;
- re.exec = function () { return originalExec.apply(this, arguments); };
- var result = 'ab'.split(re);
- return result.length === 2 && result[0] === 'a' && result[1] === 'b';
- })();
- module.exports = function (KEY, length, exec) {
- var SYMBOL = wks(KEY);
- var DELEGATES_TO_SYMBOL = !fails(function () {
- // String methods call symbol-named RegEp methods
- var O = {};
- O[SYMBOL] = function () { return 7; };
- return ''[KEY](O) != 7;
- });
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
- // Symbol-named RegExp methods call .exec
- var execCalled = false;
- var re = /a/;
- re.exec = function () { execCalled = true; return null; };
- if (KEY === 'split') {
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
- // a new one. We need to return the patched regex when creating the new one.
- re.constructor = {};
- re.constructor[SPECIES] = function () { return re; };
- }
- re[SYMBOL]('');
- return !execCalled;
- }) : undefined;
- if (
- !DELEGATES_TO_SYMBOL ||
- !DELEGATES_TO_EXEC ||
- (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
- ) {
- var nativeRegExpMethod = /./[SYMBOL];
- var fns = exec(
- defined,
- SYMBOL,
- ''[KEY],
- function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
- // The native String method already delegates to @@method (this
- // polyfilled function), leasing to infinite recursion.
- // We avoid it by directly calling the native @@method method.
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
- }
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
- }
- return { done: false };
- }
- );
- var strfn = fns[0];
- var rxfn = fns[1];
- redefine(String.prototype, KEY, strfn);
- hide(RegExp.prototype, SYMBOL, length == 2
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
- ? function (string, arg) { return rxfn.call(string, this, arg); }
- // 21.2.5.6 RegExp.prototype[@@match](string)
- // 21.2.5.9 RegExp.prototype[@@search](string)
- : function (string) { return rxfn.call(string, this); }
- );
- }
- };
- /***/ }),
- /***/ "230e":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- var document = __webpack_require__("7726").document;
- // typeof document.createElement is 'object' in old IE
- var is = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return is ? document.createElement(it) : {};
- };
- /***/ }),
- /***/ "23c6":
- /***/ (function(module, exports, __webpack_require__) {
- // getting tag from 19.1.3.6 Object.prototype.toString()
- var cof = __webpack_require__("2d95");
- var TAG = __webpack_require__("2b4c")('toStringTag');
- // ES3 wrong here
- var ARG = cof(function () { return arguments; }()) == 'Arguments';
- // fallback for IE11 Script Access Denied error
- var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (e) { /* empty */ }
- };
- module.exports = function (it) {
- var O, T, B;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
- // builtinTag case
- : ARG ? cof(O)
- // ES3 arguments fallback
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
- };
- /***/ }),
- /***/ "2621":
- /***/ (function(module, exports) {
- exports.f = Object.getOwnPropertySymbols;
- /***/ }),
- /***/ "2aba":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var hide = __webpack_require__("32e9");
- var has = __webpack_require__("69a8");
- var SRC = __webpack_require__("ca5a")('src');
- var $toString = __webpack_require__("fa5b");
- var TO_STRING = 'toString';
- var TPL = ('' + $toString).split(TO_STRING);
- __webpack_require__("8378").inspectSource = function (it) {
- return $toString.call(it);
- };
- (module.exports = function (O, key, val, safe) {
- var isFunction = typeof val == 'function';
- if (isFunction) has(val, 'name') || hide(val, 'name', key);
- if (O[key] === val) return;
- if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
- if (O === global) {
- O[key] = val;
- } else if (!safe) {
- delete O[key];
- hide(O, key, val);
- } else if (O[key]) {
- O[key] = val;
- } else {
- hide(O, key, val);
- }
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
- })(Function.prototype, TO_STRING, function toString() {
- return typeof this == 'function' && this[SRC] || $toString.call(this);
- });
- /***/ }),
- /***/ "2aeb":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__("cb7c");
- var dPs = __webpack_require__("1495");
- var enumBugKeys = __webpack_require__("e11e");
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- var Empty = function () { /* empty */ };
- var PROTOTYPE = 'prototype';
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__("230e")('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__("fab2").appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
- };
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
- };
- /***/ }),
- /***/ "2b4c":
- /***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__("5537")('wks');
- var uid = __webpack_require__("ca5a");
- var Symbol = __webpack_require__("7726").Symbol;
- var USE_SYMBOL = typeof Symbol == 'function';
- var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
- };
- $exports.store = store;
- /***/ }),
- /***/ "2d00":
- /***/ (function(module, exports) {
- module.exports = false;
- /***/ }),
- /***/ "2d95":
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
- /***/ }),
- /***/ "2fdb":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 21.1.3.7 String.prototype.includes(searchString, position = 0)
- var $export = __webpack_require__("5ca1");
- var context = __webpack_require__("d2c8");
- var INCLUDES = 'includes';
- $export($export.P + $export.F * __webpack_require__("5147")(INCLUDES), 'String', {
- includes: function includes(searchString /* , position = 0 */) {
- return !!~context(this, searchString, INCLUDES)
- .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- /***/ }),
- /***/ "32e9":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("86cc");
- var createDesc = __webpack_require__("4630");
- module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- /***/ }),
- /***/ "38fd":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
- var has = __webpack_require__("69a8");
- var toObject = __webpack_require__("4bf8");
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- var ObjectProto = Object.prototype;
- module.exports = Object.getPrototypeOf || function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO)) return O[IE_PROTO];
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
- };
- /***/ }),
- /***/ "41a0":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var create = __webpack_require__("2aeb");
- var descriptor = __webpack_require__("4630");
- var setToStringTag = __webpack_require__("7f20");
- var IteratorPrototype = {};
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
- __webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; });
- module.exports = function (Constructor, NAME, next) {
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
- };
- /***/ }),
- /***/ "456d":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 Object.keys(O)
- var toObject = __webpack_require__("4bf8");
- var $keys = __webpack_require__("0d58");
- __webpack_require__("5eda")('keys', function () {
- return function keys(it) {
- return $keys(toObject(it));
- };
- });
- /***/ }),
- /***/ "4588":
- /***/ (function(module, exports) {
- // 7.1.4 ToInteger
- var ceil = Math.ceil;
- var floor = Math.floor;
- module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
- };
- /***/ }),
- /***/ "4630":
- /***/ (function(module, exports) {
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- /***/ }),
- /***/ "4bf8":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__("be13");
- module.exports = function (it) {
- return Object(defined(it));
- };
- /***/ }),
- /***/ "5147":
- /***/ (function(module, exports, __webpack_require__) {
- var MATCH = __webpack_require__("2b4c")('match');
- module.exports = function (KEY) {
- var re = /./;
- try {
- '/./'[KEY](re);
- } catch (e) {
- try {
- re[MATCH] = false;
- return !'/./'[KEY](re);
- } catch (f) { /* empty */ }
- } return true;
- };
- /***/ }),
- /***/ "520a":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var regexpFlags = __webpack_require__("0bfb");
- var nativeExec = RegExp.prototype.exec;
- // This always refers to the native implementation, because the
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
- // which loads this file before patching the method.
- var nativeReplace = String.prototype.replace;
- var patchedExec = nativeExec;
- var LAST_INDEX = 'lastIndex';
- var UPDATES_LAST_INDEX_WRONG = (function () {
- var re1 = /a/,
- re2 = /b*/g;
- nativeExec.call(re1, 'a');
- nativeExec.call(re2, 'a');
- return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
- })();
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
- if (PATCH) {
- patchedExec = function exec(str) {
- var re = this;
- var lastIndex, reCopy, match, i;
- if (NPCG_INCLUDED) {
- reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
- }
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
- match = nativeExec.call(re, str);
- if (UPDATES_LAST_INDEX_WRONG && match) {
- re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
- }
- if (NPCG_INCLUDED && match && match.length > 1) {
- // Fix browsers whose `exec` methods don't consistently return `undefined`
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
- // eslint-disable-next-line no-loop-func
- nativeReplace.call(match[0], reCopy, function () {
- for (i = 1; i < arguments.length - 2; i++) {
- if (arguments[i] === undefined) match[i] = undefined;
- }
- });
- }
- return match;
- };
- }
- module.exports = patchedExec;
- /***/ }),
- /***/ "52a7":
- /***/ (function(module, exports) {
- exports.f = {}.propertyIsEnumerable;
- /***/ }),
- /***/ "5537":
- /***/ (function(module, exports, __webpack_require__) {
- var core = __webpack_require__("8378");
- var global = __webpack_require__("7726");
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || (global[SHARED] = {});
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: core.version,
- mode: __webpack_require__("2d00") ? 'pure' : 'global',
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
- });
- /***/ }),
- /***/ "5ca1":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var core = __webpack_require__("8378");
- var hide = __webpack_require__("32e9");
- var redefine = __webpack_require__("2aba");
- var ctx = __webpack_require__("9b43");
- var PROTOTYPE = 'prototype';
- var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
- var key, own, out, exp;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- // export native or passed
- out = (own ? target : source)[key];
- // bind timers to global for call from export context
- exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // extend global
- if (target) redefine(target, key, out, type & $export.U);
- // export
- if (exports[key] != out) hide(exports, key, exp);
- if (IS_PROTO && expProto[key] != out) expProto[key] = out;
- }
- };
- global.core = core;
- // type bitmap
- $export.F = 1; // forced
- $export.G = 2; // global
- $export.S = 4; // static
- $export.P = 8; // proto
- $export.B = 16; // bind
- $export.W = 32; // wrap
- $export.U = 64; // safe
- $export.R = 128; // real proto method for `library`
- module.exports = $export;
- /***/ }),
- /***/ "5eda":
- /***/ (function(module, exports, __webpack_require__) {
- // most Object methods by ES6 should accept primitives
- var $export = __webpack_require__("5ca1");
- var core = __webpack_require__("8378");
- var fails = __webpack_require__("79e5");
- module.exports = function (KEY, exec) {
- var fn = (core.Object || {})[KEY] || Object[KEY];
- var exp = {};
- exp[KEY] = exec(fn);
- $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
- };
- /***/ }),
- /***/ "5f1b":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var classof = __webpack_require__("23c6");
- var builtinExec = RegExp.prototype.exec;
- // `RegExpExec` abstract operation
- // https://tc39.github.io/ecma262/#sec-regexpexec
- module.exports = function (R, S) {
- var exec = R.exec;
- if (typeof exec === 'function') {
- var result = exec.call(R, S);
- if (typeof result !== 'object') {
- throw new TypeError('RegExp exec method returned something other than an Object or null');
- }
- return result;
- }
- if (classof(R) !== 'RegExp') {
- throw new TypeError('RegExp#exec called on incompatible receiver');
- }
- return builtinExec.call(R, S);
- };
- /***/ }),
- /***/ "613b":
- /***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__("5537")('keys');
- var uid = __webpack_require__("ca5a");
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
- /***/ }),
- /***/ "626a":
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__("2d95");
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
- /***/ }),
- /***/ "6762":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // https://github.com/tc39/Array.prototype.includes
- var $export = __webpack_require__("5ca1");
- var $includes = __webpack_require__("c366")(true);
- $export($export.P, 'Array', {
- includes: function includes(el /* , fromIndex = 0 */) {
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
- }
- });
- __webpack_require__("9c6c")('includes');
- /***/ }),
- /***/ "6821":
- /***/ (function(module, exports, __webpack_require__) {
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__("626a");
- var defined = __webpack_require__("be13");
- module.exports = function (it) {
- return IObject(defined(it));
- };
- /***/ }),
- /***/ "69a8":
- /***/ (function(module, exports) {
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
- /***/ }),
- /***/ "6a99":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__("d3f4");
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
- /***/ }),
- /***/ "7333":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 19.1.2.1 Object.assign(target, source, ...)
- var getKeys = __webpack_require__("0d58");
- var gOPS = __webpack_require__("2621");
- var pIE = __webpack_require__("52a7");
- var toObject = __webpack_require__("4bf8");
- var IObject = __webpack_require__("626a");
- var $assign = Object.assign;
- // should work with symbols and should have deterministic property order (V8 bug)
- module.exports = !$assign || __webpack_require__("79e5")(function () {
- var A = {};
- var B = {};
- // eslint-disable-next-line no-undef
- var S = Symbol();
- var K = 'abcdefghijklmnopqrst';
- A[S] = 7;
- K.split('').forEach(function (k) { B[k] = k; });
- return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars
- var T = toObject(target);
- var aLen = arguments.length;
- var index = 1;
- var getSymbols = gOPS.f;
- var isEnum = pIE.f;
- while (aLen > index) {
- var S = IObject(arguments[index++]);
- var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
- var length = keys.length;
- var j = 0;
- var key;
- while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
- } return T;
- } : $assign;
- /***/ }),
- /***/ "7726":
- /***/ (function(module, exports) {
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
- /***/ }),
- /***/ "77f1":
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__("4588");
- var max = Math.max;
- var min = Math.min;
- module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
- };
- /***/ }),
- /***/ "79e5":
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
- /***/ }),
- /***/ "7f20":
- /***/ (function(module, exports, __webpack_require__) {
- var def = __webpack_require__("86cc").f;
- var has = __webpack_require__("69a8");
- var TAG = __webpack_require__("2b4c")('toStringTag');
- module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
- };
- /***/ }),
- /***/ "8378":
- /***/ (function(module, exports) {
- var core = module.exports = { version: '2.6.5' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
- /***/ }),
- /***/ "84f2":
- /***/ (function(module, exports) {
- module.exports = {};
- /***/ }),
- /***/ "86cc":
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__("cb7c");
- var IE8_DOM_DEFINE = __webpack_require__("c69a");
- var toPrimitive = __webpack_require__("6a99");
- var dP = Object.defineProperty;
- exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
- /***/ }),
- /***/ "9b43":
- /***/ (function(module, exports, __webpack_require__) {
- // optional / simple context binding
- var aFunction = __webpack_require__("d8e8");
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
- /***/ }),
- /***/ "9c6c":
- /***/ (function(module, exports, __webpack_require__) {
- // 22.1.3.31 Array.prototype[@@unscopables]
- var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
- var ArrayProto = Array.prototype;
- if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
- module.exports = function (key) {
- ArrayProto[UNSCOPABLES][key] = true;
- };
- /***/ }),
- /***/ "9def":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.15 ToLength
- var toInteger = __webpack_require__("4588");
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
- /***/ }),
- /***/ "9e1e":
- /***/ (function(module, exports, __webpack_require__) {
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__("79e5")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "a352":
- /***/ (function(module, exports) {
- module.exports = require("sortablejs");
- /***/ }),
- /***/ "a481":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var anObject = __webpack_require__("cb7c");
- var toObject = __webpack_require__("4bf8");
- var toLength = __webpack_require__("9def");
- var toInteger = __webpack_require__("4588");
- var advanceStringIndex = __webpack_require__("0390");
- var regExpExec = __webpack_require__("5f1b");
- var max = Math.max;
- var min = Math.min;
- var floor = Math.floor;
- var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
- var maybeToString = function (it) {
- return it === undefined ? it : String(it);
- };
- // @@replace logic
- __webpack_require__("214f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
- return [
- // `String.prototype.replace` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.replace
- function replace(searchValue, replaceValue) {
- var O = defined(this);
- var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
- return fn !== undefined
- ? fn.call(searchValue, O, replaceValue)
- : $replace.call(String(O), searchValue, replaceValue);
- },
- // `RegExp.prototype[@@replace]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
- function (regexp, replaceValue) {
- var res = maybeCallNative($replace, regexp, this, replaceValue);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- var functionalReplace = typeof replaceValue === 'function';
- if (!functionalReplace) replaceValue = String(replaceValue);
- var global = rx.global;
- if (global) {
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- }
- var results = [];
- while (true) {
- var result = regExpExec(rx, S);
- if (result === null) break;
- results.push(result);
- if (!global) break;
- var matchStr = String(result[0]);
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- }
- var accumulatedResult = '';
- var nextSourcePosition = 0;
- for (var i = 0; i < results.length; i++) {
- result = results[i];
- var matched = String(result[0]);
- var position = max(min(toInteger(result.index), S.length), 0);
- var captures = [];
- // NOTE: This is equivalent to
- // captures = result.slice(1).map(maybeToString)
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
- var namedCaptures = result.groups;
- if (functionalReplace) {
- var replacerArgs = [matched].concat(captures, position, S);
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
- } else {
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
- }
- if (position >= nextSourcePosition) {
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
- nextSourcePosition = position + matched.length;
- }
- }
- return accumulatedResult + S.slice(nextSourcePosition);
- }
- ];
- // https://tc39.github.io/ecma262/#sec-getsubstitution
- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
- var tailPos = position + matched.length;
- var m = captures.length;
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
- if (namedCaptures !== undefined) {
- namedCaptures = toObject(namedCaptures);
- symbols = SUBSTITUTION_SYMBOLS;
- }
- return $replace.call(replacement, symbols, function (match, ch) {
- var capture;
- switch (ch.charAt(0)) {
- case '$': return '$';
- case '&': return matched;
- case '`': return str.slice(0, position);
- case "'": return str.slice(tailPos);
- case '<':
- capture = namedCaptures[ch.slice(1, -1)];
- break;
- default: // \d\d?
- var n = +ch;
- if (n === 0) return match;
- if (n > m) {
- var f = floor(n / 10);
- if (f === 0) return match;
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
- return match;
- }
- capture = captures[n - 1];
- }
- return capture === undefined ? '' : capture;
- });
- }
- });
- /***/ }),
- /***/ "aae3":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.2.8 IsRegExp(argument)
- var isObject = __webpack_require__("d3f4");
- var cof = __webpack_require__("2d95");
- var MATCH = __webpack_require__("2b4c")('match');
- module.exports = function (it) {
- var isRegExp;
- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
- };
- /***/ }),
- /***/ "ac6a":
- /***/ (function(module, exports, __webpack_require__) {
- var $iterators = __webpack_require__("cadf");
- var getKeys = __webpack_require__("0d58");
- var redefine = __webpack_require__("2aba");
- var global = __webpack_require__("7726");
- var hide = __webpack_require__("32e9");
- var Iterators = __webpack_require__("84f2");
- var wks = __webpack_require__("2b4c");
- var ITERATOR = wks('iterator');
- var TO_STRING_TAG = wks('toStringTag');
- var ArrayValues = Iterators.Array;
- var DOMIterables = {
- CSSRuleList: true, // TODO: Not spec compliant, should be false.
- CSSStyleDeclaration: false,
- CSSValueList: false,
- ClientRectList: false,
- DOMRectList: false,
- DOMStringList: false,
- DOMTokenList: true,
- DataTransferItemList: false,
- FileList: false,
- HTMLAllCollection: false,
- HTMLCollection: false,
- HTMLFormElement: false,
- HTMLSelectElement: false,
- MediaList: true, // TODO: Not spec compliant, should be false.
- MimeTypeArray: false,
- NamedNodeMap: false,
- NodeList: true,
- PaintRequestList: false,
- Plugin: false,
- PluginArray: false,
- SVGLengthList: false,
- SVGNumberList: false,
- SVGPathSegList: false,
- SVGPointList: false,
- SVGStringList: false,
- SVGTransformList: false,
- SourceBufferList: false,
- StyleSheetList: true, // TODO: Not spec compliant, should be false.
- TextTrackCueList: false,
- TextTrackList: false,
- TouchList: false
- };
- for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
- var NAME = collections[i];
- var explicit = DOMIterables[NAME];
- var Collection = global[NAME];
- var proto = Collection && Collection.prototype;
- var key;
- if (proto) {
- if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
- if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
- Iterators[NAME] = ArrayValues;
- if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
- }
- }
- /***/ }),
- /***/ "b0c5":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var regexpExec = __webpack_require__("520a");
- __webpack_require__("5ca1")({
- target: 'RegExp',
- proto: true,
- forced: regexpExec !== /./.exec
- }, {
- exec: regexpExec
- });
- /***/ }),
- /***/ "be13":
- /***/ (function(module, exports) {
- // 7.2.1 RequireObjectCoercible(argument)
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
- /***/ }),
- /***/ "c366":
- /***/ (function(module, exports, __webpack_require__) {
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__("6821");
- var toLength = __webpack_require__("9def");
- var toAbsoluteIndex = __webpack_require__("77f1");
- module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
- /***/ }),
- /***/ "c649":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return insertNodeAt; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return camelize; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return console; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return removeNode; });
- /* harmony import */ var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a481");
- /* 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__);
- function getConsole() {
- if (typeof window !== "undefined") {
- return window.console;
- }
- return global.console;
- }
- var console = getConsole();
- function cached(fn) {
- var cache = Object.create(null);
- return function cachedFn(str) {
- var hit = cache[str];
- return hit || (cache[str] = fn(str));
- };
- }
- var regex = /-(\w)/g;
- var camelize = cached(function (str) {
- return str.replace(regex, function (_, c) {
- return c ? c.toUpperCase() : "";
- });
- });
- function removeNode(node) {
- if (node.parentElement !== null) {
- node.parentElement.removeChild(node);
- }
- }
- function insertNodeAt(fatherNode, node, position) {
- var refNode = position === 0 ? fatherNode.children[0] : fatherNode.children[position - 1].nextSibling;
- fatherNode.insertBefore(node, refNode);
- }
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
- /***/ }),
- /***/ "c69a":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
- return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "c8ba":
- /***/ (function(module, exports) {
- var g;
- // This works in non-strict mode
- g = (function() {
- return this;
- })();
- try {
- // This works if eval is allowed (see CSP)
- g = g || new Function("return this")();
- } catch (e) {
- // This works if the window reference is available
- if (typeof window === "object") g = window;
- }
- // g can still be undefined, but nothing to do about it...
- // We return undefined, instead of nothing here, so it's
- // easier to handle this case. if(!global) { ...}
- module.exports = g;
- /***/ }),
- /***/ "ca5a":
- /***/ (function(module, exports) {
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
- /***/ }),
- /***/ "cadf":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var addToUnscopables = __webpack_require__("9c6c");
- var step = __webpack_require__("d53b");
- var Iterators = __webpack_require__("84f2");
- var toIObject = __webpack_require__("6821");
- // 22.1.3.4 Array.prototype.entries()
- // 22.1.3.13 Array.prototype.keys()
- // 22.1.3.29 Array.prototype.values()
- // 22.1.3.30 Array.prototype[@@iterator]()
- module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) {
- this._t = toIObject(iterated); // target
- this._i = 0; // next index
- this._k = kind; // kind
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
- }, function () {
- var O = this._t;
- var kind = this._k;
- var index = this._i++;
- if (!O || index >= O.length) {
- this._t = undefined;
- return step(1);
- }
- if (kind == 'keys') return step(0, index);
- if (kind == 'values') return step(0, O[index]);
- return step(0, [index, O[index]]);
- }, 'values');
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
- Iterators.Arguments = Iterators.Array;
- addToUnscopables('keys');
- addToUnscopables('values');
- addToUnscopables('entries');
- /***/ }),
- /***/ "cb7c":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
- /***/ }),
- /***/ "ce10":
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__("69a8");
- var toIObject = __webpack_require__("6821");
- var arrayIndexOf = __webpack_require__("c366")(false);
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
- /***/ }),
- /***/ "d2c8":
- /***/ (function(module, exports, __webpack_require__) {
- // helper for String#{startsWith, endsWith, includes}
- var isRegExp = __webpack_require__("aae3");
- var defined = __webpack_require__("be13");
- module.exports = function (that, searchString, NAME) {
- if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
- return String(defined(that));
- };
- /***/ }),
- /***/ "d3f4":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
- /***/ }),
- /***/ "d53b":
- /***/ (function(module, exports) {
- module.exports = function (done, value) {
- return { value: value, done: !!done };
- };
- /***/ }),
- /***/ "d8e8":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
- /***/ }),
- /***/ "e11e":
- /***/ (function(module, exports) {
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
- /***/ }),
- /***/ "f559":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 21.1.3.18 String.prototype.startsWith(searchString [, position ])
- var $export = __webpack_require__("5ca1");
- var toLength = __webpack_require__("9def");
- var context = __webpack_require__("d2c8");
- var STARTS_WITH = 'startsWith';
- var $startsWith = ''[STARTS_WITH];
- $export($export.P + $export.F * __webpack_require__("5147")(STARTS_WITH), 'String', {
- startsWith: function startsWith(searchString /* , position = 0 */) {
- var that = context(this, searchString, STARTS_WITH);
- var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length));
- var search = String(searchString);
- return $startsWith
- ? $startsWith.call(that, search, index)
- : that.slice(index, index + search.length) === search;
- }
- });
- /***/ }),
- /***/ "f6fd":
- /***/ (function(module, exports) {
- // document.currentScript polyfill by Adam Miller
- // MIT license
- (function(document){
- var currentScript = "currentScript",
- scripts = document.getElementsByTagName('script'); // Live NodeList collection
- // If browser needs currentScript polyfill, add get currentScript() to the document object
- if (!(currentScript in document)) {
- Object.defineProperty(document, currentScript, {
- get: function(){
- // IE 6-10 supports script readyState
- // IE 10+ support stack trace
- try { throw new Error(); }
- catch (err) {
- // Find the second match for the "at" string to get file src url from stack.
- // Specifically works with the format of stack traces in IE.
- var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
- // For all scripts on the page, if src matches or if ready state is interactive, return the script tag
- for(i in scripts){
- if(scripts[i].src == res || scripts[i].readyState == "interactive"){
- return scripts[i];
- }
- }
- // If no match, return null
- return null;
- }
- }
- });
- }
- })(document);
- /***/ }),
- /***/ "f751":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.3.1 Object.assign(target, source)
- var $export = __webpack_require__("5ca1");
- $export($export.S + $export.F, 'Object', { assign: __webpack_require__("7333") });
- /***/ }),
- /***/ "fa5b":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
- /***/ }),
- /***/ "fab2":
- /***/ (function(module, exports, __webpack_require__) {
- var document = __webpack_require__("7726").document;
- module.exports = document && document.documentElement;
- /***/ }),
- /***/ "fb15":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- // ESM COMPAT FLAG
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
- // This file is imported into lib/wc client bundles.
- if (typeof window !== 'undefined') {
- if (true) {
- __webpack_require__("f6fd")
- }
- var setPublicPath_i
- if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
- __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line
- }
- }
- // Indicate to webpack that this file can be concatenated
- /* harmony default export */ var setPublicPath = (null);
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.assign.js
- var es6_object_assign = __webpack_require__("f751");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.starts-with.js
- var es6_string_starts_with = __webpack_require__("f559");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
- var web_dom_iterable = __webpack_require__("ac6a");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
- var es6_array_iterator = __webpack_require__("cadf");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
- var es6_object_keys = __webpack_require__("456d");
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
- function _arrayWithHoles(arr) {
- if (Array.isArray(arr)) return arr;
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
- function _iterableToArrayLimit(arr, i) {
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
- var _arr = [];
- var _n = true;
- var _d = false;
- var _e = undefined;
- try {
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
- _arr.push(_s.value);
- if (i && _arr.length === i) break;
- }
- } catch (err) {
- _d = true;
- _e = err;
- } finally {
- try {
- if (!_n && _i["return"] != null) _i["return"]();
- } finally {
- if (_d) throw _e;
- }
- }
- return _arr;
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
- function _arrayLikeToArray(arr, len) {
- if (len == null || len > arr.length) len = arr.length;
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
- arr2[i] = arr[i];
- }
- return arr2;
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
- function _unsupportedIterableToArray(o, minLen) {
- if (!o) return;
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
- var n = Object.prototype.toString.call(o).slice(8, -1);
- if (n === "Object" && o.constructor) n = o.constructor.name;
- if (n === "Map" || n === "Set") return Array.from(o);
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
- function _nonIterableRest() {
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
- function _slicedToArray(arr, i) {
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
- }
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js
- var es7_array_includes = __webpack_require__("6762");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js
- var es6_string_includes = __webpack_require__("2fdb");
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
- function _arrayWithoutHoles(arr) {
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
- function _iterableToArray(iter) {
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
- function _nonIterableSpread() {
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
- function _toConsumableArray(arr) {
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
- }
- // EXTERNAL MODULE: external {"commonjs":"sortablejs","commonjs2":"sortablejs","amd":"sortablejs","root":"Sortable"}
- var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_ = __webpack_require__("a352");
- var external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_);
- // EXTERNAL MODULE: ./src/util/helper.js
- var helper = __webpack_require__("c649");
- // CONCATENATED MODULE: ./src/vuedraggable.js
- function buildAttribute(object, propName, value) {
- if (value === undefined) {
- return object;
- }
- object = object || {};
- object[propName] = value;
- return object;
- }
- function computeVmIndex(vnodes, element) {
- return vnodes.map(function (elt) {
- return elt.elm;
- }).indexOf(element);
- }
- function _computeIndexes(slots, children, isTransition, footerOffset) {
- if (!slots) {
- return [];
- }
- var elmFromNodes = slots.map(function (elt) {
- return elt.elm;
- });
- var footerIndex = children.length - footerOffset;
- var rawIndexes = _toConsumableArray(children).map(function (elt, idx) {
- return idx >= footerIndex ? elmFromNodes.length : elmFromNodes.indexOf(elt);
- });
- return isTransition ? rawIndexes.filter(function (ind) {
- return ind !== -1;
- }) : rawIndexes;
- }
- function emit(evtName, evtData) {
- var _this = this;
- this.$nextTick(function () {
- return _this.$emit(evtName.toLowerCase(), evtData);
- });
- }
- function delegateAndEmit(evtName) {
- var _this2 = this;
- return function (evtData) {
- if (_this2.realList !== null) {
- _this2["onDrag" + evtName](evtData);
- }
- emit.call(_this2, evtName, evtData);
- };
- }
- function isTransitionName(name) {
- return ["transition-group", "TransitionGroup"].includes(name);
- }
- function vuedraggable_isTransition(slots) {
- if (!slots || slots.length !== 1) {
- return false;
- }
- var _slots = _slicedToArray(slots, 1),
- componentOptions = _slots[0].componentOptions;
- if (!componentOptions) {
- return false;
- }
- return isTransitionName(componentOptions.tag);
- }
- function getSlot(slot, scopedSlot, key) {
- return slot[key] || (scopedSlot[key] ? scopedSlot[key]() : undefined);
- }
- function computeChildrenAndOffsets(children, slot, scopedSlot) {
- var headerOffset = 0;
- var footerOffset = 0;
- var header = getSlot(slot, scopedSlot, "header");
- if (header) {
- headerOffset = header.length;
- children = children ? [].concat(_toConsumableArray(header), _toConsumableArray(children)) : _toConsumableArray(header);
- }
- var footer = getSlot(slot, scopedSlot, "footer");
- if (footer) {
- footerOffset = footer.length;
- children = children ? [].concat(_toConsumableArray(children), _toConsumableArray(footer)) : _toConsumableArray(footer);
- }
- return {
- children: children,
- headerOffset: headerOffset,
- footerOffset: footerOffset
- };
- }
- function getComponentAttributes($attrs, componentData) {
- var attributes = null;
- var update = function update(name, value) {
- attributes = buildAttribute(attributes, name, value);
- };
- var attrs = Object.keys($attrs).filter(function (key) {
- return key === "id" || key.startsWith("data-");
- }).reduce(function (res, key) {
- res[key] = $attrs[key];
- return res;
- }, {});
- update("attrs", attrs);
- if (!componentData) {
- return attributes;
- }
- var on = componentData.on,
- props = componentData.props,
- componentDataAttrs = componentData.attrs;
- update("on", on);
- update("props", props);
- Object.assign(attributes.attrs, componentDataAttrs);
- return attributes;
- }
- var eventsListened = ["Start", "Add", "Remove", "Update", "End"];
- var eventsToEmit = ["Choose", "Unchoose", "Sort", "Filter", "Clone"];
- var readonlyProperties = ["Move"].concat(eventsListened, eventsToEmit).map(function (evt) {
- return "on" + evt;
- });
- var draggingElement = null;
- var props = {
- options: Object,
- list: {
- type: Array,
- required: false,
- default: null
- },
- value: {
- type: Array,
- required: false,
- default: null
- },
- noTransitionOnDrag: {
- type: Boolean,
- default: false
- },
- clone: {
- type: Function,
- default: function _default(original) {
- return original;
- }
- },
- element: {
- type: String,
- default: "div"
- },
- tag: {
- type: String,
- default: null
- },
- move: {
- type: Function,
- default: null
- },
- componentData: {
- type: Object,
- required: false,
- default: null
- }
- };
- var draggableComponent = {
- name: "draggable",
- inheritAttrs: false,
- props: props,
- data: function data() {
- return {
- transitionMode: false,
- noneFunctionalComponentMode: false
- };
- },
- render: function render(h) {
- var slots = this.$slots.default;
- this.transitionMode = vuedraggable_isTransition(slots);
- var _computeChildrenAndOf = computeChildrenAndOffsets(slots, this.$slots, this.$scopedSlots),
- children = _computeChildrenAndOf.children,
- headerOffset = _computeChildrenAndOf.headerOffset,
- footerOffset = _computeChildrenAndOf.footerOffset;
- this.headerOffset = headerOffset;
- this.footerOffset = footerOffset;
- var attributes = getComponentAttributes(this.$attrs, this.componentData);
- return h(this.getTag(), attributes, children);
- },
- created: function created() {
- if (this.list !== null && this.value !== null) {
- helper["b" /* console */].error("Value and list props are mutually exclusive! Please set one or another.");
- }
- if (this.element !== "div") {
- 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");
- }
- if (this.options !== undefined) {
- 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");
- }
- },
- mounted: function mounted() {
- var _this3 = this;
- this.noneFunctionalComponentMode = this.getTag().toLowerCase() !== this.$el.nodeName.toLowerCase() && !this.getIsFunctional();
- if (this.noneFunctionalComponentMode && this.transitionMode) {
- throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));
- }
- var optionsAdded = {};
- eventsListened.forEach(function (elt) {
- optionsAdded["on" + elt] = delegateAndEmit.call(_this3, elt);
- });
- eventsToEmit.forEach(function (elt) {
- optionsAdded["on" + elt] = emit.bind(_this3, elt);
- });
- var attributes = Object.keys(this.$attrs).reduce(function (res, key) {
- res[Object(helper["a" /* camelize */])(key)] = _this3.$attrs[key];
- return res;
- }, {});
- var options = Object.assign({}, this.options, attributes, optionsAdded, {
- onMove: function onMove(evt, originalEvent) {
- return _this3.onDragMove(evt, originalEvent);
- }
- });
- !("draggable" in options) && (options.draggable = ">*");
- this._sortable = new external_commonjs_sortablejs_commonjs2_sortablejs_amd_sortablejs_root_Sortable_default.a(this.rootContainer, options);
- this.computeIndexes();
- },
- beforeDestroy: function beforeDestroy() {
- if (this._sortable !== undefined) this._sortable.destroy();
- },
- computed: {
- rootContainer: function rootContainer() {
- return this.transitionMode ? this.$el.children[0] : this.$el;
- },
- realList: function realList() {
- return this.list ? this.list : this.value;
- }
- },
- watch: {
- options: {
- handler: function handler(newOptionValue) {
- this.updateOptions(newOptionValue);
- },
- deep: true
- },
- $attrs: {
- handler: function handler(newOptionValue) {
- this.updateOptions(newOptionValue);
- },
- deep: true
- },
- realList: function realList() {
- this.computeIndexes();
- }
- },
- methods: {
- getIsFunctional: function getIsFunctional() {
- var fnOptions = this._vnode.fnOptions;
- return fnOptions && fnOptions.functional;
- },
- getTag: function getTag() {
- return this.tag || this.element;
- },
- updateOptions: function updateOptions(newOptionValue) {
- for (var property in newOptionValue) {
- var value = Object(helper["a" /* camelize */])(property);
- if (readonlyProperties.indexOf(value) === -1) {
- this._sortable.option(value, newOptionValue[property]);
- }
- }
- },
- getChildrenNodes: function getChildrenNodes() {
- if (this.noneFunctionalComponentMode) {
- return this.$children[0].$slots.default;
- }
- var rawNodes = this.$slots.default;
- return this.transitionMode ? rawNodes[0].child.$slots.default : rawNodes;
- },
- computeIndexes: function computeIndexes() {
- var _this4 = this;
- this.$nextTick(function () {
- _this4.visibleIndexes = _computeIndexes(_this4.getChildrenNodes(), _this4.rootContainer.children, _this4.transitionMode, _this4.footerOffset);
- });
- },
- getUnderlyingVm: function getUnderlyingVm(htmlElt) {
- var index = computeVmIndex(this.getChildrenNodes() || [], htmlElt);
- if (index === -1) {
- //Edge case during move callback: related element might be
- //an element different from collection
- return null;
- }
- var element = this.realList[index];
- return {
- index: index,
- element: element
- };
- },
- getUnderlyingPotencialDraggableComponent: function getUnderlyingPotencialDraggableComponent(_ref) {
- var vue = _ref.__vue__;
- if (!vue || !vue.$options || !isTransitionName(vue.$options._componentTag)) {
- if (!("realList" in vue) && vue.$children.length === 1 && "realList" in vue.$children[0]) return vue.$children[0];
- return vue;
- }
- return vue.$parent;
- },
- emitChanges: function emitChanges(evt) {
- var _this5 = this;
- this.$nextTick(function () {
- _this5.$emit("change", evt);
- });
- },
- alterList: function alterList(onList) {
- if (this.list) {
- onList(this.list);
- return;
- }
- var newList = _toConsumableArray(this.value);
- onList(newList);
- this.$emit("input", newList);
- },
- spliceList: function spliceList() {
- var _arguments = arguments;
- var spliceList = function spliceList(list) {
- return list.splice.apply(list, _toConsumableArray(_arguments));
- };
- this.alterList(spliceList);
- },
- updatePosition: function updatePosition(oldIndex, newIndex) {
- var updatePosition = function updatePosition(list) {
- return list.splice(newIndex, 0, list.splice(oldIndex, 1)[0]);
- };
- this.alterList(updatePosition);
- },
- getRelatedContextFromMoveEvent: function getRelatedContextFromMoveEvent(_ref2) {
- var to = _ref2.to,
- related = _ref2.related;
- var component = this.getUnderlyingPotencialDraggableComponent(to);
- if (!component) {
- return {
- component: component
- };
- }
- var list = component.realList;
- var context = {
- list: list,
- component: component
- };
- if (to !== related && list && component.getUnderlyingVm) {
- var destination = component.getUnderlyingVm(related);
- if (destination) {
- return Object.assign(destination, context);
- }
- }
- return context;
- },
- getVmIndex: function getVmIndex(domIndex) {
- var indexes = this.visibleIndexes;
- var numberIndexes = indexes.length;
- return domIndex > numberIndexes - 1 ? numberIndexes : indexes[domIndex];
- },
- getComponent: function getComponent() {
- return this.$slots.default[0].componentInstance;
- },
- resetTransitionData: function resetTransitionData(index) {
- if (!this.noTransitionOnDrag || !this.transitionMode) {
- return;
- }
- var nodes = this.getChildrenNodes();
- nodes[index].data = null;
- var transitionContainer = this.getComponent();
- transitionContainer.children = [];
- transitionContainer.kept = undefined;
- },
- onDragStart: function onDragStart(evt) {
- this.context = this.getUnderlyingVm(evt.item);
- evt.item._underlying_vm_ = this.clone(this.context.element);
- draggingElement = evt.item;
- },
- onDragAdd: function onDragAdd(evt) {
- var element = evt.item._underlying_vm_;
- if (element === undefined) {
- return;
- }
- Object(helper["d" /* removeNode */])(evt.item);
- var newIndex = this.getVmIndex(evt.newIndex);
- this.spliceList(newIndex, 0, element);
- this.computeIndexes();
- var added = {
- element: element,
- newIndex: newIndex
- };
- this.emitChanges({
- added: added
- });
- },
- onDragRemove: function onDragRemove(evt) {
- Object(helper["c" /* insertNodeAt */])(this.rootContainer, evt.item, evt.oldIndex);
- if (evt.pullMode === "clone") {
- Object(helper["d" /* removeNode */])(evt.clone);
- return;
- }
- var oldIndex = this.context.index;
- this.spliceList(oldIndex, 1);
- var removed = {
- element: this.context.element,
- oldIndex: oldIndex
- };
- this.resetTransitionData(oldIndex);
- this.emitChanges({
- removed: removed
- });
- },
- onDragUpdate: function onDragUpdate(evt) {
- Object(helper["d" /* removeNode */])(evt.item);
- Object(helper["c" /* insertNodeAt */])(evt.from, evt.item, evt.oldIndex);
- var oldIndex = this.context.index;
- var newIndex = this.getVmIndex(evt.newIndex);
- this.updatePosition(oldIndex, newIndex);
- var moved = {
- element: this.context.element,
- oldIndex: oldIndex,
- newIndex: newIndex
- };
- this.emitChanges({
- moved: moved
- });
- },
- updateProperty: function updateProperty(evt, propertyName) {
- evt.hasOwnProperty(propertyName) && (evt[propertyName] += this.headerOffset);
- },
- computeFutureIndex: function computeFutureIndex(relatedContext, evt) {
- if (!relatedContext.element) {
- return 0;
- }
- var domChildren = _toConsumableArray(evt.to.children).filter(function (el) {
- return el.style["display"] !== "none";
- });
- var currentDOMIndex = domChildren.indexOf(evt.related);
- var currentIndex = relatedContext.component.getVmIndex(currentDOMIndex);
- var draggedInList = domChildren.indexOf(draggingElement) !== -1;
- return draggedInList || !evt.willInsertAfter ? currentIndex : currentIndex + 1;
- },
- onDragMove: function onDragMove(evt, originalEvent) {
- var onMove = this.move;
- if (!onMove || !this.realList) {
- return true;
- }
- var relatedContext = this.getRelatedContextFromMoveEvent(evt);
- var draggedContext = this.context;
- var futureIndex = this.computeFutureIndex(relatedContext, evt);
- Object.assign(draggedContext, {
- futureIndex: futureIndex
- });
- var sendEvt = Object.assign({}, evt, {
- relatedContext: relatedContext,
- draggedContext: draggedContext
- });
- return onMove(sendEvt, originalEvent);
- },
- onDragEnd: function onDragEnd() {
- this.computeIndexes();
- draggingElement = null;
- }
- }
- };
- if (typeof window !== "undefined" && "Vue" in window) {
- window.Vue.component("draggable", draggableComponent);
- }
- /* harmony default export */ var vuedraggable = (draggableComponent);
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (vuedraggable);
- /***/ })
- /******/ })["default"];
- //# sourceMappingURL=vuedraggable.common.js.map
|