1/******/ (function(modules) { // webpackBootstrap 2/******/ // install a JSONP callback for chunk loading 3/******/ function webpackJsonpCallback(data) { 4/******/ var chunkIds = data[0]; 5/******/ var moreModules = data[1]; 6/******/ var executeModules = data[2]; 7/******/ 8/******/ // add "moreModules" to the modules object, 9/******/ // then flag all "chunkIds" as loaded and fire callback 10/******/ var moduleId, chunkId, i = 0, resolves = []; 11/******/ for(;i < chunkIds.length; i++) { 12/******/ chunkId = chunkIds[i]; 13/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) { 14/******/ resolves.push(installedChunks[chunkId][0]); 15/******/ } 16/******/ installedChunks[chunkId] = 0; 17/******/ } 18/******/ for(moduleId in moreModules) { 19/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { 20/******/ modules[moduleId] = moreModules[moduleId]; 21/******/ } 22/******/ } 23/******/ if(parentJsonpFunction) parentJsonpFunction(data); 24/******/ 25/******/ while(resolves.length) { 26/******/ resolves.shift()(); 27/******/ } 28/******/ 29/******/ // add entry modules from loaded chunk to deferred list 30/******/ deferredModules.push.apply(deferredModules, executeModules || []); 31/******/ 32/******/ // run deferred modules when all chunks ready 33/******/ return checkDeferredModules(); 34/******/ }; 35/******/ function checkDeferredModules() { 36/******/ var result; 37/******/ for(var i = 0; i < deferredModules.length; i++) { 38/******/ var deferredModule = deferredModules[i]; 39/******/ var fulfilled = true; 40/******/ for(var j = 1; j < deferredModule.length; j++) { 41/******/ var depId = deferredModule[j]; 42/******/ if(installedChunks[depId] !== 0) fulfilled = false; 43/******/ } 44/******/ if(fulfilled) { 45/******/ deferredModules.splice(i--, 1); 46/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]); 47/******/ } 48/******/ } 49/******/ 50/******/ return result; 51/******/ } 52/******/ 53/******/ // The module cache 54/******/ var installedModules = {}; 55/******/ 56/******/ // object to store loaded and loading chunks 57/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched 58/******/ // Promise = chunk loading, 0 = chunk loaded 59/******/ var installedChunks = { 60/******/ "date-picker": 0 61/******/ }; 62/******/ 63/******/ var deferredModules = []; 64/******/ 65/******/ // The require function 66/******/ function __webpack_require__(moduleId) { 67/******/ 68/******/ // Check if module is in cache 69/******/ if(installedModules[moduleId]) { 70/******/ return installedModules[moduleId].exports; 71/******/ } 72/******/ // Create a new module (and put it into the cache) 73/******/ var module = installedModules[moduleId] = { 74/******/ i: moduleId, 75/******/ l: false, 76/******/ exports: {} 77/******/ }; 78/******/ 79/******/ // Execute the module function 80/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 81/******/ 82/******/ // Flag the module as loaded 83/******/ module.l = true; 84/******/ 85/******/ // Return the exports of the module 86/******/ return module.exports; 87/******/ } 88/******/ 89/******/ 90/******/ // expose the modules object (__webpack_modules__) 91/******/ __webpack_require__.m = modules; 92/******/ 93/******/ // expose the module cache 94/******/ __webpack_require__.c = installedModules; 95/******/ 96/******/ // define getter function for harmony exports 97/******/ __webpack_require__.d = function(exports, name, getter) { 98/******/ if(!__webpack_require__.o(exports, name)) { 99/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); 100/******/ } 101/******/ }; 102/******/ 103/******/ // define __esModule on exports 104/******/ __webpack_require__.r = function(exports) { 105/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 106/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 107/******/ } 108/******/ Object.defineProperty(exports, '__esModule', { value: true }); 109/******/ }; 110/******/ 111/******/ // create a fake namespace object 112/******/ // mode & 1: value is a module id, require it 113/******/ // mode & 2: merge all properties of value into the ns 114/******/ // mode & 4: return value when already ns object 115/******/ // mode & 8|1: behave like require 116/******/ __webpack_require__.t = function(value, mode) { 117/******/ if(mode & 1) value = __webpack_require__(value); 118/******/ if(mode & 8) return value; 119/******/ if((mode & 4) && typeof value === 'object' && value && value.__esMo
119dule) return value; 120/******/ var ns = Object.create(null); 121/******/ __webpack_require__.r(ns); 122/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); 123/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); 124/******/ return ns; 125/******/ }; 126/******/ 127/******/ // getDefaultExport function for compatibility with non-harmony modules 128/******/ __webpack_require__.n = function(module) { 129/******/ var getter = module && module.__esModule ? 130/******/ function getDefault() { return module['default']; } : 131/******/ function getModuleExports() { return module; }; 132/******/ __webpack_require__.d(getter, 'a', getter); 133/******/ return getter; 134/******/ }; 135/******/ 136/******/ // Object.prototype.hasOwnProperty.call 137/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 138/******/ 139/******/ // __webpack_public_path__ 140/******/ __webpack_require__.p = ""; 141/******/ 142/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || []; 143/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); 144/******/ jsonpArray.push = webpackJsonpCallback; 145/******/ jsonpArray = jsonpArray.slice(); 146/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); 147/******/ var parentJsonpFunction = oldJsonpFunction; 148/******/ 149/******/ 150/******/ // add entry module to deferred list 151/******/ deferredModules.push([0,"common"]); 152/******/ // run deferred modules when ready 153/******/ return checkDeferredModules(); 154/******/ }) 155/************************************************************************/ 156/******/ ({ 157
158/***/ "./App/global/apps/date-picker.tsx": 159/*!*****************************************!*\ 160 !*** ./App/global/apps/date-picker.tsx ***! 161 \*****************************************/ 162/*! no static exports found */ 163/***/ (function(module, exports, __webpack_require__) { 164 165"use strict"; 166 167var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 168 if (k2 === undefined) k2 = k; 169 var desc = Object.getOwnPropertyDescriptor(m, k); 170 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 171 desc = { enumerable: true, get: function() { return m[k]; } }; 172 } 173 Object.defineProperty(o, k2, desc); 174}) : (function(o, m, k, k2) { 175 if (k2 === undefined) k2 = k; 176 o[k2] = m[k]; 177})); 178var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { 179 Object.defineProperty(o, "default", { enumerable: true, value: v }); 180}) : function(o, v) { 181 o["default"] = v; 182}); 183var __importStar = (this && this.__importStar) || function (mod) { 184 if (mod && mod.__esModule) return mod; 185 var result = {}; 186 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); 187 __setModuleDefault(result, mod); 188 return result; 189}; 190Object.defineProperty(exports, "__esModule", { value: true }); 191var React = __importStar(__webpack_require__(/*! react */ "./node_modules/react/index.js")); 192var date_picker_1 = __webpack_require__(/*! ../components/inputs/selects/date-picker */ "./App/global/components/inputs/selects/date-picker.tsx"); 193var client_1 = __webpack_require__(/*! react-dom/client */ "./node_modules/react-dom/client.js"); 194if (document.readyState === "complete") { 195 renderDatePicker(); 196} 197else { 198 window.onload = renderDatePicker; 199} 200function renderDatePicker() { 201 var elements = document.getElementsByClassName('date-picker'); 202 if (elements && elements.length > 0) { 203 [].forEach.call(elements, function (element) { 204 var root = (0, client_1.createRoot)(element); 205 root.render(React.createElement(date_picker_1.DatePickerComponent, { name: element.hasAttribute("data-name") ? element.attributes["data-name"].value : "", id: element.hasAttribute("data-id") ? element.attributes["data-id"].value : "", selectedDate: element.hasAttribute("selectedDate") ? element.attributes["selectedDate"].value : undefined, startDate: element.hasAttribute("startDate") ? element.attributes["startDate"].value : "", endDate: element.hasAttribute("endDate") ? element.attributes["endDate"].value : "", customClasses: element.hasAttribute("customClasses") ? element.attributes["customClasses"].value : "", placeHolder: element.hasAttribute("placeholder-text") ? element.attributes["placeholder-text"].value : "" })); 206 }); 207 } 208} 209 210 211/***/ }), 212
213/***/ "./App/global/components/inputs/selects/date-picker.tsx": 214/*!**************************************************************!*\ 215 !*** ./App/global/components/inputs/selects/date-picker.tsx ***! 216 \**************************************************************/ 217/*! no static exports found */ 218/***/ (function(module, exports, __webpack_require__) { 219 220"use strict"; 221 222var __extends = (this && this.__extends) || (function () { 223 var extendStatics = function (d, b) { 224 extendStatics = Object.setPrototypeOf || 225 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 226 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; 227 return extendStatics(d, b); 228 }; 229 return function (d, b) { 230 if (typeof b !== "function" && b !== null) 231 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); 232 extendStatics(d, b); 233 function __() { this.constructor = d; } 234 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 235 }; 236})(); 237var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { 238 if (k2 === undefined) k2 = k; 239 var desc = Object.getOwnPropertyDescriptor(m, k); 240 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { 241 desc = { enumerable: true, get: function() { return m[k]; } }; 242 } 243 Object.defineProperty(o, k2, desc); 244}) : (function(o, m, k, k2) { 245 if (k2 === undefined) k2 = k; 246 o[k2] = m[k]; 247})); 248var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { 249 Object.defineProperty(o, "default", { enumerable: true, value: v }); 250}) : function(o, v) { 251 o["default"] = v; 252}); 253var __importStar = (this && this.__importStar) || function (mod) { 254 if (mod && mod.__esModule) return mod; 255 var result = {}; 256 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); 257 __setModuleDefault(result, mod); 258 return result; 259}; 260var __importDefault = (this && this.__importDefault) || function (mod) { 261 return (mod && mod.__esModule) ? mod : { "default": mod }; 262}; 263Object.defineProperty(exports, "__esModule", { value: true }); 264exports.DatePickerComponent = void 0; 265var React = __importStar(__webpack_require__(/*! react */ "./node_modules/react/index.js")); 266var react_datepicker_1 = __importDefault(__webpack_require__(/*! react-datepicker */ "./node_modules/react-datepicker/dist/react-datepicker.min.js")); 267var DatePickerComponent = /** @class */ (function (_super) { 268 __extends(DatePickerComponent, _super); 269 function DatePickerComponent(props) { 270 var _this = _super.call(this, props) || this; 271 _this.state = { 272 selectedDate: _this.props.selectedDate && _this.props.selectedDate.length > 0 ? new Date(_this.props.selectedDate) : new Date() 273 }; 274 _this.handleChange = _this.handleChange.bind(_this); 275 return _this; 276 } 277 DatePickerComponent.prototype.handleChange = function (date) { 278 this.setState({ 279 selectedDate: date 280 }); 281 }; 282 DatePickerComponent.prototype.render = function () { 283 return (React.createElement("div", null, 284 React.createElement(react_datepicker_1.default, { placeholderText: this.props.placeHolder ? this.props.placeHolder : "Click to select a date", selected: this.state.selectedDate, onChange: this.handleChange, name: this.props.name, className: this.props.customClasses, id: this.props.id }))); 285 }; 286 return DatePickerComponent; 287}(React.Component)); 288exports.DatePickerComponent = DatePickerComponent; 289 290 291/***/ }), 292
vendor: 13,928 bytes, lines 293-582
293/***/ "./node_modules/@popperjs/core/lib/createPopper.js": 294/*!*********************************************************!*\ 295 !*** ./node_modules/@popperjs/core/lib/createPopper.js ***! 296 \*********************************************************/ 297/*! exports provided: popperGenerator, createPopper, detectOverflow */ 298/***/ (function(module, __webpack_exports__, __webpack_require__) { 299 300"use strict"; 301__webpack_require__.r(__webpack_exports__); 302/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "popperGenerator", function() { return popperGenerator; }); 303/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPopper", function() { return createPopper; }); 304/* harmony import */ var _dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dom-utils/getCompositeRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js"); 305/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"); 306/* harmony import */ var _dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dom-utils/listScrollParents.js */ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"); 307/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"); 308/* harmony import */ var _dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./dom-utils/getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"); 309/* harmony import */ var _utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/orderModifiers.js */ "./node_modules/@popperjs/core/lib/utils/orderModifiers.js"); 310/* harmony import */ var _utils_debounce_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/debounce.js */ "./node_modules/@popperjs/core/lib/utils/debounce.js"); 311/* harmony import */ var _utils_validateModifiers_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/validateModifiers.js */ "./node_modules/@popperjs/core/lib/utils/validateModifiers.js"); 312/* harmony import */ var _utils_uniqueBy_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/uniqueBy.js */ "./node_modules/@popperjs/core/lib/utils/uniqueBy.js"); 313/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"); 314/* harmony import */ var _utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/mergeByName.js */ "./node_modules/@popperjs/core/lib/utils/mergeByName.js"); 315/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"); 316/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "detectOverflow", function() { return _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_11__["default"]; }); 317 318/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 319/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.'; 335var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.'; 336var DEFAULT_OPTIONS = { 337 placement: 'bottom', 338 modifiers: [], 339 strategy: 'absolute' 340}; 341 342function areValidElements() { 343 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 344 args[_key] = arguments[_key]; 345 } 346 347 return !args.some(function (element) { 348 return !(element && typeof element.getBoundingClientRect === 'function'); 349 }); 350} 351 352function popperGenerator(generatorOptions) { 353 if (generatorOptions === void 0) { 354 generatorOptions = {}; 355 } 356 357 var _generatorOptions = generatorOptions, 358 _generatorOptions$def = _generatorOptions.defaultModifiers, 359 defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, 360 _generatorOptions$def2 = _generatorOptions.defaultOptions, 361 defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2; 362 return function createPopper(reference, popper, options) { 363 if (options === void 0) { 364 options = defaultOptions; 365 } 366 367 var state = { 368 placement: 'bottom', 369 orderedModifiers: [], 370 options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions), 371 modifiersData: {}, 372 elements: { 373 reference: reference, 374 popper: popper 375 }, 376 attributes: {}, 377 styles: {} 378 }; 379 var effectCleanupFns = []; 380 var isDestroyed = false; 381 var instance = { 382 state: state, 383 setOptions: function setOptions(setOptionsAction) { 384 var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction; 385 cleanupModifierEffects(); 386 state.options = Object.assign({}, defaultOptions, state.options, options); 387 state.scrollParents = { 388 reference: Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_12__["isElement"])(reference) ? Object(_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__["default"])(reference) : reference.contextElement ? Object(_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__["default"])(reference.contextElement) : [], 389 popper: Object(_dom_utils_listScrollParents_js__WEBPACK_IMPORTED_MODULE_2__["default"])(popper) 390 }; // Orders the modifiers based on their dependencies and `phase` 391 // properties 392 393 var orderedModifiers = Object(_utils_orderModifiers_js__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_utils_mergeByName_js__WEBPACK_IMPORTED_MODULE_10__["default"])([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers 394 395 state.orderedModifiers = orderedModifiers.filter(function (m) { 396 return m.enabled; 397 }); // Validate the provided modifiers so that the consumer will get warned 398 // if one of the modifiers is invalid for any reason 399 400 if (true) { 401 var modifiers = Object(_utils_uniqueBy_js__WEBPACK_IMPORTED_MODULE_8__["default"])([].concat(orderedModifiers, state.options.modifiers), function (_ref) { 402 var name = _ref.name; 403 return name; 404 }); 405 Object(_utils_validateModifiers_js__WEBPACK_IMPORTED_MODULE_7__["default"])(modifiers); 406 407 if (Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_9__["default"])(state.options.placement) === _enums_js__WEBPACK_IMPORTED_MODULE_13__["auto"]) { 408 var flipModifier = state.orderedModifiers.find(function (_ref2) { 409 var name = _ref2.name; 410 return name === 'flip'; 411 }); 412 413 if (!flipModifier) { 414 console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' ')); 415 } 416 } 417 418 var _getComputedStyle = Object(_dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__["default"])(popper), 419 marginTop = _getComputedStyle.marginTop, 420 marginRight = _getComputedStyle.marginRight, 421 marginBottom = _getComputedStyle.marginBottom, 422 marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can 423 // cause bugs with positioning, so we'll warn the consumer 424 425 426 if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) { 427 return parseFloat(margin); 428 })) { 429 console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' ')); 430 } 431 } 432 433 runModifierEffects(); 434 return instance.update(); 435 }, 436 // Sync update â it will always be executed, even if not necessary. This 437 // is useful for low frequency updates where sync behavior simplifies the 438 // logic. 439 // For high frequency updates (e.g. `resize` and `scroll` events), always 440 // prefer the async Popper#update method 441 forceUpdate: function forceUpdate() { 442 if (isDestroyed) { 443 return; 444 } 445 446 var _state$elements = state.elements, 447 reference = _state$elements.reference, 448 popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements 449 // anymore 450 451 if (!areValidElements(reference, popper)) { 452 if (true) { 453 console.error(INVALID_ELEMENT_ERROR); 454 } 455 456 return; 457 } // Store the reference and popper rects to be read by modifiers 458 459 460 state.rects = { 461 reference: Object(_dom_utils_getCompositeRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(reference, Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__["default"])(popper), state.options.strategy === 'fixed'), 462 popper: Object(_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__["default"])(popper) 463 }; // Modifiers have the ability to reset the current update cycle. The 464 // most common use case for this is the `flip` modifier changing the 465 // placement, which then needs to re-run all the modifiers, because the 466 // logic was previously ran for the previous placement and is therefore 467 // stale/incorrect 468 469 state.reset = false; 470 state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier 471 // is filled with the initial data specified by the modifier. This means 472 // it doesn't persist and is fresh on each update. 473 // To ensure persistent data, use `${name}#persistent` 474 475 state.orderedModifiers.forEach(function (modifier) { 476 return state.modifiersData[modifier.name] = Object.assign({}, modifier.data); 477 }); 478 var __debug_loops__ = 0; 479 480 for (var index = 0; index < state.orderedModifiers.length; index++) { 481 if (true) { 482 __debug_loops__ += 1; 483 484 if (__debug_loops__ > 100) { 485 console.error(INFINITE_LOOP_ERROR); 486 break; 487 } 488 } 489 490 if (state.reset === true) { 491 state.reset = false; 492 index = -1; 493 continue; 494 } 495 496 var _state$orderedModifie = state.orderedModifiers[index], 497 fn = _state$orderedModifie.fn, 498 _state$orderedModifie2 = _state$orderedModifie.options, 499 _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, 500 name = _state$orderedModifie.name; 501 502 if (typeof fn === 'function') { 503 state = fn({ 504 state: state, 505 options: _options, 506 name: name, 507 instance: instance 508 }) || state; 509 } 510 } 511 }, 512 // Async and optimistically optimized update â it will not be executed if 513 // not necessary (debounced to run at most once-per-tick) 514 update: Object(_utils_debounce_js__WEBPACK_IMPORTED_MODULE_6__["default"])(function () { 515 return new Promise(function (resolve) { 516 instance.forceUpdate(); 517 resolve(state); 518 }); 519 }), 520 destroy: function destroy() { 521 cleanupModifierEffects(); 522 isDestroyed = true; 523 } 524 }; 525 526 if (!areValidElements(reference, popper)) { 527 if (true) { 528 console.error(INVALID_ELEMENT_ERROR); 529 } 530 531 return instance; 532 } 533 534 instance.setOptions(options).then(function (state) { 535 if (!isDestroyed && options.onFirstUpdate) { 536 options.onFirstUpdate(state); 537 } 538 }); // Modifiers have the ability to execute arbitrary code before the first 539 // update cycle runs. They will be executed in the same order as the update 540 // cycle. This is useful when a modifier adds some persistent data that 541 // other modifiers need to use, but the modifier is run after the dependent 542 // one. 543 544 function runModifierEffects() { 545 state.orderedModifiers.forEach(function (_ref3) { 546 var name = _ref3.name, 547 _ref3$options = _ref3.options, 548 options = _ref3$options === void 0 ? {} : _ref3$options, 549 effect = _ref3.effect; 550 551 if (typeof effect === 'function') { 552 var cleanupFn = effect({ 553 state: state, 554 name: name, 555 instance: instance, 556 options: options 557 }); 558 559 var noopFn = function noopFn() {}; 560 561 effectCleanupFns.push(cleanupFn || noopFn); 562 } 563 }); 564 } 565 566 function cleanupModifierEffects() { 567 effectCleanupFns.forEach(function (fn) { 568 return fn(); 569 }); 570 effectCleanupFns = []; 571 } 572 573 return instance; 574 }; 575} 576var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules 577 578 579/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! es6-promise */ "./node_modules/es6-promise/dist/es6-promise.js"))) 580 581/***/ }), 582
vendor: 1,393 bytes, lines 583-619
583/***/ "./node_modules/@popperjs/core/lib/dom-utils/contains.js": 584/*!***************************************************************!*\ 585 !*** ./node_modules/@popperjs/core/lib/dom-utils/contains.js ***! 586 \***************************************************************/ 587/*! exports provided: default */ 588/***/ (function(module, __webpack_exports__, __webpack_require__) { 589 590"use strict"; 591__webpack_require__.r(__webpack_exports__); 592/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return contains; }); 593/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 594 595function contains(parent, child) { 596 var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method 597 598 if (parent.contains(child)) { 599 return true; 600 } // then fallback to custom implementation with Shadow DOM support 601 else if (rootNode && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__["isShadowRoot"])(rootNode)) { 602 var next = child; 603 604 do { 605 if (next && parent.isSameNode(next)) { 606 return true; 607 } // $FlowFixMe[prop-missing]: need a better way to handle this... 608 609 610 next = next.parentNode || next.host; 611 } while (next); 612 } // Give up, the result is false 613 614 615 return false; 616} 617 618/***/ }), 619
vendor: 2,826 bytes, lines 620-677
620/***/ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js": 621/*!****************************************************************************!*\ 622 !*** ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js ***! 623 \****************************************************************************/ 624/*! exports provided: default */ 625/***/ (function(module, __webpack_exports__, __webpack_require__) { 626 627"use strict"; 628__webpack_require__.r(__webpack_exports__); 629/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getBoundingClientRect; }); 630/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 631/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"); 632/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 633/* harmony import */ var _isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isLayoutViewport.js */ "./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js"); 634 635 636 637 638function getBoundingClientRect(element, includeScale, isFixedStrategy) { 639 if (includeScale === void 0) { 640 includeScale = false; 641 } 642 643 if (isFixedStrategy === void 0) { 644 isFixedStrategy = false; 645 } 646 647 var clientRect = element.getBoundingClientRect(); 648 var scaleX = 1; 649 var scaleY = 1; 650 651 if (includeScale && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__["isHTMLElement"])(element)) { 652 scaleX = element.offsetWidth > 0 ? Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_1__["round"])(clientRect.width) / element.offsetWidth || 1 : 1; 653 scaleY = element.offsetHeight > 0 ? Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_1__["round"])(clientRect.height) / element.offsetHeight || 1 : 1; 654 } 655 656 var _ref = Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__["isElement"])(element) ? Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element) : window, 657 visualViewport = _ref.visualViewport; 658 659 var addVisualOffsets = !Object(_isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_3__["default"])() && isFixedStrategy; 660 var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX; 661 var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY; 662 var width = clientRect.width / scaleX; 663 var height = clientRect.height / scaleY; 664 return { 665 width: width, 666 height: height, 667 top: y, 668 right: x + width, 669 bottom: y + height, 670 left: x, 671 x: x, 672 y: y 673 }; 674} 675 676/***/ }), 677
vendor: 7,008 bytes, lines 678-774
678/***/ "./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js": 679/*!**********************************************************************!*\ 680 !*** ./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js ***! 681 \**********************************************************************/ 682/*! exports provided: default */ 683/***/ (function(module, __webpack_exports__, __webpack_require__) { 684 685"use strict"; 686__webpack_require__.r(__webpack_exports__); 687/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getClippingRect; }); 688/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 689/* harmony import */ var _getViewportRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getViewportRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js"); 690/* harmony import */ var _getDocumentRect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getDocumentRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js"); 691/* harmony import */ var _listScrollParents_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./listScrollParents.js */ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js"); 692/* harmony import */ var _getOffsetParent_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"); 693/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"); 694/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"); 695/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 696/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"); 697/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"); 698/* harmony import */ var _contains_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./contains.js */ "./node_modules/@popperjs/core/lib/dom-utils/contains.js"); 699/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"); 700/* harmony import */ var _utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/rectToClientRect.js */ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"); 701/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"); 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717function getInnerBoundingClientRect(element, strategy) { 718 var rect = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_8__["default"])(element, false, strategy === 'fixed'); 719 rect.top = rect.top + element.clientTop; 720 rect.left = rect.left + element.clientLeft; 721 rect.bottom = rect.top + element.clientHeight; 722 rect.right = rect.left + element.clientWidth; 723 rect.width = element.clientWidth; 724 rect.height = element.clientHeight; 725 rect.x = rect.left; 726 rect.y = rect.top; 727 return rect; 728} 729 730function getClientRectFromMixedType(element, clippingParent, strategy) { 731 return clippingParent === _enums_js__WEBPACK_IMPORTED_MODULE_0__["viewport"] ? Object(_utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_12__["default"])(Object(_getViewportRect_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element, strategy)) : Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__["isElement"])(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : Object(_utils_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_12__["default"])(Object(_getDocumentRect_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__["default"])(element))); 732} // A "clipping parent" is an overflowable container with the characteristic of 733// clipping (or hiding) overflowing elements with a position different from 734// `initial` 735 736 737function getClippingParents(element) { 738 var clippingParents = Object(_listScrollParents_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_9__["default"])(element)); 739 var canEscapeClipping = ['absolute', 'fixed'].indexOf(Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_6__["default"])(element).position) >= 0; 740 var clipperElement = canEscapeClipping && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__["isHTMLElement"])(element) ? Object(_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_4__["default"])(element) : element; 741 742 if (!Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__["isElement"])(clipperElement)) { 743 return []; 744 } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414 745 746 747 return clippingParents.filter(function (clippingParent) { 748 return Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_7__["isElement"])(clippingParent) && Object(_contains_js__WEBPACK_IMPORTED_MODULE_10__["default"])(clippingParent, clipperElement) && Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_11__["default"])(clippingParent) !== 'body'; 749 }); 750} // Gets the maximum area that the element is visible in due to any number of 751// clipping parents 752 753 754function getClippingRect(element, boundary, rootBoundary, strategy) { 755 var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary); 756 var clippingParents = [].concat(mainClippingParents, [rootBoundary]); 757 var firstClippingParent = clippingParents[0]; 758 var clippingRect = clippingParents.reduce(function (accRect, clippingParent) { 759 var rect = getClientRectFromMixedType(element, clippingParent, strategy); 760 accRect.top = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_13__["max"])(rect.top, accRect.top); 761 accRect.right = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_13__["min"])(rect.right, accRect.right); 762 accRect.bottom = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_13__["min"])(rect.bottom, accRect.bottom); 763 accRect.left = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_13__["max"])(rect.left, accRect.left); 764 return accRect; 765 }, getClientRectFromMixedType(element, firstClippingParent, strategy)); 766 clippingRect.width = clippingRect.right - clippingRect.left; 767 clippingRect.height = clippingRect.bottom - clippingRect.top; 768 clippingRect.x = clippingRect.left; 769 clippingRect.y = clippingRect.top; 770 return clippingRect; 771} 772 773/***/ }), 774
vendor: 4,399 bytes, lines 775-853
775/***/ "./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js": 776/*!***********************************************************************!*\ 777 !*** ./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js ***! 778 \***********************************************************************/ 779/*! exports provided: default */ 780/***/ (function(module, __webpack_exports__, __webpack_require__) { 781 782"use strict"; 783__webpack_require__.r(__webpack_exports__); 784/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getCompositeRect; }); 785/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"); 786/* harmony import */ var _getNodeScroll_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getNodeScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js"); 787/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"); 788/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 789/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"); 790/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"); 791/* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"); 792/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"); 793 794 795 796 797 798 799 800 801 802function isElementScaled(element) { 803 var rect = element.getBoundingClientRect(); 804 var scaleX = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_7__["round"])(rect.width) / element.offsetWidth || 1; 805 var scaleY = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_7__["round"])(rect.height) / element.offsetHeight || 1; 806 return scaleX !== 1 || scaleY !== 1; 807} // Returns the composite rect of an element relative to its offsetParent. 808// Composite means it takes into account transforms as well as layout. 809 810 811function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) { 812 if (isFixed === void 0) { 813 isFixed = false; 814 } 815 816 var isOffsetParentAnElement = Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(offsetParent); 817 var offsetParentIsScaled = Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(offsetParent) && isElementScaled(offsetParent); 818 var documentElement = Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_5__["default"])(offsetParent); 819 var rect = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(elementOrVirtualElement, offsetParentIsScaled, isFixed); 820 var scroll = { 821 scrollLeft: 0, 822 scrollTop: 0 823 }; 824 var offsets = { 825 x: 0, 826 y: 0 827 }; 828 829 if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) { 830 if (Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_2__["default"])(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078 831 Object(_isScrollParent_js__WEBPACK_IMPORTED_MODULE_6__["default"])(documentElement)) { 832 scroll = Object(_getNodeScroll_js__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent); 833 } 834 835 if (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(offsetParent)) { 836 offsets = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(offsetParent, true); 837 offsets.x += offsetParent.clientLeft; 838 offsets.y += offsetParent.clientTop; 839 } else if (documentElement) { 840 offsets.x = Object(_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_4__["default"])(documentElement); 841 } 842 } 843 844 return { 845 x: rect.left + scroll.scrollLeft - offsets.x, 846 y: rect.top + scroll.scrollTop - offsets.y, 847 width: rect.width, 848 height: rect.height 849 }; 850} 851 852/***/ }), 853
vendor: 922 bytes, lines 854-871
854/***/ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js": 855/*!***********************************************************************!*\ 856 !*** ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js ***! 857 \***********************************************************************/ 858/*! exports provided: default */ 859/***/ (function(module, __webpack_exports__, __webpack_require__) { 860 861"use strict"; 862__webpack_require__.r(__webpack_exports__); 863/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getComputedStyle; }); 864/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 865 866function getComputedStyle(element) { 867 return Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element).getComputedStyle(element); 868} 869 870/***/ }), 871
vendor: 1,096 bytes, lines 872-891
872/***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js": 873/*!*************************************************************************!*\ 874 !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js ***! 875 \*************************************************************************/ 876/*! exports provided: default */ 877/***/ (function(module, __webpack_exports__, __webpack_require__) { 878 879"use strict"; 880__webpack_require__.r(__webpack_exports__); 881/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getDocumentElement; }); 882/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 883 884function getDocumentElement(element) { 885 // $FlowFixMe[incompatible-return]: assume body is always available 886 return ((Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_0__["isElement"])(element) ? element.ownerDocument : // $FlowFixMe[prop-missing] 887 element.document) || window.document).documentElement; 888} 889 890/***/ }), 891
vendor: 2,879 bytes, lines 892-938
892/***/ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js": 893/*!**********************************************************************!*\ 894 !*** ./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js ***! 895 \**********************************************************************/ 896/*! exports provided: default */ 897/***/ (function(module, __webpack_exports__, __webpack_require__) { 898 899"use strict"; 900__webpack_require__.r(__webpack_exports__); 901/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getDocumentRect; }); 902/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"); 903/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"); 904/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"); 905/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"); 906/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"); 907 908 909 910 911 // Gets the entire size of the scrollable document area, even extending outside 912// of the `<html>` and `<body>` rect bounds if horizontally scrollable 913 914function getDocumentRect(element) { 915 var _element$ownerDocumen; 916 917 var html = Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element); 918 var winScroll = Object(_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_3__["default"])(element); 919 var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body; 920 var width = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_4__["max"])(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0); 921 var height = Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_4__["max"])(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0); 922 var x = -winScroll.scrollLeft + Object(_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element); 923 var y = -winScroll.scrollTop; 924 925 if (Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_1__["default"])(body || html).direction === 'rtl') { 926 x += Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_4__["max"])(html.clientWidth, body ? body.clientWidth : 0) - width; 927 } 928 929 return { 930 width: width, 931 height: height, 932 x: x, 933 y: y 934 }; 935} 936 937/***/ }), 938
vendor: 750 bytes, lines 939-957
939/***/ "./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js": 940/*!***************************************************************************!*\ 941 !*** ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js ***! 942 \***************************************************************************/ 943/*! exports provided: default */ 944/***/ (function(module, __webpack_exports__, __webpack_require__) { 945 946"use strict"; 947__webpack_require__.r(__webpack_exports__); 948/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getHTMLElementScroll; }); 949function getHTMLElementScroll(element) { 950 return { 951 scrollLeft: element.scrollLeft, 952 scrollTop: element.scrollTop 953 }; 954} 955 956/***/ }), 957
vendor: 1,538 bytes, lines 958-996
958/***/ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js": 959/*!********************************************************************!*\ 960 !*** ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js ***! 961 \********************************************************************/ 962/*! exports provided: default */ 963/***/ (function(module, __webpack_exports__, __webpack_require__) { 964 965"use strict"; 966__webpack_require__.r(__webpack_exports__); 967/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getLayoutRect; }); 968/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"); 969 // Returns the layout rect of an element relative to its offsetParent. Layout 970// means it doesn't take into account transforms. 971 972function getLayoutRect(element) { 973 var clientRect = Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element); // Use the clientRect sizes if it's not been transformed. 974 // Fixes https://github.com/popperjs/popper-core/issues/1223 975 976 var width = element.offsetWidth; 977 var height = element.offsetHeight; 978 979 if (Math.abs(clientRect.width - width) <= 1) { 980 width = clientRect.width; 981 } 982 983 if (Math.abs(clientRect.height - height) <= 1) { 984 height = clientRect.height; 985 } 986 987 return { 988 x: element.offsetLeft, 989 y: element.offsetTop, 990 width: width, 991 height: height 992 }; 993} 994 995/***/ }), 996
vendor: 677 bytes, lines 997-1012
997/***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js": 998/*!******************************************************************!*\ 999 !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js ***! 1000 \******************************************************************/ 1001/*! exports provided: default */ 1002/***/ (function(module, __webpack_exports__, __webpack_require__) { 1003 1004"use strict"; 1005__webpack_require__.r(__webpack_exports__); 1006/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getNodeName; }); 1007function getNodeName(element) { 1008 return element ? (element.nodeName || '').toLowerCase() : null; 1009} 1010 1011/***/ }), 1012
vendor: 1,727 bytes, lines 1013-1040
1013/***/ "./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js": 1014/*!********************************************************************!*\ 1015 !*** ./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js ***! 1016 \********************************************************************/ 1017/*! exports provided: default */ 1018/***/ (function(module, __webpack_exports__, __webpack_require__) { 1019 1020"use strict"; 1021__webpack_require__.r(__webpack_exports__); 1022/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getNodeScroll; }); 1023/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"); 1024/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 1025/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 1026/* harmony import */ var _getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getHTMLElementScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js"); 1027 1028 1029 1030 1031function getNodeScroll(node) { 1032 if (node === Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(node) || !Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_2__["isHTMLElement"])(node)) { 1033 return Object(_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node); 1034 } else { 1035 return Object(_getHTMLElementScroll_js__WEBPACK_IMPORTED_MODULE_3__["default"])(node); 1036 } 1037} 1038 1039/***/ }), 1040
vendor: 5,036 bytes, lines 1041-1129
1041/***/ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js": 1042/*!**********************************************************************!*\ 1043 !*** ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js ***! 1044 \**********************************************************************/ 1045/*! exports provided: default */ 1046/***/ (function(module, __webpack_exports__, __webpack_require__) { 1047 1048"use strict"; 1049__webpack_require__.r(__webpack_exports__); 1050/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getOffsetParent; }); 1051/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 1052/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"); 1053/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"); 1054/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 1055/* harmony import */ var _isTableElement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isTableElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js"); 1056/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"); 1057/* harmony import */ var _utils_userAgent_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/userAgent.js */ "./node_modules/@popperjs/core/lib/utils/userAgent.js"); 1058 1059 1060 1061 1062 1063 1064 1065 1066function getTrueOffsetParent(element) { 1067 if (!Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(element) || // https://github.com/popperjs/popper-core/issues/837 1068 Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element).position === 'fixed') { 1069 return null; 1070 } 1071 1072 return element.offsetParent; 1073} // `.offsetParent` reports `null` for fixed elements, while absolute elements 1074// return the containing block 1075 1076 1077function getContainingBlock(element) { 1078 var isFirefox = /firefox/i.test(Object(_utils_userAgent_js__WEBPACK_IMPORTED_MODULE_6__["default"])()); 1079 var isIE = /Trident/i.test(Object(_utils_userAgent_js__WEBPACK_IMPORTED_MODULE_6__["default"])()); 1080 1081 if (isIE && Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(element)) { 1082 // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport 1083 var elementCss = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element); 1084 1085 if (elementCss.position === 'fixed') { 1086 return null; 1087 } 1088 } 1089 1090 var currentNode = Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_5__["default"])(element); 1091 1092 if (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isShadowRoot"])(currentNode)) { 1093 currentNode = currentNode.host; 1094 } 1095 1096 while (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(currentNode) && ['html', 'body'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(currentNode)) < 0) { 1097 var css = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__["default"])(currentNode); // This is non-exhaustive but covers the most common CSS properties that 1098 // create a containing block. 1099 // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block 1100 1101 if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') { 1102 return currentNode; 1103 } else { 1104 currentNode = currentNode.parentNode; 1105 } 1106 } 1107 1108 return null; 1109} // Gets the closest ancestor positioned element. Handles some edge cases, 1110// such as table ancestors and cross browser bugs. 1111 1112 1113function getOffsetParent(element) { 1114 var window = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element); 1115 var offsetParent = getTrueOffsetParent(element); 1116 1117 while (offsetParent && Object(_isTableElement_js__WEBPACK_IMPORTED_MODULE_4__["default"])(offsetParent) && Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__["default"])(offsetParent).position === 'static') { 1118 offsetParent = getTrueOffsetParent(offsetParent); 1119 } 1120 1121 if (offsetParent && (Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent) === 'html' || Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_1__["default"])(offsetParent) === 'body' && Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_2__["default"])(offsetParent).position === 'static')) { 1122 return window; 1123 } 1124 1125 return offsetParent || getContainingBlock(element) || window; 1126} 1127 1128/***/ }), 1129
vendor: 1,899 bytes, lines 1130-1164
1130/***/ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js": 1131/*!********************************************************************!*\ 1132 !*** ./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js ***! 1133 \********************************************************************/ 1134/*! exports provided: default */ 1135/***/ (function(module, __webpack_exports__, __webpack_require__) { 1136 1137"use strict"; 1138__webpack_require__.r(__webpack_exports__); 1139/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getParentNode; }); 1140/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"); 1141/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"); 1142/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 1143 1144 1145 1146function getParentNode(element) { 1147 if (Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element) === 'html') { 1148 return element; 1149 } 1150 1151 return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle 1152 // $FlowFixMe[incompatible-return] 1153 // $FlowFixMe[prop-missing] 1154 element.assignedSlot || // step into the shadow DOM of the parent of a slotted node 1155 element.parentNode || ( // DOM Element detected 1156 Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_2__["isShadowRoot"])(element) ? element.host : null) || // ShadowRoot detected 1157 // $FlowFixMe[incompatible-call]: HTMLElement is a Node 1158 Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element) // fallback 1159 1160 ); 1161} 1162 1163/***/ }), 1164
vendor: 1,881 bytes, lines 1165-1197
1165/***/ "./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js": 1166/*!**********************************************************************!*\ 1167 !*** ./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js ***! 1168 \**********************************************************************/ 1169/*! exports provided: default */ 1170/***/ (function(module, __webpack_exports__, __webpack_require__) { 1171 1172"use strict"; 1173__webpack_require__.r(__webpack_exports__); 1174/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getScrollParent; }); 1175/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"); 1176/* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./isScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"); 1177/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"); 1178/* harmony import */ var _instanceOf_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 1179 1180 1181 1182 1183function getScrollParent(node) { 1184 if (['html', 'body', '#document'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_2__["default"])(node)) >= 0) { 1185 // $FlowFixMe[incompatible-return]: assume body is always available 1186 return node.ownerDocument.body; 1187 } 1188 1189 if (Object(_instanceOf_js__WEBPACK_IMPORTED_MODULE_3__["isHTMLElement"])(node) && Object(_isScrollParent_js__WEBPACK_IMPORTED_MODULE_1__["default"])(node)) { 1190 return node; 1191 } 1192 1193 return getScrollParent(Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node)); 1194} 1195 1196/***/ }), 1197
vendor: 2,234 bytes, lines 1198-1245
1198/***/ "./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js": 1199/*!**********************************************************************!*\ 1200 !*** ./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js ***! 1201 \**********************************************************************/ 1202/*! exports provided: default */ 1203/***/ (function(module, __webpack_exports__, __webpack_require__) { 1204 1205"use strict"; 1206__webpack_require__.r(__webpack_exports__); 1207/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getViewportRect; }); 1208/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 1209/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"); 1210/* harmony import */ var _getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScrollBarX.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js"); 1211/* harmony import */ var _isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isLayoutViewport.js */ "./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js"); 1212 1213 1214 1215 1216function getViewportRect(element, strategy) { 1217 var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element); 1218 var html = Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element); 1219 var visualViewport = win.visualViewport; 1220 var width = html.clientWidth; 1221 var height = html.clientHeight; 1222 var x = 0; 1223 var y = 0; 1224 1225 if (visualViewport) { 1226 width = visualViewport.width; 1227 height = visualViewport.height; 1228 var layoutViewport = Object(_isLayoutViewport_js__WEBPACK_IMPORTED_MODULE_3__["default"])(); 1229 1230 if (layoutViewport || !layoutViewport && strategy === 'fixed') { 1231 x = visualViewport.offsetLeft; 1232 y = visualViewport.offsetTop; 1233 } 1234 } 1235 1236 return { 1237 width: width, 1238 height: height, 1239 x: x + Object(_getWindowScrollBarX_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element), 1240 y: y 1241 }; 1242} 1243 1244/***/ }), 1245
vendor: 826 bytes, lines 1246-1270
1246/***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js": 1247/*!****************************************************************!*\ 1248 !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js ***! 1249 \****************************************************************/ 1250/*! exports provided: default */ 1251/***/ (function(module, __webpack_exports__, __webpack_require__) { 1252 1253"use strict"; 1254__webpack_require__.r(__webpack_exports__); 1255/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getWindow; }); 1256function getWindow(node) { 1257 if (node == null) { 1258 return window; 1259 } 1260 1261 if (node.toString() !== '[object Window]') { 1262 var ownerDocument = node.ownerDocument; 1263 return ownerDocument ? ownerDocument.defaultView || window : window; 1264 } 1265 1266 return node; 1267} 1268 1269/***/ }), 1270
vendor: 1,027 bytes, lines 1271-1294
1271/***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js": 1272/*!**********************************************************************!*\ 1273 !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js ***! 1274 \**********************************************************************/ 1275/*! exports provided: default */ 1276/***/ (function(module, __webpack_exports__, __webpack_require__) { 1277 1278"use strict"; 1279__webpack_require__.r(__webpack_exports__); 1280/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getWindowScroll; }); 1281/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 1282 1283function getWindowScroll(node) { 1284 var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node); 1285 var scrollLeft = win.pageXOffset; 1286 var scrollTop = win.pageYOffset; 1287 return { 1288 scrollLeft: scrollLeft, 1289 scrollTop: scrollTop 1290 }; 1291} 1292 1293/***/ }), 1294
vendor: 1,909 bytes, lines 1295-1323
1295/***/ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js": 1296/*!**************************************************************************!*\ 1297 !*** ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js ***! 1298 \**************************************************************************/ 1299/*! exports provided: default */ 1300/***/ (function(module, __webpack_exports__, __webpack_require__) { 1301 1302"use strict"; 1303__webpack_require__.r(__webpack_exports__); 1304/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getWindowScrollBarX; }); 1305/* harmony import */ var _getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"); 1306/* harmony import */ var _getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"); 1307/* harmony import */ var _getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindowScroll.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js"); 1308 1309 1310 1311function getWindowScrollBarX(element) { 1312 // If <html> has a CSS width greater than the viewport, then this will be 1313 // incorrect for RTL. 1314 // Popper 1 is broken in this case and never had a bug report so let's assume 1315 // it's not an issue. I don't think anyone ever specifies width on <html> 1316 // anyway. 1317 // Browsers where the left scrollbar doesn't cause an issue report `0` for 1318 // this (e.g. Edge 2019, IE11, Safari) 1319 return Object(_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(element)).left + Object(_getWindowScroll_js__WEBPACK_IMPORTED_MODULE_2__["default"])(element).scrollLeft; 1320} 1321 1322/***/ }), 1323
vendor: 1,724 bytes, lines 1324-1362
1324/***/ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js": 1325/*!*****************************************************************!*\ 1326 !*** ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js ***! 1327 \*****************************************************************/ 1328/*! exports provided: isElement, isHTMLElement, isShadowRoot */ 1329/***/ (function(module, __webpack_exports__, __webpack_require__) { 1330 1331"use strict"; 1332__webpack_require__.r(__webpack_exports__); 1333/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isElement", function() { return isElement; }); 1334/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isHTMLElement", function() { return isHTMLElement; }); 1335/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isShadowRoot", function() { return isShadowRoot; }); 1336/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 1337 1338 1339function isElement(node) { 1340 var OwnElement = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node).Element; 1341 return node instanceof OwnElement || node instanceof Element; 1342} 1343 1344function isHTMLElement(node) { 1345 var OwnElement = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node).HTMLElement; 1346 return node instanceof OwnElement || node instanceof HTMLElement; 1347} 1348 1349function isShadowRoot(node) { 1350 // IE 11 has no ShadowRoot 1351 if (typeof ShadowRoot === 'undefined') { 1352 return false; 1353 } 1354 1355 var OwnElement = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(node).ShadowRoot; 1356 return node instanceof OwnElement || node instanceof ShadowRoot; 1357} 1358 1359 1360 1361/***/ }), 1362
vendor: 937 bytes, lines 1363-1380
1363/***/ "./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js": 1364/*!***********************************************************************!*\ 1365 !*** ./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js ***! 1366 \***********************************************************************/ 1367/*! exports provided: default */ 1368/***/ (function(module, __webpack_exports__, __webpack_require__) { 1369 1370"use strict"; 1371__webpack_require__.r(__webpack_exports__); 1372/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isLayoutViewport; }); 1373/* harmony import */ var _utils_userAgent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/userAgent.js */ "./node_modules/@popperjs/core/lib/utils/userAgent.js"); 1374 1375function isLayoutViewport() { 1376 return !/^((?!chrome|android).)*safari/i.test(Object(_utils_userAgent_js__WEBPACK_IMPORTED_MODULE_0__["default"])()); 1377} 1378 1379/***/ }), 1380
vendor: 1,211 bytes, lines 1381-1404
1381/***/ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js": 1382/*!*********************************************************************!*\ 1383 !*** ./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js ***! 1384 \*********************************************************************/ 1385/*! exports provided: default */ 1386/***/ (function(module, __webpack_exports__, __webpack_require__) { 1387 1388"use strict"; 1389__webpack_require__.r(__webpack_exports__); 1390/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isScrollParent; }); 1391/* harmony import */ var _getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"); 1392 1393function isScrollParent(element) { 1394 // Firefox wants us to check `-x` and `-y` variations as well 1395 var _getComputedStyle = Object(_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element), 1396 overflow = _getComputedStyle.overflow, 1397 overflowX = _getComputedStyle.overflowX, 1398 overflowY = _getComputedStyle.overflowY; 1399 1400 return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX); 1401} 1402 1403/***/ }), 1404
vendor: 928 bytes, lines 1405-1422
1405/***/ "./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js": 1406/*!*********************************************************************!*\ 1407 !*** ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js ***! 1408 \*********************************************************************/ 1409/*! exports provided: default */ 1410/***/ (function(module, __webpack_exports__, __webpack_require__) { 1411 1412"use strict"; 1413__webpack_require__.r(__webpack_exports__); 1414/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isTableElement; }); 1415/* harmony import */ var _getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"); 1416 1417function isTableElement(element) { 1418 return ['table', 'td', 'th'].indexOf(Object(_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element)) >= 0; 1419} 1420 1421/***/ }), 1422
vendor: 2,529 bytes, lines 1423-1465
1423/***/ "./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js": 1424/*!************************************************************************!*\ 1425 !*** ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js ***! 1426 \************************************************************************/ 1427/*! exports provided: default */ 1428/***/ (function(module, __webpack_exports__, __webpack_require__) { 1429 1430"use strict"; 1431__webpack_require__.r(__webpack_exports__); 1432/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return listScrollParents; }); 1433/* harmony import */ var _getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js"); 1434/* harmony import */ var _getParentNode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getParentNode.js */ "./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js"); 1435/* harmony import */ var _getWindow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 1436/* harmony import */ var _isScrollParent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./isScrollParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js"); 1437 1438 1439 1440 1441/* 1442given a DOM element, return the list of all scroll parents, up the list of ancesors 1443until we get to the top window object. This list is what we attach scroll listeners 1444to, because if any of these parent elements scroll, we'll need to re-calculate the 1445reference element's position. 1446*/ 1447 1448function listScrollParents(element, list) { 1449 var _element$ownerDocumen; 1450 1451 if (list === void 0) { 1452 list = []; 1453 } 1454 1455 var scrollParent = Object(_getScrollParent_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element); 1456 var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body); 1457 var win = Object(_getWindow_js__WEBPACK_IMPORTED_MODULE_2__["default"])(scrollParent); 1458 var target = isBody ? [win].concat(win.visualViewport || [], Object(_isScrollParent_js__WEBPACK_IMPORTED_MODULE_3__["default"])(scrollParent) ? scrollParent : []) : scrollParent; 1459 var updatedList = list.concat(target); 1460 return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here 1461 updatedList.concat(listScrollParents(Object(_getParentNode_js__WEBPACK_IMPORTED_MODULE_1__["default"])(target))); 1462} 1463 1464/***/ }), 1465
vendor: 4,685 bytes, lines 1466-1532
1466/***/ "./node_modules/@popperjs/core/lib/enums.js": 1467/*!**************************************************!*\ 1468 !*** ./node_modules/@popperjs/core/lib/enums.js ***! 1469 \**************************************************/ 1470/*! exports provided: top, bottom, right, left, auto, basePlacements, start, end, clippingParents, viewport, popper, reference, variationPlacements, placements, beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite, modifierPhases */ 1471/***/ (function(module, __webpack_exports__, __webpack_require__) { 1472 1473"use strict"; 1474__webpack_require__.r(__webpack_exports__); 1475/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "top", function() { return top; }); 1476/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bottom", function() { return bottom; }); 1477/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "right", function() { return right; }); 1478/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "left", function() { return left; }); 1479/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "auto", function() { return auto; }); 1480/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "basePlacements", function() { return basePlacements; }); 1481/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "start", function() { return start; }); 1482/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "end", function() { return end; }); 1483/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clippingParents", function() { return clippingParents; }); 1484/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "viewport", function() { return viewport; }); 1485/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "popper", function() { return popper; }); 1486/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reference", function() { return reference; }); 1487/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "variationPlacements", function() { return variationPlacements; }); 1488/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; }); 1489/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beforeRead", function() { return beforeRead; }); 1490/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "read", function() { return read; }); 1491/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "afterRead", function() { return afterRead; }); 1492/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beforeMain", function() { return beforeMain; }); 1493/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "main", function() { return main; }); 1494/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "afterMain", function() { return afterMain; }); 1495/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beforeWrite", function() { return beforeWrite; }); 1496/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "write", function() { return write; }); 1497/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "afterWrite", function() { return afterWrite; }); 1498/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "modifierPhases", function() { return modifierPhases; }); 1499var top = 'top'; 1500var bottom = 'bottom'; 1501var right = 'right'; 1502var left = 'left'; 1503var auto = 'auto'; 1504var basePlacements = [top, bottom, right, left]; 1505var start = 'start'; 1506var end = 'end'; 1507var clippingParents = 'clippingParents'; 1508var viewport = 'viewport'; 1509var popper = 'popper'; 1510var reference = 'reference'; 1511var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) { 1512 return acc.concat([placement + "-" + start, placement + "-" + end]); 1513}, []); 1514var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) { 1515 return acc.concat([placement, placement + "-" + start, placement + "-" + end]); 1516}, []); // modifiers that need to read the DOM 1517 1518var beforeRead = 'beforeRead'; 1519var read = 'read'; 1520var afterRead = 'afterRead'; // pure-logic modifiers 1521 1522var beforeMain = 'beforeMain'; 1523var main = 'main'; 1524var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state) 1525 1526var beforeWrite = 'beforeWrite'; 1527var write = 'write'; 1528var afterWrite = 'afterWrite'; 1529var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite]; 1530 1531/***/ }), 1532
vendor: 8,175 bytes, lines 1533-1633
1533/***/ "./node_modules/@popperjs/core/lib/index.js": 1534/*!**************************************************!*\ 1535 !*** ./node_modules/@popperjs/core/lib/index.js ***! 1536 \**************************************************/ 1537/*! exports provided: top, bottom, right, left, auto, basePlacements, start, end, clippingParents, viewport, popper, reference, variationPlacements, placements, beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite, modifierPhases, applyStyles, arrow, computeStyles, eventListeners, flip, hide, offset, popperOffsets, preventOverflow, popperGenerator, detectOverflow, createPopperBase, createPopper, createPopperLite */ 1538/***/ (function(module, __webpack_exports__, __webpack_require__) { 1539 1540"use strict"; 1541__webpack_require__.r(__webpack_exports__); 1542/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 1543/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "top", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"]; }); 1544 1545/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bottom", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"]; }); 1546 1547/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "right", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"]; }); 1548 1549/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "left", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"]; }); 1550 1551/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "auto", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["auto"]; }); 1552 1553/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "basePlacements", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["basePlacements"]; }); 1554 1555/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "start", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["start"]; }); 1556 1557/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "end", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["end"]; }); 1558 1559/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clippingParents", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["clippingParents"]; }); 1560 1561/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "viewport", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["viewport"]; }); 1562 1563/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "popper", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["popper"]; }); 1564 1565/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "reference", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["reference"]; }); 1566 1567/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "variationPlacements", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["variationPlacements"]; }); 1568 1569/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["placements"]; }); 1570 1571/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "beforeRead", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["beforeRead"]; }); 1572 1573/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "read", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["read"]; }); 1574 1575/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "afterRead", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["afterRead"]; }); 1576 1577/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "beforeMain", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["beforeMain"]; }); 1578 1579/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "main", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["main"]; }); 1580 1581/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "afterMain", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["afterMain"]; }); 1582 1583/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "beforeWrite", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["beforeWrite"]; }); 1584 1585/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "write", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["write"]; }); 1586 1587/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "afterWrite", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["afterWrite"]; }); 1588 1589/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "modifierPhases", function() { return _enums_js__WEBPACK_IMPORTED_MODULE_0__["modifierPhases"]; }); 1590 1591/* harmony import */ var _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modifiers/index.js */ "./node_modules/@popperjs/core/lib/modifiers/index.js"); 1592/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "applyStyles", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__["applyStyles"]; }); 1593 1594/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arrow", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__["arrow"]; }); 1595 1596/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "computeStyles", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__["computeStyles"]; }); 1597 1598/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventListeners", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__["eventListeners"]; }); 1599 1600/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "flip", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__["flip"]; }); 1601 1602/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hide", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__["hide"]; }); 1603 1604/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "offset", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__["offset"]; }); 1605 1606/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "popperOffsets", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__["popperOffsets"]; }); 1607 1608/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "preventOverflow", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_1__["preventOverflow"]; }); 1609 1610/* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./createPopper.js */ "./node_modules/@popperjs/core/lib/createPopper.js"); 1611/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "popperGenerator", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_2__["popperGenerator"]; }); 1612 1613/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "detectOverflow", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_2__["detectOverflow"]; }); 1614 1615/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopperBase", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_2__["createPopper"]; }); 1616 1617/* harmony import */ var _popper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./popper.js */ "./node_modules/@popperjs/core/lib/popper.js"); 1618/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopper", function() { return _popper_js__WEBPACK_IMPORTED_MODULE_3__["createPopper"]; }); 1619 1620/* harmony import */ var _popper_lite_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./popper-lite.js */ "./node_modules/@popperjs/core/lib/popper-lite.js"); 1621/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopperLite", function() { return _popper_lite_js__WEBPACK_IMPORTED_MODULE_4__["createPopper"]; }); 1622 1623 1624 // eslint-disable-next-line import/no-unused-modules 1625 1626 // eslint-disable-next-line import/no-unused-modules 1627 1628 // eslint-disable-next-line import/no-unused-modules 1629 1630 1631 1632/***/ }), 1633
vendor: 3,570 bytes, lines 1634-1731
1634/***/ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js": 1635/*!******************************************************************!*\ 1636 !*** ./node_modules/@popperjs/core/lib/modifiers/applyStyles.js ***! 1637 \******************************************************************/ 1638/*! exports provided: default */ 1639/***/ (function(module, __webpack_exports__, __webpack_require__) { 1640 1641"use strict"; 1642__webpack_require__.r(__webpack_exports__); 1643/* harmony import */ var _dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/getNodeName.js */ "./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js"); 1644/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 1645 1646 // This modifier takes the styles prepared by the `computeStyles` modifier 1647// and applies them to the HTMLElements such as popper and arrow 1648 1649function applyStyles(_ref) { 1650 var state = _ref.state; 1651 Object.keys(state.elements).forEach(function (name) { 1652 var style = state.styles[name] || {}; 1653 var attributes = state.attributes[name] || {}; 1654 var element = state.elements[name]; // arrow is optional + virtual elements 1655 1656 if (!Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__["isHTMLElement"])(element) || !Object(_dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element)) { 1657 return; 1658 } // Flow doesn't support to extend this property, but it's the most 1659 // effective way to apply styles to an HTMLElement 1660 // $FlowFixMe[cannot-write] 1661 1662 1663 Object.assign(element.style, style); 1664 Object.keys(attributes).forEach(function (name) { 1665 var value = attributes[name]; 1666 1667 if (value === false) { 1668 element.removeAttribute(name); 1669 } else { 1670 element.setAttribute(name, value === true ? '' : value); 1671 } 1672 }); 1673 }); 1674} 1675 1676function effect(_ref2) { 1677 var state = _ref2.state; 1678 var initialStyles = { 1679 popper: { 1680 position: state.options.strategy, 1681 left: '0', 1682 top: '0', 1683 margin: '0' 1684 }, 1685 arrow: { 1686 position: 'absolute' 1687 }, 1688 reference: {} 1689 }; 1690 Object.assign(state.elements.popper.style, initialStyles.popper); 1691 state.styles = initialStyles; 1692 1693 if (state.elements.arrow) { 1694 Object.assign(state.elements.arrow.style, initialStyles.arrow); 1695 } 1696 1697 return function () { 1698 Object.keys(state.elements).forEach(function (name) { 1699 var element = state.elements[name]; 1700 var attributes = state.attributes[name] || {}; 1701 var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them 1702 1703 var style = styleProperties.reduce(function (style, property) { 1704 style[property] = ''; 1705 return style; 1706 }, {}); // arrow is optional + virtual elements 1707 1708 if (!Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_1__["isHTMLElement"])(element) || !Object(_dom_utils_getNodeName_js__WEBPACK_IMPORTED_MODULE_0__["default"])(element)) { 1709 return; 1710 } 1711 1712 Object.assign(element.style, style); 1713 Object.keys(attributes).forEach(function (attribute) { 1714 element.removeAttribute(attribute); 1715 }); 1716 }); 1717 }; 1718} // eslint-disable-next-line import/no-unused-modules 1719 1720 1721/* harmony default export */ __webpack_exports__["default"] = ({ 1722 name: 'applyStyles', 1723 enabled: true, 1724 phase: 'write', 1725 fn: applyStyles, 1726 effect: effect, 1727 requires: ['computeStyles'] 1728}); 1729 1730/***/ }), 1731
vendor: 6,561 bytes, lines 1732-1854
1732/***/ "./node_modules/@popperjs/core/lib/modifiers/arrow.js": 1733/*!************************************************************!*\ 1734 !*** ./node_modules/@popperjs/core/lib/modifiers/arrow.js ***! 1735 \************************************************************/ 1736/*! exports provided: default */ 1737/***/ (function(module, __webpack_exports__, __webpack_require__) { 1738 1739"use strict"; 1740__webpack_require__.r(__webpack_exports__); 1741/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"); 1742/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"); 1743/* harmony import */ var _dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/contains.js */ "./node_modules/@popperjs/core/lib/dom-utils/contains.js"); 1744/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"); 1745/* harmony import */ var _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"); 1746/* harmony import */ var _utils_within_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/within.js */ "./node_modules/@popperjs/core/lib/utils/within.js"); 1747/* harmony import */ var _utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/mergePaddingObject.js */ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"); 1748/* harmony import */ var _utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/expandToHashMap.js */ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"); 1749/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 1750/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 // eslint-disable-next-line import/no-unused-modules 1761 1762var toPaddingObject = function toPaddingObject(padding, state) { 1763 padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, { 1764 placement: state.placement 1765 })) : padding; 1766 return Object(_utils_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_6__["default"])(typeof padding !== 'number' ? padding : Object(_utils_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_7__["default"])(padding, _enums_js__WEBPACK_IMPORTED_MODULE_8__["basePlacements"])); 1767}; 1768 1769function arrow(_ref) { 1770 var _state$modifiersData$; 1771 1772 var state = _ref.state, 1773 name = _ref.name, 1774 options = _ref.options; 1775 var arrowElement = state.elements.arrow; 1776 var popperOffsets = state.modifiersData.popperOffsets; 1777 var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(state.placement); 1778 var axis = Object(_utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_4__["default"])(basePlacement); 1779 var isVertical = [_enums_js__WEBPACK_IMPORTED_MODULE_8__["left"], _enums_js__WEBPACK_IMPORTED_MODULE_8__["right"]].indexOf(basePlacement) >= 0; 1780 var len = isVertical ? 'height' : 'width'; 1781 1782 if (!arrowElement || !popperOffsets) { 1783 return; 1784 } 1785 1786 var paddingObject = toPaddingObject(options.padding, state); 1787 var arrowRect = Object(_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arrowElement); 1788 var minProp = axis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_8__["top"] : _enums_js__WEBPACK_IMPORTED_MODULE_8__["left"]; 1789 var maxProp = axis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_8__["bottom"] : _enums_js__WEBPACK_IMPORTED_MODULE_8__["right"]; 1790 var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len]; 1791 var startDiff = popperOffsets[axis] - state.rects.reference[axis]; 1792 var arrowOffsetParent = Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_3__["default"])(arrowElement); 1793 var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0; 1794 var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is 1795 // outside of the popper bounds 1796 1797 var min = paddingObject[minProp]; 1798 var max = clientSize - arrowRect[len] - paddingObject[maxProp]; 1799 var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference; 1800 var offset = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_5__["within"])(min, center, max); // Prevents breaking syntax highlighting... 1801 1802 var axisProp = axis; 1803 state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$); 1804} 1805 1806function effect(_ref2) { 1807 var state = _ref2.state, 1808 options = _ref2.options; 1809 var _options$element = options.element, 1810 arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element; 1811 1812 if (arrowElement == null) { 1813 return; 1814 } // CSS selector 1815 1816 1817 if (typeof arrowElement === 'string') { 1818 arrowElement = state.elements.popper.querySelector(arrowElement); 1819 1820 if (!arrowElement) { 1821 return; 1822 } 1823 } 1824 1825 if (true) { 1826 if (!Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_9__["isHTMLElement"])(arrowElement)) { 1827 console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' ')); 1828 } 1829 } 1830 1831 if (!Object(_dom_utils_contains_js__WEBPACK_IMPORTED_MODULE_2__["default"])(state.elements.popper, arrowElement)) { 1832 if (true) { 1833 console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' ')); 1834 } 1835 1836 return; 1837 } 1838 1839 state.elements.arrow = arrowElement; 1840} // eslint-disable-next-line import/no-unused-modules 1841 1842 1843/* harmony default export */ __webpack_exports__["default"] = ({ 1844 name: 'arrow', 1845 enabled: true, 1846 phase: 'main', 1847 fn: arrow, 1848 effect: effect, 1849 requires: ['popperOffsets'], 1850 requiresIfExists: ['preventOverflow'] 1851}); 1852 1853/***/ }), 1854
vendor: 9,348 bytes, lines 1855-2056
1855/***/ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js": 1856/*!********************************************************************!*\ 1857 !*** ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js ***! 1858 \********************************************************************/ 1859/*! exports provided: mapToStyles, default */ 1860/***/ (function(module, __webpack_exports__, __webpack_require__) { 1861 1862"use strict"; 1863__webpack_require__.r(__webpack_exports__); 1864/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapToStyles", function() { return mapToStyles; }); 1865/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 1866/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"); 1867/* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 1868/* harmony import */ var _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dom-utils/getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"); 1869/* harmony import */ var _dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dom-utils/getComputedStyle.js */ "./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js"); 1870/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"); 1871/* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"); 1872/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"); 1873 1874 1875 1876 1877 1878 1879 1880 // eslint-disable-next-line import/no-unused-modules 1881 1882var unsetSides = { 1883 top: 'auto', 1884 right: 'auto', 1885 bottom: 'auto', 1886 left: 'auto' 1887}; // Round the offsets to the nearest suitable subpixel based on the DPR. 1888// Zooming can change the DPR, but it seems to report a value that will 1889// cleanly divide the values into the appropriate subpixels. 1890 1891function roundOffsetsByDPR(_ref) { 1892 var x = _ref.x, 1893 y = _ref.y; 1894 var win = window; 1895 var dpr = win.devicePixelRatio || 1; 1896 return { 1897 x: Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_7__["round"])(x * dpr) / dpr || 0, 1898 y: Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_7__["round"])(y * dpr) / dpr || 0 1899 }; 1900} 1901 1902function mapToStyles(_ref2) { 1903 var _Object$assign2; 1904 1905 var popper = _ref2.popper, 1906 popperRect = _ref2.popperRect, 1907 placement = _ref2.placement, 1908 variation = _ref2.variation, 1909 offsets = _ref2.offsets, 1910 position = _ref2.position, 1911 gpuAcceleration = _ref2.gpuAcceleration, 1912 adaptive = _ref2.adaptive, 1913 roundOffsets = _ref2.roundOffsets, 1914 isFixed = _ref2.isFixed; 1915 var _offsets$x = offsets.x, 1916 x = _offsets$x === void 0 ? 0 : _offsets$x, 1917 _offsets$y = offsets.y, 1918 y = _offsets$y === void 0 ? 0 : _offsets$y; 1919 1920 var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({ 1921 x: x, 1922 y: y 1923 }) : { 1924 x: x, 1925 y: y 1926 }; 1927 1928 x = _ref3.x; 1929 y = _ref3.y; 1930 var hasX = offsets.hasOwnProperty('x'); 1931 var hasY = offsets.hasOwnProperty('y'); 1932 var sideX = _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"]; 1933 var sideY = _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"]; 1934 var win = window; 1935 1936 if (adaptive) { 1937 var offsetParent = Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_1__["default"])(popper); 1938 var heightProp = 'clientHeight'; 1939 var widthProp = 'clientWidth'; 1940 1941 if (offsetParent === Object(_dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_2__["default"])(popper)) { 1942 offsetParent = Object(_dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_3__["default"])(popper); 1943 1944 if (Object(_dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__["default"])(offsetParent).position !== 'static' && position === 'absolute') { 1945 heightProp = 'scrollHeight'; 1946 widthProp = 'scrollWidth'; 1947 } 1948 } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it 1949 1950 1951 offsetParent = offsetParent; 1952 1953 if (placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"] || (placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"] || placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"]) && variation === _enums_js__WEBPACK_IMPORTED_MODULE_0__["end"]) { 1954 sideY = _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"]; 1955 var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing] 1956 offsetParent[heightProp]; 1957 y -= offsetY - popperRect.height; 1958 y *= gpuAcceleration ? 1 : -1; 1959 } 1960 1961 if (placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"] || (placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"] || placement === _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"]) && variation === _enums_js__WEBPACK_IMPORTED_MODULE_0__["end"]) { 1962 sideX = _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"]; 1963 var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing] 1964 offsetParent[widthProp]; 1965 x -= offsetX - popperRect.width; 1966 x *= gpuAcceleration ? 1 : -1; 1967 } 1968 } 1969 1970 var commonStyles = Object.assign({ 1971 position: position 1972 }, adaptive && unsetSides); 1973 1974 var _ref4 = roundOffsets === true ? roundOffsetsByDPR({ 1975 x: x, 1976 y: y 1977 }) : { 1978 x: x, 1979 y: y 1980 }; 1981 1982 x = _ref4.x; 1983 y = _ref4.y; 1984 1985 if (gpuAcceleration) { 1986 var _Object$assign; 1987 1988 return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign)); 1989 } 1990 1991 return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2)); 1992} 1993 1994function computeStyles(_ref5) { 1995 var state = _ref5.state, 1996 options = _ref5.options; 1997 var _options$gpuAccelerat = options.gpuAcceleration, 1998 gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, 1999 _options$adaptive = options.adaptive, 2000 adaptive = _options$adaptive === void 0 ? true : _options$adaptive, 2001 _options$roundOffsets = options.roundOffsets, 2002 roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets; 2003 2004 if (true) { 2005 var transitionProperty = Object(_dom_utils_getComputedStyle_js__WEBPACK_IMPORTED_MODULE_4__["default"])(state.elements.popper).transitionProperty || ''; 2006 2007 if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) { 2008 return transitionProperty.indexOf(property) >= 0; 2009 })) { 2010 console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' ')); 2011 } 2012 } 2013 2014 var commonStyles = { 2015 placement: Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_5__["default"])(state.placement), 2016 variation: Object(_utils_getVariation_js__WEBPACK_IMPORTED_MODULE_6__["default"])(state.placement), 2017 popper: state.elements.popper, 2018 popperRect: state.rects.popper, 2019 gpuAcceleration: gpuAcceleration, 2020 isFixed: state.options.strategy === 'fixed' 2021 }; 2022 2023 if (state.modifiersData.popperOffsets != null) { 2024 state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, { 2025 offsets: state.modifiersData.popperOffsets, 2026 position: state.options.strategy, 2027 adaptive: adaptive, 2028 roundOffsets: roundOffsets 2029 }))); 2030 } 2031 2032 if (state.modifiersData.arrow != null) { 2033 state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, { 2034 offsets: state.modifiersData.arrow, 2035 position: 'absolute', 2036 adaptive: false, 2037 roundOffsets: roundOffsets 2038 }))); 2039 } 2040 2041 state.attributes.popper = Object.assign({}, state.attributes.popper, { 2042 'data-popper-placement': state.placement 2043 }); 2044} // eslint-disable-next-line import/no-unused-modules 2045 2046 2047/* harmony default export */ __webpack_exports__["default"] = ({ 2048 name: 'computeStyles', 2049 enabled: true, 2050 phase: 'beforeWrite', 2051 fn: computeStyles, 2052 data: {} 2053}); 2054 2055/***/ }), 2056
vendor: 2,053 bytes, lines 2057-2118
2057/***/ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js": 2058/*!*********************************************************************!*\ 2059 !*** ./node_modules/@popperjs/core/lib/modifiers/eventListeners.js ***! 2060 \*********************************************************************/ 2061/*! exports provided: default */ 2062/***/ (function(module, __webpack_exports__, __webpack_require__) { 2063 2064"use strict"; 2065__webpack_require__.r(__webpack_exports__); 2066/* harmony import */ var _dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/getWindow.js */ "./node_modules/@popperjs/core/lib/dom-utils/getWindow.js"); 2067 // eslint-disable-next-line import/no-unused-modules 2068 2069var passive = { 2070 passive: true 2071}; 2072 2073function effect(_ref) { 2074 var state = _ref.state, 2075 instance = _ref.instance, 2076 options = _ref.options; 2077 var _options$scroll = options.scroll, 2078 scroll = _options$scroll === void 0 ? true : _options$scroll, 2079 _options$resize = options.resize, 2080 resize = _options$resize === void 0 ? true : _options$resize; 2081 var window = Object(_dom_utils_getWindow_js__WEBPACK_IMPORTED_MODULE_0__["default"])(state.elements.popper); 2082 var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper); 2083 2084 if (scroll) { 2085 scrollParents.forEach(function (scrollParent) { 2086 scrollParent.addEventListener('scroll', instance.update, passive); 2087 }); 2088 } 2089 2090 if (resize) { 2091 window.addEventListener('resize', instance.update, passive); 2092 } 2093 2094 return function () { 2095 if (scroll) { 2096 scrollParents.forEach(function (scrollParent) { 2097 scrollParent.removeEventListener('scroll', instance.update, passive); 2098 }); 2099 } 2100 2101 if (resize) { 2102 window.removeEventListener('resize', instance.update, passive); 2103 } 2104 }; 2105} // eslint-disable-next-line import/no-unused-modules 2106 2107 2108/* harmony default export */ __webpack_exports__["default"] = ({ 2109 name: 'eventListeners', 2110 enabled: true, 2111 phase: 'write', 2112 fn: function fn() {}, 2113 effect: effect, 2114 data: {} 2115}); 2116 2117/***/ }), 2118
vendor: 7,476 bytes, lines 2119-2284
2119/***/ "./node_modules/@popperjs/core/lib/modifiers/flip.js": 2120/*!***********************************************************!*\ 2121 !*** ./node_modules/@popperjs/core/lib/modifiers/flip.js ***! 2122 \***********************************************************/ 2123/*! exports provided: default */ 2124/***/ (function(module, __webpack_exports__, __webpack_require__) { 2125 2126"use strict"; 2127__webpack_require__.r(__webpack_exports__); 2128/* harmony import */ var _utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getOppositePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js"); 2129/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"); 2130/* harmony import */ var _utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getOppositeVariationPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js"); 2131/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"); 2132/* harmony import */ var _utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/computeAutoPlacement.js */ "./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js"); 2133/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 2134/* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"); 2135 2136 2137 2138 2139 2140 2141 // eslint-disable-next-line import/no-unused-modules 2142 2143function getExpandedFallbackPlacements(placement) { 2144 if (Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_5__["auto"]) { 2145 return []; 2146 } 2147 2148 var oppositePlacement = Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement); 2149 return [Object(_utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(placement), oppositePlacement, Object(_utils_getOppositeVariationPlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(oppositePlacement)]; 2150} 2151 2152function flip(_ref) { 2153 var state = _ref.state, 2154 options = _ref.options, 2155 name = _ref.name; 2156 2157 if (state.modifiersData[name]._skip) { 2158 return; 2159 } 2160 2161 var _options$mainAxis = options.mainAxis, 2162 checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, 2163 _options$altAxis = options.altAxis, 2164 checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis, 2165 specifiedFallbackPlacements = options.fallbackPlacements, 2166 padding = options.padding, 2167 boundary = options.boundary, 2168 rootBoundary = options.rootBoundary, 2169 altBoundary = options.altBoundary, 2170 _options$flipVariatio = options.flipVariations, 2171 flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio, 2172 allowedAutoPlacements = options.allowedAutoPlacements; 2173 var preferredPlacement = state.options.placement; 2174 var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(preferredPlacement); 2175 var isBasePlacement = basePlacement === preferredPlacement; 2176 var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement)); 2177 var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) { 2178 return acc.concat(Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_5__["auto"] ? Object(_utils_computeAutoPlacement_js__WEBPACK_IMPORTED_MODULE_4__["default"])(state, { 2179 placement: placement, 2180 boundary: boundary, 2181 rootBoundary: rootBoundary, 2182 padding: padding, 2183 flipVariations: flipVariations, 2184 allowedAutoPlacements: allowedAutoPlacements 2185 }) : placement); 2186 }, []); 2187 var referenceRect = state.rects.reference; 2188 var popperRect = state.rects.popper; 2189 var checksMap = new Map(); 2190 var makeFallbackChecks = true; 2191 var firstFittingPlacement = placements[0]; 2192 2193 for (var i = 0; i < placements.length; i++) { 2194 var placement = placements[i]; 2195 2196 var _basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(placement); 2197 2198 var isStartVariation = Object(_utils_getVariation_js__WEBPACK_IMPORTED_MODULE_6__["default"])(placement) === _enums_js__WEBPACK_IMPORTED_MODULE_5__["start"]; 2199 var isVertical = [_enums_js__WEBPACK_IMPORTED_MODULE_5__["top"], _enums_js__WEBPACK_IMPORTED_MODULE_5__["bottom"]].indexOf(_basePlacement) >= 0; 2200 var len = isVertical ? 'width' : 'height'; 2201 var overflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_3__["default"])(state, { 2202 placement: placement, 2203 boundary: boundary, 2204 rootBoundary: rootBoundary, 2205 altBoundary: altBoundary, 2206 padding: padding 2207 }); 2208 var mainVariationSide = isVertical ? isStartVariation ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["right"] : _enums_js__WEBPACK_IMPORTED_MODULE_5__["left"] : isStartVariation ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["bottom"] : _enums_js__WEBPACK_IMPORTED_MODULE_5__["top"]; 2209 2210 if (referenceRect[len] > popperRect[len]) { 2211 mainVariationSide = Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(mainVariationSide); 2212 } 2213 2214 var altVariationSide = Object(_utils_getOppositePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(mainVariationSide); 2215 var checks = []; 2216 2217 if (checkMainAxis) { 2218 checks.push(overflow[_basePlacement] <= 0); 2219 } 2220 2221 if (checkAltAxis) { 2222 checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0); 2223 } 2224 2225 if (checks.every(function (check) { 2226 return check; 2227 })) { 2228 firstFittingPlacement = placement; 2229 makeFallbackChecks = false; 2230 break; 2231 } 2232 2233 checksMap.set(placement, checks); 2234 } 2235 2236 if (makeFallbackChecks) { 2237 // `2` may be desired in some cases â research later 2238 var numberOfChecks = flipVariations ? 3 : 1; 2239 2240 var _loop = function _loop(_i) { 2241 var fittingPlacement = placements.find(function (placement) { 2242 var checks = checksMap.get(placement); 2243 2244 if (checks) { 2245 return checks.slice(0, _i).every(function (check) { 2246 return check; 2247 }); 2248 } 2249 }); 2250 2251 if (fittingPlacement) { 2252 firstFittingPlacement = fittingPlacement; 2253 return "break"; 2254 } 2255 }; 2256 2257 for (var _i = numberOfChecks; _i > 0; _i--) { 2258 var _ret = _loop(_i); 2259 2260 if (_ret === "break") break; 2261 } 2262 } 2263 2264 if (state.placement !== firstFittingPlacement) { 2265 state.modifiersData[name]._skip = true; 2266 state.placement = firstFittingPlacement; 2267 state.reset = true; 2268 } 2269} // eslint-disable-next-line import/no-unused-modules 2270 2271 2272/* harmony default export */ __webpack_exports__["default"] = ({ 2273 name: 'flip', 2274 enabled: true, 2275 phase: 'main', 2276 fn: flip, 2277 requiresIfExists: ['offset'], 2278 data: { 2279 _skip: false 2280 } 2281}); 2282 2283/***/ }), 2284
vendor: 2,953 bytes, lines 2285-2359
2285/***/ "./node_modules/@popperjs/core/lib/modifiers/hide.js": 2286/*!***********************************************************!*\ 2287 !*** ./node_modules/@popperjs/core/lib/modifiers/hide.js ***! 2288 \***********************************************************/ 2289/*! exports provided: default */ 2290/***/ (function(module, __webpack_exports__, __webpack_require__) { 2291 2292"use strict"; 2293__webpack_require__.r(__webpack_exports__); 2294/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 2295/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"); 2296 2297 2298 2299function getSideOffsets(overflow, rect, preventedOffsets) { 2300 if (preventedOffsets === void 0) { 2301 preventedOffsets = { 2302 x: 0, 2303 y: 0 2304 }; 2305 } 2306 2307 return { 2308 top: overflow.top - rect.height - preventedOffsets.y, 2309 right: overflow.right - rect.width + preventedOffsets.x, 2310 bottom: overflow.bottom - rect.height + preventedOffsets.y, 2311 left: overflow.left - rect.width - preventedOffsets.x 2312 }; 2313} 2314 2315function isAnySideFullyClipped(overflow) { 2316 return [_enums_js__WEBPACK_IMPORTED_MODULE_0__["top"], _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"], _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"], _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"]].some(function (side) { 2317 return overflow[side] >= 0; 2318 }); 2319} 2320 2321function hide(_ref) { 2322 var state = _ref.state, 2323 name = _ref.name; 2324 var referenceRect = state.rects.reference; 2325 var popperRect = state.rects.popper; 2326 var preventedOffsets = state.modifiersData.preventOverflow; 2327 var referenceOverflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(state, { 2328 elementContext: 'reference' 2329 }); 2330 var popperAltOverflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_1__["default"])(state, { 2331 altBoundary: true 2332 }); 2333 var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect); 2334 var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets); 2335 var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets); 2336 var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets); 2337 state.modifiersData[name] = { 2338 referenceClippingOffsets: referenceClippingOffsets, 2339 popperEscapeOffsets: popperEscapeOffsets, 2340 isReferenceHidden: isReferenceHidden, 2341 hasPopperEscaped: hasPopperEscaped 2342 }; 2343 state.attributes.popper = Object.assign({}, state.attributes.popper, { 2344 'data-popper-reference-hidden': isReferenceHidden, 2345 'data-popper-escaped': hasPopperEscaped 2346 }); 2347} // eslint-disable-next-line import/no-unused-modules 2348 2349 2350/* harmony default export */ __webpack_exports__["default"] = ({ 2351 name: 'hide', 2352 enabled: true, 2353 phase: 'main', 2354 requiresIfExists: ['preventOverflow'], 2355 fn: hide 2356}); 2357 2358/***/ }), 2359
vendor: 3,605 bytes, lines 2360-2407
2360/***/ "./node_modules/@popperjs/core/lib/modifiers/index.js": 2361/*!************************************************************!*\ 2362 !*** ./node_modules/@popperjs/core/lib/modifiers/index.js ***! 2363 \************************************************************/ 2364/*! exports provided: applyStyles, arrow, computeStyles, eventListeners, flip, hide, offset, popperOffsets, preventOverflow */ 2365/***/ (function(module, __webpack_exports__, __webpack_require__) { 2366 2367"use strict"; 2368__webpack_require__.r(__webpack_exports__); 2369/* harmony import */ var _applyStyles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./applyStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"); 2370/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "applyStyles", function() { return _applyStyles_js__WEBPACK_IMPORTED_MODULE_0__["default"]; }); 2371 2372/* harmony import */ var _arrow_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./arrow.js */ "./node_modules/@popperjs/core/lib/modifiers/arrow.js"); 2373/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arrow", function() { return _arrow_js__WEBPACK_IMPORTED_MODULE_1__["default"]; }); 2374 2375/* harmony import */ var _computeStyles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./computeStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"); 2376/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "computeStyles", function() { return _computeStyles_js__WEBPACK_IMPORTED_MODULE_2__["default"]; }); 2377 2378/* harmony import */ var _eventListeners_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./eventListeners.js */ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"); 2379/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventListeners", function() { return _eventListeners_js__WEBPACK_IMPORTED_MODULE_3__["default"]; }); 2380 2381/* harmony import */ var _flip_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./flip.js */ "./node_modules/@popperjs/core/lib/modifiers/flip.js"); 2382/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "flip", function() { return _flip_js__WEBPACK_IMPORTED_MODULE_4__["default"]; }); 2383 2384/* harmony import */ var _hide_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hide.js */ "./node_modules/@popperjs/core/lib/modifiers/hide.js"); 2385/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hide", function() { return _hide_js__WEBPACK_IMPORTED_MODULE_5__["default"]; }); 2386 2387/* harmony import */ var _offset_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./offset.js */ "./node_modules/@popperjs/core/lib/modifiers/offset.js"); 2388/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "offset", function() { return _offset_js__WEBPACK_IMPORTED_MODULE_6__["default"]; }); 2389 2390/* harmony import */ var _popperOffsets_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./popperOffsets.js */ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"); 2391/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "popperOffsets", function() { return _popperOffsets_js__WEBPACK_IMPORTED_MODULE_7__["default"]; }); 2392 2393/* harmony import */ var _preventOverflow_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./preventOverflow.js */ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"); 2394/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "preventOverflow", function() { return _preventOverflow_js__WEBPACK_IMPORTED_MODULE_8__["default"]; }); 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406/***/ }), 2407
vendor: 2,770 bytes, lines 2408-2476
2408/***/ "./node_modules/@popperjs/core/lib/modifiers/offset.js": 2409/*!*************************************************************!*\ 2410 !*** ./node_modules/@popperjs/core/lib/modifiers/offset.js ***! 2411 \*************************************************************/ 2412/*! exports provided: distanceAndSkiddingToXY, default */ 2413/***/ (function(module, __webpack_exports__, __webpack_require__) { 2414 2415"use strict"; 2416__webpack_require__.r(__webpack_exports__); 2417/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distanceAndSkiddingToXY", function() { return distanceAndSkiddingToXY; }); 2418/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"); 2419/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 2420 2421 // eslint-disable-next-line import/no-unused-modules 2422 2423function distanceAndSkiddingToXY(placement, rects, offset) { 2424 var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement); 2425 var invertDistance = [_enums_js__WEBPACK_IMPORTED_MODULE_1__["left"], _enums_js__WEBPACK_IMPORTED_MODULE_1__["top"]].indexOf(basePlacement) >= 0 ? -1 : 1; 2426 2427 var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, { 2428 placement: placement 2429 })) : offset, 2430 skidding = _ref[0], 2431 distance = _ref[1]; 2432 2433 skidding = skidding || 0; 2434 distance = (distance || 0) * invertDistance; 2435 return [_enums_js__WEBPACK_IMPORTED_MODULE_1__["left"], _enums_js__WEBPACK_IMPORTED_MODULE_1__["right"]].indexOf(basePlacement) >= 0 ? { 2436 x: distance, 2437 y: skidding 2438 } : { 2439 x: skidding, 2440 y: distance 2441 }; 2442} 2443 2444function offset(_ref2) { 2445 var state = _ref2.state, 2446 options = _ref2.options, 2447 name = _ref2.name; 2448 var _options$offset = options.offset, 2449 offset = _options$offset === void 0 ? [0, 0] : _options$offset; 2450 var data = _enums_js__WEBPACK_IMPORTED_MODULE_1__["placements"].reduce(function (acc, placement) { 2451 acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset); 2452 return acc; 2453 }, {}); 2454 var _data$state$placement = data[state.placement], 2455 x = _data$state$placement.x, 2456 y = _data$state$placement.y; 2457 2458 if (state.modifiersData.popperOffsets != null) { 2459 state.modifiersData.popperOffsets.x += x; 2460 state.modifiersData.popperOffsets.y += y; 2461 } 2462 2463 state.modifiersData[name] = data; 2464} // eslint-disable-next-line import/no-unused-modules 2465 2466 2467/* harmony default export */ __webpack_exports__["default"] = ({ 2468 name: 'offset', 2469 enabled: true, 2470 phase: 'main', 2471 requires: ['popperOffsets'], 2472 fn: offset 2473}); 2474 2475/***/ }), 2476
vendor: 1,417 bytes, lines 2477-2514
2477/***/ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js": 2478/*!********************************************************************!*\ 2479 !*** ./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js ***! 2480 \********************************************************************/ 2481/*! exports provided: default */ 2482/***/ (function(module, __webpack_exports__, __webpack_require__) { 2483 2484"use strict"; 2485__webpack_require__.r(__webpack_exports__); 2486/* harmony import */ var _utils_computeOffsets_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/computeOffsets.js */ "./node_modules/@popperjs/core/lib/utils/computeOffsets.js"); 2487 2488 2489function popperOffsets(_ref) { 2490 var state = _ref.state, 2491 name = _ref.name; // Offsets are the actual position the popper needs to have to be 2492 // properly positioned near its reference element 2493 // This is the most basic placement, and will be adjusted by 2494 // the modifiers in the next step 2495 2496 state.modifiersData[name] = Object(_utils_computeOffsets_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 2497 reference: state.rects.reference, 2498 element: state.rects.popper, 2499 strategy: 'absolute', 2500 placement: state.placement 2501 }); 2502} // eslint-disable-next-line import/no-unused-modules 2503 2504 2505/* harmony default export */ __webpack_exports__["default"] = ({ 2506 name: 'popperOffsets', 2507 enabled: true, 2508 phase: 'read', 2509 fn: popperOffsets, 2510 data: {} 2511}); 2512 2513/***/ }), 2514
vendor: 9,873 bytes, lines 2515-2679
2515/***/ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js": 2516/*!**********************************************************************!*\ 2517 !*** ./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js ***! 2518 \**********************************************************************/ 2519/*! exports provided: default */ 2520/***/ (function(module, __webpack_exports__, __webpack_require__) { 2521 2522"use strict"; 2523__webpack_require__.r(__webpack_exports__); 2524/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 2525/* harmony import */ var _utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"); 2526/* harmony import */ var _utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"); 2527/* harmony import */ var _utils_getAltAxis_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/getAltAxis.js */ "./node_modules/@popperjs/core/lib/utils/getAltAxis.js"); 2528/* harmony import */ var _utils_within_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/within.js */ "./node_modules/@popperjs/core/lib/utils/within.js"); 2529/* harmony import */ var _dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../dom-utils/getLayoutRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js"); 2530/* harmony import */ var _dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dom-utils/getOffsetParent.js */ "./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js"); 2531/* harmony import */ var _utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"); 2532/* harmony import */ var _utils_getVariation_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"); 2533/* harmony import */ var _utils_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/getFreshSideObject.js */ "./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"); 2534/* harmony import */ var _utils_math_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"); 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547function preventOverflow(_ref) { 2548 var state = _ref.state, 2549 options = _ref.options, 2550 name = _ref.name; 2551 var _options$mainAxis = options.mainAxis, 2552 checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, 2553 _options$altAxis = options.altAxis, 2554 checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis, 2555 boundary = options.boundary, 2556 rootBoundary = options.rootBoundary, 2557 altBoundary = options.altBoundary, 2558 padding = options.padding, 2559 _options$tether = options.tether, 2560 tether = _options$tether === void 0 ? true : _options$tether, 2561 _options$tetherOffset = options.tetherOffset, 2562 tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset; 2563 var overflow = Object(_utils_detectOverflow_js__WEBPACK_IMPORTED_MODULE_7__["default"])(state, { 2564 boundary: boundary, 2565 rootBoundary: rootBoundary, 2566 padding: padding, 2567 altBoundary: altBoundary 2568 }); 2569 var basePlacement = Object(_utils_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(state.placement); 2570 var variation = Object(_utils_getVariation_js__WEBPACK_IMPORTED_MODULE_8__["default"])(state.placement); 2571 var isBasePlacement = !variation; 2572 var mainAxis = Object(_utils_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(basePlacement); 2573 var altAxis = Object(_utils_getAltAxis_js__WEBPACK_IMPORTED_MODULE_3__["default"])(mainAxis); 2574 var popperOffsets = state.modifiersData.popperOffsets; 2575 var referenceRect = state.rects.reference; 2576 var popperRect = state.rects.popper; 2577 var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, { 2578 placement: state.placement 2579 })) : tetherOffset; 2580 var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? { 2581 mainAxis: tetherOffsetValue, 2582 altAxis: tetherOffsetValue 2583 } : Object.assign({ 2584 mainAxis: 0, 2585 altAxis: 0 2586 }, tetherOffsetValue); 2587 var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null; 2588 var data = { 2589 x: 0, 2590 y: 0 2591 }; 2592 2593 if (!popperOffsets) { 2594 return; 2595 } 2596 2597 if (checkMainAxis) { 2598 var _offsetModifierState$; 2599 2600 var mainSide = mainAxis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"]; 2601 var altSide = mainAxis === 'y' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"]; 2602 var len = mainAxis === 'y' ? 'height' : 'width'; 2603 var offset = popperOffsets[mainAxis]; 2604 var min = offset + overflow[mainSide]; 2605 var max = offset - overflow[altSide]; 2606 var additive = tether ? -popperRect[len] / 2 : 0; 2607 var minLen = variation === _enums_js__WEBPACK_IMPORTED_MODULE_0__["start"] ? referenceRect[len] : popperRect[len]; 2608 var maxLen = variation === _enums_js__WEBPACK_IMPORTED_MODULE_0__["start"] ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go 2609 // outside the reference bounds 2610 2611 var arrowElement = state.elements.arrow; 2612 var arrowRect = tether && arrowElement ? Object(_dom_utils_getLayoutRect_js__WEBPACK_IMPORTED_MODULE_5__["default"])(arrowElement) : { 2613 width: 0, 2614 height: 0 2615 }; 2616 var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : Object(_utils_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_9__["default"])(); 2617 var arrowPaddingMin = arrowPaddingObject[mainSide]; 2618 var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want 2619 // to include its full size in the calculation. If the reference is small 2620 // and near the edge of a boundary, the popper can overflow even if the 2621 // reference is not overflowing as well (e.g. virtual elements with no 2622 // width or height) 2623 2624 var arrowLen = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__["within"])(0, referenceRect[len], arrowRect[len]); 2625 var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis; 2626 var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis; 2627 var arrowOffsetParent = state.elements.arrow && Object(_dom_utils_getOffsetParent_js__WEBPACK_IMPORTED_MODULE_6__["default"])(state.elements.arrow); 2628 var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0; 2629 var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0; 2630 var tetherMin = offset + minOffset - offsetModifierValue - clientOffset; 2631 var tetherMax = offset + maxOffset - offsetModifierValue; 2632 var preventedOffset = Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__["within"])(tether ? Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_10__["min"])(min, tetherMin) : min, offset, tether ? Object(_utils_math_js__WEBPACK_IMPORTED_MODULE_10__["max"])(max, tetherMax) : max); 2633 popperOffsets[mainAxis] = preventedOffset; 2634 data[mainAxis] = preventedOffset - offset; 2635 } 2636 2637 if (checkAltAxis) { 2638 var _offsetModifierState$2; 2639 2640 var _mainSide = mainAxis === 'x' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__["top"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"]; 2641 2642 var _altSide = mainAxis === 'x' ? _enums_js__WEBPACK_IMPORTED_MODULE_0__["bottom"] : _enums_js__WEBPACK_IMPORTED_MODULE_0__["right"]; 2643 2644 var _offset = popperOffsets[altAxis]; 2645 2646 var _len = altAxis === 'y' ? 'height' : 'width'; 2647 2648 var _min = _offset + overflow[_mainSide]; 2649 2650 var _max = _offset - overflow[_altSide]; 2651 2652 var isOriginSide = [_enums_js__WEBPACK_IMPORTED_MODULE_0__["top"], _enums_js__WEBPACK_IMPORTED_MODULE_0__["left"]].indexOf(basePlacement) !== -1; 2653 2654 var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0; 2655 2656 var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis; 2657 2658 var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max; 2659 2660 var _preventedOffset = tether && isOriginSide ? Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__["withinMaxClamp"])(_tetherMin, _offset, _tetherMax) : Object(_utils_within_js__WEBPACK_IMPORTED_MODULE_4__["within"])(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max); 2661 2662 popperOffsets[altAxis] = _preventedOffset; 2663 data[altAxis] = _preventedOffset - _offset; 2664 } 2665 2666 state.modifiersData[name] = data; 2667} // eslint-disable-next-line import/no-unused-modules 2668 2669 2670/* harmony default export */ __webpack_exports__["default"] = ({ 2671 name: 'preventOverflow', 2672 enabled: true, 2673 phase: 'main', 2674 fn: preventOverflow, 2675 requiresIfExists: ['offset'] 2676}); 2677 2678/***/ }), 2679
vendor: 2,596 bytes, lines 2680-2713
2680/***/ "./node_modules/@popperjs/core/lib/popper-lite.js": 2681/*!********************************************************!*\ 2682 !*** ./node_modules/@popperjs/core/lib/popper-lite.js ***! 2683 \********************************************************/ 2684/*! exports provided: createPopper, popperGenerator, defaultModifiers, detectOverflow */ 2685/***/ (function(module, __webpack_exports__, __webpack_require__) { 2686 2687"use strict"; 2688__webpack_require__.r(__webpack_exports__); 2689/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPopper", function() { return createPopper; }); 2690/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultModifiers", function() { return defaultModifiers; }); 2691/* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createPopper.js */ "./node_modules/@popperjs/core/lib/createPopper.js"); 2692/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "popperGenerator", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_0__["popperGenerator"]; }); 2693 2694/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "detectOverflow", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_0__["detectOverflow"]; }); 2695 2696/* harmony import */ var _modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modifiers/eventListeners.js */ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"); 2697/* harmony import */ var _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modifiers/popperOffsets.js */ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"); 2698/* harmony import */ var _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modifiers/computeStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"); 2699/* harmony import */ var _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modifiers/applyStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"); 2700 2701 2702 2703 2704 2705var defaultModifiers = [_modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_1__["default"], _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_2__["default"], _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_3__["default"], _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_4__["default"]]; 2706var createPopper = /*#__PURE__*/Object(_createPopper_js__WEBPACK_IMPORTED_MODULE_0__["popperGenerator"])({ 2707 defaultModifiers: defaultModifiers 2708}); // eslint-disable-next-line import/no-unused-modules 2709 2710 2711 2712/***/ }), 2713
vendor: 6,174 bytes, lines 2714-2783
2714/***/ "./node_modules/@popperjs/core/lib/popper.js": 2715/*!***************************************************!*\ 2716 !*** ./node_modules/@popperjs/core/lib/popper.js ***! 2717 \***************************************************/ 2718/*! exports provided: createPopper, popperGenerator, defaultModifiers, detectOverflow, createPopperLite, applyStyles, arrow, computeStyles, eventListeners, flip, hide, offset, popperOffsets, preventOverflow */ 2719/***/ (function(module, __webpack_exports__, __webpack_require__) { 2720 2721"use strict"; 2722__webpack_require__.r(__webpack_exports__); 2723/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPopper", function() { return createPopper; }); 2724/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultModifiers", function() { return defaultModifiers; }); 2725/* harmony import */ var _createPopper_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createPopper.js */ "./node_modules/@popperjs/core/lib/createPopper.js"); 2726/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "popperGenerator", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_0__["popperGenerator"]; }); 2727 2728/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "detectOverflow", function() { return _createPopper_js__WEBPACK_IMPORTED_MODULE_0__["detectOverflow"]; }); 2729 2730/* harmony import */ var _modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modifiers/eventListeners.js */ "./node_modules/@popperjs/core/lib/modifiers/eventListeners.js"); 2731/* harmony import */ var _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modifiers/popperOffsets.js */ "./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js"); 2732/* harmony import */ var _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modifiers/computeStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/computeStyles.js"); 2733/* harmony import */ var _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modifiers/applyStyles.js */ "./node_modules/@popperjs/core/lib/modifiers/applyStyles.js"); 2734/* harmony import */ var _modifiers_offset_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./modifiers/offset.js */ "./node_modules/@popperjs/core/lib/modifiers/offset.js"); 2735/* harmony import */ var _modifiers_flip_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./modifiers/flip.js */ "./node_modules/@popperjs/core/lib/modifiers/flip.js"); 2736/* harmony import */ var _modifiers_preventOverflow_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./modifiers/preventOverflow.js */ "./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js"); 2737/* harmony import */ var _modifiers_arrow_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./modifiers/arrow.js */ "./node_modules/@popperjs/core/lib/modifiers/arrow.js"); 2738/* harmony import */ var _modifiers_hide_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./modifiers/hide.js */ "./node_modules/@popperjs/core/lib/modifiers/hide.js"); 2739/* harmony import */ var _popper_lite_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./popper-lite.js */ "./node_modules/@popperjs/core/lib/popper-lite.js"); 2740/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createPopperLite", function() { return _popper_lite_js__WEBPACK_IMPORTED_MODULE_10__["createPopper"]; }); 2741 2742/* harmony import */ var _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./modifiers/index.js */ "./node_modules/@popperjs/core/lib/modifiers/index.js"); 2743/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "applyStyles", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__["applyStyles"]; }); 2744 2745/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "arrow", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__["arrow"]; }); 2746 2747/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "computeStyles", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__["computeStyles"]; }); 2748 2749/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "eventListeners", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__["eventListeners"]; }); 2750 2751/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "flip", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__["flip"]; }); 2752 2753/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hide", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__["hide"]; }); 2754 2755/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "offset", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__["offset"]; }); 2756 2757/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "popperOffsets", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__["popperOffsets"]; }); 2758 2759/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "preventOverflow", function() { return _modifiers_index_js__WEBPACK_IMPORTED_MODULE_11__["preventOverflow"]; }); 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771var defaultModifiers = [_modifiers_eventListeners_js__WEBPACK_IMPORTED_MODULE_1__["default"], _modifiers_popperOffsets_js__WEBPACK_IMPORTED_MODULE_2__["default"], _modifiers_computeStyles_js__WEBPACK_IMPORTED_MODULE_3__["default"], _modifiers_applyStyles_js__WEBPACK_IMPORTED_MODULE_4__["default"], _modifiers_offset_js__WEBPACK_IMPORTED_MODULE_5__["default"], _modifiers_flip_js__WEBPACK_IMPORTED_MODULE_6__["default"], _modifiers_preventOverflow_js__WEBPACK_IMPORTED_MODULE_7__["default"], _modifiers_arrow_js__WEBPACK_IMPORTED_MODULE_8__["default"], _modifiers_hide_js__WEBPACK_IMPORTED_MODULE_9__["default"]]; 2772var createPopper = /*#__PURE__*/Object(_createPopper_js__WEBPACK_IMPORTED_MODULE_0__["popperGenerator"])({ 2773 defaultModifiers: defaultModifiers 2774}); // eslint-disable-next-line import/no-unused-modules 2775 2776 // eslint-disable-next-line import/no-unused-modules 2777 2778 // eslint-disable-next-line import/no-unused-modules 2779 2780 2781 2782/***/ }), 2783
vendor: 3,417 bytes, lines 2784-2847
2784/***/ "./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js": 2785/*!***********************************************************************!*\ 2786 !*** ./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js ***! 2787 \***********************************************************************/ 2788/*! exports provided: default */ 2789/***/ (function(module, __webpack_exports__, __webpack_require__) { 2790 2791"use strict"; 2792__webpack_require__.r(__webpack_exports__); 2793/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return computeAutoPlacement; }); 2794/* harmony import */ var _getVariation_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"); 2795/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 2796/* harmony import */ var _detectOverflow_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./detectOverflow.js */ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js"); 2797/* harmony import */ var _getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"); 2798 2799 2800 2801 2802function computeAutoPlacement(state, options) { 2803 if (options === void 0) { 2804 options = {}; 2805 } 2806 2807 var _options = options, 2808 placement = _options.placement, 2809 boundary = _options.boundary, 2810 rootBoundary = _options.rootBoundary, 2811 padding = _options.padding, 2812 flipVariations = _options.flipVariations, 2813 _options$allowedAutoP = _options.allowedAutoPlacements, 2814 allowedAutoPlacements = _options$allowedAutoP === void 0 ? _enums_js__WEBPACK_IMPORTED_MODULE_1__["placements"] : _options$allowedAutoP; 2815 var variation = Object(_getVariation_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement); 2816 var placements = variation ? flipVariations ? _enums_js__WEBPACK_IMPORTED_MODULE_1__["variationPlacements"] : _enums_js__WEBPACK_IMPORTED_MODULE_1__["variationPlacements"].filter(function (placement) { 2817 return Object(_getVariation_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement) === variation; 2818 }) : _enums_js__WEBPACK_IMPORTED_MODULE_1__["basePlacements"]; 2819 var allowedPlacements = placements.filter(function (placement) { 2820 return allowedAutoPlacements.indexOf(placement) >= 0; 2821 }); 2822 2823 if (allowedPlacements.length === 0) { 2824 allowedPlacements = placements; 2825 2826 if (true) { 2827 console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' ')); 2828 } 2829 } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions... 2830 2831 2832 var overflows = allowedPlacements.reduce(function (acc, placement) { 2833 acc[placement] = Object(_detectOverflow_js__WEBPACK_IMPORTED_MODULE_2__["default"])(state, { 2834 placement: placement, 2835 boundary: boundary, 2836 rootBoundary: rootBoundary, 2837 padding: padding 2838 })[Object(_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_3__["default"])(placement)]; 2839 return acc; 2840 }, {}); 2841 return Object.keys(overflows).sort(function (a, b) { 2842 return overflows[a] - overflows[b]; 2843 }); 2844} 2845 2846/***/ }), 2847
vendor: 3,208 bytes, lines 2848-2934
2848/***/ "./node_modules/@popperjs/core/lib/utils/computeOffsets.js": 2849/*!*****************************************************************!*\ 2850 !*** ./node_modules/@popperjs/core/lib/utils/computeOffsets.js ***! 2851 \*****************************************************************/ 2852/*! exports provided: default */ 2853/***/ (function(module, __webpack_exports__, __webpack_require__) { 2854 2855"use strict"; 2856__webpack_require__.r(__webpack_exports__); 2857/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return computeOffsets; }); 2858/* harmony import */ var _getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getBasePlacement.js */ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js"); 2859/* harmony import */ var _getVariation_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getVariation.js */ "./node_modules/@popperjs/core/lib/utils/getVariation.js"); 2860/* harmony import */ var _getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getMainAxisFromPlacement.js */ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js"); 2861/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 2862 2863 2864 2865 2866function computeOffsets(_ref) { 2867 var reference = _ref.reference, 2868 element = _ref.element, 2869 placement = _ref.placement; 2870 var basePlacement = placement ? Object(_getBasePlacement_js__WEBPACK_IMPORTED_MODULE_0__["default"])(placement) : null; 2871 var variation = placement ? Object(_getVariation_js__WEBPACK_IMPORTED_MODULE_1__["default"])(placement) : null; 2872 var commonX = reference.x + reference.width / 2 - element.width / 2; 2873 var commonY = reference.y + reference.height / 2 - element.height / 2; 2874 var offsets; 2875 2876 switch (basePlacement) { 2877 case _enums_js__WEBPACK_IMPORTED_MODULE_3__["top"]: 2878 offsets = { 2879 x: commonX, 2880 y: reference.y - element.height 2881 }; 2882 break; 2883 2884 case _enums_js__WEBPACK_IMPORTED_MODULE_3__["bottom"]: 2885 offsets = { 2886 x: commonX, 2887 y: reference.y + reference.height 2888 }; 2889 break; 2890 2891 case _enums_js__WEBPACK_IMPORTED_MODULE_3__["right"]: 2892 offsets = { 2893 x: reference.x + reference.width, 2894 y: commonY 2895 }; 2896 break; 2897 2898 case _enums_js__WEBPACK_IMPORTED_MODULE_3__["left"]: 2899 offsets = { 2900 x: reference.x - element.width, 2901 y: commonY 2902 }; 2903 break; 2904 2905 default: 2906 offsets = { 2907 x: reference.x, 2908 y: reference.y 2909 }; 2910 } 2911 2912 var mainAxis = basePlacement ? Object(_getMainAxisFromPlacement_js__WEBPACK_IMPORTED_MODULE_2__["default"])(basePlacement) : null; 2913 2914 if (mainAxis != null) { 2915 var len = mainAxis === 'y' ? 'height' : 'width'; 2916 2917 switch (variation) { 2918 case _enums_js__WEBPACK_IMPORTED_MODULE_3__["start"]: 2919 offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2); 2920 break; 2921 2922 case _enums_js__WEBPACK_IMPORTED_MODULE_3__["end"]: 2923 offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2); 2924 break; 2925 2926 default: 2927 } 2928 } 2929 2930 return offsets; 2931} 2932 2933/***/ }), 2934
vendor: 1,012 bytes, lines 2935-2963
2935/***/ "./node_modules/@popperjs/core/lib/utils/debounce.js": 2936/*!***********************************************************!*\ 2937 !*** ./node_modules/@popperjs/core/lib/utils/debounce.js ***! 2938 \***********************************************************/ 2939/*! exports provided: default */ 2940/***/ (function(module, __webpack_exports__, __webpack_require__) { 2941 2942"use strict"; 2943__webpack_require__.r(__webpack_exports__); 2944/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return debounce; }); 2945function debounce(fn) { 2946 var pending; 2947 return function () { 2948 if (!pending) { 2949 pending = new Promise(function (resolve) { 2950 Promise.resolve().then(function () { 2951 pending = undefined; 2952 resolve(fn()); 2953 }); 2954 }); 2955 } 2956 2957 return pending; 2958 }; 2959} 2960/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! es6-promise */ "./node_modules/es6-promise/dist/es6-promise.js"))) 2961 2962/***/ }), 2963
vendor: 6,284 bytes, lines 2964-3050
2964/***/ "./node_modules/@popperjs/core/lib/utils/detectOverflow.js": 2965/*!*****************************************************************!*\ 2966 !*** ./node_modules/@popperjs/core/lib/utils/detectOverflow.js ***! 2967 \*****************************************************************/ 2968/*! exports provided: default */ 2969/***/ (function(module, __webpack_exports__, __webpack_require__) { 2970 2971"use strict"; 2972__webpack_require__.r(__webpack_exports__); 2973/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return detectOverflow; }); 2974/* harmony import */ var _dom_utils_getClippingRect_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-utils/getClippingRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js"); 2975/* harmony import */ var _dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-utils/getDocumentElement.js */ "./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js"); 2976/* harmony import */ var _dom_utils_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../dom-utils/getBoundingClientRect.js */ "./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js"); 2977/* harmony import */ var _computeOffsets_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./computeOffsets.js */ "./node_modules/@popperjs/core/lib/utils/computeOffsets.js"); 2978/* harmony import */ var _rectToClientRect_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rectToClientRect.js */ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js"); 2979/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 2980/* harmony import */ var _dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dom-utils/instanceOf.js */ "./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js"); 2981/* harmony import */ var _mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./mergePaddingObject.js */ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js"); 2982/* harmony import */ var _expandToHashMap_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./expandToHashMap.js */ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js"); 2983 2984 2985 2986 2987 2988 2989 2990 2991 // eslint-disable-next-line import/no-unused-modules 2992 2993function detectOverflow(state, options) { 2994 if (options === void 0) { 2995 options = {}; 2996 } 2997 2998 var _options = options, 2999 _options$placement = _options.placement, 3000 placement = _options$placement === void 0 ? state.placement : _options$placement, 3001 _options$strategy = _options.strategy, 3002 strategy = _options$strategy === void 0 ? state.strategy : _options$strategy, 3003 _options$boundary = _options.boundary, 3004 boundary = _options$boundary === void 0 ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["clippingParents"] : _options$boundary, 3005 _options$rootBoundary = _options.rootBoundary, 3006 rootBoundary = _options$rootBoundary === void 0 ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["viewport"] : _options$rootBoundary, 3007 _options$elementConte = _options.elementContext, 3008 elementContext = _options$elementConte === void 0 ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"] : _options$elementConte, 3009 _options$altBoundary = _options.altBoundary, 3010 altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary, 3011 _options$padding = _options.padding, 3012 padding = _options$padding === void 0 ? 0 : _options$padding; 3013 var paddingObject = Object(_mergePaddingObject_js__WEBPACK_IMPORTED_MODULE_7__["default"])(typeof padding !== 'number' ? padding : Object(_expandToHashMap_js__WEBPACK_IMPORTED_MODULE_8__["default"])(padding, _enums_js__WEBPACK_IMPORTED_MODULE_5__["basePlacements"])); 3014 var altContext = elementContext === _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"] ? _enums_js__WEBPACK_IMPORTED_MODULE_5__["reference"] : _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"]; 3015 var popperRect = state.rects.popper; 3016 var element = state.elements[altBoundary ? altContext : elementContext]; 3017 var clippingClientRect = Object(_dom_utils_getClippingRect_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(_dom_utils_instanceOf_js__WEBPACK_IMPORTED_MODULE_6__["isElement"])(element) ? element : element.contextElement || Object(_dom_utils_getDocumentElement_js__WEBPACK_IMPORTED_MODULE_1__["default"])(state.elements.popper), boundary, rootBoundary, strategy); 3018 var referenceClientRect = Object(_dom_utils_getBoundingClientRect_js__WEBPACK_IMPORTED_MODULE_2__["default"])(state.elements.reference); 3019 var popperOffsets = Object(_computeOffsets_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ 3020 reference: referenceClientRect, 3021 element: popperRect, 3022 strategy: 'absolute', 3023 placement: placement 3024 }); 3025 var popperClientRect = Object(_rectToClientRect_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object.assign({}, popperRect, popperOffsets)); 3026 var elementClientRect = elementContext === _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"] ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect 3027 // 0 or negative = within the clipping rect 3028 3029 var overflowOffsets = { 3030 top: clippingClientRect.top - elementClientRect.top + paddingObject.top, 3031 bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom, 3032 left: clippingClientRect.left - elementClientRect.left + paddingObject.left, 3033 right: elementClientRect.right - clippingClientRect.right + paddingObject.right 3034 }; 3035 var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element 3036 3037 if (elementContext === _enums_js__WEBPACK_IMPORTED_MODULE_5__["popper"] && offsetData) { 3038 var offset = offsetData[placement]; 3039 Object.keys(overflowOffsets).forEach(function (key) { 3040 var multiply = [_enums_js__WEBPACK_IMPORTED_MODULE_5__["right"], _enums_js__WEBPACK_IMPORTED_MODULE_5__["bottom"]].indexOf(key) >= 0 ? 1 : -1; 3041 var axis = [_enums_js__WEBPACK_IMPORTED_MODULE_5__["top"], _enums_js__WEBPACK_IMPORTED_MODULE_5__["bottom"]].indexOf(key) >= 0 ? 'y' : 'x'; 3042 overflowOffsets[key] += offset[axis] * multiply; 3043 }); 3044 } 3045 3046 return overflowOffsets; 3047} 3048 3049/***/ }), 3050
vendor: 726 bytes, lines 3051-3069
3051/***/ "./node_modules/@popperjs/core/lib/utils/expandToHashMap.js": 3052/*!******************************************************************!*\ 3053 !*** ./node_modules/@popperjs/core/lib/utils/expandToHashMap.js ***! 3054 \******************************************************************/ 3055/*! exports provided: default */ 3056/***/ (function(module, __webpack_exports__, __webpack_require__) { 3057 3058"use strict"; 3059__webpack_require__.r(__webpack_exports__); 3060/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return expandToHashMap; }); 3061function expandToHashMap(value, keys) { 3062 return keys.reduce(function (hashMap, key) { 3063 hashMap[key] = value; 3064 return hashMap; 3065 }, {}); 3066} 3067 3068/***/ }), 3069
vendor: 808 bytes, lines 3070-3091
3070/***/ "./node_modules/@popperjs/core/lib/utils/format.js": 3071/*!*********************************************************!*\ 3072 !*** ./node_modules/@popperjs/core/lib/utils/format.js ***! 3073 \*********************************************************/ 3074/*! exports provided: default */ 3075/***/ (function(module, __webpack_exports__, __webpack_require__) { 3076 3077"use strict"; 3078__webpack_require__.r(__webpack_exports__); 3079/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return format; }); 3080function format(str) { 3081 for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 3082 args[_key - 1] = arguments[_key]; 3083 } 3084 3085 return [].concat(args).reduce(function (p, c) { 3086 return p.replace(/%s/, c); 3087 }, str); 3088} 3089 3090/***/ }), 3091
vendor: 621 bytes, lines 3092-3107
3092/***/ "./node_modules/@popperjs/core/lib/utils/getAltAxis.js": 3093/*!*************************************************************!*\ 3094 !*** ./node_modules/@popperjs/core/lib/utils/getAltAxis.js ***! 3095 \*************************************************************/ 3096/*! exports provided: default */ 3097/***/ (function(module, __webpack_exports__, __webpack_require__) { 3098 3099"use strict"; 3100__webpack_require__.r(__webpack_exports__); 3101/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getAltAxis; }); 3102function getAltAxis(axis) { 3103 return axis === 'x' ? 'y' : 'x'; 3104} 3105 3106/***/ }), 3107
vendor: 814 bytes, lines 3108-3125
3108/***/ "./node_modules/@popperjs/core/lib/utils/getBasePlacement.js": 3109/*!*******************************************************************!*\ 3110 !*** ./node_modules/@popperjs/core/lib/utils/getBasePlacement.js ***! 3111 \*******************************************************************/ 3112/*! exports provided: default */ 3113/***/ (function(module, __webpack_exports__, __webpack_require__) { 3114 3115"use strict"; 3116__webpack_require__.r(__webpack_exports__); 3117/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getBasePlacement; }); 3118/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 3119 3120function getBasePlacement(placement) { 3121 return placement.split('-')[0]; 3122} 3123 3124/***/ }), 3125
vendor: 699 bytes, lines 3126-3146
3126/***/ "./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js": 3127/*!*********************************************************************!*\ 3128 !*** ./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js ***! 3129 \*********************************************************************/ 3130/*! exports provided: default */ 3131/***/ (function(module, __webpack_exports__, __webpack_require__) { 3132 3133"use strict"; 3134__webpack_require__.r(__webpack_exports__); 3135/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getFreshSideObject; }); 3136function getFreshSideObject() { 3137 return { 3138 top: 0, 3139 right: 0, 3140 bottom: 0, 3141 left: 0 3142 }; 3143} 3144 3145/***/ }), 3146
vendor: 739 bytes, lines 3147-3162
3147/***/ "./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js": 3148/*!***************************************************************************!*\ 3149 !*** ./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js ***! 3150 \***************************************************************************/ 3151/*! exports provided: default */ 3152/***/ (function(module, __webpack_exports__, __webpack_require__) { 3153 3154"use strict"; 3155__webpack_require__.r(__webpack_exports__); 3156/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getMainAxisFromPlacement; }); 3157function getMainAxisFromPlacement(placement) { 3158 return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y'; 3159} 3160 3161/***/ }), 3162
vendor: 840 bytes, lines 3163-3186
3163/***/ "./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js": 3164/*!***********************************************************************!*\ 3165 !*** ./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js ***! 3166 \***********************************************************************/ 3167/*! exports provided: default */ 3168/***/ (function(module, __webpack_exports__, __webpack_require__) { 3169 3170"use strict"; 3171__webpack_require__.r(__webpack_exports__); 3172/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getOppositePlacement; }); 3173var hash = { 3174 left: 'right', 3175 right: 'left', 3176 bottom: 'top', 3177 top: 'bottom' 3178}; 3179function getOppositePlacement(placement) { 3180 return placement.replace(/left|right|bottom|top/g, function (matched) { 3181 return hash[matched]; 3182 }); 3183} 3184 3185/***/ }), 3186
vendor: 846 bytes, lines 3187-3208
3187/***/ "./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js": 3188/*!********************************************************************************!*\ 3189 !*** ./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js ***! 3190 \********************************************************************************/ 3191/*! exports provided: default */ 3192/***/ (function(module, __webpack_exports__, __webpack_require__) { 3193 3194"use strict"; 3195__webpack_require__.r(__webpack_exports__); 3196/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getOppositeVariationPlacement; }); 3197var hash = { 3198 start: 'end', 3199 end: 'start' 3200}; 3201function getOppositeVariationPlacement(placement) { 3202 return placement.replace(/start|end/g, function (matched) { 3203 return hash[matched]; 3204 }); 3205} 3206 3207/***/ }), 3208
vendor: 637 bytes, lines 3209-3224
3209/***/ "./node_modules/@popperjs/core/lib/utils/getVariation.js": 3210/*!***************************************************************!*\ 3211 !*** ./node_modules/@popperjs/core/lib/utils/getVariation.js ***! 3212 \***************************************************************/ 3213/*! exports provided: default */ 3214/***/ (function(module, __webpack_exports__, __webpack_require__) { 3215 3216"use strict"; 3217__webpack_require__.r(__webpack_exports__); 3218/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getVariation; }); 3219function getVariation(placement) { 3220 return placement.split('-')[1]; 3221} 3222 3223/***/ }), 3224
vendor: 817 bytes, lines 3225-3242
3225/***/ "./node_modules/@popperjs/core/lib/utils/math.js": 3226/*!*******************************************************!*\ 3227 !*** ./node_modules/@popperjs/core/lib/utils/math.js ***! 3228 \*******************************************************/ 3229/*! exports provided: max, min, round */ 3230/***/ (function(module, __webpack_exports__, __webpack_require__) { 3231 3232"use strict"; 3233__webpack_require__.r(__webpack_exports__); 3234/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return max; }); 3235/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return min; }); 3236/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "round", function() { return round; }); 3237var max = Math.max; 3238var min = Math.min; 3239var round = Math.round; 3240 3241/***/ }), 3242
vendor: 1,071 bytes, lines 3243-3269
3243/***/ "./node_modules/@popperjs/core/lib/utils/mergeByName.js": 3244/*!**************************************************************!*\ 3245 !*** ./node_modules/@popperjs/core/lib/utils/mergeByName.js ***! 3246 \**************************************************************/ 3247/*! exports provided: default */ 3248/***/ (function(module, __webpack_exports__, __webpack_require__) { 3249 3250"use strict"; 3251__webpack_require__.r(__webpack_exports__); 3252/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mergeByName; }); 3253function mergeByName(modifiers) { 3254 var merged = modifiers.reduce(function (merged, current) { 3255 var existing = merged[current.name]; 3256 merged[current.name] = existing ? Object.assign({}, existing, current, { 3257 options: Object.assign({}, existing.options, current.options), 3258 data: Object.assign({}, existing.data, current.data) 3259 }) : current; 3260 return merged; 3261 }, {}); // IE11 does not support Object.values 3262 3263 return Object.keys(merged).map(function (key) { 3264 return merged[key]; 3265 }); 3266} 3267 3268/***/ }), 3269
vendor: 957 bytes, lines 3270-3287
3270/***/ "./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js": 3271/*!*********************************************************************!*\ 3272 !*** ./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js ***! 3273 \*********************************************************************/ 3274/*! exports provided: default */ 3275/***/ (function(module, __webpack_exports__, __webpack_require__) { 3276 3277"use strict"; 3278__webpack_require__.r(__webpack_exports__); 3279/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return mergePaddingObject; }); 3280/* harmony import */ var _getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getFreshSideObject.js */ "./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js"); 3281 3282function mergePaddingObject(paddingObject) { 3283 return Object.assign({}, Object(_getFreshSideObject_js__WEBPACK_IMPORTED_MODULE_0__["default"])(), paddingObject); 3284} 3285 3286/***/ }), 3287
vendor: 1,951 bytes, lines 3288-3345
3288/***/ "./node_modules/@popperjs/core/lib/utils/orderModifiers.js": 3289/*!*****************************************************************!*\ 3290 !*** ./node_modules/@popperjs/core/lib/utils/orderModifiers.js ***! 3291 \*****************************************************************/ 3292/*! exports provided: default */ 3293/***/ (function(module, __webpack_exports__, __webpack_require__) { 3294 3295"use strict"; 3296__webpack_require__.r(__webpack_exports__); 3297/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return orderModifiers; }); 3298/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 3299 // source: https://stackoverflow.com/questions/49875255 3300 3301function order(modifiers) { 3302 var map = new Map(); 3303 var visited = new Set(); 3304 var result = []; 3305 modifiers.forEach(function (modifier) { 3306 map.set(modifier.name, modifier); 3307 }); // On visiting object, check for its dependencies and visit them recursively 3308 3309 function sort(modifier) { 3310 visited.add(modifier.name); 3311 var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []); 3312 requires.forEach(function (dep) { 3313 if (!visited.has(dep)) { 3314 var depModifier = map.get(dep); 3315 3316 if (depModifier) { 3317 sort(depModifier); 3318 } 3319 } 3320 }); 3321 result.push(modifier); 3322 } 3323 3324 modifiers.forEach(function (modifier) { 3325 if (!visited.has(modifier.name)) { 3326 // check for visited object 3327 sort(modifier); 3328 } 3329 }); 3330 return result; 3331} 3332 3333function orderModifiers(modifiers) { 3334 // order based on dependencies 3335 var orderedModifiers = order(modifiers); // order based on phase 3336 3337 return _enums_js__WEBPACK_IMPORTED_MODULE_0__["modifierPhases"].reduce(function (acc, phase) { 3338 return acc.concat(orderedModifiers.filter(function (modifier) { 3339 return modifier.phase === phase; 3340 })); 3341 }, []); 3342} 3343 3344/***/ }), 3345
vendor: 763 bytes, lines 3346-3366
3346/***/ "./node_modules/@popperjs/core/lib/utils/rectToClientRect.js": 3347/*!*******************************************************************!*\ 3348 !*** ./node_modules/@popperjs/core/lib/utils/rectToClientRect.js ***! 3349 \*******************************************************************/ 3350/*! exports provided: default */ 3351/***/ (function(module, __webpack_exports__, __webpack_require__) { 3352 3353"use strict"; 3354__webpack_require__.r(__webpack_exports__); 3355/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return rectToClientRect; }); 3356function rectToClientRect(rect) { 3357 return Object.assign({}, rect, { 3358 left: rect.x, 3359 top: rect.y, 3360 right: rect.x + rect.width, 3361 bottom: rect.y + rect.height 3362 }); 3363} 3364 3365/***/ }), 3366
vendor: 784 bytes, lines 3367-3390
3367/***/ "./node_modules/@popperjs/core/lib/utils/uniqueBy.js": 3368/*!***********************************************************!*\ 3369 !*** ./node_modules/@popperjs/core/lib/utils/uniqueBy.js ***! 3370 \***********************************************************/ 3371/*! exports provided: default */ 3372/***/ (function(module, __webpack_exports__, __webpack_require__) { 3373 3374"use strict"; 3375__webpack_require__.r(__webpack_exports__); 3376/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return uniqueBy; }); 3377function uniqueBy(arr, fn) { 3378 var identifiers = new Set(); 3379 return arr.filter(function (item) { 3380 var identifier = fn(item); 3381 3382 if (!identifiers.has(identifier)) { 3383 identifiers.add(identifier); 3384 return true; 3385 } 3386 }); 3387} 3388 3389/***/ }), 3390
vendor: 808 bytes, lines 3391-3414
3391/***/ "./node_modules/@popperjs/core/lib/utils/userAgent.js": 3392/*!************************************************************!*\ 3393 !*** ./node_modules/@popperjs/core/lib/utils/userAgent.js ***! 3394 \************************************************************/ 3395/*! exports provided: default */ 3396/***/ (function(module, __webpack_exports__, __webpack_require__) { 3397 3398"use strict"; 3399__webpack_require__.r(__webpack_exports__); 3400/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getUAString; }); 3401function getUAString() { 3402 var uaData = navigator.userAgentData; 3403 3404 if (uaData != null && uaData.brands) { 3405 return uaData.brands.map(function (item) { 3406 return item.brand + "/" + item.version; 3407 }).join(' '); 3408 } 3409 3410 return navigator.userAgent; 3411} 3412 3413/***/ }), 3414
vendor: 4,572 bytes, lines 3415-3510
3415/***/ "./node_modules/@popperjs/core/lib/utils/validateModifiers.js": 3416/*!********************************************************************!*\ 3417 !*** ./node_modules/@popperjs/core/lib/utils/validateModifiers.js ***! 3418 \********************************************************************/ 3419/*! exports provided: default */ 3420/***/ (function(module, __webpack_exports__, __webpack_require__) { 3421 3422"use strict"; 3423__webpack_require__.r(__webpack_exports__); 3424/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return validateModifiers; }); 3425/* harmony import */ var _format_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./format.js */ "./node_modules/@popperjs/core/lib/utils/format.js"); 3426/* harmony import */ var _enums_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enums.js */ "./node_modules/@popperjs/core/lib/enums.js"); 3427 3428 3429var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s'; 3430var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available'; 3431var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options']; 3432function validateModifiers(modifiers) { 3433 modifiers.forEach(function (modifier) { 3434 [].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)` 3435 .filter(function (value, index, self) { 3436 return self.indexOf(value) === index; 3437 }).forEach(function (key) { 3438 switch (key) { 3439 case 'name': 3440 if (typeof modifier.name !== 'string') { 3441 console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\"")); 3442 } 3443 3444 break; 3445 3446 case 'enabled': 3447 if (typeof modifier.enabled !== 'boolean') { 3448 console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\"")); 3449 } 3450 3451 break; 3452 3453 case 'phase': 3454 if (_enums_js__WEBPACK_IMPORTED_MODULE_1__["modifierPhases"].indexOf(modifier.phase) < 0) { 3455 console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + _enums_js__WEBPACK_IMPORTED_MODULE_1__["modifierPhases"].join(', '), "\"" + String(modifier.phase) + "\"")); 3456 } 3457 3458 break; 3459 3460 case 'fn': 3461 if (typeof modifier.fn !== 'function') { 3462 console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\"")); 3463 } 3464 3465 break; 3466 3467 case 'effect': 3468 if (modifier.effect != null && typeof modifier.effect !== 'function') { 3469 console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\"")); 3470 } 3471 3472 break; 3473 3474 case 'requires': 3475 if (modifier.requires != null && !Array.isArray(modifier.requires)) { 3476 console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\"")); 3477 } 3478 3479 break; 3480 3481 case 'requiresIfExists': 3482 if (!Array.isArray(modifier.requiresIfExists)) { 3483 console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\"")); 3484 } 3485 3486 break; 3487 3488 case 'options': 3489 case 'data': 3490 break; 3491 3492 default: 3493 console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) { 3494 return "\"" + s + "\""; 3495 }).join(', ') + "; but \"" + key + "\" was provided."); 3496 } 3497 3498 modifier.requires && modifier.requires.forEach(function (requirement) { 3499 if (modifiers.find(function (mod) { 3500 return mod.name === requirement; 3501 }) == null) { 3502 console.error(Object(_format_js__WEBPACK_IMPORTED_MODULE_0__["default"])(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement)); 3503 } 3504 }); 3505 }); 3506 }); 3507} 3508 3509/***/ }), 3510
vendor: 1,116 bytes, lines 3511-3533
3511/***/ "./node_modules/@popperjs/core/lib/utils/within.js": 3512/*!*********************************************************!*\ 3513 !*** ./node_modules/@popperjs/core/lib/utils/within.js ***! 3514 \*********************************************************/ 3515/*! exports provided: within, withinMaxClamp */ 3516/***/ (function(module, __webpack_exports__, __webpack_require__) { 3517 3518"use strict"; 3519__webpack_require__.r(__webpack_exports__); 3520/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "within", function() { return within; }); 3521/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withinMaxClamp", function() { return withinMaxClamp; }); 3522/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "./node_modules/@popperjs/core/lib/utils/math.js"); 3523 3524function within(min, value, max) { 3525 return Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["max"])(min, Object(_math_js__WEBPACK_IMPORTED_MODULE_0__["min"])(value, max)); 3526} 3527function withinMaxClamp(min, value, max) { 3528 var v = within(min, value, max); 3529 return v > max ? max : v; 3530} 3531 3532/***/ }), 3533
vendor: 2,470 bytes, lines 3534-3605
3534/***/ "./node_modules/classnames/index.js": 3535/*!******************************************!*\ 3536 !*** ./node_modules/classnames/index.js ***! 3537 \******************************************/ 3538/*! no static exports found */ 3539/***/ (function(module, exports, __webpack_require__) { 3540 3541var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } 3542 3543/*! 3544 Copyright (c) 2018 Jed Watson. 3545 Licensed under the MIT License (MIT), see 3546 http://jedwatson.github.io/classnames 3547*/ 3548 3549/* global define */ 3550(function () { 3551 'use strict'; 3552 3553 var hasOwn = {}.hasOwnProperty; 3554 3555 function classNames() { 3556 var classes = []; 3557 3558 for (var i = 0; i < arguments.length; i++) { 3559 var arg = arguments[i]; 3560 if (!arg) continue; 3561 3562 var argType = _typeof(arg); 3563 3564 if (argType === 'string' || argType === 'number') { 3565 classes.push(arg); 3566 } else if (Array.isArray(arg)) { 3567 if (arg.length) { 3568 var inner = classNames.apply(null, arg); 3569 3570 if (inner) { 3571 classes.push(inner); 3572 } 3573 } 3574 } else if (argType === 'object') { 3575 if (arg.toString === Object.prototype.toString) { 3576 for (var key in arg) { 3577 if (hasOwn.call(arg, key) && arg[key]) { 3578 classes.push(key); 3579 } 3580 } 3581 } else { 3582 classes.push(arg.toString()); 3583 } 3584 } 3585 } 3586 3587 return classes.join(' '); 3588 } 3589 3590 if ( true && module.exports) { 3591 classNames.default = classNames; 3592 module.exports = classNames; 3593 } else if ( true && _typeof(__webpack_require__(/*! !webpack amd options */ "./node_modules/webpack/buildin/amd-options.js")) === 'object' && __webpack_require__(/*! !webpack amd options */ "./node_modules/webpack/buildin/amd-options.js")) { 3594 // register as 'classnames', consistent with npm package name 3595 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { 3596 return classNames; 3597 }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), 3598 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); 3599 } else { 3600 window.classNames = classNames; 3601 } 3602})(); 3603 3604/***/ }), 3605
vendor: 806 bytes, lines 3606-3628
3606/***/ "./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js": 3607/*!*****************************************************************!*\ 3608 !*** ./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js ***! 3609 \*****************************************************************/ 3610/*! exports provided: default */ 3611/***/ (function(module, __webpack_exports__, __webpack_require__) { 3612 3613"use strict"; 3614__webpack_require__.r(__webpack_exports__); 3615/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addLeadingZeros; }); 3616function addLeadingZeros(number, targetLength) { 3617 var sign = number < 0 ? '-' : ''; 3618 var output = Math.abs(number).toString(); 3619 3620 while (output.length < targetLength) { 3621 output = '0' + output; 3622 } 3623 3624 return sign + output; 3625} 3626 3627/***/ }), 3628
vendor: 865 bytes, lines 3629-3655
3629/***/ "./node_modules/date-fns/esm/_lib/assign/index.js": 3630/*!********************************************************!*\ 3631 !*** ./node_modules/date-fns/esm/_lib/assign/index.js ***! 3632 \********************************************************/ 3633/*! exports provided: default */ 3634/***/ (function(module, __webpack_exports__, __webpack_require__) { 3635 3636"use strict"; 3637__webpack_require__.r(__webpack_exports__); 3638/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return assign; }); 3639function assign(target, object) { 3640 if (target == null) { 3641 throw new TypeError('assign requires that input parameter not be null or undefined'); 3642 } 3643 3644 for (var property in object) { 3645 if (Object.prototype.hasOwnProperty.call(object, property)) { 3646 ; 3647 target[property] = object[property]; 3648 } 3649 } 3650 3651 return target; 3652} 3653 3654/***/ }), 3655
vendor: 760 bytes, lines 3656-3670
3656/***/ "./node_modules/date-fns/esm/_lib/defaultLocale/index.js": 3657/*!***************************************************************!*\ 3658 !*** ./node_modules/date-fns/esm/_lib/defaultLocale/index.js ***! 3659 \***************************************************************/ 3660/*! exports provided: default */ 3661/***/ (function(module, __webpack_exports__, __webpack_require__) { 3662 3663"use strict"; 3664__webpack_require__.r(__webpack_exports__); 3665/* harmony import */ var _locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../locale/en-US/index.js */ "./node_modules/date-fns/esm/locale/en-US/index.js"); 3666 3667/* harmony default export */ __webpack_exports__["default"] = (_locale_en_US_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]); 3668 3669/***/ }), 3670
vendor: 909 bytes, lines 3671-3691
3671/***/ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js": 3672/*!****************************************************************!*\ 3673 !*** ./node_modules/date-fns/esm/_lib/defaultOptions/index.js ***! 3674 \****************************************************************/ 3675/*! exports provided: getDefaultOptions, setDefaultOptions */ 3676/***/ (function(module, __webpack_exports__, __webpack_require__) { 3677 3678"use strict"; 3679__webpack_require__.r(__webpack_exports__); 3680/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDefaultOptions", function() { return getDefaultOptions; }); 3681/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDefaultOptions", function() { return setDefaultOptions; }); 3682var defaultOptions = {}; 3683function getDefaultOptions() { 3684 return defaultOptions; 3685} 3686function setDefaultOptions(newOptions) { 3687 defaultOptions = newOptions; 3688} 3689 3690/***/ }), 3691
vendor: 27,604 bytes, lines 3692-4576
3692/***/ "./node_modules/date-fns/esm/_lib/format/formatters/index.js": 3693/*!*******************************************************************!*\ 3694 !*** ./node_modules/date-fns/esm/_lib/format/formatters/index.js ***! 3695 \*******************************************************************/ 3696/*! exports provided: default */ 3697/***/ (function(module, __webpack_exports__, __webpack_require__) { 3698 3699"use strict"; 3700__webpack_require__.r(__webpack_exports__); 3701/* harmony import */ var _lib_getUTCDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/getUTCDayOfYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js"); 3702/* harmony import */ var _lib_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_lib/getUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js"); 3703/* harmony import */ var _lib_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/getUTCISOWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js"); 3704/* harmony import */ var _lib_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/getUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeek/index.js"); 3705/* harmony import */ var _lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_lib/getUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js"); 3706/* harmony import */ var _addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../addLeadingZeros/index.js */ "./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js"); 3707/* harmony import */ var _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../lightFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js"); 3708 3709 3710 3711 3712 3713 3714 3715var dayPeriodEnum = { 3716 am: 'am', 3717 pm: 'pm', 3718 midnight: 'midnight', 3719 noon: 'noon', 3720 morning: 'morning', 3721 afternoon: 'afternoon', 3722 evening: 'evening', 3723 night: 'night' 3724}; 3725/* 3726 * | | Unit | | Unit | 3727 * |-----|--------------------------------|-----|--------------------------------| 3728 * | a | AM, PM | A* | Milliseconds in day | 3729 * | b | AM, PM, noon, midnight | B | Flexible day period | 3730 * | c | Stand-alone local day of week | C* | Localized hour w/ day period | 3731 * | d | Day of month | D | Day of year | 3732 * | e | Local day of week | E | Day of week | 3733 * | f | | F* | Day of week in month | 3734 * | g* | Modified Julian day | G | Era | 3735 * | h | Hour [1-12] | H | Hour [0-23] | 3736 * | i! | ISO day of week | I! | ISO week of year | 3737 * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | 3738 * | k | Hour [1-24] | K | Hour [0-11] | 3739 * | l* | (deprecated) | L | Stand-alone month | 3740 * | m | Minute | M | Month | 3741 * | n | | N | | 3742 * | o! | Ordinal number modifier | O | Timezone (GMT) | 3743 * | p! | Long localized time | P! | Long localized date | 3744 * | q | Stand-alone quarter | Q | Quarter | 3745 * | r* | Related Gregorian year | R! | ISO week-numbering year | 3746 * | s | Second | S | Fraction of second | 3747 * | t! | Seconds timestamp | T! | Milliseconds timestamp | 3748 * | u | Extended year | U* | Cyclic year | 3749 * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | 3750 * | w | Local week of year | W* | Week of month | 3751 * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | 3752 * | y | Year (abs) | Y | Local week-numbering year | 3753 * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) | 3754 * 3755 * Letters marked by * are not implemented but reserved by Unicode standard. 3756 * 3757 * Letters marked by ! are non-standard, but implemented by date-fns: 3758 * - `o` modifies the previous token to turn it into an ordinal (see `format` docs) 3759 * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, 3760 * i.e. 7 for Sunday, 1 for Monday, etc. 3761 * - `I` is ISO week of year, as opposed to `w` which is local week of year. 3762 * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. 3763 * `R` is supposed to be used in conjunction with `I` and `i` 3764 * for universal ISO week-numbering date, whereas 3765 * `Y` is supposed to be used in conjunction with `w` and `e` 3766 * for week-numbering date specific to the locale. 3767 * - `P` is long localized date format 3768 * - `p` is long localized time format 3769 */ 3770 3771var formatters = { 3772 // Era 3773 G: function G(date, token, localize) { 3774 var era = date.getUTCFullYear() > 0 ? 1 : 0; 3775 3776 switch (token) { 3777 // AD, BC 3778 case 'G': 3779 case 'GG': 3780 case 'GGG': 3781 return localize.era(era, { 3782 width: 'abbreviated' 3783 }); 3784 // A, B 3785 3786 case 'GGGGG': 3787 return localize.era(era, { 3788 width: 'narrow' 3789 }); 3790 // Anno Domini, Before Christ 3791 3792 case 'GGGG': 3793 default: 3794 return localize.era(era, { 3795 width: 'wide' 3796 }); 3797 } 3798 }, 3799 // Year 3800 y: function y(date, token, localize) { 3801 // Ordinal number 3802 if (token === 'yo') { 3803 var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) 3804 3805 var year = signedYear > 0 ? signedYear : 1 - signedYear; 3806 return localize.ordinalNumber(year, { 3807 unit: 'year' 3808 }); 3809 } 3810 3811 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].y(date, token); 3812 }, 3813 // Local week-numbering year 3814 Y: function Y(date, token, localize, options) { 3815 var signedWeekYear = Object(_lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript) 3816 3817 var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year 3818 3819 if (token === 'YY') { 3820 var twoDigitYear = weekYear % 100; 3821 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(twoDigitYear, 2); 3822 } // Ordinal number 3823 3824 3825 if (token === 'Yo') { 3826 return localize.ordinalNumber(weekYear, { 3827 unit: 'year' 3828 }); 3829 } // Padding 3830 3831 3832 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(weekYear, token.length); 3833 }, 3834 // ISO week-numbering year 3835 R: function R(date, token) { 3836 var isoWeekYear = Object(_lib_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date); // Padding 3837 3838 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(isoWeekYear, token.length); 3839 }, 3840 // Extended year. This is a single number designating the year of this calendar system. 3841 // The main difference between `y` and `u` localizers are B.C. years: 3842 // | Year | `y` | `u` | 3843 // |------|-----|-----| 3844 // | AC 1 | 1 | 1 | 3845 // | BC 1 | 1 | 0 | 3846 // | BC 2 | 2 | -1 | 3847 // Also `yy` always returns the last two digits of a year, 3848 // while `uu` pads single digit years to 2 characters and returns other years unchanged. 3849 u: function u(date, token) { 3850 var year = date.getUTCFullYear(); 3851 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(year, token.length); 3852 }, 3853 // Quarter 3854 Q: function Q(date, token, localize) { 3855 var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); 3856 3857 switch (token) { 3858 // 1, 2, 3, 4 3859 case 'Q': 3860 return String(quarter); 3861 // 01, 02, 03, 04 3862 3863 case 'QQ': 3864 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(quarter, 2); 3865 // 1st, 2nd, 3rd, 4th 3866 3867 case 'Qo': 3868 return localize.ordinalNumber(quarter, { 3869 unit: 'quarter' 3870 }); 3871 // Q1, Q2, Q3, Q4 3872 3873 case 'QQQ': 3874 return localize.quarter(quarter, { 3875 width: 'abbreviated', 3876 context: 'formatting' 3877 }); 3878 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 3879 3880 case 'QQQQQ': 3881 return localize.quarter(quarter, { 3882 width: 'narrow', 3883 context: 'formatting' 3884 }); 3885 // 1st quarter, 2nd quarter, ... 3886 3887 case 'QQQQ': 3888 default: 3889 return localize.quarter(quarter, { 3890 width: 'wide', 3891 context: 'formatting' 3892 }); 3893 } 3894 }, 3895 // Stand-alone quarter 3896 q: function q(date, token, localize) { 3897 var quarter = Math.ceil((date.getUTCMonth() + 1) / 3); 3898 3899 switch (token) { 3900 // 1, 2, 3, 4 3901 case 'q': 3902 return String(quarter); 3903 // 01, 02, 03, 04 3904 3905 case 'qq': 3906 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(quarter, 2); 3907 // 1st, 2nd, 3rd, 4th 3908 3909 case 'qo': 3910 return localize.ordinalNumber(quarter, { 3911 unit: 'quarter' 3912 }); 3913 // Q1, Q2, Q3, Q4 3914 3915 case 'qqq': 3916 return localize.quarter(quarter, { 3917 width: 'abbreviated', 3918 context: 'standalone' 3919 }); 3920 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 3921 3922 case 'qqqqq': 3923 return localize.quarter(quarter, { 3924 width: 'narrow', 3925 context: 'standalone' 3926 }); 3927 // 1st quarter, 2nd quarter, ... 3928 3929 case 'qqqq': 3930 default: 3931 return localize.quarter(quarter, { 3932 width: 'wide', 3933 context: 'standalone' 3934 }); 3935 } 3936 }, 3937 // Month 3938 M: function M(date, token, localize) { 3939 var month = date.getUTCMonth(); 3940 3941 switch (token) { 3942 case 'M': 3943 case 'MM': 3944 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].M(date, token); 3945 // 1st, 2nd, ..., 12th 3946 3947 case 'Mo': 3948 return localize.ordinalNumber(month + 1, { 3949 unit: 'month' 3950 }); 3951 // Jan, Feb, ..., Dec 3952 3953 case 'MMM': 3954 return localize.month(month, { 3955 width: 'abbreviated', 3956 context: 'formatting' 3957 }); 3958 // J, F, ..., D 3959 3960 case 'MMMMM': 3961 return localize.month(month, { 3962 width: 'narrow', 3963 context: 'formatting' 3964 }); 3965 // January, February, ..., December 3966 3967 case 'MMMM': 3968 default: 3969 return localize.month(month, { 3970 width: 'wide', 3971 context: 'formatting' 3972 }); 3973 } 3974 }, 3975 // Stand-alone month 3976 L: function L(date, token, localize) { 3977 var month = date.getUTCMonth(); 3978 3979 switch (token) { 3980 // 1, 2, ..., 12 3981 case 'L': 3982 return String(month + 1); 3983 // 01, 02, ..., 12 3984 3985 case 'LL': 3986 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(month + 1, 2); 3987 // 1st, 2nd, ..., 12th 3988 3989 case 'Lo': 3990 return localize.ordinalNumber(month + 1, { 3991 unit: 'month' 3992 }); 3993 // Jan, Feb, ..., Dec 3994 3995 case 'LLL': 3996 return localize.month(month, { 3997 width: 'abbreviated', 3998 context: 'standalone' 3999 }); 4000 // J, F, ..., D 4001 4002 case 'LLLLL': 4003 return localize.month(month, { 4004 width: 'narrow', 4005 context: 'standalone' 4006 }); 4007 // January, February, ..., December 4008 4009 case 'LLLL': 4010 default: 4011 return localize.month(month, { 4012 width: 'wide', 4013 context: 'standalone' 4014 }); 4015 } 4016 }, 4017 // Local week of year 4018 w: function w(date, token, localize, options) { 4019 var week = Object(_lib_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, options); 4020 4021 if (token === 'wo') { 4022 return localize.ordinalNumber(week, { 4023 unit: 'week' 4024 }); 4025 } 4026 4027 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(week, token.length); 4028 }, 4029 // ISO week of year 4030 I: function I(date, token, localize) { 4031 var isoWeek = Object(_lib_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date); 4032 4033 if (token === 'Io') { 4034 return localize.ordinalNumber(isoWeek, { 4035 unit: 'week' 4036 }); 4037 } 4038 4039 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(isoWeek, token.length); 4040 }, 4041 // Day of the month 4042 d: function d(date, token, localize) { 4043 if (token === 'do') { 4044 return localize.ordinalNumber(date.getUTCDate(), { 4045 unit: 'date' 4046 }); 4047 } 4048 4049 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].d(date, token); 4050 }, 4051 // Day of year 4052 D: function D(date, token, localize) { 4053 var dayOfYear = Object(_lib_getUTCDayOfYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date); 4054 4055 if (token === 'Do') { 4056 return localize.ordinalNumber(dayOfYear, { 4057 unit: 'dayOfYear' 4058 }); 4059 } 4060 4061 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(dayOfYear, token.length); 4062 }, 4063 // Day of week 4064 E: function E(date, token, localize) { 4065 var dayOfWeek = date.getUTCDay(); 4066 4067 switch (token) { 4068 // Tue 4069 case 'E': 4070 case 'EE': 4071 case 'EEE': 4072 return localize.day(dayOfWeek, { 4073 width: 'abbreviated', 4074 context: 'formatting' 4075 }); 4076 // T 4077 4078 case 'EEEEE': 4079 return localize.day(dayOfWeek, { 4080 width: 'narrow', 4081 context: 'formatting' 4082 }); 4083 // Tu 4084 4085 case 'EEEEEE': 4086 return localize.day(dayOfWeek, { 4087 width: 'short', 4088 context: 'formatting' 4089 }); 4090 // Tuesday 4091 4092 case 'EEEE': 4093 default: 4094 return localize.day(dayOfWeek, { 4095 width: 'wide', 4096 context: 'formatting' 4097 }); 4098 } 4099 }, 4100 // Local day of week 4101 e: function e(date, token, localize, options) { 4102 var dayOfWeek = date.getUTCDay(); 4103 var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; 4104 4105 switch (token) { 4106 // Numerical value (Nth day of week with current locale or weekStartsOn) 4107 case 'e': 4108 return String(localDayOfWeek); 4109 // Padded numerical value 4110 4111 case 'ee': 4112 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(localDayOfWeek, 2); 4113 // 1st, 2nd, ..., 7th 4114 4115 case 'eo': 4116 return localize.ordinalNumber(localDayOfWeek, { 4117 unit: 'day' 4118 }); 4119 4120 case 'eee': 4121 return localize.day(dayOfWeek, { 4122 width: 'abbreviated', 4123 context: 'formatting' 4124 }); 4125 // T 4126 4127 case 'eeeee': 4128 return localize.day(dayOfWeek, { 4129 width: 'narrow', 4130 context: 'formatting' 4131 }); 4132 // Tu 4133 4134 case 'eeeeee': 4135 return localize.day(dayOfWeek, { 4136 width: 'short', 4137 context: 'formatting' 4138 }); 4139 // Tuesday 4140 4141 case 'eeee': 4142 default: 4143 return localize.day(dayOfWeek, { 4144 width: 'wide', 4145 context: 'formatting' 4146 }); 4147 } 4148 }, 4149 // Stand-alone local day of week 4150 c: function c(date, token, localize, options) { 4151 var dayOfWeek = date.getUTCDay(); 4152 var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7; 4153 4154 switch (token) { 4155 // Numerical value (same as in `e`) 4156 case 'c': 4157 return String(localDayOfWeek); 4158 // Padded numerical value 4159 4160 case 'cc': 4161 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(localDayOfWeek, token.length); 4162 // 1st, 2nd, ..., 7th 4163 4164 case 'co': 4165 return localize.ordinalNumber(localDayOfWeek, { 4166 unit: 'day' 4167 }); 4168 4169 case 'ccc': 4170 return localize.day(dayOfWeek, { 4171 width: 'abbreviated', 4172 context: 'standalone' 4173 }); 4174 // T 4175 4176 case 'ccccc': 4177 return localize.day(dayOfWeek, { 4178 width: 'narrow', 4179 context: 'standalone' 4180 }); 4181 // Tu 4182 4183 case 'cccccc': 4184 return localize.day(dayOfWeek, { 4185 width: 'short', 4186 context: 'standalone' 4187 }); 4188 // Tuesday 4189 4190 case 'cccc': 4191 default: 4192 return localize.day(dayOfWeek, { 4193 width: 'wide', 4194 context: 'standalone' 4195 }); 4196 } 4197 }, 4198 // ISO day of week 4199 i: function i(date, token, localize) { 4200 var dayOfWeek = date.getUTCDay(); 4201 var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek; 4202 4203 switch (token) { 4204 // 2 4205 case 'i': 4206 return String(isoDayOfWeek); 4207 // 02 4208 4209 case 'ii': 4210 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(isoDayOfWeek, token.length); 4211 // 2nd 4212 4213 case 'io': 4214 return localize.ordinalNumber(isoDayOfWeek, { 4215 unit: 'day' 4216 }); 4217 // Tue 4218 4219 case 'iii': 4220 return localize.day(dayOfWeek, { 4221 width: 'abbreviated', 4222 context: 'formatting' 4223 }); 4224 // T 4225 4226 case 'iiiii': 4227 return localize.day(dayOfWeek, { 4228 width: 'narrow', 4229 context: 'formatting' 4230 }); 4231 // Tu 4232 4233 case 'iiiiii': 4234 return localize.day(dayOfWeek, { 4235 width: 'short', 4236 context: 'formatting' 4237 }); 4238 // Tuesday 4239 4240 case 'iiii': 4241 default: 4242 return localize.day(dayOfWeek, { 4243 width: 'wide', 4244 context: 'formatting' 4245 }); 4246 } 4247 }, 4248 // AM or PM 4249 a: function a(date, token, localize) { 4250 var hours = date.getUTCHours(); 4251 var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; 4252 4253 switch (token) { 4254 case 'a': 4255 case 'aa': 4256 return localize.dayPeriod(dayPeriodEnumValue, { 4257 width: 'abbreviated', 4258 context: 'formatting' 4259 }); 4260 4261 case 'aaa': 4262 return localize.dayPeriod(dayPeriodEnumValue, { 4263 width: 'abbreviated', 4264 context: 'formatting' 4265 }).toLowerCase(); 4266 4267 case 'aaaaa': 4268 return localize.dayPeriod(dayPeriodEnumValue, { 4269 width: 'narrow', 4270 context: 'formatting' 4271 }); 4272 4273 case 'aaaa': 4274 default: 4275 return localize.dayPeriod(dayPeriodEnumValue, { 4276 width: 'wide', 4277 context: 'formatting' 4278 }); 4279 } 4280 }, 4281 // AM, PM, midnight, noon 4282 b: function b(date, token, localize) { 4283 var hours = date.getUTCHours(); 4284 var dayPeriodEnumValue; 4285 4286 if (hours === 12) { 4287 dayPeriodEnumValue = dayPeriodEnum.noon; 4288 } else if (hours === 0) { 4289 dayPeriodEnumValue = dayPeriodEnum.midnight; 4290 } else { 4291 dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am'; 4292 } 4293 4294 switch (token) { 4295 case 'b': 4296 case 'bb': 4297 return localize.dayPeriod(dayPeriodEnumValue, { 4298 width: 'abbreviated', 4299 context: 'formatting' 4300 }); 4301 4302 case 'bbb': 4303 return localize.dayPeriod(dayPeriodEnumValue, { 4304 width: 'abbreviated', 4305 context: 'formatting' 4306 }).toLowerCase(); 4307 4308 case 'bbbbb': 4309 return localize.dayPeriod(dayPeriodEnumValue, { 4310 width: 'narrow', 4311 context: 'formatting' 4312 }); 4313 4314 case 'bbbb': 4315 default: 4316 return localize.dayPeriod(dayPeriodEnumValue, { 4317 width: 'wide', 4318 context: 'formatting' 4319 }); 4320 } 4321 }, 4322 // in the morning, in the afternoon, in the evening, at night 4323 B: function B(date, token, localize) { 4324 var hours = date.getUTCHours(); 4325 var dayPeriodEnumValue; 4326 4327 if (hours >= 17) { 4328 dayPeriodEnumValue = dayPeriodEnum.evening; 4329 } else if (hours >= 12) { 4330 dayPeriodEnumValue = dayPeriodEnum.afternoon; 4331 } else if (hours >= 4) { 4332 dayPeriodEnumValue = dayPeriodEnum.morning; 4333 } else { 4334 dayPeriodEnumValue = dayPeriodEnum.night; 4335 } 4336 4337 switch (token) { 4338 case 'B': 4339 case 'BB': 4340 case 'BBB': 4341 return localize.dayPeriod(dayPeriodEnumValue, { 4342 width: 'abbreviated', 4343 context: 'formatting' 4344 }); 4345 4346 case 'BBBBB': 4347 return localize.dayPeriod(dayPeriodEnumValue, { 4348 width: 'narrow', 4349 context: 'formatting' 4350 }); 4351 4352 case 'BBBB': 4353 default: 4354 return localize.dayPeriod(dayPeriodEnumValue, { 4355 width: 'wide', 4356 context: 'formatting' 4357 }); 4358 } 4359 }, 4360 // Hour [1-12] 4361 h: function h(date, token, localize) { 4362 if (token === 'ho') { 4363 var hours = date.getUTCHours() % 12; 4364 if (hours === 0) hours = 12; 4365 return localize.ordinalNumber(hours, { 4366 unit: 'hour' 4367 }); 4368 } 4369 4370 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].h(date, token); 4371 }, 4372 // Hour [0-23] 4373 H: function H(date, token, localize) { 4374 if (token === 'Ho') { 4375 return localize.ordinalNumber(date.getUTCHours(), { 4376 unit: 'hour' 4377 }); 4378 } 4379 4380 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].H(date, token); 4381 }, 4382 // Hour [0-11] 4383 K: function K(date, token, localize) { 4384 var hours = date.getUTCHours() % 12; 4385 4386 if (token === 'Ko') { 4387 return localize.ordinalNumber(hours, { 4388 unit: 'hour' 4389 }); 4390 } 4391 4392 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(hours, token.length); 4393 }, 4394 // Hour [1-24] 4395 k: function k(date, token, localize) { 4396 var hours = date.getUTCHours(); 4397 if (hours === 0) hours = 24; 4398 4399 if (token === 'ko') { 4400 return localize.ordinalNumber(hours, { 4401 unit: 'hour' 4402 }); 4403 } 4404 4405 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(hours, token.length); 4406 }, 4407 // Minute 4408 m: function m(date, token, localize) { 4409 if (token === 'mo') { 4410 return localize.ordinalNumber(date.getUTCMinutes(), { 4411 unit: 'minute' 4412 }); 4413 } 4414 4415 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].m(date, token); 4416 }, 4417 // Second 4418 s: function s(date, token, localize) { 4419 if (token === 'so') { 4420 return localize.ordinalNumber(date.getUTCSeconds(), { 4421 unit: 'second' 4422 }); 4423 } 4424 4425 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].s(date, token); 4426 }, 4427 // Fraction of second 4428 S: function S(date, token) { 4429 return _lightFormatters_index_js__WEBPACK_IMPORTED_MODULE_6__["default"].S(date, token); 4430 }, 4431 // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) 4432 X: function X(date, token, _localize, options) { 4433 var originalDate = options._originalDate || date; 4434 var timezoneOffset = originalDate.getTimezoneOffset(); 4435 4436 if (timezoneOffset === 0) { 4437 return 'Z'; 4438 } 4439 4440 switch (token) { 4441 // Hours and optional minutes 4442 case 'X': 4443 return formatTimezoneWithOptionalMinutes(timezoneOffset); 4444 // Hours, minutes and optional seconds without `:` delimiter 4445 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 4446 // so this token always has the same output as `XX` 4447 4448 case 'XXXX': 4449 case 'XX': 4450 // Hours and minutes without `:` delimiter 4451 return formatTimezone(timezoneOffset); 4452 // Hours, minutes and optional seconds with `:` delimiter 4453 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 4454 // so this token always has the same output as `XXX` 4455 4456 case 'XXXXX': 4457 case 'XXX': // Hours and minutes with `:` delimiter 4458 4459 default: 4460 return formatTimezone(timezoneOffset, ':'); 4461 } 4462 }, 4463 // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) 4464 x: function x(date, token, _localize, options) { 4465 var originalDate = options._originalDate || date; 4466 var timezoneOffset = originalDate.getTimezoneOffset(); 4467 4468 switch (token) { 4469 // Hours and optional minutes 4470 case 'x': 4471 return formatTimezoneWithOptionalMinutes(timezoneOffset); 4472 // Hours, minutes and optional seconds without `:` delimiter 4473 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 4474 // so this token always has the same output as `xx` 4475 4476 case 'xxxx': 4477 case 'xx': 4478 // Hours and minutes without `:` delimiter 4479 return formatTimezone(timezoneOffset); 4480 // Hours, minutes and optional seconds with `:` delimiter 4481 // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets 4482 // so this token always has the same output as `xxx` 4483 4484 case 'xxxxx': 4485 case 'xxx': // Hours and minutes with `:` delimiter 4486 4487 default: 4488 return formatTimezone(timezoneOffset, ':'); 4489 } 4490 }, 4491 // Timezone (GMT) 4492 O: function O(date, token, _localize, options) { 4493 var originalDate = options._originalDate || date; 4494 var timezoneOffset = originalDate.getTimezoneOffset(); 4495 4496 switch (token) { 4497 // Short 4498 case 'O': 4499 case 'OO': 4500 case 'OOO': 4501 return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); 4502 // Long 4503 4504 case 'OOOO': 4505 default: 4506 return 'GMT' + formatTimezone(timezoneOffset, ':'); 4507 } 4508 }, 4509 // Timezone (specific non-location) 4510 z: function z(date, token, _localize, options) { 4511 var originalDate = options._originalDate || date; 4512 var timezoneOffset = originalDate.getTimezoneOffset(); 4513 4514 switch (token) { 4515 // Short 4516 case 'z': 4517 case 'zz': 4518 case 'zzz': 4519 return 'GMT' + formatTimezoneShort(timezoneOffset, ':'); 4520 // Long 4521 4522 case 'zzzz': 4523 default: 4524 return 'GMT' + formatTimezone(timezoneOffset, ':'); 4525 } 4526 }, 4527 // Seconds timestamp 4528 t: function t(date, token, _localize, options) { 4529 var originalDate = options._originalDate || date; 4530 var timestamp = Math.floor(originalDate.getTime() / 1000); 4531 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(timestamp, token.length); 4532 }, 4533 // Milliseconds timestamp 4534 T: function T(date, token, _localize, options) { 4535 var originalDate = options._originalDate || date; 4536 var timestamp = originalDate.getTime(); 4537 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(timestamp, token.length); 4538 } 4539}; 4540 4541function formatTimezoneShort(offset, dirtyDelimiter) { 4542 var sign = offset > 0 ? '-' : '+'; 4543 var absOffset = Math.abs(offset); 4544 var hours = Math.floor(absOffset / 60); 4545 var minutes = absOffset % 60; 4546 4547 if (minutes === 0) { 4548 return sign + String(hours); 4549 } 4550 4551 var delimiter = dirtyDelimiter || ''; 4552 return sign + String(hours) + delimiter + Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(minutes, 2); 4553} 4554 4555function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) { 4556 if (offset % 60 === 0) { 4557 var sign = offset > 0 ? '-' : '+'; 4558 return sign + Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(Math.abs(offset) / 60, 2); 4559 } 4560 4561 return formatTimezone(offset, dirtyDelimiter); 4562} 4563 4564function formatTimezone(offset, dirtyDelimiter) { 4565 var delimiter = dirtyDelimiter || ''; 4566 var sign = offset > 0 ? '-' : '+'; 4567 var absOffset = Math.abs(offset); 4568 var hours = Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(Math.floor(absOffset / 60), 2); 4569 var minutes = Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(absOffset % 60, 2); 4570 return sign + hours + delimiter + minutes; 4571} 4572 4573/* harmony default export */ __webpack_exports__["default"] = (formatters); 4574 4575/***/ }), 4576
vendor: 4,256 bytes, lines 4577-4673
4577/***/ "./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js": 4578/*!************************************************************************!*\ 4579 !*** ./node_modules/date-fns/esm/_lib/format/lightFormatters/index.js ***! 4580 \************************************************************************/ 4581/*! exports provided: default */ 4582/***/ (function(module, __webpack_exports__, __webpack_require__) { 4583 4584"use strict"; 4585__webpack_require__.r(__webpack_exports__); 4586/* harmony import */ var _addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../addLeadingZeros/index.js */ "./node_modules/date-fns/esm/_lib/addLeadingZeros/index.js"); 4587 4588/* 4589 * | | Unit | | Unit | 4590 * |-----|--------------------------------|-----|--------------------------------| 4591 * | a | AM, PM | A* | | 4592 * | d | Day of month | D | | 4593 * | h | Hour [1-12] | H | Hour [0-23] | 4594 * | m | Minute | M | Month | 4595 * | s | Second | S | Fraction of second | 4596 * | y | Year (abs) | Y | | 4597 * 4598 * Letters marked by * are not implemented but reserved by Unicode standard. 4599 */ 4600 4601var formatters = { 4602 // Year 4603 y: function y(date, token) { 4604 // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens 4605 // | Year | y | yy | yyy | yyyy | yyyyy | 4606 // |----------|-------|----|-------|-------|-------| 4607 // | AD 1 | 1 | 01 | 001 | 0001 | 00001 | 4608 // | AD 12 | 12 | 12 | 012 | 0012 | 00012 | 4609 // | AD 123 | 123 | 23 | 123 | 0123 | 00123 | 4610 // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | 4611 // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | 4612 var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript) 4613 4614 var year = signedYear > 0 ? signedYear : 1 - signedYear; 4615 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(token === 'yy' ? year % 100 : year, token.length); 4616 }, 4617 // Month 4618 M: function M(date, token) { 4619 var month = date.getUTCMonth(); 4620 return token === 'M' ? String(month + 1) : Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(month + 1, 2); 4621 }, 4622 // Day of the month 4623 d: function d(date, token) { 4624 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCDate(), token.length); 4625 }, 4626 // AM or PM 4627 a: function a(date, token) { 4628 var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am'; 4629 4630 switch (token) { 4631 case 'a': 4632 case 'aa': 4633 return dayPeriodEnumValue.toUpperCase(); 4634 4635 case 'aaa': 4636 return dayPeriodEnumValue; 4637 4638 case 'aaaaa': 4639 return dayPeriodEnumValue[0]; 4640 4641 case 'aaaa': 4642 default: 4643 return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.'; 4644 } 4645 }, 4646 // Hour [1-12] 4647 h: function h(date, token) { 4648 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCHours() % 12 || 12, token.length); 4649 }, 4650 // Hour [0-23] 4651 H: function H(date, token) { 4652 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCHours(), token.length); 4653 }, 4654 // Minute 4655 m: function m(date, token) { 4656 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCMinutes(), token.length); 4657 }, 4658 // Second 4659 s: function s(date, token) { 4660 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(date.getUTCSeconds(), token.length); 4661 }, 4662 // Fraction of second 4663 S: function S(date, token) { 4664 var numberOfDigits = token.length; 4665 var milliseconds = date.getUTCMilliseconds(); 4666 var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3)); 4667 return Object(_addLeadingZeros_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(fractionalSeconds, token.length); 4668 } 4669}; 4670/* harmony default export */ __webpack_exports__["default"] = (formatters); 4671 4672/***/ }), 4673
vendor: 2,442 bytes, lines 4674-4781
4674/***/ "./node_modules/date-fns/esm/_lib/format/longFormatters/index.js": 4675/*!***********************************************************************!*\ 4676 !*** ./node_modules/date-fns/esm/_lib/format/longFormatters/index.js ***! 4677 \***********************************************************************/ 4678/*! exports provided: default */ 4679/***/ (function(module, __webpack_exports__, __webpack_require__) { 4680 4681"use strict"; 4682__webpack_require__.r(__webpack_exports__); 4683var dateLongFormatter = function dateLongFormatter(pattern, formatLong) { 4684 switch (pattern) { 4685 case 'P': 4686 return formatLong.date({ 4687 width: 'short' 4688 }); 4689 4690 case 'PP': 4691 return formatLong.date({ 4692 width: 'medium' 4693 }); 4694 4695 case 'PPP': 4696 return formatLong.date({ 4697 width: 'long' 4698 }); 4699 4700 case 'PPPP': 4701 default: 4702 return formatLong.date({ 4703 width: 'full' 4704 }); 4705 } 4706}; 4707 4708var timeLongFormatter = function timeLongFormatter(pattern, formatLong) { 4709 switch (pattern) { 4710 case 'p': 4711 return formatLong.time({ 4712 width: 'short' 4713 }); 4714 4715 case 'pp': 4716 return formatLong.time({ 4717 width: 'medium' 4718 }); 4719 4720 case 'ppp': 4721 return formatLong.time({ 4722 width: 'long' 4723 }); 4724 4725 case 'pppp': 4726 default: 4727 return formatLong.time({ 4728 width: 'full' 4729 }); 4730 } 4731}; 4732 4733var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) { 4734 var matchResult = pattern.match(/(P+)(p+)?/) || []; 4735 var datePattern = matchResult[1]; 4736 var timePattern = matchResult[2]; 4737 4738 if (!timePattern) { 4739 return dateLongFormatter(pattern, formatLong); 4740 } 4741 4742 var dateTimeFormat; 4743 4744 switch (datePattern) { 4745 case 'P': 4746 dateTimeFormat = formatLong.dateTime({ 4747 width: 'short' 4748 }); 4749 break; 4750 4751 case 'PP': 4752 dateTimeFormat = formatLong.dateTime({ 4753 width: 'medium' 4754 }); 4755 break; 4756 4757 case 'PPP': 4758 dateTimeFormat = formatLong.dateTime({ 4759 width: 'long' 4760 }); 4761 break; 4762 4763 case 'PPPP': 4764 default: 4765 dateTimeFormat = formatLong.dateTime({ 4766 width: 'full' 4767 }); 4768 break; 4769 } 4770 4771 return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong)); 4772}; 4773 4774var longFormatters = { 4775 p: timeLongFormatter, 4776 P: dateTimeLongFormatter 4777}; 4778/* harmony default export */ __webpack_exports__["default"] = (longFormatters); 4779 4780/***/ }), 4781
vendor: 1,522 bytes, lines 4782-4810
4782/***/ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js": 4783/*!*********************************************************************************!*\ 4784 !*** ./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js ***! 4785 \*********************************************************************************/ 4786/*! exports provided: default */ 4787/***/ (function(module, __webpack_exports__, __webpack_require__) { 4788 4789"use strict"; 4790__webpack_require__.r(__webpack_exports__); 4791/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getTimezoneOffsetInMilliseconds; }); 4792/** 4793 * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds. 4794 * They usually appear for dates that denote time before the timezones were introduced 4795 * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891 4796 * and GMT+01:00:00 after that date) 4797 * 4798 * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above, 4799 * which would lead to incorrect calculations. 4800 * 4801 * This function returns the timezone offset in milliseconds that takes seconds in account. 4802 */ 4803function getTimezoneOffsetInMilliseconds(date) { 4804 var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds())); 4805 utcDate.setUTCFullYear(date.getFullYear()); 4806 return date.getTime() - utcDate.getTime(); 4807} 4808 4809/***/ }), 4810
vendor: 1,442 bytes, lines 4811-4838
4811/***/ "./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js": 4812/*!*****************************************************************!*\ 4813 !*** ./node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js ***! 4814 \*****************************************************************/ 4815/*! exports provided: default */ 4816/***/ (function(module, __webpack_exports__, __webpack_require__) { 4817 4818"use strict"; 4819__webpack_require__.r(__webpack_exports__); 4820/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getUTCDayOfYear; }); 4821/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 4822/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 4823 4824 4825var MILLISECONDS_IN_DAY = 86400000; 4826function getUTCDayOfYear(dirtyDate) { 4827 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 4828 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 4829 var timestamp = date.getTime(); 4830 date.setUTCMonth(0, 1); 4831 date.setUTCHours(0, 0, 0, 0); 4832 var startOfYearTimestamp = date.getTime(); 4833 var difference = timestamp - startOfYearTimestamp; 4834 return Math.floor(difference / MILLISECONDS_IN_DAY) + 1; 4835} 4836 4837/***/ }), 4838
vendor: 2,062 bytes, lines 4839-4869
4839/***/ "./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js": 4840/*!***************************************************************!*\ 4841 !*** ./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js ***! 4842 \***************************************************************/ 4843/*! exports provided: default */ 4844/***/ (function(module, __webpack_exports__, __webpack_require__) { 4845 4846"use strict"; 4847__webpack_require__.r(__webpack_exports__); 4848/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getUTCISOWeek; }); 4849/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 4850/* harmony import */ var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 4851/* harmony import */ var _startOfUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCISOWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js"); 4852/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 4853 4854 4855 4856 4857var MILLISECONDS_IN_WEEK = 604800000; 4858function getUTCISOWeek(dirtyDate) { 4859 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments); 4860 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 4861 var diff = Object(_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date).getTime() - Object(_startOfUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date).getTime(); // Round the number of days to the nearest integer 4862 // because the number of milliseconds in a week is not constant 4863 // (e.g. it's different in the week of the daylight saving time clock shift) 4864 4865 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 4866} 4867 4868/***/ }), 4869
vendor: 2,171 bytes, lines 4870-4909
4870/***/ "./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js": 4871/*!*******************************************************************!*\ 4872 !*** ./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js ***! 4873 \*******************************************************************/ 4874/*! exports provided: default */ 4875/***/ (function(module, __webpack_exports__, __webpack_require__) { 4876 4877"use strict"; 4878__webpack_require__.r(__webpack_exports__); 4879/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getUTCISOWeekYear; }); 4880/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 4881/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 4882/* harmony import */ var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 4883 4884 4885 4886function getUTCISOWeekYear(dirtyDate) { 4887 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 4888 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 4889 var year = date.getUTCFullYear(); 4890 var fourthOfJanuaryOfNextYear = new Date(0); 4891 fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4); 4892 fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0); 4893 var startOfNextYear = Object(_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fourthOfJanuaryOfNextYear); 4894 var fourthOfJanuaryOfThisYear = new Date(0); 4895 fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4); 4896 fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0); 4897 var startOfThisYear = Object(_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(fourthOfJanuaryOfThisYear); 4898 4899 if (date.getTime() >= startOfNextYear.getTime()) { 4900 return year + 1; 4901 } else if (date.getTime() >= startOfThisYear.getTime()) { 4902 return year; 4903 } else { 4904 return year - 1; 4905 } 4906} 4907 4908/***/ }), 4909
vendor: 2,047 bytes, lines 4910-4940
4910/***/ "./node_modules/date-fns/esm/_lib/getUTCWeek/index.js": 4911/*!************************************************************!*\ 4912 !*** ./node_modules/date-fns/esm/_lib/getUTCWeek/index.js ***! 4913 \************************************************************/ 4914/*! exports provided: default */ 4915/***/ (function(module, __webpack_exports__, __webpack_require__) { 4916 4917"use strict"; 4918__webpack_require__.r(__webpack_exports__); 4919/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getUTCWeek; }); 4920/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 4921/* harmony import */ var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 4922/* harmony import */ var _startOfUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js"); 4923/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 4924 4925 4926 4927 4928var MILLISECONDS_IN_WEEK = 604800000; 4929function getUTCWeek(dirtyDate, options) { 4930 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments); 4931 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 4932 var diff = Object(_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, options).getTime() - Object(_startOfUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, options).getTime(); // Round the number of days to the nearest integer 4933 // because the number of milliseconds in a week is not constant 4934 // (e.g. it's different in the week of the daylight saving time clock shift) 4935 4936 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 4937} 4938 4939/***/ }), 4940
vendor: 4,012 bytes, lines 4941-4993
4941/***/ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js": 4942/*!****************************************************************!*\ 4943 !*** ./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js ***! 4944 \****************************************************************/ 4945/*! exports provided: default */ 4946/***/ (function(module, __webpack_exports__, __webpack_require__) { 4947 4948"use strict"; 4949__webpack_require__.r(__webpack_exports__); 4950/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getUTCWeekYear; }); 4951/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 4952/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 4953/* harmony import */ var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 4954/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 4955/* harmony import */ var _defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 4956 4957 4958 4959 4960 4961function getUTCWeekYear(dirtyDate, options) { 4962 var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 4963 4964 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 4965 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 4966 var year = date.getUTCFullYear(); 4967 var defaultOptions = Object(_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_4__["getDefaultOptions"])(); 4968 var firstWeekContainsDate = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 4969 4970 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 4971 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 4972 } 4973 4974 var firstWeekOfNextYear = new Date(0); 4975 firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate); 4976 firstWeekOfNextYear.setUTCHours(0, 0, 0, 0); 4977 var startOfNextYear = Object(_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(firstWeekOfNextYear, options); 4978 var firstWeekOfThisYear = new Date(0); 4979 firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate); 4980 firstWeekOfThisYear.setUTCHours(0, 0, 0, 0); 4981 var startOfThisYear = Object(_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(firstWeekOfThisYear, options); 4982 4983 if (date.getTime() >= startOfNextYear.getTime()) { 4984 return year + 1; 4985 } else if (date.getTime() >= startOfThisYear.getTime()) { 4986 return year; 4987 } else { 4988 return year - 1; 4989 } 4990} 4991 4992/***/ }), 4993
vendor: 2,313 bytes, lines 4994-5027
4994/***/ "./node_modules/date-fns/esm/_lib/protectedTokens/index.js": 4995/*!*****************************************************************!*\ 4996 !*** ./node_modules/date-fns/esm/_lib/protectedTokens/index.js ***! 4997 \*****************************************************************/ 4998/*! exports provided: isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError */ 4999/***/ (function(module, __webpack_exports__, __webpack_require__) { 5000 5001"use strict"; 5002__webpack_require__.r(__webpack_exports__); 5003/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isProtectedDayOfYearToken", function() { return isProtectedDayOfYearToken; }); 5004/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isProtectedWeekYearToken", function() { return isProtectedWeekYearToken; }); 5005/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throwProtectedError", function() { return throwProtectedError; }); 5006var protectedDayOfYearTokens = ['D', 'DD']; 5007var protectedWeekYearTokens = ['YY', 'YYYY']; 5008function isProtectedDayOfYearToken(token) { 5009 return protectedDayOfYearTokens.indexOf(token) !== -1; 5010} 5011function isProtectedWeekYearToken(token) { 5012 return protectedWeekYearTokens.indexOf(token) !== -1; 5013} 5014function throwProtectedError(token, format, input) { 5015 if (token === 'YYYY') { 5016 throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); 5017 } else if (token === 'YY') { 5018 throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); 5019 } else if (token === 'D') { 5020 throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); 5021 } else if (token === 'DD') { 5022 throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")); 5023 } 5024} 5025 5026/***/ }), 5027
vendor: 769 bytes, lines 5028-5045
5028/***/ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js": 5029/*!**************************************************************!*\ 5030 !*** ./node_modules/date-fns/esm/_lib/requiredArgs/index.js ***! 5031 \**************************************************************/ 5032/*! exports provided: default */ 5033/***/ (function(module, __webpack_exports__, __webpack_require__) { 5034 5035"use strict"; 5036__webpack_require__.r(__webpack_exports__); 5037/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return requiredArgs; }); 5038function requiredArgs(required, args) { 5039 if (args.length < required) { 5040 throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present'); 5041 } 5042} 5043 5044/***/ }), 5045
vendor: 3,243 bytes, lines 5046-5086
5046/***/ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js": 5047/*!***********************************************************!*\ 5048 !*** ./node_modules/date-fns/esm/_lib/setUTCDay/index.js ***! 5049 \***********************************************************/ 5050/*! exports provided: default */ 5051/***/ (function(module, __webpack_exports__, __webpack_require__) { 5052 5053"use strict"; 5054__webpack_require__.r(__webpack_exports__); 5055/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setUTCDay; }); 5056/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 5057/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5058/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5059/* harmony import */ var _defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 5060 5061 5062 5063 5064function setUTCDay(dirtyDate, dirtyDay, options) { 5065 var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 5066 5067 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 5068 var defaultOptions = Object(_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_3__["getDefaultOptions"])(); 5069 var weekStartsOn = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 5070 5071 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 5072 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 5073 } 5074 5075 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 5076 var day = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDay); 5077 var currentDay = date.getUTCDay(); 5078 var remainder = day % 7; 5079 var dayIndex = (remainder + 7) % 7; 5080 var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; 5081 date.setUTCDate(date.getUTCDate() + diff); 5082 return date; 5083} 5084 5085/***/ }), 5086
vendor: 1,723 bytes, lines 5087-5122
5087/***/ "./node_modules/date-fns/esm/_lib/setUTCISODay/index.js": 5088/*!**************************************************************!*\ 5089 !*** ./node_modules/date-fns/esm/_lib/setUTCISODay/index.js ***! 5090 \**************************************************************/ 5091/*! exports provided: default */ 5092/***/ (function(module, __webpack_exports__, __webpack_require__) { 5093 5094"use strict"; 5095__webpack_require__.r(__webpack_exports__); 5096/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setUTCISODay; }); 5097/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 5098/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5099/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5100 5101 5102 5103function setUTCISODay(dirtyDate, dirtyDay) { 5104 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 5105 var day = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDay); 5106 5107 if (day % 7 === 0) { 5108 day = day - 7; 5109 } 5110 5111 var weekStartsOn = 1; 5112 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 5113 var currentDay = date.getUTCDay(); 5114 var remainder = day % 7; 5115 var dayIndex = (remainder + 7) % 7; 5116 var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay; 5117 date.setUTCDate(date.getUTCDate() + diff); 5118 return date; 5119} 5120 5121/***/ }), 5122
vendor: 1,800 bytes, lines 5123-5151
5123/***/ "./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js": 5124/*!***************************************************************!*\ 5125 !*** ./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js ***! 5126 \***************************************************************/ 5127/*! exports provided: default */ 5128/***/ (function(module, __webpack_exports__, __webpack_require__) { 5129 5130"use strict"; 5131__webpack_require__.r(__webpack_exports__); 5132/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setUTCISOWeek; }); 5133/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5134/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 5135/* harmony import */ var _getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../getUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js"); 5136/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5137 5138 5139 5140 5141function setUTCISOWeek(dirtyDate, dirtyISOWeek) { 5142 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments); 5143 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 5144 var isoWeek = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyISOWeek); 5145 var diff = Object(_getUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date) - isoWeek; 5146 date.setUTCDate(date.getUTCDate() - diff * 7); 5147 return date; 5148} 5149 5150/***/ }), 5151
vendor: 1,776 bytes, lines 5152-5180
5152/***/ "./node_modules/date-fns/esm/_lib/setUTCWeek/index.js": 5153/*!************************************************************!*\ 5154 !*** ./node_modules/date-fns/esm/_lib/setUTCWeek/index.js ***! 5155 \************************************************************/ 5156/*! exports provided: default */ 5157/***/ (function(module, __webpack_exports__, __webpack_require__) { 5158 5159"use strict"; 5160__webpack_require__.r(__webpack_exports__); 5161/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setUTCWeek; }); 5162/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5163/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 5164/* harmony import */ var _getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../getUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeek/index.js"); 5165/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5166 5167 5168 5169 5170function setUTCWeek(dirtyDate, dirtyWeek, options) { 5171 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments); 5172 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 5173 var week = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyWeek); 5174 var diff = Object(_getUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, options) - week; 5175 date.setUTCDate(date.getUTCDate() - diff * 7); 5176 return date; 5177} 5178 5179/***/ }), 5180
vendor: 1,379 bytes, lines 5181-5207
5181/***/ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js": 5182/*!*******************************************************************!*\ 5183 !*** ./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js ***! 5184 \*******************************************************************/ 5185/*! exports provided: default */ 5186/***/ (function(module, __webpack_exports__, __webpack_require__) { 5187 5188"use strict"; 5189__webpack_require__.r(__webpack_exports__); 5190/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfUTCISOWeek; }); 5191/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 5192/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5193 5194 5195function startOfUTCISOWeek(dirtyDate) { 5196 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 5197 var weekStartsOn = 1; 5198 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 5199 var day = date.getUTCDay(); 5200 var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 5201 date.setUTCDate(date.getUTCDate() - diff); 5202 date.setUTCHours(0, 0, 0, 0); 5203 return date; 5204} 5205 5206/***/ }), 5207
vendor: 1,693 bytes, lines 5208-5235
5208/***/ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js": 5209/*!***********************************************************************!*\ 5210 !*** ./node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js ***! 5211 \***********************************************************************/ 5212/*! exports provided: default */ 5213/***/ (function(module, __webpack_exports__, __webpack_require__) { 5214 5215"use strict"; 5216__webpack_require__.r(__webpack_exports__); 5217/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfUTCISOWeekYear; }); 5218/* harmony import */ var _getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../getUTCISOWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js"); 5219/* harmony import */ var _startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 5220/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5221 5222 5223 5224function startOfUTCISOWeekYear(dirtyDate) { 5225 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments); 5226 var year = Object(_getUTCISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 5227 var fourthOfJanuary = new Date(0); 5228 fourthOfJanuary.setUTCFullYear(year, 0, 4); 5229 fourthOfJanuary.setUTCHours(0, 0, 0, 0); 5230 var date = Object(_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuary); 5231 return date; 5232} 5233 5234/***/ }), 5235
vendor: 3,129 bytes, lines 5236-5274
5236/***/ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js": 5237/*!****************************************************************!*\ 5238 !*** ./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js ***! 5239 \****************************************************************/ 5240/*! exports provided: default */ 5241/***/ (function(module, __webpack_exports__, __webpack_require__) { 5242 5243"use strict"; 5244__webpack_require__.r(__webpack_exports__); 5245/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfUTCWeek; }); 5246/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 5247/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5248/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5249/* harmony import */ var _defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 5250 5251 5252 5253 5254function startOfUTCWeek(dirtyDate, options) { 5255 var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 5256 5257 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 5258 var defaultOptions = Object(_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_3__["getDefaultOptions"])(); 5259 var weekStartsOn = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 5260 5261 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 5262 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 5263 } 5264 5265 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 5266 var day = date.getUTCDay(); 5267 var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 5268 date.setUTCDate(date.getUTCDate() - diff); 5269 date.setUTCHours(0, 0, 0, 0); 5270 return date; 5271} 5272 5273/***/ }), 5274
vendor: 3,307 bytes, lines 5275-5310
5275/***/ "./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js": 5276/*!********************************************************************!*\ 5277 !*** ./node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js ***! 5278 \********************************************************************/ 5279/*! exports provided: default */ 5280/***/ (function(module, __webpack_exports__, __webpack_require__) { 5281 5282"use strict"; 5283__webpack_require__.r(__webpack_exports__); 5284/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfUTCWeekYear; }); 5285/* harmony import */ var _getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../getUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js"); 5286/* harmony import */ var _requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5287/* harmony import */ var _startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 5288/* harmony import */ var _toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5289/* harmony import */ var _defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 5290 5291 5292 5293 5294 5295function startOfUTCWeekYear(dirtyDate, options) { 5296 var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 5297 5298 Object(_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 5299 var defaultOptions = Object(_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_4__["getDefaultOptions"])(); 5300 var firstWeekContainsDate = Object(_toInteger_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); 5301 var year = Object(_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, options); 5302 var firstWeek = new Date(0); 5303 firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate); 5304 firstWeek.setUTCHours(0, 0, 0, 0); 5305 var date = Object(_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(firstWeek, options); 5306 return date; 5307} 5308 5309/***/ }), 5310
vendor: 829 bytes, lines 5311-5336
5311/***/ "./node_modules/date-fns/esm/_lib/toInteger/index.js": 5312/*!***********************************************************!*\ 5313 !*** ./node_modules/date-fns/esm/_lib/toInteger/index.js ***! 5314 \***********************************************************/ 5315/*! exports provided: default */ 5316/***/ (function(module, __webpack_exports__, __webpack_require__) { 5317 5318"use strict"; 5319__webpack_require__.r(__webpack_exports__); 5320/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return toInteger; }); 5321function toInteger(dirtyNumber) { 5322 if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) { 5323 return NaN; 5324 } 5325 5326 var number = Number(dirtyNumber); 5327 5328 if (isNaN(number)) { 5329 return number; 5330 } 5331 5332 return number < 0 ? Math.ceil(number) : Math.floor(number); 5333} 5334 5335/***/ }), 5336
vendor: 2,290 bytes, lines 5337-5391
5337/***/ "./node_modules/date-fns/esm/addDays/index.js": 5338/*!****************************************************!*\ 5339 !*** ./node_modules/date-fns/esm/addDays/index.js ***! 5340 \****************************************************/ 5341/*! exports provided: default */ 5342/***/ (function(module, __webpack_exports__, __webpack_require__) { 5343 5344"use strict"; 5345__webpack_require__.r(__webpack_exports__); 5346/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addDays; }); 5347/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5348/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 5349/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5350 5351 5352 5353/** 5354 * @name addDays 5355 * @category Day Helpers 5356 * @summary Add the specified number of days to the given date. 5357 * 5358 * @description 5359 * Add the specified number of days to the given date. 5360 * 5361 * @param {Date|Number} date - the date to be changed 5362 * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 5363 * @returns {Date} - the new date with the days added 5364 * @throws {TypeError} - 2 arguments required 5365 * 5366 * @example 5367 * // Add 10 days to 1 September 2014: 5368 * const result = addDays(new Date(2014, 8, 1), 10) 5369 * //=> Thu Sep 11 2014 00:00:00 5370 */ 5371 5372function addDays(dirtyDate, dirtyAmount) { 5373 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 5374 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 5375 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 5376 5377 if (isNaN(amount)) { 5378 return new Date(NaN); 5379 } 5380 5381 if (!amount) { 5382 // If 0 days, no-op to avoid changing times in the hour before end of DST 5383 return date; 5384 } 5385 5386 date.setDate(date.getDate() + amount); 5387 return date; 5388} 5389 5390/***/ }), 5391
vendor: 2,182 bytes, lines 5392-5435
5392/***/ "./node_modules/date-fns/esm/addHours/index.js": 5393/*!*****************************************************!*\ 5394 !*** ./node_modules/date-fns/esm/addHours/index.js ***! 5395 \*****************************************************/ 5396/*! exports provided: default */ 5397/***/ (function(module, __webpack_exports__, __webpack_require__) { 5398 5399"use strict"; 5400__webpack_require__.r(__webpack_exports__); 5401/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addHours; }); 5402/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5403/* harmony import */ var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addMilliseconds/index.js */ "./node_modules/date-fns/esm/addMilliseconds/index.js"); 5404/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5405 5406 5407 5408var MILLISECONDS_IN_HOUR = 3600000; 5409/** 5410 * @name addHours 5411 * @category Hour Helpers 5412 * @summary Add the specified number of hours to the given date. 5413 * 5414 * @description 5415 * Add the specified number of hours to the given date. 5416 * 5417 * @param {Date|Number} date - the date to be changed 5418 * @param {Number} amount - the amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 5419 * @returns {Date} the new date with the hours added 5420 * @throws {TypeError} 2 arguments required 5421 * 5422 * @example 5423 * // Add 2 hours to 10 July 2014 23:00:00: 5424 * const result = addHours(new Date(2014, 6, 10, 23, 0), 2) 5425 * //=> Fri Jul 11 2014 01:00:00 5426 */ 5427 5428function addHours(dirtyDate, dirtyAmount) { 5429 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 5430 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 5431 return Object(_addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, amount * MILLISECONDS_IN_HOUR); 5432} 5433 5434/***/ }), 5435
vendor: 2,255 bytes, lines 5436-5479
5436/***/ "./node_modules/date-fns/esm/addMilliseconds/index.js": 5437/*!************************************************************!*\ 5438 !*** ./node_modules/date-fns/esm/addMilliseconds/index.js ***! 5439 \************************************************************/ 5440/*! exports provided: default */ 5441/***/ (function(module, __webpack_exports__, __webpack_require__) { 5442 5443"use strict"; 5444__webpack_require__.r(__webpack_exports__); 5445/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addMilliseconds; }); 5446/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5447/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 5448/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5449 5450 5451 5452/** 5453 * @name addMilliseconds 5454 * @category Millisecond Helpers 5455 * @summary Add the specified number of milliseconds to the given date. 5456 * 5457 * @description 5458 * Add the specified number of milliseconds to the given date. 5459 * 5460 * @param {Date|Number} date - the date to be changed 5461 * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 5462 * @returns {Date} the new date with the milliseconds added 5463 * @throws {TypeError} 2 arguments required 5464 * 5465 * @example 5466 * // Add 750 milliseconds to 10 July 2014 12:45:30.000: 5467 * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) 5468 * //=> Thu Jul 10 2014 12:45:30.750 5469 */ 5470 5471function addMilliseconds(dirtyDate, dirtyAmount) { 5472 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 5473 var timestamp = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate).getTime(); 5474 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 5475 return new Date(timestamp + amount); 5476} 5477 5478/***/ }), 5479
vendor: 2,214 bytes, lines 5480-5523
5480/***/ "./node_modules/date-fns/esm/addMinutes/index.js": 5481/*!*******************************************************!*\ 5482 !*** ./node_modules/date-fns/esm/addMinutes/index.js ***! 5483 \*******************************************************/ 5484/*! exports provided: default */ 5485/***/ (function(module, __webpack_exports__, __webpack_require__) { 5486 5487"use strict"; 5488__webpack_require__.r(__webpack_exports__); 5489/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addMinutes; }); 5490/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5491/* harmony import */ var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addMilliseconds/index.js */ "./node_modules/date-fns/esm/addMilliseconds/index.js"); 5492/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5493 5494 5495 5496var MILLISECONDS_IN_MINUTE = 60000; 5497/** 5498 * @name addMinutes 5499 * @category Minute Helpers 5500 * @summary Add the specified number of minutes to the given date. 5501 * 5502 * @description 5503 * Add the specified number of minutes to the given date. 5504 * 5505 * @param {Date|Number} date - the date to be changed 5506 * @param {Number} amount - the amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 5507 * @returns {Date} the new date with the minutes added 5508 * @throws {TypeError} 2 arguments required 5509 * 5510 * @example 5511 * // Add 30 minutes to 10 July 2014 12:00:00: 5512 * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30) 5513 * //=> Thu Jul 10 2014 12:30:00 5514 */ 5515 5516function addMinutes(dirtyDate, dirtyAmount) { 5517 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 5518 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 5519 return Object(_addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, amount * MILLISECONDS_IN_MINUTE); 5520} 5521 5522/***/ }), 5523
vendor: 3,850 bytes, lines 5524-5604
5524/***/ "./node_modules/date-fns/esm/addMonths/index.js": 5525/*!******************************************************!*\ 5526 !*** ./node_modules/date-fns/esm/addMonths/index.js ***! 5527 \******************************************************/ 5528/*! exports provided: default */ 5529/***/ (function(module, __webpack_exports__, __webpack_require__) { 5530 5531"use strict"; 5532__webpack_require__.r(__webpack_exports__); 5533/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addMonths; }); 5534/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5535/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 5536/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5537 5538 5539 5540/** 5541 * @name addMonths 5542 * @category Month Helpers 5543 * @summary Add the specified number of months to the given date. 5544 * 5545 * @description 5546 * Add the specified number of months to the given date. 5547 * 5548 * @param {Date|Number} date - the date to be changed 5549 * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 5550 * @returns {Date} the new date with the months added 5551 * @throws {TypeError} 2 arguments required 5552 * 5553 * @example 5554 * // Add 5 months to 1 September 2014: 5555 * const result = addMonths(new Date(2014, 8, 1), 5) 5556 * //=> Sun Feb 01 2015 00:00:00 5557 */ 5558 5559function addMonths(dirtyDate, dirtyAmount) { 5560 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 5561 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 5562 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 5563 5564 if (isNaN(amount)) { 5565 return new Date(NaN); 5566 } 5567 5568 if (!amount) { 5569 // If 0 months, no-op to avoid changing times in the hour before end of DST 5570 return date; 5571 } 5572 5573 var dayOfMonth = date.getDate(); // The JS Date object supports date math by accepting out-of-bounds values for 5574 // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and 5575 // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we 5576 // want except that dates will wrap around the end of a month, meaning that 5577 // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So 5578 // we'll default to the end of the desired month by adding 1 to the desired 5579 // month and using a date of 0 to back up one day to the end of the desired 5580 // month. 5581 5582 var endOfDesiredMonth = new Date(date.getTime()); 5583 endOfDesiredMonth.setMonth(date.getMonth() + amount + 1, 0); 5584 var daysInMonth = endOfDesiredMonth.getDate(); 5585 5586 if (dayOfMonth >= daysInMonth) { 5587 // If we're already at the end of the month, then this is the correct date 5588 // and we're done. 5589 return endOfDesiredMonth; 5590 } else { 5591 // Otherwise, we now know that setting the original day-of-month value won't 5592 // cause an overflow, so set the desired day-of-month. Note that we can't 5593 // just set the date of `endOfDesiredMonth` because that object may have had 5594 // its time changed in the unusual case where where a DST transition was on 5595 // the last day of the month and its local time was in the hour skipped or 5596 // repeated next to a DST transition. So we use `date` instead which is 5597 // guaranteed to still have the original time. 5598 date.setFullYear(endOfDesiredMonth.getFullYear(), endOfDesiredMonth.getMonth(), dayOfMonth); 5599 return date; 5600 } 5601} 5602 5603/***/ }), 5604
vendor: 2,164 bytes, lines 5605-5648
5605/***/ "./node_modules/date-fns/esm/addQuarters/index.js": 5606/*!********************************************************!*\ 5607 !*** ./node_modules/date-fns/esm/addQuarters/index.js ***! 5608 \********************************************************/ 5609/*! exports provided: default */ 5610/***/ (function(module, __webpack_exports__, __webpack_require__) { 5611 5612"use strict"; 5613__webpack_require__.r(__webpack_exports__); 5614/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addQuarters; }); 5615/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5616/* harmony import */ var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addMonths/index.js */ "./node_modules/date-fns/esm/addMonths/index.js"); 5617/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5618 5619 5620 5621/** 5622 * @name addQuarters 5623 * @category Quarter Helpers 5624 * @summary Add the specified number of year quarters to the given date. 5625 * 5626 * @description 5627 * Add the specified number of year quarters to the given date. 5628 * 5629 * @param {Date|Number} date - the date to be changed 5630 * @param {Number} amount - the amount of quarters to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 5631 * @returns {Date} the new date with the quarters added 5632 * @throws {TypeError} 2 arguments required 5633 * 5634 * @example 5635 * // Add 1 quarter to 1 September 2014: 5636 * const result = addQuarters(new Date(2014, 8, 1), 1) 5637 * //=> Mon Dec 01 2014 00:00:00 5638 */ 5639 5640function addQuarters(dirtyDate, dirtyAmount) { 5641 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 5642 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 5643 var months = amount * 3; 5644 return Object(_addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, months); 5645} 5646 5647/***/ }), 5648
vendor: 2,100 bytes, lines 5649-5692
5649/***/ "./node_modules/date-fns/esm/addWeeks/index.js": 5650/*!*****************************************************!*\ 5651 !*** ./node_modules/date-fns/esm/addWeeks/index.js ***! 5652 \*****************************************************/ 5653/*! exports provided: default */ 5654/***/ (function(module, __webpack_exports__, __webpack_require__) { 5655 5656"use strict"; 5657__webpack_require__.r(__webpack_exports__); 5658/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addWeeks; }); 5659/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5660/* harmony import */ var _addDays_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addDays/index.js */ "./node_modules/date-fns/esm/addDays/index.js"); 5661/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5662 5663 5664 5665/** 5666 * @name addWeeks 5667 * @category Week Helpers 5668 * @summary Add the specified number of weeks to the given date. 5669 * 5670 * @description 5671 * Add the specified number of week to the given date. 5672 * 5673 * @param {Date|Number} date - the date to be changed 5674 * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 5675 * @returns {Date} the new date with the weeks added 5676 * @throws {TypeError} 2 arguments required 5677 * 5678 * @example 5679 * // Add 4 weeks to 1 September 2014: 5680 * const result = addWeeks(new Date(2014, 8, 1), 4) 5681 * //=> Mon Sep 29 2014 00:00:00 5682 */ 5683 5684function addWeeks(dirtyDate, dirtyAmount) { 5685 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 5686 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 5687 var days = amount * 7; 5688 return Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, days); 5689} 5690 5691/***/ }), 5692
vendor: 2,091 bytes, lines 5693-5735
5693/***/ "./node_modules/date-fns/esm/addYears/index.js": 5694/*!*****************************************************!*\ 5695 !*** ./node_modules/date-fns/esm/addYears/index.js ***! 5696 \*****************************************************/ 5697/*! exports provided: default */ 5698/***/ (function(module, __webpack_exports__, __webpack_require__) { 5699 5700"use strict"; 5701__webpack_require__.r(__webpack_exports__); 5702/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addYears; }); 5703/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 5704/* harmony import */ var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addMonths/index.js */ "./node_modules/date-fns/esm/addMonths/index.js"); 5705/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5706 5707 5708 5709/** 5710 * @name addYears 5711 * @category Year Helpers 5712 * @summary Add the specified number of years to the given date. 5713 * 5714 * @description 5715 * Add the specified number of years to the given date. 5716 * 5717 * @param {Date|Number} date - the date to be changed 5718 * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 5719 * @returns {Date} the new date with the years added 5720 * @throws {TypeError} 2 arguments required 5721 * 5722 * @example 5723 * // Add 5 years to 1 September 2014: 5724 * const result = addYears(new Date(2014, 8, 1), 5) 5725 * //=> Sun Sep 01 2019 00:00:00 5726 */ 5727 5728function addYears(dirtyDate, dirtyAmount) { 5729 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 5730 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 5731 return Object(_addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, amount * 12); 5732} 5733 5734/***/ }), 5735
vendor: 5,663 bytes, lines 5736-5948
5736/***/ "./node_modules/date-fns/esm/constants/index.js": 5737/*!******************************************************!*\ 5738 !*** ./node_modules/date-fns/esm/constants/index.js ***! 5739 \******************************************************/ 5740/*! exports provided: daysInWeek, daysInYear, maxTime, millisecondsInMinute, millisecondsInHour, millisecondsInSecond, minTime, minutesInHour, monthsInQuarter, monthsInYear, quartersInYear, secondsInHour, secondsInMinute, secondsInDay, secondsInWeek, secondsInYear, secondsInMonth, secondsInQuarter */ 5741/***/ (function(module, __webpack_exports__, __webpack_require__) { 5742 5743"use strict"; 5744__webpack_require__.r(__webpack_exports__); 5745/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "daysInWeek", function() { return daysInWeek; }); 5746/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "daysInYear", function() { return daysInYear; }); 5747/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "maxTime", function() { return maxTime; }); 5748/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "millisecondsInMinute", function() { return millisecondsInMinute; }); 5749/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "millisecondsInHour", function() { return millisecondsInHour; }); 5750/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "millisecondsInSecond", function() { return millisecondsInSecond; }); 5751/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "minTime", function() { return minTime; }); 5752/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "minutesInHour", function() { return minutesInHour; }); 5753/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monthsInQuarter", function() { return monthsInQuarter; }); 5754/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monthsInYear", function() { return monthsInYear; }); 5755/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "quartersInYear", function() { return quartersInYear; }); 5756/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondsInHour", function() { return secondsInHour; }); 5757/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondsInMinute", function() { return secondsInMinute; }); 5758/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondsInDay", function() { return secondsInDay; }); 5759/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondsInWeek", function() { return secondsInWeek; }); 5760/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondsInYear", function() { return secondsInYear; }); 5761/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondsInMonth", function() { return secondsInMonth; }); 5762/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "secondsInQuarter", function() { return secondsInQuarter; }); 5763/** 5764 * Days in 1 week. 5765 * 5766 * @name daysInWeek 5767 * @constant 5768 * @type {number} 5769 * @default 5770 */ 5771var daysInWeek = 7; 5772/** 5773 * Days in 1 year 5774 * One years equals 365.2425 days according to the formula: 5775 * 5776 * > Leap year occures every 4 years, except for years that are divisable by 100 and not divisable by 400. 5777 * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days 5778 * 5779 * @name daysInYear 5780 * @constant 5781 * @type {number} 5782 * @default 5783 */ 5784 5785var daysInYear = 365.2425; 5786/** 5787 * Maximum allowed time. 5788 * 5789 * @name maxTime 5790 * @constant 5791 * @type {number} 5792 * @default 5793 */ 5794 5795var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000; 5796/** 5797 * Milliseconds in 1 minute 5798 * 5799 * @name millisecondsInMinute 5800 * @constant 5801 * @type {number} 5802 * @default 5803 */ 5804 5805var millisecondsInMinute = 60000; 5806/** 5807 * Milliseconds in 1 hour 5808 * 5809 * @name millisecondsInHour 5810 * @constant 5811 * @type {number} 5812 * @default 5813 */ 5814 5815var millisecondsInHour = 3600000; 5816/** 5817 * Milliseconds in 1 second 5818 * 5819 * @name millisecondsInSecond 5820 * @constant 5821 * @type {number} 5822 * @default 5823 */ 5824 5825var millisecondsInSecond = 1000; 5826/** 5827 * Minimum allowed time. 5828 * 5829 * @name minTime 5830 * @constant 5831 * @type {number} 5832 * @default 5833 */ 5834 5835var minTime = -maxTime; 5836/** 5837 * Minutes in 1 hour 5838 * 5839 * @name minutesInHour 5840 * @constant 5841 * @type {number} 5842 * @default 5843 */ 5844 5845var minutesInHour = 60; 5846/** 5847 * Months in 1 quarter 5848 * 5849 * @name monthsInQuarter 5850 * @constant 5851 * @type {number} 5852 * @default 5853 */ 5854 5855var monthsInQuarter = 3; 5856/** 5857 * Months in 1 year 5858 * 5859 * @name monthsInYear 5860 * @constant 5861 * @type {number} 5862 * @default 5863 */ 5864 5865var monthsInYear = 12; 5866/** 5867 * Quarters in 1 year 5868 * 5869 * @name quartersInYear 5870 * @constant 5871 * @type {number} 5872 * @default 5873 */ 5874 5875var quartersInYear = 4; 5876/** 5877 * Seconds in 1 hour 5878 * 5879 * @name secondsInHour 5880 * @constant 5881 * @type {number} 5882 * @default 5883 */ 5884 5885var secondsInHour = 3600; 5886/** 5887 * Seconds in 1 minute 5888 * 5889 * @name secondsInMinute 5890 * @constant 5891 * @type {number} 5892 * @default 5893 */ 5894 5895var secondsInMinute = 60; 5896/** 5897 * Seconds in 1 day 5898 * 5899 * @name secondsInDay 5900 * @constant 5901 * @type {number} 5902 * @default 5903 */ 5904 5905var secondsInDay = secondsInHour * 24; 5906/** 5907 * Seconds in 1 week 5908 * 5909 * @name secondsInWeek 5910 * @constant 5911 * @type {number} 5912 * @default 5913 */ 5914 5915var secondsInWeek = secondsInDay * 7; 5916/** 5917 * Seconds in 1 year 5918 * 5919 * @name secondsInYear 5920 * @constant 5921 * @type {number} 5922 * @default 5923 */ 5924 5925var secondsInYear = secondsInDay * daysInYear; 5926/** 5927 * Seconds in 1 month 5928 * 5929 * @name secondsInMonth 5930 * @constant 5931 * @type {number} 5932 * @default 5933 */ 5934 5935var secondsInMonth = secondsInYear / 12; 5936/** 5937 * Seconds in 1 quarter 5938 * 5939 * @name secondsInQuarter 5940 * @constant 5941 * @type {number} 5942 * @default 5943 */ 5944 5945var secondsInQuarter = secondsInMonth * 3; 5946 5947/***/ }), 5948
vendor: 3,223 bytes, lines 5949-6010
5949/***/ "./node_modules/date-fns/esm/differenceInCalendarDays/index.js": 5950/*!*********************************************************************!*\ 5951 !*** ./node_modules/date-fns/esm/differenceInCalendarDays/index.js ***! 5952 \*********************************************************************/ 5953/*! exports provided: default */ 5954/***/ (function(module, __webpack_exports__, __webpack_require__) { 5955 5956"use strict"; 5957__webpack_require__.r(__webpack_exports__); 5958/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return differenceInCalendarDays; }); 5959/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); 5960/* harmony import */ var _startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfDay/index.js */ "./node_modules/date-fns/esm/startOfDay/index.js"); 5961/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 5962 5963 5964 5965var MILLISECONDS_IN_DAY = 86400000; 5966/** 5967 * @name differenceInCalendarDays 5968 * @category Day Helpers 5969 * @summary Get the number of calendar days between the given dates. 5970 * 5971 * @description 5972 * Get the number of calendar days between the given dates. This means that the times are removed 5973 * from the dates and then the difference in days is calculated. 5974 * 5975 * @param {Date|Number} dateLeft - the later date 5976 * @param {Date|Number} dateRight - the earlier date 5977 * @returns {Number} the number of calendar days 5978 * @throws {TypeError} 2 arguments required 5979 * 5980 * @example 5981 * // How many calendar days are between 5982 * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00? 5983 * const result = differenceInCalendarDays( 5984 * new Date(2012, 6, 2, 0, 0), 5985 * new Date(2011, 6, 2, 23, 0) 5986 * ) 5987 * //=> 366 5988 * // How many calendar days are between 5989 * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00? 5990 * const result = differenceInCalendarDays( 5991 * new Date(2011, 6, 3, 0, 1), 5992 * new Date(2011, 6, 2, 23, 59) 5993 * ) 5994 * //=> 1 5995 */ 5996 5997function differenceInCalendarDays(dirtyDateLeft, dirtyDateRight) { 5998 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 5999 var startOfDayLeft = Object(_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateLeft); 6000 var startOfDayRight = Object(_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDateRight); 6001 var timestampLeft = startOfDayLeft.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(startOfDayLeft); 6002 var timestampRight = startOfDayRight.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(startOfDayRight); // Round the number of days to the nearest integer 6003 // because the number of milliseconds in a day is not constant 6004 // (e.g. it's different in the day of the daylight saving time clock shift) 6005 6006 return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_DAY); 6007} 6008 6009/***/ }), 6010
vendor: 2,142 bytes, lines 6011-6057
6011/***/ "./node_modules/date-fns/esm/differenceInCalendarMonths/index.js": 6012/*!***********************************************************************!*\ 6013 !*** ./node_modules/date-fns/esm/differenceInCalendarMonths/index.js ***! 6014 \***********************************************************************/ 6015/*! exports provided: default */ 6016/***/ (function(module, __webpack_exports__, __webpack_require__) { 6017 6018"use strict"; 6019__webpack_require__.r(__webpack_exports__); 6020/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return differenceInCalendarMonths; }); 6021/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6022/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6023 6024 6025/** 6026 * @name differenceInCalendarMonths 6027 * @category Month Helpers 6028 * @summary Get the number of calendar months between the given dates. 6029 * 6030 * @description 6031 * Get the number of calendar months between the given dates. 6032 * 6033 * @param {Date|Number} dateLeft - the later date 6034 * @param {Date|Number} dateRight - the earlier date 6035 * @returns {Number} the number of calendar months 6036 * @throws {TypeError} 2 arguments required 6037 * 6038 * @example 6039 * // How many calendar months are between 31 January 2014 and 1 September 2014? 6040 * const result = differenceInCalendarMonths( 6041 * new Date(2014, 8, 1), 6042 * new Date(2014, 0, 31) 6043 * ) 6044 * //=> 8 6045 */ 6046 6047function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) { 6048 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 6049 var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft); 6050 var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight); 6051 var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear(); 6052 var monthDiff = dateLeft.getMonth() - dateRight.getMonth(); 6053 return yearDiff * 12 + monthDiff; 6054} 6055 6056/***/ }), 6057
vendor: 3,537 bytes, lines 6058-6124
6058/***/ "./node_modules/date-fns/esm/differenceInCalendarWeeks/index.js": 6059/*!**********************************************************************!*\ 6060 !*** ./node_modules/date-fns/esm/differenceInCalendarWeeks/index.js ***! 6061 \**********************************************************************/ 6062/*! exports provided: default */ 6063/***/ (function(module, __webpack_exports__, __webpack_require__) { 6064 6065"use strict"; 6066__webpack_require__.r(__webpack_exports__); 6067/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return differenceInCalendarWeeks; }); 6068/* harmony import */ var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../startOfWeek/index.js */ "./node_modules/date-fns/esm/startOfWeek/index.js"); 6069/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); 6070/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6071 6072 6073 6074var MILLISECONDS_IN_WEEK = 604800000; 6075/** 6076 * @name differenceInCalendarWeeks 6077 * @category Week Helpers 6078 * @summary Get the number of calendar weeks between the given dates. 6079 * 6080 * @description 6081 * Get the number of calendar weeks between the given dates. 6082 * 6083 * @param {Date|Number} dateLeft - the later date 6084 * @param {Date|Number} dateRight - the earlier date 6085 * @param {Object} [options] - an object with options. 6086 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 6087 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 6088 * @returns {Number} the number of calendar weeks 6089 * @throws {TypeError} 2 arguments required 6090 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 6091 * 6092 * @example 6093 * // How many calendar weeks are between 5 July 2014 and 20 July 2014? 6094 * const result = differenceInCalendarWeeks( 6095 * new Date(2014, 6, 20), 6096 * new Date(2014, 6, 5) 6097 * ) 6098 * //=> 3 6099 * 6100 * @example 6101 * // If the week starts on Monday, 6102 * // how many calendar weeks are between 5 July 2014 and 20 July 2014? 6103 * const result = differenceInCalendarWeeks( 6104 * new Date(2014, 6, 20), 6105 * new Date(2014, 6, 5), 6106 * { weekStartsOn: 1 } 6107 * ) 6108 * //=> 2 6109 */ 6110 6111function differenceInCalendarWeeks(dirtyDateLeft, dirtyDateRight, options) { 6112 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 6113 var startOfWeekLeft = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft, options); 6114 var startOfWeekRight = Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight, options); 6115 var timestampLeft = startOfWeekLeft.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(startOfWeekLeft); 6116 var timestampRight = startOfWeekRight.getTime() - Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(startOfWeekRight); // Round the number of days to the nearest integer 6117 // because the number of milliseconds in a week is not constant 6118 // (e.g. it's different in the week of the daylight saving time clock shift) 6119 6120 return Math.round((timestampLeft - timestampRight) / MILLISECONDS_IN_WEEK); 6121} 6122 6123/***/ }), 6124
vendor: 2,026 bytes, lines 6125-6169
6125/***/ "./node_modules/date-fns/esm/differenceInCalendarYears/index.js": 6126/*!**********************************************************************!*\ 6127 !*** ./node_modules/date-fns/esm/differenceInCalendarYears/index.js ***! 6128 \**********************************************************************/ 6129/*! exports provided: default */ 6130/***/ (function(module, __webpack_exports__, __webpack_require__) { 6131 6132"use strict"; 6133__webpack_require__.r(__webpack_exports__); 6134/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return differenceInCalendarYears; }); 6135/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6136/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6137 6138 6139/** 6140 * @name differenceInCalendarYears 6141 * @category Year Helpers 6142 * @summary Get the number of calendar years between the given dates. 6143 * 6144 * @description 6145 * Get the number of calendar years between the given dates. 6146 * 6147 * @param {Date|Number} dateLeft - the later date 6148 * @param {Date|Number} dateRight - the earlier date 6149 * @returns {Number} the number of calendar years 6150 * @throws {TypeError} 2 arguments required 6151 * 6152 * @example 6153 * // How many calendar years are between 31 December 2013 and 11 February 2015? 6154 * const result = differenceInCalendarYears( 6155 * new Date(2015, 1, 11), 6156 * new Date(2013, 11, 31) 6157 * ) 6158 * //=> 2 6159 */ 6160 6161function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) { 6162 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 6163 var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft); 6164 var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight); 6165 return dateLeft.getFullYear() - dateRight.getFullYear(); 6166} 6167 6168/***/ }), 6169
vendor: 1,670 bytes, lines 6170-6211
6170/***/ "./node_modules/date-fns/esm/endOfDay/index.js": 6171/*!*****************************************************!*\ 6172 !*** ./node_modules/date-fns/esm/endOfDay/index.js ***! 6173 \*****************************************************/ 6174/*! exports provided: default */ 6175/***/ (function(module, __webpack_exports__, __webpack_require__) { 6176 6177"use strict"; 6178__webpack_require__.r(__webpack_exports__); 6179/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return endOfDay; }); 6180/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6181/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6182 6183 6184/** 6185 * @name endOfDay 6186 * @category Day Helpers 6187 * @summary Return the end of a day for the given date. 6188 * 6189 * @description 6190 * Return the end of a day for the given date. 6191 * The result will be in the local timezone. 6192 * 6193 * @param {Date|Number} date - the original date 6194 * @returns {Date} the end of a day 6195 * @throws {TypeError} 1 argument required 6196 * 6197 * @example 6198 * // The end of a day for 2 September 2014 11:55:00: 6199 * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0)) 6200 * //=> Tue Sep 02 2014 23:59:59.999 6201 */ 6202 6203function endOfDay(dirtyDate) { 6204 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 6205 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 6206 date.setHours(23, 59, 59, 999); 6207 return date; 6208} 6209 6210/***/ }), 6211
vendor: 1,781 bytes, lines 6212-6255
6212/***/ "./node_modules/date-fns/esm/endOfMonth/index.js": 6213/*!*******************************************************!*\ 6214 !*** ./node_modules/date-fns/esm/endOfMonth/index.js ***! 6215 \*******************************************************/ 6216/*! exports provided: default */ 6217/***/ (function(module, __webpack_exports__, __webpack_require__) { 6218 6219"use strict"; 6220__webpack_require__.r(__webpack_exports__); 6221/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return endOfMonth; }); 6222/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6223/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6224 6225 6226/** 6227 * @name endOfMonth 6228 * @category Month Helpers 6229 * @summary Return the end of a month for the given date. 6230 * 6231 * @description 6232 * Return the end of a month for the given date. 6233 * The result will be in the local timezone. 6234 * 6235 * @param {Date|Number} date - the original date 6236 * @returns {Date} the end of a month 6237 * @throws {TypeError} 1 argument required 6238 * 6239 * @example 6240 * // The end of a month for 2 September 2014 11:55:00: 6241 * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0)) 6242 * //=> Tue Sep 30 2014 23:59:59.999 6243 */ 6244 6245function endOfMonth(dirtyDate) { 6246 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 6247 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 6248 var month = date.getMonth(); 6249 date.setFullYear(date.getFullYear(), month + 1, 0); 6250 date.setHours(23, 59, 59, 999); 6251 return date; 6252} 6253 6254/***/ }), 6255
vendor: 4,214 bytes, lines 6256-6322
6256/***/ "./node_modules/date-fns/esm/endOfWeek/index.js": 6257/*!******************************************************!*\ 6258 !*** ./node_modules/date-fns/esm/endOfWeek/index.js ***! 6259 \******************************************************/ 6260/*! exports provided: default */ 6261/***/ (function(module, __webpack_exports__, __webpack_require__) { 6262 6263"use strict"; 6264__webpack_require__.r(__webpack_exports__); 6265/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return endOfWeek; }); 6266/* harmony import */ var _lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 6267/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6268/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 6269/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6270 6271 6272 6273 6274/** 6275 * @name endOfWeek 6276 * @category Week Helpers 6277 * @summary Return the end of a week for the given date. 6278 * 6279 * @description 6280 * Return the end of a week for the given date. 6281 * The result will be in the local timezone. 6282 * 6283 * @param {Date|Number} date - the original date 6284 * @param {Object} [options] - an object with options. 6285 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 6286 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 6287 * @returns {Date} the end of a week 6288 * @throws {TypeError} 1 argument required 6289 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 6290 * 6291 * @example 6292 * // The end of a week for 2 September 2014 11:55:00: 6293 * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0)) 6294 * //=> Sat Sep 06 2014 23:59:59.999 6295 * 6296 * @example 6297 * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00: 6298 * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) 6299 * //=> Sun Sep 07 2014 23:59:59.999 6300 */ 6301 6302function endOfWeek(dirtyDate, options) { 6303 var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 6304 6305 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments); 6306 var defaultOptions = Object(_lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_0__["getDefaultOptions"])(); 6307 var weekStartsOn = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 6308 6309 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 6310 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 6311 } 6312 6313 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 6314 var day = date.getDay(); 6315 var diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn); 6316 date.setDate(date.getDate() + diff); 6317 date.setHours(23, 59, 59, 999); 6318 return date; 6319} 6320 6321/***/ }), 6322
vendor: 1,753 bytes, lines 6323-6366
6323/***/ "./node_modules/date-fns/esm/endOfYear/index.js": 6324/*!******************************************************!*\ 6325 !*** ./node_modules/date-fns/esm/endOfYear/index.js ***! 6326 \******************************************************/ 6327/*! exports provided: default */ 6328/***/ (function(module, __webpack_exports__, __webpack_require__) { 6329 6330"use strict"; 6331__webpack_require__.r(__webpack_exports__); 6332/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return endOfYear; }); 6333/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6334/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6335 6336 6337/** 6338 * @name endOfYear 6339 * @category Year Helpers 6340 * @summary Return the end of a year for the given date. 6341 * 6342 * @description 6343 * Return the end of a year for the given date. 6344 * The result will be in the local timezone. 6345 * 6346 * @param {Date|Number} date - the original date 6347 * @returns {Date} the end of a year 6348 * @throws {TypeError} 1 argument required 6349 * 6350 * @example 6351 * // The end of a year for 2 September 2014 11:55:00: 6352 * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 00)) 6353 * //=> Wed Dec 31 2014 23:59:59.999 6354 */ 6355 6356function endOfYear(dirtyDate) { 6357 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 6358 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 6359 var year = date.getFullYear(); 6360 date.setFullYear(year + 1, 0, 0); 6361 date.setHours(23, 59, 59, 999); 6362 return date; 6363} 6364 6365/***/ }), 6366
vendor: 31,674 bytes, lines 6367-6808
6367/***/ "./node_modules/date-fns/esm/format/index.js": 6368/*!***************************************************!*\ 6369 !*** ./node_modules/date-fns/esm/format/index.js ***! 6370 \***************************************************/ 6371/*! exports provided: default */ 6372/***/ (function(module, __webpack_exports__, __webpack_require__) { 6373 6374"use strict"; 6375__webpack_require__.r(__webpack_exports__); 6376/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return format; }); 6377/* harmony import */ var _isValid_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../isValid/index.js */ "./node_modules/date-fns/esm/isValid/index.js"); 6378/* harmony import */ var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../subMilliseconds/index.js */ "./node_modules/date-fns/esm/subMilliseconds/index.js"); 6379/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6380/* harmony import */ var _lib_format_formatters_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/format/formatters/index.js */ "./node_modules/date-fns/esm/_lib/format/formatters/index.js"); 6381/* harmony import */ var _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_lib/format/longFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/longFormatters/index.js"); 6382/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); 6383/* harmony import */ var _lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_lib/protectedTokens/index.js */ "./node_modules/date-fns/esm/_lib/protectedTokens/index.js"); 6384/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 6385/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6386/* harmony import */ var _lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_lib/defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 6387/* harmony import */ var _lib_defaultLocale_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_lib/defaultLocale/index.js */ "./node_modules/date-fns/esm/_lib/defaultLocale/index.js"); 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 // This RegExp consists of three parts separated by `|`: 6399// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token 6400// (one of the certain letters followed by `o`) 6401// - (\w)\1* matches any sequences of the same letter 6402// - '' matches two quote characters in a row 6403// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), 6404// except a single quote symbol, which ends the sequence. 6405// Two quote characters do not end the sequence. 6406// If there is no matching single quote 6407// then the sequence will continue until the end of the string. 6408// - . matches any single character unmatched by previous parts of the RegExps 6409 6410var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also 6411// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` 6412 6413var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; 6414var escapedStringRegExp = /^'([^]*?)'?$/; 6415var doubleQuoteRegExp = /''/g; 6416var unescapedLatinCharacterRegExp = /[a-zA-Z]/; 6417/** 6418 * @name format 6419 * @category Common Helpers 6420 * @summary Format the date. 6421 * 6422 * @description 6423 * Return the formatted date string in the given format. The result may vary by locale. 6424 * 6425 * > â ï¸ Please note that the `format` tokens differ from Moment.js and other libraries. 6426 * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 6427 * 6428 * The characters wrapped between two single quotes characters (') are escaped. 6429 * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. 6430 * (see the last example) 6431 * 6432 * Format of the string is based on Unicode Technical Standard #35: 6433 * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table 6434 * with a few additions (see note 7 below the table). 6435 * 6436 * Accepted patterns: 6437 * | Unit | Pattern | Result examples | Notes | 6438 * |---------------------------------|---------|-----------------------------------|-------| 6439 * | Era | G..GGG | AD, BC | | 6440 * | | GGGG | Anno Domini, Before Christ | 2 | 6441 * | | GGGGG | A, B | | 6442 * | Calendar year | y | 44, 1, 1900, 2017 | 5 | 6443 * | | yo | 44th, 1st, 0th, 17th | 5,7 | 6444 * | | yy | 44, 01, 00, 17 | 5 | 6445 * | | yyy | 044, 001, 1900, 2017 | 5 | 6446 * | | yyyy | 0044, 0001, 1900, 2017 | 5 | 6447 * | | yyyyy | ... | 3,5 | 6448 * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 | 6449 * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 | 6450 * | | YY | 44, 01, 00, 17 | 5,8 | 6451 * | | YYY | 044, 001, 1900, 2017 | 5 | 6452 * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 | 6453 * | | YYYYY | ... | 3,5 | 6454 * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 | 6455 * | | RR | -43, 00, 01, 1900, 2017 | 5,7 | 6456 * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 | 6457 * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 | 6458 * | | RRRRR | ... | 3,5,7 | 6459 * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 | 6460 * | | uu | -43, 01, 1900, 2017 | 5 | 6461 * | | uuu | -043, 001, 1900, 2017 | 5 | 6462 * | | uuuu | -0043, 0001, 1900, 2017 | 5 | 6463 * | | uuuuu | ... | 3,5 | 6464 * | Quarter (formatting) | Q | 1, 2, 3, 4 | | 6465 * | | Qo | 1st, 2nd, 3rd, 4th | 7 | 6466 * | | QQ | 01, 02, 03, 04 | | 6467 * | | QQQ | Q1, Q2, Q3, Q4 | | 6468 * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | 6469 * | | QQQQQ | 1, 2, 3, 4 | 4 | 6470 * | Quarter (stand-alone) | q | 1, 2, 3, 4 | | 6471 * | | qo | 1st, 2nd, 3rd, 4th | 7 | 6472 * | | qq | 01, 02, 03, 04 | | 6473 * | | qqq | Q1, Q2, Q3, Q4 | | 6474 * | | qqqq | 1st quarter, 2nd quarter, ... | 2 | 6475 * | | qqqqq | 1, 2, 3, 4 | 4 | 6476 * | Month (formatting) | M | 1, 2, ..., 12 | | 6477 * | | Mo | 1st, 2nd, ..., 12th | 7 | 6478 * | | MM | 01, 02, ..., 12 | | 6479 * | | MMM | Jan, Feb, ..., Dec | | 6480 * | | MMMM | January, February, ..., December | 2 | 6481 * | | MMMMM | J, F, ..., D | | 6482 * | Month (stand-alone) | L | 1, 2, ..., 12 | | 6483 * | | Lo | 1st, 2nd, ..., 12th | 7 | 6484 * | | LL | 01, 02, ..., 12 | | 6485 * | | LLL | Jan, Feb, ..., Dec | | 6486 * | | LLLL | January, February, ..., December | 2 | 6487 * | | LLLLL | J, F, ..., D | | 6488 * | Local week of year | w | 1, 2, ..., 53 | | 6489 * | | wo | 1st, 2nd, ..., 53th | 7 | 6490 * | | ww | 01, 02, ..., 53 | | 6491 * | ISO week of year | I | 1, 2, ..., 53 | 7 | 6492 * | | Io | 1st, 2nd, ..., 53th | 7 | 6493 * | | II | 01, 02, ..., 53 | 7 | 6494 * | Day of month | d | 1, 2, ..., 31 | | 6495 * | | do | 1st, 2nd, ..., 31st | 7 | 6496 * | | dd | 01, 02, ..., 31 | | 6497 * | Day of year | D | 1, 2, ..., 365, 366 | 9 | 6498 * | | Do | 1st, 2nd, ..., 365th, 366th | 7 | 6499 * | | DD | 01, 02, ..., 365, 366 | 9 | 6500 * | | DDD | 001, 002, ..., 365, 366 | | 6501 * | | DDDD | ... | 3 | 6502 * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | | 6503 * | | EEEE | Monday, Tuesday, ..., Sunday | 2 | 6504 * | | EEEEE | M, T, W, T, F, S, S | | 6505 * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | 6506 * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 | 6507 * | | io | 1st, 2nd, ..., 7th | 7 | 6508 * | | ii | 01, 02, ..., 07 | 7 | 6509 * | | iii | Mon, Tue, Wed, ..., Sun | 7 | 6510 * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 | 6511 * | | iiiii | M, T, W, T, F, S, S | 7 | 6512 * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 | 6513 * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | | 6514 * | | eo | 2nd, 3rd, ..., 1st | 7 | 6515 * | | ee | 02, 03, ..., 01 | | 6516 * | | eee | Mon, Tue, Wed, ..., Sun | | 6517 * | | eeee | Monday, Tuesday, ..., Sunday | 2 | 6518 * | | eeeee | M, T, W, T, F, S, S | | 6519 * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | 6520 * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | | 6521 * | | co | 2nd, 3rd, ..., 1st | 7 | 6522 * | | cc | 02, 03, ..., 01 | | 6523 * | | ccc | Mon, Tue, Wed, ..., Sun | | 6524 * | | cccc | Monday, Tuesday, ..., Sunday | 2 | 6525 * | | ccccc | M, T, W, T, F, S, S | | 6526 * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | 6527 * | AM, PM | a..aa | AM, PM | | 6528 * | | aaa | am, pm | | 6529 * | | aaaa | a.m., p.m. | 2 | 6530 * | | aaaaa | a, p | | 6531 * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | | 6532 * | | bbb | am, pm, noon, midnight | | 6533 * | | bbbb | a.m., p.m., noon, midnight | 2 | 6534 * | | bbbbb | a, p, n, mi | | 6535 * | Flexible day period | B..BBB | at night, in the morning, ... | | 6536 * | | BBBB | at night, in the morning, ... | 2 | 6537 * | | BBBBB | at night, in the morning, ... | | 6538 * | Hour [1-12] | h | 1, 2, ..., 11, 12 | | 6539 * | | ho | 1st, 2nd, ..., 11th, 12th | 7 | 6540 * | | hh | 01, 02, ..., 11, 12 | | 6541 * | Hour [0-23] | H | 0, 1, 2, ..., 23 | | 6542 * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 | 6543 * | | HH | 00, 01, 02, ..., 23 | | 6544 * | Hour [0-11] | K | 1, 2, ..., 11, 0 | | 6545 * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 | 6546 * | | KK | 01, 02, ..., 11, 00 | | 6547 * | Hour [1-24] | k | 24, 1, 2, ..., 23 | | 6548 * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 | 6549 * | | kk | 24, 01, 02, ..., 23 | | 6550 * | Minute | m | 0, 1, ..., 59 | | 6551 * | | mo | 0th, 1st, ..., 59th | 7 | 6552 * | | mm | 00, 01, ..., 59 | | 6553 * | Second | s | 0, 1, ..., 59 | | 6554 * | | so | 0th, 1st, ..., 59th | 7 | 6555 * | | ss | 00, 01, ..., 59 | | 6556 * | Fraction of second | S | 0, 1, ..., 9 | | 6557 * | | SS | 00, 01, ..., 99 | | 6558 * | | SSS | 000, 001, ..., 999 | | 6559 * | | SSSS | ... | 3 | 6560 * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | | 6561 * | | XX | -0800, +0530, Z | | 6562 * | | XXX | -08:00, +05:30, Z | | 6563 * | | XXXX | -0800, +0530, Z, +123456 | 2 | 6564 * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | 6565 * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | | 6566 * | | xx | -0800, +0530, +0000 | | 6567 * | | xxx | -08:00, +05:30, +00:00 | 2 | 6568 * | | xxxx | -0800, +0530, +0000, +123456 | | 6569 * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | 6570 * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | | 6571 * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 | 6572 * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 | 6573 * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 | 6574 * | Seconds timestamp | t | 512969520 | 7 | 6575 * | | tt | ... | 3,7 | 6576 * | Milliseconds timestamp | T | 512969520900 | 7 | 6577 * | | TT | ... | 3,7 | 6578 * | Long localized date | P | 04/29/1453 | 7 | 6579 * | | PP | Apr 29, 1453 | 7 | 6580 * | | PPP | April 29th, 1453 | 7 | 6581 * | | PPPP | Friday, April 29th, 1453 | 2,7 | 6582 * | Long localized time | p | 12:00 AM | 7 | 6583 * | | pp | 12:00:00 AM | 7 | 6584 * | | ppp | 12:00:00 AM GMT+2 | 7 | 6585 * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 | 6586 * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 | 6587 * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 | 6588 * | | PPPppp | April 29th, 1453 at ... | 7 | 6589 * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 | 6590 * Notes: 6591 * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale 6592 * are the same as "stand-alone" units, but are different in some languages. 6593 * "Formatting" units are declined according to the rules of the language 6594 * in the context of a date. "Stand-alone" units are always nominative singular: 6595 * 6596 * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` 6597 * 6598 * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` 6599 * 6600 * 2. Any sequence of the identical letters is a pattern, unless it is escaped by 6601 * the single quote characters (see below). 6602 * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`) 6603 * the output will be the same as default pattern for this unit, usually 6604 * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units 6605 * are marked with "2" in the last column of the table. 6606 * 6607 * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'` 6608 * 6609 * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'` 6610 * 6611 * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'` 6612 * 6613 * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'` 6614 * 6615 * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'` 6616 * 6617 * 3. Some patterns could be unlimited length (such as `yyyyyyyy`). 6618 * The output will be padded with zeros to match the length of the pattern. 6619 * 6620 * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'` 6621 * 6622 * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. 6623 * These tokens represent the shortest form of the quarter. 6624 * 6625 * 5. The main difference between `y` and `u` patterns are B.C. years: 6626 * 6627 * | Year | `y` | `u` | 6628 * |------|-----|-----| 6629 * | AC 1 | 1 | 1 | 6630 * | BC 1 | 1 | 0 | 6631 * | BC 2 | 2 | -1 | 6632 * 6633 * Also `yy` always returns the last two digits of a year, 6634 * while `uu` pads single digit years to 2 characters and returns other years unchanged: 6635 * 6636 * | Year | `yy` | `uu` | 6637 * |------|------|------| 6638 * | 1 | 01 | 01 | 6639 * | 14 | 14 | 14 | 6640 * | 376 | 76 | 376 | 6641 * | 1453 | 53 | 1453 | 6642 * 6643 * The same difference is true for local and ISO week-numbering years (`Y` and `R`), 6644 * except local week-numbering years are dependent on `options.weekStartsOn` 6645 * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear} 6646 * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}). 6647 * 6648 * 6. Specific non-location timezones are currently unavailable in `date-fns`, 6649 * so right now these tokens fall back to GMT timezones. 6650 * 6651 * 7. These patterns are not in the Unicode Technical Standard #35: 6652 * - `i`: ISO day of week 6653 * - `I`: ISO week of year 6654 * - `R`: ISO week-numbering year 6655 * - `t`: seconds timestamp 6656 * - `T`: milliseconds timestamp 6657 * - `o`: ordinal number modifier 6658 * - `P`: long localized date 6659 * - `p`: long localized time 6660 * 6661 * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. 6662 * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 6663 * 6664 * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month. 6665 * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 6666 * 6667 * @param {Date|Number} date - the original date 6668 * @param {String} format - the string of tokens 6669 * @param {Object} [options] - an object with options. 6670 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 6671 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 6672 * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is 6673 * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; 6674 * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 6675 * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; 6676 * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 6677 * @returns {String} the formatted date string 6678 * @throws {TypeError} 2 arguments required 6679 * @throws {RangeError} `date` must not be Invalid Date 6680 * @throws {RangeError} `options.locale` must contain `localize` property 6681 * @throws {RangeError} `options.locale` must contain `formatLong` property 6682 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 6683 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 6684 * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 6685 * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 6686 * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 6687 * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 6688 * @throws {RangeError} format string contains an unescaped latin alphabet character 6689 * 6690 * @example 6691 * // Represent 11 February 2014 in middle-endian format: 6692 * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy') 6693 * //=> '02/11/2014' 6694 * 6695 * @example 6696 * // Represent 2 July 2014 in Esperanto: 6697 * import { eoLocale } from 'date-fns/locale/eo' 6698 * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", { 6699 * locale: eoLocale 6700 * }) 6701 * //=> '2-a de julio 2014' 6702 * 6703 * @example 6704 * // Escape string by single quote characters: 6705 * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'") 6706 * //=> "3 o'clock" 6707 */ 6708 6709function format(dirtyDate, dirtyFormatStr, options) { 6710 var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; 6711 6712 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_8__["default"])(2, arguments); 6713 var formatStr = String(dirtyFormatStr); 6714 var defaultOptions = Object(_lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_9__["getDefaultOptions"])(); 6715 var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _lib_defaultLocale_index_js__WEBPACK_IMPORTED_MODULE_10__["default"]; 6716 var firstWeekContainsDate = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 6717 6718 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 6719 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 6720 } 6721 6722 var weekStartsOn = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 6723 6724 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 6725 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 6726 } 6727 6728 if (!locale.localize) { 6729 throw new RangeError('locale must contain localize property'); 6730 } 6731 6732 if (!locale.formatLong) { 6733 throw new RangeError('locale must contain formatLong property'); 6734 } 6735 6736 var originalDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyDate); 6737 6738 if (!Object(_isValid_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(originalDate)) { 6739 throw new RangeError('Invalid time value'); 6740 } // Convert the date in system timezone to the same date in UTC+00:00 timezone. 6741 // This ensures that when UTC functions will be implemented, locales will be compatible with them. 6742 // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376 6743 6744 6745 var timezoneOffset = Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(originalDate); 6746 var utcDate = Object(_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(originalDate, timezoneOffset); 6747 var formatterOptions = { 6748 firstWeekContainsDate: firstWeekContainsDate, 6749 weekStartsOn: weekStartsOn, 6750 locale: locale, 6751 _originalDate: originalDate 6752 }; 6753 var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) { 6754 var firstCharacter = substring[0]; 6755 6756 if (firstCharacter === 'p' || firstCharacter === 'P') { 6757 var longFormatter = _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_4__["default"][firstCharacter]; 6758 return longFormatter(substring, locale.formatLong); 6759 } 6760 6761 return substring; 6762 }).join('').match(formattingTokensRegExp).map(function (substring) { 6763 // Replace two single quote characters with one single quote character 6764 if (substring === "''") { 6765 return "'"; 6766 } 6767 6768 var firstCharacter = substring[0]; 6769 6770 if (firstCharacter === "'") { 6771 return cleanEscapedString(substring); 6772 } 6773 6774 var formatter = _lib_format_formatters_index_js__WEBPACK_IMPORTED_MODULE_3__["default"][firstCharacter]; 6775 6776 if (formatter) { 6777 if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["isProtectedWeekYearToken"])(substring)) { 6778 Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["throwProtectedError"])(substring, dirtyFormatStr, String(dirtyDate)); 6779 } 6780 6781 if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["isProtectedDayOfYearToken"])(substring)) { 6782 Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["throwProtectedError"])(substring, dirtyFormatStr, String(dirtyDate)); 6783 } 6784 6785 return formatter(utcDate, substring, locale.localize, formatterOptions); 6786 } 6787 6788 if (firstCharacter.match(unescapedLatinCharacterRegExp)) { 6789 throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); 6790 } 6791 6792 return substring; 6793 }).join(''); 6794 return result; 6795} 6796 6797function cleanEscapedString(input) { 6798 var matched = input.match(escapedStringRegExp); 6799 6800 if (!matched) { 6801 return input; 6802 } 6803 6804 return matched[1].replace(doubleQuoteRegExp, "'"); 6805} 6806 6807/***/ }), 6808
vendor: 1,583 bytes, lines 6809-6849
6809/***/ "./node_modules/date-fns/esm/getDate/index.js": 6810/*!****************************************************!*\ 6811 !*** ./node_modules/date-fns/esm/getDate/index.js ***! 6812 \****************************************************/ 6813/*! exports provided: default */ 6814/***/ (function(module, __webpack_exports__, __webpack_require__) { 6815 6816"use strict"; 6817__webpack_require__.r(__webpack_exports__); 6818/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getDate; }); 6819/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6820/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6821 6822 6823/** 6824 * @name getDate 6825 * @category Day Helpers 6826 * @summary Get the day of the month of the given date. 6827 * 6828 * @description 6829 * Get the day of the month of the given date. 6830 * 6831 * @param {Date|Number} date - the given date 6832 * @returns {Number} the day of month 6833 * @throws {TypeError} 1 argument required 6834 * 6835 * @example 6836 * // Which day of the month is 29 February 2012? 6837 * const result = getDate(new Date(2012, 1, 29)) 6838 * //=> 29 6839 */ 6840 6841function getDate(dirtyDate) { 6842 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 6843 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 6844 var dayOfMonth = date.getDate(); 6845 return dayOfMonth; 6846} 6847 6848/***/ }), 6849
vendor: 1,587 bytes, lines 6850-6890
6850/***/ "./node_modules/date-fns/esm/getDay/index.js": 6851/*!***************************************************!*\ 6852 !*** ./node_modules/date-fns/esm/getDay/index.js ***! 6853 \***************************************************/ 6854/*! exports provided: default */ 6855/***/ (function(module, __webpack_exports__, __webpack_require__) { 6856 6857"use strict"; 6858__webpack_require__.r(__webpack_exports__); 6859/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getDay; }); 6860/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6861/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6862 6863 6864/** 6865 * @name getDay 6866 * @category Weekday Helpers 6867 * @summary Get the day of the week of the given date. 6868 * 6869 * @description 6870 * Get the day of the week of the given date. 6871 * 6872 * @param {Date|Number} date - the given date 6873 * @returns {0|1|2|3|4|5|6} the day of week, 0 represents Sunday 6874 * @throws {TypeError} 1 argument required 6875 * 6876 * @example 6877 * // Which day of the week is 29 February 2012? 6878 * const result = getDay(new Date(2012, 1, 29)) 6879 * //=> 3 6880 */ 6881 6882function getDay(dirtyDate) { 6883 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 6884 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 6885 var day = date.getDay(); 6886 return day; 6887} 6888 6889/***/ }), 6890
vendor: 1,838 bytes, lines 6891-6935
6891/***/ "./node_modules/date-fns/esm/getDaysInMonth/index.js": 6892/*!***********************************************************!*\ 6893 !*** ./node_modules/date-fns/esm/getDaysInMonth/index.js ***! 6894 \***********************************************************/ 6895/*! exports provided: default */ 6896/***/ (function(module, __webpack_exports__, __webpack_require__) { 6897 6898"use strict"; 6899__webpack_require__.r(__webpack_exports__); 6900/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getDaysInMonth; }); 6901/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6902/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6903 6904 6905/** 6906 * @name getDaysInMonth 6907 * @category Month Helpers 6908 * @summary Get the number of days in a month of the given date. 6909 * 6910 * @description 6911 * Get the number of days in a month of the given date. 6912 * 6913 * @param {Date|Number} date - the given date 6914 * @returns {Number} the number of days in a month 6915 * @throws {TypeError} 1 argument required 6916 * 6917 * @example 6918 * // How many days are in February 2000? 6919 * const result = getDaysInMonth(new Date(2000, 1)) 6920 * //=> 29 6921 */ 6922 6923function getDaysInMonth(dirtyDate) { 6924 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 6925 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 6926 var year = date.getFullYear(); 6927 var monthIndex = date.getMonth(); 6928 var lastDayOfMonth = new Date(0); 6929 lastDayOfMonth.setFullYear(year, monthIndex + 1, 0); 6930 lastDayOfMonth.setHours(0, 0, 0, 0); 6931 return lastDayOfMonth.getDate(); 6932} 6933 6934/***/ }), 6935
vendor: 1,562 bytes, lines 6936-6976
6936/***/ "./node_modules/date-fns/esm/getHours/index.js": 6937/*!*****************************************************!*\ 6938 !*** ./node_modules/date-fns/esm/getHours/index.js ***! 6939 \*****************************************************/ 6940/*! exports provided: default */ 6941/***/ (function(module, __webpack_exports__, __webpack_require__) { 6942 6943"use strict"; 6944__webpack_require__.r(__webpack_exports__); 6945/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getHours; }); 6946/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6947/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6948 6949 6950/** 6951 * @name getHours 6952 * @category Hour Helpers 6953 * @summary Get the hours of the given date. 6954 * 6955 * @description 6956 * Get the hours of the given date. 6957 * 6958 * @param {Date|Number} date - the given date 6959 * @returns {Number} the hours 6960 * @throws {TypeError} 1 argument required 6961 * 6962 * @example 6963 * // Get the hours of 29 February 2012 11:45:00: 6964 * const result = getHours(new Date(2012, 1, 29, 11, 45)) 6965 * //=> 11 6966 */ 6967 6968function getHours(dirtyDate) { 6969 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 6970 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 6971 var hours = date.getHours(); 6972 return hours; 6973} 6974 6975/***/ }), 6976
vendor: 2,509 bytes, lines 6977-7027
6977/***/ "./node_modules/date-fns/esm/getISOWeek/index.js": 6978/*!*******************************************************!*\ 6979 !*** ./node_modules/date-fns/esm/getISOWeek/index.js ***! 6980 \*******************************************************/ 6981/*! exports provided: default */ 6982/***/ (function(module, __webpack_exports__, __webpack_require__) { 6983 6984"use strict"; 6985__webpack_require__.r(__webpack_exports__); 6986/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getISOWeek; }); 6987/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 6988/* harmony import */ var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfISOWeek/index.js */ "./node_modules/date-fns/esm/startOfISOWeek/index.js"); 6989/* harmony import */ var _startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../startOfISOWeekYear/index.js */ "./node_modules/date-fns/esm/startOfISOWeekYear/index.js"); 6990/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 6991 6992 6993 6994 6995var MILLISECONDS_IN_WEEK = 604800000; 6996/** 6997 * @name getISOWeek 6998 * @category ISO Week Helpers 6999 * @summary Get the ISO week of the given date. 7000 * 7001 * @description 7002 * Get the ISO week of the given date. 7003 * 7004 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 7005 * 7006 * @param {Date|Number} date - the given date 7007 * @returns {Number} the ISO week 7008 * @throws {TypeError} 1 argument required 7009 * 7010 * @example 7011 * // Which week of the ISO-week numbering year is 2 January 2005? 7012 * const result = getISOWeek(new Date(2005, 0, 2)) 7013 * //=> 53 7014 */ 7015 7016function getISOWeek(dirtyDate) { 7017 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(1, arguments); 7018 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 7019 var diff = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date).getTime() - Object(_startOfISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date).getTime(); // Round the number of days to the nearest integer 7020 // because the number of milliseconds in a week is not constant 7021 // (e.g. it's different in the week of the daylight saving time clock shift) 7022 7023 return Math.round(diff / MILLISECONDS_IN_WEEK) + 1; 7024} 7025 7026/***/ }), 7027
vendor: 2,739 bytes, lines 7028-7088
7028/***/ "./node_modules/date-fns/esm/getISOWeekYear/index.js": 7029/*!***********************************************************!*\ 7030 !*** ./node_modules/date-fns/esm/getISOWeekYear/index.js ***! 7031 \***********************************************************/ 7032/*! exports provided: default */ 7033/***/ (function(module, __webpack_exports__, __webpack_require__) { 7034 7035"use strict"; 7036__webpack_require__.r(__webpack_exports__); 7037/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getISOWeekYear; }); 7038/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7039/* harmony import */ var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfISOWeek/index.js */ "./node_modules/date-fns/esm/startOfISOWeek/index.js"); 7040/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7041 7042 7043 7044/** 7045 * @name getISOWeekYear 7046 * @category ISO Week-Numbering Year Helpers 7047 * @summary Get the ISO week-numbering year of the given date. 7048 * 7049 * @description 7050 * Get the ISO week-numbering year of the given date, 7051 * which always starts 3 days before the year's first Thursday. 7052 * 7053 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 7054 * 7055 * @param {Date|Number} date - the given date 7056 * @returns {Number} the ISO week-numbering year 7057 * @throws {TypeError} 1 argument required 7058 * 7059 * @example 7060 * // Which ISO-week numbering year is 2 January 2005? 7061 * const result = getISOWeekYear(new Date(2005, 0, 2)) 7062 * //=> 2004 7063 */ 7064 7065function getISOWeekYear(dirtyDate) { 7066 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments); 7067 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 7068 var year = date.getFullYear(); 7069 var fourthOfJanuaryOfNextYear = new Date(0); 7070 fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4); 7071 fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0); 7072 var startOfNextYear = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuaryOfNextYear); 7073 var fourthOfJanuaryOfThisYear = new Date(0); 7074 fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4); 7075 fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0); 7076 var startOfThisYear = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuaryOfThisYear); 7077 7078 if (date.getTime() >= startOfNextYear.getTime()) { 7079 return year + 1; 7080 } else if (date.getTime() >= startOfThisYear.getTime()) { 7081 return year; 7082 } else { 7083 return year - 1; 7084 } 7085} 7086 7087/***/ }), 7088
vendor: 1,597 bytes, lines 7089-7129
7089/***/ "./node_modules/date-fns/esm/getMinutes/index.js": 7090/*!*******************************************************!*\ 7091 !*** ./node_modules/date-fns/esm/getMinutes/index.js ***! 7092 \*******************************************************/ 7093/*! exports provided: default */ 7094/***/ (function(module, __webpack_exports__, __webpack_require__) { 7095 7096"use strict"; 7097__webpack_require__.r(__webpack_exports__); 7098/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getMinutes; }); 7099/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7100/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7101 7102 7103/** 7104 * @name getMinutes 7105 * @category Minute Helpers 7106 * @summary Get the minutes of the given date. 7107 * 7108 * @description 7109 * Get the minutes of the given date. 7110 * 7111 * @param {Date|Number} date - the given date 7112 * @returns {Number} the minutes 7113 * @throws {TypeError} 1 argument required 7114 * 7115 * @example 7116 * // Get the minutes of 29 February 2012 11:45:05: 7117 * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5)) 7118 * //=> 45 7119 */ 7120 7121function getMinutes(dirtyDate) { 7122 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 7123 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 7124 var minutes = date.getMinutes(); 7125 return minutes; 7126} 7127 7128/***/ }), 7129
vendor: 1,543 bytes, lines 7130-7170
7130/***/ "./node_modules/date-fns/esm/getMonth/index.js": 7131/*!*****************************************************!*\ 7132 !*** ./node_modules/date-fns/esm/getMonth/index.js ***! 7133 \*****************************************************/ 7134/*! exports provided: default */ 7135/***/ (function(module, __webpack_exports__, __webpack_require__) { 7136 7137"use strict"; 7138__webpack_require__.r(__webpack_exports__); 7139/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getMonth; }); 7140/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7141/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7142 7143 7144/** 7145 * @name getMonth 7146 * @category Month Helpers 7147 * @summary Get the month of the given date. 7148 * 7149 * @description 7150 * Get the month of the given date. 7151 * 7152 * @param {Date|Number} date - the given date 7153 * @returns {Number} the month 7154 * @throws {TypeError} 1 argument required 7155 * 7156 * @example 7157 * // Which month is 29 February 2012? 7158 * const result = getMonth(new Date(2012, 1, 29)) 7159 * //=> 1 7160 */ 7161 7162function getMonth(dirtyDate) { 7163 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 7164 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 7165 var month = date.getMonth(); 7166 return month; 7167} 7168 7169/***/ }), 7170
vendor: 1,597 bytes, lines 7171-7211
7171/***/ "./node_modules/date-fns/esm/getQuarter/index.js": 7172/*!*******************************************************!*\ 7173 !*** ./node_modules/date-fns/esm/getQuarter/index.js ***! 7174 \*******************************************************/ 7175/*! exports provided: default */ 7176/***/ (function(module, __webpack_exports__, __webpack_require__) { 7177 7178"use strict"; 7179__webpack_require__.r(__webpack_exports__); 7180/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getQuarter; }); 7181/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7182/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7183 7184 7185/** 7186 * @name getQuarter 7187 * @category Quarter Helpers 7188 * @summary Get the year quarter of the given date. 7189 * 7190 * @description 7191 * Get the year quarter of the given date. 7192 * 7193 * @param {Date|Number} date - the given date 7194 * @returns {Number} the quarter 7195 * @throws {TypeError} 1 argument required 7196 * 7197 * @example 7198 * // Which quarter is 2 July 2014? 7199 * const result = getQuarter(new Date(2014, 6, 2)) 7200 * //=> 3 7201 */ 7202 7203function getQuarter(dirtyDate) { 7204 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 7205 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 7206 var quarter = Math.floor(date.getMonth() / 3) + 1; 7207 return quarter; 7208} 7209 7210/***/ }), 7211
vendor: 1,605 bytes, lines 7212-7252
7212/***/ "./node_modules/date-fns/esm/getSeconds/index.js": 7213/*!*******************************************************!*\ 7214 !*** ./node_modules/date-fns/esm/getSeconds/index.js ***! 7215 \*******************************************************/ 7216/*! exports provided: default */ 7217/***/ (function(module, __webpack_exports__, __webpack_require__) { 7218 7219"use strict"; 7220__webpack_require__.r(__webpack_exports__); 7221/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getSeconds; }); 7222/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7223/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7224 7225 7226/** 7227 * @name getSeconds 7228 * @category Second Helpers 7229 * @summary Get the seconds of the given date. 7230 * 7231 * @description 7232 * Get the seconds of the given date. 7233 * 7234 * @param {Date|Number} date - the given date 7235 * @returns {Number} the seconds 7236 * @throws {TypeError} 1 argument required 7237 * 7238 * @example 7239 * // Get the seconds of 29 February 2012 11:45:05.123: 7240 * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123)) 7241 * //=> 5 7242 */ 7243 7244function getSeconds(dirtyDate) { 7245 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 7246 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 7247 var seconds = date.getSeconds(); 7248 return seconds; 7249} 7250 7251/***/ }), 7252
vendor: 1,631 bytes, lines 7253-7293
7253/***/ "./node_modules/date-fns/esm/getTime/index.js": 7254/*!****************************************************!*\ 7255 !*** ./node_modules/date-fns/esm/getTime/index.js ***! 7256 \****************************************************/ 7257/*! exports provided: default */ 7258/***/ (function(module, __webpack_exports__, __webpack_require__) { 7259 7260"use strict"; 7261__webpack_require__.r(__webpack_exports__); 7262/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getTime; }); 7263/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7264/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7265 7266 7267/** 7268 * @name getTime 7269 * @category Timestamp Helpers 7270 * @summary Get the milliseconds timestamp of the given date. 7271 * 7272 * @description 7273 * Get the milliseconds timestamp of the given date. 7274 * 7275 * @param {Date|Number} date - the given date 7276 * @returns {Number} the timestamp 7277 * @throws {TypeError} 1 argument required 7278 * 7279 * @example 7280 * // Get the timestamp of 29 February 2012 11:45:05.123: 7281 * const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123)) 7282 * //=> 1330515905123 7283 */ 7284 7285function getTime(dirtyDate) { 7286 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 7287 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 7288 var timestamp = date.getTime(); 7289 return timestamp; 7290} 7291 7292/***/ }), 7293
vendor: 1,490 bytes, lines 7294-7332
7294/***/ "./node_modules/date-fns/esm/getYear/index.js": 7295/*!****************************************************!*\ 7296 !*** ./node_modules/date-fns/esm/getYear/index.js ***! 7297 \****************************************************/ 7298/*! exports provided: default */ 7299/***/ (function(module, __webpack_exports__, __webpack_require__) { 7300 7301"use strict"; 7302__webpack_require__.r(__webpack_exports__); 7303/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getYear; }); 7304/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7305/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7306 7307 7308/** 7309 * @name getYear 7310 * @category Year Helpers 7311 * @summary Get the year of the given date. 7312 * 7313 * @description 7314 * Get the year of the given date. 7315 * 7316 * @param {Date|Number} date - the given date 7317 * @returns {Number} the year 7318 * @throws {TypeError} 1 argument required 7319 * 7320 * @example 7321 * // Which year is 2 July 2014? 7322 * const result = getYear(new Date(2014, 6, 2)) 7323 * //=> 2014 7324 */ 7325 7326function getYear(dirtyDate) { 7327 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 7328 return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getFullYear(); 7329} 7330 7331/***/ }), 7332
vendor: 1,856 bytes, lines 7333-7374
7333/***/ "./node_modules/date-fns/esm/isAfter/index.js": 7334/*!****************************************************!*\ 7335 !*** ./node_modules/date-fns/esm/isAfter/index.js ***! 7336 \****************************************************/ 7337/*! exports provided: default */ 7338/***/ (function(module, __webpack_exports__, __webpack_require__) { 7339 7340"use strict"; 7341__webpack_require__.r(__webpack_exports__); 7342/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isAfter; }); 7343/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7344/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7345 7346 7347/** 7348 * @name isAfter 7349 * @category Common Helpers 7350 * @summary Is the first date after the second one? 7351 * 7352 * @description 7353 * Is the first date after the second one? 7354 * 7355 * @param {Date|Number} date - the date that should be after the other one to return true 7356 * @param {Date|Number} dateToCompare - the date to compare with 7357 * @returns {Boolean} the first date is after the second date 7358 * @throws {TypeError} 2 arguments required 7359 * 7360 * @example 7361 * // Is 10 July 1989 after 11 February 1987? 7362 * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11)) 7363 * //=> true 7364 */ 7365 7366function isAfter(dirtyDate, dirtyDateToCompare) { 7367 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 7368 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 7369 var dateToCompare = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateToCompare); 7370 return date.getTime() > dateToCompare.getTime(); 7371} 7372 7373/***/ }), 7374
vendor: 1,870 bytes, lines 7375-7416
7375/***/ "./node_modules/date-fns/esm/isBefore/index.js": 7376/*!*****************************************************!*\ 7377 !*** ./node_modules/date-fns/esm/isBefore/index.js ***! 7378 \*****************************************************/ 7379/*! exports provided: default */ 7380/***/ (function(module, __webpack_exports__, __webpack_require__) { 7381 7382"use strict"; 7383__webpack_require__.r(__webpack_exports__); 7384/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isBefore; }); 7385/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7386/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7387 7388 7389/** 7390 * @name isBefore 7391 * @category Common Helpers 7392 * @summary Is the first date before the second one? 7393 * 7394 * @description 7395 * Is the first date before the second one? 7396 * 7397 * @param {Date|Number} date - the date that should be before the other one to return true 7398 * @param {Date|Number} dateToCompare - the date to compare with 7399 * @returns {Boolean} the first date is before the second date 7400 * @throws {TypeError} 2 arguments required 7401 * 7402 * @example 7403 * // Is 10 July 1989 before 11 February 1987? 7404 * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11)) 7405 * //=> false 7406 */ 7407 7408function isBefore(dirtyDate, dirtyDateToCompare) { 7409 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 7410 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 7411 var dateToCompare = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateToCompare); 7412 return date.getTime() < dateToCompare.getTime(); 7413} 7414 7415/***/ }), 7416
vendor: 2,099 bytes, lines 7417-7484
7417/***/ "./node_modules/date-fns/esm/isDate/index.js": 7418/*!***************************************************!*\ 7419 !*** ./node_modules/date-fns/esm/isDate/index.js ***! 7420 \***************************************************/ 7421/*! exports provided: default */ 7422/***/ (function(module, __webpack_exports__, __webpack_require__) { 7423 7424"use strict"; 7425__webpack_require__.r(__webpack_exports__); 7426/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isDate; }); 7427/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7428function _typeof(obj) { 7429 "@babel/helpers - typeof"; 7430 7431 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 7432 _typeof = function _typeof(obj) { 7433 return typeof obj; 7434 }; 7435 } else { 7436 _typeof = function _typeof(obj) { 7437 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 7438 }; 7439 } 7440 7441 return _typeof(obj); 7442} 7443 7444 7445/** 7446 * @name isDate 7447 * @category Common Helpers 7448 * @summary Is the given value a date? 7449 * 7450 * @description 7451 * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes. 7452 * 7453 * @param {*} value - the value to check 7454 * @returns {boolean} true if the given value is a date 7455 * @throws {TypeError} 1 arguments required 7456 * 7457 * @example 7458 * // For a valid date: 7459 * const result = isDate(new Date()) 7460 * //=> true 7461 * 7462 * @example 7463 * // For an invalid date: 7464 * const result = isDate(new Date(NaN)) 7465 * //=> true 7466 * 7467 * @example 7468 * // For some value: 7469 * const result = isDate('2014-02-31') 7470 * //=> false 7471 * 7472 * @example 7473 * // For an object: 7474 * const result = isDate({}) 7475 * //=> false 7476 */ 7477 7478function isDate(value) { 7479 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 7480 return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]'; 7481} 7482 7483/***/ }), 7484
vendor: 1,850 bytes, lines 7485-7529
7485/***/ "./node_modules/date-fns/esm/isEqual/index.js": 7486/*!****************************************************!*\ 7487 !*** ./node_modules/date-fns/esm/isEqual/index.js ***! 7488 \****************************************************/ 7489/*! exports provided: default */ 7490/***/ (function(module, __webpack_exports__, __webpack_require__) { 7491 7492"use strict"; 7493__webpack_require__.r(__webpack_exports__); 7494/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isEqual; }); 7495/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7496/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7497 7498 7499/** 7500 * @name isEqual 7501 * @category Common Helpers 7502 * @summary Are the given dates equal? 7503 * 7504 * @description 7505 * Are the given dates equal? 7506 * 7507 * @param {Date|Number} dateLeft - the first date to compare 7508 * @param {Date|Number} dateRight - the second date to compare 7509 * @returns {Boolean} the dates are equal 7510 * @throws {TypeError} 2 arguments required 7511 * 7512 * @example 7513 * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal? 7514 * const result = isEqual( 7515 * new Date(2014, 6, 2, 6, 30, 45, 0), 7516 * new Date(2014, 6, 2, 6, 30, 45, 500) 7517 * ) 7518 * //=> false 7519 */ 7520 7521function isEqual(dirtyLeftDate, dirtyRightDate) { 7522 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 7523 var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyLeftDate); 7524 var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyRightDate); 7525 return dateLeft.getTime() === dateRight.getTime(); 7526} 7527 7528/***/ }), 7529
vendor: 2,303 bytes, lines 7530-7581
7530/***/ "./node_modules/date-fns/esm/isSameDay/index.js": 7531/*!******************************************************!*\ 7532 !*** ./node_modules/date-fns/esm/isSameDay/index.js ***! 7533 \******************************************************/ 7534/*! exports provided: default */ 7535/***/ (function(module, __webpack_exports__, __webpack_require__) { 7536 7537"use strict"; 7538__webpack_require__.r(__webpack_exports__); 7539/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isSameDay; }); 7540/* harmony import */ var _startOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../startOfDay/index.js */ "./node_modules/date-fns/esm/startOfDay/index.js"); 7541/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7542 7543 7544/** 7545 * @name isSameDay 7546 * @category Day Helpers 7547 * @summary Are the given dates in the same day (and year and month)? 7548 * 7549 * @description 7550 * Are the given dates in the same day (and year and month)? 7551 * 7552 * @param {Date|Number} dateLeft - the first date to check 7553 * @param {Date|Number} dateRight - the second date to check 7554 * @returns {Boolean} the dates are in the same day (and year and month) 7555 * @throws {TypeError} 2 arguments required 7556 * 7557 * @example 7558 * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day? 7559 * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0)) 7560 * //=> true 7561 * 7562 * @example 7563 * // Are 4 September and 4 October in the same day? 7564 * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4)) 7565 * //=> false 7566 * 7567 * @example 7568 * // Are 4 September, 2014 and 4 September, 2015 in the same day? 7569 * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4)) 7570 * //=> false 7571 */ 7572 7573function isSameDay(dirtyDateLeft, dirtyDateRight) { 7574 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 7575 var dateLeftStartOfDay = Object(_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft); 7576 var dateRightStartOfDay = Object(_startOfDay_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight); 7577 return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime(); 7578} 7579 7580/***/ }), 7581
vendor: 2,126 bytes, lines 7582-7628
7582/***/ "./node_modules/date-fns/esm/isSameMonth/index.js": 7583/*!********************************************************!*\ 7584 !*** ./node_modules/date-fns/esm/isSameMonth/index.js ***! 7585 \********************************************************/ 7586/*! exports provided: default */ 7587/***/ (function(module, __webpack_exports__, __webpack_require__) { 7588 7589"use strict"; 7590__webpack_require__.r(__webpack_exports__); 7591/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isSameMonth; }); 7592/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7593/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7594 7595 7596/** 7597 * @name isSameMonth 7598 * @category Month Helpers 7599 * @summary Are the given dates in the same month (and year)? 7600 * 7601 * @description 7602 * Are the given dates in the same month (and year)? 7603 * 7604 * @param {Date|Number} dateLeft - the first date to check 7605 * @param {Date|Number} dateRight - the second date to check 7606 * @returns {Boolean} the dates are in the same month (and year) 7607 * @throws {TypeError} 2 arguments required 7608 * 7609 * @example 7610 * // Are 2 September 2014 and 25 September 2014 in the same month? 7611 * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25)) 7612 * //=> true 7613 * 7614 * @example 7615 * // Are 2 September 2014 and 25 September 2015 in the same month? 7616 * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25)) 7617 * //=> false 7618 */ 7619 7620function isSameMonth(dirtyDateLeft, dirtyDateRight) { 7621 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 7622 var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft); 7623 var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight); 7624 return dateLeft.getFullYear() === dateRight.getFullYear() && dateLeft.getMonth() === dateRight.getMonth(); 7625} 7626 7627/***/ }), 7628
vendor: 2,182 bytes, lines 7629-7675
7629/***/ "./node_modules/date-fns/esm/isSameQuarter/index.js": 7630/*!**********************************************************!*\ 7631 !*** ./node_modules/date-fns/esm/isSameQuarter/index.js ***! 7632 \**********************************************************/ 7633/*! exports provided: default */ 7634/***/ (function(module, __webpack_exports__, __webpack_require__) { 7635 7636"use strict"; 7637__webpack_require__.r(__webpack_exports__); 7638/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isSameQuarter; }); 7639/* harmony import */ var _startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../startOfQuarter/index.js */ "./node_modules/date-fns/esm/startOfQuarter/index.js"); 7640/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7641 7642 7643/** 7644 * @name isSameQuarter 7645 * @category Quarter Helpers 7646 * @summary Are the given dates in the same quarter (and year)? 7647 * 7648 * @description 7649 * Are the given dates in the same quarter (and year)? 7650 * 7651 * @param {Date|Number} dateLeft - the first date to check 7652 * @param {Date|Number} dateRight - the second date to check 7653 * @returns {Boolean} the dates are in the same quarter (and year) 7654 * @throws {TypeError} 2 arguments required 7655 * 7656 * @example 7657 * // Are 1 January 2014 and 8 March 2014 in the same quarter? 7658 * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2014, 2, 8)) 7659 * //=> true 7660 * 7661 * @example 7662 * // Are 1 January 2014 and 1 January 2015 in the same quarter? 7663 * const result = isSameQuarter(new Date(2014, 0, 1), new Date(2015, 0, 1)) 7664 * //=> false 7665 */ 7666 7667function isSameQuarter(dirtyDateLeft, dirtyDateRight) { 7668 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 7669 var dateLeftStartOfQuarter = Object(_startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft); 7670 var dateRightStartOfQuarter = Object(_startOfQuarter_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight); 7671 return dateLeftStartOfQuarter.getTime() === dateRightStartOfQuarter.getTime(); 7672} 7673 7674/***/ }), 7675
vendor: 1,860 bytes, lines 7676-7717
7676/***/ "./node_modules/date-fns/esm/isSameYear/index.js": 7677/*!*******************************************************!*\ 7678 !*** ./node_modules/date-fns/esm/isSameYear/index.js ***! 7679 \*******************************************************/ 7680/*! exports provided: default */ 7681/***/ (function(module, __webpack_exports__, __webpack_require__) { 7682 7683"use strict"; 7684__webpack_require__.r(__webpack_exports__); 7685/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isSameYear; }); 7686/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7687/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7688 7689 7690/** 7691 * @name isSameYear 7692 * @category Year Helpers 7693 * @summary Are the given dates in the same year? 7694 * 7695 * @description 7696 * Are the given dates in the same year? 7697 * 7698 * @param {Date|Number} dateLeft - the first date to check 7699 * @param {Date|Number} dateRight - the second date to check 7700 * @returns {Boolean} the dates are in the same year 7701 * @throws {TypeError} 2 arguments required 7702 * 7703 * @example 7704 * // Are 2 September 2014 and 25 September 2014 in the same year? 7705 * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25)) 7706 * //=> true 7707 */ 7708 7709function isSameYear(dirtyDateLeft, dirtyDateRight) { 7710 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 7711 var dateLeft = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateLeft); 7712 var dateRight = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDateRight); 7713 return dateLeft.getFullYear() === dateRight.getFullYear(); 7714} 7715 7716/***/ }), 7717
vendor: 2,268 bytes, lines 7718-7778
7718/***/ "./node_modules/date-fns/esm/isValid/index.js": 7719/*!****************************************************!*\ 7720 !*** ./node_modules/date-fns/esm/isValid/index.js ***! 7721 \****************************************************/ 7722/*! exports provided: default */ 7723/***/ (function(module, __webpack_exports__, __webpack_require__) { 7724 7725"use strict"; 7726__webpack_require__.r(__webpack_exports__); 7727/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isValid; }); 7728/* harmony import */ var _isDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../isDate/index.js */ "./node_modules/date-fns/esm/isDate/index.js"); 7729/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7730/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7731 7732 7733 7734/** 7735 * @name isValid 7736 * @category Common Helpers 7737 * @summary Is the given date valid? 7738 * 7739 * @description 7740 * Returns false if argument is Invalid Date and true otherwise. 7741 * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate} 7742 * Invalid Date is a Date, whose time value is NaN. 7743 * 7744 * Time value of Date: http://es5.github.io/#x15.9.1.1 7745 * 7746 * @param {*} date - the date to check 7747 * @returns {Boolean} the date is valid 7748 * @throws {TypeError} 1 argument required 7749 * 7750 * @example 7751 * // For the valid date: 7752 * const result = isValid(new Date(2014, 1, 31)) 7753 * //=> true 7754 * 7755 * @example 7756 * // For the value, convertable into a date: 7757 * const result = isValid(1393804800000) 7758 * //=> true 7759 * 7760 * @example 7761 * // For the invalid date: 7762 * const result = isValid(new Date('')) 7763 * //=> false 7764 */ 7765 7766function isValid(dirtyDate) { 7767 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments); 7768 7769 if (!Object(_isDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate) && typeof dirtyDate !== 'number') { 7770 return false; 7771 } 7772 7773 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 7774 return !isNaN(Number(date)); 7775} 7776 7777/***/ }), 7778
vendor: 2,753 bytes, lines 7779-7847
7779/***/ "./node_modules/date-fns/esm/isWithinInterval/index.js": 7780/*!*************************************************************!*\ 7781 !*** ./node_modules/date-fns/esm/isWithinInterval/index.js ***! 7782 \*************************************************************/ 7783/*! exports provided: default */ 7784/***/ (function(module, __webpack_exports__, __webpack_require__) { 7785 7786"use strict"; 7787__webpack_require__.r(__webpack_exports__); 7788/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isWithinInterval; }); 7789/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 7790/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 7791 7792 7793/** 7794 * @name isWithinInterval 7795 * @category Interval Helpers 7796 * @summary Is the given date within the interval? 7797 * 7798 * @description 7799 * Is the given date within the interval? (Including start and end.) 7800 * 7801 * @param {Date|Number} date - the date to check 7802 * @param {Interval} interval - the interval to check 7803 * @returns {Boolean} the date is within the interval 7804 * @throws {TypeError} 2 arguments required 7805 * @throws {RangeError} The start of an interval cannot be after its end 7806 * @throws {RangeError} Date in interval cannot be `Invalid Date` 7807 * 7808 * @example 7809 * // For the date within the interval: 7810 * isWithinInterval(new Date(2014, 0, 3), { 7811 * start: new Date(2014, 0, 1), 7812 * end: new Date(2014, 0, 7) 7813 * }) 7814 * //=> true 7815 * 7816 * @example 7817 * // For the date outside of the interval: 7818 * isWithinInterval(new Date(2014, 0, 10), { 7819 * start: new Date(2014, 0, 1), 7820 * end: new Date(2014, 0, 7) 7821 * }) 7822 * //=> false 7823 * 7824 * @example 7825 * // For date equal to interval start: 7826 * isWithinInterval(date, { start, end: date }) // => true 7827 * 7828 * @example 7829 * // For date equal to interval end: 7830 * isWithinInterval(date, { start: date, end }) // => true 7831 */ 7832 7833function isWithinInterval(dirtyDate, interval) { 7834 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 7835 var time = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate).getTime(); 7836 var startTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(interval.start).getTime(); 7837 var endTime = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(interval.end).getTime(); // Throw an exception if start date is after end date or if any date is `Invalid Date` 7838 7839 if (!(startTime <= endTime)) { 7840 throw new RangeError('Invalid interval'); 7841 } 7842 7843 return time >= startTime && time <= endTime; 7844} 7845 7846/***/ }), 7847
vendor: 963 bytes, lines 7848-7869
7848/***/ "./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js": 7849/*!**************************************************************************!*\ 7850 !*** ./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js ***! 7851 \**************************************************************************/ 7852/*! exports provided: default */ 7853/***/ (function(module, __webpack_exports__, __webpack_require__) { 7854 7855"use strict"; 7856__webpack_require__.r(__webpack_exports__); 7857/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return buildFormatLongFn; }); 7858function buildFormatLongFn(args) { 7859 return function () { 7860 var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; // TODO: Remove String() 7861 7862 var width = options.width ? String(options.width) : args.defaultWidth; 7863 var format = args.formats[width] || args.formats[args.defaultWidth]; 7864 return format; 7865 }; 7866} 7867 7868/***/ }), 7869
vendor: 1,679 bytes, lines 7870-7904
7870/***/ "./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js": 7871/*!************************************************************************!*\ 7872 !*** ./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js ***! 7873 \************************************************************************/ 7874/*! exports provided: default */ 7875/***/ (function(module, __webpack_exports__, __webpack_require__) { 7876 7877"use strict"; 7878__webpack_require__.r(__webpack_exports__); 7879/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return buildLocalizeFn; }); 7880function buildLocalizeFn(args) { 7881 return function (dirtyIndex, options) { 7882 var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone'; 7883 var valuesArray; 7884 7885 if (context === 'formatting' && args.formattingValues) { 7886 var defaultWidth = args.defaultFormattingWidth || args.defaultWidth; 7887 var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth; 7888 valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth]; 7889 } else { 7890 var _defaultWidth = args.defaultWidth; 7891 7892 var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth; 7893 7894 valuesArray = args.values[_width] || args.values[_defaultWidth]; 7895 } 7896 7897 var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it! 7898 7899 return valuesArray[index]; 7900 }; 7901} 7902 7903/***/ }), 7904
vendor: 1,981 bytes, lines 7905-7965
7905/***/ "./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js": 7906/*!*********************************************************************!*\ 7907 !*** ./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js ***! 7908 \*********************************************************************/ 7909/*! exports provided: default */ 7910/***/ (function(module, __webpack_exports__, __webpack_require__) { 7911 7912"use strict"; 7913__webpack_require__.r(__webpack_exports__); 7914/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return buildMatchFn; }); 7915function buildMatchFn(args) { 7916 return function (string) { 7917 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 7918 var width = options.width; 7919 var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth]; 7920 var matchResult = string.match(matchPattern); 7921 7922 if (!matchResult) { 7923 return null; 7924 } 7925 7926 var matchedString = matchResult[0]; 7927 var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth]; 7928 var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) { 7929 return pattern.test(matchedString); 7930 }) : findKey(parsePatterns, function (pattern) { 7931 return pattern.test(matchedString); 7932 }); 7933 var value; 7934 value = args.valueCallback ? args.valueCallback(key) : key; 7935 value = options.valueCallback ? options.valueCallback(value) : value; 7936 var rest = string.slice(matchedString.length); 7937 return { 7938 value: value, 7939 rest: rest 7940 }; 7941 }; 7942} 7943 7944function findKey(object, predicate) { 7945 for (var key in object) { 7946 if (object.hasOwnProperty(key) && predicate(object[key])) { 7947 return key; 7948 } 7949 } 7950 7951 return undefined; 7952} 7953 7954function findIndex(array, predicate) { 7955 for (var key = 0; key < array.length; key++) { 7956 if (predicate(array[key])) { 7957 return key; 7958 } 7959 } 7960 7961 return undefined; 7962} 7963 7964/***/ }), 7965
vendor: 1,280 bytes, lines 7966-7995
7966/***/ "./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js": 7967/*!****************************************************************************!*\ 7968 !*** ./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js ***! 7969 \****************************************************************************/ 7970/*! exports provided: default */ 7971/***/ (function(module, __webpack_exports__, __webpack_require__) { 7972 7973"use strict"; 7974__webpack_require__.r(__webpack_exports__); 7975/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return buildMatchPatternFn; }); 7976function buildMatchPatternFn(args) { 7977 return function (string) { 7978 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 7979 var matchResult = string.match(args.matchPattern); 7980 if (!matchResult) return null; 7981 var matchedString = matchResult[0]; 7982 var parseResult = string.match(args.parsePattern); 7983 if (!parseResult) return null; 7984 var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0]; 7985 value = options.valueCallback ? options.valueCallback(value) : value; 7986 var rest = string.slice(matchedString.length); 7987 return { 7988 value: value, 7989 rest: rest 7990 }; 7991 }; 7992} 7993 7994/***/ }), 7995
vendor: 2,373 bytes, lines 7996-8095
7996/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js": 7997/*!*****************************************************************************!*\ 7998 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js ***! 7999 \*****************************************************************************/ 8000/*! exports provided: default */ 8001/***/ (function(module, __webpack_exports__, __webpack_require__) { 8002 8003"use strict"; 8004__webpack_require__.r(__webpack_exports__); 8005var formatDistanceLocale = { 8006 lessThanXSeconds: { 8007 one: 'less than a second', 8008 other: 'less than {{count}} seconds' 8009 }, 8010 xSeconds: { 8011 one: '1 second', 8012 other: '{{count}} seconds' 8013 }, 8014 halfAMinute: 'half a minute', 8015 lessThanXMinutes: { 8016 one: 'less than a minute', 8017 other: 'less than {{count}} minutes' 8018 }, 8019 xMinutes: { 8020 one: '1 minute', 8021 other: '{{count}} minutes' 8022 }, 8023 aboutXHours: { 8024 one: 'about 1 hour', 8025 other: 'about {{count}} hours' 8026 }, 8027 xHours: { 8028 one: '1 hour', 8029 other: '{{count}} hours' 8030 }, 8031 xDays: { 8032 one: '1 day', 8033 other: '{{count}} days' 8034 }, 8035 aboutXWeeks: { 8036 one: 'about 1 week', 8037 other: 'about {{count}} weeks' 8038 }, 8039 xWeeks: { 8040 one: '1 week', 8041 other: '{{count}} weeks' 8042 }, 8043 aboutXMonths: { 8044 one: 'about 1 month', 8045 other: 'about {{count}} months' 8046 }, 8047 xMonths: { 8048 one: '1 month', 8049 other: '{{count}} months' 8050 }, 8051 aboutXYears: { 8052 one: 'about 1 year', 8053 other: 'about {{count}} years' 8054 }, 8055 xYears: { 8056 one: '1 year', 8057 other: '{{count}} years' 8058 }, 8059 overXYears: { 8060 one: 'over 1 year', 8061 other: 'over {{count}} years' 8062 }, 8063 almostXYears: { 8064 one: 'almost 1 year', 8065 other: 'almost {{count}} years' 8066 } 8067}; 8068 8069var formatDistance = function formatDistance(token, count, options) { 8070 var result; 8071 var tokenValue = formatDistanceLocale[token]; 8072 8073 if (typeof tokenValue === 'string') { 8074 result = tokenValue; 8075 } else if (count === 1) { 8076 result = tokenValue.one; 8077 } else { 8078 result = tokenValue.other.replace('{{count}}', count.toString()); 8079 } 8080 8081 if (options !== null && options !== void 0 && options.addSuffix) { 8082 if (options.comparison && options.comparison > 0) { 8083 return 'in ' + result; 8084 } else { 8085 return result + ' ago'; 8086 } 8087 } 8088 8089 return result; 8090}; 8091 8092/* harmony default export */ __webpack_exports__["default"] = (formatDistance); 8093 8094/***/ }), 8095
vendor: 1,644 bytes, lines 8096-8142
8096/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js": 8097/*!*************************************************************************!*\ 8098 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js ***! 8099 \*************************************************************************/ 8100/*! exports provided: default */ 8101/***/ (function(module, __webpack_exports__, __webpack_require__) { 8102 8103"use strict"; 8104__webpack_require__.r(__webpack_exports__); 8105/* harmony import */ var _lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/buildFormatLongFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js"); 8106 8107var dateFormats = { 8108 full: 'EEEE, MMMM do, y', 8109 long: 'MMMM do, y', 8110 medium: 'MMM d, y', 8111 short: 'MM/dd/yyyy' 8112}; 8113var timeFormats = { 8114 full: 'h:mm:ss a zzzz', 8115 long: 'h:mm:ss a z', 8116 medium: 'h:mm:ss a', 8117 short: 'h:mm a' 8118}; 8119var dateTimeFormats = { 8120 full: "{{date}} 'at' {{time}}", 8121 long: "{{date}} 'at' {{time}}", 8122 medium: '{{date}}, {{time}}', 8123 short: '{{date}}, {{time}}' 8124}; 8125var formatLong = { 8126 date: Object(_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8127 formats: dateFormats, 8128 defaultWidth: 'full' 8129 }), 8130 time: Object(_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8131 formats: timeFormats, 8132 defaultWidth: 'full' 8133 }), 8134 dateTime: Object(_lib_buildFormatLongFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8135 formats: dateTimeFormats, 8136 defaultWidth: 'full' 8137 }) 8138}; 8139/* harmony default export */ __webpack_exports__["default"] = (formatLong); 8140 8141/***/ }), 8142
vendor: 899 bytes, lines 8143-8168
8143/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js": 8144/*!*****************************************************************************!*\ 8145 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js ***! 8146 \*****************************************************************************/ 8147/*! exports provided: default */ 8148/***/ (function(module, __webpack_exports__, __webpack_require__) { 8149 8150"use strict"; 8151__webpack_require__.r(__webpack_exports__); 8152var formatRelativeLocale = { 8153 lastWeek: "'last' eeee 'at' p", 8154 yesterday: "'yesterday at' p", 8155 today: "'today at' p", 8156 tomorrow: "'tomorrow at' p", 8157 nextWeek: "eeee 'at' p", 8158 other: 'P' 8159}; 8160 8161var formatRelative = function formatRelative(token, _date, _baseDate, _options) { 8162 return formatRelativeLocale[token]; 8163}; 8164 8165/* harmony default export */ __webpack_exports__["default"] = (formatRelative); 8166 8167/***/ }), 8168
vendor: 4,833 bytes, lines 8169-8327
8169/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js": 8170/*!***********************************************************************!*\ 8171 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js ***! 8172 \***********************************************************************/ 8173/*! exports provided: default */ 8174/***/ (function(module, __webpack_exports__, __webpack_require__) { 8175 8176"use strict"; 8177__webpack_require__.r(__webpack_exports__); 8178/* harmony import */ var _lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/buildLocalizeFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js"); 8179 8180var eraValues = { 8181 narrow: ['B', 'A'], 8182 abbreviated: ['BC', 'AD'], 8183 wide: ['Before Christ', 'Anno Domini'] 8184}; 8185var quarterValues = { 8186 narrow: ['1', '2', '3', '4'], 8187 abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'], 8188 wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] 8189}; // Note: in English, the names of days of the week and months are capitalized. 8190// If you are making a new locale based on this one, check if the same is true for the language you're working on. 8191// Generally, formatted dates should look like they are in the middle of a sentence, 8192// e.g. in Spanish language the weekdays and months should be in the lowercase. 8193 8194var monthValues = { 8195 narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'], 8196 abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 8197 wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] 8198}; 8199var dayValues = { 8200 narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], 8201 short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], 8202 abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], 8203 wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] 8204}; 8205var dayPeriodValues = { 8206 narrow: { 8207 am: 'a', 8208 pm: 'p', 8209 midnight: 'mi', 8210 noon: 'n', 8211 morning: 'morning', 8212 afternoon: 'afternoon', 8213 evening: 'evening', 8214 night: 'night' 8215 }, 8216 abbreviated: { 8217 am: 'AM', 8218 pm: 'PM', 8219 midnight: 'midnight', 8220 noon: 'noon', 8221 morning: 'morning', 8222 afternoon: 'afternoon', 8223 evening: 'evening', 8224 night: 'night' 8225 }, 8226 wide: { 8227 am: 'a.m.', 8228 pm: 'p.m.', 8229 midnight: 'midnight', 8230 noon: 'noon', 8231 morning: 'morning', 8232 afternoon: 'afternoon', 8233 evening: 'evening', 8234 night: 'night' 8235 } 8236}; 8237var formattingDayPeriodValues = { 8238 narrow: { 8239 am: 'a', 8240 pm: 'p', 8241 midnight: 'mi', 8242 noon: 'n', 8243 morning: 'in the morning', 8244 afternoon: 'in the afternoon', 8245 evening: 'in the evening', 8246 night: 'at night' 8247 }, 8248 abbreviated: { 8249 am: 'AM', 8250 pm: 'PM', 8251 midnight: 'midnight', 8252 noon: 'noon', 8253 morning: 'in the morning', 8254 afternoon: 'in the afternoon', 8255 evening: 'in the evening', 8256 night: 'at night' 8257 }, 8258 wide: { 8259 am: 'a.m.', 8260 pm: 'p.m.', 8261 midnight: 'midnight', 8262 noon: 'noon', 8263 morning: 'in the morning', 8264 afternoon: 'in the afternoon', 8265 evening: 'in the evening', 8266 night: 'at night' 8267 } 8268}; 8269 8270var ordinalNumber = function ordinalNumber(dirtyNumber, _options) { 8271 var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example, 8272 // if they are different for different grammatical genders, 8273 // use `options.unit`. 8274 // 8275 // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear', 8276 // 'day', 'hour', 'minute', 'second'. 8277 8278 var rem100 = number % 100; 8279 8280 if (rem100 > 20 || rem100 < 10) { 8281 switch (rem100 % 10) { 8282 case 1: 8283 return number + 'st'; 8284 8285 case 2: 8286 return number + 'nd'; 8287 8288 case 3: 8289 return number + 'rd'; 8290 } 8291 } 8292 8293 return number + 'th'; 8294}; 8295 8296var localize = { 8297 ordinalNumber: ordinalNumber, 8298 era: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8299 values: eraValues, 8300 defaultWidth: 'wide' 8301 }), 8302 quarter: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8303 values: quarterValues, 8304 defaultWidth: 'wide', 8305 argumentCallback: function argumentCallback(quarter) { 8306 return quarter - 1; 8307 } 8308 }), 8309 month: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8310 values: monthValues, 8311 defaultWidth: 'wide' 8312 }), 8313 day: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8314 values: dayValues, 8315 defaultWidth: 'wide' 8316 }), 8317 dayPeriod: Object(_lib_buildLocalizeFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8318 values: dayPeriodValues, 8319 defaultWidth: 'wide', 8320 formattingValues: formattingDayPeriodValues, 8321 defaultFormattingWidth: 'wide' 8322 }) 8323}; 8324/* harmony default export */ __webpack_exports__["default"] = (localize); 8325 8326/***/ }), 8327
vendor: 4,279 bytes, lines 8328-8439
8328/***/ "./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js": 8329/*!********************************************************************!*\ 8330 !*** ./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js ***! 8331 \********************************************************************/ 8332/*! exports provided: default */ 8333/***/ (function(module, __webpack_exports__, __webpack_require__) { 8334 8335"use strict"; 8336__webpack_require__.r(__webpack_exports__); 8337/* harmony import */ var _lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_lib/buildMatchFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js"); 8338/* harmony import */ var _lib_buildMatchPatternFn_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_lib/buildMatchPatternFn/index.js */ "./node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js"); 8339 8340 8341var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i; 8342var parseOrdinalNumberPattern = /\d+/i; 8343var matchEraPatterns = { 8344 narrow: /^(b|a)/i, 8345 abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, 8346 wide: /^(before christ|before common era|anno domini|common era)/i 8347}; 8348var parseEraPatterns = { 8349 any: [/^b/i, /^(a|c)/i] 8350}; 8351var matchQuarterPatterns = { 8352 narrow: /^[1234]/i, 8353 abbreviated: /^q[1234]/i, 8354 wide: /^[1234](th|st|nd|rd)? quarter/i 8355}; 8356var parseQuarterPatterns = { 8357 any: [/1/i, /2/i, /3/i, /4/i] 8358}; 8359var matchMonthPatterns = { 8360 narrow: /^[jfmasond]/i, 8361 abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, 8362 wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i 8363}; 8364var parseMonthPatterns = { 8365 narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], 8366 any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] 8367}; 8368var matchDayPatterns = { 8369 narrow: /^[smtwf]/i, 8370 short: /^(su|mo|tu|we|th|fr|sa)/i, 8371 abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, 8372 wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i 8373}; 8374var parseDayPatterns = { 8375 narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], 8376 any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] 8377}; 8378var matchDayPeriodPatterns = { 8379 narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, 8380 any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i 8381}; 8382var parseDayPeriodPatterns = { 8383 any: { 8384 am: /^a/i, 8385 pm: /^p/i, 8386 midnight: /^mi/i, 8387 noon: /^no/i, 8388 morning: /morning/i, 8389 afternoon: /afternoon/i, 8390 evening: /evening/i, 8391 night: /night/i 8392 } 8393}; 8394var match = { 8395 ordinalNumber: Object(_lib_buildMatchPatternFn_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ 8396 matchPattern: matchOrdinalNumberPattern, 8397 parsePattern: parseOrdinalNumberPattern, 8398 valueCallback: function valueCallback(value) { 8399 return parseInt(value, 10); 8400 } 8401 }), 8402 era: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8403 matchPatterns: matchEraPatterns, 8404 defaultMatchWidth: 'wide', 8405 parsePatterns: parseEraPatterns, 8406 defaultParseWidth: 'any' 8407 }), 8408 quarter: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8409 matchPatterns: matchQuarterPatterns, 8410 defaultMatchWidth: 'wide', 8411 parsePatterns: parseQuarterPatterns, 8412 defaultParseWidth: 'any', 8413 valueCallback: function valueCallback(index) { 8414 return index + 1; 8415 } 8416 }), 8417 month: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8418 matchPatterns: matchMonthPatterns, 8419 defaultMatchWidth: 'wide', 8420 parsePatterns: parseMonthPatterns, 8421 defaultParseWidth: 'any' 8422 }), 8423 day: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8424 matchPatterns: matchDayPatterns, 8425 defaultMatchWidth: 'wide', 8426 parsePatterns: parseDayPatterns, 8427 defaultParseWidth: 'any' 8428 }), 8429 dayPeriod: Object(_lib_buildMatchFn_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])({ 8430 matchPatterns: matchDayPeriodPatterns, 8431 defaultMatchWidth: 'any', 8432 parsePatterns: parseDayPeriodPatterns, 8433 defaultParseWidth: 'any' 8434 }) 8435}; 8436/* harmony default export */ __webpack_exports__["default"] = (match); 8437 8438/***/ }), 8439
vendor: 2,325 bytes, lines 8440-8486
8440/***/ "./node_modules/date-fns/esm/locale/en-US/index.js": 8441/*!*********************************************************!*\ 8442 !*** ./node_modules/date-fns/esm/locale/en-US/index.js ***! 8443 \*********************************************************/ 8444/*! exports provided: default */ 8445/***/ (function(module, __webpack_exports__, __webpack_require__) { 8446 8447"use strict"; 8448__webpack_require__.r(__webpack_exports__); 8449/* harmony import */ var _lib_formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./_lib/formatDistance/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js"); 8450/* harmony import */ var _lib_formatLong_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./_lib/formatLong/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js"); 8451/* harmony import */ var _lib_formatRelative_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./_lib/formatRelative/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js"); 8452/* harmony import */ var _lib_localize_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./_lib/localize/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js"); 8453/* harmony import */ var _lib_match_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./_lib/match/index.js */ "./node_modules/date-fns/esm/locale/en-US/_lib/match/index.js"); 8454 8455 8456 8457 8458 8459/** 8460 * @type {Locale} 8461 * @category Locales 8462 * @summary English locale (United States). 8463 * @language English 8464 * @iso-639-2 eng 8465 * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp} 8466 * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss} 8467 */ 8468 8469var locale = { 8470 code: 'en-US', 8471 formatDistance: _lib_formatDistance_index_js__WEBPACK_IMPORTED_MODULE_0__["default"], 8472 formatLong: _lib_formatLong_index_js__WEBPACK_IMPORTED_MODULE_1__["default"], 8473 formatRelative: _lib_formatRelative_index_js__WEBPACK_IMPORTED_MODULE_2__["default"], 8474 localize: _lib_localize_index_js__WEBPACK_IMPORTED_MODULE_3__["default"], 8475 match: _lib_match_index_js__WEBPACK_IMPORTED_MODULE_4__["default"], 8476 options: { 8477 weekStartsOn: 0 8478 /* Sunday */ 8479 , 8480 firstWeekContainsDate: 1 8481 } 8482}; 8483/* harmony default export */ __webpack_exports__["default"] = (locale); 8484 8485/***/ }), 8486
vendor: 2,790 bytes, lines 8487-8565
8487/***/ "./node_modules/date-fns/esm/max/index.js": 8488/*!************************************************!*\ 8489 !*** ./node_modules/date-fns/esm/max/index.js ***! 8490 \************************************************/ 8491/*! exports provided: default */ 8492/***/ (function(module, __webpack_exports__, __webpack_require__) { 8493 8494"use strict"; 8495__webpack_require__.r(__webpack_exports__); 8496/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return max; }); 8497/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 8498/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 8499function _typeof(obj) { 8500 "@babel/helpers - typeof"; 8501 8502 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 8503 _typeof = function _typeof(obj) { 8504 return typeof obj; 8505 }; 8506 } else { 8507 _typeof = function _typeof(obj) { 8508 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 8509 }; 8510 } 8511 8512 return _typeof(obj); 8513} 8514 8515 8516 8517/** 8518 * @name max 8519 * @category Common Helpers 8520 * @summary Return the latest of the given dates. 8521 * 8522 * @description 8523 * Return the latest of the given dates. 8524 * 8525 * @param {Date[]|Number[]} datesArray - the dates to compare 8526 * @returns {Date} the latest of the dates 8527 * @throws {TypeError} 1 argument required 8528 * 8529 * @example 8530 * // Which of these dates is the latest? 8531 * const result = max([ 8532 * new Date(1989, 6, 10), 8533 * new Date(1987, 1, 11), 8534 * new Date(1995, 6, 2), 8535 * new Date(1990, 0, 1) 8536 * ]) 8537 * //=> Sun Jul 02 1995 00:00:00 8538 */ 8539 8540function max(dirtyDatesArray) { 8541 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 8542 var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method 8543 8544 if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') { 8545 datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. 8546 } else if (_typeof(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) { 8547 datesArray = Array.prototype.slice.call(dirtyDatesArray); 8548 } else { 8549 // `dirtyDatesArray` is non-iterable, return Invalid Date 8550 return new Date(NaN); 8551 } 8552 8553 var result; 8554 datesArray.forEach(function (dirtyDate) { 8555 var currentDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 8556 8557 if (result === undefined || result < currentDate || isNaN(Number(currentDate))) { 8558 result = currentDate; 8559 } 8560 }); 8561 return result || new Date(NaN); 8562} 8563 8564/***/ }), 8565
vendor: 2,804 bytes, lines 8566-8644
8566/***/ "./node_modules/date-fns/esm/min/index.js": 8567/*!************************************************!*\ 8568 !*** ./node_modules/date-fns/esm/min/index.js ***! 8569 \************************************************/ 8570/*! exports provided: default */ 8571/***/ (function(module, __webpack_exports__, __webpack_require__) { 8572 8573"use strict"; 8574__webpack_require__.r(__webpack_exports__); 8575/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return min; }); 8576/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 8577/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 8578function _typeof(obj) { 8579 "@babel/helpers - typeof"; 8580 8581 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 8582 _typeof = function _typeof(obj) { 8583 return typeof obj; 8584 }; 8585 } else { 8586 _typeof = function _typeof(obj) { 8587 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 8588 }; 8589 } 8590 8591 return _typeof(obj); 8592} 8593 8594 8595 8596/** 8597 * @name min 8598 * @category Common Helpers 8599 * @summary Returns the earliest of the given dates. 8600 * 8601 * @description 8602 * Returns the earliest of the given dates. 8603 * 8604 * @param {Date[]|Number[]} datesArray - the dates to compare 8605 * @returns {Date} - the earliest of the dates 8606 * @throws {TypeError} 1 argument required 8607 * 8608 * @example 8609 * // Which of these dates is the earliest? 8610 * const result = min([ 8611 * new Date(1989, 6, 10), 8612 * new Date(1987, 1, 11), 8613 * new Date(1995, 6, 2), 8614 * new Date(1990, 0, 1) 8615 * ]) 8616 * //=> Wed Feb 11 1987 00:00:00 8617 */ 8618 8619function min(dirtyDatesArray) { 8620 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 8621 var datesArray; // `dirtyDatesArray` is Array, Set or Map, or object with custom `forEach` method 8622 8623 if (dirtyDatesArray && typeof dirtyDatesArray.forEach === 'function') { 8624 datesArray = dirtyDatesArray; // If `dirtyDatesArray` is Array-like Object, convert to Array. 8625 } else if (_typeof(dirtyDatesArray) === 'object' && dirtyDatesArray !== null) { 8626 datesArray = Array.prototype.slice.call(dirtyDatesArray); 8627 } else { 8628 // `dirtyDatesArray` is non-iterable, return Invalid Date 8629 return new Date(NaN); 8630 } 8631 8632 var result; 8633 datesArray.forEach(function (dirtyDate) { 8634 var currentDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 8635 8636 if (result === undefined || result > currentDate || isNaN(currentDate.getDate())) { 8637 result = currentDate; 8638 } 8639 }); 8640 return result || new Date(NaN); 8641} 8642 8643/***/ }), 8644
vendor: 2,088 bytes, lines 8645-8709
8645/***/ "./node_modules/date-fns/esm/parse/_lib/Parser.js": 8646/*!********************************************************!*\ 8647 !*** ./node_modules/date-fns/esm/parse/_lib/Parser.js ***! 8648 \********************************************************/ 8649/*! exports provided: Parser */ 8650/***/ (function(module, __webpack_exports__, __webpack_require__) { 8651 8652"use strict"; 8653__webpack_require__.r(__webpack_exports__); 8654/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Parser", function() { return Parser; }); 8655/* harmony import */ var _Setter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Setter.js */ "./node_modules/date-fns/esm/parse/_lib/Setter.js"); 8656function _classCallCheck(instance, Constructor) { 8657 if (!(instance instanceof Constructor)) { 8658 throw new TypeError("Cannot call a class as a function"); 8659 } 8660} 8661 8662function _defineProperties(target, props) { 8663 for (var i = 0; i < props.length; i++) { 8664 var descriptor = props[i]; 8665 descriptor.enumerable = descriptor.enumerable || false; 8666 descriptor.configurable = true; 8667 if ("value" in descriptor) descriptor.writable = true; 8668 Object.defineProperty(target, descriptor.key, descriptor); 8669 } 8670} 8671 8672function _createClass(Constructor, protoProps, staticProps) { 8673 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 8674 if (staticProps) _defineProperties(Constructor, staticProps); 8675 return Constructor; 8676} 8677 8678 8679var Parser = /*#__PURE__*/function () { 8680 function Parser() { 8681 _classCallCheck(this, Parser); 8682 } 8683 8684 _createClass(Parser, [{ 8685 key: "run", 8686 value: function run(dateString, token, match, options) { 8687 var result = this.parse(dateString, token, match, options); 8688 8689 if (!result) { 8690 return null; 8691 } 8692 8693 return { 8694 setter: new _Setter_js__WEBPACK_IMPORTED_MODULE_0__["ValueSetter"](result.value, this.validate, this.set, this.priority, this.subPriority), 8695 rest: result.rest 8696 }; 8697 } 8698 }, { 8699 key: "validate", 8700 value: function validate(_utcDate, _value, _options) { 8701 return true; 8702 } 8703 }]); 8704 8705 return Parser; 8706}(); 8707 8708/***/ }), 8709
vendor: 6,701 bytes, lines 8710-8949
8710/***/ "./node_modules/date-fns/esm/parse/_lib/Setter.js": 8711/*!********************************************************!*\ 8712 !*** ./node_modules/date-fns/esm/parse/_lib/Setter.js ***! 8713 \********************************************************/ 8714/*! exports provided: Setter, ValueSetter, DateToSystemTimezoneSetter */ 8715/***/ (function(module, __webpack_exports__, __webpack_require__) { 8716 8717"use strict"; 8718__webpack_require__.r(__webpack_exports__); 8719/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Setter", function() { return Setter; }); 8720/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValueSetter", function() { return ValueSetter; }); 8721/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateToSystemTimezoneSetter", function() { return DateToSystemTimezoneSetter; }); 8722function _typeof(obj) { 8723 "@babel/helpers - typeof"; 8724 8725 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 8726 _typeof = function _typeof(obj) { 8727 return typeof obj; 8728 }; 8729 } else { 8730 _typeof = function _typeof(obj) { 8731 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 8732 }; 8733 } 8734 8735 return _typeof(obj); 8736} 8737 8738function _inherits(subClass, superClass) { 8739 if (typeof superClass !== "function" && superClass !== null) { 8740 throw new TypeError("Super expression must either be null or a function"); 8741 } 8742 8743 subClass.prototype = Object.create(superClass && superClass.prototype, { 8744 constructor: { 8745 value: subClass, 8746 writable: true, 8747 configurable: true 8748 } 8749 }); 8750 if (superClass) _setPrototypeOf(subClass, superClass); 8751} 8752 8753function _setPrototypeOf(o, p) { 8754 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 8755 o.__proto__ = p; 8756 return o; 8757 }; 8758 8759 return _setPrototypeOf(o, p); 8760} 8761 8762function _createSuper(Derived) { 8763 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 8764 8765 return function _createSuperInternal() { 8766 var Super = _getPrototypeOf(Derived), 8767 result; 8768 8769 if (hasNativeReflectConstruct) { 8770 var NewTarget = _getPrototypeOf(this).constructor; 8771 8772 result = Reflect.construct(Super, arguments, NewTarget); 8773 } else { 8774 result = Super.apply(this, arguments); 8775 } 8776 8777 return _possibleConstructorReturn(this, result); 8778 }; 8779} 8780 8781function _possibleConstructorReturn(self, call) { 8782 if (call && (_typeof(call) === "object" || typeof call === "function")) { 8783 return call; 8784 } 8785 8786 return _assertThisInitialized(self); 8787} 8788 8789function _assertThisInitialized(self) { 8790 if (self === void 0) { 8791 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 8792 } 8793 8794 return self; 8795} 8796 8797function _isNativeReflectConstruct() { 8798 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 8799 if (Reflect.construct.sham) return false; 8800 if (typeof Proxy === "function") return true; 8801 8802 try { 8803 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 8804 return true; 8805 } catch (e) { 8806 return false; 8807 } 8808} 8809 8810function _getPrototypeOf(o) { 8811 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 8812 return o.__proto__ || Object.getPrototypeOf(o); 8813 }; 8814 return _getPrototypeOf(o); 8815} 8816 8817function _classCallCheck(instance, Constructor) { 8818 if (!(instance instanceof Constructor)) { 8819 throw new TypeError("Cannot call a class as a function"); 8820 } 8821} 8822 8823function _defineProperties(target, props) { 8824 for (var i = 0; i < props.length; i++) { 8825 var descriptor = props[i]; 8826 descriptor.enumerable = descriptor.enumerable || false; 8827 descriptor.configurable = true; 8828 if ("value" in descriptor) descriptor.writable = true; 8829 Object.defineProperty(target, descriptor.key, descriptor); 8830 } 8831} 8832 8833function _createClass(Constructor, protoProps, staticProps) { 8834 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 8835 if (staticProps) _defineProperties(Constructor, staticProps); 8836 return Constructor; 8837} 8838 8839function _defineProperty(obj, key, value) { 8840 if (key in obj) { 8841 Object.defineProperty(obj, key, { 8842 value: value, 8843 enumerable: true, 8844 configurable: true, 8845 writable: true 8846 }); 8847 } else { 8848 obj[key] = value; 8849 } 8850 8851 return obj; 8852} 8853 8854var TIMEZONE_UNIT_PRIORITY = 10; 8855var Setter = /*#__PURE__*/function () { 8856 function Setter() { 8857 _classCallCheck(this, Setter); 8858 8859 _defineProperty(this, "subPriority", 0); 8860 } 8861 8862 _createClass(Setter, [{ 8863 key: "validate", 8864 value: function validate(_utcDate, _options) { 8865 return true; 8866 } 8867 }]); 8868 8869 return Setter; 8870}(); 8871var ValueSetter = /*#__PURE__*/function (_Setter) { 8872 _inherits(ValueSetter, _Setter); 8873 8874 var _super = _createSuper(ValueSetter); 8875 8876 function ValueSetter(value, validateValue, setValue, priority, subPriority) { 8877 var _this; 8878 8879 _classCallCheck(this, ValueSetter); 8880 8881 _this = _super.call(this); 8882 _this.value = value; 8883 _this.validateValue = validateValue; 8884 _this.setValue = setValue; 8885 _this.priority = priority; 8886 8887 if (subPriority) { 8888 _this.subPriority = subPriority; 8889 } 8890 8891 return _this; 8892 } 8893 8894 _createClass(ValueSetter, [{ 8895 key: "validate", 8896 value: function validate(utcDate, options) { 8897 return this.validateValue(utcDate, this.value, options); 8898 } 8899 }, { 8900 key: "set", 8901 value: function set(utcDate, flags, options) { 8902 return this.setValue(utcDate, flags, this.value, options); 8903 } 8904 }]); 8905 8906 return ValueSetter; 8907}(Setter); 8908var DateToSystemTimezoneSetter = /*#__PURE__*/function (_Setter2) { 8909 _inherits(DateToSystemTimezoneSetter, _Setter2); 8910 8911 var _super2 = _createSuper(DateToSystemTimezoneSetter); 8912 8913 function DateToSystemTimezoneSetter() { 8914 var _this2; 8915 8916 _classCallCheck(this, DateToSystemTimezoneSetter); 8917 8918 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 8919 args[_key] = arguments[_key]; 8920 } 8921 8922 _this2 = _super2.call.apply(_super2, [this].concat(args)); 8923 8924 _defineProperty(_assertThisInitialized(_this2), "priority", TIMEZONE_UNIT_PRIORITY); 8925 8926 _defineProperty(_assertThisInitialized(_this2), "subPriority", -1); 8927 8928 return _this2; 8929 } 8930 8931 _createClass(DateToSystemTimezoneSetter, [{ 8932 key: "set", 8933 value: function set(date, flags) { 8934 if (flags.timestampIsSet) { 8935 return date; 8936 } 8937 8938 var convertedDate = new Date(0); 8939 convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()); 8940 convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()); 8941 return convertedDate; 8942 } 8943 }]); 8944 8945 return DateToSystemTimezoneSetter; 8946}(Setter); 8947 8948/***/ }), 8949
vendor: 1,881 bytes, lines 8950-9009
8950/***/ "./node_modules/date-fns/esm/parse/_lib/constants.js": 8951/*!***********************************************************!*\ 8952 !*** ./node_modules/date-fns/esm/parse/_lib/constants.js ***! 8953 \***********************************************************/ 8954/*! exports provided: numericPatterns, timezonePatterns */ 8955/***/ (function(module, __webpack_exports__, __webpack_require__) { 8956 8957"use strict"; 8958__webpack_require__.r(__webpack_exports__); 8959/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "numericPatterns", function() { return numericPatterns; }); 8960/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timezonePatterns", function() { return timezonePatterns; }); 8961var numericPatterns = { 8962 month: /^(1[0-2]|0?\d)/, 8963 // 0 to 12 8964 date: /^(3[0-1]|[0-2]?\d)/, 8965 // 0 to 31 8966 dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/, 8967 // 0 to 366 8968 week: /^(5[0-3]|[0-4]?\d)/, 8969 // 0 to 53 8970 hour23h: /^(2[0-3]|[0-1]?\d)/, 8971 // 0 to 23 8972 hour24h: /^(2[0-4]|[0-1]?\d)/, 8973 // 0 to 24 8974 hour11h: /^(1[0-1]|0?\d)/, 8975 // 0 to 11 8976 hour12h: /^(1[0-2]|0?\d)/, 8977 // 0 to 12 8978 minute: /^[0-5]?\d/, 8979 // 0 to 59 8980 second: /^[0-5]?\d/, 8981 // 0 to 59 8982 singleDigit: /^\d/, 8983 // 0 to 9 8984 twoDigits: /^\d{1,2}/, 8985 // 0 to 99 8986 threeDigits: /^\d{1,3}/, 8987 // 0 to 999 8988 fourDigits: /^\d{1,4}/, 8989 // 0 to 9999 8990 anyDigitsSigned: /^-?\d+/, 8991 singleDigitSigned: /^-?\d/, 8992 // 0 to 9, -0 to -9 8993 twoDigitsSigned: /^-?\d{1,2}/, 8994 // 0 to 99, -0 to -99 8995 threeDigitsSigned: /^-?\d{1,3}/, 8996 // 0 to 999, -0 to -999 8997 fourDigitsSigned: /^-?\d{1,4}/ // 0 to 9999, -0 to -9999 8998 8999}; 9000var timezonePatterns = { 9001 basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/, 9002 basic: /^([+-])(\d{2})(\d{2})|Z/, 9003 basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/, 9004 extended: /^([+-])(\d{2}):(\d{2})|Z/, 9005 extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/ 9006}; 9007 9008/***/ }), 9009
vendor: 6,329 bytes, lines 9010-9226
9010/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js": 9011/*!****************************************************************************!*\ 9012 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js ***! 9013 \****************************************************************************/ 9014/*! exports provided: AMPMMidnightParser */ 9015/***/ (function(module, __webpack_exports__, __webpack_require__) { 9016 9017"use strict"; 9018__webpack_require__.r(__webpack_exports__); 9019/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMPMMidnightParser", function() { return AMPMMidnightParser; }); 9020/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 9021/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 9022function _typeof(obj) { 9023 "@babel/helpers - typeof"; 9024 9025 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 9026 _typeof = function _typeof(obj) { 9027 return typeof obj; 9028 }; 9029 } else { 9030 _typeof = function _typeof(obj) { 9031 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 9032 }; 9033 } 9034 9035 return _typeof(obj); 9036} 9037 9038function _classCallCheck(instance, Constructor) { 9039 if (!(instance instanceof Constructor)) { 9040 throw new TypeError("Cannot call a class as a function"); 9041 } 9042} 9043 9044function _defineProperties(target, props) { 9045 for (var i = 0; i < props.length; i++) { 9046 var descriptor = props[i]; 9047 descriptor.enumerable = descriptor.enumerable || false; 9048 descriptor.configurable = true; 9049 if ("value" in descriptor) descriptor.writable = true; 9050 Object.defineProperty(target, descriptor.key, descriptor); 9051 } 9052} 9053 9054function _createClass(Constructor, protoProps, staticProps) { 9055 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 9056 if (staticProps) _defineProperties(Constructor, staticProps); 9057 return Constructor; 9058} 9059 9060function _inherits(subClass, superClass) { 9061 if (typeof superClass !== "function" && superClass !== null) { 9062 throw new TypeError("Super expression must either be null or a function"); 9063 } 9064 9065 subClass.prototype = Object.create(superClass && superClass.prototype, { 9066 constructor: { 9067 value: subClass, 9068 writable: true, 9069 configurable: true 9070 } 9071 }); 9072 if (superClass) _setPrototypeOf(subClass, superClass); 9073} 9074 9075function _setPrototypeOf(o, p) { 9076 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 9077 o.__proto__ = p; 9078 return o; 9079 }; 9080 9081 return _setPrototypeOf(o, p); 9082} 9083 9084function _createSuper(Derived) { 9085 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 9086 9087 return function _createSuperInternal() { 9088 var Super = _getPrototypeOf(Derived), 9089 result; 9090 9091 if (hasNativeReflectConstruct) { 9092 var NewTarget = _getPrototypeOf(this).constructor; 9093 9094 result = Reflect.construct(Super, arguments, NewTarget); 9095 } else { 9096 result = Super.apply(this, arguments); 9097 } 9098 9099 return _possibleConstructorReturn(this, result); 9100 }; 9101} 9102 9103function _possibleConstructorReturn(self, call) { 9104 if (call && (_typeof(call) === "object" || typeof call === "function")) { 9105 return call; 9106 } 9107 9108 return _assertThisInitialized(self); 9109} 9110 9111function _assertThisInitialized(self) { 9112 if (self === void 0) { 9113 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 9114 } 9115 9116 return self; 9117} 9118 9119function _isNativeReflectConstruct() { 9120 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 9121 if (Reflect.construct.sham) return false; 9122 if (typeof Proxy === "function") return true; 9123 9124 try { 9125 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 9126 return true; 9127 } catch (e) { 9128 return false; 9129 } 9130} 9131 9132function _getPrototypeOf(o) { 9133 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 9134 return o.__proto__ || Object.getPrototypeOf(o); 9135 }; 9136 return _getPrototypeOf(o); 9137} 9138 9139function _defineProperty(obj, key, value) { 9140 if (key in obj) { 9141 Object.defineProperty(obj, key, { 9142 value: value, 9143 enumerable: true, 9144 configurable: true, 9145 writable: true 9146 }); 9147 } else { 9148 obj[key] = value; 9149 } 9150 9151 return obj; 9152} 9153 9154 9155 9156var AMPMMidnightParser = /*#__PURE__*/function (_Parser) { 9157 _inherits(AMPMMidnightParser, _Parser); 9158 9159 var _super = _createSuper(AMPMMidnightParser); 9160 9161 function AMPMMidnightParser() { 9162 var _this; 9163 9164 _classCallCheck(this, AMPMMidnightParser); 9165 9166 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 9167 args[_key] = arguments[_key]; 9168 } 9169 9170 _this = _super.call.apply(_super, [this].concat(args)); 9171 9172 _defineProperty(_assertThisInitialized(_this), "priority", 80); 9173 9174 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'B', 'H', 'k', 't', 'T']); 9175 9176 return _this; 9177 } 9178 9179 _createClass(AMPMMidnightParser, [{ 9180 key: "parse", 9181 value: function parse(dateString, token, match) { 9182 switch (token) { 9183 case 'b': 9184 case 'bb': 9185 case 'bbb': 9186 return match.dayPeriod(dateString, { 9187 width: 'abbreviated', 9188 context: 'formatting' 9189 }) || match.dayPeriod(dateString, { 9190 width: 'narrow', 9191 context: 'formatting' 9192 }); 9193 9194 case 'bbbbb': 9195 return match.dayPeriod(dateString, { 9196 width: 'narrow', 9197 context: 'formatting' 9198 }); 9199 9200 case 'bbbb': 9201 default: 9202 return match.dayPeriod(dateString, { 9203 width: 'wide', 9204 context: 'formatting' 9205 }) || match.dayPeriod(dateString, { 9206 width: 'abbreviated', 9207 context: 'formatting' 9208 }) || match.dayPeriod(dateString, { 9209 width: 'narrow', 9210 context: 'formatting' 9211 }); 9212 } 9213 } 9214 }, { 9215 key: "set", 9216 value: function set(date, _flags, value) { 9217 date.setUTCHours(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["dayPeriodEnumToHours"])(value), 0, 0, 0); 9218 return date; 9219 } 9220 }]); 9221 9222 return AMPMMidnightParser; 9223}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 9224 9225/***/ }), 9226
vendor: 6,217 bytes, lines 9227-9443
9227/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js": 9228/*!********************************************************************!*\ 9229 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js ***! 9230 \********************************************************************/ 9231/*! exports provided: AMPMParser */ 9232/***/ (function(module, __webpack_exports__, __webpack_require__) { 9233 9234"use strict"; 9235__webpack_require__.r(__webpack_exports__); 9236/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AMPMParser", function() { return AMPMParser; }); 9237/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 9238/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 9239function _typeof(obj) { 9240 "@babel/helpers - typeof"; 9241 9242 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 9243 _typeof = function _typeof(obj) { 9244 return typeof obj; 9245 }; 9246 } else { 9247 _typeof = function _typeof(obj) { 9248 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 9249 }; 9250 } 9251 9252 return _typeof(obj); 9253} 9254 9255function _classCallCheck(instance, Constructor) { 9256 if (!(instance instanceof Constructor)) { 9257 throw new TypeError("Cannot call a class as a function"); 9258 } 9259} 9260 9261function _defineProperties(target, props) { 9262 for (var i = 0; i < props.length; i++) { 9263 var descriptor = props[i]; 9264 descriptor.enumerable = descriptor.enumerable || false; 9265 descriptor.configurable = true; 9266 if ("value" in descriptor) descriptor.writable = true; 9267 Object.defineProperty(target, descriptor.key, descriptor); 9268 } 9269} 9270 9271function _createClass(Constructor, protoProps, staticProps) { 9272 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 9273 if (staticProps) _defineProperties(Constructor, staticProps); 9274 return Constructor; 9275} 9276 9277function _inherits(subClass, superClass) { 9278 if (typeof superClass !== "function" && superClass !== null) { 9279 throw new TypeError("Super expression must either be null or a function"); 9280 } 9281 9282 subClass.prototype = Object.create(superClass && superClass.prototype, { 9283 constructor: { 9284 value: subClass, 9285 writable: true, 9286 configurable: true 9287 } 9288 }); 9289 if (superClass) _setPrototypeOf(subClass, superClass); 9290} 9291 9292function _setPrototypeOf(o, p) { 9293 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 9294 o.__proto__ = p; 9295 return o; 9296 }; 9297 9298 return _setPrototypeOf(o, p); 9299} 9300 9301function _createSuper(Derived) { 9302 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 9303 9304 return function _createSuperInternal() { 9305 var Super = _getPrototypeOf(Derived), 9306 result; 9307 9308 if (hasNativeReflectConstruct) { 9309 var NewTarget = _getPrototypeOf(this).constructor; 9310 9311 result = Reflect.construct(Super, arguments, NewTarget); 9312 } else { 9313 result = Super.apply(this, arguments); 9314 } 9315 9316 return _possibleConstructorReturn(this, result); 9317 }; 9318} 9319 9320function _possibleConstructorReturn(self, call) { 9321 if (call && (_typeof(call) === "object" || typeof call === "function")) { 9322 return call; 9323 } 9324 9325 return _assertThisInitialized(self); 9326} 9327 9328function _assertThisInitialized(self) { 9329 if (self === void 0) { 9330 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 9331 } 9332 9333 return self; 9334} 9335 9336function _isNativeReflectConstruct() { 9337 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 9338 if (Reflect.construct.sham) return false; 9339 if (typeof Proxy === "function") return true; 9340 9341 try { 9342 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 9343 return true; 9344 } catch (e) { 9345 return false; 9346 } 9347} 9348 9349function _getPrototypeOf(o) { 9350 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 9351 return o.__proto__ || Object.getPrototypeOf(o); 9352 }; 9353 return _getPrototypeOf(o); 9354} 9355 9356function _defineProperty(obj, key, value) { 9357 if (key in obj) { 9358 Object.defineProperty(obj, key, { 9359 value: value, 9360 enumerable: true, 9361 configurable: true, 9362 writable: true 9363 }); 9364 } else { 9365 obj[key] = value; 9366 } 9367 9368 return obj; 9369} 9370 9371 9372 9373var AMPMParser = /*#__PURE__*/function (_Parser) { 9374 _inherits(AMPMParser, _Parser); 9375 9376 var _super = _createSuper(AMPMParser); 9377 9378 function AMPMParser() { 9379 var _this; 9380 9381 _classCallCheck(this, AMPMParser); 9382 9383 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 9384 args[_key] = arguments[_key]; 9385 } 9386 9387 _this = _super.call.apply(_super, [this].concat(args)); 9388 9389 _defineProperty(_assertThisInitialized(_this), "priority", 80); 9390 9391 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['b', 'B', 'H', 'k', 't', 'T']); 9392 9393 return _this; 9394 } 9395 9396 _createClass(AMPMParser, [{ 9397 key: "parse", 9398 value: function parse(dateString, token, match) { 9399 switch (token) { 9400 case 'a': 9401 case 'aa': 9402 case 'aaa': 9403 return match.dayPeriod(dateString, { 9404 width: 'abbreviated', 9405 context: 'formatting' 9406 }) || match.dayPeriod(dateString, { 9407 width: 'narrow', 9408 context: 'formatting' 9409 }); 9410 9411 case 'aaaaa': 9412 return match.dayPeriod(dateString, { 9413 width: 'narrow', 9414 context: 'formatting' 9415 }); 9416 9417 case 'aaaa': 9418 default: 9419 return match.dayPeriod(dateString, { 9420 width: 'wide', 9421 context: 'formatting' 9422 }) || match.dayPeriod(dateString, { 9423 width: 'abbreviated', 9424 context: 'formatting' 9425 }) || match.dayPeriod(dateString, { 9426 width: 'narrow', 9427 context: 'formatting' 9428 }); 9429 } 9430 } 9431 }, { 9432 key: "set", 9433 value: function set(date, _flags, value) { 9434 date.setUTCHours(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["dayPeriodEnumToHours"])(value), 0, 0, 0); 9435 return date; 9436 } 9437 }]); 9438 9439 return AMPMParser; 9440}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 9441 9442/***/ }), 9443
vendor: 6,638 bytes, lines 9444-9662
9444/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js": 9445/*!********************************************************************!*\ 9446 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js ***! 9447 \********************************************************************/ 9448/*! exports provided: DateParser */ 9449/***/ (function(module, __webpack_exports__, __webpack_require__) { 9450 9451"use strict"; 9452__webpack_require__.r(__webpack_exports__); 9453/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateParser", function() { return DateParser; }); 9454/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 9455/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 9456/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 9457function _typeof(obj) { 9458 "@babel/helpers - typeof"; 9459 9460 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 9461 _typeof = function _typeof(obj) { 9462 return typeof obj; 9463 }; 9464 } else { 9465 _typeof = function _typeof(obj) { 9466 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 9467 }; 9468 } 9469 9470 return _typeof(obj); 9471} 9472 9473function _classCallCheck(instance, Constructor) { 9474 if (!(instance instanceof Constructor)) { 9475 throw new TypeError("Cannot call a class as a function"); 9476 } 9477} 9478 9479function _defineProperties(target, props) { 9480 for (var i = 0; i < props.length; i++) { 9481 var descriptor = props[i]; 9482 descriptor.enumerable = descriptor.enumerable || false; 9483 descriptor.configurable = true; 9484 if ("value" in descriptor) descriptor.writable = true; 9485 Object.defineProperty(target, descriptor.key, descriptor); 9486 } 9487} 9488 9489function _createClass(Constructor, protoProps, staticProps) { 9490 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 9491 if (staticProps) _defineProperties(Constructor, staticProps); 9492 return Constructor; 9493} 9494 9495function _inherits(subClass, superClass) { 9496 if (typeof superClass !== "function" && superClass !== null) { 9497 throw new TypeError("Super expression must either be null or a function"); 9498 } 9499 9500 subClass.prototype = Object.create(superClass && superClass.prototype, { 9501 constructor: { 9502 value: subClass, 9503 writable: true, 9504 configurable: true 9505 } 9506 }); 9507 if (superClass) _setPrototypeOf(subClass, superClass); 9508} 9509 9510function _setPrototypeOf(o, p) { 9511 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 9512 o.__proto__ = p; 9513 return o; 9514 }; 9515 9516 return _setPrototypeOf(o, p); 9517} 9518 9519function _createSuper(Derived) { 9520 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 9521 9522 return function _createSuperInternal() { 9523 var Super = _getPrototypeOf(Derived), 9524 result; 9525 9526 if (hasNativeReflectConstruct) { 9527 var NewTarget = _getPrototypeOf(this).constructor; 9528 9529 result = Reflect.construct(Super, arguments, NewTarget); 9530 } else { 9531 result = Super.apply(this, arguments); 9532 } 9533 9534 return _possibleConstructorReturn(this, result); 9535 }; 9536} 9537 9538function _possibleConstructorReturn(self, call) { 9539 if (call && (_typeof(call) === "object" || typeof call === "function")) { 9540 return call; 9541 } 9542 9543 return _assertThisInitialized(self); 9544} 9545 9546function _assertThisInitialized(self) { 9547 if (self === void 0) { 9548 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 9549 } 9550 9551 return self; 9552} 9553 9554function _isNativeReflectConstruct() { 9555 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 9556 if (Reflect.construct.sham) return false; 9557 if (typeof Proxy === "function") return true; 9558 9559 try { 9560 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 9561 return true; 9562 } catch (e) { 9563 return false; 9564 } 9565} 9566 9567function _getPrototypeOf(o) { 9568 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 9569 return o.__proto__ || Object.getPrototypeOf(o); 9570 }; 9571 return _getPrototypeOf(o); 9572} 9573 9574function _defineProperty(obj, key, value) { 9575 if (key in obj) { 9576 Object.defineProperty(obj, key, { 9577 value: value, 9578 enumerable: true, 9579 configurable: true, 9580 writable: true 9581 }); 9582 } else { 9583 obj[key] = value; 9584 } 9585 9586 return obj; 9587} 9588 9589 9590 9591 9592var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 9593var DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Day of the month 9594 9595var DateParser = /*#__PURE__*/function (_Parser) { 9596 _inherits(DateParser, _Parser); 9597 9598 var _super = _createSuper(DateParser); 9599 9600 function DateParser() { 9601 var _this; 9602 9603 _classCallCheck(this, DateParser); 9604 9605 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 9606 args[_key] = arguments[_key]; 9607 } 9608 9609 _this = _super.call.apply(_super, [this].concat(args)); 9610 9611 _defineProperty(_assertThisInitialized(_this), "priority", 90); 9612 9613 _defineProperty(_assertThisInitialized(_this), "subPriority", 1); 9614 9615 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); 9616 9617 return _this; 9618 } 9619 9620 _createClass(DateParser, [{ 9621 key: "parse", 9622 value: function parse(dateString, token, match) { 9623 switch (token) { 9624 case 'd': 9625 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_0__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_2__["numericPatterns"].date, dateString); 9626 9627 case 'do': 9628 return match.ordinalNumber(dateString, { 9629 unit: 'date' 9630 }); 9631 9632 default: 9633 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_0__["parseNDigits"])(token.length, dateString); 9634 } 9635 } 9636 }, { 9637 key: "validate", 9638 value: function validate(date, value) { 9639 var year = date.getUTCFullYear(); 9640 var isLeapYear = Object(_utils_js__WEBPACK_IMPORTED_MODULE_0__["isLeapYearIndex"])(year); 9641 var month = date.getUTCMonth(); 9642 9643 if (isLeapYear) { 9644 return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month]; 9645 } else { 9646 return value >= 1 && value <= DAYS_IN_MONTH[month]; 9647 } 9648 } 9649 }, { 9650 key: "set", 9651 value: function set(date, _flags, value) { 9652 date.setUTCDate(value); 9653 date.setUTCHours(0, 0, 0, 0); 9654 return date; 9655 } 9656 }]); 9657 9658 return DateParser; 9659}(_Parser_js__WEBPACK_IMPORTED_MODULE_1__["Parser"]); 9660 9661/***/ }), 9662
vendor: 6,498 bytes, lines 9663-9878
9663/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js": 9664/*!*************************************************************************!*\ 9665 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js ***! 9666 \*************************************************************************/ 9667/*! exports provided: DayOfYearParser */ 9668/***/ (function(module, __webpack_exports__, __webpack_require__) { 9669 9670"use strict"; 9671__webpack_require__.r(__webpack_exports__); 9672/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DayOfYearParser", function() { return DayOfYearParser; }); 9673/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 9674/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 9675/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 9676function _typeof(obj) { 9677 "@babel/helpers - typeof"; 9678 9679 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 9680 _typeof = function _typeof(obj) { 9681 return typeof obj; 9682 }; 9683 } else { 9684 _typeof = function _typeof(obj) { 9685 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 9686 }; 9687 } 9688 9689 return _typeof(obj); 9690} 9691 9692function _classCallCheck(instance, Constructor) { 9693 if (!(instance instanceof Constructor)) { 9694 throw new TypeError("Cannot call a class as a function"); 9695 } 9696} 9697 9698function _defineProperties(target, props) { 9699 for (var i = 0; i < props.length; i++) { 9700 var descriptor = props[i]; 9701 descriptor.enumerable = descriptor.enumerable || false; 9702 descriptor.configurable = true; 9703 if ("value" in descriptor) descriptor.writable = true; 9704 Object.defineProperty(target, descriptor.key, descriptor); 9705 } 9706} 9707 9708function _createClass(Constructor, protoProps, staticProps) { 9709 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 9710 if (staticProps) _defineProperties(Constructor, staticProps); 9711 return Constructor; 9712} 9713 9714function _inherits(subClass, superClass) { 9715 if (typeof superClass !== "function" && superClass !== null) { 9716 throw new TypeError("Super expression must either be null or a function"); 9717 } 9718 9719 subClass.prototype = Object.create(superClass && superClass.prototype, { 9720 constructor: { 9721 value: subClass, 9722 writable: true, 9723 configurable: true 9724 } 9725 }); 9726 if (superClass) _setPrototypeOf(subClass, superClass); 9727} 9728 9729function _setPrototypeOf(o, p) { 9730 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 9731 o.__proto__ = p; 9732 return o; 9733 }; 9734 9735 return _setPrototypeOf(o, p); 9736} 9737 9738function _createSuper(Derived) { 9739 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 9740 9741 return function _createSuperInternal() { 9742 var Super = _getPrototypeOf(Derived), 9743 result; 9744 9745 if (hasNativeReflectConstruct) { 9746 var NewTarget = _getPrototypeOf(this).constructor; 9747 9748 result = Reflect.construct(Super, arguments, NewTarget); 9749 } else { 9750 result = Super.apply(this, arguments); 9751 } 9752 9753 return _possibleConstructorReturn(this, result); 9754 }; 9755} 9756 9757function _possibleConstructorReturn(self, call) { 9758 if (call && (_typeof(call) === "object" || typeof call === "function")) { 9759 return call; 9760 } 9761 9762 return _assertThisInitialized(self); 9763} 9764 9765function _assertThisInitialized(self) { 9766 if (self === void 0) { 9767 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 9768 } 9769 9770 return self; 9771} 9772 9773function _isNativeReflectConstruct() { 9774 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 9775 if (Reflect.construct.sham) return false; 9776 if (typeof Proxy === "function") return true; 9777 9778 try { 9779 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 9780 return true; 9781 } catch (e) { 9782 return false; 9783 } 9784} 9785 9786function _getPrototypeOf(o) { 9787 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 9788 return o.__proto__ || Object.getPrototypeOf(o); 9789 }; 9790 return _getPrototypeOf(o); 9791} 9792 9793function _defineProperty(obj, key, value) { 9794 if (key in obj) { 9795 Object.defineProperty(obj, key, { 9796 value: value, 9797 enumerable: true, 9798 configurable: true, 9799 writable: true 9800 }); 9801 } else { 9802 obj[key] = value; 9803 } 9804 9805 return obj; 9806} 9807 9808 9809 9810 9811var DayOfYearParser = /*#__PURE__*/function (_Parser) { 9812 _inherits(DayOfYearParser, _Parser); 9813 9814 var _super = _createSuper(DayOfYearParser); 9815 9816 function DayOfYearParser() { 9817 var _this; 9818 9819 _classCallCheck(this, DayOfYearParser); 9820 9821 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 9822 args[_key] = arguments[_key]; 9823 } 9824 9825 _this = _super.call.apply(_super, [this].concat(args)); 9826 9827 _defineProperty(_assertThisInitialized(_this), "priority", 90); 9828 9829 _defineProperty(_assertThisInitialized(_this), "subpriority", 1); 9830 9831 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']); 9832 9833 return _this; 9834 } 9835 9836 _createClass(DayOfYearParser, [{ 9837 key: "parse", 9838 value: function parse(dateString, token, match) { 9839 switch (token) { 9840 case 'D': 9841 case 'DD': 9842 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].dayOfYear, dateString); 9843 9844 case 'Do': 9845 return match.ordinalNumber(dateString, { 9846 unit: 'date' 9847 }); 9848 9849 default: 9850 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(token.length, dateString); 9851 } 9852 } 9853 }, { 9854 key: "validate", 9855 value: function validate(date, value) { 9856 var year = date.getUTCFullYear(); 9857 var isLeapYear = Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["isLeapYearIndex"])(year); 9858 9859 if (isLeapYear) { 9860 return value >= 1 && value <= 366; 9861 } else { 9862 return value >= 1 && value <= 365; 9863 } 9864 } 9865 }, { 9866 key: "set", 9867 value: function set(date, _flags, value) { 9868 date.setUTCMonth(0, value); 9869 date.setUTCHours(0, 0, 0, 0); 9870 return date; 9871 } 9872 }]); 9873 9874 return DayOfYearParser; 9875}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 9876 9877/***/ }), 9878
vendor: 6,890 bytes, lines 9879-10121
9879/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js": 9880/*!*******************************************************************!*\ 9881 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js ***! 9882 \*******************************************************************/ 9883/*! exports provided: DayParser */ 9884/***/ (function(module, __webpack_exports__, __webpack_require__) { 9885 9886"use strict"; 9887__webpack_require__.r(__webpack_exports__); 9888/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DayParser", function() { return DayParser; }); 9889/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 9890/* harmony import */ var _lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_lib/setUTCDay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js"); 9891function _typeof(obj) { 9892 "@babel/helpers - typeof"; 9893 9894 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 9895 _typeof = function _typeof(obj) { 9896 return typeof obj; 9897 }; 9898 } else { 9899 _typeof = function _typeof(obj) { 9900 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 9901 }; 9902 } 9903 9904 return _typeof(obj); 9905} 9906 9907function _classCallCheck(instance, Constructor) { 9908 if (!(instance instanceof Constructor)) { 9909 throw new TypeError("Cannot call a class as a function"); 9910 } 9911} 9912 9913function _defineProperties(target, props) { 9914 for (var i = 0; i < props.length; i++) { 9915 var descriptor = props[i]; 9916 descriptor.enumerable = descriptor.enumerable || false; 9917 descriptor.configurable = true; 9918 if ("value" in descriptor) descriptor.writable = true; 9919 Object.defineProperty(target, descriptor.key, descriptor); 9920 } 9921} 9922 9923function _createClass(Constructor, protoProps, staticProps) { 9924 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 9925 if (staticProps) _defineProperties(Constructor, staticProps); 9926 return Constructor; 9927} 9928 9929function _inherits(subClass, superClass) { 9930 if (typeof superClass !== "function" && superClass !== null) { 9931 throw new TypeError("Super expression must either be null or a function"); 9932 } 9933 9934 subClass.prototype = Object.create(superClass && superClass.prototype, { 9935 constructor: { 9936 value: subClass, 9937 writable: true, 9938 configurable: true 9939 } 9940 }); 9941 if (superClass) _setPrototypeOf(subClass, superClass); 9942} 9943 9944function _setPrototypeOf(o, p) { 9945 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 9946 o.__proto__ = p; 9947 return o; 9948 }; 9949 9950 return _setPrototypeOf(o, p); 9951} 9952 9953function _createSuper(Derived) { 9954 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 9955 9956 return function _createSuperInternal() { 9957 var Super = _getPrototypeOf(Derived), 9958 result; 9959 9960 if (hasNativeReflectConstruct) { 9961 var NewTarget = _getPrototypeOf(this).constructor; 9962 9963 result = Reflect.construct(Super, arguments, NewTarget); 9964 } else { 9965 result = Super.apply(this, arguments); 9966 } 9967 9968 return _possibleConstructorReturn(this, result); 9969 }; 9970} 9971 9972function _possibleConstructorReturn(self, call) { 9973 if (call && (_typeof(call) === "object" || typeof call === "function")) { 9974 return call; 9975 } 9976 9977 return _assertThisInitialized(self); 9978} 9979 9980function _assertThisInitialized(self) { 9981 if (self === void 0) { 9982 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 9983 } 9984 9985 return self; 9986} 9987 9988function _isNativeReflectConstruct() { 9989 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 9990 if (Reflect.construct.sham) return false; 9991 if (typeof Proxy === "function") return true; 9992 9993 try { 9994 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 9995 return true; 9996 } catch (e) { 9997 return false; 9998 } 9999} 10000 10001function _getPrototypeOf(o) { 10002 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 10003 return o.__proto__ || Object.getPrototypeOf(o); 10004 }; 10005 return _getPrototypeOf(o); 10006} 10007 10008function _defineProperty(obj, key, value) { 10009 if (key in obj) { 10010 Object.defineProperty(obj, key, { 10011 value: value, 10012 enumerable: true, 10013 configurable: true, 10014 writable: true 10015 }); 10016 } else { 10017 obj[key] = value; 10018 } 10019 10020 return obj; 10021} 10022 10023 10024 // Day of week 10025 10026var DayParser = /*#__PURE__*/function (_Parser) { 10027 _inherits(DayParser, _Parser); 10028 10029 var _super = _createSuper(DayParser); 10030 10031 function DayParser() { 10032 var _this; 10033 10034 _classCallCheck(this, DayParser); 10035 10036 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 10037 args[_key] = arguments[_key]; 10038 } 10039 10040 _this = _super.call.apply(_super, [this].concat(args)); 10041 10042 _defineProperty(_assertThisInitialized(_this), "priority", 90); 10043 10044 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['D', 'i', 'e', 'c', 't', 'T']); 10045 10046 return _this; 10047 } 10048 10049 _createClass(DayParser, [{ 10050 key: "parse", 10051 value: function parse(dateString, token, match) { 10052 switch (token) { 10053 // Tue 10054 case 'E': 10055 case 'EE': 10056 case 'EEE': 10057 return match.day(dateString, { 10058 width: 'abbreviated', 10059 context: 'formatting' 10060 }) || match.day(dateString, { 10061 width: 'short', 10062 context: 'formatting' 10063 }) || match.day(dateString, { 10064 width: 'narrow', 10065 context: 'formatting' 10066 }); 10067 // T 10068 10069 case 'EEEEE': 10070 return match.day(dateString, { 10071 width: 'narrow', 10072 context: 'formatting' 10073 }); 10074 // Tu 10075 10076 case 'EEEEEE': 10077 return match.day(dateString, { 10078 width: 'short', 10079 context: 'formatting' 10080 }) || match.day(dateString, { 10081 width: 'narrow', 10082 context: 'formatting' 10083 }); 10084 // Tuesday 10085 10086 case 'EEEE': 10087 default: 10088 return match.day(dateString, { 10089 width: 'wide', 10090 context: 'formatting' 10091 }) || match.day(dateString, { 10092 width: 'abbreviated', 10093 context: 'formatting' 10094 }) || match.day(dateString, { 10095 width: 'short', 10096 context: 'formatting' 10097 }) || match.day(dateString, { 10098 width: 'narrow', 10099 context: 'formatting' 10100 }); 10101 } 10102 } 10103 }, { 10104 key: "validate", 10105 value: function validate(_date, value) { 10106 return value >= 0 && value <= 6; 10107 } 10108 }, { 10109 key: "set", 10110 value: function set(date, _flags, value, options) { 10111 date = Object(_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, value, options); 10112 date.setUTCHours(0, 0, 0, 0); 10113 return date; 10114 } 10115 }]); 10116 10117 return DayParser; 10118}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 10119 10120/***/ }), 10121
vendor: 6,340 bytes, lines 10122-10339
10122/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js": 10123/*!*************************************************************************!*\ 10124 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js ***! 10125 \*************************************************************************/ 10126/*! exports provided: DayPeriodParser */ 10127/***/ (function(module, __webpack_exports__, __webpack_require__) { 10128 10129"use strict"; 10130__webpack_require__.r(__webpack_exports__); 10131/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DayPeriodParser", function() { return DayPeriodParser; }); 10132/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 10133/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 10134function _typeof(obj) { 10135 "@babel/helpers - typeof"; 10136 10137 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 10138 _typeof = function _typeof(obj) { 10139 return typeof obj; 10140 }; 10141 } else { 10142 _typeof = function _typeof(obj) { 10143 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 10144 }; 10145 } 10146 10147 return _typeof(obj); 10148} 10149 10150function _classCallCheck(instance, Constructor) { 10151 if (!(instance instanceof Constructor)) { 10152 throw new TypeError("Cannot call a class as a function"); 10153 } 10154} 10155 10156function _defineProperties(target, props) { 10157 for (var i = 0; i < props.length; i++) { 10158 var descriptor = props[i]; 10159 descriptor.enumerable = descriptor.enumerable || false; 10160 descriptor.configurable = true; 10161 if ("value" in descriptor) descriptor.writable = true; 10162 Object.defineProperty(target, descriptor.key, descriptor); 10163 } 10164} 10165 10166function _createClass(Constructor, protoProps, staticProps) { 10167 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 10168 if (staticProps) _defineProperties(Constructor, staticProps); 10169 return Constructor; 10170} 10171 10172function _inherits(subClass, superClass) { 10173 if (typeof superClass !== "function" && superClass !== null) { 10174 throw new TypeError("Super expression must either be null or a function"); 10175 } 10176 10177 subClass.prototype = Object.create(superClass && superClass.prototype, { 10178 constructor: { 10179 value: subClass, 10180 writable: true, 10181 configurable: true 10182 } 10183 }); 10184 if (superClass) _setPrototypeOf(subClass, superClass); 10185} 10186 10187function _setPrototypeOf(o, p) { 10188 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 10189 o.__proto__ = p; 10190 return o; 10191 }; 10192 10193 return _setPrototypeOf(o, p); 10194} 10195 10196function _createSuper(Derived) { 10197 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 10198 10199 return function _createSuperInternal() { 10200 var Super = _getPrototypeOf(Derived), 10201 result; 10202 10203 if (hasNativeReflectConstruct) { 10204 var NewTarget = _getPrototypeOf(this).constructor; 10205 10206 result = Reflect.construct(Super, arguments, NewTarget); 10207 } else { 10208 result = Super.apply(this, arguments); 10209 } 10210 10211 return _possibleConstructorReturn(this, result); 10212 }; 10213} 10214 10215function _possibleConstructorReturn(self, call) { 10216 if (call && (_typeof(call) === "object" || typeof call === "function")) { 10217 return call; 10218 } 10219 10220 return _assertThisInitialized(self); 10221} 10222 10223function _assertThisInitialized(self) { 10224 if (self === void 0) { 10225 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10226 } 10227 10228 return self; 10229} 10230 10231function _isNativeReflectConstruct() { 10232 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 10233 if (Reflect.construct.sham) return false; 10234 if (typeof Proxy === "function") return true; 10235 10236 try { 10237 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 10238 return true; 10239 } catch (e) { 10240 return false; 10241 } 10242} 10243 10244function _getPrototypeOf(o) { 10245 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 10246 return o.__proto__ || Object.getPrototypeOf(o); 10247 }; 10248 return _getPrototypeOf(o); 10249} 10250 10251function _defineProperty(obj, key, value) { 10252 if (key in obj) { 10253 Object.defineProperty(obj, key, { 10254 value: value, 10255 enumerable: true, 10256 configurable: true, 10257 writable: true 10258 }); 10259 } else { 10260 obj[key] = value; 10261 } 10262 10263 return obj; 10264} 10265 10266 10267 // in the morning, in the afternoon, in the evening, at night 10268 10269var DayPeriodParser = /*#__PURE__*/function (_Parser) { 10270 _inherits(DayPeriodParser, _Parser); 10271 10272 var _super = _createSuper(DayPeriodParser); 10273 10274 function DayPeriodParser() { 10275 var _this; 10276 10277 _classCallCheck(this, DayPeriodParser); 10278 10279 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 10280 args[_key] = arguments[_key]; 10281 } 10282 10283 _this = _super.call.apply(_super, [this].concat(args)); 10284 10285 _defineProperty(_assertThisInitialized(_this), "priority", 80); 10286 10287 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 't', 'T']); 10288 10289 return _this; 10290 } 10291 10292 _createClass(DayPeriodParser, [{ 10293 key: "parse", 10294 value: function parse(dateString, token, match) { 10295 switch (token) { 10296 case 'B': 10297 case 'BB': 10298 case 'BBB': 10299 return match.dayPeriod(dateString, { 10300 width: 'abbreviated', 10301 context: 'formatting' 10302 }) || match.dayPeriod(dateString, { 10303 width: 'narrow', 10304 context: 'formatting' 10305 }); 10306 10307 case 'BBBBB': 10308 return match.dayPeriod(dateString, { 10309 width: 'narrow', 10310 context: 'formatting' 10311 }); 10312 10313 case 'BBBB': 10314 default: 10315 return match.dayPeriod(dateString, { 10316 width: 'wide', 10317 context: 'formatting' 10318 }) || match.dayPeriod(dateString, { 10319 width: 'abbreviated', 10320 context: 'formatting' 10321 }) || match.dayPeriod(dateString, { 10322 width: 'narrow', 10323 context: 'formatting' 10324 }); 10325 } 10326 } 10327 }, { 10328 key: "set", 10329 value: function set(date, _flags, value) { 10330 date.setUTCHours(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["dayPeriodEnumToHours"])(value), 0, 0, 0); 10331 return date; 10332 } 10333 }]); 10334 10335 return DayPeriodParser; 10336}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 10337 10338/***/ }), 10339
vendor: 5,850 bytes, lines 10340-10553
10340/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js": 10341/*!*******************************************************************!*\ 10342 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js ***! 10343 \*******************************************************************/ 10344/*! exports provided: EraParser */ 10345/***/ (function(module, __webpack_exports__, __webpack_require__) { 10346 10347"use strict"; 10348__webpack_require__.r(__webpack_exports__); 10349/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EraParser", function() { return EraParser; }); 10350/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 10351function _typeof(obj) { 10352 "@babel/helpers - typeof"; 10353 10354 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 10355 _typeof = function _typeof(obj) { 10356 return typeof obj; 10357 }; 10358 } else { 10359 _typeof = function _typeof(obj) { 10360 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 10361 }; 10362 } 10363 10364 return _typeof(obj); 10365} 10366 10367function _classCallCheck(instance, Constructor) { 10368 if (!(instance instanceof Constructor)) { 10369 throw new TypeError("Cannot call a class as a function"); 10370 } 10371} 10372 10373function _defineProperties(target, props) { 10374 for (var i = 0; i < props.length; i++) { 10375 var descriptor = props[i]; 10376 descriptor.enumerable = descriptor.enumerable || false; 10377 descriptor.configurable = true; 10378 if ("value" in descriptor) descriptor.writable = true; 10379 Object.defineProperty(target, descriptor.key, descriptor); 10380 } 10381} 10382 10383function _createClass(Constructor, protoProps, staticProps) { 10384 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 10385 if (staticProps) _defineProperties(Constructor, staticProps); 10386 return Constructor; 10387} 10388 10389function _inherits(subClass, superClass) { 10390 if (typeof superClass !== "function" && superClass !== null) { 10391 throw new TypeError("Super expression must either be null or a function"); 10392 } 10393 10394 subClass.prototype = Object.create(superClass && superClass.prototype, { 10395 constructor: { 10396 value: subClass, 10397 writable: true, 10398 configurable: true 10399 } 10400 }); 10401 if (superClass) _setPrototypeOf(subClass, superClass); 10402} 10403 10404function _setPrototypeOf(o, p) { 10405 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 10406 o.__proto__ = p; 10407 return o; 10408 }; 10409 10410 return _setPrototypeOf(o, p); 10411} 10412 10413function _createSuper(Derived) { 10414 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 10415 10416 return function _createSuperInternal() { 10417 var Super = _getPrototypeOf(Derived), 10418 result; 10419 10420 if (hasNativeReflectConstruct) { 10421 var NewTarget = _getPrototypeOf(this).constructor; 10422 10423 result = Reflect.construct(Super, arguments, NewTarget); 10424 } else { 10425 result = Super.apply(this, arguments); 10426 } 10427 10428 return _possibleConstructorReturn(this, result); 10429 }; 10430} 10431 10432function _possibleConstructorReturn(self, call) { 10433 if (call && (_typeof(call) === "object" || typeof call === "function")) { 10434 return call; 10435 } 10436 10437 return _assertThisInitialized(self); 10438} 10439 10440function _assertThisInitialized(self) { 10441 if (self === void 0) { 10442 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10443 } 10444 10445 return self; 10446} 10447 10448function _isNativeReflectConstruct() { 10449 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 10450 if (Reflect.construct.sham) return false; 10451 if (typeof Proxy === "function") return true; 10452 10453 try { 10454 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 10455 return true; 10456 } catch (e) { 10457 return false; 10458 } 10459} 10460 10461function _getPrototypeOf(o) { 10462 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 10463 return o.__proto__ || Object.getPrototypeOf(o); 10464 }; 10465 return _getPrototypeOf(o); 10466} 10467 10468function _defineProperty(obj, key, value) { 10469 if (key in obj) { 10470 Object.defineProperty(obj, key, { 10471 value: value, 10472 enumerable: true, 10473 configurable: true, 10474 writable: true 10475 }); 10476 } else { 10477 obj[key] = value; 10478 } 10479 10480 return obj; 10481} 10482 10483 10484var EraParser = /*#__PURE__*/function (_Parser) { 10485 _inherits(EraParser, _Parser); 10486 10487 var _super = _createSuper(EraParser); 10488 10489 function EraParser() { 10490 var _this; 10491 10492 _classCallCheck(this, EraParser); 10493 10494 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 10495 args[_key] = arguments[_key]; 10496 } 10497 10498 _this = _super.call.apply(_super, [this].concat(args)); 10499 10500 _defineProperty(_assertThisInitialized(_this), "priority", 140); 10501 10502 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['R', 'u', 't', 'T']); 10503 10504 return _this; 10505 } 10506 10507 _createClass(EraParser, [{ 10508 key: "parse", 10509 value: function parse(dateString, token, match) { 10510 switch (token) { 10511 // AD, BC 10512 case 'G': 10513 case 'GG': 10514 case 'GGG': 10515 return match.era(dateString, { 10516 width: 'abbreviated' 10517 }) || match.era(dateString, { 10518 width: 'narrow' 10519 }); 10520 // A, B 10521 10522 case 'GGGGG': 10523 return match.era(dateString, { 10524 width: 'narrow' 10525 }); 10526 // Anno Domini, Before Christ 10527 10528 case 'GGGG': 10529 default: 10530 return match.era(dateString, { 10531 width: 'wide' 10532 }) || match.era(dateString, { 10533 width: 'abbreviated' 10534 }) || match.era(dateString, { 10535 width: 'narrow' 10536 }); 10537 } 10538 } 10539 }, { 10540 key: "set", 10541 value: function set(date, flags, value) { 10542 flags.era = value; 10543 date.setUTCFullYear(value, 0, 1); 10544 date.setUTCHours(0, 0, 0, 0); 10545 return date; 10546 } 10547 }]); 10548 10549 return EraParser; 10550}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 10551 10552/***/ }), 10553
vendor: 5,700 bytes, lines 10554-10745
10554/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js": 10555/*!****************************************************************************!*\ 10556 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js ***! 10557 \****************************************************************************/ 10558/*! exports provided: ExtendedYearParser */ 10559/***/ (function(module, __webpack_exports__, __webpack_require__) { 10560 10561"use strict"; 10562__webpack_require__.r(__webpack_exports__); 10563/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExtendedYearParser", function() { return ExtendedYearParser; }); 10564/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 10565/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 10566function _typeof(obj) { 10567 "@babel/helpers - typeof"; 10568 10569 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 10570 _typeof = function _typeof(obj) { 10571 return typeof obj; 10572 }; 10573 } else { 10574 _typeof = function _typeof(obj) { 10575 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 10576 }; 10577 } 10578 10579 return _typeof(obj); 10580} 10581 10582function _classCallCheck(instance, Constructor) { 10583 if (!(instance instanceof Constructor)) { 10584 throw new TypeError("Cannot call a class as a function"); 10585 } 10586} 10587 10588function _defineProperties(target, props) { 10589 for (var i = 0; i < props.length; i++) { 10590 var descriptor = props[i]; 10591 descriptor.enumerable = descriptor.enumerable || false; 10592 descriptor.configurable = true; 10593 if ("value" in descriptor) descriptor.writable = true; 10594 Object.defineProperty(target, descriptor.key, descriptor); 10595 } 10596} 10597 10598function _createClass(Constructor, protoProps, staticProps) { 10599 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 10600 if (staticProps) _defineProperties(Constructor, staticProps); 10601 return Constructor; 10602} 10603 10604function _inherits(subClass, superClass) { 10605 if (typeof superClass !== "function" && superClass !== null) { 10606 throw new TypeError("Super expression must either be null or a function"); 10607 } 10608 10609 subClass.prototype = Object.create(superClass && superClass.prototype, { 10610 constructor: { 10611 value: subClass, 10612 writable: true, 10613 configurable: true 10614 } 10615 }); 10616 if (superClass) _setPrototypeOf(subClass, superClass); 10617} 10618 10619function _setPrototypeOf(o, p) { 10620 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 10621 o.__proto__ = p; 10622 return o; 10623 }; 10624 10625 return _setPrototypeOf(o, p); 10626} 10627 10628function _createSuper(Derived) { 10629 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 10630 10631 return function _createSuperInternal() { 10632 var Super = _getPrototypeOf(Derived), 10633 result; 10634 10635 if (hasNativeReflectConstruct) { 10636 var NewTarget = _getPrototypeOf(this).constructor; 10637 10638 result = Reflect.construct(Super, arguments, NewTarget); 10639 } else { 10640 result = Super.apply(this, arguments); 10641 } 10642 10643 return _possibleConstructorReturn(this, result); 10644 }; 10645} 10646 10647function _possibleConstructorReturn(self, call) { 10648 if (call && (_typeof(call) === "object" || typeof call === "function")) { 10649 return call; 10650 } 10651 10652 return _assertThisInitialized(self); 10653} 10654 10655function _assertThisInitialized(self) { 10656 if (self === void 0) { 10657 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10658 } 10659 10660 return self; 10661} 10662 10663function _isNativeReflectConstruct() { 10664 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 10665 if (Reflect.construct.sham) return false; 10666 if (typeof Proxy === "function") return true; 10667 10668 try { 10669 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 10670 return true; 10671 } catch (e) { 10672 return false; 10673 } 10674} 10675 10676function _getPrototypeOf(o) { 10677 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 10678 return o.__proto__ || Object.getPrototypeOf(o); 10679 }; 10680 return _getPrototypeOf(o); 10681} 10682 10683function _defineProperty(obj, key, value) { 10684 if (key in obj) { 10685 Object.defineProperty(obj, key, { 10686 value: value, 10687 enumerable: true, 10688 configurable: true, 10689 writable: true 10690 }); 10691 } else { 10692 obj[key] = value; 10693 } 10694 10695 return obj; 10696} 10697 10698 10699 10700var ExtendedYearParser = /*#__PURE__*/function (_Parser) { 10701 _inherits(ExtendedYearParser, _Parser); 10702 10703 var _super = _createSuper(ExtendedYearParser); 10704 10705 function ExtendedYearParser() { 10706 var _this; 10707 10708 _classCallCheck(this, ExtendedYearParser); 10709 10710 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 10711 args[_key] = arguments[_key]; 10712 } 10713 10714 _this = _super.call.apply(_super, [this].concat(args)); 10715 10716 _defineProperty(_assertThisInitialized(_this), "priority", 130); 10717 10718 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']); 10719 10720 return _this; 10721 } 10722 10723 _createClass(ExtendedYearParser, [{ 10724 key: "parse", 10725 value: function parse(dateString, token) { 10726 if (token === 'u') { 10727 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigitsSigned"])(4, dateString); 10728 } 10729 10730 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigitsSigned"])(token.length, dateString); 10731 } 10732 }, { 10733 key: "set", 10734 value: function set(date, _flags, value) { 10735 date.setUTCFullYear(value, 0, 1); 10736 date.setUTCHours(0, 0, 0, 0); 10737 return date; 10738 } 10739 }]); 10740 10741 return ExtendedYearParser; 10742}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 10743 10744/***/ }), 10745
vendor: 5,741 bytes, lines 10746-10936
10746/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js": 10747/*!********************************************************************************!*\ 10748 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js ***! 10749 \********************************************************************************/ 10750/*! exports provided: FractionOfSecondParser */ 10751/***/ (function(module, __webpack_exports__, __webpack_require__) { 10752 10753"use strict"; 10754__webpack_require__.r(__webpack_exports__); 10755/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FractionOfSecondParser", function() { return FractionOfSecondParser; }); 10756/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 10757/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 10758function _typeof(obj) { 10759 "@babel/helpers - typeof"; 10760 10761 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 10762 _typeof = function _typeof(obj) { 10763 return typeof obj; 10764 }; 10765 } else { 10766 _typeof = function _typeof(obj) { 10767 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 10768 }; 10769 } 10770 10771 return _typeof(obj); 10772} 10773 10774function _classCallCheck(instance, Constructor) { 10775 if (!(instance instanceof Constructor)) { 10776 throw new TypeError("Cannot call a class as a function"); 10777 } 10778} 10779 10780function _defineProperties(target, props) { 10781 for (var i = 0; i < props.length; i++) { 10782 var descriptor = props[i]; 10783 descriptor.enumerable = descriptor.enumerable || false; 10784 descriptor.configurable = true; 10785 if ("value" in descriptor) descriptor.writable = true; 10786 Object.defineProperty(target, descriptor.key, descriptor); 10787 } 10788} 10789 10790function _createClass(Constructor, protoProps, staticProps) { 10791 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 10792 if (staticProps) _defineProperties(Constructor, staticProps); 10793 return Constructor; 10794} 10795 10796function _inherits(subClass, superClass) { 10797 if (typeof superClass !== "function" && superClass !== null) { 10798 throw new TypeError("Super expression must either be null or a function"); 10799 } 10800 10801 subClass.prototype = Object.create(superClass && superClass.prototype, { 10802 constructor: { 10803 value: subClass, 10804 writable: true, 10805 configurable: true 10806 } 10807 }); 10808 if (superClass) _setPrototypeOf(subClass, superClass); 10809} 10810 10811function _setPrototypeOf(o, p) { 10812 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 10813 o.__proto__ = p; 10814 return o; 10815 }; 10816 10817 return _setPrototypeOf(o, p); 10818} 10819 10820function _createSuper(Derived) { 10821 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 10822 10823 return function _createSuperInternal() { 10824 var Super = _getPrototypeOf(Derived), 10825 result; 10826 10827 if (hasNativeReflectConstruct) { 10828 var NewTarget = _getPrototypeOf(this).constructor; 10829 10830 result = Reflect.construct(Super, arguments, NewTarget); 10831 } else { 10832 result = Super.apply(this, arguments); 10833 } 10834 10835 return _possibleConstructorReturn(this, result); 10836 }; 10837} 10838 10839function _possibleConstructorReturn(self, call) { 10840 if (call && (_typeof(call) === "object" || typeof call === "function")) { 10841 return call; 10842 } 10843 10844 return _assertThisInitialized(self); 10845} 10846 10847function _assertThisInitialized(self) { 10848 if (self === void 0) { 10849 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 10850 } 10851 10852 return self; 10853} 10854 10855function _isNativeReflectConstruct() { 10856 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 10857 if (Reflect.construct.sham) return false; 10858 if (typeof Proxy === "function") return true; 10859 10860 try { 10861 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 10862 return true; 10863 } catch (e) { 10864 return false; 10865 } 10866} 10867 10868function _getPrototypeOf(o) { 10869 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 10870 return o.__proto__ || Object.getPrototypeOf(o); 10871 }; 10872 return _getPrototypeOf(o); 10873} 10874 10875function _defineProperty(obj, key, value) { 10876 if (key in obj) { 10877 Object.defineProperty(obj, key, { 10878 value: value, 10879 enumerable: true, 10880 configurable: true, 10881 writable: true 10882 }); 10883 } else { 10884 obj[key] = value; 10885 } 10886 10887 return obj; 10888} 10889 10890 10891 10892var FractionOfSecondParser = /*#__PURE__*/function (_Parser) { 10893 _inherits(FractionOfSecondParser, _Parser); 10894 10895 var _super = _createSuper(FractionOfSecondParser); 10896 10897 function FractionOfSecondParser() { 10898 var _this; 10899 10900 _classCallCheck(this, FractionOfSecondParser); 10901 10902 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 10903 args[_key] = arguments[_key]; 10904 } 10905 10906 _this = _super.call.apply(_super, [this].concat(args)); 10907 10908 _defineProperty(_assertThisInitialized(_this), "priority", 30); 10909 10910 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']); 10911 10912 return _this; 10913 } 10914 10915 _createClass(FractionOfSecondParser, [{ 10916 key: "parse", 10917 value: function parse(dateString, token) { 10918 var valueCallback = function valueCallback(value) { 10919 return Math.floor(value * Math.pow(10, -token.length + 3)); 10920 }; 10921 10922 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(token.length, dateString), valueCallback); 10923 } 10924 }, { 10925 key: "set", 10926 value: function set(date, _flags, value) { 10927 date.setUTCMilliseconds(value); 10928 return date; 10929 } 10930 }]); 10931 10932 return FractionOfSecondParser; 10933}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 10934 10935/***/ }), 10936
vendor: 6,246 bytes, lines 10937-11148
10937/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js": 10938/*!*************************************************************************!*\ 10939 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js ***! 10940 \*************************************************************************/ 10941/*! exports provided: Hour0To11Parser */ 10942/***/ (function(module, __webpack_exports__, __webpack_require__) { 10943 10944"use strict"; 10945__webpack_require__.r(__webpack_exports__); 10946/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hour0To11Parser", function() { return Hour0To11Parser; }); 10947/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 10948/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 10949/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 10950function _typeof(obj) { 10951 "@babel/helpers - typeof"; 10952 10953 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 10954 _typeof = function _typeof(obj) { 10955 return typeof obj; 10956 }; 10957 } else { 10958 _typeof = function _typeof(obj) { 10959 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 10960 }; 10961 } 10962 10963 return _typeof(obj); 10964} 10965 10966function _classCallCheck(instance, Constructor) { 10967 if (!(instance instanceof Constructor)) { 10968 throw new TypeError("Cannot call a class as a function"); 10969 } 10970} 10971 10972function _defineProperties(target, props) { 10973 for (var i = 0; i < props.length; i++) { 10974 var descriptor = props[i]; 10975 descriptor.enumerable = descriptor.enumerable || false; 10976 descriptor.configurable = true; 10977 if ("value" in descriptor) descriptor.writable = true; 10978 Object.defineProperty(target, descriptor.key, descriptor); 10979 } 10980} 10981 10982function _createClass(Constructor, protoProps, staticProps) { 10983 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 10984 if (staticProps) _defineProperties(Constructor, staticProps); 10985 return Constructor; 10986} 10987 10988function _inherits(subClass, superClass) { 10989 if (typeof superClass !== "function" && superClass !== null) { 10990 throw new TypeError("Super expression must either be null or a function"); 10991 } 10992 10993 subClass.prototype = Object.create(superClass && superClass.prototype, { 10994 constructor: { 10995 value: subClass, 10996 writable: true, 10997 configurable: true 10998 } 10999 }); 11000 if (superClass) _setPrototypeOf(subClass, superClass); 11001} 11002 11003function _setPrototypeOf(o, p) { 11004 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 11005 o.__proto__ = p; 11006 return o; 11007 }; 11008 11009 return _setPrototypeOf(o, p); 11010} 11011 11012function _createSuper(Derived) { 11013 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 11014 11015 return function _createSuperInternal() { 11016 var Super = _getPrototypeOf(Derived), 11017 result; 11018 11019 if (hasNativeReflectConstruct) { 11020 var NewTarget = _getPrototypeOf(this).constructor; 11021 11022 result = Reflect.construct(Super, arguments, NewTarget); 11023 } else { 11024 result = Super.apply(this, arguments); 11025 } 11026 11027 return _possibleConstructorReturn(this, result); 11028 }; 11029} 11030 11031function _possibleConstructorReturn(self, call) { 11032 if (call && (_typeof(call) === "object" || typeof call === "function")) { 11033 return call; 11034 } 11035 11036 return _assertThisInitialized(self); 11037} 11038 11039function _assertThisInitialized(self) { 11040 if (self === void 0) { 11041 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 11042 } 11043 11044 return self; 11045} 11046 11047function _isNativeReflectConstruct() { 11048 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 11049 if (Reflect.construct.sham) return false; 11050 if (typeof Proxy === "function") return true; 11051 11052 try { 11053 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 11054 return true; 11055 } catch (e) { 11056 return false; 11057 } 11058} 11059 11060function _getPrototypeOf(o) { 11061 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 11062 return o.__proto__ || Object.getPrototypeOf(o); 11063 }; 11064 return _getPrototypeOf(o); 11065} 11066 11067function _defineProperty(obj, key, value) { 11068 if (key in obj) { 11069 Object.defineProperty(obj, key, { 11070 value: value, 11071 enumerable: true, 11072 configurable: true, 11073 writable: true 11074 }); 11075 } else { 11076 obj[key] = value; 11077 } 11078 11079 return obj; 11080} 11081 11082 11083 11084 11085var Hour0To11Parser = /*#__PURE__*/function (_Parser) { 11086 _inherits(Hour0To11Parser, _Parser); 11087 11088 var _super = _createSuper(Hour0To11Parser); 11089 11090 function Hour0To11Parser() { 11091 var _this; 11092 11093 _classCallCheck(this, Hour0To11Parser); 11094 11095 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 11096 args[_key] = arguments[_key]; 11097 } 11098 11099 _this = _super.call.apply(_super, [this].concat(args)); 11100 11101 _defineProperty(_assertThisInitialized(_this), "priority", 70); 11102 11103 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['h', 'H', 'k', 't', 'T']); 11104 11105 return _this; 11106 } 11107 11108 _createClass(Hour0To11Parser, [{ 11109 key: "parse", 11110 value: function parse(dateString, token, match) { 11111 switch (token) { 11112 case 'K': 11113 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].hour11h, dateString); 11114 11115 case 'Ko': 11116 return match.ordinalNumber(dateString, { 11117 unit: 'hour' 11118 }); 11119 11120 default: 11121 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(token.length, dateString); 11122 } 11123 } 11124 }, { 11125 key: "validate", 11126 value: function validate(_date, value) { 11127 return value >= 0 && value <= 11; 11128 } 11129 }, { 11130 key: "set", 11131 value: function set(date, _flags, value) { 11132 var isPM = date.getUTCHours() >= 12; 11133 11134 if (isPM && value < 12) { 11135 date.setUTCHours(value + 12, 0, 0, 0); 11136 } else { 11137 date.setUTCHours(value, 0, 0, 0); 11138 } 11139 11140 return date; 11141 } 11142 }]); 11143 11144 return Hour0To11Parser; 11145}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 11146 11147/***/ }), 11148
vendor: 6,107 bytes, lines 11149-11353
11149/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js": 11150/*!*************************************************************************!*\ 11151 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js ***! 11152 \*************************************************************************/ 11153/*! exports provided: Hour0to23Parser */ 11154/***/ (function(module, __webpack_exports__, __webpack_require__) { 11155 11156"use strict"; 11157__webpack_require__.r(__webpack_exports__); 11158/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hour0to23Parser", function() { return Hour0to23Parser; }); 11159/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 11160/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 11161/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 11162function _typeof(obj) { 11163 "@babel/helpers - typeof"; 11164 11165 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 11166 _typeof = function _typeof(obj) { 11167 return typeof obj; 11168 }; 11169 } else { 11170 _typeof = function _typeof(obj) { 11171 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 11172 }; 11173 } 11174 11175 return _typeof(obj); 11176} 11177 11178function _classCallCheck(instance, Constructor) { 11179 if (!(instance instanceof Constructor)) { 11180 throw new TypeError("Cannot call a class as a function"); 11181 } 11182} 11183 11184function _defineProperties(target, props) { 11185 for (var i = 0; i < props.length; i++) { 11186 var descriptor = props[i]; 11187 descriptor.enumerable = descriptor.enumerable || false; 11188 descriptor.configurable = true; 11189 if ("value" in descriptor) descriptor.writable = true; 11190 Object.defineProperty(target, descriptor.key, descriptor); 11191 } 11192} 11193 11194function _createClass(Constructor, protoProps, staticProps) { 11195 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 11196 if (staticProps) _defineProperties(Constructor, staticProps); 11197 return Constructor; 11198} 11199 11200function _inherits(subClass, superClass) { 11201 if (typeof superClass !== "function" && superClass !== null) { 11202 throw new TypeError("Super expression must either be null or a function"); 11203 } 11204 11205 subClass.prototype = Object.create(superClass && superClass.prototype, { 11206 constructor: { 11207 value: subClass, 11208 writable: true, 11209 configurable: true 11210 } 11211 }); 11212 if (superClass) _setPrototypeOf(subClass, superClass); 11213} 11214 11215function _setPrototypeOf(o, p) { 11216 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 11217 o.__proto__ = p; 11218 return o; 11219 }; 11220 11221 return _setPrototypeOf(o, p); 11222} 11223 11224function _createSuper(Derived) { 11225 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 11226 11227 return function _createSuperInternal() { 11228 var Super = _getPrototypeOf(Derived), 11229 result; 11230 11231 if (hasNativeReflectConstruct) { 11232 var NewTarget = _getPrototypeOf(this).constructor; 11233 11234 result = Reflect.construct(Super, arguments, NewTarget); 11235 } else { 11236 result = Super.apply(this, arguments); 11237 } 11238 11239 return _possibleConstructorReturn(this, result); 11240 }; 11241} 11242 11243function _possibleConstructorReturn(self, call) { 11244 if (call && (_typeof(call) === "object" || typeof call === "function")) { 11245 return call; 11246 } 11247 11248 return _assertThisInitialized(self); 11249} 11250 11251function _assertThisInitialized(self) { 11252 if (self === void 0) { 11253 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 11254 } 11255 11256 return self; 11257} 11258 11259function _isNativeReflectConstruct() { 11260 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 11261 if (Reflect.construct.sham) return false; 11262 if (typeof Proxy === "function") return true; 11263 11264 try { 11265 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 11266 return true; 11267 } catch (e) { 11268 return false; 11269 } 11270} 11271 11272function _getPrototypeOf(o) { 11273 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 11274 return o.__proto__ || Object.getPrototypeOf(o); 11275 }; 11276 return _getPrototypeOf(o); 11277} 11278 11279function _defineProperty(obj, key, value) { 11280 if (key in obj) { 11281 Object.defineProperty(obj, key, { 11282 value: value, 11283 enumerable: true, 11284 configurable: true, 11285 writable: true 11286 }); 11287 } else { 11288 obj[key] = value; 11289 } 11290 11291 return obj; 11292} 11293 11294 11295 11296 11297var Hour0to23Parser = /*#__PURE__*/function (_Parser) { 11298 _inherits(Hour0to23Parser, _Parser); 11299 11300 var _super = _createSuper(Hour0to23Parser); 11301 11302 function Hour0to23Parser() { 11303 var _this; 11304 11305 _classCallCheck(this, Hour0to23Parser); 11306 11307 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 11308 args[_key] = arguments[_key]; 11309 } 11310 11311 _this = _super.call.apply(_super, [this].concat(args)); 11312 11313 _defineProperty(_assertThisInitialized(_this), "priority", 70); 11314 11315 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'K', 'k', 't', 'T']); 11316 11317 return _this; 11318 } 11319 11320 _createClass(Hour0to23Parser, [{ 11321 key: "parse", 11322 value: function parse(dateString, token, match) { 11323 switch (token) { 11324 case 'H': 11325 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].hour23h, dateString); 11326 11327 case 'Ho': 11328 return match.ordinalNumber(dateString, { 11329 unit: 'hour' 11330 }); 11331 11332 default: 11333 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(token.length, dateString); 11334 } 11335 } 11336 }, { 11337 key: "validate", 11338 value: function validate(_date, value) { 11339 return value >= 0 && value <= 23; 11340 } 11341 }, { 11342 key: "set", 11343 value: function set(date, _flags, value) { 11344 date.setUTCHours(value, 0, 0, 0); 11345 return date; 11346 } 11347 }]); 11348 11349 return Hour0to23Parser; 11350}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 11351 11352/***/ }), 11353
vendor: 6,159 bytes, lines 11354-11559
11354/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js": 11355/*!*************************************************************************!*\ 11356 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js ***! 11357 \*************************************************************************/ 11358/*! exports provided: Hour1To24Parser */ 11359/***/ (function(module, __webpack_exports__, __webpack_require__) { 11360 11361"use strict"; 11362__webpack_require__.r(__webpack_exports__); 11363/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hour1To24Parser", function() { return Hour1To24Parser; }); 11364/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 11365/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 11366/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 11367function _typeof(obj) { 11368 "@babel/helpers - typeof"; 11369 11370 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 11371 _typeof = function _typeof(obj) { 11372 return typeof obj; 11373 }; 11374 } else { 11375 _typeof = function _typeof(obj) { 11376 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 11377 }; 11378 } 11379 11380 return _typeof(obj); 11381} 11382 11383function _classCallCheck(instance, Constructor) { 11384 if (!(instance instanceof Constructor)) { 11385 throw new TypeError("Cannot call a class as a function"); 11386 } 11387} 11388 11389function _defineProperties(target, props) { 11390 for (var i = 0; i < props.length; i++) { 11391 var descriptor = props[i]; 11392 descriptor.enumerable = descriptor.enumerable || false; 11393 descriptor.configurable = true; 11394 if ("value" in descriptor) descriptor.writable = true; 11395 Object.defineProperty(target, descriptor.key, descriptor); 11396 } 11397} 11398 11399function _createClass(Constructor, protoProps, staticProps) { 11400 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 11401 if (staticProps) _defineProperties(Constructor, staticProps); 11402 return Constructor; 11403} 11404 11405function _inherits(subClass, superClass) { 11406 if (typeof superClass !== "function" && superClass !== null) { 11407 throw new TypeError("Super expression must either be null or a function"); 11408 } 11409 11410 subClass.prototype = Object.create(superClass && superClass.prototype, { 11411 constructor: { 11412 value: subClass, 11413 writable: true, 11414 configurable: true 11415 } 11416 }); 11417 if (superClass) _setPrototypeOf(subClass, superClass); 11418} 11419 11420function _setPrototypeOf(o, p) { 11421 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 11422 o.__proto__ = p; 11423 return o; 11424 }; 11425 11426 return _setPrototypeOf(o, p); 11427} 11428 11429function _createSuper(Derived) { 11430 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 11431 11432 return function _createSuperInternal() { 11433 var Super = _getPrototypeOf(Derived), 11434 result; 11435 11436 if (hasNativeReflectConstruct) { 11437 var NewTarget = _getPrototypeOf(this).constructor; 11438 11439 result = Reflect.construct(Super, arguments, NewTarget); 11440 } else { 11441 result = Super.apply(this, arguments); 11442 } 11443 11444 return _possibleConstructorReturn(this, result); 11445 }; 11446} 11447 11448function _possibleConstructorReturn(self, call) { 11449 if (call && (_typeof(call) === "object" || typeof call === "function")) { 11450 return call; 11451 } 11452 11453 return _assertThisInitialized(self); 11454} 11455 11456function _assertThisInitialized(self) { 11457 if (self === void 0) { 11458 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 11459 } 11460 11461 return self; 11462} 11463 11464function _isNativeReflectConstruct() { 11465 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 11466 if (Reflect.construct.sham) return false; 11467 if (typeof Proxy === "function") return true; 11468 11469 try { 11470 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 11471 return true; 11472 } catch (e) { 11473 return false; 11474 } 11475} 11476 11477function _getPrototypeOf(o) { 11478 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 11479 return o.__proto__ || Object.getPrototypeOf(o); 11480 }; 11481 return _getPrototypeOf(o); 11482} 11483 11484function _defineProperty(obj, key, value) { 11485 if (key in obj) { 11486 Object.defineProperty(obj, key, { 11487 value: value, 11488 enumerable: true, 11489 configurable: true, 11490 writable: true 11491 }); 11492 } else { 11493 obj[key] = value; 11494 } 11495 11496 return obj; 11497} 11498 11499 11500 11501 11502var Hour1To24Parser = /*#__PURE__*/function (_Parser) { 11503 _inherits(Hour1To24Parser, _Parser); 11504 11505 var _super = _createSuper(Hour1To24Parser); 11506 11507 function Hour1To24Parser() { 11508 var _this; 11509 11510 _classCallCheck(this, Hour1To24Parser); 11511 11512 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 11513 args[_key] = arguments[_key]; 11514 } 11515 11516 _this = _super.call.apply(_super, [this].concat(args)); 11517 11518 _defineProperty(_assertThisInitialized(_this), "priority", 70); 11519 11520 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['a', 'b', 'h', 'H', 'K', 't', 'T']); 11521 11522 return _this; 11523 } 11524 11525 _createClass(Hour1To24Parser, [{ 11526 key: "parse", 11527 value: function parse(dateString, token, match) { 11528 switch (token) { 11529 case 'k': 11530 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].hour24h, dateString); 11531 11532 case 'ko': 11533 return match.ordinalNumber(dateString, { 11534 unit: 'hour' 11535 }); 11536 11537 default: 11538 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(token.length, dateString); 11539 } 11540 } 11541 }, { 11542 key: "validate", 11543 value: function validate(_date, value) { 11544 return value >= 1 && value <= 24; 11545 } 11546 }, { 11547 key: "set", 11548 value: function set(date, _flags, value) { 11549 var hours = value <= 24 ? value % 24 : value; 11550 date.setUTCHours(hours, 0, 0, 0); 11551 return date; 11552 } 11553 }]); 11554 11555 return Hour1To24Parser; 11556}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 11557 11558/***/ }), 11559
vendor: 6,326 bytes, lines 11560-11773
11560/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js": 11561/*!*************************************************************************!*\ 11562 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js ***! 11563 \*************************************************************************/ 11564/*! exports provided: Hour1to12Parser */ 11565/***/ (function(module, __webpack_exports__, __webpack_require__) { 11566 11567"use strict"; 11568__webpack_require__.r(__webpack_exports__); 11569/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Hour1to12Parser", function() { return Hour1to12Parser; }); 11570/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 11571/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 11572/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 11573function _typeof(obj) { 11574 "@babel/helpers - typeof"; 11575 11576 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 11577 _typeof = function _typeof(obj) { 11578 return typeof obj; 11579 }; 11580 } else { 11581 _typeof = function _typeof(obj) { 11582 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 11583 }; 11584 } 11585 11586 return _typeof(obj); 11587} 11588 11589function _classCallCheck(instance, Constructor) { 11590 if (!(instance instanceof Constructor)) { 11591 throw new TypeError("Cannot call a class as a function"); 11592 } 11593} 11594 11595function _defineProperties(target, props) { 11596 for (var i = 0; i < props.length; i++) { 11597 var descriptor = props[i]; 11598 descriptor.enumerable = descriptor.enumerable || false; 11599 descriptor.configurable = true; 11600 if ("value" in descriptor) descriptor.writable = true; 11601 Object.defineProperty(target, descriptor.key, descriptor); 11602 } 11603} 11604 11605function _createClass(Constructor, protoProps, staticProps) { 11606 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 11607 if (staticProps) _defineProperties(Constructor, staticProps); 11608 return Constructor; 11609} 11610 11611function _inherits(subClass, superClass) { 11612 if (typeof superClass !== "function" && superClass !== null) { 11613 throw new TypeError("Super expression must either be null or a function"); 11614 } 11615 11616 subClass.prototype = Object.create(superClass && superClass.prototype, { 11617 constructor: { 11618 value: subClass, 11619 writable: true, 11620 configurable: true 11621 } 11622 }); 11623 if (superClass) _setPrototypeOf(subClass, superClass); 11624} 11625 11626function _setPrototypeOf(o, p) { 11627 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 11628 o.__proto__ = p; 11629 return o; 11630 }; 11631 11632 return _setPrototypeOf(o, p); 11633} 11634 11635function _createSuper(Derived) { 11636 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 11637 11638 return function _createSuperInternal() { 11639 var Super = _getPrototypeOf(Derived), 11640 result; 11641 11642 if (hasNativeReflectConstruct) { 11643 var NewTarget = _getPrototypeOf(this).constructor; 11644 11645 result = Reflect.construct(Super, arguments, NewTarget); 11646 } else { 11647 result = Super.apply(this, arguments); 11648 } 11649 11650 return _possibleConstructorReturn(this, result); 11651 }; 11652} 11653 11654function _possibleConstructorReturn(self, call) { 11655 if (call && (_typeof(call) === "object" || typeof call === "function")) { 11656 return call; 11657 } 11658 11659 return _assertThisInitialized(self); 11660} 11661 11662function _assertThisInitialized(self) { 11663 if (self === void 0) { 11664 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 11665 } 11666 11667 return self; 11668} 11669 11670function _isNativeReflectConstruct() { 11671 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 11672 if (Reflect.construct.sham) return false; 11673 if (typeof Proxy === "function") return true; 11674 11675 try { 11676 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 11677 return true; 11678 } catch (e) { 11679 return false; 11680 } 11681} 11682 11683function _getPrototypeOf(o) { 11684 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 11685 return o.__proto__ || Object.getPrototypeOf(o); 11686 }; 11687 return _getPrototypeOf(o); 11688} 11689 11690function _defineProperty(obj, key, value) { 11691 if (key in obj) { 11692 Object.defineProperty(obj, key, { 11693 value: value, 11694 enumerable: true, 11695 configurable: true, 11696 writable: true 11697 }); 11698 } else { 11699 obj[key] = value; 11700 } 11701 11702 return obj; 11703} 11704 11705 11706 11707 11708var Hour1to12Parser = /*#__PURE__*/function (_Parser) { 11709 _inherits(Hour1to12Parser, _Parser); 11710 11711 var _super = _createSuper(Hour1to12Parser); 11712 11713 function Hour1to12Parser() { 11714 var _this; 11715 11716 _classCallCheck(this, Hour1to12Parser); 11717 11718 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 11719 args[_key] = arguments[_key]; 11720 } 11721 11722 _this = _super.call.apply(_super, [this].concat(args)); 11723 11724 _defineProperty(_assertThisInitialized(_this), "priority", 70); 11725 11726 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['H', 'K', 'k', 't', 'T']); 11727 11728 return _this; 11729 } 11730 11731 _createClass(Hour1to12Parser, [{ 11732 key: "parse", 11733 value: function parse(dateString, token, match) { 11734 switch (token) { 11735 case 'h': 11736 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].hour12h, dateString); 11737 11738 case 'ho': 11739 return match.ordinalNumber(dateString, { 11740 unit: 'hour' 11741 }); 11742 11743 default: 11744 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(token.length, dateString); 11745 } 11746 } 11747 }, { 11748 key: "validate", 11749 value: function validate(_date, value) { 11750 return value >= 1 && value <= 12; 11751 } 11752 }, { 11753 key: "set", 11754 value: function set(date, _flags, value) { 11755 var isPM = date.getUTCHours() >= 12; 11756 11757 if (isPM && value < 12) { 11758 date.setUTCHours(value + 12, 0, 0, 0); 11759 } else if (!isPM && value === 12) { 11760 date.setUTCHours(0, 0, 0, 0); 11761 } else { 11762 date.setUTCHours(value, 0, 0, 0); 11763 } 11764 11765 return date; 11766 } 11767 }]); 11768 11769 return Hour1to12Parser; 11770}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 11771 11772/***/ }), 11773
vendor: 7,842 bytes, lines 11774-12036
11774/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js": 11775/*!**********************************************************************!*\ 11776 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js ***! 11777 \**********************************************************************/ 11778/*! exports provided: ISODayParser */ 11779/***/ (function(module, __webpack_exports__, __webpack_require__) { 11780 11781"use strict"; 11782__webpack_require__.r(__webpack_exports__); 11783/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ISODayParser", function() { return ISODayParser; }); 11784/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 11785/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 11786/* harmony import */ var _lib_setUTCISODay_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/setUTCISODay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCISODay/index.js"); 11787function _typeof(obj) { 11788 "@babel/helpers - typeof"; 11789 11790 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 11791 _typeof = function _typeof(obj) { 11792 return typeof obj; 11793 }; 11794 } else { 11795 _typeof = function _typeof(obj) { 11796 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 11797 }; 11798 } 11799 11800 return _typeof(obj); 11801} 11802 11803function _classCallCheck(instance, Constructor) { 11804 if (!(instance instanceof Constructor)) { 11805 throw new TypeError("Cannot call a class as a function"); 11806 } 11807} 11808 11809function _defineProperties(target, props) { 11810 for (var i = 0; i < props.length; i++) { 11811 var descriptor = props[i]; 11812 descriptor.enumerable = descriptor.enumerable || false; 11813 descriptor.configurable = true; 11814 if ("value" in descriptor) descriptor.writable = true; 11815 Object.defineProperty(target, descriptor.key, descriptor); 11816 } 11817} 11818 11819function _createClass(Constructor, protoProps, staticProps) { 11820 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 11821 if (staticProps) _defineProperties(Constructor, staticProps); 11822 return Constructor; 11823} 11824 11825function _inherits(subClass, superClass) { 11826 if (typeof superClass !== "function" && superClass !== null) { 11827 throw new TypeError("Super expression must either be null or a function"); 11828 } 11829 11830 subClass.prototype = Object.create(superClass && superClass.prototype, { 11831 constructor: { 11832 value: subClass, 11833 writable: true, 11834 configurable: true 11835 } 11836 }); 11837 if (superClass) _setPrototypeOf(subClass, superClass); 11838} 11839 11840function _setPrototypeOf(o, p) { 11841 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 11842 o.__proto__ = p; 11843 return o; 11844 }; 11845 11846 return _setPrototypeOf(o, p); 11847} 11848 11849function _createSuper(Derived) { 11850 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 11851 11852 return function _createSuperInternal() { 11853 var Super = _getPrototypeOf(Derived), 11854 result; 11855 11856 if (hasNativeReflectConstruct) { 11857 var NewTarget = _getPrototypeOf(this).constructor; 11858 11859 result = Reflect.construct(Super, arguments, NewTarget); 11860 } else { 11861 result = Super.apply(this, arguments); 11862 } 11863 11864 return _possibleConstructorReturn(this, result); 11865 }; 11866} 11867 11868function _possibleConstructorReturn(self, call) { 11869 if (call && (_typeof(call) === "object" || typeof call === "function")) { 11870 return call; 11871 } 11872 11873 return _assertThisInitialized(self); 11874} 11875 11876function _assertThisInitialized(self) { 11877 if (self === void 0) { 11878 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 11879 } 11880 11881 return self; 11882} 11883 11884function _isNativeReflectConstruct() { 11885 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 11886 if (Reflect.construct.sham) return false; 11887 if (typeof Proxy === "function") return true; 11888 11889 try { 11890 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 11891 return true; 11892 } catch (e) { 11893 return false; 11894 } 11895} 11896 11897function _getPrototypeOf(o) { 11898 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 11899 return o.__proto__ || Object.getPrototypeOf(o); 11900 }; 11901 return _getPrototypeOf(o); 11902} 11903 11904function _defineProperty(obj, key, value) { 11905 if (key in obj) { 11906 Object.defineProperty(obj, key, { 11907 value: value, 11908 enumerable: true, 11909 configurable: true, 11910 writable: true 11911 }); 11912 } else { 11913 obj[key] = value; 11914 } 11915 11916 return obj; 11917} 11918 11919 11920 11921 // ISO day of week 11922 11923var ISODayParser = /*#__PURE__*/function (_Parser) { 11924 _inherits(ISODayParser, _Parser); 11925 11926 var _super = _createSuper(ISODayParser); 11927 11928 function ISODayParser() { 11929 var _this; 11930 11931 _classCallCheck(this, ISODayParser); 11932 11933 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 11934 args[_key] = arguments[_key]; 11935 } 11936 11937 _this = _super.call.apply(_super, [this].concat(args)); 11938 11939 _defineProperty(_assertThisInitialized(_this), "priority", 90); 11940 11941 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']); 11942 11943 return _this; 11944 } 11945 11946 _createClass(ISODayParser, [{ 11947 key: "parse", 11948 value: function parse(dateString, token, match) { 11949 var valueCallback = function valueCallback(value) { 11950 if (value === 0) { 11951 return 7; 11952 } 11953 11954 return value; 11955 }; 11956 11957 switch (token) { 11958 // 2 11959 case 'i': 11960 case 'ii': 11961 // 02 11962 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(token.length, dateString); 11963 // 2nd 11964 11965 case 'io': 11966 return match.ordinalNumber(dateString, { 11967 unit: 'day' 11968 }); 11969 // Tue 11970 11971 case 'iii': 11972 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(match.day(dateString, { 11973 width: 'abbreviated', 11974 context: 'formatting' 11975 }) || match.day(dateString, { 11976 width: 'short', 11977 context: 'formatting' 11978 }) || match.day(dateString, { 11979 width: 'narrow', 11980 context: 'formatting' 11981 }), valueCallback); 11982 // T 11983 11984 case 'iiiii': 11985 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(match.day(dateString, { 11986 width: 'narrow', 11987 context: 'formatting' 11988 }), valueCallback); 11989 // Tu 11990 11991 case 'iiiiii': 11992 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(match.day(dateString, { 11993 width: 'short', 11994 context: 'formatting' 11995 }) || match.day(dateString, { 11996 width: 'narrow', 11997 context: 'formatting' 11998 }), valueCallback); 11999 // Tuesday 12000 12001 case 'iiii': 12002 default: 12003 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(match.day(dateString, { 12004 width: 'wide', 12005 context: 'formatting' 12006 }) || match.day(dateString, { 12007 width: 'abbreviated', 12008 context: 'formatting' 12009 }) || match.day(dateString, { 12010 width: 'short', 12011 context: 'formatting' 12012 }) || match.day(dateString, { 12013 width: 'narrow', 12014 context: 'formatting' 12015 }), valueCallback); 12016 } 12017 } 12018 }, { 12019 key: "validate", 12020 value: function validate(_date, value) { 12021 return value >= 1 && value <= 7; 12022 } 12023 }, { 12024 key: "set", 12025 value: function set(date, _flags, value) { 12026 date = Object(_lib_setUTCISODay_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, value); 12027 date.setUTCHours(0, 0, 0, 0); 12028 return date; 12029 } 12030 }]); 12031 12032 return ISODayParser; 12033}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 12034 12035/***/ }), 12036
vendor: 6,667 bytes, lines 12037-12245
12037/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js": 12038/*!***************************************************************************!*\ 12039 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js ***! 12040 \***************************************************************************/ 12041/*! exports provided: ISOTimezoneParser */ 12042/***/ (function(module, __webpack_exports__, __webpack_require__) { 12043 12044"use strict"; 12045__webpack_require__.r(__webpack_exports__); 12046/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ISOTimezoneParser", function() { return ISOTimezoneParser; }); 12047/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 12048/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 12049/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 12050function _typeof(obj) { 12051 "@babel/helpers - typeof"; 12052 12053 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 12054 _typeof = function _typeof(obj) { 12055 return typeof obj; 12056 }; 12057 } else { 12058 _typeof = function _typeof(obj) { 12059 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 12060 }; 12061 } 12062 12063 return _typeof(obj); 12064} 12065 12066function _classCallCheck(instance, Constructor) { 12067 if (!(instance instanceof Constructor)) { 12068 throw new TypeError("Cannot call a class as a function"); 12069 } 12070} 12071 12072function _defineProperties(target, props) { 12073 for (var i = 0; i < props.length; i++) { 12074 var descriptor = props[i]; 12075 descriptor.enumerable = descriptor.enumerable || false; 12076 descriptor.configurable = true; 12077 if ("value" in descriptor) descriptor.writable = true; 12078 Object.defineProperty(target, descriptor.key, descriptor); 12079 } 12080} 12081 12082function _createClass(Constructor, protoProps, staticProps) { 12083 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 12084 if (staticProps) _defineProperties(Constructor, staticProps); 12085 return Constructor; 12086} 12087 12088function _inherits(subClass, superClass) { 12089 if (typeof superClass !== "function" && superClass !== null) { 12090 throw new TypeError("Super expression must either be null or a function"); 12091 } 12092 12093 subClass.prototype = Object.create(superClass && superClass.prototype, { 12094 constructor: { 12095 value: subClass, 12096 writable: true, 12097 configurable: true 12098 } 12099 }); 12100 if (superClass) _setPrototypeOf(subClass, superClass); 12101} 12102 12103function _setPrototypeOf(o, p) { 12104 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 12105 o.__proto__ = p; 12106 return o; 12107 }; 12108 12109 return _setPrototypeOf(o, p); 12110} 12111 12112function _createSuper(Derived) { 12113 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 12114 12115 return function _createSuperInternal() { 12116 var Super = _getPrototypeOf(Derived), 12117 result; 12118 12119 if (hasNativeReflectConstruct) { 12120 var NewTarget = _getPrototypeOf(this).constructor; 12121 12122 result = Reflect.construct(Super, arguments, NewTarget); 12123 } else { 12124 result = Super.apply(this, arguments); 12125 } 12126 12127 return _possibleConstructorReturn(this, result); 12128 }; 12129} 12130 12131function _possibleConstructorReturn(self, call) { 12132 if (call && (_typeof(call) === "object" || typeof call === "function")) { 12133 return call; 12134 } 12135 12136 return _assertThisInitialized(self); 12137} 12138 12139function _assertThisInitialized(self) { 12140 if (self === void 0) { 12141 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 12142 } 12143 12144 return self; 12145} 12146 12147function _isNativeReflectConstruct() { 12148 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 12149 if (Reflect.construct.sham) return false; 12150 if (typeof Proxy === "function") return true; 12151 12152 try { 12153 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 12154 return true; 12155 } catch (e) { 12156 return false; 12157 } 12158} 12159 12160function _getPrototypeOf(o) { 12161 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 12162 return o.__proto__ || Object.getPrototypeOf(o); 12163 }; 12164 return _getPrototypeOf(o); 12165} 12166 12167function _defineProperty(obj, key, value) { 12168 if (key in obj) { 12169 Object.defineProperty(obj, key, { 12170 value: value, 12171 enumerable: true, 12172 configurable: true, 12173 writable: true 12174 }); 12175 } else { 12176 obj[key] = value; 12177 } 12178 12179 return obj; 12180} 12181 12182 12183 12184 // Timezone (ISO-8601) 12185 12186var ISOTimezoneParser = /*#__PURE__*/function (_Parser) { 12187 _inherits(ISOTimezoneParser, _Parser); 12188 12189 var _super = _createSuper(ISOTimezoneParser); 12190 12191 function ISOTimezoneParser() { 12192 var _this; 12193 12194 _classCallCheck(this, ISOTimezoneParser); 12195 12196 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 12197 args[_key] = arguments[_key]; 12198 } 12199 12200 _this = _super.call.apply(_super, [this].concat(args)); 12201 12202 _defineProperty(_assertThisInitialized(_this), "priority", 10); 12203 12204 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'X']); 12205 12206 return _this; 12207 } 12208 12209 _createClass(ISOTimezoneParser, [{ 12210 key: "parse", 12211 value: function parse(dateString, token) { 12212 switch (token) { 12213 case 'x': 12214 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].basicOptionalMinutes, dateString); 12215 12216 case 'xx': 12217 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].basic, dateString); 12218 12219 case 'xxxx': 12220 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].basicOptionalSeconds, dateString); 12221 12222 case 'xxxxx': 12223 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].extendedOptionalSeconds, dateString); 12224 12225 case 'xxx': 12226 default: 12227 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].extended, dateString); 12228 } 12229 } 12230 }, { 12231 key: "set", 12232 value: function set(date, flags, value) { 12233 if (flags.timestampIsSet) { 12234 return date; 12235 } 12236 12237 return new Date(date.getTime() - value); 12238 } 12239 }]); 12240 12241 return ISOTimezoneParser; 12242}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 12243 12244/***/ }), 12245
vendor: 6,754 bytes, lines 12246-12454
12246/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js": 12247/*!********************************************************************************!*\ 12248 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js ***! 12249 \********************************************************************************/ 12250/*! exports provided: ISOTimezoneWithZParser */ 12251/***/ (function(module, __webpack_exports__, __webpack_require__) { 12252 12253"use strict"; 12254__webpack_require__.r(__webpack_exports__); 12255/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ISOTimezoneWithZParser", function() { return ISOTimezoneWithZParser; }); 12256/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 12257/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 12258/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 12259function _typeof(obj) { 12260 "@babel/helpers - typeof"; 12261 12262 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 12263 _typeof = function _typeof(obj) { 12264 return typeof obj; 12265 }; 12266 } else { 12267 _typeof = function _typeof(obj) { 12268 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 12269 }; 12270 } 12271 12272 return _typeof(obj); 12273} 12274 12275function _classCallCheck(instance, Constructor) { 12276 if (!(instance instanceof Constructor)) { 12277 throw new TypeError("Cannot call a class as a function"); 12278 } 12279} 12280 12281function _defineProperties(target, props) { 12282 for (var i = 0; i < props.length; i++) { 12283 var descriptor = props[i]; 12284 descriptor.enumerable = descriptor.enumerable || false; 12285 descriptor.configurable = true; 12286 if ("value" in descriptor) descriptor.writable = true; 12287 Object.defineProperty(target, descriptor.key, descriptor); 12288 } 12289} 12290 12291function _createClass(Constructor, protoProps, staticProps) { 12292 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 12293 if (staticProps) _defineProperties(Constructor, staticProps); 12294 return Constructor; 12295} 12296 12297function _inherits(subClass, superClass) { 12298 if (typeof superClass !== "function" && superClass !== null) { 12299 throw new TypeError("Super expression must either be null or a function"); 12300 } 12301 12302 subClass.prototype = Object.create(superClass && superClass.prototype, { 12303 constructor: { 12304 value: subClass, 12305 writable: true, 12306 configurable: true 12307 } 12308 }); 12309 if (superClass) _setPrototypeOf(subClass, superClass); 12310} 12311 12312function _setPrototypeOf(o, p) { 12313 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 12314 o.__proto__ = p; 12315 return o; 12316 }; 12317 12318 return _setPrototypeOf(o, p); 12319} 12320 12321function _createSuper(Derived) { 12322 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 12323 12324 return function _createSuperInternal() { 12325 var Super = _getPrototypeOf(Derived), 12326 result; 12327 12328 if (hasNativeReflectConstruct) { 12329 var NewTarget = _getPrototypeOf(this).constructor; 12330 12331 result = Reflect.construct(Super, arguments, NewTarget); 12332 } else { 12333 result = Super.apply(this, arguments); 12334 } 12335 12336 return _possibleConstructorReturn(this, result); 12337 }; 12338} 12339 12340function _possibleConstructorReturn(self, call) { 12341 if (call && (_typeof(call) === "object" || typeof call === "function")) { 12342 return call; 12343 } 12344 12345 return _assertThisInitialized(self); 12346} 12347 12348function _assertThisInitialized(self) { 12349 if (self === void 0) { 12350 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 12351 } 12352 12353 return self; 12354} 12355 12356function _isNativeReflectConstruct() { 12357 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 12358 if (Reflect.construct.sham) return false; 12359 if (typeof Proxy === "function") return true; 12360 12361 try { 12362 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 12363 return true; 12364 } catch (e) { 12365 return false; 12366 } 12367} 12368 12369function _getPrototypeOf(o) { 12370 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 12371 return o.__proto__ || Object.getPrototypeOf(o); 12372 }; 12373 return _getPrototypeOf(o); 12374} 12375 12376function _defineProperty(obj, key, value) { 12377 if (key in obj) { 12378 Object.defineProperty(obj, key, { 12379 value: value, 12380 enumerable: true, 12381 configurable: true, 12382 writable: true 12383 }); 12384 } else { 12385 obj[key] = value; 12386 } 12387 12388 return obj; 12389} 12390 12391 12392 12393 // Timezone (ISO-8601. +00:00 is `'Z'`) 12394 12395var ISOTimezoneWithZParser = /*#__PURE__*/function (_Parser) { 12396 _inherits(ISOTimezoneWithZParser, _Parser); 12397 12398 var _super = _createSuper(ISOTimezoneWithZParser); 12399 12400 function ISOTimezoneWithZParser() { 12401 var _this; 12402 12403 _classCallCheck(this, ISOTimezoneWithZParser); 12404 12405 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 12406 args[_key] = arguments[_key]; 12407 } 12408 12409 _this = _super.call.apply(_super, [this].concat(args)); 12410 12411 _defineProperty(_assertThisInitialized(_this), "priority", 10); 12412 12413 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T', 'x']); 12414 12415 return _this; 12416 } 12417 12418 _createClass(ISOTimezoneWithZParser, [{ 12419 key: "parse", 12420 value: function parse(dateString, token) { 12421 switch (token) { 12422 case 'X': 12423 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].basicOptionalMinutes, dateString); 12424 12425 case 'XX': 12426 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].basic, dateString); 12427 12428 case 'XXXX': 12429 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].basicOptionalSeconds, dateString); 12430 12431 case 'XXXXX': 12432 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].extendedOptionalSeconds, dateString); 12433 12434 case 'XXX': 12435 default: 12436 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseTimezonePattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["timezonePatterns"].extended, dateString); 12437 } 12438 } 12439 }, { 12440 key: "set", 12441 value: function set(date, flags, value) { 12442 if (flags.timestampIsSet) { 12443 return date; 12444 } 12445 12446 return new Date(date.getTime() - value); 12447 } 12448 }]); 12449 12450 return ISOTimezoneWithZParser; 12451}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 12452 12453/***/ }), 12454
vendor: 6,688 bytes, lines 12455-12663
12455/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js": 12456/*!***********************************************************************!*\ 12457 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js ***! 12458 \***********************************************************************/ 12459/*! exports provided: ISOWeekParser */ 12460/***/ (function(module, __webpack_exports__, __webpack_require__) { 12461 12462"use strict"; 12463__webpack_require__.r(__webpack_exports__); 12464/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ISOWeekParser", function() { return ISOWeekParser; }); 12465/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 12466/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 12467/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 12468/* harmony import */ var _lib_setUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/setUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js"); 12469/* harmony import */ var _lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_lib/startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 12470function _typeof(obj) { 12471 "@babel/helpers - typeof"; 12472 12473 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 12474 _typeof = function _typeof(obj) { 12475 return typeof obj; 12476 }; 12477 } else { 12478 _typeof = function _typeof(obj) { 12479 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 12480 }; 12481 } 12482 12483 return _typeof(obj); 12484} 12485 12486function _classCallCheck(instance, Constructor) { 12487 if (!(instance instanceof Constructor)) { 12488 throw new TypeError("Cannot call a class as a function"); 12489 } 12490} 12491 12492function _defineProperties(target, props) { 12493 for (var i = 0; i < props.length; i++) { 12494 var descriptor = props[i]; 12495 descriptor.enumerable = descriptor.enumerable || false; 12496 descriptor.configurable = true; 12497 if ("value" in descriptor) descriptor.writable = true; 12498 Object.defineProperty(target, descriptor.key, descriptor); 12499 } 12500} 12501 12502function _createClass(Constructor, protoProps, staticProps) { 12503 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 12504 if (staticProps) _defineProperties(Constructor, staticProps); 12505 return Constructor; 12506} 12507 12508function _inherits(subClass, superClass) { 12509 if (typeof superClass !== "function" && superClass !== null) { 12510 throw new TypeError("Super expression must either be null or a function"); 12511 } 12512 12513 subClass.prototype = Object.create(superClass && superClass.prototype, { 12514 constructor: { 12515 value: subClass, 12516 writable: true, 12517 configurable: true 12518 } 12519 }); 12520 if (superClass) _setPrototypeOf(subClass, superClass); 12521} 12522 12523function _setPrototypeOf(o, p) { 12524 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 12525 o.__proto__ = p; 12526 return o; 12527 }; 12528 12529 return _setPrototypeOf(o, p); 12530} 12531 12532function _createSuper(Derived) { 12533 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 12534 12535 return function _createSuperInternal() { 12536 var Super = _getPrototypeOf(Derived), 12537 result; 12538 12539 if (hasNativeReflectConstruct) { 12540 var NewTarget = _getPrototypeOf(this).constructor; 12541 12542 result = Reflect.construct(Super, arguments, NewTarget); 12543 } else { 12544 result = Super.apply(this, arguments); 12545 } 12546 12547 return _possibleConstructorReturn(this, result); 12548 }; 12549} 12550 12551function _possibleConstructorReturn(self, call) { 12552 if (call && (_typeof(call) === "object" || typeof call === "function")) { 12553 return call; 12554 } 12555 12556 return _assertThisInitialized(self); 12557} 12558 12559function _assertThisInitialized(self) { 12560 if (self === void 0) { 12561 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 12562 } 12563 12564 return self; 12565} 12566 12567function _isNativeReflectConstruct() { 12568 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 12569 if (Reflect.construct.sham) return false; 12570 if (typeof Proxy === "function") return true; 12571 12572 try { 12573 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 12574 return true; 12575 } catch (e) { 12576 return false; 12577 } 12578} 12579 12580function _getPrototypeOf(o) { 12581 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 12582 return o.__proto__ || Object.getPrototypeOf(o); 12583 }; 12584 return _getPrototypeOf(o); 12585} 12586 12587function _defineProperty(obj, key, value) { 12588 if (key in obj) { 12589 Object.defineProperty(obj, key, { 12590 value: value, 12591 enumerable: true, 12592 configurable: true, 12593 writable: true 12594 }); 12595 } else { 12596 obj[key] = value; 12597 } 12598 12599 return obj; 12600} 12601 12602 12603 12604 12605 12606 // ISO week of year 12607 12608var ISOWeekParser = /*#__PURE__*/function (_Parser) { 12609 _inherits(ISOWeekParser, _Parser); 12610 12611 var _super = _createSuper(ISOWeekParser); 12612 12613 function ISOWeekParser() { 12614 var _this; 12615 12616 _classCallCheck(this, ISOWeekParser); 12617 12618 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 12619 args[_key] = arguments[_key]; 12620 } 12621 12622 _this = _super.call.apply(_super, [this].concat(args)); 12623 12624 _defineProperty(_assertThisInitialized(_this), "priority", 100); 12625 12626 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']); 12627 12628 return _this; 12629 } 12630 12631 _createClass(ISOWeekParser, [{ 12632 key: "parse", 12633 value: function parse(dateString, token, match) { 12634 switch (token) { 12635 case 'I': 12636 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].week, dateString); 12637 12638 case 'Io': 12639 return match.ordinalNumber(dateString, { 12640 unit: 'week' 12641 }); 12642 12643 default: 12644 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(token.length, dateString); 12645 } 12646 } 12647 }, { 12648 key: "validate", 12649 value: function validate(_date, value) { 12650 return value >= 1 && value <= 53; 12651 } 12652 }, { 12653 key: "set", 12654 value: function set(date, _flags, value) { 12655 return Object(_lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_lib_setUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, value)); 12656 } 12657 }]); 12658 12659 return ISOWeekParser; 12660}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 12661 12662/***/ }), 12663
vendor: 6,111 bytes, lines 12664-12859
12664/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js": 12665/*!***************************************************************************!*\ 12666 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js ***! 12667 \***************************************************************************/ 12668/*! exports provided: ISOWeekYearParser */ 12669/***/ (function(module, __webpack_exports__, __webpack_require__) { 12670 12671"use strict"; 12672__webpack_require__.r(__webpack_exports__); 12673/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ISOWeekYearParser", function() { return ISOWeekYearParser; }); 12674/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 12675/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 12676/* harmony import */ var _lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/startOfUTCISOWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js"); 12677function _typeof(obj) { 12678 "@babel/helpers - typeof"; 12679 12680 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 12681 _typeof = function _typeof(obj) { 12682 return typeof obj; 12683 }; 12684 } else { 12685 _typeof = function _typeof(obj) { 12686 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 12687 }; 12688 } 12689 12690 return _typeof(obj); 12691} 12692 12693function _classCallCheck(instance, Constructor) { 12694 if (!(instance instanceof Constructor)) { 12695 throw new TypeError("Cannot call a class as a function"); 12696 } 12697} 12698 12699function _defineProperties(target, props) { 12700 for (var i = 0; i < props.length; i++) { 12701 var descriptor = props[i]; 12702 descriptor.enumerable = descriptor.enumerable || false; 12703 descriptor.configurable = true; 12704 if ("value" in descriptor) descriptor.writable = true; 12705 Object.defineProperty(target, descriptor.key, descriptor); 12706 } 12707} 12708 12709function _createClass(Constructor, protoProps, staticProps) { 12710 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 12711 if (staticProps) _defineProperties(Constructor, staticProps); 12712 return Constructor; 12713} 12714 12715function _inherits(subClass, superClass) { 12716 if (typeof superClass !== "function" && superClass !== null) { 12717 throw new TypeError("Super expression must either be null or a function"); 12718 } 12719 12720 subClass.prototype = Object.create(superClass && superClass.prototype, { 12721 constructor: { 12722 value: subClass, 12723 writable: true, 12724 configurable: true 12725 } 12726 }); 12727 if (superClass) _setPrototypeOf(subClass, superClass); 12728} 12729 12730function _setPrototypeOf(o, p) { 12731 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 12732 o.__proto__ = p; 12733 return o; 12734 }; 12735 12736 return _setPrototypeOf(o, p); 12737} 12738 12739function _createSuper(Derived) { 12740 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 12741 12742 return function _createSuperInternal() { 12743 var Super = _getPrototypeOf(Derived), 12744 result; 12745 12746 if (hasNativeReflectConstruct) { 12747 var NewTarget = _getPrototypeOf(this).constructor; 12748 12749 result = Reflect.construct(Super, arguments, NewTarget); 12750 } else { 12751 result = Super.apply(this, arguments); 12752 } 12753 12754 return _possibleConstructorReturn(this, result); 12755 }; 12756} 12757 12758function _possibleConstructorReturn(self, call) { 12759 if (call && (_typeof(call) === "object" || typeof call === "function")) { 12760 return call; 12761 } 12762 12763 return _assertThisInitialized(self); 12764} 12765 12766function _assertThisInitialized(self) { 12767 if (self === void 0) { 12768 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 12769 } 12770 12771 return self; 12772} 12773 12774function _isNativeReflectConstruct() { 12775 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 12776 if (Reflect.construct.sham) return false; 12777 if (typeof Proxy === "function") return true; 12778 12779 try { 12780 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 12781 return true; 12782 } catch (e) { 12783 return false; 12784 } 12785} 12786 12787function _getPrototypeOf(o) { 12788 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 12789 return o.__proto__ || Object.getPrototypeOf(o); 12790 }; 12791 return _getPrototypeOf(o); 12792} 12793 12794function _defineProperty(obj, key, value) { 12795 if (key in obj) { 12796 Object.defineProperty(obj, key, { 12797 value: value, 12798 enumerable: true, 12799 configurable: true, 12800 writable: true 12801 }); 12802 } else { 12803 obj[key] = value; 12804 } 12805 12806 return obj; 12807} 12808 12809 12810 12811 // ISO week-numbering year 12812 12813var ISOWeekYearParser = /*#__PURE__*/function (_Parser) { 12814 _inherits(ISOWeekYearParser, _Parser); 12815 12816 var _super = _createSuper(ISOWeekYearParser); 12817 12818 function ISOWeekYearParser() { 12819 var _this; 12820 12821 _classCallCheck(this, ISOWeekYearParser); 12822 12823 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 12824 args[_key] = arguments[_key]; 12825 } 12826 12827 _this = _super.call.apply(_super, [this].concat(args)); 12828 12829 _defineProperty(_assertThisInitialized(_this), "priority", 130); 12830 12831 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']); 12832 12833 return _this; 12834 } 12835 12836 _createClass(ISOWeekYearParser, [{ 12837 key: "parse", 12838 value: function parse(dateString, token) { 12839 if (token === 'R') { 12840 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigitsSigned"])(4, dateString); 12841 } 12842 12843 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigitsSigned"])(token.length, dateString); 12844 } 12845 }, { 12846 key: "set", 12847 value: function set(_date, _flags, value) { 12848 var firstWeekOfYear = new Date(0); 12849 firstWeekOfYear.setUTCFullYear(value, 0, 4); 12850 firstWeekOfYear.setUTCHours(0, 0, 0, 0); 12851 return Object(_lib_startOfUTCISOWeek_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(firstWeekOfYear); 12852 } 12853 }]); 12854 12855 return ISOWeekYearParser; 12856}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 12857 12858/***/ }), 12859
vendor: 7,789 bytes, lines 12860-13119
12860/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js": 12861/*!************************************************************************!*\ 12862 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js ***! 12863 \************************************************************************/ 12864/*! exports provided: LocalDayParser */ 12865/***/ (function(module, __webpack_exports__, __webpack_require__) { 12866 12867"use strict"; 12868__webpack_require__.r(__webpack_exports__); 12869/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocalDayParser", function() { return LocalDayParser; }); 12870/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 12871/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 12872/* harmony import */ var _lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/setUTCDay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js"); 12873function _typeof(obj) { 12874 "@babel/helpers - typeof"; 12875 12876 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 12877 _typeof = function _typeof(obj) { 12878 return typeof obj; 12879 }; 12880 } else { 12881 _typeof = function _typeof(obj) { 12882 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 12883 }; 12884 } 12885 12886 return _typeof(obj); 12887} 12888 12889function _classCallCheck(instance, Constructor) { 12890 if (!(instance instanceof Constructor)) { 12891 throw new TypeError("Cannot call a class as a function"); 12892 } 12893} 12894 12895function _defineProperties(target, props) { 12896 for (var i = 0; i < props.length; i++) { 12897 var descriptor = props[i]; 12898 descriptor.enumerable = descriptor.enumerable || false; 12899 descriptor.configurable = true; 12900 if ("value" in descriptor) descriptor.writable = true; 12901 Object.defineProperty(target, descriptor.key, descriptor); 12902 } 12903} 12904 12905function _createClass(Constructor, protoProps, staticProps) { 12906 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 12907 if (staticProps) _defineProperties(Constructor, staticProps); 12908 return Constructor; 12909} 12910 12911function _inherits(subClass, superClass) { 12912 if (typeof superClass !== "function" && superClass !== null) { 12913 throw new TypeError("Super expression must either be null or a function"); 12914 } 12915 12916 subClass.prototype = Object.create(superClass && superClass.prototype, { 12917 constructor: { 12918 value: subClass, 12919 writable: true, 12920 configurable: true 12921 } 12922 }); 12923 if (superClass) _setPrototypeOf(subClass, superClass); 12924} 12925 12926function _setPrototypeOf(o, p) { 12927 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 12928 o.__proto__ = p; 12929 return o; 12930 }; 12931 12932 return _setPrototypeOf(o, p); 12933} 12934 12935function _createSuper(Derived) { 12936 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 12937 12938 return function _createSuperInternal() { 12939 var Super = _getPrototypeOf(Derived), 12940 result; 12941 12942 if (hasNativeReflectConstruct) { 12943 var NewTarget = _getPrototypeOf(this).constructor; 12944 12945 result = Reflect.construct(Super, arguments, NewTarget); 12946 } else { 12947 result = Super.apply(this, arguments); 12948 } 12949 12950 return _possibleConstructorReturn(this, result); 12951 }; 12952} 12953 12954function _possibleConstructorReturn(self, call) { 12955 if (call && (_typeof(call) === "object" || typeof call === "function")) { 12956 return call; 12957 } 12958 12959 return _assertThisInitialized(self); 12960} 12961 12962function _assertThisInitialized(self) { 12963 if (self === void 0) { 12964 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 12965 } 12966 12967 return self; 12968} 12969 12970function _isNativeReflectConstruct() { 12971 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 12972 if (Reflect.construct.sham) return false; 12973 if (typeof Proxy === "function") return true; 12974 12975 try { 12976 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 12977 return true; 12978 } catch (e) { 12979 return false; 12980 } 12981} 12982 12983function _getPrototypeOf(o) { 12984 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 12985 return o.__proto__ || Object.getPrototypeOf(o); 12986 }; 12987 return _getPrototypeOf(o); 12988} 12989 12990function _defineProperty(obj, key, value) { 12991 if (key in obj) { 12992 Object.defineProperty(obj, key, { 12993 value: value, 12994 enumerable: true, 12995 configurable: true, 12996 writable: true 12997 }); 12998 } else { 12999 obj[key] = value; 13000 } 13001 13002 return obj; 13003} 13004 13005 13006 13007 // Local day of week 13008 13009var LocalDayParser = /*#__PURE__*/function (_Parser) { 13010 _inherits(LocalDayParser, _Parser); 13011 13012 var _super = _createSuper(LocalDayParser); 13013 13014 function LocalDayParser() { 13015 var _this; 13016 13017 _classCallCheck(this, LocalDayParser); 13018 13019 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 13020 args[_key] = arguments[_key]; 13021 } 13022 13023 _this = _super.call.apply(_super, [this].concat(args)); 13024 13025 _defineProperty(_assertThisInitialized(_this), "priority", 90); 13026 13027 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']); 13028 13029 return _this; 13030 } 13031 13032 _createClass(LocalDayParser, [{ 13033 key: "parse", 13034 value: function parse(dateString, token, match, options) { 13035 var valueCallback = function valueCallback(value) { 13036 var wholeWeekDays = Math.floor((value - 1) / 7) * 7; 13037 return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; 13038 }; 13039 13040 switch (token) { 13041 // 3 13042 case 'e': 13043 case 'ee': 13044 // 03 13045 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(token.length, dateString), valueCallback); 13046 // 3rd 13047 13048 case 'eo': 13049 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(match.ordinalNumber(dateString, { 13050 unit: 'day' 13051 }), valueCallback); 13052 // Tue 13053 13054 case 'eee': 13055 return match.day(dateString, { 13056 width: 'abbreviated', 13057 context: 'formatting' 13058 }) || match.day(dateString, { 13059 width: 'short', 13060 context: 'formatting' 13061 }) || match.day(dateString, { 13062 width: 'narrow', 13063 context: 'formatting' 13064 }); 13065 // T 13066 13067 case 'eeeee': 13068 return match.day(dateString, { 13069 width: 'narrow', 13070 context: 'formatting' 13071 }); 13072 // Tu 13073 13074 case 'eeeeee': 13075 return match.day(dateString, { 13076 width: 'short', 13077 context: 'formatting' 13078 }) || match.day(dateString, { 13079 width: 'narrow', 13080 context: 'formatting' 13081 }); 13082 // Tuesday 13083 13084 case 'eeee': 13085 default: 13086 return match.day(dateString, { 13087 width: 'wide', 13088 context: 'formatting' 13089 }) || match.day(dateString, { 13090 width: 'abbreviated', 13091 context: 'formatting' 13092 }) || match.day(dateString, { 13093 width: 'short', 13094 context: 'formatting' 13095 }) || match.day(dateString, { 13096 width: 'narrow', 13097 context: 'formatting' 13098 }); 13099 } 13100 } 13101 }, { 13102 key: "validate", 13103 value: function validate(_date, value) { 13104 return value >= 0 && value <= 6; 13105 } 13106 }, { 13107 key: "set", 13108 value: function set(date, _flags, value, options) { 13109 date = Object(_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, value, options); 13110 date.setUTCHours(0, 0, 0, 0); 13111 return date; 13112 } 13113 }]); 13114 13115 return LocalDayParser; 13116}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 13117 13118/***/ }), 13119
vendor: 6,716 bytes, lines 13120-13328
13120/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js": 13121/*!*************************************************************************!*\ 13122 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js ***! 13123 \*************************************************************************/ 13124/*! exports provided: LocalWeekParser */ 13125/***/ (function(module, __webpack_exports__, __webpack_require__) { 13126 13127"use strict"; 13128__webpack_require__.r(__webpack_exports__); 13129/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocalWeekParser", function() { return LocalWeekParser; }); 13130/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 13131/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 13132/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 13133/* harmony import */ var _lib_setUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/setUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/setUTCWeek/index.js"); 13134/* harmony import */ var _lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_lib/startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 13135function _typeof(obj) { 13136 "@babel/helpers - typeof"; 13137 13138 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 13139 _typeof = function _typeof(obj) { 13140 return typeof obj; 13141 }; 13142 } else { 13143 _typeof = function _typeof(obj) { 13144 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 13145 }; 13146 } 13147 13148 return _typeof(obj); 13149} 13150 13151function _classCallCheck(instance, Constructor) { 13152 if (!(instance instanceof Constructor)) { 13153 throw new TypeError("Cannot call a class as a function"); 13154 } 13155} 13156 13157function _defineProperties(target, props) { 13158 for (var i = 0; i < props.length; i++) { 13159 var descriptor = props[i]; 13160 descriptor.enumerable = descriptor.enumerable || false; 13161 descriptor.configurable = true; 13162 if ("value" in descriptor) descriptor.writable = true; 13163 Object.defineProperty(target, descriptor.key, descriptor); 13164 } 13165} 13166 13167function _createClass(Constructor, protoProps, staticProps) { 13168 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 13169 if (staticProps) _defineProperties(Constructor, staticProps); 13170 return Constructor; 13171} 13172 13173function _inherits(subClass, superClass) { 13174 if (typeof superClass !== "function" && superClass !== null) { 13175 throw new TypeError("Super expression must either be null or a function"); 13176 } 13177 13178 subClass.prototype = Object.create(superClass && superClass.prototype, { 13179 constructor: { 13180 value: subClass, 13181 writable: true, 13182 configurable: true 13183 } 13184 }); 13185 if (superClass) _setPrototypeOf(subClass, superClass); 13186} 13187 13188function _setPrototypeOf(o, p) { 13189 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 13190 o.__proto__ = p; 13191 return o; 13192 }; 13193 13194 return _setPrototypeOf(o, p); 13195} 13196 13197function _createSuper(Derived) { 13198 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 13199 13200 return function _createSuperInternal() { 13201 var Super = _getPrototypeOf(Derived), 13202 result; 13203 13204 if (hasNativeReflectConstruct) { 13205 var NewTarget = _getPrototypeOf(this).constructor; 13206 13207 result = Reflect.construct(Super, arguments, NewTarget); 13208 } else { 13209 result = Super.apply(this, arguments); 13210 } 13211 13212 return _possibleConstructorReturn(this, result); 13213 }; 13214} 13215 13216function _possibleConstructorReturn(self, call) { 13217 if (call && (_typeof(call) === "object" || typeof call === "function")) { 13218 return call; 13219 } 13220 13221 return _assertThisInitialized(self); 13222} 13223 13224function _assertThisInitialized(self) { 13225 if (self === void 0) { 13226 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13227 } 13228 13229 return self; 13230} 13231 13232function _isNativeReflectConstruct() { 13233 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 13234 if (Reflect.construct.sham) return false; 13235 if (typeof Proxy === "function") return true; 13236 13237 try { 13238 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 13239 return true; 13240 } catch (e) { 13241 return false; 13242 } 13243} 13244 13245function _getPrototypeOf(o) { 13246 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 13247 return o.__proto__ || Object.getPrototypeOf(o); 13248 }; 13249 return _getPrototypeOf(o); 13250} 13251 13252function _defineProperty(obj, key, value) { 13253 if (key in obj) { 13254 Object.defineProperty(obj, key, { 13255 value: value, 13256 enumerable: true, 13257 configurable: true, 13258 writable: true 13259 }); 13260 } else { 13261 obj[key] = value; 13262 } 13263 13264 return obj; 13265} 13266 13267 13268 13269 13270 13271 // Local week of year 13272 13273var LocalWeekParser = /*#__PURE__*/function (_Parser) { 13274 _inherits(LocalWeekParser, _Parser); 13275 13276 var _super = _createSuper(LocalWeekParser); 13277 13278 function LocalWeekParser() { 13279 var _this; 13280 13281 _classCallCheck(this, LocalWeekParser); 13282 13283 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 13284 args[_key] = arguments[_key]; 13285 } 13286 13287 _this = _super.call.apply(_super, [this].concat(args)); 13288 13289 _defineProperty(_assertThisInitialized(_this), "priority", 100); 13290 13291 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']); 13292 13293 return _this; 13294 } 13295 13296 _createClass(LocalWeekParser, [{ 13297 key: "parse", 13298 value: function parse(dateString, token, match) { 13299 switch (token) { 13300 case 'w': 13301 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].week, dateString); 13302 13303 case 'wo': 13304 return match.ordinalNumber(dateString, { 13305 unit: 'week' 13306 }); 13307 13308 default: 13309 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(token.length, dateString); 13310 } 13311 } 13312 }, { 13313 key: "validate", 13314 value: function validate(_date, value) { 13315 return value >= 1 && value <= 53; 13316 } 13317 }, { 13318 key: "set", 13319 value: function set(date, _flags, value, options) { 13320 return Object(_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_lib_setUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, value, options), options); 13321 } 13322 }]); 13323 13324 return LocalWeekParser; 13325}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 13326 13327/***/ }), 13328
vendor: 7,571 bytes, lines 13329-13554
13329/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js": 13330/*!*****************************************************************************!*\ 13331 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js ***! 13332 \*****************************************************************************/ 13333/*! exports provided: LocalWeekYearParser */ 13334/***/ (function(module, __webpack_exports__, __webpack_require__) { 13335 13336"use strict"; 13337__webpack_require__.r(__webpack_exports__); 13338/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocalWeekYearParser", function() { return LocalWeekYearParser; }); 13339/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 13340/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 13341/* harmony import */ var _lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/getUTCWeekYear/index.js */ "./node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js"); 13342/* harmony import */ var _lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_lib/startOfUTCWeek/index.js */ "./node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js"); 13343function _typeof(obj) { 13344 "@babel/helpers - typeof"; 13345 13346 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 13347 _typeof = function _typeof(obj) { 13348 return typeof obj; 13349 }; 13350 } else { 13351 _typeof = function _typeof(obj) { 13352 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 13353 }; 13354 } 13355 13356 return _typeof(obj); 13357} 13358 13359function _classCallCheck(instance, Constructor) { 13360 if (!(instance instanceof Constructor)) { 13361 throw new TypeError("Cannot call a class as a function"); 13362 } 13363} 13364 13365function _defineProperties(target, props) { 13366 for (var i = 0; i < props.length; i++) { 13367 var descriptor = props[i]; 13368 descriptor.enumerable = descriptor.enumerable || false; 13369 descriptor.configurable = true; 13370 if ("value" in descriptor) descriptor.writable = true; 13371 Object.defineProperty(target, descriptor.key, descriptor); 13372 } 13373} 13374 13375function _createClass(Constructor, protoProps, staticProps) { 13376 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 13377 if (staticProps) _defineProperties(Constructor, staticProps); 13378 return Constructor; 13379} 13380 13381function _inherits(subClass, superClass) { 13382 if (typeof superClass !== "function" && superClass !== null) { 13383 throw new TypeError("Super expression must either be null or a function"); 13384 } 13385 13386 subClass.prototype = Object.create(superClass && superClass.prototype, { 13387 constructor: { 13388 value: subClass, 13389 writable: true, 13390 configurable: true 13391 } 13392 }); 13393 if (superClass) _setPrototypeOf(subClass, superClass); 13394} 13395 13396function _setPrototypeOf(o, p) { 13397 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 13398 o.__proto__ = p; 13399 return o; 13400 }; 13401 13402 return _setPrototypeOf(o, p); 13403} 13404 13405function _createSuper(Derived) { 13406 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 13407 13408 return function _createSuperInternal() { 13409 var Super = _getPrototypeOf(Derived), 13410 result; 13411 13412 if (hasNativeReflectConstruct) { 13413 var NewTarget = _getPrototypeOf(this).constructor; 13414 13415 result = Reflect.construct(Super, arguments, NewTarget); 13416 } else { 13417 result = Super.apply(this, arguments); 13418 } 13419 13420 return _possibleConstructorReturn(this, result); 13421 }; 13422} 13423 13424function _possibleConstructorReturn(self, call) { 13425 if (call && (_typeof(call) === "object" || typeof call === "function")) { 13426 return call; 13427 } 13428 13429 return _assertThisInitialized(self); 13430} 13431 13432function _assertThisInitialized(self) { 13433 if (self === void 0) { 13434 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13435 } 13436 13437 return self; 13438} 13439 13440function _isNativeReflectConstruct() { 13441 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 13442 if (Reflect.construct.sham) return false; 13443 if (typeof Proxy === "function") return true; 13444 13445 try { 13446 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 13447 return true; 13448 } catch (e) { 13449 return false; 13450 } 13451} 13452 13453function _getPrototypeOf(o) { 13454 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 13455 return o.__proto__ || Object.getPrototypeOf(o); 13456 }; 13457 return _getPrototypeOf(o); 13458} 13459 13460function _defineProperty(obj, key, value) { 13461 if (key in obj) { 13462 Object.defineProperty(obj, key, { 13463 value: value, 13464 enumerable: true, 13465 configurable: true, 13466 writable: true 13467 }); 13468 } else { 13469 obj[key] = value; 13470 } 13471 13472 return obj; 13473} 13474 13475 13476 13477 13478 // Local week-numbering year 13479 13480var LocalWeekYearParser = /*#__PURE__*/function (_Parser) { 13481 _inherits(LocalWeekYearParser, _Parser); 13482 13483 var _super = _createSuper(LocalWeekYearParser); 13484 13485 function LocalWeekYearParser() { 13486 var _this; 13487 13488 _classCallCheck(this, LocalWeekYearParser); 13489 13490 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 13491 args[_key] = arguments[_key]; 13492 } 13493 13494 _this = _super.call.apply(_super, [this].concat(args)); 13495 13496 _defineProperty(_assertThisInitialized(_this), "priority", 130); 13497 13498 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']); 13499 13500 return _this; 13501 } 13502 13503 _createClass(LocalWeekYearParser, [{ 13504 key: "parse", 13505 value: function parse(dateString, token, match) { 13506 var valueCallback = function valueCallback(year) { 13507 return { 13508 year: year, 13509 isTwoDigitYear: token === 'YY' 13510 }; 13511 }; 13512 13513 switch (token) { 13514 case 'Y': 13515 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(4, dateString), valueCallback); 13516 13517 case 'Yo': 13518 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(match.ordinalNumber(dateString, { 13519 unit: 'year' 13520 }), valueCallback); 13521 13522 default: 13523 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(token.length, dateString), valueCallback); 13524 } 13525 } 13526 }, { 13527 key: "validate", 13528 value: function validate(_date, value) { 13529 return value.isTwoDigitYear || value.year > 0; 13530 } 13531 }, { 13532 key: "set", 13533 value: function set(date, flags, value, options) { 13534 var currentYear = Object(_lib_getUTCWeekYear_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, options); 13535 13536 if (value.isTwoDigitYear) { 13537 var normalizedTwoDigitYear = Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["normalizeTwoDigitYear"])(value.year, currentYear); 13538 date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate); 13539 date.setUTCHours(0, 0, 0, 0); 13540 return Object(_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, options); 13541 } 13542 13543 var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; 13544 date.setUTCFullYear(year, 0, options.firstWeekContainsDate); 13545 date.setUTCHours(0, 0, 0, 0); 13546 return Object(_lib_startOfUTCWeek_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(date, options); 13547 } 13548 }]); 13549 13550 return LocalWeekYearParser; 13551}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 13552 13553/***/ }), 13554
vendor: 6,040 bytes, lines 13555-13759
13555/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js": 13556/*!**********************************************************************!*\ 13557 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js ***! 13558 \**********************************************************************/ 13559/*! exports provided: MinuteParser */ 13560/***/ (function(module, __webpack_exports__, __webpack_require__) { 13561 13562"use strict"; 13563__webpack_require__.r(__webpack_exports__); 13564/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MinuteParser", function() { return MinuteParser; }); 13565/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 13566/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 13567/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 13568function _typeof(obj) { 13569 "@babel/helpers - typeof"; 13570 13571 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 13572 _typeof = function _typeof(obj) { 13573 return typeof obj; 13574 }; 13575 } else { 13576 _typeof = function _typeof(obj) { 13577 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 13578 }; 13579 } 13580 13581 return _typeof(obj); 13582} 13583 13584function _classCallCheck(instance, Constructor) { 13585 if (!(instance instanceof Constructor)) { 13586 throw new TypeError("Cannot call a class as a function"); 13587 } 13588} 13589 13590function _defineProperties(target, props) { 13591 for (var i = 0; i < props.length; i++) { 13592 var descriptor = props[i]; 13593 descriptor.enumerable = descriptor.enumerable || false; 13594 descriptor.configurable = true; 13595 if ("value" in descriptor) descriptor.writable = true; 13596 Object.defineProperty(target, descriptor.key, descriptor); 13597 } 13598} 13599 13600function _createClass(Constructor, protoProps, staticProps) { 13601 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 13602 if (staticProps) _defineProperties(Constructor, staticProps); 13603 return Constructor; 13604} 13605 13606function _inherits(subClass, superClass) { 13607 if (typeof superClass !== "function" && superClass !== null) { 13608 throw new TypeError("Super expression must either be null or a function"); 13609 } 13610 13611 subClass.prototype = Object.create(superClass && superClass.prototype, { 13612 constructor: { 13613 value: subClass, 13614 writable: true, 13615 configurable: true 13616 } 13617 }); 13618 if (superClass) _setPrototypeOf(subClass, superClass); 13619} 13620 13621function _setPrototypeOf(o, p) { 13622 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 13623 o.__proto__ = p; 13624 return o; 13625 }; 13626 13627 return _setPrototypeOf(o, p); 13628} 13629 13630function _createSuper(Derived) { 13631 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 13632 13633 return function _createSuperInternal() { 13634 var Super = _getPrototypeOf(Derived), 13635 result; 13636 13637 if (hasNativeReflectConstruct) { 13638 var NewTarget = _getPrototypeOf(this).constructor; 13639 13640 result = Reflect.construct(Super, arguments, NewTarget); 13641 } else { 13642 result = Super.apply(this, arguments); 13643 } 13644 13645 return _possibleConstructorReturn(this, result); 13646 }; 13647} 13648 13649function _possibleConstructorReturn(self, call) { 13650 if (call && (_typeof(call) === "object" || typeof call === "function")) { 13651 return call; 13652 } 13653 13654 return _assertThisInitialized(self); 13655} 13656 13657function _assertThisInitialized(self) { 13658 if (self === void 0) { 13659 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13660 } 13661 13662 return self; 13663} 13664 13665function _isNativeReflectConstruct() { 13666 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 13667 if (Reflect.construct.sham) return false; 13668 if (typeof Proxy === "function") return true; 13669 13670 try { 13671 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 13672 return true; 13673 } catch (e) { 13674 return false; 13675 } 13676} 13677 13678function _getPrototypeOf(o) { 13679 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 13680 return o.__proto__ || Object.getPrototypeOf(o); 13681 }; 13682 return _getPrototypeOf(o); 13683} 13684 13685function _defineProperty(obj, key, value) { 13686 if (key in obj) { 13687 Object.defineProperty(obj, key, { 13688 value: value, 13689 enumerable: true, 13690 configurable: true, 13691 writable: true 13692 }); 13693 } else { 13694 obj[key] = value; 13695 } 13696 13697 return obj; 13698} 13699 13700 13701 13702 13703var MinuteParser = /*#__PURE__*/function (_Parser) { 13704 _inherits(MinuteParser, _Parser); 13705 13706 var _super = _createSuper(MinuteParser); 13707 13708 function MinuteParser() { 13709 var _this; 13710 13711 _classCallCheck(this, MinuteParser); 13712 13713 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 13714 args[_key] = arguments[_key]; 13715 } 13716 13717 _this = _super.call.apply(_super, [this].concat(args)); 13718 13719 _defineProperty(_assertThisInitialized(_this), "priority", 60); 13720 13721 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']); 13722 13723 return _this; 13724 } 13725 13726 _createClass(MinuteParser, [{ 13727 key: "parse", 13728 value: function parse(dateString, token, match) { 13729 switch (token) { 13730 case 'm': 13731 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].minute, dateString); 13732 13733 case 'mo': 13734 return match.ordinalNumber(dateString, { 13735 unit: 'minute' 13736 }); 13737 13738 default: 13739 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(token.length, dateString); 13740 } 13741 } 13742 }, { 13743 key: "validate", 13744 value: function validate(_date, value) { 13745 return value >= 0 && value <= 59; 13746 } 13747 }, { 13748 key: "set", 13749 value: function set(date, _flags, value) { 13750 date.setUTCMinutes(value, 0, 0); 13751 return date; 13752 } 13753 }]); 13754 13755 return MinuteParser; 13756}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 13757 13758/***/ }), 13759
vendor: 7,368 bytes, lines 13760-14003
13760/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js": 13761/*!*********************************************************************!*\ 13762 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js ***! 13763 \*********************************************************************/ 13764/*! exports provided: MonthParser */ 13765/***/ (function(module, __webpack_exports__, __webpack_require__) { 13766 13767"use strict"; 13768__webpack_require__.r(__webpack_exports__); 13769/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonthParser", function() { return MonthParser; }); 13770/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 13771/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 13772/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 13773function _typeof(obj) { 13774 "@babel/helpers - typeof"; 13775 13776 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 13777 _typeof = function _typeof(obj) { 13778 return typeof obj; 13779 }; 13780 } else { 13781 _typeof = function _typeof(obj) { 13782 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 13783 }; 13784 } 13785 13786 return _typeof(obj); 13787} 13788 13789function _classCallCheck(instance, Constructor) { 13790 if (!(instance instanceof Constructor)) { 13791 throw new TypeError("Cannot call a class as a function"); 13792 } 13793} 13794 13795function _defineProperties(target, props) { 13796 for (var i = 0; i < props.length; i++) { 13797 var descriptor = props[i]; 13798 descriptor.enumerable = descriptor.enumerable || false; 13799 descriptor.configurable = true; 13800 if ("value" in descriptor) descriptor.writable = true; 13801 Object.defineProperty(target, descriptor.key, descriptor); 13802 } 13803} 13804 13805function _createClass(Constructor, protoProps, staticProps) { 13806 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 13807 if (staticProps) _defineProperties(Constructor, staticProps); 13808 return Constructor; 13809} 13810 13811function _inherits(subClass, superClass) { 13812 if (typeof superClass !== "function" && superClass !== null) { 13813 throw new TypeError("Super expression must either be null or a function"); 13814 } 13815 13816 subClass.prototype = Object.create(superClass && superClass.prototype, { 13817 constructor: { 13818 value: subClass, 13819 writable: true, 13820 configurable: true 13821 } 13822 }); 13823 if (superClass) _setPrototypeOf(subClass, superClass); 13824} 13825 13826function _setPrototypeOf(o, p) { 13827 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 13828 o.__proto__ = p; 13829 return o; 13830 }; 13831 13832 return _setPrototypeOf(o, p); 13833} 13834 13835function _createSuper(Derived) { 13836 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 13837 13838 return function _createSuperInternal() { 13839 var Super = _getPrototypeOf(Derived), 13840 result; 13841 13842 if (hasNativeReflectConstruct) { 13843 var NewTarget = _getPrototypeOf(this).constructor; 13844 13845 result = Reflect.construct(Super, arguments, NewTarget); 13846 } else { 13847 result = Super.apply(this, arguments); 13848 } 13849 13850 return _possibleConstructorReturn(this, result); 13851 }; 13852} 13853 13854function _possibleConstructorReturn(self, call) { 13855 if (call && (_typeof(call) === "object" || typeof call === "function")) { 13856 return call; 13857 } 13858 13859 return _assertThisInitialized(self); 13860} 13861 13862function _assertThisInitialized(self) { 13863 if (self === void 0) { 13864 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 13865 } 13866 13867 return self; 13868} 13869 13870function _isNativeReflectConstruct() { 13871 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 13872 if (Reflect.construct.sham) return false; 13873 if (typeof Proxy === "function") return true; 13874 13875 try { 13876 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 13877 return true; 13878 } catch (e) { 13879 return false; 13880 } 13881} 13882 13883function _getPrototypeOf(o) { 13884 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 13885 return o.__proto__ || Object.getPrototypeOf(o); 13886 }; 13887 return _getPrototypeOf(o); 13888} 13889 13890function _defineProperty(obj, key, value) { 13891 if (key in obj) { 13892 Object.defineProperty(obj, key, { 13893 value: value, 13894 enumerable: true, 13895 configurable: true, 13896 writable: true 13897 }); 13898 } else { 13899 obj[key] = value; 13900 } 13901 13902 return obj; 13903} 13904 13905 13906 13907 13908var MonthParser = /*#__PURE__*/function (_Parser) { 13909 _inherits(MonthParser, _Parser); 13910 13911 var _super = _createSuper(MonthParser); 13912 13913 function MonthParser() { 13914 var _this; 13915 13916 _classCallCheck(this, MonthParser); 13917 13918 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 13919 args[_key] = arguments[_key]; 13920 } 13921 13922 _this = _super.call.apply(_super, [this].concat(args)); 13923 13924 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); 13925 13926 _defineProperty(_assertThisInitialized(_this), "priority", 110); 13927 13928 return _this; 13929 } 13930 13931 _createClass(MonthParser, [{ 13932 key: "parse", 13933 value: function parse(dateString, token, match) { 13934 var valueCallback = function valueCallback(value) { 13935 return value - 1; 13936 }; 13937 13938 switch (token) { 13939 // 1, 2, ..., 12 13940 case 'M': 13941 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_0__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_0__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_2__["numericPatterns"].month, dateString), valueCallback); 13942 // 01, 02, ..., 12 13943 13944 case 'MM': 13945 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_0__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_0__["parseNDigits"])(2, dateString), valueCallback); 13946 // 1st, 2nd, ..., 12th 13947 13948 case 'Mo': 13949 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_0__["mapValue"])(match.ordinalNumber(dateString, { 13950 unit: 'month' 13951 }), valueCallback); 13952 // Jan, Feb, ..., Dec 13953 13954 case 'MMM': 13955 return match.month(dateString, { 13956 width: 'abbreviated', 13957 context: 'formatting' 13958 }) || match.month(dateString, { 13959 width: 'narrow', 13960 context: 'formatting' 13961 }); 13962 // J, F, ..., D 13963 13964 case 'MMMMM': 13965 return match.month(dateString, { 13966 width: 'narrow', 13967 context: 'formatting' 13968 }); 13969 // January, February, ..., December 13970 13971 case 'MMMM': 13972 default: 13973 return match.month(dateString, { 13974 width: 'wide', 13975 context: 'formatting' 13976 }) || match.month(dateString, { 13977 width: 'abbreviated', 13978 context: 'formatting' 13979 }) || match.month(dateString, { 13980 width: 'narrow', 13981 context: 'formatting' 13982 }); 13983 } 13984 } 13985 }, { 13986 key: "validate", 13987 value: function validate(_date, value) { 13988 return value >= 0 && value <= 11; 13989 } 13990 }, { 13991 key: "set", 13992 value: function set(date, _flags, value) { 13993 date.setUTCMonth(value, 1); 13994 date.setUTCHours(0, 0, 0, 0); 13995 return date; 13996 } 13997 }]); 13998 13999 return MonthParser; 14000}(_Parser_js__WEBPACK_IMPORTED_MODULE_1__["Parser"]); 14001 14002/***/ }), 14003
vendor: 6,805 bytes, lines 14004-14239
14004/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js": 14005/*!***********************************************************************!*\ 14006 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js ***! 14007 \***********************************************************************/ 14008/*! exports provided: QuarterParser */ 14009/***/ (function(module, __webpack_exports__, __webpack_require__) { 14010 14011"use strict"; 14012__webpack_require__.r(__webpack_exports__); 14013/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuarterParser", function() { return QuarterParser; }); 14014/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 14015/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 14016function _typeof(obj) { 14017 "@babel/helpers - typeof"; 14018 14019 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 14020 _typeof = function _typeof(obj) { 14021 return typeof obj; 14022 }; 14023 } else { 14024 _typeof = function _typeof(obj) { 14025 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 14026 }; 14027 } 14028 14029 return _typeof(obj); 14030} 14031 14032function _classCallCheck(instance, Constructor) { 14033 if (!(instance instanceof Constructor)) { 14034 throw new TypeError("Cannot call a class as a function"); 14035 } 14036} 14037 14038function _defineProperties(target, props) { 14039 for (var i = 0; i < props.length; i++) { 14040 var descriptor = props[i]; 14041 descriptor.enumerable = descriptor.enumerable || false; 14042 descriptor.configurable = true; 14043 if ("value" in descriptor) descriptor.writable = true; 14044 Object.defineProperty(target, descriptor.key, descriptor); 14045 } 14046} 14047 14048function _createClass(Constructor, protoProps, staticProps) { 14049 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 14050 if (staticProps) _defineProperties(Constructor, staticProps); 14051 return Constructor; 14052} 14053 14054function _inherits(subClass, superClass) { 14055 if (typeof superClass !== "function" && superClass !== null) { 14056 throw new TypeError("Super expression must either be null or a function"); 14057 } 14058 14059 subClass.prototype = Object.create(superClass && superClass.prototype, { 14060 constructor: { 14061 value: subClass, 14062 writable: true, 14063 configurable: true 14064 } 14065 }); 14066 if (superClass) _setPrototypeOf(subClass, superClass); 14067} 14068 14069function _setPrototypeOf(o, p) { 14070 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 14071 o.__proto__ = p; 14072 return o; 14073 }; 14074 14075 return _setPrototypeOf(o, p); 14076} 14077 14078function _createSuper(Derived) { 14079 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 14080 14081 return function _createSuperInternal() { 14082 var Super = _getPrototypeOf(Derived), 14083 result; 14084 14085 if (hasNativeReflectConstruct) { 14086 var NewTarget = _getPrototypeOf(this).constructor; 14087 14088 result = Reflect.construct(Super, arguments, NewTarget); 14089 } else { 14090 result = Super.apply(this, arguments); 14091 } 14092 14093 return _possibleConstructorReturn(this, result); 14094 }; 14095} 14096 14097function _possibleConstructorReturn(self, call) { 14098 if (call && (_typeof(call) === "object" || typeof call === "function")) { 14099 return call; 14100 } 14101 14102 return _assertThisInitialized(self); 14103} 14104 14105function _assertThisInitialized(self) { 14106 if (self === void 0) { 14107 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 14108 } 14109 14110 return self; 14111} 14112 14113function _isNativeReflectConstruct() { 14114 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 14115 if (Reflect.construct.sham) return false; 14116 if (typeof Proxy === "function") return true; 14117 14118 try { 14119 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 14120 return true; 14121 } catch (e) { 14122 return false; 14123 } 14124} 14125 14126function _getPrototypeOf(o) { 14127 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 14128 return o.__proto__ || Object.getPrototypeOf(o); 14129 }; 14130 return _getPrototypeOf(o); 14131} 14132 14133function _defineProperty(obj, key, value) { 14134 if (key in obj) { 14135 Object.defineProperty(obj, key, { 14136 value: value, 14137 enumerable: true, 14138 configurable: true, 14139 writable: true 14140 }); 14141 } else { 14142 obj[key] = value; 14143 } 14144 14145 return obj; 14146} 14147 14148 14149 14150var QuarterParser = /*#__PURE__*/function (_Parser) { 14151 _inherits(QuarterParser, _Parser); 14152 14153 var _super = _createSuper(QuarterParser); 14154 14155 function QuarterParser() { 14156 var _this; 14157 14158 _classCallCheck(this, QuarterParser); 14159 14160 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 14161 args[_key] = arguments[_key]; 14162 } 14163 14164 _this = _super.call.apply(_super, [this].concat(args)); 14165 14166 _defineProperty(_assertThisInitialized(_this), "priority", 120); 14167 14168 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']); 14169 14170 return _this; 14171 } 14172 14173 _createClass(QuarterParser, [{ 14174 key: "parse", 14175 value: function parse(dateString, token, match) { 14176 switch (token) { 14177 // 1, 2, 3, 4 14178 case 'Q': 14179 case 'QQ': 14180 // 01, 02, 03, 04 14181 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(token.length, dateString); 14182 // 1st, 2nd, 3rd, 4th 14183 14184 case 'Qo': 14185 return match.ordinalNumber(dateString, { 14186 unit: 'quarter' 14187 }); 14188 // Q1, Q2, Q3, Q4 14189 14190 case 'QQQ': 14191 return match.quarter(dateString, { 14192 width: 'abbreviated', 14193 context: 'formatting' 14194 }) || match.quarter(dateString, { 14195 width: 'narrow', 14196 context: 'formatting' 14197 }); 14198 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 14199 14200 case 'QQQQQ': 14201 return match.quarter(dateString, { 14202 width: 'narrow', 14203 context: 'formatting' 14204 }); 14205 // 1st quarter, 2nd quarter, ... 14206 14207 case 'QQQQ': 14208 default: 14209 return match.quarter(dateString, { 14210 width: 'wide', 14211 context: 'formatting' 14212 }) || match.quarter(dateString, { 14213 width: 'abbreviated', 14214 context: 'formatting' 14215 }) || match.quarter(dateString, { 14216 width: 'narrow', 14217 context: 'formatting' 14218 }); 14219 } 14220 } 14221 }, { 14222 key: "validate", 14223 value: function validate(_date, value) { 14224 return value >= 1 && value <= 4; 14225 } 14226 }, { 14227 key: "set", 14228 value: function set(date, _flags, value) { 14229 date.setUTCMonth((value - 1) * 3, 1); 14230 date.setUTCHours(0, 0, 0, 0); 14231 return date; 14232 } 14233 }]); 14234 14235 return QuarterParser; 14236}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 14237 14238/***/ }), 14239
vendor: 6,037 bytes, lines 14240-14444
14240/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js": 14241/*!**********************************************************************!*\ 14242 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js ***! 14243 \**********************************************************************/ 14244/*! exports provided: SecondParser */ 14245/***/ (function(module, __webpack_exports__, __webpack_require__) { 14246 14247"use strict"; 14248__webpack_require__.r(__webpack_exports__); 14249/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecondParser", function() { return SecondParser; }); 14250/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 14251/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 14252/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 14253function _typeof(obj) { 14254 "@babel/helpers - typeof"; 14255 14256 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 14257 _typeof = function _typeof(obj) { 14258 return typeof obj; 14259 }; 14260 } else { 14261 _typeof = function _typeof(obj) { 14262 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 14263 }; 14264 } 14265 14266 return _typeof(obj); 14267} 14268 14269function _classCallCheck(instance, Constructor) { 14270 if (!(instance instanceof Constructor)) { 14271 throw new TypeError("Cannot call a class as a function"); 14272 } 14273} 14274 14275function _defineProperties(target, props) { 14276 for (var i = 0; i < props.length; i++) { 14277 var descriptor = props[i]; 14278 descriptor.enumerable = descriptor.enumerable || false; 14279 descriptor.configurable = true; 14280 if ("value" in descriptor) descriptor.writable = true; 14281 Object.defineProperty(target, descriptor.key, descriptor); 14282 } 14283} 14284 14285function _createClass(Constructor, protoProps, staticProps) { 14286 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 14287 if (staticProps) _defineProperties(Constructor, staticProps); 14288 return Constructor; 14289} 14290 14291function _inherits(subClass, superClass) { 14292 if (typeof superClass !== "function" && superClass !== null) { 14293 throw new TypeError("Super expression must either be null or a function"); 14294 } 14295 14296 subClass.prototype = Object.create(superClass && superClass.prototype, { 14297 constructor: { 14298 value: subClass, 14299 writable: true, 14300 configurable: true 14301 } 14302 }); 14303 if (superClass) _setPrototypeOf(subClass, superClass); 14304} 14305 14306function _setPrototypeOf(o, p) { 14307 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 14308 o.__proto__ = p; 14309 return o; 14310 }; 14311 14312 return _setPrototypeOf(o, p); 14313} 14314 14315function _createSuper(Derived) { 14316 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 14317 14318 return function _createSuperInternal() { 14319 var Super = _getPrototypeOf(Derived), 14320 result; 14321 14322 if (hasNativeReflectConstruct) { 14323 var NewTarget = _getPrototypeOf(this).constructor; 14324 14325 result = Reflect.construct(Super, arguments, NewTarget); 14326 } else { 14327 result = Super.apply(this, arguments); 14328 } 14329 14330 return _possibleConstructorReturn(this, result); 14331 }; 14332} 14333 14334function _possibleConstructorReturn(self, call) { 14335 if (call && (_typeof(call) === "object" || typeof call === "function")) { 14336 return call; 14337 } 14338 14339 return _assertThisInitialized(self); 14340} 14341 14342function _assertThisInitialized(self) { 14343 if (self === void 0) { 14344 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 14345 } 14346 14347 return self; 14348} 14349 14350function _isNativeReflectConstruct() { 14351 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 14352 if (Reflect.construct.sham) return false; 14353 if (typeof Proxy === "function") return true; 14354 14355 try { 14356 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 14357 return true; 14358 } catch (e) { 14359 return false; 14360 } 14361} 14362 14363function _getPrototypeOf(o) { 14364 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 14365 return o.__proto__ || Object.getPrototypeOf(o); 14366 }; 14367 return _getPrototypeOf(o); 14368} 14369 14370function _defineProperty(obj, key, value) { 14371 if (key in obj) { 14372 Object.defineProperty(obj, key, { 14373 value: value, 14374 enumerable: true, 14375 configurable: true, 14376 writable: true 14377 }); 14378 } else { 14379 obj[key] = value; 14380 } 14381 14382 return obj; 14383} 14384 14385 14386 14387 14388var SecondParser = /*#__PURE__*/function (_Parser) { 14389 _inherits(SecondParser, _Parser); 14390 14391 var _super = _createSuper(SecondParser); 14392 14393 function SecondParser() { 14394 var _this; 14395 14396 _classCallCheck(this, SecondParser); 14397 14398 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 14399 args[_key] = arguments[_key]; 14400 } 14401 14402 _this = _super.call.apply(_super, [this].concat(args)); 14403 14404 _defineProperty(_assertThisInitialized(_this), "priority", 50); 14405 14406 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['t', 'T']); 14407 14408 return _this; 14409 } 14410 14411 _createClass(SecondParser, [{ 14412 key: "parse", 14413 value: function parse(dateString, token, match) { 14414 switch (token) { 14415 case 's': 14416 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].second, dateString); 14417 14418 case 'so': 14419 return match.ordinalNumber(dateString, { 14420 unit: 'second' 14421 }); 14422 14423 default: 14424 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(token.length, dateString); 14425 } 14426 } 14427 }, { 14428 key: "validate", 14429 value: function validate(_date, value) { 14430 return value >= 0 && value <= 59; 14431 } 14432 }, { 14433 key: "set", 14434 value: function set(date, _flags, value) { 14435 date.setUTCSeconds(value, 0); 14436 return date; 14437 } 14438 }]); 14439 14440 return SecondParser; 14441}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 14442 14443/***/ }), 14444
vendor: 7,941 bytes, lines 14445-14704
14445/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js": 14446/*!**********************************************************************************!*\ 14447 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js ***! 14448 \**********************************************************************************/ 14449/*! exports provided: StandAloneLocalDayParser */ 14450/***/ (function(module, __webpack_exports__, __webpack_require__) { 14451 14452"use strict"; 14453__webpack_require__.r(__webpack_exports__); 14454/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StandAloneLocalDayParser", function() { return StandAloneLocalDayParser; }); 14455/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 14456/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 14457/* harmony import */ var _lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_lib/setUTCDay/index.js */ "./node_modules/date-fns/esm/_lib/setUTCDay/index.js"); 14458function _typeof(obj) { 14459 "@babel/helpers - typeof"; 14460 14461 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 14462 _typeof = function _typeof(obj) { 14463 return typeof obj; 14464 }; 14465 } else { 14466 _typeof = function _typeof(obj) { 14467 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 14468 }; 14469 } 14470 14471 return _typeof(obj); 14472} 14473 14474function _classCallCheck(instance, Constructor) { 14475 if (!(instance instanceof Constructor)) { 14476 throw new TypeError("Cannot call a class as a function"); 14477 } 14478} 14479 14480function _defineProperties(target, props) { 14481 for (var i = 0; i < props.length; i++) { 14482 var descriptor = props[i]; 14483 descriptor.enumerable = descriptor.enumerable || false; 14484 descriptor.configurable = true; 14485 if ("value" in descriptor) descriptor.writable = true; 14486 Object.defineProperty(target, descriptor.key, descriptor); 14487 } 14488} 14489 14490function _createClass(Constructor, protoProps, staticProps) { 14491 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 14492 if (staticProps) _defineProperties(Constructor, staticProps); 14493 return Constructor; 14494} 14495 14496function _inherits(subClass, superClass) { 14497 if (typeof superClass !== "function" && superClass !== null) { 14498 throw new TypeError("Super expression must either be null or a function"); 14499 } 14500 14501 subClass.prototype = Object.create(superClass && superClass.prototype, { 14502 constructor: { 14503 value: subClass, 14504 writable: true, 14505 configurable: true 14506 } 14507 }); 14508 if (superClass) _setPrototypeOf(subClass, superClass); 14509} 14510 14511function _setPrototypeOf(o, p) { 14512 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 14513 o.__proto__ = p; 14514 return o; 14515 }; 14516 14517 return _setPrototypeOf(o, p); 14518} 14519 14520function _createSuper(Derived) { 14521 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 14522 14523 return function _createSuperInternal() { 14524 var Super = _getPrototypeOf(Derived), 14525 result; 14526 14527 if (hasNativeReflectConstruct) { 14528 var NewTarget = _getPrototypeOf(this).constructor; 14529 14530 result = Reflect.construct(Super, arguments, NewTarget); 14531 } else { 14532 result = Super.apply(this, arguments); 14533 } 14534 14535 return _possibleConstructorReturn(this, result); 14536 }; 14537} 14538 14539function _possibleConstructorReturn(self, call) { 14540 if (call && (_typeof(call) === "object" || typeof call === "function")) { 14541 return call; 14542 } 14543 14544 return _assertThisInitialized(self); 14545} 14546 14547function _assertThisInitialized(self) { 14548 if (self === void 0) { 14549 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 14550 } 14551 14552 return self; 14553} 14554 14555function _isNativeReflectConstruct() { 14556 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 14557 if (Reflect.construct.sham) return false; 14558 if (typeof Proxy === "function") return true; 14559 14560 try { 14561 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 14562 return true; 14563 } catch (e) { 14564 return false; 14565 } 14566} 14567 14568function _getPrototypeOf(o) { 14569 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 14570 return o.__proto__ || Object.getPrototypeOf(o); 14571 }; 14572 return _getPrototypeOf(o); 14573} 14574 14575function _defineProperty(obj, key, value) { 14576 if (key in obj) { 14577 Object.defineProperty(obj, key, { 14578 value: value, 14579 enumerable: true, 14580 configurable: true, 14581 writable: true 14582 }); 14583 } else { 14584 obj[key] = value; 14585 } 14586 14587 return obj; 14588} 14589 14590 14591 14592 // Stand-alone local day of week 14593 14594var StandAloneLocalDayParser = /*#__PURE__*/function (_Parser) { 14595 _inherits(StandAloneLocalDayParser, _Parser); 14596 14597 var _super = _createSuper(StandAloneLocalDayParser); 14598 14599 function StandAloneLocalDayParser() { 14600 var _this; 14601 14602 _classCallCheck(this, StandAloneLocalDayParser); 14603 14604 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 14605 args[_key] = arguments[_key]; 14606 } 14607 14608 _this = _super.call.apply(_super, [this].concat(args)); 14609 14610 _defineProperty(_assertThisInitialized(_this), "priority", 90); 14611 14612 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']); 14613 14614 return _this; 14615 } 14616 14617 _createClass(StandAloneLocalDayParser, [{ 14618 key: "parse", 14619 value: function parse(dateString, token, match, options) { 14620 var valueCallback = function valueCallback(value) { 14621 var wholeWeekDays = Math.floor((value - 1) / 7) * 7; 14622 return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays; 14623 }; 14624 14625 switch (token) { 14626 // 3 14627 case 'c': 14628 case 'cc': 14629 // 03 14630 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(token.length, dateString), valueCallback); 14631 // 3rd 14632 14633 case 'co': 14634 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(match.ordinalNumber(dateString, { 14635 unit: 'day' 14636 }), valueCallback); 14637 // Tue 14638 14639 case 'ccc': 14640 return match.day(dateString, { 14641 width: 'abbreviated', 14642 context: 'standalone' 14643 }) || match.day(dateString, { 14644 width: 'short', 14645 context: 'standalone' 14646 }) || match.day(dateString, { 14647 width: 'narrow', 14648 context: 'standalone' 14649 }); 14650 // T 14651 14652 case 'ccccc': 14653 return match.day(dateString, { 14654 width: 'narrow', 14655 context: 'standalone' 14656 }); 14657 // Tu 14658 14659 case 'cccccc': 14660 return match.day(dateString, { 14661 width: 'short', 14662 context: 'standalone' 14663 }) || match.day(dateString, { 14664 width: 'narrow', 14665 context: 'standalone' 14666 }); 14667 // Tuesday 14668 14669 case 'cccc': 14670 default: 14671 return match.day(dateString, { 14672 width: 'wide', 14673 context: 'standalone' 14674 }) || match.day(dateString, { 14675 width: 'abbreviated', 14676 context: 'standalone' 14677 }) || match.day(dateString, { 14678 width: 'short', 14679 context: 'standalone' 14680 }) || match.day(dateString, { 14681 width: 'narrow', 14682 context: 'standalone' 14683 }); 14684 } 14685 } 14686 }, { 14687 key: "validate", 14688 value: function validate(_date, value) { 14689 return value >= 0 && value <= 6; 14690 } 14691 }, { 14692 key: "set", 14693 value: function set(date, _flags, value, options) { 14694 date = Object(_lib_setUTCDay_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, value, options); 14695 date.setUTCHours(0, 0, 0, 0); 14696 return date; 14697 } 14698 }]); 14699 14700 return StandAloneLocalDayParser; 14701}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 14702 14703/***/ }), 14704
vendor: 7,508 bytes, lines 14705-14948
14705/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js": 14706/*!*******************************************************************************!*\ 14707 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js ***! 14708 \*******************************************************************************/ 14709/*! exports provided: StandAloneMonthParser */ 14710/***/ (function(module, __webpack_exports__, __webpack_require__) { 14711 14712"use strict"; 14713__webpack_require__.r(__webpack_exports__); 14714/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StandAloneMonthParser", function() { return StandAloneMonthParser; }); 14715/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 14716/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 14717/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 14718function _typeof(obj) { 14719 "@babel/helpers - typeof"; 14720 14721 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 14722 _typeof = function _typeof(obj) { 14723 return typeof obj; 14724 }; 14725 } else { 14726 _typeof = function _typeof(obj) { 14727 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 14728 }; 14729 } 14730 14731 return _typeof(obj); 14732} 14733 14734function _classCallCheck(instance, Constructor) { 14735 if (!(instance instanceof Constructor)) { 14736 throw new TypeError("Cannot call a class as a function"); 14737 } 14738} 14739 14740function _defineProperties(target, props) { 14741 for (var i = 0; i < props.length; i++) { 14742 var descriptor = props[i]; 14743 descriptor.enumerable = descriptor.enumerable || false; 14744 descriptor.configurable = true; 14745 if ("value" in descriptor) descriptor.writable = true; 14746 Object.defineProperty(target, descriptor.key, descriptor); 14747 } 14748} 14749 14750function _createClass(Constructor, protoProps, staticProps) { 14751 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 14752 if (staticProps) _defineProperties(Constructor, staticProps); 14753 return Constructor; 14754} 14755 14756function _inherits(subClass, superClass) { 14757 if (typeof superClass !== "function" && superClass !== null) { 14758 throw new TypeError("Super expression must either be null or a function"); 14759 } 14760 14761 subClass.prototype = Object.create(superClass && superClass.prototype, { 14762 constructor: { 14763 value: subClass, 14764 writable: true, 14765 configurable: true 14766 } 14767 }); 14768 if (superClass) _setPrototypeOf(subClass, superClass); 14769} 14770 14771function _setPrototypeOf(o, p) { 14772 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 14773 o.__proto__ = p; 14774 return o; 14775 }; 14776 14777 return _setPrototypeOf(o, p); 14778} 14779 14780function _createSuper(Derived) { 14781 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 14782 14783 return function _createSuperInternal() { 14784 var Super = _getPrototypeOf(Derived), 14785 result; 14786 14787 if (hasNativeReflectConstruct) { 14788 var NewTarget = _getPrototypeOf(this).constructor; 14789 14790 result = Reflect.construct(Super, arguments, NewTarget); 14791 } else { 14792 result = Super.apply(this, arguments); 14793 } 14794 14795 return _possibleConstructorReturn(this, result); 14796 }; 14797} 14798 14799function _possibleConstructorReturn(self, call) { 14800 if (call && (_typeof(call) === "object" || typeof call === "function")) { 14801 return call; 14802 } 14803 14804 return _assertThisInitialized(self); 14805} 14806 14807function _assertThisInitialized(self) { 14808 if (self === void 0) { 14809 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 14810 } 14811 14812 return self; 14813} 14814 14815function _isNativeReflectConstruct() { 14816 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 14817 if (Reflect.construct.sham) return false; 14818 if (typeof Proxy === "function") return true; 14819 14820 try { 14821 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 14822 return true; 14823 } catch (e) { 14824 return false; 14825 } 14826} 14827 14828function _getPrototypeOf(o) { 14829 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 14830 return o.__proto__ || Object.getPrototypeOf(o); 14831 }; 14832 return _getPrototypeOf(o); 14833} 14834 14835function _defineProperty(obj, key, value) { 14836 if (key in obj) { 14837 Object.defineProperty(obj, key, { 14838 value: value, 14839 enumerable: true, 14840 configurable: true, 14841 writable: true 14842 }); 14843 } else { 14844 obj[key] = value; 14845 } 14846 14847 return obj; 14848} 14849 14850 14851 14852 14853var StandAloneMonthParser = /*#__PURE__*/function (_Parser) { 14854 _inherits(StandAloneMonthParser, _Parser); 14855 14856 var _super = _createSuper(StandAloneMonthParser); 14857 14858 function StandAloneMonthParser() { 14859 var _this; 14860 14861 _classCallCheck(this, StandAloneMonthParser); 14862 14863 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 14864 args[_key] = arguments[_key]; 14865 } 14866 14867 _this = _super.call.apply(_super, [this].concat(args)); 14868 14869 _defineProperty(_assertThisInitialized(_this), "priority", 110); 14870 14871 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']); 14872 14873 return _this; 14874 } 14875 14876 _createClass(StandAloneMonthParser, [{ 14877 key: "parse", 14878 value: function parse(dateString, token, match) { 14879 var valueCallback = function valueCallback(value) { 14880 return value - 1; 14881 }; 14882 14883 switch (token) { 14884 // 1, 2, ..., 12 14885 case 'L': 14886 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNumericPattern"])(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].month, dateString), valueCallback); 14887 // 01, 02, ..., 12 14888 14889 case 'LL': 14890 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["parseNDigits"])(2, dateString), valueCallback); 14891 // 1st, 2nd, ..., 12th 14892 14893 case 'Lo': 14894 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__["mapValue"])(match.ordinalNumber(dateString, { 14895 unit: 'month' 14896 }), valueCallback); 14897 // Jan, Feb, ..., Dec 14898 14899 case 'LLL': 14900 return match.month(dateString, { 14901 width: 'abbreviated', 14902 context: 'standalone' 14903 }) || match.month(dateString, { 14904 width: 'narrow', 14905 context: 'standalone' 14906 }); 14907 // J, F, ..., D 14908 14909 case 'LLLLL': 14910 return match.month(dateString, { 14911 width: 'narrow', 14912 context: 'standalone' 14913 }); 14914 // January, February, ..., December 14915 14916 case 'LLLL': 14917 default: 14918 return match.month(dateString, { 14919 width: 'wide', 14920 context: 'standalone' 14921 }) || match.month(dateString, { 14922 width: 'abbreviated', 14923 context: 'standalone' 14924 }) || match.month(dateString, { 14925 width: 'narrow', 14926 context: 'standalone' 14927 }); 14928 } 14929 } 14930 }, { 14931 key: "validate", 14932 value: function validate(_date, value) { 14933 return value >= 0 && value <= 11; 14934 } 14935 }, { 14936 key: "set", 14937 value: function set(date, _flags, value) { 14938 date.setUTCMonth(value, 1); 14939 date.setUTCHours(0, 0, 0, 0); 14940 return date; 14941 } 14942 }]); 14943 14944 return StandAloneMonthParser; 14945}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 14946 14947/***/ }), 14948
vendor: 6,945 bytes, lines 14949-15184
14949/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js": 14950/*!*********************************************************************************!*\ 14951 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js ***! 14952 \*********************************************************************************/ 14953/*! exports provided: StandAloneQuarterParser */ 14954/***/ (function(module, __webpack_exports__, __webpack_require__) { 14955 14956"use strict"; 14957__webpack_require__.r(__webpack_exports__); 14958/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StandAloneQuarterParser", function() { return StandAloneQuarterParser; }); 14959/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 14960/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 14961function _typeof(obj) { 14962 "@babel/helpers - typeof"; 14963 14964 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 14965 _typeof = function _typeof(obj) { 14966 return typeof obj; 14967 }; 14968 } else { 14969 _typeof = function _typeof(obj) { 14970 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 14971 }; 14972 } 14973 14974 return _typeof(obj); 14975} 14976 14977function _classCallCheck(instance, Constructor) { 14978 if (!(instance instanceof Constructor)) { 14979 throw new TypeError("Cannot call a class as a function"); 14980 } 14981} 14982 14983function _defineProperties(target, props) { 14984 for (var i = 0; i < props.length; i++) { 14985 var descriptor = props[i]; 14986 descriptor.enumerable = descriptor.enumerable || false; 14987 descriptor.configurable = true; 14988 if ("value" in descriptor) descriptor.writable = true; 14989 Object.defineProperty(target, descriptor.key, descriptor); 14990 } 14991} 14992 14993function _createClass(Constructor, protoProps, staticProps) { 14994 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 14995 if (staticProps) _defineProperties(Constructor, staticProps); 14996 return Constructor; 14997} 14998 14999function _inherits(subClass, superClass) { 15000 if (typeof superClass !== "function" && superClass !== null) { 15001 throw new TypeError("Super expression must either be null or a function"); 15002 } 15003 15004 subClass.prototype = Object.create(superClass && superClass.prototype, { 15005 constructor: { 15006 value: subClass, 15007 writable: true, 15008 configurable: true 15009 } 15010 }); 15011 if (superClass) _setPrototypeOf(subClass, superClass); 15012} 15013 15014function _setPrototypeOf(o, p) { 15015 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 15016 o.__proto__ = p; 15017 return o; 15018 }; 15019 15020 return _setPrototypeOf(o, p); 15021} 15022 15023function _createSuper(Derived) { 15024 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 15025 15026 return function _createSuperInternal() { 15027 var Super = _getPrototypeOf(Derived), 15028 result; 15029 15030 if (hasNativeReflectConstruct) { 15031 var NewTarget = _getPrototypeOf(this).constructor; 15032 15033 result = Reflect.construct(Super, arguments, NewTarget); 15034 } else { 15035 result = Super.apply(this, arguments); 15036 } 15037 15038 return _possibleConstructorReturn(this, result); 15039 }; 15040} 15041 15042function _possibleConstructorReturn(self, call) { 15043 if (call && (_typeof(call) === "object" || typeof call === "function")) { 15044 return call; 15045 } 15046 15047 return _assertThisInitialized(self); 15048} 15049 15050function _assertThisInitialized(self) { 15051 if (self === void 0) { 15052 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 15053 } 15054 15055 return self; 15056} 15057 15058function _isNativeReflectConstruct() { 15059 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 15060 if (Reflect.construct.sham) return false; 15061 if (typeof Proxy === "function") return true; 15062 15063 try { 15064 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 15065 return true; 15066 } catch (e) { 15067 return false; 15068 } 15069} 15070 15071function _getPrototypeOf(o) { 15072 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 15073 return o.__proto__ || Object.getPrototypeOf(o); 15074 }; 15075 return _getPrototypeOf(o); 15076} 15077 15078function _defineProperty(obj, key, value) { 15079 if (key in obj) { 15080 Object.defineProperty(obj, key, { 15081 value: value, 15082 enumerable: true, 15083 configurable: true, 15084 writable: true 15085 }); 15086 } else { 15087 obj[key] = value; 15088 } 15089 15090 return obj; 15091} 15092 15093 15094 15095var StandAloneQuarterParser = /*#__PURE__*/function (_Parser) { 15096 _inherits(StandAloneQuarterParser, _Parser); 15097 15098 var _super = _createSuper(StandAloneQuarterParser); 15099 15100 function StandAloneQuarterParser() { 15101 var _this; 15102 15103 _classCallCheck(this, StandAloneQuarterParser); 15104 15105 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 15106 args[_key] = arguments[_key]; 15107 } 15108 15109 _this = _super.call.apply(_super, [this].concat(args)); 15110 15111 _defineProperty(_assertThisInitialized(_this), "priority", 120); 15112 15113 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']); 15114 15115 return _this; 15116 } 15117 15118 _createClass(StandAloneQuarterParser, [{ 15119 key: "parse", 15120 value: function parse(dateString, token, match) { 15121 switch (token) { 15122 // 1, 2, 3, 4 15123 case 'q': 15124 case 'qq': 15125 // 01, 02, 03, 04 15126 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(token.length, dateString); 15127 // 1st, 2nd, 3rd, 4th 15128 15129 case 'qo': 15130 return match.ordinalNumber(dateString, { 15131 unit: 'quarter' 15132 }); 15133 // Q1, Q2, Q3, Q4 15134 15135 case 'qqq': 15136 return match.quarter(dateString, { 15137 width: 'abbreviated', 15138 context: 'standalone' 15139 }) || match.quarter(dateString, { 15140 width: 'narrow', 15141 context: 'standalone' 15142 }); 15143 // 1, 2, 3, 4 (narrow quarter; could be not numerical) 15144 15145 case 'qqqqq': 15146 return match.quarter(dateString, { 15147 width: 'narrow', 15148 context: 'standalone' 15149 }); 15150 // 1st quarter, 2nd quarter, ... 15151 15152 case 'qqqq': 15153 default: 15154 return match.quarter(dateString, { 15155 width: 'wide', 15156 context: 'standalone' 15157 }) || match.quarter(dateString, { 15158 width: 'abbreviated', 15159 context: 'standalone' 15160 }) || match.quarter(dateString, { 15161 width: 'narrow', 15162 context: 'standalone' 15163 }); 15164 } 15165 } 15166 }, { 15167 key: "validate", 15168 value: function validate(_date, value) { 15169 return value >= 1 && value <= 4; 15170 } 15171 }, { 15172 key: "set", 15173 value: function set(date, _flags, value) { 15174 date.setUTCMonth((value - 1) * 3, 1); 15175 date.setUTCHours(0, 0, 0, 0); 15176 return date; 15177 } 15178 }]); 15179 15180 return StandAloneQuarterParser; 15181}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 15182 15183/***/ }), 15184
vendor: 5,596 bytes, lines 15185-15372
15185/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js": 15186/*!*************************************************************************************!*\ 15187 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js ***! 15188 \*************************************************************************************/ 15189/*! exports provided: TimestampMillisecondsParser */ 15190/***/ (function(module, __webpack_exports__, __webpack_require__) { 15191 15192"use strict"; 15193__webpack_require__.r(__webpack_exports__); 15194/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimestampMillisecondsParser", function() { return TimestampMillisecondsParser; }); 15195/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 15196/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 15197function _typeof(obj) { 15198 "@babel/helpers - typeof"; 15199 15200 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 15201 _typeof = function _typeof(obj) { 15202 return typeof obj; 15203 }; 15204 } else { 15205 _typeof = function _typeof(obj) { 15206 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 15207 }; 15208 } 15209 15210 return _typeof(obj); 15211} 15212 15213function _classCallCheck(instance, Constructor) { 15214 if (!(instance instanceof Constructor)) { 15215 throw new TypeError("Cannot call a class as a function"); 15216 } 15217} 15218 15219function _defineProperties(target, props) { 15220 for (var i = 0; i < props.length; i++) { 15221 var descriptor = props[i]; 15222 descriptor.enumerable = descriptor.enumerable || false; 15223 descriptor.configurable = true; 15224 if ("value" in descriptor) descriptor.writable = true; 15225 Object.defineProperty(target, descriptor.key, descriptor); 15226 } 15227} 15228 15229function _createClass(Constructor, protoProps, staticProps) { 15230 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 15231 if (staticProps) _defineProperties(Constructor, staticProps); 15232 return Constructor; 15233} 15234 15235function _inherits(subClass, superClass) { 15236 if (typeof superClass !== "function" && superClass !== null) { 15237 throw new TypeError("Super expression must either be null or a function"); 15238 } 15239 15240 subClass.prototype = Object.create(superClass && superClass.prototype, { 15241 constructor: { 15242 value: subClass, 15243 writable: true, 15244 configurable: true 15245 } 15246 }); 15247 if (superClass) _setPrototypeOf(subClass, superClass); 15248} 15249 15250function _setPrototypeOf(o, p) { 15251 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 15252 o.__proto__ = p; 15253 return o; 15254 }; 15255 15256 return _setPrototypeOf(o, p); 15257} 15258 15259function _createSuper(Derived) { 15260 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 15261 15262 return function _createSuperInternal() { 15263 var Super = _getPrototypeOf(Derived), 15264 result; 15265 15266 if (hasNativeReflectConstruct) { 15267 var NewTarget = _getPrototypeOf(this).constructor; 15268 15269 result = Reflect.construct(Super, arguments, NewTarget); 15270 } else { 15271 result = Super.apply(this, arguments); 15272 } 15273 15274 return _possibleConstructorReturn(this, result); 15275 }; 15276} 15277 15278function _possibleConstructorReturn(self, call) { 15279 if (call && (_typeof(call) === "object" || typeof call === "function")) { 15280 return call; 15281 } 15282 15283 return _assertThisInitialized(self); 15284} 15285 15286function _assertThisInitialized(self) { 15287 if (self === void 0) { 15288 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 15289 } 15290 15291 return self; 15292} 15293 15294function _isNativeReflectConstruct() { 15295 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 15296 if (Reflect.construct.sham) return false; 15297 if (typeof Proxy === "function") return true; 15298 15299 try { 15300 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 15301 return true; 15302 } catch (e) { 15303 return false; 15304 } 15305} 15306 15307function _getPrototypeOf(o) { 15308 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 15309 return o.__proto__ || Object.getPrototypeOf(o); 15310 }; 15311 return _getPrototypeOf(o); 15312} 15313 15314function _defineProperty(obj, key, value) { 15315 if (key in obj) { 15316 Object.defineProperty(obj, key, { 15317 value: value, 15318 enumerable: true, 15319 configurable: true, 15320 writable: true 15321 }); 15322 } else { 15323 obj[key] = value; 15324 } 15325 15326 return obj; 15327} 15328 15329 15330 15331var TimestampMillisecondsParser = /*#__PURE__*/function (_Parser) { 15332 _inherits(TimestampMillisecondsParser, _Parser); 15333 15334 var _super = _createSuper(TimestampMillisecondsParser); 15335 15336 function TimestampMillisecondsParser() { 15337 var _this; 15338 15339 _classCallCheck(this, TimestampMillisecondsParser); 15340 15341 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 15342 args[_key] = arguments[_key]; 15343 } 15344 15345 _this = _super.call.apply(_super, [this].concat(args)); 15346 15347 _defineProperty(_assertThisInitialized(_this), "priority", 20); 15348 15349 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*'); 15350 15351 return _this; 15352 } 15353 15354 _createClass(TimestampMillisecondsParser, [{ 15355 key: "parse", 15356 value: function parse(dateString) { 15357 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseAnyDigitsSigned"])(dateString); 15358 } 15359 }, { 15360 key: "set", 15361 value: function set(_date, _flags, value) { 15362 return [new Date(value), { 15363 timestampIsSet: true 15364 }]; 15365 } 15366 }]); 15367 15368 return TimestampMillisecondsParser; 15369}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 15370 15371/***/ }), 15372
vendor: 5,533 bytes, lines 15373-15560
15373/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js": 15374/*!********************************************************************************!*\ 15375 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js ***! 15376 \********************************************************************************/ 15377/*! exports provided: TimestampSecondsParser */ 15378/***/ (function(module, __webpack_exports__, __webpack_require__) { 15379 15380"use strict"; 15381__webpack_require__.r(__webpack_exports__); 15382/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimestampSecondsParser", function() { return TimestampSecondsParser; }); 15383/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 15384/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 15385function _typeof(obj) { 15386 "@babel/helpers - typeof"; 15387 15388 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 15389 _typeof = function _typeof(obj) { 15390 return typeof obj; 15391 }; 15392 } else { 15393 _typeof = function _typeof(obj) { 15394 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 15395 }; 15396 } 15397 15398 return _typeof(obj); 15399} 15400 15401function _classCallCheck(instance, Constructor) { 15402 if (!(instance instanceof Constructor)) { 15403 throw new TypeError("Cannot call a class as a function"); 15404 } 15405} 15406 15407function _defineProperties(target, props) { 15408 for (var i = 0; i < props.length; i++) { 15409 var descriptor = props[i]; 15410 descriptor.enumerable = descriptor.enumerable || false; 15411 descriptor.configurable = true; 15412 if ("value" in descriptor) descriptor.writable = true; 15413 Object.defineProperty(target, descriptor.key, descriptor); 15414 } 15415} 15416 15417function _createClass(Constructor, protoProps, staticProps) { 15418 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 15419 if (staticProps) _defineProperties(Constructor, staticProps); 15420 return Constructor; 15421} 15422 15423function _inherits(subClass, superClass) { 15424 if (typeof superClass !== "function" && superClass !== null) { 15425 throw new TypeError("Super expression must either be null or a function"); 15426 } 15427 15428 subClass.prototype = Object.create(superClass && superClass.prototype, { 15429 constructor: { 15430 value: subClass, 15431 writable: true, 15432 configurable: true 15433 } 15434 }); 15435 if (superClass) _setPrototypeOf(subClass, superClass); 15436} 15437 15438function _setPrototypeOf(o, p) { 15439 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 15440 o.__proto__ = p; 15441 return o; 15442 }; 15443 15444 return _setPrototypeOf(o, p); 15445} 15446 15447function _createSuper(Derived) { 15448 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 15449 15450 return function _createSuperInternal() { 15451 var Super = _getPrototypeOf(Derived), 15452 result; 15453 15454 if (hasNativeReflectConstruct) { 15455 var NewTarget = _getPrototypeOf(this).constructor; 15456 15457 result = Reflect.construct(Super, arguments, NewTarget); 15458 } else { 15459 result = Super.apply(this, arguments); 15460 } 15461 15462 return _possibleConstructorReturn(this, result); 15463 }; 15464} 15465 15466function _possibleConstructorReturn(self, call) { 15467 if (call && (_typeof(call) === "object" || typeof call === "function")) { 15468 return call; 15469 } 15470 15471 return _assertThisInitialized(self); 15472} 15473 15474function _assertThisInitialized(self) { 15475 if (self === void 0) { 15476 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 15477 } 15478 15479 return self; 15480} 15481 15482function _isNativeReflectConstruct() { 15483 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 15484 if (Reflect.construct.sham) return false; 15485 if (typeof Proxy === "function") return true; 15486 15487 try { 15488 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 15489 return true; 15490 } catch (e) { 15491 return false; 15492 } 15493} 15494 15495function _getPrototypeOf(o) { 15496 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 15497 return o.__proto__ || Object.getPrototypeOf(o); 15498 }; 15499 return _getPrototypeOf(o); 15500} 15501 15502function _defineProperty(obj, key, value) { 15503 if (key in obj) { 15504 Object.defineProperty(obj, key, { 15505 value: value, 15506 enumerable: true, 15507 configurable: true, 15508 writable: true 15509 }); 15510 } else { 15511 obj[key] = value; 15512 } 15513 15514 return obj; 15515} 15516 15517 15518 15519var TimestampSecondsParser = /*#__PURE__*/function (_Parser) { 15520 _inherits(TimestampSecondsParser, _Parser); 15521 15522 var _super = _createSuper(TimestampSecondsParser); 15523 15524 function TimestampSecondsParser() { 15525 var _this; 15526 15527 _classCallCheck(this, TimestampSecondsParser); 15528 15529 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 15530 args[_key] = arguments[_key]; 15531 } 15532 15533 _this = _super.call.apply(_super, [this].concat(args)); 15534 15535 _defineProperty(_assertThisInitialized(_this), "priority", 40); 15536 15537 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", '*'); 15538 15539 return _this; 15540 } 15541 15542 _createClass(TimestampSecondsParser, [{ 15543 key: "parse", 15544 value: function parse(dateString) { 15545 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseAnyDigitsSigned"])(dateString); 15546 } 15547 }, { 15548 key: "set", 15549 value: function set(_date, _flags, value) { 15550 return [new Date(value * 1000), { 15551 timestampIsSet: true 15552 }]; 15553 } 15554 }]); 15555 15556 return TimestampSecondsParser; 15557}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 15558 15559/***/ }), 15560
vendor: 7,128 bytes, lines 15561-15789
15561/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js": 15562/*!********************************************************************!*\ 15563 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js ***! 15564 \********************************************************************/ 15565/*! exports provided: YearParser */ 15566/***/ (function(module, __webpack_exports__, __webpack_require__) { 15567 15568"use strict"; 15569__webpack_require__.r(__webpack_exports__); 15570/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "YearParser", function() { return YearParser; }); 15571/* harmony import */ var _Parser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Parser.js */ "./node_modules/date-fns/esm/parse/_lib/Parser.js"); 15572/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils.js */ "./node_modules/date-fns/esm/parse/_lib/utils.js"); 15573function _typeof(obj) { 15574 "@babel/helpers - typeof"; 15575 15576 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 15577 _typeof = function _typeof(obj) { 15578 return typeof obj; 15579 }; 15580 } else { 15581 _typeof = function _typeof(obj) { 15582 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 15583 }; 15584 } 15585 15586 return _typeof(obj); 15587} 15588 15589function _classCallCheck(instance, Constructor) { 15590 if (!(instance instanceof Constructor)) { 15591 throw new TypeError("Cannot call a class as a function"); 15592 } 15593} 15594 15595function _defineProperties(target, props) { 15596 for (var i = 0; i < props.length; i++) { 15597 var descriptor = props[i]; 15598 descriptor.enumerable = descriptor.enumerable || false; 15599 descriptor.configurable = true; 15600 if ("value" in descriptor) descriptor.writable = true; 15601 Object.defineProperty(target, descriptor.key, descriptor); 15602 } 15603} 15604 15605function _createClass(Constructor, protoProps, staticProps) { 15606 if (protoProps) _defineProperties(Constructor.prototype, protoProps); 15607 if (staticProps) _defineProperties(Constructor, staticProps); 15608 return Constructor; 15609} 15610 15611function _inherits(subClass, superClass) { 15612 if (typeof superClass !== "function" && superClass !== null) { 15613 throw new TypeError("Super expression must either be null or a function"); 15614 } 15615 15616 subClass.prototype = Object.create(superClass && superClass.prototype, { 15617 constructor: { 15618 value: subClass, 15619 writable: true, 15620 configurable: true 15621 } 15622 }); 15623 if (superClass) _setPrototypeOf(subClass, superClass); 15624} 15625 15626function _setPrototypeOf(o, p) { 15627 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 15628 o.__proto__ = p; 15629 return o; 15630 }; 15631 15632 return _setPrototypeOf(o, p); 15633} 15634 15635function _createSuper(Derived) { 15636 var hasNativeReflectConstruct = _isNativeReflectConstruct(); 15637 15638 return function _createSuperInternal() { 15639 var Super = _getPrototypeOf(Derived), 15640 result; 15641 15642 if (hasNativeReflectConstruct) { 15643 var NewTarget = _getPrototypeOf(this).constructor; 15644 15645 result = Reflect.construct(Super, arguments, NewTarget); 15646 } else { 15647 result = Super.apply(this, arguments); 15648 } 15649 15650 return _possibleConstructorReturn(this, result); 15651 }; 15652} 15653 15654function _possibleConstructorReturn(self, call) { 15655 if (call && (_typeof(call) === "object" || typeof call === "function")) { 15656 return call; 15657 } 15658 15659 return _assertThisInitialized(self); 15660} 15661 15662function _assertThisInitialized(self) { 15663 if (self === void 0) { 15664 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 15665 } 15666 15667 return self; 15668} 15669 15670function _isNativeReflectConstruct() { 15671 if (typeof Reflect === "undefined" || !Reflect.construct) return false; 15672 if (Reflect.construct.sham) return false; 15673 if (typeof Proxy === "function") return true; 15674 15675 try { 15676 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); 15677 return true; 15678 } catch (e) { 15679 return false; 15680 } 15681} 15682 15683function _getPrototypeOf(o) { 15684 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { 15685 return o.__proto__ || Object.getPrototypeOf(o); 15686 }; 15687 return _getPrototypeOf(o); 15688} 15689 15690function _defineProperty(obj, key, value) { 15691 if (key in obj) { 15692 Object.defineProperty(obj, key, { 15693 value: value, 15694 enumerable: true, 15695 configurable: true, 15696 writable: true 15697 }); 15698 } else { 15699 obj[key] = value; 15700 } 15701 15702 return obj; 15703} 15704 15705 15706 // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns 15707// | Year | y | yy | yyy | yyyy | yyyyy | 15708// |----------|-------|----|-------|-------|-------| 15709// | AD 1 | 1 | 01 | 001 | 0001 | 00001 | 15710// | AD 12 | 12 | 12 | 012 | 0012 | 00012 | 15711// | AD 123 | 123 | 23 | 123 | 0123 | 00123 | 15712// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 | 15713// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 | 15714 15715var YearParser = /*#__PURE__*/function (_Parser) { 15716 _inherits(YearParser, _Parser); 15717 15718 var _super = _createSuper(YearParser); 15719 15720 function YearParser() { 15721 var _this; 15722 15723 _classCallCheck(this, YearParser); 15724 15725 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { 15726 args[_key] = arguments[_key]; 15727 } 15728 15729 _this = _super.call.apply(_super, [this].concat(args)); 15730 15731 _defineProperty(_assertThisInitialized(_this), "priority", 130); 15732 15733 _defineProperty(_assertThisInitialized(_this), "incompatibleTokens", ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']); 15734 15735 return _this; 15736 } 15737 15738 _createClass(YearParser, [{ 15739 key: "parse", 15740 value: function parse(dateString, token, match) { 15741 var valueCallback = function valueCallback(year) { 15742 return { 15743 year: year, 15744 isTwoDigitYear: token === 'yy' 15745 }; 15746 }; 15747 15748 switch (token) { 15749 case 'y': 15750 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(4, dateString), valueCallback); 15751 15752 case 'yo': 15753 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(match.ordinalNumber(dateString, { 15754 unit: 'year' 15755 }), valueCallback); 15756 15757 default: 15758 return Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["mapValue"])(Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["parseNDigits"])(token.length, dateString), valueCallback); 15759 } 15760 } 15761 }, { 15762 key: "validate", 15763 value: function validate(_date, value) { 15764 return value.isTwoDigitYear || value.year > 0; 15765 } 15766 }, { 15767 key: "set", 15768 value: function set(date, flags, value) { 15769 var currentYear = date.getUTCFullYear(); 15770 15771 if (value.isTwoDigitYear) { 15772 var normalizedTwoDigitYear = Object(_utils_js__WEBPACK_IMPORTED_MODULE_1__["normalizeTwoDigitYear"])(value.year, currentYear); 15773 date.setUTCFullYear(normalizedTwoDigitYear, 0, 1); 15774 date.setUTCHours(0, 0, 0, 0); 15775 return date; 15776 } 15777 15778 var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year; 15779 date.setUTCFullYear(year, 0, 1); 15780 date.setUTCHours(0, 0, 0, 0); 15781 return date; 15782 } 15783 }]); 15784 15785 return YearParser; 15786}(_Parser_js__WEBPACK_IMPORTED_MODULE_0__["Parser"]); 15787 15788/***/ }), 15789
vendor: 12,363 bytes, lines 15790-15941
15790/***/ "./node_modules/date-fns/esm/parse/_lib/parsers/index.js": 15791/*!***************************************************************!*\ 15792 !*** ./node_modules/date-fns/esm/parse/_lib/parsers/index.js ***! 15793 \***************************************************************/ 15794/*! exports provided: parsers */ 15795/***/ (function(module, __webpack_exports__, __webpack_require__) { 15796 15797"use strict"; 15798__webpack_require__.r(__webpack_exports__); 15799/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parsers", function() { return parsers; }); 15800/* harmony import */ var _EraParser_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./EraParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js"); 15801/* harmony import */ var _YearParser_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./YearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js"); 15802/* harmony import */ var _LocalWeekYearParser_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LocalWeekYearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js"); 15803/* harmony import */ var _ISOWeekYearParser_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ISOWeekYearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js"); 15804/* harmony import */ var _ExtendedYearParser_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ExtendedYearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js"); 15805/* harmony import */ var _QuarterParser_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./QuarterParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js"); 15806/* harmony import */ var _StandAloneQuarterParser_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./StandAloneQuarterParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js"); 15807/* harmony import */ var _MonthParser_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MonthParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js"); 15808/* harmony import */ var _StandAloneMonthParser_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./StandAloneMonthParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js"); 15809/* harmony import */ var _LocalWeekParser_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LocalWeekParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js"); 15810/* harmony import */ var _ISOWeekParser_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ISOWeekParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js"); 15811/* harmony import */ var _DateParser_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DateParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js"); 15812/* harmony import */ var _DayOfYearParser_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./DayOfYearParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js"); 15813/* harmony import */ var _DayParser_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DayParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js"); 15814/* harmony import */ var _LocalDayParser_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./LocalDayParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js"); 15815/* harmony import */ var _StandAloneLocalDayParser_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./StandAloneLocalDayParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js"); 15816/* harmony import */ var _ISODayParser_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ISODayParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js"); 15817/* harmony import */ var _AMPMParser_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./AMPMParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js"); 15818/* harmony import */ var _AMPMMidnightParser_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./AMPMMidnightParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js"); 15819/* harmony import */ var _DayPeriodParser_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./DayPeriodParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js"); 15820/* harmony import */ var _Hour1to12Parser_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Hour1to12Parser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js"); 15821/* harmony import */ var _Hour0to23Parser_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Hour0to23Parser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js"); 15822/* harmony import */ var _Hour0To11Parser_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Hour0To11Parser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js"); 15823/* harmony import */ var _Hour1To24Parser_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Hour1To24Parser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js"); 15824/* harmony import */ var _MinuteParser_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./MinuteParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js"); 15825/* harmony import */ var _SecondParser_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./SecondParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js"); 15826/* harmony import */ var _FractionOfSecondParser_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./FractionOfSecondParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js"); 15827/* harmony import */ var _ISOTimezoneWithZParser_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ISOTimezoneWithZParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js"); 15828/* harmony import */ var _ISOTimezoneParser_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./ISOTimezoneParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js"); 15829/* harmony import */ var _TimestampSecondsParser_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./TimestampSecondsParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js"); 15830/* harmony import */ var _TimestampMillisecondsParser_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./TimestampMillisecondsParser.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js"); 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862/* 15863 * | | Unit | | Unit | 15864 * |-----|--------------------------------|-----|--------------------------------| 15865 * | a | AM, PM | A* | Milliseconds in day | 15866 * | b | AM, PM, noon, midnight | B | Flexible day period | 15867 * | c | Stand-alone local day of week | C* | Localized hour w/ day period | 15868 * | d | Day of month | D | Day of year | 15869 * | e | Local day of week | E | Day of week | 15870 * | f | | F* | Day of week in month | 15871 * | g* | Modified Julian day | G | Era | 15872 * | h | Hour [1-12] | H | Hour [0-23] | 15873 * | i! | ISO day of week | I! | ISO week of year | 15874 * | j* | Localized hour w/ day period | J* | Localized hour w/o day period | 15875 * | k | Hour [1-24] | K | Hour [0-11] | 15876 * | l* | (deprecated) | L | Stand-alone month | 15877 * | m | Minute | M | Month | 15878 * | n | | N | | 15879 * | o! | Ordinal number modifier | O* | Timezone (GMT) | 15880 * | p | | P | | 15881 * | q | Stand-alone quarter | Q | Quarter | 15882 * | r* | Related Gregorian year | R! | ISO week-numbering year | 15883 * | s | Second | S | Fraction of second | 15884 * | t! | Seconds timestamp | T! | Milliseconds timestamp | 15885 * | u | Extended year | U* | Cyclic year | 15886 * | v* | Timezone (generic non-locat.) | V* | Timezone (location) | 15887 * | w | Local week of year | W* | Week of month | 15888 * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) | 15889 * | y | Year (abs) | Y | Local week-numbering year | 15890 * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) | 15891 * 15892 * Letters marked by * are not implemented but reserved by Unicode standard. 15893 * 15894 * Letters marked by ! are non-standard, but implemented by date-fns: 15895 * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs) 15896 * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days, 15897 * i.e. 7 for Sunday, 1 for Monday, etc. 15898 * - `I` is ISO week of year, as opposed to `w` which is local week of year. 15899 * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year. 15900 * `R` is supposed to be used in conjunction with `I` and `i` 15901 * for universal ISO week-numbering date, whereas 15902 * `Y` is supposed to be used in conjunction with `w` and `e` 15903 * for week-numbering date specific to the locale. 15904 */ 15905 15906var parsers = { 15907 G: new _EraParser_js__WEBPACK_IMPORTED_MODULE_0__["EraParser"](), 15908 y: new _YearParser_js__WEBPACK_IMPORTED_MODULE_1__["YearParser"](), 15909 Y: new _LocalWeekYearParser_js__WEBPACK_IMPORTED_MODULE_2__["LocalWeekYearParser"](), 15910 R: new _ISOWeekYearParser_js__WEBPACK_IMPORTED_MODULE_3__["ISOWeekYearParser"](), 15911 u: new _ExtendedYearParser_js__WEBPACK_IMPORTED_MODULE_4__["ExtendedYearParser"](), 15912 Q: new _QuarterParser_js__WEBPACK_IMPORTED_MODULE_5__["QuarterParser"](), 15913 q: new _StandAloneQuarterParser_js__WEBPACK_IMPORTED_MODULE_6__["StandAloneQuarterParser"](), 15914 M: new _MonthParser_js__WEBPACK_IMPORTED_MODULE_7__["MonthParser"](), 15915 L: new _StandAloneMonthParser_js__WEBPACK_IMPORTED_MODULE_8__["StandAloneMonthParser"](), 15916 w: new _LocalWeekParser_js__WEBPACK_IMPORTED_MODULE_9__["LocalWeekParser"](), 15917 I: new _ISOWeekParser_js__WEBPACK_IMPORTED_MODULE_10__["ISOWeekParser"](), 15918 d: new _DateParser_js__WEBPACK_IMPORTED_MODULE_11__["DateParser"](), 15919 D: new _DayOfYearParser_js__WEBPACK_IMPORTED_MODULE_12__["DayOfYearParser"](), 15920 E: new _DayParser_js__WEBPACK_IMPORTED_MODULE_13__["DayParser"](), 15921 e: new _LocalDayParser_js__WEBPACK_IMPORTED_MODULE_14__["LocalDayParser"](), 15922 c: new _StandAloneLocalDayParser_js__WEBPACK_IMPORTED_MODULE_15__["StandAloneLocalDayParser"](), 15923 i: new _ISODayParser_js__WEBPACK_IMPORTED_MODULE_16__["ISODayParser"](), 15924 a: new _AMPMParser_js__WEBPACK_IMPORTED_MODULE_17__["AMPMParser"](), 15925 b: new _AMPMMidnightParser_js__WEBPACK_IMPORTED_MODULE_18__["AMPMMidnightParser"](), 15926 B: new _DayPeriodParser_js__WEBPACK_IMPORTED_MODULE_19__["DayPeriodParser"](), 15927 h: new _Hour1to12Parser_js__WEBPACK_IMPORTED_MODULE_20__["Hour1to12Parser"](), 15928 H: new _Hour0to23Parser_js__WEBPACK_IMPORTED_MODULE_21__["Hour0to23Parser"](), 15929 K: new _Hour0To11Parser_js__WEBPACK_IMPORTED_MODULE_22__["Hour0To11Parser"](), 15930 k: new _Hour1To24Parser_js__WEBPACK_IMPORTED_MODULE_23__["Hour1To24Parser"](), 15931 m: new _MinuteParser_js__WEBPACK_IMPORTED_MODULE_24__["MinuteParser"](), 15932 s: new _SecondParser_js__WEBPACK_IMPORTED_MODULE_25__["SecondParser"](), 15933 S: new _FractionOfSecondParser_js__WEBPACK_IMPORTED_MODULE_26__["FractionOfSecondParser"](), 15934 X: new _ISOTimezoneWithZParser_js__WEBPACK_IMPORTED_MODULE_27__["ISOTimezoneWithZParser"](), 15935 x: new _ISOTimezoneParser_js__WEBPACK_IMPORTED_MODULE_28__["ISOTimezoneParser"](), 15936 t: new _TimestampSecondsParser_js__WEBPACK_IMPORTED_MODULE_29__["TimestampSecondsParser"](), 15937 T: new _TimestampMillisecondsParser_js__WEBPACK_IMPORTED_MODULE_30__["TimestampMillisecondsParser"]() 15938}; 15939 15940/***/ }), 15941
vendor: 6,051 bytes, lines 15942-16094
15942/***/ "./node_modules/date-fns/esm/parse/_lib/utils.js": 15943/*!*******************************************************!*\ 15944 !*** ./node_modules/date-fns/esm/parse/_lib/utils.js ***! 15945 \*******************************************************/ 15946/*! exports provided: mapValue, parseNumericPattern, parseTimezonePattern, parseAnyDigitsSigned, parseNDigits, parseNDigitsSigned, dayPeriodEnumToHours, normalizeTwoDigitYear, isLeapYearIndex */ 15947/***/ (function(module, __webpack_exports__, __webpack_require__) { 15948 15949"use strict"; 15950__webpack_require__.r(__webpack_exports__); 15951/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapValue", function() { return mapValue; }); 15952/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseNumericPattern", function() { return parseNumericPattern; }); 15953/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseTimezonePattern", function() { return parseTimezonePattern; }); 15954/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseAnyDigitsSigned", function() { return parseAnyDigitsSigned; }); 15955/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseNDigits", function() { return parseNDigits; }); 15956/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseNDigitsSigned", function() { return parseNDigitsSigned; }); 15957/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dayPeriodEnumToHours", function() { return dayPeriodEnumToHours; }); 15958/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeTwoDigitYear", function() { return normalizeTwoDigitYear; }); 15959/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isLeapYearIndex", function() { return isLeapYearIndex; }); 15960/* harmony import */ var _constants_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../constants/index.js */ "./node_modules/date-fns/esm/constants/index.js"); 15961/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants.js */ "./node_modules/date-fns/esm/parse/_lib/constants.js"); 15962 15963 15964function mapValue(parseFnResult, mapFn) { 15965 if (!parseFnResult) { 15966 return parseFnResult; 15967 } 15968 15969 return { 15970 value: mapFn(parseFnResult.value), 15971 rest: parseFnResult.rest 15972 }; 15973} 15974function parseNumericPattern(pattern, dateString) { 15975 var matchResult = dateString.match(pattern); 15976 15977 if (!matchResult) { 15978 return null; 15979 } 15980 15981 return { 15982 value: parseInt(matchResult[0], 10), 15983 rest: dateString.slice(matchResult[0].length) 15984 }; 15985} 15986function parseTimezonePattern(pattern, dateString) { 15987 var matchResult = dateString.match(pattern); 15988 15989 if (!matchResult) { 15990 return null; 15991 } // Input is 'Z' 15992 15993 15994 if (matchResult[0] === 'Z') { 15995 return { 15996 value: 0, 15997 rest: dateString.slice(1) 15998 }; 15999 } 16000 16001 var sign = matchResult[1] === '+' ? 1 : -1; 16002 var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0; 16003 var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0; 16004 var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0; 16005 return { 16006 value: sign * (hours * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__["millisecondsInHour"] + minutes * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__["millisecondsInMinute"] + seconds * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__["millisecondsInSecond"]), 16007 rest: dateString.slice(matchResult[0].length) 16008 }; 16009} 16010function parseAnyDigitsSigned(dateString) { 16011 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].anyDigitsSigned, dateString); 16012} 16013function parseNDigits(n, dateString) { 16014 switch (n) { 16015 case 1: 16016 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].singleDigit, dateString); 16017 16018 case 2: 16019 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].twoDigits, dateString); 16020 16021 case 3: 16022 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].threeDigits, dateString); 16023 16024 case 4: 16025 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].fourDigits, dateString); 16026 16027 default: 16028 return parseNumericPattern(new RegExp('^\\d{1,' + n + '}'), dateString); 16029 } 16030} 16031function parseNDigitsSigned(n, dateString) { 16032 switch (n) { 16033 case 1: 16034 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].singleDigitSigned, dateString); 16035 16036 case 2: 16037 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].twoDigitsSigned, dateString); 16038 16039 case 3: 16040 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].threeDigitsSigned, dateString); 16041 16042 case 4: 16043 return parseNumericPattern(_constants_js__WEBPACK_IMPORTED_MODULE_1__["numericPatterns"].fourDigitsSigned, dateString); 16044 16045 default: 16046 return parseNumericPattern(new RegExp('^-?\\d{1,' + n + '}'), dateString); 16047 } 16048} 16049function dayPeriodEnumToHours(dayPeriod) { 16050 switch (dayPeriod) { 16051 case 'morning': 16052 return 4; 16053 16054 case 'evening': 16055 return 17; 16056 16057 case 'pm': 16058 case 'noon': 16059 case 'afternoon': 16060 return 12; 16061 16062 case 'am': 16063 case 'midnight': 16064 case 'night': 16065 default: 16066 return 0; 16067 } 16068} 16069function normalizeTwoDigitYear(twoDigitYear, currentYear) { 16070 var isCommonEra = currentYear > 0; // Absolute number of the current year: 16071 // 1 -> 1 AC 16072 // 0 -> 1 BC 16073 // -1 -> 2 BC 16074 16075 var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear; 16076 var result; 16077 16078 if (absCurrentYear <= 50) { 16079 result = twoDigitYear || 100; 16080 } else { 16081 var rangeEnd = absCurrentYear + 50; 16082 var rangeEndCentury = Math.floor(rangeEnd / 100) * 100; 16083 var isPreviousCentury = twoDigitYear >= rangeEnd % 100; 16084 result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0); 16085 } 16086 16087 return isCommonEra ? result : 1 - result; 16088} 16089function isLeapYearIndex(year) { 16090 return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; 16091} 16092 16093/***/ }), 16094
vendor: 38,767 bytes, lines 16095-16739
16095/***/ "./node_modules/date-fns/esm/parse/index.js": 16096/*!**************************************************!*\ 16097 !*** ./node_modules/date-fns/esm/parse/index.js ***! 16098 \**************************************************/ 16099/*! exports provided: default */ 16100/***/ (function(module, __webpack_exports__, __webpack_require__) { 16101 16102"use strict"; 16103__webpack_require__.r(__webpack_exports__); 16104/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return parse; }); 16105/* harmony import */ var _lib_defaultLocale_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/defaultLocale/index.js */ "./node_modules/date-fns/esm/_lib/defaultLocale/index.js"); 16106/* harmony import */ var _subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../subMilliseconds/index.js */ "./node_modules/date-fns/esm/subMilliseconds/index.js"); 16107/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 16108/* harmony import */ var _lib_assign_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/assign/index.js */ "./node_modules/date-fns/esm/_lib/assign/index.js"); 16109/* harmony import */ var _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_lib/format/longFormatters/index.js */ "./node_modules/date-fns/esm/_lib/format/longFormatters/index.js"); 16110/* harmony import */ var _lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_lib/getTimezoneOffsetInMilliseconds/index.js */ "./node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js"); 16111/* harmony import */ var _lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_lib/protectedTokens/index.js */ "./node_modules/date-fns/esm/_lib/protectedTokens/index.js"); 16112/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 16113/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 16114/* harmony import */ var _lib_Setter_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./_lib/Setter.js */ "./node_modules/date-fns/esm/parse/_lib/Setter.js"); 16115/* harmony import */ var _lib_parsers_index_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./_lib/parsers/index.js */ "./node_modules/date-fns/esm/parse/_lib/parsers/index.js"); 16116/* harmony import */ var _lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_lib/defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 16117function _typeof(obj) { 16118 "@babel/helpers - typeof"; 16119 16120 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 16121 _typeof = function _typeof(obj) { 16122 return typeof obj; 16123 }; 16124 } else { 16125 _typeof = function _typeof(obj) { 16126 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 16127 }; 16128 } 16129 16130 return _typeof(obj); 16131} 16132 16133function _createForOfIteratorHelper(o, allowArrayLike) { 16134 var it; 16135 16136 if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { 16137 if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { 16138 if (it) o = it; 16139 var i = 0; 16140 16141 var F = function F() {}; 16142 16143 return { 16144 s: F, 16145 n: function n() { 16146 if (i >= o.length) return { 16147 done: true 16148 }; 16149 return { 16150 done: false, 16151 value: o[i++] 16152 }; 16153 }, 16154 e: function e(_e) { 16155 throw _e; 16156 }, 16157 f: F 16158 }; 16159 } 16160 16161 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 16162 } 16163 16164 var normalCompletion = true, 16165 didErr = false, 16166 err; 16167 return { 16168 s: function s() { 16169 it = o[Symbol.iterator](); 16170 }, 16171 n: function n() { 16172 var step = it.next(); 16173 normalCompletion = step.done; 16174 return step; 16175 }, 16176 e: function e(_e2) { 16177 didErr = true; 16178 err = _e2; 16179 }, 16180 f: function f() { 16181 try { 16182 if (!normalCompletion && it.return != null) it.return(); 16183 } finally { 16184 if (didErr) throw err; 16185 } 16186 } 16187 }; 16188} 16189 16190function _unsupportedIterableToArray(o, minLen) { 16191 if (!o) return; 16192 if (typeof o === "string") return _arrayLikeToArray(o, minLen); 16193 var n = Object.prototype.toString.call(o).slice(8, -1); 16194 if (n === "Object" && o.constructor) n = o.constructor.name; 16195 if (n === "Map" || n === "Set") return Array.from(o); 16196 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); 16197} 16198 16199function _arrayLikeToArray(arr, len) { 16200 if (len == null || len > arr.length) len = arr.length; 16201 16202 for (var i = 0, arr2 = new Array(len); i < len; i++) { 16203 arr2[i] = arr[i]; 16204 } 16205 16206 return arr2; 16207} 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 // This RegExp consists of three parts separated by `|`: 16221// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token 16222// (one of the certain letters followed by `o`) 16223// - (\w)\1* matches any sequences of the same letter 16224// - '' matches two quote characters in a row 16225// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('), 16226// except a single quote symbol, which ends the sequence. 16227// Two quote characters do not end the sequence. 16228// If there is no matching single quote 16229// then the sequence will continue until the end of the string. 16230// - . matches any single character unmatched by previous parts of the RegExps 16231 16232var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also 16233// sequences of symbols P, p, and the combinations like `PPPPPPPppppp` 16234 16235var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g; 16236var escapedStringRegExp = /^'([^]*?)'?$/; 16237var doubleQuoteRegExp = /''/g; 16238var notWhitespaceRegExp = /\S/; 16239var unescapedLatinCharacterRegExp = /[a-zA-Z]/; 16240/** 16241 * @name parse 16242 * @category Common Helpers 16243 * @summary Parse the date. 16244 * 16245 * @description 16246 * Return the date parsed from string using the given format string. 16247 * 16248 * > â ï¸ Please note that the `format` tokens differ from Moment.js and other libraries. 16249 * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 16250 * 16251 * The characters in the format string wrapped between two single quotes characters (') are escaped. 16252 * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote. 16253 * 16254 * Format of the format string is based on Unicode Technical Standard #35: 16255 * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table 16256 * with a few additions (see note 5 below the table). 16257 * 16258 * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited 16259 * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception: 16260 * 16261 * ```javascript 16262 * parse('23 AM', 'HH a', new Date()) 16263 * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time 16264 * ``` 16265 * 16266 * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true 16267 * 16268 * Accepted format string patterns: 16269 * | Unit |Prior| Pattern | Result examples | Notes | 16270 * |---------------------------------|-----|---------|-----------------------------------|-------| 16271 * | Era | 140 | G..GGG | AD, BC | | 16272 * | | | GGGG | Anno Domini, Before Christ | 2 | 16273 * | | | GGGGG | A, B | | 16274 * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 | 16275 * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 | 16276 * | | | yy | 44, 01, 00, 17 | 4 | 16277 * | | | yyy | 044, 001, 123, 999 | 4 | 16278 * | | | yyyy | 0044, 0001, 1900, 2017 | 4 | 16279 * | | | yyyyy | ... | 2,4 | 16280 * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 | 16281 * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 | 16282 * | | | YY | 44, 01, 00, 17 | 4,6 | 16283 * | | | YYY | 044, 001, 123, 999 | 4 | 16284 * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 | 16285 * | | | YYYYY | ... | 2,4 | 16286 * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 | 16287 * | | | RR | -43, 01, 00, 17 | 4,5 | 16288 * | | | RRR | -043, 001, 123, 999, -999 | 4,5 | 16289 * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 | 16290 * | | | RRRRR | ... | 2,4,5 | 16291 * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 | 16292 * | | | uu | -43, 01, 99, -99 | 4 | 16293 * | | | uuu | -043, 001, 123, 999, -999 | 4 | 16294 * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 | 16295 * | | | uuuuu | ... | 2,4 | 16296 * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | | 16297 * | | | Qo | 1st, 2nd, 3rd, 4th | 5 | 16298 * | | | QQ | 01, 02, 03, 04 | | 16299 * | | | QQQ | Q1, Q2, Q3, Q4 | | 16300 * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 | 16301 * | | | QQQQQ | 1, 2, 3, 4 | 4 | 16302 * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | | 16303 * | | | qo | 1st, 2nd, 3rd, 4th | 5 | 16304 * | | | qq | 01, 02, 03, 04 | | 16305 * | | | qqq | Q1, Q2, Q3, Q4 | | 16306 * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 | 16307 * | | | qqqqq | 1, 2, 3, 4 | 3 | 16308 * | Month (formatting) | 110 | M | 1, 2, ..., 12 | | 16309 * | | | Mo | 1st, 2nd, ..., 12th | 5 | 16310 * | | | MM | 01, 02, ..., 12 | | 16311 * | | | MMM | Jan, Feb, ..., Dec | | 16312 * | | | MMMM | January, February, ..., December | 2 | 16313 * | | | MMMMM | J, F, ..., D | | 16314 * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | | 16315 * | | | Lo | 1st, 2nd, ..., 12th | 5 | 16316 * | | | LL | 01, 02, ..., 12 | | 16317 * | | | LLL | Jan, Feb, ..., Dec | | 16318 * | | | LLLL | January, February, ..., December | 2 | 16319 * | | | LLLLL | J, F, ..., D | | 16320 * | Local week of year | 100 | w | 1, 2, ..., 53 | | 16321 * | | | wo | 1st, 2nd, ..., 53th | 5 | 16322 * | | | ww | 01, 02, ..., 53 | | 16323 * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 | 16324 * | | | Io | 1st, 2nd, ..., 53th | 5 | 16325 * | | | II | 01, 02, ..., 53 | 5 | 16326 * | Day of month | 90 | d | 1, 2, ..., 31 | | 16327 * | | | do | 1st, 2nd, ..., 31st | 5 | 16328 * | | | dd | 01, 02, ..., 31 | | 16329 * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 | 16330 * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 | 16331 * | | | DD | 01, 02, ..., 365, 366 | 7 | 16332 * | | | DDD | 001, 002, ..., 365, 366 | | 16333 * | | | DDDD | ... | 2 | 16334 * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | | 16335 * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 | 16336 * | | | EEEEE | M, T, W, T, F, S, S | | 16337 * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | | 16338 * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 | 16339 * | | | io | 1st, 2nd, ..., 7th | 5 | 16340 * | | | ii | 01, 02, ..., 07 | 5 | 16341 * | | | iii | Mon, Tue, Wed, ..., Sun | 5 | 16342 * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 | 16343 * | | | iiiii | M, T, W, T, F, S, S | 5 | 16344 * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 | 16345 * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | | 16346 * | | | eo | 2nd, 3rd, ..., 1st | 5 | 16347 * | | | ee | 02, 03, ..., 01 | | 16348 * | | | eee | Mon, Tue, Wed, ..., Sun | | 16349 * | | | eeee | Monday, Tuesday, ..., Sunday | 2 | 16350 * | | | eeeee | M, T, W, T, F, S, S | | 16351 * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | | 16352 * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | | 16353 * | | | co | 2nd, 3rd, ..., 1st | 5 | 16354 * | | | cc | 02, 03, ..., 01 | | 16355 * | | | ccc | Mon, Tue, Wed, ..., Sun | | 16356 * | | | cccc | Monday, Tuesday, ..., Sunday | 2 | 16357 * | | | ccccc | M, T, W, T, F, S, S | | 16358 * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | | 16359 * | AM, PM | 80 | a..aaa | AM, PM | | 16360 * | | | aaaa | a.m., p.m. | 2 | 16361 * | | | aaaaa | a, p | | 16362 * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | | 16363 * | | | bbbb | a.m., p.m., noon, midnight | 2 | 16364 * | | | bbbbb | a, p, n, mi | | 16365 * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | | 16366 * | | | BBBB | at night, in the morning, ... | 2 | 16367 * | | | BBBBB | at night, in the morning, ... | | 16368 * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | | 16369 * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 | 16370 * | | | hh | 01, 02, ..., 11, 12 | | 16371 * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | | 16372 * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 | 16373 * | | | HH | 00, 01, 02, ..., 23 | | 16374 * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | | 16375 * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 | 16376 * | | | KK | 01, 02, ..., 11, 00 | | 16377 * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | | 16378 * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 | 16379 * | | | kk | 24, 01, 02, ..., 23 | | 16380 * | Minute | 60 | m | 0, 1, ..., 59 | | 16381 * | | | mo | 0th, 1st, ..., 59th | 5 | 16382 * | | | mm | 00, 01, ..., 59 | | 16383 * | Second | 50 | s | 0, 1, ..., 59 | | 16384 * | | | so | 0th, 1st, ..., 59th | 5 | 16385 * | | | ss | 00, 01, ..., 59 | | 16386 * | Seconds timestamp | 40 | t | 512969520 | | 16387 * | | | tt | ... | 2 | 16388 * | Fraction of second | 30 | S | 0, 1, ..., 9 | | 16389 * | | | SS | 00, 01, ..., 99 | | 16390 * | | | SSS | 000, 001, ..., 999 | | 16391 * | | | SSSS | ... | 2 | 16392 * | Milliseconds timestamp | 20 | T | 512969520900 | | 16393 * | | | TT | ... | 2 | 16394 * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | | 16395 * | | | XX | -0800, +0530, Z | | 16396 * | | | XXX | -08:00, +05:30, Z | | 16397 * | | | XXXX | -0800, +0530, Z, +123456 | 2 | 16398 * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | | 16399 * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | | 16400 * | | | xx | -0800, +0530, +0000 | | 16401 * | | | xxx | -08:00, +05:30, +00:00 | 2 | 16402 * | | | xxxx | -0800, +0530, +0000, +123456 | | 16403 * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | | 16404 * | Long localized date | NA | P | 05/29/1453 | 5,8 | 16405 * | | | PP | May 29, 1453 | | 16406 * | | | PPP | May 29th, 1453 | | 16407 * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 | 16408 * | Long localized time | NA | p | 12:00 AM | 5,8 | 16409 * | | | pp | 12:00:00 AM | | 16410 * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | | 16411 * | | | PPpp | May 29, 1453, 12:00:00 AM | | 16412 * | | | PPPpp | May 29th, 1453 at ... | | 16413 * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 | 16414 * Notes: 16415 * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale 16416 * are the same as "stand-alone" units, but are different in some languages. 16417 * "Formatting" units are declined according to the rules of the language 16418 * in the context of a date. "Stand-alone" units are always nominative singular. 16419 * In `format` function, they will produce different result: 16420 * 16421 * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'` 16422 * 16423 * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'` 16424 * 16425 * `parse` will try to match both formatting and stand-alone units interchangably. 16426 * 16427 * 2. Any sequence of the identical letters is a pattern, unless it is escaped by 16428 * the single quote characters (see below). 16429 * If the sequence is longer than listed in table: 16430 * - for numerical units (`yyyyyyyy`) `parse` will try to match a number 16431 * as wide as the sequence 16432 * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit. 16433 * These variations are marked with "2" in the last column of the table. 16434 * 16435 * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales. 16436 * These tokens represent the shortest form of the quarter. 16437 * 16438 * 4. The main difference between `y` and `u` patterns are B.C. years: 16439 * 16440 * | Year | `y` | `u` | 16441 * |------|-----|-----| 16442 * | AC 1 | 1 | 1 | 16443 * | BC 1 | 1 | 0 | 16444 * | BC 2 | 2 | -1 | 16445 * 16446 * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`: 16447 * 16448 * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00` 16449 * 16450 * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00` 16451 * 16452 * while `uu` will just assign the year as is: 16453 * 16454 * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00` 16455 * 16456 * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00` 16457 * 16458 * The same difference is true for local and ISO week-numbering years (`Y` and `R`), 16459 * except local week-numbering years are dependent on `options.weekStartsOn` 16460 * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear} 16461 * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}). 16462 * 16463 * 5. These patterns are not in the Unicode Technical Standard #35: 16464 * - `i`: ISO day of week 16465 * - `I`: ISO week of year 16466 * - `R`: ISO week-numbering year 16467 * - `o`: ordinal number modifier 16468 * - `P`: long localized date 16469 * - `p`: long localized time 16470 * 16471 * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years. 16472 * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 16473 * 16474 * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month. 16475 * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 16476 * 16477 * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based 16478 * on the given locale. 16479 * 16480 * using `en-US` locale: `P` => `MM/dd/yyyy` 16481 * using `en-US` locale: `p` => `hh:mm a` 16482 * using `pt-BR` locale: `P` => `dd/MM/yyyy` 16483 * using `pt-BR` locale: `p` => `HH:mm` 16484 * 16485 * Values will be assigned to the date in the descending order of its unit's priority. 16486 * Units of an equal priority overwrite each other in the order of appearance. 16487 * 16488 * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year), 16489 * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing. 16490 * 16491 * `referenceDate` must be passed for correct work of the function. 16492 * If you're not sure which `referenceDate` to supply, create a new instance of Date: 16493 * `parse('02/11/2014', 'MM/dd/yyyy', new Date())` 16494 * In this case parsing will be done in the context of the current date. 16495 * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`, 16496 * then `Invalid Date` will be returned. 16497 * 16498 * The result may vary by locale. 16499 * 16500 * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned. 16501 * 16502 * If parsing failed, `Invalid Date` will be returned. 16503 * Invalid Date is a Date, whose time value is NaN. 16504 * Time value of Date: http://es5.github.io/#x15.9.1.1 16505 * 16506 * @param {String} dateString - the string to parse 16507 * @param {String} formatString - the string of tokens 16508 * @param {Date|Number} referenceDate - defines values missing from the parsed dateString 16509 * @param {Object} [options] - an object with options. 16510 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 16511 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 16512 * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year 16513 * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`; 16514 * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 16515 * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`; 16516 * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 16517 * @returns {Date} the parsed date 16518 * @throws {TypeError} 3 arguments required 16519 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 16520 * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7 16521 * @throws {RangeError} `options.locale` must contain `match` property 16522 * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 16523 * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 16524 * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 16525 * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md 16526 * @throws {RangeError} format string contains an unescaped latin alphabet character 16527 * 16528 * @example 16529 * // Parse 11 February 2014 from middle-endian format: 16530 * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date()) 16531 * //=> Tue Feb 11 2014 00:00:00 16532 * 16533 * @example 16534 * // Parse 28th of February in Esperanto locale in the context of 2010 year: 16535 * import eo from 'date-fns/locale/eo' 16536 * var result = parse('28-a de februaro', "do 'de' MMMM", new Date(2010, 0, 1), { 16537 * locale: eo 16538 * }) 16539 * //=> Sun Feb 28 2010 00:00:00 16540 */ 16541 16542function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, options) { 16543 var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4; 16544 16545 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_8__["default"])(3, arguments); 16546 var dateString = String(dirtyDateString); 16547 var formatString = String(dirtyFormatString); 16548 var defaultOptions = Object(_lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_11__["getDefaultOptions"])(); 16549 var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : _lib_defaultLocale_index_js__WEBPACK_IMPORTED_MODULE_0__["default"]; 16550 16551 if (!locale.match) { 16552 throw new RangeError('locale must contain match property'); 16553 } 16554 16555 var firstWeekContainsDate = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN 16556 16557 if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) { 16558 throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively'); 16559 } 16560 16561 var weekStartsOn = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_7__["default"])((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 16562 16563 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 16564 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 16565 } 16566 16567 if (formatString === '') { 16568 if (dateString === '') { 16569 return Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyReferenceDate); 16570 } else { 16571 return new Date(NaN); 16572 } 16573 } 16574 16575 var subFnOptions = { 16576 firstWeekContainsDate: firstWeekContainsDate, 16577 weekStartsOn: weekStartsOn, 16578 locale: locale 16579 }; // If timezone isn't specified, it will be set to the system timezone 16580 16581 var setters = [new _lib_Setter_js__WEBPACK_IMPORTED_MODULE_9__["DateToSystemTimezoneSetter"]()]; 16582 var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) { 16583 var firstCharacter = substring[0]; 16584 16585 if (firstCharacter in _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_4__["default"]) { 16586 var longFormatter = _lib_format_longFormatters_index_js__WEBPACK_IMPORTED_MODULE_4__["default"][firstCharacter]; 16587 return longFormatter(substring, locale.formatLong); 16588 } 16589 16590 return substring; 16591 }).join('').match(formattingTokensRegExp); 16592 var usedTokens = []; 16593 16594 var _iterator = _createForOfIteratorHelper(tokens), 16595 _step; 16596 16597 try { 16598 var _loop = function _loop() { 16599 var token = _step.value; 16600 16601 if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["isProtectedWeekYearToken"])(token)) { 16602 Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["throwProtectedError"])(token, formatString, dirtyDateString); 16603 } 16604 16605 if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["isProtectedDayOfYearToken"])(token)) { 16606 Object(_lib_protectedTokens_index_js__WEBPACK_IMPORTED_MODULE_6__["throwProtectedError"])(token, formatString, dirtyDateString); 16607 } 16608 16609 var firstCharacter = token[0]; 16610 var parser = _lib_parsers_index_js__WEBPACK_IMPORTED_MODULE_10__["parsers"][firstCharacter]; 16611 16612 if (parser) { 16613 var incompatibleTokens = parser.incompatibleTokens; 16614 16615 if (Array.isArray(incompatibleTokens)) { 16616 var incompatibleToken = usedTokens.find(function (usedToken) { 16617 return incompatibleTokens.includes(usedToken.token) || usedToken.token === firstCharacter; 16618 }); 16619 16620 if (incompatibleToken) { 16621 throw new RangeError("The format string mustn't contain `".concat(incompatibleToken.fullToken, "` and `").concat(token, "` at the same time")); 16622 } 16623 } else if (parser.incompatibleTokens === '*' && usedTokens.length > 0) { 16624 throw new RangeError("The format string mustn't contain `".concat(token, "` and any other token at the same time")); 16625 } 16626 16627 usedTokens.push({ 16628 token: firstCharacter, 16629 fullToken: token 16630 }); 16631 var parseResult = parser.run(dateString, token, locale.match, subFnOptions); 16632 16633 if (!parseResult) { 16634 return { 16635 v: new Date(NaN) 16636 }; 16637 } 16638 16639 setters.push(parseResult.setter); 16640 dateString = parseResult.rest; 16641 } else { 16642 if (firstCharacter.match(unescapedLatinCharacterRegExp)) { 16643 throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`'); 16644 } // Replace two single quote characters with one single quote character 16645 16646 16647 if (token === "''") { 16648 token = "'"; 16649 } else if (firstCharacter === "'") { 16650 token = cleanEscapedString(token); 16651 } // Cut token from string, or, if string doesn't match the token, return Invalid Date 16652 16653 16654 if (dateString.indexOf(token) === 0) { 16655 dateString = dateString.slice(token.length); 16656 } else { 16657 return { 16658 v: new Date(NaN) 16659 }; 16660 } 16661 } 16662 }; 16663 16664 for (_iterator.s(); !(_step = _iterator.n()).done;) { 16665 var _ret = _loop(); 16666 16667 if (_typeof(_ret) === "object") return _ret.v; 16668 } // Check if the remaining input contains something other than whitespace 16669 16670 } catch (err) { 16671 _iterator.e(err); 16672 } finally { 16673 _iterator.f(); 16674 } 16675 16676 if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) { 16677 return new Date(NaN); 16678 } 16679 16680 var uniquePrioritySetters = setters.map(function (setter) { 16681 return setter.priority; 16682 }).sort(function (a, b) { 16683 return b - a; 16684 }).filter(function (priority, index, array) { 16685 return array.indexOf(priority) === index; 16686 }).map(function (priority) { 16687 return setters.filter(function (setter) { 16688 return setter.priority === priority; 16689 }).sort(function (a, b) { 16690 return b.subPriority - a.subPriority; 16691 }); 16692 }).map(function (setterArray) { 16693 return setterArray[0]; 16694 }); 16695 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyReferenceDate); 16696 16697 if (isNaN(date.getTime())) { 16698 return new Date(NaN); 16699 } // Convert the date in system timezone to the same date in UTC+00:00 timezone. 16700 16701 16702 var utcDate = Object(_subMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, Object(_lib_getTimezoneOffsetInMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_5__["default"])(date)); 16703 var flags = {}; 16704 16705 var _iterator2 = _createForOfIteratorHelper(uniquePrioritySetters), 16706 _step2; 16707 16708 try { 16709 for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { 16710 var setter = _step2.value; 16711 16712 if (!setter.validate(utcDate, subFnOptions)) { 16713 return new Date(NaN); 16714 } 16715 16716 var result = setter.set(utcDate, flags, subFnOptions); // Result is tuple (date, flags) 16717 16718 if (Array.isArray(result)) { 16719 utcDate = result[0]; 16720 Object(_lib_assign_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(flags, result[1]); // Result is date 16721 } else { 16722 utcDate = result; 16723 } 16724 } 16725 } catch (err) { 16726 _iterator2.e(err); 16727 } finally { 16728 _iterator2.f(); 16729 } 16730 16731 return utcDate; 16732} 16733 16734function cleanEscapedString(input) { 16735 return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'"); 16736} 16737 16738/***/ }), 16739
vendor: 9,644 bytes, lines 16740-17021
16740/***/ "./node_modules/date-fns/esm/parseISO/index.js": 16741/*!*****************************************************!*\ 16742 !*** ./node_modules/date-fns/esm/parseISO/index.js ***! 16743 \*****************************************************/ 16744/*! exports provided: default */ 16745/***/ (function(module, __webpack_exports__, __webpack_require__) { 16746 16747"use strict"; 16748__webpack_require__.r(__webpack_exports__); 16749/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return parseISO; }); 16750/* harmony import */ var _constants_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../constants/index.js */ "./node_modules/date-fns/esm/constants/index.js"); 16751/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 16752/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 16753 16754 16755 16756/** 16757 * @name parseISO 16758 * @category Common Helpers 16759 * @summary Parse ISO string 16760 * 16761 * @description 16762 * Parse the given string in ISO 8601 format and return an instance of Date. 16763 * 16764 * Function accepts complete ISO 8601 formats as well as partial implementations. 16765 * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601 16766 * 16767 * If the argument isn't a string, the function cannot parse the string or 16768 * the values are invalid, it returns Invalid Date. 16769 * 16770 * @param {String} argument - the value to convert 16771 * @param {Object} [options] - an object with options. 16772 * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format 16773 * @returns {Date} the parsed date in the local time zone 16774 * @throws {TypeError} 1 argument required 16775 * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2 16776 * 16777 * @example 16778 * // Convert string '2014-02-11T11:30:30' to date: 16779 * const result = parseISO('2014-02-11T11:30:30') 16780 * //=> Tue Feb 11 2014 11:30:30 16781 * 16782 * @example 16783 * // Convert string '+02014101' to date, 16784 * // if the additional number of digits in the extended year format is 1: 16785 * const result = parseISO('+02014101', { additionalDigits: 1 }) 16786 * //=> Fri Apr 11 2014 00:00:00 16787 */ 16788 16789function parseISO(argument, options) { 16790 var _options$additionalDi; 16791 16792 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 16793 var additionalDigits = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])((_options$additionalDi = options === null || options === void 0 ? void 0 : options.additionalDigits) !== null && _options$additionalDi !== void 0 ? _options$additionalDi : 2); 16794 16795 if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) { 16796 throw new RangeError('additionalDigits must be 0, 1 or 2'); 16797 } 16798 16799 if (!(typeof argument === 'string' || Object.prototype.toString.call(argument) === '[object String]')) { 16800 return new Date(NaN); 16801 } 16802 16803 var dateStrings = splitDateString(argument); 16804 var date; 16805 16806 if (dateStrings.date) { 16807 var parseYearResult = parseYear(dateStrings.date, additionalDigits); 16808 date = parseDate(parseYearResult.restDateString, parseYearResult.year); 16809 } 16810 16811 if (!date || isNaN(date.getTime())) { 16812 return new Date(NaN); 16813 } 16814 16815 var timestamp = date.getTime(); 16816 var time = 0; 16817 var offset; 16818 16819 if (dateStrings.time) { 16820 time = parseTime(dateStrings.time); 16821 16822 if (isNaN(time)) { 16823 return new Date(NaN); 16824 } 16825 } 16826 16827 if (dateStrings.timezone) { 16828 offset = parseTimezone(dateStrings.timezone); 16829 16830 if (isNaN(offset)) { 16831 return new Date(NaN); 16832 } 16833 } else { 16834 var dirtyDate = new Date(timestamp + time); // js parsed string assuming it's in UTC timezone 16835 // but we need it to be parsed in our timezone 16836 // so we use utc values to build date in our timezone. 16837 // Year values from 0 to 99 map to the years 1900 to 1999 16838 // so set year explicitly with setFullYear. 16839 16840 var result = new Date(0); 16841 result.setFullYear(dirtyDate.getUTCFullYear(), dirtyDate.getUTCMonth(), dirtyDate.getUTCDate()); 16842 result.setHours(dirtyDate.getUTCHours(), dirtyDate.getUTCMinutes(), dirtyDate.getUTCSeconds(), dirtyDate.getUTCMilliseconds()); 16843 return result; 16844 } 16845 16846 return new Date(timestamp + time + offset); 16847} 16848var patterns = { 16849 dateTimeDelimiter: /[T ]/, 16850 timeZoneDelimiter: /[Z ]/i, 16851 timezone: /([Z+-].*)$/ 16852}; 16853var dateRegex = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/; 16854var timeRegex = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/; 16855var timezoneRegex = /^([+-])(\d{2})(?::?(\d{2}))?$/; 16856 16857function splitDateString(dateString) { 16858 var dateStrings = {}; 16859 var array = dateString.split(patterns.dateTimeDelimiter); 16860 var timeString; // The regex match should only return at maximum two array elements. 16861 // [date], [time], or [date, time]. 16862 16863 if (array.length > 2) { 16864 return dateStrings; 16865 } 16866 16867 if (/:/.test(array[0])) { 16868 timeString = array[0]; 16869 } else { 16870 dateStrings.date = array[0]; 16871 timeString = array[1]; 16872 16873 if (patterns.timeZoneDelimiter.test(dateStrings.date)) { 16874 dateStrings.date = dateString.split(patterns.timeZoneDelimiter)[0]; 16875 timeString = dateString.substr(dateStrings.date.length, dateString.length); 16876 } 16877 } 16878 16879 if (timeString) { 16880 var token = patterns.timezone.exec(timeString); 16881 16882 if (token) { 16883 dateStrings.time = timeString.replace(token[1], ''); 16884 dateStrings.timezone = token[1]; 16885 } else { 16886 dateStrings.time = timeString; 16887 } 16888 } 16889 16890 return dateStrings; 16891} 16892 16893function parseYear(dateString, additionalDigits) { 16894 var regex = new RegExp('^(?:(\\d{4}|[+-]\\d{' + (4 + additionalDigits) + '})|(\\d{2}|[+-]\\d{' + (2 + additionalDigits) + '})$)'); 16895 var captures = dateString.match(regex); // Invalid ISO-formatted year 16896 16897 if (!captures) return { 16898 year: NaN, 16899 restDateString: '' 16900 }; 16901 var year = captures[1] ? parseInt(captures[1]) : null; 16902 var century = captures[2] ? parseInt(captures[2]) : null; // either year or century is null, not both 16903 16904 return { 16905 year: century === null ? year : century * 100, 16906 restDateString: dateString.slice((captures[1] || captures[2]).length) 16907 }; 16908} 16909 16910function parseDate(dateString, year) { 16911 // Invalid ISO-formatted year 16912 if (year === null) return new Date(NaN); 16913 var captures = dateString.match(dateRegex); // Invalid ISO-formatted string 16914 16915 if (!captures) return new Date(NaN); 16916 var isWeekDate = !!captures[4]; 16917 var dayOfYear = parseDateUnit(captures[1]); 16918 var month = parseDateUnit(captures[2]) - 1; 16919 var day = parseDateUnit(captures[3]); 16920 var week = parseDateUnit(captures[4]); 16921 var dayOfWeek = parseDateUnit(captures[5]) - 1; 16922 16923 if (isWeekDate) { 16924 if (!validateWeekDate(year, week, dayOfWeek)) { 16925 return new Date(NaN); 16926 } 16927 16928 return dayOfISOWeekYear(year, week, dayOfWeek); 16929 } else { 16930 var date = new Date(0); 16931 16932 if (!validateDate(year, month, day) || !validateDayOfYearDate(year, dayOfYear)) { 16933 return new Date(NaN); 16934 } 16935 16936 date.setUTCFullYear(year, month, Math.max(dayOfYear, day)); 16937 return date; 16938 } 16939} 16940 16941function parseDateUnit(value) { 16942 return value ? parseInt(value) : 1; 16943} 16944 16945function parseTime(timeString) { 16946 var captures = timeString.match(timeRegex); 16947 if (!captures) return NaN; // Invalid ISO-formatted time 16948 16949 var hours = parseTimeUnit(captures[1]); 16950 var minutes = parseTimeUnit(captures[2]); 16951 var seconds = parseTimeUnit(captures[3]); 16952 16953 if (!validateTime(hours, minutes, seconds)) { 16954 return NaN; 16955 } 16956 16957 return hours * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__["millisecondsInHour"] + minutes * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__["millisecondsInMinute"] + seconds * 1000; 16958} 16959 16960function parseTimeUnit(value) { 16961 return value && parseFloat(value.replace(',', '.')) || 0; 16962} 16963 16964function parseTimezone(timezoneString) { 16965 if (timezoneString === 'Z') return 0; 16966 var captures = timezoneString.match(timezoneRegex); 16967 if (!captures) return 0; 16968 var sign = captures[1] === '+' ? -1 : 1; 16969 var hours = parseInt(captures[2]); 16970 var minutes = captures[3] && parseInt(captures[3]) || 0; 16971 16972 if (!validateTimezone(hours, minutes)) { 16973 return NaN; 16974 } 16975 16976 return sign * (hours * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__["millisecondsInHour"] + minutes * _constants_index_js__WEBPACK_IMPORTED_MODULE_0__["millisecondsInMinute"]); 16977} 16978 16979function dayOfISOWeekYear(isoWeekYear, week, day) { 16980 var date = new Date(0); 16981 date.setUTCFullYear(isoWeekYear, 0, 4); 16982 var fourthOfJanuaryDay = date.getUTCDay() || 7; 16983 var diff = (week - 1) * 7 + day + 1 - fourthOfJanuaryDay; 16984 date.setUTCDate(date.getUTCDate() + diff); 16985 return date; 16986} // Validation functions 16987// February is null to handle the leap year (using ||) 16988 16989 16990var daysInMonths = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; 16991 16992function isLeapYearIndex(year) { 16993 return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0; 16994} 16995 16996function validateDate(year, month, date) { 16997 return month >= 0 && month <= 11 && date >= 1 && date <= (daysInMonths[month] || (isLeapYearIndex(year) ? 29 : 28)); 16998} 16999 17000function validateDayOfYearDate(year, dayOfYear) { 17001 return dayOfYear >= 1 && dayOfYear <= (isLeapYearIndex(year) ? 366 : 365); 17002} 17003 17004function validateWeekDate(_year, week, day) { 17005 return week >= 1 && week <= 53 && day >= 0 && day <= 6; 17006} 17007 17008function validateTime(hours, minutes, seconds) { 17009 if (hours === 24) { 17010 return minutes === 0 && seconds === 0; 17011 } 17012 17013 return seconds >= 0 && seconds < 60 && minutes >= 0 && minutes < 60 && hours >= 0 && hours < 25; 17014} 17015 17016function validateTimezone(_hours, minutes) { 17017 return minutes >= 0 && minutes <= 59; 17018} 17019 17020/***/ }), 17021
vendor: 4,820 bytes, lines 17022-17140
17022/***/ "./node_modules/date-fns/esm/set/index.js": 17023/*!************************************************!*\ 17024 !*** ./node_modules/date-fns/esm/set/index.js ***! 17025 \************************************************/ 17026/*! exports provided: default */ 17027/***/ (function(module, __webpack_exports__, __webpack_require__) { 17028 17029"use strict"; 17030__webpack_require__.r(__webpack_exports__); 17031/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return set; }); 17032/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17033/* harmony import */ var _setMonth_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../setMonth/index.js */ "./node_modules/date-fns/esm/setMonth/index.js"); 17034/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17035/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17036function _typeof(obj) { 17037 "@babel/helpers - typeof"; 17038 17039 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 17040 _typeof = function _typeof(obj) { 17041 return typeof obj; 17042 }; 17043 } else { 17044 _typeof = function _typeof(obj) { 17045 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 17046 }; 17047 } 17048 17049 return _typeof(obj); 17050} 17051 17052 17053 17054 17055 17056/** 17057 * @name set 17058 * @category Common Helpers 17059 * @summary Set date values to a given date. 17060 * 17061 * @description 17062 * Set date values to a given date. 17063 * 17064 * Sets time values to date from object `values`. 17065 * A value is not set if it is undefined or null or doesn't exist in `values`. 17066 * 17067 * Note about bundle size: `set` does not internally use `setX` functions from date-fns but instead opts 17068 * to use native `Date#setX` methods. If you use this function, you may not want to include the 17069 * other `setX` functions that date-fns provides if you are concerned about the bundle size. 17070 * 17071 * @param {Date|Number} date - the date to be changed 17072 * @param {Object} values - an object with options 17073 * @param {Number} [values.year] - the number of years to be set 17074 * @param {Number} [values.month] - the number of months to be set 17075 * @param {Number} [values.date] - the number of days to be set 17076 * @param {Number} [values.hours] - the number of hours to be set 17077 * @param {Number} [values.minutes] - the number of minutes to be set 17078 * @param {Number} [values.seconds] - the number of seconds to be set 17079 * @param {Number} [values.milliseconds] - the number of milliseconds to be set 17080 * @returns {Date} the new date with options set 17081 * @throws {TypeError} 2 arguments required 17082 * @throws {RangeError} `values` must be an object 17083 * 17084 * @example 17085 * // Transform 1 September 2014 into 20 October 2015 in a single line: 17086 * const result = set(new Date(2014, 8, 20), { year: 2015, month: 9, date: 20 }) 17087 * //=> Tue Oct 20 2015 00:00:00 17088 * 17089 * @example 17090 * // Set 12 PM to 1 September 2014 01:23:45 to 1 September 2014 12:00:00: 17091 * const result = set(new Date(2014, 8, 1, 1, 23, 45), { hours: 12 }) 17092 * //=> Mon Sep 01 2014 12:23:45 17093 */ 17094 17095function set(dirtyDate, values) { 17096 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments); 17097 17098 if (_typeof(values) !== 'object' || values === null) { 17099 throw new RangeError('values parameter must be an object'); 17100 } 17101 17102 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date 17103 17104 if (isNaN(date.getTime())) { 17105 return new Date(NaN); 17106 } 17107 17108 if (values.year != null) { 17109 date.setFullYear(values.year); 17110 } 17111 17112 if (values.month != null) { 17113 date = Object(_setMonth_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(date, values.month); 17114 } 17115 17116 if (values.date != null) { 17117 date.setDate(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.date)); 17118 } 17119 17120 if (values.hours != null) { 17121 date.setHours(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.hours)); 17122 } 17123 17124 if (values.minutes != null) { 17125 date.setMinutes(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.minutes)); 17126 } 17127 17128 if (values.seconds != null) { 17129 date.setSeconds(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.seconds)); 17130 } 17131 17132 if (values.milliseconds != null) { 17133 date.setMilliseconds(Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(values.milliseconds)); 17134 } 17135 17136 return date; 17137} 17138 17139/***/ }), 17140
vendor: 1,960 bytes, lines 17141-17185
17141/***/ "./node_modules/date-fns/esm/setHours/index.js": 17142/*!*****************************************************!*\ 17143 !*** ./node_modules/date-fns/esm/setHours/index.js ***! 17144 \*****************************************************/ 17145/*! exports provided: default */ 17146/***/ (function(module, __webpack_exports__, __webpack_require__) { 17147 17148"use strict"; 17149__webpack_require__.r(__webpack_exports__); 17150/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setHours; }); 17151/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17152/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17153/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17154 17155 17156 17157/** 17158 * @name setHours 17159 * @category Hour Helpers 17160 * @summary Set the hours to the given date. 17161 * 17162 * @description 17163 * Set the hours to the given date. 17164 * 17165 * @param {Date|Number} date - the date to be changed 17166 * @param {Number} hours - the hours of the new date 17167 * @returns {Date} the new date with the hours set 17168 * @throws {TypeError} 2 arguments required 17169 * 17170 * @example 17171 * // Set 4 hours to 1 September 2014 11:30:00: 17172 * const result = setHours(new Date(2014, 8, 1, 11, 30), 4) 17173 * //=> Mon Sep 01 2014 04:30:00 17174 */ 17175 17176function setHours(dirtyDate, dirtyHours) { 17177 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 17178 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 17179 var hours = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyHours); 17180 date.setHours(hours); 17181 return date; 17182} 17183 17184/***/ }), 17185
vendor: 2,006 bytes, lines 17186-17230
17186/***/ "./node_modules/date-fns/esm/setMinutes/index.js": 17187/*!*******************************************************!*\ 17188 !*** ./node_modules/date-fns/esm/setMinutes/index.js ***! 17189 \*******************************************************/ 17190/*! exports provided: default */ 17191/***/ (function(module, __webpack_exports__, __webpack_require__) { 17192 17193"use strict"; 17194__webpack_require__.r(__webpack_exports__); 17195/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setMinutes; }); 17196/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17197/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17198/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17199 17200 17201 17202/** 17203 * @name setMinutes 17204 * @category Minute Helpers 17205 * @summary Set the minutes to the given date. 17206 * 17207 * @description 17208 * Set the minutes to the given date. 17209 * 17210 * @param {Date|Number} date - the date to be changed 17211 * @param {Number} minutes - the minutes of the new date 17212 * @returns {Date} the new date with the minutes set 17213 * @throws {TypeError} 2 arguments required 17214 * 17215 * @example 17216 * // Set 45 minutes to 1 September 2014 11:30:40: 17217 * const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45) 17218 * //=> Mon Sep 01 2014 11:45:40 17219 */ 17220 17221function setMinutes(dirtyDate, dirtyMinutes) { 17222 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 17223 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 17224 var minutes = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyMinutes); 17225 date.setMinutes(minutes); 17226 return date; 17227} 17228 17229/***/ }), 17230
vendor: 2,583 bytes, lines 17231-17285
17231/***/ "./node_modules/date-fns/esm/setMonth/index.js": 17232/*!*****************************************************!*\ 17233 !*** ./node_modules/date-fns/esm/setMonth/index.js ***! 17234 \*****************************************************/ 17235/*! exports provided: default */ 17236/***/ (function(module, __webpack_exports__, __webpack_require__) { 17237 17238"use strict"; 17239__webpack_require__.r(__webpack_exports__); 17240/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setMonth; }); 17241/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17242/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17243/* harmony import */ var _getDaysInMonth_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../getDaysInMonth/index.js */ "./node_modules/date-fns/esm/getDaysInMonth/index.js"); 17244/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17245 17246 17247 17248 17249/** 17250 * @name setMonth 17251 * @category Month Helpers 17252 * @summary Set the month to the given date. 17253 * 17254 * @description 17255 * Set the month to the given date. 17256 * 17257 * @param {Date|Number} date - the date to be changed 17258 * @param {Number} month - the month of the new date 17259 * @returns {Date} the new date with the month set 17260 * @throws {TypeError} 2 arguments required 17261 * 17262 * @example 17263 * // Set February to 1 September 2014: 17264 * const result = setMonth(new Date(2014, 8, 1), 1) 17265 * //=> Sat Feb 01 2014 00:00:00 17266 */ 17267 17268function setMonth(dirtyDate, dirtyMonth) { 17269 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments); 17270 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 17271 var month = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyMonth); 17272 var year = date.getFullYear(); 17273 var day = date.getDate(); 17274 var dateWithDesiredMonth = new Date(0); 17275 dateWithDesiredMonth.setFullYear(year, month, 15); 17276 dateWithDesiredMonth.setHours(0, 0, 0, 0); 17277 var daysInMonth = Object(_getDaysInMonth_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dateWithDesiredMonth); // Set the last day of the new month 17278 // if the original date was the last day of the longer month 17279 17280 date.setMonth(month, Math.min(day, daysInMonth)); 17281 return date; 17282} 17283 17284/***/ }), 17285
vendor: 2,328 bytes, lines 17286-17333
17286/***/ "./node_modules/date-fns/esm/setQuarter/index.js": 17287/*!*******************************************************!*\ 17288 !*** ./node_modules/date-fns/esm/setQuarter/index.js ***! 17289 \*******************************************************/ 17290/*! exports provided: default */ 17291/***/ (function(module, __webpack_exports__, __webpack_require__) { 17292 17293"use strict"; 17294__webpack_require__.r(__webpack_exports__); 17295/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setQuarter; }); 17296/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17297/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17298/* harmony import */ var _setMonth_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../setMonth/index.js */ "./node_modules/date-fns/esm/setMonth/index.js"); 17299/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17300 17301 17302 17303 17304/** 17305 * @name setQuarter 17306 * @category Quarter Helpers 17307 * @summary Set the year quarter to the given date. 17308 * 17309 * @description 17310 * Set the year quarter to the given date. 17311 * 17312 * @param {Date|Number} date - the date to be changed 17313 * @param {Number} quarter - the quarter of the new date 17314 * @returns {Date} the new date with the quarter set 17315 * @throws {TypeError} 2 arguments required 17316 * 17317 * @example 17318 * // Set the 2nd quarter to 2 July 2014: 17319 * const result = setQuarter(new Date(2014, 6, 2), 2) 17320 * //=> Wed Apr 02 2014 00:00:00 17321 */ 17322 17323function setQuarter(dirtyDate, dirtyQuarter) { 17324 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(2, arguments); 17325 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 17326 var quarter = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyQuarter); 17327 var oldQuarter = Math.floor(date.getMonth() / 3) + 1; 17328 var diff = quarter - oldQuarter; 17329 return Object(_setMonth_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(date, date.getMonth() + diff * 3); 17330} 17331 17332/***/ }), 17333
vendor: 2,006 bytes, lines 17334-17378
17334/***/ "./node_modules/date-fns/esm/setSeconds/index.js": 17335/*!*******************************************************!*\ 17336 !*** ./node_modules/date-fns/esm/setSeconds/index.js ***! 17337 \*******************************************************/ 17338/*! exports provided: default */ 17339/***/ (function(module, __webpack_exports__, __webpack_require__) { 17340 17341"use strict"; 17342__webpack_require__.r(__webpack_exports__); 17343/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setSeconds; }); 17344/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17345/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17346/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17347 17348 17349 17350/** 17351 * @name setSeconds 17352 * @category Second Helpers 17353 * @summary Set the seconds to the given date. 17354 * 17355 * @description 17356 * Set the seconds to the given date. 17357 * 17358 * @param {Date|Number} date - the date to be changed 17359 * @param {Number} seconds - the seconds of the new date 17360 * @returns {Date} the new date with the seconds set 17361 * @throws {TypeError} 2 arguments required 17362 * 17363 * @example 17364 * // Set 45 seconds to 1 September 2014 11:30:40: 17365 * const result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45) 17366 * //=> Mon Sep 01 2014 11:30:45 17367 */ 17368 17369function setSeconds(dirtyDate, dirtySeconds) { 17370 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 17371 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 17372 var seconds = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtySeconds); 17373 date.setSeconds(seconds); 17374 return date; 17375} 17376 17377/***/ }), 17378
vendor: 2,099 bytes, lines 17379-17428
17379/***/ "./node_modules/date-fns/esm/setYear/index.js": 17380/*!****************************************************!*\ 17381 !*** ./node_modules/date-fns/esm/setYear/index.js ***! 17382 \****************************************************/ 17383/*! exports provided: default */ 17384/***/ (function(module, __webpack_exports__, __webpack_require__) { 17385 17386"use strict"; 17387__webpack_require__.r(__webpack_exports__); 17388/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return setYear; }); 17389/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17390/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17391/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17392 17393 17394 17395/** 17396 * @name setYear 17397 * @category Year Helpers 17398 * @summary Set the year to the given date. 17399 * 17400 * @description 17401 * Set the year to the given date. 17402 * 17403 * @param {Date|Number} date - the date to be changed 17404 * @param {Number} year - the year of the new date 17405 * @returns {Date} the new date with the year set 17406 * @throws {TypeError} 2 arguments required 17407 * 17408 * @example 17409 * // Set year 2013 to 1 September 2014: 17410 * const result = setYear(new Date(2014, 8, 1), 2013) 17411 * //=> Sun Sep 01 2013 00:00:00 17412 */ 17413 17414function setYear(dirtyDate, dirtyYear) { 17415 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 17416 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate); 17417 var year = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyYear); // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date 17418 17419 if (isNaN(date.getTime())) { 17420 return new Date(NaN); 17421 } 17422 17423 date.setFullYear(year); 17424 return date; 17425} 17426 17427/***/ }), 17428
vendor: 1,685 bytes, lines 17429-17470
17429/***/ "./node_modules/date-fns/esm/startOfDay/index.js": 17430/*!*******************************************************!*\ 17431 !*** ./node_modules/date-fns/esm/startOfDay/index.js ***! 17432 \*******************************************************/ 17433/*! exports provided: default */ 17434/***/ (function(module, __webpack_exports__, __webpack_require__) { 17435 17436"use strict"; 17437__webpack_require__.r(__webpack_exports__); 17438/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfDay; }); 17439/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17440/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17441 17442 17443/** 17444 * @name startOfDay 17445 * @category Day Helpers 17446 * @summary Return the start of a day for the given date. 17447 * 17448 * @description 17449 * Return the start of a day for the given date. 17450 * The result will be in the local timezone. 17451 * 17452 * @param {Date|Number} date - the original date 17453 * @returns {Date} the start of a day 17454 * @throws {TypeError} 1 argument required 17455 * 17456 * @example 17457 * // The start of a day for 2 September 2014 11:55:00: 17458 * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0)) 17459 * //=> Tue Sep 02 2014 00:00:00 17460 */ 17461 17462function startOfDay(dirtyDate) { 17463 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 17464 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 17465 date.setHours(0, 0, 0, 0); 17466 return date; 17467} 17468 17469/***/ }), 17470
vendor: 1,819 bytes, lines 17471-17514
17471/***/ "./node_modules/date-fns/esm/startOfISOWeek/index.js": 17472/*!***********************************************************!*\ 17473 !*** ./node_modules/date-fns/esm/startOfISOWeek/index.js ***! 17474 \***********************************************************/ 17475/*! exports provided: default */ 17476/***/ (function(module, __webpack_exports__, __webpack_require__) { 17477 17478"use strict"; 17479__webpack_require__.r(__webpack_exports__); 17480/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfISOWeek; }); 17481/* harmony import */ var _startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../startOfWeek/index.js */ "./node_modules/date-fns/esm/startOfWeek/index.js"); 17482/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17483 17484 17485/** 17486 * @name startOfISOWeek 17487 * @category ISO Week Helpers 17488 * @summary Return the start of an ISO week for the given date. 17489 * 17490 * @description 17491 * Return the start of an ISO week for the given date. 17492 * The result will be in the local timezone. 17493 * 17494 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 17495 * 17496 * @param {Date|Number} date - the original date 17497 * @returns {Date} the start of an ISO week 17498 * @throws {TypeError} 1 argument required 17499 * 17500 * @example 17501 * // The start of an ISO week for 2 September 2014 11:55:00: 17502 * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0)) 17503 * //=> Mon Sep 01 2014 00:00:00 17504 */ 17505 17506function startOfISOWeek(dirtyDate) { 17507 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 17508 return Object(_startOfWeek_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, { 17509 weekStartsOn: 1 17510 }); 17511} 17512 17513/***/ }), 17514
vendor: 2,366 bytes, lines 17515-17564
17515/***/ "./node_modules/date-fns/esm/startOfISOWeekYear/index.js": 17516/*!***************************************************************!*\ 17517 !*** ./node_modules/date-fns/esm/startOfISOWeekYear/index.js ***! 17518 \***************************************************************/ 17519/*! exports provided: default */ 17520/***/ (function(module, __webpack_exports__, __webpack_require__) { 17521 17522"use strict"; 17523__webpack_require__.r(__webpack_exports__); 17524/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfISOWeekYear; }); 17525/* harmony import */ var _getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../getISOWeekYear/index.js */ "./node_modules/date-fns/esm/getISOWeekYear/index.js"); 17526/* harmony import */ var _startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../startOfISOWeek/index.js */ "./node_modules/date-fns/esm/startOfISOWeek/index.js"); 17527/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17528 17529 17530 17531/** 17532 * @name startOfISOWeekYear 17533 * @category ISO Week-Numbering Year Helpers 17534 * @summary Return the start of an ISO week-numbering year for the given date. 17535 * 17536 * @description 17537 * Return the start of an ISO week-numbering year, 17538 * which always starts 3 days before the year's first Thursday. 17539 * The result will be in the local timezone. 17540 * 17541 * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date 17542 * 17543 * @param {Date|Number} date - the original date 17544 * @returns {Date} the start of an ISO week-numbering year 17545 * @throws {TypeError} 1 argument required 17546 * 17547 * @example 17548 * // The start of an ISO week-numbering year for 2 July 2005: 17549 * const result = startOfISOWeekYear(new Date(2005, 6, 2)) 17550 * //=> Mon Jan 03 2005 00:00:00 17551 */ 17552 17553function startOfISOWeekYear(dirtyDate) { 17554 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments); 17555 var year = Object(_getISOWeekYear_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 17556 var fourthOfJanuary = new Date(0); 17557 fourthOfJanuary.setFullYear(year, 0, 4); 17558 fourthOfJanuary.setHours(0, 0, 0, 0); 17559 var date = Object(_startOfISOWeek_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(fourthOfJanuary); 17560 return date; 17561} 17562 17563/***/ }), 17564
vendor: 1,730 bytes, lines 17565-17607
17565/***/ "./node_modules/date-fns/esm/startOfMonth/index.js": 17566/*!*********************************************************!*\ 17567 !*** ./node_modules/date-fns/esm/startOfMonth/index.js ***! 17568 \*********************************************************/ 17569/*! exports provided: default */ 17570/***/ (function(module, __webpack_exports__, __webpack_require__) { 17571 17572"use strict"; 17573__webpack_require__.r(__webpack_exports__); 17574/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfMonth; }); 17575/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17576/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17577 17578 17579/** 17580 * @name startOfMonth 17581 * @category Month Helpers 17582 * @summary Return the start of a month for the given date. 17583 * 17584 * @description 17585 * Return the start of a month for the given date. 17586 * The result will be in the local timezone. 17587 * 17588 * @param {Date|Number} date - the original date 17589 * @returns {Date} the start of a month 17590 * @throws {TypeError} 1 argument required 17591 * 17592 * @example 17593 * // The start of a month for 2 September 2014 11:55:00: 17594 * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0)) 17595 * //=> Mon Sep 01 2014 00:00:00 17596 */ 17597 17598function startOfMonth(dirtyDate) { 17599 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 17600 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 17601 date.setDate(1); 17602 date.setHours(0, 0, 0, 0); 17603 return date; 17604} 17605 17606/***/ }), 17607
vendor: 1,859 bytes, lines 17608-17652
17608/***/ "./node_modules/date-fns/esm/startOfQuarter/index.js": 17609/*!***********************************************************!*\ 17610 !*** ./node_modules/date-fns/esm/startOfQuarter/index.js ***! 17611 \***********************************************************/ 17612/*! exports provided: default */ 17613/***/ (function(module, __webpack_exports__, __webpack_require__) { 17614 17615"use strict"; 17616__webpack_require__.r(__webpack_exports__); 17617/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfQuarter; }); 17618/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17619/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17620 17621 17622/** 17623 * @name startOfQuarter 17624 * @category Quarter Helpers 17625 * @summary Return the start of a year quarter for the given date. 17626 * 17627 * @description 17628 * Return the start of a year quarter for the given date. 17629 * The result will be in the local timezone. 17630 * 17631 * @param {Date|Number} date - the original date 17632 * @returns {Date} the start of a quarter 17633 * @throws {TypeError} 1 argument required 17634 * 17635 * @example 17636 * // The start of a quarter for 2 September 2014 11:55:00: 17637 * const result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0)) 17638 * //=> Tue Jul 01 2014 00:00:00 17639 */ 17640 17641function startOfQuarter(dirtyDate) { 17642 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 17643 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 17644 var currentMonth = date.getMonth(); 17645 var month = currentMonth - currentMonth % 3; 17646 date.setMonth(month, 1); 17647 date.setHours(0, 0, 0, 0); 17648 return date; 17649} 17650 17651/***/ }), 17652
vendor: 4,222 bytes, lines 17653-17719
17653/***/ "./node_modules/date-fns/esm/startOfWeek/index.js": 17654/*!********************************************************!*\ 17655 !*** ./node_modules/date-fns/esm/startOfWeek/index.js ***! 17656 \********************************************************/ 17657/*! exports provided: default */ 17658/***/ (function(module, __webpack_exports__, __webpack_require__) { 17659 17660"use strict"; 17661__webpack_require__.r(__webpack_exports__); 17662/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfWeek; }); 17663/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17664/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17665/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17666/* harmony import */ var _lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_lib/defaultOptions/index.js */ "./node_modules/date-fns/esm/_lib/defaultOptions/index.js"); 17667 17668 17669 17670 17671/** 17672 * @name startOfWeek 17673 * @category Week Helpers 17674 * @summary Return the start of a week for the given date. 17675 * 17676 * @description 17677 * Return the start of a week for the given date. 17678 * The result will be in the local timezone. 17679 * 17680 * @param {Date|Number} date - the original date 17681 * @param {Object} [options] - an object with options. 17682 * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale} 17683 * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday) 17684 * @returns {Date} the start of a week 17685 * @throws {TypeError} 1 argument required 17686 * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6 17687 * 17688 * @example 17689 * // The start of a week for 2 September 2014 11:55:00: 17690 * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0)) 17691 * //=> Sun Aug 31 2014 00:00:00 17692 * 17693 * @example 17694 * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00: 17695 * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 }) 17696 * //=> Mon Sep 01 2014 00:00:00 17697 */ 17698 17699function startOfWeek(dirtyDate, options) { 17700 var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2; 17701 17702 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(1, arguments); 17703 var defaultOptions = Object(_lib_defaultOptions_index_js__WEBPACK_IMPORTED_MODULE_3__["getDefaultOptions"])(); 17704 var weekStartsOn = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN 17705 17706 if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) { 17707 throw new RangeError('weekStartsOn must be between 0 and 6 inclusively'); 17708 } 17709 17710 var date = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 17711 var day = date.getDay(); 17712 var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn; 17713 date.setDate(date.getDate() - diff); 17714 date.setHours(0, 0, 0, 0); 17715 return date; 17716} 17717 17718/***/ }), 17719
vendor: 1,781 bytes, lines 17720-17763
17720/***/ "./node_modules/date-fns/esm/startOfYear/index.js": 17721/*!********************************************************!*\ 17722 !*** ./node_modules/date-fns/esm/startOfYear/index.js ***! 17723 \********************************************************/ 17724/*! exports provided: default */ 17725/***/ (function(module, __webpack_exports__, __webpack_require__) { 17726 17727"use strict"; 17728__webpack_require__.r(__webpack_exports__); 17729/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return startOfYear; }); 17730/* harmony import */ var _toDate_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../toDate/index.js */ "./node_modules/date-fns/esm/toDate/index.js"); 17731/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17732 17733 17734/** 17735 * @name startOfYear 17736 * @category Year Helpers 17737 * @summary Return the start of a year for the given date. 17738 * 17739 * @description 17740 * Return the start of a year for the given date. 17741 * The result will be in the local timezone. 17742 * 17743 * @param {Date|Number} date - the original date 17744 * @returns {Date} the start of a year 17745 * @throws {TypeError} 1 argument required 17746 * 17747 * @example 17748 * // The start of a year for 2 September 2014 11:55:00: 17749 * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00)) 17750 * //=> Wed Jan 01 2014 00:00:00 17751 */ 17752 17753function startOfYear(dirtyDate) { 17754 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(1, arguments); 17755 var cleanDate = Object(_toDate_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate); 17756 var date = new Date(0); 17757 date.setFullYear(cleanDate.getFullYear(), 0, 1); 17758 date.setHours(0, 0, 0, 0); 17759 return date; 17760} 17761 17762/***/ }), 17763
vendor: 2,098 bytes, lines 17764-17806
17764/***/ "./node_modules/date-fns/esm/subDays/index.js": 17765/*!****************************************************!*\ 17766 !*** ./node_modules/date-fns/esm/subDays/index.js ***! 17767 \****************************************************/ 17768/*! exports provided: default */ 17769/***/ (function(module, __webpack_exports__, __webpack_require__) { 17770 17771"use strict"; 17772__webpack_require__.r(__webpack_exports__); 17773/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return subDays; }); 17774/* harmony import */ var _addDays_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../addDays/index.js */ "./node_modules/date-fns/esm/addDays/index.js"); 17775/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17776/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17777 17778 17779 17780/** 17781 * @name subDays 17782 * @category Day Helpers 17783 * @summary Subtract the specified number of days from the given date. 17784 * 17785 * @description 17786 * Subtract the specified number of days from the given date. 17787 * 17788 * @param {Date|Number} date - the date to be changed 17789 * @param {Number} amount - the amount of days to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 17790 * @returns {Date} the new date with the days subtracted 17791 * @throws {TypeError} 2 arguments required 17792 * 17793 * @example 17794 * // Subtract 10 days from 1 September 2014: 17795 * const result = subDays(new Date(2014, 8, 1), 10) 17796 * //=> Fri Aug 22 2014 00:00:00 17797 */ 17798 17799function subDays(dirtyDate, dirtyAmount) { 17800 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 17801 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyAmount); 17802 return Object(_addDays_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, -amount); 17803} 17804 17805/***/ }), 17806
vendor: 2,126 bytes, lines 17807-17849
17807/***/ "./node_modules/date-fns/esm/subHours/index.js": 17808/*!*****************************************************!*\ 17809 !*** ./node_modules/date-fns/esm/subHours/index.js ***! 17810 \*****************************************************/ 17811/*! exports provided: default */ 17812/***/ (function(module, __webpack_exports__, __webpack_require__) { 17813 17814"use strict"; 17815__webpack_require__.r(__webpack_exports__); 17816/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return subHours; }); 17817/* harmony import */ var _addHours_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../addHours/index.js */ "./node_modules/date-fns/esm/addHours/index.js"); 17818/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17819/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17820 17821 17822 17823/** 17824 * @name subHours 17825 * @category Hour Helpers 17826 * @summary Subtract the specified number of hours from the given date. 17827 * 17828 * @description 17829 * Subtract the specified number of hours from the given date. 17830 * 17831 * @param {Date|Number} date - the date to be changed 17832 * @param {Number} amount - the amount of hours to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 17833 * @returns {Date} the new date with the hours subtracted 17834 * @throws {TypeError} 2 arguments required 17835 * 17836 * @example 17837 * // Subtract 2 hours from 11 July 2014 01:00:00: 17838 * const result = subHours(new Date(2014, 6, 11, 1, 0), 2) 17839 * //=> Thu Jul 10 2014 23:00:00 17840 */ 17841 17842function subHours(dirtyDate, dirtyAmount) { 17843 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 17844 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyAmount); 17845 return Object(_addHours_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, -amount); 17846} 17847 17848/***/ }), 17849
vendor: 2,273 bytes, lines 17850-17892
17850/***/ "./node_modules/date-fns/esm/subMilliseconds/index.js": 17851/*!************************************************************!*\ 17852 !*** ./node_modules/date-fns/esm/subMilliseconds/index.js ***! 17853 \************************************************************/ 17854/*! exports provided: default */ 17855/***/ (function(module, __webpack_exports__, __webpack_require__) { 17856 17857"use strict"; 17858__webpack_require__.r(__webpack_exports__); 17859/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return subMilliseconds; }); 17860/* harmony import */ var _addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../addMilliseconds/index.js */ "./node_modules/date-fns/esm/addMilliseconds/index.js"); 17861/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17862/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17863 17864 17865 17866/** 17867 * @name subMilliseconds 17868 * @category Millisecond Helpers 17869 * @summary Subtract the specified number of milliseconds from the given date. 17870 * 17871 * @description 17872 * Subtract the specified number of milliseconds from the given date. 17873 * 17874 * @param {Date|Number} date - the date to be changed 17875 * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 17876 * @returns {Date} the new date with the milliseconds subtracted 17877 * @throws {TypeError} 2 arguments required 17878 * 17879 * @example 17880 * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000: 17881 * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750) 17882 * //=> Thu Jul 10 2014 12:45:29.250 17883 */ 17884 17885function subMilliseconds(dirtyDate, dirtyAmount) { 17886 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 17887 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyAmount); 17888 return Object(_addMilliseconds_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, -amount); 17889} 17890 17891/***/ }), 17892
vendor: 2,165 bytes, lines 17893-17935
17893/***/ "./node_modules/date-fns/esm/subMinutes/index.js": 17894/*!*******************************************************!*\ 17895 !*** ./node_modules/date-fns/esm/subMinutes/index.js ***! 17896 \*******************************************************/ 17897/*! exports provided: default */ 17898/***/ (function(module, __webpack_exports__, __webpack_require__) { 17899 17900"use strict"; 17901__webpack_require__.r(__webpack_exports__); 17902/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return subMinutes; }); 17903/* harmony import */ var _addMinutes_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../addMinutes/index.js */ "./node_modules/date-fns/esm/addMinutes/index.js"); 17904/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17905/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17906 17907 17908 17909/** 17910 * @name subMinutes 17911 * @category Minute Helpers 17912 * @summary Subtract the specified number of minutes from the given date. 17913 * 17914 * @description 17915 * Subtract the specified number of minutes from the given date. 17916 * 17917 * @param {Date|Number} date - the date to be changed 17918 * @param {Number} amount - the amount of minutes to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 17919 * @returns {Date} the new date with the minutes subtracted 17920 * @throws {TypeError} 2 arguments required 17921 * 17922 * @example 17923 * // Subtract 30 minutes from 10 July 2014 12:00:00: 17924 * const result = subMinutes(new Date(2014, 6, 10, 12, 0), 30) 17925 * //=> Thu Jul 10 2014 11:30:00 17926 */ 17927 17928function subMinutes(dirtyDate, dirtyAmount) { 17929 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(2, arguments); 17930 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(dirtyAmount); 17931 return Object(_addMinutes_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyDate, -amount); 17932} 17933 17934/***/ }), 17935
vendor: 2,131 bytes, lines 17936-17978
17936/***/ "./node_modules/date-fns/esm/subMonths/index.js": 17937/*!******************************************************!*\ 17938 !*** ./node_modules/date-fns/esm/subMonths/index.js ***! 17939 \******************************************************/ 17940/*! exports provided: default */ 17941/***/ (function(module, __webpack_exports__, __webpack_require__) { 17942 17943"use strict"; 17944__webpack_require__.r(__webpack_exports__); 17945/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return subMonths; }); 17946/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17947/* harmony import */ var _addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addMonths/index.js */ "./node_modules/date-fns/esm/addMonths/index.js"); 17948/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17949 17950 17951 17952/** 17953 * @name subMonths 17954 * @category Month Helpers 17955 * @summary Subtract the specified number of months from the given date. 17956 * 17957 * @description 17958 * Subtract the specified number of months from the given date. 17959 * 17960 * @param {Date|Number} date - the date to be changed 17961 * @param {Number} amount - the amount of months to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 17962 * @returns {Date} the new date with the months subtracted 17963 * @throws {TypeError} 2 arguments required 17964 * 17965 * @example 17966 * // Subtract 5 months from 1 February 2015: 17967 * const result = subMonths(new Date(2015, 1, 1), 5) 17968 * //=> Mon Sep 01 2014 00:00:00 17969 */ 17970 17971function subMonths(dirtyDate, dirtyAmount) { 17972 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 17973 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 17974 return Object(_addMonths_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount); 17975} 17976 17977/***/ }), 17978
vendor: 2,178 bytes, lines 17979-18021
17979/***/ "./node_modules/date-fns/esm/subQuarters/index.js": 17980/*!********************************************************!*\ 17981 !*** ./node_modules/date-fns/esm/subQuarters/index.js ***! 17982 \********************************************************/ 17983/*! exports provided: default */ 17984/***/ (function(module, __webpack_exports__, __webpack_require__) { 17985 17986"use strict"; 17987__webpack_require__.r(__webpack_exports__); 17988/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return subQuarters; }); 17989/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 17990/* harmony import */ var _addQuarters_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addQuarters/index.js */ "./node_modules/date-fns/esm/addQuarters/index.js"); 17991/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 17992 17993 17994 17995/** 17996 * @name subQuarters 17997 * @category Quarter Helpers 17998 * @summary Subtract the specified number of year quarters from the given date. 17999 * 18000 * @description 18001 * Subtract the specified number of year quarters from the given date. 18002 * 18003 * @param {Date|Number} date - the date to be changed 18004 * @param {Number} amount - the amount of quarters to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 18005 * @returns {Date} the new date with the quarters subtracted 18006 * @throws {TypeError} 2 arguments required 18007 * 18008 * @example 18009 * // Subtract 3 quarters from 1 September 2014: 18010 * const result = subQuarters(new Date(2014, 8, 1), 3) 18011 * //=> Sun Dec 01 2013 00:00:00 18012 */ 18013 18014function subQuarters(dirtyDate, dirtyAmount) { 18015 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 18016 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 18017 return Object(_addQuarters_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount); 18018} 18019 18020/***/ }), 18021
vendor: 2,114 bytes, lines 18022-18064
18022/***/ "./node_modules/date-fns/esm/subWeeks/index.js": 18023/*!*****************************************************!*\ 18024 !*** ./node_modules/date-fns/esm/subWeeks/index.js ***! 18025 \*****************************************************/ 18026/*! exports provided: default */ 18027/***/ (function(module, __webpack_exports__, __webpack_require__) { 18028 18029"use strict"; 18030__webpack_require__.r(__webpack_exports__); 18031/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return subWeeks; }); 18032/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 18033/* harmony import */ var _addWeeks_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addWeeks/index.js */ "./node_modules/date-fns/esm/addWeeks/index.js"); 18034/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 18035 18036 18037 18038/** 18039 * @name subWeeks 18040 * @category Week Helpers 18041 * @summary Subtract the specified number of weeks from the given date. 18042 * 18043 * @description 18044 * Subtract the specified number of weeks from the given date. 18045 * 18046 * @param {Date|Number} date - the date to be changed 18047 * @param {Number} amount - the amount of weeks to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 18048 * @returns {Date} the new date with the weeks subtracted 18049 * @throws {TypeError} 2 arguments required 18050 * 18051 * @example 18052 * // Subtract 4 weeks from 1 September 2014: 18053 * const result = subWeeks(new Date(2014, 8, 1), 4) 18054 * //=> Mon Aug 04 2014 00:00:00 18055 */ 18056 18057function subWeeks(dirtyDate, dirtyAmount) { 18058 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 18059 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 18060 return Object(_addWeeks_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount); 18061} 18062 18063/***/ }), 18064
vendor: 2,114 bytes, lines 18065-18107
18065/***/ "./node_modules/date-fns/esm/subYears/index.js": 18066/*!*****************************************************!*\ 18067 !*** ./node_modules/date-fns/esm/subYears/index.js ***! 18068 \*****************************************************/ 18069/*! exports provided: default */ 18070/***/ (function(module, __webpack_exports__, __webpack_require__) { 18071 18072"use strict"; 18073__webpack_require__.r(__webpack_exports__); 18074/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return subYears; }); 18075/* harmony import */ var _lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/toInteger/index.js */ "./node_modules/date-fns/esm/_lib/toInteger/index.js"); 18076/* harmony import */ var _addYears_index_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../addYears/index.js */ "./node_modules/date-fns/esm/addYears/index.js"); 18077/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 18078 18079 18080 18081/** 18082 * @name subYears 18083 * @category Year Helpers 18084 * @summary Subtract the specified number of years from the given date. 18085 * 18086 * @description 18087 * Subtract the specified number of years from the given date. 18088 * 18089 * @param {Date|Number} date - the date to be changed 18090 * @param {Number} amount - the amount of years to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`. 18091 * @returns {Date} the new date with the years subtracted 18092 * @throws {TypeError} 2 arguments required 18093 * 18094 * @example 18095 * // Subtract 5 years from 1 September 2014: 18096 * const result = subYears(new Date(2014, 8, 1), 5) 18097 * //=> Tue Sep 01 2009 00:00:00 18098 */ 18099 18100function subYears(dirtyDate, dirtyAmount) { 18101 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_2__["default"])(2, arguments); 18102 var amount = Object(_lib_toInteger_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(dirtyAmount); 18103 return Object(_addYears_index_js__WEBPACK_IMPORTED_MODULE_1__["default"])(dirtyDate, -amount); 18104} 18105 18106/***/ }), 18107
vendor: 3,097 bytes, lines 18108-18189
18108/***/ "./node_modules/date-fns/esm/toDate/index.js": 18109/*!***************************************************!*\ 18110 !*** ./node_modules/date-fns/esm/toDate/index.js ***! 18111 \***************************************************/ 18112/*! exports provided: default */ 18113/***/ (function(module, __webpack_exports__, __webpack_require__) { 18114 18115"use strict"; 18116__webpack_require__.r(__webpack_exports__); 18117/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return toDate; }); 18118/* harmony import */ var _lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_lib/requiredArgs/index.js */ "./node_modules/date-fns/esm/_lib/requiredArgs/index.js"); 18119function _typeof(obj) { 18120 "@babel/helpers - typeof"; 18121 18122 if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { 18123 _typeof = function _typeof(obj) { 18124 return typeof obj; 18125 }; 18126 } else { 18127 _typeof = function _typeof(obj) { 18128 return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; 18129 }; 18130 } 18131 18132 return _typeof(obj); 18133} 18134 18135 18136/** 18137 * @name toDate 18138 * @category Common Helpers 18139 * @summary Convert the given argument to an instance of Date. 18140 * 18141 * @description 18142 * Convert the given argument to an instance of Date. 18143 * 18144 * If the argument is an instance of Date, the function returns its clone. 18145 * 18146 * If the argument is a number, it is treated as a timestamp. 18147 * 18148 * If the argument is none of the above, the function returns Invalid Date. 18149 * 18150 * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`. 18151 * 18152 * @param {Date|Number} argument - the value to convert 18153 * @returns {Date} the parsed date in the local time zone 18154 * @throws {TypeError} 1 argument required 18155 * 18156 * @example 18157 * // Clone the date: 18158 * const result = toDate(new Date(2014, 1, 11, 11, 30, 30)) 18159 * //=> Tue Feb 11 2014 11:30:30 18160 * 18161 * @example 18162 * // Convert the timestamp to date: 18163 * const result = toDate(1392098430000) 18164 * //=> Tue Feb 11 2014 11:30:30 18165 */ 18166 18167function toDate(argument) { 18168 Object(_lib_requiredArgs_index_js__WEBPACK_IMPORTED_MODULE_0__["default"])(1, arguments); 18169 var argStr = Object.prototype.toString.call(argument); // Clone the date 18170 18171 if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') { 18172 // Prevent the date to lose the milliseconds when passed to new Date() in IE10 18173 return new Date(argument.getTime()); 18174 } else if (typeof argument === 'number' || argStr === '[object Number]') { 18175 return new Date(argument); 18176 } else { 18177 if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') { 18178 // eslint-disable-next-line no-console 18179 console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console 18180 18181 console.warn(new Error().stack); 18182 } 18183 18184 return new Date(NaN); 18185 } 18186} 18187 18188/***/ }), 18189
vendor: 142,076 bytes, lines 18190-21540
18190/***/ "./node_modules/react-datepicker/dist/react-datepicker.min.js": 18191/*!********************************************************************!*\ 18192 !*** ./node_modules/react-datepicker/dist/react-datepicker.min.js ***! 18193 \********************************************************************/ 18194/*! no static exports found */ 18195/***/ (function(module, exports, __webpack_require__) { 18196 18197var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } 18198 18199!function (e, t) { 18200 "object" == ( false ? undefined : _typeof(exports)) && "undefined" != typeof module ? t(exports, __webpack_require__(/*! react */ "./node_modules/react/index.js"), __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"), __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"), __webpack_require__(/*! date-fns/isDate */ "./node_modules/date-fns/esm/isDate/index.js"), __webpack_require__(/*! date-fns/isValid */ "./node_modules/date-fns/esm/isValid/index.js"), __webpack_require__(/*! date-fns/format */ "./node_modules/date-fns/esm/format/index.js"), __webpack_require__(/*! date-fns/addMinutes */ "./node_modules/date-fns/esm/addMinutes/index.js"), __webpack_require__(/*! date-fns/addHours */ "./node_modules/date-fns/esm/addHours/index.js"), __webpack_require__(/*! date-fns/addDays */ "./node_modules/date-fns/esm/addDays/index.js"), __webpack_require__(/*! date-fns/addWeeks */ "./node_modules/date-fns/esm/addWeeks/index.js"), __webpack_require__(/*! date-fns/addMonths */ "./node_modules/date-fns/esm/addMonths/index.js"), __webpack_require__(/*! date-fns/addQuarters */ "./node_modules/date-fns/esm/addQuarters/index.js"), __webpack_require__(/*! date-fns/addYears */ "./node_modules/date-fns/esm/addYears/index.js"), __webpack_require__(/*! date-fns/subMinutes */ "./node_modules/date-fns/esm/subMinutes/index.js"), __webpack_require__(/*! date-fns/subHours */ "./node_modules/date-fns/esm/subHours/index.js"), __webpack_require__(/*! date-fns/subDays */ "./node_modules/date-fns/esm/subDays/index.js"), __webpack_require__(/*! date-fns/subWeeks */ "./node_modules/date-fns/esm/subWeeks/index.js"), __webpack_require__(/*! date-fns/subMonths */ "./node_modules/date-fns/esm/subMonths/index.js"), __webpack_require__(/*! date-fns/subQuarters */ "./node_modules/date-fns/esm/subQuarters/index.js"), __webpack_require__(/*! date-fns/subYears */ "./node_modules/date-fns/esm/subYears/index.js"), __webpack_require__(/*! date-fns/getSeconds */ "./node_modules/date-fns/esm/getSeconds/index.js"), __webpack_require__(/*! date-fns/getMinutes */ "./node_modules/date-fns/esm/getMinutes/index.js"), __webpack_require__(/*! date-fns/getHours */ "./node_modules/date-fns/esm/getHours/index.js"), __webpack_require__(/*! date-fns/getDay */ "./node_modules/date-fns/esm/getDay/index.js"), __webpack_require__(/*! date-fns/getDate */ "./node_modules/date-fns/esm/getDate/index.js"), __webpack_require__(/*! date-fns/getISOWeek */ "./node_modules/date-fns/esm/getISOWeek/index.js"), __webpack_require__(/*! date-fns/getMonth */ "./node_modules/date-fns/esm/getMonth/index.js"), __webpack_require__(/*! date-fns/getQuarter */ "./node_modules/date-fns/esm/getQuarter/index.js"), __webpack_require__(/*! date-fns/getYear */ "./node_modules/date-fns/esm/getYear/index.js"), __webpack_require__(/*! date-fns/getTime */ "./node_modules/date-fns/esm/getTime/index.js"), __webpack_require__(/*! date-fns/setSeconds */ "./node_modules/date-fns/esm/setSeconds/index.js"), __webpack_require__(/*! date-fns/setMinutes */ "./node_modules/date-fns/esm/setMinutes/index.js"), __webpack_require__(/*! date-fns/setHours */ "./node_modules/date-fns/esm/setHours/index.js"), __webpack_require__(/*! date-fns/setMonth */ "./node_modules/date-fns/esm/setMonth/index.js"), __webpack_require__(/*! date-fns/setQuarter */ "./node_modules/date-fns/esm/setQuarter/index.js"), __webpack_require__(/*! date-fns/setYear */ "./node_modules/date-fns/esm/setYear/index.js"), __webpack_require__(/*! date-fns/min */ "./node_modules/date-fns/esm/min/index.js"), __webpack_require__(/*! date-fns/max */ "./node_modules/date-fns/esm/max/index.js"), __webpack_require__(/*! date-fns/differenceInCalendarDays */ "./node_modules/date-fns/esm/differenceInCalendarDays/index.js"), __webpack_require__(/*! date-fns/differenceInCalendarMonths */ "./node_modules/date-fns/esm/differenceInCalendarMonths/index.js"), __webpack_require__(/*! date-fns/differenceInCalendarWeeks */ "./node_modules/date-fns/esm/differenceInCalendarWeeks/index.js"), __webpack_require__(/*! date-fns/differenceInCalendarYears */ "./node_modules/date-fns/esm/differenceInCalendarYears/index.js"), __webpack_require__(/*! date-fns/startOfDay */ "./node_modules/date-fns/esm/startOfDay/index.js"), __webpack_require__(/*! date-fns/startOfWeek */ "./node_modules/date-fns/esm/startOfWeek/index.js"), __webpack_require__(/*! date-fns/startOfMonth */ "./node_modules/date-fns/esm/startOfMonth/index.js"), __webpack_require__(/*! date-fns/startOfQuarter */ "./node_modules/date-fns/esm/startOfQuarter/index.js"), __webpack_require__(/*! date-fns/startOfYear */ "./node_modules/date-fns/esm/startOfYear/index.js"), __webpack_require__(/*! date-fns/endOfDay */ "./node_modules/date-fns/esm/endOfDay/index.js"), __webpack_require__(/*! date-fns/endOfWeek */ "./node_modules/date-fns/esm/endOfWeek/index.js"), __webpack_require__(/*! date-fns/endOfMonth */ "./node_modules/date-fns/esm/endOfMonth/index.js"), __webpack_require__(/*! date-fns/endOfYear */ "./node_modules/date-fns/esm/endOfYear/index.js"), __webpack_require__(/*! date-fns/isEqual */ "./node_modules/date-fns/esm/isEqual/index.js"), __webpack_require__(/*! date-fns/isSameDay */ "./node_modules/date-fns/esm/isSameDay/index.js"), __webpack_require__(/*! date-fns/isSameMonth */ "./node_modules/date-fns/esm/isSameMonth/index.js"), __webpack_require__(/*! date-fns/isSameYear */ "./node_modules/date-fns/esm/isSameYear/index.js"), __webpack_require__(/*! date-fns/isSameQuarter */ "./node_modules/date-fns/esm/isSameQuarter/index.js"), __webpack_require__(/*! date-fns/isAfter */ "./node_modules/date-fns/esm/isAfter/index.js"), __webpack_require__(/*! date-fns/isBefore */ "./node_modules/date-fns/esm/isBefore/index.js"), __webpack_require__(/*! date-fns/isWithinInterval */ "./node_modules/date-fns/esm/isWithinInterval/index.js"), __webpack_require__(/*! date-fns/toDate */ "./node_modules/date-fns/esm/toDate/index.js"), __webpack_require__(/*! date-fns/parse */ "./node_modules/date-fns/esm/parse/index.js"), __webpack_require__(/*! date-fns/parseISO */ "./node_modules/date-fns/esm/parseISO/index.js"), __webpack_require__(/*! react-onclickoutside */ "./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js"), __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"), __webpack_require__(/*! react-popper */ "./node_modules/react-popper/lib/esm/index.js"), __webpack_require__(/*! date-fns/set */ "./node_modules/date-fns/esm/set/index.js")) : true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(/*! react */ "./node_modules/react/index.js"), __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"), __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"), __webpack_require__(/*! date-fns/isDate */ "./node_modules/date-fns/esm/isDate/index.js"), __webpack_require__(/*! date-fns/isValid */ "./node_modules/date-fns/esm/isValid/index.js"), __webpack_require__(/*! date-fns/format */ "./node_modules/date-fns/esm/format/index.js"), __webpack_require__(/*! date-fns/addMinutes */ "./node_modules/date-fns/esm/addMinutes/index.js"), __webpack_require__(/*! date-fns/addHours */ "./node_modules/date-fns/esm/addHours/index.js"), __webpack_require__(/*! date-fns/addDays */ "./node_modules/date-fns/esm/addDays/index.js"), __webpack_require__(/*! date-fns/addWeeks */ "./node_modules/date-fns/esm/addWeeks/index.js"), __webpack_require__(/*! date-fns/addMonths */ "./node_modules/date-fns/esm/addMonths/index.js"), __webpack_require__(/*! date-fns/addQuarters */ "./node_modules/date-fns/esm/addQuarters/index.js"), __webpack_require__(/*! date-fns/addYears */ "./node_modules/date-fns/esm/addYears/index.js"), __webpack_require__(/*! date-fns/subMinutes */ "./node_modules/date-fns/esm/subMinutes/index.js"), __webpack_require__(/*! date-fns/subHours */ "./node_modules/date-fns/esm/subHours/index.js"), __webpack_require__(/*! date-fns/subDays */ "./node_modules/date-fns/esm/subDays/index.js"), __webpack_require__(/*! date-fns/subWeeks */ "./node_modules/date-fns/esm/subWeeks/index.js"), __webpack_require__(/*! date-fns/subMonths */ "./node_modules/date-fns/esm/subMonths/index.js"), __webpack_require__(/*! date-fns/subQuarters */ "./node_modules/date-fns/esm/subQuarters/index.js"), __webpack_require__(/*! date-fns/subYears */ "./node_modules/date-fns/esm/subYears/index.js"), __webpack_require__(/*! date-fns/getSeconds */ "./node_modules/date-fns/esm/getSeconds/index.js"), __webpack_require__(/*! date-fns/getMinutes */ "./node_modules/date-fns/esm/getMinutes/index.js"), __webpack_require__(/*! date-fns/getHours */ "./node_modules/date-fns/esm/getHours/index.js"), __webpack_require__(/*! date-fns/getDay */ "./node_modules/date-fns/esm/getDay/index.js"), __webpack_require__(/*! date-fns/getDate */ "./node_modules/date-fns/esm/getDate/index.js"), __webpack_require__(/*! date-fns/getISOWeek */ "./node_modules/date-fns/esm/getISOWeek/index.js"), __webpack_require__(/*! date-fns/getMonth */ "./node_modules/date-fns/esm/getMonth/index.js"), __webpack_require__(/*! date-fns/getQuarter */ "./node_modules/date-fns/esm/getQuarter/index.js"), __webpack_require__(/*! date-fns/getYear */ "./node_modules/date-fns/esm/getYear/index.js"), __webpack_require__(/*! date-fns/getTime */ "./node_modules/date-fns/esm/getTime/index.js"), __webpack_require__(/*! date-fns/setSeconds */ "./node_modules/date-fns/esm/setSeconds/index.js"), __webpack_require__(/*! date-fns/setMinutes */ "./node_modules/date-fns/esm/setMinutes/index.js"), __webpack_require__(/*! date-fns/setHours */ "./node_modules/date-fns/esm/setHours/index.js"), __webpack_require__(/*! date-fns/setMonth */ "./node_modules/date-fns/esm/setMonth/index.js"), __webpack_require__(/*! date-fns/setQuarter */ "./node_modules/date-fns/esm/setQuarter/index.js"), __webpack_require__(/*! date-fns/setYear */ "./node_modules/date-fns/esm/setYear/index.js"), __webpack_require__(/*! date-fns/min */ "./node_modules/date-fns/esm/min/index.js"), __webpack_require__(/*! date-fns/max */ "./node_modules/date-fns/esm/max/index.js"), __webpack_require__(/*! date-fns/differenceInCalendarDays */ "./node_modules/date-fns/esm/differenceInCalendarDays/index.js"), __webpack_require__(/*! date-fns/differenceInCalendarMonths */ "./node_modules/date-fns/esm/differenceInCalendarMonths/index.js"), __webpack_require__(/*! date-fns/differenceInCalendarWeeks */ "./node_modules/date-fns/esm/differenceInCalendarWeeks/index.js"), __webpack_require__(/*! date-fns/differenceInCalendarYears */ "./node_modules/date-fns/esm/differenceInCalendarYears/index.js"), __webpack_require__(/*! date-fns/startOfDay */ "./node_modules/date-fns/esm/startOfDay/index.js"), __webpack_require__(/*! date-fns/startOfWeek */ "./node_modules/date-fns/esm/startOfWeek/index.js"), __webpack_require__(/*! date-fns/startOfMonth */ "./node_modules/date-fns/esm/startOfMonth/index.js"), __webpack_require__(/*! date-fns/startOfQuarter */ "./node_modules/date-fns/esm/startOfQuarter/index.js"), __webpack_require__(/*! date-fns/startOfYear */ "./node_modules/date-fns/esm/startOfYear/index.js"), __webpack_require__(/*! date-fns/endOfDay */ "./node_modules/date-fns/esm/endOfDay/index.js"), __webpack_require__(/*! date-fns/endOfWeek */ "./node_modules/date-fns/esm/endOfWeek/index.js"), __webpack_require__(/*! date-fns/endOfMonth */ "./node_modules/date-fns/esm/endOfMonth/index.js"), __webpack_require__(/*! date-fns/endOfYear */ "./node_modules/date-fns/esm/endOfYear/index.js"), __webpack_require__(/*! date-fns/isEqual */ "./node_modules/date-fns/esm/isEqual/index.js"), __webpack_require__(/*! date-fns/isSameDay */ "./node_modules/date-fns/esm/isSameDay/index.js"), __webpack_require__(/*! date-fns/isSameMonth */ "./node_modules/date-fns/esm/isSameMonth/index.js"), __webpack_require__(/*! date-fns/isSameYear */ "./node_modules/date-fns/esm/isSameYear/index.js"), __webpack_require__(/*! date-fns/isSameQuarter */ "./node_modules/date-fns/esm/isSameQuarter/index.js"), __webpack_require__(/*! date-fns/isAfter */ "./node_modules/date-fns/esm/isAfter/index.js"), __webpack_require__(/*! date-fns/isBefore */ "./node_modules/date-fns/esm/isBefore/index.js"), __webpack_require__(/*! date-fns/isWithinInterval */ "./node_modules/date-fns/esm/isWithinInterval/index.js"), __webpack_require__(/*! date-fns/toDate */ "./node_modules/date-fns/esm/toDate/index.js"), __webpack_require__(/*! date-fns/parse */ "./node_modules/date-fns/esm/parse/index.js"), __webpack_require__(/*! date-fns/parseISO */ "./node_modules/date-fns/esm/parseISO/index.js"), __webpack_require__(/*! react-onclickoutside */ "./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js"), __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"), __webpack_require__(/*! react-popper */ "./node_modules/react-popper/lib/esm/index.js"), __webpack_require__(/*! date-fns/set */ "./node_modules/date-fns/esm/set/index.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (t), 18201 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? 18202 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), 18203 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : undefined; 18204}(this, function (e, t, r, a, n, o, s, i, p, l, d, c, u, f, h, m, y, v, D, g, w, k, b, S, C, _, M, P, E, N, O, x, Y, I, T, L, R, F, A, q, K, W, B, Q, j, H, V, U, $, z, G, J, X, Z, ee, te, re, ae, ne, oe, se, ie, pe, le, de, ce, ue) { 18205 "use strict"; 18206 18207 function fe(e) { 18208 return e && "object" == _typeof(e) && "default" in e ? e : { 18209 default: e 18210 }; 18211 } 18212 18213 var he = fe(t), 18214 me = fe(a), 18215 ye = fe(n), 18216 ve = fe(o), 18217 De = fe(s), 18218 ge = fe(i), 18219 we = fe(p), 18220 ke = fe(l), 18221 be = fe(d), 18222 Se = fe(c), 18223 Ce = fe(u), 18224 _e = fe(f), 18225 Me = fe(y), 18226 Pe = fe(v), 18227 Ee = fe(D), 18228 Ne = fe(g), 18229 Oe = fe(w), 18230 xe = fe(k), 18231 Ye = fe(b), 18232 Ie = fe(S), 18233 Te = fe(C), 18234 Le = fe(_), 18235 Re = fe(M), 18236 Fe = fe(P), 18237 Ae = fe(E), 18238 qe = fe(N), 18239 Ke = fe(O), 18240 We = fe(x), 18241 Be = fe(Y), 18242 Qe = fe(I), 18243 je = fe(T), 18244 He = fe(L), 18245 Ve = fe(R), 18246 Ue = fe(F), 18247 $e = fe(A), 18248 ze = fe(q), 18249 Ge = fe(K), 18250 Je = fe(B), 18251 Xe = fe(Q), 18252 Ze = fe(j), 18253 et = fe(H), 18254 tt = fe(V), 18255 rt = fe(U), 18256 at = fe($), 18257 nt = fe(G), 18258 ot = fe(J), 18259 st = fe(X), 18260 it = fe(Z), 18261 pt = fe(ee), 18262 lt = fe(te), 18263 dt = fe(re), 18264 ct = fe(ae), 18265 ut = fe(ne), 18266 ft = fe(oe), 18267 ht = fe(se), 18268 mt = fe(ie), 18269 yt = fe(pe), 18270 vt = fe(le), 18271 Dt = fe(de), 18272 gt = fe(ue); 18273 18274 function wt(e, t) { 18275 var r = Object.keys(e); 18276 18277 if (Object.getOwnPropertySymbols) { 18278 var a = Object.getOwnPropertySymbols(e); 18279 t && (a = a.filter(function (t) { 18280 return Object.getOwnPropertyDescriptor(e, t).enumerable; 18281 })), r.push.apply(r, a); 18282 } 18283 18284 return r; 18285 } 18286 18287 function kt(e) { 18288 for (var t = 1; t < arguments.length; t++) { 18289 var r = null != arguments[t] ? arguments[t] : {}; 18290 t % 2 ? wt(Object(r), !0).forEach(function (t) { 18291 Mt(e, t, r[t]); 18292 }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : wt(Object(r)).forEach(function (t) { 18293 Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t)); 18294 }); 18295 } 18296 18297 return e; 18298 } 18299 18300 function bt(e) { 18301 return (bt = "function" == typeof Symbol && "symbol" == _typeof(Symbol.iterator) ? function (e) { 18302 return _typeof(e); 18303 } : function (e) { 18304 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : _typeof(e); 18305 })(e); 18306 } 18307 18308 function St(e, t) { 18309 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 18310 } 18311 18312 function Ct(e, t) { 18313 for (var r = 0; r < t.length; r++) { 18314 var a = t[r]; 18315 a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, Rt(a.key), a); 18316 } 18317 } 18318 18319 function _t(e, t, r) { 18320 return t && Ct(e.prototype, t), r && Ct(e, r), Object.defineProperty(e, "prototype", { 18321 writable: !1 18322 }), e; 18323 } 18324 18325 function Mt(e, t, r) { 18326 return (t = Rt(t)) in e ? Object.defineProperty(e, t, { 18327 value: r, 18328 enumerable: !0, 18329 configurable: !0, 18330 writable: !0 18331 }) : e[t] = r, e; 18332 } 18333 18334 function Pt() { 18335 return (Pt = Object.assign ? Object.assign.bind() : function (e) { 18336 for (var t = 1; t < arguments.length; t++) { 18337 var r = arguments[t]; 18338 18339 for (var a in r) { 18340 Object.prototype.hasOwnProperty.call(r, a) && (e[a] = r[a]); 18341 } 18342 } 18343 18344 return e; 18345 }).apply(this, arguments); 18346 } 18347 18348 function Et(e, t) { 18349 if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function"); 18350 e.prototype = Object.create(t && t.prototype, { 18351 constructor: { 18352 value: e, 18353 writable: !0, 18354 configurable: !0 18355 } 18356 }), Object.defineProperty(e, "prototype", { 18357 writable: !1 18358 }), t && Ot(e, t); 18359 } 18360 18361 function Nt(e) { 18362 return (Nt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (e) { 18363 return e.__proto__ || Object.getPrototypeOf(e); 18364 })(e); 18365 } 18366 18367 function Ot(e, t) { 18368 return (Ot = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) { 18369 return e.__proto__ = t, e; 18370 })(e, t); 18371 } 18372 18373 function xt(e) { 18374 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 18375 return e; 18376 } 18377 18378 function Yt(e, t) { 18379 if (t && ("object" == _typeof(t) || "function" == typeof t)) return t; 18380 if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined"); 18381 return xt(e); 18382 } 18383 18384 function It(e) { 18385 var t = function () { 18386 if ("undefined" == typeof Reflect || !Reflect.construct) return !1; 18387 if (Reflect.construct.sham) return !1; 18388 if ("function" == typeof Proxy) return !0; 18389 18390 try { 18391 return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0; 18392 } catch (e) { 18393 return !1; 18394 } 18395 }(); 18396 18397 return function () { 18398 var r, 18399 a = Nt(e); 18400 18401 if (t) { 18402 var n = Nt(this).constructor; 18403 r = Reflect.construct(a, arguments, n); 18404 } else r = a.apply(this, arguments); 18405 18406 return Yt(this, r); 18407 }; 18408 } 18409 18410 function Tt(e) { 18411 return function (e) { 18412 if (Array.isArray(e)) return Lt(e); 18413 }(e) || function (e) { 18414 if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e); 18415 }(e) || function (e, t) { 18416 if (!e) return; 18417 if ("string" == typeof e) return Lt(e, t); 18418 var r = Object.prototype.toString.call(e).slice(8, -1); 18419 "Object" === r && e.constructor && (r = e.constructor.name); 18420 if ("Map" === r || "Set" === r) return Array.from(e); 18421 if ("Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return Lt(e, t); 18422 }(e) || function () { 18423 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); 18424 }(); 18425 } 18426 18427 function Lt(e, t) { 18428 (null == t || t > e.length) && (t = e.length); 18429 18430 for (var r = 0, a = new Array(t); r < t; r++) { 18431 a[r] = e[r]; 18432 } 18433 18434 return a; 18435 } 18436 18437 function Rt(e) { 18438 var t = function (e, t) { 18439 if ("object" != _typeof(e) || null === e) return e; 18440 var r = e[Symbol.toPrimitive]; 18441 18442 if (void 0 !== r) { 18443 var a = r.call(e, t || "default"); 18444 if ("object" != _typeof(a)) return a; 18445 throw new TypeError("@@toPrimitive must return a primitive value."); 18446 } 18447 18448 return ("string" === t ? String : Number)(e); 18449 }(e, "string"); 18450 18451 return "symbol" == _typeof(t) ? t : String(t); 18452 } 18453 18454 var Ft = 12; 18455 18456 function At(e) { 18457 var t = e ? "string" == typeof e || e instanceof String ? yt.default(e) : ht.default(e) : new Date(); 18458 return Kt(t) ? t : null; 18459 } 18460 18461 function qt(e, t, r, a, n) { 18462 var o = or(r) || or(nr()), 18463 s = Array.isArray(t) ? t : [t]; 18464 n = n || At(); 18465 18466 for (var i = 0, p = s.length; i < p; i++) { 18467 var l = s[i], 18468 d = mt.default(e, l, n, { 18469 locale: o 18470 }); 18471 if (Kt(d) && (!a || e === Wt(d, l, r))) return d; 18472 } 18473 18474 return null; 18475 } 18476 18477 function Kt(e, t) { 18478 return t = t || new Date("1/1/1000"), ve.default(e) && !ut.default(e, t); 18479 } 18480 18481 function Wt(e, t, r) { 18482 if ("en" === r) return De.default(e, t, { 18483 awareOfUnicodeTokens: !0 18484 }); 18485 var a = or(r) || or(nr()) || null; 18486 return r && !a && console.warn('A locale object was not found for the provided string ["'.concat(r, '"].')), De.default(e, t, { 18487 locale: a, 18488 awareOfUnicodeTokens: !0 18489 }); 18490 } 18491 18492 function Bt(e, t) { 18493 var r = t.dateFormat, 18494 a = t.locale; 18495 return e && Wt(e, Array.isArray(r) ? r[0] : r, a) || ""; 18496 } 18497 18498 function Qt(e, t) { 18499 var r = t.hour, 18500 a = void 0 === r ? 0 : r, 18501 n = t.minute, 18502 o = void 0 === n ? 0 : n, 18503 s = t.second, 18504 i = void 0 === s ? 0 : s; 18505 return Qe.default(Be.default(We.default(e, i), o), a); 18506 } 18507 18508 function jt(e, t) { 18509 var r = t && or(t) || nr() && or(nr()); 18510 return Re.default(e, r ? { 18511 locale: r 18512 } : null); 18513 } 18514 18515 function Ht(e, t) { 18516 return Wt(e, "ddd", t); 18517 } 18518 18519 function Vt(e) { 18520 return Xe.default(e); 18521 } 18522 18523 function Ut(e, t, r) { 18524 var a = or(t || nr()); 18525 return Ze.default(e, { 18526 locale: a, 18527 weekStartsOn: r 18528 }); 18529 } 18530 18531 function $t(e) { 18532 return et.default(e); 18533 } 18534 18535 function zt(e) { 18536 return rt.default(e); 18537 } 18538 18539 function Gt(e) { 18540 return tt.default(e); 18541 } 18542 18543 function Jt() { 18544 return Xe.default(At()); 18545 } 18546 18547 function Xt(e, t) { 18548 return e && t ? lt.default(e, t) : !e && !t; 18549 } 18550 18551 function Zt(e, t) { 18552 return e && t ? pt.default(e, t) : !e && !t; 18553 } 18554 18555 function er(e, t) { 18556 return e && t ? dt.default(e, t) : !e && !t; 18557 } 18558 18559 function tr(e, t) { 18560 return e && t ? it.default(e, t) : !e && !t; 18561 } 18562 18563 function rr(e, t) { 18564 return e && t ? st.default(e, t) : !e && !t; 18565 } 18566 18567 function ar(e, t, r) { 18568 var a, 18569 n = Xe.default(t), 18570 o = at.default(r); 18571 18572 try { 18573 a = ft.default(e, { 18574 start: n, 18575 end: o 18576 }); 18577 } catch (e) { 18578 a = !1; 18579 } 18580 18581 return a; 18582 } 18583 18584 function nr() { 18585 return ("undefined" != typeof window ? window : globalThis).__localeId__; 18586 } 18587 18588 function or(e) { 18589 if ("string" == typeof e) { 18590 var t = "undefined" != typeof window ? window : globalThis; 18591 return t.__localeData__ ? t.__localeData__[e] : null; 18592 } 18593 18594 return e; 18595 } 18596 18597 function sr(e, t) { 18598 return Wt(je.default(At(), e), "LLLL", t); 18599 } 18600 18601 function ir(e, t) { 18602 return Wt(je.default(At(), e), "LLL", t); 18603 } 18604 18605 function pr(e, t) { 18606 return Wt(He.default(At(), e), "QQQ", t); 18607 } 18608 18609 function lr(e) { 18610 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18611 r = t.minDate, 18612 a = t.maxDate, 18613 n = t.excludeDates, 18614 o = t.excludeDateIntervals, 18615 s = t.includeDates, 18616 i = t.includeDateIntervals, 18617 p = t.filterDate; 18618 return yr(e, { 18619 minDate: r, 18620 maxDate: a 18621 }) || n && n.some(function (t) { 18622 return tr(e, t); 18623 }) || o && o.some(function (t) { 18624 var r = t.start, 18625 a = t.end; 18626 return ft.default(e, { 18627 start: r, 18628 end: a 18629 }); 18630 }) || s && !s.some(function (t) { 18631 return tr(e, t); 18632 }) || i && !i.some(function (t) { 18633 var r = t.start, 18634 a = t.end; 18635 return ft.default(e, { 18636 start: r, 18637 end: a 18638 }); 18639 }) || p && !p(At(e)) || !1; 18640 } 18641 18642 function dr(e) { 18643 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18644 r = t.excludeDates, 18645 a = t.excludeDateIntervals; 18646 return a && a.length > 0 ? a.some(function (t) { 18647 var r = t.start, 18648 a = t.end; 18649 return ft.default(e, { 18650 start: r, 18651 end: a 18652 }); 18653 }) : r && r.some(function (t) { 18654 return tr(e, t); 18655 }) || !1; 18656 } 18657 18658 function cr(e) { 18659 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18660 r = t.minDate, 18661 a = t.maxDate, 18662 n = t.excludeDates, 18663 o = t.includeDates, 18664 s = t.filterDate; 18665 return yr(e, { 18666 minDate: et.default(r), 18667 maxDate: nt.default(a) 18668 }) || n && n.some(function (t) { 18669 return Zt(e, t); 18670 }) || o && !o.some(function (t) { 18671 return Zt(e, t); 18672 }) || s && !s(At(e)) || !1; 18673 } 18674 18675 function ur(e, t, r, a) { 18676 var n = qe.default(e), 18677 o = Fe.default(e), 18678 s = qe.default(t), 18679 i = Fe.default(t), 18680 p = qe.default(a); 18681 return n === s && n === p ? o <= r && r <= i : n < s ? p === n && o <= r || p === s && i >= r || p < s && p > n : void 0; 18682 } 18683 18684 function fr(e) { 18685 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18686 r = t.minDate, 18687 a = t.maxDate, 18688 n = t.excludeDates, 18689 o = t.includeDates, 18690 s = t.filterDate; 18691 return yr(e, { 18692 minDate: r, 18693 maxDate: a 18694 }) || n && n.some(function (t) { 18695 return er(e, t); 18696 }) || o && !o.some(function (t) { 18697 return er(e, t); 18698 }) || s && !s(At(e)) || !1; 18699 } 18700 18701 function hr(e) { 18702 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18703 r = t.minDate, 18704 a = t.maxDate, 18705 n = t.excludeDates, 18706 o = t.includeDates, 18707 s = t.filterDate, 18708 i = new Date(e, 0, 1); 18709 return yr(i, { 18710 minDate: rt.default(r), 18711 maxDate: ot.default(a) 18712 }) || n && n.some(function (e) { 18713 return Xt(i, e); 18714 }) || o && !o.some(function (e) { 18715 return Xt(i, e); 18716 }) || s && !s(At(i)) || !1; 18717 } 18718 18719 function mr(e, t, r, a) { 18720 var n = qe.default(e), 18721 o = Ae.default(e), 18722 s = qe.default(t), 18723 i = Ae.default(t), 18724 p = qe.default(a); 18725 return n === s && n === p ? o <= r && r <= i : n < s ? p === n && o <= r || p === s && i >= r || p < s && p > n : void 0; 18726 } 18727 18728 function yr(e) { 18729 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18730 r = t.minDate, 18731 a = t.maxDate; 18732 return r && ze.default(e, r) < 0 || a && ze.default(e, a) > 0; 18733 } 18734 18735 function vr(e, t) { 18736 return t.some(function (t) { 18737 return Ie.default(t) === Ie.default(e) && Ye.default(t) === Ye.default(e); 18738 }); 18739 } 18740 18741 function Dr(e) { 18742 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18743 r = t.excludeTimes, 18744 a = t.includeTimes, 18745 n = t.filterTime; 18746 return r && vr(e, r) || a && !vr(e, a) || n && !n(e) || !1; 18747 } 18748 18749 function gr(e, t) { 18750 var r = t.minTime, 18751 a = t.maxTime; 18752 if (!r || !a) throw new Error("Both minTime and maxTime props required"); 18753 var n, 18754 o = At(), 18755 s = Qe.default(Be.default(o, Ye.default(e)), Ie.default(e)), 18756 i = Qe.default(Be.default(o, Ye.default(r)), Ie.default(r)), 18757 p = Qe.default(Be.default(o, Ye.default(a)), Ie.default(a)); 18758 18759 try { 18760 n = !ft.default(s, { 18761 start: i, 18762 end: p 18763 }); 18764 } catch (e) { 18765 n = !1; 18766 } 18767 18768 return n; 18769 } 18770 18771 function wr(e) { 18772 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18773 r = t.minDate, 18774 a = t.includeDates, 18775 n = Ee.default(e, 1); 18776 return r && Ge.default(r, n) > 0 || a && a.every(function (e) { 18777 return Ge.default(e, n) > 0; 18778 }) || !1; 18779 } 18780 18781 function kr(e) { 18782 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18783 r = t.maxDate, 18784 a = t.includeDates, 18785 n = Se.default(e, 1); 18786 return r && Ge.default(n, r) > 0 || a && a.every(function (e) { 18787 return Ge.default(n, e) > 0; 18788 }) || !1; 18789 } 18790 18791 function br(e) { 18792 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18793 r = t.minDate, 18794 a = t.includeDates, 18795 n = Oe.default(e, 1); 18796 return r && Je.default(r, n) > 0 || a && a.every(function (e) { 18797 return Je.default(e, n) > 0; 18798 }) || !1; 18799 } 18800 18801 function Sr(e) { 18802 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 18803 r = t.maxDate, 18804 a = t.includeDates, 18805 n = _e.default(e, 1); 18806 18807 return r && Je.default(n, r) > 0 || a && a.every(function (e) { 18808 return Je.default(n, e) > 0; 18809 }) || !1; 18810 } 18811 18812 function Cr(e) { 18813 var t = e.minDate, 18814 r = e.includeDates; 18815 18816 if (r && t) { 18817 var a = r.filter(function (e) { 18818 return ze.default(e, t) >= 0; 18819 }); 18820 return Ue.default(a); 18821 } 18822 18823 return r ? Ue.default(r) : t; 18824 } 18825 18826 function _r(e) { 18827 var t = e.maxDate, 18828 r = e.includeDates; 18829 18830 if (r && t) { 18831 var a = r.filter(function (e) { 18832 return ze.default(e, t) <= 0; 18833 }); 18834 return $e.default(a); 18835 } 18836 18837 return r ? $e.default(r) : t; 18838 } 18839 18840 function Mr() { 18841 for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "react-datepicker__day--highlighted", r = new Map(), a = 0, n = e.length; a < n; a++) { 18842 var o = e[a]; 18843 18844 if (ye.default(o)) { 18845 var s = Wt(o, "MM.dd.yyyy"), 18846 i = r.get(s) || []; 18847 i.includes(t) || (i.push(t), r.set(s, i)); 18848 } else if ("object" === bt(o)) { 18849 var p = Object.keys(o), 18850 l = p[0], 18851 d = o[p[0]]; 18852 if ("string" == typeof l && d.constructor === Array) for (var c = 0, u = d.length; c < u; c++) { 18853 var f = Wt(d[c], "MM.dd.yyyy"), 18854 h = r.get(f) || []; 18855 h.includes(l) || (h.push(l), r.set(f, h)); 18856 } 18857 } 18858 } 18859 18860 return r; 18861 } 18862 18863 function Pr(e, t, r, a, n) { 18864 for (var o = n.length, s = [], i = 0; i < o; i++) { 18865 var p = ge.default(we.default(e, Ie.default(n[i])), Ye.default(n[i])), 18866 l = ge.default(e, (r + 1) * a); 18867 ct.default(p, t) && ut.default(p, l) && s.push(n[i]); 18868 } 18869 18870 return s; 18871 } 18872 18873 function Er(e) { 18874 return e < 10 ? "0".concat(e) : "".concat(e); 18875 } 18876 18877 function Nr(e) { 18878 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Ft, 18879 r = Math.ceil(qe.default(e) / t) * t, 18880 a = r - (t - 1); 18881 return { 18882 startPeriod: a, 18883 endPeriod: r 18884 }; 18885 } 18886 18887 function Or(e, t, r, a) { 18888 for (var n = [], o = 0; o < 2 * t + 1; o++) { 18889 var s = e + t - o, 18890 i = !0; 18891 r && (i = qe.default(r) <= s), a && i && (i = qe.default(a) >= s), i && n.push(s); 18892 } 18893 18894 return n; 18895 } 18896 18897 var xr = function (e) { 18898 Et(a, e); 18899 var r = It(a); 18900 18901 function a(e) { 18902 var n; 18903 St(this, a), Mt(xt(n = r.call(this, e)), "renderOptions", function () { 18904 var e = n.props.year, 18905 t = n.state.yearsList.map(function (t) { 18906 return he.default.createElement("div", { 18907 className: e === t ? "react-datepicker__year-option react-datepicker__year-option--selected_year" : "react-datepicker__year-option", 18908 key: t, 18909 onClick: n.onChange.bind(xt(n), t), 18910 "aria-selected": e === t ? "true" : void 0 18911 }, e === t ? he.default.createElement("span", { 18912 className: "react-datepicker__year-option--selected" 18913 }, "â") : "", t); 18914 }), 18915 r = n.props.minDate ? qe.default(n.props.minDate) : null, 18916 a = n.props.maxDate ? qe.default(n.props.maxDate) : null; 18917 return a && n.state.yearsList.find(function (e) { 18918 return e === a; 18919 }) || t.unshift(he.default.createElement("div", { 18920 className: "react-datepicker__year-option", 18921 key: "upcoming", 18922 onClick: n.incrementYears 18923 }, he.default.createElement("a", { 18924 className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming" 18925 }))), r && n.state.yearsList.find(function (e) { 18926 return e === r; 18927 }) || t.push(he.default.createElement("div", { 18928 className: "react-datepicker__year-option", 18929 key: "previous", 18930 onClick: n.decrementYears 18931 }, he.default.createElement("a", { 18932 className: "react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous" 18933 }))), t; 18934 }), Mt(xt(n), "onChange", function (e) { 18935 n.props.onChange(e); 18936 }), Mt(xt(n), "handleClickOutside", function () { 18937 n.props.onCancel(); 18938 }), Mt(xt(n), "shiftYears", function (e) { 18939 var t = n.state.yearsList.map(function (t) { 18940 return t + e; 18941 }); 18942 n.setState({ 18943 yearsList: t 18944 }); 18945 }), Mt(xt(n), "incrementYears", function () { 18946 return n.shiftYears(1); 18947 }), Mt(xt(n), "decrementYears", function () { 18948 return n.shiftYears(-1); 18949 }); 18950 var o = e.yearDropdownItemNumber, 18951 s = e.scrollableYearDropdown, 18952 i = o || (s ? 10 : 5); 18953 return n.state = { 18954 yearsList: Or(n.props.year, i, n.props.minDate, n.props.maxDate) 18955 }, n.dropdownRef = t.createRef(), n; 18956 } 18957 18958 return _t(a, [{ 18959 key: "componentDidMount", 18960 value: function value() { 18961 var e = this.dropdownRef.current; 18962 18963 if (e) { 18964 var t = e.children ? Array.from(e.children) : null, 18965 r = t ? t.find(function (e) { 18966 return e.ariaSelected; 18967 }) : null; 18968 e.scrollTop = r ? r.offsetTop + (r.clientHeight - e.clientHeight) / 2 : (e.scrollHeight - e.clientHeight) / 2; 18969 } 18970 } 18971 }, { 18972 key: "render", 18973 value: function value() { 18974 var e = me.default({ 18975 "react-datepicker__year-dropdown": !0, 18976 "react-datepicker__year-dropdown--scrollable": this.props.scrollableYearDropdown 18977 }); 18978 return he.default.createElement("div", { 18979 className: e, 18980 ref: this.dropdownRef 18981 }, this.renderOptions()); 18982 } 18983 }]), a; 18984 }(he.default.Component), 18985 Yr = vt.default(xr), 18986 Ir = function (e) { 18987 Et(r, e); 18988 var t = It(r); 18989 18990 function r() { 18991 var e; 18992 St(this, r); 18993 18994 for (var a = arguments.length, n = new Array(a), o = 0; o < a; o++) { 18995 n[o] = arguments[o]; 18996 } 18997 18998 return Mt(xt(e = t.call.apply(t, [this].concat(n))), "state", { 18999 dropdownVisible: !1 19000 }), Mt(xt(e), "renderSelectOptions", function () { 19001 for (var t = e.props.minDate ? qe.default(e.props.minDate) : 1900, r = e.props.maxDate ? qe.default(e.props.maxDate) : 2100, a = [], n = t; n <= r; n++) { 19002 a.push(he.default.createElement("option", { 19003 key: n, 19004 value: n 19005 }, n)); 19006 } 19007 19008 return a; 19009 }), Mt(xt(e), "onSelectChange", function (t) { 19010 e.onChange(t.target.value); 19011 }), Mt(xt(e), "renderSelectMode", function () { 19012 return he.default.createElement("select", { 19013 value: e.props.year, 19014 className: "react-datepicker__year-select", 19015 onChange: e.onSelectChange 19016 }, e.renderSelectOptions()); 19017 }), Mt(xt(e), "renderReadView", function (t) { 19018 return he.default.createElement("div", { 19019 key: "read", 19020 style: { 19021 visibility: t ? "visible" : "hidden" 19022 }, 19023 className: "react-datepicker__year-read-view", 19024 onClick: function onClick(t) { 19025 return e.toggleDropdown(t); 19026 } 19027 }, he.default.createElement("span", { 19028 className: "react-datepicker__year-read-view--down-arrow" 19029 }), he.default.createElement("span", { 19030 className: "react-datepicker__year-read-view--selected-year" 19031 }, e.props.year)); 19032 }), Mt(xt(e), "renderDropdown", function () { 19033 return he.default.createElement(Yr, { 19034 key: "dropdown", 19035 year: e.props.year, 19036 onChange: e.onChange, 19037 onCancel: e.toggleDropdown, 19038 minDate: e.props.minDate, 19039 maxDate: e.props.maxDate, 19040 scrollableYearDropdown: e.props.scrollableYearDropdown, 19041 yearDropdownItemNumber: e.props.yearDropdownItemNumber 19042 }); 19043 }), Mt(xt(e), "renderScrollMode", function () { 19044 var t = e.state.dropdownVisible, 19045 r = [e.renderReadView(!t)]; 19046 return t && r.unshift(e.renderDropdown()), r; 19047 }), Mt(xt(e), "onChange", function (t) { 19048 e.toggleDropdown(), t !== e.props.year && e.props.onChange(t); 19049 }), Mt(xt(e), "toggleDropdown", function (t) { 19050 e.setState({ 19051 dropdownVisible: !e.state.dropdownVisible 19052 }, function () { 19053 e.props.adjustDateOnChange && e.handleYearChange(e.props.date, t); 19054 }); 19055 }), Mt(xt(e), "handleYearChange", function (t, r) { 19056 e.onSelect(t, r), e.setOpen(); 19057 }), Mt(xt(e), "onSelect", function (t, r) { 19058 e.props.onSelect && e.props.onSelect(t, r); 19059 }), Mt(xt(e), "setOpen", function () { 19060 e.props.setOpen && e.props.setOpen(!0); 19061 }), e; 19062 } 19063 19064 return _t(r, [{ 19065 key: "render", 19066 value: function value() { 19067 var e; 19068 19069 switch (this.props.dropdownMode) { 19070 case "scroll": 19071 e = this.renderScrollMode(); 19072 break; 19073 19074 case "select": 19075 e = this.renderSelectMode(); 19076 } 19077 19078 return he.default.createElement("div", { 19079 className: "react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode) 19080 }, e); 19081 } 19082 }]), r; 19083 }(he.default.Component), 19084 Tr = function (e) { 19085 Et(r, e); 19086 var t = It(r); 19087 19088 function r() { 19089 var e; 19090 St(this, r); 19091 19092 for (var a = arguments.length, n = new Array(a), o = 0; o < a; o++) { 19093 n[o] = arguments[o]; 19094 } 19095 19096 return Mt(xt(e = t.call.apply(t, [this].concat(n))), "isSelectedMonth", function (t) { 19097 return e.props.month === t; 19098 }), Mt(xt(e), "renderOptions", function () { 19099 return e.props.monthNames.map(function (t, r) { 19100 return he.default.createElement("div", { 19101 className: e.isSelectedMonth(r) ? "react-datepicker__month-option react-datepicker__month-option--selected_month" : "react-datepicker__month-option", 19102 key: t, 19103 onClick: e.onChange.bind(xt(e), r), 19104 "aria-selected": e.isSelectedMonth(r) ? "true" : void 0 19105 }, e.isSelectedMonth(r) ? he.default.createElement("span", { 19106 className: "react-datepicker__month-option--selected" 19107 }, "â") : "", t); 19108 }); 19109 }), Mt(xt(e), "onChange", function (t) { 19110 return e.props.onChange(t); 19111 }), Mt(xt(e), "handleClickOutside", function () { 19112 return e.props.onCancel(); 19113 }), e; 19114 } 19115 19116 return _t(r, [{ 19117 key: "render", 19118 value: function value() { 19119 return he.default.createElement("div", { 19120 className: "react-datepicker__month-dropdown" 19121 }, this.renderOptions()); 19122 } 19123 }]), r; 19124 }(he.default.Component), 19125 Lr = vt.default(Tr), 19126 Rr = function (e) { 19127 Et(r, e); 19128 var t = It(r); 19129 19130 function r() { 19131 var e; 19132 St(this, r); 19133 19134 for (var a = arguments.length, n = new Array(a), o = 0; o < a; o++) { 19135 n[o] = arguments[o]; 19136 } 19137 19138 return Mt(xt(e = t.call.apply(t, [this].concat(n))), "state", { 19139 dropdownVisible: !1 19140 }), Mt(xt(e), "renderSelectOptions", function (e) { 19141 return e.map(function (e, t) { 19142 return he.default.createElement("option", { 19143 key: t, 19144 value: t 19145 }, e); 19146 }); 19147 }), Mt(xt(e), "renderSelectMode", function (t) { 19148 return he.default.createElement("select", { 19149 value: e.props.month, 19150 className: "react-datepicker__month-select", 19151 onChange: function onChange(t) { 19152 return e.onChange(t.target.value); 19153 } 19154 }, e.renderSelectOptions(t)); 19155 }), Mt(xt(e), "renderReadView", function (t, r) { 19156 return he.default.createElement("div", { 19157 key: "read", 19158 style: { 19159 visibility: t ? "visible" : "hidden" 19160 }, 19161 className: "react-datepicker__month-read-view", 19162 onClick: e.toggleDropdown 19163 }, he.default.createElement("span", { 19164 className: "react-datepicker__month-read-view--down-arrow" 19165 }), he.default.createElement("span", { 19166 className: "react-datepicker__month-read-view--selected-month" 19167 }, r[e.props.month])); 19168 }), Mt(xt(e), "renderDropdown", function (t) { 19169 return he.default.createElement(Lr, { 19170 key: "dropdown", 19171 month: e.props.month, 19172 monthNames: t, 19173 onChange: e.onChange, 19174 onCancel: e.toggleDropdown 19175 }); 19176 }), Mt(xt(e), "renderScrollMode", function (t) { 19177 var r = e.state.dropdownVisible, 19178 a = [e.renderReadView(!r, t)]; 19179 return r && a.unshift(e.renderDropdown(t)), a; 19180 }), Mt(xt(e), "onChange", function (t) { 19181 e.toggleDropdown(), t !== e.props.month && e.props.onChange(t); 19182 }), Mt(xt(e), "toggleDropdown", function () { 19183 return e.setState({ 19184 dropdownVisible: !e.state.dropdownVisible 19185 }); 19186 }), e; 19187 } 19188 19189 return _t(r, [{ 19190 key: "render", 19191 value: function value() { 19192 var e, 19193 t = this, 19194 r = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map(this.props.useShortMonthInDropdown ? function (e) { 19195 return ir(e, t.props.locale); 19196 } : function (e) { 19197 return sr(e, t.props.locale); 19198 }); 19199 19200 switch (this.props.dropdownMode) { 19201 case "scroll": 19202 e = this.renderScrollMode(r); 19203 break; 19204 19205 case "select": 19206 e = this.renderSelectMode(r); 19207 } 19208 19209 return he.default.createElement("div", { 19210 className: "react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode) 19211 }, e); 19212 } 19213 }]), r; 19214 }(he.default.Component); 19215 19216 function Fr(e, t) { 19217 for (var r = [], a = $t(e), n = $t(t); !ct.default(a, n);) { 19218 r.push(At(a)), a = Se.default(a, 1); 19219 } 19220 19221 return r; 19222 } 19223 19224 var Ar = function (e) { 19225 Et(r, e); 19226 var t = It(r); 19227 19228 function r(e) { 19229 var a; 19230 return St(this, r), Mt(xt(a = t.call(this, e)), "renderOptions", function () { 19231 return a.state.monthYearsList.map(function (e) { 19232 var t = Ke.default(e), 19233 r = Xt(a.props.date, e) && Zt(a.props.date, e); 19234 return he.default.createElement("div", { 19235 className: r ? "react-datepicker__month-year-option--selected_month-year" : "react-datepicker__month-year-option", 19236 key: t, 19237 onClick: a.onChange.bind(xt(a), t), 19238 "aria-selected": r ? "true" : void 0 19239 }, r ? he.default.createElement("span", { 19240 className: "react-datepicker__month-year-option--selected" 19241 }, "â") : "", Wt(e, a.props.dateFormat, a.props.locale)); 19242 }); 19243 }), Mt(xt(a), "onChange", function (e) { 19244 return a.props.onChange(e); 19245 }), Mt(xt(a), "handleClickOutside", function () { 19246 a.props.onCancel(); 19247 }), a.state = { 19248 monthYearsList: Fr(a.props.minDate, a.props.maxDate) 19249 }, a; 19250 } 19251 19252 return _t(r, [{ 19253 key: "render", 19254 value: function value() { 19255 var e = me.default({ 19256 "react-datepicker__month-year-dropdown": !0, 19257 "react-datepicker__month-year-dropdown--scrollable": this.props.scrollableMonthYearDropdown 19258 }); 19259 return he.default.createElement("div", { 19260 className: e 19261 }, this.renderOptions()); 19262 } 19263 }]), r; 19264 }(he.default.Component), 19265 qr = vt.default(Ar), 19266 Kr = function (e) { 19267 Et(r, e); 19268 var t = It(r); 19269 19270 function r() { 19271 var e; 19272 St(this, r); 19273 19274 for (var a = arguments.length, n = new Array(a), o = 0; o < a; o++) { 19275 n[o] = arguments[o]; 19276 } 19277 19278 return Mt(xt(e = t.call.apply(t, [this].concat(n))), "state", { 19279 dropdownVisible: !1 19280 }), Mt(xt(e), "renderSelectOptions", function () { 19281 for (var t = $t(e.props.minDate), r = $t(e.props.maxDate), a = []; !ct.default(t, r);) { 19282 var n = Ke.default(t); 19283 a.push(he.default.createElement("option", { 19284 key: n, 19285 value: n 19286 }, Wt(t, e.props.dateFormat, e.props.locale))), t = Se.default(t, 1); 19287 } 19288 19289 return a; 19290 }), Mt(xt(e), "onSelectChange", function (t) { 19291 e.onChange(t.target.value); 19292 }), Mt(xt(e), "renderSelectMode", function () { 19293 return he.default.createElement("select", { 19294 value: Ke.default($t(e.props.date)), 19295 className: "react-datepicker__month-year-select", 19296 onChange: e.onSelectChange 19297 }, e.renderSelectOptions()); 19298 }), Mt(xt(e), "renderReadView", function (t) { 19299 var r = Wt(e.props.date, e.props.dateFormat, e.props.locale); 19300 return he.default.createElement("div", { 19301 key: "read", 19302 style: { 19303 visibility: t ? "visible" : "hidden" 19304 }, 19305 className: "react-datepicker__month-year-read-view", 19306 onClick: function onClick(t) { 19307 return e.toggleDropdown(t); 19308 } 19309 }, he.default.createElement("span", { 19310 className: "react-datepicker__month-year-read-view--down-arrow" 19311 }), he.default.createElement("span", { 19312 className: "react-datepicker__month-year-read-view--selected-month-year" 19313 }, r)); 19314 }), Mt(xt(e), "renderDropdown", function () { 19315 return he.default.createElement(qr, { 19316 key: "dropdown", 19317 date: e.props.date, 19318 dateFormat: e.props.dateFormat, 19319 onChange: e.onChange, 19320 onCancel: e.toggleDropdown, 19321 minDate: e.props.minDate, 19322 maxDate: e.props.maxDate, 19323 scrollableMonthYearDropdown: e.props.scrollableMonthYearDropdown, 19324 locale: e.props.locale 19325 }); 19326 }), Mt(xt(e), "renderScrollMode", function () { 19327 var t = e.state.dropdownVisible, 19328 r = [e.renderReadView(!t)]; 19329 return t && r.unshift(e.renderDropdown()), r; 19330 }), Mt(xt(e), "onChange", function (t) { 19331 e.toggleDropdown(); 19332 var r = At(parseInt(t)); 19333 Xt(e.props.date, r) && Zt(e.props.date, r) || e.props.onChange(r); 19334 }), Mt(xt(e), "toggleDropdown", function () { 19335 return e.setState({ 19336 dropdownVisible: !e.state.dropdownVisible 19337 }); 19338 }), e; 19339 } 19340 19341 return _t(r, [{ 19342 key: "render", 19343 value: function value() { 19344 var e; 19345 19346 switch (this.props.dropdownMode) { 19347 case "scroll": 19348 e = this.renderScrollMode(); 19349 break; 19350 19351 case "select": 19352 e = this.renderSelectMode(); 19353 } 19354 19355 return he.default.createElement("div", { 19356 className: "react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode) 19357 }, e); 19358 } 19359 }]), r; 19360 }(he.default.Component), 19361 Wr = function (e) { 19362 Et(r, e); 19363 var t = It(r); 19364 19365 function r() { 19366 var e; 19367 St(this, r); 19368 19369 for (var a = arguments.length, n = new Array(a), o = 0; o < a; o++) { 19370 n[o] = arguments[o]; 19371 } 19372 19373 return Mt(xt(e = t.call.apply(t, [this].concat(n))), "dayEl", he.default.createRef()), Mt(xt(e), "handleClick", function (t) { 19374 !e.isDisabled() && e.props.onClick && e.props.onClick(t); 19375 }), Mt(xt(e), "handleMouseEnter", function (t) { 19376 !e.isDisabled() && e.props.onMouseEnter && e.props.onMouseEnter(t); 19377 }), Mt(xt(e), "handleOnKeyDown", function (t) { 19378 " " === t.key && (t.preventDefault(), t.key = "Enter"), e.props.handleOnKeyDown(t); 19379 }), Mt(xt(e), "isSameDay", function (t) { 19380 return tr(e.props.day, t); 19381 }), Mt(xt(e), "isKeyboardSelected", function () { 19382 return !e.props.disabledKeyboardNavigation && !e.isSameDay(e.props.selected) && e.isSameDay(e.props.preSelection); 19383 }), Mt(xt(e), "isDisabled", function () { 19384 return lr(e.props.day, e.props); 19385 }), Mt(xt(e), "isExcluded", function () { 19386 return dr(e.props.day, e.props); 19387 }), Mt(xt(e), "getHighLightedClass", function (t) { 19388 var r = e.props, 19389 a = r.day, 19390 n = r.highlightDates; 19391 if (!n) return !1; 19392 var o = Wt(a, "MM.dd.yyyy"); 19393 return n.get(o); 19394 }), Mt(xt(e), "isInRange", function () { 19395 var t = e.props, 19396 r = t.day, 19397 a = t.startDate, 19398 n = t.endDate; 19399 return !(!a || !n) && ar(r, a, n); 19400 }), Mt(xt(e), "isInSelectingRange", function () { 19401 var t, 19402 r = e.props, 19403 a = r.day, 19404 n = r.selectsStart, 19405 o = r.selectsEnd, 19406 s = r.selectsRange, 19407 i = r.selectsDisabledDaysInRange, 19408 p = r.startDate, 19409 l = r.endDate, 19410 d = null !== (t = e.props.selectingDate) && void 0 !== t ? t : e.props.preSelection; 19411 return !(!(n || o || s) || !d || !i && e.isDisabled()) && (n && l && (ut.default(d, l) || rr(d, l)) ? ar(a, d, l) : (o && p && (ct.default(d, p) || rr(d, p)) || !(!s || !p || l || !ct.default(d, p) && !rr(d, p))) && ar(a, p, d)); 19412 }), Mt(xt(e), "isSelectingRangeStart", function () { 19413 var t; 19414 if (!e.isInSelectingRange()) return !1; 19415 var r = e.props, 19416 a = r.day, 19417 n = r.startDate, 19418 o = r.selectsStart, 19419 s = null !== (t = e.props.selectingDate) && void 0 !== t ? t : e.props.preSelection; 19420 return tr(a, o ? s : n); 19421 }), Mt(xt(e), "isSelectingRangeEnd", function () { 19422 var t; 19423 if (!e.isInSelectingRange()) return !1; 19424 var r = e.props, 19425 a = r.day, 19426 n = r.endDate, 19427 o = r.selectsEnd, 19428 s = r.selectsRange, 19429 i = null !== (t = e.props.selectingDate) && void 0 !== t ? t : e.props.preSelection; 19430 return tr(a, o || s ? i : n); 19431 }), Mt(xt(e), "isRangeStart", function () { 19432 var t = e.props, 19433 r = t.day, 19434 a = t.startDate, 19435 n = t.endDate; 19436 return !(!a || !n) && tr(a, r); 19437 }), Mt(xt(e), "isRangeEnd", function () { 19438 var t = e.props, 19439 r = t.day, 19440 a = t.startDate, 19441 n = t.endDate; 19442 return !(!a || !n) && tr(n, r); 19443 }), Mt(xt(e), "isWeekend", function () { 19444 var t = Te.default(e.props.day); 19445 return 0 === t || 6 === t; 19446 }), Mt(xt(e), "isAfterMonth", function () { 19447 return void 0 !== e.props.month && (e.props.month + 1) % 12 === Fe.default(e.props.day); 19448 }), Mt(xt(e), "isBeforeMonth", function () { 19449 return void 0 !== e.props.month && (Fe.default(e.props.day) + 1) % 12 === e.props.month; 19450 }), Mt(xt(e), "isCurrentDay", function () { 19451 return e.isSameDay(At()); 19452 }), Mt(xt(e), "isSelected", function () { 19453 return e.isSameDay(e.props.selected); 19454 }), Mt(xt(e), "getClassNames", function (t) { 19455 var r = e.props.dayClassName ? e.props.dayClassName(t) : void 0; 19456 return me.default("react-datepicker__day", r, "react-datepicker__day--" + Ht(e.props.day), { 19457 "react-datepicker__day--disabled": e.isDisabled(), 19458 "react-datepicker__day--excluded": e.isExcluded(), 19459 "react-datepicker__day--selected": e.isSelected(), 19460 "react-datepicker__day--keyboard-selected": e.isKeyboardSelected(), 19461 "react-datepicker__day--range-start": e.isRangeStart(), 19462 "react-datepicker__day--range-end": e.isRangeEnd(), 19463 "react-datepicker__day--in-range": e.isInRange(), 19464 "react-datepicker__day--in-selecting-range": e.isInSelectingRange(), 19465 "react-datepicker__day--selecting-range-start": e.isSelectingRangeStart(), 19466 "react-datepicker__day--selecting-range-end": e.isSelectingRangeEnd(), 19467 "react-datepicker__day--today": e.isCurrentDay(), 19468 "react-datepicker__day--weekend": e.isWeekend(), 19469 "react-datepicker__day--outside-month": e.isAfterMonth() || e.isBeforeMonth() 19470 }, e.getHighLightedClass("react-datepicker__day--highlighted")); 19471 }), Mt(xt(e), "getAriaLabel", function () { 19472 var t = e.props, 19473 r = t.day, 19474 a = t.ariaLabelPrefixWhenEnabled, 19475 n = void 0 === a ? "Choose" : a, 19476 o = t.ariaLabelPrefixWhenDisabled, 19477 s = void 0 === o ? "Not available" : o, 19478 i = e.isDisabled() || e.isExcluded() ? s : n; 19479 return "".concat(i, " ").concat(Wt(r, "PPPP", e.props.locale)); 19480 }), Mt(xt(e), "getTabIndex", function (t, r) { 19481 var a = t || e.props.selected, 19482 n = r || e.props.preSelection; 19483 return e.isKeyboardSelected() || e.isSameDay(a) && tr(n, a) ? 0 : -1; 19484 }), Mt(xt(e), "handleFocusDay", function () { 19485 var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, 19486 r = !1; 19487 0 === e.getTabIndex() && !t.isInputFocused && e.isSameDay(e.props.preSelection) && (document.activeElement && document.activeElement !== document.body || (r = !0), e.props.inline && !e.props.shouldFocusDayInline && (r = !1), e.props.containerRef && e.props.containerRef.current && e.props.containerRef.current.contains(document.activeElement) && document.activeElement.classList.contains("react-datepicker__day") && (r = !0)), r && e.dayEl.current.focus({ 19488 preventScroll: !0 19489 }); 19490 }), Mt(xt(e), "renderDayContents", function () { 19491 return e.props.monthShowsDuplicateDaysEnd && e.isAfterMonth() || e.props.monthShowsDuplicateDaysStart && e.isBeforeMonth() ? null : e.props.renderDayContents ? e.props.renderDayContents(Le.default(e.props.day), e.props.day) : Le.default(e.props.day); 19492 }), Mt(xt(e), "render", function () { 19493 return he.default.createElement("div", { 19494 ref: e.dayEl, 19495 className: e.getClassNames(e.props.day), 19496 onKeyDown: e.handleOnKeyDown, 19497 onClick: e.handleClick, 19498 onMouseEnter: e.handleMouseEnter, 19499 tabIndex: e.getTabIndex(), 19500 "aria-label": e.getAriaLabel(), 19501 role: "option", 19502 "aria-disabled": e.isDisabled(), 19503 "aria-current": e.isCurrentDay() ? "date" : void 0, 19504 "aria-selected": e.isSelected() 19505 }, e.renderDayContents()); 19506 }), e; 19507 } 19508 19509 return _t(r, [{ 19510 key: "componentDidMount", 19511 value: function value() { 19512 this.handleFocusDay(); 19513 } 19514 }, { 19515 key: "componentDidUpdate", 19516 value: function value(e) { 19517 this.handleFocusDay(e); 19518 } 19519 }]), r; 19520 }(he.default.Component), 19521 Br = function (e) { 19522 Et(r, e); 19523 var t = It(r); 19524 19525 function r() { 19526 var e; 19527 St(this, r); 19528 19529 for (var a = arguments.length, n = new Array(a), o = 0; o < a; o++) { 19530 n[o] = arguments[o]; 19531 } 19532 19533 return Mt(xt(e = t.call.apply(t, [this].concat(n))), "handleClick", function (t) { 19534 e.props.onClick && e.props.onClick(t); 19535 }), e; 19536 } 19537 19538 return _t(r, [{ 19539 key: "render", 19540 value: function value() { 19541 var e = this.props, 19542 t = e.weekNumber, 19543 r = e.ariaLabelPrefix, 19544 a = void 0 === r ? "week " : r, 19545 n = { 19546 "react-datepicker__week-number": !0, 19547 "react-datepicker__week-number--clickable": !!e.onClick 19548 }; 19549 return he.default.createElement("div", { 19550 className: me.default(n), 19551 "aria-label": "".concat(a, " ").concat(this.props.weekNumber), 19552 onClick: this.handleClick 19553 }, t); 19554 } 19555 }]), r; 19556 }(he.default.Component), 19557 Qr = function (e) { 19558 Et(r, e); 19559 var t = It(r); 19560 19561 function r() { 19562 var e; 19563 St(this, r); 19564 19565 for (var a = arguments.length, n = new Array(a), o = 0; o < a; o++) { 19566 n[o] = arguments[o]; 19567 } 19568 19569 return Mt(xt(e = t.call.apply(t, [this].concat(n))), "handleDayClick", function (t, r) { 19570 e.props.onDayClick && e.props.onDayClick(t, r); 19571 }), Mt(xt(e), "handleDayMouseEnter", function (t) { 19572 e.props.onDayMouseEnter && e.props.onDayMouseEnter(t); 19573 }), Mt(xt(e), "handleWeekClick", function (t, r, a) { 19574 "function" == typeof e.props.onWeekSelect && e.props.onWeekSelect(t, r, a), e.props.shouldCloseOnSelect && e.props.setOpen(!1); 19575 }), Mt(xt(e), "formatWeekNumber", function (t) { 19576 return e.props.formatWeekNumber ? e.props.formatWeekNumber(t) : jt(t); 19577 }), Mt(xt(e), "renderDays", function () { 19578 var t = Ut(e.props.day, e.props.locale, e.props.calendarStartDay), 19579 r = [], 19580 a = e.formatWeekNumber(t); 19581 19582 if (e.props.showWeekNumber) { 19583 var n = e.props.onWeekSelect ? e.handleWeekClick.bind(xt(e), t, a) : void 0; 19584 r.push(he.default.createElement(Br, { 19585 key: "W", 19586 weekNumber: a, 19587 onClick: n, 19588 ariaLabelPrefix: e.props.ariaLabelPrefix 19589 })); 19590 } 19591 19592 return r.concat([0, 1, 2, 3, 4, 5, 6].map(function (r) { 19593 var a = ke.default(t, r); 19594 return he.default.createElement(Wr, { 19595 ariaLabelPrefixWhenEnabled: e.props.chooseDayAriaLabelPrefix, 19596 ariaLabelPrefixWhenDisabled: e.props.disabledDayAriaLabelPrefix, 19597 key: a.valueOf(), 19598 day: a, 19599 month: e.props.month, 19600 onClick: e.handleDayClick.bind(xt(e), a), 19601 onMouseEnter: e.handleDayMouseEnter.bind(xt(e), a), 19602 minDate: e.props.minDate, 19603 maxDate: e.props.maxDate, 19604 excludeDates: e.props.excludeDates, 19605 excludeDateIntervals: e.props.excludeDateIntervals, 19606 includeDates: e.props.includeDates, 19607 includeDateIntervals: e.props.includeDateIntervals, 19608 highlightDates: e.props.highlightDates, 19609 selectingDate: e.props.selectingDate, 19610 filterDate: e.props.filterDate, 19611 preSelection: e.props.preSelection, 19612 selected: e.props.selected, 19613 selectsStart: e.props.selectsStart, 19614 selectsEnd: e.props.selectsEnd, 19615 selectsRange: e.props.selectsRange, 19616 selectsDisabledDaysInRange: e.props.selectsDisabledDaysInRange, 19617 startDate: e.props.startDate, 19618 endDate: e.props.endDate, 19619 dayClassName: e.props.dayClassName, 19620 renderDayContents: e.props.renderDayContents, 19621 disabledKeyboardNavigation: e.props.disabledKeyboardNavigation, 19622 handleOnKeyDown: e.props.handleOnKeyDown, 19623 isInputFocused: e.props.isInputFocused, 19624 containerRef: e.props.containerRef, 19625 inline: e.props.inline, 19626 shouldFocusDayInline: e.props.shouldFocusDayInline, 19627 monthShowsDuplicateDaysEnd: e.props.monthShowsDuplicateDaysEnd, 19628 monthShowsDuplicateDaysStart: e.props.monthShowsDuplicateDaysStart, 19629 locale: e.props.locale 19630 }); 19631 })); 19632 }), e; 19633 } 19634 19635 return _t(r, [{ 19636 key: "render", 19637 value: function value() { 19638 return he.default.createElement("div", { 19639 className: "react-datepicker__week" 19640 }, this.renderDays()); 19641 } 19642 }], [{ 19643 key: "defaultProps", 19644 get: function get() { 19645 return { 19646 shouldCloseOnSelect: !0 19647 }; 19648 } 19649 }]), r; 19650 }(he.default.Component), 19651 jr = function (e) { 19652 Et(r, e); 19653 var t = It(r); 19654 19655 function r() { 19656 var e; 19657 St(this, r); 19658 19659 for (var a = arguments.length, n = new Array(a), o = 0; o < a; o++) { 19660 n[o] = arguments[o]; 19661 } 19662 19663 return Mt(xt(e = t.call.apply(t, [this].concat(n))), "MONTH_REFS", Tt(Array(12)).map(function () { 19664 return he.default.createRef(); 19665 })), Mt(xt(e), "QUARTER_REFS", Tt(Array(4)).map(function () { 19666 return he.default.createRef(); 19667 })), Mt(xt(e), "isDisabled", function (t) { 19668 return lr(t, e.props); 19669 }), Mt(xt(e), "isExcluded", function (t) { 19670 return dr(t, e.props); 19671 }), Mt(xt(e), "handleDayClick", function (t, r) { 19672 e.props.onDayClick && e.props.onDayClick(t, r, e.props.orderInDisplay); 19673 }), Mt(xt(e), "handleDayMouseEnter", function (t) { 19674 e.props.onDayMouseEnter && e.props.onDayMouseEnter(t); 19675 }), Mt(xt(e), "handleMouseLeave", function () { 19676 e.props.onMouseLeave && e.props.onMouseLeave(); 19677 }), Mt(xt(e), "isRangeStartMonth", function (t) { 19678 var r = e.props, 19679 a = r.day, 19680 n = r.startDate, 19681 o = r.endDate; 19682 return !(!n || !o) && Zt(je.default(a, t), n); 19683 }), Mt(xt(e), "isRangeStartQuarter", function (t) { 19684 var r = e.props, 19685 a = r.day, 19686 n = r.startDate, 19687 o = r.endDate; 19688 return !(!n || !o) && er(He.default(a, t), n); 19689 }), Mt(xt(e), "isRangeEndMonth", function (t) { 19690 var r = e.props, 19691 a = r.day, 19692 n = r.startDate, 19693 o = r.endDate; 19694 return !(!n || !o) && Zt(je.default(a, t), o); 19695 }), Mt(xt(e), "isRangeEndQuarter", function (t) { 19696 var r = e.props, 19697 a = r.day, 19698 n = r.startDate, 19699 o = r.endDate; 19700 return !(!n || !o) && er(He.default(a, t), o); 19701 }), Mt(xt(e), "isWeekInMonth", function (t) { 19702 var r = e.props.day, 19703 a = ke.default(t, 6); 19704 return Zt(t, r) || Zt(a, r); 19705 }), Mt(xt(e), "isCurrentMonth", function (e, t) { 19706 return qe.default(e) === qe.default(At()) && t === Fe.default(At()); 19707 }), Mt(xt(e), "isCurrentQuarter", function (e, t) { 19708 return qe.default(e) === qe.default(At()) && t === Ae.default(At()); 19709 }), Mt(xt(e), "isSelectedMonth", function (e, t, r) { 19710 return Fe.default(e) === t && qe.default(e) === qe.default(r); 19711 }), Mt(xt(e), "isSelectedQuarter", function (e, t, r) { 19712 return Ae.default(e) === t && qe.default(e) === qe.default(r); 19713 }), Mt(xt(e), "renderWeeks", function () { 19714 for (var t = [], r = e.props.fixedHeight, a = 0, n = !1, o = Ut($t(e.props.day), e.props.locale, e.props.calendarStartDay); t.push(he.default.createElement(Qr, { 19715 ariaLabelPrefix: e.props.weekAriaLabelPrefix, 19716 chooseDayAriaLabelPrefix: e.props.chooseDayAriaLabelPrefix, 19717 disabledDayAriaLabelPrefix: e.props.disabledDayAriaLabelPrefix, 19718 key: a, 19719 day: o, 19720 month: Fe.default(e.props.day), 19721 onDayClick: e.handleDayClick, 19722 onDayMouseEnter: e.handleDayMouseEnter, 19723 onWeekSelect: e.props.onWeekSelect, 19724 formatWeekNumber: e.props.formatWeekNumber, 19725 locale: e.props.locale, 19726 minDate: e.props.minDate, 19727 maxDate: e.props.maxDate, 19728 excludeDates: e.props.excludeDates, 19729 excludeDateIntervals: e.props.excludeDateIntervals, 19730 includeDates: e.props.includeDates, 19731 includeDateIntervals: e.props.includeDateIntervals, 19732 inline: e.props.inline, 19733 shouldFocusDayInline: e.props.shouldFocusDayInline, 19734 highlightDates: e.props.highlightDates, 19735 selectingDate: e.props.selectingDate, 19736 filterDate: e.props.filterDate, 19737 preSelection: e.props.preSelection, 19738 selected: e.props.selected, 19739 selectsStart: e.props.selectsStart, 19740 selectsEnd: e.props.selectsEnd, 19741 selectsRange: e.props.selectsRange, 19742 selectsDisabledDaysInRange: e.props.selectsDisabledDaysInRange, 19743 showWeekNumber: e.props.showWeekNumbers, 19744 startDate: e.props.startDate, 19745 endDate: e.props.endDate, 19746 dayClassName: e.props.dayClassName, 19747 setOpen: e.props.setOpen, 19748 shouldCloseOnSelect: e.props.shouldCloseOnSelect, 19749 disabledKeyboardNavigation: e.props.disabledKeyboardNavigation, 19750 renderDayContents: e.props.renderDayContents, 19751 handleOnKeyDown: e.props.handleOnKeyDown, 19752 isInputFocused: e.props.isInputFocused, 19753 containerRef: e.props.containerRef, 19754 calendarStartDay: e.props.calendarStartDay, 19755 monthShowsDuplicateDaysEnd: e.props.monthShowsDuplicateDaysEnd, 19756 monthShowsDuplicateDaysStart: e.props.monthShowsDuplicateDaysStart 19757 })), !n;) { 19758 a++, o = be.default(o, 1); 19759 var s = r && a >= 6, 19760 i = !r && !e.isWeekInMonth(o); 19761 19762 if (s || i) { 19763 if (!e.props.peekNextMonth) break; 19764 n = !0; 19765 } 19766 } 19767 19768 return t; 19769 }), Mt(xt(e), "onMonthClick", function (t, r) { 19770 e.handleDayClick($t(je.default(e.props.day, r)), t); 19771 }), Mt(xt(e), "handleMonthNavigation", function (t, r) { 19772 e.isDisabled(r) || e.isExcluded(r) || (e.props.setPreSelection(r), e.MONTH_REFS[t].current && e.MONTH_REFS[t].current.focus()); 19773 }), Mt(xt(e), "onMonthKeyDown", function (t, r) { 19774 t.preventDefault(); 19775 var a = t.key; 19776 if (!e.props.disabledKeyboardNavigation) switch (a) { 19777 case "Enter": 19778 e.onMonthClick(t, r), e.props.setPreSelection(e.props.selected); 19779 break; 19780 19781 case "ArrowRight": 19782 e.handleMonthNavigation(11 === r ? 0 : r + 1, Se.default(e.props.preSelection, 1)); 19783 break; 19784 19785 case "ArrowLeft": 19786 e.handleMonthNavigation(0 === r ? 11 : r - 1, Ee.default(e.props.preSelection, 1)); 19787 break; 19788 19789 case "ArrowUp": 19790 e.handleMonthNavigation(r >= 0 && r <= 2 ? r + 9 : r - 3, Ee.default(e.props.preSelection, 3)); 19791 break; 19792 19793 case "ArrowDown": 19794 e.handleMonthNavigation(r >= 9 && r <= 11 ? r - 9 : r + 3, Se.default(e.props.preSelection, 3)); 19795 } 19796 }), Mt(xt(e), "onQuarterClick", function (t, r) { 19797 e.handleDayClick(Gt(He.default(e.props.day, r)), t); 19798 }), Mt(xt(e), "handleQuarterNavigation", function (t, r) { 19799 e.isDisabled(r) || e.isExcluded(r) || (e.props.setPreSelection(r), e.QUARTER_REFS[t - 1].current && e.QUARTER_REFS[t - 1].current.focus()); 19800 }), Mt(xt(e), "onQuarterKeyDown", function (t, r) { 19801 var a = t.key; 19802 if (!e.props.disabledKeyboardNavigation) switch (a) { 19803 case "Enter": 19804 e.onQuarterClick(t, r), e.props.setPreSelection(e.props.selected); 19805 break; 19806 19807 case "ArrowRight": 19808 e.handleQuarterNavigation(4 === r ? 1 : r + 1, Ce.default(e.props.preSelection, 1)); 19809 break; 19810 19811 case "ArrowLeft": 19812 e.handleQuarterNavigation(1 === r ? 4 : r - 1, Ne.default(e.props.preSelection, 1)); 19813 } 19814 }), Mt(xt(e), "getMonthClassNames", function (t) { 19815 var r = e.props, 19816 a = r.day, 19817 n = r.startDate, 19818 o = r.endDate, 19819 s = r.selected, 19820 i = r.minDate, 19821 p = r.maxDate, 19822 l = r.preSelection, 19823 d = r.monthClassName, 19824 c = r.excludeDates, 19825 u = r.includeDates, 19826 f = d ? d(je.default(a, t)) : void 0, 19827 h = je.default(a, t); 19828 return me.default("react-datepicker__month-text", "react-datepicker__month-".concat(t), f, { 19829 "react-datepicker__month--disabled": (i || p || c || u) && cr(h, e.props), 19830 "react-datepicker__month--selected": e.isSelectedMonth(a, t, s), 19831 "react-datepicker__month-text--keyboard-selected": !e.props.disabledKeyboardNavigation && Fe.default(l) === t, 19832 "react-datepicker__month--in-range": ur(n, o, t, a), 19833 "react-datepicker__month--range-start": e.isRangeStartMonth(t), 19834 "react-datepicker__month--range-end": e.isRangeEndMonth(t), 19835 "react-datepicker__month-text--today": e.isCurrentMonth(a, t) 19836 }); 19837 }), Mt(xt(e), "getTabIndex", function (t) { 19838 var r = Fe.default(e.props.preSelection); 19839 return e.props.disabledKeyboardNavigation || t !== r ? "-1" : "0"; 19840 }), Mt(xt(e), "getQuarterTabIndex", function (t) { 19841 var r = Ae.default(e.props.preSelection); 19842 return e.props.disabledKeyboardNavigation || t !== r ? "-1" : "0"; 19843 }), Mt(xt(e), "getAriaLabel", function (t) { 19844 var r = e.props, 19845 a = r.chooseDayAriaLabelPrefix, 19846 n = void 0 === a ? "Choose" : a, 19847 o = r.disabledDayAriaLabelPrefix, 19848 s = void 0 === o ? "Not available" : o, 19849 i = r.day, 19850 p = je.default(i, t), 19851 l = e.isDisabled(p) || e.isExcluded(p) ? s : n; 19852 return "".concat(l, " ").concat(Wt(p, "MMMM yyyy")); 19853 }), Mt(xt(e), "getQuarterClassNames", function (t) { 19854 var r = e.props, 19855 a = r.day, 19856 n = r.startDate, 19857 o = r.endDate, 19858 s = r.selected, 19859 i = r.minDate, 19860 p = r.maxDate, 19861 l = r.preSelection; 19862 return me.default("react-datepicker__quarter-text", "react-datepicker__quarter-".concat(t), { 19863 "react-datepicker__quarter--disabled": (i || p) && fr(He.default(a, t), e.props), 19864 "react-datepicker__quarter--selected": e.isSelectedQuarter(a, t, s), 19865 "react-datepicker__quarter-text--keyboard-selected": Ae.default(l) === t, 19866 "react-datepicker__quarter--in-range": mr(n, o, t, a), 19867 "react-datepicker__quarter--range-start": e.isRangeStartQuarter(t), 19868 "react-datepicker__quarter--range-end": e.isRangeEndQuarter(t) 19869 }); 19870 }), Mt(xt(e), "renderMonths", function () { 19871 var t = e.props, 19872 r = t.showFullMonthYearPicker, 19873 a = t.showTwoColumnMonthYearPicker, 19874 n = t.showFourColumnMonthYearPicker, 19875 o = t.locale, 19876 s = t.day, 19877 i = t.selected; 19878 return (n ? [[0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11]] : a ? [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9], [10, 11]] : [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11]]).map(function (t, a) { 19879 return he.default.createElement("div", { 19880 className: "react-datepicker__month-wrapper", 19881 key: a 19882 }, t.map(function (t, a) { 19883 return he.default.createElement("div", { 19884 ref: e.MONTH_REFS[t], 19885 key: a, 19886 onClick: function onClick(r) { 19887 e.onMonthClick(r, t); 19888 }, 19889 onKeyDown: function onKeyDown(r) { 19890 e.onMonthKeyDown(r, t); 19891 }, 19892 tabIndex: e.getTabIndex(t), 19893 className: e.getMonthClassNames(t), 19894 role: "option", 19895 "aria-label": e.getAriaLabel(t), 19896 "aria-current": e.isCurrentMonth(s, t) ? "date" : void 0, 19897 "aria-selected": e.isSelectedMonth(s, t, i) 19898 }, r ? sr(t, o) : ir(t, o)); 19899 })); 19900 }); 19901 }), Mt(xt(e), "renderQuarters", function () { 19902 var t = e.props, 19903 r = t.day, 19904 a = t.selected; 19905 return he.default.createElement("div", { 19906 className: "react-datepicker__quarter-wrapper" 19907 }, [1, 2, 3, 4].map(function (t, n) { 19908 return he.default.createElement("div", { 19909 key: n, 19910 ref: e.QUARTER_REFS[n], 19911 role: "option", 19912 onClick: function onClick(r) { 19913 e.onQuarterClick(r, t); 19914 }, 19915 onKeyDown: function onKeyDown(r) { 19916 e.onQuarterKeyDown(r, t); 19917 }, 19918 className: e.getQuarterClassNames(t), 19919 "aria-selected": e.isSelectedQuarter(r, t, a), 19920 tabIndex: e.getQuarterTabIndex(t), 19921 "aria-current": e.isCurrentQuarter(r, t) ? "date" : void 0 19922 }, pr(t, e.props.locale)); 19923 })); 19924 }), Mt(xt(e), "getClassNames", function () { 19925 var t = e.props; 19926 t.day; 19927 var r = t.selectingDate, 19928 a = t.selectsStart, 19929 n = t.selectsEnd, 19930 o = t.showMonthYearPicker, 19931 s = t.showQuarterYearPicker; 19932 return me.default("react-datepicker__month", { 19933 "react-datepicker__month--selecting-range": r && (a || n) 19934 }, { 19935 "react-datepicker__monthPicker": o 19936 }, { 19937 "react-datepicker__quarterPicker": s 19938 }); 19939 }), e; 19940 } 19941 19942 return _t(r, [{ 19943 key: "render", 19944 value: function value() { 19945 var e = this.props, 19946 t = e.showMonthYearPicker, 19947 r = e.showQuarterYearPicker, 19948 a = e.day, 19949 n = e.ariaLabelPrefix, 19950 o = void 0 === n ? "month " : n; 19951 return he.default.createElement("div", { 19952 className: this.getClassNames(), 19953 onMouseLeave: this.handleMouseLeave, 19954 "aria-label": "".concat(o, " ").concat(Wt(a, "yyyy-MM")), 19955 role: "listbox" 19956 }, t ? this.renderMonths() : r ? this.renderQuarters() : this.renderWeeks()); 19957 } 19958 }]), r; 19959 }(he.default.Component), 19960 Hr = function (e) { 19961 Et(r, e); 19962 var t = It(r); 19963 19964 function r() { 19965 var e; 19966 St(this, r); 19967 19968 for (var a = arguments.length, n = new Array(a), o = 0; o < a; o++) { 19969 n[o] = arguments[o]; 19970 } 19971 19972 return Mt(xt(e = t.call.apply(t, [this].concat(n))), "state", { 19973 height: null 19974 }), Mt(xt(e), "handleClick", function (t) { 19975 (e.props.minTime || e.props.maxTime) && gr(t, e.props) || (e.props.excludeTimes || e.props.includeTimes || e.props.filterTime) && Dr(t, e.props) || e.props.onChange(t); 19976 }), Mt(xt(e), "isSelectedTime", function (t, r, a) { 19977 return e.props.selected && r === Ie.default(t) && a === Ye.default(t); 19978 }), Mt(xt(e), "liClasses", function (t, r, a) { 19979 var n = ["react-datepicker__time-list-item", e.props.timeClassName ? e.props.timeClassName(t, r, a) : void 0]; 19980 return e.isSelectedTime(t, r, a) && n.push("react-datepicker__time-list-item--selected"), ((e.props.minTime || e.props.maxTime) && gr(t, e.props) || (e.props.excludeTimes || e.props.includeTimes || e.props.filterTime) && Dr(t, e.props)) && n.push("react-datepicker__time-list-item--disabled"), e.props.injectTimes && (60 * Ie.default(t) + Ye.default(t)) % e.props.intervals != 0 && n.push("react-datepicker__time-list-item--injected"), n.join(" "); 19981 }), Mt(xt(e), "handleOnKeyDown", function (t, r) { 19982 " " === t.key && (t.preventDefault(), t.key = "Enter"), "Enter" === t.key && e.handleClick(r), e.props.handleOnKeyDown(t); 19983 }), Mt(xt(e), "renderTimes", function () { 19984 for (var t = [], r = e.props.format ? e.props.format : "p", a = e.props.intervals, n = Vt(At(e.props.selected)), o = 1440 / a, s = e.props.injectTimes && e.props.injectTimes.sort(function (e, t) { 19985 return e - t; 19986 }), i = e.props.selected || e.props.openToDate || At(), p = Ie.default(i), l = Ye.default(i), d = Qe.default(Be.default(n, l), p), c = 0; c < o; c++) { 19987 var u = ge.default(n, c * a); 19988 19989 if (t.push(u), s) { 19990 var f = Pr(n, u, c, a, s); 19991 t = t.concat(f); 19992 } 19993 } 19994 19995 return t.map(function (t, a) { 19996 return he.default.createElement("li", { 19997 key: a, 19998 onClick: e.handleClick.bind(xt(e), t), 19999 className: e.liClasses(t, p, l), 20000 ref: function ref(r) { 20001 (ut.default(t, d) || rr(t, d)) && (e.centerLi = r); 20002 }, 20003 onKeyDown: function onKeyDown(r) { 20004 e.handleOnKeyDown(r, t); 20005 }, 20006 tabIndex: "0", 20007 "aria-selected": e.isSelectedTime(t, p, l) ? "true" : void 0 20008 }, Wt(t, r, e.props.locale)); 20009 }); 20010 }), e; 20011 } 20012 20013 return _t(r, [{ 20014 key: "componentDidMount", 20015 value: function value() { 20016 this.list.scrollTop = this.centerLi && r.calcCenterPosition(this.props.monthRef ? this.props.monthRef.clientHeight - this.header.clientHeight : this.list.clientHeight, this.centerLi), this.props.monthRef && this.header && this.setState({ 20017 height: this.props.monthRef.clientHeight - this.header.clientHeight 20018 }); 20019 } 20020 }, { 20021 key: "render", 20022 value: function value() { 20023 var e = this, 20024 t = this.state.height; 20025 return he.default.createElement("div", { 20026 className: "react-datepicker__time-container ".concat(this.props.todayButton ? "react-datepicker__time-container--with-today-button" : "") 20027 }, he.default.createElement("div", { 20028 className: "react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly ? "react-datepicker__header--time--only" : ""), 20029 ref: function ref(t) { 20030 e.header = t; 20031 } 20032 }, he.default.createElement("div", { 20033 className: "react-datepicker-time__header" 20034 }, this.props.timeCaption)), he.default.createElement("div", { 20035 className: "react-datepicker__time" 20036 }, he.default.createElement("div", { 20037 className: "react-datepicker__time-box" 20038 }, he.default.createElement("ul", { 20039 className: "react-datepicker__time-list", 20040 ref: function ref(t) { 20041 e.list = t; 20042 }, 20043 style: t ? { 20044 height: t 20045 } : {}, 20046 tabIndex: "0" 20047 }, this.renderTimes())))); 20048 } 20049 }], [{ 20050 key: "defaultProps", 20051 get: function get() { 20052 return { 20053 intervals: 30, 20054 onTimeChange: function onTimeChange() {}, 20055 todayButton: null, 20056 timeCaption: "Time" 20057 }; 20058 } 20059 }]), r; 20060 }(he.default.Component); 20061 20062 Mt(Hr, "calcCenterPosition", function (e, t) { 20063 return t.offsetTop - (e / 2 - t.clientHeight / 2); 20064 }); 20065 20066 var Vr = function (e) { 20067 Et(r, e); 20068 var t = It(r); 20069 20070 function r(e) { 20071 var a; 20072 return St(this, r), Mt(xt(a = t.call(this, e)), "YEAR_REFS", Tt(Array(a.props.yearItemNumber)).map(function () { 20073 return he.default.createRef(); 20074 })), Mt(xt(a), "isDisabled", function (e) { 20075 return lr(e, a.props); 20076 }), Mt(xt(a), "isExcluded", function (e) { 20077 return dr(e, a.props); 20078 }), Mt(xt(a), "updateFocusOnPaginate", function (e) { 20079 var t = function () { 20080 this.YEAR_REFS[e].current.focus(); 20081 }.bind(xt(a)); 20082 20083 window.requestAnimationFrame(t); 20084 }), Mt(xt(a), "handleYearClick", function (e, t) { 20085 a.props.onDayClick && a.props.onDayClick(e, t); 20086 }), Mt(xt(a), "handleYearNavigation", function (e, t) { 20087 var r = a.props, 20088 n = r.date, 20089 o = r.yearItemNumber, 20090 s = Nr(n, o).startPeriod; 20091 a.isDisabled(t) || a.isExcluded(t) || (a.props.setPreSelection(t), e - s == -1 ? a.updateFocusOnPaginate(o - 1) : e - s === o ? a.updateFocusOnPaginate(0) : a.YEAR_REFS[e - s].current.focus()); 20092 }), Mt(xt(a), "isSameDay", function (e, t) { 20093 return tr(e, t); 20094 }), Mt(xt(a), "isCurrentYear", function (e) { 20095 return e === qe.default(At()); 20096 }), Mt(xt(a), "isKeyboardSelected", function (e) { 20097 var t = zt(Ve.default(a.props.date, e)); 20098 return !a.props.disabledKeyboardNavigation && !a.props.inline && !tr(t, zt(a.props.selected)) && tr(t, zt(a.props.preSelection)); 20099 }), Mt(xt(a), "onYearClick", function (e, t) { 20100 var r = a.props.date; 20101 a.handleYearClick(zt(Ve.default(r, t)), e); 20102 }), Mt(xt(a), "onYearKeyDown", function (e, t) { 20103 var r = e.key; 20104 if (!a.props.disabledKeyboardNavigation) switch (r) { 20105 case "Enter": 20106 a.onYearClick(e, t), a.props.setPreSelection(a.props.selected); 20107 break; 20108 20109 case "ArrowRight": 20110 a.handleYearNavigation(t + 1, _e.default(a.props.preSelection, 1)); 20111 break; 20112 20113 case "ArrowLeft": 20114 a.handleYearNavigation(t - 1, Oe.default(a.props.preSelection, 1)); 20115 } 20116 }), Mt(xt(a), "getYearClassNames", function (e) { 20117 var t = a.props, 20118 r = t.minDate, 20119 n = t.maxDate, 20120 o = t.selected, 20121 s = t.excludeDates, 20122 i = t.includeDates, 20123 p = t.filterDate; 20124 return me.default("react-datepicker__year-text", { 20125 "react-datepicker__year-text--selected": e === qe.default(o), 20126 "react-datepicker__year-text--disabled": (r || n || s || i || p) && hr(e, a.props), 20127 "react-datepicker__year-text--keyboard-selected": a.isKeyboardSelected(e), 20128 "react-datepicker__year-text--today": a.isCurrentYear(e) 20129 }); 20130 }), Mt(xt(a), "getYearTabIndex", function (e) { 20131 return a.props.disabledKeyboardNavigation ? "-1" : e === qe.default(a.props.preSelection) ? "0" : "-1"; 20132 }), a; 20133 } 20134 20135 return _t(r, [{ 20136 key: "render", 20137 value: function value() { 20138 for (var e = this, t = [], r = this.props, a = Nr(r.date, r.yearItemNumber), n = a.startPeriod, o = a.endPeriod, s = function s(r) { 20139 t.push(he.default.createElement("div", { 20140 ref: e.YEAR_REFS[r - n], 20141 onClick: function onClick(t) { 20142 e.onYearClick(t, r); 20143 }, 20144 onKeyDown: function onKeyDown(t) { 20145 e.onYearKeyDown(t, r); 20146 }, 20147 tabIndex: e.getYearTabIndex(r), 20148 className: e.getYearClassNames(r), 20149 key: r, 20150 "aria-current": e.isCurrentYear(r) ? "date" : void 0 20151 }, r)); 20152 }, i = n; i <= o; i++) { 20153 s(i); 20154 } 20155 20156 return he.default.createElement("div", { 20157 className: "react-datepicker__year" 20158 }, he.default.createElement("div", { 20159 className: "react-datepicker__year-wrapper" 20160 }, t)); 20161 } 20162 }]), r; 20163 }(he.default.Component), 20164 Ur = function (e) { 20165 Et(r, e); 20166 var t = It(r); 20167 20168 function r(e) { 20169 var a; 20170 return St(this, r), Mt(xt(a = t.call(this, e)), "onTimeChange", function (e) { 20171 a.setState({ 20172 time: e 20173 }); 20174 var t = new Date(); 20175 t.setHours(e.split(":")[0]), t.setMinutes(e.split(":")[1]), a.props.onChange(t); 20176 }), Mt(xt(a), "renderTimeInput", function () { 20177 var e = a.state.time, 20178 t = a.props, 20179 r = t.date, 20180 n = t.timeString, 20181 o = t.customTimeInput; 20182 return o ? he.default.cloneElement(o, { 20183 date: r, 20184 value: e, 20185 onChange: a.onTimeChange 20186 }) : he.default.createElement("input", { 20187 type: "time", 20188 className: "react-datepicker-time__input", 20189 placeholder: "Time", 20190 name: "time-input", 20191 required: !0, 20192 value: e, 20193 onChange: function onChange(e) { 20194 a.onTimeChange(e.target.value || n); 20195 } 20196 }); 20197 }), a.state = { 20198 time: a.props.timeString 20199 }, a; 20200 } 20201 20202 return _t(r, [{ 20203 key: "render", 20204 value: function value() { 20205 return he.default.createElement("div", { 20206 className: "react-datepicker__input-time-container" 20207 }, he.default.createElement("div", { 20208 className: "react-datepicker-time__caption" 20209 }, this.props.timeInputLabel), he.default.createElement("div", { 20210 className: "react-datepicker-time__input-container" 20211 }, he.default.createElement("div", { 20212 className: "react-datepicker-time__input" 20213 }, this.renderTimeInput()))); 20214 } 20215 }], [{ 20216 key: "getDerivedStateFromProps", 20217 value: function value(e, t) { 20218 return e.timeString !== t.time ? { 20219 time: e.timeString 20220 } : null; 20221 } 20222 }]), r; 20223 }(he.default.Component); 20224 20225 function $r(e) { 20226 var t = e.className, 20227 r = e.children, 20228 a = e.showPopperArrow, 20229 n = e.arrowProps, 20230 o = void 0 === n ? {} : n; 20231 return he.default.createElement("div", { 20232 className: t 20233 }, a && he.default.createElement("div", Pt({ 20234 className: "react-datepicker__triangle" 20235 }, o)), r); 20236 } 20237 20238 var zr = ["react-datepicker__year-select", "react-datepicker__month-select", "react-datepicker__month-year-select"], 20239 Gr = function (e) { 20240 Et(r, e); 20241 var t = It(r); 20242 20243 function r(e) { 20244 var a; 20245 return St(this, r), Mt(xt(a = t.call(this, e)), "handleClickOutside", function (e) { 20246 a.props.onClickOutside(e); 20247 }), Mt(xt(a), "setClickOutsideRef", function () { 20248 return a.containerRef.current; 20249 }), Mt(xt(a), "handleDropdownFocus", function (e) { 20250 (function () { 20251 var e = ((arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}).className || "").split(/\s+/); 20252 return zr.some(function (t) { 20253 return e.indexOf(t) >= 0; 20254 }); 20255 })(e.target) && a.props.onDropdownFocus(); 20256 }), Mt(xt(a), "getDateInView", function () { 20257 var e = a.props, 20258 t = e.preSelection, 20259 r = e.selected, 20260 n = e.openToDate, 20261 o = Cr(a.props), 20262 s = _r(a.props), 20263 i = At(), 20264 p = n || r || t; 20265 20266 return p || (o && ut.default(i, o) ? o : s && ct.default(i, s) ? s : i); 20267 }), Mt(xt(a), "increaseMonth", function () { 20268 a.setState(function (e) { 20269 var t = e.date; 20270 return { 20271 date: Se.default(t, 1) 20272 }; 20273 }, function () { 20274 return a.handleMonthChange(a.state.date); 20275 }); 20276 }), Mt(xt(a), "decreaseMonth", function () { 20277 a.setState(function (e) { 20278 var t = e.date; 20279 return { 20280 date: Ee.default(t, 1) 20281 }; 20282 }, function () { 20283 return a.handleMonthChange(a.state.date); 20284 }); 20285 }), Mt(xt(a), "handleDayClick", function (e, t, r) { 20286 a.props.onSelect(e, t, r), a.props.setPreSelection && a.props.setPreSelection(e); 20287 }), Mt(xt(a), "handleDayMouseEnter", function (e) { 20288 a.setState({ 20289 selectingDate: e 20290 }), a.props.onDayMouseEnter && a.props.onDayMouseEnter(e); 20291 }), Mt(xt(a), "handleMonthMouseLeave", function () { 20292 a.setState({ 20293 selectingDate: null 20294 }), a.props.onMonthMouseLeave && a.props.onMonthMouseLeave(); 20295 }), Mt(xt(a), "handleYearChange", function (e) { 20296 a.props.onYearChange && (a.props.onYearChange(e), a.setState({ 20297 isRenderAriaLiveMessage: !0 20298 })), a.props.adjustDateOnChange && (a.props.onSelect && a.props.onSelect(e), a.props.setOpen && a.props.setOpen(!0)), a.props.setPreSelection && a.props.setPreSelection(e); 20299 }), Mt(xt(a), "handleMonthChange", function (e) { 20300 a.props.onMonthChange && (a.props.onMonthChange(e), a.setState({ 20301 isRenderAriaLiveMessage: !0 20302 })), a.props.adjustDateOnChange && (a.props.onSelect && a.props.onSelect(e), a.props.setOpen && a.props.setOpen(!0)), a.props.setPreSelection && a.props.setPreSelection(e); 20303 }), Mt(xt(a), "handleMonthYearChange", function (e) { 20304 a.handleYearChange(e), a.handleMonthChange(e); 20305 }), Mt(xt(a), "changeYear", function (e) { 20306 a.setState(function (t) { 20307 var r = t.date; 20308 return { 20309 date: Ve.default(r, e) 20310 }; 20311 }, function () { 20312 return a.handleYearChange(a.state.date); 20313 }); 20314 }), Mt(xt(a), "changeMonth", function (e) { 20315 a.setState(function (t) { 20316 var r = t.date; 20317 return { 20318 date: je.default(r, e) 20319 }; 20320 }, function () { 20321 return a.handleMonthChange(a.state.date); 20322 }); 20323 }), Mt(xt(a), "changeMonthYear", function (e) { 20324 a.setState(function (t) { 20325 var r = t.date; 20326 return { 20327 date: Ve.default(je.default(r, Fe.default(e)), qe.default(e)) 20328 }; 20329 }, function () { 20330 return a.handleMonthYearChange(a.state.date); 20331 }); 20332 }), Mt(xt(a), "header", function () { 20333 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a.state.date, 20334 t = Ut(e, a.props.locale, a.props.calendarStartDay), 20335 r = []; 20336 return a.props.showWeekNumbers && r.push(he.default.createElement("div", { 20337 key: "W", 20338 className: "react-datepicker__day-name" 20339 }, a.props.weekLabel || "#")), r.concat([0, 1, 2, 3, 4, 5, 6].map(function (e) { 20340 var r = ke.default(t, e), 20341 n = a.formatWeekday(r, a.props.locale), 20342 o = a.props.weekDayClassName ? a.props.weekDayClassName(r) : void 0; 20343 return he.default.createElement("div", { 20344 key: e, 20345 className: me.default("react-datepicker__day-name", o) 20346 }, n); 20347 })); 20348 }), Mt(xt(a), "formatWeekday", function (e, t) { 20349 return a.props.formatWeekDay ? function (e, t, r) { 20350 return "function" == typeof t ? t(e, r) : Wt(e, "EEEE", r); 20351 }(e, a.props.formatWeekDay, t) : a.props.useWeekdaysShort ? function (e, t) { 20352 return Wt(e, "EEE", t); 20353 }(e, t) : function (e, t) { 20354 return Wt(e, "EEEEEE", t); 20355 }(e, t); 20356 }), Mt(xt(a), "decreaseYear", function () { 20357 a.setState(function (e) { 20358 var t = e.date; 20359 return { 20360 date: Oe.default(t, a.props.showYearPicker ? a.props.yearItemNumber : 1) 20361 }; 20362 }, function () { 20363 return a.handleYearChange(a.state.date); 20364 }); 20365 }), Mt(xt(a), "renderPreviousButton", function () { 20366 if (!a.props.renderCustomHeader) { 20367 var e; 20368 20369 switch (!0) { 20370 case a.props.showMonthYearPicker: 20371 e = br(a.state.date, a.props); 20372 break; 20373 20374 case a.props.showYearPicker: 20375 e = function (e) { 20376 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 20377 r = t.minDate, 20378 a = t.yearItemNumber, 20379 n = void 0 === a ? Ft : a, 20380 o = Nr(zt(Oe.default(e, n)), n).endPeriod, 20381 s = r && qe.default(r); 20382 return s && s > o || !1; 20383 }(a.state.date, a.props); 20384 20385 break; 20386 20387 default: 20388 e = wr(a.state.date, a.props); 20389 } 20390 20391 if ((a.props.forceShowMonthNavigation || a.props.showDisabledMonthNavigation || !e) && !a.props.showTimeSelectOnly) { 20392 var t = ["react-datepicker__navigation", "react-datepicker__navigation--previous"], 20393 r = a.decreaseMonth; 20394 (a.props.showMonthYearPicker || a.props.showQuarterYearPicker || a.props.showYearPicker) && (r = a.decreaseYear), e && a.props.showDisabledMonthNavigation && (t.push("react-datepicker__navigation--previous--disabled"), r = null); 20395 var n = a.props.showMonthYearPicker || a.props.showQuarterYearPicker || a.props.showYearPicker, 20396 o = a.props, 20397 s = o.previousMonthButtonLabel, 20398 i = o.previousYearButtonLabel, 20399 p = a.props, 20400 l = p.previousMonthAriaLabel, 20401 d = void 0 === l ? "string" == typeof s ? s : "Previous Month" : l, 20402 c = p.previousYearAriaLabel, 20403 u = void 0 === c ? "string" == typeof i ? i : "Previous Year" : c; 20404 return he.default.createElement("button", { 20405 type: "button", 20406 className: t.join(" "), 20407 onClick: r, 20408 onKeyDown: a.props.handleOnKeyDown, 20409 "aria-label": n ? u : d 20410 }, he.default.createElement("span", { 20411 className: ["react-datepicker__navigation-icon", "react-datepicker__navigation-icon--previous"].join(" ") 20412 }, n ? a.props.previousYearButtonLabel : a.props.previousMonthButtonLabel)); 20413 } 20414 } 20415 }), Mt(xt(a), "increaseYear", function () { 20416 a.setState(function (e) { 20417 var t = e.date; 20418 return { 20419 date: _e.default(t, a.props.showYearPicker ? a.props.yearItemNumber : 1) 20420 }; 20421 }, function () { 20422 return a.handleYearChange(a.state.date); 20423 }); 20424 }), Mt(xt(a), "renderNextButton", function () { 20425 if (!a.props.renderCustomHeader) { 20426 var e; 20427 20428 switch (!0) { 20429 case a.props.showMonthYearPicker: 20430 e = Sr(a.state.date, a.props); 20431 break; 20432 20433 case a.props.showYearPicker: 20434 e = function (e) { 20435 var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, 20436 r = t.maxDate, 20437 a = t.yearItemNumber, 20438 n = void 0 === a ? Ft : a, 20439 o = Nr(_e.default(e, n), n).startPeriod, 20440 s = r && qe.default(r); 20441 return s && s < o || !1; 20442 }(a.state.date, a.props); 20443 20444 break; 20445 20446 default: 20447 e = kr(a.state.date, a.props); 20448 } 20449 20450 if ((a.props.forceShowMonthNavigation || a.props.showDisabledMonthNavigation || !e) && !a.props.showTimeSelectOnly) { 20451 var t = ["react-datepicker__navigation", "react-datepicker__navigation--next"]; 20452 a.props.showTimeSelect && t.push("react-datepicker__navigation--next--with-time"), a.props.todayButton && t.push("react-datepicker__navigation--next--with-today-button"); 20453 var r = a.increaseMonth; 20454 (a.props.showMonthYearPicker || a.props.showQuarterYearPicker || a.props.showYearPicker) && (r = a.increaseYear), e && a.props.showDisabledMonthNavigation && (t.push("react-datepicker__navigation--next--disabled"), r = null); 20455 var n = a.props.showMonthYearPicker || a.props.showQuarterYearPicker || a.props.showYearPicker, 20456 o = a.props, 20457 s = o.nextMonthButtonLabel, 20458 i = o.nextYearButtonLabel, 20459 p = a.props, 20460 l = p.nextMonthAriaLabel, 20461 d = void 0 === l ? "string" == typeof s ? s : "Next Month" : l, 20462 c = p.nextYearAriaLabel, 20463 u = void 0 === c ? "string" == typeof i ? i : "Next Year" : c; 20464 return he.default.createElement("button", { 20465 type: "button", 20466 className: t.join(" "), 20467 onClick: r, 20468 onKeyDown: a.props.handleOnKeyDown, 20469 "aria-label": n ? u : d 20470 }, he.default.createElement("span", { 20471 className: ["react-datepicker__navigation-icon", "react-datepicker__navigation-icon--next"].join(" ") 20472 }, n ? a.props.nextYearButtonLabel : a.props.nextMonthButtonLabel)); 20473 } 20474 } 20475 }), Mt(xt(a), "renderCurrentMonth", function () { 20476 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : a.state.date, 20477 t = ["react-datepicker__current-month"]; 20478 return a.props.showYearDropdown && t.push("react-datepicker__current-month--hasYearDropdown"), a.props.showMonthDropdown && t.push("react-datepicker__current-month--hasMonthDropdown"), a.props.showMonthYearDropdown && t.push("react-datepicker__current-month--hasMonthYearDropdown"), he.default.createElement("div", { 20479 className: t.join(" ") 20480 }, Wt(e, a.props.dateFormat, a.props.locale)); 20481 }), Mt(xt(a), "renderYearDropdown", function () { 20482 var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; 20483 if (a.props.showYearDropdown && !e) return he.default.createElement(Ir, { 20484 adjustDateOnChange: a.props.adjustDateOnChange, 20485 date: a.state.date, 20486 onSelect: a.props.onSelect, 20487 setOpen: a.props.setOpen, 20488 dropdownMode: a.props.dropdownMode, 20489 onChange: a.changeYear, 20490 minDate: a.props.minDate, 20491 maxDate: a.props.maxDate, 20492 year: qe.default(a.state.date), 20493 scrollableYearDropdown: a.props.scrollableYearDropdown, 20494 yearDropdownItemNumber: a.props.yearDropdownItemNumber 20495 }); 20496 }), Mt(xt(a), "renderMonthDropdown", function () { 20497 var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; 20498 if (a.props.showMonthDropdown && !e) return he.default.createElement(Rr, { 20499 dropdownMode: a.props.dropdownMode, 20500 locale: a.props.locale, 20501 onChange: a.changeMonth, 20502 month: Fe.default(a.state.date), 20503 useShortMonthInDropdown: a.props.useShortMonthInDropdown 20504 }); 20505 }), Mt(xt(a), "renderMonthYearDropdown", function () { 20506 var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]; 20507 if (a.props.showMonthYearDropdown && !e) return he.default.createElement(Kr, { 20508 dropdownMode: a.props.dropdownMode, 20509 locale: a.props.locale, 20510 dateFormat: a.props.dateFormat, 20511 onChange: a.changeMonthYear, 20512 minDate: a.props.minDate, 20513 maxDate: a.props.maxDate, 20514 date: a.state.date, 20515 scrollableMonthYearDropdown: a.props.scrollableMonthYearDropdown 20516 }); 20517 }), Mt(xt(a), "handleTodayButtonClick", function (e) { 20518 a.props.onSelect(Jt(), e), a.props.setPreSelection && a.props.setPreSelection(Jt()); 20519 }), Mt(xt(a), "renderTodayButton", function () { 20520 if (a.props.todayButton && !a.props.showTimeSelectOnly) return he.default.createElement("div", { 20521 className: "react-datepicker__today-button", 20522 onClick: function onClick(e) { 20523 return a.handleTodayButtonClick(e); 20524 } 20525 }, a.props.todayButton); 20526 }), Mt(xt(a), "renderDefaultHeader", function (e) { 20527 var t = e.monthDate, 20528 r = e.i; 20529 return he.default.createElement("div", { 20530 className: "react-datepicker__header ".concat(a.props.showTimeSelect ? "react-datepicker__header--has-time-select" : "") 20531 }, a.renderCurrentMonth(t), he.default.createElement("div", { 20532 className: "react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(a.props.dropdownMode), 20533 onFocus: a.handleDropdownFocus 20534 }, a.renderMonthDropdown(0 !== r), a.renderMonthYearDropdown(0 !== r), a.renderYearDropdown(0 !== r)), he.default.createElement("div", { 20535 className: "react-datepicker__day-names" 20536 }, a.header(t))); 20537 }), Mt(xt(a), "renderCustomHeader", function () { 20538 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, 20539 t = e.monthDate, 20540 r = e.i; 20541 if (a.props.showTimeSelect && !a.state.monthContainer || a.props.showTimeSelectOnly) return null; 20542 var n = wr(a.state.date, a.props), 20543 o = kr(a.state.date, a.props), 20544 s = br(a.state.date, a.props), 20545 i = Sr(a.state.date, a.props), 20546 p = !a.props.showMonthYearPicker && !a.props.showQuarterYearPicker && !a.props.showYearPicker; 20547 return he.default.createElement("div", { 20548 className: "react-datepicker__header react-datepicker__header--custom", 20549 onFocus: a.props.onDropdownFocus 20550 }, a.props.renderCustomHeader(kt(kt({}, a.state), {}, { 20551 customHeaderCount: r, 20552 monthDate: t, 20553 changeMonth: a.changeMonth, 20554 changeYear: a.changeYear, 20555 decreaseMonth: a.decreaseMonth, 20556 increaseMonth: a.increaseMonth, 20557 decreaseYear: a.decreaseYear, 20558 increaseYear: a.increaseYear, 20559 prevMonthButtonDisabled: n, 20560 nextMonthButtonDisabled: o, 20561 prevYearButtonDisabled: s, 20562 nextYearButtonDisabled: i 20563 })), p && he.default.createElement("div", { 20564 className: "react-datepicker__day-names" 20565 }, a.header(t))); 20566 }), Mt(xt(a), "renderYearHeader", function () { 20567 var e = a.state.date, 20568 t = a.props, 20569 r = t.showYearPicker, 20570 n = Nr(e, t.yearItemNumber), 20571 o = n.startPeriod, 20572 s = n.endPeriod; 20573 return he.default.createElement("div", { 20574 className: "react-datepicker__header react-datepicker-year-header" 20575 }, r ? "".concat(o, " - ").concat(s) : qe.default(e)); 20576 }), Mt(xt(a), "renderHeader", function (e) { 20577 switch (!0) { 20578 case void 0 !== a.props.renderCustomHeader: 20579 return a.renderCustomHeader(e); 20580 20581 case a.props.showMonthYearPicker || a.props.showQuarterYearPicker || a.props.showYearPicker: 20582 return a.renderYearHeader(e); 20583 20584 default: 20585 return a.renderDefaultHeader(e); 20586 } 20587 }), Mt(xt(a), "renderMonths", function () { 20588 if (!a.props.showTimeSelectOnly && !a.props.showYearPicker) { 20589 for (var e = [], t = a.props.showPreviousMonths ? a.props.monthsShown - 1 : 0, r = Ee.default(a.state.date, t), n = 0; n < a.props.monthsShown; ++n) { 20590 var o = n - a.props.monthSelectedIn, 20591 s = Se.default(r, o), 20592 i = "month-".concat(n), 20593 p = n < a.props.monthsShown - 1, 20594 l = n > 0; 20595 e.push(he.default.createElement("div", { 20596 key: i, 20597 ref: function ref(e) { 20598 a.monthContainer = e; 20599 }, 20600 className: "react-datepicker__month-container" 20601 }, a.renderHeader({ 20602 monthDate: s, 20603 i: n 20604 }), he.default.createElement(jr, { 20605 chooseDayAriaLabelPrefix: a.props.chooseDayAriaLabelPrefix, 20606 disabledDayAriaLabelPrefix: a.props.disabledDayAriaLabelPrefix, 20607 weekAriaLabelPrefix: a.props.weekAriaLabelPrefix, 20608 ariaLabelPrefix: a.props.monthAriaLabelPrefix, 20609 onChange: a.changeMonthYear, 20610 day: s, 20611 dayClassName: a.props.dayClassName, 20612 calendarStartDay: a.props.calendarStartDay, 20613 monthClassName: a.props.monthClassName, 20614 onDayClick: a.handleDayClick, 20615 handleOnKeyDown: a.props.handleOnDayKeyDown, 20616 onDayMouseEnter: a.handleDayMouseEnter, 20617 onMouseLeave: a.handleMonthMouseLeave, 20618 onWeekSelect: a.props.onWeekSelect, 20619 orderInDisplay: n, 20620 formatWeekNumber: a.props.formatWeekNumber, 20621 locale: a.props.locale, 20622 minDate: a.props.minDate, 20623 maxDate: a.props.maxDate, 20624 excludeDates: a.props.excludeDates, 20625 excludeDateIntervals: a.props.excludeDateIntervals, 20626 highlightDates: a.props.highlightDates, 20627 selectingDate: a.state.selectingDate, 20628 includeDates: a.props.includeDates, 20629 includeDateIntervals: a.props.includeDateIntervals, 20630 inline: a.props.inline, 20631 shouldFocusDayInline: a.props.shouldFocusDayInline, 20632 fixedHeight: a.props.fixedHeight, 20633 filterDate: a.props.filterDate, 20634 preSelection: a.props.preSelection, 20635 setPreSelection: a.props.setPreSelection, 20636 selected: a.props.selected, 20637 selectsStart: a.props.selectsStart, 20638 selectsEnd: a.props.selectsEnd, 20639 selectsRange: a.props.selectsRange, 20640 selectsDisabledDaysInRange: a.props.selectsDisabledDaysInRange, 20641 showWeekNumbers: a.props.showWeekNumbers, 20642 startDate: a.props.startDate, 20643 endDate: a.props.endDate, 20644 peekNextMonth: a.props.peekNextMonth, 20645 setOpen: a.props.setOpen, 20646 shouldCloseOnSelect: a.props.shouldCloseOnSelect, 20647 renderDayContents: a.props.renderDayContents, 20648 disabledKeyboardNavigation: a.props.disabledKeyboardNavigation, 20649 showMonthYearPicker: a.props.showMonthYearPicker, 20650 showFullMonthYearPicker: a.props.showFullMonthYearPicker, 20651 showTwoColumnMonthYearPicker: a.props.showTwoColumnMonthYearPicker, 20652 showFourColumnMonthYearPicker: a.props.showFourColumnMonthYearPicker, 20653 showYearPicker: a.props.showYearPicker, 20654 showQuarterYearPicker: a.props.showQuarterYearPicker, 20655 isInputFocused: a.props.isInputFocused, 20656 containerRef: a.containerRef, 20657 monthShowsDuplicateDaysEnd: p, 20658 monthShowsDuplicateDaysStart: l 20659 }))); 20660 } 20661 20662 return e; 20663 } 20664 }), Mt(xt(a), "renderYears", function () { 20665 if (!a.props.showTimeSelectOnly) return a.props.showYearPicker ? he.default.createElement("div", { 20666 className: "react-datepicker__year--container" 20667 }, a.renderHeader(), he.default.createElement(Vr, Pt({ 20668 onDayClick: a.handleDayClick, 20669 date: a.state.date 20670 }, a.props))) : void 0; 20671 }), Mt(xt(a), "renderTimeSection", function () { 20672 if (a.props.showTimeSelect && (a.state.monthContainer || a.props.showTimeSelectOnly)) return he.default.createElement(Hr, { 20673 selected: a.props.selected, 20674 openToDate: a.props.openToDate, 20675 onChange: a.props.onTimeChange, 20676 timeClassName: a.props.timeClassName, 20677 format: a.props.timeFormat, 20678 includeTimes: a.props.includeTimes, 20679 intervals: a.props.timeIntervals, 20680 minTime: a.props.minTime, 20681 maxTime: a.props.maxTime, 20682 excludeTimes: a.props.excludeTimes, 20683 filterTime: a.props.filterTime, 20684 timeCaption: a.props.timeCaption, 20685 todayButton: a.props.todayButton, 20686 showMonthDropdown: a.props.showMonthDropdown, 20687 showMonthYearDropdown: a.props.showMonthYearDropdown, 20688 showYearDropdown: a.props.showYearDropdown, 20689 withPortal: a.props.withPortal, 20690 monthRef: a.state.monthContainer, 20691 injectTimes: a.props.injectTimes, 20692 locale: a.props.locale, 20693 handleOnKeyDown: a.props.handleOnKeyDown, 20694 showTimeSelectOnly: a.props.showTimeSelectOnly 20695 }); 20696 }), Mt(xt(a), "renderInputTimeSection", function () { 20697 var e = new Date(a.props.selected), 20698 t = Kt(e) && Boolean(a.props.selected) ? "".concat(Er(e.getHours()), ":").concat(Er(e.getMinutes())) : ""; 20699 if (a.props.showTimeInput) return he.default.createElement(Ur, { 20700 date: e, 20701 timeString: t, 20702 timeInputLabel: a.props.timeInputLabel, 20703 onChange: a.props.onTimeChange, 20704 customTimeInput: a.props.customTimeInput 20705 }); 20706 }), Mt(xt(a), "renderAriaLiveRegion", function () { 20707 var e, 20708 t = Nr(a.state.date, a.props.yearItemNumber), 20709 r = t.startPeriod, 20710 n = t.endPeriod; 20711 return e = a.props.showYearPicker ? "".concat(r, " - ").concat(n) : a.props.showMonthYearPicker || a.props.showQuarterYearPicker ? qe.default(a.state.date) : "".concat(sr(Fe.default(a.state.date), a.props.locale), " ").concat(qe.default(a.state.date)), he.default.createElement("span", { 20712 role: "alert", 20713 "aria-live": "polite", 20714 className: "react-datepicker__aria-live" 20715 }, a.state.isRenderAriaLiveMessage && e); 20716 }), Mt(xt(a), "renderChildren", function () { 20717 if (a.props.children) return he.default.createElement("div", { 20718 className: "react-datepicker__children-container" 20719 }, a.props.children); 20720 }), a.containerRef = he.default.createRef(), a.state = { 20721 date: a.getDateInView(), 20722 selectingDate: null, 20723 monthContainer: null, 20724 isRenderAriaLiveMessage: !1 20725 }, a; 20726 } 20727 20728 return _t(r, [{ 20729 key: "componentDidMount", 20730 value: function value() { 20731 var e = this; 20732 this.props.showTimeSelect && (this.assignMonthContainer = void e.setState({ 20733 monthContainer: e.monthContainer 20734 })); 20735 } 20736 }, { 20737 key: "componentDidUpdate", 20738 value: function value(e) { 20739 !this.props.preSelection || tr(this.props.preSelection, e.preSelection) && this.props.monthSelectedIn === e.monthSelectedIn ? this.props.openToDate && !tr(this.props.openToDate, e.openToDate) && this.setState({ 20740 date: this.props.openToDate 20741 }) : this.setState({ 20742 date: this.props.preSelection 20743 }); 20744 } 20745 }, { 20746 key: "render", 20747 value: function value() { 20748 var e = this.props.container || $r; 20749 return he.default.createElement("div", { 20750 ref: this.containerRef 20751 }, he.default.createElement(e, { 20752 className: me.default("react-datepicker", this.props.className, { 20753 "react-datepicker--time-only": this.props.showTimeSelectOnly 20754 }), 20755 showPopperArrow: this.props.showPopperArrow, 20756 arrowProps: this.props.arrowProps 20757 }, this.renderAriaLiveRegion(), this.renderPreviousButton(), this.renderNextButton(), this.renderMonths(), this.renderYears(), this.renderTodayButton(), this.renderTimeSection(), this.renderInputTimeSection(), this.renderChildren())); 20758 } 20759 }], [{ 20760 key: "defaultProps", 20761 get: function get() { 20762 return { 20763 onDropdownFocus: function onDropdownFocus() {}, 20764 monthsShown: 1, 20765 monthSelectedIn: 0, 20766 forceShowMonthNavigation: !1, 20767 timeCaption: "Time", 20768 previousYearButtonLabel: "Previous Year", 20769 nextYearButtonLabel: "Next Year", 20770 previousMonthButtonLabel: "Previous Month", 20771 nextMonthButtonLabel: "Next Month", 20772 customTimeInput: null, 20773 yearItemNumber: Ft 20774 }; 20775 } 20776 }]), r; 20777 }(he.default.Component), 20778 Jr = function (e) { 20779 Et(r, e); 20780 var t = It(r); 20781 20782 function r(e) { 20783 var a; 20784 return St(this, r), (a = t.call(this, e)).el = document.createElement("div"), a; 20785 } 20786 20787 return _t(r, [{ 20788 key: "componentDidMount", 20789 value: function value() { 20790 this.portalRoot = (this.props.portalHost || document).getElementById(this.props.portalId), this.portalRoot || (this.portalRoot = document.createElement("div"), this.portalRoot.setAttribute("id", this.props.portalId), (this.props.portalHost || document.body).appendChild(this.portalRoot)), this.portalRoot.appendChild(this.el); 20791 } 20792 }, { 20793 key: "componentWillUnmount", 20794 value: function value() { 20795 this.portalRoot.removeChild(this.el); 20796 } 20797 }, { 20798 key: "render", 20799 value: function value() { 20800 return Dt.default.createPortal(this.props.children, this.el); 20801 } 20802 }]), r; 20803 }(he.default.Component), 20804 Xr = function Xr(e) { 20805 return !e.disabled && -1 !== e.tabIndex; 20806 }, 20807 Zr = function (e) { 20808 Et(r, e); 20809 var t = It(r); 20810 20811 function r(e) { 20812 var a; 20813 return St(this, r), Mt(xt(a = t.call(this, e)), "getTabChildren", function () { 20814 return Array.prototype.slice.call(a.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"), 1, -1).filter(Xr); 20815 }), Mt(xt(a), "handleFocusStart", function (e) { 20816 var t = a.getTabChildren(); 20817 t && t.length > 1 && t[t.length - 1].focus(); 20818 }), Mt(xt(a), "handleFocusEnd", function (e) { 20819 var t = a.getTabChildren(); 20820 t && t.length > 1 && t[0].focus(); 20821 }), a.tabLoopRef = he.default.createRef(), a; 20822 } 20823 20824 return _t(r, [{ 20825 key: "render", 20826 value: function value() { 20827 return this.props.enableTabLoop ? he.default.createElement("div", { 20828 className: "react-datepicker__tab-loop", 20829 ref: this.tabLoopRef 20830 }, he.default.createElement("div", { 20831 className: "react-datepicker__tab-loop__start", 20832 tabIndex: "0", 20833 onFocus: this.handleFocusStart 20834 }), this.props.children, he.default.createElement("div", { 20835 className: "react-datepicker__tab-loop__end", 20836 tabIndex: "0", 20837 onFocus: this.handleFocusEnd 20838 })) : this.props.children; 20839 } 20840 }], [{ 20841 key: "defaultProps", 20842 get: function get() { 20843 return { 20844 enableTabLoop: !0 20845 }; 20846 } 20847 }]), r; 20848 }(he.default.Component), 20849 ea = function (e) { 20850 Et(r, e); 20851 var t = It(r); 20852 20853 function r() { 20854 return St(this, r), t.apply(this, arguments); 20855 } 20856 20857 return _t(r, [{ 20858 key: "render", 20859 value: function value() { 20860 var e, 20861 t = this.props, 20862 r = t.className, 20863 a = t.wrapperClassName, 20864 n = t.hidePopper, 20865 o = t.popperComponent, 20866 s = t.popperModifiers, 20867 i = t.popperPlacement, 20868 p = t.popperProps, 20869 l = t.targetComponent, 20870 d = t.enableTabLoop, 20871 c = t.popperOnKeyDown, 20872 u = t.portalId, 20873 f = t.portalHost; 20874 20875 if (!n) { 20876 var h = me.default("react-datepicker-popper", r); 20877 e = he.default.createElement(ce.Popper, Pt({ 20878 modifiers: s, 20879 placement: i 20880 }, p), function (e) { 20881 var t = e.ref, 20882 r = e.style, 20883 a = e.placement, 20884 n = e.arrowProps; 20885 return he.default.createElement(Zr, { 20886 enableTabLoop: d 20887 }, he.default.createElement("div", { 20888 ref: t, 20889 style: r, 20890 className: h, 20891 "data-placement": a, 20892 onKeyDown: c 20893 }, he.default.cloneElement(o, { 20894 arrowProps: n 20895 }))); 20896 }); 20897 } 20898 20899 this.props.popperContainer && (e = he.default.createElement(this.props.popperContainer, {}, e)), u && !n && (e = he.default.createElement(Jr, { 20900 portalId: u, 20901 portalHost: f 20902 }, e)); 20903 var m = me.default("react-datepicker-wrapper", a); 20904 return he.default.createElement(ce.Manager, { 20905 className: "react-datepicker-manager" 20906 }, he.default.createElement(ce.Reference, null, function (e) { 20907 var t = e.ref; 20908 return he.default.createElement("div", { 20909 ref: t, 20910 className: m 20911 }, l); 20912 }), e); 20913 } 20914 }], [{ 20915 key: "defaultProps", 20916 get: function get() { 20917 return { 20918 hidePopper: !0, 20919 popperModifiers: [], 20920 popperProps: {}, 20921 popperPlacement: "bottom-start" 20922 }; 20923 } 20924 }]), r; 20925 }(he.default.Component), 20926 ta = "react-datepicker-ignore-onclickoutside", 20927 ra = vt.default(Gr); 20928 20929 var aa = "Date input not valid.", 20930 na = function (e) { 20931 Et(r, e); 20932 var t = It(r); 20933 20934 function r(e) { 20935 var a; 20936 return St(this, r), Mt(xt(a = t.call(this, e)), "getPreSelection", function () { 20937 return a.props.openToDate ? a.props.openToDate : a.props.selectsEnd && a.props.startDate ? a.props.startDate : a.props.selectsStart && a.props.endDate ? a.props.endDate : At(); 20938 }), Mt(xt(a), "calcInitialState", function () { 20939 var e, 20940 t = a.getPreSelection(), 20941 r = Cr(a.props), 20942 n = _r(a.props), 20943 o = r && ut.default(t, Xe.default(r)) ? r : n && ct.default(t, at.default(n)) ? n : t; 20944 20945 return { 20946 open: a.props.startOpen || !1, 20947 preventFocus: !1, 20948 preSelection: null !== (e = a.props.selectsRange ? a.props.startDate : a.props.selected) && void 0 !== e ? e : o, 20949 highlightDates: Mr(a.props.highlightDates), 20950 focused: !1, 20951 shouldFocusDayInline: !1, 20952 isRenderAriaLiveMessage: !1 20953 }; 20954 }), Mt(xt(a), "clearPreventFocusTimeout", function () { 20955 a.preventFocusTimeout && clearTimeout(a.preventFocusTimeout); 20956 }), Mt(xt(a), "setFocus", function () { 20957 a.input && a.input.focus && a.input.focus({ 20958 preventScroll: !0 20959 }); 20960 }), Mt(xt(a), "setBlur", function () { 20961 a.input && a.input.blur && a.input.blur(), a.cancelFocusInput(); 20962 }), Mt(xt(a), "setOpen", function (e) { 20963 var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; 20964 a.setState({ 20965 open: e, 20966 preSelection: e && a.state.open ? a.state.preSelection : a.calcInitialState().preSelection, 20967 lastPreSelectChange: sa 20968 }, function () { 20969 e || a.setState(function (e) { 20970 return { 20971 focused: !!t && e.focused 20972 }; 20973 }, function () { 20974 !t && a.setBlur(), a.setState({ 20975 inputValue: null 20976 }); 20977 }); 20978 }); 20979 }), Mt(xt(a), "inputOk", function () { 20980 return ye.default(a.state.preSelection); 20981 }), Mt(xt(a), "isCalendarOpen", function () { 20982 return void 0 === a.props.open ? a.state.open && !a.props.disabled && !a.props.readOnly : a.props.open; 20983 }), Mt(xt(a), "handleFocus", function (e) { 20984 a.state.preventFocus || (a.props.onFocus(e), a.props.preventOpenOnFocus || a.props.readOnly || a.setOpen(!0)), a.setState({ 20985 focused: !0 20986 }); 20987 }), Mt(xt(a), "cancelFocusInput", function () { 20988 clearTimeout(a.inputFocusTimeout), a.inputFocusTimeout = null; 20989 }), Mt(xt(a), "deferFocusInput", function () { 20990 a.cancelFocusInput(), a.inputFocusTimeout = setTimeout(function () { 20991 return a.setFocus(); 20992 }, 1); 20993 }), Mt(xt(a), "handleDropdownFocus", function () { 20994 a.cancelFocusInput(); 20995 }), Mt(xt(a), "handleBlur", function (e) { 20996 (!a.state.open || a.props.withPortal || a.props.showTimeInput) && a.props.onBlur(e), a.setState({ 20997 focused: !1 20998 }); 20999 }), Mt(xt(a), "handleCalendarClickOutside", function (e) { 21000 a.props.inline || a.setOpen(!1), a.props.onClickOutside(e), a.props.withPortal && e.preventDefault(); 21001 }), Mt(xt(a), "handleChange", function () { 21002 for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) { 21003 t[r] = arguments[r]; 21004 } 21005 21006 var n = t[0]; 21007 21008 if (!a.props.onChangeRaw || (a.props.onChangeRaw.apply(xt(a), t), "function" == typeof n.isDefaultPrevented && !n.isDefaultPrevented())) { 21009 a.setState({ 21010 inputValue: n.target.value, 21011 lastPreSelectChange: oa 21012 }); 21013 var o = qt(n.target.value, a.props.dateFormat, a.props.locale, a.props.strictParsing, a.props.selected, a.props.minDate); 21014 a.props.showTimeSelectOnly && !tr(o, a.props.selected) && (o = null == o ? gt.default(a.props.selected, { 21015 hours: Ie.default(a.props.selected), 21016 minutes: Ye.default(a.props.selected), 21017 seconds: xe.default(a.props.selected) 21018 }) : gt.default(a.props.selected, { 21019 hours: Ie.default(o), 21020 minutes: Ye.default(o), 21021 seconds: xe.default(o) 21022 })), !o && n.target.value || a.setSelected(o, n, !0); 21023 } 21024 }), Mt(xt(a), "handleSelect", function (e, t, r) { 21025 if (a.setState({ 21026 preventFocus: !0 21027 }, function () { 21028 return a.preventFocusTimeout = setTimeout(function () { 21029 return a.setState({ 21030 preventFocus: !1 21031 }); 21032 }, 50), a.preventFocusTimeout; 21033 }), a.props.onChangeRaw && a.props.onChangeRaw(t), a.setSelected(e, t, !1, r), a.setState({ 21034 isRenderAriaLiveMessage: !0 21035 }), !a.props.shouldCloseOnSelect || a.props.showTimeSelect) a.setPreSelection(e);else if (!a.props.inline) { 21036 a.props.selectsRange || a.setOpen(!1); 21037 var n = a.props, 21038 o = n.startDate, 21039 s = n.endDate; 21040 !o || s || ut.default(e, o) || a.setOpen(!1); 21041 } 21042 }), Mt(xt(a), "setSelected", function (e, t, r, n) { 21043 var o = e; 21044 21045 if (a.props.showYearPicker) { 21046 if (null !== o && hr(qe.default(o), a.props)) return; 21047 } else if (a.props.showMonthYearPicker) { 21048 if (null !== o && cr(o, a.props)) return; 21049 } else if (null !== o && lr(o, a.props)) return; 21050 21051 var s = a.props, 21052 i = s.onChange, 21053 p = s.selectsRange, 21054 l = s.startDate, 21055 d = s.endDate; 21056 if (!rr(a.props.selected, o) || a.props.allowSameDay || p) if (null !== o && (!a.props.selected || r && (a.props.showTimeSelect || a.props.showTimeSelectOnly || a.props.showTimeInput) || (o = Qt(o, { 21057 hour: Ie.default(a.props.selected), 21058 minute: Ye.default(a.props.selected), 21059 second: xe.default(a.props.selected) 21060 })), a.props.inline || a.setState({ 21061 preSelection: o 21062 }), a.props.focusSelectedMonth || a.setState({ 21063 monthSelectedIn: n 21064 })), p) { 21065 var c = l && !d, 21066 u = l && d; 21067 !l && !d ? i([o, null], t) : c && (ut.default(o, l) ? i([o, null], t) : i([l, o], t)), u && i([o, null], t); 21068 } else i(o, t); 21069 r || (a.props.onSelect(o, t), a.setState({ 21070 inputValue: null 21071 })); 21072 }), Mt(xt(a), "setPreSelection", function (e) { 21073 var t = void 0 !== a.props.minDate, 21074 r = void 0 !== a.props.maxDate, 21075 n = !0; 21076 21077 if (e) { 21078 var o = Xe.default(e); 21079 if (t && r) n = ar(e, a.props.minDate, a.props.maxDate);else if (t) { 21080 var s = Xe.default(a.props.minDate); 21081 n = ct.default(e, s) || rr(o, s); 21082 } else if (r) { 21083 var i = at.default(a.props.maxDate); 21084 n = ut.default(e, i) || rr(o, i); 21085 } 21086 } 21087 21088 n && a.setState({ 21089 preSelection: e 21090 }); 21091 }), Mt(xt(a), "handleTimeChange", function (e) { 21092 var t = Qt(a.props.selected ? a.props.selected : a.getPreSelection(), { 21093 hour: Ie.default(e), 21094 minute: Ye.default(e) 21095 }); 21096 a.setState({ 21097 preSelection: t 21098 }), a.props.onChange(t), a.props.shouldCloseOnSelect && a.setOpen(!1), a.props.showTimeInput && a.setOpen(!0), (a.props.showTimeSelectOnly || a.props.showTimeSelect) && a.setState({ 21099 isRenderAriaLiveMessage: !0 21100 }), a.setState({ 21101 inputValue: null 21102 }); 21103 }), Mt(xt(a), "onInputClick", function () { 21104 a.props.disabled || a.props.readOnly || a.setOpen(!0), a.props.onInputClick(); 21105 }), Mt(xt(a), "onInputKeyDown", function (e) { 21106 a.props.onKeyDown(e); 21107 var t = e.key; 21108 21109 if (a.state.open || a.props.inline || a.props.preventOpenOnFocus) { 21110 if (a.state.open) { 21111 if ("ArrowDown" === t || "ArrowUp" === t) { 21112 e.preventDefault(); 21113 var r = a.calendar.componentNode && a.calendar.componentNode.querySelector('.react-datepicker__day[tabindex="0"]'); 21114 return void (r && r.focus({ 21115 preventScroll: !0 21116 })); 21117 } 21118 21119 var n = At(a.state.preSelection); 21120 "Enter" === t ? (e.preventDefault(), a.inputOk() && a.state.lastPreSelectChange === sa ? (a.handleSelect(n, e), !a.props.shouldCloseOnSelect && a.setPreSelection(n)) : a.setOpen(!1)) : "Escape" === t && (e.preventDefault(), a.setOpen(!1)), a.inputOk() || a.props.onInputError({ 21121 code: 1, 21122 msg: aa 21123 }); 21124 } 21125 } else "ArrowDown" !== t && "ArrowUp" !== t && "Enter" !== t || a.onInputClick(); 21126 }), Mt(xt(a), "onPortalKeyDown", function (e) { 21127 "Escape" === e.key && (e.preventDefault(), a.setState({ 21128 preventFocus: !0 21129 }, function () { 21130 a.setOpen(!1), setTimeout(function () { 21131 a.setFocus(), a.setState({ 21132 preventFocus: !1 21133 }); 21134 }); 21135 })); 21136 }), Mt(xt(a), "onDayKeyDown", function (e) { 21137 a.props.onKeyDown(e); 21138 var t = e.key, 21139 r = At(a.state.preSelection); 21140 if ("Enter" === t) e.preventDefault(), a.handleSelect(r, e), !a.props.shouldCloseOnSelect && a.setPreSelection(r);else if ("Escape" === t) e.preventDefault(), a.setOpen(!1), a.inputOk() || a.props.onInputError({ 21141 code: 1, 21142 msg: aa 21143 });else if (!a.props.disabledKeyboardNavigation) { 21144 var n; 21145 21146 switch (t) { 21147 case "ArrowLeft": 21148 n = Me.default(r, 1); 21149 break; 21150 21151 case "ArrowRight": 21152 n = ke.default(r, 1); 21153 break; 21154 21155 case "ArrowUp": 21156 n = Pe.default(r, 1); 21157 break; 21158 21159 case "ArrowDown": 21160 n = be.default(r, 1); 21161 break; 21162 21163 case "PageUp": 21164 n = Ee.default(r, 1); 21165 break; 21166 21167 case "PageDown": 21168 n = Se.default(r, 1); 21169 break; 21170 21171 case "Home": 21172 n = Oe.default(r, 1); 21173 break; 21174 21175 case "End": 21176 n = _e.default(r, 1); 21177 } 21178 21179 if (!n) return void (a.props.onInputError && a.props.onInputError({ 21180 code: 1, 21181 msg: aa 21182 })); 21183 21184 if (e.preventDefault(), a.setState({ 21185 lastPreSelectChange: sa 21186 }), a.props.adjustDateOnChange && a.setSelected(n), a.setPreSelection(n), a.props.inline) { 21187 var o = Fe.default(r), 21188 s = Fe.default(n), 21189 i = qe.default(r), 21190 p = qe.default(n); 21191 o !== s || i !== p ? a.setState({ 21192 shouldFocusDayInline: !0 21193 }) : a.setState({ 21194 shouldFocusDayInline: !1 21195 }); 21196 } 21197 } 21198 }), Mt(xt(a), "onPopperKeyDown", function (e) { 21199 "Escape" === e.key && (e.preventDefault(), a.setState({ 21200 preventFocus: !0 21201 }, function () { 21202 a.setOpen(!1), setTimeout(function () { 21203 a.setFocus(), a.setState({ 21204 preventFocus: !1 21205 }); 21206 }); 21207 })); 21208 }), Mt(xt(a), "onClearClick", function (e) { 21209 e && e.preventDefault && e.preventDefault(), a.props.selectsRange ? a.props.onChange([null, null], e) : a.props.onChange(null, e), a.setState({ 21210 inputValue: null 21211 }); 21212 }), Mt(xt(a), "clear", function () { 21213 a.onClearClick(); 21214 }), Mt(xt(a), "onScroll", function (e) { 21215 "boolean" == typeof a.props.closeOnScroll && a.props.closeOnScroll ? e.target !== document && e.target !== document.documentElement && e.target !== document.body || a.setOpen(!1) : "function" == typeof a.props.closeOnScroll && a.props.closeOnScroll(e) && a.setOpen(!1); 21216 }), Mt(xt(a), "renderCalendar", function () { 21217 return a.props.inline || a.isCalendarOpen() ? he.default.createElement(ra, { 21218 ref: function ref(e) { 21219 a.calendar = e; 21220 }, 21221 locale: a.props.locale, 21222 calendarStartDay: a.props.calendarStartDay, 21223 chooseDayAriaLabelPrefix: a.props.chooseDayAriaLabelPrefix, 21224 disabledDayAriaLabelPrefix: a.props.disabledDayAriaLabelPrefix, 21225 weekAriaLabelPrefix: a.props.weekAriaLabelPrefix, 21226 monthAriaLabelPrefix: a.props.monthAriaLabelPrefix, 21227 adjustDateOnChange: a.props.adjustDateOnChange, 21228 setOpen: a.setOpen, 21229 shouldCloseOnSelect: a.props.shouldCloseOnSelect, 21230 dateFormat: a.props.dateFormatCalendar, 21231 useWeekdaysShort: a.props.useWeekdaysShort, 21232 formatWeekDay: a.props.formatWeekDay, 21233 dropdownMode: a.props.dropdownMode, 21234 selected: a.props.selected, 21235 preSelection: a.state.preSelection, 21236 onSelect: a.handleSelect, 21237 onWeekSelect: a.props.onWeekSelect, 21238 openToDate: a.props.openToDate, 21239 minDate: a.props.minDate, 21240 maxDate: a.props.maxDate, 21241 selectsStart: a.props.selectsStart, 21242 selectsEnd: a.props.selectsEnd, 21243 selectsRange: a.props.selectsRange, 21244 startDate: a.props.startDate, 21245 endDate: a.props.endDate, 21246 excludeDates: a.props.excludeDates, 21247 excludeDateIntervals: a.props.excludeDateIntervals, 21248 filterDate: a.props.filterDate, 21249 onClickOutside: a.handleCalendarClickOutside, 21250 formatWeekNumber: a.props.formatWeekNumber, 21251 highlightDates: a.state.highlightDates, 21252 includeDates: a.props.includeDates, 21253 includeDateIntervals: a.props.includeDateIntervals, 21254 includeTimes: a.props.includeTimes, 21255 injectTimes: a.props.injectTimes, 21256 inline: a.props.inline, 21257 shouldFocusDayInline: a.state.shouldFocusDayInline, 21258 peekNextMonth: a.props.peekNextMonth, 21259 showMonthDropdown: a.props.showMonthDropdown, 21260 showPreviousMonths: a.props.showPreviousMonths, 21261 useShortMonthInDropdown: a.props.useShortMonthInDropdown, 21262 showMonthYearDropdown: a.props.showMonthYearDropdown, 21263 showWeekNumbers: a.props.showWeekNumbers, 21264 showYearDropdown: a.props.showYearDropdown, 21265 withPortal: a.props.withPortal, 21266 forceShowMonthNavigation: a.props.forceShowMonthNavigation, 21267 showDisabledMonthNavigation: a.props.showDisabledMonthNavigation, 21268 scrollableYearDropdown: a.props.scrollableYearDropdown, 21269 scrollableMonthYearDropdown: a.props.scrollableMonthYearDropdown, 21270 todayButton: a.props.todayButton, 21271 weekLabel: a.props.weekLabel, 21272 outsideClickIgnoreClass: ta, 21273 fixedHeight: a.props.fixedHeight, 21274 monthsShown: a.props.monthsShown, 21275 monthSelectedIn: a.state.monthSelectedIn, 21276 onDropdownFocus: a.handleDropdownFocus, 21277 onMonthChange: a.props.onMonthChange, 21278 onYearChange: a.props.onYearChange, 21279 dayClassName: a.props.dayClassName, 21280 weekDayClassName: a.props.weekDayClassName, 21281 monthClassName: a.props.monthClassName, 21282 timeClassName: a.props.timeClassName, 21283 showTimeSelect: a.props.showTimeSelect, 21284 showTimeSelectOnly: a.props.showTimeSelectOnly, 21285 onTimeChange: a.handleTimeChange, 21286 timeFormat: a.props.timeFormat, 21287 timeIntervals: a.props.timeIntervals, 21288 minTime: a.props.minTime, 21289 maxTime: a.props.maxTime, 21290 excludeTimes: a.props.excludeTimes, 21291 filterTime: a.props.filterTime, 21292 timeCaption: a.props.timeCaption, 21293 className: a.props.calendarClassName, 21294 container: a.props.calendarContainer, 21295 yearItemNumber: a.props.yearItemNumber, 21296 yearDropdownItemNumber: a.props.yearDropdownItemNumber, 21297 previousMonthAriaLabel: a.props.previousMonthAriaLabel, 21298 previousMonthButtonLabel: a.props.previousMonthButtonLabel, 21299 nextMonthAriaLabel: a.props.nextMonthAriaLabel, 21300 nextMonthButtonLabel: a.props.nextMonthButtonLabel, 21301 previousYearAriaLabel: a.props.previousYearAriaLabel, 21302 previousYearButtonLabel: a.props.previousYearButtonLabel, 21303 nextYearAriaLabel: a.props.nextYearAriaLabel, 21304 nextYearButtonLabel: a.props.nextYearButtonLabel, 21305 timeInputLabel: a.props.timeInputLabel, 21306 disabledKeyboardNavigation: a.props.disabledKeyboardNavigation, 21307 renderCustomHeader: a.props.renderCustomHeader, 21308 popperProps: a.props.popperProps, 21309 renderDayContents: a.props.renderDayContents, 21310 onDayMouseEnter: a.props.onDayMouseEnter, 21311 onMonthMouseLeave: a.props.onMonthMouseLeave, 21312 selectsDisabledDaysInRange: a.props.selectsDisabledDaysInRange, 21313 showTimeInput: a.props.showTimeInput, 21314 showMonthYearPicker: a.props.showMonthYearPicker, 21315 showFullMonthYearPicker: a.props.showFullMonthYearPicker, 21316 showTwoColumnMonthYearPicker: a.props.showTwoColumnMonthYearPicker, 21317 showFourColumnMonthYearPicker: a.props.showFourColumnMonthYearPicker, 21318 showYearPicker: a.props.showYearPicker, 21319 showQuarterYearPicker: a.props.showQuarterYearPicker, 21320 showPopperArrow: a.props.showPopperArrow, 21321 excludeScrollbar: a.props.excludeScrollbar, 21322 handleOnKeyDown: a.props.onKeyDown, 21323 handleOnDayKeyDown: a.onDayKeyDown, 21324 isInputFocused: a.state.focused, 21325 customTimeInput: a.props.customTimeInput, 21326 setPreSelection: a.setPreSelection 21327 }, a.props.children) : null; 21328 }), Mt(xt(a), "renderAriaLiveRegion", function () { 21329 var e, 21330 t = a.props, 21331 r = t.dateFormat, 21332 n = t.locale, 21333 o = a.props.showTimeInput || a.props.showTimeSelect ? "PPPPp" : "PPPP"; 21334 return e = a.props.selectsRange ? "Selected start date: ".concat(Bt(a.props.startDate, { 21335 dateFormat: o, 21336 locale: n 21337 }), ". ").concat(a.props.endDate ? "End date: " + Bt(a.props.endDate, { 21338 dateFormat: o, 21339 locale: n 21340 }) : "") : a.props.showTimeSelectOnly ? "Selected time: ".concat(Bt(a.props.selected, { 21341 dateFormat: r, 21342 locale: n 21343 })) : a.props.showYearPicker ? "Selected year: ".concat(Bt(a.props.selected, { 21344 dateFormat: "yyyy", 21345 locale: n 21346 })) : a.props.showMonthYearPicker ? "Selected month: ".concat(Bt(a.props.selected, { 21347 dateFormat: "MMMM yyyy", 21348 locale: n 21349 })) : a.props.showQuarterYearPicker ? "Selected quarter: ".concat(Bt(a.props.selected, { 21350 dateFormat: "yyyy, QQQ", 21351 locale: n 21352 })) : "Selected date: ".concat(Bt(a.props.selected, { 21353 dateFormat: o, 21354 locale: n 21355 })), he.default.createElement("span", { 21356 role: "alert", 21357 "aria-live": "polite", 21358 className: "react-datepicker__aria-live" 21359 }, a.state.isRenderAriaLiveMessage && e); 21360 }), Mt(xt(a), "renderDateInput", function () { 21361 var e, 21362 t = me.default(a.props.className, Mt({}, ta, a.state.open)), 21363 r = a.props.customInput || he.default.createElement("input", { 21364 type: "text" 21365 }), 21366 n = a.props.customInputRef || "ref", 21367 o = "string" == typeof a.props.value ? a.props.value : "string" == typeof a.state.inputValue ? a.state.inputValue : a.props.selectsRange ? function (e, t, r) { 21368 if (!e) return ""; 21369 var a = Bt(e, r), 21370 n = t ? Bt(t, r) : ""; 21371 return "".concat(a, " - ").concat(n); 21372 }(a.props.startDate, a.props.endDate, a.props) : Bt(a.props.selected, a.props); 21373 return he.default.cloneElement(r, (Mt(e = {}, n, function (e) { 21374 a.input = e; 21375 }), Mt(e, "value", o), Mt(e, "onBlur", a.handleBlur), Mt(e, "onChange", a.handleChange), Mt(e, "onClick", a.onInputClick), Mt(e, "onFocus", a.handleFocus), Mt(e, "onKeyDown", a.onInputKeyDown), Mt(e, "id", a.props.id), Mt(e, "name", a.props.name), Mt(e, "form", a.props.form), Mt(e, "autoFocus", a.props.autoFocus), Mt(e, "placeholder", a.props.placeholderText), Mt(e, "disabled", a.props.disabled), Mt(e, "autoComplete", a.props.autoComplete), Mt(e, "className", me.default(r.props.className, t)), Mt(e, "title", a.props.title), Mt(e, "readOnly", a.props.readOnly), Mt(e, "required", a.props.required), Mt(e, "tabIndex", a.props.tabIndex), Mt(e, "aria-describedby", a.props.ariaDescribedBy), Mt(e, "aria-invalid", a.props.ariaInvalid), Mt(e, "aria-labelledby", a.props.ariaLabelledBy), Mt(e, "aria-required", a.props.ariaRequired), e)); 21376 }), Mt(xt(a), "renderClearButton", function () { 21377 var e = a.props, 21378 t = e.isClearable, 21379 r = e.selected, 21380 n = e.startDate, 21381 o = e.endDate, 21382 s = e.clearButtonTitle, 21383 i = e.clearButtonClassName, 21384 p = void 0 === i ? "" : i, 21385 l = e.ariaLabelClose, 21386 d = void 0 === l ? "Close" : l; 21387 return !t || null == r && null == n && null == o ? null : he.default.createElement("button", { 21388 type: "button", 21389 className: "react-datepicker__close-icon ".concat(p).trim(), 21390 "aria-label": d, 21391 onClick: a.onClearClick, 21392 title: s, 21393 tabIndex: -1 21394 }); 21395 }), a.state = a.calcInitialState(), a; 21396 } 21397 21398 return _t(r, [{ 21399 key: "componentDidMount", 21400 value: function value() { 21401 window.addEventListener("scroll", this.onScroll, !0); 21402 } 21403 }, { 21404 key: "componentDidUpdate", 21405 value: function value(e, t) { 21406 var r, a; 21407 e.inline && (r = e.selected, a = this.props.selected, r && a ? Fe.default(r) !== Fe.default(a) || qe.default(r) !== qe.default(a) : r !== a) && this.setPreSelection(this.props.selected), void 0 !== this.state.monthSelectedIn && e.monthsShown !== this.props.monthsShown && this.setState({ 21408 monthSelectedIn: 0 21409 }), e.highlightDates !== this.props.highlightDates && this.setState({ 21410 highlightDates: Mr(this.props.highlightDates) 21411 }), t.focused || rr(e.selected, this.props.selected) || this.setState({ 21412 inputValue: null 21413 }), t.open !== this.state.open && (!1 === t.open && !0 === this.state.open && this.props.onCalendarOpen(), !0 === t.open && !1 === this.state.open && this.props.onCalendarClose()); 21414 } 21415 }, { 21416 key: "componentWillUnmount", 21417 value: function value() { 21418 this.clearPreventFocusTimeout(), window.removeEventListener("scroll", this.onScroll, !0); 21419 } 21420 }, { 21421 key: "renderInputContainer", 21422 value: function value() { 21423 return he.default.createElement("div", { 21424 className: "react-datepicker__input-container" 21425 }, this.renderAriaLiveRegion(), this.renderDateInput(), this.renderClearButton()); 21426 } 21427 }, { 21428 key: "render", 21429 value: function value() { 21430 var e = this.renderCalendar(); 21431 if (this.props.inline) return e; 21432 21433 if (this.props.withPortal) { 21434 var t = this.state.open ? he.default.createElement(Zr, { 21435 enableTabLoop: this.props.enableTabLoop 21436 }, he.default.createElement("div", { 21437 className: "react-datepicker__portal", 21438 tabIndex: -1, 21439 onKeyDown: this.onPortalKeyDown 21440 }, e)) : null; 21441 return this.state.open && this.props.portalId && (t = he.default.createElement(Jr, { 21442 portalId: this.props.portalId, 21443 portalHost: this.props.portalHost 21444 }, t)), he.default.createElement("div", null, this.renderInputContainer(), t); 21445 } 21446 21447 return he.default.createElement(ea, { 21448 className: this.props.popperClassName, 21449 wrapperClassName: this.props.wrapperClassName, 21450 hidePopper: !this.isCalendarOpen(), 21451 portalId: this.props.portalId, 21452 portalHost: this.props.portalHost, 21453 popperModifiers: this.props.popperModifiers, 21454 targetComponent: this.renderInputContainer(), 21455 popperContainer: this.props.popperContainer, 21456 popperComponent: e, 21457 popperPlacement: this.props.popperPlacement, 21458 popperProps: this.props.popperProps, 21459 popperOnKeyDown: this.onPopperKeyDown, 21460 enableTabLoop: this.props.enableTabLoop 21461 }); 21462 } 21463 }], [{ 21464 key: "defaultProps", 21465 get: function get() { 21466 return { 21467 allowSameDay: !1, 21468 dateFormat: "MM/dd/yyyy", 21469 dateFormatCalendar: "LLLL yyyy", 21470 onChange: function onChange() {}, 21471 disabled: !1, 21472 disabledKeyboardNavigation: !1, 21473 dropdownMode: "scroll", 21474 onFocus: function onFocus() {}, 21475 onBlur: function onBlur() {}, 21476 onKeyDown: function onKeyDown() {}, 21477 onInputClick: function onInputClick() {}, 21478 onSelect: function onSelect() {}, 21479 onClickOutside: function onClickOutside() {}, 21480 onMonthChange: function onMonthChange() {}, 21481 onCalendarOpen: function onCalendarOpen() {}, 21482 onCalendarClose: function onCalendarClose() {}, 21483 preventOpenOnFocus: !1, 21484 onYearChange: function onYearChange() {}, 21485 onInputError: function onInputError() {}, 21486 monthsShown: 1, 21487 readOnly: !1, 21488 withPortal: !1, 21489 selectsDisabledDaysInRange: !1, 21490 shouldCloseOnSelect: !0, 21491 showTimeSelect: !1, 21492 showTimeInput: !1, 21493 showPreviousMonths: !1, 21494 showMonthYearPicker: !1, 21495 showFullMonthYearPicker: !1, 21496 showTwoColumnMonthYearPicker: !1, 21497 showFourColumnMonthYearPicker: !1, 21498 showYearPicker: !1, 21499 showQuarterYearPicker: !1, 21500 strictParsing: !1, 21501 timeIntervals: 30, 21502 timeCaption: "Time", 21503 previousMonthAriaLabel: "Previous Month", 21504 previousMonthButtonLabel: "Previous Month", 21505 nextMonthAriaLabel: "Next Month", 21506 nextMonthButtonLabel: "Next Month", 21507 previousYearAriaLabel: "Previous Year", 21508 previousYearButtonLabel: "Previous Year", 21509 nextYearAriaLabel: "Next Year", 21510 nextYearButtonLabel: "Next Year", 21511 timeInputLabel: "Time", 21512 enableTabLoop: !0, 21513 yearItemNumber: Ft, 21514 renderDayContents: function renderDayContents(e) { 21515 return e; 21516 }, 21517 focusSelectedMonth: !1, 21518 showPopperArrow: !0, 21519 excludeScrollbar: !0, 21520 customTimeInput: null, 21521 calendarStartDay: void 0 21522 }; 21523 } 21524 }]), r; 21525 }(he.default.Component), 21526 oa = "input", 21527 sa = "navigate"; 21528 21529 e.CalendarContainer = $r, e.default = na, e.getDefaultLocale = nr, e.registerLocale = function (e, t) { 21530 var r = "undefined" != typeof window ? window : globalThis; 21531 r.__localeData__ || (r.__localeData__ = {}), r.__localeData__[e] = t; 21532 }, e.setDefaultLocale = function (e) { 21533 ("undefined" != typeof window ? window : globalThis).__localeId__ = e; 21534 }, Object.defineProperty(e, "__esModule", { 21535 value: !0 21536 }); 21537}); 21538 21539/***/ }), 21540
vendor: 12,397 bytes, lines 21541-21932
21541/***/ "./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js": 21542/*!***************************************************************************!*\ 21543 !*** ./node_modules/react-onclickoutside/dist/react-onclickoutside.es.js ***! 21544 \***************************************************************************/ 21545/*! exports provided: default, IGNORE_CLASS_NAME */ 21546/***/ (function(module, __webpack_exports__, __webpack_require__) { 21547 21548"use strict"; 21549__webpack_require__.r(__webpack_exports__); 21550/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IGNORE_CLASS_NAME", function() { return IGNORE_CLASS_NAME; }); 21551/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); 21552/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 21553/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); 21554/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__); 21555 21556 21557 21558function _inheritsLoose(subClass, superClass) { 21559 subClass.prototype = Object.create(superClass.prototype); 21560 subClass.prototype.constructor = subClass; 21561 21562 _setPrototypeOf(subClass, superClass); 21563} 21564 21565function _setPrototypeOf(o, p) { 21566 _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { 21567 o.__proto__ = p; 21568 return o; 21569 }; 21570 21571 return _setPrototypeOf(o, p); 21572} 21573 21574function _objectWithoutPropertiesLoose(source, excluded) { 21575 if (source == null) return {}; 21576 var target = {}; 21577 var sourceKeys = Object.keys(source); 21578 var key, i; 21579 21580 for (i = 0; i < sourceKeys.length; i++) { 21581 key = sourceKeys[i]; 21582 if (excluded.indexOf(key) >= 0) continue; 21583 target[key] = source[key]; 21584 } 21585 21586 return target; 21587} 21588 21589function _assertThisInitialized(self) { 21590 if (self === void 0) { 21591 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 21592 } 21593 21594 return self; 21595} 21596/** 21597* Check whether some DOM node is our Component's node. 21598*/ 21599 21600 21601function isNodeFound(current, componentNode, ignoreClass) { 21602 if (current === componentNode) { 21603 return true; 21604 } // SVG <use/> elements do not technically reside in the rendered DOM, so 21605 // they do not have classList directly, but they offer a link to their 21606 // corresponding element, which can have classList. This extra check is for 21607 // that case. 21608 // See: http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGUseElement 21609 // Discussion: https://github.com/Pomax/react-onclickoutside/pull/17 21610 21611 21612 if (current.correspondingElement) { 21613 return current.correspondingElement.classList.contains(ignoreClass); 21614 } 21615 21616 return current.classList.contains(ignoreClass); 21617} 21618/** 21619 * Try to find our node in a hierarchy of nodes, returning the document 21620 * node as highest node if our node is not found in the path up. 21621 */ 21622 21623 21624function findHighest(current, componentNode, ignoreClass) { 21625 if (current === componentNode) { 21626 return true; 21627 } // If source=local then this event came from 'somewhere' 21628 // inside and should be ignored. We could handle this with 21629 // a layered approach, too, but that requires going back to 21630 // thinking in terms of Dom node nesting, running counter 21631 // to React's 'you shouldn't care about the DOM' philosophy. 21632 // Also cover shadowRoot node by checking current.host 21633 21634 21635 while (current.parentNode || current.host) { 21636 // Only check normal node without shadowRoot 21637 if (current.parentNode && isNodeFound(current, componentNode, ignoreClass)) { 21638 return true; 21639 } 21640 21641 current = current.parentNode || current.host; 21642 } 21643 21644 return current; 21645} 21646/** 21647 * Check if the browser scrollbar was clicked 21648 */ 21649 21650 21651function clickedScrollbar(evt) { 21652 return document.documentElement.clientWidth <= evt.clientX || document.documentElement.clientHeight <= evt.clientY; 21653} // ideally will get replaced with external dep 21654// when rafrex/detect-passive-events#4 and rafrex/detect-passive-events#5 get merged in 21655 21656 21657var testPassiveEventSupport = function testPassiveEventSupport() { 21658 if (typeof window === 'undefined' || typeof window.addEventListener !== 'function') { 21659 return; 21660 } 21661 21662 var passive = false; 21663 var options = Object.defineProperty({}, 'passive', { 21664 get: function get() { 21665 passive = true; 21666 } 21667 }); 21668 21669 var noop = function noop() {}; 21670 21671 window.addEventListener('testPassiveEventSupport', noop, options); 21672 window.removeEventListener('testPassiveEventSupport', noop, options); 21673 return passive; 21674}; 21675 21676function autoInc(seed) { 21677 if (seed === void 0) { 21678 seed = 0; 21679 } 21680 21681 return function () { 21682 return ++seed; 21683 }; 21684} 21685 21686var uid = autoInc(); 21687var passiveEventSupport; 21688var handlersMap = {}; 21689var enabledInstances = {}; 21690var touchEvents = ['touchstart', 'touchmove']; 21691var IGNORE_CLASS_NAME = 'ignore-react-onclickoutside'; 21692/** 21693 * Options for addEventHandler and removeEventHandler 21694 */ 21695 21696function getEventHandlerOptions(instance, eventName) { 21697 var handlerOptions = null; 21698 var isTouchEvent = touchEvents.indexOf(eventName) !== -1; 21699 21700 if (isTouchEvent && passiveEventSupport) { 21701 handlerOptions = { 21702 passive: !instance.props.preventDefault 21703 }; 21704 } 21705 21706 return handlerOptions; 21707} 21708/** 21709 * This function generates the HOC function that you'll use 21710 * in order to impart onOutsideClick listening to an 21711 * arbitrary component. It gets called at the end of the 21712 * bootstrapping code to yield an instance of the 21713 * onClickOutsideHOC function defined inside setupHOC(). 21714 */ 21715 21716 21717function onClickOutsideHOC(WrappedComponent, config) { 21718 var _class, _temp; 21719 21720 var componentName = WrappedComponent.displayName || WrappedComponent.name || 'Component'; 21721 return _temp = _class = /*#__PURE__*/function (_Component) { 21722 _inheritsLoose(onClickOutside, _Component); 21723 21724 function onClickOutside(props) { 21725 var _this; 21726 21727 _this = _Component.call(this, props) || this; 21728 21729 _this.__outsideClickHandler = function (event) { 21730 if (typeof _this.__clickOutsideHandlerProp === 'function') { 21731 _this.__clickOutsideHandlerProp(event); 21732 21733 return; 21734 } 21735 21736 var instance = _this.getInstance(); 21737 21738 if (typeof instance.props.handleClickOutside === 'function') { 21739 instance.props.handleClickOutside(event); 21740 return; 21741 } 21742 21743 if (typeof instance.handleClickOutside === 'function') { 21744 instance.handleClickOutside(event); 21745 return; 21746 } 21747 21748 throw new Error("WrappedComponent: " + componentName + " lacks a handleClickOutside(event) function for processing outside click events."); 21749 }; 21750 21751 _this.__getComponentNode = function () { 21752 var instance = _this.getInstance(); 21753 21754 if (config && typeof config.setClickOutsideRef === 'function') { 21755 return config.setClickOutsideRef()(instance); 21756 } 21757 21758 if (typeof instance.setClickOutsideRef === 'function') { 21759 return instance.setClickOutsideRef(); 21760 } 21761 21762 return Object(react_dom__WEBPACK_IMPORTED_MODULE_1__["findDOMNode"])(instance); 21763 }; 21764 21765 _this.enableOnClickOutside = function () { 21766 if (typeof document === 'undefined' || enabledInstances[_this._uid]) { 21767 return; 21768 } 21769 21770 if (typeof passiveEventSupport === 'undefined') { 21771 passiveEventSupport = testPassiveEventSupport(); 21772 } 21773 21774 enabledInstances[_this._uid] = true; 21775 var events = _this.props.eventTypes; 21776 21777 if (!events.forEach) { 21778 events = [events]; 21779 } 21780 21781 handlersMap[_this._uid] = function (event) { 21782 if (_this.componentNode === null) return; 21783 21784 if (_this.props.preventDefault) { 21785 event.preventDefault(); 21786 } 21787 21788 if (_this.props.stopPropagation) { 21789 event.stopPropagation(); 21790 } 21791 21792 if (_this.props.excludeScrollbar && clickedScrollbar(event)) return; 21793 var current = event.composed && event.composedPath && event.composedPath().shift() || event.target; 21794 21795 if (findHighest(current, _this.componentNode, _this.props.outsideClickIgnoreClass) !== document) { 21796 return; 21797 } 21798 21799 _this.__outsideClickHandler(event); 21800 }; 21801 21802 events.forEach(function (eventName) { 21803 document.addEventListener(eventName, handlersMap[_this._uid], getEventHandlerOptions(_assertThisInitialized(_this), eventName)); 21804 }); 21805 }; 21806 21807 _this.disableOnClickOutside = function () { 21808 delete enabledInstances[_this._uid]; 21809 var fn = handlersMap[_this._uid]; 21810 21811 if (fn && typeof document !== 'undefined') { 21812 var events = _this.props.eventTypes; 21813 21814 if (!events.forEach) { 21815 events = [events]; 21816 } 21817 21818 events.forEach(function (eventName) { 21819 return document.removeEventListener(eventName, fn, getEventHandlerOptions(_assertThisInitialized(_this), eventName)); 21820 }); 21821 delete handlersMap[_this._uid]; 21822 } 21823 }; 21824 21825 _this.getRef = function (ref) { 21826 return _this.instanceRef = ref; 21827 }; 21828 21829 _this._uid = uid(); 21830 return _this; 21831 } 21832 /** 21833 * Access the WrappedComponent's instance. 21834 */ 21835 21836 21837 var _proto = onClickOutside.prototype; 21838 21839 _proto.getInstance = function getInstance() { 21840 if (WrappedComponent.prototype && !WrappedComponent.prototype.isReactComponent) { 21841 return this; 21842 } 21843 21844 var ref = this.instanceRef; 21845 return ref.getInstance ? ref.getInstance() : ref; 21846 }; 21847 /** 21848 * Add click listeners to the current document, 21849 * linked to this component's state. 21850 */ 21851 21852 21853 _proto.componentDidMount = function componentDidMount() { 21854 // If we are in an environment without a DOM such 21855 // as shallow rendering or snapshots then we exit 21856 // early to prevent any unhandled errors being thrown. 21857 if (typeof document === 'undefined' || !document.createElement) { 21858 return; 21859 } 21860 21861 var instance = this.getInstance(); 21862 21863 if (config && typeof config.handleClickOutside === 'function') { 21864 this.__clickOutsideHandlerProp = config.handleClickOutside(instance); 21865 21866 if (typeof this.__clickOutsideHandlerProp !== 'function') { 21867 throw new Error("WrappedComponent: " + componentName + " lacks a function for processing outside click events specified by the handleClickOutside config option."); 21868 } 21869 } 21870 21871 this.componentNode = this.__getComponentNode(); // return early so we dont initiate onClickOutside 21872 21873 if (this.props.disableOnClickOutside) return; 21874 this.enableOnClickOutside(); 21875 }; 21876 21877 _proto.componentDidUpdate = function componentDidUpdate() { 21878 this.componentNode = this.__getComponentNode(); 21879 } 21880 /** 21881 * Remove all document's event listeners for this component 21882 */ 21883 ; 21884 21885 _proto.componentWillUnmount = function componentWillUnmount() { 21886 this.disableOnClickOutside(); 21887 } 21888 /** 21889 * Can be called to explicitly enable event listening 21890 * for clicks and touches outside of this element. 21891 */ 21892 ; 21893 /** 21894 * Pass-through render 21895 */ 21896 21897 21898 _proto.render = function render() { 21899 // eslint-disable-next-line no-unused-vars 21900 var _this$props = this.props; 21901 _this$props.excludeScrollbar; 21902 21903 var props = _objectWithoutPropertiesLoose(_this$props, ["excludeScrollbar"]); 21904 21905 if (WrappedComponent.prototype && WrappedComponent.prototype.isReactComponent) { 21906 props.ref = this.getRef; 21907 } else { 21908 props.wrappedRef = this.getRef; 21909 } 21910 21911 props.disableOnClickOutside = this.disableOnClickOutside; 21912 props.enableOnClickOutside = this.enableOnClickOutside; 21913 return Object(react__WEBPACK_IMPORTED_MODULE_0__["createElement"])(WrappedComponent, props); 21914 }; 21915 21916 return onClickOutside; 21917 }(react__WEBPACK_IMPORTED_MODULE_0__["Component"]), _class.displayName = "OnClickOutside(" + componentName + ")", _class.defaultProps = { 21918 eventTypes: ['mousedown', 'touchstart'], 21919 excludeScrollbar: config && config.excludeScrollbar || false, 21920 outsideClickIgnoreClass: IGNORE_CLASS_NAME, 21921 preventDefault: false, 21922 stopPropagation: false 21923 }, _class.getClass = function () { 21924 return WrappedComponent.getClass ? WrappedComponent.getClass() : WrappedComponent; 21925 }, _temp; 21926} 21927 21928/* harmony default export */ __webpack_exports__["default"] = (onClickOutsideHOC); 21929 21930 21931/***/ }), 21932
vendor: 2,298 bytes, lines 21933-21976
21933/***/ "./node_modules/react-popper/lib/esm/Manager.js": 21934/*!******************************************************!*\ 21935 !*** ./node_modules/react-popper/lib/esm/Manager.js ***! 21936 \******************************************************/ 21937/*! exports provided: ManagerReferenceNodeContext, ManagerReferenceNodeSetterContext, Manager */ 21938/***/ (function(module, __webpack_exports__, __webpack_require__) { 21939 21940"use strict"; 21941__webpack_require__.r(__webpack_exports__); 21942/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManagerReferenceNodeContext", function() { return ManagerReferenceNodeContext; }); 21943/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManagerReferenceNodeSetterContext", function() { return ManagerReferenceNodeSetterContext; }); 21944/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Manager", function() { return Manager; }); 21945/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); 21946/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 21947 21948var ManagerReferenceNodeContext = react__WEBPACK_IMPORTED_MODULE_0__["createContext"](); 21949var ManagerReferenceNodeSetterContext = react__WEBPACK_IMPORTED_MODULE_0__["createContext"](); 21950function Manager(_ref) { 21951 var children = _ref.children; 21952 21953 var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__["useState"](null), 21954 referenceNode = _React$useState[0], 21955 setReferenceNode = _React$useState[1]; 21956 21957 var hasUnmounted = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](false); 21958 react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { 21959 return function () { 21960 hasUnmounted.current = true; 21961 }; 21962 }, []); 21963 var handleSetReferenceNode = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function (node) { 21964 if (!hasUnmounted.current) { 21965 setReferenceNode(node); 21966 } 21967 }, []); 21968 return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](ManagerReferenceNodeContext.Provider, { 21969 value: referenceNode 21970 }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](ManagerReferenceNodeSetterContext.Provider, { 21971 value: handleSetReferenceNode 21972 }, children)); 21973} 21974 21975/***/ }), 21976
vendor: 4,263 bytes, lines 21977-22071
21977/***/ "./node_modules/react-popper/lib/esm/Popper.js": 21978/*!*****************************************************!*\ 21979 !*** ./node_modules/react-popper/lib/esm/Popper.js ***! 21980 \*****************************************************/ 21981/*! exports provided: Popper */ 21982/***/ (function(module, __webpack_exports__, __webpack_require__) { 21983 21984"use strict"; 21985__webpack_require__.r(__webpack_exports__); 21986/* WEBPACK VAR INJECTION */(function(Promise) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popper", function() { return Popper; }); 21987/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); 21988/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 21989/* harmony import */ var _Manager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Manager */ "./node_modules/react-popper/lib/esm/Manager.js"); 21990/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./node_modules/react-popper/lib/esm/utils.js"); 21991/* harmony import */ var _usePopper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./usePopper */ "./node_modules/react-popper/lib/esm/usePopper.js"); 21992 21993 21994 21995 21996 21997var NOOP = function NOOP() { 21998 return void 0; 21999}; 22000 22001var NOOP_PROMISE = function NOOP_PROMISE() { 22002 return Promise.resolve(null); 22003}; 22004 22005var EMPTY_MODIFIERS = []; 22006function Popper(_ref) { 22007 var _ref$placement = _ref.placement, 22008 placement = _ref$placement === void 0 ? 'bottom' : _ref$placement, 22009 _ref$strategy = _ref.strategy, 22010 strategy = _ref$strategy === void 0 ? 'absolute' : _ref$strategy, 22011 _ref$modifiers = _ref.modifiers, 22012 modifiers = _ref$modifiers === void 0 ? EMPTY_MODIFIERS : _ref$modifiers, 22013 referenceElement = _ref.referenceElement, 22014 onFirstUpdate = _ref.onFirstUpdate, 22015 innerRef = _ref.innerRef, 22016 children = _ref.children; 22017 var referenceNode = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_Manager__WEBPACK_IMPORTED_MODULE_1__["ManagerReferenceNodeContext"]); 22018 22019 var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__["useState"](null), 22020 popperElement = _React$useState[0], 22021 setPopperElement = _React$useState[1]; 22022 22023 var _React$useState2 = react__WEBPACK_IMPORTED_MODULE_0__["useState"](null), 22024 arrowElement = _React$useState2[0], 22025 setArrowElement = _React$useState2[1]; 22026 22027 react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { 22028 Object(_utils__WEBPACK_IMPORTED_MODULE_2__["setRef"])(innerRef, popperElement); 22029 }, [innerRef, popperElement]); 22030 var options = react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () { 22031 return { 22032 placement: placement, 22033 strategy: strategy, 22034 onFirstUpdate: onFirstUpdate, 22035 modifiers: [].concat(modifiers, [{ 22036 name: 'arrow', 22037 enabled: arrowElement != null, 22038 options: { 22039 element: arrowElement 22040 } 22041 }]) 22042 }; 22043 }, [placement, strategy, onFirstUpdate, modifiers, arrowElement]); 22044 22045 var _usePopper = Object(_usePopper__WEBPACK_IMPORTED_MODULE_3__["usePopper"])(referenceElement || referenceNode, popperElement, options), 22046 state = _usePopper.state, 22047 styles = _usePopper.styles, 22048 forceUpdate = _usePopper.forceUpdate, 22049 update = _usePopper.update; 22050 22051 var childrenProps = react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () { 22052 return { 22053 ref: setPopperElement, 22054 style: styles.popper, 22055 placement: state ? state.placement : placement, 22056 hasPopperEscaped: state && state.modifiersData.hide ? state.modifiersData.hide.hasPopperEscaped : null, 22057 isReferenceHidden: state && state.modifiersData.hide ? state.modifiersData.hide.isReferenceHidden : null, 22058 arrowProps: { 22059 style: styles.arrow, 22060 ref: setArrowElement 22061 }, 22062 forceUpdate: forceUpdate || NOOP, 22063 update: update || NOOP_PROMISE 22064 }; 22065 }, [setPopperElement, setArrowElement, placement, state, styles, update, forceUpdate]); 22066 return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["unwrapArray"])(children)(childrenProps); 22067} 22068/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! es6-promise */ "./node_modules/es6-promise/dist/es6-promise.js"))) 22069 22070/***/ }), 22071
vendor: 2,536 bytes, lines 22072-22116
22072/***/ "./node_modules/react-popper/lib/esm/Reference.js": 22073/*!********************************************************!*\ 22074 !*** ./node_modules/react-popper/lib/esm/Reference.js ***! 22075 \********************************************************/ 22076/*! exports provided: Reference */ 22077/***/ (function(module, __webpack_exports__, __webpack_require__) { 22078 22079"use strict"; 22080__webpack_require__.r(__webpack_exports__); 22081/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Reference", function() { return Reference; }); 22082/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); 22083/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 22084/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js"); 22085/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_1__); 22086/* harmony import */ var _Manager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Manager */ "./node_modules/react-popper/lib/esm/Manager.js"); 22087/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./node_modules/react-popper/lib/esm/utils.js"); 22088 22089 22090 22091 22092function Reference(_ref) { 22093 var children = _ref.children, 22094 innerRef = _ref.innerRef; 22095 var setReferenceNode = react__WEBPACK_IMPORTED_MODULE_0__["useContext"](_Manager__WEBPACK_IMPORTED_MODULE_2__["ManagerReferenceNodeSetterContext"]); 22096 var refHandler = react__WEBPACK_IMPORTED_MODULE_0__["useCallback"](function (node) { 22097 Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setRef"])(innerRef, node); 22098 Object(_utils__WEBPACK_IMPORTED_MODULE_3__["safeInvoke"])(setReferenceNode, node); 22099 }, [innerRef, setReferenceNode]); // ran on unmount 22100 // eslint-disable-next-line react-hooks/exhaustive-deps 22101 22102 react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { 22103 return function () { 22104 return Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setRef"])(innerRef, null); 22105 }; 22106 }, []); 22107 react__WEBPACK_IMPORTED_MODULE_0__["useEffect"](function () { 22108 warning__WEBPACK_IMPORTED_MODULE_1___default()(Boolean(setReferenceNode), '`Reference` should not be used outside of a `Manager` component.'); 22109 }, [setReferenceNode]); 22110 return Object(_utils__WEBPACK_IMPORTED_MODULE_3__["unwrapArray"])(children)({ 22111 ref: refHandler 22112 }); 22113} 22114 22115/***/ }), 22116
vendor: 1,737 bytes, lines 22117-22146
22117/***/ "./node_modules/react-popper/lib/esm/index.js": 22118/*!****************************************************!*\ 22119 !*** ./node_modules/react-popper/lib/esm/index.js ***! 22120 \****************************************************/ 22121/*! exports provided: Popper, Manager, Reference, usePopper */ 22122/***/ (function(module, __webpack_exports__, __webpack_require__) { 22123 22124"use strict"; 22125__webpack_require__.r(__webpack_exports__); 22126/* harmony import */ var _Popper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Popper */ "./node_modules/react-popper/lib/esm/Popper.js"); 22127/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popper", function() { return _Popper__WEBPACK_IMPORTED_MODULE_0__["Popper"]; }); 22128 22129/* harmony import */ var _Manager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Manager */ "./node_modules/react-popper/lib/esm/Manager.js"); 22130/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Manager", function() { return _Manager__WEBPACK_IMPORTED_MODULE_1__["Manager"]; }); 22131 22132/* harmony import */ var _Reference__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Reference */ "./node_modules/react-popper/lib/esm/Reference.js"); 22133/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Reference", function() { return _Reference__WEBPACK_IMPORTED_MODULE_2__["Reference"]; }); 22134 22135/* harmony import */ var _usePopper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./usePopper */ "./node_modules/react-popper/lib/esm/usePopper.js"); 22136/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "usePopper", function() { return _usePopper__WEBPACK_IMPORTED_MODULE_3__["usePopper"]; }); 22137 22138// Public components 22139 22140 22141 22142 22143 // Public types 22144 22145/***/ }), 22146
vendor: 5,421 bytes, lines 22147-22269
22147/***/ "./node_modules/react-popper/lib/esm/usePopper.js": 22148/*!********************************************************!*\ 22149 !*** ./node_modules/react-popper/lib/esm/usePopper.js ***! 22150 \********************************************************/ 22151/*! exports provided: usePopper */ 22152/***/ (function(module, __webpack_exports__, __webpack_require__) { 22153 22154"use strict"; 22155__webpack_require__.r(__webpack_exports__); 22156/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "usePopper", function() { return usePopper; }); 22157/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); 22158/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 22159/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); 22160/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__); 22161/* harmony import */ var _popperjs_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @popperjs/core */ "./node_modules/@popperjs/core/lib/index.js"); 22162/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "./node_modules/react-popper/node_modules/react-fast-compare/index.js"); 22163/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__); 22164/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./node_modules/react-popper/lib/esm/utils.js"); 22165 22166 22167 22168 22169 22170var EMPTY_MODIFIERS = []; 22171var usePopper = function usePopper(referenceElement, popperElement, options) { 22172 if (options === void 0) { 22173 options = {}; 22174 } 22175 22176 var prevOptions = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](null); 22177 var optionsWithDefaults = { 22178 onFirstUpdate: options.onFirstUpdate, 22179 placement: options.placement || 'bottom', 22180 strategy: options.strategy || 'absolute', 22181 modifiers: options.modifiers || EMPTY_MODIFIERS 22182 }; 22183 22184 var _React$useState = react__WEBPACK_IMPORTED_MODULE_0__["useState"]({ 22185 styles: { 22186 popper: { 22187 position: optionsWithDefaults.strategy, 22188 left: '0', 22189 top: '0' 22190 }, 22191 arrow: { 22192 position: 'absolute' 22193 } 22194 }, 22195 attributes: {} 22196 }), 22197 state = _React$useState[0], 22198 setState = _React$useState[1]; 22199 22200 var updateStateModifier = react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () { 22201 return { 22202 name: 'updateState', 22203 enabled: true, 22204 phase: 'write', 22205 fn: function fn(_ref) { 22206 var state = _ref.state; 22207 var elements = Object.keys(state.elements); 22208 react_dom__WEBPACK_IMPORTED_MODULE_1__["flushSync"](function () { 22209 setState({ 22210 styles: Object(_utils__WEBPACK_IMPORTED_MODULE_4__["fromEntries"])(elements.map(function (element) { 22211 return [element, state.styles[element] || {}]; 22212 })), 22213 attributes: Object(_utils__WEBPACK_IMPORTED_MODULE_4__["fromEntries"])(elements.map(function (element) { 22214 return [element, state.attributes[element]]; 22215 })) 22216 }); 22217 }); 22218 }, 22219 requires: ['computeStyles'] 22220 }; 22221 }, []); 22222 var popperOptions = react__WEBPACK_IMPORTED_MODULE_0__["useMemo"](function () { 22223 var newOptions = { 22224 onFirstUpdate: optionsWithDefaults.onFirstUpdate, 22225 placement: optionsWithDefaults.placement, 22226 strategy: optionsWithDefaults.strategy, 22227 modifiers: [].concat(optionsWithDefaults.modifiers, [updateStateModifier, { 22228 name: 'applyStyles', 22229 enabled: false 22230 }]) 22231 }; 22232 22233 if (react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()(prevOptions.current, newOptions)) { 22234 return prevOptions.current || newOptions; 22235 } else { 22236 prevOptions.current = newOptions; 22237 return newOptions; 22238 } 22239 }, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]); 22240 var popperInstanceRef = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](); 22241 Object(_utils__WEBPACK_IMPORTED_MODULE_4__["useIsomorphicLayoutEffect"])(function () { 22242 if (popperInstanceRef.current) { 22243 popperInstanceRef.current.setOptions(popperOptions); 22244 } 22245 }, [popperOptions]); 22246 Object(_utils__WEBPACK_IMPORTED_MODULE_4__["useIsomorphicLayoutEffect"])(function () { 22247 if (referenceElement == null || popperElement == null) { 22248 return; 22249 } 22250 22251 var createPopper = options.createPopper || _popperjs_core__WEBPACK_IMPORTED_MODULE_2__["createPopper"]; 22252 var popperInstance = createPopper(referenceElement, popperElement, popperOptions); 22253 popperInstanceRef.current = popperInstance; 22254 return function () { 22255 popperInstance.destroy(); 22256 popperInstanceRef.current = null; 22257 }; 22258 }, [referenceElement, popperElement, options.createPopper]); 22259 return { 22260 state: popperInstanceRef.current ? popperInstanceRef.current.state : null, 22261 styles: state.styles, 22262 attributes: state.attributes, 22263 update: popperInstanceRef.current ? popperInstanceRef.current.update : null, 22264 forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null 22265 }; 22266}; 22267 22268/***/ }), 22269
vendor: 2,899 bytes, lines 22270-22341
22270/***/ "./node_modules/react-popper/lib/esm/utils.js": 22271/*!****************************************************!*\ 22272 !*** ./node_modules/react-popper/lib/esm/utils.js ***! 22273 \****************************************************/ 22274/*! exports provided: unwrapArray, safeInvoke, setRef, fromEntries, useIsomorphicLayoutEffect */ 22275/***/ (function(module, __webpack_exports__, __webpack_require__) { 22276 22277"use strict"; 22278__webpack_require__.r(__webpack_exports__); 22279/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unwrapArray", function() { return unwrapArray; }); 22280/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "safeInvoke", function() { return safeInvoke; }); 22281/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setRef", function() { return setRef; }); 22282/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromEntries", function() { return fromEntries; }); 22283/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useIsomorphicLayoutEffect", function() { return useIsomorphicLayoutEffect; }); 22284/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); 22285/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); 22286 22287/** 22288 * Takes an argument and if it's an array, returns the first item in the array, 22289 * otherwise returns the argument. Used for Preact compatibility. 22290 */ 22291 22292var unwrapArray = function unwrapArray(arg) { 22293 return Array.isArray(arg) ? arg[0] : arg; 22294}; 22295/** 22296 * Takes a maybe-undefined function and arbitrary args and invokes the function 22297 * only if it is defined. 22298 */ 22299 22300var safeInvoke = function safeInvoke(fn) { 22301 if (typeof fn === 'function') { 22302 for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { 22303 args[_key - 1] = arguments[_key]; 22304 } 22305 22306 return fn.apply(void 0, args); 22307 } 22308}; 22309/** 22310 * Sets a ref using either a ref callback or a ref object 22311 */ 22312 22313var setRef = function setRef(ref, node) { 22314 // if its a function call it 22315 if (typeof ref === 'function') { 22316 return safeInvoke(ref, node); 22317 } // otherwise we should treat it as a ref object 22318 else if (ref != null) { 22319 ref.current = node; 22320 } 22321}; 22322/** 22323 * Simple ponyfill for Object.fromEntries 22324 */ 22325 22326var fromEntries = function fromEntries(entries) { 22327 return entries.reduce(function (acc, _ref) { 22328 var key = _ref[0], 22329 value = _ref[1]; 22330 acc[key] = value; 22331 return acc; 22332 }, {}); 22333}; 22334/** 22335 * Small wrapper around `useLayoutEffect` to get rid of the warning on SSR envs 22336 */ 22337 22338var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? react__WEBPACK_IMPORTED_MODULE_0__["useLayoutEffect"] : react__WEBPACK_IMPORTED_MODULE_0__["useEffect"]; 22339 22340/***/ }), 22341
vendor: 5,204 bytes, lines 22342-22499
22342/***/ "./node_modules/react-popper/node_modules/react-fast-compare/index.js": 22343/*!****************************************************************************!*\ 22344 !*** ./node_modules/react-popper/node_modules/react-fast-compare/index.js ***! 22345 \****************************************************************************/ 22346/*! no static exports found */ 22347/***/ (function(module, exports) { 22348 22349function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } 22350 22351/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */ 22352var hasElementType = typeof Element !== 'undefined'; 22353var hasMap = typeof Map === 'function'; 22354var hasSet = typeof Set === 'function'; 22355var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView; // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js 22356 22357function equal(a, b) { 22358 // START: fast-deep-equal es6/index.js 3.1.1 22359 if (a === b) return true; 22360 22361 if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') { 22362 if (a.constructor !== b.constructor) return false; 22363 var length, i, keys; 22364 22365 if (Array.isArray(a)) { 22366 length = a.length; 22367 if (length != b.length) return false; 22368 22369 for (i = length; i-- !== 0;) { 22370 if (!equal(a[i], b[i])) return false; 22371 } 22372 22373 return true; 22374 } // START: Modifications: 22375 // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code 22376 // to co-exist with es5. 22377 // 2. Replace `for of` with es5 compliant iteration using `for`. 22378 // Basically, take: 22379 // 22380 // ```js 22381 // for (i of a.entries()) 22382 // if (!b.has(i[0])) return false; 22383 // ``` 22384 // 22385 // ... and convert to: 22386 // 22387 // ```js 22388 // it = a.entries(); 22389 // while (!(i = it.next()).done) 22390 // if (!b.has(i.value[0])) return false; 22391 // ``` 22392 // 22393 // **Note**: `i` access switches to `i.value`. 22394 22395 22396 var it; 22397 22398 if (hasMap && a instanceof Map && b instanceof Map) { 22399 if (a.size !== b.size) return false; 22400 it = a.entries(); 22401 22402 while (!(i = it.next()).done) { 22403 if (!b.has(i.value[0])) return false; 22404 } 22405 22406 it = a.entries(); 22407 22408 while (!(i = it.next()).done) { 22409 if (!equal(i.value[1], b.get(i.value[0]))) return false; 22410 } 22411 22412 return true; 22413 } 22414 22415 if (hasSet && a instanceof Set && b instanceof Set) { 22416 if (a.size !== b.size) return false; 22417 it = a.entries(); 22418 22419 while (!(i = it.next()).done) { 22420 if (!b.has(i.value[0])) return false; 22421 } 22422 22423 return true; 22424 } // END: Modifications 22425 22426 22427 if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { 22428 length = a.length; 22429 if (length != b.length) return false; 22430 22431 for (i = length; i-- !== 0;) { 22432 if (a[i] !== b[i]) return false; 22433 } 22434 22435 return true; 22436 } 22437 22438 if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; 22439 if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); 22440 if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); 22441 keys = Object.keys(a); 22442 length = keys.length; 22443 if (length !== Object.keys(b).length) return false; 22444 22445 for (i = length; i-- !== 0;) { 22446 if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; 22447 } // END: fast-deep-equal 22448 // START: react-fast-compare 22449 // custom handling for DOM elements 22450 22451 22452 if (hasElementType && a instanceof Element) return false; // custom handling for React/Preact 22453 22454 for (i = length; i-- !== 0;) { 22455 if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) { 22456 // React-specific: avoid traversing React elements' _owner 22457 // Preact-specific: avoid traversing Preact elements' __v and __o 22458 // __v = $_original / $_vnode 22459 // __o = $_owner 22460 // These properties contain circular references and are not needed when 22461 // comparing the actual elements (and not their owners) 22462 // .$$typeof and ._store on just reasonable markers of elements 22463 continue; 22464 } // all other properties should be traversed as usual 22465 22466 22467 if (!equal(a[keys[i]], b[keys[i]])) return false; 22468 } // END: react-fast-compare 22469 // START: fast-deep-equal 22470 22471 22472 return true; 22473 } 22474 22475 return a !== a && b !== b; 22476} // end fast-deep-equal 22477 22478 22479module.exports = function isEqual(a, b) { 22480 try { 22481 return equal(a, b); 22482 } catch (error) { 22483 if ((error.message || '').match(/stack|recursion/i)) { 22484 // warn on circular references, don't crash 22485 // browsers give this different errors name and messages: 22486 // chrome/safari: "RangeError", "Maximum call stack size exceeded" 22487 // firefox: "InternalError", too much recursion" 22488 // edge: "Error", "Out of stack space" 22489 console.warn('react-fast-compare cannot handle circular refs'); 22490 return false; 22491 } // some other error. we should definitely know about these 22492 22493 22494 throw error; 22495 } 22496}; 22497 22498/***/ }), 22499
vendor: 2,031 bytes, lines 22500-22572
22500/***/ "./node_modules/warning/warning.js": 22501/*!*****************************************!*\ 22502 !*** ./node_modules/warning/warning.js ***! 22503 \*****************************************/ 22504/*! no static exports found */ 22505/***/ (function(module, exports, __webpack_require__) { 22506 22507"use strict"; 22508/** 22509 * Copyright (c) 2014-present, Facebook, Inc. 22510 * 22511 * This source code is licensed under the MIT license found in the 22512 * LICENSE file in the root directory of this source tree. 22513 */ 22514 22515/** 22516 * Similar to invariant but only logs a warning if the condition is not met. 22517 * This can be used to log issues in development environments in critical 22518 * paths. Removing the logging code for production environments will keep the 22519 * same logic and follow the same code paths. 22520 */ 22521 22522var __DEV__ = "development" !== 'production'; 22523 22524var warning = function warning() {}; 22525 22526if (__DEV__) { 22527 var printWarning = function printWarning(format, args) { 22528 var len = arguments.length; 22529 args = new Array(len > 1 ? len - 1 : 0); 22530 22531 for (var key = 1; key < len; key++) { 22532 args[key - 1] = arguments[key]; 22533 } 22534 22535 var argIndex = 0; 22536 var message = 'Warning: ' + format.replace(/%s/g, function () { 22537 return args[argIndex++]; 22538 }); 22539 22540 if (typeof console !== 'undefined') { 22541 console.error(message); 22542 } 22543 22544 try { 22545 // --- Welcome to debugging React --- 22546 // This error was thrown as a convenience so that you can use this stack 22547 // to find the callsite that caused this warning to fire. 22548 throw new Error(message); 22549 } catch (x) {} 22550 }; 22551 22552 warning = function warning(condition, format, args) { 22553 var len = arguments.length; 22554 args = new Array(len > 2 ? len - 2 : 0); 22555 22556 for (var key = 2; key < len; key++) { 22557 args[key - 2] = arguments[key]; 22558 } 22559 22560 if (format === undefined) { 22561 throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); 22562 } 22563 22564 if (!condition) { 22565 printWarning.apply(null, [format].concat(args)); 22566 } 22567 }; 22568} 22569 22570module.exports = warning; 22571 22572/***/ })
22572, 22573 22574/***/ 0: 22575/*!*********************************************************************!*\ 22576 !*** multi idempotent-babel-polyfill ./App/global/apps/date-picker ***! 22577 \*********************************************************************/ 22578/*! no static exports found */ 22579/***/ (function(module, exports, __webpack_require__) { 22580 22581__webpack_require__(/*! idempotent-babel-polyfill */"./node_modules/idempotent-babel-polyfill/lib/index.js"); 22582module.exports = __webpack_require__(/*! ./App/global/apps/date-picker */"./App/global/apps/date-picker.tsx"); 22583 22584 22585/***/ }) 22586 22587/******/ }); 22588//# sourceMappingURL=date-picker-bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.