@kissmy/vue-hotel-datepicker
Version:
A responsive date range picker for Vue.js that displays the number of nights selected and allow several useful options like custom check-in/check-out rules, localization support and more
8,204 lines • 272 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 = "739c");
/******/ })
/************************************************************************/
/******/ ({
/***/ "006d":
/***/ (function(module, exports) {
exports.f = Object.getOwnPropertySymbols;
/***/ }),
/***/ "00d2":
/***/ (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);
};
/***/ }),
/***/ "019e":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("38e0");
var fails = __webpack_require__("87ef");
var toIndexedObject = __webpack_require__("ebce");
var nativeGetOwnPropertyDescriptor = __webpack_require__("eacb").f;
var DESCRIPTORS = __webpack_require__("afee");
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);
}
});
/***/ }),
/***/ "0270":
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
/***/ "02a3":
/***/ (function(module, exports) {
// IE8- don't enum bug keys
module.exports = [
'constructor',
'hasOwnProperty',
'isPrototypeOf',
'propertyIsEnumerable',
'toLocaleString',
'toString',
'valueOf'
];
/***/ }),
/***/ "036c":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var regexpFlags = __webpack_require__("adfa");
var stickyHelpers = __webpack_require__("923d");
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;
/***/ }),
/***/ "054c":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var global = __webpack_require__("e924");
var isForced = __webpack_require__("4733");
var redefine = __webpack_require__("b85f");
var InternalMetadataModule = __webpack_require__("800a");
var iterate = __webpack_require__("b99c");
var anInstance = __webpack_require__("0994");
var isObject = __webpack_require__("c7eb");
var fails = __webpack_require__("87ef");
var checkCorrectnessOfIteration = __webpack_require__("796d");
var setToStringTag = __webpack_require__("9c17");
var inheritIfRequired = __webpack_require__("6916");
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;
};
/***/ }),
/***/ "084e":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var _node_modules_pnpm_mini_css_extract_plugin_0_9_0_webpack_4_44_1_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_44_1_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_9_3_b61fd53126d8a76b25cc5244d186282f_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_sass_loader_8_0_2_sass_1_26_10_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_index_scss_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ead5");
/* harmony import */ var _node_modules_pnpm_mini_css_extract_plugin_0_9_0_webpack_4_44_1_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_44_1_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_9_3_b61fd53126d8a76b25cc5244d186282f_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_sass_loader_8_0_2_sass_1_26_10_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_index_scss_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_pnpm_mini_css_extract_plugin_0_9_0_webpack_4_44_1_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_44_1_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_9_3_b61fd53126d8a76b25cc5244d186282f_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_sass_loader_8_0_2_sass_1_26_10_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_index_scss_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_pnpm_mini_css_extract_plugin_0_9_0_webpack_4_44_1_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_pnpm_css_loader_3_6_0_webpack_4_44_1_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_pnpm_vue_loader_15_9_3_b61fd53126d8a76b25cc5244d186282f_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_pnpm_postcss_loader_3_0_0_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_pnpm_sass_loader_8_0_2_sass_1_26_10_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_index_scss_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ "0994":
/***/ (function(module, exports) {
module.exports = function (it, Constructor, name) {
if (!(it instanceof Constructor)) {
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
} return it;
};
/***/ }),
/***/ "0ac2":
/***/ (function(module, exports, __webpack_require__) {
var requireObjectCoercible = __webpack_require__("cf8d");
var whitespaces = __webpack_require__("560f");
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)
};
/***/ }),
/***/ "0d2e":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("afee");
var definePropertyModule = __webpack_require__("d096");
var anObject = __webpack_require__("b04a");
var objectKeys = __webpack_require__("decd");
// `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;
};
/***/ }),
/***/ "11c4":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// `Symbol.prototype.description` getter
// https://tc39.github.io/ecma262/#sec-symbol.prototype.description
var $ = __webpack_require__("38e0");
var DESCRIPTORS = __webpack_require__("afee");
var global = __webpack_require__("e924");
var has = __webpack_require__("a04b");
var isObject = __webpack_require__("c7eb");
var defineProperty = __webpack_require__("d096").f;
var copyConstructorProperties = __webpack_require__("9ae9");
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
});
}
/***/ }),
/***/ "1652":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("38e0");
var from = __webpack_require__("ec5f");
var checkCorrectnessOfIteration = __webpack_require__("796d");
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
});
/***/ }),
/***/ "1a06":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var global = __webpack_require__("e924");
var getBuiltIn = __webpack_require__("7b26");
var IS_PURE = __webpack_require__("ab27");
var DESCRIPTORS = __webpack_require__("afee");
var NATIVE_SYMBOL = __webpack_require__("3bca");
var USE_SYMBOL_AS_UID = __webpack_require__("5748");
var fails = __webpack_require__("87ef");
var has = __webpack_require__("a04b");
var isArray = __webpack_require__("8346");
var isObject = __webpack_require__("c7eb");
var anObject = __webpack_require__("b04a");
var toObject = __webpack_require__("39d3");
var toIndexedObject = __webpack_require__("ebce");
var toPrimitive = __webpack_require__("2523");
var createPropertyDescriptor = __webpack_require__("6559");
var nativeObjectCreate = __webpack_require__("416b");
var objectKeys = __webpack_require__("decd");
var getOwnPropertyNamesModule = __webpack_require__("9457");
var getOwnPropertyNamesExternal = __webpack_require__("cb6f");
var getOwnPropertySymbolsModule = __webpack_require__("006d");
var getOwnPropertyDescriptorModule = __webpack_require__("eacb");
var definePropertyModule = __webpack_require__("d096");
var propertyIsEnumerableModule = __webpack_require__("5108");
var createNonEnumerableProperty = __webpack_require__("3190");
var redefine = __webpack_require__("b85f");
var shared = __webpack_require__("5807");
var sharedKey = __webpack_require__("f22e");
var hiddenKeys = __webpack_require__("6377");
var uid = __webpack_require__("2a07");
var wellKnownSymbol = __webpack_require__("dc77");
var wrappedWellKnownSymbolModule = __webpack_require__("d91a");
var defineWellKnownSymbol = __webpack_require__("2991");
var setToStringTag = __webpack_require__("9c17");
var InternalStateModule = __webpack_require__("b893");
var $forEach = __webpack_require__("33e4").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;
/***/ }),
/***/ "2523":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("c7eb");
// `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");
};
/***/ }),
/***/ "2991":
/***/ (function(module, exports, __webpack_require__) {
var path = __webpack_require__("e2e6");
var has = __webpack_require__("a04b");
var wrappedWellKnownSymbolModule = __webpack_require__("d91a");
var defineProperty = __webpack_require__("d096").f;
module.exports = function (NAME) {
var Symbol = path.Symbol || (path.Symbol = {});
if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
value: wrappedWellKnownSymbolModule.f(NAME)
});
};
/***/ }),
/***/ "2a07":
/***/ (function(module, exports) {
var id = 0;
var postfix = Math.random();
module.exports = function (key) {
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
};
/***/ }),
/***/ "308e":
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__("7a50");
var Iterators = __webpack_require__("0270");
var wellKnownSymbol = __webpack_require__("dc77");
var ITERATOR = wellKnownSymbol('iterator');
module.exports = function (it) {
if (it != undefined) return it[ITERATOR]
|| it['@@iterator']
|| Iterators[classof(it)];
};
/***/ }),
/***/ "3135":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("38e0");
var DESCRIPTORS = __webpack_require__("afee");
var ownKeys = __webpack_require__("c892");
var toIndexedObject = __webpack_require__("ebce");
var getOwnPropertyDescriptorModule = __webpack_require__("eacb");
var createProperty = __webpack_require__("b668");
// `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;
}
});
/***/ }),
/***/ "3190":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("afee");
var definePropertyModule = __webpack_require__("d096");
var createPropertyDescriptor = __webpack_require__("6559");
module.exports = DESCRIPTORS ? function (object, key, value) {
return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
/***/ }),
/***/ "31dc":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("87ef");
var classof = __webpack_require__("924e");
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;
/***/ }),
/***/ "3363":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var charAt = __webpack_require__("bdf4").charAt;
var InternalStateModule = __webpack_require__("b893");
var defineIterator = __webpack_require__("bd2a");
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 };
});
/***/ }),
/***/ "3399":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var DOMIterables = __webpack_require__("9959");
var ArrayIteratorMethods = __webpack_require__("d299");
var createNonEnumerableProperty = __webpack_require__("3190");
var wellKnownSymbol = __webpack_require__("dc77");
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];
}
}
}
}
/***/ }),
/***/ "33e4":
/***/ (function(module, exports, __webpack_require__) {
var bind = __webpack_require__("bf7c");
var IndexedObject = __webpack_require__("31dc");
var toObject = __webpack_require__("39d3");
var toLength = __webpack_require__("ba98");
var arraySpeciesCreate = __webpack_require__("eb77");
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)
};
/***/ }),
/***/ "374d":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var DESCRIPTORS = __webpack_require__("afee");
var global = __webpack_require__("e924");
var isForced = __webpack_require__("4733");
var redefine = __webpack_require__("b85f");
var has = __webpack_require__("a04b");
var classof = __webpack_require__("924e");
var inheritIfRequired = __webpack_require__("6916");
var toPrimitive = __webpack_require__("2523");
var fails = __webpack_require__("87ef");
var create = __webpack_require__("416b");
var getOwnPropertyNames = __webpack_require__("9457").f;
var getOwnPropertyDescriptor = __webpack_require__("eacb").f;
var defineProperty = __webpack_require__("d096").f;
var trim = __webpack_require__("0ac2").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);
}
/***/ }),
/***/ "38e0":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var getOwnPropertyDescriptor = __webpack_require__("eacb").f;
var createNonEnumerableProperty = __webpack_require__("3190");
var redefine = __webpack_require__("b85f");
var setGlobal = __webpack_require__("8ee9");
var copyConstructorProperties = __webpack_require__("9ae9");
var isForced = __webpack_require__("4733");
/*
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);
}
};
/***/ }),
/***/ "391e":
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__("924e");
var regexpExec = __webpack_require__("036c");
// `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);
};
/***/ }),
/***/ "39d3":
/***/ (function(module, exports, __webpack_require__) {
var requireObjectCoercible = __webpack_require__("cf8d");
// `ToObject` abstract operation
// https://tc39.github.io/ecma262/#sec-toobject
module.exports = function (argument) {
return Object(requireObjectCoercible(argument));
};
/***/ }),
/***/ "3bca":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("87ef");
module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
// Chrome 38 Symbol has incorrect toString conversion
// eslint-disable-next-line no-undef
return !String(Symbol());
});
/***/ }),
/***/ "3dd5":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var $filter = __webpack_require__("33e4").filter;
var arrayMethodHasSpeciesSupport = __webpack_require__("4c7a");
var arrayMethodUsesToLength = __webpack_require__("effa");
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);
}
});
/***/ }),
/***/ "416b":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("b04a");
var defineProperties = __webpack_require__("0d2e");
var enumBugKeys = __webpack_require__("02a3");
var hiddenKeys = __webpack_require__("6377");
var html = __webpack_require__("46d3");
var documentCreateElement = __webpack_require__("ef77");
var sharedKey = __webpack_require__("f22e");
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);
};
/***/ }),
/***/ "4223":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var TO_STRING_TAG_SUPPORT = __webpack_require__("e721");
var classof = __webpack_require__("7a50");
// `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) + ']';
};
/***/ }),
/***/ "4243":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// TODO: Remove from `core-js@4` since it's moved to entry points
__webpack_require__("8d8a");
var redefine = __webpack_require__("b85f");
var fails = __webpack_require__("87ef");
var wellKnownSymbol = __webpack_require__("dc77");
var regexpExec = __webpack_require__("036c");
var createNonEnumerableProperty = __webpack_require__("3190");
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);
};
/***/ }),
/***/ "452e":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("afee");
var defineProperty = __webpack_require__("d096").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 '';
}
}
});
}
/***/ }),
/***/ "46d3":
/***/ (function(module, exports, __webpack_require__) {
var getBuiltIn = __webpack_require__("7b26");
module.exports = getBuiltIn('document', 'documentElement');
/***/ }),
/***/ "4733":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("87ef");
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;
/***/ }),
/***/ "483d":
/***/ (function(module, exports, __webpack_require__) {
var isRegExp = __webpack_require__("ab8d");
module.exports = function (it) {
if (isRegExp(it)) {
throw TypeError("The method doesn't accept regular expressions");
} return it;
};
/***/ }),
/***/ "4a51":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var collection = __webpack_require__("054c");
var collectionStrong = __webpack_require__("6665");
// `Set` constructor
// https://tc39.github.io/ecma262/#sec-set-objects
module.exports = collection('Set', function (init) {
return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };
}, collectionStrong);
/***/ }),
/***/ "4c7a":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("87ef");
var wellKnownSymbol = __webpack_require__("dc77");
var V8_VERSION = __webpack_require__("b431");
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;
});
};
/***/ }),
/***/ "4cc3":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var $map = __webpack_require__("33e4").map;
var arrayMethodHasSpeciesSupport = __webpack_require__("4c7a");
var arrayMethodUsesToLength = __webpack_require__("effa");
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);
}
});
/***/ }),
/***/ "4f10":
/***/ (function(module, exports, __webpack_require__) {
var redefine = __webpack_require__("b85f");
module.exports = function (target, src, options) {
for (var key in src) redefine(target, key, src[key], options);
return target;
};
/***/ }),
/***/ "4f10e":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("dc77");
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;
};
/***/ }),
/***/ "5108":
/***/ (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;
/***/ }),
/***/ "5227":
/***/ (function(module, exports, __webpack_require__) {
var $ = __webpack_require__("38e0");
var toObject = __webpack_require__("39d3");
var nativeKeys = __webpack_require__("decd");
var fails = __webpack_require__("87ef");
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));
}
});
/***/ }),
/***/ "52cf":
/***/ (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;
/***/ }),
/***/ "540f":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("87ef");
module.exports = !fails(function () {
function F() { /* empty */ }
F.prototype.constructor = null;
return Object.getPrototypeOf(new F()) !== F.prototype;
});
/***/ }),
/***/ "560f":
/***/ (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';
/***/ }),
/***/ "5748":
/***/ (function(module, exports, __webpack_require__) {
var NATIVE_SYMBOL = __webpack_require__("3bca");
module.exports = NATIVE_SYMBOL
// eslint-disable-next-line no-undef
&& !Symbol.sham
// eslint-disable-next-line no-undef
&& typeof Symbol.iterator == 'symbol';
/***/ }),
/***/ "5807":
/***/ (function(module, exports, __webpack_require__) {
var IS_PURE = __webpack_require__("ab27");
var store = __webpack_require__("97d2");
(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)'
});
/***/ }),
/***/ "5a44":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getPrototypeOf = __webpack_require__("cdeb");
var createNonEnumerableProperty = __webpack_require__("3190");
var has = __webpack_require__("a04b");
var wellKnownSymbol = __webpack_require__("dc77");
var IS_PURE = __webpack_require__("ab27");
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
};
/***/ }),
/***/ "61f6":
/***/ (function(module, exports, __webpack_require__) {
var toIndexedObject = __webpack_require__("ebce");
var toLength = __webpack_require__("ba98");
var toAbsoluteIndex = __webpack_require__("7ab2");
// `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)
};
/***/ }),
/***/ "6377":
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
/***/ "6387":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("87ef");
module.exports = !fails(function () {
return Object.isExtensible(Object.preventExtensions({}));
});
/***/ }),
/***/ "6466":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("dc77");
var create = __webpack_require__("416b");
var definePropertyModule = __webpack_require__("d096");
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;
};
/***/ }),
/***/ "653f":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("b04a");
var aFunction = __webpack_require__("9648");
var wellKnownSymbol = __webpack_require__("dc77");
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);
};
/***/ }),
/***/ "6559":
/***/ (function(module, exports) {
module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
/***/ }),
/***/ "6665":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var defineProperty = __webpack_require__("d096").f;
var create = __webpack_require__("416b");
var redefineAll = __webpack_require__("4f10");
var bind = __webpack_require__("bf7c");
var anInstance = __webpack_require__("0994");
var iterate = __webpack_require__("b99c");
var defineIterator = __webpack_require__("bd2a");
var setSpecies = __webpack_require__("72dd");
var DESCRIPTORS = __webpack_require__("afee");
var fastKey = __webpack_require__("800a").fastKey;
var InternalStateModule = __webpack_require__("b893");
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);
}
};
/***/ }),
/***/ "6916":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("c7eb");
var setPrototypeOf = __webpack_require__("77c1");
// 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;
};
/***/ }),
/***/ "6c80":
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {/**
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
/** Used as references for various `Number` constants. */
var NAN = 0 / 0;
/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';
/** Used to match leading and trailing whitespace. */
var reTrim = /^\s+|\s+$/g;
/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;
/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;
/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;
/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
nativeMin = Math.min;
/**
* Gets the timestamp of the number of milliseconds that have elapsed since
* the Unix epoch (1 January 1970 00:00:00 UTC).
*
* @static
* @memberOf _
* @since 2.4.0
* @category Date
* @returns {number} Returns the timestamp.
* @example
*
* _.defer(function(stamp) {
* console.log(_.now() - stamp);
* }, _.now());
* // => Logs the number of milliseconds it took for the deferred invocation.
*/
var now = function() {
return root.Date.now();
};
/**
* Creates a debounced function that delays invoking `func` until after `wait`
* milliseconds have elapsed since the last time the debounced function was
* invoked. The debounced function comes with a `cancel` method to cancel
* delayed `func` invocations and a `flush` method to immediately invoke them.
* Provide `options` to indicate whether `func` should be invoked on the
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
* with the last arguments provided to the debounced function. Subsequent
* calls to the debounced function return the result of the last `func`
* invocation.
*
* **Note:** If `leading` and `trailing` options are `true`, `func` is
* invoked on the trailing edge of the timeout only if the debounced function
* is invoked more than once during the `wait` timeout.
*
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
*
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
* for details over the differences between `_.debounce` and `_.throttle`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Function
* @param {Function} func The function to debounce.
* @param {number} [wait=0] The number of milliseconds to delay.
* @param {Object} [options={}] The options object.
* @param {boolean} [options.leading=false]
* Specify invoking on the leading edge of the timeout.
* @param {number} [options.maxWait]
* The maximum time `func` is allowed to be delayed before it's invoked.
* @param {boolean} [options.trailing=true]
* Specify invoking on the trailing edge of the timeout.
* @returns {Function} Returns the new debounced function.
* @example
*
* // Avoid costly calculations while the window size is in flux.
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
*
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
* jQuery(element).on('click', _.debounce(sendMail, 300, {
* 'leading': true,
* 'trailing': false
* }));
*
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
* var source = new EventSource('/stream');
* jQuery(source).on('message', debounced);
*
* // Cancel the trailing debounced invocation.
* jQuery(window).on('popstate', debounced.cancel);
*/
function debounce(func, wait, options) {
var lastArgs,
lastThis,
maxWait,
result,
timerId,
lastCallTime,
lastInvokeTime = 0,
leading = false,
maxing = false,
trailing = true;
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
wait = toNumber(wait) || 0;
if (isObject(options)) {
leading = !!options.leading;
maxing = 'maxWait' in options;
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
trailing = 'trailing' in options ? !!options.trailing : trailing;
}
function invokeFunc(time) {
var args = lastArgs,
thisArg = lastThis;
lastArgs = lastThis = undefined;
lastInvokeTime = time;
result = func.apply(thisArg, args);
return result;
}
function leadingEdge(time) {
// Reset any `maxWait` timer.
lastInvokeTime = time;
// Start the timer for the trailing edge.
timerId = setTimeout(timerExpired, wait);
// Invoke the leading edge.
return leading ? invokeFunc(time) : result;
}
function remainingWait(time) {
var timeSinceLastCall = time - lastCallTime,
timeSinceLastInvoke = time - lastInvokeTime,
result = wait - timeSinceLastCall;
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
}
function shouldInvoke(time) {
var timeSinceLastCall = time - lastCallTime,
timeSinceLastInvoke = time - lastInvokeTime;
// Either this is the first call, activity has stopped and we're at the
// trailing edge, the system time has gone backwards and we're treating
// it as the trailing edge, or we've hit the `maxWait` limit.
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
}
function timerExpired() {
var time = now();
if (shouldInvoke(time)) {
return trailingEdge(time);
}
// Restart the timer.
timerId = setTimeout(timerExpired, remainingWait(time));
}
function trailingEdge(time) {
timerId = undefined;
// Only invoke if we have `lastArgs` which means `func` has been
// debounced at least once.
if (trailing && lastArgs) {
return invokeFunc(time);
}
lastArgs = lastThis = undefined;
return result;
}
function cancel() {
if (timerId !== undefined) {
clearTimeout(timerId);
}
lastInvokeTime = 0;
lastArgs = lastCallTime = lastThis = timerId = undefined;
}
function flush() {
return timerId === undefined ? result : trailingEdge(now());
}
function debounced() {
var time = now(),
isInvoking = shouldInvoke(time);
lastArgs = arguments;
lastThis = this;
lastCallTime = time;
if (isInvoking) {
if (timerId === undefined) {
return leadingEdge(lastCallTime);
}
if (maxing) {
// Handle invocations in a tight loop.
timerId = setTimeout(timerExpired, wait);
return invokeFunc(lastCallTime);
}
}
if (timerId === undefined) {
timerId = setTimeout(timerExpired, wait);
}
return result;
}
debounced.cancel = cancel;
debounced.flush = flush;
return debounced;
}
/**
* Creates a throttled function that only invokes `func` at most once per
* every `wait` milliseconds. The throttled function comes with a `cancel`
* method to cancel delayed `func` invocations and a `flush` method to
* immediately invoke them. Provide `options` to indicate whether `func`
* should be invoked on the leading and/or trailing edge of the `wait`
* timeout. The `func` is invoked with the last arguments provided to the
* throttled function. Subsequent calls to the throttled function return the
* result of the last `func` invocation.
*
* **Note:** If `leading` and `trailing` options are `true`, `func` is
* invoked on the trailing edge of the timeout only if the throttled function
* is invoked more than once during the `wait` timeout.
*
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
*
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
* for details over the differences between `_.throttle` and `_.debounce`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Function
* @param {Function} func The function to throttle.
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
* @param {Object} [options={}] The options object.
* @param {boolean} [options.leading=true]
* Specify invoking on the leading edge of the timeout.
* @param {boolean} [options.trailing=true]
* Specify invoking on the trailing edge of the timeout.
* @returns {Function} Returns the new throttled function.
* @example
*
* // Avoid excessively updating the position while scrolling.
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
*
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
* jQuery(element).on('click', throttled);
*
* // Cancel the trailing throttled invocation.
* jQuery(window).on('popstate', throttled.cancel);
*/
function throttle(func, wait, options) {
var leading = true,
trailing = true;
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
if (isObject(options)) {
leading = 'leading' in options ? !!options.leading : leading;
trailing = 'trailing' in options ? !!options.trailing : trailing;
}
return debounce(func, wait, {
'leading': leading,
'maxWait': wait,
'trailing': trailing
});
}
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return !!value && typeof value == 'object';
}
/**
* Checks if `value` is classified as a `Symbol` primitive or object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
* // => true
*
* _.isSymbol('abc');
* // => false
*/
function isSymbol(value) {
return typeof value == 'symbol' ||
(isObjectLike(value) && objectToString.call(value) == symbolTag);
}
/**
* Converts `value` to a number.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {number} Returns the number.
* @example
*
* _.toNumber(3.2);
* // => 3.2
*
* _.toNumber(Number.MIN_VALUE);
* // => 5e-324
*
* _.toNumber(Infinity);
* // => Infinity
*
* _.toNumber('3.2');
* // => 3.2
*/
function toNumber(value) {
if (typeof value == 'number') {
return value;
}
if (isSymbol(value)) {
return NAN;
}
if (isObject(value)) {
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
value = isObject(other) ? (other + '') : other;
}
if (typeof value != 'string') {
return value === 0 ? value : +value;
}
value = value.replace(reTrim, '');
var isBinary = reIsBinary.test(value);
return (isBinary || reIsOctal.test(value))
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
: (reIsBadHex.test(value) ? NAN : +value);
}
module.exports = throttle;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("52cf")))
/***/ }),
/***/ "6de1":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var notARegExp = __webpack_require__("483d");
var requireObjectCoercible = __webpack_require__("cf8d");
var correctIsRegExpLogic = __webpack_require__("4f10e");
// `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);
}
});
/***/ }),
/***/ "6fda":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var forEach = __webpack_require__("e9a7");
// `Array.prototype.forEach` method
// https://tc39.github.io/ecma262/#sec-array.prototype.foreach
$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
forEach: forEach
});
/***/ }),
/***/ "7019":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var isObject = __webpack_require__("c7eb");
var isArray = __webpack_require__("8346");
var toAbsoluteIndex = __webpack_require__("7ab2");
var toLength = __webpack_require__("ba98");
var toIndexedObject = __webpack_require__("ebce");
var createProperty = __webpack_require__("b668");
var wellKnownSymbol = __webpack_require__("dc77");
var arrayMethodHasSpeciesSupport = __webpack_require__("4c7a");
var arrayMethodUsesToLength = __webpack_require__("effa");
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;
}
});
/***/ }),
/***/ "72dd":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var getBuiltIn = __webpack_require__("7b26");
var definePropertyModule = __webpack_require__("d096");
var wellKnownSymbol = __webpack_require__("dc77");
var DESCRIPTORS = __webpack_require__("afee");
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; }
});
}
};
/***/ }),
/***/ "739c":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// CONCATENATED MODULE: ./node_modules/.pnpm/@vue/cli-service@4.3.1_c9877f5dad863b1444afa71566d03c43/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__("cb6d")
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);
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1214c932-vue-loader-template"}!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib??vue-loader-options!./src/components/DatePicker/index.vue?vue&type=template&id=4ff0d6f6&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('div',{ref:("DatePicker-" + _vm.hash),staticClass:"vhd-datepicker__wrapper",class:{
'vhd-datepicker__wrapper--grid': _vm.gridStyle,
'vhd-datepicker__wrapper--booking': _vm.bookings.length > 0,
datepicker__fullview: _vm.alwaysVisible,
}},[(_vm.isOpen)?_c('div',{staticClass:"vhd-datepicker__close-button -vhd-hide-on-desktop",on:{"click":_vm.closeMobileDatepicker}},[_c('i',[_vm._v("+")])]):_vm._e(),_c('div',{staticClass:"vhd-datepicker__dummy-wrapper",class:{ 'vhd-datepicker__dummy-wrapper--is-active': _vm.isOpen }},[_c('date-input',{attrs:{"i18n":_vm.i18n,"input-date":_vm.formatDate(_vm.checkIn),"input-date-type":"check-in","is-open":_vm.isOpen,"toggle-datepicker":_vm.toggleDatepicker,"single-day-selection":_vm.singleDaySelection}}),(!_vm.singleDaySelection)?_c('date-input',{attrs:{"i18n":_vm.i18n,"input-date":_vm.formatDate(_vm.checkOut),"input-date-type":"check-out","is-open":_vm.isOpen,"toggle-datepicker":_vm.toggleDatepicker,"single-day-selection":_vm.singleDaySelection}}):_vm._e()],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showClearSelectionButton),expression:"showClearSelectionButton"}],staticClass:"vhd-datepicker__clear-button",attrs:{"tabindex":"0"},on:{"click":_vm.clearSelection}},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 68 68"}},[_c('path',{attrs:{"d":"M6.5 6.5l55 55M61.5 6.5l-55 55"}})])]),_c('div',{staticClass:"vhd-datepicker",class:{
'vhd-datepicker--open': _vm.isOpen && !_vm.alwaysVisible,
'vhd-datepicker--closed': !_vm.isOpen && !_vm.alwaysVisible,
'vhd-datepicker--right': _vm.positionRight,
}},[_c('div',{staticClass:"-vhd-hide-on-desktop"},[(_vm.isOpen)?_c('div',{staticClass:"vhd-datepicker__dummy-wrapper vhd-datepicker__dummy-wrapper--no-border",class:{ 'vhd-datepicker__dummy-wrapper--is-active': _vm.isOpen },on:{"click":_vm.toggleDatepicker}},[_c('div',{staticClass:"vhd-datepicker__input",class:{
'vhd-datepicker__dummy-input--is-active': _vm.isOpen && _vm.checkIn == null,
},attrs:{"tabindex":"0","type":"button"}},[_vm._v(" "+_vm._s(("" + (_vm.checkIn ? _vm.dateFormater(_vm.checkIn) : _vm.i18n['check-in'])))+" ")]),_c('div',{staticClass:"vhd-datepicker__input",class:{
'vhd-datepicker__dummy-input--is-active': _vm.isOpen && _vm.checkOut == null && _vm.checkIn !== null,
},attrs:{"tabindex":"0","type":"button"}},[_vm._v(" "+_vm._s(("" + (_vm.checkOut ? _vm.dateFormater(_vm.checkOut) : _vm.i18n['check-out'])))+" ")])]):_vm._e()]),(_vm.isOpen || _vm.alwaysVisible)?_c('div',{staticClass:"vhd-datepicker__inner"},[_c('div',{staticClass:"vhd-datepicker__header"},[_c('button',{staticClass:"vhd-datepicker__month-button vhd-datepicker__month-button--prev -vhd-hide-up-to-tablet",attrs:{"type":"button","tabindex":_vm.isOpen ? 0 : -1,"disabled":_vm.activeMonthIndex === 0},on:{"click":_vm.renderPreviousMonth,"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.renderPreviousMonth($event)}}}),_c('button',{staticClass:"vhd-datepicker__month-button vhd-datepicker__month-button--next -vhd-hide-up-to-tablet",attrs:{"type":"button","disabled":_vm.isPreventedMaxMonth,"tabindex":_vm.isOpen ? 0 : -1},on:{"click":_vm.renderNextMonth,"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.renderNextMonth($event)}}})]),(_vm.screenSize === 'desktop' || _vm.alwaysVisible)?_c('div',{staticClass:"vhd-datepicker__months",class:{ 'vhd-datepicker__months--full': _vm.showSingleMonth }},_vm._l((_vm.paginateDesktop),function(month,monthIndex){return _c('div',{key:(_vm.datepickerMonthKey + "-" + month),ref:"datepickerMonth",refInFor:true,staticClass:"vhd-datepicker__month"},[_c('p',{staticClass:"vhd-datepicker__month-name"},[_vm._v(" "+_vm._s(_vm.getMonth(_vm.months[_vm.activeMonthIndex + month].days[15].date))+" ")]),_c('div',{staticClass:"vhd-datepicker__week-row -vhd-hide-up-to-tablet"},_vm._l((_vm.i18n['day-names']),function(dayName,datePickerWeekIndexDesktop){return _c('div',{key:(_vm.datepickerWeekKey + "-" + datePickerWeekIndexDesktop),staticClass:"vhd-datepicker__week-name"},[_vm._v(" "+_vm._s(dayName)+" ")])}),0),_vm._l((_vm.months[_vm.activeMonthIndex + month].days),function(day,dayIndexDesktop){return _c('div',{key:(_vm.datepickerDayKey + "-" + monthIndex + "-" + dayIndexDesktop),staticClass:"vhd-square",on:{"mouseenter":function($event){return _vm.mouseEnterDay(day)}}},[_c('Day',{attrs:{"activeMonthIndex":_vm.activeMonthIndex,"belongsToThisMonth":day.belongsToThisMonth,"bookings":_vm.sortBookings,"checkIn":_vm.checkIn,"checkIncheckOutHalfDay":_vm.checkIncheckOutHalfDay,"checkInPeriod":_vm.checkInPeriod,"checkOut":_vm.checkOut,"date":day.date,"disableCheckoutOnCheckin":_vm.disableCheckoutOnCheckin,"duplicateBookingDates":_vm.duplicateBookingDates,"hoveringDate":_vm.hoveringDate,"hoveringPeriod":_vm.hoveringPeriod,"i18n":_vm.i18n,"isOpen":_vm.isOpen,"minNightCount":_vm.minNightCount,"nextDisabledDate":_vm.nextDisabledDate,"nextPeriodDisableDates":_vm.nextPeriodDisableDates,"options":_vm.$props,"screenSize":_vm.screenSize,"showCustomTooltip":_vm.showCustomTooltip,"showPrice":_vm.showPrice,"sortedDisabledDates":_vm.sortedDisabledDates,"sortedPeriodDates":_vm.sortedPeriodDates,"tooltipMessage":_vm.customTooltipMessage},on:{"clearSelection":_vm.clearSelection,"bookingClicked":_vm.handleBookingClicked,"dayClicked":_vm.handleDayClick}})],1)})],2)}),0):_vm._e(),(_vm.screenSize !== 'desktop' && _vm.isOpen && !_vm.alwaysVisible)?_c('div',{class:{ 'vhd-show-tooltip': _vm.showCustomTooltip && _vm.hoveringTooltip }},[(_vm.hoveringTooltip)?_c('div',{staticClass:"vhd-datepicker__tooltip--mobile"},[(_vm.customTooltipMessage)?[_vm._v(" "+_vm._s(_vm.cleanString(_vm.customTooltipMessage))+" ")]:_vm._e()],2):_vm._e(),_c('div',{staticClass:"vhd-datepicker__week-row"},_vm._l((this.i18n['day-names']),function(dayName,datePickerWeekIndexMobile){return _c('div',{key:_vm.datepickerWeekKey + datePickerWeekIndexMobile,staticClass:"vhd-datepicker__week-name"},[_vm._v(" "+_vm._s(dayName)+" ")])}),0),_c('div',{ref:"swiperWrapper",staticClass:"vhd-datepicker__months",attrs:{"id":"swiperWrapper"}},_vm._l((_vm.months),function(a,n){return _c('div',{key:(_vm.datepickerMonthKey + "-" + n),ref:"datepickerMonth",refInFor:true,staticClass:"vhd-datepicker__month"},[_c('p',{staticClass:"vhd-datepicker__month-name"},[_vm._v(" "+_vm._s(_vm.getMonth(_vm.months[n].days[15].date))+" ")]),_c('div',{staticClass:"vhd-datepicker__week-row -vhd-hide-up-to-tablet"},_vm._l((_vm.i18n['day-names']),function(dayName,datePickerIndex){return _c('div',{key:("datepicker__month-name-datepicker__week-name-" + datePickerIndex),staticClass:"vhd-datepicker__week-name"},[_vm._v(" "+_vm._s(dayName)+" ")])}),0),_vm._l((_vm.months[n].days),function(day,dayIndexMobile){return _c('div',{key:(_vm.datepickerDayKey + "-" + n + "-" + dayIndexMobile),staticClass:"vhd-square",on:{"mouseenter":function($event){return _vm.mouseEnterDay(day)}}},[_c('Day',{attrs:{"activeMonthIndex":_vm.activeMonthIndex,"belongsToThisMonth":day.belongsToThisMonth,"bookings":_vm.sortBookings,"checkIn":_vm.checkIn,"checkIncheckOutHalfDay":_vm.checkIncheckOutHalfDay,"checkInPeriod":_vm.checkInPeriod,"checkOut":_vm.checkOut,"date":day.date,"disableCheckoutOnCheckin":_vm.disableCheckoutOnCheckin,"duplicateBookingDates":_vm.duplicateBookingDates,"hoveringDate":_vm.hoveringDate,"hoveringPeriod":_vm.hoveringPeriod,"i18n":_vm.i18n,"isOpen":_vm.isOpen,"minNightCount":_vm.minNightCount,"nextDisabledDate":_vm.nextDisabledDate,"nextPeriodDisableDates":_vm.nextPeriodDisableDates,"options":_vm.$props,"screenSize":_vm.screenSize,"showPrice":_vm.showPrice,"sortedDisabledDates":_vm.sortedDisabledDates,"sortedPeriodDates":_vm.sortedPeriodDates,"tooltipMessage":_vm.customTooltipMessage},on:{"clearSelection":_vm.clearSelection,"bookingClicked":_vm.handleBookingClicked,"dayClicked":_vm.handleDayClick}})],1)})],2)}),0)]):_vm._e(),_vm._t("content")],2):_vm._e()])]):_vm._e()}
var staticRenderFns = []
// CONCATENATED MODULE: ./src/components/DatePicker/index.vue?vue&type=template&id=4ff0d6f6&
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.concat.js
var es_array_concat = __webpack_require__("e168");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.filter.js
var es_array_filter = __webpack_require__("3dd5");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.find.js
var es_array_find = __webpack_require__("a6a9");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.for-each.js
var es_array_for_each = __webpack_require__("6fda");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.includes.js
var es_array_includes = __webpack_require__("d987");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.iterator.js
var es_array_iterator = __webpack_require__("d299");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.join.js
var es_array_join = __webpack_require__("e224");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.map.js
var es_array_map = __webpack_require__("4cc3");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.reduce.js
var es_array_reduce = __webpack_require__("8b03");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.slice.js
var es_array_slice = __webpack_require__("7019");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.number.constructor.js
var es_number_constructor = __webpack_require__("374d");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.object.keys.js
var es_object_keys = __webpack_require__("5227");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.object.to-string.js
var es_object_to_string = __webpack_require__("90c8");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.regexp.exec.js
var es_regexp_exec = __webpack_require__("8d8a");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.set.js
var es_set = __webpack_require__("4a51");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.string.includes.js
var es_string_includes = __webpack_require__("6de1");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.string.iterator.js
var es_string_iterator = __webpack_require__("3363");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.string.replace.js
var es_string_replace = __webpack_require__("9d08");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.string.split.js
var es_string_split = __webpack_require__("b7ea");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/web.dom-collections.for-each.js
var web_dom_collections_for_each = __webpack_require__("f2e9");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/web.dom-collections.iterator.js
var web_dom_collections_iterator = __webpack_require__("3399");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.symbol.js
var es_symbol = __webpack_require__("1a06");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.object.get-own-property-descriptor.js
var es_object_get_own_property_descriptor = __webpack_require__("019e");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.object.get-own-property-descriptors.js
var es_object_get_own_property_descriptors = __webpack_require__("3135");
// CONCATENATED MODULE: ./node_modules/.pnpm/@babel/runtime@7.11.2/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: ./node_modules/.pnpm/@babel/runtime@7.11.2/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;
}
// CONCATENATED MODULE: ./node_modules/.pnpm/@babel/runtime@7.11.2/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/.pnpm/@babel/runtime@7.11.2/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
}
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.symbol.description.js
var es_symbol_description = __webpack_require__("11c4");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.symbol.iterator.js
var es_symbol_iterator = __webpack_require__("8c2f");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.from.js
var es_array_from = __webpack_require__("1652");
// CONCATENATED MODULE: ./node_modules/.pnpm/@babel/runtime@7.11.2/node_modules/@babel/runtime/helpers/esm/iterableToArray.js
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
}
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.function.name.js
var es_function_name = __webpack_require__("452e");
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.regexp.to-string.js
var es_regexp_to_string = __webpack_require__("fa87");
// CONCATENATED MODULE: ./node_modules/.pnpm/@babel/runtime@7.11.2/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/.pnpm/@babel/runtime@7.11.2/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/.pnpm/@babel/runtime@7.11.2/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
function _toConsumableArray(arr) {
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
}
// EXTERNAL MODULE: ./node_modules/.pnpm/lodash.throttle@4.1.1/node_modules/lodash.throttle/index.js
var lodash_throttle = __webpack_require__("6c80");
var lodash_throttle_default = /*#__PURE__*/__webpack_require__.n(lodash_throttle);
// CONCATENATED MODULE: ./node_modules/.pnpm/fecha@4.2.0/node_modules/fecha/lib/fecha.js
var token = /d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g;
var twoDigitsOptional = "[1-9]\\d?";
var twoDigits = "\\d\\d";
var threeDigits = "\\d{3}";
var fourDigits = "\\d{4}";
var word = "[^\\s]+";
var literal = /\[([^]*?)\]/gm;
function shorten(arr, sLen) {
var newArr = [];
for (var i = 0, len = arr.length; i < len; i++) {
newArr.push(arr[i].substr(0, sLen));
}
return newArr;
}
var monthUpdate = function (arrName) { return function (v, i18n) {
var lowerCaseArr = i18n[arrName].map(function (v) { return v.toLowerCase(); });
var index = lowerCaseArr.indexOf(v.toLowerCase());
if (index > -1) {
return index;
}
return null;
}; };
function fecha_assign(origObj) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {
var obj = args_1[_a];
for (var key in obj) {
// @ts-ignore ex
origObj[key] = obj[key];
}
}
return origObj;
}
var dayNames = [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
];
var monthNames = [
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"December"
];
var monthNamesShort = shorten(monthNames, 3);
var dayNamesShort = shorten(dayNames, 3);
var defaultI18n = {
dayNamesShort: dayNamesShort,
dayNames: dayNames,
monthNamesShort: monthNamesShort,
monthNames: monthNames,
amPm: ["am", "pm"],
DoFn: function (dayOfMonth) {
return (dayOfMonth +
["th", "st", "nd", "rd"][dayOfMonth % 10 > 3
? 0
: ((dayOfMonth - (dayOfMonth % 10) !== 10 ? 1 : 0) * dayOfMonth) % 10]);
}
};
var globalI18n = fecha_assign({}, defaultI18n);
var setGlobalDateI18n = function (i18n) {
return (globalI18n = fecha_assign(globalI18n, i18n));
};
var regexEscape = function (str) {
return str.replace(/[|\\{()[^$+*?.-]/g, "\\$&");
};
var pad = function (val, len) {
if (len === void 0) { len = 2; }
val = String(val);
while (val.length < len) {
val = "0" + val;
}
return val;
};
var formatFlags = {
D: function (dateObj) { return String(dateObj.getDate()); },
DD: function (dateObj) { return pad(dateObj.getDate()); },
Do: function (dateObj, i18n) {
return i18n.DoFn(dateObj.getDate());
},
d: function (dateObj) { return String(dateObj.getDay()); },
dd: function (dateObj) { return pad(dateObj.getDay()); },
ddd: function (dateObj, i18n) {
return i18n.dayNamesShort[dateObj.getDay()];
},
dddd: function (dateObj, i18n) {
return i18n.dayNames[dateObj.getDay()];
},
M: function (dateObj) { return String(dateObj.getMonth() + 1); },
MM: function (dateObj) { return pad(dateObj.getMonth() + 1); },
MMM: function (dateObj, i18n) {
return i18n.monthNamesShort[dateObj.getMonth()];
},
MMMM: function (dateObj, i18n) {
return i18n.monthNames[dateObj.getMonth()];
},
YY: function (dateObj) {
return pad(String(dateObj.getFullYear()), 4).substr(2);
},
YYYY: function (dateObj) { return pad(dateObj.getFullYear(), 4); },
h: function (dateObj) { return String(dateObj.getHours() % 12 || 12); },
hh: function (dateObj) { return pad(dateObj.getHours() % 12 || 12); },
H: function (dateObj) { return String(dateObj.getHours()); },
HH: function (dateObj) { return pad(dateObj.getHours()); },
m: function (dateObj) { return String(dateObj.getMinutes()); },
mm: function (dateObj) { return pad(dateObj.getMinutes()); },
s: function (dateObj) { return String(dateObj.getSeconds()); },
ss: function (dateObj) { return pad(dateObj.getSeconds()); },
S: function (dateObj) {
return String(Math.round(dateObj.getMilliseconds() / 100));
},
SS: function (dateObj) {
return pad(Math.round(dateObj.getMilliseconds() / 10), 2);
},
SSS: function (dateObj) { return pad(dateObj.getMilliseconds(), 3); },
a: function (dateObj, i18n) {
return dateObj.getHours() < 12 ? i18n.amPm[0] : i18n.amPm[1];
},
A: function (dateObj, i18n) {
return dateObj.getHours() < 12
? i18n.amPm[0].toUpperCase()
: i18n.amPm[1].toUpperCase();
},
ZZ: function (dateObj) {
var offset = dateObj.getTimezoneOffset();
return ((offset > 0 ? "-" : "+") +
pad(Math.floor(Math.abs(offset) / 60) * 100 + (Math.abs(offset) % 60), 4));
},
Z: function (dateObj) {
var offset = dateObj.getTimezoneOffset();
return ((offset > 0 ? "-" : "+") +
pad(Math.floor(Math.abs(offset) / 60), 2) +
":" +
pad(Math.abs(offset) % 60, 2));
}
};
var monthParse = function (v) { return +v - 1; };
var emptyDigits = [null, twoDigitsOptional];
var emptyWord = [null, word];
var amPm = [
"isPm",
word,
function (v, i18n) {
var val = v.toLowerCase();
if (val === i18n.amPm[0]) {
return 0;
}
else if (val === i18n.amPm[1]) {
return 1;
}
return null;
}
];
var timezoneOffset = [
"timezoneOffset",
"[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",
function (v) {
var parts = (v + "").match(/([+-]|\d\d)/gi);
if (parts) {
var minutes = +parts[1] * 60 + parseInt(parts[2], 10);
return parts[0] === "+" ? minutes : -minutes;
}
return 0;
}
];
var parseFlags = {
D: ["day", twoDigitsOptional],
DD: ["day", twoDigits],
Do: ["day", twoDigitsOptional + word, function (v) { return parseInt(v, 10); }],
M: ["month", twoDigitsOptional, monthParse],
MM: ["month", twoDigits, monthParse],
YY: [
"year",
twoDigits,
function (v) {
var now = new Date();
var cent = +("" + now.getFullYear()).substr(0, 2);
return +("" + (+v > 68 ? cent - 1 : cent) + v);
}
],
h: ["hour", twoDigitsOptional, undefined, "isPm"],
hh: ["hour", twoDigits, undefined, "isPm"],
H: ["hour", twoDigitsOptional],
HH: ["hour", twoDigits],
m: ["minute", twoDigitsOptional],
mm: ["minute", twoDigits],
s: ["second", twoDigitsOptional],
ss: ["second", twoDigits],
YYYY: ["year", fourDigits],
S: ["millisecond", "\\d", function (v) { return +v * 100; }],
SS: ["millisecond", twoDigits, function (v) { return +v * 10; }],
SSS: ["millisecond", threeDigits],
d: emptyDigits,
dd: emptyDigits,
ddd: emptyWord,
dddd: emptyWord,
MMM: ["month", word, monthUpdate("monthNamesShort")],
MMMM: ["month", word, monthUpdate("monthNames")],
a: amPm,
A: amPm,
ZZ: timezoneOffset,
Z: timezoneOffset
};
// Some common format strings
var globalMasks = {
default: "ddd MMM DD YYYY HH:mm:ss",
shortDate: "M/D/YY",
mediumDate: "MMM D, YYYY",
longDate: "MMMM D, YYYY",
fullDate: "dddd, MMMM D, YYYY",
isoDate: "YYYY-MM-DD",
isoDateTime: "YYYY-MM-DDTHH:mm:ssZ",
shortTime: "HH:mm",
mediumTime: "HH:mm:ss",
longTime: "HH:mm:ss.SSS"
};
var setGlobalDateMasks = function (masks) { return fecha_assign(globalMasks, masks); };
/***
* Format a date
* @method format
* @param {Date|number} dateObj
* @param {string} mask Format of the date, i.e. 'mm-dd-yy' or 'shortDate'
* @returns {string} Formatted date string
*/
var fecha_format = function (dateObj, mask, i18n) {
if (mask === void 0) { mask = globalMasks["default"]; }
if (i18n === void 0) { i18n = {}; }
if (typeof dateObj === "number") {
dateObj = new Date(dateObj);
}
if (Object.prototype.toString.call(dateObj) !== "[object Date]" ||
isNaN(dateObj.getTime())) {
throw new Error("Invalid Date pass to format");
}
mask = globalMasks[mask] || mask;
var literals = [];
// Make literals inactive by replacing them with @@@
mask = mask.replace(literal, function ($0, $1) {
literals.push($1);
return "@@@";
});
var combinedI18nSettings = fecha_assign(fecha_assign({}, globalI18n), i18n);
// Apply formatting rules
mask = mask.replace(token, function ($0) {
return formatFlags[$0](dateObj, combinedI18nSettings);
});
// Inline literal values back into the formatted value
return mask.replace(/@@@/g, function () { return literals.shift(); });
};
/**
* Parse a date string into a Javascript Date object /
* @method parse
* @param {string} dateStr Date string
* @param {string} format Date parse format
* @param {i18n} I18nSettingsOptional Full or subset of I18N settings
* @returns {Date|null} Returns Date object. Returns null what date string is invalid or doesn't match format
*/
function parse(dateStr, format, i18n) {
if (i18n === void 0) { i18n = {}; }
if (typeof format !== "string") {
throw new Error("Invalid format in fecha parse");
}
// Check to see if the format is actually a mask
format = globalMasks[format] || format;
// Avoid regular expression denial of service, fail early for really long strings
// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS
if (dateStr.length > 1000) {
return null;
}
// Default to the beginning of the year.
var today = new Date();
var dateInfo = {
year: today.getFullYear(),
month: 0,
day: 1,
hour: 0,
minute: 0,
second: 0,
millisecond: 0,
isPm: null,
timezoneOffset: null
};
var parseInfo = [];
var literals = [];
// Replace all the literals with @@@. Hopefully a string that won't exist in the format
var newFormat = format.replace(literal, function ($0, $1) {
literals.push(regexEscape($1));
return "@@@";
});
var specifiedFields = {};
var requiredFields = {};
// Change every token that we find into the correct regex
newFormat = regexEscape(newFormat).replace(token, function ($0) {
var info = parseFlags[$0];
var field = info[0], regex = info[1], requiredField = info[3];
// Check if the person has specified the same field twice. This will lead to confusing results.
if (specifiedFields[field]) {
throw new Error("Invalid format. " + field + " specified twice in format");
}
specifiedFields[field] = true;
// Check if there are any required fields. For instance, 12 hour time requires AM/PM specified
if (requiredField) {
requiredFields[requiredField] = true;
}
parseInfo.push(info);
return "(" + regex + ")";
});
// Check all the required fields are present
Object.keys(requiredFields).forEach(function (field) {
if (!specifiedFields[field]) {
throw new Error("Invalid format. " + field + " is required in specified format");
}
});
// Add back all the literals after
newFormat = newFormat.replace(/@@@/g, function () { return literals.shift(); });
// Check if the date string matches the format. If it doesn't return null
var matches = dateStr.match(new RegExp(newFormat, "i"));
if (!matches) {
return null;
}
var combinedI18nSettings = fecha_assign(fecha_assign({}, globalI18n), i18n);
// For each match, call the parser function for that date part
for (var i = 1; i < matches.length; i++) {
var _a = parseInfo[i - 1], field = _a[0], parser = _a[2];
var value = parser
? parser(matches[i], combinedI18nSettings)
: +matches[i];
// If the parser can't make sense of the value, return null
if (value == null) {
return null;
}
dateInfo[field] = value;
}
if (dateInfo.isPm === 1 && dateInfo.hour != null && +dateInfo.hour !== 12) {
dateInfo.hour = +dateInfo.hour + 12;
}
else if (dateInfo.isPm === 0 && +dateInfo.hour === 12) {
dateInfo.hour = 0;
}
var dateWithoutTZ = new Date(dateInfo.year, dateInfo.month, dateInfo.day, dateInfo.hour, dateInfo.minute, dateInfo.second, dateInfo.millisecond);
var validateFields = [
["month", "getMonth"],
["day", "getDate"],
["hour", "getHours"],
["minute", "getMinutes"],
["second", "getSeconds"]
];
for (var i = 0, len = validateFields.length; i < len; i++) {
// Check to make sure the date field is within the allowed range. Javascript dates allows values
// outside the allowed range. If the values don't match the value was invalid
if (specifiedFields[validateFields[i][0]] &&
dateInfo[validateFields[i][0]] !== dateWithoutTZ[validateFields[i][1]]()) {
return null;
}
}
if (dateInfo.timezoneOffset == null) {
return dateWithoutTZ;
}
return new Date(Date.UTC(dateInfo.year, dateInfo.month, dateInfo.day, dateInfo.hour, dateInfo.minute - dateInfo.timezoneOffset, dateInfo.second, dateInfo.millisecond));
}
var fecha = {
format: fecha_format,
parse: parse,
defaultI18n: defaultI18n,
setGlobalDateI18n: setGlobalDateI18n,
setGlobalDateMasks: setGlobalDateMasks
};
/* harmony default export */ var lib_fecha = (fecha);
//# sourceMappingURL=fecha.js.map
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1214c932-vue-loader-template"}!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib??vue-loader-options!./src/components/Day.vue?vue&type=template&id=5688852e&
var Dayvue_type_template_id_5688852e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.showTooltip && _vm.options.hoveringTooltip)?_c('div',{staticClass:"vhd-datepicker__tooltip",domProps:{"innerHTML":_vm._s(_vm.tooltipMessageDisplay)}}):_vm._e(),_c('div',{ref:"day",staticClass:"vhd-datepicker__month-day",class:[_vm.dayClass, _vm.checkinCheckoutClass, _vm.bookingClass, { 'vhd-datepicker__month-day--today': _vm.isToday }],attrs:{"tabindex":_vm.tabIndex},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();return _vm.dayClicked($event, _vm.date)}}},[_c('div',{staticClass:"vhd-datepicker__month-day-wrapper"},[_c('span',[_vm._v(_vm._s(_vm.dayNumber))]),(_vm.showPrice && _vm.dayPrice)?_c('strong',{staticStyle:{"font-size":"10px"}},[_vm._v(" "+_vm._s(_vm.dayPrice)+" ")]):_vm._e()])]),(_vm.currentBooking && _vm.belongsToThisMonth && !_vm.isDisabled)?_c('BookingBullet',{attrs:{"currentBooking":_vm.currentBooking,"duplicateBookingDates":_vm.duplicateBookingDates,"formatDate":_vm.formatDate,"previousBooking":_vm.previousBooking}}):_vm._e()],1)}
var Dayvue_type_template_id_5688852e_staticRenderFns = []
// CONCATENATED MODULE: ./src/components/Day.vue?vue&type=template&id=5688852e&
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.6.5/node_modules/core-js/modules/es.array.some.js
var es_array_some = __webpack_require__("a18d");
// CONCATENATED MODULE: ./src/helpers.js
/* eslint-disable vars-on-top */
/* harmony default export */ var helpers = ({
getNextDate: function getNextDate(datesArray, referenceDate) {
var now = new Date(referenceDate);
var closest = Infinity;
datesArray.forEach(function (d) {
var date = new Date(d);
if (date >= now && date < closest) {
closest = d;
}
});
if (closest === Infinity) {
return null;
}
return closest;
},
nextDateByDayOfWeek: function nextDateByDayOfWeek(weekDay, referenceDate) {
var newReferenceDate = new Date(referenceDate);
var newWeekDay = weekDay.toLowerCase();
var days = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'];
var referenceDateDay = newReferenceDate.getDay();
for (var i = 7; i--;) {
if (newWeekDay === days[i]) {
newWeekDay = i <= referenceDateDay ? i + 7 : i;
break;
}
}
var daysUntilNext = newWeekDay - referenceDateDay;
return newReferenceDate.setDate(newReferenceDate.getDate() + daysUntilNext);
},
nextDateByDayOfWeekArray: function nextDateByDayOfWeekArray(daysArray, referenceDate) {
var tempArray = [];
for (var i = 0; i < daysArray.length; i++) {
tempArray.push(new Date(this.nextDateByDayOfWeek(daysArray[i], referenceDate)));
}
return this.getNextDate(tempArray, referenceDate);
},
countDays: function countDays(start, end) {
var oneDay = 24 * 60 * 60 * 1000;
var firstDate = new Date(start);
var secondDate = new Date(end);
return Math.round(Math.abs((firstDate.getTime() - secondDate.getTime()) / oneDay));
},
addDays: function addDays(date, quantity) {
var result = new Date(date);
result.setDate(result.getDate() + quantity);
return result;
},
getDayDiff: function getDayDiff(d1, d2) {
var t2 = new Date(d2).getTime();
var t1 = new Date(d1).getTime();
return parseInt((t2 - t1) / (24 * 3600 * 1000), 10);
},
getFirstDay: function getFirstDay(date, firstDayOfWeek) {
var firstDay = this.getFirstDayOfMonth(date);
var offset = 0;
if (firstDayOfWeek > 0) {
offset = firstDay.getDay() === 0 ? -7 + firstDayOfWeek : firstDayOfWeek;
}
return new Date(firstDay.setDate(firstDay.getDate() - (firstDay.getDay() - offset)));
},
getFirstDayOfMonth: function getFirstDayOfMonth(date) {
return new Date(date.getFullYear(), date.getMonth(), 1);
},
getNextMonth: function getNextMonth(date) {
var nextMonth;
if (date.getMonth() === 11) {
nextMonth = new Date(date.getFullYear() + 1, 0, 1);
} else {
nextMonth = new Date(date.getFullYear(), date.getMonth() + 1, 1);
}
return nextMonth;
},
handleTouchStart: function handleTouchStart(evt) {
this.isTouchMove = false;
if (this.isOpen) {
this.xDown = evt.touches[0].clientX;
this.yDown = evt.touches[0].clientY;
}
},
handleTouchMove: function handleTouchMove(evt) {
if (!this.xDown || !this.yDown) {
this.isTouchMove = false;
return;
}
this.isTouchMove = true;
this.xUp = evt.touches[0].clientX;
this.yUp = evt.touches[0].clientY;
},
handleTouchEnd: function handleTouchEnd() {
if (!this.isTouchMove) {
return;
}
if (!this.xDown || !this.yDown) {
return;
}
var xDiff = this.xDown - this.xUp;
var yDiff = this.yDown - this.yUp;
if (Math.abs(xDiff) < Math.abs(yDiff) && yDiff > 0 && !this.isPreventedMaxMonth) {
this.renderNextMonth();
} else {
this.renderPreviousMonth();
}
this.xDown = null;
this.yDown = null;
},
validateDateBetweenTwoDates: function validateDateBetweenTwoDates(fromDate, toDate, givenDate) {
var getvalidDate = function getvalidDate(d) {
var formatDateAt00 = new Date(d).setHours(0, 0, 0, 0);
return new Date(formatDateAt00);
};
return getvalidDate(givenDate) <= getvalidDate(toDate) && getvalidDate(givenDate) >= getvalidDate(fromDate);
},
validateDateBetweenDate: function validateDateBetweenDate(fromDate, givenDate) {
var getvalidDate = function getvalidDate(d) {
return new Date(d);
};
return getvalidDate(givenDate) <= getvalidDate(fromDate);
},
getMonthDiff: function getMonthDiff(d1, d2) {
var newD1 = new Date(d1);
var newD2 = new Date(d2);
var d1Y = newD1.getFullYear();
var d2Y = newD2.getFullYear();
var d1M = newD1.getMonth();
var d2M = newD2.getMonth();
return d2M + 12 * d2Y - (d1M + 12 * d1Y);
},
shortenString: function shortenString(arr, sLen) {
var newArr = [];
for (var i = 0, len = arr.length; i < len; i++) {
newArr.push(arr[i].substr(0, sLen));
}
return newArr;
},
getDaysArray: function getDaysArray(start, end) {
for ( // eslint-disable-next-line no-var
var arr = [], dt = new Date(start); dt <= end; dt.setDate(dt.getDate() + 1)) {
arr.push(new Date(dt));
} // eslint-disable-next-line block-scoped-var
return arr;
},
dateFormater: function dateFormater(date, format) {
var f = format || 'YYYY-MM-DD';
if (date) {
return lib_fecha.format(date, f);
}
return '';
},
pluralize: function pluralize(countOfDays) {
var periodType = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'night';
if (periodType === 'week') {
return countOfDays > 7 ? this.i18n.weeks : this.i18n.week;
}
return countOfDays !== 1 ? this.i18n.nights : this.i18n.night;
},
isDateLessOrEquals: function isDateLessOrEquals(time1, time2) {
return new Date(time1) < new Date(time2);
},
compareDay: function compareDay(day1, day2) {
var date1 = lib_fecha.format(new Date(day1), 'YYYYMMDD');
var date2 = lib_fecha.format(new Date(day2), 'YYYYMMDD');
if (date1 > date2) {
return 1;
}
if (date1 === date2) {
return 0;
}
if (date1 < date2) {
return -1;
}
return null;
}
});
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1214c932-vue-loader-template"}!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib??vue-loader-options!./src/components/BookingBullet.vue?vue&type=template&id=5a98a8fc&
var BookingBulletvue_type_template_id_5a98a8fc_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('i',{staticClass:"vhd-parent-bullet"},[(_vm.previousBooking && _vm.duplicateBookingDates.includes(_vm.formatDate))?_c('i',{staticClass:"vhd-bullet",class:[
{
checkInCheckOut: _vm.duplicateBookingDates.includes(_vm.formatDate),
} ],style:(_vm.previousBooking.style)}):_vm._e(),(_vm.previousBooking && _vm.duplicateBookingDates.includes(_vm.formatDate))?_c('i',{staticClass:"vhd-pipe vhd-checkInCheckOut",style:(_vm.previousBooking.style)}):_vm._e(),(
_vm.currentBooking &&
(_vm.currentBooking.checkInDate === _vm.formatDate || _vm.currentBooking.checkOutDate === _vm.formatDate)
)?_c('i',{staticClass:"vhd-bullet",class:[
{
checkIn: _vm.currentBooking.checkInDate === _vm.formatDate,
checkOut: _vm.currentBooking.checkOutDate === _vm.formatDate,
} ],style:(_vm.currentBooking.style)}):_vm._e(),(_vm.currentBooking)?_c('i',{staticClass:"vhd-pipe",class:[
{
checkIn: _vm.currentBooking.checkInDate === _vm.formatDate,
checkOut: _vm.currentBooking.checkOutDate === _vm.formatDate,
} ],style:(_vm.currentBooking.style)}):_vm._e()])}
var BookingBulletvue_type_template_id_5a98a8fc_staticRenderFns = []
// CONCATENATED MODULE: ./src/components/BookingBullet.vue?vue&type=template&id=5a98a8fc&
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.pnpm/thread-loader@2.1.3_webpack@4.44.1/node_modules/thread-loader/dist/cjs.js!./node_modules/.pnpm/babel-loader@8.1.0_fbab4801791d746d265885e0d19f0bda/node_modules/babel-loader/lib!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib??vue-loader-options!./src/components/BookingBullet.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var BookingBulletvue_type_script_lang_js_ = ({
name: 'BookingBullet',
props: {
currentBooking: {
type: Object,
default: function _default() {
return {};
}
},
duplicateBookingDates: {
type: Array,
default: function _default() {
return [];
}
},
formatDate: {
type: String,
default: ''
},
previousBooking: {
type: Object,
default: function _default() {
return {};
}
}
}
});
// CONCATENATED MODULE: ./src/components/BookingBullet.vue?vue&type=script&lang=js&
/* harmony default export */ var components_BookingBulletvue_type_script_lang_js_ = (BookingBulletvue_type_script_lang_js_);
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/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
}
}
// CONCATENATED MODULE: ./src/components/BookingBullet.vue
/* normalize component */
var component = normalizeComponent(
components_BookingBulletvue_type_script_lang_js_,
BookingBulletvue_type_template_id_5a98a8fc_render,
BookingBulletvue_type_template_id_5a98a8fc_staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var BookingBullet = (component.exports);
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.pnpm/thread-loader@2.1.3_webpack@4.44.1/node_modules/thread-loader/dist/cjs.js!./node_modules/.pnpm/babel-loader@8.1.0_fbab4801791d746d265885e0d19f0bda/node_modules/babel-loader/lib!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib??vue-loader-options!./src/components/Day.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var Dayvue_type_script_lang_js_ = ({
name: 'Day',
components: {
BookingBullet: BookingBullet
},
props: {
bookings: {
type: Array,
default: function _default() {
return [];
}
},
activeMonthIndex: {
type: Number
},
belongsToThisMonth: {
type: Boolean,
default: false
},
checkIn: {
type: Date
},
checkIncheckOutHalfDay: {
type: Object,
default: function _default() {
return {};
}
},
checkInPeriod: {
type: Object,
default: function _default() {
return {};
}
},
checkOut: {
type: Date
},
date: {
type: Date
},
disableCheckoutOnCheckin: {
type: Boolean,
default: false
},
duplicateBookingDates: {
type: Array,
default: function _default() {
return [];
}
},
hoveringDate: {
type: Date
},
hoveringPeriod: {
type: Object,
default: function _default() {
return {};
}
},
hoveringTooltip: {
default: true,
type: Boolean
},
i18n: {
type: Object,
default: function _default() {
return {};
}
},
isOpen: {
type: Boolean,
required: true
},
minNightCount: {
type: Number,
default: 0
},
nextDisabledDate: {
type: [Date, Number, String]
},
nextPeriodDisableDates: {
type: Array,
default: function _default() {
return [];
}
},
options: {
type: Object
},
screenSize: {
type: String,
default: ''
},
showCustomTooltip: {
default: false,
type: Boolean
},
showPrice: {
type: Boolean,
default: false
},
sortedDisabledDates: {
type: Array,
default: function _default() {
return [];
}
},
sortedPeriodDates: {
type: Array,
default: function _default() {
return [];
}
},
tooltipMessage: {
default: null,
type: String
}
},
data: function data() {
return {
currentDate: new Date(),
isDisabled: false,
isHighlighted: false
};
},
computed: {
previousBooking: function previousBooking() {
var _this = this;
var previousBooking = null;
if (this.currentBooking && this.duplicateBookingDates.includes(this.currentBooking.checkInDate)) {
previousBooking = this.bookings.find(function (booking) {
return booking.checkOutDate === _this.formatDate && _this.duplicateBookingDates.includes(booking.checkOutDate);
});
}
return previousBooking;
},
currentBooking: function currentBooking() {
var _this2 = this;
return this.bookings.find(function (booking) {
return _this2.duplicateBookingDates.includes(_this2.formatDate) && booking.checkInDate === _this2.formatDate || !_this2.duplicateBookingDates.includes(_this2.formatDate) && _this2.validateDateBetweenTwoDates(booking.checkInDate, booking.checkOutDate, _this2.formatDate);
});
},
dayNumber: function dayNumber() {
return lib_fecha.format(this.date, 'D');
},
dayPrice: function dayPrice() {
var _this3 = this;
var currentDate = null;
this.sortedPeriodDates.forEach(function (d) {
if (_this3.validateDateBetweenTwoDates(d.startAt, d.endAt, _this3.formatDate)) {
currentDate = d;
}
});
if (currentDate) {
if (currentDate.periodType === 'nightly') {
return currentDate.price;
}
return Math.round(currentDate.price / 7);
}
return '';
},
halfDayClass: function halfDayClass() {
if (Object.keys(this.checkIncheckOutHalfDay).length > 0) {
var keyDate = this.dateFormater(this.date);
if (this.checkIncheckOutHalfDay[keyDate] && this.checkIncheckOutHalfDay[keyDate].checkIn) {
if (this.checkIn && !this.checkOut) {
return 'vhd-datepicker__month-day--halfCheckIn vhd-datepicker__month-day--valid';
}
return 'vhd-datepicker__month-day--halfCheckIn vhd-datepicker__month-day--invalid';
}
if (this.checkIncheckOutHalfDay[keyDate] && this.checkIncheckOutHalfDay[keyDate].checkOut) {
return 'vhd-datepicker__month-day--halfCheckOut vhd-datepicker__month-day--valid';
}
}
return false;
},
bookingClass: function bookingClass() {
if (this.bookings.length > 0 && this.currentBooking) {
if (!this.isDisabled && this.validateDateBetweenTwoDates(this.currentBooking.checkInDate, this.currentBooking.checkOutDate, this.hoveringDate)) {
if (this.checkIncheckOutHalfDay[this.formatDate]) {
if (this.checkIn && !this.checkOut) {
return 'vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering';
}
if (this.checkIncheckOutHalfDay[this.formatDate].checkOut) {
return 'vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering';
}
return 'vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--invalid';
}
if (this.checkIn && !this.checkOut) {
return 'vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--invalid';
}
return 'vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering';
}
if (this.checkIncheckOutHalfDay[this.formatDate] && this.checkIncheckOutHalfDay[this.formatDate].checkOut && !this.duplicateBookingDates.includes(this.formatDate)) {
if (!this.checkIn) {
return 'vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering';
}
if (this.checkIn && this.checkIn === this.date || this.checkIn && this.checkOut) {
return 'vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering';
}
}
if (this.checkIn && !this.checkOut && this.hoveringDate === this.date) {
return 'vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--hovering';
}
return 'vhd-datepicker__month-day--not-allowed vhd-datepicker__month-day--invalid';
}
return '';
},
dayClass: function dayClass() {
var _this4 = this;
if (this.belongsToThisMonth) {
// If the calendar has a minimum number of nights && !checkOut
var nextValidDate = this.addDays(this.checkIn, this.minNightCount);
var isDateAfterMinimumDuration = this.getDayDiff(this.hoveringDate, nextValidDate) <= 0;
if (!isDateAfterMinimumDuration && !this.checkOut && !this.isDisabled && this.compareDay(this.date, this.checkIn) === 1 && this.minNightCount > 0 && this.compareDay(this.date, this.addDays(this.checkIn, this.minNightCount)) === -1) {
return 'vhd-datepicker__month-day--valid vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-minimumDurationUnvalidDay';
} // Current Day
if (!this.isDisabled && this.date === this.hoveringDate && this.checkIn !== null && this.checkOut == null) {
return 'vhd-datepicker__month-day--selected vhd-datepicker__month-day--hovering vhd-currentDay';
} // Highlight the selected dates and prevent the user from selecting
// the same date for checkout and checkin
if (this.checkIn !== null && this.dateFormater(this.checkIn) === this.dateFormater(this.date)) {
if (this.minNightCount === 0) {
return 'vhd-datepicker__month-day--first-day-selected vhd-checkIn';
} // Good
return 'vhd-datepicker__month-day--disabled vhd-datepicker__month-day--first-day-selected vhd-checkIn';
} // Checkout day
if (this.checkOut !== null) {
if (this.dateFormater(this.checkOut) === this.dateFormater(this.date)) {
if (this.halfDayClass) {
return "vhd-datepicker__month-day--disabled vhd-datepicker__month-day--last-day-selected ".concat(this.halfDayClass, " vhd-checkOut");
}
return 'vhd-datepicker__month-day--disabled vhd-datepicker__month-day--last-day-selected vhd-checkOut';
}
} // Only highlight dates that are not disabled
if (this.isHighlighted && !this.isDisabled) {
if (this.options.disabledDaysOfWeek.some(function (i) {
return i === lib_fecha.format(_this4.date, 'dddd');
})) {
return 'vhd-datepicker__month-day--selected vhd-datepicker__month-day--disabled vhd-afterMinimumDurationValidDay';
}
if (Object.keys(this.checkInPeriod).length > 0 && this.checkInPeriod.periodType.includes('weekly') && this.hoveringDate && (this.checkInPeriod.periodType === 'weekly_by_saturday' && this.hoveringDate.getDay() === 6 || this.checkInPeriod.periodType === 'weekly_by_sunday' && this.hoveringDate.getDay() === 0) && this.isDateLessOrEquals(this.date, this.hoveringDate)) {
// If currentPeriod has a minimumDuration 1
if (this.checkInPeriod.minimumDuration === 1) {
return 'vhd-datepicker__month-day--selected vhd-afterMinimumDurationValidDay';
} // If currentPeriod has a minimumDuration superior to 1
if (this.getDayDiff(this.hoveringDate, this.checkInPeriod.nextValidDate) <= 0) {
return 'vhd-datepicker__month-day--selected vhd-afterMinimumDurationValidDay';
}
} else if (Object.keys(this.checkInPeriod).length > 0 && this.checkInPeriod.periodType === 'nightly' && this.hoveringDate && this.hoveringPeriod.periodType.includes('weekly') && (this.hoveringPeriod.periodType === 'weekly_by_saturday' && this.hoveringDate.getDay() === 6 || this.hoveringPeriod.periodType === 'weekly_by_sunday' && this.hoveringDate.getDay() === 0 && this.isDateLessOrEquals(this.date, this.hoveringDate))) {
return 'vhd-datepicker__month-day--selected vhd-afterMinimumDurationValidDay';
}
if (this.hoveringPeriod.periodType === 'nightly' && this.isDateLessOrEquals(this.date, this.hoveringDate)) {
return 'vhd-datepicker__month-day--selected vhd-afterMinimumDurationValidDay';
}
if (this.checkIn && this.checkOut) {
return 'vhd-datepicker__month-day--selected';
}
} // Good
if (this.isDisabled || this.options.disabledDaysOfWeek.some(function (i) {
return i === lib_fecha.format(_this4.date, 'dddd');
})) {
return 'vhd-datepicker__month-day--disabled';
}
} else if (!this.belongsToThisMonth) {
// Good
return 'vhd-datepicker__month-day--hidden';
}
if (this.halfDayClass) {
return "".concat(this.halfDayClass);
} // Good
return 'vhd-datepicker__month-day--valid';
},
checkinCheckoutClass: function checkinCheckoutClass() {
var _this5 = this;
var currentPeriod = null;
this.sortedPeriodDates.forEach(function (d) {
if (d.endAt !== _this5.formatDate && (d.startAt === _this5.formatDate || _this5.validateDateBetweenTwoDates(d.startAt, d.endAt, _this5.formatDate))) {
currentPeriod = d;
}
});
if (this.nextPeriodDisableDates ? this.nextPeriodDisableDates.some(function (i) {
return _this5.compareDay(i, _this5.date) === 0;
}) : null) {
return 'vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-nightly';
}
if (currentPeriod) {
if (currentPeriod.periodType === 'nightly' && this.belongsToThisMonth && !this.isDisabled) {
if ((!this.checkIn && !this.checkOut || this.checkIn && this.checkOut) && this.notAllowedDayDueToNextPeriod(currentPeriod)) {
return 'vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-nightly';
}
return 'vhd-nightly';
} // date.getDay() === 6 => saturday
if (currentPeriod.periodType === 'weekly_by_saturday' && currentPeriod.startAt !== this.formatDate && currentPeriod.endAt !== this.formatDate && this.date.getDay() !== 6) {
return 'vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-weekly_by_saturday';
} // Disable date between checkIn and nextDate, if minimumDuration is superior to 1
if (this.notAllowDaysBetweenCheckInAndNextValidDate(6)) {
return 'vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-weekly_by_saturday';
} // date.getDay() === 0 => sunday
if (currentPeriod.periodType === 'weekly_by_sunday' && currentPeriod.startAt !== this.formatDate && currentPeriod.endAt !== this.formatDate && this.date.getDay() !== 0) {
return 'vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-weekly_by_sunday';
} // Disable date between checkIn and nextDate, if minimumDuration is superior to 1
if (this.notAllowDaysBetweenCheckInAndNextValidDate(0)) {
return 'vhd-datepicker__month-day--disabled vhd-datepicker__month-day--not-allowed vhd-weekly_by_sunday';
}
return '';
}
return '';
},
formatDate: function formatDate() {
return this.dateFormater(this.date);
},
tabIndex: function tabIndex() {
if (!this.isOpen || !this.belongsToThisMonth || this.isDisabled || !this.isClickable()) {
return -1;
}
return 0;
},
nightsCount: function nightsCount() {
return this.countDays(this.checkIn, this.hoveringDate);
},
tooltipMessageDisplay: function tooltipMessageDisplay() {
var dateIsInPeriod = this.validateDateBetweenTwoDates(this.hoveringPeriod.startAt, this.hoveringPeriod.endAt, this.date);
var checkInIsInPeriod = this.validateDateBetweenTwoDates(this.hoveringPeriod.startAt, this.hoveringPeriod.endAt, this.checkIn);
if (this.tooltipMessage) {
return this.tooltipMessage;
}
if (this.hoveringPeriod && this.hoveringPeriod.type !== 'nightly' && dateIsInPeriod && checkInIsInPeriod && this.nightsCount >= 7) {
return "".concat(this.nightsCount / 7, " ").concat(this.pluralize(this.nightsCount, 'week'));
}
if (this.nightsCount >= 1) {
return "".concat(this.nightsCount, " ").concat(this.nightsCount !== 1 ? this.i18n.nights : this.i18n.night);
}
return '';
},
showTooltip: function showTooltip() {
if (this.screenSize === 'desktop' || this.screenSize === 'tablet') {
var showCustomTooltip = this.showCustomTooltip && this.date === this.hoveringDate;
var showDefaultTooltip = !this.isDisabled && this.belongsToThisMonth && this.date === this.hoveringDate && this.tooltipMessageDisplay.length > 0 && this.checkIn !== null && this.checkOut === null;
return showCustomTooltip || showDefaultTooltip;
}
return false;
},
isToday: function isToday() {
return this.compareDay(this.currentDate, this.date) === 0;
}
},
watch: {
hoveringDate: function hoveringDate() {
if (this.checkIn !== null && this.checkOut == null && this.isDisabled === false) {
if (this.isDateLessOrEquals(this.checkIn, this.date) && this.isDateLessOrEquals(this.date, this.hoveringDate)) {
this.isHighlighted = true;
} else {
this.isHighlighted = false;
}
}
},
activeMonthIndex: function activeMonthIndex() {
this.checkIfDisabled();
this.checkIfHighlighted();
if (this.checkIn !== null && this.checkOut !== null) {
if (this.isDateLessOrEquals(this.checkIn, this.date) && this.isDateLessOrEquals(this.date, this.checkOut)) {
this.isHighlighted = true;
} else {
this.isHighlighted = false;
}
} else if (this.checkIn !== null && this.checkOut === null) {
this.disableNextDays();
}
},
nextDisabledDate: function nextDisabledDate() {
this.disableNextDays();
}
},
beforeMount: function beforeMount() {
this.checkIfDisabled();
this.checkIfHighlighted();
},
methods: _objectSpread2(_objectSpread2({}, helpers), {}, {
notAllowDaysBetweenCheckInAndNextValidDate: function notAllowDaysBetweenCheckInAndNextValidDate(dayCode) {
return this.checkIn && !this.checkOut && this.date.getDay() === dayCode && Object.keys(this.hoveringPeriod).length > 0 && this.validateDateBetweenTwoDates(this.checkIn, this.hoveringPeriod.nextValidDate, this.date) && this.dateFormater(this.checkIn) !== this.formatDate && this.dateFormater(this.hoveringPeriod.nextValidDate) !== this.formatDate;
},
notAllowedDayDueToNextPeriod: function notAllowedDayDueToNextPeriod(currentPeriod) {
// Check if the next period is directly after the current period
var date = new Date(currentPeriod.endAt);
var nextPeriod = null;
this.sortedPeriodDates.forEach(function (period) {
var dateA = new Date(period.startAt).setHours(0, 0, 0, 0);
var dateB = new Date(date).setHours(0, 0, 0, 0);
if (dateA === dateB) {
nextPeriod = period;
}
});
if (nextPeriod) {
// Subtract the startAt nextPeriod to the currentPeriod minimumDuration
var subtractTimestamp = new Date(nextPeriod.startAt).setHours(0, 0, 0, 0);
var subtractDate = new Date(subtractTimestamp);
var resultDate = new Date(subtractDate.setDate(subtractDate.getDate() - currentPeriod.minimumDuration));
if (!this.validateDateBetweenTwoDates(currentPeriod.startAt, resultDate, this.date)) {
return true;
}
}
return false;
},
isClickable: function isClickable() {
if (this.$refs && this.$refs.day) {
return getComputedStyle(this.$refs.day).pointerEvents !== 'none';
}
return true;
},
dayClicked: function dayClicked(event, date) {
var resetCheckin = false;
var disableCheckoutOnCheckin = !this.disableCheckoutOnCheckin;
if (!this.checkIncheckOutHalfDay[this.formatDate] && this.currentBooking) {
this.$emit('bookingClicked', event, date, this.currentBooking);
return;
}
if (this.disableCheckoutOnCheckin) {
if (this.checkIn && this.checkIn === date) {
if (this.checkOut) {
disableCheckoutOnCheckin = true;
resetCheckin = true;
} else {
disableCheckoutOnCheckin = false;
this.$emit('clearSelection');
}
} else {
disableCheckoutOnCheckin = true;
}
}
if (disableCheckoutOnCheckin) {
if (!this.isDisabled || this.isClickable()) {
var formatDate = this.dateFormater(date);
this.$emit('dayClicked', event, date, formatDate, resetCheckin);
} else {
this.$emit('clearSelection');
this.dayClicked(event, date);
}
}
},
compareEndDay: function compareEndDay() {
if (this.options.endDate !== Infinity) {
return this.compareDay(this.date, this.options.endDate) === 1;
}
return false;
},
checkIfDisabled: function checkIfDisabled() {
var _this6 = this;
this.isDisabled = // If this day is equal any of the disabled dates
(this.sortedDisabledDates ? this.sortedDisabledDates.some(function (i) {
return _this6.compareDay(i, _this6.date) === 0;
}) : null) || // Or is before the start date
this.compareDay(this.date, this.options.startDate) === -1 || // Or is after the end date
this.compareEndDay() || // Or is in one of the disabled days of the week
this.options.disabledDaysOfWeek.some(function (i) {
return i === lib_fecha.format(_this6.date, 'dddd');
}); // Handle checkout enabled
if (this.options.enableCheckout) {
if (this.compareDay(this.date, this.checkIn) === 1 && this.compareDay(this.date, this.checkOut) === -1) {
this.isDisabled = false;
}
}
},
checkIfHighlighted: function checkIfHighlighted() {
if (this.checkIn !== null && this.checkOut !== null && this.isDisabled === false) {
if (this.isDateLessOrEquals(this.checkIn, this.date) && this.isDateLessOrEquals(this.date, this.checkOut)) {
this.isHighlighted = true;
} else {
this.isHighlighted = false;
}
}
},
disableNextDays: function disableNextDays() {
if (!this.isDateLessOrEquals(this.date, this.nextDisabledDate) && this.nextDisabledDate !== Infinity) {
this.isDisabled = true;
} else if (this.isDateLessOrEquals(this.date, this.checkIn)) {
this.isDisabled = true;
}
if (this.compareDay(this.date, this.checkIn) === 0 && this.minNightCount === 0) {
this.isDisabled = false;
}
if (this.isDateLessOrEquals(this.checkIn, this.date) && this.options.enableCheckout) {
this.isDisabled = false;
}
}
})
});
// CONCATENATED MODULE: ./src/components/Day.vue?vue&type=script&lang=js&
/* harmony default export */ var components_Dayvue_type_script_lang_js_ = (Dayvue_type_script_lang_js_);
// CONCATENATED MODULE: ./src/components/Day.vue
/* normalize component */
var Day_component = normalizeComponent(
components_Dayvue_type_script_lang_js_,
Dayvue_type_template_id_5688852e_render,
Dayvue_type_template_id_5688852e_staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var Day = (Day_component.exports);
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1214c932-vue-loader-template"}!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib??vue-loader-options!./src/components/DateInput.vue?vue&type=template&id=65a2676a&
var DateInputvue_type_template_id_65a2676a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"vhd-datepicker__input",class:_vm.inputClass,attrs:{"data-qa":"datepickerInput","tabindex":_vm.tabIndex},on:{"click":_vm.toggleDatepicker,"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.toggleDatepicker($event)}}},[_vm._v(" "+_vm._s(_vm.inputDate ? _vm.inputDate : _vm.i18n[_vm.inputDateType])+" ")])}
var DateInputvue_type_template_id_65a2676a_staticRenderFns = []
// CONCATENATED MODULE: ./src/components/DateInput.vue?vue&type=template&id=65a2676a&
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.pnpm/thread-loader@2.1.3_webpack@4.44.1/node_modules/thread-loader/dist/cjs.js!./node_modules/.pnpm/babel-loader@8.1.0_fbab4801791d746d265885e0d19f0bda/node_modules/babel-loader/lib!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib??vue-loader-options!./src/components/DateInput.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var DateInputvue_type_script_lang_js_ = ({
props: {
isOpen: {
type: Boolean,
required: true
},
inputDate: {
type: String,
default: null
},
inputDateType: {
type: String,
default: 'check-in'
},
singleDaySelection: {
type: Boolean,
default: false
},
toggleDatepicker: {
type: Function,
required: true
},
i18n: {
type: Object,
required: true
}
},
computed: {
inputClass: function inputClass() {
return {
'vhd-datepicker__input--is-active': this.isOpen && this.inputDate == null,
'vhd-datepicker__input--single-date': this.singleDaySelection
};
},
tabIndex: function tabIndex() {
return this.inputDateType === 'check-in' ? 0 : -1;
}
}
});
// CONCATENATED MODULE: ./src/components/DateInput.vue?vue&type=script&lang=js&
/* harmony default export */ var components_DateInputvue_type_script_lang_js_ = (DateInputvue_type_script_lang_js_);
// CONCATENATED MODULE: ./src/components/DateInput.vue
/* normalize component */
var DateInput_component = normalizeComponent(
components_DateInputvue_type_script_lang_js_,
DateInputvue_type_template_id_65a2676a_render,
DateInputvue_type_template_id_65a2676a_staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var DateInput = (DateInput_component.exports);
// CONCATENATED MODULE: ./src/i18n.js
/* eslint-disable */
/* harmony default export */ var i18n = ({
"night": "Night",
"nights": "Nights",
"week": "week",
"weeks": "weeks",
"day-names": ["Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"],
"check-in": "Check-in",
"check-out": "Check-out",
"month-names": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
"tooltip": {
"halfDayCheckIn": "Available CheckIn",
"halfDayCheckOut": "Available CheckOut",
"saturdayToSaturday": "Only Saturday to Saturday",
"sundayToSunday": "Only Sunday to Sunday",
"minimumRequiredPeriod": "%{minNightInPeriod} %{night} minimum."
}
});
// CONCATENATED MODULE: ./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/.pnpm/thread-loader@2.1.3_webpack@4.44.1/node_modules/thread-loader/dist/cjs.js!./node_modules/.pnpm/babel-loader@8.1.0_fbab4801791d746d265885e0d19f0bda/node_modules/babel-loader/lib!./node_modules/.pnpm/cache-loader@4.1.0_webpack@4.44.1/node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/.pnpm/vue-loader@15.9.3_b61fd53126d8a76b25cc5244d186282f/node_modules/vue-loader/lib??vue-loader-options!./src/components/DatePicker/index.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ var DatePickervue_type_script_lang_js_ = ({
name: 'HotelDatePicker',
components: {
Day: Day,
DateInput: DateInput
},
props: {
bookings: {
type: Array,
default: function _default() {
return [];
}
},
alwaysVisible: {
type: Boolean,
default: false
},
disableCheckoutOnCheckin: {
type: Boolean,
default: false
},
lastDateAvailable: {
type: [Number, Date],
default: Infinity
},
showPrice: {
type: Boolean,
default: false
},
periodDates: {
type: Array,
default: function _default() {
return [];
}
},
gridStyle: {
type: Boolean,
default: true
},
positionRight: {
type: Boolean,
default: false
},
value: {
type: String
},
startingDateValue: {
type: Date,
default: null
},
endingDateValue: {
type: Date,
default: null
},
format: {
type: String,
default: 'YYYY-MM-DD'
},
startDate: {
type: [Date, String],
default: function _default() {
return new Date();
}
},
endDate: {
type: [Date, String, Number],
default: Infinity
},
firstDayOfWeek: {
type: Number,
default: 0
},
minNights: {
type: Number,
default: 1
},
maxNights: {
type: Number,
default: null
},
halfDay: {
type: Boolean,
default: true
},
disabledDates: {
type: Array,
default: function _default() {
return [];
}
},
disabledDaysOfWeek: {
type: Array,
default: function _default() {
return [];
}
},
hoveringTooltip: {
default: true,
type: [Boolean, Function]
},
tooltipMessage: {
type: String,
default: null
},
i18n: {
type: Object,
default: function _default() {
return i18n;
}
},
enableCheckout: {
type: Boolean,
default: false
},
showSingleMonth: {
type: Boolean,
default: false
},
singleDaySelection: {
type: Boolean,
default: false
},
showYear: {
type: Boolean,
default: false
},
closeDatepickerOnClickOutside: {
type: Boolean,
default: true
},
displayClearButton: {
type: Boolean,
default: true
}
},
data: function data() {
return {
activeMonthIndex: 0,
checkIn: this.startingDateValue,
checkIncheckOutHalfDay: {},
checkInPeriod: {},
checkOut: this.endingDateValue,
hoveringPeriod: {},
customTooltip: '',
customTooltipHalfday: '',
datepickerDayKey: 0,
datepickerMonthKey: 0,
datepickerWeekKey: 0,
dynamicNightCounts: null,
hash: Date.now(),
hoveringDate: null,
isOpen: false,
isTouchMove: false,
months: [],
nextDisabledDate: null,
nextPeriodDisableDates: [],
screenSize: null,
show: true,
showCustomTooltip: false,
sortedDisabledDates: null,
xDown: null,
xUp: null,
yDown: null,
yUp: null
};
},
computed: {
sortBookings: function sortBookings() {
if (this.bookings.length > 0) {
var bookings = _toConsumableArray(this.bookings);
return bookings.sort(function (a, b) {
var aa = a.checkInDate.split('/').reverse().join();
var bb = b.checkOutDate.split('/').reverse().join(); // eslint-disable-next-line no-nested-ternary
return aa < bb ? -1 : aa > bb ? 1 : 0;
});
}
return [];
},
duplicateBookingDates: function duplicateBookingDates() {
return this.baseHalfDayDates.filter(function (newArr) {
return function (date) {
return newArr.has(date) || !newArr.add(date);
};
}(new Set()));
},
baseHalfDayDates: function baseHalfDayDates() {
if (this.sortBookings.length > 0) {
var bookings = this.sortBookings.map(function (x) {
return [x.checkInDate, x.checkOutDate];
});
return bookings.reduce(function (a, b) {
return a.concat(b);
});
}
return this.disabledDates;
},
paginateDesktop: function paginateDesktop() {
if (this.showSingleMonth || this.alwaysVisible && this.screenSize !== 'desktop') {
return [0];
}
return [0, 1];
},
customTooltipMessage: function customTooltipMessage() {
var tooltip = '';
if (this.hoveringDate && (this.customTooltip || this.customTooltipHalfday)) {
if (this.customTooltip && this.customTooltipHalfday) {
tooltip = "".concat(this.customTooltipHalfday, ". <br/> ").concat(this.customTooltip);
} else if (this.customTooltipHalfday && !this.customTooltip) {
tooltip = this.customTooltipHalfday;
} else {
tooltip = this.customTooltip;
}
return tooltip;
}
return this.tooltipMessage;
},
sortedPeriodDates: function sortedPeriodDates() {
if (this.periodDates) {
var periodDates = _toConsumableArray(this.periodDates);
return periodDates.sort(function (a, b) {
var aa = a.startAt.split('/').reverse().join();
var bb = b.startAt.split('/').reverse().join(); // eslint-disable-next-line no-nested-ternary
return aa < bb ? -1 : aa > bb ? 1 : 0;
});
}
return this.periodDates;
},
sliceMonthMobile: function sliceMonthMobile() {
var nbMonthRenderDom = 4;
if (this.activeMonthIndex >= nbMonthRenderDom) {
return this.months.slice(this.activeMonthIndex - 3, this.activeMonthIndex + 1);
}
return this.months.slice(0, nbMonthRenderDom);
},
isPreventedMaxMonth: function isPreventedMaxMonth() {
var lastIndexMonthAvailable = this.getMonthDiff(this.startDate, this.lastDateAvailable);
return this.activeMonthIndex >= lastIndexMonthAvailable - 1;
},
minNightCount: function minNightCount() {
return this.dynamicNightCounts || this.minNights;
},
showClearSelectionButton: function showClearSelectionButton() {
return Boolean((this.checkIn || this.checkOut) && this.displayClearButton);
}
},
watch: {
bookings: function bookings() {
this.createHalfDayDates(this.baseHalfDayDates);
},
isOpen: function isOpen(value) {
var _this = this;
if (this.screenSize !== 'desktop' && !this.alwaysVisible) {
var body = document.querySelector('body');
if (value) {
body.style.overflow = 'hidden';
this.$nextTick(function () {
if (_this.$refs) {
var swiperWrapper = _this.$refs.swiperWrapper;
var monthHeihgt = _this.$refs.datepickerMonth[0].offsetHeight;
var currentSelectionIndex = _this.checkOut ? _this.getMonthDiff(new Date(), _this.checkOut) : 0;
swiperWrapper.scrollTop = currentSelectionIndex * monthHeihgt;
}
});
} else {
body.style.overflow = '';
}
}
},
checkIn: function checkIn(newDate) {
this.$emit('check-in-changed', newDate);
},
checkOut: function checkOut(newDate) {
if (this.checkOut !== null) {
this.hoveringDate = null;
this.nextDisabledDate = null;
this.createHalfDayDates(this.baseHalfDayDates);
this.reRender();
this.showCustomTooltip = false;
this.isOpen = false;
}
this.$emit('check-out-changed', newDate);
}
},
created: function created() {
lib_fecha.i18n = {
dayNames: this.i18n['day-names'],
dayNamesShort: this.shortenString(this.i18n['day-names'], 3),
monthNames: this.i18n['month-names'],
monthNamesShort: this.shortenString(this.i18n['month-names'], 3),
amPm: ['am', 'pm'],
// D is the day of the month, function returns something like... 3rd or 11th
DoFn: function DoFn(D) {
return D + ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D - D % 10 !== 10) * D % 10];
}
};
if (this.checkIn && (this.getMonthDiff(this.getNextMonth(new Date(this.startDate)), this.checkIn) > 0 || this.getMonthDiff(this.startDate, this.checkIn) > 0)) {
this.createMonth(new Date(this.startDate));
var count = this.getMonthDiff(this.startDate, this.checkIn);
var nextMonth = new Date(this.startDate);
for (var i = 0; i <= count; i++) {
var tempNextMonth = this.getNextMonth(nextMonth);
this.createMonth(tempNextMonth);
nextMonth = tempNextMonth;
}
if (this.checkOut && this.getMonthDiff(this.checkIn, this.checkOut) > 0) {
this.createMonth(this.getNextMonth(nextMonth));
this.activeMonthIndex = 1;
}
this.activeMonthIndex += count;
} else {
this.createMonth(new Date(this.startDate));
this.createMonth(this.getNextMonth(new Date(this.startDate)));
}
},
mounted: function mounted() {
var _this2 = this;
this.handleWindowResize();
window.addEventListener('resize', this.handleWindowResize);
if (this.screenSize !== 'desktop') {
document.addEventListener('touchstart', this.handleTouchStart, false);
document.addEventListener('touchmove', this.handleTouchMove, false);
document.addEventListener('touchend', this.handleTouchEnd, false);
} else {
document.addEventListener('click', this.handleClickOutside, false);
document.addEventListener('keyup', this.escFunction, false);
}
this.onElementHeightChange(document.body, function () {
_this2.emitHeighChangeEvent();
});
this.createHalfDayDates(this.baseHalfDayDates);
},
destroyed: function destroyed() {
window.removeEventListener('resize', this.handleWindowResize);
if (this.screenSize !== 'desktop') {
document.removeEventListener('touchstart', this.handleTouchStart);
document.removeEventListener('touchmove', this.handleTouchMove);
document.removeEventListener('touchend', this.handleTouchEnd);
} else {
document.removeEventListener('keyup', this.escFunction, false);
document.removeEventListener('click', this.handleClickOutside);
}
},
methods: _objectSpread2(_objectSpread2({}, helpers), {}, {
handleBookingClicked: function handleBookingClicked(event, date, currentBooking) {
this.$emit('bookingClicked', event, date, currentBooking);
},
escFunction: function escFunction(e) {
var escTouch = 27;
if (e.keyCode === escTouch && this.isOpen && this.checkIn) {
this.clearSelection();
}
},
formatDate: function formatDate(date) {
return this.dateFormater(date, this.format);
},
cleanString: function cleanString(string) {
// eslint-disable-next-line no-useless-escape
return string.replace(/\<br\/>/g, '');
},
dateIsInCheckInCheckOut: function dateIsInCheckInCheckOut(date) {
var _this3 = this;
var compareDate = this.dateFormater(date);
var currentPeriod = null;
this.sortedPeriodDates.forEach(function (d) {
if (d.endAt !== compareDate && (d.startAt === compareDate || _this3.validateDateBetweenTwoDates(d.startAt, d.endAt, compareDate))) {
currentPeriod = d;
}
});
return currentPeriod;
},
dayIsDisabled: function dayIsDisabled(date) {
if (this.checkIn && !this.checkOut && !this.isDateLessOrEquals(date, this.nextDisabledDate) && this.nextDisabledDate !== Infinity) {
return true;
}
if (this.checkIn && !this.checkOut && this.isDateLessOrEquals(date, this.checkIn)) {
return true;
}
return false;
},
mouseEnterDay: function mouseEnterDay(day) {
var formatDate = this.dateFormater(day.date);
var halfDays = Object.keys(this.checkIncheckOutHalfDay);
var disableDays = this.disabledDates.filter(function (disableDate) {
return !halfDays.includes(disableDate);
}).includes(formatDate);
if (!this.dayIsDisabled(day.date) && day.belongsToThisMonth && !disableDays) {
this.setCustomTooltipOnHover(day);
}
},
setCurrentPeriod: function setCurrentPeriod(date, eventType) {
var _this4 = this;
var currentPeriod = {};
if (this.sortedPeriodDates.length > 0) {
this.sortedPeriodDates.forEach(function (d) {
if (eventType === 'click' && (d.startAt === _this4.dateFormater(date) || d.endAt !== _this4.dateFormater(date) && _this4.validateDateBetweenTwoDates(d.startAt, d.endAt, date))) {
currentPeriod = d;
} else if (eventType === 'hover' && (d.startAt === _this4.dateFormater(date) || _this4.validateDateBetweenTwoDates(d.startAt, d.endAt, date))) {
currentPeriod = d;
}
});
if (Object.keys(currentPeriod).length > 0) {
this.hoveringPeriod = currentPeriod;
} else if (this.minNightCount > 0 && this.checkIn) {
this.hoveringPeriod = {
periodType: 'nightly',
minimumDuration: this.minNightCount,
startAt: this.checkIn,
endAt: this.addDays(this.checkIn, this.minNightCount)
};
} else {
this.hoveringPeriod = {
periodType: 'nightly',
minimumDuration: this.minNightCount,
startAt: this.checkIn,
endAt: this.addDays(this.checkIn, this.minNightCount)
};
}
} else if (this.minNightCount > 0) {
this.hoveringPeriod = {
periodType: 'nightly',
minimumDuration: this.minNightCount,
startAt: this.checkIn,
endAt: this.addDays(this.checkIn, this.minNightCount)
};
}
},
setCustomTooltipOnHover: function setCustomTooltipOnHover(day) {
var date = day.date;
this.hoveringDate = date;
if (this.showCustomTooltip) this.showCustomTooltip = false;
this.setCurrentPeriod(date, 'hover');
if (Object.keys(this.hoveringPeriod).length > 0) {
// Create tooltip
if (this.hoveringPeriod.periodType === 'weekly_by_saturday') {
var dayCode = 6;
var text = this.i18n.tooltip.saturdayToSaturday;
this.showTooltipWeeklyOnHover(date, dayCode, text);
} else if (this.hoveringPeriod.periodType === 'weekly_by_sunday') {
var _dayCode = 0;
var _text = this.i18n.tooltip.sundayToSunday;
this.showTooltipWeeklyOnHover(date, _dayCode, _text);
} else if (this.hoveringPeriod.periodType === 'nightly') {
this.showTooltipNightlyOnHover(date);
} else {
// Clean tooltip
this.showCustomTooltip = false;
this.customTooltip = '';
}
} else {
this.hoveringPeriod = {};
}
if (this.halfDay) {
this.createHalfDayTooltip(day.date);
}
},
handleDayClick: function handleDayClick(event, date, formatDate, resetCheckin) {
var _this5 = this;
this.nextPeriodDisableDates = [];
if (resetCheckin) {
this.clearSelection();
this.$nextTick(function () {
_this5.handleDayClick(event, date, formatDate, false);
});
return;
}
var nextDisabledDate = (this.maxNights ? this.addDays(date, this.maxNights) : null) || this.getNextDate(this.sortedDisabledDates, date) || this.nextDateByDayOfWeekArray(this.disabledDaysOfWeek, date) || this.nextBookingDate(date) || Infinity;
this.dynamicNightCounts = null;
if (this.enableCheckout) {
nextDisabledDate = Infinity;
}
if (this.checkIn == null && this.singleDaySelection === false) {
this.checkIn = date;
this.setMinimumDuration(date);
} else if (this.singleDaySelection === true) {
this.checkIn = date;
this.checkOut = date;
} else if (this.checkIn !== null && this.checkOut == null) {
this.checkOut = date;
this.$emit('periodSelected', event, this.checkIn, this.checkOut);
} else {
this.checkOut = null;
this.checkIn = date;
this.setMinimumDuration(date);
}
if (this.checkIn && !this.checkOut) {
this.setCurrentPeriod(date, 'click');
this.checkInPeriod = this.hoveringPeriod;
this.setCustomTooltipOnClick();
}
this.nextDisabledDate = nextDisabledDate;
this.$emit('dayClicked', date, formatDate, nextDisabledDate);
},
nextBookingDate: function nextBookingDate(date) {
var _this6 = this;
var closest = Infinity;
if (this.sortBookings.length > 0) {
var nextDateFormated = this.dateFormater(this.addDays(date, 1));
var nextBooking = this.sortBookings.find(function (booking) {
return _this6.validateDateBetweenDate(booking.checkInDate, nextDateFormated) || _this6.validateDateBetweenTwoDates(booking.checkInDate, booking.checkOutDate, nextDateFormated);
});
closest = nextBooking ? nextBooking.checkInDate : Infinity;
}
return closest;
},
setCustomTooltipOnClick: function setCustomTooltipOnClick() {
if (Object.keys(this.checkInPeriod).length > 0 && this.checkInPeriod.periodType.includes('weekly')) {
var nextValidDate = this.addDays(this.checkIn, this.minNightCount);
this.checkInPeriod.nextValidDate = nextValidDate;
this.showTooltipWeeklyOnClick();
} else if (this.checkInPeriod.periodType === 'nightly') {
this.showTooltipNightlyOnClick();
}
},
showTooltipWeeklyOnHover: function showTooltipWeeklyOnHover(date, periodDayType, text) {
var countDaysBetweenCheckInCurrentDay = this.countDays(this.checkIn, date);
var notOnPeriodDayType = date.getDay() !== periodDayType;
var isCheckInCheckOut = this.checkIn && this.checkOut;
var notCheckInNotPeriodDayType = !this.checkIn && notOnPeriodDayType;
var isCheckInNotCheckOut = this.checkIn && !this.checkOut;
var isNotBetweenCheckInAndCheckOut = !this.validateDateBetweenTwoDates(this.checkIn, this.checkOut, date);
var notAllowDaysBetweenCheckInAndNextValidDate = this.hoveringPeriod.nextValidDate && this.validateDateBetweenTwoDates(this.checkIn, this.hoveringPeriod.nextValidDate, this.hoveringDate) && this.dateFormater(this.checkIn) !== this.dateFormater(this.hoveringDate) && this.dateFormater(this.hoveringPeriod.nextValidDate) !== this.dateFormater(this.hoveringDate);
var hasHalfDayOnWeeklyPeriod = Object.keys(this.checkIncheckOutHalfDay).length > 0 && this.checkIncheckOutHalfDay[this.dateFormater(date)] && this.checkIncheckOutHalfDay[this.dateFormater(date)].checkIn; // Show tooltip on not-allowed day
if (notCheckInNotPeriodDayType) {
this.showCustomTooltip = true;
this.customTooltip = text;
} else {
this.showCustomTooltip = false;
this.customTooltip = '';
} // Show tooltip when CheckIn
if (isCheckInNotCheckOut) {
var nextDayValid = this.addDays(this.checkIn, this.minNightCount);
var isDateAfterMinimumDuration = this.getDayDiff(date, nextDayValid) <= 0;
if (isDateAfterMinimumDuration && notOnPeriodDayType) {
this.showCustomTooltip = true;
this.customTooltip = text;
} else if (notOnPeriodDayType || notAllowDaysBetweenCheckInAndNextValidDate) {
if (this.checkInPeriod && this.checkInPeriod.periodType === 'nightly') {
this.showCustomTooltip = false;
this.customTooltip = '';
} else {
// Show default message on currentDay
var night = this.pluralize(this.minNightCount, 'week');
this.showCustomTooltip = true;
this.customTooltip = this.completeTrad(this.i18n.tooltip.minimumRequiredPeriod, {
minNightInPeriod: this.minNightCount / 7,
night: night
});
}
} else if (hasHalfDayOnWeeklyPeriod) {
// Show the correct wording in comparison to periodType of this.checkInPeriod equal to "nightly" / "weekly"
if (this.checkInPeriod.periodType !== 'nightly') {
this.customTooltip = "".concat(countDaysBetweenCheckInCurrentDay / 7, " ").concat(this.pluralize(this.minNightCount, 'week'));
} else if (this.checkInPeriod.periodType === 'nightly') {
this.customTooltip = "".concat(countDaysBetweenCheckInCurrentDay, " ").concat(countDaysBetweenCheckInCurrentDay !== 1 ? this.i18n.nights : this.i18n.night);
}
} else {
// Clean tooltip
this.showCustomTooltip = false;
this.customTooltip = '';
} // Show tooltip when CheckIn & CheckOut on all the days that are not between checkIn and CheckOut
} else if (isCheckInCheckOut && notOnPeriodDayType && isNotBetweenCheckInAndCheckOut) {
this.showCustomTooltip = true;
this.customTooltip = text;
}
},
showTooltipWeeklyOnClick: function showTooltipWeeklyOnClick() {
var night = this.pluralize(this.minNightCount, 'week');
this.showCustomTooltip = true;
this.customTooltip = this.completeTrad(this.i18n.tooltip.minimumRequiredPeriod, {
minNightInPeriod: this.minNightCount / 7,
night: night
});
},
showTooltipNightlyOnHover: function showTooltipNightlyOnHover(date) {
if (this.checkIn && !this.checkOut) {
var nextDayValid = this.addDays(this.checkIn, this.minNightCount);
var isDateAfterMinimumDuration = this.getDayDiff(date, nextDayValid) <= 0;
var countOfDays = this.countDays(this.checkIn, date);
var night = this.pluralize(Math.max(this.minNightCount, countOfDays));
if (!isDateAfterMinimumDuration) {
var minNightInPeriod = this.hoveringPeriod.minimumDuration;
this.showCustomTooltip = true;
this.customTooltip = this.completeTrad(this.i18n.tooltip.minimumRequiredPeriod, {
minNightInPeriod: minNightInPeriod,
night: night
});
} else {
this.customTooltip = "".concat(countOfDays, " ").concat(night);
}
} else {
this.customTooltip = '';
}
},
showTooltipNightlyOnClick: function showTooltipNightlyOnClick() {
var minNightInPeriod = this.hoveringPeriod.minimumDuration;
var night = this.pluralize(this.minNightCount);
this.showCustomTooltip = true;
this.customTooltip = this.completeTrad(this.i18n.tooltip.minimumRequiredPeriod, {
minNightInPeriod: minNightInPeriod,
night: night
});
},
createHalfDayTooltip: function createHalfDayTooltip(date) {
this.customTooltipHalfday = '';
var formatedHoveringDate = this.dateFormater(date);
if (this.checkIncheckOutHalfDay[formatedHoveringDate]) {
this.showCustomTooltip = true;
if (this.checkIncheckOutHalfDay[formatedHoveringDate].checkIn) {
this.customTooltipHalfday = this.i18n.tooltip.halfDayCheckOut;
} else if (this.checkIncheckOutHalfDay[formatedHoveringDate].checkOut) {
this.customTooltipHalfday = this.i18n.tooltip.halfDayCheckIn;
}
}
},
completeTrad: function completeTrad(translation, keys) {
var newT = translation;
var keysTranslations = Object.keys(keys);
keysTranslations.forEach(function (key) {
newT = newT.replace("%{".concat(key, "}"), keys[key]);
});
return newT;
},
handleClickOutside: function handleClickOutside(event) {
var ignoreClickOnMeElement = this.$refs["DatePicker-".concat(this.hash)];
if (ignoreClickOnMeElement) {
var isClickInsideElement = ignoreClickOnMeElement.contains(event.target);
if (!isClickInsideElement) {
this.hideDatepicker();
}
}
},
handleWindowResize: function handleWindowResize() {
if (window.innerWidth < 480) {
this.screenSize = 'smartphone';
} else if (window.innerWidth >= 480 && window.innerWidth < 768) {
this.screenSize = 'tablet';
} else if (window.innerWidth >= 768) {
this.screenSize = 'desktop';
}
return this.screenSize;
},
onElementHeightChange: function onElementHeightChange(el, callback) {
var lastHeight = el.clientHeight;
var newHeight = lastHeight;
var newEl = el;
(function run() {
newHeight = el.clientHeight;
if (lastHeight !== newHeight) {
callback();
}
lastHeight = newHeight;
if (newEl.onElementHeightChangeTimer) {
clearTimeout(el.onElementHeightChangeTimer);
}
newEl.onElementHeightChangeTimer = setTimeout(run, 1000);
})();
},
emitHeighChangeEvent: function emitHeighChangeEvent() {
this.$emit('height-changed');
},
reRender: function reRender() {
this.datepickerDayKey += 1;
this.datepickerMonthKey += 1;
this.datepickerWeekKey += 1;
},
clearSelection: function clearSelection() {
this.hoveringDate = null;
this.checkIn = null;
this.checkOut = null;
this.nextDisabledDate = null;
this.nextPeriodDisableDates = [];
this.showCustomTooltip = false;
this.hoveringPeriod = {};
this.checkInPeriod = {};
this.createHalfDayDates(this.baseHalfDayDates);
this.reRender();
this.$emit('clear-selection');
},
closeMobileDatepicker: function closeMobileDatepicker() {
this.hideDatepicker();
},
hideDatepicker: function hideDatepicker() {
this.clearCheckIn();
this.isOpen = false;
},
showDatepicker: function showDatepicker() {
this.isOpen = true;
},
toggleDatepicker: function toggleDatepicker() {
this.clearCheckIn();
this.isOpen = !this.isOpen;
},
clearCheckIn: function clearCheckIn() {
if (this.checkIn && !this.checkOut) {
this.clearSelection();
}
},
clickOutside: function clickOutside() {
if (this.show && this.closeDatepickerOnClickOutside) {
this.hideDatepicker();
}
},
setMinimumDuration: function setMinimumDuration(date) {
var _this7 = this;
if (this.sortedPeriodDates) {
var nextPeriod = null;
var currentPeriod = null;
var compareDate = this.dateFormater(date);
this.sortedPeriodDates.forEach(function (d) {
if (d.endAt !== compareDate && (d.startAt === compareDate || _this7.validateDateBetweenTwoDates(d.startAt, d.endAt, date))) {
currentPeriod = d;
}
});
if (currentPeriod) {
this.sortedPeriodDates.forEach(function (period) {
if (period.startAt === currentPeriod.endAt) {
nextPeriod = period;
}
});
if (this.checkIn && !this.checkOut && nextPeriod) {
var endNextPeriod = this.addDays(nextPeriod.startAt, nextPeriod.minimumDuration - 1);
var startNextPeriodPlusOne = this.addDays(nextPeriod.startAt, 1);
var newDisablesDates = this.getDaysArray(startNextPeriodPlusOne, endNextPeriod);
this.nextPeriodDisableDates = newDisablesDates;
}
if (currentPeriod.periodType === 'nightly' && currentPeriod.endAt !== date) {
this.dynamicNightCounts = currentPeriod.minimumDuration;
}
if (currentPeriod.periodType === 'weekly_by_saturday' || currentPeriod.periodType === 'weekly_by_sunday') {
var minimumDuration = currentPeriod.minimumDuration * 7;
this.dynamicNightCounts = minimumDuration;
}
} else {
this.dynamicNightCounts = 0;
}
}
},
renderPreviousMonth: function renderPreviousMonth() {
if (this.activeMonthIndex >= 1) {
this.activeMonthIndex--;
}
},
renderNextMonth: lodash_throttle_default()(function throttleRenderNextMonth() {
if (this.activeMonthIndex < this.months.length - 2) {
this.activeMonthIndex++;
return;
}
var firstDayOfLastMonth;
if (this.screenSize !== 'desktop') {
firstDayOfLastMonth = this.months[this.months.length - 1].days.filter(function (day) {
return day.belongsToThisMonth === true;
});
} else {
firstDayOfLastMonth = this.months[this.activeMonthIndex + 1].days.filter(function (day) {
return day.belongsToThisMonth === true;
});
}
if (this.endDate !== Infinity) {
if (lib_fecha.format(firstDayOfLastMonth[0].date, 'YYYYMM') === lib_fecha.format(new Date(this.endDate), 'YYYYMM')) {
return;
}
}
this.createMonth(this.getNextMonth(firstDayOfLastMonth[0].date));
this.activeMonthIndex++;
}, 350),
setCheckIn: function setCheckIn(date) {
this.checkIn = date;
},
setCheckOut: function setCheckOut(date) {
this.checkOut = date;
},
getMonth: function getMonth(date) {
return this.i18n['month-names'][lib_fecha.format(date, 'M') - 1] + (this.showYear ? lib_fecha.format(date, ' YYYY') : '');
},
createMonth: function createMonth(date) {
var firstDay = this.getFirstDay(date, this.firstDayOfWeek);
var month = {
days: []
};
for (var i = 0; i < 42; i++) {
month.days.push({
date: this.addDays(firstDay, i),
belongsToThisMonth: this.addDays(firstDay, i).getMonth() === date.getMonth()
});
}
this.months.push(month);
},
createHalfDayDates: function createHalfDayDates(_baseHalfDayDates) {
var sortedDates = [];
var checkIncheckOutHalfDay = {};
var baseHalfDayDates = _toConsumableArray(_baseHalfDayDates); // Sorted disabledDates
baseHalfDayDates.sort(function (a, b) {
var aa = a.split('/').reverse().join();
var bb = b.split('/').reverse().join(); // eslint-disable-next-line no-nested-ternary
return aa < bb ? -1 : aa > bb ? 1 : 0;
});
if (this.sortBookings.length === 0) {
for (var i = 0; i < baseHalfDayDates.length; i++) {
var newDate = baseHalfDayDates[i];
if (this.halfDay) {
var newDateIncrementOne = baseHalfDayDates[i + 1];
if (i === 0) {
checkIncheckOutHalfDay[newDate] = {
checkIn: true
};
}
if (!checkIncheckOutHalfDay[newDate] && baseHalfDayDates[i + 1] && this.getDayDiff(newDate, newDateIncrementOne) > 1) {
checkIncheckOutHalfDay[newDate] = {
checkOut: true
};
checkIncheckOutHalfDay[newDateIncrementOne] = {
checkIn: true
};
}
if (i === baseHalfDayDates.length - 1) {
checkIncheckOutHalfDay[baseHalfDayDates[baseHalfDayDates.length - 1]] = {
checkOut: true
};
}
}
sortedDates[i] = baseHalfDayDates[i];
}
} else {
this.sortBookings.forEach(function (booking) {
checkIncheckOutHalfDay[booking.checkInDate] = {
checkIn: true
};
checkIncheckOutHalfDay[booking.checkOutDate] = {
checkOut: true
};
});
}
if (this.halfDay) {
var halfDays = Object.keys(checkIncheckOutHalfDay);
sortedDates = sortedDates.filter(function (date) {
return !halfDays.includes(date);
});
}
sortedDates = sortedDates.map(function (date) {
return new Date(date);
});
this.sortedDisabledDates = sortedDates.sort(function (a, b) {
return a - b;
});
this.checkIncheckOutHalfDay = checkIncheckOutHalfDay;
this.$emit('handleCheckIncheckOutHalfDay', this.checkIncheckOutHalfDay);
}
})
});
// CONCATENATED MODULE: ./src/components/DatePicker/index.vue?vue&type=script&lang=js&
/* harmony default export */ var components_DatePickervue_type_script_lang_js_ = (DatePickervue_type_script_lang_js_);
// EXTERNAL MODULE: ./src/components/DatePicker/index.scss?vue&type=style&index=0&lang=scss&
var DatePickervue_type_style_index_0_lang_scss_ = __webpack_require__("084e");
// CONCATENATED MODULE: ./src/components/DatePicker/index.vue
/* normalize component */
var DatePicker_component = normalizeComponent(
components_DatePickervue_type_script_lang_js_,
render,
staticRenderFns,
false,
null,
null,
null
)
/* harmony default export */ var DatePicker = (DatePicker_component.exports);
// CONCATENATED MODULE: ./src/index.js
/* harmony default export */ var src_0 = (DatePicker);
// CONCATENATED MODULE: ./node_modules/.pnpm/@vue/cli-service@4.3.1_c9877f5dad863b1444afa71566d03c43/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src_0);
/***/ }),
/***/ "7706":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("dc77");
var Iterators = __webpack_require__("0270");
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);
};
/***/ }),
/***/ "773d":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var IteratorPrototype = __webpack_require__("5a44").IteratorPrototype;
var create = __webpack_require__("416b");
var createPropertyDescriptor = __webpack_require__("6559");
var setToStringTag = __webpack_require__("9c17");
var Iterators = __webpack_require__("0270");
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;
};
/***/ }),
/***/ "77c1":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("b04a");
var aPossiblePrototype = __webpack_require__("ea3a");
// `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);
/***/ }),
/***/ "796d":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("dc77");
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;
};
/***/ }),
/***/ "7a50":
/***/ (function(module, exports, __webpack_require__) {
var TO_STRING_TAG_SUPPORT = __webpack_require__("e721");
var classofRaw = __webpack_require__("924e");
var wellKnownSymbol = __webpack_require__("dc77");
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;
};
/***/ }),
/***/ "7ab2":
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__("00d2");
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);
};
/***/ }),
/***/ "7b26":
/***/ (function(module, exports, __webpack_require__) {
var path = __webpack_require__("e2e6");
var global = __webpack_require__("e924");
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];
};
/***/ }),
/***/ "800a":
/***/ (function(module, exports, __webpack_require__) {
var hiddenKeys = __webpack_require__("6377");
var isObject = __webpack_require__("c7eb");
var has = __webpack_require__("a04b");
var defineProperty = __webpack_require__("d096").f;
var uid = __webpack_require__("2a07");
var FREEZING = __webpack_require__("6387");
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;
/***/ }),
/***/ "8346":
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__("924e");
// `IsArray` abstract operation
// https://tc39.github.io/ecma262/#sec-isarray
module.exports = Array.isArray || function isArray(arg) {
return classof(arg) == 'Array';
};
/***/ }),
/***/ "87ef":
/***/ (function(module, exports) {
module.exports = function (exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};
/***/ }),
/***/ "8b03":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var $reduce = __webpack_require__("8ecb").left;
var arrayMethodIsStrict = __webpack_require__("ad41");
var arrayMethodUsesToLength = __webpack_require__("effa");
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);
}
});
/***/ }),
/***/ "8c2f":
/***/ (function(module, exports, __webpack_require__) {
var defineWellKnownSymbol = __webpack_require__("2991");
// `Symbol.iterator` well-known symbol
// https://tc39.github.io/ecma262/#sec-symbol.iterator
defineWellKnownSymbol('iterator');
/***/ }),
/***/ "8d8a":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var exec = __webpack_require__("036c");
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
exec: exec
});
/***/ }),
/***/ "8ecb":
/***/ (function(module, exports, __webpack_require__) {
var aFunction = __webpack_require__("9648");
var toObject = __webpack_require__("39d3");
var IndexedObject = __webpack_require__("31dc");
var toLength = __webpack_require__("ba98");
// `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)
};
/***/ }),
/***/ "8ee9":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var createNonEnumerableProperty = __webpack_require__("3190");
module.exports = function (key, value) {
try {
createNonEnumerableProperty(global, key, value);
} catch (error) {
global[key] = value;
} return value;
};
/***/ }),
/***/ "90c8":
/***/ (function(module, exports, __webpack_require__) {
var TO_STRING_TAG_SUPPORT = __webpack_require__("e721");
var redefine = __webpack_require__("b85f");
var toString = __webpack_require__("4223");
// `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 });
}
/***/ }),
/***/ "923d":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fails = __webpack_require__("87ef");
// 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;
});
/***/ }),
/***/ "924e":
/***/ (function(module, exports) {
var toString = {}.toString;
module.exports = function (it) {
return toString.call(it).slice(8, -1);
};
/***/ }),
/***/ "9457":
/***/ (function(module, exports, __webpack_require__) {
var internalObjectKeys = __webpack_require__("bc46");
var enumBugKeys = __webpack_require__("02a3");
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);
};
/***/ }),
/***/ "9648":
/***/ (function(module, exports) {
module.exports = function (it) {
if (typeof it != 'function') {
throw TypeError(String(it) + ' is not a function');
} return it;
};
/***/ }),
/***/ "97d2":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var setGlobal = __webpack_require__("8ee9");
var SHARED = '__core-js_shared__';
var store = global[SHARED] || setGlobal(SHARED, {});
module.exports = store;
/***/ }),
/***/ "9959":
/***/ (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
};
/***/ }),
/***/ "9ae9":
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__("a04b");
var ownKeys = __webpack_require__("c892");
var getOwnPropertyDescriptorModule = __webpack_require__("eacb");
var definePropertyModule = __webpack_require__("d096");
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));
}
};
/***/ }),
/***/ "9c17":
/***/ (function(module, exports, __webpack_require__) {
var defineProperty = __webpack_require__("d096").f;
var has = __webpack_require__("a04b");
var wellKnownSymbol = __webpack_require__("dc77");
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 });
}
};
/***/ }),
/***/ "9d08":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fixRegExpWellKnownSymbolLogic = __webpack_require__("4243");
var anObject = __webpack_require__("b04a");
var toObject = __webpack_require__("39d3");
var toLength = __webpack_require__("ba98");
var toInteger = __webpack_require__("00d2");
var requireObjectCoercible = __webpack_require__("cf8d");
var advanceStringIndex = __webpack_require__("a35c");
var regExpExec = __webpack_require__("391e");
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;
});
}
});
/***/ }),
/***/ "a04b":
/***/ (function(module, exports) {
var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
return hasOwnProperty.call(it, key);
};
/***/ }),
/***/ "a18d":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var $some = __webpack_require__("33e4").some;
var arrayMethodIsStrict = __webpack_require__("ad41");
var arrayMethodUsesToLength = __webpack_require__("effa");
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);
}
});
/***/ }),
/***/ "a35c":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var charAt = __webpack_require__("bdf4").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);
};
/***/ }),
/***/ "a4ab":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("b04a");
// 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;
}
};
/***/ }),
/***/ "a620":
/***/ (function(module, exports, __webpack_require__) {
var store = __webpack_require__("97d2");
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;
/***/ }),
/***/ "a6a9":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var $find = __webpack_require__("33e4").find;
var addToUnscopables = __webpack_require__("6466");
var arrayMethodUsesToLength = __webpack_require__("effa");
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);
/***/ }),
/***/ "a777":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("afee");
var fails = __webpack_require__("87ef");
var createElement = __webpack_require__("ef77");
// Thank's IE8 for his funny defineProperty
module.exports = !DESCRIPTORS && !fails(function () {
return Object.defineProperty(createElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});
/***/ }),
/***/ "a9b1":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var inspectSource = __webpack_require__("a620");
var WeakMap = global.WeakMap;
module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
/***/ }),
/***/ "ab27":
/***/ (function(module, exports) {
module.exports = false;
/***/ }),
/***/ "ab8d":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("c7eb");
var classof = __webpack_require__("924e");
var wellKnownSymbol = __webpack_require__("dc77");
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');
};
/***/ }),
/***/ "ad41":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fails = __webpack_require__("87ef");
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);
});
};
/***/ }),
/***/ "adfa":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var anObject = __webpack_require__("b04a");
// `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;
};
/***/ }),
/***/ "afee":
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("87ef");
// Thank's IE8 for his funny defineProperty
module.exports = !fails(function () {
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
});
/***/ }),
/***/ "b04a":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("c7eb");
module.exports = function (it) {
if (!isObject(it)) {
throw TypeError(String(it) + ' is not an object');
} return it;
};
/***/ }),
/***/ "b431":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var userAgent = __webpack_require__("ec46");
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;
/***/ }),
/***/ "b668":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var toPrimitive = __webpack_require__("2523");
var definePropertyModule = __webpack_require__("d096");
var createPropertyDescriptor = __webpack_require__("6559");
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;
};
/***/ }),
/***/ "b7ea":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var fixRegExpWellKnownSymbolLogic = __webpack_require__("4243");
var isRegExp = __webpack_require__("ab8d");
var anObject = __webpack_require__("b04a");
var requireObjectCoercible = __webpack_require__("cf8d");
var speciesConstructor = __webpack_require__("653f");
var advanceStringIndex = __webpack_require__("a35c");
var toLength = __webpack_require__("ba98");
var callRegExpExec = __webpack_require__("391e");
var regexpExec = __webpack_require__("036c");
var fails = __webpack_require__("87ef");
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);
/***/ }),
/***/ "b85f":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var createNonEnumerableProperty = __webpack_require__("3190");
var has = __webpack_require__("a04b");
var setGlobal = __webpack_require__("8ee9");
var inspectSource = __webpack_require__("a620");
var InternalStateModule = __webpack_require__("b893");
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);
});
/***/ }),
/***/ "b893":
/***/ (function(module, exports, __webpack_require__) {
var NATIVE_WEAK_MAP = __webpack_require__("a9b1");
var global = __webpack_require__("e924");
var isObject = __webpack_require__("c7eb");
var createNonEnumerableProperty = __webpack_require__("3190");
var objectHas = __webpack_require__("a04b");
var sharedKey = __webpack_require__("f22e");
var hiddenKeys = __webpack_require__("6377");
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
};
/***/ }),
/***/ "b99c":
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__("b04a");
var isArrayIteratorMethod = __webpack_require__("7706");
var toLength = __webpack_require__("ba98");
var bind = __webpack_require__("bf7c");
var getIteratorMethod = __webpack_require__("308e");
var callWithSafeIterationClosing = __webpack_require__("a4ab");
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);
};
/***/ }),
/***/ "ba98":
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__("00d2");
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
};
/***/ }),
/***/ "bc46":
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__("a04b");
var toIndexedObject = __webpack_require__("ebce");
var indexOf = __webpack_require__("61f6").indexOf;
var hiddenKeys = __webpack_require__("6377");
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;
};
/***/ }),
/***/ "bd2a":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var createIteratorConstructor = __webpack_require__("773d");
var getPrototypeOf = __webpack_require__("cdeb");
var setPrototypeOf = __webpack_require__("77c1");
var setToStringTag = __webpack_require__("9c17");
var createNonEnumerableProperty = __webpack_require__("3190");
var redefine = __webpack_require__("b85f");
var wellKnownSymbol = __webpack_require__("dc77");
var IS_PURE = __webpack_require__("ab27");
var Iterators = __webpack_require__("0270");
var IteratorsCore = __webpack_require__("5a44");
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;
};
/***/ }),
/***/ "bdf4":
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__("00d2");
var requireObjectCoercible = __webpack_require__("cf8d");
// `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)
};
/***/ }),
/***/ "bf7c":
/***/ (function(module, exports, __webpack_require__) {
var aFunction = __webpack_require__("9648");
// 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);
};
};
/***/ }),
/***/ "c7eb":
/***/ (function(module, exports) {
module.exports = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
/***/ }),
/***/ "c892":
/***/ (function(module, exports, __webpack_require__) {
var getBuiltIn = __webpack_require__("7b26");
var getOwnPropertyNamesModule = __webpack_require__("9457");
var getOwnPropertySymbolsModule = __webpack_require__("006d");
var anObject = __webpack_require__("b04a");
// 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;
};
/***/ }),
/***/ "cb6d":
/***/ (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
}));
/***/ }),
/***/ "cb6f":
/***/ (function(module, exports, __webpack_require__) {
var toIndexedObject = __webpack_require__("ebce");
var nativeGetOwnPropertyNames = __webpack_require__("9457").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));
};
/***/ }),
/***/ "cdeb":
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__("a04b");
var toObject = __webpack_require__("39d3");
var sharedKey = __webpack_require__("f22e");
var CORRECT_PROTOTYPE_GETTER = __webpack_require__("540f");
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;
};
/***/ }),
/***/ "cf8d":
/***/ (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;
};
/***/ }),
/***/ "d096":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("afee");
var IE8_DOM_DEFINE = __webpack_require__("a777");
var anObject = __webpack_require__("b04a");
var toPrimitive = __webpack_require__("2523");
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;
};
/***/ }),
/***/ "d299":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var toIndexedObject = __webpack_require__("ebce");
var addToUnscopables = __webpack_require__("6466");
var Iterators = __webpack_require__("0270");
var InternalStateModule = __webpack_require__("b893");
var defineIterator = __webpack_require__("bd2a");
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');
/***/ }),
/***/ "d91a":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("dc77");
exports.f = wellKnownSymbol;
/***/ }),
/***/ "d987":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var $includes = __webpack_require__("61f6").includes;
var addToUnscopables = __webpack_require__("6466");
var arrayMethodUsesToLength = __webpack_require__("effa");
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');
/***/ }),
/***/ "dc77":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var shared = __webpack_require__("5807");
var has = __webpack_require__("a04b");
var uid = __webpack_require__("2a07");
var NATIVE_SYMBOL = __webpack_require__("3bca");
var USE_SYMBOL_AS_UID = __webpack_require__("5748");
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];
};
/***/ }),
/***/ "decd":
/***/ (function(module, exports, __webpack_require__) {
var internalObjectKeys = __webpack_require__("bc46");
var enumBugKeys = __webpack_require__("02a3");
// `Object.keys` method
// https://tc39.github.io/ecma262/#sec-object.keys
module.exports = Object.keys || function keys(O) {
return internalObjectKeys(O, enumBugKeys);
};
/***/ }),
/***/ "e168":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var fails = __webpack_require__("87ef");
var isArray = __webpack_require__("8346");
var isObject = __webpack_require__("c7eb");
var toObject = __webpack_require__("39d3");
var toLength = __webpack_require__("ba98");
var createProperty = __webpack_require__("b668");
var arraySpeciesCreate = __webpack_require__("eb77");
var arrayMethodHasSpeciesSupport = __webpack_require__("4c7a");
var wellKnownSymbol = __webpack_require__("dc77");
var V8_VERSION = __webpack_require__("b431");
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;
}
});
/***/ }),
/***/ "e224":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $ = __webpack_require__("38e0");
var IndexedObject = __webpack_require__("31dc");
var toIndexedObject = __webpack_require__("ebce");
var arrayMethodIsStrict = __webpack_require__("ad41");
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);
}
});
/***/ }),
/***/ "e2e6":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
module.exports = global;
/***/ }),
/***/ "e721":
/***/ (function(module, exports, __webpack_require__) {
var wellKnownSymbol = __webpack_require__("dc77");
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
var test = {};
test[TO_STRING_TAG] = 'z';
module.exports = String(test) === '[object z]';
/***/ }),
/***/ "e924":
/***/ (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__("52cf")))
/***/ }),
/***/ "e9a7":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $forEach = __webpack_require__("33e4").forEach;
var arrayMethodIsStrict = __webpack_require__("ad41");
var arrayMethodUsesToLength = __webpack_require__("effa");
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;
/***/ }),
/***/ "ea3a":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("c7eb");
module.exports = function (it) {
if (!isObject(it) && it !== null) {
throw TypeError("Can't set " + String(it) + ' as a prototype');
} return it;
};
/***/ }),
/***/ "eacb":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("afee");
var propertyIsEnumerableModule = __webpack_require__("5108");
var createPropertyDescriptor = __webpack_require__("6559");
var toIndexedObject = __webpack_require__("ebce");
var toPrimitive = __webpack_require__("2523");
var has = __webpack_require__("a04b");
var IE8_DOM_DEFINE = __webpack_require__("a777");
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]);
};
/***/ }),
/***/ "ead5":
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "eb77":
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__("c7eb");
var isArray = __webpack_require__("8346");
var wellKnownSymbol = __webpack_require__("dc77");
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);
};
/***/ }),
/***/ "ebce":
/***/ (function(module, exports, __webpack_require__) {
// toObject with fallback for non-array-like ES3 strings
var IndexedObject = __webpack_require__("31dc");
var requireObjectCoercible = __webpack_require__("cf8d");
module.exports = function (it) {
return IndexedObject(requireObjectCoercible(it));
};
/***/ }),
/***/ "ec46":
/***/ (function(module, exports, __webpack_require__) {
var getBuiltIn = __webpack_require__("7b26");
module.exports = getBuiltIn('navigator', 'userAgent') || '';
/***/ }),
/***/ "ec5f":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var bind = __webpack_require__("bf7c");
var toObject = __webpack_require__("39d3");
var callWithSafeIterationClosing = __webpack_require__("a4ab");
var isArrayIteratorMethod = __webpack_require__("7706");
var toLength = __webpack_require__("ba98");
var createProperty = __webpack_require__("b668");
var getIteratorMethod = __webpack_require__("308e");
// `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;
};
/***/ }),
/***/ "ef77":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var isObject = __webpack_require__("c7eb");
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) : {};
};
/***/ }),
/***/ "effa":
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__("afee");
var fails = __webpack_require__("87ef");
var has = __webpack_require__("a04b");
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);
});
};
/***/ }),
/***/ "f22e":
/***/ (function(module, exports, __webpack_require__) {
var shared = __webpack_require__("5807");
var uid = __webpack_require__("2a07");
var keys = shared('keys');
module.exports = function (key) {
return keys[key] || (keys[key] = uid(key));
};
/***/ }),
/***/ "f2e9":
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("e924");
var DOMIterables = __webpack_require__("9959");
var forEach = __webpack_require__("e9a7");
var createNonEnumerableProperty = __webpack_require__("3190");
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;
}
}
/***/ }),
/***/ "fa87":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var redefine = __webpack_require__("b85f");
var anObject = __webpack_require__("b04a");
var fails = __webpack_require__("87ef");
var flags = __webpack_require__("adfa");
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 });
}
/***/ })
/******/ });
//# sourceMappingURL=vueHotelDatepicker.common.js.map