dgtek-portal-polygons-editor
Version:
Package for DGtek provisioning portal.
20,603 lines • 631 kB
JavaScript
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");
/******/ })
/************************************************************************/
/******/ ({
/***/ "00ee":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("b622");
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var test = {};
test[TO_STRING_TAG] = 'z';
module.exports = String(test) === '[object z]';
/***/ }),
/***/ "0366":
/***/ (function(module, exports, __webpack_require__) {
var aFunction = __webpack_require__("1c0b");
// optional / simple context binding
module.exports = function (fn, that, length) {
aFunction(fn);
if (that === undefined) return fn;
switch (length) {
case 0: return function () {
return fn.call(that);
};
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);
};
};
/***/ }),
/***/ "0481":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var flattenIntoArray = __webpack_require__("a2bf");
var toObject = __webpack_require__("7b0b");
var toLength = __webpack_require__("50c4");
var toInteger = __webpack_require__("a691");
var arraySpeciesCreate = __webpack_require__("65f0");
// `Array.prototype.flat` method
// https://github.com/tc39/proposal-flatMap
$({ target: 'Array', proto: true }, {
flat: function flat(/* depthArg = 1 */) {
var depthArg = arguments.length ? arguments[0] : undefined;
var O = toObject(this);
var sourceLen = toLength(O.length);
var A = arraySpeciesCreate(O, 0);
A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(depthArg));
return A;
}
});
/***/ }),
/***/ "0538":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var aFunction = __webpack_require__("1c0b");
var isObject = __webpack_require__("861d");
var slice = [].slice;
var factories = {};
var construct = function (C, argsLength, args) {
if (!(argsLength in factories)) {
for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';
// eslint-disable-next-line no-new-func
factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');
} return factories[argsLength](C, args);
};
// `Function.prototype.bind` method implementation
// https://tc39.github.io/ecma262/#sec-function.prototype.bind
module.exports = Function.bind || function bind(that /* , ...args */) {
var fn = aFunction(this);
var partArgs = slice.call(arguments, 1);
var boundFunction = function bound(/* args... */) {
var args = partArgs.concat(slice.call(arguments));
return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);
};
if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;
return boundFunction;
};
/***/ }),
/***/ "057f":
/***/ (function(module, exports, __webpack_require__) {
var toIndexedObject = __webpack_require__("fc6a");
var nativeGetOwnPropertyNames = __webpack_require__("241c").f;
var toString = {}.toString;
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function (it) {
try {
return nativeGetOwnPropertyNames(it);
} catch (error) {
return windowNames.slice();
}
};
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
module.exports.f = function getOwnPropertyNames(it) {
return windowNames && toString.call(it) == '[object Window]'
? getWindowNames(it)
: nativeGetOwnPropertyNames(toIndexedObject(it));
};
/***/ }),
/***/ "06cf":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("83ab");
var propertyIsEnumerableModule = __webpack_require__("d1e7");
var createPropertyDescriptor = __webpack_require__("5c6c");
var toIndexedObject = __webpack_require__("fc6a");
var toPrimitive = __webpack_require__("c04e");
var has = __webpack_require__("5135");
var IE8_DOM_DEFINE = __webpack_require__("0cfb");
var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
exports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject(O);
P = toPrimitive(P, true);
if (IE8_DOM_DEFINE) try {
return nativeGetOwnPropertyDescriptor(O, P);
} catch (error) { /* empty */ }
if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);
};
/***/ }),
/***/ "07ac":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var $values = __webpack_require__("6f53").values;
// `Object.values` method
// https://tc39.github.io/ecma262/#sec-object.values
$({ target: 'Object', stat: true }, {
values: function values(O) {
return $values(O);
}
});
/***/ }),
/***/ "0bc6":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "0cfb":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("83ab");
var fails = __webpack_require__("d039");
var createElement = __webpack_require__("cc12");
// Thank's IE8 for his funny defineProperty
module.exports = !DESCRIPTORS && !fails(function () {
return Object.defineProperty(createElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
/***/ }),
/***/ "1148":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var toInteger = __webpack_require__("a691");
var requireObjectCoercible = __webpack_require__("1d80");
// `String.prototype.repeat` method implementation
// https://tc39.github.io/ecma262/#sec-string.prototype.repeat
module.exports = ''.repeat || function repeat(count) {
var str = String(requireObjectCoercible(this));
var result = '';
var n = toInteger(count);
if (n < 0 || n == Infinity) throw RangeError('Wrong number of repetitions');
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
return result;
};
/***/ }),
/***/ "1276":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
var isRegExp = __webpack_require__("44e7");
var anObject = __webpack_require__("825a");
var requireObjectCoercible = __webpack_require__("1d80");
var speciesConstructor = __webpack_require__("4840");
var advanceStringIndex = __webpack_require__("8aa5");
var toLength = __webpack_require__("50c4");
var callRegExpExec = __webpack_require__("14c3");
var regexpExec = __webpack_require__("9263");
var fails = __webpack_require__("d039");
var arrayPush = [].push;
var min = Math.min;
var MAX_UINT32 = 0xFFFFFFFF;
// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });
// @@split logic
fixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {
var internalSplit;
if (
'abbc'.split(/(b)*/)[1] == 'c' ||
'test'.split(/(?:)/, -1).length != 4 ||
'ab'.split(/(?:ab)*/).length != 2 ||
'.'.split(/(.?)(.?)/).length != 4 ||
'.'.split(/()()/).length > 1 ||
''.split(/.?/).length
) {
// based on es5-shim implementation, need to rework it
internalSplit = function (separator, limit) {
var string = String(requireObjectCoercible(this));
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
if (lim === 0) return [];
if (separator === undefined) return [string];
// If `separator` is not a regex, use native split
if (!isRegExp(separator)) {
return nativeSplit.call(string, separator, lim);
}
var output = [];
var flags = (separator.ignoreCase ? 'i' : '') +
(separator.multiline ? 'm' : '') +
(separator.unicode ? 'u' : '') +
(separator.sticky ? 'y' : '');
var lastLastIndex = 0;
// Make `global` and avoid `lastIndex` issues by working with a copy
var separatorCopy = new RegExp(separator.source, flags + 'g');
var match, lastIndex, lastLength;
while (match = regexpExec.call(separatorCopy, string)) {
lastIndex = separatorCopy.lastIndex;
if (lastIndex > lastLastIndex) {
output.push(string.slice(lastLastIndex, match.index));
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
lastLength = match[0].length;
lastLastIndex = lastIndex;
if (output.length >= lim) break;
}
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
}
if (lastLastIndex === string.length) {
if (lastLength || !separatorCopy.test('')) output.push('');
} else output.push(string.slice(lastLastIndex));
return output.length > lim ? output.slice(0, lim) : output;
};
// Chakra, V8
} else if ('0'.split(undefined, 0).length) {
internalSplit = function (separator, limit) {
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
};
} else internalSplit = nativeSplit;
return [
// `String.prototype.split` method
// https://tc39.github.io/ecma262/#sec-string.prototype.split
function split(separator, limit) {
var O = requireObjectCoercible(this);
var splitter = separator == undefined ? undefined : separator[SPLIT];
return splitter !== undefined
? splitter.call(separator, O, limit)
: internalSplit.call(String(O), separator, limit);
},
// `RegExp.prototype[@@split]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
//
// NOTE: This cannot be properly polyfilled in engines that don't support
// the 'y' flag.
function (regexp, limit) {
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);
if (res.done) return res.value;
var rx = anObject(regexp);
var S = String(this);
var C = speciesConstructor(rx, RegExp);
var unicodeMatching = rx.unicode;
var flags = (rx.ignoreCase ? 'i' : '') +
(rx.multiline ? 'm' : '') +
(rx.unicode ? 'u' : '') +
(SUPPORTS_Y ? 'y' : 'g');
// ^(? + rx + ) is needed, in combination with some S slicing, to
// simulate the 'y' flag.
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
if (lim === 0) return [];
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
var p = 0;
var q = 0;
var A = [];
while (q < S.length) {
splitter.lastIndex = SUPPORTS_Y ? q : 0;
var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
var e;
if (
z === null ||
(e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
) {
q = advanceStringIndex(S, q, unicodeMatching);
} else {
A.push(S.slice(p, q));
if (A.length === lim) return A;
for (var i = 1; i <= z.length - 1; i++) {
A.push(z[i]);
if (A.length === lim) return A;
}
q = p = e;
}
}
A.push(S.slice(p));
return A;
}
];
}, !SUPPORTS_Y);
/***/ }),
/***/ "129f":
/***/ (function(module, exports) {
// `SameValue` abstract operation
// https://tc39.github.io/ecma262/#sec-samevalue
module.exports = Object.is || function is(x, y) {
// eslint-disable-next-line no-self-compare
return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
};
/***/ }),
/***/ "13d5":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $reduce = __webpack_require__("d58f").left;
var arrayMethodIsStrict = __webpack_require__("a640");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var STRICT_METHOD = arrayMethodIsStrict('reduce');
var USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });
// `Array.prototype.reduce` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduce
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
reduce: function reduce(callbackfn /* , initialValue */) {
return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/***/ "14c3":
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__("c6b6");
var regexpExec = __webpack_require__("9263");
// `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 TypeError('RegExp exec method returned something other than an Object or null');
}
return result;
}
if (classof(R) !== 'RegExp') {
throw TypeError('RegExp#exec called on incompatible receiver');
}
return regexpExec.call(R, S);
};
/***/ }),
/***/ "159b":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var DOMIterables = __webpack_require__("fdbc");
var forEach = __webpack_require__("17c2");
var createNonEnumerableProperty = __webpack_require__("9112");
for (var COLLECTION_NAME in DOMIterables) {
var Collection = global[COLLECTION_NAME];
var CollectionPrototype = Collection && Collection.prototype;
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
} catch (error) {
CollectionPrototype.forEach = forEach;
}
}
/***/ }),
/***/ "166a":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "17c2":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $forEach = __webpack_require__("b727").forEach;
var arrayMethodIsStrict = __webpack_require__("a640");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var STRICT_METHOD = arrayMethodIsStrict('forEach');
var USES_TO_LENGTH = arrayMethodUsesToLength('forEach');
// `Array.prototype.forEach` method implementation
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
} : [].forEach;
/***/ }),
/***/ "18a5":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var createHTML = __webpack_require__("857a");
var forcedStringHTMLMethod = __webpack_require__("af03");
// `String.prototype.anchor` method
// https://tc39.github.io/ecma262/#sec-string.prototype.anchor
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, {
anchor: function anchor(name) {
return createHTML(this, 'a', 'name', name);
}
});
/***/ }),
/***/ "19aa":
/***/ (function(module, exports) {
module.exports = function (it, Constructor, name) {
if (!(it instanceof Constructor)) {
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
} return it;
};
/***/ }),
/***/ "1b2c":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "1be4":
/***/ (function(module, exports, __webpack_require__) {
var getBuiltIn = __webpack_require__("d066");
module.exports = getBuiltIn('document', 'documentElement');
/***/ }),
/***/ "1c0b":
/***/ (function(module, exports) {
module.exports = function (it) {
if (typeof it != 'function') {
throw TypeError(String(it) + ' is not a function');
} return it;
};
/***/ }),
/***/ "1c7e":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("b622");
var ITERATOR = wellKnownSymbol('iterator');
var SAFE_CLOSING = false;
try {
var called = 0;
var iteratorWithReturn = {
next: function () {
return { done: !!called++ };
},
'return': function () {
SAFE_CLOSING = true;
}
};
iteratorWithReturn[ITERATOR] = function () {
return this;
};
// eslint-disable-next-line no-throw-literal
Array.from(iteratorWithReturn, function () { throw 2; });
} catch (error) { /* empty */ }
module.exports = function (exec, SKIP_CLOSING) {
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
var ITERATION_SUPPORT = false;
try {
var object = {};
object[ITERATOR] = function () {
return {
next: function () {
return { done: ITERATION_SUPPORT = true };
}
};
};
exec(object);
} catch (error) { /* empty */ }
return ITERATION_SUPPORT;
};
/***/ }),
/***/ "1cdc":
/***/ (function(module, exports, __webpack_require__) {
var userAgent = __webpack_require__("342f");
module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
/***/ }),
/***/ "1d80":
/***/ (function(module, exports) {
// `RequireObjectCoercible` abstract operation
// https://tc39.github.io/ecma262/#sec-requireobjectcoercible
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
/***/ }),
/***/ "1dde":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
var wellKnownSymbol = __webpack_require__("b622");
var V8_VERSION = __webpack_require__("2d00");
var SPECIES = wellKnownSymbol('species');
module.exports = function (METHOD_NAME) {
// We can't use this feature detection in V8 since it causes
// deoptimization and serious performance degradation
// https://github.com/zloirock/core-js/issues/677
return V8_VERSION >= 51 || !fails(function () {
var array = [];
var constructor = array.constructor = {};
constructor[SPECIES] = function () {
return { foo: 1 };
};
return array[METHOD_NAME](Boolean).foo !== 1;
});
};
/***/ }),
/***/ "20f6":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "2266":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("825a");
var isArrayIteratorMethod = __webpack_require__("e95a");
var toLength = __webpack_require__("50c4");
var bind = __webpack_require__("0366");
var getIteratorMethod = __webpack_require__("35a1");
var callWithSafeIterationClosing = __webpack_require__("9bdd");
var Result = function (stopped, result) {
this.stopped = stopped;
this.result = result;
};
var iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {
var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1);
var iterator, iterFn, index, length, result, next, step;
if (IS_ITERATOR) {
iterator = iterable;
} else {
iterFn = getIteratorMethod(iterable);
if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
// optimisation for array iterators
if (isArrayIteratorMethod(iterFn)) {
for (index = 0, length = toLength(iterable.length); length > index; index++) {
result = AS_ENTRIES
? boundFunction(anObject(step = iterable[index])[0], step[1])
: boundFunction(iterable[index]);
if (result && result instanceof Result) return result;
} return new Result(false);
}
iterator = iterFn.call(iterable);
}
next = iterator.next;
while (!(step = next.call(iterator)).done) {
result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);
if (typeof result == 'object' && result && result instanceof Result) return result;
} return new Result(false);
};
iterate.stop = function (result) {
return new Result(true, result);
};
/***/ }),
/***/ "23cb":
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__("a691");
var max = Math.max;
var min = Math.min;
// Helper for a popular repeating case of the spec:
// Let integer be ? ToInteger(index).
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
module.exports = function (index, length) {
var integer = toInteger(index);
return integer < 0 ? max(integer + length, 0) : min(integer, length);
};
/***/ }),
/***/ "23e7":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
var createNonEnumerableProperty = __webpack_require__("9112");
var redefine = __webpack_require__("6eeb");
var setGlobal = __webpack_require__("ce4e");
var copyConstructorProperties = __webpack_require__("e893");
var isForced = __webpack_require__("94ca");
/*
options.target - name of the target object
options.global - target is the global object
options.stat - export as static methods of target
options.proto - export as prototype methods of target
options.real - real prototype method for the `pure` version
options.forced - export even if the native feature is available
options.bind - bind methods to the target, required for the `pure` version
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
options.unsafe - use the simple assignment of property instead of delete + defineProperty
options.sham - add a flag to not completely full polyfills
options.enumerable - export as enumerable property
options.noTargetGet - prevent calling a getter on target
*/
module.exports = function (options, source) {
var TARGET = options.target;
var GLOBAL = options.global;
var STATIC = options.stat;
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
if (GLOBAL) {
target = global;
} else if (STATIC) {
target = global[TARGET] || setGlobal(TARGET, {});
} else {
target = (global[TARGET] || {}).prototype;
}
if (target) for (key in source) {
sourceProperty = source[key];
if (options.noTargetGet) {
descriptor = getOwnPropertyDescriptor(target, key);
targetProperty = descriptor && descriptor.value;
} else targetProperty = target[key];
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
// contained in target
if (!FORCED && targetProperty !== undefined) {
if (typeof sourceProperty === typeof targetProperty) continue;
copyConstructorProperties(sourceProperty, targetProperty);
}
// add a flag to not completely full polyfills
if (options.sham || (targetProperty && targetProperty.sham)) {
createNonEnumerableProperty(sourceProperty, 'sham', true);
}
// extend global
redefine(target, key, sourceProperty, options);
}
};
/***/ }),
/***/ "241c":
/***/ (function(module, exports, __webpack_require__) {
var internalObjectKeys = __webpack_require__("ca84");
var enumBugKeys = __webpack_require__("7839");
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
// `Object.getOwnPropertyNames` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return internalObjectKeys(O, hiddenKeys);
};
/***/ }),
/***/ "2532":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var notARegExp = __webpack_require__("5a34");
var requireObjectCoercible = __webpack_require__("1d80");
var correctIsRegExpLogic = __webpack_require__("ab13");
// `String.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-string.prototype.includes
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
includes: function includes(searchString /* , position = 0 */) {
return !!~String(requireObjectCoercible(this))
.indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/***/ "25a8":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "25f0":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var redefine = __webpack_require__("6eeb");
var anObject = __webpack_require__("825a");
var fails = __webpack_require__("d039");
var flags = __webpack_require__("ad6d");
var TO_STRING = 'toString';
var RegExpPrototype = RegExp.prototype;
var nativeToString = RegExpPrototype[TO_STRING];
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
// FF44- RegExp#toString has a wrong name
var INCORRECT_NAME = nativeToString.name != TO_STRING;
// `RegExp.prototype.toString` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring
if (NOT_GENERIC || INCORRECT_NAME) {
redefine(RegExp.prototype, TO_STRING, function toString() {
var R = anObject(this);
var p = String(R.source);
var rf = R.flags;
var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);
return '/' + p + '/' + f;
}, { unsafe: true });
}
/***/ }),
/***/ "2626":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getBuiltIn = __webpack_require__("d066");
var definePropertyModule = __webpack_require__("9bf2");
var wellKnownSymbol = __webpack_require__("b622");
var DESCRIPTORS = __webpack_require__("83ab");
var SPECIES = wellKnownSymbol('species');
module.exports = function (CONSTRUCTOR_NAME) {
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
var defineProperty = definePropertyModule.f;
if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {
defineProperty(Constructor, SPECIES, {
configurable: true,
get: function () { return this; }
});
}
};
/***/ }),
/***/ "2b19":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var is = __webpack_require__("129f");
// `Object.is` method
// https://tc39.github.io/ecma262/#sec-object.is
$({ target: 'Object', stat: true }, {
is: is
});
/***/ }),
/***/ "2ca0":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
var toLength = __webpack_require__("50c4");
var notARegExp = __webpack_require__("5a34");
var requireObjectCoercible = __webpack_require__("1d80");
var correctIsRegExpLogic = __webpack_require__("ab13");
var IS_PURE = __webpack_require__("c430");
var nativeStartsWith = ''.startsWith;
var min = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
// https://github.com/zloirock/core-js/pull/702
var MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {
var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
return descriptor && !descriptor.writable;
}();
// `String.prototype.startsWith` method
// https://tc39.github.io/ecma262/#sec-string.prototype.startswith
$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
startsWith: function startsWith(searchString /* , position = 0 */) {
var that = String(requireObjectCoercible(this));
notARegExp(searchString);
var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));
var search = String(searchString);
return nativeStartsWith
? nativeStartsWith.call(that, search, index)
: that.slice(index, index + search.length) === search;
}
});
/***/ }),
/***/ "2cf4":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var fails = __webpack_require__("d039");
var classof = __webpack_require__("c6b6");
var bind = __webpack_require__("0366");
var html = __webpack_require__("1be4");
var createElement = __webpack_require__("cc12");
var IS_IOS = __webpack_require__("1cdc");
var location = global.location;
var set = global.setImmediate;
var clear = global.clearImmediate;
var process = global.process;
var MessageChannel = global.MessageChannel;
var Dispatch = global.Dispatch;
var counter = 0;
var queue = {};
var ONREADYSTATECHANGE = 'onreadystatechange';
var defer, channel, port;
var run = function (id) {
// eslint-disable-next-line no-prototype-builtins
if (queue.hasOwnProperty(id)) {
var fn = queue[id];
delete queue[id];
fn();
}
};
var runner = function (id) {
return function () {
run(id);
};
};
var listener = function (event) {
run(event.data);
};
var post = function (id) {
// old engines have not location.origin
global.postMessage(id + '', location.protocol + '//' + location.host);
};
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
if (!set || !clear) {
set = function setImmediate(fn) {
var args = [];
var i = 1;
while (arguments.length > i) args.push(arguments[i++]);
queue[++counter] = function () {
// eslint-disable-next-line no-new-func
(typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
};
defer(counter);
return counter;
};
clear = function clearImmediate(id) {
delete queue[id];
};
// Node.js 0.8-
if (classof(process) == 'process') {
defer = function (id) {
process.nextTick(runner(id));
};
// Sphere (JS game engine) Dispatch API
} else if (Dispatch && Dispatch.now) {
defer = function (id) {
Dispatch.now(runner(id));
};
// Browsers with MessageChannel, includes WebWorkers
// except iOS - https://github.com/zloirock/core-js/issues/624
} else if (MessageChannel && !IS_IOS) {
channel = new MessageChannel();
port = channel.port2;
channel.port1.onmessage = listener;
defer = bind(port.postMessage, port, 1);
// Browsers with postMessage, skip WebWorkers
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
} else if (
global.addEventListener &&
typeof postMessage == 'function' &&
!global.importScripts &&
!fails(post) &&
location.protocol !== 'file:'
) {
defer = post;
global.addEventListener('message', listener, false);
// IE8-
} else if (ONREADYSTATECHANGE in createElement('script')) {
defer = function (id) {
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
html.removeChild(this);
run(id);
};
};
// Rest old browsers
} else {
defer = function (id) {
setTimeout(runner(id), 0);
};
}
}
module.exports = {
set: set,
clear: clear
};
/***/ }),
/***/ "2d00":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var userAgent = __webpack_require__("342f");
var process = global.process;
var versions = process && process.versions;
var v8 = versions && versions.v8;
var match, version;
if (v8) {
match = v8.split('.');
version = match[0] + match[1];
} else if (userAgent) {
match = userAgent.match(/Edge\/(\d+)/);
if (!match || match[1] >= 74) {
match = userAgent.match(/Chrome\/(\d+)/);
if (match) version = match[1];
}
}
module.exports = version && +version;
/***/ }),
/***/ "3408":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "3410":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var fails = __webpack_require__("d039");
var toObject = __webpack_require__("7b0b");
var nativeGetPrototypeOf = __webpack_require__("e163");
var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
var FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });
// `Object.getPrototypeOf` method
// https://tc39.github.io/ecma262/#sec-object.getprototypeof
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {
getPrototypeOf: function getPrototypeOf(it) {
return nativeGetPrototypeOf(toObject(it));
}
});
/***/ }),
/***/ "342f":
/***/ (function(module, exports, __webpack_require__) {
var getBuiltIn = __webpack_require__("d066");
module.exports = getBuiltIn('navigator', 'userAgent') || '';
/***/ }),
/***/ "35a1":
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__("f5df");
var Iterators = __webpack_require__("3f8c");
var wellKnownSymbol = __webpack_require__("b622");
var ITERATOR = wellKnownSymbol('iterator');
module.exports = function (it) {
if (it != undefined) return it[ITERATOR]
|| it['@@iterator']
|| Iterators[classof(it)];
};
/***/ }),
/***/ "37e8":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("83ab");
var definePropertyModule = __webpack_require__("9bf2");
var anObject = __webpack_require__("825a");
var objectKeys = __webpack_require__("df75");
// `Object.defineProperties` method
// https://tc39.github.io/ecma262/#sec-object.defineproperties
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = objectKeys(Properties);
var length = keys.length;
var index = 0;
var key;
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
return O;
};
/***/ }),
/***/ "38cf":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var repeat = __webpack_require__("1148");
// `String.prototype.repeat` method
// https://tc39.github.io/ecma262/#sec-string.prototype.repeat
$({ target: 'String', proto: true }, {
repeat: repeat
});
/***/ }),
/***/ "3ad0":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "3bbe":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("861d");
module.exports = function (it) {
if (!isObject(it) && it !== null) {
throw TypeError("Can't set " + String(it) + ' as a prototype');
} return it;
};
/***/ }),
/***/ "3ca3":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var charAt = __webpack_require__("6547").charAt;
var InternalStateModule = __webpack_require__("69f3");
var defineIterator = __webpack_require__("7dd0");
var STRING_ITERATOR = 'String Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);
// `String.prototype[@@iterator]` method
// https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
defineIterator(String, 'String', function (iterated) {
setInternalState(this, {
type: STRING_ITERATOR,
string: String(iterated),
index: 0
});
// `%StringIteratorPrototype%.next` method
// https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
}, function next() {
var state = getInternalState(this);
var string = state.string;
var index = state.index;
var point;
if (index >= string.length) return { value: undefined, done: true };
point = charAt(string, index);
state.index += point.length;
return { value: point, done: false };
});
/***/ }),
/***/ "3ea3":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var sign = __webpack_require__("f748");
var abs = Math.abs;
var pow = Math.pow;
// `Math.cbrt` method
// https://tc39.github.io/ecma262/#sec-math.cbrt
$({ target: 'Math', stat: true }, {
cbrt: function cbrt(x) {
return sign(x = +x) * pow(abs(x), 1 / 3);
}
});
/***/ }),
/***/ "3f8c":
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
/***/ "4069":
/***/ (function(module, exports, __webpack_require__) {
// this method was added to unscopables after implementation
// in popular engines, so it's moved to a separate module
var addToUnscopables = __webpack_require__("44d2");
addToUnscopables('flat');
/***/ }),
/***/ "408a":
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__("c6b6");
// `thisNumberValue` abstract operation
// https://tc39.github.io/ecma262/#sec-thisnumbervalue
module.exports = function (value) {
if (typeof value != 'number' && classof(value) != 'Number') {
throw TypeError('Incorrect invocation');
}
return +value;
};
/***/ }),
/***/ "4160":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var forEach = __webpack_require__("17c2");
// `Array.prototype.forEach` method
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
forEach: forEach
});
/***/ }),
/***/ "428f":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
module.exports = global;
/***/ }),
/***/ "44ad":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
var classof = __webpack_require__("c6b6");
var split = ''.split;
// fallback for non-array-like ES3 and non-enumerable old V8 strings
module.exports = fails(function () {
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
// eslint-disable-next-line no-prototype-builtins
return !Object('z').propertyIsEnumerable(0);
}) ? function (it) {
return classof(it) == 'String' ? split.call(it, '') : Object(it);
} : Object;
/***/ }),
/***/ "44d2":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("b622");
var create = __webpack_require__("7c73");
var definePropertyModule = __webpack_require__("9bf2");
var UNSCOPABLES = wellKnownSymbol('unscopables');
var ArrayPrototype = Array.prototype;
// Array.prototype[@@unscopables]
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
if (ArrayPrototype[UNSCOPABLES] == undefined) {
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
configurable: true,
value: create(null)
});
}
// add a key to Array.prototype[@@unscopables]
module.exports = function (key) {
ArrayPrototype[UNSCOPABLES][key] = true;
};
/***/ }),
/***/ "44de":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
module.exports = function (a, b) {
var console = global.console;
if (console && console.error) {
arguments.length === 1 ? console.error(a) : console.error(a, b);
}
};
/***/ }),
/***/ "44e7":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("861d");
var classof = __webpack_require__("c6b6");
var wellKnownSymbol = __webpack_require__("b622");
var MATCH = wellKnownSymbol('match');
// `IsRegExp` abstract operation
// https://tc39.github.io/ecma262/#sec-isregexp
module.exports = function (it) {
var isRegExp;
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
};
/***/ }),
/***/ "45fc":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $some = __webpack_require__("b727").some;
var arrayMethodIsStrict = __webpack_require__("a640");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var STRICT_METHOD = arrayMethodIsStrict('some');
var USES_TO_LENGTH = arrayMethodUsesToLength('some');
// `Array.prototype.some` method
// https://tc39.github.io/ecma262/#sec-array.prototype.some
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
some: function some(callbackfn /* , thisArg */) {
return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/***/ "466d":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
var anObject = __webpack_require__("825a");
var toLength = __webpack_require__("50c4");
var requireObjectCoercible = __webpack_require__("1d80");
var advanceStringIndex = __webpack_require__("8aa5");
var regExpExec = __webpack_require__("14c3");
// @@match logic
fixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {
return [
// `String.prototype.match` method
// https://tc39.github.io/ecma262/#sec-string.prototype.match
function match(regexp) {
var O = requireObjectCoercible(this);
var matcher = regexp == undefined ? undefined : regexp[MATCH];
return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
},
// `RegExp.prototype[@@match]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
function (regexp) {
var res = maybeCallNative(nativeMatch, regexp, this);
if (res.done) return res.value;
var rx = anObject(regexp);
var S = String(this);
if (!rx.global) return regExpExec(rx, S);
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
var A = [];
var n = 0;
var result;
while ((result = regExpExec(rx, S)) !== null) {
var matchStr = String(result[0]);
A[n] = matchStr;
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
n++;
}
return n === 0 ? null : A;
}
];
});
/***/ }),
/***/ "4804":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "4840":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("825a");
var aFunction = __webpack_require__("1c0b");
var wellKnownSymbol = __webpack_require__("b622");
var SPECIES = wellKnownSymbol('species');
// `SpeciesConstructor` abstract operation
// https://tc39.github.io/ecma262/#sec-speciesconstructor
module.exports = function (O, defaultConstructor) {
var C = anObject(O).constructor;
var S;
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);
};
/***/ }),
/***/ "4930":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
// Chrome 38 Symbol has incorrect toString conversion
// eslint-disable-next-line no-undef
return !String(Symbol());
});
/***/ }),
/***/ "498a":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $trim = __webpack_require__("58a8").trim;
var forcedStringTrimMethod = __webpack_require__("c8d2");
// `String.prototype.trim` method
// https://tc39.github.io/ecma262/#sec-string.prototype.trim
$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
trim: function trim() {
return $trim(this);
}
});
/***/ }),
/***/ "4a7a":
/***/ (function(module, exports, __webpack_require__) {
!function(t,e){ true?module.exports=e():undefined}("undefined"!=typeof self?self:this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=8)}([function(t,e,n){var o=n(4),i=n(5),r=n(6);t.exports=function(t){return o(t)||i(t)||r()}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e,n){},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,n){"use strict";var o=n(2);n.n(o).a},function(t,e,n){"use strict";n.r(e);var o=n(0),i=n.n(o),r=n(1),s=n.n(r),a=n(3),l=n.n(a),c={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(t){var e=this;this.autoscroll&&t&&this.$nextTick((function(){return e.maybeAdjustScroll()}))}},methods:{maybeAdjustScroll:function(){var t,e=(null===(t=this.$refs.dropdownMenu)||void 0===t?void 0:t.children[this.typeAheadPointer])||!1;if(e){var n=this.getDropdownViewport(),o=e.getBoundingClientRect(),i=o.top,r=o.bottom,s=o.height;if(i<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(r>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-s)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},u={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}}},methods:{typeAheadUp:function(){for(var t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown:function(){for(var t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect:function(){var t=this.filteredOptions[this.typeAheadPointer];t&&this.select(t)}}},p={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(t){this.mutableLoading=t}},methods:{toggleLoading:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==t?!this.mutableLoading:t}}};function d(t,e,n,o,i,r,s,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:c}}var h={Deselect:d({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[e("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])}),[],!1,null,null,null).exports,OpenIndicator:d({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[e("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])}),[],!1,null,null,null).exports},f={inserted:function(t,e,n){var o=n.context;if(o.appendToBody){var i=o.$refs.toggle.getBoundingClientRect(),r=i.height,s=i.top,a=i.left,l=i.width,c=window.scrollX||window.pageXOffset,u=window.scrollY||window.pageYOffset;t.unbindPosition=o.calculatePosition(t,o,{width:l+"px",left:c+a+"px",top:u+s+r+"px"}),document.body.appendChild(t)}},unbind:function(t,e,n){n.context.appendToBody&&(t.unbindPosition&&"function"==typeof t.unbindPosition&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};var y=function(t){var e={};return Object.keys(t).sort().forEach((function(n){e[n]=t[n]})),JSON.stringify(e)},b=0;var g=function(){return++b};function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){l()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _={components:m({},h),directives:{appendToBody:f},mixins:[c,u,p],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(t){return t}},selectable:{type:Function,default:function(t){return!0}},getOptionLabel:{type:Function,default:function(t){return"object"===s()(t)?t.hasOwnProperty(this.label)?t[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(t),".\n")+"https://vue-select.org/api/props.html#getoptionlabel"):t}},getOptionKey:{type:Function,default:function(t){if("object"!==s()(t))return t;try{return t.hasOwnProperty("id")?t.id:y(t)}catch(e){return console.warn("[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.\nhttps://vue-select.org/api/props.html#getoptionkey",t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(t,e,n){return(e||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(t,e){var n=this;return t.filter((function(t){var o=n.getOptionLabel(t);return"number"==typeof o&&(o=o.toString()),n.filterBy(t,o,e)}))}},createOption:{type:Function,default:function(t){return"object"===s()(this.optionList[0])?l()({},this.label,t):t}},resetOnOptionsChange:{default:!1,validator:function(t){return["function","boolean"].includes(s()(t))}},clearSearchOnBlur:{type:Function,default:function(t){var e=t.clearSearchOnSelect,n=t.multiple;return e&&!n}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(t,e){return t}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(t,e,n){var o=n.width,i=n.top,r=n.left;t.style.top=i,t.style.left=r,t.style.width=o}},dropdownShouldOpen:{type:Function,default:function(t){var e=t.noDrop,n=t.open,o=t.mutableLoading;return!e&&(n&&!o)}},uid:{type:[String,Number],default:function(){return g()}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return void 0===this.value||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var t=this.value;return this.isTrackingValues&&(t=this.$data._value),t?[].concat(t):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var t=this,e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:m({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return t.isComposing=!0},compositionend:function(){return t.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(e){return t.search=e.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:e,listFooter:e,header:m({},e,{deselect:this.deselect}),footer:m({},e,{deselect:this.deselect})}},childComponents:function(){return m({},h,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;var e=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){var n=this.createOption(this.search);this.optionExists(n)||e.unshift(n)}return e},isValueEmpty:function(){return 0===this.selectedValue.length},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(t,e){var n=this;!this.taggable&&("function"==typeof n.resetOnOptionsChange?n.resetOnOptionsChange(t,e,n.selectedValue):n.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple:function(){this.clearSelection()},open:function(t){this.$emit(t?"open":"close")}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(t){var e=this;Array.isArray(t)?this.$data._value=t.map((function(t){return e.findOptionFromReducedValue(t)})):this.$data._value=this.findOptionFromReducedValue(t)},select:function(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&this.$emit("option:created",t),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect:function(t){var e=this;this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter((function(n){return!e.optionComparator(n,t)}))),this.$emit("option:deselected",t)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue:function(t){var e=this;void 0===this.value&&(this.$data._value=t),null!==t&&(t=Array.isArray(t)?t.map((function(t){return e.reduce(t)})):this.reduce(t)),this.$emit("input",t)},toggleDropdown:function(t){var e=t.target!==this.searchEl;e&&t.preventDefault();var n=[].concat(i()(this.$refs.deselectButtons||[]),i()([this.$refs.clearButton]||false));void 0===this.searchEl||n.filter(Boolean).some((function(e){return e.contains(t.target)||e===t.target}))?t.preventDefault():this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(t){var e=this;return this.selectedValue.some((function(n){return e.optionComparator(n,t)}))},isOptionDeselectable:function(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator:function(t,e){return this.getOptionKey(t)===this.getOptionKey(e)},findOptionFromReducedValue:function(t){var e=this,n=[].concat(i()(this.options),i()(this.pushedTags)).filter((function(n){return JSON.stringify(e.reduce(n))===JSON.stringify(t)}));return 1===n.length?n[0]:n.find((function(t){return e.optionComparator(t,e.$data._value)}))||t},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var t=null;this.multiple&&(t=i()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(t)}},optionExists:function(t){var e=this;return this.optionList.some((function(n){return e.optionComparator(n,t)}))},normalizeOptionForSlot:function(t){return"object"===s()(t)?t:l()({},this.label,t)},pushTag:function(t){this.pushedTags.push(t)},onEscape:function(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var t=this.clearSearchOnSelect,e=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:e})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,0!==this.search.length||0!==this.options.length||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(t){var e=this,n=function(t){return t.preventDefault(),!e.isComposing&&e.typeAheadSelect()},o={8:function(t){return e.maybeDeleteValue()},9:function(t){return e.onTab()},27:function(t){return e.onEscape()},38:function(t){return t.preventDefault(),e.typeAheadUp()},40:function(t){return t.preventDefault(),e.typeAheadDown()}};this.selectOnKeyCodes.forEach((function(t){return o[t]=n}));var i=this.mapKeydown(o,this);if("function"==typeof i[t.keyCode])return i[t.keyCode](t)}}},O=(n(7),d(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"v-select",class:t.stateClasses,attrs:{dir:t.dir}},[t._t("header",null,null,t.scope.header),t._v(" "),n("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+t.uid+"__combobox",role:"combobox","aria-expanded":t.dropdownOpen.toString(),"aria-owns":"vs"+t.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(e){return t.toggleDropdown(e)}}},[n("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[t._l(t.selectedValue,(function(e){return t._t("selected-option-container",[n("span",{key:t.getOptionKey(e),staticClass:"vs__selected"},[t._t("selected-option",[t._v("\n "+t._s(t.getOptionLabel(e))+"\n ")],null,t.normalizeOptionForSlot(e)),t._v(" "),t.multiple?n("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:t.disabled,type:"button",title:"Deselect "+t.getOptionLabel(e),"aria-label":"Deselect "+t.getOptionLabel(e)},on:{click:function(n){return t.deselect(e)}}},[n(t.childComponents.Deselect,{tag:"component"})],1):t._e()],2)],{option:t.normalizeOptionForSlot(e),deselect:t.deselect,multiple:t.multiple,disabled:t.disabled})})),t._v(" "),t._t("search",[n("input",t._g(t._b({staticClass:"vs__search"},"input",t.scope.search.attributes,!1),t.scope.search.events))],null,t.scope.search)],2),t._v(" "),n("div",{ref:"actions",staticClass:"vs__actions"},[n("button",{directives:[{name:"show",rawName:"v-show",value:t.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:t.disabled,type:"button",title:"Clear Selected","aria-label":"Clear Selected"},on:{click:t.clearSelection}},[n(t.childComponents.Deselect,{tag:"component"})],1),t._v(" "),t._t("open-indicator",[t.noDrop?t._e():n(t.childComponents.OpenIndicator,t._b({tag:"component"},"component",t.scope.openIndicator.attributes,!1))],null,t.scope.openIndicator),t._v(" "),t._t("spinner",[n("div",{directives:[{name:"show",rawName:"v-show",value:t.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[t._v("Loading...")])],null,t.scope.spinner)],2)]),t._v(" "),n("transition",{attrs:{name:t.transition}},[t.dropdownOpen?n("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+t.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+t.uid+"__listbox",role:"listbox",tabindex:"-1"},on:{mousedown:function(e){return e.preventDefault(),t.onMousedown(e)},mouseup:t.onMouseUp}},[t._t("list-header",null,null,t.scope.listHeader),t._v(" "),t._l(t.filteredOptions,(function(e,o){return n("li",{key:t.getOptionKey(e),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":t.isOptionDeselectable(e)&&o===t.typeAheadPointer,"vs__dropdown-option--selected":t.isOptionSelected(e),"vs__dropdown-option--highlight":o===t.typeAheadPointer,"vs__dropdown-option--disabled":!t.selectable(e)},attrs:{id:"vs"+t.uid+"__option-"+o,role:"option","aria-selected":o===t.typeAheadPointer||null},on:{mouseover:function(n){t.selectable(e)&&(t.typeAheadPointer=o)},click:function(n){n.preventDefault(),n.stopPropagation(),t.selectable(e)&&t.select(e)}}},[t._t("option",[t._v("\n "+t._s(t.getOptionLabel(e))+"\n ")],null,t.normalizeOptionForSlot(e))],2)})),t._v(" "),0===t.filteredOptions.length?n("li",{staticClass:"vs__no-options"},[t._t("no-options",[t._v("Sorry, no matching options.")],null,t.scope.noOptions)],2):t._e(),t._v(" "),t._t("list-footer",null,null,t.scope.listFooter)],2):n("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+t.uid+"__listbox",role:"listbox"}})]),t._v(" "),t._t("footer",null,null,t.scope.footer)],2)}),[],!1,null,null,null).exports),w={ajax:p,pointer:u,pointerScroll:c};n.d(e,"VueSelect",(function(){return O})),n.d(e,"mixins",(function(){return w}));e.default=O}])}));
//# sourceMappingURL=vue-select.js.map
/***/ }),
/***/ "4ae1":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var getBuiltIn = __webpack_require__("d066");
var aFunction = __webpack_require__("1c0b");
var anObject = __webpack_require__("825a");
var isObject = __webpack_require__("861d");
var create = __webpack_require__("7c73");
var bind = __webpack_require__("0538");
var fails = __webpack_require__("d039");
var nativeConstruct = getBuiltIn('Reflect', 'construct');
// `Reflect.construct` method
// https://tc39.github.io/ecma262/#sec-reflect.construct
// MS Edge supports only 2 arguments and argumentsList argument is optional
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
var NEW_TARGET_BUG = fails(function () {
function F() { /* empty */ }
return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
});
var ARGS_BUG = !fails(function () {
nativeConstruct(function () { /* empty */ });
});
var FORCED = NEW_TARGET_BUG || ARGS_BUG;
$({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {
construct: function construct(Target, args /* , newTarget */) {
aFunction(Target);
anObject(args);
var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
if (Target == newTarget) {
// w/o altered newTarget, optimization for 0-4 arguments
switch (args.length) {
case 0: return new Target();
case 1: return new Target(args[0]);
case 2: return new Target(args[0], args[1]);
case 3: return new Target(args[0], args[1], args[2]);
case 4: return new Target(args[0], args[1], args[2], args[3]);
}
// w/o altered newTarget, lot of arguments case
var $args = [null];
$args.push.apply($args, args);
return new (bind.apply(Target, $args))();
}
// with altered newTarget, not support built-in constructors
var proto = newTarget.prototype;
var instance = create(isObject(proto) ? proto : Object.prototype);
var result = Function.apply.call(Target, instance, args);
return isObject(result) ? result : instance;
}
});
/***/ }),
/***/ "4b85":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "4d64":
/***/ (function(module, exports, __webpack_require__) {
var toIndexedObject = __webpack_require__("fc6a");
var toLength = __webpack_require__("50c4");
var toAbsoluteIndex = __webpack_require__("23cb");
// `Array.prototype.{ indexOf, includes }` methods implementation
var createMethod = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = toIndexedObject($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) && O[index] === el) return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;
};
};
module.exports = {
// `Array.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
includes: createMethod(true),
// `Array.prototype.indexOf` method
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
indexOf: createMethod(false)
};
/***/ }),
/***/ "4de4":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $filter = __webpack_require__("b727").filter;
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
// Edge 14- issue
var USES_TO_LENGTH = arrayMethodUsesToLength('filter');
// `Array.prototype.filter` method
// https://tc39.github.io/ecma262/#sec-array.prototype.filter
// with adding support of @@species
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
filter: function filter(callbackfn /* , thisArg */) {
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/***/ "4df4":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var bind = __webpack_require__("0366");
var toObject = __webpack_require__("7b0b");
var callWithSafeIterationClosing = __webpack_require__("9bdd");
var isArrayIteratorMethod = __webpack_require__("e95a");
var toLength = __webpack_require__("50c4");
var createProperty = __webpack_require__("8418");
var getIteratorMethod = __webpack_require__("35a1");
// `Array.from` method implementation
// https://tc39.github.io/ecma262/#sec-array.from
module.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
var O = toObject(arrayLike);
var C = typeof this == 'function' ? this : Array;
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
var mapping = mapfn !== undefined;
var iteratorMethod = getIteratorMethod(O);
var index = 0;
var length, result, step, iterator, next, value;
if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
// if the target is not iterable or it's an array with the default iterator - use a simple case
if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
iterator = iteratorMethod.call(O);
next = iterator.next;
result = new C();
for (;!(step = next.call(iterator)).done; index++) {
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
createProperty(result, index, value);
}
} else {
length = toLength(O.length);
result = new C(length);
for (;length > index; index++) {
value = mapping ? mapfn(O[index], index) : O[index];
createProperty(result, index, value);
}
}
result.length = index;
return result;
};
/***/ }),
/***/ "4ec9":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var collection = __webpack_require__("6d61");
var collectionStrong = __webpack_require__("6566");
// `Map` constructor
// https://tc39.github.io/ecma262/#sec-map-objects
module.exports = collection('Map', function (init) {
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
}, collectionStrong);
/***/ }),
/***/ "4ff9":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "50c4":
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__("a691");
var min = Math.min;
// `ToLength` abstract operation
// https://tc39.github.io/ecma262/#sec-tolength
module.exports = function (argument) {
return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
};
/***/ }),
/***/ "5135":
/***/ (function(module, exports) {
var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
return hasOwnProperty.call(it, key);
};
/***/ }),
/***/ "5319":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
var anObject = __webpack_require__("825a");
var toObject = __webpack_require__("7b0b");
var toLength = __webpack_require__("50c4");
var toInteger = __webpack_require__("a691");
var requireObjectCoercible = __webpack_require__("1d80");
var advanceStringIndex = __webpack_require__("8aa5");
var regExpExec = __webpack_require__("14c3");
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
fixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
return [
// `String.prototype.replace` method
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
function replace(searchValue, replaceValue) {
var O = requireObjectCoercible(this);
var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
return replacer !== undefined
? replacer.call(searchValue, O, replaceValue)
: nativeReplace.call(String(O), searchValue, replaceValue);
},
// `RegExp.prototype[@@replace]` method
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
function (regexp, replaceValue) {
if (
(!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
(typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
) {
var res = maybeCallNative(nativeReplace, 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 nativeReplace.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;
});
}
});
/***/ }),
/***/ "5692":
/***/ (function(module, exports, __webpack_require__) {
var IS_PURE = __webpack_require__("c430");
var store = __webpack_require__("c6cd");
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: '3.6.5',
mode: IS_PURE ? 'pure' : 'global',
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
});
/***/ }),
/***/ "56ef":
/***/ (function(module, exports, __webpack_require__) {
var getBuiltIn = __webpack_require__("d066");
var getOwnPropertyNamesModule = __webpack_require__("241c");
var getOwnPropertySymbolsModule = __webpack_require__("7418");
var anObject = __webpack_require__("825a");
// all object keys, includes non-enumerable and symbols
module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
var keys = getOwnPropertyNamesModule.f(anObject(it));
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
};
/***/ }),
/***/ "5899":
/***/ (function(module, exports) {
// a string of all valid unicode whitespaces
// eslint-disable-next-line max-len
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
/***/ }),
/***/ "58a8":
/***/ (function(module, exports, __webpack_require__) {
var requireObjectCoercible = __webpack_require__("1d80");
var whitespaces = __webpack_require__("5899");
var whitespace = '[' + whitespaces + ']';
var ltrim = RegExp('^' + whitespace + whitespace + '*');
var rtrim = RegExp(whitespace + whitespace + '*$');
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
var createMethod = function (TYPE) {
return function ($this) {
var string = String(requireObjectCoercible($this));
if (TYPE & 1) string = string.replace(ltrim, '');
if (TYPE & 2) string = string.replace(rtrim, '');
return string;
};
};
module.exports = {
// `String.prototype.{ trimLeft, trimStart }` methods
// https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
start: createMethod(1),
// `String.prototype.{ trimRight, trimEnd }` methods
// https://tc39.github.io/ecma262/#sec-string.prototype.trimend
end: createMethod(2),
// `String.prototype.trim` method
// https://tc39.github.io/ecma262/#sec-string.prototype.trim
trim: createMethod(3)
};
/***/ }),
/***/ "5a34":
/***/ (function(module, exports, __webpack_require__) {
var isRegExp = __webpack_require__("44e7");
module.exports = function (it) {
if (isRegExp(it)) {
throw TypeError("The method doesn't accept regular expressions");
} return it;
};
/***/ }),
/***/ "5c6c":
/***/ (function(module, exports) {
module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
/***/ }),
/***/ "5db7":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var flattenIntoArray = __webpack_require__("a2bf");
var toObject = __webpack_require__("7b0b");
var toLength = __webpack_require__("50c4");
var aFunction = __webpack_require__("1c0b");
var arraySpeciesCreate = __webpack_require__("65f0");
// `Array.prototype.flatMap` method
// https://github.com/tc39/proposal-flatMap
$({ target: 'Array', proto: true }, {
flatMap: function flatMap(callbackfn /* , thisArg */) {
var O = toObject(this);
var sourceLen = toLength(O.length);
var A;
aFunction(callbackfn);
A = arraySpeciesCreate(O, 0);
A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
return A;
}
});
/***/ }),
/***/ "60da":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DESCRIPTORS = __webpack_require__("83ab");
var fails = __webpack_require__("d039");
var objectKeys = __webpack_require__("df75");
var getOwnPropertySymbolsModule = __webpack_require__("7418");
var propertyIsEnumerableModule = __webpack_require__("d1e7");
var toObject = __webpack_require__("7b0b");
var IndexedObject = __webpack_require__("44ad");
var nativeAssign = Object.assign;
var defineProperty = Object.defineProperty;
// `Object.assign` method
// https://tc39.github.io/ecma262/#sec-object.assign
module.exports = !nativeAssign || fails(function () {
// should have correct order of operations (Edge bug)
if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {
enumerable: true,
get: function () {
defineProperty(this, 'b', {
value: 3,
enumerable: false
});
}
}), { b: 2 })).b !== 1) return true;
// should work with symbols and should have deterministic property order (V8 bug)
var A = {};
var B = {};
// eslint-disable-next-line no-undef
var symbol = Symbol();
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
var T = toObject(target);
var argumentsLength = arguments.length;
var index = 1;
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
var propertyIsEnumerable = propertyIsEnumerableModule.f;
while (argumentsLength > index) {
var S = IndexedObject(arguments[index++]);
var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);
var length = keys.length;
var j = 0;
var key;
while (length > j) {
key = keys[j++];
if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];
}
} return T;
} : nativeAssign;
/***/ }),
/***/ "615b":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "61d2":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "6544":
/***/ (function(module, exports) {
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
module.exports = function installComponents (component, components) {
var options = typeof component.exports === 'function'
? component.exports.extendOptions
: component.options
if (typeof component.exports === 'function') {
options.components = component.exports.options.components
}
options.components = options.components || {}
for (var i in components) {
options.components[i] = options.components[i] || components[i]
}
}
/***/ }),
/***/ "6547":
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__("a691");
var requireObjectCoercible = __webpack_require__("1d80");
// `String.prototype.{ codePointAt, at }` methods implementation
var createMethod = function (CONVERT_TO_STRING) {
return function ($this, pos) {
var S = String(requireObjectCoercible($this));
var position = toInteger(pos);
var size = S.length;
var first, second;
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
first = S.charCodeAt(position);
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|| (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
? CONVERT_TO_STRING ? S.charAt(position) : first
: CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
};
};
module.exports = {
// `String.prototype.codePointAt` method
// https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
codeAt: createMethod(false),
// `String.prototype.at` method
// https://github.com/mathiasbynens/String.prototype.at
charAt: createMethod(true)
};
/***/ }),
/***/ "6566":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var defineProperty = __webpack_require__("9bf2").f;
var create = __webpack_require__("7c73");
var redefineAll = __webpack_require__("e2cc");
var bind = __webpack_require__("0366");
var anInstance = __webpack_require__("19aa");
var iterate = __webpack_require__("2266");
var defineIterator = __webpack_require__("7dd0");
var setSpecies = __webpack_require__("2626");
var DESCRIPTORS = __webpack_require__("83ab");
var fastKey = __webpack_require__("f183").fastKey;
var InternalStateModule = __webpack_require__("69f3");
var setInternalState = InternalStateModule.set;
var internalStateGetterFor = InternalStateModule.getterFor;
module.exports = {
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var C = wrapper(function (that, iterable) {
anInstance(that, C, CONSTRUCTOR_NAME);
setInternalState(that, {
type: CONSTRUCTOR_NAME,
index: create(null),
first: undefined,
last: undefined,
size: 0
});
if (!DESCRIPTORS) that.size = 0;
if (iterable != undefined) iterate(iterable, that[ADDER], that, IS_MAP);
});
var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);
var define = function (that, key, value) {
var state = getInternalState(that);
var entry = getEntry(that, key);
var previous, index;
// change existing entry
if (entry) {
entry.value = value;
// create new entry
} else {
state.last = entry = {
index: index = fastKey(key, true),
key: key,
value: value,
previous: previous = state.last,
next: undefined,
removed: false
};
if (!state.first) state.first = entry;
if (previous) previous.next = entry;
if (DESCRIPTORS) state.size++;
else that.size++;
// add to index
if (index !== 'F') state.index[index] = entry;
} return that;
};
var getEntry = function (that, key) {
var state = getInternalState(that);
// fast case
var index = fastKey(key);
var entry;
if (index !== 'F') return state.index[index];
// frozen object case
for (entry = state.first; entry; entry = entry.next) {
if (entry.key == key) return entry;
}
};
redefineAll(C.prototype, {
// 23.1.3.1 Map.prototype.clear()
// 23.2.3.2 Set.prototype.clear()
clear: function clear() {
var that = this;
var state = getInternalState(that);
var data = state.index;
var entry = state.first;
while (entry) {
entry.removed = true;
if (entry.previous) entry.previous = entry.previous.next = undefined;
delete data[entry.index];
entry = entry.next;
}
state.first = state.last = undefined;
if (DESCRIPTORS) state.size = 0;
else that.size = 0;
},
// 23.1.3.3 Map.prototype.delete(key)
// 23.2.3.4 Set.prototype.delete(value)
'delete': function (key) {
var that = this;
var state = getInternalState(that);
var entry = getEntry(that, key);
if (entry) {
var next = entry.next;
var prev = entry.previous;
delete state.index[entry.index];
entry.removed = true;
if (prev) prev.next = next;
if (next) next.previous = prev;
if (state.first == entry) state.first = next;
if (state.last == entry) state.last = prev;
if (DESCRIPTORS) state.size--;
else that.size--;
} return !!entry;
},
// 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)
// 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)
forEach: function forEach(callbackfn /* , that = undefined */) {
var state = getInternalState(this);
var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);
var entry;
while (entry = entry ? entry.next : state.first) {
boundFunction(entry.value, entry.key, this);
// revert to the last existing entry
while (entry && entry.removed) entry = entry.previous;
}
},
// 23.1.3.7 Map.prototype.has(key)
// 23.2.3.7 Set.prototype.has(value)
has: function has(key) {
return !!getEntry(this, key);
}
});
redefineAll(C.prototype, IS_MAP ? {
// 23.1.3.6 Map.prototype.get(key)
get: function get(key) {
var entry = getEntry(this, key);
return entry && entry.value;
},
// 23.1.3.9 Map.prototype.set(key, value)
set: function set(key, value) {
return define(this, key === 0 ? 0 : key, value);
}
} : {
// 23.2.3.1 Set.prototype.add(value)
add: function add(value) {
return define(this, value = value === 0 ? 0 : value, value);
}
});
if (DESCRIPTORS) defineProperty(C.prototype, 'size', {
get: function () {
return getInternalState(this).size;
}
});
return C;
},
setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {
var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';
var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);
var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);
// add .keys, .values, .entries, [@@iterator]
// 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11
defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {
setInternalState(this, {
type: ITERATOR_NAME,
target: iterated,
state: getInternalCollectionState(iterated),
kind: kind,
last: undefined
});
}, function () {
var state = getInternalIteratorState(this);
var kind = state.kind;
var entry = state.last;
// revert to the last existing entry
while (entry && entry.removed) entry = entry.previous;
// get next entry
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
// or finish the iteration
state.target = undefined;
return { value: undefined, done: true };
}
// return step by kind
if (kind == 'keys') return { value: entry.key, done: false };
if (kind == 'values') return { value: entry.value, done: false };
return { value: [entry.key, entry.value], done: false };
}, IS_MAP ? 'entries' : 'values', !IS_MAP, true);
// add [@@species], 23.1.2.2, 23.2.2.2
setSpecies(CONSTRUCTOR_NAME);
}
};
/***/ }),
/***/ "65f0":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("861d");
var isArray = __webpack_require__("e8b5");
var wellKnownSymbol = __webpack_require__("b622");
var SPECIES = wellKnownSymbol('species');
// `ArraySpeciesCreate` abstract operation
// https://tc39.github.io/ecma262/#sec-arrayspeciescreate
module.exports = function (originalArray, length) {
var C;
if (isArray(originalArray)) {
C = originalArray.constructor;
// cross-realm fallback
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
else if (isObject(C)) {
C = C[SPECIES];
if (C === null) C = undefined;
}
} return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
};
/***/ }),
/***/ "68dd":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "69f3":
/***/ (function(module, exports, __webpack_require__) {
var NATIVE_WEAK_MAP = __webpack_require__("7f9a");
var global = __webpack_require__("da84");
var isObject = __webpack_require__("861d");
var createNonEnumerableProperty = __webpack_require__("9112");
var objectHas = __webpack_require__("5135");
var sharedKey = __webpack_require__("f772");
var hiddenKeys = __webpack_require__("d012");
var WeakMap = global.WeakMap;
var set, get, has;
var enforce = function (it) {
return has(it) ? get(it) : set(it, {});
};
var getterFor = function (TYPE) {
return function (it) {
var state;
if (!isObject(it) || (state = get(it)).type !== TYPE) {
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
} return state;
};
};
if (NATIVE_WEAK_MAP) {
var store = new WeakMap();
var wmget = store.get;
var wmhas = store.has;
var wmset = store.set;
set = function (it, metadata) {
wmset.call(store, it, metadata);
return metadata;
};
get = function (it) {
return wmget.call(store, it) || {};
};
has = function (it) {
return wmhas.call(store, it);
};
} else {
var STATE = sharedKey('state');
hiddenKeys[STATE] = true;
set = function (it, metadata) {
createNonEnumerableProperty(it, STATE, metadata);
return metadata;
};
get = function (it) {
return objectHas(it, STATE) ? it[STATE] : {};
};
has = function (it) {
return objectHas(it, STATE);
};
}
module.exports = {
set: set,
get: get,
has: has,
enforce: enforce,
getterFor: getterFor
};
/***/ }),
/***/ "6d61":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var global = __webpack_require__("da84");
var isForced = __webpack_require__("94ca");
var redefine = __webpack_require__("6eeb");
var InternalMetadataModule = __webpack_require__("f183");
var iterate = __webpack_require__("2266");
var anInstance = __webpack_require__("19aa");
var isObject = __webpack_require__("861d");
var fails = __webpack_require__("d039");
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
var setToStringTag = __webpack_require__("d44e");
var inheritIfRequired = __webpack_require__("7156");
module.exports = function (CONSTRUCTOR_NAME, wrapper, common) {
var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;
var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;
var ADDER = IS_MAP ? 'set' : 'add';
var NativeConstructor = global[CONSTRUCTOR_NAME];
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
var Constructor = NativeConstructor;
var exported = {};
var fixMethod = function (KEY) {
var nativeMethod = NativePrototype[KEY];
redefine(NativePrototype, KEY,
KEY == 'add' ? function add(value) {
nativeMethod.call(this, value === 0 ? 0 : value);
return this;
} : KEY == 'delete' ? function (key) {
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
} : KEY == 'get' ? function get(key) {
return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key);
} : KEY == 'has' ? function has(key) {
return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key);
} : function set(key, value) {
nativeMethod.call(this, key === 0 ? 0 : key, value);
return this;
}
);
};
// eslint-disable-next-line max-len
if (isForced(CONSTRUCTOR_NAME, typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () {
new NativeConstructor().entries().next();
})))) {
// create collection constructor
Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);
InternalMetadataModule.REQUIRED = true;
} else if (isForced(CONSTRUCTOR_NAME, true)) {
var instance = new Constructor();
// early implementations not supports chaining
var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;
// V8 ~ Chromium 40- weak-collections throws on primitives, but should return false
var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });
// most early implementations doesn't supports iterables, most modern - not close it correctly
// eslint-disable-next-line no-new
var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });
// for early implementations -0 and +0 not the same
var BUGGY_ZERO = !IS_WEAK && fails(function () {
// V8 ~ Chromium 42- fails only with 5+ elements
var $instance = new NativeConstructor();
var index = 5;
while (index--) $instance[ADDER](index, index);
return !$instance.has(-0);
});
if (!ACCEPT_ITERABLES) {
Constructor = wrapper(function (dummy, iterable) {
anInstance(dummy, Constructor, CONSTRUCTOR_NAME);
var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);
if (iterable != undefined) iterate(iterable, that[ADDER], that, IS_MAP);
return that;
});
Constructor.prototype = NativePrototype;
NativePrototype.constructor = Constructor;
}
if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {
fixMethod('delete');
fixMethod('has');
IS_MAP && fixMethod('get');
}
if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);
// weak collections should not contains .clear method
if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;
}
exported[CONSTRUCTOR_NAME] = Constructor;
$({ global: true, forced: Constructor != NativeConstructor }, exported);
setToStringTag(Constructor, CONSTRUCTOR_NAME);
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
return Constructor;
};
/***/ }),
/***/ "6dfc":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "6ece":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "6eeb":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var createNonEnumerableProperty = __webpack_require__("9112");
var has = __webpack_require__("5135");
var setGlobal = __webpack_require__("ce4e");
var inspectSource = __webpack_require__("8925");
var InternalStateModule = __webpack_require__("69f3");
var getInternalState = InternalStateModule.get;
var enforceInternalState = InternalStateModule.enforce;
var TEMPLATE = String(String).split('String');
(module.exports = function (O, key, value, options) {
var unsafe = options ? !!options.unsafe : false;
var simple = options ? !!options.enumerable : false;
var noTargetGet = options ? !!options.noTargetGet : false;
if (typeof value == 'function') {
if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
}
if (O === global) {
if (simple) O[key] = value;
else setGlobal(key, value);
return;
} else if (!unsafe) {
delete O[key];
} else if (!noTargetGet && O[key]) {
simple = true;
}
if (simple) O[key] = value;
else createNonEnumerableProperty(O, key, value);
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, 'toString', function toString() {
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
});
/***/ }),
/***/ "6f53":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("83ab");
var objectKeys = __webpack_require__("df75");
var toIndexedObject = __webpack_require__("fc6a");
var propertyIsEnumerable = __webpack_require__("d1e7").f;
// `Object.{ entries, values }` methods implementation
var createMethod = function (TO_ENTRIES) {
return function (it) {
var O = toIndexedObject(it);
var keys = objectKeys(O);
var length = keys.length;
var i = 0;
var result = [];
var key;
while (length > i) {
key = keys[i++];
if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {
result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
}
}
return result;
};
};
module.exports = {
// `Object.entries` method
// https://tc39.github.io/ecma262/#sec-object.entries
entries: createMethod(true),
// `Object.values` method
// https://tc39.github.io/ecma262/#sec-object.values
values: createMethod(false)
};
/***/ }),
/***/ "7156":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("861d");
var setPrototypeOf = __webpack_require__("d2bb");
// makes subclassing work correct for wrapped built-ins
module.exports = function ($this, dummy, Wrapper) {
var NewTarget, NewTargetPrototype;
if (
// it can work only with native `setPrototypeOf`
setPrototypeOf &&
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
typeof (NewTarget = dummy.constructor) == 'function' &&
NewTarget !== Wrapper &&
isObject(NewTargetPrototype = NewTarget.prototype) &&
NewTargetPrototype !== Wrapper.prototype
) setPrototypeOf($this, NewTargetPrototype);
return $this;
};
/***/ }),
/***/ "73d9":
/***/ (function(module, exports, __webpack_require__) {
// this method was added to unscopables after implementation
// in popular engines, so it's moved to a separate module
var addToUnscopables = __webpack_require__("44d2");
addToUnscopables('flatMap');
/***/ }),
/***/ "7418":
/***/ (function(module, exports) {
exports.f = Object.getOwnPropertySymbols;
/***/ }),
/***/ "7435":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "746f":
/***/ (function(module, exports, __webpack_require__) {
var path = __webpack_require__("428f");
var has = __webpack_require__("5135");
var wrappedWellKnownSymbolModule = __webpack_require__("e538");
var defineProperty = __webpack_require__("9bf2").f;
module.exports = function (NAME) {
var Symbol = path.Symbol || (path.Symbol = {});
if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
value: wrappedWellKnownSymbolModule.f(NAME)
});
};
/***/ }),
/***/ "7839":
/***/ (function(module, exports) {
// IE8- don't enum bug keys
module.exports = [
'constructor',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'toLocaleString',
'toString',
'valueOf'
];
/***/ }),
/***/ "7b0b":
/***/ (function(module, exports, __webpack_require__) {
var requireObjectCoercible = __webpack_require__("1d80");
// `ToObject` abstract operation
// https://tc39.github.io/ecma262/#sec-toobject
module.exports = function (argument) {
return Object(requireObjectCoercible(argument));
};
/***/ }),
/***/ "7c73":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("825a");
var defineProperties = __webpack_require__("37e8");
var enumBugKeys = __webpack_require__("7839");
var hiddenKeys = __webpack_require__("d012");
var html = __webpack_require__("1be4");
var documentCreateElement = __webpack_require__("cc12");
var sharedKey = __webpack_require__("f772");
var GT = '>';
var LT = '<';
var PROTOTYPE = 'prototype';
var SCRIPT = 'script';
var IE_PROTO = sharedKey('IE_PROTO');
var EmptyConstructor = function () { /* empty */ };
var scriptTag = function (content) {
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
};
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
var NullProtoObjectViaActiveX = function (activeXDocument) {
activeXDocument.write(scriptTag(''));
activeXDocument.close();
var temp = activeXDocument.parentWindow.Object;
activeXDocument = null; // avoid memory leak
return temp;
};
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var NullProtoObjectViaIFrame = function () {
// Thrash, waste and sodomy: IE GC bug
var iframe = documentCreateElement('iframe');
var JS = 'java' + SCRIPT + ':';
var iframeDocument;
iframe.style.display = 'none';
html.appendChild(iframe);
// https://github.com/zloirock/core-js/issues/475
iframe.src = String(JS);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(scriptTag('document.F=Object'));
iframeDocument.close();
return iframeDocument.F;
};
// Check for document.domain and active x support
// No need to use active x approach when document.domain is not set
// see https://github.com/es-shims/es5-shim/issues/150
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
// avoid IE GC bug
var activeXDocument;
var NullProtoObject = function () {
try {
/* global ActiveXObject */
activeXDocument = document.domain && new ActiveXObject('htmlfile');
} catch (error) { /* ignore */ }
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
var length = enumBugKeys.length;
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
return NullProtoObject();
};
hiddenKeys[IE_PROTO] = true;
// `Object.create` method
// https://tc39.github.io/ecma262/#sec-object.create
module.exports = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
EmptyConstructor[PROTOTYPE] = anObject(O);
result = new EmptyConstructor();
EmptyConstructor[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO] = O;
} else result = NullProtoObject();
return Properties === undefined ? result : defineProperties(result, Properties);
};
/***/ }),
/***/ "7db0":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $find = __webpack_require__("b727").find;
var addToUnscopables = __webpack_require__("44d2");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var FIND = 'find';
var SKIPS_HOLES = true;
var USES_TO_LENGTH = arrayMethodUsesToLength(FIND);
// Shouldn't skip holes
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
// `Array.prototype.find` method
// https://tc39.github.io/ecma262/#sec-array.prototype.find
$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
find: function find(callbackfn /* , that = undefined */) {
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables(FIND);
/***/ }),
/***/ "7dd0":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var createIteratorConstructor = __webpack_require__("9ed3");
var getPrototypeOf = __webpack_require__("e163");
var setPrototypeOf = __webpack_require__("d2bb");
var setToStringTag = __webpack_require__("d44e");
var createNonEnumerableProperty = __webpack_require__("9112");
var redefine = __webpack_require__("6eeb");
var wellKnownSymbol = __webpack_require__("b622");
var IS_PURE = __webpack_require__("c430");
var Iterators = __webpack_require__("3f8c");
var IteratorsCore = __webpack_require__("ae93");
var IteratorPrototype = IteratorsCore.IteratorPrototype;
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
var ITERATOR = wellKnownSymbol('iterator');
var KEYS = 'keys';
var VALUES = 'values';
var ENTRIES = 'entries';
var returnThis = function () { return this; };
module.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
createIteratorConstructor(IteratorConstructor, NAME, next);
var getIterationMethod = function (KIND) {
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
switch (KIND) {
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
} return function () { return new IteratorConstructor(this); };
};
var TO_STRING_TAG = NAME + ' Iterator';
var INCORRECT_VALUES_NAME = false;
var IterablePrototype = Iterable.prototype;
var nativeIterator = IterablePrototype[ITERATOR]
|| IterablePrototype['@@iterator']
|| DEFAULT && IterablePrototype[DEFAULT];
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
var CurrentIteratorPrototype, methods, KEY;
// fix native
if (anyNativeIterator) {
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
if (setPrototypeOf) {
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
} else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {
createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);
}
}
// Set @@toStringTag to native iterators
setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);
if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
INCORRECT_VALUES_NAME = true;
defaultIterator = function values() { return nativeIterator.call(this); };
}
// define iterator
if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {
createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);
}
Iterators[NAME] = defaultIterator;
// export additional methods
if (DEFAULT) {
methods = {
values: getIterationMethod(VALUES),
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
entries: getIterationMethod(ENTRIES)
};
if (FORCED) for (KEY in methods) {
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
redefine(IterablePrototype, KEY, methods[KEY]);
}
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
}
return methods;
};
/***/ }),
/***/ "7f9a":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var inspectSource = __webpack_require__("8925");
var WeakMap = global.WeakMap;
module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
/***/ }),
/***/ "81d5":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var toObject = __webpack_require__("7b0b");
var toAbsoluteIndex = __webpack_require__("23cb");
var toLength = __webpack_require__("50c4");
// `Array.prototype.fill` method implementation
// https://tc39.github.io/ecma262/#sec-array.prototype.fill
module.exports = function fill(value /* , start = 0, end = @length */) {
var O = toObject(this);
var length = toLength(O.length);
var argumentsLength = arguments.length;
var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);
var end = argumentsLength > 2 ? arguments[2] : undefined;
var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
while (endPos > index) O[index++] = value;
return O;
};
/***/ }),
/***/ "825a":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("861d");
module.exports = function (it) {
if (!isObject(it)) {
throw TypeError(String(it) + ' is not an object');
} return it;
};
/***/ }),
/***/ "83ab":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
// Thank's IE8 for his funny defineProperty
module.exports = !fails(function () {
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
/***/ }),
/***/ "83d1":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "8418":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var toPrimitive = __webpack_require__("c04e");
var definePropertyModule = __webpack_require__("9bf2");
var createPropertyDescriptor = __webpack_require__("5c6c");
module.exports = function (object, key, value) {
var propertyKey = toPrimitive(key);
if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
else object[propertyKey] = value;
};
/***/ }),
/***/ "857a":
/***/ (function(module, exports, __webpack_require__) {
var requireObjectCoercible = __webpack_require__("1d80");
var quot = /"/g;
// B.2.3.2.1 CreateHTML(string, tag, attribute, value)
// https://tc39.github.io/ecma262/#sec-createhtml
module.exports = function (string, tag, attribute, value) {
var S = String(requireObjectCoercible(string));
var p1 = '<' + tag;
if (attribute !== '') p1 += ' ' + attribute + '="' + String(value).replace(quot, '"') + '"';
return p1 + '>' + S + '</' + tag + '>';
};
/***/ }),
/***/ "861d":
/***/ (function(module, exports) {
module.exports = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
/***/ }),
/***/ "86cc":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "8875":
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
// MIT license
// source: https://github.com/amiller-gh/currentScript-polyfill
// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
(function (root, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
}(typeof self !== 'undefined' ? self : this, function () {
function getCurrentScript () {
var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
// for chrome
if (!descriptor && 'currentScript' in document && document.currentScript) {
return document.currentScript
}
// for other browsers with native support for currentScript
if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
return document.currentScript
}
// IE 8-10 support script readyState
// IE 11+ & Firefox support stack trace
try {
throw new Error();
}
catch (err) {
// Find the second match for the "at" string to get file src url from stack.
var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
scriptLocation = (stackDetails && stackDetails[1]) || false,
line = (stackDetails && stackDetails[2]) || false,
currentLocation = document.location.href.replace(document.location.hash, ''),
pageSource,
inlineScriptSourceRegExp,
inlineScriptSource,
scripts = document.getElementsByTagName('script'); // Live NodeList collection
if (scriptLocation === currentLocation) {
pageSource = document.documentElement.outerHTML;
inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
}
for (var i = 0; i < scripts.length; i++) {
// If ready state is interactive, return the script tag
if (scripts[i].readyState === 'interactive') {
return scripts[i];
}
// If src matches, return the script tag
if (scripts[i].src === scriptLocation) {
return scripts[i];
}
// If inline source matches, return the script tag
if (
scriptLocation === currentLocation &&
scripts[i].innerHTML &&
scripts[i].innerHTML.trim() === inlineScriptSource
) {
return scripts[i];
}
}
// If no match, return null
return null;
}
};
return getCurrentScript
}));
/***/ }),
/***/ "8925":
/***/ (function(module, exports, __webpack_require__) {
var store = __webpack_require__("c6cd");
var functionToString = Function.toString;
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
if (typeof store.inspectSource != 'function') {
store.inspectSource = function (it) {
return functionToString.call(it);
};
}
module.exports = store.inspectSource;
/***/ }),
/***/ "899c":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "8aa5":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var charAt = __webpack_require__("6547").charAt;
// `AdvanceStringIndex` abstract operation
// https://tc39.github.io/ecma262/#sec-advancestringindex
module.exports = function (S, index, unicode) {
return index + (unicode ? charAt(S, index).length : 1);
};
/***/ }),
/***/ "8adc":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "8bbf":
/***/ (function(module, exports) {
module.exports = require("vue");
/***/ }),
/***/ "8ce9":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "8d4f":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "8ff2":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "90e3":
/***/ (function(module, exports) {
var id = 0;
var postfix = Math.random();
module.exports = function (key) {
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
};
/***/ }),
/***/ "9112":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("83ab");
var definePropertyModule = __webpack_require__("9bf2");
var createPropertyDescriptor = __webpack_require__("5c6c");
module.exports = DESCRIPTORS ? function (object, key, value) {
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
/***/ }),
/***/ "9263":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var regexpFlags = __webpack_require__("ad6d");
var stickyHelpers = __webpack_require__("9f7f");
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 UPDATES_LAST_INDEX_WRONG = (function () {
var re1 = /a/;
var re2 = /b*/g;
nativeExec.call(re1, 'a');
nativeExec.call(re2, 'a');
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
})();
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;
// 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 || UNSUPPORTED_Y;
if (PATCH) {
patchedExec = function exec(str) {
var re = this;
var lastIndex, reCopy, match, i;
var sticky = UNSUPPORTED_Y && re.sticky;
var flags = regexpFlags.call(re);
var source = re.source;
var charsAdded = 0;
var strCopy = str;
if (sticky) {
flags = flags.replace('y', '');
if (flags.indexOf('g') === -1) {
flags += 'g';
}
strCopy = String(str).slice(re.lastIndex);
// Support anchored sticky behavior.
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
source = '(?: ' + source + ')';
strCopy = ' ' + strCopy;
charsAdded++;
}
// ^(? + rx + ) is needed, in combination with some str slicing, to
// simulate the 'y' flag.
reCopy = new RegExp('^(?:' + source + ')', flags);
}
if (NPCG_INCLUDED) {
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
}
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
match = nativeExec.call(sticky ? reCopy : re, strCopy);
if (sticky) {
if (match) {
match.input = match.input.slice(charsAdded);
match[0] = match[0].slice(charsAdded);
match.index = re.lastIndex;
re.lastIndex += match[0].length;
} else re.lastIndex = 0;
} else if (UPDATES_LAST_INDEX_WRONG && match) {
re.lastIndex = 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 /(.?)?/
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;
/***/ }),
/***/ "94ca":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
var replacement = /#|\.prototype\./;
var isForced = function (feature, detection) {
var value = data[normalize(feature)];
return value == POLYFILL ? true
: value == NATIVE ? false
: typeof detection == 'function' ? fails(detection)
: !!detection;
};
var normalize = isForced.normalize = function (string) {
return String(string).replace(replacement, '.').toLowerCase();
};
var data = isForced.data = {};
var NATIVE = isForced.NATIVE = 'N';
var POLYFILL = isForced.POLYFILL = 'P';
module.exports = isForced;
/***/ }),
/***/ "95ed":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "96cf":
/***/ (function(module, exports) {
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
!(function(global) {
"use strict";
var Op = Object.prototype;
var hasOwn = Op.hasOwnProperty;
var undefined; // More compressible than void 0.
var $Symbol = typeof Symbol === "function" ? Symbol : {};
var iteratorSymbol = $Symbol.iterator || "@@iterator";
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
var inModule = typeof module === "object";
var runtime = global.regeneratorRuntime;
if (runtime) {
if (inModule) {
// If regeneratorRuntime is defined globally and we're in a module,
// make the exports object identical to regeneratorRuntime.
module.exports = runtime;
}
// Don't bother evaluating the rest of this file if the runtime was
// already defined globally.
return;
}
// Define the runtime globally (as expected by generated code) as either
// module.exports (if we're in a module) or a new, empty object.
runtime = global.regeneratorRuntime = inModule ? module.exports : {};
function wrap(innerFn, outerFn, self, tryLocsList) {
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
var generator = Object.create(protoGenerator.prototype);
var context = new Context(tryLocsList || []);
// The ._invoke method unifies the implementations of the .next,
// .throw, and .return methods.
generator._invoke = makeInvokeMethod(innerFn, self, context);
return generator;
}
runtime.wrap = wrap;
// Try/catch helper to minimize deoptimizations. Returns a completion
// record like context.tryEntries[i].completion. This interface could
// have been (and was previously) designed to take a closure to be
// invoked without arguments, but in all the cases we care about we
// already have an existing method we want to call, so there's no need
// to create a new function object. We can even get away with assuming
// the method takes exactly one argument, since that happens to be true
// in every case, so we don't have to touch the arguments object. The
// only additional allocation required is the completion record, which
// has a stable shape and so hopefully should be cheap to allocate.
function tryCatch(fn, obj, arg) {
try {
return { type: "normal", arg: fn.call(obj, arg) };
} catch (err) {
return { type: "throw", arg: err };
}
}
var GenStateSuspendedStart = "suspendedStart";
var GenStateSuspendedYield = "suspendedYield";
var GenStateExecuting = "executing";
var GenStateCompleted = "completed";
// Returning this object from the innerFn has the same effect as
// breaking out of the dispatch switch statement.
var ContinueSentinel = {};
// Dummy constructor functions that we use as the .constructor and
// .constructor.prototype properties for functions that return Generator
// objects. For full spec compliance, you may wish to configure your
// minifier not to mangle the names of these two functions.
function Generator() {}
function GeneratorFunction() {}
function GeneratorFunctionPrototype() {}
// This is a polyfill for %IteratorPrototype% for environments that
// don't natively support it.
var IteratorPrototype = {};
IteratorPrototype[iteratorSymbol] = function () {
return this;
};
var getProto = Object.getPrototypeOf;
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
if (NativeIteratorPrototype &&
NativeIteratorPrototype !== Op &&
hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
// This environment has a native %IteratorPrototype%; use it instead
// of the polyfill.
IteratorPrototype = NativeIteratorPrototype;
}
var Gp = GeneratorFunctionPrototype.prototype =
Generator.prototype = Object.create(IteratorPrototype);
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
GeneratorFunctionPrototype.constructor = GeneratorFunction;
GeneratorFunctionPrototype[toStringTagSymbol] =
GeneratorFunction.displayName = "GeneratorFunction";
// Helper for defining the .next, .throw, and .return methods of the
// Iterator interface in terms of a single ._invoke method.
function defineIteratorMethods(prototype) {
["next", "throw", "return"].forEach(function(method) {
prototype[method] = function(arg) {
return this._invoke(method, arg);
};
});
}
runtime.isGeneratorFunction = function(genFun) {
var ctor = typeof genFun === "function" && genFun.constructor;
return ctor
? ctor === GeneratorFunction ||
// For the native GeneratorFunction constructor, the best we can
// do is to check its .name property.
(ctor.displayName || ctor.name) === "GeneratorFunction"
: false;
};
runtime.mark = function(genFun) {
if (Object.setPrototypeOf) {
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
} else {
genFun.__proto__ = GeneratorFunctionPrototype;
if (!(toStringTagSymbol in genFun)) {
genFun[toStringTagSymbol] = "GeneratorFunction";
}
}
genFun.prototype = Object.create(Gp);
return genFun;
};
// Within the body of any async function, `await x` is transformed to
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
// `hasOwn.call(value, "__await")` to determine if the yielded value is
// meant to be awaited.
runtime.awrap = function(arg) {
return { __await: arg };
};
function AsyncIterator(generator) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {
reject(record.arg);
} else {
var result = record.arg;
var value = result.value;
if (value &&
typeof value === "object" &&
hasOwn.call(value, "__await")) {
return Promise.resolve(value.__await).then(function(value) {
invoke("next", value, resolve, reject);
}, function(err) {
invoke("throw", err, resolve, reject);
});
}
return Promise.resolve(value).then(function(unwrapped) {
// When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the
// current iteration. If the Promise is rejected, however, the
// result for this iteration will be rejected with the same
// reason. Note that rejections of yielded Promises are not
// thrown back into the generator function, as is the case
// when an awaited Promise is rejected. This difference in
// behavior between yield and await is important, because it
// allows the consumer to decide what to do with the yielded
// rejection (swallow it and continue, manually .throw it back
// into the generator, abandon iteration, whatever). With
// await, by contrast, there is no opportunity to examine the
// rejection reason outside the generator function, so the
// only option is to throw it from the await expression, and
// let the generator function handle the exception.
result.value = unwrapped;
resolve(result);
}, reject);
}
}
var previousPromise;
function enqueue(method, arg) {
function callInvokeWithMethodAndArg() {
return new Promise(function(resolve, reject) {
invoke(method, arg, resolve, reject);
});
}
return previousPromise =
// If enqueue has been called before, then we want to wait until
// all previous Promises have been resolved before calling invoke,
// so that results are always delivered in the correct order. If
// enqueue has not been called before, then it is important to
// call invoke immediately, without waiting on a callback to fire,
// so that the async generator function has the opportunity to do
// any necessary setup in a predictable way. This predictability
// is why the Promise constructor synchronously invokes its
// executor callback, and why async functions synchronously
// execute code before the first await. Since we implement simple
// async functions in terms of async generators, it is especially
// important to get this right, even though it requires care.
previousPromise ? previousPromise.then(
callInvokeWithMethodAndArg,
// Avoid propagating failures to Promises returned by later
// invocations of the iterator.
callInvokeWithMethodAndArg
) : callInvokeWithMethodAndArg();
}
// Define the unified helper method that is used to implement .next,
// .throw, and .return (see defineIteratorMethods).
this._invoke = enqueue;
}
defineIteratorMethods(AsyncIterator.prototype);
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
return this;
};
runtime.AsyncIterator = AsyncIterator;
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
runtime.async = function(innerFn, outerFn, self, tryLocsList) {
var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList)
);
return runtime.isGeneratorFunction(outerFn)
? iter // If outerFn is a generator, return the full iterator.
: iter.next().then(function(result) {
return result.done ? result.value : iter.next();
});
};
function makeInvokeMethod(innerFn, self, context) {
var state = GenStateSuspendedStart;
return function invoke(method, arg) {
if (state === GenStateExecuting) {
throw new Error("Generator is already running");
}
if (state === GenStateCompleted) {
if (method === "throw") {
throw arg;
}
// Be forgiving, per 25.3.3.3.3 of the spec:
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
return doneResult();
}
context.method = method;
context.arg = arg;
while (true) {
var delegate = context.delegate;
if (delegate) {
var delegateResult = maybeInvokeDelegate(delegate, context);
if (delegateResult) {
if (delegateResult === ContinueSentinel) continue;
return delegateResult;
}
}
if (context.method === "next") {
// Setting context._sent for legacy support of Babel's
// function.sent implementation.
context.sent = context._sent = context.arg;
} else if (context.method === "throw") {
if (state === GenStateSuspendedStart) {
state = GenStateCompleted;
throw context.arg;
}
context.dispatchException(context.arg);
} else if (context.method === "return") {
context.abrupt("return", context.arg);
}
state = GenStateExecuting;
var record = tryCatch(innerFn, self, context);
if (record.type === "normal") {
// If an exception is thrown from innerFn, we leave state ===
// GenStateExecuting and loop back for another invocation.
state = context.done
? GenStateCompleted
: GenStateSuspendedYield;
if (record.arg === ContinueSentinel) {
continue;
}
return {
value: record.arg,
done: context.done
};
} else if (record.type === "throw") {
state = GenStateCompleted;
// Dispatch the exception by looping back around to the
// context.dispatchException(context.arg) call above.
context.method = "throw";
context.arg = record.arg;
}
}
};
}
// Call delegate.iterator[context.method](context.arg) and handle the
// result, either by returning a { value, done } result from the
// delegate iterator, or by modifying context.method and context.arg,
// setting context.delegate to null, and returning the ContinueSentinel.
function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
if (method === undefined) {
// A .throw or .return when the delegate iterator has no .throw
// method always terminates the yield* loop.
context.delegate = null;
if (context.method === "throw") {
if (delegate.iterator.return) {
// If the delegate iterator has a return method, give it a
// chance to clean up.
context.method = "return";
context.arg = undefined;
maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {
// If maybeInvokeDelegate(context) changed context.method from
// "return" to "throw", let that override the TypeError below.
return ContinueSentinel;
}
}
context.method = "throw";
context.arg = new TypeError(
"The iterator does not provide a 'throw' method");
}
return ContinueSentinel;
}
var record = tryCatch(method, delegate.iterator, context.arg);
if (record.type === "throw") {
context.method = "throw";
context.arg = record.arg;
context.delegate = null;
return ContinueSentinel;
}
var info = record.arg;
if (! info) {
context.method = "throw";
context.arg = new TypeError("iterator result is not an object");
context.delegate = null;
return ContinueSentinel;
}
if (info.done) {
// Assign the result of the finished delegate to the temporary
// variable specified by delegate.resultName (see delegateYield).
context[delegate.resultName] = info.value;
// Resume execution at the desired location (see delegateYield).
context.next = delegate.nextLoc;
// If context.method was "throw" but the delegate handled the
// exception, let the outer generator proceed normally. If
// context.method was "next", forget context.arg since it has been
// "consumed" by the delegate iterator. If context.method was
// "return", allow the original .return call to continue in the
// outer generator.
if (context.method !== "return") {
context.method = "next";
context.arg = undefined;
}
} else {
// Re-yield the result returned by the delegate method.
return info;
}
// The delegate iterator is finished, so forget it and continue with
// the outer generator.
context.delegate = null;
return ContinueSentinel;
}
// Define Generator.prototype.{next,throw,return} in terms of the
// unified ._invoke helper method.
defineIteratorMethods(Gp);
Gp[toStringTagSymbol] = "Generator";
// A Generator should always return itself as the iterator object when the
// @@iterator function is called on it. Some browsers' implementations of the
// iterator prototype chain incorrectly implement this, causing the Generator
// object to not be returned from this call. This ensures that doesn't happen.
// See https://github.com/facebook/regenerator/issues/274 for more details.
Gp[iteratorSymbol] = function() {
return this;
};
Gp.toString = function() {
return "[object Generator]";
};
function pushTryEntry(locs) {
var entry = { tryLoc: locs[0] };
if (1 in locs) {
entry.catchLoc = locs[1];
}
if (2 in locs) {
entry.finallyLoc = locs[2];
entry.afterLoc = locs[3];
}
this.tryEntries.push(entry);
}
function resetTryEntry(entry) {
var record = entry.completion || {};
record.type = "normal";
delete record.arg;
entry.completion = record;
}
function Context(tryLocsList) {
// The root entry object (effectively a try statement without a catch
// or a finally block) gives us a place to store values thrown from
// locations where there is no enclosing try statement.
this.tryEntries = [{ tryLoc: "root" }];
tryLocsList.forEach(pushTryEntry, this);
this.reset(true);
}
runtime.keys = function(object) {
var keys = [];
for (var key in object) {
keys.push(key);
}
keys.reverse();
// Rather than returning an object with a next method, we keep
// things simple and return the next function itself.
return function next() {
while (keys.length) {
var key = keys.pop();
if (key in object) {
next.value = key;
next.done = false;
return next;
}
}
// To avoid creating an additional object, we just hang the .value
// and .done properties off the next function object itself. This
// also ensures that the minifier will not anonymize the function.
next.done = true;
return next;
};
};
function values(iterable) {
if (iterable) {
var iteratorMethod = iterable[iteratorSymbol];
if (iteratorMethod) {
return iteratorMethod.call(iterable);
}
if (typeof iterable.next === "function") {
return iterable;
}
if (!isNaN(iterable.length)) {
var i = -1, next = function next() {
while (++i < iterable.length) {
if (hasOwn.call(iterable, i)) {
next.value = iterable[i];
next.done = false;
return next;
}
}
next.value = undefined;
next.done = true;
return next;
};
return next.next = next;
}
}
// Return an iterator with no values.
return { next: doneResult };
}
runtime.values = values;
function doneResult() {
return { value: undefined, done: true };
}
Context.prototype = {
constructor: Context,
reset: function(skipTempReset) {
this.prev = 0;
this.next = 0;
// Resetting context._sent for legacy support of Babel's
// function.sent implementation.
this.sent = this._sent = undefined;
this.done = false;
this.delegate = null;
this.method = "next";
this.arg = undefined;
this.tryEntries.forEach(resetTryEntry);
if (!skipTempReset) {
for (var name in this) {
// Not sure about the optimal order of these conditions:
if (name.charAt(0) === "t" &&
hasOwn.call(this, name) &&
!isNaN(+name.slice(1))) {
this[name] = undefined;
}
}
}
},
stop: function() {
this.done = true;
var rootEntry = this.tryEntries[0];
var rootRecord = rootEntry.completion;
if (rootRecord.type === "throw") {
throw rootRecord.arg;
}
return this.rval;
},
dispatchException: function(exception) {
if (this.done) {
throw exception;
}
var context = this;
function handle(loc, caught) {
record.type = "throw";
record.arg = exception;
context.next = loc;
if (caught) {
// If the dispatched exception was caught by a catch block,
// then let that catch block handle the exception normally.
context.method = "next";
context.arg = undefined;
}
return !! caught;
}
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
var record = entry.completion;
if (entry.tryLoc === "root") {
// Exception thrown outside of any try block that could handle
// it, so set the completion value of the entire function to
// throw the exception.
return handle("end");
}
if (entry.tryLoc <= this.prev) {
var hasCatch = hasOwn.call(entry, "catchLoc");
var hasFinally = hasOwn.call(entry, "finallyLoc");
if (hasCatch && hasFinally) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
} else if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else if (hasCatch) {
if (this.prev < entry.catchLoc) {
return handle(entry.catchLoc, true);
}
} else if (hasFinally) {
if (this.prev < entry.finallyLoc) {
return handle(entry.finallyLoc);
}
} else {
throw new Error("try statement without catch or finally");
}
}
}
},
abrupt: function(type, arg) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc <= this.prev &&
hasOwn.call(entry, "finallyLoc") &&
this.prev < entry.finallyLoc) {
var finallyEntry = entry;
break;
}
}
if (finallyEntry &&
(type === "break" ||
type === "continue") &&
finallyEntry.tryLoc <= arg &&
arg <= finallyEntry.finallyLoc) {
// Ignore the finally entry if control is not jumping to a
// location outside the try/catch block.
finallyEntry = null;
}
var record = finallyEntry ? finallyEntry.completion : {};
record.type = type;
record.arg = arg;
if (finallyEntry) {
this.method = "next";
this.next = finallyEntry.finallyLoc;
return ContinueSentinel;
}
return this.complete(record);
},
complete: function(record, afterLoc) {
if (record.type === "throw") {
throw record.arg;
}
if (record.type === "break" ||
record.type === "continue") {
this.next = record.arg;
} else if (record.type === "return") {
this.rval = this.arg = record.arg;
this.method = "return";
this.next = "end";
} else if (record.type === "normal" && afterLoc) {
this.next = afterLoc;
}
return ContinueSentinel;
},
finish: function(finallyLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.finallyLoc === finallyLoc) {
this.complete(entry.completion, entry.afterLoc);
resetTryEntry(entry);
return ContinueSentinel;
}
}
},
"catch": function(tryLoc) {
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
var entry = this.tryEntries[i];
if (entry.tryLoc === tryLoc) {
var record = entry.completion;
if (record.type === "throw") {
var thrown = record.arg;
resetTryEntry(entry);
}
return thrown;
}
}
// The context.catch method must only be called with a location
// argument that corresponds to a known catch block.
throw new Error("illegal catch attempt");
},
delegateYield: function(iterable, resultName, nextLoc) {
this.delegate = {
iterator: values(iterable),
resultName: resultName,
nextLoc: nextLoc
};
if (this.method === "next") {
// Deliberately forget the last sent value so that we don't
// accidentally pass it on to the delegate.
this.arg = undefined;
}
return ContinueSentinel;
}
};
})(
// In sloppy mode, unbound `this` refers to the global object, fallback to
// Function constructor if we're in global strict mode. That is sadly a form
// of indirect eval which violates Content Security Policy.
(function() { return this })() || Function("return this")()
);
/***/ }),
/***/ "9911":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var createHTML = __webpack_require__("857a");
var forcedStringHTMLMethod = __webpack_require__("af03");
// `String.prototype.link` method
// https://tc39.github.io/ecma262/#sec-string.prototype.link
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('link') }, {
link: function link(url) {
return createHTML(this, 'a', 'href', url);
}
});
/***/ }),
/***/ "99af":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var fails = __webpack_require__("d039");
var isArray = __webpack_require__("e8b5");
var isObject = __webpack_require__("861d");
var toObject = __webpack_require__("7b0b");
var toLength = __webpack_require__("50c4");
var createProperty = __webpack_require__("8418");
var arraySpeciesCreate = __webpack_require__("65f0");
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
var wellKnownSymbol = __webpack_require__("b622");
var V8_VERSION = __webpack_require__("2d00");
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
// We can't use this feature detection in V8 since it causes
// deoptimization and serious performance degradation
// https://github.com/zloirock/core-js/issues/679
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
var array = [];
array[IS_CONCAT_SPREADABLE] = false;
return array.concat()[0] !== array;
});
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
var isConcatSpreadable = function (O) {
if (!isObject(O)) return false;
var spreadable = O[IS_CONCAT_SPREADABLE];
return spreadable !== undefined ? !!spreadable : isArray(O);
};
var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
// `Array.prototype.concat` method
// https://tc39.github.io/ecma262/#sec-array.prototype.concat
// with adding support of @@isConcatSpreadable and @@species
$({ target: 'Array', proto: true, forced: FORCED }, {
concat: function concat(arg) { // eslint-disable-line no-unused-vars
var O = toObject(this);
var A = arraySpeciesCreate(O, 0);
var n = 0;
var i, k, length, len, E;
for (i = -1, length = arguments.length; i < length; i++) {
E = i === -1 ? O : arguments[i];
if (isConcatSpreadable(E)) {
len = toLength(E.length);
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
} else {
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
createProperty(A, n++, E);
}
}
A.length = n;
return A;
}
});
/***/ }),
/***/ "9bdd":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("825a");
// call something on iterator step with safe closing on error
module.exports = function (iterator, fn, value, ENTRIES) {
try {
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
// 7.4.6 IteratorClose(iterator, completion)
} catch (error) {
var returnMethod = iterator['return'];
if (returnMethod !== undefined) anObject(returnMethod.call(iterator));
throw error;
}
};
/***/ }),
/***/ "9bf2":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("83ab");
var IE8_DOM_DEFINE = __webpack_require__("0cfb");
var anObject = __webpack_require__("825a");
var toPrimitive = __webpack_require__("c04e");
var nativeDefineProperty = Object.defineProperty;
// `Object.defineProperty` method
// https://tc39.github.io/ecma262/#sec-object.defineproperty
exports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (IE8_DOM_DEFINE) try {
return nativeDefineProperty(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};
/***/ }),
/***/ "9ed3":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var IteratorPrototype = __webpack_require__("ae93").IteratorPrototype;
var create = __webpack_require__("7c73");
var createPropertyDescriptor = __webpack_require__("5c6c");
var setToStringTag = __webpack_require__("d44e");
var Iterators = __webpack_require__("3f8c");
var returnThis = function () { return this; };
module.exports = function (IteratorConstructor, NAME, next) {
var TO_STRING_TAG = NAME + ' Iterator';
IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });
setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);
Iterators[TO_STRING_TAG] = returnThis;
return IteratorConstructor;
};
/***/ }),
/***/ "9f7f":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fails = __webpack_require__("d039");
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
// so we use an intermediate function.
function RE(s, f) {
return RegExp(s, f);
}
exports.UNSUPPORTED_Y = fails(function () {
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
var re = RE('a', 'y');
re.lastIndex = 2;
return re.exec('abcd') != null;
});
exports.BROKEN_CARET = fails(function () {
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
var re = RE('^r', 'gy');
re.lastIndex = 2;
return re.exec('str') != null;
});
/***/ }),
/***/ "a15b":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var IndexedObject = __webpack_require__("44ad");
var toIndexedObject = __webpack_require__("fc6a");
var arrayMethodIsStrict = __webpack_require__("a640");
var nativeJoin = [].join;
var ES3_STRINGS = IndexedObject != Object;
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
// `Array.prototype.join` method
// https://tc39.github.io/ecma262/#sec-array.prototype.join
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
join: function join(separator) {
return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
}
});
/***/ }),
/***/ "a2bf":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var isArray = __webpack_require__("e8b5");
var toLength = __webpack_require__("50c4");
var bind = __webpack_require__("0366");
// `FlattenIntoArray` abstract operation
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
var flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
var targetIndex = start;
var sourceIndex = 0;
var mapFn = mapper ? bind(mapper, thisArg, 3) : false;
var element;
while (sourceIndex < sourceLen) {
if (sourceIndex in source) {
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
if (depth > 0 && isArray(element)) {
targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;
} else {
if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');
target[targetIndex] = element;
}
targetIndex++;
}
sourceIndex++;
}
return targetIndex;
};
module.exports = flattenIntoArray;
/***/ }),
/***/ "a434":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var toAbsoluteIndex = __webpack_require__("23cb");
var toInteger = __webpack_require__("a691");
var toLength = __webpack_require__("50c4");
var toObject = __webpack_require__("7b0b");
var arraySpeciesCreate = __webpack_require__("65f0");
var createProperty = __webpack_require__("8418");
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
var USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });
var max = Math.max;
var min = Math.min;
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
// `Array.prototype.splice` method
// https://tc39.github.io/ecma262/#sec-array.prototype.splice
// with adding support of @@species
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
splice: function splice(start, deleteCount /* , ...items */) {
var O = toObject(this);
var len = toLength(O.length);
var actualStart = toAbsoluteIndex(start, len);
var argumentsLength = arguments.length;
var insertCount, actualDeleteCount, A, k, from, to;
if (argumentsLength === 0) {
insertCount = actualDeleteCount = 0;
} else if (argumentsLength === 1) {
insertCount = 0;
actualDeleteCount = len - actualStart;
} else {
insertCount = argumentsLength - 2;
actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
}
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
}
A = arraySpeciesCreate(O, actualDeleteCount);
for (k = 0; k < actualDeleteCount; k++) {
from = actualStart + k;
if (from in O) createProperty(A, k, O[from]);
}
A.length = actualDeleteCount;
if (insertCount < actualDeleteCount) {
for (k = actualStart; k < len - actualDeleteCount; k++) {
from = k + actualDeleteCount;
to = k + insertCount;
if (from in O) O[to] = O[from];
else delete O[to];
}
for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
} else if (insertCount > actualDeleteCount) {
for (k = len - actualDeleteCount; k > actualStart; k--) {
from = k + actualDeleteCount - 1;
to = k + insertCount - 1;
if (from in O) O[to] = O[from];
else delete O[to];
}
}
for (k = 0; k < insertCount; k++) {
O[k + actualStart] = arguments[k + 2];
}
O.length = len - actualDeleteCount + insertCount;
return A;
}
});
/***/ }),
/***/ "a4d3":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var global = __webpack_require__("da84");
var getBuiltIn = __webpack_require__("d066");
var IS_PURE = __webpack_require__("c430");
var DESCRIPTORS = __webpack_require__("83ab");
var NATIVE_SYMBOL = __webpack_require__("4930");
var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
var fails = __webpack_require__("d039");
var has = __webpack_require__("5135");
var isArray = __webpack_require__("e8b5");
var isObject = __webpack_require__("861d");
var anObject = __webpack_require__("825a");
var toObject = __webpack_require__("7b0b");
var toIndexedObject = __webpack_require__("fc6a");
var toPrimitive = __webpack_require__("c04e");
var createPropertyDescriptor = __webpack_require__("5c6c");
var nativeObjectCreate = __webpack_require__("7c73");
var objectKeys = __webpack_require__("df75");
var getOwnPropertyNamesModule = __webpack_require__("241c");
var getOwnPropertyNamesExternal = __webpack_require__("057f");
var getOwnPropertySymbolsModule = __webpack_require__("7418");
var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
var definePropertyModule = __webpack_require__("9bf2");
var propertyIsEnumerableModule = __webpack_require__("d1e7");
var createNonEnumerableProperty = __webpack_require__("9112");
var redefine = __webpack_require__("6eeb");
var shared = __webpack_require__("5692");
var sharedKey = __webpack_require__("f772");
var hiddenKeys = __webpack_require__("d012");
var uid = __webpack_require__("90e3");
var wellKnownSymbol = __webpack_require__("b622");
var wrappedWellKnownSymbolModule = __webpack_require__("e538");
var defineWellKnownSymbol = __webpack_require__("746f");
var setToStringTag = __webpack_require__("d44e");
var InternalStateModule = __webpack_require__("69f3");
var $forEach = __webpack_require__("b727").forEach;
var HIDDEN = sharedKey('hidden');
var SYMBOL = 'Symbol';
var PROTOTYPE = 'prototype';
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(SYMBOL);
var ObjectPrototype = Object[PROTOTYPE];
var $Symbol = global.Symbol;
var $stringify = getBuiltIn('JSON', 'stringify');
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
var nativePropertyIsEnumerable = propertyIsEnumerableModule.f;
var AllSymbols = shared('symbols');
var ObjectPrototypeSymbols = shared('op-symbols');
var StringToSymbolRegistry = shared('string-to-symbol-registry');
var SymbolToStringRegistry = shared('symbol-to-string-registry');
var WellKnownSymbolsStore = shared('wks');
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDescriptor = DESCRIPTORS && fails(function () {
return nativeObjectCreate(nativeDefineProperty({}, 'a', {
get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }
})).a != 7;
}) ? function (O, P, Attributes) {
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);
if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
nativeDefineProperty(O, P, Attributes);
if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);
}
} : nativeDefineProperty;
var wrap = function (tag, description) {
var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);
setInternalState(symbol, {
type: SYMBOL,
tag: tag,
description: description
});
if (!DESCRIPTORS) symbol.description = description;
return symbol;
};
var isSymbol = USE_SYMBOL_AS_UID ? function (it) {
return typeof it == 'symbol';
} : function (it) {
return Object(it) instanceof $Symbol;
};
var $defineProperty = function defineProperty(O, P, Attributes) {
if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
anObject(O);
var key = toPrimitive(P, true);
anObject(Attributes);
if (has(AllSymbols, key)) {
if (!Attributes.enumerable) {
if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));
O[HIDDEN][key] = true;
} else {
if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
} return setSymbolDescriptor(O, key, Attributes);
} return nativeDefineProperty(O, key, Attributes);
};
var $defineProperties = function defineProperties(O, Properties) {
anObject(O);
var properties = toIndexedObject(Properties);
var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
$forEach(keys, function (key) {
if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
});
return O;
};
var $create = function create(O, Properties) {
return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);
};
var $propertyIsEnumerable = function propertyIsEnumerable(V) {
var P = toPrimitive(V, true);
var enumerable = nativePropertyIsEnumerable.call(this, P);
if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
var it = toIndexedObject(O);
var key = toPrimitive(P, true);
if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
var descriptor = nativeGetOwnPropertyDescriptor(it, key);
if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
descriptor.enumerable = true;
}
return descriptor;
};
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
var names = nativeGetOwnPropertyNames(toIndexedObject(O));
var result = [];
$forEach(names, function (key) {
if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
});
return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
var result = [];
$forEach(names, function (key) {
if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
result.push(AllSymbols[key]);
}
});
return result;
};
// `Symbol` constructor
// https://tc39.github.io/ecma262/#sec-symbol-constructor
if (!NATIVE_SYMBOL) {
$Symbol = function Symbol() {
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
var tag = uid(description);
var setter = function (value) {
if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
};
if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
return wrap(tag, description);
};
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
return getInternalState(this).tag;
});
redefine($Symbol, 'withoutSetter', function (description) {
return wrap(uid(description), description);
});
propertyIsEnumerableModule.f = $propertyIsEnumerable;
definePropertyModule.f = $defineProperty;
getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;
getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;
wrappedWellKnownSymbolModule.f = function (name) {
return wrap(wellKnownSymbol(name), name);
};
if (DESCRIPTORS) {
// https://github.com/tc39/proposal-Symbol-description
nativeDefineProperty($Symbol[PROTOTYPE], 'description', {
configurable: true,
get: function description() {
return getInternalState(this).description;
}
});
if (!IS_PURE) {
redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
}
}
}
$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {
Symbol: $Symbol
});
$forEach(objectKeys(WellKnownSymbolsStore), function (name) {
defineWellKnownSymbol(name);
});
$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {
// `Symbol.for` method
// https://tc39.github.io/ecma262/#sec-symbol.for
'for': function (key) {
var string = String(key);
if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
var symbol = $Symbol(string);
StringToSymbolRegistry[string] = symbol;
SymbolToStringRegistry[symbol] = string;
return symbol;
},
// `Symbol.keyFor` method
// https://tc39.github.io/ecma262/#sec-symbol.keyfor
keyFor: function keyFor(sym) {
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
},
useSetter: function () { USE_SETTER = true; },
useSimple: function () { USE_SETTER = false; }
});
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {
// `Object.create` method
// https://tc39.github.io/ecma262/#sec-object.create
create: $create,
// `Object.defineProperty` method
// https://tc39.github.io/ecma262/#sec-object.defineproperty
defineProperty: $defineProperty,
// `Object.defineProperties` method
// https://tc39.github.io/ecma262/#sec-object.defineproperties
defineProperties: $defineProperties,
// `Object.getOwnPropertyDescriptor` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
getOwnPropertyDescriptor: $getOwnPropertyDescriptor
});
$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {
// `Object.getOwnPropertyNames` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
getOwnPropertyNames: $getOwnPropertyNames,
// `Object.getOwnPropertySymbols` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
getOwnPropertySymbols: $getOwnPropertySymbols
});
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
return getOwnPropertySymbolsModule.f(toObject(it));
}
});
// `JSON.stringify` method behavior with symbols
// https://tc39.github.io/ecma262/#sec-json.stringify
if ($stringify) {
var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {
var symbol = $Symbol();
// MS Edge converts symbol values to JSON as {}
return $stringify([symbol]) != '[null]'
// WebKit converts symbol values to JSON as null
|| $stringify({ a: symbol }) != '{}'
// V8 throws on boxed symbols
|| $stringify(Object(symbol)) != '{}';
});
$({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
// eslint-disable-next-line no-unused-vars
stringify: function stringify(it, replacer, space) {
var args = [it];
var index = 1;
var $replacer;
while (arguments.length > index) args.push(arguments[index++]);
$replacer = replacer;
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
if (!isArray(replacer)) replacer = function (key, value) {
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
if (!isSymbol(value)) return value;
};
args[1] = replacer;
return $stringify.apply(null, args);
}
});
}
// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
if (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {
createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
}
// `Symbol.prototype[@@toStringTag]` property
// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
setToStringTag($Symbol, SYMBOL);
hiddenKeys[HIDDEN] = true;
/***/ }),
/***/ "a623":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $every = __webpack_require__("b727").every;
var arrayMethodIsStrict = __webpack_require__("a640");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var STRICT_METHOD = arrayMethodIsStrict('every');
var USES_TO_LENGTH = arrayMethodUsesToLength('every');
// `Array.prototype.every` method
// https://tc39.github.io/ecma262/#sec-array.prototype.every
$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {
every: function every(callbackfn /* , thisArg */) {
return $every(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/***/ "a630":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var from = __webpack_require__("4df4");
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
Array.from(iterable);
});
// `Array.from` method
// https://tc39.github.io/ecma262/#sec-array.from
$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
from: from
});
/***/ }),
/***/ "a640":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fails = __webpack_require__("d039");
module.exports = function (METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !!method && fails(function () {
// eslint-disable-next-line no-useless-call,no-throw-literal
method.call(null, argument || function () { throw 1; }, 1);
});
};
/***/ }),
/***/ "a691":
/***/ (function(module, exports) {
var ceil = Math.ceil;
var floor = Math.floor;
// `ToInteger` abstract operation
// https://tc39.github.io/ecma262/#sec-tointeger
module.exports = function (argument) {
return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
};
/***/ }),
/***/ "a9e3":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DESCRIPTORS = __webpack_require__("83ab");
var global = __webpack_require__("da84");
var isForced = __webpack_require__("94ca");
var redefine = __webpack_require__("6eeb");
var has = __webpack_require__("5135");
var classof = __webpack_require__("c6b6");
var inheritIfRequired = __webpack_require__("7156");
var toPrimitive = __webpack_require__("c04e");
var fails = __webpack_require__("d039");
var create = __webpack_require__("7c73");
var getOwnPropertyNames = __webpack_require__("241c").f;
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
var defineProperty = __webpack_require__("9bf2").f;
var trim = __webpack_require__("58a8").trim;
var NUMBER = 'Number';
var NativeNumber = global[NUMBER];
var NumberPrototype = NativeNumber.prototype;
// Opera ~12 has broken Object#toString
var BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;
// `ToNumber` abstract operation
// https://tc39.github.io/ecma262/#sec-tonumber
var toNumber = function (argument) {
var it = toPrimitive(argument, false);
var first, third, radix, maxCode, digits, length, index, code;
if (typeof it == 'string' && it.length > 2) {
it = trim(it);
first = it.charCodeAt(0);
if (first === 43 || first === 45) {
third = it.charCodeAt(2);
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
} else if (first === 48) {
switch (it.charCodeAt(1)) {
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
default: return +it;
}
digits = it.slice(2);
length = digits.length;
for (index = 0; index < length; index++) {
code = digits.charCodeAt(index);
// parseInt parses a string to a first unavailable symbol
// but ToNumber should return NaN if a string contains unavailable symbols
if (code < 48 || code > maxCode) return NaN;
} return parseInt(digits, radix);
}
} return +it;
};
// `Number` constructor
// https://tc39.github.io/ecma262/#sec-number-constructor
if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
var NumberWrapper = function Number(value) {
var it = arguments.length < 1 ? 0 : value;
var dummy = this;
return dummy instanceof NumberWrapper
// check on 1..constructor(foo) case
&& (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER)
? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
};
for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
// ES3:
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
// ES2015 (in case, if modules with ES2015 Number statics required before):
'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
).split(','), j = 0, key; keys.length > j; j++) {
if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {
defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
}
}
NumberWrapper.prototype = NumberPrototype;
NumberPrototype.constructor = NumberWrapper;
redefine(global, NUMBER, NumberWrapper);
}
/***/ }),
/***/ "ab13":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("b622");
var MATCH = wellKnownSymbol('match');
module.exports = function (METHOD_NAME) {
var regexp = /./;
try {
'/./'[METHOD_NAME](regexp);
} catch (e) {
try {
regexp[MATCH] = false;
return '/./'[METHOD_NAME](regexp);
} catch (f) { /* empty */ }
} return false;
};
/***/ }),
/***/ "ac1f":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var exec = __webpack_require__("9263");
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
exec: exec
});
/***/ }),
/***/ "ad6d":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var anObject = __webpack_require__("825a");
// `RegExp.prototype.flags` getter implementation
// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
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.dotAll) result += 's';
if (that.unicode) result += 'u';
if (that.sticky) result += 'y';
return result;
};
/***/ }),
/***/ "ae40":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("83ab");
var fails = __webpack_require__("d039");
var has = __webpack_require__("5135");
var defineProperty = Object.defineProperty;
var cache = {};
var thrower = function (it) { throw it; };
module.exports = function (METHOD_NAME, options) {
if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];
if (!options) options = {};
var method = [][METHOD_NAME];
var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;
var argument0 = has(options, 0) ? options[0] : thrower;
var argument1 = has(options, 1) ? options[1] : undefined;
return cache[METHOD_NAME] = !!method && !fails(function () {
if (ACCESSORS && !DESCRIPTORS) return true;
var O = { length: -1 };
if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });
else O[1] = 1;
method.call(O, argument0, argument1);
});
};
/***/ }),
/***/ "ae93":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getPrototypeOf = __webpack_require__("e163");
var createNonEnumerableProperty = __webpack_require__("9112");
var has = __webpack_require__("5135");
var wellKnownSymbol = __webpack_require__("b622");
var IS_PURE = __webpack_require__("c430");
var ITERATOR = wellKnownSymbol('iterator');
var BUGGY_SAFARI_ITERATORS = false;
var returnThis = function () { return this; };
// `%IteratorPrototype%` object
// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
if ([].keys) {
arrayIterator = [].keys();
// Safari 8 has buggy iterators w/o `next`
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
else {
PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
}
}
if (IteratorPrototype == undefined) IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
if (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {
createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
}
module.exports = {
IteratorPrototype: IteratorPrototype,
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
};
/***/ }),
/***/ "af03":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
// check the existence of a method, lowercase
// of a tag and escaping quotes in arguments
module.exports = function (METHOD_NAME) {
return fails(function () {
var test = ''[METHOD_NAME]('"');
return test !== test.toLowerCase() || test.split('"').length > 3;
});
};
/***/ }),
/***/ "b041":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
var classof = __webpack_require__("f5df");
// `Object.prototype.toString` method implementation
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {
return '[object ' + classof(this) + ']';
};
/***/ }),
/***/ "b0c0":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("83ab");
var defineProperty = __webpack_require__("9bf2").f;
var FunctionPrototype = Function.prototype;
var FunctionPrototypeToString = FunctionPrototype.toString;
var nameRE = /^\s*function ([^ (]*)/;
var NAME = 'name';
// Function instances `.name` property
// https://tc39.github.io/ecma262/#sec-function-instances-name
if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
defineProperty(FunctionPrototype, NAME, {
configurable: true,
get: function () {
try {
return FunctionPrototypeToString.call(this).match(nameRE)[1];
} catch (error) {
return '';
}
}
});
}
/***/ }),
/***/ "b575":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
var classof = __webpack_require__("c6b6");
var macrotask = __webpack_require__("2cf4").set;
var IS_IOS = __webpack_require__("1cdc");
var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
var process = global.process;
var Promise = global.Promise;
var IS_NODE = classof(process) == 'process';
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
var flush, head, last, notify, toggle, node, promise, then;
// modern engines have queueMicrotask method
if (!queueMicrotask) {
flush = function () {
var parent, fn;
if (IS_NODE && (parent = process.domain)) parent.exit();
while (head) {
fn = head.fn;
head = head.next;
try {
fn();
} catch (error) {
if (head) notify();
else last = undefined;
throw error;
}
} last = undefined;
if (parent) parent.enter();
};
// Node.js
if (IS_NODE) {
notify = function () {
process.nextTick(flush);
};
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
} else if (MutationObserver && !IS_IOS) {
toggle = true;
node = document.createTextNode('');
new MutationObserver(flush).observe(node, { characterData: true });
notify = function () {
node.data = toggle = !toggle;
};
// environments with maybe non-completely correct, but existent Promise
} else if (Promise && Promise.resolve) {
// Promise.resolve without an argument throws an error in LG WebOS 2
promise = Promise.resolve(undefined);
then = promise.then;
notify = function () {
then.call(promise, flush);
};
// for other environments - macrotask based on:
// - setImmediate
// - MessageChannel
// - window.postMessag
// - onreadystatechange
// - setTimeout
} else {
notify = function () {
// strange IE + webpack dev server bug - use .call(global)
macrotask.call(global, flush);
};
}
}
module.exports = queueMicrotask || function (fn) {
var task = { fn: fn, next: undefined };
if (last) last.next = task;
if (!head) {
head = task;
notify();
} last = task;
};
/***/ }),
/***/ "b622":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var shared = __webpack_require__("5692");
var has = __webpack_require__("5135");
var uid = __webpack_require__("90e3");
var NATIVE_SYMBOL = __webpack_require__("4930");
var USE_SYMBOL_AS_UID = __webpack_require__("fdbf");
var WellKnownSymbolsStore = shared('wks');
var Symbol = global.Symbol;
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
module.exports = function (name) {
if (!has(WellKnownSymbolsStore, name)) {
if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];
else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
} return WellKnownSymbolsStore[name];
};
/***/ }),
/***/ "b64b":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var toObject = __webpack_require__("7b0b");
var nativeKeys = __webpack_require__("df75");
var fails = __webpack_require__("d039");
var FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });
// `Object.keys` method
// https://tc39.github.io/ecma262/#sec-object.keys
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
keys: function keys(it) {
return nativeKeys(toObject(it));
}
});
/***/ }),
/***/ "b680":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var toInteger = __webpack_require__("a691");
var thisNumberValue = __webpack_require__("408a");
var repeat = __webpack_require__("1148");
var fails = __webpack_require__("d039");
var nativeToFixed = 1.0.toFixed;
var floor = Math.floor;
var pow = function (x, n, acc) {
return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);
};
var log = function (x) {
var n = 0;
var x2 = x;
while (x2 >= 4096) {
n += 12;
x2 /= 4096;
}
while (x2 >= 2) {
n += 1;
x2 /= 2;
} return n;
};
var FORCED = nativeToFixed && (
0.00008.toFixed(3) !== '0.000' ||
0.9.toFixed(0) !== '1' ||
1.255.toFixed(2) !== '1.25' ||
1000000000000000128.0.toFixed(0) !== '1000000000000000128'
) || !fails(function () {
// V8 ~ Android 4.3-
nativeToFixed.call({});
});
// `Number.prototype.toFixed` method
// https://tc39.github.io/ecma262/#sec-number.prototype.tofixed
$({ target: 'Number', proto: true, forced: FORCED }, {
// eslint-disable-next-line max-statements
toFixed: function toFixed(fractionDigits) {
var number = thisNumberValue(this);
var fractDigits = toInteger(fractionDigits);
var data = [0, 0, 0, 0, 0, 0];
var sign = '';
var result = '0';
var e, z, j, k;
var multiply = function (n, c) {
var index = -1;
var c2 = c;
while (++index < 6) {
c2 += n * data[index];
data[index] = c2 % 1e7;
c2 = floor(c2 / 1e7);
}
};
var divide = function (n) {
var index = 6;
var c = 0;
while (--index >= 0) {
c += data[index];
data[index] = floor(c / n);
c = (c % n) * 1e7;
}
};
var dataToString = function () {
var index = 6;
var s = '';
while (--index >= 0) {
if (s !== '' || index === 0 || data[index] !== 0) {
var t = String(data[index]);
s = s === '' ? t : s + repeat.call('0', 7 - t.length) + t;
}
} return s;
};
if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');
// eslint-disable-next-line no-self-compare
if (number != number) return 'NaN';
if (number <= -1e21 || number >= 1e21) return String(number);
if (number < 0) {
sign = '-';
number = -number;
}
if (number > 1e-21) {
e = log(number * pow(2, 69, 1)) - 69;
z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);
z *= 0x10000000000000;
e = 52 - e;
if (e > 0) {
multiply(0, z);
j = fractDigits;
while (j >= 7) {
multiply(1e7, 0);
j -= 7;
}
multiply(pow(10, j, 1), 0);
j = e - 1;
while (j >= 23) {
divide(1 << 23);
j -= 23;
}
divide(1 << j);
multiply(1, 1);
divide(2);
result = dataToString();
} else {
multiply(0, z);
multiply(1 << -e, 0);
result = dataToString() + repeat.call('0', fractDigits);
}
}
if (fractDigits > 0) {
k = result.length;
result = sign + (k <= fractDigits
? '0.' + repeat.call('0', fractDigits - k) + result
: result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));
} else {
result = sign + result;
} return result;
}
});
/***/ }),
/***/ "b727":
/***/ (function(module, exports, __webpack_require__) {
var bind = __webpack_require__("0366");
var IndexedObject = __webpack_require__("44ad");
var toObject = __webpack_require__("7b0b");
var toLength = __webpack_require__("50c4");
var arraySpeciesCreate = __webpack_require__("65f0");
var push = [].push;
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
var createMethod = function (TYPE) {
var IS_MAP = TYPE == 1;
var IS_FILTER = TYPE == 2;
var IS_SOME = TYPE == 3;
var IS_EVERY = TYPE == 4;
var IS_FIND_INDEX = TYPE == 6;
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
return function ($this, callbackfn, that, specificCreate) {
var O = toObject($this);
var self = IndexedObject(O);
var boundFunction = bind(callbackfn, that, 3);
var length = toLength(self.length);
var index = 0;
var create = specificCreate || arraySpeciesCreate;
var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
var value, result;
for (;length > index; index++) if (NO_HOLES || index in self) {
value = self[index];
result = boundFunction(value, index, O);
if (TYPE) {
if (IS_MAP) target[index] = result; // map
else if (result) switch (TYPE) {
case 3: return true; // some
case 5: return value; // find
case 6: return index; // findIndex
case 2: push.call(target, value); // filter
} else if (IS_EVERY) return false; // every
}
}
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
};
};
module.exports = {
// `Array.prototype.forEach` method
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
forEach: createMethod(0),
// `Array.prototype.map` method
// https://tc39.github.io/ecma262/#sec-array.prototype.map
map: createMethod(1),
// `Array.prototype.filter` method
// https://tc39.github.io/ecma262/#sec-array.prototype.filter
filter: createMethod(2),
// `Array.prototype.some` method
// https://tc39.github.io/ecma262/#sec-array.prototype.some
some: createMethod(3),
// `Array.prototype.every` method
// https://tc39.github.io/ecma262/#sec-array.prototype.every
every: createMethod(4),
// `Array.prototype.find` method
// https://tc39.github.io/ecma262/#sec-array.prototype.find
find: createMethod(5),
// `Array.prototype.findIndex` method
// https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
findIndex: createMethod(6)
};
/***/ }),
/***/ "bb2f":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
module.exports = !fails(function () {
return Object.isExtensible(Object.preventExtensions({}));
});
/***/ }),
/***/ "c04e":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("861d");
// `ToPrimitive` abstract operation
// https://tc39.github.io/ecma262/#sec-toprimitive
// 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 (input, PREFERRED_STRING) {
if (!isObject(input)) return input;
var fn, val;
if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
throw TypeError("Can't convert object to primitive value");
};
/***/ }),
/***/ "c430":
/***/ (function(module, exports) {
module.exports = false;
/***/ }),
/***/ "c6b6":
/***/ (function(module, exports) {
var toString = {}.toString;
module.exports = function (it) {
return toString.call(it).slice(8, -1);
};
/***/ }),
/***/ "c6cd":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var setGlobal = __webpack_require__("ce4e");
var SHARED = '__core-js_shared__';
var store = global[SHARED] || setGlobal(SHARED, {});
module.exports = store;
/***/ }),
/***/ "c740":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $findIndex = __webpack_require__("b727").findIndex;
var addToUnscopables = __webpack_require__("44d2");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var FIND_INDEX = 'findIndex';
var SKIPS_HOLES = true;
var USES_TO_LENGTH = arrayMethodUsesToLength(FIND_INDEX);
// Shouldn't skip holes
if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });
// `Array.prototype.findIndex` method
// https://tc39.github.io/ecma262/#sec-array.prototype.findindex
$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
findIndex: function findIndex(callbackfn /* , that = undefined */) {
return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables(FIND_INDEX);
/***/ }),
/***/ "c7cd":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var createHTML = __webpack_require__("857a");
var forcedStringHTMLMethod = __webpack_require__("af03");
// `String.prototype.fixed` method
// https://tc39.github.io/ecma262/#sec-string.prototype.fixed
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('fixed') }, {
fixed: function fixed() {
return createHTML(this, 'tt', '', '');
}
});
/***/ }),
/***/ "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;
/***/ }),
/***/ "c8d2":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
var whitespaces = __webpack_require__("5899");
var non = '\u200B\u0085\u180E';
// check that a method works with the correct list
// of whitespaces and has a correct name
module.exports = function (METHOD_NAME) {
return fails(function () {
return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
});
};
/***/ }),
/***/ "c96a":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var createHTML = __webpack_require__("857a");
var forcedStringHTMLMethod = __webpack_require__("af03");
// `String.prototype.small` method
// https://tc39.github.io/ecma262/#sec-string.prototype.small
$({ target: 'String', proto: true, forced: forcedStringHTMLMethod('small') }, {
small: function small() {
return createHTML(this, 'small', '', '');
}
});
/***/ }),
/***/ "c975":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $indexOf = __webpack_require__("4d64").indexOf;
var arrayMethodIsStrict = __webpack_require__("a640");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var nativeIndexOf = [].indexOf;
var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
var STRICT_METHOD = arrayMethodIsStrict('indexOf');
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
// `Array.prototype.indexOf` method
// https://tc39.github.io/ecma262/#sec-array.prototype.indexof
$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH }, {
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
return NEGATIVE_ZERO
// convert -0 to +0
? nativeIndexOf.apply(this, arguments) || 0
: $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/***/ "ca84":
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__("5135");
var toIndexedObject = __webpack_require__("fc6a");
var indexOf = __webpack_require__("4d64").indexOf;
var hiddenKeys = __webpack_require__("d012");
module.exports = function (object, names) {
var O = toIndexedObject(object);
var i = 0;
var result = [];
var key;
for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
// Don't enum bug & hidden keys
while (names.length > i) if (has(O, key = names[i++])) {
~indexOf(result, key) || result.push(key);
}
return result;
};
/***/ }),
/***/ "caad":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $includes = __webpack_require__("4d64").includes;
var addToUnscopables = __webpack_require__("44d2");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });
// `Array.prototype.includes` method
// https://tc39.github.io/ecma262/#sec-array.prototype.includes
$({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {
includes: function includes(el /* , fromIndex = 0 */) {
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
}
});
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('includes');
/***/ }),
/***/ "cb29":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var fill = __webpack_require__("81d5");
var addToUnscopables = __webpack_require__("44d2");
// `Array.prototype.fill` method
// https://tc39.github.io/ecma262/#sec-array.prototype.fill
$({ target: 'Array', proto: true }, {
fill: fill
});
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('fill');
/***/ }),
/***/ "cc12":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var isObject = __webpack_require__("861d");
var document = global.document;
// typeof document.createElement is 'object' in old IE
var EXISTS = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
return EXISTS ? document.createElement(it) : {};
};
/***/ }),
/***/ "cca6":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var assign = __webpack_require__("60da");
// `Object.assign` method
// https://tc39.github.io/ecma262/#sec-object.assign
$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
assign: assign
});
/***/ }),
/***/ "cdf9":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("825a");
var isObject = __webpack_require__("861d");
var newPromiseCapability = __webpack_require__("f069");
module.exports = function (C, x) {
anObject(C);
if (isObject(x) && x.constructor === C) return x;
var promiseCapability = newPromiseCapability.f(C);
var resolve = promiseCapability.resolve;
resolve(x);
return promiseCapability.promise;
};
/***/ }),
/***/ "ce4e":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var createNonEnumerableProperty = __webpack_require__("9112");
module.exports = function (key, value) {
try {
createNonEnumerableProperty(global, key, value);
} catch (error) {
global[key] = value;
} return value;
};
/***/ }),
/***/ "cf36":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "d012":
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
/***/ "d039":
/***/ (function(module, exports) {
module.exports = function (exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};
/***/ }),
/***/ "d066":
/***/ (function(module, exports, __webpack_require__) {
var path = __webpack_require__("428f");
var global = __webpack_require__("da84");
var aFunction = function (variable) {
return typeof variable == 'function' ? variable : undefined;
};
module.exports = function (namespace, method) {
return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
: path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
};
/***/ }),
/***/ "d191":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "d1e7":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
// `Object.prototype.propertyIsEnumerable` method implementation
// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
var descriptor = getOwnPropertyDescriptor(this, V);
return !!descriptor && descriptor.enumerable;
} : nativePropertyIsEnumerable;
/***/ }),
/***/ "d28b":
/***/ (function(module, exports, __webpack_require__) {
var defineWellKnownSymbol = __webpack_require__("746f");
// `Symbol.iterator` well-known symbol
// https://tc39.github.io/ecma262/#sec-symbol.iterator
defineWellKnownSymbol('iterator');
/***/ }),
/***/ "d2bb":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("825a");
var aPossiblePrototype = __webpack_require__("3bbe");
// `Object.setPrototypeOf` method
// https://tc39.github.io/ecma262/#sec-object.setprototypeof
// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
var CORRECT_SETTER = false;
var test = {};
var setter;
try {
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
setter.call(test, []);
CORRECT_SETTER = test instanceof Array;
} catch (error) { /* empty */ }
return function setPrototypeOf(O, proto) {
anObject(O);
aPossiblePrototype(proto);
if (CORRECT_SETTER) setter.call(O, proto);
else O.__proto__ = proto;
return O;
};
}() : undefined);
/***/ }),
/***/ "d3b7":
/***/ (function(module, exports, __webpack_require__) {
var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
var redefine = __webpack_require__("6eeb");
var toString = __webpack_require__("b041");
// `Object.prototype.toString` method
// https://tc39.github.io/ecma262/#sec-object.prototype.tostring
if (!TO_STRING_TAG_SUPPORT) {
redefine(Object.prototype, 'toString', toString, { unsafe: true });
}
/***/ }),
/***/ "d44e":
/***/ (function(module, exports, __webpack_require__) {
var defineProperty = __webpack_require__("9bf2").f;
var has = __webpack_require__("5135");
var wellKnownSymbol = __webpack_require__("b622");
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
module.exports = function (it, TAG, STATIC) {
if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });
}
};
/***/ }),
/***/ "d58f":
/***/ (function(module, exports, __webpack_require__) {
var aFunction = __webpack_require__("1c0b");
var toObject = __webpack_require__("7b0b");
var IndexedObject = __webpack_require__("44ad");
var toLength = __webpack_require__("50c4");
// `Array.prototype.{ reduce, reduceRight }` methods implementation
var createMethod = function (IS_RIGHT) {
return function (that, callbackfn, argumentsLength, memo) {
aFunction(callbackfn);
var O = toObject(that);
var self = IndexedObject(O);
var length = toLength(O.length);
var index = IS_RIGHT ? length - 1 : 0;
var i = IS_RIGHT ? -1 : 1;
if (argumentsLength < 2) while (true) {
if (index in self) {
memo = self[index];
index += i;
break;
}
index += i;
if (IS_RIGHT ? index < 0 : length <= index) {
throw TypeError('Reduce of empty array with no initial value');
}
}
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
memo = callbackfn(memo, self[index], index, O);
}
return memo;
};
};
module.exports = {
// `Array.prototype.reduce` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduce
left: createMethod(false),
// `Array.prototype.reduceRight` method
// https://tc39.github.io/ecma262/#sec-array.prototype.reduceright
right: createMethod(true)
};
/***/ }),
/***/ "d784":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// TODO: Remove from `core-js@4` since it's moved to entry points
__webpack_require__("ac1f");
var redefine = __webpack_require__("6eeb");
var fails = __webpack_require__("d039");
var wellKnownSymbol = __webpack_require__("b622");
var regexpExec = __webpack_require__("9263");
var createNonEnumerableProperty = __webpack_require__("9112");
var SPECIES = wellKnownSymbol('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';
});
// IE <= 11 replaces $0 with the whole match, as if it was $&
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
var REPLACE_KEEPS_$0 = (function () {
return 'a'.replace(/./, '$0') === '$0';
})();
var REPLACE = wellKnownSymbol('replace');
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
if (/./[REPLACE]) {
return /./[REPLACE]('a', '$0') === '';
}
return false;
})();
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
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, sham) {
var SYMBOL = wellKnownSymbol(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/;
if (KEY === 'split') {
// We can't use real regex here since it causes deoptimization
// and serious performance degradation in V8
// https://github.com/zloirock/core-js/issues/306
re = {};
// 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.flags = '';
re[SYMBOL] = /./[SYMBOL];
}
re.exec = function () { execCalled = true; return null; };
re[SYMBOL]('');
return !execCalled;
});
if (
!DELEGATES_TO_SYMBOL ||
!DELEGATES_TO_EXEC ||
(KEY === 'replace' && !(
REPLACE_SUPPORTS_NAMED_GROUPS &&
REPLACE_KEEPS_$0 &&
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
)) ||
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
) {
var nativeRegExpMethod = /./[SYMBOL];
var methods = exec(SYMBOL, ''[KEY], function (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 };
}, {
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
});
var stringMethod = methods[0];
var regexMethod = methods[1];
redefine(String.prototype, KEY, stringMethod);
redefine(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 regexMethod.call(string, this, arg); }
// 21.2.5.6 RegExp.prototype[@@match](string)
// 21.2.5.9 RegExp.prototype[@@search](string)
: function (string) { return regexMethod.call(string, this); }
);
}
if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
};
/***/ }),
/***/ "d81d":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var $map = __webpack_require__("b727").map;
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');
// FF49- issue
var USES_TO_LENGTH = arrayMethodUsesToLength('map');
// `Array.prototype.map` method
// https://tc39.github.io/ecma262/#sec-array.prototype.map
// with adding support of @@species
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
map: function map(callbackfn /* , thisArg */) {
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
/***/ }),
/***/ "da84":
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {var check = function (it) {
return it && it.Math == Math && it;
};
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
module.exports =
// eslint-disable-next-line no-undef
check(typeof globalThis == 'object' && globalThis) ||
check(typeof window == 'object' && window) ||
check(typeof self == 'object' && self) ||
check(typeof global == 'object' && global) ||
// eslint-disable-next-line no-new-func
Function('return this')();
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
/***/ }),
/***/ "db42":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "dbb4":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var DESCRIPTORS = __webpack_require__("83ab");
var ownKeys = __webpack_require__("56ef");
var toIndexedObject = __webpack_require__("fc6a");
var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
var createProperty = __webpack_require__("8418");
// `Object.getOwnPropertyDescriptors` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
var O = toIndexedObject(object);
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var keys = ownKeys(O);
var result = {};
var index = 0;
var key, descriptor;
while (keys.length > index) {
descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
if (descriptor !== undefined) createProperty(result, key, descriptor);
}
return result;
}
});
/***/ }),
/***/ "dca8":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var FREEZING = __webpack_require__("bb2f");
var fails = __webpack_require__("d039");
var isObject = __webpack_require__("861d");
var onFreeze = __webpack_require__("f183").onFreeze;
var nativeFreeze = Object.freeze;
var FAILS_ON_PRIMITIVES = fails(function () { nativeFreeze(1); });
// `Object.freeze` method
// https://tc39.github.io/ecma262/#sec-object.freeze
$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {
freeze: function freeze(it) {
return nativeFreeze && isObject(it) ? nativeFreeze(onFreeze(it)) : it;
}
});
/***/ }),
/***/ "ddb0":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var DOMIterables = __webpack_require__("fdbc");
var ArrayIteratorMethods = __webpack_require__("e260");
var createNonEnumerableProperty = __webpack_require__("9112");
var wellKnownSymbol = __webpack_require__("b622");
var ITERATOR = wellKnownSymbol('iterator');
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var ArrayValues = ArrayIteratorMethods.values;
for (var COLLECTION_NAME in DOMIterables) {
var Collection = global[COLLECTION_NAME];
var CollectionPrototype = Collection && Collection.prototype;
if (CollectionPrototype) {
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
} catch (error) {
CollectionPrototype[ITERATOR] = ArrayValues;
}
if (!CollectionPrototype[TO_STRING_TAG]) {
createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
}
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
} catch (error) {
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
}
}
}
}
/***/ }),
/***/ "df75":
/***/ (function(module, exports, __webpack_require__) {
var internalObjectKeys = __webpack_require__("ca84");
var enumBugKeys = __webpack_require__("7839");
// `Object.keys` method
// https://tc39.github.io/ecma262/#sec-object.keys
module.exports = Object.keys || function keys(O) {
return internalObjectKeys(O, enumBugKeys);
};
/***/ }),
/***/ "e01a":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// `Symbol.prototype.description` getter
// https://tc39.github.io/ecma262/#sec-symbol.prototype.description
var $ = __webpack_require__("23e7");
var DESCRIPTORS = __webpack_require__("83ab");
var global = __webpack_require__("da84");
var has = __webpack_require__("5135");
var isObject = __webpack_require__("861d");
var defineProperty = __webpack_require__("9bf2").f;
var copyConstructorProperties = __webpack_require__("e893");
var NativeSymbol = global.Symbol;
if (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
// Safari 12 bug
NativeSymbol().description !== undefined
)) {
var EmptyStringDescriptionStore = {};
// wrap Symbol constructor for correct work with undefined description
var SymbolWrapper = function Symbol() {
var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
var result = this instanceof SymbolWrapper
? new NativeSymbol(description)
// in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
: description === undefined ? NativeSymbol() : NativeSymbol(description);
if (description === '') EmptyStringDescriptionStore[result] = true;
return result;
};
copyConstructorProperties(SymbolWrapper, NativeSymbol);
var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
symbolPrototype.constructor = SymbolWrapper;
var symbolToString = symbolPrototype.toString;
var native = String(NativeSymbol('test')) == 'Symbol(test)';
var regexp = /^Symbol\((.*)\)[^)]+$/;
defineProperty(symbolPrototype, 'description', {
configurable: true,
get: function description() {
var symbol = isObject(this) ? this.valueOf() : this;
var string = symbolToString.call(symbol);
if (has(EmptyStringDescriptionStore, symbol)) return '';
var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
return desc === '' ? undefined : desc;
}
});
$({ global: true, forced: true }, {
Symbol: SymbolWrapper
});
}
/***/ }),
/***/ "e163":
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__("5135");
var toObject = __webpack_require__("7b0b");
var sharedKey = __webpack_require__("f772");
var CORRECT_PROTOTYPE_GETTER = __webpack_require__("e177");
var IE_PROTO = sharedKey('IE_PROTO');
var ObjectPrototype = Object.prototype;
// `Object.getPrototypeOf` method
// https://tc39.github.io/ecma262/#sec-object.getprototypeof
module.exports = CORRECT_PROTOTYPE_GETTER ? 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 ? ObjectPrototype : null;
};
/***/ }),
/***/ "e177":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
module.exports = !fails(function () {
function F() { /* empty */ }
F.prototype.constructor = null;
return Object.getPrototypeOf(new F()) !== F.prototype;
});
/***/ }),
/***/ "e260":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var toIndexedObject = __webpack_require__("fc6a");
var addToUnscopables = __webpack_require__("44d2");
var Iterators = __webpack_require__("3f8c");
var InternalStateModule = __webpack_require__("69f3");
var defineIterator = __webpack_require__("7dd0");
var ARRAY_ITERATOR = 'Array Iterator';
var setInternalState = InternalStateModule.set;
var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
// `Array.prototype.entries` method
// https://tc39.github.io/ecma262/#sec-array.prototype.entries
// `Array.prototype.keys` method
// https://tc39.github.io/ecma262/#sec-array.prototype.keys
// `Array.prototype.values` method
// https://tc39.github.io/ecma262/#sec-array.prototype.values
// `Array.prototype[@@iterator]` method
// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
// `CreateArrayIterator` internal method
// https://tc39.github.io/ecma262/#sec-createarrayiterator
module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
setInternalState(this, {
type: ARRAY_ITERATOR,
target: toIndexedObject(iterated), // target
index: 0, // next index
kind: kind // kind
});
// `%ArrayIteratorPrototype%.next` method
// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
}, function () {
var state = getInternalState(this);
var target = state.target;
var kind = state.kind;
var index = state.index++;
if (!target || index >= target.length) {
state.target = undefined;
return { value: undefined, done: true };
}
if (kind == 'keys') return { value: index, done: false };
if (kind == 'values') return { value: target[index], done: false };
return { value: [index, target[index]], done: false };
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values%
// https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject
// https://tc39.github.io/ecma262/#sec-createmappedargumentsobject
Iterators.Arguments = Iterators.Array;
// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
/***/ }),
/***/ "e2cc":
/***/ (function(module, exports, __webpack_require__) {
var redefine = __webpack_require__("6eeb");
module.exports = function (target, src, options) {
for (var key in src) redefine(target, key, src[key], options);
return target;
};
/***/ }),
/***/ "e439":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("23e7");
var fails = __webpack_require__("d039");
var toIndexedObject = __webpack_require__("fc6a");
var nativeGetOwnPropertyDescriptor = __webpack_require__("06cf").f;
var DESCRIPTORS = __webpack_require__("83ab");
var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
}
});
/***/ }),
/***/ "e538":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("b622");
exports.f = wellKnownSymbol;
/***/ }),
/***/ "e5c6":
/***/ (function(module, exports) {
/***/ }),
/***/ "e667":
/***/ (function(module, exports) {
module.exports = function (exec) {
try {
return { error: false, value: exec() };
} catch (error) {
return { error: true, value: error };
}
};
/***/ }),
/***/ "e6cf":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var IS_PURE = __webpack_require__("c430");
var global = __webpack_require__("da84");
var getBuiltIn = __webpack_require__("d066");
var NativePromise = __webpack_require__("fea9");
var redefine = __webpack_require__("6eeb");
var redefineAll = __webpack_require__("e2cc");
var setToStringTag = __webpack_require__("d44e");
var setSpecies = __webpack_require__("2626");
var isObject = __webpack_require__("861d");
var aFunction = __webpack_require__("1c0b");
var anInstance = __webpack_require__("19aa");
var classof = __webpack_require__("c6b6");
var inspectSource = __webpack_require__("8925");
var iterate = __webpack_require__("2266");
var checkCorrectnessOfIteration = __webpack_require__("1c7e");
var speciesConstructor = __webpack_require__("4840");
var task = __webpack_require__("2cf4").set;
var microtask = __webpack_require__("b575");
var promiseResolve = __webpack_require__("cdf9");
var hostReportErrors = __webpack_require__("44de");
var newPromiseCapabilityModule = __webpack_require__("f069");
var perform = __webpack_require__("e667");
var InternalStateModule = __webpack_require__("69f3");
var isForced = __webpack_require__("94ca");
var wellKnownSymbol = __webpack_require__("b622");
var V8_VERSION = __webpack_require__("2d00");
var SPECIES = wellKnownSymbol('species');
var PROMISE = 'Promise';
var getInternalState = InternalStateModule.get;
var setInternalState = InternalStateModule.set;
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
var PromiseConstructor = NativePromise;
var TypeError = global.TypeError;
var document = global.document;
var process = global.process;
var $fetch = getBuiltIn('fetch');
var newPromiseCapability = newPromiseCapabilityModule.f;
var newGenericPromiseCapability = newPromiseCapability;
var IS_NODE = classof(process) == 'process';
var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
var UNHANDLED_REJECTION = 'unhandledrejection';
var REJECTION_HANDLED = 'rejectionhandled';
var PENDING = 0;
var FULFILLED = 1;
var REJECTED = 2;
var HANDLED = 1;
var UNHANDLED = 2;
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
var FORCED = isForced(PROMISE, function () {
var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
if (!GLOBAL_CORE_JS_PROMISE) {
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
// We can't detect it synchronously, so just check versions
if (V8_VERSION === 66) return true;
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;
}
// We need Promise#finally in the pure version for preventing prototype pollution
if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;
// We can't use @@species feature detection in V8 since it causes
// deoptimization and performance degradation
// https://github.com/zloirock/core-js/issues/679
if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
// Detect correctness of subclassing with @@species support
var promise = PromiseConstructor.resolve(1);
var FakePromise = function (exec) {
exec(function () { /* empty */ }, function () { /* empty */ });
};
var constructor = promise.constructor = {};
constructor[SPECIES] = FakePromise;
return !(promise.then(function () { /* empty */ }) instanceof FakePromise);
});
var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
});
// helpers
var isThenable = function (it) {
var then;
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
};
var notify = function (promise, state, isReject) {
if (state.notified) return;
state.notified = true;
var chain = state.reactions;
microtask(function () {
var value = state.value;
var ok = state.state == FULFILLED;
var index = 0;
// variable length - can't use forEach
while (chain.length > index) {
var reaction = chain[index++];
var handler = ok ? reaction.ok : reaction.fail;
var resolve = reaction.resolve;
var reject = reaction.reject;
var domain = reaction.domain;
var result, then, exited;
try {
if (handler) {
if (!ok) {
if (state.rejection === UNHANDLED) onHandleUnhandled(promise, state);
state.rejection = HANDLED;
}
if (handler === true) result = value;
else {
if (domain) domain.enter();
result = handler(value); // can throw
if (domain) {
domain.exit();
exited = true;
}
}
if (result === reaction.promise) {
reject(TypeError('Promise-chain cycle'));
} else if (then = isThenable(result)) {
then.call(result, resolve, reject);
} else resolve(result);
} else reject(value);
} catch (error) {
if (domain && !exited) domain.exit();
reject(error);
}
}
state.reactions = [];
state.notified = false;
if (isReject && !state.rejection) onUnhandled(promise, state);
});
};
var dispatchEvent = function (name, promise, reason) {
var event, handler;
if (DISPATCH_EVENT) {
event = document.createEvent('Event');
event.promise = promise;
event.reason = reason;
event.initEvent(name, false, true);
global.dispatchEvent(event);
} else event = { promise: promise, reason: reason };
if (handler = global['on' + name]) handler(event);
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
};
var onUnhandled = function (promise, state) {
task.call(global, function () {
var value = state.value;
var IS_UNHANDLED = isUnhandled(state);
var result;
if (IS_UNHANDLED) {
result = perform(function () {
if (IS_NODE) {
process.emit('unhandledRejection', value, promise);
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
});
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
if (result.error) throw result.value;
}
});
};
var isUnhandled = function (state) {
return state.rejection !== HANDLED && !state.parent;
};
var onHandleUnhandled = function (promise, state) {
task.call(global, function () {
if (IS_NODE) {
process.emit('rejectionHandled', promise);
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
});
};
var bind = function (fn, promise, state, unwrap) {
return function (value) {
fn(promise, state, value, unwrap);
};
};
var internalReject = function (promise, state, value, unwrap) {
if (state.done) return;
state.done = true;
if (unwrap) state = unwrap;
state.value = value;
state.state = REJECTED;
notify(promise, state, true);
};
var internalResolve = function (promise, state, value, unwrap) {
if (state.done) return;
state.done = true;
if (unwrap) state = unwrap;
try {
if (promise === value) throw TypeError("Promise can't be resolved itself");
var then = isThenable(value);
if (then) {
microtask(function () {
var wrapper = { done: false };
try {
then.call(value,
bind(internalResolve, promise, wrapper, state),
bind(internalReject, promise, wrapper, state)
);
} catch (error) {
internalReject(promise, wrapper, error, state);
}
});
} else {
state.value = value;
state.state = FULFILLED;
notify(promise, state, false);
}
} catch (error) {
internalReject(promise, { done: false }, error, state);
}
};
// constructor polyfill
if (FORCED) {
// 25.4.3.1 Promise(executor)
PromiseConstructor = function Promise(executor) {
anInstance(this, PromiseConstructor, PROMISE);
aFunction(executor);
Internal.call(this);
var state = getInternalState(this);
try {
executor(bind(internalResolve, this, state), bind(internalReject, this, state));
} catch (error) {
internalReject(this, state, error);
}
};
// eslint-disable-next-line no-unused-vars
Internal = function Promise(executor) {
setInternalState(this, {
type: PROMISE,
done: false,
notified: false,
parent: false,
reactions: [],
rejection: false,
state: PENDING,
value: undefined
});
};
Internal.prototype = redefineAll(PromiseConstructor.prototype, {
// `Promise.prototype.then` method
// https://tc39.github.io/ecma262/#sec-promise.prototype.then
then: function then(onFulfilled, onRejected) {
var state = getInternalPromiseState(this);
var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
reaction.fail = typeof onRejected == 'function' && onRejected;
reaction.domain = IS_NODE ? process.domain : undefined;
state.parent = true;
state.reactions.push(reaction);
if (state.state != PENDING) notify(this, state, false);
return reaction.promise;
},
// `Promise.prototype.catch` method
// https://tc39.github.io/ecma262/#sec-promise.prototype.catch
'catch': function (onRejected) {
return this.then(undefined, onRejected);
}
});
OwnPromiseCapability = function () {
var promise = new Internal();
var state = getInternalState(promise);
this.promise = promise;
this.resolve = bind(internalResolve, promise, state);
this.reject = bind(internalReject, promise, state);
};
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
return C === PromiseConstructor || C === PromiseWrapper
? new OwnPromiseCapability(C)
: newGenericPromiseCapability(C);
};
if (!IS_PURE && typeof NativePromise == 'function') {
nativeThen = NativePromise.prototype.then;
// wrap native Promise#then for native async functions
redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {
var that = this;
return new PromiseConstructor(function (resolve, reject) {
nativeThen.call(that, resolve, reject);
}).then(onFulfilled, onRejected);
// https://github.com/zloirock/core-js/issues/640
}, { unsafe: true });
// wrap fetch result
if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {
// eslint-disable-next-line no-unused-vars
fetch: function fetch(input /* , init */) {
return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));
}
});
}
}
$({ global: true, wrap: true, forced: FORCED }, {
Promise: PromiseConstructor
});
setToStringTag(PromiseConstructor, PROMISE, false, true);
setSpecies(PROMISE);
PromiseWrapper = getBuiltIn(PROMISE);
// statics
$({ target: PROMISE, stat: true, forced: FORCED }, {
// `Promise.reject` method
// https://tc39.github.io/ecma262/#sec-promise.reject
reject: function reject(r) {
var capability = newPromiseCapability(this);
capability.reject.call(undefined, r);
return capability.promise;
}
});
$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
// `Promise.resolve` method
// https://tc39.github.io/ecma262/#sec-promise.resolve
resolve: function resolve(x) {
return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
}
});
$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
// `Promise.all` method
// https://tc39.github.io/ecma262/#sec-promise.all
all: function all(iterable) {
var C = this;
var capability = newPromiseCapability(C);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform(function () {
var $promiseResolve = aFunction(C.resolve);
var values = [];
var counter = 0;
var remaining = 1;
iterate(iterable, function (promise) {
var index = counter++;
var alreadyCalled = false;
values.push(undefined);
remaining++;
$promiseResolve.call(C, promise).then(function (value) {
if (alreadyCalled) return;
alreadyCalled = true;
values[index] = value;
--remaining || resolve(values);
}, reject);
});
--remaining || resolve(values);
});
if (result.error) reject(result.value);
return capability.promise;
},
// `Promise.race` method
// https://tc39.github.io/ecma262/#sec-promise.race
race: function race(iterable) {
var C = this;
var capability = newPromiseCapability(C);
var reject = capability.reject;
var result = perform(function () {
var $promiseResolve = aFunction(C.resolve);
iterate(iterable, function (promise) {
$promiseResolve.call(C, promise).then(capability.resolve, reject);
});
});
if (result.error) reject(result.value);
return capability.promise;
}
});
/***/ }),
/***/ "e893":
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__("5135");
var ownKeys = __webpack_require__("56ef");
var getOwnPropertyDescriptorModule = __webpack_require__("06cf");
var definePropertyModule = __webpack_require__("9bf2");
module.exports = function (target, source) {
var keys = ownKeys(source);
var defineProperty = definePropertyModule.f;
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
}
};
/***/ }),
/***/ "e8b5":
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__("c6b6");
// `IsArray` abstract operation
// https://tc39.github.io/ecma262/#sec-isarray
module.exports = Array.isArray || function isArray(arg) {
return classof(arg) == 'Array';
};
/***/ }),
/***/ "e95a":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("b622");
var Iterators = __webpack_require__("3f8c");
var ITERATOR = wellKnownSymbol('iterator');
var ArrayPrototype = Array.prototype;
// check on default Array iterator
module.exports = function (it) {
return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);
};
/***/ }),
/***/ "e9b1":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "ee6f":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "f069":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var aFunction = __webpack_require__("1c0b");
var PromiseCapability = function (C) {
var resolve, reject;
this.promise = new C(function ($$resolve, $$reject) {
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
resolve = $$resolve;
reject = $$reject;
});
this.resolve = aFunction(resolve);
this.reject = aFunction(reject);
};
// 25.4.1.5 NewPromiseCapability(C)
module.exports.f = function (C) {
return new PromiseCapability(C);
};
/***/ }),
/***/ "f183":
/***/ (function(module, exports, __webpack_require__) {
var hiddenKeys = __webpack_require__("d012");
var isObject = __webpack_require__("861d");
var has = __webpack_require__("5135");
var defineProperty = __webpack_require__("9bf2").f;
var uid = __webpack_require__("90e3");
var FREEZING = __webpack_require__("bb2f");
var METADATA = uid('meta');
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
var setMetadata = function (it) {
defineProperty(it, METADATA, { value: {
objectID: 'O' + ++id, // object ID
weakData: {} // weak collections IDs
} });
};
var fastKey = function (it, create) {
// return a primitive with prefix
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if (!has(it, METADATA)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return 'F';
// not necessary to add metadata
if (!create) return 'E';
// add missing metadata
setMetadata(it);
// return object ID
} return it[METADATA].objectID;
};
var getWeakData = function (it, create) {
if (!has(it, METADATA)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return true;
// not necessary to add metadata
if (!create) return false;
// add missing metadata
setMetadata(it);
// return the store of weak collections IDs
} return it[METADATA].weakData;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);
return it;
};
var meta = module.exports = {
REQUIRED: false,
fastKey: fastKey,
getWeakData: getWeakData,
onFreeze: onFreeze
};
hiddenKeys[METADATA] = true;
/***/ }),
/***/ "f557":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectedPolygon_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("83d1");
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectedPolygon_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectedPolygon_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_SelectedPolygon_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ "f5df":
/***/ (function(module, exports, __webpack_require__) {
var TO_STRING_TAG_SUPPORT = __webpack_require__("00ee");
var classofRaw = __webpack_require__("c6b6");
var wellKnownSymbol = __webpack_require__("b622");
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
// ES3 wrong here
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
try {
return it[key];
} catch (error) { /* empty */ }
};
// getting tag from ES6+ `Object.prototype.toString`
module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
var O, tag, result;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag
// builtinTag case
: CORRECT_ARGUMENTS ? classofRaw(O)
// ES3 arguments fallback
: (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
};
/***/ }),
/***/ "f748":
/***/ (function(module, exports) {
// `Math.sign` method implementation
// https://tc39.github.io/ecma262/#sec-math.sign
module.exports = Math.sign || function sign(x) {
// eslint-disable-next-line no-self-compare
return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
};
/***/ }),
/***/ "f772":
/***/ (function(module, exports, __webpack_require__) {
var shared = __webpack_require__("5692");
var uid = __webpack_require__("90e3");
var keys = shared('keys');
module.exports = function (key) {
return keys[key] || (keys[key] = uid(key));
};
/***/ }),
/***/ "fb15":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// NAMESPACE OBJECT: ./node_modules/vuetify/lib/services/goto/easing-patterns.js
var easing_patterns_namespaceObject = {};
__webpack_require__.r(easing_patterns_namespaceObject);
__webpack_require__.d(easing_patterns_namespaceObject, "linear", function() { return linear; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeInQuad", function() { return easeInQuad; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeOutQuad", function() { return easeOutQuad; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeInOutQuad", function() { return easeInOutQuad; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeInCubic", function() { return easeInCubic; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeOutCubic", function() { return easeOutCubic; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeInOutCubic", function() { return easeInOutCubic; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeInQuart", function() { return easeInQuart; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeOutQuart", function() { return easeOutQuart; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeInOutQuart", function() { return easeInOutQuart; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeInQuint", function() { return easeInQuint; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeOutQuint", function() { return easeOutQuint; });
__webpack_require__.d(easing_patterns_namespaceObject, "easeInOutQuint", function() { return easeInOutQuint; });
// 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') {
var currentScript = window.document.currentScript
if (true) {
var getCurrentScript = __webpack_require__("8875")
currentScript = getCurrentScript()
// for backward compatibility, because previously we directly included the polyfill
if (!('currentScript' in document)) {
Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
}
}
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
if (src) {
__webpack_require__.p = src[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/es.array.for-each.js
var es_array_for_each = __webpack_require__("4160");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
var es_object_keys = __webpack_require__("b64b");
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
var web_dom_collections_for_each = __webpack_require__("159b");
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2d9a2cbb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Polygons.vue?vue&type=template&id=de6259cc&scoped=true&
var Polygonsvue_type_template_id_de6259cc_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{staticStyle:{"min-width":"900px","max-width":"1440px"}},[_c('v-row',{attrs:{"justify":"center"}},[_c('v-col',{attrs:{"cols":"12","md":"8"}},[_c('div',{attrs:{"id":"dgtek-container-for-map"}})]),_c('v-col',{attrs:{"cols":"12","md":"4"}},[_c('v-card',{staticClass:"my-4",attrs:{"flat":""}},[(_vm.selectedPolygonId)?_c('SelectedPolygon',{attrs:{"id":_vm.selectedPolygonId,"coordinates":_vm.coordinates,"type":_vm.polygonType,"markerIndex":_vm.selectedMarkerIndex,"markerCoordinates":_vm.selectedMarkerCoordinates},on:{"update:type":function($event){_vm.polygonType=$event},"update:markerIndex":function($event){_vm.selectedMarkerIndex=$event},"update:marker-index":function($event){_vm.selectedMarkerIndex=$event},"update:markerCoordinates":function($event){_vm.selectedMarkerCoordinates=$event},"update:marker-coordinates":function($event){_vm.selectedMarkerCoordinates=$event}}}):_vm._e()],1),_c('v-card',{staticClass:"mx-auto my-2 text-right",attrs:{"flat":""}},[(_vm.selectedPolygonId)?_c('v-btn',{attrs:{"outlined":"","color":"#900"},on:{"click":_vm.deletePolygon}},[_c('v-icon',{attrs:{"color":"#900"}},[_vm._v("mdi-delete")]),_vm._v(" Remove polygon ")],1):_c('v-btn',{attrs:{"outlined":"","color":"#900"},on:{"click":function($event){_vm.newPolygon = true}}},[_c('v-icon',[_vm._v("mdi-vector-polygon")]),_vm._v(" Create new polygon ")],1)],1)],1)],1),(_vm.apiKey && _vm.credentials)?_c('v-card-text',{staticClass:"transparent",attrs:{"flat":""}},[_c('v-btn',{attrs:{"dark":"","color":"#900"},on:{"click":_vm.saveData}},[_c('v-icon',[_vm._v("mdi-content-save-all")]),_vm._v(" Save ")],1),(!_vm.production)?_c('v-btn',{staticClass:"ml-4",attrs:{"outlined":""},on:{"click":_vm.restoreFromProd}},[_c('v-icon',{attrs:{"color":"#900"}},[_vm._v("mdi-backup-restore")]),_vm._v(" Restore data from prod ")],1):_vm._e()],1):_c('v-card-text',[_vm._v(" Access denied. You have no rights to save updates. ")])],1)}
var staticRenderFns = []
// CONCATENATED MODULE: ./src/components/Polygons.vue?vue&type=template&id=de6259cc&scoped=true&
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
var es_array_iterator = __webpack_require__("e260");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
var es_array_map = __webpack_require__("d81d");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
var es_object_assign = __webpack_require__("cca6");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
var es_object_to_string = __webpack_require__("d3b7");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
var es_promise = __webpack_require__("e6cf");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
var es_string_iterator = __webpack_require__("3ca3");
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
var web_dom_collections_iterator = __webpack_require__("ddb0");
// EXTERNAL MODULE: ./node_modules/regenerator-runtime/runtime.js
var runtime = __webpack_require__("96cf");
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function () {
var self = this,
args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);
});
};
}
// CONCATENATED MODULE: ./src/config/polygon-types.js
var endpoints = ['service-available', 'build-commenced', 'coming-soon'];
var availablePolygonTypes = ['ServiceAvailable', 'BuildCommenced', 'ComingSoon'];
// CONCATENATED MODULE: ./src/helpers/get-container.js
var getContainer = function getContainer() {
var container = document.getElementById('dgtek-container-for-map');
if (!container) {
container = document.body.appendChild(document.createElement('div'));
container.id = 'dgtek-container-for-map';
}
return container;
};
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
var es_array_find = __webpack_require__("7db0");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
var es_array_from = __webpack_require__("a630");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.index-of.js
var es_array_index_of = __webpack_require__("c975");
// CONCATENATED MODULE: ./src/helpers/load-google-maps-script.js
var url = 'https://maps.googleapis.com/maps/api/js';
var loadGoogleMapsScript = function loadGoogleMapsScript() {
var script = Array.from(document.getElementsByTagName('script')).find(function (item) {
return item.src.indexOf(url) !== -1;
});
if (script) script.remove();
return new Promise(function (resolve) {
var script = document.body.appendChild(document.createElement('script'));
script.src = "".concat(url, "?key=").concat("AIzaSyBVql75Qc_Y5oGvrxdcNRNMhBlZEzTdk1o", "&libraries=geometry,drawing,places");
script.onload = resolve.bind(null, true);
script.onerror = resolve.bind(null, false);
});
};
// CONCATENATED MODULE: ./src/helpers/create-draw-layer.js
var createDrawLayer = function createDrawLayer(context) {
context.drawLayer = new context.__geo.Data({
map: context.map
});
context.drawLayer.setControls(['Polygon']);
context.drawLayer.setStyle({
editable: true,
draggable: true,
fillColor: '#f0f',
strokeColor: '#f0f'
});
context.drawLayer.addListener('addfeature', function (event) {
var featureId = "new-polygon-".concat(Date.now());
event.feature.setProperty('id', featureId);
event.feature.setProperty('typeOf', 'ComingSoon');
this.toGeoJson(function (json) {
json.features.forEach(function (feature) {
feature._id = featureId;
localStorage.addFeature(featureId, feature);
context.ComingSoon.push(context.buildPolygon(localStorage.getFeatureById(featureId), 'ComingSoon'));
});
context.drawLayer.setMap(null);
delete context.drawLayer;
context.drawingMode = false;
context.container.dispatchEvent(new Event('drawing-mode-off'));
});
});
};
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
var es_array_concat = __webpack_require__("99af");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
var es_array_find_index = __webpack_require__("c740");
// CONCATENATED MODULE: ./src/data-handlers/credentials-handler.js
var creds = '';
var credentialsHandler = function credentialsHandler(arg) {
if (!arg) return creds;
creds = arg;
};
// CONCATENATED MODULE: ./src/data-handlers/api-key-handler.js
var api_key_handler_key = '';
var apiKeyHandler = function apiKeyHandler(arg) {
if (!arg) return api_key_handler_key;
api_key_handler_key = arg;
};
// CONCATENATED MODULE: ./src/data-handlers/host-handler.js
var host = '';
var hostHandler = function hostHandler(arg) {
if (!arg) return host;
host = arg;
};
// CONCATENATED MODULE: ./src/data-handlers/mode-handler.js
var production = function production() {
return location.origin === 'https://dka.portal.dgtek.net';
};
// CONCATENATED MODULE: ./src/data-handlers/deleted-polygons-handler.js
var deletedPolygons = {};
var resets = ['reset', 'clear', 'empty'];
var deletedPolygonsHandler = function deletedPolygonsHandler(arg) {
if (!arg) return deletedPolygons;
if (resets.indexOf(arg) !== -1) deletedPolygons = {};else Object.assign(deletedPolygons, arg);
};
// CONCATENATED MODULE: ./src/data-handlers/index.js
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
var es_symbol = __webpack_require__("a4d3");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
var es_symbol_description = __webpack_require__("e01a");
// CONCATENATED MODULE: ./src/helpers/show-error-message.js
var showErrorMessage = function showErrorMessage(errorMessage) {
if (window[Symbol.for('vue.instance')]) {
window[Symbol.for('vue.instance')].$emit('open-error-popup', {
errorType: 'Polygons',
errorMessage: errorMessage
});
} else console.error(errorMessage);
};
// CONCATENATED MODULE: ./src/helpers/get-polygons-by-type.js
var getPolygonsByType = /*#__PURE__*/function () {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(endpoint) {
var index, response, collection, _yield$response$json, data;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
index = endpoints.findIndex(function (item) {
return item === endpoint;
});
if (!(index === -1)) {
_context.next = 3;
break;
}
return _context.abrupt("return", showErrorMessage("Invalid polygon type: ".concat(endpoint)));
case 3:
_context.next = 5;
return fetch("".concat(hostHandler(), "/polygons/").concat(endpoint));
case 5:
response = _context.sent;
if (!(response.status !== 200)) {
_context.next = 8;
break;
}
return _context.abrupt("return", showErrorMessage("Error reading ".concat(endpoint, " polygons data from remote server")));
case 8:
collection = [];
_context.next = 11;
return response.json();
case 11:
_yield$response$json = _context.sent;
data = _yield$response$json.data;
data.forEach(function (polygon, index) {
localStorage.setItemByName(polygon._id, Object.assign(polygon, {
properties: Object.assign(polygon.properties, {
id: polygon._id
})
}));
collection.push(polygon._id);
});
localStorage.setItemByName(availablePolygonTypes[index], collection);
case 15:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return function getPolygonsByType(_x) {
return _ref.apply(this, arguments);
};
}();
// CONCATENATED MODULE: ./src/helpers/update-polygon-geometry.js
var updatePolygonGeometry = /*#__PURE__*/function () {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(polygonId, coordinates) {
var polygon;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
polygon = localStorage.getItemByName(polygonId);
if (polygon) {
_context.next = 3;
break;
}
return _context.abrupt("return", showErrorMessage("Invalid polygon id: ".concat(polygonId)));
case 3:
Object.assign(polygon, {
modified: Date.now(),
geometry: Object.assign(polygon.geometry, {
coordinates: [coordinates]
})
});
localStorage.setItemByName(polygonId, polygon);
case 5:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return function updatePolygonGeometry(_x, _x2) {
return _ref.apply(this, arguments);
};
}();
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
var es_array_includes = __webpack_require__("caad");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
var es_array_splice = __webpack_require__("a434");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
var es_string_includes = __webpack_require__("2532");
// CONCATENATED MODULE: ./src/helpers/update-polygon-type.js
var updatePolygonType = /*#__PURE__*/function () {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(polygonId, newPolygonType) {
var polygon, oldPolygonType, collection, index;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
if (availablePolygonTypes.includes(newPolygonType)) {
_context.next = 2;
break;
}
return _context.abrupt("return", showErrorMessage("Invalid polygon type: ".concat(newPolygonType)));
case 2:
polygon = localStorage.getItemByName(polygonId);
if (polygon) {
_context.next = 5;
break;
}
return _context.abrupt("return", showErrorMessage("Invalid polygon id: ".concat(polygonId)));
case 5:
oldPolygonType = polygon.properties.typeOf;
Object.assign(polygon, {
modified: Date.now(),
properties: Object.assign(polygon.properties, {
typeOf: newPolygonType
})
});
collection = localStorage.getItemByName(oldPolygonType);
index = collection.findIndex(function (id) {
return id === polygonId;
});
collection.splice(index, 1);
localStorage.setItemByName(oldPolygonType, collection);
collection = localStorage.getItemByName(newPolygonType);
collection.push(polygonId);
localStorage.setItemByName(newPolygonType, collection);
case 14:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return function updatePolygonType(_x, _x2) {
return _ref.apply(this, arguments);
};
}();
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
// CONCATENATED MODULE: ./src/config/map.js
var mapConfig = [{
featureType: 'landscape',
elementType: 'geometry',
stylers: [{
color: '#f5f5f5'
}, {
lightness: 20
}]
}, {
featureType: 'road.highway',
elementType: 'geometry.fill',
stylers: [{
color: '#ffffff'
}, {
lightness: 17
}]
}, {
featureType: 'road.highway',
elementType: 'geometry.stroke',
stylers: [{
color: '#ffffff'
}, {
lightness: 29
}, {
weight: 0.2
}]
}, {
featureType: 'road.arterial',
elementType: 'geometry',
stylers: [{
color: '#ffffff'
}, {
lightness: 18
}]
}, {
featureType: 'road.local',
elementType: 'geometry',
stylers: [{
color: '#ffffff'
}, {
lightness: 16
}]
}, {
featureType: 'poi',
elementType: 'geometry',
stylers: [{
color: '#f5f5f5'
}, {
lightness: 21
}]
}, {
featureType: 'poi.park',
elementType: 'geometry',
stylers: [{
color: '#dedede'
}, {
lightness: 21
}]
}, {
elementType: 'labels.text.stroke',
stylers: [{
visibility: 'on'
}, {
color: '#ffffff'
}, {
lightness: 16
}]
}, {
elementType: 'labels.text.fill',
stylers: [{
saturation: 36
}, {
color: '#333333'
}, {
lightness: 40
}]
}, {
elementType: 'labels.icon',
stylers: [{
visibility: 'off'
}]
}, {
featureType: 'transit',
elementType: 'geometry',
stylers: [{
color: '#f2f2f2'
}, {
lightness: 19
}]
}, {
featureType: 'administrative',
elementType: 'geometry.fill',
stylers: [{
color: '#fefefe'
}, {
lightness: 20
}]
}, {
featureType: 'administrative',
elementType: 'geometry.stroke',
stylers: [{
color: '#fefefe'
}, {
lightness: 17
}, {
weight: 1.2
}]
}];
// CONCATENATED MODULE: ./src/config/marker-icon.js
var markerIcon = {
strokeColor: '#FF00FF',
strokeOpacity: 1,
fillColor: '#FF00FF',
fillOpacity: 1,
scale: 4
};
// CONCATENATED MODULE: ./src/config/marker-icon-active.js
var markerIconActive = {
path: 'M -1 -1 L 1 -1 L 1 1 L -1 1 z',
strokeColor: '#FFFF00',
strokeOpacity: 1,
fillColor: '#FFAA00',
fillOpacity: 1,
scale: 4
};
// CONCATENATED MODULE: ./src/config/index.js
// CONCATENATED MODULE: ./src/helpers/remove-polygon.js
var remove_polygon_removePolygon = function removePolygon(polygonId) {
var polygon = localStorage.getItemByName(polygonId);
if (!polygon) return showErrorMessage("Delete operation failed. Polygon ".concat(polygonId, " not found"));
var typeOf = polygon.properties.typeOf;
var collection = localStorage.getItemByName(typeOf);
var index = availablePolygonTypes.findIndex(function (item) {
return item === typeOf;
});
collection.splice(index, 1);
localStorage.setItemByName(typeOf, collection);
deletedPolygonsHandler(_defineProperty({}, polygonId, endpoints[index]));
localStorage.removeItem(polygonId);
return typeOf;
};
// CONCATENATED MODULE: ./src/helpers/post-polygon.js
var postPolygon = /*#__PURE__*/function () {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(polygonId) {
var polygon, properties, geometry, typeOf, endpoint, response, newPolygonId;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
if (!(polygonId.indexOf('new-polygon') === -1)) {
_context.next = 2;
break;
}
return _context.abrupt("return", showErrorMessage("Polygon ".concat(polygonId, " already exists")));
case 2:
polygon = localStorage.getItemByName(polygonId);
if (polygon) {
_context.next = 5;
break;
}
return _context.abrupt("return", showErrorMessage("Post operation failed. Polygon ".concat(polygonId, " not found")));
case 5:
properties = polygon.properties, geometry = polygon.geometry;
typeOf = properties.typeOf;
endpoint = endpoints[availablePolygonTypes.findIndex(function (type) {
return type === typeOf;
})];
_context.next = 10;
return fetch("".concat(hostHandler(), "/polygons/").concat(endpoint), {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: apiKeyHandler(),
Credentials: credentialsHandler()
},
body: JSON.stringify({
typeOf: typeOf,
type: 'Feature',
properties: properties,
geometry: geometry
})
});
case 10:
response = _context.sent;
if (!(response.status !== 200)) {
_context.next = 13;
break;
}
return _context.abrupt("return", showErrorMessage("Failed to update ".concat(typeOf, ": ").concat(polygonId, " : remote server error")));
case 13:
_context.next = 15;
return response.json();
case 15:
newPolygonId = _context.sent.data;
_context.next = 18;
return fetch("".concat(hostHandler(), "/polygons/").concat(endpoint, "/").concat(newPolygonId), {
method: 'PATCH',
headers: {
'Content-Type': 'application/json',
Authorization: apiKeyHandler(),
Credentials: credentialsHandler()
},
body: JSON.stringify({
properties: Object.assign(polygon.properties, {
id: newPolygonId
})
})
});
case 18:
response = _context.sent;
return _context.abrupt("return", newPolygonId);
case 20:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return function postPolygon(_x) {
return _ref.apply(this, arguments);
};
}();
// CONCATENATED MODULE: ./src/helpers/patch-polygon.js
var patchPolygon = /*#__PURE__*/function () {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(polygonId) {
var polygon, typeOf, properties, geometry, endpoint, response;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
polygon = localStorage.getItemByName(polygonId);
if (polygon) {
_context.next = 3;
break;
}
return _context.abrupt("return", showErrorMessage("Invalid polygon id: ".concat(polygonId)));
case 3:
typeOf = polygon.properties.typeOf;
properties = polygon.properties, geometry = polygon.geometry;
endpoint = endpoints[availablePolygonTypes.findIndex(function (type) {
return type === typeOf;
})];
_context.next = 8;
return fetch("".concat(hostHandler(), "/polygons/").concat(endpoint, "/").concat(polygonId), {
method: 'PATCH',
headers: {
'Content-Type': 'application/json',
Authorization: apiKeyHandler(),
Credentials: credentialsHandler()
},
body: JSON.stringify({
typeOf: typeOf,
properties: properties,
geometry: geometry
})
});
case 8:
response = _context.sent;
if (!(response.status !== 200)) {
_context.next = 12;
break;
}
showErrorMessage("Failed to update ".concat(typeOf, ": ").concat(polygonId, " : remote server error"));
return _context.abrupt("return", {
status: 500,
id: polygonId
});
case 12:
return _context.abrupt("return", {
status: 200,
id: polygonId
});
case 13:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return function patchPolygon(_x) {
return _ref.apply(this, arguments);
};
}();
// CONCATENATED MODULE: ./src/helpers/delete-polygons.js
var deletePolygons = /*#__PURE__*/function () {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var removed, promises, id, promise;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
removed = deletedPolygonsHandler();
promises = [];
_context.t0 = regeneratorRuntime.keys(removed);
case 3:
if ((_context.t1 = _context.t0()).done) {
_context.next = 11;
break;
}
id = _context.t1.value;
_context.next = 7;
return fetch("".concat(hostHandler(), "/polygons/").concat(removed[id], "/").concat(id), {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
Authorization: apiKeyHandler(),
Credentials: credentialsHandler()
}
}).catch(function (error) {
return showErrorMessage(error);
});
case 7:
promise = _context.sent;
promises.push(promise);
_context.next = 3;
break;
case 11:
deletedPolygonsHandler('reset');
_context.next = 14;
return Promise.all(promises);
case 14:
return _context.abrupt("return", _context.sent);
case 15:
case "end":
return _context.stop();
}
}
}, _callee);
}));
return function deletePolygons() {
return _ref.apply(this, arguments);
};
}();
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.iterator.js
var es_symbol_iterator = __webpack_require__("d28b");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
var es_array_slice = __webpack_require__("fb6a");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
var es_function_name = __webpack_require__("b0c0");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
var es_regexp_to_string = __webpack_require__("25f0");
// 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/createForOfIteratorHelper.js
function _createForOfIteratorHelper(o, allowArrayLike) {
var it;
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
var F = function F() {};
return {
s: F,
n: function n() {
if (i >= o.length) return {
done: true
};
return {
done: false,
value: o[i++]
};
},
e: function e(_e) {
throw _e;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var normalCompletion = true,
didErr = false,
err;
return {
s: function s() {
it = o[Symbol.iterator]();
},
n: function n() {
var step = it.next();
normalCompletion = step.done;
return step;
},
e: function e(_e2) {
didErr = true;
err = _e2;
},
f: function f() {
try {
if (!normalCompletion && it["return"] != null) it["return"]();
} finally {
if (didErr) throw err;
}
}
};
}
// CONCATENATED MODULE: ./src/helpers/save.js
var save = /*#__PURE__*/function () {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(polygonId) {
var promises, _iterator, _step, type, collection, _iterator2, _step2, _polygonId, newPolygonId;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
promises = [];
_iterator = _createForOfIteratorHelper(availablePolygonTypes);
_context.prev = 2;
_iterator.s();
case 4:
if ((_step = _iterator.n()).done) {
_context.next = 34;
break;
}
type = _step.value;
collection = localStorage.getItemByName(type);
_iterator2 = _createForOfIteratorHelper(collection);
_context.prev = 8;
_iterator2.s();
case 10:
if ((_step2 = _iterator2.n()).done) {
_context.next = 22;
break;
}
_polygonId = _step2.value;
if (!(_polygonId.indexOf('new-polygon') !== -1)) {
_context.next = 19;
break;
}
_context.next = 15;
return postPolygon(_polygonId);
case 15:
newPolygonId = _context.sent;
localStorage.updateFeatureId(_polygonId, newPolygonId);
window.dispatchEvent(Object.assign(new Event('polygon-id-changed'), {
details: {
polygonType: type,
oldValue: _polygonId,
newValue: newPolygonId
}
}));
return _context.abrupt("continue", 20);
case 19:
Object.keys(deletedPolygonsHandler()).includes(_polygonId) || promises.push(patchPolygon(_polygonId).catch(function (error) {
return console.warn(error);
}));
case 20:
_context.next = 10;
break;
case 22:
_context.next = 27;
break;
case 24:
_context.prev = 24;
_context.t0 = _context["catch"](8);
_iterator2.e(_context.t0);
case 27:
_context.prev = 27;
_iterator2.f();
return _context.finish(27);
case 30:
_context.next = 32;
return Promise.all(promises);
case 32:
_context.next = 4;
break;
case 34:
_context.next = 39;
break;
case 36:
_context.prev = 36;
_context.t1 = _context["catch"](2);
_iterator.e(_context.t1);
case 39:
_context.prev = 39;
_iterator.f();
return _context.finish(39);
case 42:
_context.next = 44;
return deletePolygons();
case 44:
window.dispatchEvent(Object.assign(new Event('polygons-data-saved'), {
details: {
message: true,
messageType: 'Polygons',
mesageText: 'Data saved'
}
}));
return _context.abrupt("return", true);
case 46:
case "end":
return _context.stop();
}
}
}, _callee, null, [[2, 36, 39, 42], [8, 24, 27, 30]]);
}));
return function save(_x) {
return _ref.apply(this, arguments);
};
}();
// CONCATENATED MODULE: ./src/helpers/restore.js
var restore = /*#__PURE__*/function () {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var _iterator, _step, endpoint, response, _yield$response$json, data;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_iterator = _createForOfIteratorHelper(endpoints);
_context.prev = 1;
_iterator.s();
case 3:
if ((_step = _iterator.n()).done) {
_context.next = 19;
break;
}
endpoint = _step.value;
_context.next = 7;
return fetch("https://portal.dgtek.net/polygons/".concat(endpoint));
case 7:
response = _context.sent;
if (!(response.status !== 200)) {
_context.next = 10;
break;
}
return _context.abrupt("return", showErrorMessage("Error reading ".concat(endpoint, " polygons data from PORTAL remote server!!!")));
case 10:
_context.next = 12;
return response.json();
case 12:
_yield$response$json = _context.sent;
data = _yield$response$json.data;
_context.next = 16;
return fetch("https://portal.staging.dgtek.net/polygons/".concat(endpoint), {
method: 'PUT',
headers: {
'Content-Type': 'application/json',
Authorization: apiKeyHandler(),
Credentials: credentialsHandler()
},
body: JSON.stringify(data)
});
case 16:
response = _context.sent;
case 17:
_context.next = 3;
break;
case 19:
_context.next = 24;
break;
case 21:
_context.prev = 21;
_context.t0 = _context["catch"](1);
_iterator.e(_context.t0);
case 24:
_context.prev = 24;
_iterator.f();
return _context.finish(24);
case 27:
case "end":
return _context.stop();
}
}
}, _callee, null, [[1, 21, 24, 27]]);
}));
return function restore() {
return _ref.apply(this, arguments);
};
}();
// CONCATENATED MODULE: ./src/helpers/index.js
// CONCATENATED MODULE: ./src/helpers/storage/getFeatureById.js
function getFeatureById(polygonId) {
var polygon = this.getItemByName(polygonId);
return {
id: polygon._id,
coordinates: polygon.geometry.coordinates[0],
type: polygon.properties.typeOf
};
}
// EXTERNAL MODULE: ./src/helpers/storage/setFeatureById.js
var setFeatureById = __webpack_require__("e5c6");
// CONCATENATED MODULE: ./src/helpers/storage/getFeaturesByType.js
function getFeaturesByType(type) {
var _this = this;
return this.getItemByName(type).map(function (id) {
return _this.getItemByName(id);
}).map(function (feature) {
return {
id: feature.properties.id,
coordinates: feature.geometry.coordinates[0],
type: feature.properties.typeOf
};
});
}
// CONCATENATED MODULE: ./src/helpers/storage/getFeatureCoordinates.js
function getFeatureCoordinates(featureId) {
return this.getFeatureById(featureId).coordinates;
}
// CONCATENATED MODULE: ./src/helpers/storage/getFeatureType.js
function getFeatureType(featureId) {
return this.getFeatureById(featureId).type;
}
// CONCATENATED MODULE: ./src/helpers/storage/addFeature.js
function addFeature(featureId, feature) {
this.setItemByName(featureId, feature);
var collection = this.getItemByName(feature.properties.typeOf);
collection.push(featureId);
this.setItemByName(feature.properties.typeOf, collection);
this.emit({
eventType: 'new-feature-added',
featureId: featureId,
type: feature.properties.typeOf,
coordinates: feature.geometry.coordinates[0]
});
}
// CONCATENATED MODULE: ./src/helpers/storage/updateFeatureType.js
function updateFeatureType(featureId, type) {
var feature = this.getItemByName(featureId);
var oldCollection = this.getItemByName(feature.properties.typeOf);
oldCollection.splice(oldCollection.indexOf(featureId), 1);
this.setItemByName(feature.properties.typeOf, oldCollection);
var newCollection = this.getItemByName(type);
newCollection.push(featureId);
this.setItemByName(type, newCollection);
feature.properties.typeOf = type;
this.setItemByName(featureId, feature);
this.emit({
eventType: 'polygon-type-changed',
featureId: featureId,
type: type
});
}
// 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/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();
}
// CONCATENATED MODULE: ./src/helpers/storage/updateMarker.js
function updateMarker(featureId, markerIndex, markerCoordinates) {
var feature = this.getItemByName(featureId);
var _feature$geometry$coo = _slicedToArray(feature.geometry.coordinates, 1),
coordinates = _feature$geometry$coo[0];
coordinates.splice(markerIndex, 1, markerCoordinates);
Object.assign(feature, {
modified: Date.now(),
geometry: Object.assign(feature.geometry, {
coordinates: [coordinates]
})
});
this.setItemByName(featureId, feature);
}
// CONCATENATED MODULE: ./src/helpers/storage/updateMarkerPosition.js
function updateMarkerPosition(featureId, markerIndex, markerCoordinates) {
this.updateMarker(featureId, markerIndex, markerCoordinates);
this.emit({
eventType: 'marker-position-changed',
featureId: featureId,
markerIndex: markerIndex,
markerCoordinates: markerCoordinates
});
}
// CONCATENATED MODULE: ./src/helpers/storage/updateMarkerCoordinates.js
function updateMarkerCoordinates(featureId, markerIndex, markerCoordinates) {
this.updateMarker(featureId, markerIndex, markerCoordinates);
this.emit({
eventType: 'marker-coordinates-changed',
featureId: featureId,
markerIndex: markerIndex,
markerCoordinates: markerCoordinates
});
}
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.flat-map.js
var es_array_flat_map = __webpack_require__("5db7");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.unscopables.flat-map.js
var es_array_unscopables_flat_map = __webpack_require__("73d9");
// CONCATENATED MODULE: ./src/helpers/storage/getAllPolygons.js
function getAllPolygons() {
var polygons = {
features: [],
type: 'FeatureCollection'
};
polygons.features = ['ServiceAvailable', 'BuildCommenced', 'ComingSoon'].flatMap(function (collectionType) {
return localStorage.getFeaturesByType(collectionType);
});
return polygons;
}
// CONCATENATED MODULE: ./src/helpers/storage/removeFeatureById.js
function removeFeatureById(polygonId) {
var feature = this.getItemByName(polygonId);
var types = feature ? [feature.properties.typeOf] : ['ServiceAvailable', 'BuildCommenced', 'ComingSoon'];
for (var _i = 0, _types = types; _i < _types.length; _i++) {
var type = _types[_i];
var list = this.getItemByName(type);
var index = list.findIndex(function (id) {
return id === polygonId;
});
if (index === -1) continue;
list.splice(index, 1);
this.setItemByName(type, list);
break;
}
}
// CONCATENATED MODULE: ./src/helpers/storage/updateFeatureId.js
function updateFeatureId(oldValue, newValue) {
var feature = this.getItemByName(oldValue);
feature.properties.id = newValue;
this.setItemByName(newValue, feature);
var collection = this.getItemByName(feature.properties.typeOf);
var index = collection.indexOf(oldValue);
collection.splice(index, 1, newValue);
if (index !== -1) this.setItemByName(feature.properties.typeOf, collection);
this.removeItem(oldValue);
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
// CONCATENATED MODULE: ./src/helpers/storage/emit.js
function emit(data) {
var eventType = data.eventType,
details = _objectWithoutProperties(data, ["eventType"]);
this.eventHandler.dispatchEvent(Object.assign(new Event(eventType), {
details: details
}));
}
// CONCATENATED MODULE: ./src/helpers/storage/index.js
// CONCATENATED MODULE: ./src/components/Storage.js
Object.assign(Storage.prototype, {
getItemByName: function getItemByName(name) {
return JSON.parse(this.getItem(name));
},
setItemByName: function setItemByName(name, payload) {
this.setItem(name, JSON.stringify(payload));
},
getFeatureById: getFeatureById,
setFeatureById: setFeatureById["setFeatureById"],
getFeaturesByType: getFeaturesByType,
getFeatureCoordinates: getFeatureCoordinates,
getFeatureType: getFeatureType,
addFeature: addFeature,
updateFeatureType: updateFeatureType,
updateMarker: updateMarker,
updateMarkerPosition: updateMarkerPosition,
updateMarkerCoordinates: updateMarkerCoordinates,
getAllPolygons: getAllPolygons,
removeFeatureById: removeFeatureById,
updateFeatureId: updateFeatureId,
emit: emit
});
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
return Constructor;
}
// CONCATENATED MODULE: ./src/components/map.js
// import mapConfig from '@/config/map.js'
var map_Map = /*#__PURE__*/function () {
function Map(options) {
_classCallCheck(this, Map);
/* PUBLIC PROPERTIES DESCRIPTION */
this.map = null;
this.drawLayer = null;
this.selectedPolygon = null;
this.selectedMarkerIndex = null;
this.drawingMode = false;
this.markerIcon = markerIcon;
this.markerIconActive = markerIconActive;
var container = options.container,
rest = _objectWithoutProperties(options, ["container"]);
if (container && container.nodeType === 1) this.container = container;else this.container = document.body.appendChild(document.createElement('div'));
this.storage.constructor.prototype.eventHandler = this.container;
this.createMap();
for (var option in rest) {
this.options[option] = rest[option];
}
this.center = this.options.center;
this.map = this.container.appendChild(document.createElement('div'));
this.setMapSize();
}
_createClass(Map, [{
key: "showMarker",
value: function showMarker(event) {
this.hideAllMarkers();
if (!this.selectedPolygon || !event.markerIndex) return;
this.selectedMarkerIndex = event.markerIndex;
this.selectedPolygonMarkers[event.markerIndex].setIcon(this.markerIconActive);
}
}, {
key: "hideAllMarkers",
value: function hideAllMarkers(event) {
var _this = this;
if (!this.selectedPolygon) return;
this.selectedPolygonMarkers.forEach(function (marker) {
return marker.setIcon(_this.markerIcon);
});
}
}, {
key: "changeMarkerPosition",
value: function changeMarkerPosition(markerCoordinates) {
if (!this.selectedPolygon || typeof this.selectedMarkerIndex !== 'number' || !markerCoordinates) return;
var latLng = new this.__geo.LatLng(markerCoordinates[1], markerCoordinates[0]);
this.selectedPolygonMarkers[this.selectedMarkerIndex].setPosition(latLng);
this.selectedPolygon.getPath().setAt(this.selectedMarkerIndex, latLng);
}
}, {
key: "resetSelectedPolygon",
value: function resetSelectedPolygon() {
var _this2 = this;
this.selectedPolygon.setOptions({
fillColor: this.options.colors[this.selectedPolygon.type],
strokeColor: this.options.colors[this.selectedPolygon.type]
});
this.selectedPolygonMarkers.forEach(function (marker, index) {
_this2.__geo.event.clearListeners(marker, 'drag');
marker.setMap(null);
});
this.selectedPolygonMarkers = null;
}
}, {
key: "findPolygon",
value: function findPolygon(type, latLng) {
var _this3 = this;
return this[type].find(function (polygon) {
return _this3.__geoLocation(latLng, polygon);
});
}
}, {
key: "setSelectedPolygon",
value: function setSelectedPolygon(latLng) {
this.selectedPolygon = this.findPolygon('ServiceAvailable', latLng) || this.findPolygon('BuildCommenced', latLng) || this.findPolygon('ComingSoon', latLng) || null;
if (this.selectedPolygon) {
this.selectedPolygon.setOptions({
fillColor: '#f0f',
strokeColor: '#f0f'
});
this.createMarkers();
this.container.dispatchEvent(Object.assign(new Event('polygon-selected'), {
polygonId: this.selectedPolygon.id
}));
}
return !!this.selectedPolygon;
}
}, {
key: "clickEventHandler",
value: function clickEventHandler(event) {
this.map.setCenter(event.latLng);
if (this.selectedPolygon) this.resetSelectedPolygon();
if (this.setSelectedPolygon(event.latLng)) return;
this.container.dispatchEvent(Object.assign(new Event('empty-field-click'), {
pointOnMap: [event.latLng.lat(), event.latLng.lng()],
clickedAt: [event.clientX, event.clientY]
}));
}
}, {
key: "createMap",
value: function () {
var _createMap = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return loadGoogleMapsScript();
case 2:
if (_context.sent) {
_context.next = 4;
break;
}
return _context.abrupt("return", console.error('Error accessing Google Maps API'));
case 4:
Object.assign(Map.prototype, {
__geo: window.google.maps,
Polygon: window.google.maps.Polygon,
__places: window.google.maps.places,
__geoCoder: new window.google.maps.Geocoder(),
Autocomplete: window.google.maps.places.Autocomplete,
__geoLocation: window.google.maps.geometry.poly.containsLocation
});
this.map = new this.__geo.Map(this.map, {
center: this.center,
zoom: 13,
styles: mapConfig,
disableDefaultUI: true
});
this.markerIcon.path = this.__geo.SymbolPath.CIRCLE;
this.__geo.event.addListener(this.map, 'click', this.clickEventHandler.bind(this));
this.buildPolygons();
case 9:
case "end":
return _context.stop();
}
}
}, _callee, this);
}));
function createMap() {
return _createMap.apply(this, arguments);
}
return createMap;
}()
}, {
key: "createMarkers",
value: function createMarkers() {
var _this4 = this;
if (this.selectedPolygonMarkers) {
this.selectedPolygonMarkers.forEach(function (marker) {
return marker.setOptions({
map: null
});
});
}
this.selectedPolygonMarkers = [];
var coordinates = this.storage.getFeatureById(this.selectedPolygon.id).coordinates;
coordinates.forEach(function (point, index) {
var marker = new _this4.__geo.Marker({
map: _this4.map,
position: new _this4.__geo.LatLng(point[1], point[0]),
icon: _this4.markerIcon,
draggable: true,
raiseOnDrag: false,
title: "".concat(index)
});
marker.addListener('dragend', _this4.changePolygonMarkerPosition(index));
_this4.selectedPolygonMarkers.push(marker);
});
}
}, {
key: "changePolygonType",
value: function changePolygonType(event) {
var _this5 = this;
availablePolygonTypes.forEach(function (item) {
_this5[item].forEach(function (polygon) {
polygon.setMap(null);
polygon = null;
});
_this5[item] = [];
});
this.buildPolygons();
}
}, {
key: "changePolygonMarkerPosition",
value: function changePolygonMarkerPosition(markerIndex) {
return function (event) {
this.selectedPolygon.getPath().setAt(markerIndex, event.latLng);
localStorage.updateMarkerPosition(this.selectedPolygon.id, markerIndex, [event.latLng.lng(), event.latLng.lat()]);
}.bind(this);
}
}, {
key: "changeMarkerCoordinates",
value: function changeMarkerCoordinates(event) {
var latLng = new this.__geo.LatLng(event.details.markerCoordinates[1], event.details.markerCoordinates[0]);
this.selectedPolygon.getPath().setAt(event.details.markerIndex, latLng);
this.selectedPolygonMarkers[event.details.markerIndex].setPosition(latLng);
}
}, {
key: "setMapSize",
value: function setMapSize() {
var box = this.container.getBoundingClientRect;
this.height = box && box.height ? box.height : typeof this.options.height === 'number' ? this.options.height : 400;
this.mapHeight = this.height + 'px';
this.mapWidth = '100%';
this.map.style = "\n height: ".concat(this.mapHeight, ";\n width: ").concat(this.mapWidth, ";\n ");
}
}, {
key: "setColors",
value: function setColors() {
var ServiceAvailable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#A00E0D';
var BuildCommenced = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#000000';
var ComingSoon = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '#FFFF00';
this.colors = {
ServiceAvailable: ServiceAvailable,
BuildCommenced: BuildCommenced,
ComingSoon: ComingSoon
};
}
}, {
key: "updateSelectedPolygonPath",
value: function updateSelectedPolygonPath(coordinates) {
this.selectedPolygon.setPath(coordinates.map(function (item) {
return {
lat: item[1],
lng: item[0]
};
}));
}
}, {
key: "buildPolygon",
value: function buildPolygon(feature, type) {
var color = this.options.colors[type];
var polygon = Object.assign(new this.__geo.Polygon({
paths: feature.coordinates.map(function (point) {
return {
lat: point[1],
lng: point[0]
};
}),
fillColor: color,
strokeColor: color,
strokeWeight: 0.5,
clickable: false
}), {
type: type,
id: feature.id
});
polygon.setMap(this.map);
return polygon;
}
}, {
key: "buildPolygons",
value: function buildPolygons() {
var _this6 = this;
var _iterator = _createForOfIteratorHelper(availablePolygonTypes),
_step;
try {
var _loop = function _loop() {
var type = _step.value;
var features = localStorage.getFeaturesByType(type);
var polygons = features.map(function (feature) {
return _this6.buildPolygon(feature, type);
});
_this6[type] = polygons;
};
for (_iterator.s(); !(_step = _iterator.n()).done;) {
_loop();
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
}
}, {
key: "changePolygonId",
value: function changePolygonId(event) {
var _event$details = event.details,
polygonType = _event$details.polygonType,
oldValue = _event$details.oldValue,
newValue = _event$details.newValue;
var index = this[polygonType].findIndex(function (polygon) {
return polygon.id === oldValue;
});
if (index === -1) return;
Object.assign(this[polygonType][index], {
id: newValue
});
}
}, {
key: "switchToDrawingMode",
value: function switchToDrawingMode() {
this.drawingMode = true;
this.container.dispatchEvent(new Event('drawing-mode-on'));
if (!this.drawLayer) createDrawLayer(this);
if (this.drawLayer.getMap()) return;
this.drawLayer.setMap(this.map);
}
}, {
key: "removePolygon",
value: function removePolygon(type, id) {
this.resetSelectedPolygon();
var index = this[type].findIndex(function (polygon) {
return polygon.id === id;
});
this[type][index].setMap(null);
this[type].splice(index, 1);
this.selectedPolygon = null;
}
}]);
return Map;
}();
map_Map.prototype.storage = localStorage;
map_Map.prototype.options = {
container: document.body,
height: '300px',
width: '100%',
center: {
lat: -37.87013628,
lng: 144.963058
},
colors: {
ServiceAvailable: '#A00E0D',
BuildCommenced: '#000000',
ComingSoon: '#FFBB00'
}
};
/* harmony default export */ var map = (map_Map);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2d9a2cbb-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SelectedPolygon.vue?vue&type=template&id=a8f85b74&
var SelectedPolygonvue_type_template_id_a8f85b74_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-card',{staticClass:"transparent",attrs:{"flat":"","max-width":"480","max-height":"500"}},[_c('v-select',{attrs:{"options":_vm.availablePolygonTypes},model:{value:(_vm.localType),callback:function ($$v) {_vm.localType=$$v},expression:"localType"}}),_c('v-card',{staticClass:"transparent",staticStyle:{"overflow":"auto"},attrs:{"flat":"","max-height":"420"}},[_c('table',[_c('thead',[_c('tr',[_c('th',[_c('small',[_vm._v(" # ")])]),_c('th',[_c('small',[_vm._v(" Lng ")])]),_c('th',[_c('small',[_vm._v(" Lat ")])]),_c('th',[_c('small',[_vm._v(" Add point ")])])])]),_c('tbody',_vm._l((_vm.points),function(point,index){return _c('tr',{key:index,on:{"mouseover":function($event){return _vm.$emit('update:markerIndex', index)}}},[_c('td',[_vm._v(_vm._s(index))]),_c('td',[_c('v-text-field',{staticStyle:{"font-size":"10px"},attrs:{"hide-details":"","outlined":"","dense":""},on:{"input":function($event){return _vm.inputHandler(index, 0, $event)}},model:{value:(_vm.points[index][0]),callback:function ($$v) {_vm.$set(_vm.points[index], 0, $$v)},expression:"points[index][0]"}})],1),_c('td',[_c('v-text-field',{attrs:{"hide-details":"","outlined":"","dense":""},on:{"input":function($event){return _vm.inputHandler(index, 1, $event)}},model:{value:(_vm.points[index][1]),callback:function ($$v) {_vm.$set(_vm.points[index], 1, $$v)},expression:"points[index][1]"}})],1),_c('td',[_c('v-btn',{attrs:{"color":"#09b","text":""},on:{"click":function($event){return _vm.addNewPoint(index)}}},[_c('b',{staticStyle:{"font-size":"24px"}},[_vm._v(" + ")])])],1)])}),0)])])],1)}
var SelectedPolygonvue_type_template_id_a8f85b74_staticRenderFns = []
// CONCATENATED MODULE: ./src/components/SelectedPolygon.vue?vue&type=template&id=a8f85b74&
// EXTERNAL MODULE: ./node_modules/vue-select/dist/vue-select.js
var vue_select = __webpack_require__("4a7a");
var vue_select_default = /*#__PURE__*/__webpack_require__.n(vue_select);
// EXTERNAL MODULE: ./node_modules/vue-select/dist/vue-select.css
var dist_vue_select = __webpack_require__("6dfc");
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SelectedPolygon.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var SelectedPolygonvue_type_script_lang_js_ = ({
name: 'SelectedPolygon',
components: {
vSelect: vue_select_default.a
},
props: ['id', 'type', 'coordinates', 'markerIndex', 'markerCoordinates'],
data: function data() {
return {
points: null,
availablePolygonTypes: availablePolygonTypes,
localType: null
};
},
computed: {
typeOfPolygon: {
get: function get() {
return this.type;
},
set: function set(val) {
this.$emit('update:type', val);
}
}
},
watch: {
coordinates: {
deep: true,
immediate: true,
handler: function handler(val) {
this.points = val;
}
},
markerCoordinates: {
deep: true,
handler: function handler(val) {
if (this.markerIndex >= 0) this.points.splice(this.markerIndex, 1, val);
}
},
type: {
immediate: true,
handler: function handler(val) {
this.localType = val;
}
},
localType: function localType(val) {
this.$emit('update:type', val);
}
},
methods: {
addNewPoint: function addNewPoint(index) {
var next = index === this.points.length - 1 ? 0 : index + 1;
var coords = [(this.points[index][0] + this.points[next][0]) / 2, (this.points[index][1] + this.points[next][1]) / 2];
this.points.splice(next, 0, coords);
updatePolygonGeometry(this.id, this.points);
this.$parent.$parent.map.updateSelectedPolygonPath(this.points);
this.$parent.$parent.map.createMarkers();
},
inputHandler: function inputHandler(pointIndex, coord, val) {
this.points[pointIndex][coord] = parseFloat(val);
this.$emit('update:markerCoordinates', this.points[pointIndex]);
}
}
});
// CONCATENATED MODULE: ./src/components/SelectedPolygon.vue?vue&type=script&lang=js&
/* harmony default export */ var components_SelectedPolygonvue_type_script_lang_js_ = (SelectedPolygonvue_type_script_lang_js_);
// EXTERNAL MODULE: ./src/components/SelectedPolygon.vue?vue&type=style&index=0&lang=css&
var SelectedPolygonvue_type_style_index_0_lang_css_ = __webpack_require__("f557");
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
function normalizeComponent (
scriptExports,
render,
staticRenderFns,
functionalTemplate,
injectStyles,
scopeId,
moduleIdentifier, /* server only */
shadowMode /* vue-cli only */
) {
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports.options
: scriptExports
// render functions
if (render) {
options.render = render
options.staticRenderFns = staticRenderFns
options._compiled = true
}
// functional template
if (functionalTemplate) {
options.functional = true
}
// scopedId
if (scopeId) {
options._scopeId = 'data-v-' + scopeId
}
var hook
if (moduleIdentifier) { // server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__
}
// inject component styles
if (injectStyles) {
injectStyles.call(this, context)
}
// register component module identifier for async chunk inferrence
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier)
}
}
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook
} else if (injectStyles) {
hook = shadowMode
? function () {
injectStyles.call(
this,
(options.functional ? this.parent : this).$root.$options.shadowRoot
)
}
: injectStyles
}
if (hook) {
if (options.functional) {
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
options._injectStyles = hook
// register for functional component in vue file
var originalRender = options.render
options.render = function renderWithStyleInjection (h, context) {
hook.call(context)
return originalRender(h, context)
}
} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate
options.beforeCreate = existing
? [].concat(existing, hook)
: [hook]
}
}
return {
exports: scriptExports,
options: options
}
}
// EXTERNAL MODULE: ./node_modules/vuetify-loader/lib/runtime/installComponents.js
var installComponents = __webpack_require__("6544");
var installComponents_default = /*#__PURE__*/__webpack_require__.n(installComponents);
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.fixed.js
var es_string_fixed = __webpack_require__("c7cd");
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function _typeof(obj) {
return typeof obj;
};
} else {
_typeof = function _typeof(obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
var es_array_filter = __webpack_require__("4de4");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptor.js
var es_object_get_own_property_descriptor = __webpack_require__("e439");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-own-property-descriptors.js
var es_object_get_own_property_descriptors = __webpack_require__("dbb4");
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
if (i % 2) {
ownKeys(Object(source), true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
}
return target;
}
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VBtn/VBtn.sass
var VBtn = __webpack_require__("86cc");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VSheet/VSheet.sass
var VSheet = __webpack_require__("25a8");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/binds-attrs/index.js
/**
* This mixin provides `attrs$` and `listeners$` to work around
* vue bug https://github.com/vuejs/vue/issues/10115
*/
function makeWatcher(property) {
return function (val, oldVal) {
for (var attr in oldVal) {
if (!Object.prototype.hasOwnProperty.call(val, attr)) {
this.$delete(this.$data[property], attr);
}
}
for (var _attr in val) {
this.$set(this.$data[property], _attr, val[_attr]);
}
};
}
/* harmony default export */ var binds_attrs = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
data: function data() {
return {
attrs$: {},
listeners$: {}
};
},
created: function created() {
// Work around unwanted re-renders: https://github.com/vuejs/vue/issues/10115
// Make sure to use `attrs$` instead of `$attrs` (confusing right?)
this.$watch('$attrs', makeWatcher('attrs$'), {
immediate: true
});
this.$watch('$listeners', makeWatcher('listeners$'), {
immediate: true
});
}
}));
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
var es_regexp_exec = __webpack_require__("ac1f");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
var es_string_split = __webpack_require__("1276");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
var es_string_trim = __webpack_require__("498a");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
var es_array_join = __webpack_require__("a15b");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
var es_string_match = __webpack_require__("466d");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.repeat.js
var es_string_repeat = __webpack_require__("38cf");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
var es_string_replace = __webpack_require__("5319");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/install.js
function install(Vue) {
var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (install.installed) return;
install.installed = true;
if (external_commonjs_vue_commonjs2_vue_root_Vue_default.a !== Vue) {
consoleError('Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you\'re seeing "$attrs is readonly", it\'s caused by this');
}
var components = args.components || {};
var directives = args.directives || {};
for (var name in directives) {
var directive = directives[name];
Vue.directive(name, directive);
}
(function registerComponents(components) {
if (components) {
for (var key in components) {
var component = components[key];
if (component && !registerComponents(component.$_vuetify_subcomponents)) {
Vue.component(key, component);
}
}
return true;
}
return false;
})(components); // Used to avoid multiple mixins being setup
// when in dev mode and hot module reload
// https://github.com/vuejs/vue/issues/5089#issuecomment-284260111
if (Vue.$_vuetify_installed) return;
Vue.$_vuetify_installed = true;
Vue.mixin({
beforeCreate: function beforeCreate() {
var options = this.$options;
if (options.vuetify) {
options.vuetify.init(this, options.ssrContext);
this.$vuetify = Vue.observable(options.vuetify.framework);
} else {
this.$vuetify = options.parent && options.parent.$vuetify || this;
}
},
beforeMount: function beforeMount() {
// @ts-ignore
if (this.$options.vuetify && this.$el && this.$el.hasAttribute('data-server-rendered')) {
// @ts-ignore
this.$vuetify.isHydrating = true; // @ts-ignore
this.$vuetify.breakpoint.update(true);
}
},
mounted: function mounted() {
// @ts-ignore
if (this.$options.vuetify && this.$vuetify.isHydrating) {
// @ts-ignore
this.$vuetify.isHydrating = false; // @ts-ignore
this.$vuetify.breakpoint.update();
}
}
});
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
if (superClass) _setPrototypeOf(subClass, superClass);
}
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.reflect.construct.js
var es_reflect_construct = __webpack_require__("4ae1");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.get-prototype-of.js
var es_object_get_prototype_of = __webpack_require__("3410");
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
return true;
} catch (e) {
return false;
}
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
function _possibleConstructorReturn(self, call) {
if (call && (_typeof(call) === "object" || typeof call === "function")) {
return call;
}
return _assertThisInitialized(self);
}
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js
function _createSuper(Derived) {
var hasNativeReflectConstruct = _isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = _getPrototypeOf(Derived),
result;
if (hasNativeReflectConstruct) {
var NewTarget = _getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return _possibleConstructorReturn(this, result);
};
}
// EXTERNAL MODULE: ./node_modules/vuetify/src/styles/main.sass
var main = __webpack_require__("95ed");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/locale/en.js
/* harmony default export */ var en = ({
badge: 'Badge',
close: 'Close',
dataIterator: {
noResultsText: 'No matching records found',
loadingText: 'Loading items...'
},
dataTable: {
itemsPerPageText: 'Rows per page:',
ariaLabel: {
sortDescending: 'Sorted descending.',
sortAscending: 'Sorted ascending.',
sortNone: 'Not sorted.',
activateNone: 'Activate to remove sorting.',
activateDescending: 'Activate to sort descending.',
activateAscending: 'Activate to sort ascending.'
},
sortBy: 'Sort by'
},
dataFooter: {
itemsPerPageText: 'Items per page:',
itemsPerPageAll: 'All',
nextPage: 'Next page',
prevPage: 'Previous page',
firstPage: 'First page',
lastPage: 'Last page',
pageText: '{0}-{1} of {2}'
},
datePicker: {
itemsSelected: '{0} selected',
nextMonthAriaLabel: 'Next month',
nextYearAriaLabel: 'Next year',
prevMonthAriaLabel: 'Previous month',
prevYearAriaLabel: 'Previous year'
},
noDataText: 'No data available',
carousel: {
prev: 'Previous visual',
next: 'Next visual',
ariaLabel: {
delimiter: 'Carousel slide {0} of {1}'
}
},
calendar: {
moreEvents: '{0} more'
},
fileInput: {
counter: '{0} files',
counterSize: '{0} files ({1} in total)'
},
timePicker: {
am: 'AM',
pm: 'PM'
},
pagination: {
ariaLabel: {
wrapper: 'Pagination Navigation',
next: 'Next page',
previous: 'Previous page',
page: 'Goto Page {0}',
currentPage: 'Current Page, Page {0}'
}
}
});
// CONCATENATED MODULE: ./node_modules/vuetify/lib/presets/default/index.js
// Styles
// Locale
var default_preset = {
breakpoint: {
// TODO: update to MD2 spec in v3 - 1280
mobileBreakpoint: 1264,
scrollBarWidth: 16,
thresholds: {
xs: 600,
sm: 960,
md: 1280,
lg: 1920
}
},
icons: {
// TODO: remove v3
iconfont: 'mdi',
values: {}
},
lang: {
current: 'en',
locales: {
en: en
},
// Default translator exists in lang service
t: undefined
},
rtl: false,
theme: {
dark: false,
default: 'light',
disable: false,
options: {
cspNonce: undefined,
customProperties: undefined,
minifyTheme: undefined,
themeCache: undefined,
variations: true
},
themes: {
light: {
primary: '#1976D2',
secondary: '#424242',
accent: '#82B1FF',
error: '#FF5252',
info: '#2196F3',
success: '#4CAF50',
warning: '#FB8C00'
},
dark: {
primary: '#2196F3',
secondary: '#424242',
accent: '#FF4081',
error: '#FF5252',
info: '#2196F3',
success: '#4CAF50',
warning: '#FB8C00'
}
}
}
};
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.every.js
var es_array_every = __webpack_require__("a623");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.fill.js
var es_array_fill = __webpack_require__("cb29");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.reduce.js
var es_array_reduce = __webpack_require__("13d5");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.some.js
var es_array_some = __webpack_require__("45fc");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
var es_number_constructor = __webpack_require__("a9e3");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
var es_number_to_fixed = __webpack_require__("b680");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.freeze.js
var es_object_freeze = __webpack_require__("dca8");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js
var es_string_starts_with = __webpack_require__("2ca0");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/util/helpers.js
function createSimpleFunctional(c) {
var el = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'div';
var name = arguments.length > 2 ? arguments[2] : undefined;
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: name || c.replace(/__/g, '-'),
functional: true,
render: function render(h, _ref) {
var data = _ref.data,
children = _ref.children;
data.staticClass = "".concat(c, " ").concat(data.staticClass || '').trim();
return h(el, data, children);
}
});
}
function directiveConfig(binding) {
var defaults = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return _objectSpread2(_objectSpread2(_objectSpread2({}, defaults), binding.modifiers), {}, {
value: binding.arg
}, binding.value || {});
}
function addOnceEventListener(el, eventName, cb) {
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
var once = function once(event) {
cb(event);
el.removeEventListener(eventName, once, options);
};
el.addEventListener(eventName, once, options);
}
var passiveSupported = false;
try {
if (typeof window !== 'undefined') {
var testListenerOpts = Object.defineProperty({}, 'passive', {
get: function get() {
passiveSupported = true;
}
});
window.addEventListener('testListener', testListenerOpts, testListenerOpts);
window.removeEventListener('testListener', testListenerOpts, testListenerOpts);
}
} catch (e) {
console.warn(e);
}
function addPassiveEventListener(el, event, cb, options) {
el.addEventListener(event, cb, passiveSupported ? options : false);
}
function getNestedValue(obj, path, fallback) {
var last = path.length - 1;
if (last < 0) return obj === undefined ? fallback : obj;
for (var i = 0; i < last; i++) {
if (obj == null) {
return fallback;
}
obj = obj[path[i]];
}
if (obj == null) return fallback;
return obj[path[last]] === undefined ? fallback : obj[path[last]];
}
function deepEqual(a, b) {
if (a === b) return true;
if (a instanceof Date && b instanceof Date) {
// If the values are Date, they were convert to timestamp with getTime and compare it
if (a.getTime() !== b.getTime()) return false;
}
if (a !== Object(a) || b !== Object(b)) {
// If the values aren't objects, they were already checked for equality
return false;
}
var props = Object.keys(a);
if (props.length !== Object.keys(b).length) {
// Different number of props, don't bother to check
return false;
}
return props.every(function (p) {
return deepEqual(a[p], b[p]);
});
}
function getObjectValueByPath(obj, path, fallback) {
// credit: http://stackoverflow.com/questions/6491463/accessing-nested-javascript-objects-with-string-key#comment55278413_6491621
if (obj == null || !path || typeof path !== 'string') return fallback;
if (obj[path] !== undefined) return obj[path];
path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties
path = path.replace(/^\./, ''); // strip a leading dot
return getNestedValue(obj, path.split('.'), fallback);
}
function getPropertyFromItem(item, property, fallback) {
if (property == null) return item === undefined ? fallback : item;
if (item !== Object(item)) return fallback === undefined ? item : fallback;
if (typeof property === 'string') return getObjectValueByPath(item, property, fallback);
if (Array.isArray(property)) return getNestedValue(item, property, fallback);
if (typeof property !== 'function') return fallback;
var value = property(item, fallback);
return typeof value === 'undefined' ? fallback : value;
}
function createRange(length) {
return Array.from({
length: length
}, function (v, k) {
return k;
});
}
function getZIndex(el) {
if (!el || el.nodeType !== Node.ELEMENT_NODE) return 0;
var index = +window.getComputedStyle(el).getPropertyValue('z-index');
if (!index) return getZIndex(el.parentNode);
return index;
}
var tagsToReplace = {
'&': '&',
'<': '<',
'>': '>'
};
function escapeHTML(str) {
return str.replace(/[&<>]/g, function (tag) {
return tagsToReplace[tag] || tag;
});
}
function filterObjectOnKeys(obj, keys) {
var filtered = {};
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
if (typeof obj[key] !== 'undefined') {
filtered[key] = obj[key];
}
}
return filtered;
}
function convertToUnit(str) {
var unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'px';
if (str == null || str === '') {
return undefined;
} else if (isNaN(+str)) {
return String(str);
} else {
return "".concat(Number(str)).concat(unit);
}
}
function kebabCase(str) {
return (str || '').replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
}
function isObject(obj) {
return obj !== null && _typeof(obj) === 'object';
} // KeyboardEvent.keyCode aliases
var keyCodes = Object.freeze({
enter: 13,
tab: 9,
delete: 46,
esc: 27,
space: 32,
up: 38,
down: 40,
left: 37,
right: 39,
end: 35,
home: 36,
del: 46,
backspace: 8,
insert: 45,
pageup: 33,
pagedown: 34
}); // This remaps internal names like '$cancel' or '$vuetify.icons.cancel'
// to the current name or component for that icon.
function remapInternalIcon(vm, iconName) {
if (!iconName.startsWith('$')) {
return iconName;
} // Get the target icon name
var iconPath = "$vuetify.icons.values.".concat(iconName.split('$').pop().split('.').pop()); // Now look up icon indirection name,
// e.g. '$vuetify.icons.values.cancel'
return getObjectValueByPath(vm, iconPath, iconName);
}
function keys(o) {
return Object.keys(o);
}
/**
* Camelize a hyphen-delimited string.
*/
var camelizeRE = /-(\w)/g;
var camelize = function camelize(str) {
return str.replace(camelizeRE, function (_, c) {
return c ? c.toUpperCase() : '';
});
};
/**
* Returns the set difference of B and A, i.e. the set of elements in B but not in A
*/
function arrayDiff(a, b) {
var diff = [];
for (var i = 0; i < b.length; i++) {
if (a.indexOf(b[i]) < 0) diff.push(b[i]);
}
return diff;
}
/**
* Makes the first character of a string uppercase
*/
function upperFirst(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
}
function groupItems(items, groupBy, groupDesc) {
var key = groupBy[0];
var groups = [];
var current = null;
for (var i = 0; i < items.length; i++) {
var item = items[i];
var val = getObjectValueByPath(item, key);
if (current !== val) {
current = val;
groups.push({
name: val,
items: []
});
}
groups[groups.length - 1].items.push(item);
}
return groups;
}
function wrapInArray(v) {
return v != null ? Array.isArray(v) ? v : [v] : [];
}
function sortItems(items, sortBy, sortDesc, locale, customSorters) {
if (sortBy === null || !sortBy.length) return items;
var stringCollator = new Intl.Collator(locale, {
sensitivity: 'accent',
usage: 'sort'
});
return items.sort(function (a, b) {
for (var i = 0; i < sortBy.length; i++) {
var sortKey = sortBy[i];
var sortA = getObjectValueByPath(a, sortKey);
var sortB = getObjectValueByPath(b, sortKey);
if (sortDesc[i]) {
var _ref2 = [sortB, sortA];
sortA = _ref2[0];
sortB = _ref2[1];
}
if (customSorters && customSorters[sortKey]) {
var customResult = customSorters[sortKey](sortA, sortB);
if (!customResult) continue;
return customResult;
} // Check if both cannot be evaluated
if (sortA === null && sortB === null) {
continue;
}
var _map = [sortA, sortB].map(function (s) {
return (s || '').toString().toLocaleLowerCase();
});
var _map2 = _slicedToArray(_map, 2);
sortA = _map2[0];
sortB = _map2[1];
if (sortA !== sortB) {
if (!isNaN(sortA) && !isNaN(sortB)) return Number(sortA) - Number(sortB);
return stringCollator.compare(sortA, sortB);
}
}
return 0;
});
}
function defaultFilter(value, search, item) {
return value != null && search != null && typeof value !== 'boolean' && value.toString().toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) !== -1;
}
function searchItems(items, search) {
if (!search) return items;
search = search.toString().toLowerCase();
if (search.trim() === '') return items;
return items.filter(function (item) {
return Object.keys(item).some(function (key) {
return defaultFilter(getObjectValueByPath(item, key), search, item);
});
});
}
/**
* Returns:
* - 'normal' for old style slots - `<template slot="default">`
* - 'scoped' for old style scoped slots (`<template slot="default" slot-scope="data">`) or bound v-slot (`#default="data"`)
* - 'v-slot' for unbound v-slot (`#default`) - only if the third param is true, otherwise counts as scoped
*/
function getSlotType(vm, name, split) {
if (vm.$slots[name] && vm.$scopedSlots[name] && vm.$scopedSlots[name].name) {
return split ? 'v-slot' : 'scoped';
}
if (vm.$slots[name]) return 'normal';
if (vm.$scopedSlots[name]) return 'scoped';
}
function debounce(fn, delay) {
var timeoutId = 0;
return function () {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
clearTimeout(timeoutId);
timeoutId = setTimeout(function () {
return fn.apply(void 0, args);
}, delay);
};
}
function throttle(fn, limit) {
var throttling = false;
return function () {
if (!throttling) {
throttling = true;
setTimeout(function () {
return throttling = false;
}, limit);
return fn.apply(void 0, arguments);
}
};
}
function getPrefixedScopedSlots(prefix, scopedSlots) {
return Object.keys(scopedSlots).filter(function (k) {
return k.startsWith(prefix);
}).reduce(function (obj, k) {
obj[k.replace(prefix, '')] = scopedSlots[k];
return obj;
}, {});
}
function getSlot(vm) {
var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
var data = arguments.length > 2 ? arguments[2] : undefined;
var optional = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
if (vm.$scopedSlots[name]) {
return vm.$scopedSlots[name](data instanceof Function ? data() : data);
} else if (vm.$slots[name] && (!data || optional)) {
return vm.$slots[name];
}
return undefined;
}
function clamp(value) {
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
return Math.max(min, Math.min(max, value));
}
function padEnd(str, length) {
var char = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '0';
return str + char.repeat(Math.max(0, length - str.length));
}
function chunk(str) {
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
var chunked = [];
var index = 0;
while (index < str.length) {
chunked.push(str.substr(index, size));
index += size;
}
return chunked;
}
function humanReadableFileSize(bytes) {
var binary = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var base = binary ? 1024 : 1000;
if (bytes < base) {
return "".concat(bytes, " B");
}
var prefix = binary ? ['Ki', 'Mi', 'Gi'] : ['k', 'M', 'G'];
var unit = -1;
while (Math.abs(bytes) >= base && unit < prefix.length - 1) {
bytes /= base;
++unit;
}
return "".concat(bytes.toFixed(1), " ").concat(prefix[unit], "B");
}
function camelizeObjectKeys(obj) {
if (!obj) return {};
return Object.keys(obj).reduce(function (o, key) {
o[camelize(key)] = obj[key];
return o;
}, {});
}
function mergeDeep() {
var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
for (var key in target) {
var sourceProperty = source[key];
var targetProperty = target[key]; // Only continue deep merging if
// both properties are objects
if (isObject(sourceProperty) && isObject(targetProperty)) {
source[key] = mergeDeep(sourceProperty, targetProperty);
continue;
}
source[key] = targetProperty;
}
return source;
}
function fillArray(length, obj) {
return Array(length).fill(obj);
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/service/index.js
var service_Service = /*#__PURE__*/function () {
function Service() {
_classCallCheck(this, Service);
this.framework = {};
}
_createClass(Service, [{
key: "init",
value: function init(root, ssrContext) {}
}]);
return Service;
}();
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/presets/index.js
// Preset
// Utilities
var presets_Presets = /*#__PURE__*/function (_Service) {
_inherits(Presets, _Service);
var _super = _createSuper(Presets);
function Presets(parentPreset, parent) {
var _this;
_classCallCheck(this, Presets);
_this = _super.call(this); // The default preset
var defaultPreset = mergeDeep({}, default_preset); // The user provided preset
var userPreset = parent.userPreset; // The user provided global preset
var _userPreset$preset = userPreset.preset,
globalPreset = _userPreset$preset === void 0 ? {} : _userPreset$preset,
preset = _objectWithoutProperties(userPreset, ["preset"]);
if (globalPreset.preset != null) {
consoleWarn('Global presets do not support the **preset** option, it can be safely omitted');
}
parent.preset = mergeDeep(mergeDeep(defaultPreset, globalPreset), preset);
return _this;
}
return Presets;
}(service_Service);
presets_Presets.property = 'presets';
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.values.js
var es_object_values = __webpack_require__("07ac");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/application/index.js
// Extensions
var application_Application = /*#__PURE__*/function (_Service) {
_inherits(Application, _Service);
var _super = _createSuper(Application);
function Application() {
var _this;
_classCallCheck(this, Application);
_this = _super.apply(this, arguments);
_this.bar = 0;
_this.top = 0;
_this.left = 0;
_this.insetFooter = 0;
_this.right = 0;
_this.bottom = 0;
_this.footer = 0;
_this.application = {
bar: {},
top: {},
left: {},
insetFooter: {},
right: {},
bottom: {},
footer: {}
};
return _this;
}
_createClass(Application, [{
key: "register",
value: function register(uid, location, size) {
this.application[location] = _defineProperty({}, uid, size);
this.update(location);
}
}, {
key: "unregister",
value: function unregister(uid, location) {
if (this.application[location][uid] == null) return;
delete this.application[location][uid];
this.update(location);
}
}, {
key: "update",
value: function update(location) {
this[location] = Object.values(this.application[location]).reduce(function (acc, cur) {
return acc + cur;
}, 0);
}
}]);
return Application;
}(service_Service);
application_Application.property = 'application';
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/breakpoint/index.js
// Extensions
var breakpoint_Breakpoint = /*#__PURE__*/function (_Service) {
_inherits(Breakpoint, _Service);
var _super = _createSuper(Breakpoint);
function Breakpoint(preset) {
var _this;
_classCallCheck(this, Breakpoint);
_this = _super.call(this); // Public
_this.xs = false;
_this.sm = false;
_this.md = false;
_this.lg = false;
_this.xl = false;
_this.xsOnly = false;
_this.smOnly = false;
_this.smAndDown = false;
_this.smAndUp = false;
_this.mdOnly = false;
_this.mdAndDown = false;
_this.mdAndUp = false;
_this.lgOnly = false;
_this.lgAndDown = false;
_this.lgAndUp = false;
_this.xlOnly = false; // Value is xs to match v2.x functionality
_this.name = 'xs';
_this.height = 0;
_this.width = 0; // TODO: Add functionality to detect this dynamically in v3
// Value is true to match v2.x functionality
_this.mobile = true;
_this.resizeTimeout = 0;
var _preset$Breakpoint$pr = preset[Breakpoint.property],
mobileBreakpoint = _preset$Breakpoint$pr.mobileBreakpoint,
scrollBarWidth = _preset$Breakpoint$pr.scrollBarWidth,
thresholds = _preset$Breakpoint$pr.thresholds;
_this.mobileBreakpoint = mobileBreakpoint;
_this.scrollBarWidth = scrollBarWidth;
_this.thresholds = thresholds;
return _this;
}
_createClass(Breakpoint, [{
key: "init",
value: function init() {
this.update();
/* istanbul ignore if */
if (typeof window === 'undefined') return;
window.addEventListener('resize', this.onResize.bind(this), {
passive: true
});
}
/* eslint-disable-next-line max-statements */
}, {
key: "update",
value: function update() {
var ssr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
var height = ssr ? 0 : this.getClientHeight();
var width = ssr ? 0 : this.getClientWidth();
var xs = width < this.thresholds.xs;
var sm = width < this.thresholds.sm && !xs;
var md = width < this.thresholds.md - this.scrollBarWidth && !(sm || xs);
var lg = width < this.thresholds.lg - this.scrollBarWidth && !(md || sm || xs);
var xl = width >= this.thresholds.lg - this.scrollBarWidth;
this.height = height;
this.width = width;
this.xs = xs;
this.sm = sm;
this.md = md;
this.lg = lg;
this.xl = xl;
this.xsOnly = xs;
this.smOnly = sm;
this.smAndDown = (xs || sm) && !(md || lg || xl);
this.smAndUp = !xs && (sm || md || lg || xl);
this.mdOnly = md;
this.mdAndDown = (xs || sm || md) && !(lg || xl);
this.mdAndUp = !(xs || sm) && (md || lg || xl);
this.lgOnly = lg;
this.lgAndDown = (xs || sm || md || lg) && !xl;
this.lgAndUp = !(xs || sm || md) && (lg || xl);
this.xlOnly = xl;
switch (true) {
case xs:
this.name = 'xs';
break;
case sm:
this.name = 'sm';
break;
case md:
this.name = 'md';
break;
case lg:
this.name = 'lg';
break;
default:
this.name = 'xl';
break;
}
if (typeof this.mobileBreakpoint === 'number') {
this.mobile = width < parseInt(this.mobileBreakpoint, 10);
return;
}
var breakpoints = {
xs: 0,
sm: 1,
md: 2,
lg: 3,
xl: 4
};
var current = breakpoints[this.name];
var max = breakpoints[this.mobileBreakpoint];
this.mobile = current <= max;
}
}, {
key: "onResize",
value: function onResize() {
clearTimeout(this.resizeTimeout); // Added debounce to match what
// v-resize used to do but was
// removed due to a memory leak
// https://github.com/vuetifyjs/vuetify/pull/2997
this.resizeTimeout = window.setTimeout(this.update.bind(this), 200);
} // Cross-browser support as described in:
// https://stackoverflow.com/questions/1248081
}, {
key: "getClientWidth",
value: function getClientWidth() {
/* istanbul ignore if */
if (typeof document === 'undefined') return 0; // SSR
return Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
}
}, {
key: "getClientHeight",
value: function getClientHeight() {
/* istanbul ignore if */
if (typeof document === 'undefined') return 0; // SSR
return Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
}
}]);
return Breakpoint;
}(service_Service);
breakpoint_Breakpoint.property = 'breakpoint';
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/goto/easing-patterns.js
// linear
var linear = function linear(t) {
return t;
}; // accelerating from zero velocity
var easeInQuad = function easeInQuad(t) {
return Math.pow(t, 2);
}; // decelerating to zero velocity
var easeOutQuad = function easeOutQuad(t) {
return t * (2 - t);
}; // acceleration until halfway, then deceleration
var easeInOutQuad = function easeInOutQuad(t) {
return t < 0.5 ? 2 * Math.pow(t, 2) : -1 + (4 - 2 * t) * t;
}; // accelerating from zero velocity
var easeInCubic = function easeInCubic(t) {
return Math.pow(t, 3);
}; // decelerating to zero velocity
var easeOutCubic = function easeOutCubic(t) {
return Math.pow(--t, 3) + 1;
}; // acceleration until halfway, then deceleration
var easeInOutCubic = function easeInOutCubic(t) {
return t < 0.5 ? 4 * Math.pow(t, 3) : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;
}; // accelerating from zero velocity
var easeInQuart = function easeInQuart(t) {
return Math.pow(t, 4);
}; // decelerating to zero velocity
var easeOutQuart = function easeOutQuart(t) {
return 1 - Math.pow(--t, 4);
}; // acceleration until halfway, then deceleration
var easeInOutQuart = function easeInOutQuart(t) {
return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;
}; // accelerating from zero velocity
var easeInQuint = function easeInQuint(t) {
return Math.pow(t, 5);
}; // decelerating to zero velocity
var easeOutQuint = function easeOutQuint(t) {
return 1 + Math.pow(--t, 5);
}; // acceleration until halfway, then deceleration
var easeInOutQuint = function easeInOutQuint(t) {
return t < 0.5 ? 16 * Math.pow(t, 5) : 1 + 16 * Math.pow(--t, 5);
};
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/goto/util.js
// Return target's cumulative offset from the top
function getOffset(target) {
if (typeof target === 'number') {
return target;
}
var el = $(target);
if (!el) {
throw typeof target === 'string' ? new Error("Target element \"".concat(target, "\" not found.")) : new TypeError("Target must be a Number/Selector/HTMLElement/VueComponent, received ".concat(util_type(target), " instead."));
}
var totalOffset = 0;
while (el) {
totalOffset += el.offsetTop;
el = el.offsetParent;
}
return totalOffset;
}
function util_getContainer(container) {
var el = $(container);
if (el) return el;
throw typeof container === 'string' ? new Error("Container element \"".concat(container, "\" not found.")) : new TypeError("Container must be a Selector/HTMLElement/VueComponent, received ".concat(util_type(container), " instead."));
}
function util_type(el) {
return el == null ? el : el.constructor.name;
}
function $(el) {
if (typeof el === 'string') {
return document.querySelector(el);
} else if (el && el._isVue) {
return el.$el;
} else if (el instanceof HTMLElement) {
return el;
} else {
return null;
}
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/goto/index.js
// Extensions
// Utilities
function goTo(_target) {
var _settings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var settings = _objectSpread2({
container: document.scrollingElement || document.body || document.documentElement,
duration: 500,
offset: 0,
easing: 'easeInOutCubic',
appOffset: true
}, _settings);
var container = util_getContainer(settings.container);
/* istanbul ignore else */
if (settings.appOffset && goTo.framework.application) {
var isDrawer = container.classList.contains('v-navigation-drawer');
var isClipped = container.classList.contains('v-navigation-drawer--clipped');
var _goTo$framework$appli = goTo.framework.application,
bar = _goTo$framework$appli.bar,
top = _goTo$framework$appli.top;
settings.offset += bar;
/* istanbul ignore else */
if (!isDrawer || isClipped) settings.offset += top;
}
var startTime = performance.now();
var targetLocation;
if (typeof _target === 'number') {
targetLocation = getOffset(_target) - settings.offset;
} else {
targetLocation = getOffset(_target) - getOffset(container) - settings.offset;
}
var startLocation = container.scrollTop;
if (targetLocation === startLocation) return Promise.resolve(targetLocation);
var ease = typeof settings.easing === 'function' ? settings.easing : easing_patterns_namespaceObject[settings.easing];
/* istanbul ignore else */
if (!ease) throw new TypeError("Easing function \"".concat(settings.easing, "\" not found.")); // Cannot be tested properly in jsdom
// tslint:disable-next-line:promise-must-complete
/* istanbul ignore next */
return new Promise(function (resolve) {
return requestAnimationFrame(function step(currentTime) {
var timeElapsed = currentTime - startTime;
var progress = Math.abs(settings.duration ? Math.min(timeElapsed / settings.duration, 1) : 1);
container.scrollTop = Math.floor(startLocation + (targetLocation - startLocation) * ease(progress));
var clientHeight = container === document.body ? document.documentElement.clientHeight : container.clientHeight;
if (progress === 1 || clientHeight + container.scrollTop === container.scrollHeight) {
return resolve(targetLocation);
}
requestAnimationFrame(step);
});
});
}
goTo.framework = {};
goTo.init = function () {};
var goto_Goto = /*#__PURE__*/function (_Service) {
_inherits(Goto, _Service);
var _super = _createSuper(Goto);
function Goto() {
var _this;
_classCallCheck(this, Goto);
_this = _super.call(this);
return _possibleConstructorReturn(_this, goTo);
}
return Goto;
}(service_Service);
goto_Goto.property = 'goTo';
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/icons/presets/mdi-svg.js
var icons = {
complete: 'M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z',
cancel: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
close: 'M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z',
delete: 'M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z',
clear: 'M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z',
success: 'M12,2C17.52,2 22,6.48 22,12C22,17.52 17.52,22 12,22C6.48,22 2,17.52 2,12C2,6.48 6.48,2 12,2M11,16.5L18,9.5L16.59,8.09L11,13.67L7.91,10.59L6.5,12L11,16.5Z',
info: 'M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z',
warning: 'M11,4.5H13V15.5H11V4.5M13,17.5V19.5H11V17.5H13Z',
error: 'M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z',
prev: 'M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z',
next: 'M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z',
checkboxOn: 'M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z',
checkboxOff: 'M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z',
checkboxIndeterminate: 'M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z',
delimiter: 'M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z',
sort: 'M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z',
expand: 'M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z',
menu: 'M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z',
subgroup: 'M7,10L12,15L17,10H7Z',
dropdown: 'M7,10L12,15L17,10H7Z',
radioOn: 'M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z',
radioOff: 'M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z',
edit: 'M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z',
ratingEmpty: 'M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z',
ratingFull: 'M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z',
ratingHalf: 'M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z',
loading: 'M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12',
first: 'M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z',
last: 'M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z',
unfold: 'M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z',
file: 'M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z',
plus: 'M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z',
minus: 'M19,13H5V11H19V13Z'
};
/* harmony default export */ var mdi_svg = (icons);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/icons/presets/md.js
var md_icons = {
complete: 'check',
cancel: 'cancel',
close: 'close',
delete: 'cancel',
clear: 'clear',
success: 'check_circle',
info: 'info',
warning: 'priority_high',
error: 'warning',
prev: 'chevron_left',
next: 'chevron_right',
checkboxOn: 'check_box',
checkboxOff: 'check_box_outline_blank',
checkboxIndeterminate: 'indeterminate_check_box',
delimiter: 'fiber_manual_record',
sort: 'arrow_upward',
expand: 'keyboard_arrow_down',
menu: 'menu',
subgroup: 'arrow_drop_down',
dropdown: 'arrow_drop_down',
radioOn: 'radio_button_checked',
radioOff: 'radio_button_unchecked',
edit: 'edit',
ratingEmpty: 'star_border',
ratingFull: 'star',
ratingHalf: 'star_half',
loading: 'cached',
first: 'first_page',
last: 'last_page',
unfold: 'unfold_more',
file: 'attach_file',
plus: 'add',
minus: 'remove'
};
/* harmony default export */ var md = (md_icons);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/icons/presets/mdi.js
var mdi_icons = {
complete: 'mdi-check',
cancel: 'mdi-close-circle',
close: 'mdi-close',
delete: 'mdi-close-circle',
clear: 'mdi-close',
success: 'mdi-check-circle',
info: 'mdi-information',
warning: 'mdi-exclamation',
error: 'mdi-alert',
prev: 'mdi-chevron-left',
next: 'mdi-chevron-right',
checkboxOn: 'mdi-checkbox-marked',
checkboxOff: 'mdi-checkbox-blank-outline',
checkboxIndeterminate: 'mdi-minus-box',
delimiter: 'mdi-circle',
sort: 'mdi-arrow-up',
expand: 'mdi-chevron-down',
menu: 'mdi-menu',
subgroup: 'mdi-menu-down',
dropdown: 'mdi-menu-down',
radioOn: 'mdi-radiobox-marked',
radioOff: 'mdi-radiobox-blank',
edit: 'mdi-pencil',
ratingEmpty: 'mdi-star-outline',
ratingFull: 'mdi-star',
ratingHalf: 'mdi-star-half',
loading: 'mdi-cached',
first: 'mdi-page-first',
last: 'mdi-page-last',
unfold: 'mdi-unfold-more-horizontal',
file: 'mdi-paperclip',
plus: 'mdi-plus',
minus: 'mdi-minus'
};
/* harmony default export */ var mdi = (mdi_icons);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/icons/presets/fa.js
var fa_icons = {
complete: 'fas fa-check',
cancel: 'fas fa-times-circle',
close: 'fas fa-times',
delete: 'fas fa-times-circle',
clear: 'fas fa-times-circle',
success: 'fas fa-check-circle',
info: 'fas fa-info-circle',
warning: 'fas fa-exclamation',
error: 'fas fa-exclamation-triangle',
prev: 'fas fa-chevron-left',
next: 'fas fa-chevron-right',
checkboxOn: 'fas fa-check-square',
checkboxOff: 'far fa-square',
checkboxIndeterminate: 'fas fa-minus-square',
delimiter: 'fas fa-circle',
sort: 'fas fa-sort-up',
expand: 'fas fa-chevron-down',
menu: 'fas fa-bars',
subgroup: 'fas fa-caret-down',
dropdown: 'fas fa-caret-down',
radioOn: 'far fa-dot-circle',
radioOff: 'far fa-circle',
edit: 'fas fa-edit',
ratingEmpty: 'far fa-star',
ratingFull: 'fas fa-star',
ratingHalf: 'fas fa-star-half',
loading: 'fas fa-sync',
first: 'fas fa-step-backward',
last: 'fas fa-step-forward',
unfold: 'fas fa-arrows-alt-v',
file: 'fas fa-paperclip',
plus: 'fas fa-plus',
minus: 'fas fa-minus'
};
/* harmony default export */ var fa = (fa_icons);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/icons/presets/fa4.js
var fa4_icons = {
complete: 'fa fa-check',
cancel: 'fa fa-times-circle',
close: 'fa fa-times',
delete: 'fa fa-times-circle',
clear: 'fa fa-times-circle',
success: 'fa fa-check-circle',
info: 'fa fa-info-circle',
warning: 'fa fa-exclamation',
error: 'fa fa-exclamation-triangle',
prev: 'fa fa-chevron-left',
next: 'fa fa-chevron-right',
checkboxOn: 'fa fa-check-square',
checkboxOff: 'fa fa-square-o',
checkboxIndeterminate: 'fa fa-minus-square',
delimiter: 'fa fa-circle',
sort: 'fa fa-sort-up',
expand: 'fa fa-chevron-down',
menu: 'fa fa-bars',
subgroup: 'fa fa-caret-down',
dropdown: 'fa fa-caret-down',
radioOn: 'fa fa-dot-circle-o',
radioOff: 'fa fa-circle-o',
edit: 'fa fa-pencil',
ratingEmpty: 'fa fa-star-o',
ratingFull: 'fa fa-star',
ratingHalf: 'fa fa-star-half-o',
loading: 'fa fa-refresh',
first: 'fa fa-step-backward',
last: 'fa fa-step-forward',
unfold: 'fa fa-angle-double-down',
file: 'fa fa-paperclip',
plus: 'fa fa-plus',
minus: 'fa fa-minus'
};
/* harmony default export */ var fa4 = (fa4_icons);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/icons/presets/fa-svg.js
function convertToComponentDeclarations(component, iconSet) {
var result = {};
for (var key in iconSet) {
result[key] = {
component: component,
props: {
icon: iconSet[key].split(' fa-')
}
};
}
return result;
}
/* harmony default export */ var fa_svg = (convertToComponentDeclarations('font-awesome-icon', fa));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/icons/presets/index.js
/* harmony default export */ var presets = (Object.freeze({
mdiSvg: mdi_svg,
md: md,
mdi: mdi,
fa: fa,
fa4: fa4,
faSvg: fa_svg
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/icons/index.js
// Extensions
// Utilities
// Presets
var icons_Icons = /*#__PURE__*/function (_Service) {
_inherits(Icons, _Service);
var _super = _createSuper(Icons);
function Icons(preset) {
var _this;
_classCallCheck(this, Icons);
_this = _super.call(this);
var _preset$Icons$propert = preset[Icons.property],
iconfont = _preset$Icons$propert.iconfont,
values = _preset$Icons$propert.values;
_this.iconfont = iconfont;
_this.values = mergeDeep(presets[iconfont], values);
return _this;
}
return Icons;
}(service_Service);
icons_Icons.property = 'icons';
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/lang/index.js
// Extensions
// Utilities
var LANG_PREFIX = '$vuetify.';
var fallback = Symbol('Lang fallback');
function getTranslation(locale, key) {
var usingDefault = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
var defaultLocale = arguments.length > 3 ? arguments[3] : undefined;
var shortKey = key.replace(LANG_PREFIX, '');
var translation = getObjectValueByPath(locale, shortKey, fallback);
if (translation === fallback) {
if (usingDefault) {
consoleError("Translation key \"".concat(shortKey, "\" not found in fallback"));
translation = key;
} else {
consoleWarn("Translation key \"".concat(shortKey, "\" not found, falling back to default"));
translation = getTranslation(defaultLocale, key, true, defaultLocale);
}
}
return translation;
}
var lang_Lang = /*#__PURE__*/function (_Service) {
_inherits(Lang, _Service);
var _super = _createSuper(Lang);
function Lang(preset) {
var _this;
_classCallCheck(this, Lang);
_this = _super.call(this);
_this.defaultLocale = 'en';
var _preset$Lang$property = preset[Lang.property],
current = _preset$Lang$property.current,
locales = _preset$Lang$property.locales,
t = _preset$Lang$property.t;
_this.current = current;
_this.locales = locales;
_this.translator = t || _this.defaultTranslator;
return _this;
}
_createClass(Lang, [{
key: "currentLocale",
value: function currentLocale(key) {
var translation = this.locales[this.current];
var defaultLocale = this.locales[this.defaultLocale];
return getTranslation(translation, key, false, defaultLocale);
}
}, {
key: "t",
value: function t(key) {
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
params[_key - 1] = arguments[_key];
}
if (!key.startsWith(LANG_PREFIX)) return this.replace(key, params);
return this.translator.apply(this, [key].concat(params));
}
}, {
key: "defaultTranslator",
value: function defaultTranslator(key) {
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
params[_key2 - 1] = arguments[_key2];
}
return this.replace(this.currentLocale(key), params);
}
}, {
key: "replace",
value: function replace(str, params) {
return str.replace(/\{(\d+)\}/g, function (match, index) {
/* istanbul ignore next */
return String(params[+index]);
});
}
}]);
return Lang;
}(service_Service);
lang_Lang.property = 'lang';
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.anchor.js
var es_string_anchor = __webpack_require__("18a5");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/util/color/transformSRGB.js
// For converting XYZ to sRGB
var srgbForwardMatrix = [[3.2406, -1.5372, -0.4986], [-0.9689, 1.8758, 0.0415], [0.0557, -0.2040, 1.0570]]; // Forward gamma adjust
var srgbForwardTransform = function srgbForwardTransform(C) {
return C <= 0.0031308 ? C * 12.92 : 1.055 * Math.pow(C, 1 / 2.4) - 0.055;
}; // For converting sRGB to XYZ
var srgbReverseMatrix = [[0.4124, 0.3576, 0.1805], [0.2126, 0.7152, 0.0722], [0.0193, 0.1192, 0.9505]]; // Reverse gamma adjust
var srgbReverseTransform = function srgbReverseTransform(C) {
return C <= 0.04045 ? C / 12.92 : Math.pow((C + 0.055) / 1.055, 2.4);
};
function fromXYZ(xyz) {
var rgb = Array(3);
var transform = srgbForwardTransform;
var matrix = srgbForwardMatrix; // Matrix transform, then gamma adjustment
for (var i = 0; i < 3; ++i) {
rgb[i] = Math.round(clamp(transform(matrix[i][0] * xyz[0] + matrix[i][1] * xyz[1] + matrix[i][2] * xyz[2])) * 255);
} // Rescale back to [0, 255]
return (rgb[0] << 16) + (rgb[1] << 8) + (rgb[2] << 0);
}
function toXYZ(rgb) {
var xyz = [0, 0, 0];
var transform = srgbReverseTransform;
var matrix = srgbReverseMatrix; // Rescale from [0, 255] to [0, 1] then adjust sRGB gamma to linear RGB
var r = transform((rgb >> 16 & 0xff) / 255);
var g = transform((rgb >> 8 & 0xff) / 255);
var b = transform((rgb >> 0 & 0xff) / 255); // Matrix color space transform
for (var i = 0; i < 3; ++i) {
xyz[i] = matrix[i][0] * r + matrix[i][1] * g + matrix[i][2] * b;
}
return xyz;
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/util/colorUtils.js
// Utilities
function isCssColor(color) {
return !!color && !!color.match(/^(#|var\(--|(rgb|hsl)a?\()/);
}
function colorToInt(color) {
var rgb;
if (typeof color === 'number') {
rgb = color;
} else if (typeof color === 'string') {
var c = color[0] === '#' ? color.substring(1) : color;
if (c.length === 3) {
c = c.split('').map(function (char) {
return char + char;
}).join('');
}
if (c.length !== 6) {
consoleWarn("'".concat(color, "' is not a valid rgb color"));
}
rgb = parseInt(c, 16);
} else {
throw new TypeError("Colors can only be numbers or strings, recieved ".concat(color == null ? color : color.constructor.name, " instead"));
}
if (rgb < 0) {
consoleWarn("Colors cannot be negative: '".concat(color, "'"));
rgb = 0;
} else if (rgb > 0xffffff || isNaN(rgb)) {
consoleWarn("'".concat(color, "' is not a valid rgb color"));
rgb = 0xffffff;
}
return rgb;
}
function classToHex(color, colors, currentTheme) {
var _color$toString$trim$ = color.toString().trim().replace('-', '').split(' ', 2),
_color$toString$trim$2 = _slicedToArray(_color$toString$trim$, 2),
colorName = _color$toString$trim$2[0],
colorModifier = _color$toString$trim$2[1];
var hexColor = '';
if (colorName && colorName in colors) {
if (colorModifier && colorModifier in colors[colorName]) {
hexColor = colors[colorName][colorModifier];
} else if ('base' in colors[colorName]) {
hexColor = colors[colorName].base;
}
} else if (colorName && colorName in currentTheme) {
hexColor = currentTheme[colorName];
}
return hexColor;
}
function intToHex(color) {
var hexColor = color.toString(16);
if (hexColor.length < 6) hexColor = '0'.repeat(6 - hexColor.length) + hexColor;
return '#' + hexColor;
}
function colorToHex(color) {
return intToHex(colorToInt(color));
}
/**
* Converts HSVA to RGBA. Based on formula from https://en.wikipedia.org/wiki/HSL_and_HSV
*
* @param color HSVA color as an array [0-360, 0-1, 0-1, 0-1]
*/
function HSVAtoRGBA(hsva) {
var h = hsva.h,
s = hsva.s,
v = hsva.v,
a = hsva.a;
var f = function f(n) {
var k = (n + h / 60) % 6;
return v - v * s * Math.max(Math.min(k, 4 - k, 1), 0);
};
var rgb = [f(5), f(3), f(1)].map(function (v) {
return Math.round(v * 255);
});
return {
r: rgb[0],
g: rgb[1],
b: rgb[2],
a: a
};
}
/**
* Converts RGBA to HSVA. Based on formula from https://en.wikipedia.org/wiki/HSL_and_HSV
*
* @param color RGBA color as an array [0-255, 0-255, 0-255, 0-1]
*/
function RGBAtoHSVA(rgba) {
if (!rgba) return {
h: 0,
s: 1,
v: 1,
a: 1
};
var r = rgba.r / 255;
var g = rgba.g / 255;
var b = rgba.b / 255;
var max = Math.max(r, g, b);
var min = Math.min(r, g, b);
var h = 0;
if (max !== min) {
if (max === r) {
h = 60 * (0 + (g - b) / (max - min));
} else if (max === g) {
h = 60 * (2 + (b - r) / (max - min));
} else if (max === b) {
h = 60 * (4 + (r - g) / (max - min));
}
}
if (h < 0) h = h + 360;
var s = max === 0 ? 0 : (max - min) / max;
var hsv = [h, s, max];
return {
h: hsv[0],
s: hsv[1],
v: hsv[2],
a: rgba.a
};
}
function HSVAtoHSLA(hsva) {
var h = hsva.h,
s = hsva.s,
v = hsva.v,
a = hsva.a;
var l = v - v * s / 2;
var sprime = l === 1 || l === 0 ? 0 : (v - l) / Math.min(l, 1 - l);
return {
h: h,
s: sprime,
l: l,
a: a
};
}
function HSLAtoHSVA(hsl) {
var h = hsl.h,
s = hsl.s,
l = hsl.l,
a = hsl.a;
var v = l + s * Math.min(l, 1 - l);
var sprime = v === 0 ? 0 : 2 - 2 * l / v;
return {
h: h,
s: sprime,
v: v,
a: a
};
}
function RGBAtoCSS(rgba) {
return "rgba(".concat(rgba.r, ", ").concat(rgba.g, ", ").concat(rgba.b, ", ").concat(rgba.a, ")");
}
function RGBtoCSS(rgba) {
return RGBAtoCSS(_objectSpread2(_objectSpread2({}, rgba), {}, {
a: 1
}));
}
function RGBAtoHex(rgba) {
var toHex = function toHex(v) {
var h = Math.round(v).toString(16);
return ('00'.substr(0, 2 - h.length) + h).toUpperCase();
};
return "#".concat([toHex(rgba.r), toHex(rgba.g), toHex(rgba.b), toHex(Math.round(rgba.a * 255))].join(''));
}
function HexToRGBA(hex) {
var rgba = chunk(hex.slice(1), 2).map(function (c) {
return parseInt(c, 16);
});
return {
r: rgba[0],
g: rgba[1],
b: rgba[2],
a: Math.round(rgba[3] / 255 * 100) / 100
};
}
function HexToHSVA(hex) {
var rgb = HexToRGBA(hex);
return RGBAtoHSVA(rgb);
}
function HSVAtoHex(hsva) {
return RGBAtoHex(HSVAtoRGBA(hsva));
}
function parseHex(hex) {
if (hex.startsWith('#')) {
hex = hex.slice(1);
}
hex = hex.replace(/([^0-9a-f])/gi, 'F');
if (hex.length === 3 || hex.length === 4) {
hex = hex.split('').map(function (x) {
return x + x;
}).join('');
}
if (hex.length === 6) {
hex = padEnd(hex, 8, 'F');
} else {
hex = padEnd(padEnd(hex, 6), 8, 'F');
}
return "#".concat(hex).toUpperCase().substr(0, 9);
}
function parseGradient(gradient, colors, currentTheme) {
return gradient.replace(/([a-z]+(\s[a-z]+-[1-5])?)(?=$|,)/gi, function (x) {
return classToHex(x, colors, currentTheme) || x;
}).replace(/(rgba\()#[0-9a-f]+(?=,)/gi, function (x) {
return 'rgba(' + Object.values(HexToRGBA(parseHex(x.replace(/rgba\(/, '')))).slice(0, 3).join(',');
});
}
function RGBtoInt(rgba) {
return (rgba.r << 16) + (rgba.g << 8) + rgba.b;
}
/**
* Returns the contrast ratio (1-21) between two colors.
*
* @param c1 First color
* @param c2 Second color
*/
function contrastRatio(c1, c2) {
var _toXYZ = toXYZ(RGBtoInt(c1)),
_toXYZ2 = _slicedToArray(_toXYZ, 2),
y1 = _toXYZ2[1];
var _toXYZ3 = toXYZ(RGBtoInt(c2)),
_toXYZ4 = _slicedToArray(_toXYZ3, 2),
y2 = _toXYZ4[1];
return (Math.max(y1, y2) + 0.05) / (Math.min(y1, y2) + 0.05);
}
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.math.cbrt.js
var es_math_cbrt = __webpack_require__("3ea3");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/util/color/transformCIELAB.js
var delta = 0.20689655172413793; // 6÷29
var cielabForwardTransform = function cielabForwardTransform(t) {
return t > Math.pow(delta, 3) ? Math.cbrt(t) : t / (3 * Math.pow(delta, 2)) + 4 / 29;
};
var cielabReverseTransform = function cielabReverseTransform(t) {
return t > delta ? Math.pow(t, 3) : 3 * Math.pow(delta, 2) * (t - 4 / 29);
};
function transformCIELAB_fromXYZ(xyz) {
var transform = cielabForwardTransform;
var transformedY = transform(xyz[1]);
return [116 * transformedY - 16, 500 * (transform(xyz[0] / 0.95047) - transformedY), 200 * (transformedY - transform(xyz[2] / 1.08883))];
}
function transformCIELAB_toXYZ(lab) {
var transform = cielabReverseTransform;
var Ln = (lab[0] + 16) / 116;
return [transform(Ln + lab[1] / 500) * 0.95047, transform(Ln), transform(Ln - lab[2] / 200) * 1.08883];
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/theme/utils.js
function parse(theme) {
var isItem = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var variations = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
var anchor = theme.anchor,
variant = _objectWithoutProperties(theme, ["anchor"]);
var colors = Object.keys(variant);
var parsedTheme = {};
for (var i = 0; i < colors.length; ++i) {
var name = colors[i];
var value = theme[name];
if (value == null) continue;
if (!variations) {
parsedTheme[name] = {
base: intToHex(colorToInt(value))
};
} else if (isItem) {
/* istanbul ignore else */
if (name === 'base' || name.startsWith('lighten') || name.startsWith('darken')) {
parsedTheme[name] = colorToHex(value);
}
} else if (_typeof(value) === 'object') {
parsedTheme[name] = parse(value, true, variations);
} else {
parsedTheme[name] = genVariations(name, colorToInt(value));
}
}
if (!isItem) {
parsedTheme.anchor = anchor || parsedTheme.base || parsedTheme.primary.base;
}
return parsedTheme;
}
/**
* Generate the CSS for a base color (.primary)
*/
var genBaseColor = function genBaseColor(name, value) {
return "\n.v-application .".concat(name, " {\n background-color: ").concat(value, " !important;\n border-color: ").concat(value, " !important;\n}\n.v-application .").concat(name, "--text {\n color: ").concat(value, " !important;\n caret-color: ").concat(value, " !important;\n}");
};
/**
* Generate the CSS for a variant color (.primary.darken-2)
*/
var utils_genVariantColor = function genVariantColor(name, variant, value) {
var _variant$split = variant.split(/(\d)/, 2),
_variant$split2 = _slicedToArray(_variant$split, 2),
type = _variant$split2[0],
n = _variant$split2[1];
return "\n.v-application .".concat(name, ".").concat(type, "-").concat(n, " {\n background-color: ").concat(value, " !important;\n border-color: ").concat(value, " !important;\n}\n.v-application .").concat(name, "--text.text--").concat(type, "-").concat(n, " {\n color: ").concat(value, " !important;\n caret-color: ").concat(value, " !important;\n}");
};
var genColorVariableName = function genColorVariableName(name) {
var variant = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'base';
return "--v-".concat(name, "-").concat(variant);
};
var genColorVariable = function genColorVariable(name) {
var variant = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'base';
return "var(".concat(genColorVariableName(name, variant), ")");
};
function genStyles(theme) {
var cssVar = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var anchor = theme.anchor,
variant = _objectWithoutProperties(theme, ["anchor"]);
var colors = Object.keys(variant);
if (!colors.length) return '';
var variablesCss = '';
var css = '';
var aColor = cssVar ? genColorVariable('anchor') : anchor;
css += ".v-application a { color: ".concat(aColor, "; }");
cssVar && (variablesCss += " ".concat(genColorVariableName('anchor'), ": ").concat(anchor, ";\n"));
for (var i = 0; i < colors.length; ++i) {
var name = colors[i];
var value = theme[name];
css += genBaseColor(name, cssVar ? genColorVariable(name) : value.base);
cssVar && (variablesCss += " ".concat(genColorVariableName(name), ": ").concat(value.base, ";\n"));
var variants = Object.keys(value);
for (var _i = 0; _i < variants.length; ++_i) {
var _variant = variants[_i];
var variantValue = value[_variant];
if (_variant === 'base') continue;
css += utils_genVariantColor(name, _variant, cssVar ? genColorVariable(name, _variant) : variantValue);
cssVar && (variablesCss += " ".concat(genColorVariableName(name, _variant), ": ").concat(variantValue, ";\n"));
}
}
if (cssVar) {
variablesCss = ":root {\n".concat(variablesCss, "}\n\n");
}
return variablesCss + css;
}
function genVariations(name, value) {
var values = {
base: intToHex(value)
};
for (var i = 5; i > 0; --i) {
values["lighten".concat(i)] = intToHex(lighten(value, i));
}
for (var _i2 = 1; _i2 <= 4; ++_i2) {
values["darken".concat(_i2)] = intToHex(darken(value, _i2));
}
return values;
}
function lighten(value, amount) {
var lab = transformCIELAB_fromXYZ(toXYZ(value));
lab[0] = lab[0] + amount * 10;
return fromXYZ(transformCIELAB_toXYZ(lab));
}
function darken(value, amount) {
var lab = transformCIELAB_fromXYZ(toXYZ(value));
lab[0] = lab[0] - amount * 10;
return fromXYZ(transformCIELAB_toXYZ(lab));
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/services/theme/index.js
/* eslint-disable no-multi-spaces */
// Extensions
// Utilities
// Types
var theme_Theme = /*#__PURE__*/function (_Service) {
_inherits(Theme, _Service);
var _super = _createSuper(Theme);
function Theme(preset) {
var _this;
_classCallCheck(this, Theme);
_this = _super.call(this);
_this.disabled = false;
_this.isDark = null;
_this.unwatch = null;
_this.vueMeta = null;
var _preset$Theme$propert = preset[Theme.property],
dark = _preset$Theme$propert.dark,
disable = _preset$Theme$propert.disable,
options = _preset$Theme$propert.options,
themes = _preset$Theme$propert.themes;
_this.dark = Boolean(dark);
_this.defaults = _this.themes = themes;
_this.options = options;
if (disable) {
_this.disabled = true;
return _possibleConstructorReturn(_this);
}
_this.themes = {
dark: _this.fillVariant(themes.dark, true),
light: _this.fillVariant(themes.light, false)
};
return _this;
} // When setting css, check for element
// and apply new values
_createClass(Theme, [{
key: "applyTheme",
// Apply current theme default
// only called on client side
value: function applyTheme() {
if (this.disabled) return this.clearCss();
this.css = this.generatedStyles;
}
}, {
key: "clearCss",
value: function clearCss() {
this.css = '';
} // Initialize theme for SSR and SPA
// Attach to ssrContext head or
// apply new theme to document
}, {
key: "init",
value: function init(root, ssrContext) {
if (this.disabled) return;
/* istanbul ignore else */
if (root.$meta) {
this.initVueMeta(root);
} else if (ssrContext) {
this.initSSR(ssrContext);
}
this.initTheme(root);
} // Allows for you to set target theme
}, {
key: "setTheme",
value: function setTheme(theme, value) {
this.themes[theme] = Object.assign(this.themes[theme], value);
this.applyTheme();
} // Reset theme defaults
}, {
key: "resetThemes",
value: function resetThemes() {
this.themes.light = Object.assign({}, this.defaults.light);
this.themes.dark = Object.assign({}, this.defaults.dark);
this.applyTheme();
} // Check for existence of style element
}, {
key: "checkOrCreateStyleElement",
value: function checkOrCreateStyleElement() {
this.styleEl = document.getElementById('vuetify-theme-stylesheet');
/* istanbul ignore next */
if (this.styleEl) return true;
this.genStyleElement(); // If doesn't have it, create it
return Boolean(this.styleEl);
}
}, {
key: "fillVariant",
value: function fillVariant() {
var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var dark = arguments.length > 1 ? arguments[1] : undefined;
var defaultTheme = this.themes[dark ? 'dark' : 'light'];
return Object.assign({}, defaultTheme, theme);
} // Generate the style element
// if applicable
}, {
key: "genStyleElement",
value: function genStyleElement() {
/* istanbul ignore if */
if (typeof document === 'undefined') return;
/* istanbul ignore next */
this.styleEl = document.createElement('style');
this.styleEl.type = 'text/css';
this.styleEl.id = 'vuetify-theme-stylesheet';
if (this.options.cspNonce) {
this.styleEl.setAttribute('nonce', this.options.cspNonce);
}
document.head.appendChild(this.styleEl);
}
}, {
key: "initVueMeta",
value: function initVueMeta(root) {
var _this2 = this;
this.vueMeta = root.$meta();
if (this.isVueMeta23) {
// vue-meta needs to apply after mounted()
root.$nextTick(function () {
_this2.applyVueMeta23();
});
return;
}
var metaKeyName = typeof this.vueMeta.getOptions === 'function' ? this.vueMeta.getOptions().keyName : 'metaInfo';
var metaInfo = root.$options[metaKeyName] || {};
root.$options[metaKeyName] = function () {
metaInfo.style = metaInfo.style || [];
var vuetifyStylesheet = metaInfo.style.find(function (s) {
return s.id === 'vuetify-theme-stylesheet';
});
if (!vuetifyStylesheet) {
metaInfo.style.push({
cssText: _this2.generatedStyles,
type: 'text/css',
id: 'vuetify-theme-stylesheet',
nonce: (_this2.options || {}).cspNonce
});
} else {
vuetifyStylesheet.cssText = _this2.generatedStyles;
}
return metaInfo;
};
}
}, {
key: "applyVueMeta23",
value: function applyVueMeta23() {
var _this$vueMeta$addApp = this.vueMeta.addApp('vuetify'),
set = _this$vueMeta$addApp.set;
set({
style: [{
cssText: this.generatedStyles,
type: 'text/css',
id: 'vuetify-theme-stylesheet',
nonce: this.options.cspNonce
}]
});
}
}, {
key: "initSSR",
value: function initSSR(ssrContext) {
// SSR
var nonce = this.options.cspNonce ? " nonce=\"".concat(this.options.cspNonce, "\"") : '';
ssrContext.head = ssrContext.head || '';
ssrContext.head += "<style type=\"text/css\" id=\"vuetify-theme-stylesheet\"".concat(nonce, ">").concat(this.generatedStyles, "</style>");
}
}, {
key: "initTheme",
value: function initTheme(root) {
var _this3 = this;
// Only watch for reactivity on client side
if (typeof document === 'undefined') return; // If we get here somehow, ensure
// existing instance is removed
if (this.unwatch) {
this.unwatch();
this.unwatch = null;
} // TODO: Update to use RFC if merged
// https://github.com/vuejs/rfcs/blob/advanced-reactivity-api/active-rfcs/0000-advanced-reactivity-api.md
root.$once('hook:created', function () {
var obs = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.observable({
themes: _this3.themes
});
_this3.unwatch = root.$watch(function () {
return obs.themes;
}, function () {
return _this3.applyTheme();
}, {
deep: true
});
});
this.applyTheme();
}
}, {
key: "css",
set: function set(val) {
if (this.vueMeta) {
if (this.isVueMeta23) {
this.applyVueMeta23();
}
return;
}
this.checkOrCreateStyleElement() && (this.styleEl.innerHTML = val);
}
}, {
key: "dark",
set: function set(val) {
var oldDark = this.isDark;
this.isDark = val; // Only apply theme after dark
// has already been set before
oldDark != null && this.applyTheme();
},
get: function get() {
return Boolean(this.isDark);
}
}, {
key: "currentTheme",
get: function get() {
var target = this.dark ? 'dark' : 'light';
return this.themes[target];
}
}, {
key: "generatedStyles",
get: function get() {
var theme = this.parsedTheme;
/* istanbul ignore next */
var options = this.options || {};
var css;
if (options.themeCache != null) {
css = options.themeCache.get(theme);
/* istanbul ignore if */
if (css != null) return css;
}
css = genStyles(theme, options.customProperties);
if (options.minifyTheme != null) {
css = options.minifyTheme(css);
}
if (options.themeCache != null) {
options.themeCache.set(theme, css);
}
return css;
}
}, {
key: "parsedTheme",
get: function get() {
return parse(this.currentTheme || {}, undefined, getNestedValue(this.options, ['variations'], true));
} // Is using v2.3 of vue-meta
// https://github.com/nuxt/vue-meta/releases/tag/v2.3.0
}, {
key: "isVueMeta23",
get: function get() {
return typeof this.vueMeta.addApp === 'function';
}
}]);
return Theme;
}(service_Service);
theme_Theme.property = 'theme';
// CONCATENATED MODULE: ./node_modules/vuetify/lib/framework.js
// Services
var framework_Vuetify = /*#__PURE__*/function () {
function Vuetify() {
var userPreset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
_classCallCheck(this, Vuetify);
this.framework = {
isHydrating: false
};
this.installed = [];
this.preset = {};
this.userPreset = {};
this.userPreset = userPreset;
this.use(presets_Presets);
this.use(application_Application);
this.use(breakpoint_Breakpoint);
this.use(goto_Goto);
this.use(icons_Icons);
this.use(lang_Lang);
this.use(theme_Theme);
} // Called on the new vuetify instance
// bootstrap in install beforeCreate
// Exposes ssrContext if available
_createClass(Vuetify, [{
key: "init",
value: function init(root, ssrContext) {
var _this = this;
this.installed.forEach(function (property) {
var service = _this.framework[property];
service.framework = _this.framework;
service.init(root, ssrContext);
}); // rtl is not installed and
// will never be called by
// the init process
this.framework.rtl = Boolean(this.preset.rtl);
} // Instantiate a VuetifyService
}, {
key: "use",
value: function use(Service) {
var property = Service.property;
if (this.installed.includes(property)) return; // TODO maybe a specific type for arg 2?
this.framework[property] = new Service(this.preset, this);
this.installed.push(property);
}
}]);
return Vuetify;
}();
framework_Vuetify.install = install;
framework_Vuetify.installed = false;
framework_Vuetify.version = "2.3.6";
framework_Vuetify.config = {
silent: false
};
// CONCATENATED MODULE: ./node_modules/vuetify/lib/util/console.js
function createMessage(message, vm, parent) {
if (framework_Vuetify.config.silent) return;
if (parent) {
vm = {
_isVue: true,
$parent: parent,
$options: vm
};
}
if (vm) {
// Only show each message once per instance
vm.$_alreadyWarned = vm.$_alreadyWarned || [];
if (vm.$_alreadyWarned.includes(message)) return;
vm.$_alreadyWarned.push(message);
}
return "[Vuetify] ".concat(message) + (vm ? generateComponentTrace(vm) : '');
}
function consoleInfo(message, vm, parent) {
var newMessage = createMessage(message, vm, parent);
newMessage != null && console.info(newMessage);
}
function consoleWarn(message, vm, parent) {
var newMessage = createMessage(message, vm, parent);
newMessage != null && console.warn(newMessage);
}
function consoleError(message, vm, parent) {
var newMessage = createMessage(message, vm, parent);
newMessage != null && console.error(newMessage);
}
function deprecate(original, replacement, vm, parent) {
consoleWarn("[UPGRADE] '".concat(original, "' is deprecated, use '").concat(replacement, "' instead."), vm, parent);
}
function breaking(original, replacement, vm, parent) {
consoleError("[BREAKING] '".concat(original, "' has been removed, use '").concat(replacement, "' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide"), vm, parent);
}
function console_removed(original, vm, parent) {
consoleWarn("[REMOVED] '".concat(original, "' has been removed. You can safely omit it."), vm, parent);
}
/**
* Shamelessly stolen from vuejs/vue/blob/dev/src/core/util/debug.js
*/
var classifyRE = /(?:^|[-_])(\w)/g;
var classify = function classify(str) {
return str.replace(classifyRE, function (c) {
return c.toUpperCase();
}).replace(/[-_]/g, '');
};
function formatComponentName(vm, includeFile) {
if (vm.$root === vm) {
return '<Root>';
}
var options = typeof vm === 'function' && vm.cid != null ? vm.options : vm._isVue ? vm.$options || vm.constructor.options : vm || {};
var name = options.name || options._componentTag;
var file = options.__file;
if (!name && file) {
var match = file.match(/([^/\\]+)\.vue$/);
name = match && match[1];
}
return (name ? "<".concat(classify(name), ">") : "<Anonymous>") + (file && includeFile !== false ? " at ".concat(file) : '');
}
function generateComponentTrace(vm) {
if (vm._isVue && vm.$parent) {
var tree = [];
var currentRecursiveSequence = 0;
while (vm) {
if (tree.length > 0) {
var last = tree[tree.length - 1];
if (last.constructor === vm.constructor) {
currentRecursiveSequence++;
vm = vm.$parent;
continue;
} else if (currentRecursiveSequence > 0) {
tree[tree.length - 1] = [last, currentRecursiveSequence];
currentRecursiveSequence = 0;
}
}
tree.push(vm);
vm = vm.$parent;
}
return '\n\nfound in\n\n' + tree.map(function (vm, i) {
return "".concat(i === 0 ? '---> ' : ' '.repeat(5 + i * 2)).concat(Array.isArray(vm) ? "".concat(formatComponentName(vm[0]), "... (").concat(vm[1], " recursive calls)") : formatComponentName(vm));
}).join('\n');
} else {
return "\n\n(found in ".concat(formatComponentName(vm), ")");
}
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/colorable/index.js
/* harmony default export */ var colorable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'colorable',
props: {
color: String
},
methods: {
setBackgroundColor: function setBackgroundColor(color) {
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (typeof data.style === 'string') {
// istanbul ignore next
consoleError('style must be an object', this); // istanbul ignore next
return data;
}
if (typeof data.class === 'string') {
// istanbul ignore next
consoleError('class must be an object', this); // istanbul ignore next
return data;
}
if (isCssColor(color)) {
data.style = _objectSpread2(_objectSpread2({}, data.style), {}, {
'background-color': "".concat(color),
'border-color': "".concat(color)
});
} else if (color) {
data.class = _objectSpread2(_objectSpread2({}, data.class), {}, _defineProperty({}, color, true));
}
return data;
},
setTextColor: function setTextColor(color) {
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (typeof data.style === 'string') {
// istanbul ignore next
consoleError('style must be an object', this); // istanbul ignore next
return data;
}
if (typeof data.class === 'string') {
// istanbul ignore next
consoleError('class must be an object', this); // istanbul ignore next
return data;
}
if (isCssColor(color)) {
data.style = _objectSpread2(_objectSpread2({}, data.style), {}, {
color: "".concat(color),
'caret-color': "".concat(color)
});
} else if (color) {
var _color$toString$trim$ = color.toString().trim().split(' ', 2),
_color$toString$trim$2 = _slicedToArray(_color$toString$trim$, 2),
colorName = _color$toString$trim$2[0],
colorModifier = _color$toString$trim$2[1];
data.class = _objectSpread2(_objectSpread2({}, data.class), {}, _defineProperty({}, colorName + '--text', true));
if (colorModifier) {
data.class['text--' + colorModifier] = true;
}
}
return data;
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/elevatable/index.js
/* harmony default export */ var elevatable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'elevatable',
props: {
elevation: [Number, String]
},
computed: {
computedElevation: function computedElevation() {
return this.elevation;
},
elevationClasses: function elevationClasses() {
var elevation = this.computedElevation;
if (elevation == null) return {};
if (isNaN(parseInt(elevation))) return {};
return _defineProperty({}, "elevation-".concat(this.elevation), true);
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/measurable/index.js
// Helpers
// Types
/* harmony default export */ var measurable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'measurable',
props: {
height: [Number, String],
maxHeight: [Number, String],
maxWidth: [Number, String],
minHeight: [Number, String],
minWidth: [Number, String],
width: [Number, String]
},
computed: {
measurableStyles: function measurableStyles() {
var styles = {};
var height = convertToUnit(this.height);
var minHeight = convertToUnit(this.minHeight);
var minWidth = convertToUnit(this.minWidth);
var maxHeight = convertToUnit(this.maxHeight);
var maxWidth = convertToUnit(this.maxWidth);
var width = convertToUnit(this.width);
if (height) styles.height = height;
if (minHeight) styles.minHeight = minHeight;
if (minWidth) styles.minWidth = minWidth;
if (maxHeight) styles.maxHeight = maxHeight;
if (maxWidth) styles.maxWidth = maxWidth;
if (width) styles.width = width;
return styles;
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/roundable/index.js
/* @vue/component */
/* harmony default export */ var roundable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'roundable',
props: {
rounded: [Boolean, String],
tile: Boolean
},
computed: {
roundedClasses: function roundedClasses() {
var composite = [];
var rounded = typeof this.rounded === 'string' ? String(this.rounded) : this.rounded === true;
if (this.tile) {
composite.push('rounded-0');
} else if (typeof rounded === 'string') {
var values = rounded.split(' ');
var _iterator = _createForOfIteratorHelper(values),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var value = _step.value;
composite.push("rounded-".concat(value));
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
} else if (rounded) {
composite.push('rounded');
}
return composite.length > 0 ? _defineProperty({}, composite.join(' '), true) : {};
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/themeable/index.js
function functionalThemeClasses(context) {
var vm = _objectSpread2(_objectSpread2({}, context.props), context.injections);
var isDark = Themeable.options.computed.isDark.call(vm);
return Themeable.options.computed.themeClasses.call({
isDark: isDark
});
}
/* @vue/component */
var Themeable = external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend().extend({
name: 'themeable',
provide: function provide() {
return {
theme: this.themeableProvide
};
},
inject: {
theme: {
default: {
isDark: false
}
}
},
props: {
dark: {
type: Boolean,
default: null
},
light: {
type: Boolean,
default: null
}
},
data: function data() {
return {
themeableProvide: {
isDark: false
}
};
},
computed: {
appIsDark: function appIsDark() {
return this.$vuetify.theme.dark || false;
},
isDark: function isDark() {
if (this.dark === true) {
// explicitly dark
return true;
} else if (this.light === true) {
// explicitly light
return false;
} else {
// inherit from parent, or default false if there is none
return this.theme.isDark;
}
},
themeClasses: function themeClasses() {
return {
'theme--dark': this.isDark,
'theme--light': !this.isDark
};
},
/** Used by menus and dialogs, inherits from v-app instead of the parent */
rootIsDark: function rootIsDark() {
if (this.dark === true) {
// explicitly dark
return true;
} else if (this.light === true) {
// explicitly light
return false;
} else {
// inherit from v-app
return this.appIsDark;
}
},
rootThemeClasses: function rootThemeClasses() {
return {
'theme--dark': this.rootIsDark,
'theme--light': !this.rootIsDark
};
}
},
watch: {
isDark: {
handler: function handler(newVal, oldVal) {
if (newVal !== oldVal) {
this.themeableProvide.isDark = this.isDark;
}
},
immediate: true
}
}
});
/* harmony default export */ var themeable = (Themeable);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/util/mixins.js
/* eslint-disable max-len, import/export, no-use-before-define */
function mixins() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
mixins: args
});
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VSheet/VSheet.js
// Styles
// Mixins
// Helpers
/* @vue/component */
/* harmony default export */ var VSheet_VSheet = (mixins(binds_attrs, colorable, elevatable, measurable, roundable, themeable).extend({
name: 'v-sheet',
props: {
outlined: Boolean,
shaped: Boolean,
tag: {
type: String,
default: 'div'
}
},
computed: {
classes: function classes() {
return _objectSpread2(_objectSpread2(_objectSpread2({
'v-sheet': true,
'v-sheet--outlined': this.outlined,
'v-sheet--shaped': this.shaped
}, this.themeClasses), this.elevationClasses), this.roundedClasses);
},
styles: function styles() {
return this.measurableStyles;
}
},
render: function render(h) {
var data = {
class: this.classes,
style: this.styles,
on: this.listeners$
};
return h(this.tag, this.setBackgroundColor(this.color, data), this.$slots.default);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VSheet/index.js
/* harmony default export */ var components_VSheet = (VSheet_VSheet);
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VProgressCircular/VProgressCircular.sass
var VProgressCircular = __webpack_require__("8d4f");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VProgressCircular/VProgressCircular.js
// Styles
// Mixins
// Utils
/* @vue/component */
/* harmony default export */ var VProgressCircular_VProgressCircular = (colorable.extend({
name: 'v-progress-circular',
props: {
button: Boolean,
indeterminate: Boolean,
rotate: {
type: [Number, String],
default: 0
},
size: {
type: [Number, String],
default: 32
},
width: {
type: [Number, String],
default: 4
},
value: {
type: [Number, String],
default: 0
}
},
data: function data() {
return {
radius: 20
};
},
computed: {
calculatedSize: function calculatedSize() {
return Number(this.size) + (this.button ? 8 : 0);
},
circumference: function circumference() {
return 2 * Math.PI * this.radius;
},
classes: function classes() {
return {
'v-progress-circular--indeterminate': this.indeterminate,
'v-progress-circular--button': this.button
};
},
normalizedValue: function normalizedValue() {
if (this.value < 0) {
return 0;
}
if (this.value > 100) {
return 100;
}
return parseFloat(this.value);
},
strokeDashArray: function strokeDashArray() {
return Math.round(this.circumference * 1000) / 1000;
},
strokeDashOffset: function strokeDashOffset() {
return (100 - this.normalizedValue) / 100 * this.circumference + 'px';
},
strokeWidth: function strokeWidth() {
return Number(this.width) / +this.size * this.viewBoxSize * 2;
},
styles: function styles() {
return {
height: convertToUnit(this.calculatedSize),
width: convertToUnit(this.calculatedSize)
};
},
svgStyles: function svgStyles() {
return {
transform: "rotate(".concat(Number(this.rotate), "deg)")
};
},
viewBoxSize: function viewBoxSize() {
return this.radius / (1 - Number(this.width) / +this.size);
}
},
methods: {
genCircle: function genCircle(name, offset) {
return this.$createElement('circle', {
class: "v-progress-circular__".concat(name),
attrs: {
fill: 'transparent',
cx: 2 * this.viewBoxSize,
cy: 2 * this.viewBoxSize,
r: this.radius,
'stroke-width': this.strokeWidth,
'stroke-dasharray': this.strokeDashArray,
'stroke-dashoffset': offset
}
});
},
genSvg: function genSvg() {
var children = [this.indeterminate || this.genCircle('underlay', 0), this.genCircle('overlay', this.strokeDashOffset)];
return this.$createElement('svg', {
style: this.svgStyles,
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: "".concat(this.viewBoxSize, " ").concat(this.viewBoxSize, " ").concat(2 * this.viewBoxSize, " ").concat(2 * this.viewBoxSize)
}
}, children);
},
genInfo: function genInfo() {
return this.$createElement('div', {
staticClass: 'v-progress-circular__info'
}, this.$slots.default);
}
},
render: function render(h) {
return h('div', this.setTextColor(this.color, {
staticClass: 'v-progress-circular',
attrs: {
role: 'progressbar',
'aria-valuemin': 0,
'aria-valuemax': 100,
'aria-valuenow': this.indeterminate ? undefined : this.normalizedValue
},
class: this.classes,
style: this.styles,
on: this.$listeners
}), [this.genSvg(), this.genInfo()]);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VProgressCircular/index.js
/* harmony default export */ var components_VProgressCircular = (VProgressCircular_VProgressCircular);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/registrable/index.js
function generateWarning(child, parent) {
return function () {
return consoleWarn("The ".concat(child, " component must be used inside a ").concat(parent));
};
}
function inject(namespace, child, parent) {
var defaultImpl = child && parent ? {
register: generateWarning(child, parent),
unregister: generateWarning(child, parent)
} : null;
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'registrable-inject',
inject: _defineProperty({}, namespace, {
default: defaultImpl
})
});
}
function registrable_provide(namespace) {
var self = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'registrable-provide',
methods: self ? {} : {
register: null,
unregister: null
},
provide: function provide() {
return _defineProperty({}, namespace, self ? this : {
register: this.register,
unregister: this.unregister
});
}
});
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/groupable/index.js
// Mixins
function factory(namespace, child, parent) {
// TODO: ts 3.4 broke directly returning this
var R = inject(namespace, child, parent).extend({
name: 'groupable',
props: {
activeClass: {
type: String,
default: function _default() {
if (!this[namespace]) return undefined;
return this[namespace].activeClass;
}
},
disabled: Boolean
},
data: function data() {
return {
isActive: false
};
},
computed: {
groupClasses: function groupClasses() {
if (!this.activeClass) return {};
return _defineProperty({}, this.activeClass, this.isActive);
}
},
created: function created() {
this[namespace] && this[namespace].register(this);
},
beforeDestroy: function beforeDestroy() {
this[namespace] && this[namespace].unregister(this);
},
methods: {
toggle: function toggle() {
this.$emit('change');
}
}
});
return R;
}
/* eslint-disable-next-line no-redeclare */
var Groupable = factory('itemGroup');
/* harmony default export */ var groupable = (Groupable);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/toggleable/index.js
function toggleable_factory() {
var _watch;
var prop = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'value';
var event = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'input';
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'toggleable',
model: {
prop: prop,
event: event
},
props: _defineProperty({}, prop, {
required: false
}),
data: function data() {
return {
isActive: !!this[prop]
};
},
watch: (_watch = {}, _defineProperty(_watch, prop, function (val) {
this.isActive = !!val;
}), _defineProperty(_watch, "isActive", function isActive(val) {
!!val !== this[prop] && this.$emit(event, val);
}), _watch)
});
}
/* eslint-disable-next-line no-redeclare */
var Toggleable = toggleable_factory();
/* harmony default export */ var toggleable = (Toggleable);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/positionable/index.js
var availableProps = {
absolute: Boolean,
bottom: Boolean,
fixed: Boolean,
left: Boolean,
right: Boolean,
top: Boolean
};
function positionable_factory() {
var selected = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'positionable',
props: selected.length ? filterObjectOnKeys(availableProps, selected) : availableProps
});
}
/* harmony default export */ var positionable = (positionable_factory()); // Add a `*` before the second `/`
/* Tests /
let single = factory(['top']).extend({
created () {
this.top
this.bottom
this.absolute
}
})
let some = factory(['top', 'bottom']).extend({
created () {
this.top
this.bottom
this.absolute
}
})
let all = factory().extend({
created () {
this.top
this.bottom
this.absolute
this.foobar
}
})
/**/
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.link.js
var es_string_link = __webpack_require__("9911");
// EXTERNAL MODULE: ./node_modules/vuetify/src/directives/ripple/VRipple.sass
var VRipple = __webpack_require__("7435");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/directives/ripple/index.js
// Styles
// Utilities
var DELAY_RIPPLE = 80;
function ripple_transform(el, value) {
el.style['transform'] = value;
el.style['webkitTransform'] = value;
}
function opacity(el, value) {
el.style['opacity'] = value.toString();
}
function isTouchEvent(e) {
return e.constructor.name === 'TouchEvent';
}
function isKeyboardEvent(e) {
return e.constructor.name === 'KeyboardEvent';
}
var calculate = function calculate(e, el) {
var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var localX = 0;
var localY = 0;
if (!isKeyboardEvent(e)) {
var offset = el.getBoundingClientRect();
var target = isTouchEvent(e) ? e.touches[e.touches.length - 1] : e;
localX = target.clientX - offset.left;
localY = target.clientY - offset.top;
}
var radius = 0;
var scale = 0.3;
if (el._ripple && el._ripple.circle) {
scale = 0.15;
radius = el.clientWidth / 2;
radius = value.center ? radius : radius + Math.sqrt(Math.pow(localX - radius, 2) + Math.pow(localY - radius, 2)) / 4;
} else {
radius = Math.sqrt(Math.pow(el.clientWidth, 2) + Math.pow(el.clientHeight, 2)) / 2;
}
var centerX = "".concat((el.clientWidth - radius * 2) / 2, "px");
var centerY = "".concat((el.clientHeight - radius * 2) / 2, "px");
var x = value.center ? centerX : "".concat(localX - radius, "px");
var y = value.center ? centerY : "".concat(localY - radius, "px");
return {
radius: radius,
scale: scale,
x: x,
y: y,
centerX: centerX,
centerY: centerY
};
};
var ripples = {
/* eslint-disable max-statements */
show: function show(e, el) {
var value = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
if (!el._ripple || !el._ripple.enabled) {
return;
}
var container = document.createElement('span');
var animation = document.createElement('span');
container.appendChild(animation);
container.className = 'v-ripple__container';
if (value.class) {
container.className += " ".concat(value.class);
}
var _calculate = calculate(e, el, value),
radius = _calculate.radius,
scale = _calculate.scale,
x = _calculate.x,
y = _calculate.y,
centerX = _calculate.centerX,
centerY = _calculate.centerY;
var size = "".concat(radius * 2, "px");
animation.className = 'v-ripple__animation';
animation.style.width = size;
animation.style.height = size;
el.appendChild(container);
var computed = window.getComputedStyle(el);
if (computed && computed.position === 'static') {
el.style.position = 'relative';
el.dataset.previousPosition = 'static';
}
animation.classList.add('v-ripple__animation--enter');
animation.classList.add('v-ripple__animation--visible');
ripple_transform(animation, "translate(".concat(x, ", ").concat(y, ") scale3d(").concat(scale, ",").concat(scale, ",").concat(scale, ")"));
opacity(animation, 0);
animation.dataset.activated = String(performance.now());
setTimeout(function () {
animation.classList.remove('v-ripple__animation--enter');
animation.classList.add('v-ripple__animation--in');
ripple_transform(animation, "translate(".concat(centerX, ", ").concat(centerY, ") scale3d(1,1,1)"));
opacity(animation, 0.25);
}, 0);
},
hide: function hide(el) {
if (!el || !el._ripple || !el._ripple.enabled) return;
var ripples = el.getElementsByClassName('v-ripple__animation');
if (ripples.length === 0) return;
var animation = ripples[ripples.length - 1];
if (animation.dataset.isHiding) return;else animation.dataset.isHiding = 'true';
var diff = performance.now() - Number(animation.dataset.activated);
var delay = Math.max(250 - diff, 0);
setTimeout(function () {
animation.classList.remove('v-ripple__animation--in');
animation.classList.add('v-ripple__animation--out');
opacity(animation, 0);
setTimeout(function () {
var ripples = el.getElementsByClassName('v-ripple__animation');
if (ripples.length === 1 && el.dataset.previousPosition) {
el.style.position = el.dataset.previousPosition;
delete el.dataset.previousPosition;
}
animation.parentNode && el.removeChild(animation.parentNode);
}, 300);
}, delay);
}
};
function isRippleEnabled(value) {
return typeof value === 'undefined' || !!value;
}
function rippleShow(e) {
var value = {};
var element = e.currentTarget;
if (!element || !element._ripple || element._ripple.touched) return;
if (isTouchEvent(e)) {
element._ripple.touched = true;
element._ripple.isTouch = true;
} else {
// It's possible for touch events to fire
// as mouse events on Android/iOS, this
// will skip the event call if it has
// already been registered as touch
if (element._ripple.isTouch) return;
}
value.center = element._ripple.centered || isKeyboardEvent(e);
if (element._ripple.class) {
value.class = element._ripple.class;
}
if (isTouchEvent(e)) {
// already queued that shows or hides the ripple
if (element._ripple.showTimerCommit) return;
element._ripple.showTimerCommit = function () {
ripples.show(e, element, value);
};
element._ripple.showTimer = window.setTimeout(function () {
if (element && element._ripple && element._ripple.showTimerCommit) {
element._ripple.showTimerCommit();
element._ripple.showTimerCommit = null;
}
}, DELAY_RIPPLE);
} else {
ripples.show(e, element, value);
}
}
function rippleHide(e) {
var element = e.currentTarget;
if (!element || !element._ripple) return;
window.clearTimeout(element._ripple.showTimer); // The touch interaction occurs before the show timer is triggered.
// We still want to show ripple effect.
if (e.type === 'touchend' && element._ripple.showTimerCommit) {
element._ripple.showTimerCommit();
element._ripple.showTimerCommit = null; // re-queue ripple hiding
element._ripple.showTimer = setTimeout(function () {
rippleHide(e);
});
return;
}
window.setTimeout(function () {
if (element._ripple) {
element._ripple.touched = false;
}
});
ripples.hide(element);
}
function rippleCancelShow(e) {
var element = e.currentTarget;
if (!element || !element._ripple) return;
if (element._ripple.showTimerCommit) {
element._ripple.showTimerCommit = null;
}
window.clearTimeout(element._ripple.showTimer);
}
var keyboardRipple = false;
function keyboardRippleShow(e) {
if (!keyboardRipple && (e.keyCode === keyCodes.enter || e.keyCode === keyCodes.space)) {
keyboardRipple = true;
rippleShow(e);
}
}
function keyboardRippleHide(e) {
keyboardRipple = false;
rippleHide(e);
}
function updateRipple(el, binding, wasEnabled) {
var enabled = isRippleEnabled(binding.value);
if (!enabled) {
ripples.hide(el);
}
el._ripple = el._ripple || {};
el._ripple.enabled = enabled;
var value = binding.value || {};
if (value.center) {
el._ripple.centered = true;
}
if (value.class) {
el._ripple.class = binding.value.class;
}
if (value.circle) {
el._ripple.circle = value.circle;
}
if (enabled && !wasEnabled) {
el.addEventListener('touchstart', rippleShow, {
passive: true
});
el.addEventListener('touchend', rippleHide, {
passive: true
});
el.addEventListener('touchmove', rippleCancelShow, {
passive: true
});
el.addEventListener('touchcancel', rippleHide);
el.addEventListener('mousedown', rippleShow);
el.addEventListener('mouseup', rippleHide);
el.addEventListener('mouseleave', rippleHide);
el.addEventListener('keydown', keyboardRippleShow);
el.addEventListener('keyup', keyboardRippleHide); // Anchor tags can be dragged, causes other hides to fail - #1537
el.addEventListener('dragstart', rippleHide, {
passive: true
});
} else if (!enabled && wasEnabled) {
removeListeners(el);
}
}
function removeListeners(el) {
el.removeEventListener('mousedown', rippleShow);
el.removeEventListener('touchstart', rippleShow);
el.removeEventListener('touchend', rippleHide);
el.removeEventListener('touchmove', rippleCancelShow);
el.removeEventListener('touchcancel', rippleHide);
el.removeEventListener('mouseup', rippleHide);
el.removeEventListener('mouseleave', rippleHide);
el.removeEventListener('keydown', keyboardRippleShow);
el.removeEventListener('keyup', keyboardRippleHide);
el.removeEventListener('dragstart', rippleHide);
}
function ripple_directive(el, binding, node) {
updateRipple(el, binding, false);
if (false) {}
}
function unbind(el) {
delete el._ripple;
removeListeners(el);
}
function update(el, binding) {
if (binding.value === binding.oldValue) {
return;
}
var wasEnabled = isRippleEnabled(binding.oldValue);
updateRipple(el, binding, wasEnabled);
}
var Ripple = {
bind: ripple_directive,
unbind: unbind,
update: update
};
/* harmony default export */ var ripple = (Ripple);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/routable/index.js
// Directives
// Utilities
/* harmony default export */ var routable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'routable',
directives: {
Ripple: ripple
},
props: {
activeClass: String,
append: Boolean,
disabled: Boolean,
exact: {
type: Boolean,
default: undefined
},
exactActiveClass: String,
link: Boolean,
href: [String, Object],
to: [String, Object],
nuxt: Boolean,
replace: Boolean,
ripple: {
type: [Boolean, Object],
default: null
},
tag: String,
target: String
},
data: function data() {
return {
isActive: false,
proxyClass: ''
};
},
computed: {
classes: function classes() {
var classes = {};
if (this.to) return classes;
if (this.activeClass) classes[this.activeClass] = this.isActive;
if (this.proxyClass) classes[this.proxyClass] = this.isActive;
return classes;
},
computedRipple: function computedRipple() {
return this.ripple != null ? this.ripple : !this.disabled && this.isClickable;
},
isClickable: function isClickable() {
if (this.disabled) return false;
return Boolean(this.isLink || this.$listeners.click || this.$listeners['!click'] || this.$attrs.tabindex);
},
isLink: function isLink() {
return this.to || this.href || this.link;
},
styles: function styles() {
return {};
}
},
watch: {
$route: 'onRouteChange'
},
methods: {
click: function click(e) {
this.$emit('click', e);
},
generateRouteLink: function generateRouteLink() {
var _data;
var exact = this.exact;
var tag;
var data = (_data = {
attrs: {
tabindex: 'tabindex' in this.$attrs ? this.$attrs.tabindex : undefined
},
class: this.classes,
style: this.styles,
props: {},
directives: [{
name: 'ripple',
value: this.computedRipple
}]
}, _defineProperty(_data, this.to ? 'nativeOn' : 'on', _objectSpread2(_objectSpread2({}, this.$listeners), {}, {
click: this.click
})), _defineProperty(_data, "ref", 'link'), _data);
if (typeof this.exact === 'undefined') {
exact = this.to === '/' || this.to === Object(this.to) && this.to.path === '/';
}
if (this.to) {
// Add a special activeClass hook
// for component level styles
var activeClass = this.activeClass;
var exactActiveClass = this.exactActiveClass || activeClass;
if (this.proxyClass) {
activeClass = "".concat(activeClass, " ").concat(this.proxyClass).trim();
exactActiveClass = "".concat(exactActiveClass, " ").concat(this.proxyClass).trim();
}
tag = this.nuxt ? 'nuxt-link' : 'router-link';
Object.assign(data.props, {
to: this.to,
exact: exact,
activeClass: activeClass,
exactActiveClass: exactActiveClass,
append: this.append,
replace: this.replace
});
} else {
tag = this.href && 'a' || this.tag || 'div';
if (tag === 'a' && this.href) data.attrs.href = this.href;
}
if (this.target) data.attrs.target = this.target;
return {
tag: tag,
data: data
};
},
onRouteChange: function onRouteChange() {
var _this = this;
if (!this.to || !this.$refs.link || !this.$route) return;
var activeClass = "".concat(this.activeClass, " ").concat(this.proxyClass || '').trim();
var path = "_vnode.data.class.".concat(activeClass);
this.$nextTick(function () {
/* istanbul ignore else */
if (getObjectValueByPath(_this.$refs.link, path)) {
_this.toggle();
}
});
},
toggle: function toggle() {}
}
}));
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.small.js
var es_string_small = __webpack_require__("c96a");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/sizeable/index.js
/* harmony default export */ var sizeable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'sizeable',
props: {
large: Boolean,
small: Boolean,
xLarge: Boolean,
xSmall: Boolean
},
computed: {
medium: function medium() {
return Boolean(!this.xSmall && !this.small && !this.large && !this.xLarge);
},
sizeableClasses: function sizeableClasses() {
return {
'v-size--x-small': this.xSmall,
'v-size--small': this.small,
'v-size--default': this.medium,
'v-size--large': this.large,
'v-size--x-large': this.xLarge
};
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VBtn/VBtn.js
// Styles
// Extensions
// Components
// Mixins
// Utilities
var baseMixins = mixins(components_VSheet, routable, positionable, sizeable, factory('btnToggle'), toggleable_factory('inputValue')
/* @vue/component */
);
/* harmony default export */ var VBtn_VBtn = (baseMixins.extend().extend({
name: 'v-btn',
props: {
activeClass: {
type: String,
default: function _default() {
if (!this.btnToggle) return '';
return this.btnToggle.activeClass;
}
},
block: Boolean,
depressed: Boolean,
fab: Boolean,
icon: Boolean,
loading: Boolean,
outlined: Boolean,
retainFocusOnClick: Boolean,
rounded: Boolean,
tag: {
type: String,
default: 'button'
},
text: Boolean,
tile: Boolean,
type: {
type: String,
default: 'button'
},
value: null
},
data: function data() {
return {
proxyClass: 'v-btn--active'
};
},
computed: {
classes: function classes() {
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
'v-btn': true
}, routable.options.computed.classes.call(this)), {}, {
'v-btn--absolute': this.absolute,
'v-btn--block': this.block,
'v-btn--bottom': this.bottom,
'v-btn--contained': this.contained,
'v-btn--depressed': this.depressed || this.outlined,
'v-btn--disabled': this.disabled,
'v-btn--fab': this.fab,
'v-btn--fixed': this.fixed,
'v-btn--flat': this.isFlat,
'v-btn--icon': this.icon,
'v-btn--left': this.left,
'v-btn--loading': this.loading,
'v-btn--outlined': this.outlined,
'v-btn--right': this.right,
'v-btn--round': this.isRound,
'v-btn--rounded': this.rounded,
'v-btn--router': this.to,
'v-btn--text': this.text,
'v-btn--tile': this.tile,
'v-btn--top': this.top
}, this.themeClasses), this.groupClasses), this.elevationClasses), this.sizeableClasses);
},
contained: function contained() {
return Boolean(!this.isFlat && !this.depressed && // Contained class only adds elevation
// is not needed if user provides value
!this.elevation);
},
computedRipple: function computedRipple() {
var defaultRipple = this.icon || this.fab ? {
circle: true
} : true;
if (this.disabled) return false;else return this.ripple != null ? this.ripple : defaultRipple;
},
isFlat: function isFlat() {
return Boolean(this.icon || this.text || this.outlined);
},
isRound: function isRound() {
return Boolean(this.icon || this.fab);
},
styles: function styles() {
return _objectSpread2({}, this.measurableStyles);
}
},
created: function created() {
var _this = this;
var breakingProps = [['flat', 'text'], ['outline', 'outlined'], ['round', 'rounded']];
/* istanbul ignore next */
breakingProps.forEach(function (_ref) {
var _ref2 = _slicedToArray(_ref, 2),
original = _ref2[0],
replacement = _ref2[1];
if (_this.$attrs.hasOwnProperty(original)) breaking(original, replacement, _this);
});
},
methods: {
click: function click(e) {
// TODO: Remove this in v3
!this.retainFocusOnClick && !this.fab && e.detail && this.$el.blur();
this.$emit('click', e);
this.btnToggle && this.toggle();
},
genContent: function genContent() {
return this.$createElement('span', {
staticClass: 'v-btn__content'
}, this.$slots.default);
},
genLoader: function genLoader() {
return this.$createElement('span', {
class: 'v-btn__loader'
}, this.$slots.loader || [this.$createElement(components_VProgressCircular, {
props: {
indeterminate: true,
size: 23,
width: 2
}
})]);
}
},
render: function render(h) {
var children = [this.genContent(), this.loading && this.genLoader()];
var setColor = !this.isFlat ? this.setBackgroundColor : this.setTextColor;
var _this$generateRouteLi = this.generateRouteLink(),
tag = _this$generateRouteLi.tag,
data = _this$generateRouteLi.data;
if (tag === 'button') {
data.attrs.type = this.type;
data.attrs.disabled = this.disabled;
}
data.attrs.value = ['string', 'number'].includes(_typeof(this.value)) ? this.value : JSON.stringify(this.value);
return h(tag, this.disabled ? data : setColor(this.color, data), children);
}
}));
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.flat.js
var es_array_flat = __webpack_require__("0481");
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.unscopables.flat.js
var es_array_unscopables_flat = __webpack_require__("4069");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VCard/VCard.sass
var VCard = __webpack_require__("615b");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VProgressLinear/VProgressLinear.sass
var VProgressLinear = __webpack_require__("6ece");
// 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();
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/util/mergeData.js
var pattern = {
styleList: /;(?![^(]*\))/g,
styleProp: /:(.*)/
};
function parseStyle(style) {
var styleMap = {};
var _iterator = _createForOfIteratorHelper(style.split(pattern.styleList)),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var s = _step.value;
var _s$split = s.split(pattern.styleProp),
_s$split2 = _slicedToArray(_s$split, 2),
key = _s$split2[0],
val = _s$split2[1];
key = key.trim();
if (!key) {
continue;
} // May be undefined if the `key: value` pair is incomplete.
if (typeof val === 'string') {
val = val.trim();
}
styleMap[camelize(key)] = val;
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
return styleMap;
}
function mergeData() {
var mergeTarget = {};
var i = arguments.length;
var prop; // Allow for variadic argument length.
while (i--) {
// Iterate through the data properties and execute merge strategies
// Object.keys eliminates need for hasOwnProperty call
for (var _i = 0, _Object$keys = Object.keys(arguments[i]); _i < _Object$keys.length; _i++) {
prop = _Object$keys[_i];
switch (prop) {
// Array merge strategy (array concatenation)
case 'class':
case 'directives':
if (arguments[i][prop]) {
mergeTarget[prop] = mergeClasses(mergeTarget[prop], arguments[i][prop]);
}
break;
case 'style':
if (arguments[i][prop]) {
mergeTarget[prop] = mergeStyles(mergeTarget[prop], arguments[i][prop]);
}
break;
// Space delimited string concatenation strategy
case 'staticClass':
if (!arguments[i][prop]) {
break;
}
if (mergeTarget[prop] === undefined) {
mergeTarget[prop] = '';
}
if (mergeTarget[prop]) {
// Not an empty string, so concatenate
mergeTarget[prop] += ' ';
}
mergeTarget[prop] += arguments[i][prop].trim();
break;
// Object, the properties of which to merge via array merge strategy (array concatenation).
// Callback merge strategy merges callbacks to the beginning of the array,
// so that the last defined callback will be invoked first.
// This is done since to mimic how Object.assign merging
// uses the last given value to assign.
case 'on':
case 'nativeOn':
if (arguments[i][prop]) {
mergeTarget[prop] = mergeListeners(mergeTarget[prop], arguments[i][prop]);
}
break;
// Object merge strategy
case 'attrs':
case 'props':
case 'domProps':
case 'scopedSlots':
case 'staticStyle':
case 'hook':
case 'transition':
if (!arguments[i][prop]) {
break;
}
if (!mergeTarget[prop]) {
mergeTarget[prop] = {};
}
mergeTarget[prop] = _objectSpread2(_objectSpread2({}, arguments[i][prop]), mergeTarget[prop]);
break;
// Reassignment strategy (no merge)
default:
// slot, key, ref, tag, show, keepAlive
if (!mergeTarget[prop]) {
mergeTarget[prop] = arguments[i][prop];
}
}
}
}
return mergeTarget;
}
function mergeStyles(target, source) {
if (!target) return source;
if (!source) return target;
target = wrapInArray(typeof target === 'string' ? parseStyle(target) : target);
return target.concat(typeof source === 'string' ? parseStyle(source) : source);
}
function mergeClasses(target, source) {
if (!source) return target;
if (!target) return source;
return target ? wrapInArray(target).concat(source) : source;
}
function mergeListeners(target, source) {
if (!target) return source;
if (!source) return target;
var event;
for (var _i2 = 0, _Object$keys2 = Object.keys(source); _i2 < _Object$keys2.length; _i2++) {
event = _Object$keys2[_i2];
// Concat function to array of functions if callback present.
if (target[event]) {
var _target$event;
// Insert current iteration data in beginning of merged array.
target[event] = wrapInArray(target[event]);
(_target$event = target[event]).push.apply(_target$event, _toConsumableArray(wrapInArray(source[event])));
} else {
// Straight assign.
target[event] = source[event];
}
}
return target;
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/transitions/createTransition.js
function mergeTransitions() {
var _Array;
var dest = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
for (var _len = arguments.length, transitions = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
transitions[_key - 1] = arguments[_key];
}
/* eslint-disable-next-line no-array-constructor */
return (_Array = Array()).concat.apply(_Array, [dest].concat(transitions));
}
function createSimpleTransition(name) {
var origin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top center 0';
var mode = arguments.length > 2 ? arguments[2] : undefined;
return {
name: name,
functional: true,
props: {
group: {
type: Boolean,
default: false
},
hideOnLeave: {
type: Boolean,
default: false
},
leaveAbsolute: {
type: Boolean,
default: false
},
mode: {
type: String,
default: mode
},
origin: {
type: String,
default: origin
}
},
render: function render(h, context) {
var tag = "transition".concat(context.props.group ? '-group' : '');
var data = {
props: {
name: name,
mode: context.props.mode
},
on: {
beforeEnter: function beforeEnter(el) {
el.style.transformOrigin = context.props.origin;
el.style.webkitTransformOrigin = context.props.origin;
}
}
};
if (context.props.leaveAbsolute) {
data.on.leave = mergeTransitions(data.on.leave, function (el) {
return el.style.position = 'absolute';
});
}
if (context.props.hideOnLeave) {
data.on.leave = mergeTransitions(data.on.leave, function (el) {
return el.style.display = 'none';
});
}
return h(tag, mergeData(context.data, data), context.children);
}
};
}
function createJavascriptTransition(name, functions) {
var mode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'in-out';
return {
name: name,
functional: true,
props: {
mode: {
type: String,
default: mode
}
},
render: function render(h, context) {
return h('transition', mergeData(context.data, {
props: {
name: name
},
on: functions
}), context.children);
}
};
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/transitions/expand-transition.js
/* harmony default export */ var expand_transition = (function () {
var expandedParentClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var x = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var sizeProperty = x ? 'width' : 'height';
var offsetProperty = "offset".concat(upperFirst(sizeProperty));
return {
beforeEnter: function beforeEnter(el) {
el._parent = el.parentNode;
el._initialStyle = _defineProperty({
transition: el.style.transition,
visibility: el.style.visibility,
overflow: el.style.overflow
}, sizeProperty, el.style[sizeProperty]);
},
enter: function enter(el) {
var initialStyle = el._initialStyle;
var offset = "".concat(el[offsetProperty], "px");
el.style.setProperty('transition', 'none', 'important');
el.style.visibility = 'hidden';
el.style.visibility = initialStyle.visibility;
el.style.overflow = 'hidden';
el.style[sizeProperty] = '0';
void el.offsetHeight; // force reflow
el.style.transition = initialStyle.transition;
if (expandedParentClass && el._parent) {
el._parent.classList.add(expandedParentClass);
}
requestAnimationFrame(function () {
el.style[sizeProperty] = offset;
});
},
afterEnter: resetStyles,
enterCancelled: resetStyles,
leave: function leave(el) {
el._initialStyle = _defineProperty({
transition: '',
visibility: '',
overflow: el.style.overflow
}, sizeProperty, el.style[sizeProperty]);
el.style.overflow = 'hidden';
el.style[sizeProperty] = "".concat(el[offsetProperty], "px");
void el.offsetHeight; // force reflow
requestAnimationFrame(function () {
return el.style[sizeProperty] = '0';
});
},
afterLeave: afterLeave,
leaveCancelled: afterLeave
};
function afterLeave(el) {
if (expandedParentClass && el._parent) {
el._parent.classList.remove(expandedParentClass);
}
resetStyles(el);
}
function resetStyles(el) {
var size = el._initialStyle[sizeProperty];
el.style.overflow = el._initialStyle.overflow;
if (size != null) el.style[sizeProperty] = size;
delete el._initialStyle;
}
});
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/transitions/index.js
// Component specific transitions
var VCarouselTransition = createSimpleTransition('carousel-transition');
var VCarouselReverseTransition = createSimpleTransition('carousel-reverse-transition');
var VTabTransition = createSimpleTransition('tab-transition');
var VTabReverseTransition = createSimpleTransition('tab-reverse-transition');
var VMenuTransition = createSimpleTransition('menu-transition');
var VFabTransition = createSimpleTransition('fab-transition', 'center center', 'out-in'); // Generic transitions
var VDialogTransition = createSimpleTransition('dialog-transition');
var VDialogBottomTransition = createSimpleTransition('dialog-bottom-transition');
var VFadeTransition = createSimpleTransition('fade-transition');
var VScaleTransition = createSimpleTransition('scale-transition');
var VScrollXTransition = createSimpleTransition('scroll-x-transition');
var VScrollXReverseTransition = createSimpleTransition('scroll-x-reverse-transition');
var VScrollYTransition = createSimpleTransition('scroll-y-transition');
var VScrollYReverseTransition = createSimpleTransition('scroll-y-reverse-transition');
var VSlideXTransition = createSimpleTransition('slide-x-transition');
var VSlideXReverseTransition = createSimpleTransition('slide-x-reverse-transition');
var VSlideYTransition = createSimpleTransition('slide-y-transition');
var VSlideYReverseTransition = createSimpleTransition('slide-y-reverse-transition'); // Javascript transitions
var VExpandTransition = createJavascriptTransition('expand-transition', expand_transition());
var VExpandXTransition = createJavascriptTransition('expand-x-transition', expand_transition('', true));
/* harmony default export */ var transitions = ({
$_vuetify_subcomponents: {
VCarouselTransition: VCarouselTransition,
VCarouselReverseTransition: VCarouselReverseTransition,
VDialogTransition: VDialogTransition,
VDialogBottomTransition: VDialogBottomTransition,
VFabTransition: VFabTransition,
VFadeTransition: VFadeTransition,
VMenuTransition: VMenuTransition,
VScaleTransition: VScaleTransition,
VScrollXTransition: VScrollXTransition,
VScrollXReverseTransition: VScrollXReverseTransition,
VScrollYTransition: VScrollYTransition,
VScrollYReverseTransition: VScrollYReverseTransition,
VSlideXTransition: VSlideXTransition,
VSlideXReverseTransition: VSlideXReverseTransition,
VSlideYTransition: VSlideYTransition,
VSlideYReverseTransition: VSlideYReverseTransition,
VTabReverseTransition: VTabReverseTransition,
VTabTransition: VTabTransition,
VExpandTransition: VExpandTransition,
VExpandXTransition: VExpandXTransition
}
});
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/proxyable/index.js
function proxyable_factory() {
var prop = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'value';
var event = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'change';
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'proxyable',
model: {
prop: prop,
event: event
},
props: _defineProperty({}, prop, {
required: false
}),
data: function data() {
return {
internalLazyValue: this[prop]
};
},
computed: {
internalValue: {
get: function get() {
return this.internalLazyValue;
},
set: function set(val) {
if (val === this.internalLazyValue) return;
this.internalLazyValue = val;
this.$emit(event, val);
}
}
},
watch: _defineProperty({}, prop, function (val) {
this.internalLazyValue = val;
})
});
}
/* eslint-disable-next-line no-redeclare */
var Proxyable = proxyable_factory();
/* harmony default export */ var proxyable = (Proxyable);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VProgressLinear/VProgressLinear.js
// Components
// Mixins
// Utilities
var VProgressLinear_baseMixins = mixins(colorable, positionable_factory(['absolute', 'fixed', 'top', 'bottom']), proxyable, themeable);
/* @vue/component */
/* harmony default export */ var VProgressLinear_VProgressLinear = (VProgressLinear_baseMixins.extend({
name: 'v-progress-linear',
props: {
active: {
type: Boolean,
default: true
},
backgroundColor: {
type: String,
default: null
},
backgroundOpacity: {
type: [Number, String],
default: null
},
bufferValue: {
type: [Number, String],
default: 100
},
color: {
type: String,
default: 'primary'
},
height: {
type: [Number, String],
default: 4
},
indeterminate: Boolean,
query: Boolean,
reverse: Boolean,
rounded: Boolean,
stream: Boolean,
striped: Boolean,
value: {
type: [Number, String],
default: 0
}
},
data: function data() {
return {
internalLazyValue: this.value || 0
};
},
computed: {
__cachedBackground: function __cachedBackground() {
return this.$createElement('div', this.setBackgroundColor(this.backgroundColor || this.color, {
staticClass: 'v-progress-linear__background',
style: this.backgroundStyle
}));
},
__cachedBar: function __cachedBar() {
return this.$createElement(this.computedTransition, [this.__cachedBarType]);
},
__cachedBarType: function __cachedBarType() {
return this.indeterminate ? this.__cachedIndeterminate : this.__cachedDeterminate;
},
__cachedBuffer: function __cachedBuffer() {
return this.$createElement('div', {
staticClass: 'v-progress-linear__buffer',
style: this.styles
});
},
__cachedDeterminate: function __cachedDeterminate() {
return this.$createElement('div', this.setBackgroundColor(this.color, {
staticClass: "v-progress-linear__determinate",
style: {
width: convertToUnit(this.normalizedValue, '%')
}
}));
},
__cachedIndeterminate: function __cachedIndeterminate() {
return this.$createElement('div', {
staticClass: 'v-progress-linear__indeterminate',
class: {
'v-progress-linear__indeterminate--active': this.active
}
}, [this.genProgressBar('long'), this.genProgressBar('short')]);
},
__cachedStream: function __cachedStream() {
if (!this.stream) return null;
return this.$createElement('div', this.setTextColor(this.color, {
staticClass: 'v-progress-linear__stream',
style: {
width: convertToUnit(100 - this.normalizedBuffer, '%')
}
}));
},
backgroundStyle: function backgroundStyle() {
var _ref;
var backgroundOpacity = this.backgroundOpacity == null ? this.backgroundColor ? 1 : 0.3 : parseFloat(this.backgroundOpacity);
return _ref = {
opacity: backgroundOpacity
}, _defineProperty(_ref, this.isReversed ? 'right' : 'left', convertToUnit(this.normalizedValue, '%')), _defineProperty(_ref, "width", convertToUnit(this.normalizedBuffer - this.normalizedValue, '%')), _ref;
},
classes: function classes() {
return _objectSpread2({
'v-progress-linear--absolute': this.absolute,
'v-progress-linear--fixed': this.fixed,
'v-progress-linear--query': this.query,
'v-progress-linear--reactive': this.reactive,
'v-progress-linear--reverse': this.isReversed,
'v-progress-linear--rounded': this.rounded,
'v-progress-linear--striped': this.striped
}, this.themeClasses);
},
computedTransition: function computedTransition() {
return this.indeterminate ? VFadeTransition : VSlideXTransition;
},
isReversed: function isReversed() {
return this.$vuetify.rtl !== this.reverse;
},
normalizedBuffer: function normalizedBuffer() {
return this.normalize(this.bufferValue);
},
normalizedValue: function normalizedValue() {
return this.normalize(this.internalLazyValue);
},
reactive: function reactive() {
return Boolean(this.$listeners.change);
},
styles: function styles() {
var styles = {};
if (!this.active) {
styles.height = 0;
}
if (!this.indeterminate && parseFloat(this.normalizedBuffer) !== 100) {
styles.width = convertToUnit(this.normalizedBuffer, '%');
}
return styles;
}
},
methods: {
genContent: function genContent() {
var slot = getSlot(this, 'default', {
value: this.internalLazyValue
});
if (!slot) return null;
return this.$createElement('div', {
staticClass: 'v-progress-linear__content'
}, slot);
},
genListeners: function genListeners() {
var listeners = this.$listeners;
if (this.reactive) {
listeners.click = this.onClick;
}
return listeners;
},
genProgressBar: function genProgressBar(name) {
return this.$createElement('div', this.setBackgroundColor(this.color, {
staticClass: 'v-progress-linear__indeterminate',
class: _defineProperty({}, name, true)
}));
},
onClick: function onClick(e) {
if (!this.reactive) return;
var _this$$el$getBounding = this.$el.getBoundingClientRect(),
width = _this$$el$getBounding.width;
this.internalValue = e.offsetX / width * 100;
},
normalize: function normalize(value) {
if (value < 0) return 0;
if (value > 100) return 100;
return parseFloat(value);
}
},
render: function render(h) {
var data = {
staticClass: 'v-progress-linear',
attrs: {
role: 'progressbar',
'aria-valuemin': 0,
'aria-valuemax': this.normalizedBuffer,
'aria-valuenow': this.indeterminate ? undefined : this.normalizedValue
},
class: this.classes,
style: {
bottom: this.bottom ? 0 : undefined,
height: this.active ? convertToUnit(this.height) : 0,
top: this.top ? 0 : undefined
},
on: this.genListeners()
};
return h('div', data, [this.__cachedStream, this.__cachedBackground, this.__cachedBuffer, this.__cachedBar, this.genContent()]);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VProgressLinear/index.js
/* harmony default export */ var components_VProgressLinear = (VProgressLinear_VProgressLinear);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/loadable/index.js
/**
* Loadable
*
* @mixin
*
* Used to add linear progress bar to components
* Can use a default bar with a specific color
* or designate a custom progress linear bar
*/
/* @vue/component */
/* harmony default export */ var loadable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend().extend({
name: 'loadable',
props: {
loading: {
type: [Boolean, String],
default: false
},
loaderHeight: {
type: [Number, String],
default: 2
}
},
methods: {
genProgress: function genProgress() {
if (this.loading === false) return null;
return this.$slots.progress || this.$createElement(components_VProgressLinear, {
props: {
absolute: true,
color: this.loading === true || this.loading === '' ? this.color || 'primary' : this.loading,
height: this.loaderHeight,
indeterminate: true
}
});
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VCard/VCard.js
// Styles
// Extensions
// Mixins
// Helpers
/* @vue/component */
/* harmony default export */ var VCard_VCard = (mixins(loadable, routable, components_VSheet).extend({
name: 'v-card',
props: {
flat: Boolean,
hover: Boolean,
img: String,
link: Boolean,
loaderHeight: {
type: [Number, String],
default: 4
},
raised: Boolean
},
computed: {
classes: function classes() {
return _objectSpread2(_objectSpread2({
'v-card': true
}, routable.options.computed.classes.call(this)), {}, {
'v-card--flat': this.flat,
'v-card--hover': this.hover,
'v-card--link': this.isClickable,
'v-card--loading': this.loading,
'v-card--disabled': this.disabled,
'v-card--raised': this.raised
}, components_VSheet.options.computed.classes.call(this));
},
styles: function styles() {
var style = _objectSpread2({}, components_VSheet.options.computed.styles.call(this));
if (this.img) {
style.background = "url(\"".concat(this.img, "\") center center / cover no-repeat");
}
return style;
}
},
methods: {
genProgress: function genProgress() {
var render = loadable.options.methods.genProgress.call(this);
if (!render) return null;
return this.$createElement('div', {
staticClass: 'v-card__progress',
key: 'progress'
}, [render]);
}
},
render: function render(h) {
var _this$generateRouteLi = this.generateRouteLink(),
tag = _this$generateRouteLi.tag,
data = _this$generateRouteLi.data;
data.style = this.styles;
if (this.isClickable) {
data.attrs = data.attrs || {};
data.attrs.tabindex = 0;
}
return h(tag, this.setBackgroundColor(this.color, data), [this.genProgress(), this.$slots.default]);
}
}));
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.map.js
var es_map = __webpack_require__("4ec9");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VTextField/VTextField.sass
var VTextField = __webpack_require__("4ff9");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VSelect/VSelect.sass
var VSelect = __webpack_require__("68dd");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VChip/VChip.sass
var VChip = __webpack_require__("8adc");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VIcon/VIcon.sass
var VIcon = __webpack_require__("4804");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VIcon/VIcon.js
// Mixins
// Util
// Types
var SIZE_MAP;
(function (SIZE_MAP) {
SIZE_MAP["xSmall"] = "12px";
SIZE_MAP["small"] = "16px";
SIZE_MAP["default"] = "24px";
SIZE_MAP["medium"] = "28px";
SIZE_MAP["large"] = "36px";
SIZE_MAP["xLarge"] = "40px";
})(SIZE_MAP || (SIZE_MAP = {}));
function isFontAwesome5(iconType) {
return ['fas', 'far', 'fal', 'fab', 'fad'].some(function (val) {
return iconType.includes(val);
});
}
function isSvgPath(icon) {
return /^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(icon) && /[\dz]$/i.test(icon) && icon.length > 4;
}
var VIcon_VIcon = mixins(binds_attrs, colorable, sizeable, themeable
/* @vue/component */
).extend({
name: 'v-icon',
props: {
dense: Boolean,
disabled: Boolean,
left: Boolean,
right: Boolean,
size: [Number, String],
tag: {
type: String,
required: false,
default: 'i'
}
},
computed: {
medium: function medium() {
return false;
},
hasClickListener: function hasClickListener() {
return Boolean(this.listeners$.click || this.listeners$['!click']);
}
},
methods: {
getIcon: function getIcon() {
var iconName = '';
if (this.$slots.default) iconName = this.$slots.default[0].text.trim();
return remapInternalIcon(this, iconName);
},
getSize: function getSize() {
var sizes = {
xSmall: this.xSmall,
small: this.small,
medium: this.medium,
large: this.large,
xLarge: this.xLarge
};
var explicitSize = keys(sizes).find(function (key) {
return sizes[key];
});
return explicitSize && SIZE_MAP[explicitSize] || convertToUnit(this.size);
},
// Component data for both font and svg icon.
getDefaultData: function getDefaultData() {
var data = {
staticClass: 'v-icon notranslate',
class: {
'v-icon--disabled': this.disabled,
'v-icon--left': this.left,
'v-icon--link': this.hasClickListener,
'v-icon--right': this.right,
'v-icon--dense': this.dense
},
attrs: _objectSpread2({
'aria-hidden': !this.hasClickListener,
disabled: this.hasClickListener && this.disabled,
type: this.hasClickListener ? 'button' : undefined
}, this.attrs$),
on: this.listeners$
};
return data;
},
applyColors: function applyColors(data) {
data.class = _objectSpread2(_objectSpread2({}, data.class), this.themeClasses);
this.setTextColor(this.color, data);
},
renderFontIcon: function renderFontIcon(icon, h) {
var newChildren = [];
var data = this.getDefaultData();
var iconType = 'material-icons'; // Material Icon delimiter is _
// https://material.io/icons/
var delimiterIndex = icon.indexOf('-');
var isMaterialIcon = delimiterIndex <= -1;
if (isMaterialIcon) {
// Material icon uses ligatures.
newChildren.push(icon);
} else {
iconType = icon.slice(0, delimiterIndex);
if (isFontAwesome5(iconType)) iconType = '';
}
data.class[iconType] = true;
data.class[icon] = !isMaterialIcon;
var fontSize = this.getSize();
if (fontSize) data.style = {
fontSize: fontSize
};
this.applyColors(data);
return h(this.hasClickListener ? 'button' : this.tag, data, newChildren);
},
renderSvgIcon: function renderSvgIcon(icon, h) {
var fontSize = this.getSize();
var wrapperData = _objectSpread2(_objectSpread2({}, this.getDefaultData()), {}, {
style: fontSize ? {
fontSize: fontSize,
height: fontSize,
width: fontSize
} : undefined
});
wrapperData.class['v-icon--svg'] = true;
this.applyColors(wrapperData);
var svgData = {
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 24 24',
height: fontSize || '24',
width: fontSize || '24',
role: 'img',
'aria-hidden': true
}
};
return h(this.hasClickListener ? 'button' : 'span', wrapperData, [h('svg', svgData, [h('path', {
attrs: {
d: icon
}
})])]);
},
renderSvgIconComponent: function renderSvgIconComponent(icon, h) {
var data = this.getDefaultData();
data.class['v-icon--is-component'] = true;
var size = this.getSize();
if (size) {
data.style = {
fontSize: size,
height: size,
width: size
};
}
this.applyColors(data);
var component = icon.component;
data.props = icon.props;
data.nativeOn = data.on;
return h(component, data);
}
},
render: function render(h) {
var icon = this.getIcon();
if (typeof icon === 'string') {
if (isSvgPath(icon)) {
return this.renderSvgIcon(icon, h);
}
return this.renderFontIcon(icon, h);
}
return this.renderSvgIconComponent(icon, h);
}
});
/* harmony default export */ var components_VIcon_VIcon = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'v-icon',
$_wrapperFor: VIcon_VIcon,
functional: true,
render: function render(h, _ref) {
var data = _ref.data,
children = _ref.children;
var iconName = ''; // Support usage of v-text and v-html
if (data.domProps) {
iconName = data.domProps.textContent || data.domProps.innerHTML || iconName; // Remove nodes so it doesn't
// overwrite our changes
delete data.domProps.textContent;
delete data.domProps.innerHTML;
}
return h(VIcon_VIcon, data, iconName ? [iconName] : children);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VIcon/index.js
/* harmony default export */ var components_VIcon = (components_VIcon_VIcon);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VChip/VChip.js
// Styles
// Components
// Mixins
// Utilities
/* @vue/component */
/* harmony default export */ var VChip_VChip = (mixins(colorable, sizeable, routable, themeable, factory('chipGroup'), toggleable_factory('inputValue')).extend({
name: 'v-chip',
props: {
active: {
type: Boolean,
default: true
},
activeClass: {
type: String,
default: function _default() {
if (!this.chipGroup) return '';
return this.chipGroup.activeClass;
}
},
close: Boolean,
closeIcon: {
type: String,
default: '$delete'
},
disabled: Boolean,
draggable: Boolean,
filter: Boolean,
filterIcon: {
type: String,
default: '$complete'
},
label: Boolean,
link: Boolean,
outlined: Boolean,
pill: Boolean,
tag: {
type: String,
default: 'span'
},
textColor: String,
value: null
},
data: function data() {
return {
proxyClass: 'v-chip--active'
};
},
computed: {
classes: function classes() {
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
'v-chip': true
}, routable.options.computed.classes.call(this)), {}, {
'v-chip--clickable': this.isClickable,
'v-chip--disabled': this.disabled,
'v-chip--draggable': this.draggable,
'v-chip--label': this.label,
'v-chip--link': this.isLink,
'v-chip--no-color': !this.color,
'v-chip--outlined': this.outlined,
'v-chip--pill': this.pill,
'v-chip--removable': this.hasClose
}, this.themeClasses), this.sizeableClasses), this.groupClasses);
},
hasClose: function hasClose() {
return Boolean(this.close);
},
isClickable: function isClickable() {
return Boolean(routable.options.computed.isClickable.call(this) || this.chipGroup);
}
},
created: function created() {
var _this = this;
var breakingProps = [['outline', 'outlined'], ['selected', 'input-value'], ['value', 'active'], ['@input', '@active.sync']];
/* istanbul ignore next */
breakingProps.forEach(function (_ref) {
var _ref2 = _slicedToArray(_ref, 2),
original = _ref2[0],
replacement = _ref2[1];
if (_this.$attrs.hasOwnProperty(original)) breaking(original, replacement, _this);
});
},
methods: {
click: function click(e) {
this.$emit('click', e);
this.chipGroup && this.toggle();
},
genFilter: function genFilter() {
var children = [];
if (this.isActive) {
children.push(this.$createElement(components_VIcon, {
staticClass: 'v-chip__filter',
props: {
left: true
}
}, this.filterIcon));
}
return this.$createElement(VExpandXTransition, children);
},
genClose: function genClose() {
var _this2 = this;
return this.$createElement(components_VIcon, {
staticClass: 'v-chip__close',
props: {
right: true,
size: 18
},
on: {
click: function click(e) {
e.stopPropagation();
e.preventDefault();
_this2.$emit('click:close');
_this2.$emit('update:active', false);
}
}
}, this.closeIcon);
},
genContent: function genContent() {
return this.$createElement('span', {
staticClass: 'v-chip__content'
}, [this.filter && this.genFilter(), this.$slots.default, this.hasClose && this.genClose()]);
}
},
render: function render(h) {
var children = [this.genContent()];
var _this$generateRouteLi = this.generateRouteLink(),
tag = _this$generateRouteLi.tag,
data = _this$generateRouteLi.data;
data.attrs = _objectSpread2(_objectSpread2({}, data.attrs), {}, {
draggable: this.draggable ? 'true' : undefined,
tabindex: this.chipGroup && !this.disabled ? 0 : data.attrs.tabindex
});
data.directives.push({
name: 'show',
value: this.active
});
data = this.setBackgroundColor(this.color, data);
var color = this.textColor || this.outlined && this.color;
return h(tag, this.setTextColor(color, data), children);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VChip/index.js
/* harmony default export */ var components_VChip = (VChip_VChip);
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VMenu/VMenu.sass
var VMenu = __webpack_require__("ee6f");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VThemeProvider/VThemeProvider.js
// Mixins
/* @vue/component */
/* harmony default export */ var VThemeProvider = (themeable.extend({
name: 'v-theme-provider',
props: {
root: Boolean
},
computed: {
isDark: function isDark() {
return this.root ? this.rootIsDark : themeable.options.computed.isDark.call(this);
}
},
render: function render() {
/* istanbul ignore next */
return this.$slots.default && this.$slots.default.find(function (node) {
return !node.isComment && node.text !== ' ';
});
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/delayable/index.js
/**
* Delayable
*
* @mixin
*
* Changes the open or close delay time for elements
*/
/* harmony default export */ var delayable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend().extend({
name: 'delayable',
props: {
openDelay: {
type: [Number, String],
default: 0
},
closeDelay: {
type: [Number, String],
default: 0
}
},
data: function data() {
return {
openTimeout: undefined,
closeTimeout: undefined
};
},
methods: {
/**
* Clear any pending delay timers from executing
*/
clearDelay: function clearDelay() {
clearTimeout(this.openTimeout);
clearTimeout(this.closeTimeout);
},
/**
* Runs callback after a specified delay
*/
runDelay: function runDelay(type, cb) {
var _this = this;
this.clearDelay();
var delay = parseInt(this["".concat(type, "Delay")], 10);
this["".concat(type, "Timeout")] = setTimeout(cb || function () {
_this.isActive = {
open: true,
close: false
}[type];
}, delay);
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/activatable/index.js
// Mixins
// Utilities
var activatable_baseMixins = mixins(delayable, toggleable);
/* @vue/component */
/* harmony default export */ var activatable = (activatable_baseMixins.extend({
name: 'activatable',
props: {
activator: {
default: null,
validator: function validator(val) {
return ['string', 'object'].includes(_typeof(val));
}
},
disabled: Boolean,
internalActivator: Boolean,
openOnHover: Boolean,
openOnFocus: Boolean
},
data: function data() {
return {
// Do not use this directly, call getActivator() instead
activatorElement: null,
activatorNode: [],
events: ['click', 'mouseenter', 'mouseleave', 'focus'],
listeners: {}
};
},
watch: {
activator: 'resetActivator',
openOnFocus: 'resetActivator',
openOnHover: 'resetActivator'
},
mounted: function mounted() {
var slotType = getSlotType(this, 'activator', true);
if (slotType && ['v-slot', 'normal'].includes(slotType)) {
consoleError("The activator slot must be bound, try '<template v-slot:activator=\"{ on }\"><v-btn v-on=\"on\">'", this);
}
this.addActivatorEvents();
},
beforeDestroy: function beforeDestroy() {
this.removeActivatorEvents();
},
methods: {
addActivatorEvents: function addActivatorEvents() {
if (!this.activator || this.disabled || !this.getActivator()) return;
this.listeners = this.genActivatorListeners();
var keys = Object.keys(this.listeners);
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
var key = _keys[_i];
this.getActivator().addEventListener(key, this.listeners[key]);
}
},
genActivator: function genActivator() {
var node = getSlot(this, 'activator', Object.assign(this.getValueProxy(), {
on: this.genActivatorListeners(),
attrs: this.genActivatorAttributes()
})) || [];
this.activatorNode = node;
return node;
},
genActivatorAttributes: function genActivatorAttributes() {
return {
role: 'button',
'aria-haspopup': true,
'aria-expanded': String(this.isActive)
};
},
genActivatorListeners: function genActivatorListeners() {
var _this = this;
if (this.disabled) return {};
var listeners = {};
if (this.openOnHover) {
listeners.mouseenter = function (e) {
_this.getActivator(e);
_this.runDelay('open');
};
listeners.mouseleave = function (e) {
_this.getActivator(e);
_this.runDelay('close');
};
} else {
listeners.click = function (e) {
var activator = _this.getActivator(e);
if (activator) activator.focus();
e.stopPropagation();
_this.isActive = !_this.isActive;
};
}
if (this.openOnFocus) {
listeners.focus = function (e) {
_this.getActivator(e);
e.stopPropagation();
_this.isActive = !_this.isActive;
};
}
return listeners;
},
getActivator: function getActivator(e) {
// If we've already fetched the activator, re-use
if (this.activatorElement) return this.activatorElement;
var activator = null;
if (this.activator) {
var target = this.internalActivator ? this.$el : document;
if (typeof this.activator === 'string') {
// Selector
activator = target.querySelector(this.activator);
} else if (this.activator.$el) {
// Component (ref)
activator = this.activator.$el;
} else {
// HTMLElement | Element
activator = this.activator;
}
} else if (this.activatorNode.length === 1 || this.activatorNode.length && !e) {
// Use the contents of the activator slot
// There's either only one element in it or we
// don't have a click event to use as a last resort
var vm = this.activatorNode[0].componentInstance;
if (vm && vm.$options.mixins && // Activatable is indirectly used via Menuable
vm.$options.mixins.some(function (m) {
return m.options && ['activatable', 'menuable'].includes(m.options.name);
})) {
// Activator is actually another activatible component, use its activator (#8846)
activator = vm.getActivator();
} else {
activator = this.activatorNode[0].elm;
}
} else if (e) {
// Activated by a click or focus event
activator = e.currentTarget || e.target;
}
this.activatorElement = activator;
return this.activatorElement;
},
getContentSlot: function getContentSlot() {
return getSlot(this, 'default', this.getValueProxy(), true);
},
getValueProxy: function getValueProxy() {
var self = this;
return {
get value() {
return self.isActive;
},
set value(isActive) {
self.isActive = isActive;
}
};
},
removeActivatorEvents: function removeActivatorEvents() {
if (!this.activator || !this.activatorElement) return;
var keys = Object.keys(this.listeners);
for (var _i2 = 0, _keys2 = keys; _i2 < _keys2.length; _i2++) {
var key = _keys2[_i2];
this.activatorElement.removeEventListener(key, this.listeners[key]);
}
this.listeners = {};
},
resetActivator: function resetActivator() {
this.removeActivatorEvents();
this.activatorElement = null;
this.getActivator();
this.addActivatorEvents();
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/dependent/index.js
function searchChildren(children) {
var results = [];
for (var index = 0; index < children.length; index++) {
var child = children[index];
if (child.isActive && child.isDependent) {
results.push(child);
} else {
results.push.apply(results, _toConsumableArray(searchChildren(child.$children)));
}
}
return results;
}
/* @vue/component */
/* harmony default export */ var dependent = (mixins().extend({
name: 'dependent',
data: function data() {
return {
closeDependents: true,
isActive: false,
isDependent: true
};
},
watch: {
isActive: function isActive(val) {
if (val) return;
var openDependents = this.getOpenDependents();
for (var index = 0; index < openDependents.length; index++) {
openDependents[index].isActive = false;
}
}
},
methods: {
getOpenDependents: function getOpenDependents() {
if (this.closeDependents) return searchChildren(this.$children);
return [];
},
getOpenDependentElements: function getOpenDependentElements() {
var result = [];
var openDependents = this.getOpenDependents();
for (var index = 0; index < openDependents.length; index++) {
result.push.apply(result, _toConsumableArray(openDependents[index].getClickableDependentElements()));
}
return result;
},
getClickableDependentElements: function getClickableDependentElements() {
var result = [this.$el];
if (this.$refs.content) result.push(this.$refs.content);
if (this.overlay) result.push(this.overlay.$el);
result.push.apply(result, _toConsumableArray(this.getOpenDependentElements()));
return result;
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/bootable/index.js
// Utilities
// Types
/**
* Bootable
* @mixin
*
* Used to add lazy content functionality to components
* Looks for change in "isActive" to automatically boot
* Otherwise can be set manually
*/
/* @vue/component */
/* harmony default export */ var bootable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend().extend({
name: 'bootable',
props: {
eager: Boolean
},
data: function data() {
return {
isBooted: false
};
},
computed: {
hasContent: function hasContent() {
return this.isBooted || this.eager || this.isActive;
}
},
watch: {
isActive: function isActive() {
this.isBooted = true;
}
},
created: function created() {
/* istanbul ignore next */
if ('lazy' in this.$attrs) {
console_removed('lazy', this);
}
},
methods: {
showLazyContent: function showLazyContent(content) {
return this.hasContent && content ? content() : [this.$createElement()];
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/detachable/index.js
// Mixins
// Utilities
function validateAttachTarget(val) {
var type = _typeof(val);
if (type === 'boolean' || type === 'string') return true;
return val.nodeType === Node.ELEMENT_NODE;
}
/* @vue/component */
/* harmony default export */ var detachable = (mixins(bootable).extend({
name: 'detachable',
props: {
attach: {
default: false,
validator: validateAttachTarget
},
contentClass: {
type: String,
default: ''
}
},
data: function data() {
return {
activatorNode: null,
hasDetached: false
};
},
watch: {
attach: function attach() {
this.hasDetached = false;
this.initDetach();
},
hasContent: function hasContent() {
this.$nextTick(this.initDetach);
}
},
beforeMount: function beforeMount() {
var _this = this;
this.$nextTick(function () {
if (_this.activatorNode) {
var activator = Array.isArray(_this.activatorNode) ? _this.activatorNode : [_this.activatorNode];
activator.forEach(function (node) {
if (!node.elm) return;
if (!_this.$el.parentNode) return;
var target = _this.$el === _this.$el.parentNode.firstChild ? _this.$el : _this.$el.nextSibling;
_this.$el.parentNode.insertBefore(node.elm, target);
});
}
});
},
mounted: function mounted() {
this.hasContent && this.initDetach();
},
deactivated: function deactivated() {
this.isActive = false;
},
beforeDestroy: function beforeDestroy() {
// IE11 Fix
try {
if (this.$refs.content && this.$refs.content.parentNode) {
this.$refs.content.parentNode.removeChild(this.$refs.content);
}
if (this.activatorNode) {
var activator = Array.isArray(this.activatorNode) ? this.activatorNode : [this.activatorNode];
activator.forEach(function (node) {
node.elm && node.elm.parentNode && node.elm.parentNode.removeChild(node.elm);
});
}
} catch (e) {
console.log(e);
}
},
methods: {
getScopeIdAttrs: function getScopeIdAttrs() {
var scopeId = getObjectValueByPath(this.$vnode, 'context.$options._scopeId');
return scopeId && _defineProperty({}, scopeId, '');
},
initDetach: function initDetach() {
if (this._isDestroyed || !this.$refs.content || this.hasDetached || // Leave menu in place if attached
// and dev has not changed target
this.attach === '' || // If used as a boolean prop (<v-menu attach>)
this.attach === true || // If bound to a boolean (<v-menu :attach="true">)
this.attach === 'attach' // If bound as boolean prop in pug (v-menu(attach))
) return;
var target;
if (this.attach === false) {
// Default, detach to app
target = document.querySelector('[data-app]');
} else if (typeof this.attach === 'string') {
// CSS selector
target = document.querySelector(this.attach);
} else {
// DOM Element
target = this.attach;
}
if (!target) {
consoleWarn("Unable to locate target ".concat(this.attach || '[data-app]'), this);
return;
}
target.appendChild(this.$refs.content);
this.hasDetached = true;
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/stackable/index.js
/* @vue/component */
/* harmony default export */ var stackable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend().extend({
name: 'stackable',
data: function data() {
return {
stackElement: null,
stackExclude: null,
stackMinZIndex: 0,
isActive: false
};
},
computed: {
activeZIndex: function activeZIndex() {
if (typeof window === 'undefined') return 0;
var content = this.stackElement || this.$refs.content; // Return current zindex if not active
var index = !this.isActive ? getZIndex(content) : this.getMaxZIndex(this.stackExclude || [content]) + 2;
if (index == null) return index; // Return max current z-index (excluding self) + 2
// (2 to leave room for an overlay below, if needed)
return parseInt(index);
}
},
methods: {
getMaxZIndex: function getMaxZIndex() {
var exclude = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var base = this.$el; // Start with lowest allowed z-index or z-index of
// base component's element, whichever is greater
var zis = [this.stackMinZIndex, getZIndex(base)]; // Convert the NodeList to an array to
// prevent an Edge bug with Symbol.iterator
// https://github.com/vuetifyjs/vuetify/issues/2146
var activeElements = [].concat(_toConsumableArray(document.getElementsByClassName('v-menu__content--active')), _toConsumableArray(document.getElementsByClassName('v-dialog__content--active'))); // Get z-index for all active dialogs
for (var index = 0; index < activeElements.length; index++) {
if (!exclude.includes(activeElements[index])) {
zis.push(getZIndex(activeElements[index]));
}
}
return Math.max.apply(Math, zis);
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/menuable/index.js
// Mixins
// Utilities
// Types
var menuable_baseMixins = mixins(stackable, positionable, activatable);
/* @vue/component */
/* harmony default export */ var menuable = (menuable_baseMixins.extend().extend({
name: 'menuable',
props: {
allowOverflow: Boolean,
light: Boolean,
dark: Boolean,
maxWidth: {
type: [Number, String],
default: 'auto'
},
minWidth: [Number, String],
nudgeBottom: {
type: [Number, String],
default: 0
},
nudgeLeft: {
type: [Number, String],
default: 0
},
nudgeRight: {
type: [Number, String],
default: 0
},
nudgeTop: {
type: [Number, String],
default: 0
},
nudgeWidth: {
type: [Number, String],
default: 0
},
offsetOverflow: Boolean,
openOnClick: Boolean,
positionX: {
type: Number,
default: null
},
positionY: {
type: Number,
default: null
},
zIndex: {
type: [Number, String],
default: null
}
},
data: function data() {
return {
absoluteX: 0,
absoluteY: 0,
activatedBy: null,
activatorFixed: false,
dimensions: {
activator: {
top: 0,
left: 0,
bottom: 0,
right: 0,
width: 0,
height: 0,
offsetTop: 0,
scrollHeight: 0,
offsetLeft: 0
},
content: {
top: 0,
left: 0,
bottom: 0,
right: 0,
width: 0,
height: 0,
offsetTop: 0,
scrollHeight: 0
}
},
hasJustFocused: false,
hasWindow: false,
inputActivator: false,
isContentActive: false,
pageWidth: 0,
pageYOffset: 0,
stackClass: 'v-menu__content--active',
stackMinZIndex: 6
};
},
computed: {
computedLeft: function computedLeft() {
var a = this.dimensions.activator;
var c = this.dimensions.content;
var activatorLeft = (this.attach !== false ? a.offsetLeft : a.left) || 0;
var minWidth = Math.max(a.width, c.width);
var left = 0;
left += this.left ? activatorLeft - (minWidth - a.width) : activatorLeft;
if (this.offsetX) {
var maxWidth = isNaN(Number(this.maxWidth)) ? a.width : Math.min(a.width, Number(this.maxWidth));
left += this.left ? -maxWidth : a.width;
}
if (this.nudgeLeft) left -= parseInt(this.nudgeLeft);
if (this.nudgeRight) left += parseInt(this.nudgeRight);
return left;
},
computedTop: function computedTop() {
var a = this.dimensions.activator;
var c = this.dimensions.content;
var top = 0;
if (this.top) top += a.height - c.height;
if (this.attach !== false) top += a.offsetTop;else top += a.top + this.pageYOffset;
if (this.offsetY) top += this.top ? -a.height : a.height;
if (this.nudgeTop) top -= parseInt(this.nudgeTop);
if (this.nudgeBottom) top += parseInt(this.nudgeBottom);
return top;
},
hasActivator: function hasActivator() {
return !!this.$slots.activator || !!this.$scopedSlots.activator || !!this.activator || !!this.inputActivator;
}
},
watch: {
disabled: function disabled(val) {
val && this.callDeactivate();
},
isActive: function isActive(val) {
if (this.disabled) return;
val ? this.callActivate() : this.callDeactivate();
},
positionX: 'updateDimensions',
positionY: 'updateDimensions'
},
beforeMount: function beforeMount() {
this.hasWindow = typeof window !== 'undefined';
},
methods: {
absolutePosition: function absolutePosition() {
return {
offsetTop: 0,
offsetLeft: 0,
scrollHeight: 0,
top: this.positionY || this.absoluteY,
bottom: this.positionY || this.absoluteY,
left: this.positionX || this.absoluteX,
right: this.positionX || this.absoluteX,
height: 0,
width: 0
};
},
activate: function activate() {},
calcLeft: function calcLeft(menuWidth) {
return convertToUnit(this.attach !== false ? this.computedLeft : this.calcXOverflow(this.computedLeft, menuWidth));
},
calcTop: function calcTop() {
return convertToUnit(this.attach !== false ? this.computedTop : this.calcYOverflow(this.computedTop));
},
calcXOverflow: function calcXOverflow(left, menuWidth) {
var xOverflow = left + menuWidth - this.pageWidth + 12;
if ((!this.left || this.right) && xOverflow > 0) {
left = Math.max(left - xOverflow, 0);
} else {
left = Math.max(left, 12);
}
return left + this.getOffsetLeft();
},
calcYOverflow: function calcYOverflow(top) {
var documentHeight = this.getInnerHeight();
var toTop = this.pageYOffset + documentHeight;
var activator = this.dimensions.activator;
var contentHeight = this.dimensions.content.height;
var totalHeight = top + contentHeight;
var isOverflowing = toTop < totalHeight; // If overflowing bottom and offset
// TODO: set 'bottom' position instead of 'top'
if (isOverflowing && this.offsetOverflow && // If we don't have enough room to offset
// the overflow, don't offset
activator.top > contentHeight) {
top = this.pageYOffset + (activator.top - contentHeight); // If overflowing bottom
} else if (isOverflowing && !this.allowOverflow) {
top = toTop - contentHeight - 12; // If overflowing top
} else if (top < this.pageYOffset && !this.allowOverflow) {
top = this.pageYOffset + 12;
}
return top < 12 ? 12 : top;
},
callActivate: function callActivate() {
if (!this.hasWindow) return;
this.activate();
},
callDeactivate: function callDeactivate() {
this.isContentActive = false;
this.deactivate();
},
checkForPageYOffset: function checkForPageYOffset() {
if (this.hasWindow) {
this.pageYOffset = this.activatorFixed ? 0 : this.getOffsetTop();
}
},
checkActivatorFixed: function checkActivatorFixed() {
if (this.attach !== false) return;
var el = this.getActivator();
while (el) {
if (window.getComputedStyle(el).position === 'fixed') {
this.activatorFixed = true;
return;
}
el = el.offsetParent;
}
this.activatorFixed = false;
},
deactivate: function deactivate() {},
genActivatorListeners: function genActivatorListeners() {
var _this = this;
var listeners = activatable.options.methods.genActivatorListeners.call(this);
var onClick = listeners.click;
listeners.click = function (e) {
if (_this.openOnClick) {
onClick && onClick(e);
}
_this.absoluteX = e.clientX;
_this.absoluteY = e.clientY;
};
return listeners;
},
getInnerHeight: function getInnerHeight() {
if (!this.hasWindow) return 0;
return window.innerHeight || document.documentElement.clientHeight;
},
getOffsetLeft: function getOffsetLeft() {
if (!this.hasWindow) return 0;
return window.pageXOffset || document.documentElement.scrollLeft;
},
getOffsetTop: function getOffsetTop() {
if (!this.hasWindow) return 0;
return window.pageYOffset || document.documentElement.scrollTop;
},
getRoundedBoundedClientRect: function getRoundedBoundedClientRect(el) {
var rect = el.getBoundingClientRect();
return {
top: Math.round(rect.top),
left: Math.round(rect.left),
bottom: Math.round(rect.bottom),
right: Math.round(rect.right),
width: Math.round(rect.width),
height: Math.round(rect.height)
};
},
measure: function measure(el) {
if (!el || !this.hasWindow) return null;
var rect = this.getRoundedBoundedClientRect(el); // Account for activator margin
if (this.attach !== false) {
var style = window.getComputedStyle(el);
rect.left = parseInt(style.marginLeft);
rect.top = parseInt(style.marginTop);
}
return rect;
},
sneakPeek: function sneakPeek(cb) {
var _this2 = this;
requestAnimationFrame(function () {
var el = _this2.$refs.content;
if (!el || el.style.display !== 'none') {
cb();
return;
}
el.style.display = 'inline-block';
cb();
el.style.display = 'none';
});
},
startTransition: function startTransition() {
var _this3 = this;
return new Promise(function (resolve) {
return requestAnimationFrame(function () {
_this3.isContentActive = _this3.hasJustFocused = _this3.isActive;
resolve();
});
});
},
updateDimensions: function updateDimensions() {
var _this4 = this;
this.hasWindow = typeof window !== 'undefined';
this.checkActivatorFixed();
this.checkForPageYOffset();
this.pageWidth = document.documentElement.clientWidth;
var dimensions = {
activator: _objectSpread2({}, this.dimensions.activator),
content: _objectSpread2({}, this.dimensions.content)
}; // Activator should already be shown
if (!this.hasActivator || this.absolute) {
dimensions.activator = this.absolutePosition();
} else {
var activator = this.getActivator();
if (!activator) return;
dimensions.activator = this.measure(activator);
dimensions.activator.offsetLeft = activator.offsetLeft;
if (this.attach !== false) {
// account for css padding causing things to not line up
// this is mostly for v-autocomplete, hopefully it won't break anything
dimensions.activator.offsetTop = activator.offsetTop;
} else {
dimensions.activator.offsetTop = 0;
}
} // Display and hide to get dimensions
this.sneakPeek(function () {
_this4.$refs.content && (dimensions.content = _this4.measure(_this4.$refs.content));
_this4.dimensions = dimensions;
});
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/returnable/index.js
/* @vue/component */
/* harmony default export */ var returnable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'returnable',
props: {
returnValue: null
},
data: function data() {
return {
isActive: false,
originalValue: null
};
},
watch: {
isActive: function isActive(val) {
if (val) {
this.originalValue = this.returnValue;
} else {
this.$emit('update:return-value', this.originalValue);
}
}
},
methods: {
save: function save(value) {
var _this = this;
this.originalValue = value;
setTimeout(function () {
_this.isActive = false;
});
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/directives/click-outside/index.js
function defaultConditional() {
return true;
}
function click_outside_directive(e, el, binding) {
var handler = typeof binding.value === 'function' ? binding.value : binding.value.handler;
var isActive = _typeof(binding.value) === 'object' && binding.value.closeConditional || defaultConditional; // The include element callbacks below can be expensive
// so we should avoid calling them when we're not active.
// Explicitly check for false to allow fallback compatibility
// with non-toggleable components
if (!e || isActive(e) === false) return; // If click was triggered programmaticaly (domEl.click()) then
// it shouldn't be treated as click-outside
// Chrome/Firefox support isTrusted property
// IE/Edge support pointerType property (empty if not triggered
// by pointing device)
if ('isTrusted' in e && !e.isTrusted || 'pointerType' in e && !e.pointerType) return; // Check if additional elements were passed to be included in check
// (click must be outside all included elements, if any)
var elements = (_typeof(binding.value) === 'object' && binding.value.include || function () {
return [];
})(); // Add the root element for the component this directive was defined on
elements.push(el); // Check if it's a click outside our elements, and then if our callback returns true.
// Non-toggleable components should take action in their callback and return falsy.
// Toggleable can return true if it wants to deactivate.
// Note that, because we're in the capture phase, this callback will occur before
// the bubbling click event on any outside elements.
!elements.some(function (el) {
return el.contains(e.target);
}) && setTimeout(function () {
isActive(e) && handler && handler(e);
}, 0);
}
var ClickOutside = {
// [data-app] may not be found
// if using bind, inserted makes
// sure that the root element is
// available, iOS does not support
// clicks on body
inserted: function inserted(el, binding) {
var onClick = function onClick(e) {
return click_outside_directive(e, el, binding);
}; // iOS does not recognize click events on document
// or body, this is the entire purpose of the v-app
// component and [data-app], stop removing this
var app = document.querySelector('[data-app]') || document.body; // This is only for unit tests
app.addEventListener('click', onClick, true);
el._clickOutside = onClick;
},
unbind: function unbind(el) {
if (!el._clickOutside) return;
var app = document.querySelector('[data-app]') || document.body; // This is only for unit tests
app && app.removeEventListener('click', el._clickOutside, true);
delete el._clickOutside;
}
};
/* harmony default export */ var click_outside = (ClickOutside);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/directives/resize/index.js
function inserted(el, binding) {
var callback = binding.value;
var options = binding.options || {
passive: true
};
window.addEventListener('resize', callback, options);
el._onResize = {
callback: callback,
options: options
};
if (!binding.modifiers || !binding.modifiers.quiet) {
callback();
}
}
function resize_unbind(el) {
if (!el._onResize) return;
var _el$_onResize = el._onResize,
callback = _el$_onResize.callback,
options = _el$_onResize.options;
window.removeEventListener('resize', callback, options);
delete el._onResize;
}
var Resize = {
inserted: inserted,
unbind: resize_unbind
};
/* harmony default export */ var resize = (Resize);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VMenu/VMenu.js
// Styles
// Components
// Mixins
// Directives
// Utilities
var VMenu_baseMixins = mixins(dependent, delayable, detachable, menuable, returnable, roundable, toggleable, themeable);
/* @vue/component */
/* harmony default export */ var VMenu_VMenu = (VMenu_baseMixins.extend({
name: 'v-menu',
provide: function provide() {
return {
isInMenu: true,
// Pass theme through to default slot
theme: this.theme
};
},
directives: {
ClickOutside: click_outside,
Resize: resize
},
props: {
auto: Boolean,
closeOnClick: {
type: Boolean,
default: true
},
closeOnContentClick: {
type: Boolean,
default: true
},
disabled: Boolean,
disableKeys: Boolean,
maxHeight: {
type: [Number, String],
default: 'auto'
},
offsetX: Boolean,
offsetY: Boolean,
openOnClick: {
type: Boolean,
default: true
},
openOnHover: Boolean,
origin: {
type: String,
default: 'top left'
},
transition: {
type: [Boolean, String],
default: 'v-menu-transition'
}
},
data: function data() {
return {
calculatedTopAuto: 0,
defaultOffset: 8,
hasJustFocused: false,
listIndex: -1,
resizeTimeout: 0,
selectedIndex: null,
tiles: []
};
},
computed: {
activeTile: function activeTile() {
return this.tiles[this.listIndex];
},
calculatedLeft: function calculatedLeft() {
var menuWidth = Math.max(this.dimensions.content.width, parseFloat(this.calculatedMinWidth));
if (!this.auto) return this.calcLeft(menuWidth) || '0';
return convertToUnit(this.calcXOverflow(this.calcLeftAuto(), menuWidth)) || '0';
},
calculatedMaxHeight: function calculatedMaxHeight() {
var height = this.auto ? '200px' : convertToUnit(this.maxHeight);
return height || '0';
},
calculatedMaxWidth: function calculatedMaxWidth() {
return convertToUnit(this.maxWidth) || '0';
},
calculatedMinWidth: function calculatedMinWidth() {
if (this.minWidth) {
return convertToUnit(this.minWidth) || '0';
}
var minWidth = Math.min(this.dimensions.activator.width + Number(this.nudgeWidth) + (this.auto ? 16 : 0), Math.max(this.pageWidth - 24, 0));
var calculatedMaxWidth = isNaN(parseInt(this.calculatedMaxWidth)) ? minWidth : parseInt(this.calculatedMaxWidth);
return convertToUnit(Math.min(calculatedMaxWidth, minWidth)) || '0';
},
calculatedTop: function calculatedTop() {
var top = !this.auto ? this.calcTop() : convertToUnit(this.calcYOverflow(this.calculatedTopAuto));
return top || '0';
},
hasClickableTiles: function hasClickableTiles() {
return Boolean(this.tiles.find(function (tile) {
return tile.tabIndex > -1;
}));
},
styles: function styles() {
return {
maxHeight: this.calculatedMaxHeight,
minWidth: this.calculatedMinWidth,
maxWidth: this.calculatedMaxWidth,
top: this.calculatedTop,
left: this.calculatedLeft,
transformOrigin: this.origin,
zIndex: this.zIndex || this.activeZIndex
};
}
},
watch: {
isActive: function isActive(val) {
if (!val) this.listIndex = -1;
},
isContentActive: function isContentActive(val) {
this.hasJustFocused = val;
},
listIndex: function listIndex(next, prev) {
if (next in this.tiles) {
var tile = this.tiles[next];
tile.classList.add('v-list-item--highlighted');
this.$refs.content.scrollTop = tile.offsetTop - tile.clientHeight;
}
prev in this.tiles && this.tiles[prev].classList.remove('v-list-item--highlighted');
}
},
created: function created() {
/* istanbul ignore next */
if (this.$attrs.hasOwnProperty('full-width')) {
console_removed('full-width', this);
}
},
mounted: function mounted() {
this.isActive && this.callActivate();
},
methods: {
activate: function activate() {
var _this = this;
// Update coordinates and dimensions of menu
// and its activator
this.updateDimensions(); // Start the transition
requestAnimationFrame(function () {
// Once transitioning, calculate scroll and top position
_this.startTransition().then(function () {
if (_this.$refs.content) {
_this.calculatedTopAuto = _this.calcTopAuto();
_this.auto && (_this.$refs.content.scrollTop = _this.calcScrollPosition());
}
});
});
},
calcScrollPosition: function calcScrollPosition() {
var $el = this.$refs.content;
var activeTile = $el.querySelector('.v-list-item--active');
var maxScrollTop = $el.scrollHeight - $el.offsetHeight;
return activeTile ? Math.min(maxScrollTop, Math.max(0, activeTile.offsetTop - $el.offsetHeight / 2 + activeTile.offsetHeight / 2)) : $el.scrollTop;
},
calcLeftAuto: function calcLeftAuto() {
return parseInt(this.dimensions.activator.left - this.defaultOffset * 2);
},
calcTopAuto: function calcTopAuto() {
var $el = this.$refs.content;
var activeTile = $el.querySelector('.v-list-item--active');
if (!activeTile) {
this.selectedIndex = null;
}
if (this.offsetY || !activeTile) {
return this.computedTop;
}
this.selectedIndex = Array.from(this.tiles).indexOf(activeTile);
var tileDistanceFromMenuTop = activeTile.offsetTop - this.calcScrollPosition();
var firstTileOffsetTop = $el.querySelector('.v-list-item').offsetTop;
return this.computedTop - tileDistanceFromMenuTop - firstTileOffsetTop - 1;
},
changeListIndex: function changeListIndex(e) {
// For infinite scroll and autocomplete, re-evaluate children
this.getTiles();
if (!this.isActive || !this.hasClickableTiles) {
return;
} else if (e.keyCode === keyCodes.tab) {
this.isActive = false;
return;
} else if (e.keyCode === keyCodes.down) {
this.nextTile();
} else if (e.keyCode === keyCodes.up) {
this.prevTile();
} else if (e.keyCode === keyCodes.enter && this.listIndex !== -1) {
this.tiles[this.listIndex].click();
} else {
return;
} // One of the conditions was met, prevent default action (#2988)
e.preventDefault();
},
closeConditional: function closeConditional(e) {
var target = e.target;
return this.isActive && !this._isDestroyed && this.closeOnClick && !this.$refs.content.contains(target);
},
genActivatorAttributes: function genActivatorAttributes() {
var attributes = activatable.options.methods.genActivatorAttributes.call(this);
if (this.activeTile && this.activeTile.id) {
return _objectSpread2(_objectSpread2({}, attributes), {}, {
'aria-activedescendant': this.activeTile.id
});
}
return attributes;
},
genActivatorListeners: function genActivatorListeners() {
var listeners = menuable.options.methods.genActivatorListeners.call(this);
if (!this.disableKeys) {
listeners.keydown = this.onKeyDown;
}
return listeners;
},
genTransition: function genTransition() {
var content = this.genContent();
if (!this.transition) return content;
return this.$createElement('transition', {
props: {
name: this.transition
}
}, [content]);
},
genDirectives: function genDirectives() {
var _this2 = this;
var directives = [{
name: 'show',
value: this.isContentActive
}]; // Do not add click outside for hover menu
if (!this.openOnHover && this.closeOnClick) {
directives.push({
name: 'click-outside',
value: {
handler: function handler() {
_this2.isActive = false;
},
closeConditional: this.closeConditional,
include: function include() {
return [_this2.$el].concat(_toConsumableArray(_this2.getOpenDependentElements()));
}
}
});
}
return directives;
},
genContent: function genContent() {
var _this3 = this;
var options = {
attrs: _objectSpread2(_objectSpread2({}, this.getScopeIdAttrs()), {}, {
role: 'role' in this.$attrs ? this.$attrs.role : 'menu'
}),
staticClass: 'v-menu__content',
class: _objectSpread2(_objectSpread2(_objectSpread2({}, this.rootThemeClasses), this.roundedClasses), {}, _defineProperty({
'v-menu__content--auto': this.auto,
'v-menu__content--fixed': this.activatorFixed,
menuable__content__active: this.isActive
}, this.contentClass.trim(), true)),
style: this.styles,
directives: this.genDirectives(),
ref: 'content',
on: {
click: function click(e) {
var target = e.target;
if (target.getAttribute('disabled')) return;
if (_this3.closeOnContentClick) _this3.isActive = false;
},
keydown: this.onKeyDown
}
};
if (this.$listeners.scroll) {
options.on = options.on || {};
options.on.scroll = this.$listeners.scroll;
}
if (!this.disabled && this.openOnHover) {
options.on = options.on || {};
options.on.mouseenter = this.mouseEnterHandler;
}
if (this.openOnHover) {
options.on = options.on || {};
options.on.mouseleave = this.mouseLeaveHandler;
}
return this.$createElement('div', options, this.getContentSlot());
},
getTiles: function getTiles() {
if (!this.$refs.content) return;
this.tiles = Array.from(this.$refs.content.querySelectorAll('.v-list-item'));
},
mouseEnterHandler: function mouseEnterHandler() {
var _this4 = this;
this.runDelay('open', function () {
if (_this4.hasJustFocused) return;
_this4.hasJustFocused = true;
_this4.isActive = true;
});
},
mouseLeaveHandler: function mouseLeaveHandler(e) {
var _this5 = this;
// Prevent accidental re-activation
this.runDelay('close', function () {
if (_this5.$refs.content.contains(e.relatedTarget)) return;
requestAnimationFrame(function () {
_this5.isActive = false;
_this5.callDeactivate();
});
});
},
nextTile: function nextTile() {
var tile = this.tiles[this.listIndex + 1];
if (!tile) {
if (!this.tiles.length) return;
this.listIndex = -1;
this.nextTile();
return;
}
this.listIndex++;
if (tile.tabIndex === -1) this.nextTile();
},
prevTile: function prevTile() {
var tile = this.tiles[this.listIndex - 1];
if (!tile) {
if (!this.tiles.length) return;
this.listIndex = this.tiles.length;
this.prevTile();
return;
}
this.listIndex--;
if (tile.tabIndex === -1) this.prevTile();
},
onKeyDown: function onKeyDown(e) {
var _this6 = this;
if (e.keyCode === keyCodes.esc) {
// Wait for dependent elements to close first
setTimeout(function () {
_this6.isActive = false;
});
var activator = this.getActivator();
this.$nextTick(function () {
return activator && activator.focus();
});
} else if (!this.isActive && [keyCodes.up, keyCodes.down].includes(e.keyCode)) {
this.isActive = true;
} // Allow for isActive watcher to generate tile list
this.$nextTick(function () {
return _this6.changeListIndex(e);
});
},
onResize: function onResize() {
if (!this.isActive) return; // Account for screen resize
// and orientation change
// eslint-disable-next-line no-unused-expressions
this.$refs.content.offsetWidth;
this.updateDimensions(); // When resizing to a smaller width
// content width is evaluated before
// the new activator width has been
// set, causing it to not size properly
// hacky but will revisit in the future
clearTimeout(this.resizeTimeout);
this.resizeTimeout = window.setTimeout(this.updateDimensions, 100);
}
},
render: function render(h) {
var _this7 = this;
var data = {
staticClass: 'v-menu',
class: {
'v-menu--attached': this.attach === '' || this.attach === true || this.attach === 'attach'
},
directives: [{
arg: '500',
name: 'resize',
value: this.onResize
}]
};
return h('div', data, [!this.activator && this.genActivator(), this.showLazyContent(function () {
return [_this7.$createElement(VThemeProvider, {
props: {
root: true,
light: _this7.light,
dark: _this7.dark
}
}, [_this7.genTransition()])];
})]);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VMenu/index.js
/* harmony default export */ var components_VMenu = (VMenu_VMenu);
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VCheckbox/VSimpleCheckbox.sass
var VSimpleCheckbox = __webpack_require__("cf36");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VCheckbox/VSimpleCheckbox.js
// Mixins
// Utilities
/* harmony default export */ var VCheckbox_VSimpleCheckbox = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'v-simple-checkbox',
functional: true,
directives: {
ripple: ripple
},
props: _objectSpread2(_objectSpread2(_objectSpread2({}, colorable.options.props), themeable.options.props), {}, {
disabled: Boolean,
ripple: {
type: Boolean,
default: true
},
value: Boolean,
indeterminate: Boolean,
indeterminateIcon: {
type: String,
default: '$checkboxIndeterminate'
},
onIcon: {
type: String,
default: '$checkboxOn'
},
offIcon: {
type: String,
default: '$checkboxOff'
}
}),
render: function render(h, _ref) {
var props = _ref.props,
data = _ref.data,
listeners = _ref.listeners;
var children = [];
if (props.ripple && !props.disabled) {
var _ripple = h('div', colorable.options.methods.setTextColor(props.color, {
staticClass: 'v-input--selection-controls__ripple',
directives: [{
name: 'ripple',
value: {
center: true
}
}]
}));
children.push(_ripple);
}
var icon = props.offIcon;
if (props.indeterminate) icon = props.indeterminateIcon;else if (props.value) icon = props.onIcon;
children.push(h(components_VIcon_VIcon, colorable.options.methods.setTextColor(props.value && props.color, {
props: {
disabled: props.disabled,
dark: props.dark,
light: props.light
}
}), icon));
var classes = {
'v-simple-checkbox': true,
'v-simple-checkbox--disabled': props.disabled
};
return h('div', mergeData(data, {
class: classes,
on: {
click: function click(e) {
e.stopPropagation();
if (data.on && data.on.input && !props.disabled) {
wrapInArray(data.on.input).forEach(function (f) {
return f(!props.value);
});
}
}
}
}), children);
}
}));
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VDivider/VDivider.sass
var VDivider = __webpack_require__("8ce9");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDivider/VDivider.js
// Styles
// Mixins
/* harmony default export */ var VDivider_VDivider = (themeable.extend({
name: 'v-divider',
props: {
inset: Boolean,
vertical: Boolean
},
render: function render(h) {
// WAI-ARIA attributes
var orientation;
if (!this.$attrs.role || this.$attrs.role === 'separator') {
orientation = this.vertical ? 'vertical' : 'horizontal';
}
return h('hr', {
class: _objectSpread2({
'v-divider': true,
'v-divider--inset': this.inset,
'v-divider--vertical': this.vertical
}, this.themeClasses),
attrs: _objectSpread2({
role: 'separator',
'aria-orientation': orientation
}, this.$attrs),
on: this.$listeners
});
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VDivider/index.js
/* harmony default export */ var components_VDivider = (VDivider_VDivider);
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VSubheader/VSubheader.sass
var VSubheader = __webpack_require__("0bc6");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VSubheader/VSubheader.js
// Styles
// Mixins
/* harmony default export */ var VSubheader_VSubheader = (mixins(themeable
/* @vue/component */
).extend({
name: 'v-subheader',
props: {
inset: Boolean
},
render: function render(h) {
return h('div', {
staticClass: 'v-subheader',
class: _objectSpread2({
'v-subheader--inset': this.inset
}, this.themeClasses),
attrs: this.$attrs,
on: this.$listeners
}, this.$slots.default);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VSubheader/index.js
/* harmony default export */ var components_VSubheader = (VSubheader_VSubheader);
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VList/VListItem.sass
var VListItem = __webpack_require__("61d2");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VList/VListItem.js
// Styles
// Mixins
// Directives
// Utilities
// Types
var VListItem_baseMixins = mixins(colorable, routable, themeable, factory('listItemGroup'), toggleable_factory('inputValue'));
/* @vue/component */
/* harmony default export */ var VList_VListItem = (VListItem_baseMixins.extend().extend({
name: 'v-list-item',
directives: {
Ripple: ripple
},
inheritAttrs: false,
inject: {
isInGroup: {
default: false
},
isInList: {
default: false
},
isInMenu: {
default: false
},
isInNav: {
default: false
}
},
props: {
activeClass: {
type: String,
default: function _default() {
if (!this.listItemGroup) return '';
return this.listItemGroup.activeClass;
}
},
dense: Boolean,
inactive: Boolean,
link: Boolean,
selectable: {
type: Boolean
},
tag: {
type: String,
default: 'div'
},
threeLine: Boolean,
twoLine: Boolean,
value: null
},
data: function data() {
return {
proxyClass: 'v-list-item--active'
};
},
computed: {
classes: function classes() {
return _objectSpread2(_objectSpread2({
'v-list-item': true
}, routable.options.computed.classes.call(this)), {}, {
'v-list-item--dense': this.dense,
'v-list-item--disabled': this.disabled,
'v-list-item--link': this.isClickable && !this.inactive,
'v-list-item--selectable': this.selectable,
'v-list-item--three-line': this.threeLine,
'v-list-item--two-line': this.twoLine
}, this.themeClasses);
},
isClickable: function isClickable() {
return Boolean(routable.options.computed.isClickable.call(this) || this.listItemGroup);
}
},
created: function created() {
/* istanbul ignore next */
if (this.$attrs.hasOwnProperty('avatar')) {
console_removed('avatar', this);
}
},
methods: {
click: function click(e) {
if (e.detail) this.$el.blur();
this.$emit('click', e);
this.to || this.toggle();
},
genAttrs: function genAttrs() {
var attrs = _objectSpread2({
'aria-disabled': this.disabled ? true : undefined,
tabindex: this.isClickable && !this.disabled ? 0 : -1
}, this.$attrs);
if (this.$attrs.hasOwnProperty('role')) {// do nothing, role already provided
} else if (this.isInNav) {// do nothing, role is inherit
} else if (this.isInGroup) {
attrs.role = 'listitem';
attrs['aria-selected'] = String(this.isActive);
} else if (this.isInMenu) {
attrs.role = this.isClickable ? 'menuitem' : undefined;
attrs.id = attrs.id || "list-item-".concat(this._uid);
} else if (this.isInList) {
attrs.role = 'listitem';
}
return attrs;
}
},
render: function render(h) {
var _this = this;
var _this$generateRouteLi = this.generateRouteLink(),
tag = _this$generateRouteLi.tag,
data = _this$generateRouteLi.data;
data.attrs = _objectSpread2(_objectSpread2({}, data.attrs), this.genAttrs());
data[this.to ? 'nativeOn' : 'on'] = _objectSpread2(_objectSpread2({}, data[this.to ? 'nativeOn' : 'on']), {}, {
keydown: function keydown(e) {
/* istanbul ignore else */
if (e.keyCode === keyCodes.enter) _this.click(e);
_this.$emit('keydown', e);
}
});
if (this.inactive) tag = 'div';
if (this.inactive && this.to) {
data.on = data.nativeOn;
delete data.nativeOn;
}
var children = this.$scopedSlots.default ? this.$scopedSlots.default({
active: this.isActive,
toggle: this.toggle
}) : this.$slots.default;
return h(tag, this.setTextColor(this.color, data), children);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VList/VListItemAction.js
// Types
/* @vue/component */
/* harmony default export */ var VListItemAction = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'v-list-item-action',
functional: true,
render: function render(h, _ref) {
var data = _ref.data,
_ref$children = _ref.children,
children = _ref$children === void 0 ? [] : _ref$children;
data.staticClass = data.staticClass ? "v-list-item__action ".concat(data.staticClass) : 'v-list-item__action';
var filteredChild = children.filter(function (VNode) {
return VNode.isComment === false && VNode.text !== ' ';
});
if (filteredChild.length > 1) data.staticClass += ' v-list-item__action--stack';
return h('div', data, children);
}
}));
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VList/VList.sass
var VList = __webpack_require__("3ad0");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VList/VList.js
// Styles
// Components
/* @vue/component */
/* harmony default export */ var VList_VList = (VSheet_VSheet.extend().extend({
name: 'v-list',
provide: function provide() {
return {
isInList: true,
list: this
};
},
inject: {
isInMenu: {
default: false
},
isInNav: {
default: false
}
},
props: {
dense: Boolean,
disabled: Boolean,
expand: Boolean,
flat: Boolean,
nav: Boolean,
rounded: Boolean,
subheader: Boolean,
threeLine: Boolean,
twoLine: Boolean
},
data: function data() {
return {
groups: []
};
},
computed: {
classes: function classes() {
return _objectSpread2(_objectSpread2({}, VSheet_VSheet.options.computed.classes.call(this)), {}, {
'v-list--dense': this.dense,
'v-list--disabled': this.disabled,
'v-list--flat': this.flat,
'v-list--nav': this.nav,
'v-list--rounded': this.rounded,
'v-list--subheader': this.subheader,
'v-list--two-line': this.twoLine,
'v-list--three-line': this.threeLine
});
}
},
methods: {
register: function register(content) {
this.groups.push(content);
},
unregister: function unregister(content) {
var index = this.groups.findIndex(function (g) {
return g._uid === content._uid;
});
if (index > -1) this.groups.splice(index, 1);
},
listClick: function listClick(uid) {
if (this.expand) return;
var _iterator = _createForOfIteratorHelper(this.groups),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var group = _step.value;
group.toggle(uid);
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
}
},
render: function render(h) {
var data = {
staticClass: 'v-list',
class: this.classes,
style: this.styles,
attrs: _objectSpread2({
role: this.isInNav || this.isInMenu ? undefined : 'list'
}, this.attrs$)
};
return h(this.tag, this.setBackgroundColor(this.color, data), [this.$slots.default]);
}
}));
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VList/VListGroup.sass
var VListGroup = __webpack_require__("db42");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VList/VListItemIcon.js
// Types
/* @vue/component */
/* harmony default export */ var VListItemIcon = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'v-list-item-icon',
functional: true,
render: function render(h, _ref) {
var data = _ref.data,
children = _ref.children;
data.staticClass = "v-list-item__icon ".concat(data.staticClass || '').trim();
return h('div', data, children);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VList/VListGroup.js
// Styles
// Components
// Mixins
// Directives
// Transitions
// Utils
var VListGroup_baseMixins = mixins(binds_attrs, bootable, colorable, inject('list'), toggleable);
/* harmony default export */ var VList_VListGroup = (VListGroup_baseMixins.extend().extend({
name: 'v-list-group',
directives: {
ripple: ripple
},
props: {
activeClass: {
type: String,
default: ''
},
appendIcon: {
type: String,
default: '$expand'
},
color: {
type: String,
default: 'primary'
},
disabled: Boolean,
group: String,
noAction: Boolean,
prependIcon: String,
ripple: {
type: [Boolean, Object],
default: true
},
subGroup: Boolean
},
computed: {
classes: function classes() {
return {
'v-list-group--active': this.isActive,
'v-list-group--disabled': this.disabled,
'v-list-group--no-action': this.noAction,
'v-list-group--sub-group': this.subGroup
};
}
},
watch: {
isActive: function isActive(val) {
/* istanbul ignore else */
if (!this.subGroup && val) {
this.list && this.list.listClick(this._uid);
}
},
$route: 'onRouteChange'
},
created: function created() {
this.list && this.list.register(this);
if (this.group && this.$route && this.value == null) {
this.isActive = this.matchRoute(this.$route.path);
}
},
beforeDestroy: function beforeDestroy() {
this.list && this.list.unregister(this);
},
methods: {
click: function click(e) {
var _this = this;
if (this.disabled) return;
this.isBooted = true;
this.$emit('click', e);
this.$nextTick(function () {
return _this.isActive = !_this.isActive;
});
},
genIcon: function genIcon(icon) {
return this.$createElement(components_VIcon, icon);
},
genAppendIcon: function genAppendIcon() {
var icon = !this.subGroup ? this.appendIcon : false;
if (!icon && !this.$slots.appendIcon) return null;
return this.$createElement(VListItemIcon, {
staticClass: 'v-list-group__header__append-icon'
}, [this.$slots.appendIcon || this.genIcon(icon)]);
},
genHeader: function genHeader() {
return this.$createElement(VList_VListItem, {
staticClass: 'v-list-group__header',
attrs: {
'aria-expanded': String(this.isActive),
role: 'button'
},
class: _defineProperty({}, this.activeClass, this.isActive),
props: {
inputValue: this.isActive
},
directives: [{
name: 'ripple',
value: this.ripple
}],
on: _objectSpread2(_objectSpread2({}, this.listeners$), {}, {
click: this.click
})
}, [this.genPrependIcon(), this.$slots.activator, this.genAppendIcon()]);
},
genItems: function genItems() {
var _this2 = this;
return this.showLazyContent(function () {
return [_this2.$createElement('div', {
staticClass: 'v-list-group__items',
directives: [{
name: 'show',
value: _this2.isActive
}]
}, getSlot(_this2))];
});
},
genPrependIcon: function genPrependIcon() {
var icon = this.subGroup && this.prependIcon == null ? '$subgroup' : this.prependIcon;
if (!icon && !this.$slots.prependIcon) return null;
return this.$createElement(VListItemIcon, {
staticClass: 'v-list-group__header__prepend-icon'
}, [this.$slots.prependIcon || this.genIcon(icon)]);
},
onRouteChange: function onRouteChange(to) {
/* istanbul ignore if */
if (!this.group) return;
var isActive = this.matchRoute(to.path);
/* istanbul ignore else */
if (isActive && this.isActive !== isActive) {
this.list && this.list.listClick(this._uid);
}
this.isActive = isActive;
},
toggle: function toggle(uid) {
var _this3 = this;
var isActive = this._uid === uid;
if (isActive) this.isBooted = true;
this.$nextTick(function () {
return _this3.isActive = isActive;
});
},
matchRoute: function matchRoute(to) {
return to.match(this.group) !== null;
}
},
render: function render(h) {
return h('div', this.setTextColor(this.isActive && this.color, {
staticClass: 'v-list-group',
class: this.classes
}), [this.genHeader(), h(VExpandTransition, this.genItems())]);
}
}));
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VList/VListItemGroup.sass
var VListItemGroup = __webpack_require__("899c");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VItemGroup/VItemGroup.sass
var VItemGroup = __webpack_require__("166a");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VItemGroup/VItemGroup.js
// Styles
// Utilities
var BaseItemGroup = mixins(proxyable, themeable).extend({
name: 'base-item-group',
props: {
activeClass: {
type: String,
default: 'v-item--active'
},
mandatory: Boolean,
max: {
type: [Number, String],
default: null
},
multiple: Boolean
},
data: function data() {
return {
// As long as a value is defined, show it
// Otherwise, check if multiple
// to determine which default to provide
internalLazyValue: this.value !== undefined ? this.value : this.multiple ? [] : undefined,
items: []
};
},
computed: {
classes: function classes() {
return _objectSpread2({
'v-item-group': true
}, this.themeClasses);
},
selectedIndex: function selectedIndex() {
return this.selectedItem && this.items.indexOf(this.selectedItem) || -1;
},
selectedItem: function selectedItem() {
if (this.multiple) return undefined;
return this.selectedItems[0];
},
selectedItems: function selectedItems() {
var _this = this;
return this.items.filter(function (item, index) {
return _this.toggleMethod(_this.getValue(item, index));
});
},
selectedValues: function selectedValues() {
if (this.internalValue == null) return [];
return Array.isArray(this.internalValue) ? this.internalValue : [this.internalValue];
},
toggleMethod: function toggleMethod() {
var _this2 = this;
if (!this.multiple) {
return function (v) {
return _this2.internalValue === v;
};
}
var internalValue = this.internalValue;
if (Array.isArray(internalValue)) {
return function (v) {
return internalValue.includes(v);
};
}
return function () {
return false;
};
}
},
watch: {
internalValue: 'updateItemsState',
items: 'updateItemsState'
},
created: function created() {
if (this.multiple && !Array.isArray(this.internalValue)) {
consoleWarn('Model must be bound to an array if the multiple property is true.', this);
}
},
methods: {
genData: function genData() {
return {
class: this.classes
};
},
getValue: function getValue(item, i) {
return item.value == null || item.value === '' ? i : item.value;
},
onClick: function onClick(item) {
this.updateInternalValue(this.getValue(item, this.items.indexOf(item)));
},
register: function register(item) {
var _this3 = this;
var index = this.items.push(item) - 1;
item.$on('change', function () {
return _this3.onClick(item);
}); // If no value provided and mandatory,
// assign first registered item
if (this.mandatory && !this.selectedValues.length) {
this.updateMandatory();
}
this.updateItem(item, index);
},
unregister: function unregister(item) {
if (this._isDestroyed) return;
var index = this.items.indexOf(item);
var value = this.getValue(item, index);
this.items.splice(index, 1);
var valueIndex = this.selectedValues.indexOf(value); // Items is not selected, do nothing
if (valueIndex < 0) return; // If not mandatory, use regular update process
if (!this.mandatory) {
return this.updateInternalValue(value);
} // Remove the value
if (this.multiple && Array.isArray(this.internalValue)) {
this.internalValue = this.internalValue.filter(function (v) {
return v !== value;
});
} else {
this.internalValue = undefined;
} // If mandatory and we have no selection
// add the last item as value
/* istanbul ignore else */
if (!this.selectedItems.length) {
this.updateMandatory(true);
}
},
updateItem: function updateItem(item, index) {
var value = this.getValue(item, index);
item.isActive = this.toggleMethod(value);
},
// https://github.com/vuetifyjs/vuetify/issues/5352
updateItemsState: function updateItemsState() {
var _this4 = this;
this.$nextTick(function () {
if (_this4.mandatory && !_this4.selectedItems.length) {
return _this4.updateMandatory();
} // TODO: Make this smarter so it
// doesn't have to iterate every
// child in an update
_this4.items.forEach(_this4.updateItem);
});
},
updateInternalValue: function updateInternalValue(value) {
this.multiple ? this.updateMultiple(value) : this.updateSingle(value);
},
updateMandatory: function updateMandatory(last) {
if (!this.items.length) return;
var items = this.items.slice();
if (last) items.reverse();
var item = items.find(function (item) {
return !item.disabled;
}); // If no tabs are available
// aborts mandatory value
if (!item) return;
var index = this.items.indexOf(item);
this.updateInternalValue(this.getValue(item, index));
},
updateMultiple: function updateMultiple(value) {
var defaultValue = Array.isArray(this.internalValue) ? this.internalValue : [];
var internalValue = defaultValue.slice();
var index = internalValue.findIndex(function (val) {
return val === value;
});
if (this.mandatory && // Item already exists
index > -1 && // value would be reduced below min
internalValue.length - 1 < 1) return;
if ( // Max is set
this.max != null && // Item doesn't exist
index < 0 && // value would be increased above max
internalValue.length + 1 > this.max) return;
index > -1 ? internalValue.splice(index, 1) : internalValue.push(value);
this.internalValue = internalValue;
},
updateSingle: function updateSingle(value) {
var isSame = value === this.internalValue;
if (this.mandatory && isSame) return;
this.internalValue = isSame ? undefined : value;
}
},
render: function render(h) {
return h('div', this.genData(), this.$slots.default);
}
});
/* harmony default export */ var VItemGroup_VItemGroup = (BaseItemGroup.extend({
name: 'v-item-group',
provide: function provide() {
return {
itemGroup: this
};
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VList/VListItemGroup.js
// Styles
// Extensions
// Mixins
// Utilities
/* harmony default export */ var VList_VListItemGroup = (mixins(BaseItemGroup, colorable).extend({
name: 'v-list-item-group',
provide: function provide() {
return {
isInGroup: true,
listItemGroup: this
};
},
computed: {
classes: function classes() {
return _objectSpread2(_objectSpread2({}, BaseItemGroup.options.computed.classes.call(this)), {}, {
'v-list-item-group': true
});
}
},
methods: {
genData: function genData() {
return this.setTextColor(this.color, _objectSpread2(_objectSpread2({}, BaseItemGroup.options.methods.genData.call(this)), {}, {
attrs: {
role: 'listbox'
}
}));
}
}
}));
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VAvatar/VAvatar.sass
var VAvatar = __webpack_require__("3408");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VAvatar/VAvatar.js
// Mixins
// Utilities
/* harmony default export */ var VAvatar_VAvatar = (mixins(colorable, measurable, roundable).extend({
name: 'v-avatar',
props: {
left: Boolean,
right: Boolean,
size: {
type: [Number, String],
default: 48
}
},
computed: {
classes: function classes() {
return _objectSpread2({
'v-avatar--left': this.left,
'v-avatar--right': this.right
}, this.roundedClasses);
},
styles: function styles() {
return _objectSpread2({
height: convertToUnit(this.size),
minWidth: convertToUnit(this.size),
width: convertToUnit(this.size)
}, this.measurableStyles);
}
},
render: function render(h) {
var data = {
staticClass: 'v-avatar',
class: this.classes,
style: this.styles,
on: this.$listeners
};
return h('div', this.setBackgroundColor(this.color, data), this.$slots.default);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VAvatar/index.js
/* harmony default export */ var components_VAvatar = (VAvatar_VAvatar);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VList/VListItemAvatar.js
// Components
/* @vue/component */
/* harmony default export */ var VListItemAvatar = (components_VAvatar.extend({
name: 'v-list-item-avatar',
props: {
horizontal: Boolean,
size: {
type: [Number, String],
default: 40
}
},
computed: {
classes: function classes() {
return _objectSpread2(_objectSpread2({
'v-list-item__avatar--horizontal': this.horizontal
}, components_VAvatar.options.computed.classes.call(this)), {}, {
'v-avatar--tile': this.tile || this.horizontal
});
}
},
render: function render(h) {
var render = components_VAvatar.options.render.call(this, h);
render.data = render.data || {};
render.data.staticClass += ' v-list-item__avatar';
return render;
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VList/index.js
var VListItemActionText = createSimpleFunctional('v-list-item__action-text', 'span');
var VListItemContent = createSimpleFunctional('v-list-item__content', 'div');
var VListItemTitle = createSimpleFunctional('v-list-item__title', 'div');
var VListItemSubtitle = createSimpleFunctional('v-list-item__subtitle', 'div');
/* harmony default export */ var components_VList = ({
$_vuetify_subcomponents: {
VList: VList_VList,
VListGroup: VList_VListGroup,
VListItem: VList_VListItem,
VListItemAction: VListItemAction,
VListItemActionText: VListItemActionText,
VListItemAvatar: VListItemAvatar,
VListItemContent: VListItemContent,
VListItemGroup: VList_VListItemGroup,
VListItemIcon: VListItemIcon,
VListItemSubtitle: VListItemSubtitle,
VListItemTitle: VListItemTitle
}
});
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VSelect/VSelectList.js
// Components
// Directives
// Mixins
// Helpers
// Types
/* @vue/component */
/* harmony default export */ var VSelectList = (mixins(colorable, themeable).extend({
name: 'v-select-list',
// https://github.com/vuejs/vue/issues/6872
directives: {
ripple: ripple
},
props: {
action: Boolean,
dense: Boolean,
hideSelected: Boolean,
items: {
type: Array,
default: function _default() {
return [];
}
},
itemDisabled: {
type: [String, Array, Function],
default: 'disabled'
},
itemText: {
type: [String, Array, Function],
default: 'text'
},
itemValue: {
type: [String, Array, Function],
default: 'value'
},
noDataText: String,
noFilter: Boolean,
searchInput: null,
selectedItems: {
type: Array,
default: function _default() {
return [];
}
}
},
computed: {
parsedItems: function parsedItems() {
var _this = this;
return this.selectedItems.map(function (item) {
return _this.getValue(item);
});
},
tileActiveClass: function tileActiveClass() {
return Object.keys(this.setTextColor(this.color).class || {}).join(' ');
},
staticNoDataTile: function staticNoDataTile() {
var tile = {
attrs: {
role: undefined
},
on: {
mousedown: function mousedown(e) {
return e.preventDefault();
}
}
};
return this.$createElement(VList_VListItem, tile, [this.genTileContent(this.noDataText)]);
}
},
methods: {
genAction: function genAction(item, inputValue) {
var _this2 = this;
return this.$createElement(VListItemAction, [this.$createElement(VCheckbox_VSimpleCheckbox, {
props: {
color: this.color,
value: inputValue
},
on: {
input: function input() {
return _this2.$emit('select', item);
}
}
})]);
},
genDivider: function genDivider(props) {
return this.$createElement(components_VDivider, {
props: props
});
},
genFilteredText: function genFilteredText(text) {
text = text || '';
if (!this.searchInput || this.noFilter) return escapeHTML(text);
var _this$getMaskedCharac = this.getMaskedCharacters(text),
start = _this$getMaskedCharac.start,
middle = _this$getMaskedCharac.middle,
end = _this$getMaskedCharac.end;
return "".concat(escapeHTML(start)).concat(this.genHighlight(middle)).concat(escapeHTML(end));
},
genHeader: function genHeader(props) {
return this.$createElement(components_VSubheader, {
props: props
}, props.header);
},
genHighlight: function genHighlight(text) {
return "<span class=\"v-list-item__mask\">".concat(escapeHTML(text), "</span>");
},
getMaskedCharacters: function getMaskedCharacters(text) {
var searchInput = (this.searchInput || '').toString().toLocaleLowerCase();
var index = text.toLocaleLowerCase().indexOf(searchInput);
if (index < 0) return {
start: '',
middle: text,
end: ''
};
var start = text.slice(0, index);
var middle = text.slice(index, index + searchInput.length);
var end = text.slice(index + searchInput.length);
return {
start: start,
middle: middle,
end: end
};
},
genTile: function genTile(_ref) {
var _this3 = this;
var item = _ref.item,
index = _ref.index,
_ref$disabled = _ref.disabled,
disabled = _ref$disabled === void 0 ? null : _ref$disabled,
_ref$value = _ref.value,
value = _ref$value === void 0 ? false : _ref$value;
if (!value) value = this.hasItem(item);
if (item === Object(item)) {
disabled = disabled !== null ? disabled : this.getDisabled(item);
}
var tile = {
attrs: {
// Default behavior in list does not
// contain aria-selected by default
'aria-selected': String(value),
id: "list-item-".concat(this._uid, "-").concat(index),
role: 'option'
},
on: {
mousedown: function mousedown(e) {
// Prevent onBlur from being called
e.preventDefault();
},
click: function click() {
return disabled || _this3.$emit('select', item);
}
},
props: {
activeClass: this.tileActiveClass,
disabled: disabled,
ripple: true,
inputValue: value
}
};
if (!this.$scopedSlots.item) {
return this.$createElement(VList_VListItem, tile, [this.action && !this.hideSelected && this.items.length > 0 ? this.genAction(item, value) : null, this.genTileContent(item, index)]);
}
var parent = this;
var scopedSlot = this.$scopedSlots.item({
parent: parent,
item: item,
attrs: _objectSpread2(_objectSpread2({}, tile.attrs), tile.props),
on: tile.on
});
return this.needsTile(scopedSlot) ? this.$createElement(VList_VListItem, tile, scopedSlot) : scopedSlot;
},
genTileContent: function genTileContent(item) {
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var innerHTML = this.genFilteredText(this.getText(item));
return this.$createElement(VListItemContent, [this.$createElement(VListItemTitle, {
domProps: {
innerHTML: innerHTML
}
})]);
},
hasItem: function hasItem(item) {
return this.parsedItems.indexOf(this.getValue(item)) > -1;
},
needsTile: function needsTile(slot) {
return slot.length !== 1 || slot[0].componentOptions == null || slot[0].componentOptions.Ctor.options.name !== 'v-list-item';
},
getDisabled: function getDisabled(item) {
return Boolean(getPropertyFromItem(item, this.itemDisabled, false));
},
getText: function getText(item) {
return String(getPropertyFromItem(item, this.itemText, item));
},
getValue: function getValue(item) {
return getPropertyFromItem(item, this.itemValue, this.getText(item));
}
},
render: function render() {
var children = [];
var itemsLength = this.items.length;
for (var index = 0; index < itemsLength; index++) {
var item = this.items[index];
if (this.hideSelected && this.hasItem(item)) continue;
if (item == null) children.push(this.genTile({
item: item,
index: index
}));else if (item.header) children.push(this.genHeader(item));else if (item.divider) children.push(this.genDivider(item));else children.push(this.genTile({
item: item,
index: index
}));
}
children.length || children.push(this.$slots['no-data'] || this.staticNoDataTile);
this.$slots['prepend-item'] && children.unshift(this.$slots['prepend-item']);
this.$slots['append-item'] && children.push(this.$slots['append-item']);
return this.$createElement(VList_VList, {
staticClass: 'v-select-list',
class: this.themeClasses,
attrs: {
role: 'listbox',
tabindex: -1
},
props: {
dense: this.dense
}
}, children);
}
}));
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VInput/VInput.sass
var VInput = __webpack_require__("d191");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VLabel/VLabel.sass
var VLabel = __webpack_require__("1b2c");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VLabel/VLabel.js
// Styles
// Mixins
// Helpers
/* @vue/component */
/* harmony default export */ var VLabel_VLabel = (mixins(themeable).extend({
name: 'v-label',
functional: true,
props: {
absolute: Boolean,
color: {
type: String,
default: 'primary'
},
disabled: Boolean,
focused: Boolean,
for: String,
left: {
type: [Number, String],
default: 0
},
right: {
type: [Number, String],
default: 'auto'
},
value: Boolean
},
render: function render(h, ctx) {
var children = ctx.children,
listeners = ctx.listeners,
props = ctx.props;
var data = {
staticClass: 'v-label',
class: _objectSpread2({
'v-label--active': props.value,
'v-label--is-disabled': props.disabled
}, functionalThemeClasses(ctx)),
attrs: {
for: props.for,
'aria-hidden': !props.for
},
on: listeners,
style: {
left: convertToUnit(props.left),
right: convertToUnit(props.right),
position: props.absolute ? 'absolute' : 'relative'
},
ref: 'label'
};
return h('label', colorable.options.methods.setTextColor(props.focused && props.color, data), children);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VLabel/index.js
/* harmony default export */ var components_VLabel = (VLabel_VLabel);
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VMessages/VMessages.sass
var VMessages = __webpack_require__("8ff2");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VMessages/VMessages.js
// Styles
// Mixins
// Utilities
/* @vue/component */
/* harmony default export */ var VMessages_VMessages = (mixins(colorable, themeable).extend({
name: 'v-messages',
props: {
value: {
type: Array,
default: function _default() {
return [];
}
}
},
methods: {
genChildren: function genChildren() {
return this.$createElement('transition-group', {
staticClass: 'v-messages__wrapper',
attrs: {
name: 'message-transition',
tag: 'div'
}
}, this.value.map(this.genMessage));
},
genMessage: function genMessage(message, key) {
return this.$createElement('div', {
staticClass: 'v-messages__message',
key: key
}, getSlot(this, 'default', {
message: message,
key: key
}) || [message]);
}
},
render: function render(h) {
return h('div', this.setTextColor(this.color, {
staticClass: 'v-messages',
class: this.themeClasses
}), [this.genChildren()]);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VMessages/index.js
/* harmony default export */ var components_VMessages = (VMessages_VMessages);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/validatable/index.js
// Mixins
// Utilities
var validatable_baseMixins = mixins(colorable, inject('form'), themeable);
/* @vue/component */
/* harmony default export */ var validatable = (validatable_baseMixins.extend({
name: 'validatable',
props: {
disabled: Boolean,
error: Boolean,
errorCount: {
type: [Number, String],
default: 1
},
errorMessages: {
type: [String, Array],
default: function _default() {
return [];
}
},
messages: {
type: [String, Array],
default: function _default() {
return [];
}
},
readonly: Boolean,
rules: {
type: Array,
default: function _default() {
return [];
}
},
success: Boolean,
successMessages: {
type: [String, Array],
default: function _default() {
return [];
}
},
validateOnBlur: Boolean,
value: {
required: false
}
},
data: function data() {
return {
errorBucket: [],
hasColor: false,
hasFocused: false,
hasInput: false,
isFocused: false,
isResetting: false,
lazyValue: this.value,
valid: false
};
},
computed: {
computedColor: function computedColor() {
if (this.isDisabled) return undefined;
if (this.color) return this.color; // It's assumed that if the input is on a
// dark background, the user will want to
// have a white color. If the entire app
// is setup to be dark, then they will
// like want to use their primary color
if (this.isDark && !this.appIsDark) return 'white';else return 'primary';
},
hasError: function hasError() {
return this.internalErrorMessages.length > 0 || this.errorBucket.length > 0 || this.error;
},
// TODO: Add logic that allows the user to enable based
// upon a good validation
hasSuccess: function hasSuccess() {
return this.internalSuccessMessages.length > 0 || this.success;
},
externalError: function externalError() {
return this.internalErrorMessages.length > 0 || this.error;
},
hasMessages: function hasMessages() {
return this.validationTarget.length > 0;
},
hasState: function hasState() {
if (this.isDisabled) return false;
return this.hasSuccess || this.shouldValidate && this.hasError;
},
internalErrorMessages: function internalErrorMessages() {
return this.genInternalMessages(this.errorMessages);
},
internalMessages: function internalMessages() {
return this.genInternalMessages(this.messages);
},
internalSuccessMessages: function internalSuccessMessages() {
return this.genInternalMessages(this.successMessages);
},
internalValue: {
get: function get() {
return this.lazyValue;
},
set: function set(val) {
this.lazyValue = val;
this.$emit('input', val);
}
},
isDisabled: function isDisabled() {
return this.disabled || !!this.form && this.form.disabled;
},
isInteractive: function isInteractive() {
return !this.isDisabled && !this.isReadonly;
},
isReadonly: function isReadonly() {
return this.readonly || !!this.form && this.form.readonly;
},
shouldValidate: function shouldValidate() {
if (this.externalError) return true;
if (this.isResetting) return false;
return this.validateOnBlur ? this.hasFocused && !this.isFocused : this.hasInput || this.hasFocused;
},
validations: function validations() {
return this.validationTarget.slice(0, Number(this.errorCount));
},
validationState: function validationState() {
if (this.isDisabled) return undefined;
if (this.hasError && this.shouldValidate) return 'error';
if (this.hasSuccess) return 'success';
if (this.hasColor) return this.computedColor;
return undefined;
},
validationTarget: function validationTarget() {
if (this.internalErrorMessages.length > 0) {
return this.internalErrorMessages;
} else if (this.successMessages.length > 0) {
return this.internalSuccessMessages;
} else if (this.messages.length > 0) {
return this.internalMessages;
} else if (this.shouldValidate) {
return this.errorBucket;
} else return [];
}
},
watch: {
rules: {
handler: function handler(newVal, oldVal) {
if (deepEqual(newVal, oldVal)) return;
this.validate();
},
deep: true
},
internalValue: function internalValue() {
// If it's the first time we're setting input,
// mark it with hasInput
this.hasInput = true;
this.validateOnBlur || this.$nextTick(this.validate);
},
isFocused: function isFocused(val) {
// Should not check validation
// if disabled
if (!val && !this.isDisabled) {
this.hasFocused = true;
this.validateOnBlur && this.$nextTick(this.validate);
}
},
isResetting: function isResetting() {
var _this = this;
setTimeout(function () {
_this.hasInput = false;
_this.hasFocused = false;
_this.isResetting = false;
_this.validate();
}, 0);
},
hasError: function hasError(val) {
if (this.shouldValidate) {
this.$emit('update:error', val);
}
},
value: function value(val) {
this.lazyValue = val;
}
},
beforeMount: function beforeMount() {
this.validate();
},
created: function created() {
this.form && this.form.register(this);
},
beforeDestroy: function beforeDestroy() {
this.form && this.form.unregister(this);
},
methods: {
genInternalMessages: function genInternalMessages(messages) {
if (!messages) return [];else if (Array.isArray(messages)) return messages;else return [messages];
},
/** @public */
reset: function reset() {
this.isResetting = true;
this.internalValue = Array.isArray(this.internalValue) ? [] : undefined;
},
/** @public */
resetValidation: function resetValidation() {
this.isResetting = true;
},
/** @public */
validate: function validate() {
var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
var value = arguments.length > 1 ? arguments[1] : undefined;
var errorBucket = [];
value = value || this.internalValue;
if (force) this.hasInput = this.hasFocused = true;
for (var index = 0; index < this.rules.length; index++) {
var rule = this.rules[index];
var valid = typeof rule === 'function' ? rule(value) : rule;
if (valid === false || typeof valid === 'string') {
errorBucket.push(valid || '');
} else if (typeof valid !== 'boolean') {
consoleError("Rules should return a string or boolean, received '".concat(_typeof(valid), "' instead"), this);
}
}
this.errorBucket = errorBucket;
this.valid = errorBucket.length === 0;
return this.valid;
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VInput/VInput.js
// Styles
// Components
// Mixins
// Utilities
var VInput_baseMixins = mixins(binds_attrs, validatable);
/* @vue/component */
/* harmony default export */ var VInput_VInput = (VInput_baseMixins.extend().extend({
name: 'v-input',
inheritAttrs: false,
props: {
appendIcon: String,
backgroundColor: {
type: String,
default: ''
},
dense: Boolean,
height: [Number, String],
hideDetails: [Boolean, String],
hint: String,
id: String,
label: String,
loading: Boolean,
persistentHint: Boolean,
prependIcon: String,
value: null
},
data: function data() {
return {
lazyValue: this.value,
hasMouseDown: false
};
},
computed: {
classes: function classes() {
return _objectSpread2({
'v-input--has-state': this.hasState,
'v-input--hide-details': !this.showDetails,
'v-input--is-label-active': this.isLabelActive,
'v-input--is-dirty': this.isDirty,
'v-input--is-disabled': this.isDisabled,
'v-input--is-focused': this.isFocused,
// <v-switch loading>.loading === '' so we can't just cast to boolean
'v-input--is-loading': this.loading !== false && this.loading != null,
'v-input--is-readonly': this.isReadonly,
'v-input--dense': this.dense
}, this.themeClasses);
},
computedId: function computedId() {
return this.id || "input-".concat(this._uid);
},
hasDetails: function hasDetails() {
return this.messagesToDisplay.length > 0;
},
hasHint: function hasHint() {
return !this.hasMessages && !!this.hint && (this.persistentHint || this.isFocused);
},
hasLabel: function hasLabel() {
return !!(this.$slots.label || this.label);
},
// Proxy for `lazyValue`
// This allows an input
// to function without
// a provided model
internalValue: {
get: function get() {
return this.lazyValue;
},
set: function set(val) {
this.lazyValue = val;
this.$emit(this.$_modelEvent, val);
}
},
isDirty: function isDirty() {
return !!this.lazyValue;
},
isLabelActive: function isLabelActive() {
return this.isDirty;
},
messagesToDisplay: function messagesToDisplay() {
var _this = this;
if (this.hasHint) return [this.hint];
if (!this.hasMessages) return [];
return this.validations.map(function (validation) {
if (typeof validation === 'string') return validation;
var validationResult = validation(_this.internalValue);
return typeof validationResult === 'string' ? validationResult : '';
}).filter(function (message) {
return message !== '';
});
},
showDetails: function showDetails() {
return this.hideDetails === false || this.hideDetails === 'auto' && this.hasDetails;
}
},
watch: {
value: function value(val) {
this.lazyValue = val;
}
},
beforeCreate: function beforeCreate() {
// v-radio-group needs to emit a different event
// https://github.com/vuetifyjs/vuetify/issues/4752
this.$_modelEvent = this.$options.model && this.$options.model.event || 'input';
},
methods: {
genContent: function genContent() {
return [this.genPrependSlot(), this.genControl(), this.genAppendSlot()];
},
genControl: function genControl() {
return this.$createElement('div', {
staticClass: 'v-input__control'
}, [this.genInputSlot(), this.genMessages()]);
},
genDefaultSlot: function genDefaultSlot() {
return [this.genLabel(), this.$slots.default];
},
genIcon: function genIcon(type, cb) {
var _this2 = this;
var extraData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var icon = this["".concat(type, "Icon")];
var eventName = "click:".concat(kebabCase(type));
var hasListener = !!(this.listeners$[eventName] || cb);
var data = mergeData({
attrs: {
'aria-label': hasListener ? kebabCase(type).split('-')[0] + ' icon' : undefined,
color: this.validationState,
dark: this.dark,
disabled: this.isDisabled,
light: this.light
},
on: !hasListener ? undefined : {
click: function click(e) {
e.preventDefault();
e.stopPropagation();
_this2.$emit(eventName, e);
cb && cb(e);
},
// Container has g event that will
// trigger menu open if enclosed
mouseup: function mouseup(e) {
e.preventDefault();
e.stopPropagation();
}
}
}, extraData);
return this.$createElement('div', {
staticClass: "v-input__icon",
class: type ? "v-input__icon--".concat(kebabCase(type)) : undefined
}, [this.$createElement(components_VIcon, data, icon)]);
},
genInputSlot: function genInputSlot() {
return this.$createElement('div', this.setBackgroundColor(this.backgroundColor, {
staticClass: 'v-input__slot',
style: {
height: convertToUnit(this.height)
},
on: {
click: this.onClick,
mousedown: this.onMouseDown,
mouseup: this.onMouseUp
},
ref: 'input-slot'
}), [this.genDefaultSlot()]);
},
genLabel: function genLabel() {
if (!this.hasLabel) return null;
return this.$createElement(components_VLabel, {
props: {
color: this.validationState,
dark: this.dark,
disabled: this.isDisabled,
focused: this.hasState,
for: this.computedId,
light: this.light
}
}, this.$slots.label || this.label);
},
genMessages: function genMessages() {
var _this3 = this;
if (!this.showDetails) return null;
return this.$createElement(components_VMessages, {
props: {
color: this.hasHint ? '' : this.validationState,
dark: this.dark,
light: this.light,
value: this.messagesToDisplay
},
attrs: {
role: this.hasMessages ? 'alert' : null
},
scopedSlots: {
default: function _default(props) {
return getSlot(_this3, 'message', props);
}
}
});
},
genSlot: function genSlot(type, location, slot) {
if (!slot.length) return null;
var ref = "".concat(type, "-").concat(location);
return this.$createElement('div', {
staticClass: "v-input__".concat(ref),
ref: ref
}, slot);
},
genPrependSlot: function genPrependSlot() {
var slot = [];
if (this.$slots.prepend) {
slot.push(this.$slots.prepend);
} else if (this.prependIcon) {
slot.push(this.genIcon('prepend'));
}
return this.genSlot('prepend', 'outer', slot);
},
genAppendSlot: function genAppendSlot() {
var slot = []; // Append icon for text field was really
// an appended inner icon, v-text-field
// will overwrite this method in order to obtain
// backwards compat
if (this.$slots.append) {
slot.push(this.$slots.append);
} else if (this.appendIcon) {
slot.push(this.genIcon('append'));
}
return this.genSlot('append', 'outer', slot);
},
onClick: function onClick(e) {
this.$emit('click', e);
},
onMouseDown: function onMouseDown(e) {
this.hasMouseDown = true;
this.$emit('mousedown', e);
},
onMouseUp: function onMouseUp(e) {
this.hasMouseDown = false;
this.$emit('mouseup', e);
}
},
render: function render(h) {
return h('div', this.setTextColor(this.validationState, {
staticClass: 'v-input',
class: this.classes
}), this.genContent());
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VInput/index.js
/* harmony default export */ var components_VInput = (VInput_VInput);
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.is.js
var es_object_is = __webpack_require__("2b19");
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VCounter/VCounter.sass
var VCounter = __webpack_require__("e9b1");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VCounter/VCounter.js
// Styles
// Mixins
/* @vue/component */
/* harmony default export */ var VCounter_VCounter = (mixins(themeable).extend({
name: 'v-counter',
functional: true,
props: {
value: {
type: [Number, String],
default: ''
},
max: [Number, String]
},
render: function render(h, ctx) {
var props = ctx.props;
var max = parseInt(props.max, 10);
var value = parseInt(props.value, 10);
var content = max ? "".concat(value, " / ").concat(max) : String(props.value);
var isGreater = max && value > max;
return h('div', {
staticClass: 'v-counter',
class: _objectSpread2({
'error--text': isGreater
}, functionalThemeClasses(ctx))
}, content);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VCounter/index.js
/* harmony default export */ var components_VCounter = (VCounter_VCounter);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/directives/intersect/index.js
function intersect_inserted(el, binding) {
var modifiers = binding.modifiers || {};
var value = binding.value;
var _ref = _typeof(value) === 'object' ? value : {
handler: value,
options: {}
},
handler = _ref.handler,
options = _ref.options;
var observer = new IntersectionObserver(function () {
var entries = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var observer = arguments.length > 1 ? arguments[1] : undefined;
/* istanbul ignore if */
if (!el._observe) return; // Just in case, should never fire
// If is not quiet or has already been
// initted, invoke the user callback
if (handler && (!modifiers.quiet || el._observe.init)) {
var isIntersecting = Boolean(entries.find(function (entry) {
return entry.isIntersecting;
}));
handler(entries, observer, isIntersecting);
} // If has already been initted and
// has the once modifier, unbind
if (el._observe.init && modifiers.once) intersect_unbind(el); // Otherwise, mark the observer as initted
else el._observe.init = true;
}, options);
el._observe = {
init: false,
observer: observer
};
observer.observe(el);
}
function intersect_unbind(el) {
/* istanbul ignore if */
if (!el._observe) return;
el._observe.observer.unobserve(el);
delete el._observe;
}
var Intersect = {
inserted: intersect_inserted,
unbind: intersect_unbind
};
/* harmony default export */ var intersect = (Intersect);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/intersectable/index.js
// Directives
// Utilities
// Types
function intersectable(options) {
if (typeof window === 'undefined' || !('IntersectionObserver' in window)) {
// do nothing because intersection observer is not available
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'intersectable'
});
}
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'intersectable',
mounted: function mounted() {
intersect.inserted(this.$el, {
name: 'intersect',
value: this.onObserve
});
},
destroyed: function destroyed() {
intersect.unbind(this.$el);
},
methods: {
onObserve: function onObserve(entries, observer, isIntersecting) {
if (!isIntersecting) return;
for (var i = 0, length = options.onVisible.length; i < length; i++) {
var callback = this[options.onVisible[i]];
if (typeof callback === 'function') {
callback();
continue;
}
consoleWarn(options.onVisible[i] + ' method is not available on the instance but referenced in intersectable mixin options');
}
}
}
});
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VTextField/VTextField.js
// Styles
// Extensions
// Components
// Mixins
// Directives
// Utilities
// Types
var VTextField_baseMixins = mixins(components_VInput, intersectable({
onVisible: ['setLabelWidth', 'setPrefixWidth', 'setPrependWidth', 'tryAutofocus']
}), loadable);
var dirtyTypes = ['color', 'file', 'time', 'date', 'datetime-local', 'week', 'month'];
/* @vue/component */
/* harmony default export */ var VTextField_VTextField = (VTextField_baseMixins.extend().extend({
name: 'v-text-field',
directives: {
ripple: ripple
},
inheritAttrs: false,
props: {
appendOuterIcon: String,
autofocus: Boolean,
clearable: Boolean,
clearIcon: {
type: String,
default: '$clear'
},
counter: [Boolean, Number, String],
counterValue: Function,
filled: Boolean,
flat: Boolean,
fullWidth: Boolean,
label: String,
outlined: Boolean,
placeholder: String,
prefix: String,
prependInnerIcon: String,
reverse: Boolean,
rounded: Boolean,
shaped: Boolean,
singleLine: Boolean,
solo: Boolean,
soloInverted: Boolean,
suffix: String,
type: {
type: String,
default: 'text'
}
},
data: function data() {
return {
badInput: false,
labelWidth: 0,
prefixWidth: 0,
prependWidth: 0,
initialValue: null,
isBooted: false,
isClearing: false
};
},
computed: {
classes: function classes() {
return _objectSpread2(_objectSpread2({}, components_VInput.options.computed.classes.call(this)), {}, {
'v-text-field': true,
'v-text-field--full-width': this.fullWidth,
'v-text-field--prefix': this.prefix,
'v-text-field--single-line': this.isSingle,
'v-text-field--solo': this.isSolo,
'v-text-field--solo-inverted': this.soloInverted,
'v-text-field--solo-flat': this.flat,
'v-text-field--filled': this.filled,
'v-text-field--is-booted': this.isBooted,
'v-text-field--enclosed': this.isEnclosed,
'v-text-field--reverse': this.reverse,
'v-text-field--outlined': this.outlined,
'v-text-field--placeholder': this.placeholder,
'v-text-field--rounded': this.rounded,
'v-text-field--shaped': this.shaped
});
},
computedColor: function computedColor() {
var computedColor = validatable.options.computed.computedColor.call(this);
if (!this.soloInverted || !this.isFocused) return computedColor;
return this.color || 'primary';
},
computedCounterValue: function computedCounterValue() {
if (typeof this.counterValue === 'function') {
return this.counterValue(this.internalValue);
}
return (this.internalValue || '').toString().length;
},
hasCounter: function hasCounter() {
return this.counter !== false && this.counter != null;
},
hasDetails: function hasDetails() {
return components_VInput.options.computed.hasDetails.call(this) || this.hasCounter;
},
internalValue: {
get: function get() {
return this.lazyValue;
},
set: function set(val) {
this.lazyValue = val;
this.$emit('input', this.lazyValue);
}
},
isDirty: function isDirty() {
return this.lazyValue != null && this.lazyValue.toString().length > 0 || this.badInput;
},
isEnclosed: function isEnclosed() {
return this.filled || this.isSolo || this.outlined;
},
isLabelActive: function isLabelActive() {
return this.isDirty || dirtyTypes.includes(this.type);
},
isSingle: function isSingle() {
return this.isSolo || this.singleLine || this.fullWidth || // https://material.io/components/text-fields/#filled-text-field
this.filled && !this.hasLabel;
},
isSolo: function isSolo() {
return this.solo || this.soloInverted;
},
labelPosition: function labelPosition() {
var offset = this.prefix && !this.labelValue ? this.prefixWidth : 0;
if (this.labelValue && this.prependWidth) offset -= this.prependWidth;
return this.$vuetify.rtl === this.reverse ? {
left: offset,
right: 'auto'
} : {
left: 'auto',
right: offset
};
},
showLabel: function showLabel() {
return this.hasLabel && (!this.isSingle || !this.isLabelActive && !this.placeholder);
},
labelValue: function labelValue() {
return !this.isSingle && Boolean(this.isFocused || this.isLabelActive || this.placeholder);
}
},
watch: {
labelValue: 'setLabelWidth',
outlined: 'setLabelWidth',
label: function label() {
this.$nextTick(this.setLabelWidth);
},
prefix: function prefix() {
this.$nextTick(this.setPrefixWidth);
},
isFocused: 'updateValue',
value: function value(val) {
this.lazyValue = val;
}
},
created: function created() {
/* istanbul ignore next */
if (this.$attrs.hasOwnProperty('box')) {
breaking('box', 'filled', this);
}
/* istanbul ignore next */
if (this.$attrs.hasOwnProperty('browser-autocomplete')) {
breaking('browser-autocomplete', 'autocomplete', this);
}
/* istanbul ignore if */
if (this.shaped && !(this.filled || this.outlined || this.isSolo)) {
consoleWarn('shaped should be used with either filled or outlined', this);
}
},
mounted: function mounted() {
var _this = this;
this.autofocus && this.tryAutofocus();
this.setLabelWidth();
this.setPrefixWidth();
this.setPrependWidth();
requestAnimationFrame(function () {
return _this.isBooted = true;
});
},
methods: {
/** @public */
focus: function focus() {
this.onFocus();
},
/** @public */
blur: function blur(e) {
var _this2 = this;
// https://github.com/vuetifyjs/vuetify/issues/5913
// Safari tab order gets broken if called synchronous
window.requestAnimationFrame(function () {
_this2.$refs.input && _this2.$refs.input.blur();
});
},
clearableCallback: function clearableCallback() {
var _this3 = this;
this.$refs.input && this.$refs.input.focus();
this.$nextTick(function () {
return _this3.internalValue = null;
});
},
genAppendSlot: function genAppendSlot() {
var slot = [];
if (this.$slots['append-outer']) {
slot.push(this.$slots['append-outer']);
} else if (this.appendOuterIcon) {
slot.push(this.genIcon('appendOuter'));
}
return this.genSlot('append', 'outer', slot);
},
genPrependInnerSlot: function genPrependInnerSlot() {
var slot = [];
if (this.$slots['prepend-inner']) {
slot.push(this.$slots['prepend-inner']);
} else if (this.prependInnerIcon) {
slot.push(this.genIcon('prependInner'));
}
return this.genSlot('prepend', 'inner', slot);
},
genIconSlot: function genIconSlot() {
var slot = [];
if (this.$slots['append']) {
slot.push(this.$slots['append']);
} else if (this.appendIcon) {
slot.push(this.genIcon('append'));
}
return this.genSlot('append', 'inner', slot);
},
genInputSlot: function genInputSlot() {
var input = components_VInput.options.methods.genInputSlot.call(this);
var prepend = this.genPrependInnerSlot();
if (prepend) {
input.children = input.children || [];
input.children.unshift(prepend);
}
return input;
},
genClearIcon: function genClearIcon() {
if (!this.clearable) return null;
var data = this.isDirty ? undefined : {
attrs: {
disabled: true
}
};
return this.genSlot('append', 'inner', [this.genIcon('clear', this.clearableCallback, data)]);
},
genCounter: function genCounter() {
if (!this.hasCounter) return null;
var max = this.counter === true ? this.attrs$.maxlength : this.counter;
return this.$createElement(components_VCounter, {
props: {
dark: this.dark,
light: this.light,
max: max,
value: this.computedCounterValue
}
});
},
genControl: function genControl() {
return components_VInput.options.methods.genControl.call(this);
},
genDefaultSlot: function genDefaultSlot() {
return [this.genFieldset(), this.genTextFieldSlot(), this.genClearIcon(), this.genIconSlot(), this.genProgress()];
},
genFieldset: function genFieldset() {
if (!this.outlined) return null;
return this.$createElement('fieldset', {
attrs: {
'aria-hidden': true
}
}, [this.genLegend()]);
},
genLabel: function genLabel() {
if (!this.showLabel) return null;
var data = {
props: {
absolute: true,
color: this.validationState,
dark: this.dark,
disabled: this.isDisabled,
focused: !this.isSingle && (this.isFocused || !!this.validationState),
for: this.computedId,
left: this.labelPosition.left,
light: this.light,
right: this.labelPosition.right,
value: this.labelValue
}
};
return this.$createElement(components_VLabel, data, this.$slots.label || this.label);
},
genLegend: function genLegend() {
var width = !this.singleLine && (this.labelValue || this.isDirty) ? this.labelWidth : 0;
var span = this.$createElement('span', {
domProps: {
innerHTML: '​'
}
});
return this.$createElement('legend', {
style: {
width: !this.isSingle ? convertToUnit(width) : undefined
}
}, [span]);
},
genInput: function genInput() {
var listeners = Object.assign({}, this.listeners$);
delete listeners['change']; // Change should not be bound externally
return this.$createElement('input', {
style: {},
domProps: {
value: this.type === 'number' && Object.is(this.lazyValue, -0) ? '-0' : this.lazyValue
},
attrs: _objectSpread2(_objectSpread2({}, this.attrs$), {}, {
autofocus: this.autofocus,
disabled: this.isDisabled,
id: this.computedId,
placeholder: this.placeholder,
readonly: this.isReadonly,
type: this.type
}),
on: Object.assign(listeners, {
blur: this.onBlur,
input: this.onInput,
focus: this.onFocus,
keydown: this.onKeyDown
}),
ref: 'input'
});
},
genMessages: function genMessages() {
if (!this.showDetails) return null;
var messagesNode = components_VInput.options.methods.genMessages.call(this);
var counterNode = this.genCounter();
return this.$createElement('div', {
staticClass: 'v-text-field__details'
}, [messagesNode, counterNode]);
},
genTextFieldSlot: function genTextFieldSlot() {
return this.$createElement('div', {
staticClass: 'v-text-field__slot'
}, [this.genLabel(), this.prefix ? this.genAffix('prefix') : null, this.genInput(), this.suffix ? this.genAffix('suffix') : null]);
},
genAffix: function genAffix(type) {
return this.$createElement('div', {
class: "v-text-field__".concat(type),
ref: type
}, this[type]);
},
onBlur: function onBlur(e) {
var _this4 = this;
this.isFocused = false;
e && this.$nextTick(function () {
return _this4.$emit('blur', e);
});
},
onClick: function onClick() {
if (this.isFocused || this.isDisabled || !this.$refs.input) return;
this.$refs.input.focus();
},
onFocus: function onFocus(e) {
if (!this.$refs.input) return;
if (document.activeElement !== this.$refs.input) {
return this.$refs.input.focus();
}
if (!this.isFocused) {
this.isFocused = true;
e && this.$emit('focus', e);
}
},
onInput: function onInput(e) {
var target = e.target;
this.internalValue = target.value;
this.badInput = target.validity && target.validity.badInput;
},
onKeyDown: function onKeyDown(e) {
if (e.keyCode === keyCodes.enter) this.$emit('change', this.internalValue);
this.$emit('keydown', e);
},
onMouseDown: function onMouseDown(e) {
// Prevent input from being blurred
if (e.target !== this.$refs.input) {
e.preventDefault();
e.stopPropagation();
}
components_VInput.options.methods.onMouseDown.call(this, e);
},
onMouseUp: function onMouseUp(e) {
if (this.hasMouseDown) this.focus();
components_VInput.options.methods.onMouseUp.call(this, e);
},
setLabelWidth: function setLabelWidth() {
if (!this.outlined) return;
this.labelWidth = this.$refs.label ? Math.min(this.$refs.label.scrollWidth * 0.75 + 6, this.$el.offsetWidth - 24) : 0;
},
setPrefixWidth: function setPrefixWidth() {
if (!this.$refs.prefix) return;
this.prefixWidth = this.$refs.prefix.offsetWidth;
},
setPrependWidth: function setPrependWidth() {
if (!this.outlined || !this.$refs['prepend-inner']) return;
this.prependWidth = this.$refs['prepend-inner'].offsetWidth;
},
tryAutofocus: function tryAutofocus() {
if (!this.autofocus || typeof document === 'undefined' || !this.$refs.input || document.activeElement === this.$refs.input) return false;
this.$refs.input.focus();
return true;
},
updateValue: function updateValue(val) {
// Sets validationState from validatable
this.hasColor = val;
if (val) {
this.initialValue = this.lazyValue;
} else if (this.initialValue !== this.lazyValue) {
this.$emit('change', this.lazyValue);
}
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/comparable/index.js
/* harmony default export */ var comparable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'comparable',
props: {
valueComparator: {
type: Function,
default: deepEqual
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/mixins/filterable/index.js
/* @vue/component */
/* harmony default export */ var filterable = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'filterable',
props: {
noDataText: {
type: String,
default: '$vuetify.noDataText'
}
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VSelect/VSelect.js
// Styles
// Components
// Extensions
// Mixins
// Directives
// Utilities
// Types
var defaultMenuProps = {
closeOnClick: false,
closeOnContentClick: false,
disableKeys: true,
openOnClick: false,
maxHeight: 304
}; // Types
var VSelect_baseMixins = mixins(VTextField_VTextField, comparable, filterable);
/* @vue/component */
/* harmony default export */ var VSelect_VSelect = (VSelect_baseMixins.extend().extend({
name: 'v-select',
directives: {
ClickOutside: click_outside
},
props: {
appendIcon: {
type: String,
default: '$dropdown'
},
attach: {
type: null,
default: false
},
cacheItems: Boolean,
chips: Boolean,
clearable: Boolean,
deletableChips: Boolean,
disableLookup: Boolean,
eager: Boolean,
hideSelected: Boolean,
items: {
type: Array,
default: function _default() {
return [];
}
},
itemColor: {
type: String,
default: 'primary'
},
itemDisabled: {
type: [String, Array, Function],
default: 'disabled'
},
itemText: {
type: [String, Array, Function],
default: 'text'
},
itemValue: {
type: [String, Array, Function],
default: 'value'
},
menuProps: {
type: [String, Array, Object],
default: function _default() {
return defaultMenuProps;
}
},
multiple: Boolean,
openOnClear: Boolean,
returnObject: Boolean,
smallChips: Boolean
},
data: function data() {
return {
cachedItems: this.cacheItems ? this.items : [],
menuIsBooted: false,
isMenuActive: false,
lastItem: 20,
// As long as a value is defined, show it
// Otherwise, check if multiple
// to determine which default to provide
lazyValue: this.value !== undefined ? this.value : this.multiple ? [] : undefined,
selectedIndex: -1,
selectedItems: [],
keyboardLookupPrefix: '',
keyboardLookupLastTime: 0
};
},
computed: {
/* All items that the select has */
allItems: function allItems() {
return this.filterDuplicates(this.cachedItems.concat(this.items));
},
classes: function classes() {
return _objectSpread2(_objectSpread2({}, VTextField_VTextField.options.computed.classes.call(this)), {}, {
'v-select': true,
'v-select--chips': this.hasChips,
'v-select--chips--small': this.smallChips,
'v-select--is-menu-active': this.isMenuActive,
'v-select--is-multi': this.multiple
});
},
/* Used by other components to overwrite */
computedItems: function computedItems() {
return this.allItems;
},
computedOwns: function computedOwns() {
return "list-".concat(this._uid);
},
computedCounterValue: function computedCounterValue() {
return this.multiple ? this.selectedItems.length : (this.getText(this.selectedItems[0]) || '').toString().length;
},
directives: function directives() {
return this.isFocused ? [{
name: 'click-outside',
value: {
handler: this.blur,
closeConditional: this.closeConditional
}
}] : undefined;
},
dynamicHeight: function dynamicHeight() {
return 'auto';
},
hasChips: function hasChips() {
return this.chips || this.smallChips;
},
hasSlot: function hasSlot() {
return Boolean(this.hasChips || this.$scopedSlots.selection);
},
isDirty: function isDirty() {
return this.selectedItems.length > 0;
},
listData: function listData() {
var scopeId = this.$vnode && this.$vnode.context.$options._scopeId;
var attrs = scopeId ? _defineProperty({}, scopeId, true) : {};
return {
attrs: _objectSpread2(_objectSpread2({}, attrs), {}, {
id: this.computedOwns
}),
props: {
action: this.multiple,
color: this.itemColor,
dense: this.dense,
hideSelected: this.hideSelected,
items: this.virtualizedItems,
itemDisabled: this.itemDisabled,
itemText: this.itemText,
itemValue: this.itemValue,
noDataText: this.$vuetify.lang.t(this.noDataText),
selectedItems: this.selectedItems
},
on: {
select: this.selectItem
},
scopedSlots: {
item: this.$scopedSlots.item
}
};
},
staticList: function staticList() {
if (this.$slots['no-data'] || this.$slots['prepend-item'] || this.$slots['append-item']) {
consoleError('assert: staticList should not be called if slots are used');
}
return this.$createElement(VSelectList, this.listData);
},
virtualizedItems: function virtualizedItems() {
return this.$_menuProps.auto ? this.computedItems : this.computedItems.slice(0, this.lastItem);
},
menuCanShow: function menuCanShow() {
return true;
},
$_menuProps: function $_menuProps() {
var normalisedProps = typeof this.menuProps === 'string' ? this.menuProps.split(',') : this.menuProps;
if (Array.isArray(normalisedProps)) {
normalisedProps = normalisedProps.reduce(function (acc, p) {
acc[p.trim()] = true;
return acc;
}, {});
}
return _objectSpread2(_objectSpread2({}, defaultMenuProps), {}, {
eager: this.eager,
value: this.menuCanShow && this.isMenuActive,
nudgeBottom: normalisedProps.offsetY ? 1 : 0
}, normalisedProps);
}
},
watch: {
internalValue: function internalValue(val) {
this.initialValue = val;
this.setSelectedItems();
},
isMenuActive: function isMenuActive(val) {
var _this = this;
window.setTimeout(function () {
return _this.onMenuActiveChange(val);
});
},
items: {
immediate: true,
handler: function handler(val) {
var _this2 = this;
if (this.cacheItems) {
// Breaks vue-test-utils if
// this isn't calculated
// on the next tick
this.$nextTick(function () {
_this2.cachedItems = _this2.filterDuplicates(_this2.cachedItems.concat(val));
});
}
this.setSelectedItems();
}
}
},
methods: {
/** @public */
blur: function blur(e) {
VTextField_VTextField.options.methods.blur.call(this, e);
this.isMenuActive = false;
this.isFocused = false;
this.selectedIndex = -1;
},
/** @public */
activateMenu: function activateMenu() {
if (!this.isInteractive || this.isMenuActive) return;
this.isMenuActive = true;
},
clearableCallback: function clearableCallback() {
var _this3 = this;
this.setValue(this.multiple ? [] : undefined);
this.setMenuIndex(-1);
this.$nextTick(function () {
return _this3.$refs.input && _this3.$refs.input.focus();
});
if (this.openOnClear) this.isMenuActive = true;
},
closeConditional: function closeConditional(e) {
if (!this.isMenuActive) return true;
return !this._isDestroyed && ( // Click originates from outside the menu content
// Multiple selects don't close when an item is clicked
!this.getContent() || !this.getContent().contains(e.target)) && // Click originates from outside the element
this.$el && !this.$el.contains(e.target) && e.target !== this.$el;
},
filterDuplicates: function filterDuplicates(arr) {
var uniqueValues = new Map();
for (var index = 0; index < arr.length; ++index) {
var item = arr[index];
var val = this.getValue(item); // TODO: comparator
!uniqueValues.has(val) && uniqueValues.set(val, item);
}
return Array.from(uniqueValues.values());
},
findExistingIndex: function findExistingIndex(item) {
var _this4 = this;
var itemValue = this.getValue(item);
return (this.internalValue || []).findIndex(function (i) {
return _this4.valueComparator(_this4.getValue(i), itemValue);
});
},
getContent: function getContent() {
return this.$refs.menu && this.$refs.menu.$refs.content;
},
genChipSelection: function genChipSelection(item, index) {
var _this5 = this;
var isDisabled = !this.isInteractive || this.getDisabled(item);
return this.$createElement(components_VChip, {
staticClass: 'v-chip--select',
attrs: {
tabindex: -1
},
props: {
close: this.deletableChips && !isDisabled,
disabled: isDisabled,
inputValue: index === this.selectedIndex,
small: this.smallChips
},
on: {
click: function click(e) {
if (isDisabled) return;
e.stopPropagation();
_this5.selectedIndex = index;
},
'click:close': function clickClose() {
return _this5.onChipInput(item);
}
},
key: JSON.stringify(this.getValue(item))
}, this.getText(item));
},
genCommaSelection: function genCommaSelection(item, index, last) {
var color = index === this.selectedIndex && this.computedColor;
var isDisabled = !this.isInteractive || this.getDisabled(item);
return this.$createElement('div', this.setTextColor(color, {
staticClass: 'v-select__selection v-select__selection--comma',
class: {
'v-select__selection--disabled': isDisabled
},
key: JSON.stringify(this.getValue(item))
}), "".concat(this.getText(item)).concat(last ? '' : ', '));
},
genDefaultSlot: function genDefaultSlot() {
var selections = this.genSelections();
var input = this.genInput(); // If the return is an empty array
// push the input
if (Array.isArray(selections)) {
selections.push(input); // Otherwise push it into children
} else {
selections.children = selections.children || [];
selections.children.push(input);
}
return [this.genFieldset(), this.$createElement('div', {
staticClass: 'v-select__slot',
directives: this.directives
}, [this.genLabel(), this.prefix ? this.genAffix('prefix') : null, selections, this.suffix ? this.genAffix('suffix') : null, this.genClearIcon(), this.genIconSlot(), this.genHiddenInput()]), this.genMenu(), this.genProgress()];
},
genIcon: function genIcon(type, cb, extraData) {
var icon = components_VInput.options.methods.genIcon.call(this, type, cb, extraData);
if (type === 'append') {
// Don't allow the dropdown icon to be focused
icon.children[0].data = mergeData(icon.children[0].data, {
attrs: {
tabindex: icon.children[0].componentOptions.listeners && '-1',
'aria-hidden': 'true',
'aria-label': undefined
}
});
}
return icon;
},
genInput: function genInput() {
var input = VTextField_VTextField.options.methods.genInput.call(this);
delete input.data.attrs.name;
input.data = mergeData(input.data, {
domProps: {
value: null
},
attrs: {
readonly: true,
type: 'text',
'aria-readonly': String(this.isReadonly),
'aria-activedescendant': getObjectValueByPath(this.$refs.menu, 'activeTile.id'),
autocomplete: getObjectValueByPath(input.data, 'attrs.autocomplete', 'off')
},
on: {
keypress: this.onKeyPress
}
});
return input;
},
genHiddenInput: function genHiddenInput() {
return this.$createElement('input', {
domProps: {
value: this.lazyValue
},
attrs: {
type: 'hidden',
name: this.attrs$.name
}
});
},
genInputSlot: function genInputSlot() {
var render = VTextField_VTextField.options.methods.genInputSlot.call(this);
render.data.attrs = _objectSpread2(_objectSpread2({}, render.data.attrs), {}, {
role: 'button',
'aria-haspopup': 'listbox',
'aria-expanded': String(this.isMenuActive),
'aria-owns': this.computedOwns
});
return render;
},
genList: function genList() {
// If there's no slots, we can use a cached VNode to improve performance
if (this.$slots['no-data'] || this.$slots['prepend-item'] || this.$slots['append-item']) {
return this.genListWithSlot();
} else {
return this.staticList;
}
},
genListWithSlot: function genListWithSlot() {
var _this6 = this;
var slots = ['prepend-item', 'no-data', 'append-item'].filter(function (slotName) {
return _this6.$slots[slotName];
}).map(function (slotName) {
return _this6.$createElement('template', {
slot: slotName
}, _this6.$slots[slotName]);
}); // Requires destructuring due to Vue
// modifying the `on` property when passed
// as a referenced object
return this.$createElement(VSelectList, _objectSpread2({}, this.listData), slots);
},
genMenu: function genMenu() {
var _this7 = this;
var props = this.$_menuProps;
props.activator = this.$refs['input-slot']; // Attach to root el so that
// menu covers prepend/append icons
if ( // TODO: make this a computed property or helper or something
this.attach === '' || // If used as a boolean prop (<v-menu attach>)
this.attach === true || // If bound to a boolean (<v-menu :attach="true">)
this.attach === 'attach' // If bound as boolean prop in pug (v-menu(attach))
) {
props.attach = this.$el;
} else {
props.attach = this.attach;
}
return this.$createElement(components_VMenu, {
attrs: {
role: undefined
},
props: props,
on: {
input: function input(val) {
_this7.isMenuActive = val;
_this7.isFocused = val;
},
scroll: this.onScroll
},
ref: 'menu'
}, [this.genList()]);
},
genSelections: function genSelections() {
var length = this.selectedItems.length;
var children = new Array(length);
var genSelection;
if (this.$scopedSlots.selection) {
genSelection = this.genSlotSelection;
} else if (this.hasChips) {
genSelection = this.genChipSelection;
} else {
genSelection = this.genCommaSelection;
}
while (length--) {
children[length] = genSelection(this.selectedItems[length], length, length === children.length - 1);
}
return this.$createElement('div', {
staticClass: 'v-select__selections'
}, children);
},
genSlotSelection: function genSlotSelection(item, index) {
var _this8 = this;
return this.$scopedSlots.selection({
attrs: {
class: 'v-chip--select'
},
parent: this,
item: item,
index: index,
select: function select(e) {
e.stopPropagation();
_this8.selectedIndex = index;
},
selected: index === this.selectedIndex,
disabled: !this.isInteractive
});
},
getMenuIndex: function getMenuIndex() {
return this.$refs.menu ? this.$refs.menu.listIndex : -1;
},
getDisabled: function getDisabled(item) {
return getPropertyFromItem(item, this.itemDisabled, false);
},
getText: function getText(item) {
return getPropertyFromItem(item, this.itemText, item);
},
getValue: function getValue(item) {
return getPropertyFromItem(item, this.itemValue, this.getText(item));
},
onBlur: function onBlur(e) {
e && this.$emit('blur', e);
},
onChipInput: function onChipInput(item) {
if (this.multiple) this.selectItem(item);else this.setValue(null); // If all items have been deleted,
// open `v-menu`
if (this.selectedItems.length === 0) {
this.isMenuActive = true;
} else {
this.isMenuActive = false;
}
this.selectedIndex = -1;
},
onClick: function onClick(e) {
if (!this.isInteractive) return;
if (!this.isAppendInner(e.target)) {
this.isMenuActive = true;
}
if (!this.isFocused) {
this.isFocused = true;
this.$emit('focus');
}
this.$emit('click', e);
},
onEscDown: function onEscDown(e) {
e.preventDefault();
if (this.isMenuActive) {
e.stopPropagation();
this.isMenuActive = false;
}
},
onKeyPress: function onKeyPress(e) {
var _this9 = this;
if (this.multiple || !this.isInteractive || this.disableLookup) return;
var KEYBOARD_LOOKUP_THRESHOLD = 1000; // milliseconds
var now = performance.now();
if (now - this.keyboardLookupLastTime > KEYBOARD_LOOKUP_THRESHOLD) {
this.keyboardLookupPrefix = '';
}
this.keyboardLookupPrefix += e.key.toLowerCase();
this.keyboardLookupLastTime = now;
var index = this.allItems.findIndex(function (item) {
var text = (_this9.getText(item) || '').toString();
return text.toLowerCase().startsWith(_this9.keyboardLookupPrefix);
});
var item = this.allItems[index];
if (index !== -1) {
this.lastItem = Math.max(this.lastItem, index + 5);
this.setValue(this.returnObject ? item : this.getValue(item));
this.$nextTick(function () {
return _this9.$refs.menu.getTiles();
});
setTimeout(function () {
return _this9.setMenuIndex(index);
});
}
},
onKeyDown: function onKeyDown(e) {
var _this10 = this;
if (this.isReadonly && e.keyCode !== keyCodes.tab) return;
var keyCode = e.keyCode;
var menu = this.$refs.menu; // If enter, space, open menu
if ([keyCodes.enter, keyCodes.space].includes(keyCode)) this.activateMenu();
this.$emit('keydown', e);
if (!menu) return; // If menu is active, allow default
// listIndex change from menu
if (this.isMenuActive && keyCode !== keyCodes.tab) {
this.$nextTick(function () {
menu.changeListIndex(e);
_this10.$emit('update:list-index', menu.listIndex);
});
} // If menu is not active, up and down can do
// one of 2 things. If multiple, opens the
// menu, if not, will cycle through all
// available options
if (!this.isMenuActive && [keyCodes.up, keyCodes.down].includes(keyCode)) return this.onUpDown(e); // If escape deactivate the menu
if (keyCode === keyCodes.esc) return this.onEscDown(e); // If tab - select item or close menu
if (keyCode === keyCodes.tab) return this.onTabDown(e); // If space preventDefault
if (keyCode === keyCodes.space) return this.onSpaceDown(e);
},
onMenuActiveChange: function onMenuActiveChange(val) {
// If menu is closing and mulitple
// or menuIndex is already set
// skip menu index recalculation
if (this.multiple && !val || this.getMenuIndex() > -1) return;
var menu = this.$refs.menu;
if (!menu || !this.isDirty) return; // When menu opens, set index of first active item
for (var i = 0; i < menu.tiles.length; i++) {
if (menu.tiles[i].getAttribute('aria-selected') === 'true') {
this.setMenuIndex(i);
break;
}
}
},
onMouseUp: function onMouseUp(e) {
var _this11 = this;
if (this.hasMouseDown && e.which !== 3 && this.isInteractive) {
// If append inner is present
// and the target is itself
// or inside, toggle menu
if (this.isAppendInner(e.target)) {
this.$nextTick(function () {
return _this11.isMenuActive = !_this11.isMenuActive;
}); // If user is clicking in the container
// and field is enclosed, activate it
} else if (this.isEnclosed) {
this.isMenuActive = true;
}
}
VTextField_VTextField.options.methods.onMouseUp.call(this, e);
},
onScroll: function onScroll() {
var _this12 = this;
if (!this.isMenuActive) {
requestAnimationFrame(function () {
return _this12.getContent().scrollTop = 0;
});
} else {
if (this.lastItem > this.computedItems.length) return;
var showMoreItems = this.getContent().scrollHeight - (this.getContent().scrollTop + this.getContent().clientHeight) < 200;
if (showMoreItems) {
this.lastItem += 20;
}
}
},
onSpaceDown: function onSpaceDown(e) {
e.preventDefault();
},
onTabDown: function onTabDown(e) {
var menu = this.$refs.menu;
if (!menu) return;
var activeTile = menu.activeTile; // An item that is selected by
// menu-index should toggled
if (!this.multiple && activeTile && this.isMenuActive) {
e.preventDefault();
e.stopPropagation();
activeTile.click();
} else {
// If we make it here,
// the user has no selected indexes
// and is probably tabbing out
this.blur(e);
}
},
onUpDown: function onUpDown(e) {
var menu = this.$refs.menu;
if (!menu) return;
e.preventDefault(); // Multiple selects do not cycle their value
// when pressing up or down, instead activate
// the menu
if (this.multiple) return this.activateMenu();
var keyCode = e.keyCode; // Cycle through available values to achieve
// select native behavior
menu.isBooted = true;
window.requestAnimationFrame(function () {
menu.getTiles();
keyCodes.up === keyCode ? menu.prevTile() : menu.nextTile();
menu.activeTile && menu.activeTile.click();
});
},
selectItem: function selectItem(item) {
var _this13 = this;
if (!this.multiple) {
this.setValue(this.returnObject ? item : this.getValue(item));
this.isMenuActive = false;
} else {
var internalValue = (this.internalValue || []).slice();
var i = this.findExistingIndex(item);
i !== -1 ? internalValue.splice(i, 1) : internalValue.push(item);
this.setValue(internalValue.map(function (i) {
return _this13.returnObject ? i : _this13.getValue(i);
})); // When selecting multiple
// adjust menu after each
// selection
this.$nextTick(function () {
_this13.$refs.menu && _this13.$refs.menu.updateDimensions();
}); // We only need to reset list index for multiple
// to keep highlight when an item is toggled
// on and off
if (!this.multiple) return;
var listIndex = this.getMenuIndex();
this.setMenuIndex(-1); // There is no item to re-highlight
// when selections are hidden
if (this.hideSelected) return;
this.$nextTick(function () {
return _this13.setMenuIndex(listIndex);
});
}
},
setMenuIndex: function setMenuIndex(index) {
this.$refs.menu && (this.$refs.menu.listIndex = index);
},
setSelectedItems: function setSelectedItems() {
var _this14 = this;
var selectedItems = [];
var values = !this.multiple || !Array.isArray(this.internalValue) ? [this.internalValue] : this.internalValue;
var _iterator = _createForOfIteratorHelper(values),
_step;
try {
var _loop = function _loop() {
var value = _step.value;
var index = _this14.allItems.findIndex(function (v) {
return _this14.valueComparator(_this14.getValue(v), _this14.getValue(value));
});
if (index > -1) {
selectedItems.push(_this14.allItems[index]);
}
};
for (_iterator.s(); !(_step = _iterator.n()).done;) {
_loop();
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
this.selectedItems = selectedItems;
},
setValue: function setValue(value) {
var oldValue = this.internalValue;
this.internalValue = value;
value !== oldValue && this.$emit('change', value);
},
isAppendInner: function isAppendInner(target) {
// return true if append inner is present
// and the target is itself or inside
var appendInner = this.$refs['append-inner'];
return appendInner && (appendInner === target || appendInner.contains(target));
}
}
}));
// CONCATENATED MODULE: ./src/components/SelectedPolygon.vue
/* normalize component */
var component = normalizeComponent(
components_SelectedPolygonvue_type_script_lang_js_,
SelectedPolygonvue_type_template_id_a8f85b74_render,
SelectedPolygonvue_type_template_id_a8f85b74_staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var SelectedPolygon = (component.exports);
/* vuetify-loader */
installComponents_default()(component, {VBtn: VBtn_VBtn,VCard: VCard_VCard,VSelect: VSelect_VSelect,VTextField: VTextField_VTextField})
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Polygons.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// import MessagePopup from '@/components/message.vue'
/* harmony default export */ var Polygonsvue_type_script_lang_js_ = ({
name: 'Polygons',
components: {
// MessagePopup,
SelectedPolygon: SelectedPolygon
},
props: ['host', 'apiKey', 'credentials'],
data: function data() {
return {
production: production(),
container: null,
map: null,
selectedPolygonId: null,
coordinates: null,
indexes: {},
selectedMarkerIndex: null,
selectedMarkerCoordinates: null,
showButton: true,
newPolygon: false,
remove: false,
save: false,
// progress: false,
testMode: location.origin !== 'https://dka.portal.dgtek.net'
};
},
computed: {
drawingModeAvailable: function drawingModeAvailable() {
return !!this.map && !this.map.drawingMode && !this.selectedPolygonId;
},
polygonType: {
get: function get() {
return localStorage.getFeatureType(this.selectedPolygonId);
},
set: function set(val) {
localStorage.updateFeatureType(this.selectedPolygonId, val);
}
}
},
watch: {
selectedMarkerCoordinates: {
deep: true,
handler: function handler(val) {
if (!val || !this.selectedMarkerIndex) return;
localStorage.updateMarkerCoordinates(this.selectedPolygonId, this.selectedMarkerIndex, val.map(function (item) {
return parseFloat(item);
}));
}
},
selectedMarkerIndex: function selectedMarkerIndex(val) {
if (typeof val !== 'number') this.container.dispatchEvent(new Event('hide-all-markers'));else this.container.dispatchEvent(Object.assign(new Event('show-marker'), {
markerIndex: val
}));
},
newPolygon: function newPolygon(val) {
if (!val) return;
this.map.switchToDrawingMode();
this.newPolygon = false;
},
remove: function remove(val) {
if (!val) return;
this.deletePolygon();
}
},
methods: {
restoreFromProd: function restoreFromProd() {
this.testMode && restore();
localStorage.clear();
this.getData();
},
getData: function getData() {
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var promises;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
promises = endpoints.map(function (endpoint) {
return getPolygonsByType(endpoint);
});
_context.next = 3;
return Promise.all(promises);
case 3:
window.dispatchEvent(new Event('polygons-data-ready'));
case 4:
case "end":
return _context.stop();
}
}
}, _callee);
}))();
},
selectedPolygonCallback: function selectedPolygonCallback(event) {
if (!event.polygonId) return;
this.selectedPolygonId = event.polygonId;
this.coordinates = localStorage.getFeatureCoordinates(this.selectedPolygonId);
},
markerPositionChangedHandler: function markerPositionChangedHandler(event) {
this.coordinates[event.details.markerIndex] = event.details.markerCoordinates;
this.selectedMarkerIndex = event.details.markerIndex;
this.selectedMarkerCoordinates = event.details.markerCoordinates;
},
emptySpaceClick: function emptySpaceClick(event) {
this.selectedPolygonId = undefined;
},
deletePolygon: function deletePolygon() {
var type = remove_polygon_removePolygon(this.selectedPolygonId);
this.map.removePolygon(type, this.selectedPolygonId);
localStorage.removeFeatureById(this.selectedPolygonId);
this.selectedPolygonId = undefined;
this.remove = false;
},
initMap: function initMap() {
var _this = this;
window.removeEventListener('polygons-data-ready', this.initMap);
this.container = getContainer();
this.map = new map({
container: this.container,
width: window.innerWidth / 2,
height: 550,
colors: {
ServiceAvailable: '#090',
BuildCommenced: '#000',
ComingSoon: '#fa0'
},
center: {
lat: -37.8357725,
lng: 144.9738764
}
});
window.addEventListener('polygon-id-changed', this.map.changePolygonId.bind(this.map));
var callbacks = {
'polygon-selected': this.selectedPolygonCallback,
'polygon-type-changed': this.map.changePolygonType.bind(this.map),
'marker-coordinates-changed': this.map.changeMarkerCoordinates.bind(this.map),
'marker-position-changed': this.markerPositionChangedHandler.bind(this),
'show-marker': this.map.showMarker.bind(this.map),
'empty-field-click': this.emptySpaceClick,
'drawing-mode-on': this.switchDrawingMode.bind(this),
'drawing-mode-off': this.switchDrawingMode.bind(this)
};
Object.keys(callbacks).forEach(function (event) {
return _this.container.addEventListener(event, callbacks[event]);
});
},
switchDrawingMode: function switchDrawingMode(event) {
this.drawingMode = event.type === 'drawing-mode-on';
},
saveData: function saveData() {
var _this2 = this;
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_this2.$root.$emit('progress-event', true);
_context2.next = 3;
return save();
case 3:
_this2.$root.$emit('progress-event', false);
_this2.$root.$emit('open-message-popup', {
messageType: 'Polygons',
messageText: 'Polygons data saved'
});
case 5:
case "end":
return _context2.stop();
}
}
}, _callee2);
}))();
}
},
beforeMount: function beforeMount() {
hostHandler(this.host);
apiKeyHandler(this.apiKey);
credentialsHandler(this.credentials);
localStorage.clear();
this.getData();
},
mounted: function mounted() {
window.addEventListener('polygons-data-ready', this.initMap);
}
});
// CONCATENATED MODULE: ./src/components/Polygons.vue?vue&type=script&lang=js&
/* harmony default export */ var components_Polygonsvue_type_script_lang_js_ = (Polygonsvue_type_script_lang_js_);
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VCard/index.js
var VCardActions = createSimpleFunctional('v-card__actions');
var VCardSubtitle = createSimpleFunctional('v-card__subtitle');
var VCardText = createSimpleFunctional('v-card__text');
var VCardTitle = createSimpleFunctional('v-card__title');
/* harmony default export */ var components_VCard = ({
$_vuetify_subcomponents: {
VCard: VCard_VCard,
VCardActions: VCardActions,
VCardSubtitle: VCardSubtitle,
VCardText: VCardText,
VCardTitle: VCardTitle
}
});
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VGrid/VGrid.sass
var VGrid = __webpack_require__("4b85");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VGrid/VCol.js
// no xs
var breakpoints = ['sm', 'md', 'lg', 'xl'];
var breakpointProps = function () {
return breakpoints.reduce(function (props, val) {
props[val] = {
type: [Boolean, String, Number],
default: false
};
return props;
}, {});
}();
var offsetProps = function () {
return breakpoints.reduce(function (props, val) {
props['offset' + upperFirst(val)] = {
type: [String, Number],
default: null
};
return props;
}, {});
}();
var orderProps = function () {
return breakpoints.reduce(function (props, val) {
props['order' + upperFirst(val)] = {
type: [String, Number],
default: null
};
return props;
}, {});
}();
var propMap = {
col: Object.keys(breakpointProps),
offset: Object.keys(offsetProps),
order: Object.keys(orderProps)
};
function breakpointClass(type, prop, val) {
var className = type;
if (val == null || val === false) {
return undefined;
}
if (prop) {
var breakpoint = prop.replace(type, '');
className += "-".concat(breakpoint);
} // Handling the boolean style prop when accepting [Boolean, String, Number]
// means Vue will not convert <v-col sm></v-col> to sm: true for us.
// Since the default is false, an empty string indicates the prop's presence.
if (type === 'col' && (val === '' || val === true)) {
// .col-md
return className.toLowerCase();
} // .order-md-6
className += "-".concat(val);
return className.toLowerCase();
}
var cache = new Map();
/* harmony default export */ var VCol = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'v-col',
functional: true,
props: _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
cols: {
type: [Boolean, String, Number],
default: false
}
}, breakpointProps), {}, {
offset: {
type: [String, Number],
default: null
}
}, offsetProps), {}, {
order: {
type: [String, Number],
default: null
}
}, orderProps), {}, {
alignSelf: {
type: String,
default: null,
validator: function validator(str) {
return ['auto', 'start', 'end', 'center', 'baseline', 'stretch'].includes(str);
}
},
tag: {
type: String,
default: 'div'
}
}),
render: function render(h, _ref) {
var props = _ref.props,
data = _ref.data,
children = _ref.children,
parent = _ref.parent;
// Super-fast memoization based on props, 5x faster than JSON.stringify
var cacheKey = '';
for (var prop in props) {
cacheKey += String(props[prop]);
}
var classList = cache.get(cacheKey);
if (!classList) {
(function () {
var _classList$push;
classList = []; // Loop through `col`, `offset`, `order` breakpoint props
var type;
for (type in propMap) {
propMap[type].forEach(function (prop) {
var value = props[prop];
var className = breakpointClass(type, prop, value);
if (className) classList.push(className);
});
}
var hasColClasses = classList.some(function (className) {
return className.startsWith('col-');
});
classList.push((_classList$push = {
// Default to .col if no other col-{bp}-* classes generated nor `cols` specified.
col: !hasColClasses || !props.cols
}, _defineProperty(_classList$push, "col-".concat(props.cols), props.cols), _defineProperty(_classList$push, "offset-".concat(props.offset), props.offset), _defineProperty(_classList$push, "order-".concat(props.order), props.order), _defineProperty(_classList$push, "align-self-".concat(props.alignSelf), props.alignSelf), _classList$push));
cache.set(cacheKey, classList);
})();
}
return h(props.tag, mergeData(data, {
class: classList
}), children);
}
}));
// EXTERNAL MODULE: ./node_modules/vuetify/src/components/VGrid/_grid.sass
var _grid = __webpack_require__("20f6");
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VGrid/grid.js
// Types
function grid_VGrid(name) {
/* @vue/component */
return external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: "v-".concat(name),
functional: true,
props: {
id: String,
tag: {
type: String,
default: 'div'
}
},
render: function render(h, _ref) {
var props = _ref.props,
data = _ref.data,
children = _ref.children;
data.staticClass = "".concat(name, " ").concat(data.staticClass || '').trim();
var attrs = data.attrs;
if (attrs) {
// reset attrs to extract utility clases like pa-3
data.attrs = {};
var classes = Object.keys(attrs).filter(function (key) {
// TODO: Remove once resolved
// https://github.com/vuejs/vue/issues/7841
if (key === 'slot') return false;
var value = attrs[key]; // add back data attributes like data-test="foo" but do not
// add them as classes
if (key.startsWith('data-')) {
data.attrs[key] = value;
return false;
}
return value || typeof value === 'string';
});
if (classes.length) data.staticClass += " ".concat(classes.join(' '));
}
if (props.id) {
data.domProps = data.domProps || {};
data.domProps.id = props.id;
}
return h(props.tag, data, children);
}
});
}
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VGrid/VContainer.js
/* @vue/component */
/* harmony default export */ var VContainer = (grid_VGrid('container').extend({
name: 'v-container',
functional: true,
props: {
id: String,
tag: {
type: String,
default: 'div'
},
fluid: {
type: Boolean,
default: false
}
},
render: function render(h, _ref) {
var props = _ref.props,
data = _ref.data,
children = _ref.children;
var classes;
var attrs = data.attrs;
if (attrs) {
// reset attrs to extract utility clases like pa-3
data.attrs = {};
classes = Object.keys(attrs).filter(function (key) {
// TODO: Remove once resolved
// https://github.com/vuejs/vue/issues/7841
if (key === 'slot') return false;
var value = attrs[key]; // add back data attributes like data-test="foo" but do not
// add them as classes
if (key.startsWith('data-')) {
data.attrs[key] = value;
return false;
}
return value || typeof value === 'string';
});
}
if (props.id) {
data.domProps = data.domProps || {};
data.domProps.id = props.id;
}
return h(props.tag, mergeData(data, {
staticClass: 'container',
class: Array({
'container--fluid': props.fluid
}).concat(classes || [])
}), children);
}
}));
// CONCATENATED MODULE: ./node_modules/vuetify/lib/components/VGrid/VRow.js
// no xs
var VRow_breakpoints = ['sm', 'md', 'lg', 'xl'];
var ALIGNMENT = ['start', 'end', 'center'];
function makeProps(prefix, def) {
return VRow_breakpoints.reduce(function (props, val) {
props[prefix + upperFirst(val)] = def();
return props;
}, {});
}
var alignValidator = function alignValidator(str) {
return [].concat(ALIGNMENT, ['baseline', 'stretch']).includes(str);
};
var alignProps = makeProps('align', function () {
return {
type: String,
default: null,
validator: alignValidator
};
});
var justifyValidator = function justifyValidator(str) {
return [].concat(ALIGNMENT, ['space-between', 'space-around']).includes(str);
};
var justifyProps = makeProps('justify', function () {
return {
type: String,
default: null,
validator: justifyValidator
};
});
var alignContentValidator = function alignContentValidator(str) {
return [].concat(ALIGNMENT, ['space-between', 'space-around', 'stretch']).includes(str);
};
var alignContentProps = makeProps('alignContent', function () {
return {
type: String,
default: null,
validator: alignContentValidator
};
});
var VRow_propMap = {
align: Object.keys(alignProps),
justify: Object.keys(justifyProps),
alignContent: Object.keys(alignContentProps)
};
var classMap = {
align: 'align',
justify: 'justify',
alignContent: 'align-content'
};
function VRow_breakpointClass(type, prop, val) {
var className = classMap[type];
if (val == null) {
return undefined;
}
if (prop) {
// alignSm -> Sm
var breakpoint = prop.replace(type, '');
className += "-".concat(breakpoint);
} // .align-items-sm-center
className += "-".concat(val);
return className.toLowerCase();
}
var VRow_cache = new Map();
/* harmony default export */ var VRow = (external_commonjs_vue_commonjs2_vue_root_Vue_default.a.extend({
name: 'v-row',
functional: true,
props: _objectSpread2(_objectSpread2(_objectSpread2({
tag: {
type: String,
default: 'div'
},
dense: Boolean,
noGutters: Boolean,
align: {
type: String,
default: null,
validator: alignValidator
}
}, alignProps), {}, {
justify: {
type: String,
default: null,
validator: justifyValidator
}
}, justifyProps), {}, {
alignContent: {
type: String,
default: null,
validator: alignContentValidator
}
}, alignContentProps),
render: function render(h, _ref) {
var props = _ref.props,
data = _ref.data,
children = _ref.children;
// Super-fast memoization based on props, 5x faster than JSON.stringify
var cacheKey = '';
for (var prop in props) {
cacheKey += String(props[prop]);
}
var classList = VRow_cache.get(cacheKey);
if (!classList) {
(function () {
var _classList$push;
classList = []; // Loop through `align`, `justify`, `alignContent` breakpoint props
var type;
for (type in VRow_propMap) {
VRow_propMap[type].forEach(function (prop) {
var value = props[prop];
var className = VRow_breakpointClass(type, prop, value);
if (className) classList.push(className);
});
}
classList.push((_classList$push = {
'no-gutters': props.noGutters,
'row--dense': props.dense
}, _defineProperty(_classList$push, "align-".concat(props.align), props.align), _defineProperty(_classList$push, "justify-".concat(props.justify), props.justify), _defineProperty(_classList$push, "align-content-".concat(props.alignContent), props.alignContent), _classList$push));
VRow_cache.set(cacheKey, classList);
})();
}
return h(props.tag, mergeData(data, {
staticClass: 'row',
class: classList
}), children);
}
}));
// CONCATENATED MODULE: ./src/components/Polygons.vue
/* normalize component */
var Polygons_component = normalizeComponent(
components_Polygonsvue_type_script_lang_js_,
Polygonsvue_type_template_id_de6259cc_scoped_true_render,
staticRenderFns,
false,
null,
"de6259cc",
null
)
/* harmony default export */ var Polygons = (Polygons_component.exports);
/* vuetify-loader */
installComponents_default()(Polygons_component, {VBtn: VBtn_VBtn,VCard: VCard_VCard,VCardText: VCardText,VCol: VCol,VContainer: VContainer,VIcon: components_VIcon_VIcon,VRow: VRow})
// CONCATENATED MODULE: ./src/components/polygons-index.js
var Components = {
Polygons: Polygons
};
Object.keys(Components).forEach(function (name) {
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.component(name, Components[name]);
});
/* harmony default export */ var polygons_index = (Components);
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (polygons_index);
/***/ }),
/***/ "fb6a":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("23e7");
var isObject = __webpack_require__("861d");
var isArray = __webpack_require__("e8b5");
var toAbsoluteIndex = __webpack_require__("23cb");
var toLength = __webpack_require__("50c4");
var toIndexedObject = __webpack_require__("fc6a");
var createProperty = __webpack_require__("8418");
var wellKnownSymbol = __webpack_require__("b622");
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
var arrayMethodUsesToLength = __webpack_require__("ae40");
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
var USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });
var SPECIES = wellKnownSymbol('species');
var nativeSlice = [].slice;
var max = Math.max;
// `Array.prototype.slice` method
// https://tc39.github.io/ecma262/#sec-array.prototype.slice
// fallback for not array-like ES3 strings and DOM objects
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
slice: function slice(start, end) {
var O = toIndexedObject(this);
var length = toLength(O.length);
var k = toAbsoluteIndex(start, length);
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
var Constructor, result, n;
if (isArray(O)) {
Constructor = O.constructor;
// cross-realm fallback
if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {
Constructor = undefined;
} else if (isObject(Constructor)) {
Constructor = Constructor[SPECIES];
if (Constructor === null) Constructor = undefined;
}
if (Constructor === Array || Constructor === undefined) {
return nativeSlice.call(O, k, fin);
}
}
result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
result.length = n;
return result;
}
});
/***/ }),
/***/ "fc6a":
/***/ (function(module, exports, __webpack_require__) {
// toObject with fallback for non-array-like ES3 strings
var IndexedObject = __webpack_require__("44ad");
var requireObjectCoercible = __webpack_require__("1d80");
module.exports = function (it) {
return IndexedObject(requireObjectCoercible(it));
};
/***/ }),
/***/ "fdbc":
/***/ (function(module, exports) {
// iterable DOM collections
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
module.exports = {
CSSRuleList: 0,
CSSStyleDeclaration: 0,
CSSValueList: 0,
ClientRectList: 0,
DOMRectList: 0,
DOMStringList: 0,
DOMTokenList: 1,
DataTransferItemList: 0,
FileList: 0,
HTMLAllCollection: 0,
HTMLCollection: 0,
HTMLFormElement: 0,
HTMLSelectElement: 0,
MediaList: 0,
MimeTypeArray: 0,
NamedNodeMap: 0,
NodeList: 1,
PaintRequestList: 0,
Plugin: 0,
PluginArray: 0,
SVGLengthList: 0,
SVGNumberList: 0,
SVGPathSegList: 0,
SVGPointList: 0,
SVGStringList: 0,
SVGTransformList: 0,
SourceBufferList: 0,
StyleSheetList: 0,
TextTrackCueList: 0,
TextTrackList: 0,
TouchList: 0
};
/***/ }),
/***/ "fdbf":
/***/ (function(module, exports, __webpack_require__) {
var NATIVE_SYMBOL = __webpack_require__("4930");
module.exports = NATIVE_SYMBOL
// eslint-disable-next-line no-undef
&& !Symbol.sham
// eslint-disable-next-line no-undef
&& typeof Symbol.iterator == 'symbol';
/***/ }),
/***/ "fea9":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
module.exports = global.Promise;
/***/ })
/******/ });
//# sourceMappingURL=dgtek-portal-polygons-editor.common.js.map