From b5b950e334ee8599d2a32c5f99148e1829d021f4 Mon Sep 17 00:00:00 2001 From: matteo-convertino <74453395+matteo-convertino@users.noreply.github.com> Date: Wed, 10 Apr 2024 08:22:12 +0000 Subject: [PATCH] ready to merge --- appinfo/routes.php | 1 - js/otpmanager-main.js | 126976 +-------------------------- js/otpmanager-main.js.LICENSE.txt | 67 + js/otpmanager-main.js.map | 2 +- 4 files changed, 71 insertions(+), 126975 deletions(-) create mode 100644 js/otpmanager-main.js.LICENSE.txt diff --git a/appinfo/routes.php b/appinfo/routes.php index d77aad7..ef35b5c 100755 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -22,7 +22,6 @@ ['name' => 'account#delete', 'url' => '/accounts/{id}', 'verb' => 'DELETE'], // ['name' => 'account#destroy', 'url' => '/accounts/destroy/{id}', 'verb' => 'DELETE'], ['name' => 'account#import', 'url' => '/accounts/import', 'verb' => 'POST'], - //['name' => 'account#updateCounter', 'url' => '/accounts/update-counter', 'verb' => 'POST'], ['name' => 'setting#get', 'url' => '/settings', 'verb' => 'GET'], ['name' => 'setting#save', 'url' => '/settings', 'verb' => 'POST'], diff --git a/js/otpmanager-main.js b/js/otpmanager-main.js index 9aca9da..06b89ef 100644 --- a/js/otpmanager-main.js +++ b/js/otpmanager-main.js @@ -1,126973 +1,3 @@ -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createCache) -/* harmony export */ }); -/* harmony import */ var _emotion_sheet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/sheet */ "./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Tokenizer.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Utility.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Enum.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Serializer.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Middleware.js"); -/* harmony import */ var stylis__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! stylis */ "./node_modules/stylis/src/Parser.js"); -/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"); -/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/memoize */ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"); - - - - - -var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) { - var previous = 0; - var character = 0; - - while (true) { - previous = character; - character = (0,stylis__WEBPACK_IMPORTED_MODULE_3__.peek)(); // &\f - - if (previous === 38 && character === 12) { - points[index] = 1; - } - - if ((0,stylis__WEBPACK_IMPORTED_MODULE_3__.token)(character)) { - break; - } - - (0,stylis__WEBPACK_IMPORTED_MODULE_3__.next)(); - } - - return (0,stylis__WEBPACK_IMPORTED_MODULE_3__.slice)(begin, stylis__WEBPACK_IMPORTED_MODULE_3__.position); -}; - -var toRules = function toRules(parsed, points) { - // pretend we've started with a comma - var index = -1; - var character = 44; - - do { - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_3__.token)(character)) { - case 0: - // &\f - if (character === 38 && (0,stylis__WEBPACK_IMPORTED_MODULE_3__.peek)() === 12) { - // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings - // stylis inserts \f after & to know when & where it should replace this sequence with the context selector - // and when it should just concatenate the outer and inner selectors - // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here - points[index] = 1; - } - - parsed[index] += identifierWithPointTracking(stylis__WEBPACK_IMPORTED_MODULE_3__.position - 1, points, index); - break; - - case 2: - parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_3__.delimit)(character); - break; - - case 4: - // comma - if (character === 44) { - // colon - parsed[++index] = (0,stylis__WEBPACK_IMPORTED_MODULE_3__.peek)() === 58 ? '&\f' : ''; - points[index] = parsed[index].length; - break; - } - - // fallthrough - - default: - parsed[index] += (0,stylis__WEBPACK_IMPORTED_MODULE_4__.from)(character); - } - } while (character = (0,stylis__WEBPACK_IMPORTED_MODULE_3__.next)()); - - return parsed; -}; - -var getRules = function getRules(value, points) { - return (0,stylis__WEBPACK_IMPORTED_MODULE_3__.dealloc)(toRules((0,stylis__WEBPACK_IMPORTED_MODULE_3__.alloc)(value), points)); -}; // WeakSet would be more appropriate, but only WeakMap is supported in IE11 - - -var fixedElements = /* #__PURE__ */new WeakMap(); -var compat = function compat(element) { - if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo - // negative .length indicates that this rule has been already prefixed - element.length < 1) { - return; - } - - var value = element.value, - parent = element.parent; - var isImplicitRule = element.column === parent.column && element.line === parent.line; - - while (parent.type !== 'rule') { - parent = parent.parent; - if (!parent) return; - } // short-circuit for the simplest case - - - if (element.props.length === 1 && value.charCodeAt(0) !== 58 - /* colon */ - && !fixedElements.get(parent)) { - return; - } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level) - // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent" - - - if (isImplicitRule) { - return; - } - - fixedElements.set(element, true); - var points = []; - var rules = getRules(value, points); - var parentRules = parent.props; - - for (var i = 0, k = 0; i < rules.length; i++) { - for (var j = 0; j < parentRules.length; j++, k++) { - element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i]; - } - } -}; -var removeLabel = function removeLabel(element) { - if (element.type === 'decl') { - var value = element.value; - - if ( // charcode for l - value.charCodeAt(0) === 108 && // charcode for b - value.charCodeAt(2) === 98) { - // this ignores label - element["return"] = ''; - element.value = ''; - } - } -}; -var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason'; - -var isIgnoringComment = function isIgnoringComment(element) { - return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1; -}; - -var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) { - return function (element, index, children) { - if (element.type !== 'rule' || cache.compat) return; - var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g); - - if (unsafePseudoClasses) { - var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` - // - // considering this input: - // .a { - // .b /* comm */ {} - // color: hotpink; - // } - // we get output corresponding to this: - // .a { - // & { - // /* comm */ - // color: hotpink; - // } - // .b {} - // } - - var commentContainer = isNested ? element.parent.children : // global rule at the root level - children; - - for (var i = commentContainer.length - 1; i >= 0; i--) { - var node = commentContainer[i]; - - if (node.line < element.line) { - break; - } // it is quite weird but comments are *usually* put at `column: element.column - 1` - // so we seek *from the end* for the node that is earlier than the rule's `element` and check that - // this will also match inputs like this: - // .a { - // /* comm */ - // .b {} - // } - // - // but that is fine - // - // it would be the easiest to change the placement of the comment to be the first child of the rule: - // .a { - // .b { /* comm */ } - // } - // with such inputs we wouldn't have to search for the comment at all - // TODO: consider changing this comment placement in the next major version - - - if (node.column < element.column) { - if (isIgnoringComment(node)) { - return; - } - - break; - } - } - - unsafePseudoClasses.forEach(function (unsafePseudoClass) { - console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\"."); - }); - } - }; -}; - -var isImportRule = function isImportRule(element) { - return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64; -}; - -var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) { - for (var i = index - 1; i >= 0; i--) { - if (!isImportRule(children[i])) { - return true; - } - } - - return false; -}; // use this to remove incorrect elements from further processing -// so they don't get handed to the `sheet` (or anything else) -// as that could potentially lead to additional logs which in turn could be overhelming to the user - - -var nullifyElement = function nullifyElement(element) { - element.type = ''; - element.value = ''; - element["return"] = ''; - element.children = ''; - element.props = ''; -}; - -var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) { - if (!isImportRule(element)) { - return; - } - - if (element.parent) { - console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."); - nullifyElement(element); - } else if (isPrependedWithRegularRules(index, children)) { - console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."); - nullifyElement(element); - } -}; - -/* eslint-disable no-fallthrough */ - -function prefix(value, length) { - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.hash)(value, length)) { - // color-adjust - case 5103: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'print-' + value + value; - // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function) - - case 5737: - case 4201: - case 3177: - case 3433: - case 1641: - case 4457: - case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break - - case 5572: - case 6356: - case 5844: - case 3191: - case 6645: - case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite, - - case 6391: - case 5879: - case 5623: - case 6135: - case 4599: - case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width) - - case 4215: - case 6389: - case 5109: - case 5365: - case 5621: - case 3829: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + value; - // appearance, user-select, transform, hyphens, text-size-adjust - - case 5349: - case 4246: - case 4810: - case 6968: - case 2756: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + value + value; - // flex, flex-direction - - case 6828: - case 4268: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + value + value; - // order - - case 6165: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-' + value + value; - // align-items - - case 5187: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(\w+).+(:[^]+)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'box-$1$2' + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-$1$2') + value; - // align-self - - case 5443: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-item-' + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /flex-|-self/, '') + value; - // align-content - - case 4675: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-line-pack' + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /align-content|flex-|-self/, '') + value; - // flex-shrink - - case 5548: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'shrink', 'negative') + value; - // flex-basis - - case 5292: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'basis', 'preferred-size') + value; - // flex-grow - - case 6060: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'box-' + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, '-grow', '') + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'grow', 'positive') + value; - // transition - - case 4554: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /([^-])(transform)/g, '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$2') + value; - // cursor - - case 6187: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(zoom-|grab)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1'), /(image-set)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1'), value, '') + value; - // background, background-image - - case 5495: - case 3959: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(image-set\([^]*)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1' + '$`$1'); - // justify-content - - case 4968: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+:)(flex-)?(.*)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'box-pack:$3' + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + value; - // (margin|padding)-inline-(start|end) - - case 4095: - case 3583: - case 4068: - case 2532: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+)-inline(.+)/, stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$1$2') + value; - // (min|max)?(width|height|inline-size|block-size) - - case 8116: - case 7059: - case 5753: - case 5535: - case 5445: - case 5701: - case 4933: - case 4677: - case 5533: - case 5789: - case 5021: - case 4765: - // stretch, max-content, min-content, fill-available - if ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.strlen)(value) - 1 - length > 6) switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 1)) { - // (m)ax-content, (m)in-content - case 109: - // - - if ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 4) !== 45) break; - // (f)ill-available, (f)it-content - - case 102: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+:)(.+)-([^]+)/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$2-$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 3) == 108 ? '$3' : '$2-$3')) + value; - // (s)tretch - - case 115: - return ~(0,stylis__WEBPACK_IMPORTED_MODULE_4__.indexof)(value, 'stretch') ? prefix((0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, 'stretch', 'fill-available'), length) + value : value; - } - break; - // position: sticky - - case 4949: - // (s)ticky? - if ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 1) !== 115) break; - // display: (flex|inline-flex) - - case 6444: - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, (0,stylis__WEBPACK_IMPORTED_MODULE_4__.strlen)(value) - 3 - (~(0,stylis__WEBPACK_IMPORTED_MODULE_4__.indexof)(value, '!important') && 10))) { - // stic(k)y - case 107: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, ':', ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT) + value; - // (inline-)?fl(e)x - - case 101: - return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + '$2$3' + '$1' + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + '$2box$3') + value; - } - - break; - // writing-mode - - case 5936: - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.charat)(value, length + 11)) { - // vertical-l(r) - case 114: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /[svh]\w+-[tblr]{2}/, 'tb') + value; - // vertical-r(l) - - case 108: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value; - // horizontal(-)tb - - case 45: - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /[svh]\w+-[tblr]{2}/, 'lr') + value; - } - - return stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + value + stylis__WEBPACK_IMPORTED_MODULE_5__.MS + value + value; - } - - return value; -} - -var prefixer = function prefixer(element, index, children, callback) { - if (element.length > -1) if (!element["return"]) switch (element.type) { - case stylis__WEBPACK_IMPORTED_MODULE_5__.DECLARATION: - element["return"] = prefix(element.value, element.length); - break; - - case stylis__WEBPACK_IMPORTED_MODULE_5__.KEYFRAMES: - return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)([(0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - value: (0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(element.value, '@', '@' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT) - })], callback); - - case stylis__WEBPACK_IMPORTED_MODULE_5__.RULESET: - if (element.length) return (0,stylis__WEBPACK_IMPORTED_MODULE_4__.combine)(element.props, function (value) { - switch ((0,stylis__WEBPACK_IMPORTED_MODULE_4__.match)(value, /(::plac\w+|:read-\w+)/)) { - // :read-(only|write) - case ':read-only': - case ':read-write': - return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)([(0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(read-\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + '$1')] - })], callback); - // :placeholder - - case '::placeholder': - return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)([(0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.WEBKIT + 'input-$1')] - }), (0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(plac\w+)/, ':' + stylis__WEBPACK_IMPORTED_MODULE_5__.MOZ + '$1')] - }), (0,stylis__WEBPACK_IMPORTED_MODULE_3__.copy)(element, { - props: [(0,stylis__WEBPACK_IMPORTED_MODULE_4__.replace)(value, /:(plac\w+)/, stylis__WEBPACK_IMPORTED_MODULE_5__.MS + 'input-$1')] - })], callback); - } - - return ''; - }); - } -}; - -var defaultStylisPlugins = [prefixer]; - -var createCache = function createCache(options) { - var key = options.key; - - if ( true && !key) { - throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements."); - } - - if (key === 'css') { - var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration - // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be) - // note this very very intentionally targets all style elements regardless of the key to ensure - // that creating a cache works inside of render of a React component - - Array.prototype.forEach.call(ssrStyles, function (node) { - // we want to only move elements which have a space in the data-emotion attribute value - // because that indicates that it is an Emotion 11 server-side rendered style elements - // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector - // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes) - // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles - // will not result in the Emotion 10 styles being destroyed - var dataEmotionAttribute = node.getAttribute('data-emotion'); - - if (dataEmotionAttribute.indexOf(' ') === -1) { - return; - } - document.head.appendChild(node); - node.setAttribute('data-s', ''); - }); - } - - var stylisPlugins = options.stylisPlugins || defaultStylisPlugins; - - if (true) { - // $FlowFixMe - if (/[^a-z-]/.test(key)) { - throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed"); - } - } - - var inserted = {}; - var container; - var nodesToHydrate = []; - - { - container = options.container || document.head; - Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which - // means that the style elements we're looking at are only Emotion 11 server-rendered style elements - document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) { - var attrib = node.getAttribute("data-emotion").split(' '); // $FlowFixMe - - for (var i = 1; i < attrib.length; i++) { - inserted[attrib[i]] = true; - } - - nodesToHydrate.push(node); - }); - } - - var _insert; - - var omnipresentPlugins = [compat, removeLabel]; - - if (true) { - omnipresentPlugins.push(createUnsafeSelectorsAlarm({ - get compat() { - return cache.compat; - } - - }), incorrectImportAlarm); - } - - { - var currentSheet; - var finalizingPlugins = [stylis__WEBPACK_IMPORTED_MODULE_6__.stringify, true ? function (element) { - if (!element.root) { - if (element["return"]) { - currentSheet.insert(element["return"]); - } else if (element.value && element.type !== stylis__WEBPACK_IMPORTED_MODULE_5__.COMMENT) { - // insert empty rule in non-production environments - // so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet - currentSheet.insert(element.value + "{}"); - } - } - } : 0]; - var serializer = (0,stylis__WEBPACK_IMPORTED_MODULE_7__.middleware)(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins)); - - var stylis = function stylis(styles) { - return (0,stylis__WEBPACK_IMPORTED_MODULE_6__.serialize)((0,stylis__WEBPACK_IMPORTED_MODULE_8__.compile)(styles), serializer); - }; - - _insert = function insert(selector, serialized, sheet, shouldCache) { - currentSheet = sheet; - - if ( true && serialized.map !== undefined) { - currentSheet = { - insert: function insert(rule) { - sheet.insert(rule + serialized.map); - } - }; - } - - stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles); - - if (shouldCache) { - cache.inserted[serialized.name] = true; - } - }; - } - - var cache = { - key: key, - sheet: new _emotion_sheet__WEBPACK_IMPORTED_MODULE_0__.StyleSheet({ - key: key, - container: container, - nonce: options.nonce, - speedy: options.speedy, - prepend: options.prepend, - insertionPoint: options.insertionPoint - }), - nonce: options.nonce, - inserted: inserted, - registered: {}, - insert: _insert - }; - cache.sheet.hydrate(nodesToHydrate); - return cache; -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/hash/dist/emotion-hash.esm.js": -/*!*************************************************************!*\ - !*** ./node_modules/@emotion/hash/dist/emotion-hash.esm.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ murmur2) -/* harmony export */ }); -/* eslint-disable */ -// Inspired by https://github.com/garycourt/murmurhash-js -// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86 -function murmur2(str) { - // 'm' and 'r' are mixing constants generated offline. - // They're not really 'magic', they just happen to work well. - // const m = 0x5bd1e995; - // const r = 24; - // Initialize the hash - var h = 0; // Mix 4 bytes at a time into the hash - - var k, - i = 0, - len = str.length; - - for (; len >= 4; ++i, len -= 4) { - k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24; - k = - /* Math.imul(k, m): */ - (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16); - k ^= - /* k >>> r: */ - k >>> 24; - h = - /* Math.imul(k, m): */ - (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^ - /* Math.imul(h, m): */ - (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); - } // Handle the last few bytes of the input array - - - switch (len) { - case 3: - h ^= (str.charCodeAt(i + 2) & 0xff) << 16; - - case 2: - h ^= (str.charCodeAt(i + 1) & 0xff) << 8; - - case 1: - h ^= str.charCodeAt(i) & 0xff; - h = - /* Math.imul(h, m): */ - (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); - } // Do a few final mixes of the hash to ensure the last few - // bytes are well-incorporated. - - - h ^= h >>> 13; - h = - /* Math.imul(h, m): */ - (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16); - return ((h ^ h >>> 15) >>> 0).toString(36); -} - - - - -/***/ }), - -/***/ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ memoize) -/* harmony export */ }); -function memoize(fn) { - var cache = Object.create(null); - return function (arg) { - if (cache[arg] === undefined) cache[arg] = fn(arg); - return cache[arg]; - }; -} - - - - -/***/ }), - -/***/ "./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js ***! - \*****************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ hoistNonReactStatics) -/* harmony export */ }); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0__); - - -// this file isolates this package that is not tree-shakeable -// and if this module doesn't actually contain any logic of its own -// then Rollup just use 'hoist-non-react-statics' directly in other chunks - -var hoistNonReactStatics = (function (targetComponent, sourceComponent) { - return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_0___default()(targetComponent, sourceComponent); -}); - - - - -/***/ }), - -/***/ "./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ C: () => (/* binding */ CacheProvider), -/* harmony export */ E: () => (/* binding */ Emotion$1), -/* harmony export */ T: () => (/* binding */ ThemeContext), -/* harmony export */ _: () => (/* binding */ __unsafe_useEmotionCache), -/* harmony export */ a: () => (/* binding */ ThemeProvider), -/* harmony export */ b: () => (/* binding */ withTheme), -/* harmony export */ c: () => (/* binding */ createEmotionProps), -/* harmony export */ h: () => (/* binding */ hasOwnProperty), -/* harmony export */ i: () => (/* binding */ isBrowser), -/* harmony export */ u: () => (/* binding */ useTheme), -/* harmony export */ w: () => (/* binding */ withEmotionCache) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"); -/* harmony import */ var _isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js */ "./node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js"); -/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); -/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"); -/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @emotion/use-insertion-effect-with-fallbacks */ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"); - - - - - - - - - - -var isBrowser = "object" !== 'undefined'; -var hasOwnProperty = {}.hasOwnProperty; - -var EmotionCacheContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case -// because this module is primarily intended for the browser and node -// but it's also required in react native and similar environments sometimes -// and we could have a special build just for that -// but this is much easier and the native packages -// might use a different theme context in the future anyway -typeof HTMLElement !== 'undefined' ? /* #__PURE__ */(0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__["default"])({ - key: 'css' -}) : null); - -if (true) { - EmotionCacheContext.displayName = 'EmotionCacheContext'; -} - -var CacheProvider = EmotionCacheContext.Provider; -var __unsafe_useEmotionCache = function useEmotionCache() { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); -}; - -var withEmotionCache = function withEmotionCache(func) { - // $FlowFixMe - return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(function (props, ref) { - // the cache will never be null in the browser - var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); - return func(props, cache, ref); - }); -}; - -if (!isBrowser) { - withEmotionCache = function withEmotionCache(func) { - return function (props) { - var cache = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(EmotionCacheContext); - - if (cache === null) { - // yes, we're potentially creating this on every render - // it doesn't actually matter though since it's only on the server - // so there will only every be a single render - // that could change in the future because of suspense and etc. but for now, - // this works and i don't want to optimise for a future thing that we aren't sure about - cache = (0,_emotion_cache__WEBPACK_IMPORTED_MODULE_1__["default"])({ - key: 'css' - }); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmotionCacheContext.Provider, { - value: cache - }, func(props, cache)); - } else { - return func(props, cache); - } - }; - }; -} - -var ThemeContext = /* #__PURE__ */react__WEBPACK_IMPORTED_MODULE_0__.createContext({}); - -if (true) { - ThemeContext.displayName = 'EmotionThemeContext'; -} - -var useTheme = function useTheme() { - return react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext); -}; - -var getTheme = function getTheme(outerTheme, theme) { - if (typeof theme === 'function') { - var mergedTheme = theme(outerTheme); - - if ( true && (mergedTheme == null || typeof mergedTheme !== 'object' || Array.isArray(mergedTheme))) { - throw new Error('[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!'); - } - - return mergedTheme; - } - - if ( true && (theme == null || typeof theme !== 'object' || Array.isArray(theme))) { - throw new Error('[ThemeProvider] Please make your theme prop a plain object'); - } - - return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({}, outerTheme, theme); -}; - -var createCacheWithTheme = /* #__PURE__ */(0,_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__["default"])(function (outerTheme) { - return (0,_emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_3__["default"])(function (theme) { - return getTheme(outerTheme, theme); - }); -}); -var ThemeProvider = function ThemeProvider(props) { - var theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext); - - if (props.theme !== theme) { - theme = createCacheWithTheme(theme)(props.theme); - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(ThemeContext.Provider, { - value: theme - }, props.children); -}; -function withTheme(Component) { - var componentName = Component.displayName || Component.name || 'Component'; - - var render = function render(props, ref) { - var theme = react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_2__["default"])({ - theme: theme, - ref: ref - }, props)); - }; // $FlowFixMe - - - var WithTheme = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(render); - WithTheme.displayName = "WithTheme(" + componentName + ")"; - return (0,_isolated_hnrs_dist_emotion_react_isolated_hnrs_browser_esm_js__WEBPACK_IMPORTED_MODULE_7__["default"])(WithTheme, Component); -} - -var getLastPart = function getLastPart(functionName) { - // The match may be something like 'Object.createEmotionProps' or - // 'Loader.prototype.render' - var parts = functionName.split('.'); - return parts[parts.length - 1]; -}; - -var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) { - // V8 - var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line); - if (match) return getLastPart(match[1]); // Safari / Firefox - - match = /^([A-Za-z0-9$.]+)@/.exec(line); - if (match) return getLastPart(match[1]); - return undefined; -}; - -var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS -// identifiers, thus we only need to replace what is a valid character for JS, -// but not for CSS. - -var sanitizeIdentifier = function sanitizeIdentifier(identifier) { - return identifier.replace(/\$/g, '-'); -}; - -var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) { - if (!stackTrace) return undefined; - var lines = stackTrace.split('\n'); - - for (var i = 0; i < lines.length; i++) { - var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error" - - if (!functionName) continue; // If we reach one of these, we have gone too far and should quit - - if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an - // uppercase letter - - if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName); - } - - return undefined; -}; - -var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__'; -var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__'; -var createEmotionProps = function createEmotionProps(type, props) { - if ( true && typeof props.css === 'string' && // check if there is a css declaration - props.css.indexOf(':') !== -1) { - throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`"); - } - - var newProps = {}; - - for (var key in props) { - if (hasOwnProperty.call(props, key)) { - newProps[key] = props[key]; - } - } - - newProps[typePropName] = type; // For performance, only call getLabelFromStackTrace in development and when - // the label hasn't already been computed - - if ( true && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) { - var label = getLabelFromStackTrace(new Error().stack); - if (label) newProps[labelPropName] = label; - } - - return newProps; -}; - -var Insertion = function Insertion(_ref) { - var cache = _ref.cache, - serialized = _ref.serialized, - isStringTag = _ref.isStringTag; - (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__.registerStyles)(cache, serialized, isStringTag); - (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_6__.useInsertionEffectAlwaysWithSyncFallback)(function () { - return (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__.insertStyles)(cache, serialized, isStringTag); - }); - - return null; -}; - -var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) { - var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works - // not passing the registered cache to serializeStyles because it would - // make certain babel optimisations not possible - - if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) { - cssProp = cache.registered[cssProp]; - } - - var WrappedComponent = props[typePropName]; - var registeredStyles = [cssProp]; - var className = ''; - - if (typeof props.className === 'string') { - className = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_4__.getRegisteredStyles)(cache.registered, registeredStyles, props.className); - } else if (props.className != null) { - className = props.className + " "; - } - - var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_5__.serializeStyles)(registeredStyles, undefined, react__WEBPACK_IMPORTED_MODULE_0__.useContext(ThemeContext)); - - if ( true && serialized.name.indexOf('-') === -1) { - var labelFromStack = props[labelPropName]; - - if (labelFromStack) { - serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_5__.serializeStyles)([serialized, 'label:' + labelFromStack + ';']); - } - } - - className += cache.key + "-" + serialized.name; - var newProps = {}; - - for (var key in props) { - if (hasOwnProperty.call(props, key) && key !== 'css' && key !== typePropName && ( false || key !== labelPropName)) { - newProps[key] = props[key]; - } - } - - newProps.ref = ref; - newProps.className = className; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Insertion, { - cache: cache, - serialized: serialized, - isStringTag: typeof WrappedComponent === 'string' - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(WrappedComponent, newProps)); -}); - -if (true) { - Emotion.displayName = 'EmotionCssPropInternal'; -} - -var Emotion$1 = Emotion; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@emotion/react/dist/emotion-react.browser.esm.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CacheProvider: () => (/* reexport safe */ _emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.C), -/* harmony export */ ClassNames: () => (/* binding */ ClassNames), -/* harmony export */ Global: () => (/* binding */ Global), -/* harmony export */ ThemeContext: () => (/* reexport safe */ _emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.T), -/* harmony export */ ThemeProvider: () => (/* reexport safe */ _emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.a), -/* harmony export */ __unsafe_useEmotionCache: () => (/* reexport safe */ _emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__._), -/* harmony export */ createElement: () => (/* binding */ jsx), -/* harmony export */ css: () => (/* binding */ css), -/* harmony export */ jsx: () => (/* binding */ jsx), -/* harmony export */ keyframes: () => (/* binding */ keyframes), -/* harmony export */ useTheme: () => (/* reexport safe */ _emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.u), -/* harmony export */ withEmotionCache: () => (/* reexport safe */ _emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.w), -/* harmony export */ withTheme: () => (/* reexport safe */ _emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.b) -/* harmony export */ }); -/* harmony import */ var _emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./emotion-element-c39617d8.browser.esm.js */ "./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); -/* harmony import */ var _emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @emotion/use-insertion-effect-with-fallbacks */ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"); -/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"); -/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); -/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var _emotion_weak_memoize__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @emotion/weak-memoize */ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"); -/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_8__); - - - - - - - - - - - - -var pkg = { - name: "@emotion/react", - version: "11.11.1", - main: "dist/emotion-react.cjs.js", - module: "dist/emotion-react.esm.js", - browser: { - "./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js" - }, - exports: { - ".": { - module: { - worker: "./dist/emotion-react.worker.esm.js", - browser: "./dist/emotion-react.browser.esm.js", - "default": "./dist/emotion-react.esm.js" - }, - "import": "./dist/emotion-react.cjs.mjs", - "default": "./dist/emotion-react.cjs.js" - }, - "./jsx-runtime": { - module: { - worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js", - browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js" - }, - "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs", - "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js" - }, - "./_isolated-hnrs": { - module: { - worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js", - browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js" - }, - "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs", - "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js" - }, - "./jsx-dev-runtime": { - module: { - worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js", - browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js" - }, - "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs", - "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js" - }, - "./package.json": "./package.json", - "./types/css-prop": "./types/css-prop.d.ts", - "./macro": { - types: { - "import": "./macro.d.mts", - "default": "./macro.d.ts" - }, - "default": "./macro.js" - } - }, - types: "types/index.d.ts", - files: [ - "src", - "dist", - "jsx-runtime", - "jsx-dev-runtime", - "_isolated-hnrs", - "types/*.d.ts", - "macro.*" - ], - sideEffects: false, - author: "Emotion Contributors", - license: "MIT", - scripts: { - "test:typescript": "dtslint types" - }, - dependencies: { - "@babel/runtime": "^7.18.3", - "@emotion/babel-plugin": "^11.11.0", - "@emotion/cache": "^11.11.0", - "@emotion/serialize": "^1.1.2", - "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", - "@emotion/utils": "^1.2.1", - "@emotion/weak-memoize": "^0.3.1", - "hoist-non-react-statics": "^3.3.1" - }, - peerDependencies: { - react: ">=16.8.0" - }, - peerDependenciesMeta: { - "@types/react": { - optional: true - } - }, - devDependencies: { - "@definitelytyped/dtslint": "0.0.112", - "@emotion/css": "11.11.0", - "@emotion/css-prettifier": "1.1.3", - "@emotion/server": "11.11.0", - "@emotion/styled": "11.11.0", - "html-tag-names": "^1.1.2", - react: "16.14.0", - "svg-tag-names": "^1.1.1", - typescript: "^4.5.5" - }, - repository: "https://github.com/emotion-js/emotion/tree/main/packages/react", - publishConfig: { - access: "public" - }, - "umd:main": "dist/emotion-react.umd.min.js", - preconstruct: { - entrypoints: [ - "./index.js", - "./jsx-runtime.js", - "./jsx-dev-runtime.js", - "./_isolated-hnrs.js" - ], - umdName: "emotionReact", - exports: { - envConditions: [ - "browser", - "worker" - ], - extra: { - "./types/css-prop": "./types/css-prop.d.ts", - "./macro": { - types: { - "import": "./macro.d.mts", - "default": "./macro.d.ts" - }, - "default": "./macro.js" - } - } - } - } -}; - -var jsx = function jsx(type, props) { - var args = arguments; - - if (props == null || !_emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.h.call(props, 'css')) { - // $FlowFixMe - return react__WEBPACK_IMPORTED_MODULE_1__.createElement.apply(undefined, args); - } - - var argsLength = args.length; - var createElementArgArray = new Array(argsLength); - createElementArgArray[0] = _emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.E; - createElementArgArray[1] = (0,_emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.c)(type, props); - - for (var i = 2; i < argsLength; i++) { - createElementArgArray[i] = args[i]; - } // $FlowFixMe - - - return react__WEBPACK_IMPORTED_MODULE_1__.createElement.apply(null, createElementArgArray); -}; - -var warnedAboutCssPropForGlobal = false; // maintain place over rerenders. -// initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild -// initial client-side render from SSR, use place of hydrating tag - -var Global = /* #__PURE__ */(0,_emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.w)(function (props, cache) { - if ( true && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is - // probably using the custom createElement which - // means it will be turned into a className prop - // $FlowFixMe I don't really want to add it to the type since it shouldn't be used - props.className || props.css)) { - console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"); - warnedAboutCssPropForGlobal = true; - } - - var styles = props.styles; - var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_4__.serializeStyles)([styles], undefined, react__WEBPACK_IMPORTED_MODULE_1__.useContext(_emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.T)); - - if (!_emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.i) { - var _ref; - - var serializedNames = serialized.name; - var serializedStyles = serialized.styles; - var next = serialized.next; - - while (next !== undefined) { - serializedNames += ' ' + next.name; - serializedStyles += next.styles; - next = next.next; - } - - var shouldCache = cache.compat === true; - var rules = cache.insert("", { - name: serializedNames, - styles: serializedStyles - }, cache.sheet, shouldCache); - - if (shouldCache) { - return null; - } - - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement("style", (_ref = {}, _ref["data-emotion"] = cache.key + "-global " + serializedNames, _ref.dangerouslySetInnerHTML = { - __html: rules - }, _ref.nonce = cache.sheet.nonce, _ref)); - } // yes, i know these hooks are used conditionally - // but it is based on a constant that will never change at runtime - // it's effectively like having two implementations and switching them out - // so it's not actually breaking anything - - - var sheetRef = react__WEBPACK_IMPORTED_MODULE_1__.useRef(); - (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__.useInsertionEffectWithLayoutFallback)(function () { - var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675 - - var sheet = new cache.sheet.constructor({ - key: key, - nonce: cache.sheet.nonce, - container: cache.sheet.container, - speedy: cache.sheet.isSpeedy - }); - var rehydrating = false; // $FlowFixMe - - var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]"); - - if (cache.sheet.tags.length) { - sheet.before = cache.sheet.tags[0]; - } - - if (node !== null) { - rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other s - - node.setAttribute('data-emotion', key); - sheet.hydrate([node]); - } - - sheetRef.current = [sheet, rehydrating]; - return function () { - sheet.flush(); - }; - }, [cache]); - (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__.useInsertionEffectWithLayoutFallback)(function () { - var sheetRefCurrent = sheetRef.current; - var sheet = sheetRefCurrent[0], - rehydrating = sheetRefCurrent[1]; - - if (rehydrating) { - sheetRefCurrent[1] = false; - return; - } - - if (serialized.next !== undefined) { - // insert keyframes - (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.insertStyles)(cache, serialized.next, true); - } - - if (sheet.tags.length) { - // if this doesn't exist then it will be null so the style element will be appended - var element = sheet.tags[sheet.tags.length - 1].nextElementSibling; - sheet.before = element; - sheet.flush(); - } - - cache.insert("", serialized, sheet, false); - }, [cache, serialized.name]); - return null; -}); - -if (true) { - Global.displayName = 'EmotionGlobal'; -} - -function css() { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_4__.serializeStyles)(args); -} - -var keyframes = function keyframes() { - var insertable = css.apply(void 0, arguments); - var name = "animation-" + insertable.name; // $FlowFixMe - - return { - name: name, - styles: "@keyframes " + name + "{" + insertable.styles + "}", - anim: 1, - toString: function toString() { - return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; - } - }; -}; - -var classnames = function classnames(args) { - var len = args.length; - var i = 0; - var cls = ''; - - for (; i < len; i++) { - var arg = args[i]; - if (arg == null) continue; - var toAdd = void 0; - - switch (typeof arg) { - case 'boolean': - break; - - case 'object': - { - if (Array.isArray(arg)) { - toAdd = classnames(arg); - } else { - if ( true && arg.styles !== undefined && arg.name !== undefined) { - console.error('You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n' + '`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from component.'); - } - - toAdd = ''; - - for (var k in arg) { - if (arg[k] && k) { - toAdd && (toAdd += ' '); - toAdd += k; - } - } - } - - break; - } - - default: - { - toAdd = arg; - } - } - - if (toAdd) { - cls && (cls += ' '); - cls += toAdd; - } - } - - return cls; -}; - -function merge(registered, css, className) { - var registeredStyles = []; - var rawClassName = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.getRegisteredStyles)(registered, registeredStyles, className); - - if (registeredStyles.length < 2) { - return className; - } - - return rawClassName + css(registeredStyles); -} - -var Insertion = function Insertion(_ref) { - var cache = _ref.cache, - serializedArr = _ref.serializedArr; - (0,_emotion_use_insertion_effect_with_fallbacks__WEBPACK_IMPORTED_MODULE_3__.useInsertionEffectAlwaysWithSyncFallback)(function () { - - for (var i = 0; i < serializedArr.length; i++) { - (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.insertStyles)(cache, serializedArr[i], false); - } - }); - - return null; -}; - -var ClassNames = /* #__PURE__ */(0,_emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.w)(function (props, cache) { - var hasRendered = false; - var serializedArr = []; - - var css = function css() { - if (hasRendered && "development" !== 'production') { - throw new Error('css can only be used during render'); - } - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - var serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_4__.serializeStyles)(args, cache.registered); - serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx` - - (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.registerStyles)(cache, serialized, false); - return cache.key + "-" + serialized.name; - }; - - var cx = function cx() { - if (hasRendered && "development" !== 'production') { - throw new Error('cx can only be used during render'); - } - - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - return merge(cache.registered, css, classnames(args)); - }; - - var content = { - css: css, - cx: cx, - theme: react__WEBPACK_IMPORTED_MODULE_1__.useContext(_emotion_element_c39617d8_browser_esm_js__WEBPACK_IMPORTED_MODULE_0__.T) - }; - var ele = props.children(content); - hasRendered = true; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(Insertion, { - cache: cache, - serializedArr: serializedArr - }), ele); -}); - -if (true) { - ClassNames.displayName = 'EmotionClassNames'; -} - -if (true) { - var isBrowser = "object" !== 'undefined'; // #1727, #2905 for some reason Jest and Vitest evaluate modules twice if some consuming module gets mocked - - var isTestEnv = typeof jest !== 'undefined' || typeof vi !== 'undefined'; - - if (isBrowser && !isTestEnv) { - // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later - var globalContext = // $FlowIgnore - typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef - : isBrowser ? window : __webpack_require__.g; - var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__"; - - if (globalContext[globalKey]) { - console.warn('You are loading @emotion/react when it is already loaded. Running ' + 'multiple instances may cause problems. This can happen if multiple ' + 'versions are used, or if multiple builds of the same version are ' + 'used.'); - } - - globalContext[globalKey] = true; - } -} - - - - -/***/ }), - -/***/ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ serializeStyles: () => (/* binding */ serializeStyles) -/* harmony export */ }); -/* harmony import */ var _emotion_hash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/hash */ "./node_modules/@emotion/hash/dist/emotion-hash.esm.js"); -/* harmony import */ var _emotion_unitless__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/unitless */ "./node_modules/@emotion/unitless/dist/emotion-unitless.esm.js"); -/* harmony import */ var _emotion_memoize__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/memoize */ "./node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"); - - - - -var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences"; -var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."; -var hyphenateRegex = /[A-Z]|^ms/g; -var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g; - -var isCustomProperty = function isCustomProperty(property) { - return property.charCodeAt(1) === 45; -}; - -var isProcessableValue = function isProcessableValue(value) { - return value != null && typeof value !== 'boolean'; -}; - -var processStyleName = /* #__PURE__ */(0,_emotion_memoize__WEBPACK_IMPORTED_MODULE_2__["default"])(function (styleName) { - return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase(); -}); - -var processStyleValue = function processStyleValue(key, value) { - switch (key) { - case 'animation': - case 'animationName': - { - if (typeof value === 'string') { - return value.replace(animationRegex, function (match, p1, p2) { - cursor = { - name: p1, - styles: p2, - next: cursor - }; - return p1; - }); - } - } - } - - if (_emotion_unitless__WEBPACK_IMPORTED_MODULE_1__["default"][key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) { - return value + 'px'; - } - - return value; -}; - -if (true) { - var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/; - var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset']; - var oldProcessStyleValue = processStyleValue; - var msPattern = /^-ms-/; - var hyphenPattern = /-(.)/g; - var hyphenatedCache = {}; - - processStyleValue = function processStyleValue(key, value) { - if (key === 'content') { - if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) { - throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`"); - } - } - - var processed = oldProcessStyleValue(key, value); - - if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) { - hyphenatedCache[key] = true; - console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) { - return _char.toUpperCase(); - }) + "?"); - } - - return processed; - }; -} - -var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.'; - -function handleInterpolation(mergedProps, registered, interpolation) { - if (interpolation == null) { - return ''; - } - - if (interpolation.__emotion_styles !== undefined) { - if ( true && interpolation.toString() === 'NO_COMPONENT_SELECTOR') { - throw new Error(noComponentSelectorMessage); - } - - return interpolation; - } - - switch (typeof interpolation) { - case 'boolean': - { - return ''; - } - - case 'object': - { - if (interpolation.anim === 1) { - cursor = { - name: interpolation.name, - styles: interpolation.styles, - next: cursor - }; - return interpolation.name; - } - - if (interpolation.styles !== undefined) { - var next = interpolation.next; - - if (next !== undefined) { - // not the most efficient thing ever but this is a pretty rare case - // and there will be very few iterations of this generally - while (next !== undefined) { - cursor = { - name: next.name, - styles: next.styles, - next: cursor - }; - next = next.next; - } - } - - var styles = interpolation.styles + ";"; - - if ( true && interpolation.map !== undefined) { - styles += interpolation.map; - } - - return styles; - } - - return createStringFromObject(mergedProps, registered, interpolation); - } - - case 'function': - { - if (mergedProps !== undefined) { - var previousCursor = cursor; - var result = interpolation(mergedProps); - cursor = previousCursor; - return handleInterpolation(mergedProps, registered, result); - } else if (true) { - console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`"); - } - - break; - } - - case 'string': - if (true) { - var matched = []; - var replaced = interpolation.replace(animationRegex, function (match, p1, p2) { - var fakeVarName = "animation" + matched.length; - matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`"); - return "${" + fakeVarName + "}"; - }); - - if (matched.length) { - console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`")); - } - } - - break; - } // finalize string values (regular strings and functions interpolated into css calls) - - - if (registered == null) { - return interpolation; - } - - var cached = registered[interpolation]; - return cached !== undefined ? cached : interpolation; -} - -function createStringFromObject(mergedProps, registered, obj) { - var string = ''; - - if (Array.isArray(obj)) { - for (var i = 0; i < obj.length; i++) { - string += handleInterpolation(mergedProps, registered, obj[i]) + ";"; - } - } else { - for (var _key in obj) { - var value = obj[_key]; - - if (typeof value !== 'object') { - if (registered != null && registered[value] !== undefined) { - string += _key + "{" + registered[value] + "}"; - } else if (isProcessableValue(value)) { - string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";"; - } - } else { - if (_key === 'NO_COMPONENT_SELECTOR' && "development" !== 'production') { - throw new Error(noComponentSelectorMessage); - } - - if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) { - for (var _i = 0; _i < value.length; _i++) { - if (isProcessableValue(value[_i])) { - string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";"; - } - } - } else { - var interpolated = handleInterpolation(mergedProps, registered, value); - - switch (_key) { - case 'animation': - case 'animationName': - { - string += processStyleName(_key) + ":" + interpolated + ";"; - break; - } - - default: - { - if ( true && _key === 'undefined') { - console.error(UNDEFINED_AS_OBJECT_KEY_ERROR); - } - - string += _key + "{" + interpolated + "}"; - } - } - } - } - } - } - - return string; -} - -var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g; -var sourceMapPattern; - -if (true) { - sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g; -} // this is the cursor for keyframes -// keyframes are stored on the SerializedStyles object as a linked list - - -var cursor; -var serializeStyles = function serializeStyles(args, registered, mergedProps) { - if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) { - return args[0]; - } - - var stringMode = true; - var styles = ''; - cursor = undefined; - var strings = args[0]; - - if (strings == null || strings.raw === undefined) { - stringMode = false; - styles += handleInterpolation(mergedProps, registered, strings); - } else { - if ( true && strings[0] === undefined) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - - styles += strings[0]; - } // we start at 1 since we've already handled the first arg - - - for (var i = 1; i < args.length; i++) { - styles += handleInterpolation(mergedProps, registered, args[i]); - - if (stringMode) { - if ( true && strings[i] === undefined) { - console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR); - } - - styles += strings[i]; - } - } - - var sourceMap; - - if (true) { - styles = styles.replace(sourceMapPattern, function (match) { - sourceMap = match; - return ''; - }); - } // using a global regex with .exec is stateful so lastIndex has to be reset each time - - - labelPattern.lastIndex = 0; - var identifierName = ''; - var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5 - - while ((match = labelPattern.exec(styles)) !== null) { - identifierName += '-' + // $FlowFixMe we know it's not null - match[1]; - } - - var name = (0,_emotion_hash__WEBPACK_IMPORTED_MODULE_0__["default"])(styles) + identifierName; - - if (true) { - // $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it) - return { - name: name, - styles: styles, - map: sourceMap, - next: cursor, - toString: function toString() { - return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; - } - }; - } - - return { - name: name, - styles: styles, - next: cursor - }; -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ StyleSheet: () => (/* binding */ StyleSheet) -/* harmony export */ }); -/* - -Based off glamor's StyleSheet, thanks Sunil ❤️ - -high performance StyleSheet for css-in-js systems - -- uses multiple style tags behind the scenes for millions of rules -- uses `insertRule` for appending in production for *much* faster performance - -// usage - -import { StyleSheet } from '@emotion/sheet' - -let styleSheet = new StyleSheet({ key: '', container: document.head }) - -styleSheet.insert('#box { border: 1px solid red; }') -- appends a css rule into the stylesheet - -styleSheet.flush() -- empties the stylesheet of all its contents - -*/ -// $FlowFixMe -function sheetForTag(tag) { - if (tag.sheet) { - // $FlowFixMe - return tag.sheet; - } // this weirdness brought to you by firefox - - /* istanbul ignore next */ - - - for (var i = 0; i < document.styleSheets.length; i++) { - if (document.styleSheets[i].ownerNode === tag) { - // $FlowFixMe - return document.styleSheets[i]; - } - } -} - -function createStyleElement(options) { - var tag = document.createElement('style'); - tag.setAttribute('data-emotion', options.key); - - if (options.nonce !== undefined) { - tag.setAttribute('nonce', options.nonce); - } - - tag.appendChild(document.createTextNode('')); - tag.setAttribute('data-s', ''); - return tag; -} - -var StyleSheet = /*#__PURE__*/function () { - // Using Node instead of HTMLElement since container may be a ShadowRoot - function StyleSheet(options) { - var _this = this; - - this._insertTag = function (tag) { - var before; - - if (_this.tags.length === 0) { - if (_this.insertionPoint) { - before = _this.insertionPoint.nextSibling; - } else if (_this.prepend) { - before = _this.container.firstChild; - } else { - before = _this.before; - } - } else { - before = _this.tags[_this.tags.length - 1].nextSibling; - } - - _this.container.insertBefore(tag, before); - - _this.tags.push(tag); - }; - - this.isSpeedy = options.speedy === undefined ? "development" === 'production' : options.speedy; - this.tags = []; - this.ctr = 0; - this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets - - this.key = options.key; - this.container = options.container; - this.prepend = options.prepend; - this.insertionPoint = options.insertionPoint; - this.before = null; - } - - var _proto = StyleSheet.prototype; - - _proto.hydrate = function hydrate(nodes) { - nodes.forEach(this._insertTag); - }; - - _proto.insert = function insert(rule) { - // the max length is how many rules we have per style tag, it's 65000 in speedy mode - // it's 1 in dev because we insert source maps that map a single rule to a location - // and you can only have one source map per style tag - if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) { - this._insertTag(createStyleElement(this)); - } - - var tag = this.tags[this.tags.length - 1]; - - if (true) { - var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105; - - if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) { - // this would only cause problem in speedy mode - // but we don't want enabling speedy to affect the observable behavior - // so we report this error at all times - console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.'); - } - this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule; - } - - if (this.isSpeedy) { - var sheet = sheetForTag(tag); - - try { - // this is the ultrafast version, works across browsers - // the big drawback is that the css won't be editable in devtools - sheet.insertRule(rule, sheet.cssRules.length); - } catch (e) { - if ( true && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) { - console.error("There was a problem inserting the following rule: \"" + rule + "\"", e); - } - } - } else { - tag.appendChild(document.createTextNode(rule)); - } - - this.ctr++; - }; - - _proto.flush = function flush() { - // $FlowFixMe - this.tags.forEach(function (tag) { - return tag.parentNode && tag.parentNode.removeChild(tag); - }); - this.tags = []; - this.ctr = 0; - - if (true) { - this._alreadyInsertedOrderInsensitiveRule = false; - } - }; - - return StyleSheet; -}(); - - - - -/***/ }), - -/***/ "./node_modules/@emotion/unitless/dist/emotion-unitless.esm.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@emotion/unitless/dist/emotion-unitless.esm.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ unitlessKeys) -/* harmony export */ }); -var unitlessKeys = { - animationIterationCount: 1, - aspectRatio: 1, - borderImageOutset: 1, - borderImageSlice: 1, - borderImageWidth: 1, - boxFlex: 1, - boxFlexGroup: 1, - boxOrdinalGroup: 1, - columnCount: 1, - columns: 1, - flex: 1, - flexGrow: 1, - flexPositive: 1, - flexShrink: 1, - flexNegative: 1, - flexOrder: 1, - gridRow: 1, - gridRowEnd: 1, - gridRowSpan: 1, - gridRowStart: 1, - gridColumn: 1, - gridColumnEnd: 1, - gridColumnSpan: 1, - gridColumnStart: 1, - msGridRow: 1, - msGridRowSpan: 1, - msGridColumn: 1, - msGridColumnSpan: 1, - fontWeight: 1, - lineHeight: 1, - opacity: 1, - order: 1, - orphans: 1, - tabSize: 1, - widows: 1, - zIndex: 1, - zoom: 1, - WebkitLineClamp: 1, - // SVG-related properties - fillOpacity: 1, - floodOpacity: 1, - stopOpacity: 1, - strokeDasharray: 1, - strokeDashoffset: 1, - strokeMiterlimit: 1, - strokeOpacity: 1, - strokeWidth: 1 -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js": -/*!***********************************************************************************************************************************!*\ - !*** ./node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js ***! - \***********************************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useInsertionEffectAlwaysWithSyncFallback: () => (/* binding */ useInsertionEffectAlwaysWithSyncFallback), -/* harmony export */ useInsertionEffectWithLayoutFallback: () => (/* binding */ useInsertionEffectWithLayoutFallback) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var syncFallback = function syncFallback(create) { - return create(); -}; - -var useInsertionEffect = react__WEBPACK_IMPORTED_MODULE_0__['useInsertion' + 'Effect'] ? react__WEBPACK_IMPORTED_MODULE_0__['useInsertion' + 'Effect'] : false; -var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback; -var useInsertionEffectWithLayoutFallback = useInsertionEffect || react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getRegisteredStyles: () => (/* binding */ getRegisteredStyles), -/* harmony export */ insertStyles: () => (/* binding */ insertStyles), -/* harmony export */ registerStyles: () => (/* binding */ registerStyles) -/* harmony export */ }); -var isBrowser = "object" !== 'undefined'; -function getRegisteredStyles(registered, registeredStyles, classNames) { - var rawClassName = ''; - classNames.split(' ').forEach(function (className) { - if (registered[className] !== undefined) { - registeredStyles.push(registered[className] + ";"); - } else { - rawClassName += className + " "; - } - }); - return rawClassName; -} -var registerStyles = function registerStyles(cache, serialized, isStringTag) { - var className = cache.key + "-" + serialized.name; - - if ( // we only need to add the styles to the registered cache if the - // class name could be used further down - // the tree but if it's a string tag, we know it won't - // so we don't have to add it to registered cache. - // this improves memory usage since we can avoid storing the whole style string - (isStringTag === false || // we need to always store it if we're in compat mode and - // in node since emotion-server relies on whether a style is in - // the registered cache to know whether a style is global or not - // also, note that this check will be dead code eliminated in the browser - isBrowser === false ) && cache.registered[className] === undefined) { - cache.registered[className] = serialized.styles; - } -}; -var insertStyles = function insertStyles(cache, serialized, isStringTag) { - registerStyles(cache, serialized, isStringTag); - var className = cache.key + "-" + serialized.name; - - if (cache.inserted[serialized.name] === undefined) { - var current = serialized; - - do { - cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true); - - current = current.next; - } while (current !== undefined); - } -}; - - - - -/***/ }), - -/***/ "./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ weakMemoize) -/* harmony export */ }); -var weakMemoize = function weakMemoize(func) { - // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps - var cache = new WeakMap(); - return function (arg) { - if (cache.has(arg)) { - // $FlowFixMe - return cache.get(arg); - } - - var ret = func(arg); - cache.set(arg, ret); - return ret; - }; -}; - - - - -/***/ }), - -/***/ "./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ arrow: () => (/* binding */ arrow), -/* harmony export */ autoPlacement: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.autoPlacement), -/* harmony export */ autoUpdate: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_1__.autoUpdate), -/* harmony export */ computePosition: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_1__.computePosition), -/* harmony export */ detectOverflow: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.detectOverflow), -/* harmony export */ flip: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.flip), -/* harmony export */ getOverflowAncestors: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__.getOverflowAncestors), -/* harmony export */ hide: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.hide), -/* harmony export */ inline: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.inline), -/* harmony export */ limitShift: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.limitShift), -/* harmony export */ offset: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.offset), -/* harmony export */ platform: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_1__.platform), -/* harmony export */ shift: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.shift), -/* harmony export */ size: () => (/* reexport safe */ _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.size), -/* harmony export */ useFloating: () => (/* binding */ useFloating) -/* harmony export */ }); -/* harmony import */ var _floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @floating-ui/dom */ "./node_modules/@floating-ui/core/dist/floating-ui.core.mjs"); -/* harmony import */ var _floating_ui_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @floating-ui/dom */ "./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"); -/* harmony import */ var _floating_ui_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @floating-ui/dom */ "./node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); - - - - - - -/** - * A data provider that provides data to position an inner element of the - * floating element (usually a triangle or caret) so that it is centered to the - * reference element. - * This wraps the core `arrow` middleware to allow React refs as the element. - * @see https://floating-ui.com/docs/arrow - */ -const arrow = options => { - const { - element, - padding - } = options; - function isRef(value) { - return Object.prototype.hasOwnProperty.call(value, 'current'); - } - return { - name: 'arrow', - options, - fn(args) { - if (isRef(element)) { - if (element.current != null) { - return (0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.arrow)({ - element: element.current, - padding - }).fn(args); - } - return {}; - } else if (element) { - return (0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_0__.arrow)({ - element, - padding - }).fn(args); - } - return {}; - } - }; -}; - -var index = typeof document !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_3__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_3__.useEffect; - -// Fork of `fast-deep-equal` that only does the comparisons we need and compares -// functions -function deepEqual(a, b) { - if (a === b) { - return true; - } - if (typeof a !== typeof b) { - return false; - } - if (typeof a === 'function' && a.toString() === b.toString()) { - return true; - } - let length, i, keys; - if (a && b && typeof a == 'object') { - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) { - if (!deepEqual(a[i], b[i])) { - return false; - } - } - return true; - } - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) { - return false; - } - for (i = length; i-- !== 0;) { - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) { - return false; - } - } - for (i = length; i-- !== 0;) { - const key = keys[i]; - if (key === '_owner' && a.$$typeof) { - continue; - } - if (!deepEqual(a[key], b[key])) { - return false; - } - } - return true; - } - return a !== a && b !== b; -} - -function useLatestRef(value) { - const ref = react__WEBPACK_IMPORTED_MODULE_3__.useRef(value); - index(() => { - ref.current = value; - }); - return ref; -} - -/** - * Provides data to position a floating element. - * @see https://floating-ui.com/docs/react - */ -function useFloating(options) { - if (options === void 0) { - options = {}; - } - const { - placement = 'bottom', - strategy = 'absolute', - middleware = [], - platform, - whileElementsMounted, - open - } = options; - const [data, setData] = react__WEBPACK_IMPORTED_MODULE_3__.useState({ - x: null, - y: null, - strategy, - placement, - middlewareData: {}, - isPositioned: false - }); - const [latestMiddleware, setLatestMiddleware] = react__WEBPACK_IMPORTED_MODULE_3__.useState(middleware); - if (!deepEqual(latestMiddleware, middleware)) { - setLatestMiddleware(middleware); - } - const referenceRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - const floatingRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(null); - const dataRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(data); - const whileElementsMountedRef = useLatestRef(whileElementsMounted); - const platformRef = useLatestRef(platform); - const [reference, _setReference] = react__WEBPACK_IMPORTED_MODULE_3__.useState(null); - const [floating, _setFloating] = react__WEBPACK_IMPORTED_MODULE_3__.useState(null); - const setReference = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(node => { - if (referenceRef.current !== node) { - referenceRef.current = node; - _setReference(node); - } - }, []); - const setFloating = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(node => { - if (floatingRef.current !== node) { - floatingRef.current = node; - _setFloating(node); - } - }, []); - const update = react__WEBPACK_IMPORTED_MODULE_3__.useCallback(() => { - if (!referenceRef.current || !floatingRef.current) { - return; - } - const config = { - placement, - strategy, - middleware: latestMiddleware - }; - if (platformRef.current) { - config.platform = platformRef.current; - } - (0,_floating_ui_dom__WEBPACK_IMPORTED_MODULE_1__.computePosition)(referenceRef.current, floatingRef.current, config).then(data => { - const fullData = { - ...data, - isPositioned: true - }; - if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) { - dataRef.current = fullData; - react_dom__WEBPACK_IMPORTED_MODULE_4__.flushSync(() => { - setData(fullData); - }); - } - }); - }, [latestMiddleware, placement, strategy, platformRef]); - index(() => { - if (open === false && dataRef.current.isPositioned) { - dataRef.current.isPositioned = false; - setData(data => ({ - ...data, - isPositioned: false - })); - } - }, [open]); - const isMountedRef = react__WEBPACK_IMPORTED_MODULE_3__.useRef(false); - index(() => { - isMountedRef.current = true; - return () => { - isMountedRef.current = false; - }; - }, []); - index(() => { - if (reference && floating) { - if (whileElementsMountedRef.current) { - return whileElementsMountedRef.current(reference, floating, update); - } else { - update(); - } - } - }, [reference, floating, update, whileElementsMountedRef]); - const refs = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => ({ - reference: referenceRef, - floating: floatingRef, - setReference, - setFloating - }), [setReference, setFloating]); - const elements = react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => ({ - reference, - floating - }), [reference, floating]); - return react__WEBPACK_IMPORTED_MODULE_3__.useMemo(() => ({ - ...data, - update, - refs, - elements, - reference: setReference, - floating: setFloating - }), [data, update, refs, elements, setReference, setFloating]); -} - - - - -/***/ }), - -/***/ "./node_modules/@floating-ui/react/dist/floating-ui.react.esm.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@floating-ui/react/dist/floating-ui.react.esm.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ FloatingDelayGroup: () => (/* binding */ FloatingDelayGroup), -/* harmony export */ FloatingFocusManager: () => (/* binding */ FloatingFocusManager), -/* harmony export */ FloatingNode: () => (/* binding */ FloatingNode), -/* harmony export */ FloatingOverlay: () => (/* binding */ FloatingOverlay), -/* harmony export */ FloatingPortal: () => (/* binding */ FloatingPortal), -/* harmony export */ FloatingTree: () => (/* binding */ FloatingTree), -/* harmony export */ arrow: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_2__.arrow), -/* harmony export */ autoPlacement: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.autoPlacement), -/* harmony export */ autoUpdate: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_4__.autoUpdate), -/* harmony export */ computePosition: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_4__.computePosition), -/* harmony export */ detectOverflow: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.detectOverflow), -/* harmony export */ flip: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.flip), -/* harmony export */ getOverflowAncestors: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_5__.getOverflowAncestors), -/* harmony export */ hide: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.hide), -/* harmony export */ inline: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.inline), -/* harmony export */ inner: () => (/* binding */ inner), -/* harmony export */ limitShift: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.limitShift), -/* harmony export */ offset: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.offset), -/* harmony export */ platform: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_4__.platform), -/* harmony export */ safePolygon: () => (/* binding */ safePolygon), -/* harmony export */ shift: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.shift), -/* harmony export */ size: () => (/* reexport safe */ _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.size), -/* harmony export */ useClick: () => (/* binding */ useClick), -/* harmony export */ useDelayGroup: () => (/* binding */ useDelayGroup), -/* harmony export */ useDelayGroupContext: () => (/* binding */ useDelayGroupContext), -/* harmony export */ useDismiss: () => (/* binding */ useDismiss), -/* harmony export */ useFloating: () => (/* binding */ useFloating), -/* harmony export */ useFloatingNodeId: () => (/* binding */ useFloatingNodeId), -/* harmony export */ useFloatingParentNodeId: () => (/* binding */ useFloatingParentNodeId), -/* harmony export */ useFloatingPortalNode: () => (/* binding */ useFloatingPortalNode), -/* harmony export */ useFloatingTree: () => (/* binding */ useFloatingTree), -/* harmony export */ useFocus: () => (/* binding */ useFocus), -/* harmony export */ useHover: () => (/* binding */ useHover), -/* harmony export */ useId: () => (/* binding */ useId), -/* harmony export */ useInnerOffset: () => (/* binding */ useInnerOffset), -/* harmony export */ useInteractions: () => (/* binding */ useInteractions), -/* harmony export */ useListNavigation: () => (/* binding */ useListNavigation), -/* harmony export */ useMergeRefs: () => (/* binding */ useMergeRefs), -/* harmony export */ useRole: () => (/* binding */ useRole), -/* harmony export */ useTransitionStatus: () => (/* binding */ useTransitionStatus), -/* harmony export */ useTransitionStyles: () => (/* binding */ useTransitionStyles), -/* harmony export */ useTypeahead: () => (/* binding */ useTypeahead) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var aria_hidden__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! aria-hidden */ "./node_modules/aria-hidden/dist/es2015/index.js"); -/* harmony import */ var tabbable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! tabbable */ "./node_modules/tabbable/dist/index.esm.js"); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); -/* harmony import */ var _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @floating-ui/react-dom */ "./node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs"); -/* harmony import */ var _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @floating-ui/react-dom */ "./node_modules/@floating-ui/core/dist/floating-ui.core.mjs"); -/* harmony import */ var _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @floating-ui/react-dom */ "./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js"); -/* harmony import */ var _floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @floating-ui/react-dom */ "./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"); - - - - - - - - -var index = typeof document !== 'undefined' ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; - -let serverHandoffComplete = false; -let count = 0; -const genId = () => "floating-ui-" + count++; -function useFloatingId() { - const [id, setId] = react__WEBPACK_IMPORTED_MODULE_0__.useState(() => serverHandoffComplete ? genId() : undefined); - index(() => { - if (id == null) { - setId(genId()); - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!serverHandoffComplete) { - serverHandoffComplete = true; - } - }, []); - return id; -} - -// `toString()` prevents bundlers from trying to `import { useId } from 'react'` -const useReactId = react__WEBPACK_IMPORTED_MODULE_0__[/*#__PURE__*/'useId'.toString()]; - -/** - * Uses React 18's built-in `useId()` when available, or falls back to a - * slightly less performant (requiring a double render) implementation for - * earlier React versions. - * @see https://floating-ui.com/docs/useId - */ -const useId = useReactId || useFloatingId; - -function createPubSub() { - const map = new Map(); - return { - emit(event, data) { - var _map$get; - (_map$get = map.get(event)) == null ? void 0 : _map$get.forEach(handler => handler(data)); - }, - on(event, listener) { - map.set(event, [...(map.get(event) || []), listener]); - }, - off(event, listener) { - map.set(event, (map.get(event) || []).filter(l => l !== listener)); - } - }; -} - -const FloatingNodeContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); -const FloatingTreeContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); -const useFloatingParentNodeId = () => { - var _React$useContext; - return ((_React$useContext = react__WEBPACK_IMPORTED_MODULE_0__.useContext(FloatingNodeContext)) == null ? void 0 : _React$useContext.id) || null; -}; -const useFloatingTree = () => react__WEBPACK_IMPORTED_MODULE_0__.useContext(FloatingTreeContext); - -/** - * Registers a node into the floating tree, returning its id. - */ -const useFloatingNodeId = customParentId => { - const id = useId(); - const tree = useFloatingTree(); - const reactParentId = useFloatingParentNodeId(); - const parentId = customParentId || reactParentId; - index(() => { - const node = { - id, - parentId - }; - tree == null ? void 0 : tree.addNode(node); - return () => { - tree == null ? void 0 : tree.removeNode(node); - }; - }, [tree, id, parentId]); - return id; -}; - -/** - * Provides parent node context for nested floating elements. - * @see https://floating-ui.com/docs/FloatingTree - */ -const FloatingNode = _ref => { - let { - children, - id - } = _ref; - const parentId = useFloatingParentNodeId(); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FloatingNodeContext.Provider, { - value: react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ - id, - parentId - }), [id, parentId]) - }, children); -}; - -/** - * Provides context for nested floating elements when they are not children of - * each other on the DOM (i.e. portalled to a common node, rather than their - * respective parent). - * @see https://floating-ui.com/docs/FloatingTree - */ -const FloatingTree = _ref2 => { - let { - children - } = _ref2; - const nodesRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef([]); - const addNode = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(node => { - nodesRef.current = [...nodesRef.current, node]; - }, []); - const removeNode = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(node => { - nodesRef.current = nodesRef.current.filter(n => n !== node); - }, []); - const events = react__WEBPACK_IMPORTED_MODULE_0__.useState(() => createPubSub())[0]; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FloatingTreeContext.Provider, { - value: react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ - nodesRef, - addNode, - removeNode, - events - }), [nodesRef, addNode, removeNode, events]) - }, children); -}; - -function getDocument(node) { - return (node == null ? void 0 : node.ownerDocument) || document; -} - -// Avoid Chrome DevTools blue warning. -function getPlatform() { - const uaData = navigator.userAgentData; - if (uaData != null && uaData.platform) { - return uaData.platform; - } - return navigator.platform; -} -function getUserAgent() { - const uaData = navigator.userAgentData; - if (uaData && Array.isArray(uaData.brands)) { - return uaData.brands.map(_ref => { - let { - brand, - version - } = _ref; - return brand + "/" + version; - }).join(' '); - } - return navigator.userAgent; -} - -function getWindow(value) { - return getDocument(value).defaultView || window; -} -function isElement(value) { - return value ? value instanceof getWindow(value).Element : false; -} -function isHTMLElement(value) { - return value ? value instanceof getWindow(value).HTMLElement : false; -} -function isShadowRoot(node) { - // Browsers without `ShadowRoot` support - if (typeof ShadowRoot === 'undefined') { - return false; - } - const OwnElement = getWindow(node).ShadowRoot; - return node instanceof OwnElement || node instanceof ShadowRoot; -} - -// License: https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/utils/src/isVirtualEvent.ts -function isVirtualClick(event) { - if (event.mozInputSource === 0 && event.isTrusted) { - return true; - } - const androidRe = /Android/i; - if ((androidRe.test(getPlatform()) || androidRe.test(getUserAgent())) && event.pointerType) { - return event.type === 'click' && event.buttons === 1; - } - return event.detail === 0 && !event.pointerType; -} -function isVirtualPointerEvent(event) { - return event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType !== 'mouse' || - // iOS VoiceOver returns 0.333• for width/height. - event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0; -} -function isSafari() { - // Chrome DevTools does not complain about navigator.vendor - return /apple/i.test(navigator.vendor); -} -function isMac() { - return getPlatform().toLowerCase().startsWith('mac') && !navigator.maxTouchPoints; -} -function isMouseLikePointerType(pointerType, strict) { - // On some Linux machines with Chromium, mouse inputs return a `pointerType` - // of "pen": https://github.com/floating-ui/floating-ui/issues/2015 - const values = ['mouse', 'pen']; - if (!strict) { - values.push('', undefined); - } - return values.includes(pointerType); -} - -function useLatestRef(value) { - const ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(value); - index(() => { - ref.current = value; - }); - return ref; -} - -const safePolygonIdentifier = 'data-floating-ui-safe-polygon'; -function getDelay(value, prop, pointerType) { - if (pointerType && !isMouseLikePointerType(pointerType)) { - return 0; - } - if (typeof value === 'number') { - return value; - } - return value == null ? void 0 : value[prop]; -} -/** - * Opens the floating element while hovering over the reference element, like - * CSS `:hover`. - * @see https://floating-ui.com/docs/useHover - */ -const useHover = function (context, _temp) { - let { - enabled = true, - delay = 0, - handleClose = null, - mouseOnly = false, - restMs = 0, - move = true - } = _temp === void 0 ? {} : _temp; - const { - open, - onOpenChange, - dataRef, - events, - elements: { - domReference, - floating - }, - refs - } = context; - const tree = useFloatingTree(); - const parentId = useFloatingParentNodeId(); - const handleCloseRef = useLatestRef(handleClose); - const delayRef = useLatestRef(delay); - const pointerTypeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - const timeoutRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - const handlerRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - const restTimeoutRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - const blockMouseMoveRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(true); - const performedPointerEventsMutationRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - const unbindMouseMoveRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(() => {}); - const isHoverOpen = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(() => { - var _dataRef$current$open; - const type = (_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type; - return (type == null ? void 0 : type.includes('mouse')) && type !== 'mousedown'; - }, [dataRef]); - - // When dismissing before opening, clear the delay timeouts to cancel it - // from showing. - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!enabled) { - return; - } - function onDismiss() { - clearTimeout(timeoutRef.current); - clearTimeout(restTimeoutRef.current); - blockMouseMoveRef.current = true; - } - events.on('dismiss', onDismiss); - return () => { - events.off('dismiss', onDismiss); - }; - }, [enabled, events]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!enabled || !handleCloseRef.current || !open) { - return; - } - function onLeave() { - if (isHoverOpen()) { - onOpenChange(false); - } - } - const html = getDocument(floating).documentElement; - html.addEventListener('mouseleave', onLeave); - return () => { - html.removeEventListener('mouseleave', onLeave); - }; - }, [floating, open, onOpenChange, enabled, handleCloseRef, dataRef, isHoverOpen]); - const closeWithDelay = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (runElseBranch) { - if (runElseBranch === void 0) { - runElseBranch = true; - } - const closeDelay = getDelay(delayRef.current, 'close', pointerTypeRef.current); - if (closeDelay && !handlerRef.current) { - clearTimeout(timeoutRef.current); - timeoutRef.current = setTimeout(() => onOpenChange(false), closeDelay); - } else if (runElseBranch) { - clearTimeout(timeoutRef.current); - onOpenChange(false); - } - }, [delayRef, onOpenChange]); - const cleanupMouseMoveHandler = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(() => { - unbindMouseMoveRef.current(); - handlerRef.current = undefined; - }, []); - const clearPointerEvents = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(() => { - if (performedPointerEventsMutationRef.current) { - const body = getDocument(refs.floating.current).body; - body.style.pointerEvents = ''; - body.removeAttribute(safePolygonIdentifier); - performedPointerEventsMutationRef.current = false; - } - }, [refs]); - - // Registering the mouse events on the reference directly to bypass React's - // delegation system. If the cursor was on a disabled element and then entered - // the reference (no gap), `mouseenter` doesn't fire in the delegation system. - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!enabled) { - return; - } - function isClickLikeOpenEvent() { - return dataRef.current.openEvent ? ['click', 'mousedown'].includes(dataRef.current.openEvent.type) : false; - } - function onMouseEnter(event) { - clearTimeout(timeoutRef.current); - blockMouseMoveRef.current = false; - if (mouseOnly && !isMouseLikePointerType(pointerTypeRef.current) || restMs > 0 && getDelay(delayRef.current, 'open') === 0) { - return; - } - dataRef.current.openEvent = event; - const openDelay = getDelay(delayRef.current, 'open', pointerTypeRef.current); - if (openDelay) { - timeoutRef.current = setTimeout(() => { - onOpenChange(true); - }, openDelay); - } else { - onOpenChange(true); - } - } - function onMouseLeave(event) { - if (isClickLikeOpenEvent()) { - return; - } - unbindMouseMoveRef.current(); - const doc = getDocument(floating); - clearTimeout(restTimeoutRef.current); - if (handleCloseRef.current) { - // Prevent clearing `onScrollMouseLeave` timeout. - if (!open) { - clearTimeout(timeoutRef.current); - } - handlerRef.current = handleCloseRef.current({ - ...context, - tree, - x: event.clientX, - y: event.clientY, - onClose() { - clearPointerEvents(); - cleanupMouseMoveHandler(); - closeWithDelay(); - } - }); - const handler = handlerRef.current; - doc.addEventListener('mousemove', handler); - unbindMouseMoveRef.current = () => { - doc.removeEventListener('mousemove', handler); - }; - return; - } - closeWithDelay(); - } - - // Ensure the floating element closes after scrolling even if the pointer - // did not move. - // https://github.com/floating-ui/floating-ui/discussions/1692 - function onScrollMouseLeave(event) { - if (isClickLikeOpenEvent()) { - return; - } - handleCloseRef.current == null ? void 0 : handleCloseRef.current({ - ...context, - tree, - x: event.clientX, - y: event.clientY, - onClose() { - clearPointerEvents(); - cleanupMouseMoveHandler(); - closeWithDelay(); - } - })(event); - } - if (isElement(domReference)) { - const ref = domReference; - open && ref.addEventListener('mouseleave', onScrollMouseLeave); - floating == null ? void 0 : floating.addEventListener('mouseleave', onScrollMouseLeave); - move && ref.addEventListener('mousemove', onMouseEnter, { - once: true - }); - ref.addEventListener('mouseenter', onMouseEnter); - ref.addEventListener('mouseleave', onMouseLeave); - return () => { - open && ref.removeEventListener('mouseleave', onScrollMouseLeave); - floating == null ? void 0 : floating.removeEventListener('mouseleave', onScrollMouseLeave); - move && ref.removeEventListener('mousemove', onMouseEnter); - ref.removeEventListener('mouseenter', onMouseEnter); - ref.removeEventListener('mouseleave', onMouseLeave); - }; - } - }, [domReference, floating, enabled, context, mouseOnly, restMs, move, closeWithDelay, cleanupMouseMoveHandler, clearPointerEvents, onOpenChange, open, tree, delayRef, handleCloseRef, dataRef]); - - // Block pointer-events of every element other than the reference and floating - // while the floating element is open and has a `handleClose` handler. Also - // handles nested floating elements. - // https://github.com/floating-ui/floating-ui/issues/1722 - index(() => { - var _handleCloseRef$curre; - if (!enabled) { - return; - } - if (open && (_handleCloseRef$curre = handleCloseRef.current) != null && _handleCloseRef$curre.__options.blockPointerEvents && isHoverOpen()) { - const body = getDocument(floating).body; - body.setAttribute(safePolygonIdentifier, ''); - body.style.pointerEvents = 'none'; - performedPointerEventsMutationRef.current = true; - if (isElement(domReference) && floating) { - var _tree$nodesRef$curren, _tree$nodesRef$curren2; - const ref = domReference; - const parentFloating = tree == null ? void 0 : (_tree$nodesRef$curren = tree.nodesRef.current.find(node => node.id === parentId)) == null ? void 0 : (_tree$nodesRef$curren2 = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren2.elements.floating; - if (parentFloating) { - parentFloating.style.pointerEvents = ''; - } - ref.style.pointerEvents = 'auto'; - floating.style.pointerEvents = 'auto'; - return () => { - ref.style.pointerEvents = ''; - floating.style.pointerEvents = ''; - }; - } - } - }, [enabled, open, parentId, floating, domReference, tree, handleCloseRef, dataRef, isHoverOpen]); - index(() => { - if (!open) { - pointerTypeRef.current = undefined; - cleanupMouseMoveHandler(); - clearPointerEvents(); - } - }, [open, cleanupMouseMoveHandler, clearPointerEvents]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - return () => { - cleanupMouseMoveHandler(); - clearTimeout(timeoutRef.current); - clearTimeout(restTimeoutRef.current); - clearPointerEvents(); - }; - }, [enabled, cleanupMouseMoveHandler, clearPointerEvents]); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - if (!enabled) { - return {}; - } - function setPointerRef(event) { - pointerTypeRef.current = event.pointerType; - } - return { - reference: { - onPointerDown: setPointerRef, - onPointerEnter: setPointerRef, - onMouseMove() { - if (open || restMs === 0) { - return; - } - clearTimeout(restTimeoutRef.current); - restTimeoutRef.current = setTimeout(() => { - if (!blockMouseMoveRef.current) { - onOpenChange(true); - } - }, restMs); - } - }, - floating: { - onMouseEnter() { - clearTimeout(timeoutRef.current); - }, - onMouseLeave() { - events.emit('dismiss', { - type: 'mouseLeave', - data: { - returnFocus: false - } - }); - closeWithDelay(false); - } - } - }; - }, [events, enabled, restMs, open, onOpenChange, closeWithDelay]); -}; - -const FloatingDelayGroupContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({ - delay: 0, - initialDelay: 0, - timeoutMs: 0, - currentId: null, - setCurrentId: () => {}, - setState: () => {}, - isInstantPhase: false -}); -const useDelayGroupContext = () => react__WEBPACK_IMPORTED_MODULE_0__.useContext(FloatingDelayGroupContext); - -/** - * Provides context for a group of floating elements that should share a - * `delay`. - * @see https://floating-ui.com/docs/FloatingDelayGroup - */ -const FloatingDelayGroup = _ref => { - let { - children, - delay, - timeoutMs = 0 - } = _ref; - const [state, setState] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer((prev, next) => ({ - ...prev, - ...next - }), { - delay, - timeoutMs, - initialDelay: delay, - currentId: null, - isInstantPhase: false - }); - const initialCurrentIdRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const setCurrentId = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(currentId => { - setState({ - currentId - }); - }, []); - index(() => { - if (state.currentId) { - if (initialCurrentIdRef.current === null) { - initialCurrentIdRef.current = state.currentId; - } else { - setState({ - isInstantPhase: true - }); - } - } else { - setState({ - isInstantPhase: false - }); - initialCurrentIdRef.current = null; - } - }, [state.currentId]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FloatingDelayGroupContext.Provider, { - value: react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ - ...state, - setState, - setCurrentId - }), [state, setState, setCurrentId]) - }, children); -}; -const useDelayGroup = (_ref2, _ref3) => { - let { - open, - onOpenChange - } = _ref2; - let { - id - } = _ref3; - const { - currentId, - setCurrentId, - initialDelay, - setState, - timeoutMs - } = useDelayGroupContext(); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (currentId) { - setState({ - delay: { - open: 1, - close: getDelay(initialDelay, 'close') - } - }); - if (currentId !== id) { - onOpenChange(false); - } - } - }, [id, onOpenChange, setState, currentId, initialDelay]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - function unset() { - onOpenChange(false); - setState({ - delay: initialDelay, - currentId: null - }); - } - if (!open && currentId === id) { - if (timeoutMs) { - const timeout = window.setTimeout(unset, timeoutMs); - return () => { - clearTimeout(timeout); - }; - } else { - unset(); - } - } - }, [open, setState, currentId, id, onOpenChange, initialDelay, timeoutMs]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (open) { - setCurrentId(id); - } - }, [open, setCurrentId, id]); -}; - -function _extends() { - _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - return _extends.apply(this, arguments); -} - -/** - * Find the real active element. Traverses into shadowRoots. - */ -function activeElement$1(doc) { - let activeElement = doc.activeElement; - while (((_activeElement = activeElement) == null ? void 0 : (_activeElement$shadow = _activeElement.shadowRoot) == null ? void 0 : _activeElement$shadow.activeElement) != null) { - var _activeElement, _activeElement$shadow; - activeElement = activeElement.shadowRoot.activeElement; - } - return activeElement; -} - -function contains(parent, child) { - if (!parent || !child) { - return false; - } - const rootNode = child.getRootNode && child.getRootNode(); - - // First, attempt with faster native method - if (parent.contains(child)) { - return true; - } - // then fallback to custom implementation with Shadow DOM support - else if (rootNode && isShadowRoot(rootNode)) { - let next = child; - do { - if (next && parent === next) { - return true; - } - // @ts-ignore - next = next.parentNode || next.host; - } while (next); - } - - // Give up, the result is false - return false; -} - -let rafId = 0; -function enqueueFocus(el, options) { - if (options === void 0) { - options = {}; - } - const { - preventScroll = false, - cancelPrevious = true, - sync = false - } = options; - cancelPrevious && cancelAnimationFrame(rafId); - const exec = () => el == null ? void 0 : el.focus({ - preventScroll - }); - if (sync) { - exec(); - } else { - rafId = requestAnimationFrame(exec); - } -} - -function getAncestors(nodes, id) { - var _nodes$find; - let allAncestors = []; - let currentParentId = (_nodes$find = nodes.find(node => node.id === id)) == null ? void 0 : _nodes$find.parentId; - while (currentParentId) { - const currentNode = nodes.find(node => node.id === currentParentId); - currentParentId = currentNode == null ? void 0 : currentNode.parentId; - if (currentNode) { - allAncestors = allAncestors.concat(currentNode); - } - } - return allAncestors; -} - -function getChildren(nodes, id) { - let allChildren = nodes.filter(node => { - var _node$context; - return node.parentId === id && ((_node$context = node.context) == null ? void 0 : _node$context.open); - }) || []; - let currentChildren = allChildren; - while (currentChildren.length) { - currentChildren = nodes.filter(node => { - var _currentChildren; - return (_currentChildren = currentChildren) == null ? void 0 : _currentChildren.some(n => { - var _node$context2; - return node.parentId === n.id && ((_node$context2 = node.context) == null ? void 0 : _node$context2.open); - }); - }) || []; - allChildren = allChildren.concat(currentChildren); - } - return allChildren; -} - -function getTarget(event) { - if ('composedPath' in event) { - return event.composedPath()[0]; - } - - // TS thinks `event` is of type never as it assumes all browsers support - // `composedPath()`, but browsers without shadow DOM don't. - return event.target; -} - -const TYPEABLE_SELECTOR = "input:not([type='hidden']):not([disabled])," + "[contenteditable]:not([contenteditable='false']),textarea:not([disabled])"; -function isTypeableElement(element) { - return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR); -} - -function stopEvent(event) { - event.preventDefault(); - event.stopPropagation(); -} - -const getTabbableOptions = () => ({ - getShadowRoot: true, - displayCheck: - // JSDOM does not support the `tabbable` library. To solve this we can - // check if `ResizeObserver` is a real function (not polyfilled), which - // determines if the current environment is JSDOM-like. - typeof ResizeObserver === 'function' && ResizeObserver.toString().includes('[native code]') ? 'full' : 'none' -}); -function getTabbableIn(container, direction) { - const allTabbable = (0,tabbable__WEBPACK_IMPORTED_MODULE_6__.tabbable)(container, getTabbableOptions()); - if (direction === 'prev') { - allTabbable.reverse(); - } - const activeIndex = allTabbable.indexOf(activeElement$1(getDocument(container))); - const nextTabbableElements = allTabbable.slice(activeIndex + 1); - return nextTabbableElements[0]; -} -function getNextTabbable() { - return getTabbableIn(document.body, 'next'); -} -function getPreviousTabbable() { - return getTabbableIn(document.body, 'prev'); -} -function isOutsideEvent(event, container) { - const containerElement = container || event.currentTarget; - const relatedTarget = event.relatedTarget; - return !relatedTarget || !contains(containerElement, relatedTarget); -} -function disableFocusInside(container) { - const tabbableElements = (0,tabbable__WEBPACK_IMPORTED_MODULE_6__.tabbable)(container, getTabbableOptions()); - tabbableElements.forEach(element => { - element.dataset.tabindex = element.getAttribute('tabindex') || ''; - element.setAttribute('tabindex', '-1'); - }); -} -function enableFocusInside(container) { - const elements = container.querySelectorAll('[data-tabindex]'); - elements.forEach(element => { - const tabindex = element.dataset.tabindex; - delete element.dataset.tabindex; - if (tabindex) { - element.setAttribute('tabindex', tabindex); - } else { - element.removeAttribute('tabindex'); - } - }); -} - -// `toString()` prevents bundlers from trying to `import { useInsertionEffect } from 'react'` -const useInsertionEffect = react__WEBPACK_IMPORTED_MODULE_0__[/*#__PURE__*/'useInsertionEffect'.toString()]; -const useSafeInsertionEffect = useInsertionEffect || (fn => fn()); -function useEvent(callback) { - const ref = react__WEBPACK_IMPORTED_MODULE_0__.useRef(() => { - if (true) { - throw new Error('Cannot call an event handler while rendering.'); - } - }); - useSafeInsertionEffect(() => { - ref.current = callback; - }); - return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function () { - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - return ref.current == null ? void 0 : ref.current(...args); - }, []); -} - -// See Diego Haz's Sandbox for making this logic work well on Safari/iOS: -// https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/FocusTrap.tsx - -const HIDDEN_STYLES = { - border: 0, - clip: 'rect(0 0 0 0)', - height: '1px', - margin: '-1px', - overflow: 'hidden', - padding: 0, - position: 'fixed', - whiteSpace: 'nowrap', - width: '1px', - top: 0, - left: 0 -}; -let activeElement; -let timeoutId; -function setActiveElementOnTab(event) { - if (event.key === 'Tab') { - activeElement = event.target; - clearTimeout(timeoutId); - } -} -function isTabFocus(event) { - const result = activeElement === event.relatedTarget; - activeElement = event.relatedTarget; - clearTimeout(timeoutId); - return result; -} -const FocusGuard = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(function FocusGuard(props, ref) { - const onFocus = useEvent(props.onFocus); - const [role, setRole] = react__WEBPACK_IMPORTED_MODULE_0__.useState(); - index(() => { - if (isSafari()) { - // Unlike other screen readers such as NVDA and JAWS, the virtual cursor - // on VoiceOver does trigger the onFocus event, so we can use the focus - // trap element. On Safari, only buttons trigger the onFocus event. - // NB: "group" role in the Sandbox no longer appears to work, must be a - // button role. - setRole('button'); - } - document.addEventListener('keydown', setActiveElementOnTab); - return () => { - document.removeEventListener('keydown', setActiveElementOnTab); - }; - }, []); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", _extends({}, props, { - ref: ref, - tabIndex: 0 - // Role is only for VoiceOver - , - role: role, - "aria-hidden": role ? undefined : true, - "data-floating-ui-focus-guard": "", - style: HIDDEN_STYLES, - onFocus: event => { - if (isSafari() && isMac() && !isTabFocus(event)) { - // On macOS we need to wait a little bit before moving - // focus again. - event.persist(); - timeoutId = window.setTimeout(() => { - onFocus(event); - }, 50); - } else { - onFocus(event); - } - } - })); -}); - -const PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); -const useFloatingPortalNode = function (_temp) { - let { - id, - enabled = true - } = _temp === void 0 ? {} : _temp; - const [portalEl, setPortalEl] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null); - const uniqueId = useId(); - const portalContext = usePortalContext(); - index(() => { - if (!enabled) { - return; - } - const rootNode = id ? document.getElementById(id) : null; - if (rootNode) { - rootNode.setAttribute('data-floating-ui-portal', ''); - setPortalEl(rootNode); - } else { - const newPortalEl = document.createElement('div'); - if (id !== '') { - newPortalEl.id = id || uniqueId; - } - newPortalEl.setAttribute('data-floating-ui-portal', ''); - setPortalEl(newPortalEl); - const container = (portalContext == null ? void 0 : portalContext.portalNode) || document.body; - container.appendChild(newPortalEl); - return () => { - container.removeChild(newPortalEl); - }; - } - }, [id, portalContext, uniqueId, enabled]); - return portalEl; -}; - -/** - * Portals the floating element into a given container element — by default, - * outside of the app root and into the body. - * @see https://floating-ui.com/docs/FloatingPortal - */ -const FloatingPortal = _ref => { - let { - children, - id, - root = null, - preserveTabOrder = true - } = _ref; - const portalNode = useFloatingPortalNode({ - id, - enabled: !root - }); - const [focusManagerState, setFocusManagerState] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null); - const beforeOutsideRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const afterOutsideRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const beforeInsideRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const afterInsideRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const shouldRenderGuards = - // The FocusManager and therefore floating element are currently open/ - // rendered. - !!focusManagerState && - // Guards are only for non-modal focus management. - !focusManagerState.modal && !!(root || portalNode) && preserveTabOrder; - - // https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/TabbablePortal.tsx - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!portalNode || !preserveTabOrder || focusManagerState != null && focusManagerState.modal) { - return; - } - - // Make sure elements inside the portal element are tabbable only when the - // portal has already been focused, either by tabbing into a focus trap - // element outside or using the mouse. - function onFocus(event) { - if (portalNode && isOutsideEvent(event)) { - const focusing = event.type === 'focusin'; - const manageFocus = focusing ? enableFocusInside : disableFocusInside; - manageFocus(portalNode); - } - } - // Listen to the event on the capture phase so they run before the focus - // trap elements onFocus prop is called. - portalNode.addEventListener('focusin', onFocus, true); - portalNode.addEventListener('focusout', onFocus, true); - return () => { - portalNode.removeEventListener('focusin', onFocus, true); - portalNode.removeEventListener('focusout', onFocus, true); - }; - }, [portalNode, preserveTabOrder, focusManagerState == null ? void 0 : focusManagerState.modal]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(PortalContext.Provider, { - value: react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ - preserveTabOrder, - beforeOutsideRef, - afterOutsideRef, - beforeInsideRef, - afterInsideRef, - portalNode, - setFocusManagerState - }), [preserveTabOrder, portalNode]) - }, shouldRenderGuards && portalNode && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FocusGuard, { - "data-type": "outside", - ref: beforeOutsideRef, - onFocus: event => { - if (isOutsideEvent(event, portalNode)) { - var _beforeInsideRef$curr; - (_beforeInsideRef$curr = beforeInsideRef.current) == null ? void 0 : _beforeInsideRef$curr.focus(); - } else { - const prevTabbable = getPreviousTabbable() || (focusManagerState == null ? void 0 : focusManagerState.refs.domReference.current); - prevTabbable == null ? void 0 : prevTabbable.focus(); - } - } - }), shouldRenderGuards && portalNode && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("span", { - "aria-owns": portalNode.id, - style: HIDDEN_STYLES - }), root ? /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, root) : portalNode ? /*#__PURE__*/(0,react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(children, portalNode) : null, shouldRenderGuards && portalNode && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FocusGuard, { - "data-type": "outside", - ref: afterOutsideRef, - onFocus: event => { - if (isOutsideEvent(event, portalNode)) { - var _afterInsideRef$curre; - (_afterInsideRef$curre = afterInsideRef.current) == null ? void 0 : _afterInsideRef$curre.focus(); - } else { - const nextTabbable = getNextTabbable() || (focusManagerState == null ? void 0 : focusManagerState.refs.domReference.current); - nextTabbable == null ? void 0 : nextTabbable.focus(); - (focusManagerState == null ? void 0 : focusManagerState.closeOnFocusOut) && (focusManagerState == null ? void 0 : focusManagerState.onOpenChange(false)); - } - } - })); -}; -const usePortalContext = () => react__WEBPACK_IMPORTED_MODULE_0__.useContext(PortalContext); - -const VisuallyHiddenDismiss = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(function VisuallyHiddenDismiss(props, ref) { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("button", _extends({}, props, { - type: "button", - ref: ref, - tabIndex: -1, - style: HIDDEN_STYLES - })); -}); -/** - * Provides focus management for the floating element. - * @see https://floating-ui.com/docs/FloatingFocusManager - */ -function FloatingFocusManager(_ref) { - let { - context, - children, - order = ['content'], - guards = true, - initialFocus = 0, - returnFocus = true, - modal = true, - visuallyHiddenDismiss = false, - closeOnFocusOut = true - } = _ref; - const { - refs, - nodeId, - onOpenChange, - events, - dataRef, - elements: { - domReference, - floating - } - } = context; - const orderRef = useLatestRef(order); - const tree = useFloatingTree(); - const portalContext = usePortalContext(); - const [tabbableContentLength, setTabbableContentLength] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null); - - // Controlled by `useListNavigation`. - const ignoreInitialFocus = typeof initialFocus === 'number' && initialFocus < 0; - const startDismissButtonRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const endDismissButtonRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const preventReturnFocusRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - const previouslyFocusedElementRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const isPointerDownRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - const isInsidePortal = portalContext != null; - - // If the reference is a combobox and is typeable (e.g. input/textarea), - // there are different focus semantics. The guards should not be rendered, but - // aria-hidden should be applied to all nodes still. Further, the visually - // hidden dismiss button should only appear at the end of the list, not the - // start. - const isTypeableCombobox = domReference && domReference.getAttribute('role') === 'combobox' && isTypeableElement(domReference); - const getTabbableContent = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (container) { - if (container === void 0) { - container = floating; - } - return container ? (0,tabbable__WEBPACK_IMPORTED_MODULE_6__.tabbable)(container, getTabbableOptions()) : []; - }, [floating]); - const getTabbableElements = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(container => { - const content = getTabbableContent(container); - return orderRef.current.map(type => { - if (domReference && type === 'reference') { - return domReference; - } - if (floating && type === 'floating') { - return floating; - } - return content; - }).filter(Boolean).flat(); - }, [domReference, floating, orderRef, getTabbableContent]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!modal) { - return; - } - function onKeyDown(event) { - if (event.key === 'Tab') { - // The focus guards have nothing to focus, so we need to stop the event. - if (getTabbableContent().length === 0 && !isTypeableCombobox) { - stopEvent(event); - } - const els = getTabbableElements(); - const target = getTarget(event); - if (orderRef.current[0] === 'reference' && target === domReference) { - stopEvent(event); - if (event.shiftKey) { - enqueueFocus(els[els.length - 1]); - } else { - enqueueFocus(els[1]); - } - } - if (orderRef.current[1] === 'floating' && target === floating && event.shiftKey) { - stopEvent(event); - enqueueFocus(els[0]); - } - } - } - const doc = getDocument(floating); - doc.addEventListener('keydown', onKeyDown); - return () => { - doc.removeEventListener('keydown', onKeyDown); - }; - }, [domReference, floating, modal, orderRef, refs, isTypeableCombobox, getTabbableContent, getTabbableElements]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!closeOnFocusOut) { - return; - } - - // In Safari, buttons lose focus when pressing them. - function handlePointerDown() { - isPointerDownRef.current = true; - setTimeout(() => { - isPointerDownRef.current = false; - }); - } - function handleFocusOutside(event) { - const relatedTarget = event.relatedTarget; - const movedToUnrelatedNode = !(contains(domReference, relatedTarget) || contains(floating, relatedTarget) || contains(relatedTarget, floating) || contains(portalContext == null ? void 0 : portalContext.portalNode, relatedTarget) || relatedTarget != null && relatedTarget.hasAttribute('data-floating-ui-focus-guard') || tree && (getChildren(tree.nodesRef.current, nodeId).find(node => { - var _node$context, _node$context2; - return contains((_node$context = node.context) == null ? void 0 : _node$context.elements.floating, relatedTarget) || contains((_node$context2 = node.context) == null ? void 0 : _node$context2.elements.domReference, relatedTarget); - }) || getAncestors(tree.nodesRef.current, nodeId).find(node => { - var _node$context3, _node$context4; - return ((_node$context3 = node.context) == null ? void 0 : _node$context3.elements.floating) === relatedTarget || ((_node$context4 = node.context) == null ? void 0 : _node$context4.elements.domReference) === relatedTarget; - }))); - - // Focus did not move inside the floating tree, and there are no tabbable - // portal guards to handle closing. - if (relatedTarget && movedToUnrelatedNode && !isPointerDownRef.current && - // Fix React 18 Strict Mode returnFocus due to double rendering. - relatedTarget !== previouslyFocusedElementRef.current) { - preventReturnFocusRef.current = true; - // On iOS VoiceOver, dismissing the nested submenu will cause the - // first item of the list to receive focus. Delaying it appears to fix - // the issue. - setTimeout(() => onOpenChange(false)); - } - } - if (floating && isHTMLElement(domReference)) { - domReference.addEventListener('focusout', handleFocusOutside); - domReference.addEventListener('pointerdown', handlePointerDown); - !modal && floating.addEventListener('focusout', handleFocusOutside); - return () => { - domReference.removeEventListener('focusout', handleFocusOutside); - domReference.removeEventListener('pointerdown', handlePointerDown); - !modal && floating.removeEventListener('focusout', handleFocusOutside); - }; - } - }, [domReference, floating, modal, nodeId, tree, portalContext, onOpenChange, closeOnFocusOut]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - var _portalContext$portal; - // Don't hide portals nested within the parent portal. - const portalNodes = Array.from((portalContext == null ? void 0 : (_portalContext$portal = portalContext.portalNode) == null ? void 0 : _portalContext$portal.querySelectorAll('[data-floating-ui-portal]')) || []); - function getDismissButtons() { - return [startDismissButtonRef.current, endDismissButtonRef.current].filter(Boolean); - } - if (floating && modal) { - const insideNodes = [floating, ...portalNodes, ...getDismissButtons()]; - const cleanup = (0,aria_hidden__WEBPACK_IMPORTED_MODULE_7__.hideOthers)(orderRef.current.includes('reference') || isTypeableCombobox ? insideNodes.concat(domReference || []) : insideNodes); - return () => { - cleanup(); - }; - } - }, [domReference, floating, modal, orderRef, portalContext, isTypeableCombobox]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (modal && !guards && floating) { - const tabIndexValues = []; - const options = getTabbableOptions(); - const allTabbable = (0,tabbable__WEBPACK_IMPORTED_MODULE_6__.tabbable)(getDocument(floating).body, options); - const floatingTabbable = getTabbableElements(); - - // Exclude all tabbable elements that are part of the order - const elements = allTabbable.filter(el => !floatingTabbable.includes(el)); - elements.forEach((el, i) => { - tabIndexValues[i] = el.getAttribute('tabindex'); - el.setAttribute('tabindex', '-1'); - }); - return () => { - elements.forEach((el, i) => { - const value = tabIndexValues[i]; - if (value == null) { - el.removeAttribute('tabindex'); - } else { - el.setAttribute('tabindex', value); - } - }); - }; - } - }, [floating, modal, guards, getTabbableElements]); - index(() => { - if (!floating) return; - const doc = getDocument(floating); - let returnFocusValue = returnFocus; - let preventReturnFocusScroll = false; - const previouslyFocusedElement = activeElement$1(doc); - const contextData = dataRef.current; - previouslyFocusedElementRef.current = previouslyFocusedElement; - const focusableElements = getTabbableElements(floating); - const elToFocus = (typeof initialFocus === 'number' ? focusableElements[initialFocus] : initialFocus.current) || floating; - - // If the `useListNavigation` hook is active, always ignore `initialFocus` - // because it has its own handling of the initial focus. - !ignoreInitialFocus && enqueueFocus(elToFocus, { - preventScroll: elToFocus === floating - }); - - // Dismissing via outside press should always ignore `returnFocus` to - // prevent unwanted scrolling. - function onDismiss(payload) { - if (payload.type === 'escapeKey' && refs.domReference.current) { - previouslyFocusedElementRef.current = refs.domReference.current; - } - if (['referencePress', 'escapeKey'].includes(payload.type)) { - return; - } - const returnFocus = payload.data.returnFocus; - if (typeof returnFocus === 'object') { - returnFocusValue = true; - preventReturnFocusScroll = returnFocus.preventScroll; - } else { - returnFocusValue = returnFocus; - } - } - events.on('dismiss', onDismiss); - return () => { - events.off('dismiss', onDismiss); - if (contains(floating, activeElement$1(doc)) && refs.domReference.current) { - previouslyFocusedElementRef.current = refs.domReference.current; - } - if (returnFocusValue && isHTMLElement(previouslyFocusedElementRef.current) && !preventReturnFocusRef.current) { - // `isPointerDownRef.current` to avoid the focus ring from appearing on - // the reference element when click-toggling it. - if (!refs.domReference.current || isPointerDownRef.current) { - enqueueFocus(previouslyFocusedElementRef.current, { - // When dismissing nested floating elements, by the time the rAF has - // executed, the menus will all have been unmounted. When they try - // to get focused, the calls get ignored — leaving the root - // reference focused as desired. - cancelPrevious: false, - preventScroll: preventReturnFocusScroll - }); - } else { - var _previouslyFocusedEle; - // If the user has specified a `keydown` listener that calls - // setOpen(false) (e.g. selecting an item and closing the floating - // element), then sync return focus causes `useClick` to immediately - // re-open it, unless they call `event.preventDefault()` in the - // `keydown` listener. This helps keep backwards compatibility with - // older examples. - contextData.__syncReturnFocus = true; - - // In Safari, `useListNavigation` moves focus sync, so making this - // sync ensures the initial item remains focused despite this being - // invoked in Strict Mode due to double-invoked useEffects. This also - // has the positive side effect of closing a modally focus-managed - // on `Tab` keydown to move naturally to the next focusable - // element. - (_previouslyFocusedEle = previouslyFocusedElementRef.current) == null ? void 0 : _previouslyFocusedEle.focus({ - preventScroll: preventReturnFocusScroll - }); - setTimeout(() => { - // This isn't an actual property the user should access, make sure - // it doesn't persist. - delete contextData.__syncReturnFocus; - }); - } - } - }; - }, [floating, getTabbableElements, initialFocus, returnFocus, dataRef, refs, events, ignoreInitialFocus]); - - // Synchronize the `context` & `modal` value to the FloatingPortal context. - // It will decide whether or not it needs to render its own guards. - index(() => { - if (!portalContext) return; - portalContext.setFocusManagerState({ - ...context, - modal, - closeOnFocusOut - // Not concerned about the generic type. - }); - - return () => { - portalContext.setFocusManagerState(null); - }; - }, [portalContext, modal, closeOnFocusOut, context]); - index(() => { - if (ignoreInitialFocus || !floating) return; - function setState() { - setTabbableContentLength(getTabbableContent().length); - } - setState(); - if (typeof MutationObserver === 'function') { - const observer = new MutationObserver(setState); - observer.observe(floating, { - childList: true, - subtree: true - }); - return () => { - observer.disconnect(); - }; - } - }, [floating, getTabbableContent, ignoreInitialFocus, refs]); - const shouldRenderGuards = guards && (isInsidePortal || modal) && !isTypeableCombobox; - function renderDismissButton(location) { - return visuallyHiddenDismiss && modal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(VisuallyHiddenDismiss, { - ref: location === 'start' ? startDismissButtonRef : endDismissButtonRef, - onClick: () => onOpenChange(false) - }, typeof visuallyHiddenDismiss === 'string' ? visuallyHiddenDismiss : 'Dismiss') : null; - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, shouldRenderGuards && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FocusGuard, { - "data-type": "inside", - ref: portalContext == null ? void 0 : portalContext.beforeInsideRef, - onFocus: event => { - if (modal) { - const els = getTabbableElements(); - enqueueFocus(order[0] === 'reference' ? els[0] : els[els.length - 1]); - } else if (portalContext != null && portalContext.preserveTabOrder && portalContext.portalNode) { - preventReturnFocusRef.current = false; - if (isOutsideEvent(event, portalContext.portalNode)) { - const nextTabbable = getNextTabbable() || domReference; - nextTabbable == null ? void 0 : nextTabbable.focus(); - } else { - var _portalContext$before; - (_portalContext$before = portalContext.beforeOutsideRef.current) == null ? void 0 : _portalContext$before.focus(); - } - } - } - }), isTypeableCombobox ? null : renderDismissButton('start'), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(children, tabbableContentLength === 0 || order.includes('floating') ? { - tabIndex: 0 - } : {}), renderDismissButton('end'), shouldRenderGuards && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FocusGuard, { - "data-type": "inside", - ref: portalContext == null ? void 0 : portalContext.afterInsideRef, - onFocus: event => { - if (modal) { - enqueueFocus(getTabbableElements()[0]); - } else if (portalContext != null && portalContext.preserveTabOrder && portalContext.portalNode) { - preventReturnFocusRef.current = true; - if (isOutsideEvent(event, portalContext.portalNode)) { - const prevTabbable = getPreviousTabbable() || domReference; - prevTabbable == null ? void 0 : prevTabbable.focus(); - } else { - var _portalContext$afterO; - (_portalContext$afterO = portalContext.afterOutsideRef.current) == null ? void 0 : _portalContext$afterO.focus(); - } - } - } - })); -} - -const identifier = 'data-floating-ui-scroll-lock'; - -/** - * Provides base styling for a fixed overlay element to dim content or block - * pointer events behind a floating element. - * It's a regular `
`, so it can be styled via any CSS solution you prefer. - * @see https://floating-ui.com/docs/FloatingOverlay - */ -const FloatingOverlay = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(function FloatingOverlay(_ref, ref) { - let { - lockScroll = false, - ...rest - } = _ref; - index(() => { - var _window$visualViewpor, _window$visualViewpor2; - if (!lockScroll) { - return; - } - const alreadyLocked = document.body.hasAttribute(identifier); - if (alreadyLocked) { - return; - } - document.body.setAttribute(identifier, ''); - - // RTL scrollbar - const scrollbarX = Math.round(document.documentElement.getBoundingClientRect().left) + document.documentElement.scrollLeft; - const paddingProp = scrollbarX ? 'paddingLeft' : 'paddingRight'; - const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth; - - // Only iOS doesn't respect `overflow: hidden` on document.body, and this - // technique has fewer side effects. - if (!/iP(hone|ad|od)|iOS/.test(getPlatform())) { - Object.assign(document.body.style, { - overflow: 'hidden', - [paddingProp]: scrollbarWidth + "px" - }); - return () => { - document.body.removeAttribute(identifier); - Object.assign(document.body.style, { - overflow: '', - [paddingProp]: '' - }); - }; - } - - // iOS 12 does not support `visualViewport`. - const offsetLeft = ((_window$visualViewpor = window.visualViewport) == null ? void 0 : _window$visualViewpor.offsetLeft) || 0; - const offsetTop = ((_window$visualViewpor2 = window.visualViewport) == null ? void 0 : _window$visualViewpor2.offsetTop) || 0; - const scrollX = window.pageXOffset; - const scrollY = window.pageYOffset; - Object.assign(document.body.style, { - position: 'fixed', - overflow: 'hidden', - top: -(scrollY - Math.floor(offsetTop)) + "px", - left: -(scrollX - Math.floor(offsetLeft)) + "px", - right: '0', - [paddingProp]: scrollbarWidth + "px" - }); - return () => { - Object.assign(document.body.style, { - position: '', - overflow: '', - top: '', - left: '', - right: '', - [paddingProp]: '' - }); - document.body.removeAttribute(identifier); - window.scrollTo(scrollX, scrollY); - }; - }, [lockScroll]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", _extends({ - ref: ref - }, rest, { - style: { - position: 'fixed', - overflow: 'auto', - top: 0, - right: 0, - bottom: 0, - left: 0, - ...rest.style - } - })); -}); - -function isButtonTarget(event) { - return isHTMLElement(event.target) && event.target.tagName === 'BUTTON'; -} -function isSpaceIgnored(element) { - return isTypeableElement(element); -} -/** - * Opens or closes the floating element when clicking the reference element. - * @see https://floating-ui.com/docs/useClick - */ -const useClick = function (_ref, _temp) { - let { - open, - onOpenChange, - dataRef, - elements: { - domReference - } - } = _ref; - let { - enabled = true, - event: eventOption = 'click', - toggle = true, - ignoreMouse = false, - keyboardHandlers = true - } = _temp === void 0 ? {} : _temp; - const pointerTypeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - if (!enabled) { - return {}; - } - return { - reference: { - onPointerDown(event) { - pointerTypeRef.current = event.pointerType; - }, - onMouseDown(event) { - // Ignore all buttons except for the "main" button. - // https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button - if (event.button !== 0) { - return; - } - if (isMouseLikePointerType(pointerTypeRef.current, true) && ignoreMouse) { - return; - } - if (eventOption === 'click') { - return; - } - if (open) { - if (toggle && (dataRef.current.openEvent ? dataRef.current.openEvent.type === 'mousedown' : true)) { - onOpenChange(false); - } - } else { - // Prevent stealing focus from the floating element - event.preventDefault(); - onOpenChange(true); - } - dataRef.current.openEvent = event.nativeEvent; - }, - onClick(event) { - if (dataRef.current.__syncReturnFocus) { - return; - } - if (eventOption === 'mousedown' && pointerTypeRef.current) { - pointerTypeRef.current = undefined; - return; - } - if (isMouseLikePointerType(pointerTypeRef.current, true) && ignoreMouse) { - return; - } - if (open) { - if (toggle && (dataRef.current.openEvent ? dataRef.current.openEvent.type === 'click' : true)) { - onOpenChange(false); - } - } else { - onOpenChange(true); - } - dataRef.current.openEvent = event.nativeEvent; - }, - onKeyDown(event) { - pointerTypeRef.current = undefined; - if (!keyboardHandlers) { - return; - } - if (isButtonTarget(event)) { - return; - } - if (event.key === ' ' && !isSpaceIgnored(domReference)) { - // Prevent scrolling - event.preventDefault(); - } - if (event.key === 'Enter') { - if (open) { - if (toggle) { - onOpenChange(false); - } - } else { - onOpenChange(true); - } - } - }, - onKeyUp(event) { - if (!keyboardHandlers) { - return; - } - if (isButtonTarget(event) || isSpaceIgnored(domReference)) { - return; - } - if (event.key === ' ') { - if (open) { - if (toggle) { - onOpenChange(false); - } - } else { - onOpenChange(true); - } - } - } - } - }; - }, [enabled, dataRef, eventOption, ignoreMouse, keyboardHandlers, domReference, toggle, open, onOpenChange]); -}; - -/** - * Check whether the event.target is within the provided node. Uses event.composedPath if available for custom element support. - * - * @param event The event whose target/composedPath to check - * @param node The node to check against - * @returns Whether the event.target/composedPath is within the node. - */ -function isEventTargetWithin(event, node) { - if (node == null) { - return false; - } - if ('composedPath' in event) { - return event.composedPath().includes(node); - } - - // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't - const e = event; - return e.target != null && node.contains(e.target); -} - -const bubbleHandlerKeys = { - pointerdown: 'onPointerDown', - mousedown: 'onMouseDown', - click: 'onClick' -}; -const captureHandlerKeys = { - pointerdown: 'onPointerDownCapture', - mousedown: 'onMouseDownCapture', - click: 'onClickCapture' -}; -const normalizeBubblesProp = function (bubbles) { - var _bubbles$escapeKey, _bubbles$outsidePress; - if (bubbles === void 0) { - bubbles = true; - } - return { - escapeKeyBubbles: typeof bubbles === 'boolean' ? bubbles : (_bubbles$escapeKey = bubbles.escapeKey) != null ? _bubbles$escapeKey : true, - outsidePressBubbles: typeof bubbles === 'boolean' ? bubbles : (_bubbles$outsidePress = bubbles.outsidePress) != null ? _bubbles$outsidePress : true - }; -}; -/** - * Closes the floating element when a dismissal is requested — by default, when - * the user presses the `escape` key or outside of the floating element. - * @see https://floating-ui.com/docs/useDismiss - */ -const useDismiss = function (_ref, _temp) { - let { - open, - onOpenChange, - events, - nodeId, - elements: { - reference, - domReference, - floating - }, - dataRef - } = _ref; - let { - enabled = true, - escapeKey = true, - outsidePress: unstable_outsidePress = true, - outsidePressEvent = 'pointerdown', - referencePress = false, - referencePressEvent = 'pointerdown', - ancestorScroll = false, - bubbles = true - } = _temp === void 0 ? {} : _temp; - const tree = useFloatingTree(); - const nested = useFloatingParentNodeId() != null; - const outsidePressFn = useEvent(typeof unstable_outsidePress === 'function' ? unstable_outsidePress : () => false); - const outsidePress = typeof unstable_outsidePress === 'function' ? outsidePressFn : unstable_outsidePress; - const insideReactTreeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - const { - escapeKeyBubbles, - outsidePressBubbles - } = normalizeBubblesProp(bubbles); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!open || !enabled) { - return; - } - dataRef.current.__escapeKeyBubbles = escapeKeyBubbles; - dataRef.current.__outsidePressBubbles = outsidePressBubbles; - function onKeyDown(event) { - if (event.key === 'Escape') { - const children = tree ? getChildren(tree.nodesRef.current, nodeId) : []; - if (children.length > 0) { - let shouldDismiss = true; - children.forEach(child => { - var _child$context; - if ((_child$context = child.context) != null && _child$context.open && !child.context.dataRef.current.__escapeKeyBubbles) { - shouldDismiss = false; - return; - } - }); - if (!shouldDismiss) { - return; - } - } - events.emit('dismiss', { - type: 'escapeKey', - data: { - returnFocus: { - preventScroll: false - } - } - }); - onOpenChange(false); - } - } - function onOutsidePress(event) { - // Given developers can stop the propagation of the synthetic event, - // we can only be confident with a positive value. - const insideReactTree = insideReactTreeRef.current; - insideReactTreeRef.current = false; - if (insideReactTree) { - return; - } - if (typeof outsidePress === 'function' && !outsidePress(event)) { - return; - } - const target = getTarget(event); - - // Check if the click occurred on the scrollbar - if (isHTMLElement(target) && floating) { - const win = floating.ownerDocument.defaultView || window; - const canScrollX = target.scrollWidth > target.clientWidth; - const canScrollY = target.scrollHeight > target.clientHeight; - let xCond = canScrollY && event.offsetX > target.clientWidth; - - // In some browsers it is possible to change the (or window) - // scrollbar to the left side, but is very rare and is difficult to - // check for. Plus, for modal dialogs with backdrops, it is more - // important that the backdrop is checked but not so much the window. - if (canScrollY) { - const isRTL = win.getComputedStyle(target).direction === 'rtl'; - if (isRTL) { - xCond = event.offsetX <= target.offsetWidth - target.clientWidth; - } - } - if (xCond || canScrollX && event.offsetY > target.clientHeight) { - return; - } - } - const targetIsInsideChildren = tree && getChildren(tree.nodesRef.current, nodeId).some(node => { - var _node$context; - return isEventTargetWithin(event, (_node$context = node.context) == null ? void 0 : _node$context.elements.floating); - }); - if (isEventTargetWithin(event, floating) || isEventTargetWithin(event, domReference) || targetIsInsideChildren) { - return; - } - const children = tree ? getChildren(tree.nodesRef.current, nodeId) : []; - if (children.length > 0) { - let shouldDismiss = true; - children.forEach(child => { - var _child$context2; - if ((_child$context2 = child.context) != null && _child$context2.open && !child.context.dataRef.current.__outsidePressBubbles) { - shouldDismiss = false; - return; - } - }); - if (!shouldDismiss) { - return; - } - } - events.emit('dismiss', { - type: 'outsidePress', - data: { - returnFocus: nested ? { - preventScroll: true - } : isVirtualClick(event) || isVirtualPointerEvent(event) - } - }); - onOpenChange(false); - } - function onScroll() { - onOpenChange(false); - } - const doc = getDocument(floating); - escapeKey && doc.addEventListener('keydown', onKeyDown); - outsidePress && doc.addEventListener(outsidePressEvent, onOutsidePress); - let ancestors = []; - if (ancestorScroll) { - if (isElement(domReference)) { - ancestors = (0,_floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_5__.getOverflowAncestors)(domReference); - } - if (isElement(floating)) { - ancestors = ancestors.concat((0,_floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_5__.getOverflowAncestors)(floating)); - } - if (!isElement(reference) && reference && reference.contextElement) { - ancestors = ancestors.concat((0,_floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_5__.getOverflowAncestors)(reference.contextElement)); - } - } - - // Ignore the visual viewport for scrolling dismissal (allow pinch-zoom) - ancestors = ancestors.filter(ancestor => { - var _doc$defaultView; - return ancestor !== ((_doc$defaultView = doc.defaultView) == null ? void 0 : _doc$defaultView.visualViewport); - }); - ancestors.forEach(ancestor => { - ancestor.addEventListener('scroll', onScroll, { - passive: true - }); - }); - return () => { - escapeKey && doc.removeEventListener('keydown', onKeyDown); - outsidePress && doc.removeEventListener(outsidePressEvent, onOutsidePress); - ancestors.forEach(ancestor => { - ancestor.removeEventListener('scroll', onScroll); - }); - }; - }, [dataRef, floating, domReference, reference, escapeKey, outsidePress, outsidePressEvent, events, tree, nodeId, open, onOpenChange, ancestorScroll, enabled, escapeKeyBubbles, outsidePressBubbles, nested]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - insideReactTreeRef.current = false; - }, [outsidePress, outsidePressEvent]); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - if (!enabled) { - return {}; - } - return { - reference: { - [bubbleHandlerKeys[referencePressEvent]]: () => { - if (referencePress) { - events.emit('dismiss', { - type: 'referencePress', - data: { - returnFocus: false - } - }); - onOpenChange(false); - } - } - }, - floating: { - [captureHandlerKeys[outsidePressEvent]]: () => { - insideReactTreeRef.current = true; - } - } - }; - }, [enabled, events, referencePress, outsidePressEvent, referencePressEvent, onOpenChange]); -}; - -/** - * Opens the floating element while the reference element has focus, like CSS - * `:focus`. - * @see https://floating-ui.com/docs/useFocus - */ -const useFocus = function (_ref, _temp) { - let { - open, - onOpenChange, - dataRef, - events, - refs, - elements: { - floating, - domReference - } - } = _ref; - let { - enabled = true, - keyboardOnly = true - } = _temp === void 0 ? {} : _temp; - const pointerTypeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(''); - const blockFocusRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - const timeoutRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!enabled) { - return; - } - const doc = getDocument(floating); - const win = doc.defaultView || window; - - // If the reference was focused and the user left the tab/window, and the - // floating element was not open, the focus should be blocked when they - // return to the tab/window. - function onBlur() { - if (!open && isHTMLElement(domReference) && domReference === activeElement$1(getDocument(domReference))) { - blockFocusRef.current = true; - } - } - win.addEventListener('blur', onBlur); - return () => { - win.removeEventListener('blur', onBlur); - }; - }, [floating, domReference, open, enabled]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!enabled) { - return; - } - function onDismiss(payload) { - if (payload.type === 'referencePress' || payload.type === 'escapeKey') { - blockFocusRef.current = true; - } - } - events.on('dismiss', onDismiss); - return () => { - events.off('dismiss', onDismiss); - }; - }, [events, enabled]); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - return () => { - clearTimeout(timeoutRef.current); - }; - }, []); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - if (!enabled) { - return {}; - } - return { - reference: { - onPointerDown(_ref2) { - let { - pointerType - } = _ref2; - pointerTypeRef.current = pointerType; - blockFocusRef.current = !!(pointerType && keyboardOnly); - }, - onMouseLeave() { - blockFocusRef.current = false; - }, - onFocus(event) { - var _dataRef$current$open; - if (blockFocusRef.current) { - return; - } - - // Dismiss with click should ignore the subsequent `focus` trigger, - // but only if the click originated inside the reference element. - if (event.type === 'focus' && ((_dataRef$current$open = dataRef.current.openEvent) == null ? void 0 : _dataRef$current$open.type) === 'mousedown' && dataRef.current.openEvent && isEventTargetWithin(dataRef.current.openEvent, domReference)) { - return; - } - dataRef.current.openEvent = event.nativeEvent; - onOpenChange(true); - }, - onBlur(event) { - blockFocusRef.current = false; - const relatedTarget = event.relatedTarget; - - // Hit the non-modal focus management portal guard. Focus will be - // moved into the floating element immediately after. - const movedToFocusGuard = isElement(relatedTarget) && relatedTarget.hasAttribute('data-floating-ui-focus-guard') && relatedTarget.getAttribute('data-type') === 'outside'; - - // Wait for the window blur listener to fire. - timeoutRef.current = setTimeout(() => { - // When focusing the reference element (e.g. regular click), then - // clicking into the floating element, prevent it from hiding. - // Note: it must be focusable, e.g. `tabindex="-1"`. - if (contains(refs.floating.current, relatedTarget) || contains(domReference, relatedTarget) || movedToFocusGuard) { - return; - } - onOpenChange(false); - }); - } - } - }; - }, [enabled, keyboardOnly, domReference, refs, dataRef, onOpenChange]); -}; - -let isPreventScrollSupported = false; -const ARROW_UP = 'ArrowUp'; -const ARROW_DOWN = 'ArrowDown'; -const ARROW_LEFT = 'ArrowLeft'; -const ARROW_RIGHT = 'ArrowRight'; -function isDifferentRow(index, cols, prevRow) { - return Math.floor(index / cols) !== prevRow; -} -function isIndexOutOfBounds(listRef, index) { - return index < 0 || index >= listRef.current.length; -} -function findNonDisabledIndex(listRef, _temp) { - let { - startingIndex = -1, - decrement = false, - disabledIndices, - amount = 1 - } = _temp === void 0 ? {} : _temp; - const list = listRef.current; - let index = startingIndex; - do { - var _list$index, _list$index2; - index = index + (decrement ? -amount : amount); - } while (index >= 0 && index <= list.length - 1 && (disabledIndices ? disabledIndices.includes(index) : list[index] == null || ((_list$index = list[index]) == null ? void 0 : _list$index.hasAttribute('disabled')) || ((_list$index2 = list[index]) == null ? void 0 : _list$index2.getAttribute('aria-disabled')) === 'true')); - return index; -} -function doSwitch(orientation, vertical, horizontal) { - switch (orientation) { - case 'vertical': - return vertical; - case 'horizontal': - return horizontal; - default: - return vertical || horizontal; - } -} -function isMainOrientationKey(key, orientation) { - const vertical = key === ARROW_UP || key === ARROW_DOWN; - const horizontal = key === ARROW_LEFT || key === ARROW_RIGHT; - return doSwitch(orientation, vertical, horizontal); -} -function isMainOrientationToEndKey(key, orientation, rtl) { - const vertical = key === ARROW_DOWN; - const horizontal = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT; - return doSwitch(orientation, vertical, horizontal) || key === 'Enter' || key == ' ' || key === ''; -} -function isCrossOrientationOpenKey(key, orientation, rtl) { - const vertical = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT; - const horizontal = key === ARROW_DOWN; - return doSwitch(orientation, vertical, horizontal); -} -function isCrossOrientationCloseKey(key, orientation, rtl) { - const vertical = rtl ? key === ARROW_RIGHT : key === ARROW_LEFT; - const horizontal = key === ARROW_UP; - return doSwitch(orientation, vertical, horizontal); -} -function getMinIndex(listRef, disabledIndices) { - return findNonDisabledIndex(listRef, { - disabledIndices - }); -} -function getMaxIndex(listRef, disabledIndices) { - return findNonDisabledIndex(listRef, { - decrement: true, - startingIndex: listRef.current.length, - disabledIndices - }); -} -/** - * Adds arrow key-based navigation of a list of items, either using real DOM - * focus or virtual focus. - * @see https://floating-ui.com/docs/useListNavigation - */ -const useListNavigation = function (_ref, _temp2) { - let { - open, - onOpenChange, - refs, - elements: { - domReference - } - } = _ref; - let { - listRef, - activeIndex, - onNavigate: unstable_onNavigate = () => {}, - enabled = true, - selectedIndex = null, - allowEscape = false, - loop = false, - nested = false, - rtl = false, - virtual = false, - focusItemOnOpen = 'auto', - focusItemOnHover = true, - openOnArrowKeyDown = true, - disabledIndices = undefined, - orientation = 'vertical', - cols = 1, - scrollItemIntoView = true - } = _temp2 === void 0 ? { - listRef: { - current: [] - }, - activeIndex: null, - onNavigate: () => {} - } : _temp2; - if (true) { - if (allowEscape) { - if (!loop) { - console.warn(['Floating UI: `useListNavigation` looping must be enabled to allow', 'escaping.'].join(' ')); - } - if (!virtual) { - console.warn(['Floating UI: `useListNavigation` must be virtual to allow', 'escaping.'].join(' ')); - } - } - if (orientation === 'vertical' && cols > 1) { - console.warn(['Floating UI: In grid list navigation mode (`cols` > 1), the', '`orientation` should be either "horizontal" or "both".'].join(' ')); - } - } - const parentId = useFloatingParentNodeId(); - const tree = useFloatingTree(); - const onNavigate = useEvent(unstable_onNavigate); - const focusItemOnOpenRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(focusItemOnOpen); - const indexRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(selectedIndex != null ? selectedIndex : -1); - const keyRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const isPointerModalityRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(true); - const previousOnNavigateRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(onNavigate); - const previousOpenRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(open); - const forceSyncFocus = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - const forceScrollIntoViewRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - const disabledIndicesRef = useLatestRef(disabledIndices); - const latestOpenRef = useLatestRef(open); - const scrollItemIntoViewRef = useLatestRef(scrollItemIntoView); - const [activeId, setActiveId] = react__WEBPACK_IMPORTED_MODULE_0__.useState(); - const focusItem = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (listRef, indexRef, forceScrollIntoView) { - if (forceScrollIntoView === void 0) { - forceScrollIntoView = false; - } - const item = listRef.current[indexRef.current]; - if (virtual) { - setActiveId(item == null ? void 0 : item.id); - } else { - enqueueFocus(item, { - preventScroll: true, - // Mac Safari does not move the virtual cursor unless the focus call - // is sync. However, for the very first focus call, we need to wait - // for the position to be ready in order to prevent unwanted - // scrolling. This means the virtual cursor will not move to the first - // item when first opening the floating element, but will on - // subsequent calls. `preventScroll` is supported in modern Safari, - // so we can use that instead. - // iOS Safari must be async or the first item will not be focused. - sync: isMac() && isSafari() ? isPreventScrollSupported || forceSyncFocus.current : false - }); - } - requestAnimationFrame(() => { - const scrollIntoViewOptions = scrollItemIntoViewRef.current; - const shouldScrollIntoView = scrollIntoViewOptions && item && (forceScrollIntoView || !isPointerModalityRef.current); - if (shouldScrollIntoView) { - // JSDOM doesn't support `.scrollIntoView()` but it's widely supported - // by all browsers. - item.scrollIntoView == null ? void 0 : item.scrollIntoView(typeof scrollIntoViewOptions === 'boolean' ? { - block: 'nearest', - inline: 'nearest' - } : scrollIntoViewOptions); - } - }); - }, [virtual, scrollItemIntoViewRef]); - index(() => { - document.createElement('div').focus({ - get preventScroll() { - isPreventScrollSupported = true; - return false; - } - }); - }, []); - - // Sync `selectedIndex` to be the `activeIndex` upon opening the floating - // element. Also, reset `activeIndex` upon closing the floating element. - index(() => { - if (!enabled) { - return; - } - if (open) { - if (focusItemOnOpenRef.current && selectedIndex != null) { - // Regardless of the pointer modality, we want to ensure the selected - // item comes into view when the floating element is opened. - forceScrollIntoViewRef.current = true; - onNavigate(selectedIndex); - } - } else if (previousOpenRef.current) { - // Since the user can specify `onNavigate` conditionally - // (onNavigate: open ? setActiveIndex : setSelectedIndex), - // we store and call the previous function. - indexRef.current = -1; - previousOnNavigateRef.current(null); - } - }, [enabled, open, selectedIndex, onNavigate]); - - // Sync `activeIndex` to be the focused item while the floating element is - // open. - index(() => { - if (!enabled) { - return; - } - if (open) { - if (activeIndex == null) { - forceSyncFocus.current = false; - if (selectedIndex != null) { - return; - } - - // Reset while the floating element was open (e.g. the list changed). - if (previousOpenRef.current) { - indexRef.current = -1; - focusItem(listRef, indexRef); - } - - // Initial sync. - if (!previousOpenRef.current && focusItemOnOpenRef.current && (keyRef.current != null || focusItemOnOpenRef.current === true && keyRef.current == null)) { - indexRef.current = keyRef.current == null || isMainOrientationToEndKey(keyRef.current, orientation, rtl) || nested ? getMinIndex(listRef, disabledIndicesRef.current) : getMaxIndex(listRef, disabledIndicesRef.current); - onNavigate(indexRef.current); - } - } else if (!isIndexOutOfBounds(listRef, activeIndex)) { - indexRef.current = activeIndex; - focusItem(listRef, indexRef, forceScrollIntoViewRef.current); - forceScrollIntoViewRef.current = false; - } - } - }, [enabled, open, activeIndex, selectedIndex, nested, listRef, orientation, rtl, onNavigate, focusItem, disabledIndicesRef]); - - // Ensure the parent floating element has focus when a nested child closes - // to allow arrow key navigation to work after the pointer leaves the child. - index(() => { - if (!enabled) { - return; - } - if (previousOpenRef.current && !open) { - var _tree$nodesRef$curren, _tree$nodesRef$curren2; - const parentFloating = tree == null ? void 0 : (_tree$nodesRef$curren = tree.nodesRef.current.find(node => node.id === parentId)) == null ? void 0 : (_tree$nodesRef$curren2 = _tree$nodesRef$curren.context) == null ? void 0 : _tree$nodesRef$curren2.elements.floating; - if (parentFloating && !contains(parentFloating, activeElement$1(getDocument(parentFloating)))) { - parentFloating.focus({ - preventScroll: true - }); - } - } - }, [enabled, open, tree, parentId]); - index(() => { - keyRef.current = null; - previousOnNavigateRef.current = onNavigate; - previousOpenRef.current = open; - }); - const hasActiveIndex = activeIndex != null; - const item = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - function syncCurrentTarget(currentTarget) { - if (!open) return; - const index = listRef.current.indexOf(currentTarget); - if (index !== -1) { - onNavigate(index); - } - } - const props = { - onFocus(_ref2) { - let { - currentTarget - } = _ref2; - syncCurrentTarget(currentTarget); - }, - onClick: _ref3 => { - let { - currentTarget - } = _ref3; - return currentTarget.focus({ - preventScroll: true - }); - }, - // Safari - ...(focusItemOnHover && { - onMouseMove(_ref4) { - let { - currentTarget - } = _ref4; - syncCurrentTarget(currentTarget); - }, - onPointerLeave() { - if (!isPointerModalityRef.current) { - return; - } - indexRef.current = -1; - focusItem(listRef, indexRef); - - // Virtual cursor with VoiceOver on iOS needs this to be flushed - // synchronously or there is a glitch that prevents nested - // submenus from being accessible. - (0,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync)(() => onNavigate(null)); - if (!virtual) { - var _refs$floating$curren; - // This also needs to be sync to prevent fast mouse movements - // from leaving behind a stale active item when landing on a - // disabled button item. - (_refs$floating$curren = refs.floating.current) == null ? void 0 : _refs$floating$curren.focus({ - preventScroll: true - }); - } - } - }) - }; - return props; - }, [open, refs, focusItem, focusItemOnHover, listRef, onNavigate, virtual]); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - if (!enabled) { - return {}; - } - const disabledIndices = disabledIndicesRef.current; - function onKeyDown(event) { - isPointerModalityRef.current = false; - forceSyncFocus.current = true; - - // If the floating element is animating out, ignore navigation. Otherwise, - // the `activeIndex` gets set to 0 despite not being open so the next time - // the user ArrowDowns, the first item won't be focused. - if (!latestOpenRef.current && event.currentTarget === refs.floating.current) { - return; - } - if (nested && isCrossOrientationCloseKey(event.key, orientation, rtl)) { - stopEvent(event); - onOpenChange(false); - if (isHTMLElement(domReference)) { - domReference.focus(); - } - return; - } - const currentIndex = indexRef.current; - const minIndex = getMinIndex(listRef, disabledIndices); - const maxIndex = getMaxIndex(listRef, disabledIndices); - if (event.key === 'Home') { - indexRef.current = minIndex; - onNavigate(indexRef.current); - } - if (event.key === 'End') { - indexRef.current = maxIndex; - onNavigate(indexRef.current); - } - - // Grid navigation. - if (cols > 1) { - const prevIndex = indexRef.current; - if (event.key === ARROW_UP) { - stopEvent(event); - if (prevIndex === -1) { - indexRef.current = maxIndex; - } else { - indexRef.current = findNonDisabledIndex(listRef, { - startingIndex: prevIndex, - amount: cols, - decrement: true, - disabledIndices - }); - if (loop && (prevIndex - cols < minIndex || indexRef.current < 0)) { - const col = prevIndex % cols; - const maxCol = maxIndex % cols; - const offset = maxIndex - (maxCol - col); - if (maxCol === col) { - indexRef.current = maxIndex; - } else { - indexRef.current = maxCol > col ? offset : offset - cols; - } - } - } - if (isIndexOutOfBounds(listRef, indexRef.current)) { - indexRef.current = prevIndex; - } - onNavigate(indexRef.current); - } - if (event.key === ARROW_DOWN) { - stopEvent(event); - if (prevIndex === -1) { - indexRef.current = minIndex; - } else { - indexRef.current = findNonDisabledIndex(listRef, { - startingIndex: prevIndex, - amount: cols, - disabledIndices - }); - if (loop && prevIndex + cols > maxIndex) { - indexRef.current = findNonDisabledIndex(listRef, { - startingIndex: prevIndex % cols - cols, - amount: cols, - disabledIndices - }); - } - } - if (isIndexOutOfBounds(listRef, indexRef.current)) { - indexRef.current = prevIndex; - } - onNavigate(indexRef.current); - } - - // Remains on the same row/column. - if (orientation === 'both') { - const prevRow = Math.floor(prevIndex / cols); - if (event.key === ARROW_RIGHT) { - stopEvent(event); - if (prevIndex % cols !== cols - 1) { - indexRef.current = findNonDisabledIndex(listRef, { - startingIndex: prevIndex, - disabledIndices - }); - if (loop && isDifferentRow(indexRef.current, cols, prevRow)) { - indexRef.current = findNonDisabledIndex(listRef, { - startingIndex: prevIndex - prevIndex % cols - 1, - disabledIndices - }); - } - } else if (loop) { - indexRef.current = findNonDisabledIndex(listRef, { - startingIndex: prevIndex - prevIndex % cols - 1, - disabledIndices - }); - } - if (isDifferentRow(indexRef.current, cols, prevRow)) { - indexRef.current = prevIndex; - } - } - if (event.key === ARROW_LEFT) { - stopEvent(event); - if (prevIndex % cols !== 0) { - indexRef.current = findNonDisabledIndex(listRef, { - startingIndex: prevIndex, - disabledIndices, - decrement: true - }); - if (loop && isDifferentRow(indexRef.current, cols, prevRow)) { - indexRef.current = findNonDisabledIndex(listRef, { - startingIndex: prevIndex + (cols - prevIndex % cols), - decrement: true, - disabledIndices - }); - } - } else if (loop) { - indexRef.current = findNonDisabledIndex(listRef, { - startingIndex: prevIndex + (cols - prevIndex % cols), - decrement: true, - disabledIndices - }); - } - if (isDifferentRow(indexRef.current, cols, prevRow)) { - indexRef.current = prevIndex; - } - } - const lastRow = Math.floor(maxIndex / cols) === prevRow; - if (isIndexOutOfBounds(listRef, indexRef.current)) { - if (loop && lastRow) { - indexRef.current = event.key === ARROW_LEFT ? maxIndex : findNonDisabledIndex(listRef, { - startingIndex: prevIndex - prevIndex % cols - 1, - disabledIndices - }); - } else { - indexRef.current = prevIndex; - } - } - onNavigate(indexRef.current); - return; - } - } - if (isMainOrientationKey(event.key, orientation)) { - stopEvent(event); - - // Reset the index if no item is focused. - if (open && !virtual && activeElement$1(event.currentTarget.ownerDocument) === event.currentTarget) { - indexRef.current = isMainOrientationToEndKey(event.key, orientation, rtl) ? minIndex : maxIndex; - onNavigate(indexRef.current); - return; - } - if (isMainOrientationToEndKey(event.key, orientation, rtl)) { - if (loop) { - indexRef.current = currentIndex >= maxIndex ? allowEscape && currentIndex !== listRef.current.length ? -1 : minIndex : findNonDisabledIndex(listRef, { - startingIndex: currentIndex, - disabledIndices - }); - } else { - indexRef.current = Math.min(maxIndex, findNonDisabledIndex(listRef, { - startingIndex: currentIndex, - disabledIndices - })); - } - } else { - if (loop) { - indexRef.current = currentIndex <= minIndex ? allowEscape && currentIndex !== -1 ? listRef.current.length : maxIndex : findNonDisabledIndex(listRef, { - startingIndex: currentIndex, - decrement: true, - disabledIndices - }); - } else { - indexRef.current = Math.max(minIndex, findNonDisabledIndex(listRef, { - startingIndex: currentIndex, - decrement: true, - disabledIndices - })); - } - } - if (isIndexOutOfBounds(listRef, indexRef.current)) { - onNavigate(null); - } else { - onNavigate(indexRef.current); - } - } - } - function checkVirtualMouse(event) { - if (focusItemOnOpen === 'auto' && isVirtualClick(event.nativeEvent)) { - focusItemOnOpenRef.current = true; - } - } - function checkVirtualPointer(event) { - // `pointerdown` fires first, reset the state then perform the checks. - focusItemOnOpenRef.current = focusItemOnOpen; - if (focusItemOnOpen === 'auto' && isVirtualPointerEvent(event.nativeEvent)) { - focusItemOnOpenRef.current = true; - } - } - const ariaActiveDescendantProp = virtual && open && hasActiveIndex && { - 'aria-activedescendant': activeId - }; - return { - reference: { - ...ariaActiveDescendantProp, - onKeyDown(event) { - isPointerModalityRef.current = false; - const isArrowKey = event.key.indexOf('Arrow') === 0; - if (virtual && open) { - return onKeyDown(event); - } - - // If a floating element should not open on arrow key down, avoid - // setting `activeIndex` while it's closed. - if (!open && !openOnArrowKeyDown && isArrowKey) { - return; - } - const isNavigationKey = isArrowKey || event.key === 'Enter' || event.key === ' ' || event.key === ''; - if (isNavigationKey) { - keyRef.current = event.key; - } - if (nested) { - if (isCrossOrientationOpenKey(event.key, orientation, rtl)) { - stopEvent(event); - if (open) { - indexRef.current = getMinIndex(listRef, disabledIndices); - onNavigate(indexRef.current); - } else { - onOpenChange(true); - } - } - return; - } - if (isMainOrientationKey(event.key, orientation)) { - if (selectedIndex != null) { - indexRef.current = selectedIndex; - } - stopEvent(event); - if (!open && openOnArrowKeyDown) { - onOpenChange(true); - } else { - onKeyDown(event); - } - if (open) { - onNavigate(indexRef.current); - } - } - }, - onFocus() { - if (open) { - onNavigate(null); - } - }, - onPointerDown: checkVirtualPointer, - onMouseDown: checkVirtualMouse, - onClick: checkVirtualMouse - }, - floating: { - 'aria-orientation': orientation === 'both' ? undefined : orientation, - ...ariaActiveDescendantProp, - onKeyDown, - onPointerMove() { - isPointerModalityRef.current = true; - } - }, - item - }; - }, [domReference, refs, activeId, disabledIndicesRef, latestOpenRef, listRef, enabled, orientation, rtl, virtual, open, hasActiveIndex, nested, selectedIndex, openOnArrowKeyDown, allowEscape, cols, loop, focusItemOnOpen, onNavigate, onOpenChange, item]); -}; - -/** - * Merges an array of refs into a single memoized callback ref or `null`. - * @see https://floating-ui.com/docs/useMergeRefs - */ -function useMergeRefs(refs) { - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - if (refs.every(ref => ref == null)) { - return null; - } - return value => { - refs.forEach(ref => { - if (typeof ref === 'function') { - ref(value); - } else if (ref != null) { - ref.current = value; - } - }); - }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, refs); -} - -/** - * Adds base screen reader props to the reference and floating elements for a - * given floating element `role`. - * @see https://floating-ui.com/docs/useRole - */ -const useRole = function (_ref, _temp) { - let { - open - } = _ref; - let { - enabled = true, - role = 'dialog' - } = _temp === void 0 ? {} : _temp; - const rootId = useId(); - const referenceId = useId(); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - const floatingProps = { - id: rootId, - role - }; - if (!enabled) { - return {}; - } - if (role === 'tooltip') { - return { - reference: { - 'aria-describedby': open ? rootId : undefined - }, - floating: floatingProps - }; - } - return { - reference: { - 'aria-expanded': open ? 'true' : 'false', - 'aria-haspopup': role === 'alertdialog' ? 'dialog' : role, - 'aria-controls': open ? rootId : undefined, - ...(role === 'listbox' && { - role: 'combobox' - }), - ...(role === 'menu' && { - id: referenceId - }) - }, - floating: { - ...floatingProps, - ...(role === 'menu' && { - 'aria-labelledby': referenceId - }) - } - }; - }, [enabled, role, open, rootId, referenceId]); -}; - -// Converts a JS style key like `backgroundColor` to a CSS transition-property -// like `background-color`. -const camelCaseToKebabCase = str => str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase()); -function useDelayUnmount(open, durationMs) { - const [isMounted, setIsMounted] = react__WEBPACK_IMPORTED_MODULE_0__.useState(open); - if (open && !isMounted) { - setIsMounted(true); - } - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!open) { - const timeout = setTimeout(() => setIsMounted(false), durationMs); - return () => clearTimeout(timeout); - } - }, [open, durationMs]); - return isMounted; -} -/** - * Provides a status string to apply CSS transitions to a floating element, - * correctly handling placement-aware transitions. - * @see https://floating-ui.com/docs/useTransition#usetransitionstatus - */ -function useTransitionStatus(_ref, _temp) { - let { - open, - elements: { - floating - } - } = _ref; - let { - duration = 250 - } = _temp === void 0 ? {} : _temp; - const isNumberDuration = typeof duration === 'number'; - const closeDuration = (isNumberDuration ? duration : duration.close) || 0; - const [initiated, setInitiated] = react__WEBPACK_IMPORTED_MODULE_0__.useState(false); - const [status, setStatus] = react__WEBPACK_IMPORTED_MODULE_0__.useState('unmounted'); - const isMounted = useDelayUnmount(open, closeDuration); - - // `initiated` check prevents this `setState` call from breaking - // . This call is necessary to ensure subsequent opens - // after the initial one allows the correct side animation to play when the - // placement has changed. - index(() => { - if (initiated && !isMounted) { - setStatus('unmounted'); - } - }, [initiated, isMounted]); - index(() => { - if (!floating) return; - if (open) { - setStatus('initial'); - const frame = requestAnimationFrame(() => { - setStatus('open'); - }); - return () => { - cancelAnimationFrame(frame); - }; - } else { - setInitiated(true); - setStatus('close'); - } - }, [open, floating]); - return { - isMounted, - status - }; -} -/** - * Provides styles to apply CSS transitions to a floating element, correctly - * handling placement-aware transitions. Wrapper around `useTransitionStatus`. - * @see https://floating-ui.com/docs/useTransition#usetransitionstyles - */ -function useTransitionStyles(context, _temp2) { - let { - initial: unstable_initial = { - opacity: 0 - }, - open: unstable_open, - close: unstable_close, - common: unstable_common, - duration = 250 - } = _temp2 === void 0 ? {} : _temp2; - const placement = context.placement; - const side = placement.split('-')[0]; - const [styles, setStyles] = react__WEBPACK_IMPORTED_MODULE_0__.useState({}); - const { - isMounted, - status - } = useTransitionStatus(context, { - duration - }); - const initialRef = useLatestRef(unstable_initial); - const openRef = useLatestRef(unstable_open); - const closeRef = useLatestRef(unstable_close); - const commonRef = useLatestRef(unstable_common); - const isNumberDuration = typeof duration === 'number'; - const openDuration = (isNumberDuration ? duration : duration.open) || 0; - const closeDuration = (isNumberDuration ? duration : duration.close) || 0; - index(() => { - const fnArgs = { - side, - placement - }; - const initial = initialRef.current; - const close = closeRef.current; - const open = openRef.current; - const common = commonRef.current; - const initialStyles = typeof initial === 'function' ? initial(fnArgs) : initial; - const closeStyles = typeof close === 'function' ? close(fnArgs) : close; - const commonStyles = typeof common === 'function' ? common(fnArgs) : common; - const openStyles = (typeof open === 'function' ? open(fnArgs) : open) || Object.keys(initialStyles).reduce((acc, key) => { - acc[key] = ''; - return acc; - }, {}); - if (status === 'initial' || status === 'unmounted') { - setStyles(styles => ({ - transitionProperty: styles.transitionProperty, - ...commonStyles, - ...initialStyles - })); - } - if (status === 'open') { - setStyles({ - transitionProperty: Object.keys(openStyles).map(camelCaseToKebabCase).join(','), - transitionDuration: openDuration + "ms", - ...commonStyles, - ...openStyles - }); - } - if (status === 'close') { - const styles = closeStyles || initialStyles; - setStyles({ - transitionProperty: Object.keys(styles).map(camelCaseToKebabCase).join(','), - transitionDuration: closeDuration + "ms", - ...commonStyles, - ...styles - }); - } - }, [side, placement, closeDuration, closeRef, initialRef, openRef, commonRef, openDuration, status]); - return { - isMounted, - styles - }; -} - -/** - * Provides a matching callback that can be used to focus an item as the user - * types, often used in tandem with `useListNavigation()`. - * @see https://floating-ui.com/docs/useTypeahead - */ -const useTypeahead = function (_ref, _temp) { - var _ref2; - let { - open, - dataRef, - refs - } = _ref; - let { - listRef, - activeIndex, - onMatch: unstable_onMatch = () => {}, - enabled = true, - findMatch = null, - resetMs = 1000, - ignoreKeys = [], - selectedIndex = null - } = _temp === void 0 ? { - listRef: { - current: [] - }, - activeIndex: null - } : _temp; - const timeoutIdRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); - const stringRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(''); - const prevIndexRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef((_ref2 = selectedIndex != null ? selectedIndex : activeIndex) != null ? _ref2 : -1); - const matchIndexRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const onMatch = useEvent(unstable_onMatch); - const findMatchRef = useLatestRef(findMatch); - const ignoreKeysRef = useLatestRef(ignoreKeys); - index(() => { - if (open) { - clearTimeout(timeoutIdRef.current); - matchIndexRef.current = null; - stringRef.current = ''; - } - }, [open]); - index(() => { - // Sync arrow key navigation but not typeahead navigation. - if (open && stringRef.current === '') { - var _ref3; - prevIndexRef.current = (_ref3 = selectedIndex != null ? selectedIndex : activeIndex) != null ? _ref3 : -1; - } - }, [open, selectedIndex, activeIndex]); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - if (!enabled) { - return {}; - } - function onKeyDown(event) { - var _refs$floating$curren; - // Correctly scope nested non-portalled floating elements. Since the nested - // floating element is inside of the another, we find the closest role - // that indicates the floating element scope. - const target = getTarget(event.nativeEvent); - if (isElement(target) && (activeElement$1(getDocument(target)) !== event.currentTarget ? (_refs$floating$curren = refs.floating.current) != null && _refs$floating$curren.contains(target) ? target.closest('[role="dialog"],[role="menu"],[role="listbox"],[role="tree"],[role="grid"]') !== event.currentTarget : false : !event.currentTarget.contains(target))) { - return; - } - if (stringRef.current.length > 0 && stringRef.current[0] !== ' ') { - dataRef.current.typing = true; - if (event.key === ' ') { - stopEvent(event); - } - } - const listContent = listRef.current; - if (listContent == null || ignoreKeysRef.current.includes(event.key) || - // Character key. - event.key.length !== 1 || - // Modifier key. - event.ctrlKey || event.metaKey || event.altKey) { - return; - } - - // Bail out if the list contains a word like "llama" or "aaron". TODO: - // allow it in this case, too. - const allowRapidSuccessionOfFirstLetter = listContent.every(text => { - var _text$, _text$2; - return text ? ((_text$ = text[0]) == null ? void 0 : _text$.toLocaleLowerCase()) !== ((_text$2 = text[1]) == null ? void 0 : _text$2.toLocaleLowerCase()) : true; - }); - - // Allows the user to cycle through items that start with the same letter - // in rapid succession. - if (allowRapidSuccessionOfFirstLetter && stringRef.current === event.key) { - stringRef.current = ''; - prevIndexRef.current = matchIndexRef.current; - } - stringRef.current += event.key; - clearTimeout(timeoutIdRef.current); - timeoutIdRef.current = setTimeout(() => { - stringRef.current = ''; - prevIndexRef.current = matchIndexRef.current; - dataRef.current.typing = false; - }, resetMs); - const prevIndex = prevIndexRef.current; - const orderedList = [...listContent.slice((prevIndex || 0) + 1), ...listContent.slice(0, (prevIndex || 0) + 1)]; - const str = findMatchRef.current ? findMatchRef.current(orderedList, stringRef.current) : orderedList.find(text => (text == null ? void 0 : text.toLocaleLowerCase().indexOf(stringRef.current.toLocaleLowerCase())) === 0); - const index = str ? listContent.indexOf(str) : -1; - if (index !== -1) { - onMatch(index); - matchIndexRef.current = index; - } - } - return { - reference: { - onKeyDown - }, - floating: { - onKeyDown - } - }; - }, [enabled, dataRef, listRef, resetMs, ignoreKeysRef, findMatchRef, onMatch, refs]); -}; - -function getArgsWithCustomFloatingHeight(state, height) { - return { - ...state, - rects: { - ...state.rects, - floating: { - ...state.rects.floating, - height - } - } - }; -} -/** - * Positions the floating element such that an inner element inside - * of it is anchored to the reference element. - * @see https://floating-ui.com/docs/inner - */ -const inner = props => ({ - name: 'inner', - options: props, - async fn(state) { - const { - listRef, - overflowRef, - onFallbackChange, - offset: innerOffset = 0, - index = 0, - minItemsVisible = 4, - referenceOverflowThreshold = 0, - scrollRef, - ...detectOverflowOptions - } = props; - const { - rects, - elements: { - floating - } - } = state; - const item = listRef.current[index]; - if (true) { - if (!state.placement.startsWith('bottom')) { - console.warn(['Floating UI: `placement` side must be "bottom" when using the', '`inner` middleware.'].join(' ')); - } - } - if (!item) { - return {}; - } - const nextArgs = { - ...state, - ...(await (0,_floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.offset)(-item.offsetTop - rects.reference.height / 2 - item.offsetHeight / 2 - innerOffset).fn(state)) - }; - const el = (scrollRef == null ? void 0 : scrollRef.current) || floating; - const overflow = await (0,_floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.detectOverflow)(getArgsWithCustomFloatingHeight(nextArgs, el.scrollHeight), detectOverflowOptions); - const refOverflow = await (0,_floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.detectOverflow)(nextArgs, { - ...detectOverflowOptions, - elementContext: 'reference' - }); - const diffY = Math.max(0, overflow.top); - const nextY = nextArgs.y + diffY; - const maxHeight = Math.max(0, el.scrollHeight - diffY - Math.max(0, overflow.bottom)); - el.style.maxHeight = maxHeight + "px"; - el.scrollTop = diffY; - - // There is not enough space, fallback to standard anchored positioning - if (onFallbackChange) { - if (el.offsetHeight < item.offsetHeight * Math.min(minItemsVisible, listRef.current.length - 1) - 1 || refOverflow.top >= -referenceOverflowThreshold || refOverflow.bottom >= -referenceOverflowThreshold) { - (0,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync)(() => onFallbackChange(true)); - } else { - (0,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync)(() => onFallbackChange(false)); - } - } - if (overflowRef) { - overflowRef.current = await (0,_floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_3__.detectOverflow)(getArgsWithCustomFloatingHeight({ - ...nextArgs, - y: nextY - }, el.offsetHeight), detectOverflowOptions); - } - return { - y: nextY - }; - } -}); -/** - * Changes the `inner` middleware's `offset` upon a `wheel` event to - * expand the floating element's height, revealing more list items. - * @see https://floating-ui.com/docs/inner - */ -const useInnerOffset = (_ref, _ref2) => { - let { - open, - elements - } = _ref; - let { - enabled = true, - overflowRef, - scrollRef, - onChange: unstable_onChange - } = _ref2; - const onChange = useEvent(unstable_onChange); - const controlledScrollingRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); - const prevScrollTopRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const initialOverflowRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { - if (!enabled) { - return; - } - function onWheel(e) { - if (e.ctrlKey || !el || overflowRef.current == null) { - return; - } - const dY = e.deltaY; - const isAtTop = overflowRef.current.top >= -0.5; - const isAtBottom = overflowRef.current.bottom >= -0.5; - const remainingScroll = el.scrollHeight - el.clientHeight; - const sign = dY < 0 ? -1 : 1; - const method = dY < 0 ? 'max' : 'min'; - if (el.scrollHeight <= el.clientHeight) { - return; - } - if (!isAtTop && dY > 0 || !isAtBottom && dY < 0) { - e.preventDefault(); - (0,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync)(() => { - onChange(d => d + Math[method](dY, remainingScroll * sign)); - }); - } else if (/firefox/i.test(getUserAgent())) { - // Needed to propagate scrolling during momentum scrolling phase once - // it gets limited by the boundary. UX improvement, not critical. - el.scrollTop += dY; - } - } - const el = (scrollRef == null ? void 0 : scrollRef.current) || elements.floating; - if (open && el) { - el.addEventListener('wheel', onWheel); - - // Wait for the position to be ready. - requestAnimationFrame(() => { - prevScrollTopRef.current = el.scrollTop; - if (overflowRef.current != null) { - initialOverflowRef.current = { - ...overflowRef.current - }; - } - }); - return () => { - prevScrollTopRef.current = null; - initialOverflowRef.current = null; - el.removeEventListener('wheel', onWheel); - }; - } - }, [enabled, open, elements.floating, overflowRef, scrollRef, onChange]); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { - if (!enabled) { - return {}; - } - return { - floating: { - onKeyDown() { - controlledScrollingRef.current = true; - }, - onWheel() { - controlledScrollingRef.current = false; - }, - onPointerMove() { - controlledScrollingRef.current = false; - }, - onScroll() { - const el = (scrollRef == null ? void 0 : scrollRef.current) || elements.floating; - if (!overflowRef.current || !el || !controlledScrollingRef.current) { - return; - } - if (prevScrollTopRef.current !== null) { - const scrollDiff = el.scrollTop - prevScrollTopRef.current; - if (overflowRef.current.bottom < -0.5 && scrollDiff < -1 || overflowRef.current.top < -0.5 && scrollDiff > 1) { - (0,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync)(() => onChange(d => d + scrollDiff)); - } - } - - // [Firefox] Wait for the height change to have been applied. - requestAnimationFrame(() => { - prevScrollTopRef.current = el.scrollTop; - }); - } - } - }; - }, [enabled, overflowRef, elements.floating, scrollRef, onChange]); -}; - -function isPointInPolygon(point, polygon) { - const [x, y] = point; - let isInside = false; - const length = polygon.length; - for (let i = 0, j = length - 1; i < length; j = i++) { - const [xi, yi] = polygon[i] || [0, 0]; - const [xj, yj] = polygon[j] || [0, 0]; - const intersect = yi >= y !== yj >= y && x <= (xj - xi) * (y - yi) / (yj - yi) + xi; - if (intersect) { - isInside = !isInside; - } - } - return isInside; -} -function isInside(point, rect) { - return point[0] >= rect.x && point[0] <= rect.x + rect.width && point[1] >= rect.y && point[1] <= rect.y + rect.height; -} -function safePolygon(_temp) { - let { - restMs = 0, - buffer = 0.5, - blockPointerEvents = false - } = _temp === void 0 ? {} : _temp; - let timeoutId; - let isInsideRect = false; - let hasLanded = false; - const fn = _ref => { - let { - x, - y, - placement, - elements, - onClose, - nodeId, - tree - } = _ref; - return function onMouseMove(event) { - function close() { - clearTimeout(timeoutId); - onClose(); - } - clearTimeout(timeoutId); - if (!elements.domReference || !elements.floating || placement == null || x == null || y == null) { - return; - } - const { - clientX, - clientY - } = event; - const clientPoint = [clientX, clientY]; - const target = getTarget(event); - const isLeave = event.type === 'mouseleave'; - const isOverFloatingEl = contains(elements.floating, target); - const isOverReferenceEl = contains(elements.domReference, target); - const refRect = elements.domReference.getBoundingClientRect(); - const rect = elements.floating.getBoundingClientRect(); - const side = placement.split('-')[0]; - const cursorLeaveFromRight = x > rect.right - rect.width / 2; - const cursorLeaveFromBottom = y > rect.bottom - rect.height / 2; - const isOverReferenceRect = isInside(clientPoint, refRect); - if (isOverFloatingEl) { - hasLanded = true; - if (!isLeave) { - return; - } - } - if (isOverReferenceEl) { - hasLanded = false; - } - if (isOverReferenceEl && !isLeave) { - hasLanded = true; - return; - } - - // Prevent overlapping floating element from being stuck in an open-close - // loop: https://github.com/floating-ui/floating-ui/issues/1910 - if (isLeave && isElement(event.relatedTarget) && contains(elements.floating, event.relatedTarget)) { - return; - } - - // If any nested child is open, abort. - if (tree && getChildren(tree.nodesRef.current, nodeId).some(_ref2 => { - let { - context - } = _ref2; - return context == null ? void 0 : context.open; - })) { - return; - } - - // If the pointer is leaving from the opposite side, the "buffer" logic - // creates a point where the floating element remains open, but should be - // ignored. - // A constant of 1 handles floating point rounding errors. - if (side === 'top' && y >= refRect.bottom - 1 || side === 'bottom' && y <= refRect.top + 1 || side === 'left' && x >= refRect.right - 1 || side === 'right' && x <= refRect.left + 1) { - return close(); - } - - // Ignore when the cursor is within the rectangular trough between the - // two elements. Since the triangle is created from the cursor point, - // which can start beyond the ref element's edge, traversing back and - // forth from the ref to the floating element can cause it to close. This - // ensures it always remains open in that case. - let rectPoly = []; - switch (side) { - case 'top': - rectPoly = [[rect.left, refRect.top + 1], [rect.left, rect.bottom - 1], [rect.right, rect.bottom - 1], [rect.right, refRect.top + 1]]; - isInsideRect = clientX >= rect.left && clientX <= rect.right && clientY >= rect.top && clientY <= refRect.top + 1; - break; - case 'bottom': - rectPoly = [[rect.left, rect.top + 1], [rect.left, refRect.bottom - 1], [rect.right, refRect.bottom - 1], [rect.right, rect.top + 1]]; - isInsideRect = clientX >= rect.left && clientX <= rect.right && clientY >= refRect.bottom - 1 && clientY <= rect.bottom; - break; - case 'left': - rectPoly = [[rect.right - 1, rect.bottom], [rect.right - 1, rect.top], [refRect.left + 1, rect.top], [refRect.left + 1, rect.bottom]]; - isInsideRect = clientX >= rect.left && clientX <= refRect.left + 1 && clientY >= rect.top && clientY <= rect.bottom; - break; - case 'right': - rectPoly = [[refRect.right - 1, rect.bottom], [refRect.right - 1, rect.top], [rect.left + 1, rect.top], [rect.left + 1, rect.bottom]]; - isInsideRect = clientX >= refRect.right - 1 && clientX <= rect.right && clientY >= rect.top && clientY <= rect.bottom; - break; - } - function getPolygon(_ref3) { - let [x, y] = _ref3; - const isFloatingWider = rect.width > refRect.width; - const isFloatingTaller = rect.height > refRect.height; - switch (side) { - case 'top': - { - const cursorPointOne = [isFloatingWider ? x + buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y + buffer + 1]; - const cursorPointTwo = [isFloatingWider ? x - buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y + buffer + 1]; - const commonPoints = [[rect.left, cursorLeaveFromRight ? rect.bottom - buffer : isFloatingWider ? rect.bottom - buffer : rect.top], [rect.right, cursorLeaveFromRight ? isFloatingWider ? rect.bottom - buffer : rect.top : rect.bottom - buffer]]; - return [cursorPointOne, cursorPointTwo, ...commonPoints]; - } - case 'bottom': - { - const cursorPointOne = [isFloatingWider ? x + buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y - buffer]; - const cursorPointTwo = [isFloatingWider ? x - buffer / 2 : cursorLeaveFromRight ? x + buffer * 4 : x - buffer * 4, y - buffer]; - const commonPoints = [[rect.left, cursorLeaveFromRight ? rect.top + buffer : isFloatingWider ? rect.top + buffer : rect.bottom], [rect.right, cursorLeaveFromRight ? isFloatingWider ? rect.top + buffer : rect.bottom : rect.top + buffer]]; - return [cursorPointOne, cursorPointTwo, ...commonPoints]; - } - case 'left': - { - const cursorPointOne = [x + buffer + 1, isFloatingTaller ? y + buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4]; - const cursorPointTwo = [x + buffer + 1, isFloatingTaller ? y - buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4]; - const commonPoints = [[cursorLeaveFromBottom ? rect.right - buffer : isFloatingTaller ? rect.right - buffer : rect.left, rect.top], [cursorLeaveFromBottom ? isFloatingTaller ? rect.right - buffer : rect.left : rect.right - buffer, rect.bottom]]; - return [...commonPoints, cursorPointOne, cursorPointTwo]; - } - case 'right': - { - const cursorPointOne = [x - buffer, isFloatingTaller ? y + buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4]; - const cursorPointTwo = [x - buffer, isFloatingTaller ? y - buffer / 2 : cursorLeaveFromBottom ? y + buffer * 4 : y - buffer * 4]; - const commonPoints = [[cursorLeaveFromBottom ? rect.left + buffer : isFloatingTaller ? rect.left + buffer : rect.right, rect.top], [cursorLeaveFromBottom ? isFloatingTaller ? rect.left + buffer : rect.right : rect.left + buffer, rect.bottom]]; - return [cursorPointOne, cursorPointTwo, ...commonPoints]; - } - } - } - const poly = isInsideRect ? rectPoly : getPolygon([x, y]); - if (isInsideRect) { - return; - } else if (hasLanded && !isOverReferenceRect) { - return close(); - } - if (!isPointInPolygon([clientX, clientY], poly)) { - close(); - } else if (restMs && !hasLanded) { - timeoutId = setTimeout(close, restMs); - } - }; - }; - fn.__options = { - blockPointerEvents - }; - return fn; -} - -/** - * Provides data to position a floating element and context to add interactions. - * @see https://floating-ui.com/docs/react - */ -function useFloating(options) { - if (options === void 0) { - options = {}; - } - const { - open = false, - onOpenChange: unstable_onOpenChange, - nodeId - } = options; - const position = (0,_floating_ui_react_dom__WEBPACK_IMPORTED_MODULE_2__.useFloating)(options); - const tree = useFloatingTree(); - const domReferenceRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(null); - const dataRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef({}); - const events = react__WEBPACK_IMPORTED_MODULE_0__.useState(() => createPubSub())[0]; - const [domReference, setDomReference] = react__WEBPACK_IMPORTED_MODULE_0__.useState(null); - const setPositionReference = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(node => { - const positionReference = isElement(node) ? { - getBoundingClientRect: () => node.getBoundingClientRect(), - contextElement: node - } : node; - position.refs.setReference(positionReference); - }, [position.refs]); - const setReference = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(node => { - if (isElement(node) || node === null) { - domReferenceRef.current = node; - setDomReference(node); - } - - // Backwards-compatibility for passing a virtual element to `reference` - // after it has set the DOM reference. - if (isElement(position.refs.reference.current) || position.refs.reference.current === null || - // Don't allow setting virtual elements using the old technique back to - // `null` to support `positionReference` + an unstable `reference` - // callback ref. - node !== null && !isElement(node)) { - position.refs.setReference(node); - } - }, [position.refs]); - const refs = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ - ...position.refs, - setReference, - setPositionReference, - domReference: domReferenceRef - }), [position.refs, setReference, setPositionReference]); - const elements = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ - ...position.elements, - domReference: domReference - }), [position.elements, domReference]); - const onOpenChange = useEvent(unstable_onOpenChange); - const context = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ - ...position, - refs, - elements, - dataRef, - nodeId, - events, - open, - onOpenChange - }), [position, nodeId, events, open, onOpenChange, refs, elements]); - index(() => { - const node = tree == null ? void 0 : tree.nodesRef.current.find(node => node.id === nodeId); - if (node) { - node.context = context; - } - }); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ - ...position, - context, - refs, - reference: setReference, - positionReference: setPositionReference - }), [position, refs, context, setReference, setPositionReference]); -} - -function mergeProps(userProps, propsList, elementKey) { - const map = new Map(); - return { - ...(elementKey === 'floating' && { - tabIndex: -1 - }), - ...userProps, - ...propsList.map(value => value ? value[elementKey] : null).concat(userProps).reduce((acc, props) => { - if (!props) { - return acc; - } - Object.entries(props).forEach(_ref => { - let [key, value] = _ref; - if (key.indexOf('on') === 0) { - if (!map.has(key)) { - map.set(key, []); - } - if (typeof value === 'function') { - var _map$get; - (_map$get = map.get(key)) == null ? void 0 : _map$get.push(value); - acc[key] = function () { - var _map$get2; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - (_map$get2 = map.get(key)) == null ? void 0 : _map$get2.forEach(fn => fn(...args)); - }; - } - } else { - acc[key] = value; - } - }); - return acc; - }, {}) - }; -} -const useInteractions = function (propsList) { - if (propsList === void 0) { - propsList = []; - } - // The dependencies are a dynamic array, so we can't use the linter's - // suggestion to add it to the deps array. - const deps = propsList; - const getReferenceProps = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(userProps => mergeProps(userProps, propsList, 'reference'), - // eslint-disable-next-line react-hooks/exhaustive-deps - deps); - const getFloatingProps = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(userProps => mergeProps(userProps, propsList, 'floating'), - // eslint-disable-next-line react-hooks/exhaustive-deps - deps); - const getItemProps = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(userProps => mergeProps(userProps, propsList, 'item'), - // Granularly check for `item` changes, because the `getItemProps` getter - // should be as referentially stable as possible since it may be passed as - // a prop to many components. All `item` key values must therefore be - // memoized. - // eslint-disable-next-line react-hooks/exhaustive-deps - propsList.map(key => key == null ? void 0 : key.item)); - return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ - getReferenceProps, - getFloatingProps, - getItemProps - }), [getReferenceProps, getFloatingProps, getItemProps]); -}; - - - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ActionIcon: () => (/* binding */ ActionIcon), -/* harmony export */ _ActionIcon: () => (/* binding */ _ActionIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _ActionIcon_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ActionIcon.styles.js */ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.styles.js"); -/* harmony import */ var _Loader_Loader_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Loader/Loader.js */ "./node_modules/@mantine/core/esm/Loader/Loader.js"); -/* harmony import */ var _UnstyledButton_UnstyledButton_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../UnstyledButton/UnstyledButton.js */ "./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - color: "gray", - size: "md", - variant: "subtle", - loading: false -}; -const _ActionIcon = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("ActionIcon", defaultProps, props), { - className, - color, - children, - radius, - size, - variant, - gradient, - disabled, - loaderProps, - loading, - unstyled - } = _a, others = __objRest(_a, [ - "className", - "color", - "children", - "radius", - "size", - "variant", - "gradient", - "disabled", - "loaderProps", - "loading", - "unstyled" - ]); - const { classes, cx, theme } = (0,_ActionIcon_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ size, radius, color, variant, gradient }, { name: "ActionIcon", unstyled }); - const colors = theme.fn.variant({ color, variant }); - const loader = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Loader_Loader_js__WEBPACK_IMPORTED_MODULE_3__.Loader, __spreadValues({ - color: colors.color, - size: theme.fn.size({ size, sizes: _ActionIcon_styles_js__WEBPACK_IMPORTED_MODULE_2__.sizes }) - 12 - }, loaderProps)); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_UnstyledButton_UnstyledButton_js__WEBPACK_IMPORTED_MODULE_4__.UnstyledButton, __spreadValues({ - className: cx(classes.root, className), - ref, - disabled, - "data-disabled": disabled || void 0, - "data-loading": loading || void 0, - unstyled - }, others), loading ? loader : children); -}); -_ActionIcon.displayName = "@mantine/core/ActionIcon"; -const ActionIcon = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.createPolymorphicComponent)(_ActionIcon); - - -//# sourceMappingURL=ActionIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.styles.js": -/*!************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.styles.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ sizes: () => (/* binding */ sizes) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 18, - sm: 22, - md: 28, - lg: 34, - xl: 44 -}; -function getVariantStyles({ variant, theme, color, gradient }) { - const colors = theme.fn.variant({ color, variant, gradient }); - if (variant === "gradient") { - return { - border: 0, - backgroundImage: colors.background, - color: colors.color, - "&:hover": theme.fn.hover({ - backgroundSize: "200%" - }) - }; - } - return __spreadValues({ - border: `1px solid ${colors.border}`, - backgroundColor: colors.background, - color: colors.color - }, theme.fn.hover({ - backgroundColor: colors.hover - })); -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { color, size, radius, variant, gradient }) => ({ - root: __spreadProps(__spreadValues({}, getVariantStyles({ variant, theme, color, gradient })), { - position: "relative", - height: theme.fn.size({ size, sizes }), - minHeight: theme.fn.size({ size, sizes }), - width: theme.fn.size({ size, sizes }), - minWidth: theme.fn.size({ size, sizes }), - borderRadius: theme.fn.radius(radius), - padding: 0, - lineHeight: 1, - display: "flex", - alignItems: "center", - justifyContent: "center", - "&:active": theme.activeStyles, - "&:disabled, &[data-disabled]": { - color: theme.colors.gray[theme.colorScheme === "dark" ? 6 : 4], - cursor: "not-allowed", - backgroundColor: variant === "transparent" ? void 0 : theme.fn.themeColor("gray", theme.colorScheme === "dark" ? 8 : 1), - borderColor: variant === "transparent" ? void 0 : theme.fn.themeColor("gray", theme.colorScheme === "dark" ? 8 : 1), - backgroundImage: "none", - pointerEvents: "none", - "&:active": { - transform: "none" - } - }, - "&[data-loading]": { - pointerEvents: "none", - "&::before": { - content: '""', - position: "absolute", - top: -1, - left: -1, - right: -1, - bottom: -1, - backgroundColor: theme.colorScheme === "dark" ? theme.fn.rgba(theme.colors.dark[7], 0.5) : "rgba(255, 255, 255, .5)", - borderRadius: theme.fn.radius(radius), - cursor: "not-allowed" - } - } - }) -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); - -//# sourceMappingURL=ActionIcon.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Anchor/Anchor.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Anchor/Anchor.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Anchor: () => (/* binding */ Anchor), -/* harmony export */ _Anchor: () => (/* binding */ _Anchor) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _Anchor_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Anchor.styles.js */ "./node_modules/@mantine/core/esm/Anchor/Anchor.styles.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -const _Anchor = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Anchor", defaultProps, props), { component, className, unstyled } = _a, others = __objRest(_a, ["component", "className", "unstyled"]); - const { classes, cx } = (0,_Anchor_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])(null, { name: "Anchor", unstyled }); - const buttonProps = component === "button" ? { type: "button" } : null; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_3__.Text, __spreadValues(__spreadValues({ - component: component || "a", - variant: "link", - ref, - className: cx(classes.root, className) - }, buttonProps), others)); -}); -_Anchor.displayName = "@mantine/core/Anchor"; -const Anchor = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createPolymorphicComponent)(_Anchor); - - -//# sourceMappingURL=Anchor.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Anchor/Anchor.styles.js": -/*!****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Anchor/Anchor.styles.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)(() => ({ - root: { - backgroundColor: "transparent", - cursor: "pointer", - padding: 0, - border: 0 - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Anchor.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/AppShell.context.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/AppShell.context.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AppShellProvider: () => (/* binding */ AppShellProvider), -/* harmony export */ useAppShellContext: () => (/* binding */ useAppShellContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const AppShellContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({ - zIndex: 1e3, - fixed: false, - layout: "default" -}); -const AppShellProvider = AppShellContext.Provider; -function useAppShellContext() { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(AppShellContext); -} - - -//# sourceMappingURL=AppShell.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/AppShell.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/AppShell.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AppShell: () => (/* binding */ AppShell) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _AppShell_context_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AppShell.context.js */ "./node_modules/@mantine/core/esm/AppShell/AppShell.context.js"); -/* harmony import */ var _AppShell_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AppShell.styles.js */ "./node_modules/@mantine/core/esm/AppShell/AppShell.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - fixed: true, - padding: "md" -}; -const AppShell = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("AppShell", defaultProps, props), { - children, - navbar, - header, - footer, - aside, - fixed, - zIndex, - padding, - navbarOffsetBreakpoint, - asideOffsetBreakpoint, - className, - styles, - classNames, - unstyled, - hidden, - layout - } = _a, others = __objRest(_a, [ - "children", - "navbar", - "header", - "footer", - "aside", - "fixed", - "zIndex", - "padding", - "navbarOffsetBreakpoint", - "asideOffsetBreakpoint", - "className", - "styles", - "classNames", - "unstyled", - "hidden", - "layout" - ]); - const { classes, cx } = (0,_AppShell_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ padding, fixed, navbarOffsetBreakpoint, asideOffsetBreakpoint }, { styles, classNames, unstyled, name: "AppShell" }); - if (hidden) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children); - } - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_AppShell_context_js__WEBPACK_IMPORTED_MODULE_3__.AppShellProvider, { - value: { fixed, zIndex, layout } - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others), header, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.body - }, navbar, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("main", { - className: classes.main - }, children), aside), footer)); -}); -AppShell.displayName = "@mantine/core/AppShell"; - - -//# sourceMappingURL=AppShell.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/AppShell.styles.js": -/*!********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/AppShell.styles.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function getPositionStyles(props, theme) { - const padding = theme.fn.size({ size: props.padding, sizes: theme.spacing }); - const navbarOffset = props.navbarOffsetBreakpoint ? theme.fn.size({ size: props.navbarOffsetBreakpoint, sizes: theme.breakpoints }) : null; - const asideOffset = props.asideOffsetBreakpoint ? theme.fn.size({ size: props.asideOffsetBreakpoint, sizes: theme.breakpoints }) : null; - if (!props.fixed) { - return { padding }; - } - return { - minHeight: "100vh", - paddingTop: `calc(var(--mantine-header-height, 0px) + ${padding}px)`, - paddingBottom: `calc(var(--mantine-footer-height, 0px) + ${padding}px)`, - paddingLeft: `calc(var(--mantine-navbar-width, 0px) + ${padding}px)`, - paddingRight: `calc(var(--mantine-aside-width, 0px) + ${padding}px)`, - [`@media (max-width: ${navbarOffset - 1}px)`]: { - paddingLeft: padding - }, - [`@media (max-width: ${asideOffset - 1}px)`]: { - paddingRight: padding - } - }; -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, props) => ({ - root: { - boxSizing: "border-box" - }, - body: { - display: "flex", - boxSizing: "border-box" - }, - main: __spreadValues({ - flex: 1, - width: "100vw", - boxSizing: "border-box" - }, getPositionStyles(props, theme)) -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=AppShell.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/Header/Header.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/Header/Header.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Header: () => (/* binding */ Header) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _VerticalSection_VerticalSection_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../VerticalSection/VerticalSection.js */ "./node_modules/@mantine/core/esm/AppShell/VerticalSection/VerticalSection.js"); - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const defaultProps = { - fixed: false, - position: { top: 0, left: 0, right: 0 } -}; -const Header = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _props = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Header", defaultProps, props); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_VerticalSection_VerticalSection_js__WEBPACK_IMPORTED_MODULE_2__.VerticalSection, __spreadProps(__spreadValues({ - section: "header", - __staticSelector: "Header" - }, _props), { - ref - })); -}); -Header.displayName = "@mantine/core/Header"; - - -//# sourceMappingURL=Header.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/HorizontalSection.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/HorizontalSection/HorizontalSection.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ HorizontalSection: () => (/* binding */ HorizontalSection) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/Global.js"); -/* harmony import */ var _AppShell_context_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AppShell.context.js */ "./node_modules/@mantine/core/esm/AppShell/AppShell.context.js"); -/* harmony import */ var _get_sorted_breakpoints_get_sorted_breakpoints_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./get-sorted-breakpoints/get-sorted-breakpoints.js */ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js"); -/* harmony import */ var _HorizontalSection_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./HorizontalSection.styles.js */ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/HorizontalSection.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const HorizontalSection = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { - width, - height, - fixed = false, - position, - zIndex, - hiddenBreakpoint = "md", - hidden = false, - withBorder = true, - className, - classNames, - styles, - children, - section, - __staticSelector, - unstyled - } = _b, others = __objRest(_b, [ - "width", - "height", - "fixed", - "position", - "zIndex", - "hiddenBreakpoint", - "hidden", - "withBorder", - "className", - "classNames", - "styles", - "children", - "section", - "__staticSelector", - "unstyled" - ]); - const ctx = (0,_AppShell_context_js__WEBPACK_IMPORTED_MODULE_1__.useAppShellContext)(); - const { classes, cx, theme } = (0,_HorizontalSection_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ - width, - height, - fixed: ctx.fixed || fixed, - position, - hiddenBreakpoint, - zIndex: zIndex || ctx.zIndex || (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_3__.getDefaultZIndex)("app"), - section, - withBorder, - layout: ctx.layout - }, { classNames, styles, name: __staticSelector, unstyled }); - const breakpoints = (0,_get_sorted_breakpoints_get_sorted_breakpoints_js__WEBPACK_IMPORTED_MODULE_4__.getSortedBreakpoints)(width, theme).reduce((acc, [breakpoint, breakpointSize]) => { - acc[`@media (min-width: ${breakpoint}px)`] = { - [`--mantine-${section}-width`]: `${breakpointSize}px` - }; - return acc; - }, {}); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_5__.Box, __spreadValues({ - component: section === "navbar" ? "nav" : "aside", - ref, - "data-hidden": hidden || void 0, - className: cx(classes.root, className) - }, others), children, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_styles__WEBPACK_IMPORTED_MODULE_6__.Global, { - styles: () => ({ - ":root": __spreadValues({ - [`--mantine-${section}-width`]: (width == null ? void 0 : width.base) ? `${width.base}px` : "0px" - }, breakpoints) - }) - })); -}); -HorizontalSection.displayName = "@mantine/core/HorizontalSection"; - - -//# sourceMappingURL=HorizontalSection.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/HorizontalSection.styles.js": -/*!***********************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/HorizontalSection/HorizontalSection.styles.js ***! - \***********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); -/* harmony import */ var _get_sorted_breakpoints_get_sorted_breakpoints_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./get-sorted-breakpoints/get-sorted-breakpoints.js */ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js"); - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { - height, - width, - fixed, - position, - hiddenBreakpoint, - zIndex, - section, - withBorder, - layout -}) => { - const breakpoints = typeof width === "object" && width !== null ? (0,_get_sorted_breakpoints_get_sorted_breakpoints_js__WEBPACK_IMPORTED_MODULE_1__.getSortedBreakpoints)(width, theme).reduce((acc, [breakpoint, breakpointSize]) => { - acc[`@media (min-width: ${breakpoint}px)`] = { - width: breakpointSize, - minWidth: breakpointSize - }; - return acc; - }, {}) : null; - const borderStyles = withBorder ? { - [section === "navbar" ? "borderRight" : "borderLeft"]: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[2]}` - } : {}; - return { - root: __spreadProps(__spreadValues(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, theme.fn.fontStyles()), position), { - top: layout === "alt" ? 0 : (position == null ? void 0 : position.top) || "var(--mantine-header-height)", - bottom: 0, - zIndex, - height: height || (layout === "alt" ? "auto" : "calc(100vh - var(--mantine-header-height, 0px) - var(--mantine-footer-height, 0px))"), - width: (width == null ? void 0 : width.base) || "100%", - position: fixed ? "fixed" : "static", - boxSizing: "border-box", - display: "flex", - flexDirection: "column", - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white - }), borderStyles), breakpoints), { - "&[data-hidden]": { - [`@media (max-width: ${theme.fn.size({ - size: hiddenBreakpoint, - sizes: theme.breakpoints - }) - 1}px)`]: { - display: "none" - } - } - }) - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=HorizontalSection.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/Section/Section.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/HorizontalSection/Section/Section.js ***! - \**************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Section: () => (/* binding */ Section), -/* harmony export */ _Section: () => (/* binding */ _Section) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/pack-sx/pack-sx.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const _Section = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { children, grow = false, sx } = _b, others = __objRest(_b, ["children", "grow", "sx"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_1__.Box, __spreadValues({ - ref, - sx: [{ flex: grow ? 1 : 0, boxSizing: "border-box" }, ...(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_2__.packSx)(sx)] - }, others), children); -}); -_Section.displayName = "@mantine/core/Section"; -const Section = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_3__.createPolymorphicComponent)(_Section); - - -//# sourceMappingURL=Section.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js": -/*!********************************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js ***! - \********************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getSortedBreakpoints: () => (/* binding */ getSortedBreakpoints) -/* harmony export */ }); -function getSortedBreakpoints(breakpoints, theme) { - if (!breakpoints) { - return []; - } - const values = Object.keys(breakpoints).filter((breakpoint) => breakpoint !== "base").map((breakpoint) => [ - theme.fn.size({ size: breakpoint, sizes: theme.breakpoints }), - breakpoints[breakpoint] - ]); - values.sort((a, b) => a[0] - b[0]); - return values; -} - - -//# sourceMappingURL=get-sorted-breakpoints.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/Navbar/Navbar.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/Navbar/Navbar.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Navbar: () => (/* binding */ Navbar) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _HorizontalSection_HorizontalSection_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../HorizontalSection/HorizontalSection.js */ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/HorizontalSection.js"); -/* harmony import */ var _HorizontalSection_Section_Section_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../HorizontalSection/Section/Section.js */ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/Section/Section.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -const defaultProps = { - fixed: false, - position: { top: 0, left: 0 }, - hiddenBreakpoint: "md", - hidden: false -}; -const Navbar = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _props = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Navbar", defaultProps, props); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_HorizontalSection_HorizontalSection_js__WEBPACK_IMPORTED_MODULE_2__.HorizontalSection, __spreadValues({ - section: "navbar", - __staticSelector: "Navbar", - ref - }, _props)); -}); -Navbar.Section = _HorizontalSection_Section_Section_js__WEBPACK_IMPORTED_MODULE_3__.Section; -Navbar.displayName = "@mantine/core/Navbar"; - - -//# sourceMappingURL=Navbar.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/VerticalSection/VerticalSection.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/VerticalSection/VerticalSection.js ***! - \************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ VerticalSection: () => (/* binding */ VerticalSection) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/Global.js"); -/* harmony import */ var _AppShell_context_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AppShell.context.js */ "./node_modules/@mantine/core/esm/AppShell/AppShell.context.js"); -/* harmony import */ var _VerticalSection_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./VerticalSection.styles.js */ "./node_modules/@mantine/core/esm/AppShell/VerticalSection/VerticalSection.styles.js"); -/* harmony import */ var _HorizontalSection_get_sorted_breakpoints_get_sorted_breakpoints_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js */ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const VerticalSection = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { - children, - className, - classNames, - styles, - height, - fixed = false, - withBorder = true, - position, - zIndex, - section, - unstyled, - __staticSelector - } = _b, others = __objRest(_b, [ - "children", - "className", - "classNames", - "styles", - "height", - "fixed", - "withBorder", - "position", - "zIndex", - "section", - "unstyled", - "__staticSelector" - ]); - const ctx = (0,_AppShell_context_js__WEBPACK_IMPORTED_MODULE_1__.useAppShellContext)(); - const _zIndex = zIndex || ctx.zIndex || (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.getDefaultZIndex)("app"); - const { classes, cx, theme } = (0,_VerticalSection_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ - height, - fixed: ctx.fixed || fixed, - position, - zIndex: typeof _zIndex === "number" && ctx.layout === "default" ? _zIndex + 1 : _zIndex, - layout: ctx.layout, - borderPosition: withBorder ? section === "header" ? "bottom" : "top" : "none" - }, { name: __staticSelector, classNames, styles, unstyled }); - const breakpoints = typeof height === "object" && height !== null ? (0,_HorizontalSection_get_sorted_breakpoints_get_sorted_breakpoints_js__WEBPACK_IMPORTED_MODULE_4__.getSortedBreakpoints)(height, theme).reduce((acc, [breakpoint, breakpointSize]) => { - acc[`@media (min-width: ${breakpoint}px)`] = { - [`--mantine-${section}-height`]: `${breakpointSize}px` - }; - return acc; - }, {}) : null; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_5__.Box, __spreadValues({ - component: section === "header" ? "header" : "footer", - className: cx(classes.root, className), - ref - }, others), children, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_styles__WEBPACK_IMPORTED_MODULE_6__.Global, { - styles: () => ({ - ":root": __spreadValues({ - [`--mantine-${section}-height`]: typeof height === "object" ? `${height == null ? void 0 : height.base}px` || "100%" : `${height}px` - }, breakpoints) - }) - })); -}); -VerticalSection.displayName = "@mantine/core/VerticalSection"; - - -//# sourceMappingURL=VerticalSection.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/AppShell/VerticalSection/VerticalSection.styles.js": -/*!*******************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/AppShell/VerticalSection/VerticalSection.styles.js ***! - \*******************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); -/* harmony import */ var _HorizontalSection_get_sorted_breakpoints_get_sorted_breakpoints_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js */ "./node_modules/@mantine/core/esm/AppShell/HorizontalSection/get-sorted-breakpoints/get-sorted-breakpoints.js"); - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { height, fixed, position, zIndex, borderPosition, layout }) => { - const breakpoints = typeof height === "object" && height !== null ? (0,_HorizontalSection_get_sorted_breakpoints_get_sorted_breakpoints_js__WEBPACK_IMPORTED_MODULE_1__.getSortedBreakpoints)(height, theme).reduce((acc, [breakpoint, breakpointSize]) => { - acc[`@media (min-width: ${breakpoint}px)`] = { - height: breakpointSize, - minHeight: breakpointSize - }; - return acc; - }, {}) : null; - return { - root: __spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, theme.fn.fontStyles()), position), { - zIndex, - left: layout === "alt" ? "var(--mantine-navbar-width, 0)" : 0, - right: layout === "alt" ? "var(--mantine-aside-width, 0)" : 0, - height: typeof height === "object" ? (height == null ? void 0 : height.base) || "100%" : height, - maxHeight: typeof height === "object" ? (height == null ? void 0 : height.base) || "100%" : height, - position: fixed ? "fixed" : "static", - boxSizing: "border-box", - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white - }), breakpoints), { - borderBottom: borderPosition === "bottom" ? `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[2]}` : void 0, - borderTop: borderPosition === "top" ? `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[2]}` : void 0 - }) - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=VerticalSection.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Avatar/Avatar.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Avatar/Avatar.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Avatar: () => (/* binding */ Avatar), -/* harmony export */ _Avatar: () => (/* binding */ _Avatar) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _AvatarPlaceholderIcon_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./AvatarPlaceholderIcon.js */ "./node_modules/@mantine/core/esm/Avatar/AvatarPlaceholderIcon.js"); -/* harmony import */ var _AvatarGroup_AvatarGroup_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AvatarGroup/AvatarGroup.js */ "./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.js"); -/* harmony import */ var _AvatarGroup_AvatarGroup_context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AvatarGroup/AvatarGroup.context.js */ "./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.context.js"); -/* harmony import */ var _Avatar_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Avatar.styles.js */ "./node_modules/@mantine/core/esm/Avatar/Avatar.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - size: "md", - color: "gray", - variant: "light" -}; -const _Avatar = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Avatar", defaultProps, props), { - className, - size, - src, - alt, - radius, - children, - color, - variant, - gradient, - classNames, - styles, - imageProps, - unstyled - } = _a, others = __objRest(_a, [ - "className", - "size", - "src", - "alt", - "radius", - "children", - "color", - "variant", - "gradient", - "classNames", - "styles", - "imageProps", - "unstyled" - ]); - const ctx = (0,_AvatarGroup_AvatarGroup_context_js__WEBPACK_IMPORTED_MODULE_2__.useAvatarGroupContext)(); - const [error, setError] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!src); - const { classes, cx } = (0,_Avatar_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ color, radius, size, withinGroup: ctx.withinGroup, spacing: ctx.spacing, variant, gradient }, { classNames, styles, unstyled, name: "Avatar" }); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - !src ? setError(true) : setError(false); - }, [src]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - component: "div", - className: cx(classes.root, className), - ref - }, others), error ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.placeholder, - title: alt - }, children || /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_AvatarPlaceholderIcon_js__WEBPACK_IMPORTED_MODULE_5__.AvatarPlaceholderIcon, { - className: classes.placeholderIcon - })) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("img", __spreadProps(__spreadValues({}, imageProps), { - className: classes.image, - src, - alt, - onError: () => setError(true) - }))); -}); -_Avatar.displayName = "@mantine/core/Avatar"; -_Avatar.Group = _AvatarGroup_AvatarGroup_js__WEBPACK_IMPORTED_MODULE_6__.AvatarGroup; -const Avatar = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_7__.createPolymorphicComponent)(_Avatar); - - -//# sourceMappingURL=Avatar.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Avatar/Avatar.styles.js": -/*!****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Avatar/Avatar.styles.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ sizes: () => (/* binding */ sizes) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 16, - sm: 26, - md: 38, - lg: 56, - xl: 84 -}; -function getGroupStyles({ withinGroup, spacing, theme }) { - if (!withinGroup) { - return null; - } - return { - marginLeft: -theme.fn.size({ size: spacing, sizes: theme.spacing }), - backgroundColor: `${theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white}`, - border: `2px solid ${theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white}` - }; -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size, radius, color, withinGroup, spacing, variant, gradient }) => { - const colors = theme.fn.variant({ variant, color, gradient }); - return { - root: __spreadValues(__spreadProps(__spreadValues({}, theme.fn.focusStyles()), { - WebkitTapHighlightColor: "transparent", - boxSizing: "border-box", - position: "relative", - display: "block", - userSelect: "none", - overflow: "hidden", - width: theme.fn.size({ size, sizes }), - minWidth: theme.fn.size({ size, sizes }), - height: theme.fn.size({ size, sizes }), - borderRadius: theme.fn.radius(radius), - textDecoration: "none", - border: 0, - backgroundColor: "transparent", - padding: 0 - }), getGroupStyles({ withinGroup, spacing, theme })), - image: { - objectFit: "cover", - width: "100%", - height: "100%", - display: "block" - }, - placeholder: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - fontSize: theme.fn.size({ size, sizes }) / 2.5, - color: colors.color, - fontWeight: 700, - backgroundColor: colors.background, - display: "flex", - alignItems: "center", - justifyContent: "center", - width: "100%", - height: "100%", - userSelect: "none", - backgroundImage: variant === "gradient" ? colors.background : void 0, - border: `${variant === "gradient" ? 0 : 1}px solid ${colors.border}`, - borderRadius: theme.fn.radius(radius) - }), - placeholderIcon: { - width: "70%", - height: "70%", - color: colors.color - } - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); - -//# sourceMappingURL=Avatar.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.context.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.context.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AvatarGroupProvider: () => (/* binding */ AvatarGroupProvider), -/* harmony export */ useAvatarGroupContext: () => (/* binding */ useAvatarGroupContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const AvatarGroupContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null); -function AvatarGroupProvider({ spacing, children }) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(AvatarGroupContext.Provider, { - value: { spacing } - }, children); -} -function useAvatarGroupContext() { - const ctx = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(AvatarGroupContext); - if (ctx) { - return __spreadProps(__spreadValues({}, ctx), { withinGroup: true }); - } - return { spacing: null, withinGroup: false }; -} - - -//# sourceMappingURL=AvatarGroup.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AvatarGroup: () => (/* binding */ AvatarGroup) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _AvatarGroup_context_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AvatarGroup.context.js */ "./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.context.js"); -/* harmony import */ var _AvatarGroup_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AvatarGroup.styles.js */ "./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -const AvatarGroup = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("AvatarGroup", defaultProps, props), { - children, - spacing = "sm", - unstyled, - className - } = _a, others = __objRest(_a, [ - "children", - "spacing", - "unstyled", - "className" - ]); - const { classes, cx } = (0,_AvatarGroup_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ spacing }, { name: "AvatarGroup", unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_AvatarGroup_context_js__WEBPACK_IMPORTED_MODULE_3__.AvatarGroupProvider, { - spacing - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - ref, - className: cx(classes.root, className) - }, others), children)); -}); -AvatarGroup.displayName = "@mantine/core/AvatarGroup"; - - -//# sourceMappingURL=AvatarGroup.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.styles.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Avatar/AvatarGroup/AvatarGroup.styles.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { spacing }) => ({ - root: { - display: "flex", - paddingLeft: theme.fn.size({ size: spacing, sizes: theme.spacing }) - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=AvatarGroup.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Avatar/AvatarPlaceholderIcon.js": -/*!************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Avatar/AvatarPlaceholderIcon.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AvatarPlaceholderIcon: () => (/* binding */ AvatarPlaceholderIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function AvatarPlaceholderIcon(props) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadProps(__spreadValues({}, props), { - width: "15", - height: "15", - viewBox: "0 0 15 15", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z", - fill: "currentColor", - fillRule: "evenodd", - clipRule: "evenodd" - })); -} - - -//# sourceMappingURL=AvatarPlaceholderIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Badge/Badge.js": -/*!*******************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Badge/Badge.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Badge: () => (/* binding */ Badge), -/* harmony export */ _Badge: () => (/* binding */ _Badge) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _Badge_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Badge.styles.js */ "./node_modules/@mantine/core/esm/Badge/Badge.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - variant: "light", - size: "md", - radius: "xl" -}; -const _Badge = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Badge", defaultProps, props), { - className, - color, - variant, - fullWidth, - children, - size, - leftSection, - rightSection, - radius, - gradient, - classNames, - styles, - unstyled - } = _a, others = __objRest(_a, [ - "className", - "color", - "variant", - "fullWidth", - "children", - "size", - "leftSection", - "rightSection", - "radius", - "gradient", - "classNames", - "styles", - "unstyled" - ]); - const { classes, cx } = (0,_Badge_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ - size, - fullWidth, - color, - radius, - variant, - gradient - }, { classNames, styles, name: "Badge", unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others), leftSection && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: classes.leftSection - }, leftSection), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: classes.inner - }, children), rightSection && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: classes.rightSection - }, rightSection)); -}); -_Badge.displayName = "@mantine/core/Badge"; -const Badge = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createPolymorphicComponent)(_Badge); - - -//# sourceMappingURL=Badge.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Badge/Badge.styles.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Badge/Badge.styles.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: { fontSize: 9, height: 16 }, - sm: { fontSize: 10, height: 18 }, - md: { fontSize: 11, height: 20 }, - lg: { fontSize: 13, height: 26 }, - xl: { fontSize: 16, height: 32 } -}; -const dotSizes = { - xs: 4, - sm: 4, - md: 6, - lg: 8, - xl: 10 -}; -function getVariantStyles({ theme, variant, color, size, gradient }) { - if (variant === "dot") { - const dotSize = theme.fn.size({ size, sizes: dotSizes }); - return { - backgroundColor: "transparent", - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.gray[7], - border: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[3]}`, - paddingLeft: theme.fn.size({ size, sizes: theme.spacing }) / 1.5 - dotSize / 2, - "&::before": { - content: '""', - display: "block", - width: dotSize, - height: dotSize, - borderRadius: dotSize, - backgroundColor: theme.fn.themeColor(color, theme.colorScheme === "dark" ? 4 : theme.fn.primaryShade("light"), true), - marginRight: dotSize - } - }; - } - const colors = theme.fn.variant({ color, variant, gradient }); - return { - background: colors.background, - color: colors.color, - border: `${variant === "gradient" ? 0 : 1}px solid ${colors.border}` - }; -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { color, size, radius, gradient, fullWidth, variant }) => { - const { fontSize, height } = size in sizes ? sizes[size] : sizes.md; - return { - leftSection: { - marginRight: `calc(${theme.spacing.xs}px / 2)` - }, - rightSection: { - marginLeft: `calc(${theme.spacing.xs}px / 2)` - }, - inner: { - whiteSpace: "nowrap", - overflow: "hidden", - textOverflow: "ellipsis" - }, - root: __spreadValues(__spreadProps(__spreadValues(__spreadValues({}, theme.fn.focusStyles()), theme.fn.fontStyles()), { - fontSize, - height, - WebkitTapHighlightColor: "transparent", - lineHeight: `${height - 2}px`, - textDecoration: "none", - padding: `0 ${theme.fn.size({ size, sizes: theme.spacing }) / 1.5}px`, - boxSizing: "border-box", - display: fullWidth ? "flex" : "inline-flex", - alignItems: "center", - justifyContent: "center", - width: fullWidth ? "100%" : "auto", - textTransform: "uppercase", - borderRadius: theme.fn.radius(radius), - fontWeight: 700, - letterSpacing: 0.25, - cursor: "inherit", - textOverflow: "ellipsis", - overflow: "hidden" - }), getVariantStyles({ theme, variant, color, size, gradient })) - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Badge.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/Box.js": -/*!***************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/Box.js ***! - \***************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Box: () => (/* binding */ Box), -/* harmony export */ _Box: () => (/* binding */ _Box) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style-system-props/extract-system-styles/extract-system-styles.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js"); -/* harmony import */ var _use_sx_use_sx_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./use-sx/use-sx.js */ "./node_modules/@mantine/core/esm/Box/use-sx/use-sx.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const _Box = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { className, component, style, sx } = _b, others = __objRest(_b, ["className", "component", "style", "sx"]); - const { systemStyles, rest } = (0,_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_1__.extractSystemStyles)(others); - const Element = component || "div"; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Element, __spreadValues({ - ref, - className: (0,_use_sx_use_sx_js__WEBPACK_IMPORTED_MODULE_2__.useSx)(sx, systemStyles, className), - style - }, rest)); -}); -_Box.displayName = "@mantine/core/Box"; -const Box = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_3__.createPolymorphicComponent)(_Box); - - -//# sourceMappingURL=Box.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js": -/*!**************************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js ***! - \**************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ extractSystemStyles: () => (/* binding */ extractSystemStyles) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/filter-props/filter-props.js"); - - -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function extractSystemStyles(others) { - const _a = others, { - m, - mx, - my, - mt, - mb, - ml, - mr, - p, - px, - py, - pt, - pb, - pl, - pr, - bg, - c, - opacity, - ff, - fz, - fw, - lts, - ta, - lh, - fs, - tt, - td, - w, - miw, - maw, - h, - mih, - mah, - bgsz, - bgp, - bgr, - bga, - pos, - top, - left, - bottom, - right, - inset, - display - } = _a, rest = __objRest(_a, [ - "m", - "mx", - "my", - "mt", - "mb", - "ml", - "mr", - "p", - "px", - "py", - "pt", - "pb", - "pl", - "pr", - "bg", - "c", - "opacity", - "ff", - "fz", - "fw", - "lts", - "ta", - "lh", - "fs", - "tt", - "td", - "w", - "miw", - "maw", - "h", - "mih", - "mah", - "bgsz", - "bgp", - "bgr", - "bga", - "pos", - "top", - "left", - "bottom", - "right", - "inset", - "display" - ]); - const systemStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.filterProps)({ - m, - mx, - my, - mt, - mb, - ml, - mr, - p, - px, - py, - pt, - pb, - pl, - pr, - bg, - c, - opacity, - ff, - fz, - fw, - lts, - ta, - lh, - fs, - tt, - td, - w, - miw, - maw, - h, - mih, - mah, - bgsz, - bgp, - bgr, - bga, - pos, - top, - left, - bottom, - right, - inset, - display - }); - return { systemStyles, rest }; -} - - -//# sourceMappingURL=extract-system-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/style-system-props/get-responsive-value/get-responsive-value.js": -/*!************************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/style-system-props/get-responsive-value/get-responsive-value.js ***! - \************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getResponsiveValue: () => (/* binding */ getResponsiveValue) -/* harmony export */ }); -function getSortedKeys(value, theme) { - const sorted = Object.keys(value).filter((breakpoint) => breakpoint !== "base").sort((a, b) => theme.fn.size({ size: a, sizes: theme.breakpoints }) - theme.fn.size({ size: b, sizes: theme.breakpoints })); - return "base" in value ? ["base", ...sorted] : sorted; -} -function getResponsiveValue({ value, theme, getValue, property }) { - if (value == null) { - return void 0; - } - if (typeof value === "object") { - const result = getSortedKeys(value, theme).reduce((acc, breakpointKey) => { - if (breakpointKey === "base" && value.base !== void 0) { - const baseValue = getValue(value.base, theme); - if (Array.isArray(property)) { - property.forEach((prop) => { - acc[prop] = baseValue; - }); - return acc; - } - acc[property] = baseValue; - return acc; - } - const breakpointValue = getValue(value[breakpointKey], theme); - if (Array.isArray(property)) { - acc[theme.fn.largerThan(breakpointKey)] = {}; - property.forEach((prop) => { - acc[theme.fn.largerThan(breakpointKey)][prop] = breakpointValue; - }); - return acc; - } - acc[theme.fn.largerThan(breakpointKey)] = { - [property]: breakpointValue - }; - return acc; - }, {}); - return result; - } - const cssValue = getValue(value, theme); - if (Array.isArray(property)) { - return property.reduce((acc, prop) => { - acc[prop] = cssValue; - return acc; - }, {}); - } - return { [property]: cssValue }; -} - - -//# sourceMappingURL=get-responsive-value.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/style-system-props/get-system-styles/get-system-styles.js": -/*!******************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/style-system-props/get-system-styles/get-system-styles.js ***! - \******************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getSystemStyles: () => (/* binding */ getSystemStyles) -/* harmony export */ }); -/* harmony import */ var _get_responsive_value_get_responsive_value_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../get-responsive-value/get-responsive-value.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/get-responsive-value/get-responsive-value.js"); -/* harmony import */ var _value_getters_value_getters_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../value-getters/value-getters.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/value-getters.js"); -/* harmony import */ var _system_props_system_props_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../system-props/system-props.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/system-props/system-props.js"); - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function getSystemStyles(systemStyles, theme, systemProps = _system_props_system_props_js__WEBPACK_IMPORTED_MODULE_0__.SYSTEM_PROPS) { - const styles = Object.keys(systemProps).reduce((acc, systemProp) => { - if (systemProp in systemStyles && systemStyles[systemProp] !== void 0) { - acc.push((0,_get_responsive_value_get_responsive_value_js__WEBPACK_IMPORTED_MODULE_1__.getResponsiveValue)({ - value: systemStyles[systemProp], - getValue: _value_getters_value_getters_js__WEBPACK_IMPORTED_MODULE_2__.valueGetters[systemProps[systemProp].type], - property: systemProps[systemProp].property, - theme - })); - } - return acc; - }, []); - return styles.reduce((acc, stylesPartial) => { - Object.keys(stylesPartial).forEach((property) => { - if (typeof stylesPartial[property] === "object" && stylesPartial[property] !== null) { - if (!(property in acc)) { - acc[property] = stylesPartial[property]; - } else { - acc[property] = __spreadValues(__spreadValues({}, acc[property]), stylesPartial[property]); - } - } else { - acc[property] = stylesPartial[property]; - } - }); - return acc; - }, {}); -} - - -//# sourceMappingURL=get-system-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/style-system-props/system-props/system-props.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/style-system-props/system-props/system-props.js ***! - \********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SYSTEM_PROPS: () => (/* binding */ SYSTEM_PROPS) -/* harmony export */ }); -const SYSTEM_PROPS = { - m: { type: "spacing", property: "margin" }, - mt: { type: "spacing", property: "marginTop" }, - mb: { type: "spacing", property: "marginBottom" }, - ml: { type: "spacing", property: "marginLeft" }, - mr: { type: "spacing", property: "marginRight" }, - mx: { type: "spacing", property: ["marginRight", "marginLeft"] }, - my: { type: "spacing", property: ["marginTop", "marginBottom"] }, - p: { type: "spacing", property: "padding" }, - pt: { type: "spacing", property: "paddingTop" }, - pb: { type: "spacing", property: "paddingBottom" }, - pl: { type: "spacing", property: "paddingLeft" }, - pr: { type: "spacing", property: "paddingRight" }, - px: { type: "spacing", property: ["paddingRight", "paddingLeft"] }, - py: { type: "spacing", property: ["paddingTop", "paddingBottom"] }, - bg: { type: "color", property: "background" }, - c: { type: "color", property: "color" }, - opacity: { type: "default", property: "opacity" }, - ff: { type: "default", property: "fontFamily" }, - fz: { type: "fontSize", property: "fontSize" }, - fw: { type: "default", property: "fontWeight" }, - lts: { type: "default", property: "letterSpacing" }, - ta: { type: "default", property: "textAlign" }, - lh: { type: "default", property: "lineHeight" }, - fs: { type: "default", property: "fontStyle" }, - tt: { type: "default", property: "textTransform" }, - td: { type: "default", property: "textDecoration" }, - w: { type: "spacing", property: "width" }, - miw: { type: "spacing", property: "minWidth" }, - maw: { type: "spacing", property: "maxWidth" }, - h: { type: "spacing", property: "height" }, - mih: { type: "spacing", property: "minHeight" }, - mah: { type: "spacing", property: "maxHeight" }, - bgsz: { type: "default", property: "background-size" }, - bgp: { type: "default", property: "background-position" }, - bgr: { type: "default", property: "background-repeat" }, - bga: { type: "default", property: "background-attachment" }, - pos: { type: "default", property: "position" }, - top: { type: "default", property: "top" }, - left: { type: "default", property: "left" }, - bottom: { type: "default", property: "bottom" }, - right: { type: "default", property: "right" }, - inset: { type: "default", property: "inset" }, - display: { type: "default", property: "display" } -}; - - -//# sourceMappingURL=system-props.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-color-value.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-color-value.js ***! - \************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getColorValue: () => (/* binding */ getColorValue) -/* harmony export */ }); -function getColorValue(color, theme) { - if (color === "dimmed") { - return theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6]; - } - return theme.fn.variant({ variant: "filled", color, primaryFallback: false }).background; -} - - -//# sourceMappingURL=get-color-value.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-default-value.js": -/*!**************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-default-value.js ***! - \**************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getDefaultValue: () => (/* binding */ getDefaultValue) -/* harmony export */ }); -function getDefaultValue(value) { - return value; -} - - -//# sourceMappingURL=get-default-value.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-font-size-value.js": -/*!****************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-font-size-value.js ***! - \****************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getFontSizeValue: () => (/* binding */ getFontSizeValue) -/* harmony export */ }); -function getFontSizeValue(size, theme) { - return theme.fn.size({ size, sizes: theme.fontSizes }); -} - - -//# sourceMappingURL=get-font-size-value.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-spacing-value.js": -/*!**************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-spacing-value.js ***! - \**************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getSpacingValue: () => (/* binding */ getSpacingValue) -/* harmony export */ }); -const NEGATIVE_VALUES = ["-xs", "-sm", "-md", "-lg", "-xl"]; -function getSpacingValue(size, theme) { - if (NEGATIVE_VALUES.includes(size)) { - return theme.fn.size({ size: size.replace("-", ""), sizes: theme.spacing }) * -1; - } - return theme.fn.size({ size, sizes: theme.spacing }); -} - - -//# sourceMappingURL=get-spacing-value.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/value-getters.js": -/*!**********************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/value-getters.js ***! - \**********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ valueGetters: () => (/* binding */ valueGetters) -/* harmony export */ }); -/* harmony import */ var _get_color_value_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-color-value.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-color-value.js"); -/* harmony import */ var _get_default_value_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./get-default-value.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-default-value.js"); -/* harmony import */ var _get_font_size_value_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-font-size-value.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-font-size-value.js"); -/* harmony import */ var _get_spacing_value_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get-spacing-value.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/value-getters/get-spacing-value.js"); - - - - - -const valueGetters = { - color: _get_color_value_js__WEBPACK_IMPORTED_MODULE_0__.getColorValue, - default: _get_default_value_js__WEBPACK_IMPORTED_MODULE_1__.getDefaultValue, - fontSize: _get_font_size_value_js__WEBPACK_IMPORTED_MODULE_2__.getFontSizeValue, - spacing: _get_spacing_value_js__WEBPACK_IMPORTED_MODULE_3__.getSpacingValue -}; - - -//# sourceMappingURL=value-getters.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Box/use-sx/use-sx.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Box/use-sx/use-sx.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useSx: () => (/* binding */ useSx) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/use-css.js"); -/* harmony import */ var _style_system_props_get_system_styles_get_system_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../style-system-props/get-system-styles/get-system-styles.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/get-system-styles/get-system-styles.js"); - - - -function extractSx(sx, theme) { - return typeof sx === "function" ? sx(theme) : sx; -} -function useSx(sx, systemProps, className) { - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.useMantineTheme)(); - const { css, cx } = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useCss)(); - if (Array.isArray(sx)) { - return cx(className, css((0,_style_system_props_get_system_styles_get_system_styles_js__WEBPACK_IMPORTED_MODULE_2__.getSystemStyles)(systemProps, theme)), sx.map((partial) => css(extractSx(partial, theme)))); - } - return cx(className, css(extractSx(sx, theme)), css((0,_style_system_props_get_system_styles_get_system_styles_js__WEBPACK_IMPORTED_MODULE_2__.getSystemStyles)(systemProps, theme))); -} - - -//# sourceMappingURL=use-sx.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Breadcrumbs/Breadcrumbs.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Breadcrumbs/Breadcrumbs.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Breadcrumbs: () => (/* binding */ Breadcrumbs) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/is-element/is-element.js"); -/* harmony import */ var _Breadcrumbs_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Breadcrumbs.styles.js */ "./node_modules/@mantine/core/esm/Breadcrumbs/Breadcrumbs.styles.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - separator: "/" -}; -const Breadcrumbs = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Breadcrumbs", defaultProps, props), { className, children, separator, classNames, styles, unstyled } = _a, others = __objRest(_a, ["className", "children", "separator", "classNames", "styles", "unstyled"]); - const { classes, cx } = (0,_Breadcrumbs_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])(null, { classNames, styles, unstyled, name: "Breadcrumbs" }); - const items = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(children).reduce((acc, child, index, array) => { - var _a2; - const item = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_3__.isElement)(child) ? react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, { - className: cx(classes.breadcrumb, (_a2 = child.props) == null ? void 0 : _a2.className), - key: index - }) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.breadcrumb, - key: index - }, child); - acc.push(item); - if (index !== array.length - 1) { - acc.push(/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_4__.Text, { - size: "sm", - className: classes.separator, - key: `separator-${index}` - }, separator)); - } - return acc; - }, []); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_5__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others), items); -}); -Breadcrumbs.displayName = "@mantine/core/Breadcrumbs"; - - -//# sourceMappingURL=Breadcrumbs.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Breadcrumbs/Breadcrumbs.styles.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Breadcrumbs/Breadcrumbs.styles.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme) => ({ - root: { - display: "flex", - alignItems: "center" - }, - breadcrumb: { - lineHeight: 1, - whiteSpace: "nowrap", - WebkitTapHighlightColor: "transparent" - }, - separator: { - marginLeft: theme.spacing.xs, - marginRight: theme.spacing.xs, - color: theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[7], - lineHeight: 1, - display: "flex", - alignItems: "center", - justifyContent: "center" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Breadcrumbs.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Burger/Burger.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Burger/Burger.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Burger: () => (/* binding */ Burger) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Burger_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Burger.styles.js */ "./node_modules/@mantine/core/esm/Burger/Burger.styles.js"); -/* harmony import */ var _UnstyledButton_UnstyledButton_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../UnstyledButton/UnstyledButton.js */ "./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - size: "md", - transitionDuration: 300 -}; -const Burger = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Burger", defaultProps, props), { className, opened, color, size, classNames, styles, transitionDuration } = _a, others = __objRest(_a, ["className", "opened", "color", "size", "classNames", "styles", "transitionDuration"]); - const { classes, cx } = (0,_Burger_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ color, size, transitionDuration }, { classNames, styles, name: "Burger" }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_UnstyledButton_UnstyledButton_js__WEBPACK_IMPORTED_MODULE_3__.UnstyledButton, __spreadValues({ - className: cx(classes.root, className), - ref - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - "data-opened": opened || void 0, - className: classes.burger - })); -}); -Burger.displayName = "@mantine/core/Burger"; - - -//# sourceMappingURL=Burger.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Burger/Burger.styles.js": -/*!****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Burger/Burger.styles.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -const sizes = { - xs: 12, - sm: 18, - md: 24, - lg: 34, - xl: 42 -}; -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size, color, transitionDuration }) => { - const sizeValue = theme.fn.size({ size, sizes }); - const _color = color || (theme.colorScheme === "dark" ? theme.white : theme.black); - return { - root: { - borderRadius: theme.radius.sm, - width: `calc(${sizeValue}px + ${theme.spacing.xs}px)`, - height: `calc(${sizeValue}px + ${theme.spacing.xs}px)`, - padding: `calc(${theme.spacing.xs}px / 2)`, - cursor: "pointer" - }, - burger: { - position: "relative", - userSelect: "none", - boxSizing: "border-box", - "&, &::before, &::after": { - display: "block", - width: sizeValue, - height: Math.ceil(sizeValue / 12), - backgroundColor: _color, - outline: "1px solid transparent", - transitionProperty: "background-color, transform", - transitionDuration: `${transitionDuration}ms`, - "@media (prefers-reduced-motion)": { - transitionDuration: theme.respectReducedMotion ? "0ms" : void 0 - } - }, - "&::before, &::after": { - position: "absolute", - content: '""', - left: 0 - }, - "&::before": { - top: sizeValue / 3 * -1 - }, - "&::after": { - top: sizeValue / 3 - }, - "&[data-opened]": { - backgroundColor: "transparent", - "&::before": { - transform: `translateY(${sizeValue / 3}px) rotate(45deg)` - }, - "&::after": { - transform: `translateY(-${sizeValue / 3}px) rotate(-45deg)` - } - } - } - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Burger.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Button/Button.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Button/Button.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Button: () => (/* binding */ Button), -/* harmony export */ _Button: () => (/* binding */ _Button) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _ButtonGroup_ButtonGroup_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ButtonGroup/ButtonGroup.js */ "./node_modules/@mantine/core/esm/Button/ButtonGroup/ButtonGroup.js"); -/* harmony import */ var _Button_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Button.styles.js */ "./node_modules/@mantine/core/esm/Button/Button.styles.js"); -/* harmony import */ var _Loader_Loader_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Loader/Loader.js */ "./node_modules/@mantine/core/esm/Loader/Loader.js"); -/* harmony import */ var _UnstyledButton_UnstyledButton_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../UnstyledButton/UnstyledButton.js */ "./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.js"); - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - size: "sm", - type: "button", - variant: "filled", - loaderPosition: "left" -}; -const _Button = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Button", defaultProps, props), { - className, - size, - color, - type, - disabled, - children, - leftIcon, - rightIcon, - fullWidth, - variant, - radius, - uppercase, - compact, - loading, - loaderPosition, - loaderProps, - gradient, - classNames, - styles, - unstyled - } = _a, others = __objRest(_a, [ - "className", - "size", - "color", - "type", - "disabled", - "children", - "leftIcon", - "rightIcon", - "fullWidth", - "variant", - "radius", - "uppercase", - "compact", - "loading", - "loaderPosition", - "loaderProps", - "gradient", - "classNames", - "styles", - "unstyled" - ]); - const { classes, cx, theme } = (0,_Button_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ - radius, - color, - size, - fullWidth, - compact, - gradient, - variant, - withLeftIcon: !!leftIcon, - withRightIcon: !!rightIcon - }, { name: "Button", unstyled, classNames, styles }); - const colors = theme.fn.variant({ color, variant }); - const loader = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Loader_Loader_js__WEBPACK_IMPORTED_MODULE_3__.Loader, __spreadValues({ - color: colors.color, - size: theme.fn.size({ size, sizes: _Button_styles_js__WEBPACK_IMPORTED_MODULE_2__.sizes }).height / 2 - }, loaderProps)); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_UnstyledButton_UnstyledButton_js__WEBPACK_IMPORTED_MODULE_4__.UnstyledButton, __spreadValues({ - className: cx(classes.root, className), - type, - disabled, - "data-button": true, - "data-disabled": disabled || void 0, - "data-loading": loading || void 0, - ref, - unstyled - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.inner - }, (leftIcon || loading && loaderPosition === "left") && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: cx(classes.icon, classes.leftIcon) - }, loading && loaderPosition === "left" ? loader : leftIcon), loading && loaderPosition === "center" && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: classes.centerLoader - }, loader), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: classes.label, - style: { textTransform: uppercase ? "uppercase" : void 0 } - }, children), (rightIcon || loading && loaderPosition === "right") && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: cx(classes.icon, classes.rightIcon) - }, loading && loaderPosition === "right" ? loader : rightIcon))); -}); -_Button.displayName = "@mantine/core/Button"; -_Button.Group = _ButtonGroup_ButtonGroup_js__WEBPACK_IMPORTED_MODULE_5__.ButtonGroup; -const Button = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_6__.createPolymorphicComponent)(_Button); - - -//# sourceMappingURL=Button.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Button/Button.styles.js": -/*!****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Button/Button.styles.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ sizes: () => (/* binding */ sizes) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); -/* harmony import */ var _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Input/Input.styles.js */ "./node_modules/@mantine/core/esm/Input/Input.styles.js"); - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: { height: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_0__.sizes.xs, paddingLeft: 14, paddingRight: 14 }, - sm: { height: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_0__.sizes.sm, paddingLeft: 18, paddingRight: 18 }, - md: { height: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_0__.sizes.md, paddingLeft: 22, paddingRight: 22 }, - lg: { height: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_0__.sizes.lg, paddingLeft: 26, paddingRight: 26 }, - xl: { height: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_0__.sizes.xl, paddingLeft: 32, paddingRight: 32 }, - "compact-xs": { height: 22, paddingLeft: 7, paddingRight: 7 }, - "compact-sm": { height: 26, paddingLeft: 8, paddingRight: 8 }, - "compact-md": { height: 30, paddingLeft: 10, paddingRight: 10 }, - "compact-lg": { height: 34, paddingLeft: 12, paddingRight: 12 }, - "compact-xl": { height: 40, paddingLeft: 14, paddingRight: 14 } -}; -function getSizeStyles({ compact, size, withLeftIcon, withRightIcon }) { - if (compact) { - return sizes[`compact-${size}`]; - } - const _sizes = sizes[size]; - return __spreadProps(__spreadValues({}, _sizes), { - paddingLeft: withLeftIcon ? _sizes.paddingLeft / 1.5 : _sizes.paddingLeft, - paddingRight: withRightIcon ? _sizes.paddingRight / 1.5 : _sizes.paddingRight - }); -} -const getWidthStyles = (fullWidth) => ({ - display: fullWidth ? "block" : "inline-block", - width: fullWidth ? "100%" : "auto" -}); -function getVariantStyles({ variant, theme, color, gradient }) { - const colors = theme.fn.variant({ color, variant, gradient }); - if (variant === "gradient") { - return { - border: 0, - backgroundImage: colors.background, - color: colors.color, - "&:hover": theme.fn.hover({ - backgroundSize: "200%" - }) - }; - } - return __spreadValues({ - border: `1px solid ${colors.border}`, - backgroundColor: colors.background, - color: colors.color - }, theme.fn.hover({ - backgroundColor: colors.hover - })); -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.createStyles)((theme, { - color, - size, - radius, - fullWidth, - compact, - gradient, - variant, - withLeftIcon, - withRightIcon -}) => ({ - root: __spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, getSizeStyles({ compact, size, withLeftIcon, withRightIcon })), theme.fn.fontStyles()), theme.fn.focusStyles()), getWidthStyles(fullWidth)), { - borderRadius: theme.fn.radius(radius), - fontWeight: 600, - position: "relative", - lineHeight: 1, - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - userSelect: "none", - cursor: "pointer" - }), getVariantStyles({ variant, theme, color, gradient })), { - "&:active": theme.activeStyles, - "&:disabled, &[data-disabled]": { - borderColor: "transparent", - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[2], - color: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[5], - cursor: "not-allowed", - backgroundImage: "none", - pointerEvents: "none", - "&:active": { - transform: "none" - } - }, - "&[data-loading]": { - pointerEvents: "none", - "&::before": { - content: '""', - position: "absolute", - top: -1, - left: -1, - right: -1, - bottom: -1, - backgroundColor: theme.colorScheme === "dark" ? theme.fn.rgba(theme.colors.dark[7], 0.5) : "rgba(255, 255, 255, .5)", - borderRadius: theme.fn.radius(radius), - cursor: "not-allowed" - } - } - }), - icon: { - display: "flex", - alignItems: "center" - }, - leftIcon: { - marginRight: 10 - }, - rightIcon: { - marginLeft: 10 - }, - centerLoader: { - position: "absolute", - left: "50%", - transform: "translateX(-50%)", - opacity: 0.5 - }, - inner: { - display: "flex", - alignItems: "center", - justifyContent: "center", - height: "100%", - overflow: "visible" - }, - label: { - whiteSpace: "nowrap", - height: "100%", - overflow: "hidden", - display: "flex", - alignItems: "center" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); - -//# sourceMappingURL=Button.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Button/ButtonGroup/ButtonGroup.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Button/ButtonGroup/ButtonGroup.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ButtonGroup: () => (/* binding */ ButtonGroup) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _ButtonGroup_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ButtonGroup.styles.js */ "./node_modules/@mantine/core/esm/Button/ButtonGroup/ButtonGroup.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - orientation: "horizontal", - buttonBorderWidth: 1 -}; -const ButtonGroup = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("ButtonGroup", defaultProps, props), { className, orientation, buttonBorderWidth, unstyled } = _a, others = __objRest(_a, ["className", "orientation", "buttonBorderWidth", "unstyled"]); - const { classes, cx } = (0,_ButtonGroup_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ orientation, buttonBorderWidth }, { name: "ButtonGroup", unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others)); -}); -ButtonGroup.displayName = "@mantine/core/ButtonGroup"; - - -//# sourceMappingURL=ButtonGroup.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Button/ButtonGroup/ButtonGroup.styles.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Button/ButtonGroup/ButtonGroup.styles.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((_theme, { orientation, buttonBorderWidth }) => ({ - root: { - display: "flex", - flexDirection: orientation === "vertical" ? "column" : "row", - "& [data-button]": { - "&:first-of-type": { - borderBottomRightRadius: 0, - [orientation === "vertical" ? "borderBottomLeftRadius" : "borderTopRightRadius"]: 0, - [orientation === "vertical" ? "borderBottomWidth" : "borderRightWidth"]: buttonBorderWidth / 2 - }, - "&:last-of-type": { - borderTopLeftRadius: 0, - [orientation === "vertical" ? "borderTopRightRadius" : "borderBottomLeftRadius"]: 0, - [orientation === "vertical" ? "borderTopWidth" : "borderLeftWidth"]: buttonBorderWidth / 2 - }, - "&:not(:first-of-type):not(:last-of-type)": { - borderRadius: 0, - [orientation === "vertical" ? "borderTopWidth" : "borderLeftWidth"]: buttonBorderWidth / 2, - [orientation === "vertical" ? "borderBottomWidth" : "borderRightWidth"]: buttonBorderWidth / 2 - }, - "& + [data-button]": { - [orientation === "vertical" ? "marginTop" : "marginLeft"]: -buttonBorderWidth, - "@media (min-resolution: 192dpi)": { - [orientation === "vertical" ? "marginTop" : "marginLeft"]: 0 - } - } - } - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=ButtonGroup.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Card/Card.context.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Card/Card.context.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CardProvider: () => (/* binding */ CardProvider), -/* harmony export */ useCardPadding: () => (/* binding */ useCardPadding) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const CardContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({ padding: 0 }); -const CardProvider = CardContext.Provider; -const useCardPadding = () => (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(CardContext).padding; - - -//# sourceMappingURL=Card.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Card/Card.js": -/*!*****************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Card/Card.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Card: () => (/* binding */ Card), -/* harmony export */ _Card: () => (/* binding */ _Card) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _Paper_Paper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Paper/Paper.js */ "./node_modules/@mantine/core/esm/Paper/Paper.js"); -/* harmony import */ var _CardSection_CardSection_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CardSection/CardSection.js */ "./node_modules/@mantine/core/esm/Card/CardSection/CardSection.js"); -/* harmony import */ var _Card_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Card.styles.js */ "./node_modules/@mantine/core/esm/Card/Card.styles.js"); -/* harmony import */ var _Card_context_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Card.context.js */ "./node_modules/@mantine/core/esm/Card/Card.context.js"); - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - p: "md" -}; -const _Card = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Card", defaultProps, props), { className, p, radius, children, unstyled } = _a, others = __objRest(_a, ["className", "p", "radius", "children", "unstyled"]); - const { classes, cx } = (0,_Card_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])(null, { name: "Card", unstyled }); - const _children = react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children); - const content = _children.map((child, index) => { - if (typeof child === "object" && child && "type" in child && child.type === _CardSection_CardSection_js__WEBPACK_IMPORTED_MODULE_3__.CardSection) { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, { - padding: p, - "data-first": index === 0 || void 0, - "data-last": index === _children.length - 1 || void 0 - }); - } - return child; - }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Card_context_js__WEBPACK_IMPORTED_MODULE_4__.CardProvider, { - value: { padding: p } - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Paper_Paper_js__WEBPACK_IMPORTED_MODULE_5__.Paper, __spreadValues({ - className: cx(classes.root, className), - radius, - p, - ref - }, others), content)); -}); -_Card.Section = _CardSection_CardSection_js__WEBPACK_IMPORTED_MODULE_3__.CardSection; -_Card.displayName = "@mantine/core/Card"; -const Card = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_6__.createPolymorphicComponent)(_Card); - - -//# sourceMappingURL=Card.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Card/Card.styles.js": -/*!************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Card/Card.styles.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme) => ({ - root: { - position: "relative", - overflow: "hidden", - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.white - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Card.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Card/CardSection/CardSection.js": -/*!************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Card/CardSection/CardSection.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CardSection: () => (/* binding */ CardSection), -/* harmony export */ _CardSection: () => (/* binding */ _CardSection) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _Card_context_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Card.context.js */ "./node_modules/@mantine/core/esm/Card/Card.context.js"); -/* harmony import */ var _CardSection_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CardSection.styles.js */ "./node_modules/@mantine/core/esm/Card/CardSection/CardSection.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - withBorder: false, - inheritPadding: false -}; -const _CardSection = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("CardSection", defaultProps, props), { className, withBorder, inheritPadding, unstyled } = _a, others = __objRest(_a, ["className", "withBorder", "inheritPadding", "unstyled"]); - const { classes, cx } = (0,_CardSection_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ padding: (0,_Card_context_js__WEBPACK_IMPORTED_MODULE_3__.useCardPadding)(), withBorder, inheritPadding }, { name: "Card", unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.cardSection, className), - ref - }, others)); -}); -_CardSection.displayName = "@mantine/core/CardSection"; -const CardSection = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.createPolymorphicComponent)(_CardSection); - - -//# sourceMappingURL=CardSection.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Card/CardSection/CardSection.styles.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Card/CardSection/CardSection.styles.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { padding, withBorder, inheritPadding }) => { - const spacing = theme.fn.size({ size: padding, sizes: theme.spacing }); - const offset = -1 * spacing; - const borderColor = theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[3]; - return { - cardSection: { - display: "block", - marginLeft: offset, - marginRight: offset, - paddingLeft: inheritPadding ? spacing : void 0, - paddingRight: inheritPadding ? spacing : void 0, - borderTop: withBorder && `1px solid ${borderColor}`, - borderBottom: withBorder && `1px solid ${borderColor}`, - "& + &": { - borderTop: 0 - }, - "&[data-first]": { - marginTop: offset, - borderTop: 0, - borderBottom: withBorder && `1px solid ${borderColor}` - }, - "&[data-last]": { - marginBottom: offset, - borderBottom: 0 - } - } - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=CardSection.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Center/Center.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Center/Center.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Center: () => (/* binding */ Center), -/* harmony export */ _Center: () => (/* binding */ _Center) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/pack-sx/pack-sx.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const _Center = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Center", {}, props), { inline, sx } = _a, others = __objRest(_a, ["inline", "sx"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_2__.Box, __spreadValues({ - ref, - sx: [ - { - display: inline ? "inline-flex" : "flex", - alignItems: "center", - justifyContent: "center" - }, - ...(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_3__.packSx)(sx) - ] - }, others)); -}); -_Center.displayName = "@mantine/core/Center"; -const Center = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createPolymorphicComponent)(_Center); - - -//# sourceMappingURL=Center.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Checkbox/Checkbox.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Checkbox/Checkbox.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Checkbox: () => (/* binding */ Checkbox) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _CheckboxGroup_context_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CheckboxGroup.context.js */ "./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup.context.js"); -/* harmony import */ var _CheckboxGroup_CheckboxGroup_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CheckboxGroup/CheckboxGroup.js */ "./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup/CheckboxGroup.js"); -/* harmony import */ var _CheckboxIcon_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CheckboxIcon.js */ "./node_modules/@mantine/core/esm/Checkbox/CheckboxIcon.js"); -/* harmony import */ var _Checkbox_styles_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Checkbox.styles.js */ "./node_modules/@mantine/core/esm/Checkbox/Checkbox.styles.js"); -/* harmony import */ var _Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Box/style-system-props/extract-system-styles/extract-system-styles.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js"); -/* harmony import */ var _InlineInput_InlineInput_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../InlineInput/InlineInput.js */ "./node_modules/@mantine/core/esm/InlineInput/InlineInput.js"); - - - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - size: "sm", - transitionDuration: 100, - icon: _CheckboxIcon_js__WEBPACK_IMPORTED_MODULE_1__.CheckboxIcon, - labelPosition: "right" -}; -const Checkbox = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("Checkbox", defaultProps, props), { - className, - style, - sx, - checked, - disabled, - color, - label, - indeterminate, - id, - size, - radius, - wrapperProps, - children, - classNames, - styles, - transitionDuration, - icon: Icon, - unstyled, - labelPosition, - description, - error - } = _a, others = __objRest(_a, [ - "className", - "style", - "sx", - "checked", - "disabled", - "color", - "label", - "indeterminate", - "id", - "size", - "radius", - "wrapperProps", - "children", - "classNames", - "styles", - "transitionDuration", - "icon", - "unstyled", - "labelPosition", - "description", - "error" - ]); - const ctx = (0,_CheckboxGroup_context_js__WEBPACK_IMPORTED_MODULE_3__.useCheckboxGroupContext)(); - const uuid = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.useId)(id); - const { systemStyles, rest } = (0,_Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_5__.extractSystemStyles)(others); - const { classes } = (0,_Checkbox_styles_js__WEBPACK_IMPORTED_MODULE_6__["default"])({ - size: (ctx == null ? void 0 : ctx.size) || size, - radius, - color, - transitionDuration, - labelPosition, - error: !!error, - indeterminate - }, { name: "Checkbox", classNames, styles, unstyled }); - const contextProps = ctx ? { - checked: ctx.value.includes(rest.value), - onChange: ctx.onChange - } : {}; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InlineInput_InlineInput_js__WEBPACK_IMPORTED_MODULE_7__.InlineInput, __spreadValues(__spreadValues({ - className, - sx, - style, - id: uuid, - size: (ctx == null ? void 0 : ctx.size) || size, - labelPosition, - label, - description, - error, - disabled, - __staticSelector: "Checkbox", - classNames, - styles, - unstyled, - "data-checked": contextProps.checked || void 0 - }, systemStyles), wrapperProps), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.inner - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", __spreadValues(__spreadValues({ - id: uuid, - ref, - type: "checkbox", - className: classes.input, - checked, - disabled - }, rest), contextProps)), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Icon, { - indeterminate, - className: classes.icon - }))); -}); -Checkbox.displayName = "@mantine/core/Checkbox"; -Checkbox.Group = _CheckboxGroup_CheckboxGroup_js__WEBPACK_IMPORTED_MODULE_8__.CheckboxGroup; - - -//# sourceMappingURL=Checkbox.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Checkbox/Checkbox.styles.js": -/*!********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Checkbox/Checkbox.styles.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 16, - sm: 20, - md: 24, - lg: 30, - xl: 36 -}; -const iconSizes = { - xs: 8, - sm: 10, - md: 14, - lg: 16, - xl: 20 -}; -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { - size, - radius, - color, - transitionDuration, - labelPosition, - error, - indeterminate -}, getRef) => { - const _size = theme.fn.size({ size, sizes }); - const colors = theme.fn.variant({ variant: "filled", color }); - const errorColor = theme.fn.variant({ variant: "filled", color: "red" }).background; - return { - icon: { - ref: getRef("icon"), - color: indeterminate ? "inherit" : theme.white, - transform: indeterminate ? "none" : "translateY(5px) scale(0.5)", - opacity: indeterminate ? 1 : 0, - transitionProperty: "opacity, transform", - transitionTimingFunction: "ease", - transitionDuration: `${transitionDuration}ms`, - pointerEvents: "none", - width: theme.fn.size({ size, sizes: iconSizes }), - position: "absolute", - zIndex: 1, - top: 0, - bottom: 0, - left: 0, - right: 0, - margin: "auto", - "@media (prefers-reduced-motion)": { - transitionDuration: theme.respectReducedMotion ? "0ms" : void 0 - } - }, - inner: { - position: "relative", - width: _size, - height: _size, - order: labelPosition === "left" ? 2 : 1 - }, - input: __spreadProps(__spreadValues({}, theme.fn.focusStyles()), { - appearance: "none", - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.white, - border: `1px solid ${error ? errorColor : theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[4]}`, - width: _size, - height: _size, - borderRadius: theme.fn.radius(radius), - padding: 0, - display: "block", - margin: 0, - transition: `border-color ${transitionDuration}ms ease, background-color ${transitionDuration}ms ease`, - cursor: theme.cursorType, - "&:checked": { - backgroundColor: colors.background, - borderColor: colors.background, - [`& + .${getRef("icon")}`]: { - opacity: 1, - color: theme.white, - transform: "translateY(0) scale(1)" - } - }, - "&:disabled": { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[2], - borderColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[3], - cursor: "not-allowed", - [`& + .${getRef("icon")}`]: { - color: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[5] - } - } - }) - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Checkbox.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup.context.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup.context.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CheckboxGroupProvider: () => (/* binding */ CheckboxGroupProvider), -/* harmony export */ useCheckboxGroupContext: () => (/* binding */ useCheckboxGroupContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const CheckboxGroupContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null); -const CheckboxGroupProvider = CheckboxGroupContext.Provider; -const useCheckboxGroupContext = () => (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(CheckboxGroupContext); - - -//# sourceMappingURL=CheckboxGroup.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup/CheckboxGroup.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup/CheckboxGroup.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CheckboxGroup: () => (/* binding */ CheckboxGroup) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _InputsGroup_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./InputsGroup.js */ "./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup/InputsGroup.js"); -/* harmony import */ var _CheckboxGroup_context_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../CheckboxGroup.context.js */ "./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup.context.js"); -/* harmony import */ var _Input_Input_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Input/Input.js */ "./node_modules/@mantine/core/esm/Input/Input.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - orientation: "horizontal", - spacing: "lg", - size: "sm", - offset: "xs" -}; -const CheckboxGroup = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("CheckboxGroup", defaultProps, props), { - children, - value, - defaultValue, - onChange, - orientation, - spacing, - size, - wrapperProps, - offset - } = _a, others = __objRest(_a, [ - "children", - "value", - "defaultValue", - "onChange", - "orientation", - "spacing", - "size", - "wrapperProps", - "offset" - ]); - const [_value, setValue] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useUncontrolled)({ - value, - defaultValue, - finalValue: [], - onChange - }); - const handleChange = (event) => { - const itemValue = event.currentTarget.value; - setValue(_value.includes(itemValue) ? _value.filter((item) => item !== itemValue) : [..._value, itemValue]); - }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CheckboxGroup_context_js__WEBPACK_IMPORTED_MODULE_3__.CheckboxGroupProvider, { - value: { value: _value, onChange: handleChange, size } - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_4__.Input.Wrapper, __spreadValues(__spreadValues({ - labelElement: "div", - size, - __staticSelector: "CheckboxGroup", - ref - }, wrapperProps), others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputsGroup_js__WEBPACK_IMPORTED_MODULE_5__.InputsGroup, { - spacing, - orientation, - offset - }, children))); -}); -CheckboxGroup.displayName = "@mantine/core/CheckboxGroup"; - - -//# sourceMappingURL=CheckboxGroup.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup/InputsGroup.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Checkbox/CheckboxGroup/InputsGroup.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ InputsGroup: () => (/* binding */ InputsGroup) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _Group_Group_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Group/Group.js */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _Stack_Stack_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Stack/Stack.js */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); - - - - -function InputsGroup({ - spacing, - offset, - orientation, - children, - role, - unstyled -}) { - if (orientation === "horizontal") { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Group_Group_js__WEBPACK_IMPORTED_MODULE_1__.Group, { - pt: offset, - spacing, - role, - unstyled - }, children); - } - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Stack_Stack_js__WEBPACK_IMPORTED_MODULE_2__.Stack, { - pt: offset, - spacing, - role, - unstyled - }, children); -} - - -//# sourceMappingURL=InputsGroup.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Checkbox/CheckboxIcon.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Checkbox/CheckboxIcon.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CheckIcon: () => (/* binding */ CheckIcon), -/* harmony export */ CheckboxIcon: () => (/* binding */ CheckboxIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function CheckIcon(props) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - viewBox: "0 0 10 7", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z", - fill: "currentColor", - fillRule: "evenodd", - clipRule: "evenodd" - })); -} -function CheckboxIcon(_a) { - var _b = _a, { indeterminate } = _b, others = __objRest(_b, ["indeterminate"]); - if (indeterminate) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - xmlns: "http://www.w3.org/2000/svg", - fill: "none", - viewBox: "0 0 32 6" - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", { - width: "32", - height: "6", - fill: "currentColor", - rx: "3" - })); - } - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(CheckIcon, __spreadValues({}, others)); -} - - -//# sourceMappingURL=CheckboxIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/CloseButton/CloseButton.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/CloseButton/CloseButton.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CloseButton: () => (/* binding */ CloseButton), -/* harmony export */ _CloseButton: () => (/* binding */ _CloseButton) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _ActionIcon_ActionIcon_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../ActionIcon/ActionIcon.js */ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js"); -/* harmony import */ var _CloseIcon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CloseIcon.js */ "./node_modules/@mantine/core/esm/CloseButton/CloseIcon.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const iconSizes = { - xs: 12, - sm: 14, - md: 16, - lg: 20, - xl: 24 -}; -const defaultProps = { - size: "md" -}; -const _CloseButton = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("CloseButton", defaultProps, props), { - iconSize, - size = "md" - } = _a, others = __objRest(_a, [ - "iconSize", - "size" - ]); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useMantineTheme)(); - const _iconSize = iconSize || theme.fn.size({ size, sizes: iconSizes }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ActionIcon_ActionIcon_js__WEBPACK_IMPORTED_MODULE_2__.ActionIcon, __spreadValues({ - size, - ref - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CloseIcon_js__WEBPACK_IMPORTED_MODULE_3__.CloseIcon, { - width: _iconSize, - height: _iconSize - })); -}); -_CloseButton.displayName = "@mantine/core/CloseButton"; -const CloseButton = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createPolymorphicComponent)(_CloseButton); - - -//# sourceMappingURL=CloseButton.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/CloseButton/CloseIcon.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/CloseButton/CloseIcon.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CloseIcon: () => (/* binding */ CloseIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function CloseIcon(props) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - viewBox: "0 0 15 15", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z", - fill: "currentColor", - fillRule: "evenodd", - clipRule: "evenodd" - })); -} -CloseIcon.displayName = "@mantine/core/CloseIcon"; - - -//# sourceMappingURL=CloseIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Collapse/Collapse.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Collapse/Collapse.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Collapse: () => (/* binding */ Collapse) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-reduced-motion/use-reduced-motion.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _use_collapse_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./use-collapse.js */ "./node_modules/@mantine/core/esm/Collapse/use-collapse.js"); -/* harmony import */ var _Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/style-system-props/extract-system-styles/extract-system-styles.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - transitionDuration: 200, - transitionTimingFunction: "ease", - animateOpacity: true -}; -const Collapse = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Collapse", defaultProps, props), { - children, - in: opened, - transitionDuration, - transitionTimingFunction, - style, - onTransitionEnd, - animateOpacity - } = _a, others = __objRest(_a, [ - "children", - "in", - "transitionDuration", - "transitionTimingFunction", - "style", - "onTransitionEnd", - "animateOpacity" - ]); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useMantineTheme)(); - const shouldReduceMotion = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useReducedMotion)(); - const reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : false; - const duration = reduceMotion ? 0 : transitionDuration; - const { systemStyles, rest } = (0,_Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_3__.extractSystemStyles)(others); - const getCollapseProps = (0,_use_collapse_js__WEBPACK_IMPORTED_MODULE_4__.useCollapse)({ - opened, - transitionDuration: duration, - transitionTimingFunction, - onTransitionEnd - }); - if (duration === 0) { - return opened ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_5__.Box, __spreadValues({}, rest), children) : null; - } - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_5__.Box, __spreadValues({}, getCollapseProps(__spreadValues(__spreadValues({ style, ref }, rest), systemStyles))), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - style: { - opacity: opened || !animateOpacity ? 1 : 0, - transition: animateOpacity ? `opacity ${duration}ms ${transitionTimingFunction}` : "none" - } - }, children)); -}); -Collapse.displayName = "@mantine/core/Collapse"; - - -//# sourceMappingURL=Collapse.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Collapse/use-collapse.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Collapse/use-collapse.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getElementHeight: () => (/* binding */ getElementHeight), -/* harmony export */ useCollapse: () => (/* binding */ useCollapse) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function getAutoHeightDuration(height) { - if (!height || typeof height === "string") { - return 0; - } - const constant = height / 36; - return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10); -} -function getElementHeight(el) { - return (el == null ? void 0 : el.current) ? el.current.scrollHeight : "auto"; -} -const raf = typeof window !== "undefined" && window.requestAnimationFrame; -function useCollapse({ - transitionDuration, - transitionTimingFunction = "ease", - onTransitionEnd = () => { - }, - opened -}) { - const el = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const collapsedHeight = "0px"; - const collapsedStyles = { - display: "none", - height: "0px", - overflow: "hidden" - }; - const [styles, setStylesRaw] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(opened ? {} : collapsedStyles); - const setStyles = (newStyles) => { - (0,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync)(() => setStylesRaw(newStyles)); - }; - const mergeStyles = (newStyles) => { - setStyles((oldStyles) => __spreadValues(__spreadValues({}, oldStyles), newStyles)); - }; - function getTransitionStyles(height) { - const _duration = transitionDuration || getAutoHeightDuration(height); - return { - transition: `height ${_duration}ms ${transitionTimingFunction}` - }; - } - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useDidUpdate)(() => { - if (opened) { - raf(() => { - mergeStyles({ willChange: "height", display: "block", overflow: "hidden" }); - raf(() => { - const height = getElementHeight(el); - mergeStyles(__spreadProps(__spreadValues({}, getTransitionStyles(height)), { height })); - }); - }); - } else { - raf(() => { - const height = getElementHeight(el); - mergeStyles(__spreadProps(__spreadValues({}, getTransitionStyles(height)), { willChange: "height", height })); - raf(() => mergeStyles({ height: collapsedHeight, overflow: "hidden" })); - }); - } - }, [opened]); - const handleTransitionEnd = (e) => { - if (e.target !== el.current || e.propertyName !== "height") { - return; - } - if (opened) { - const height = getElementHeight(el); - if (height === styles.height) { - setStyles({}); - } else { - mergeStyles({ height }); - } - onTransitionEnd(); - } else if (styles.height === collapsedHeight) { - setStyles(collapsedStyles); - onTransitionEnd(); - } - }; - function getCollapseProps(_a = {}) { - var _b = _a, { style = {}, refKey = "ref" } = _b, rest = __objRest(_b, ["style", "refKey"]); - const theirRef = rest[refKey]; - return __spreadProps(__spreadValues({ - "aria-hidden": !opened - }, rest), { - [refKey]: (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.mergeRefs)(el, theirRef), - onTransitionEnd: handleTransitionEnd, - style: __spreadValues(__spreadValues({ boxSizing: "border-box" }, style), styles) - }); - } - return getCollapseProps; -} - - -//# sourceMappingURL=use-collapse.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Divider/Divider.js": -/*!***********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Divider/Divider.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Divider: () => (/* binding */ Divider) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Divider_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Divider.styles.js */ "./node_modules/@mantine/core/esm/Divider/Divider.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - orientation: "horizontal", - size: "xs", - labelPosition: "left", - variant: "solid" -}; -const Divider = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Divider", defaultProps, props), { - className, - color, - orientation, - size, - label, - labelPosition, - labelProps, - variant, - styles, - classNames, - unstyled - } = _a, others = __objRest(_a, [ - "className", - "color", - "orientation", - "size", - "label", - "labelPosition", - "labelProps", - "variant", - "styles", - "classNames", - "unstyled" - ]); - const { classes, cx } = (0,_Divider_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ color, size, variant }, { classNames, styles, unstyled, name: "Divider" }); - const vertical = orientation === "vertical"; - const horizontal = orientation === "horizontal"; - const withLabel = !!label && horizontal; - const useLabelDefaultStyles = !(labelProps == null ? void 0 : labelProps.color); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - ref, - className: cx(classes.root, { - [classes.vertical]: vertical, - [classes.horizontal]: horizontal, - [classes.withLabel]: withLabel - }, className), - role: "separator" - }, others), withLabel && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_4__.Text, __spreadProps(__spreadValues({}, labelProps), { - size: (labelProps == null ? void 0 : labelProps.size) || "xs", - sx: { marginTop: 2 }, - className: cx(classes.label, classes[labelPosition], { - [classes.labelDefaultStyles]: useLabelDefaultStyles - }) - }), label)); -}); -Divider.displayName = "@mantine/core/Divider"; - - -//# sourceMappingURL=Divider.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Divider/Divider.styles.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Divider/Divider.styles.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -const sizes = { - xs: 1, - sm: 2, - md: 3, - lg: 4, - xl: 5 -}; -function getColor(theme, color) { - const themeColor = theme.fn.variant({ variant: "outline", color }).border; - return typeof color === "string" && (color in theme.colors || color.split(".")[0] in theme.colors) ? themeColor : color === void 0 ? theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[4] : color; -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size, variant, color }) => ({ - root: {}, - withLabel: { - borderTop: "0 !important" - }, - left: { - "&::before": { - display: "none" - } - }, - right: { - "&::after": { - display: "none" - } - }, - label: { - display: "flex", - alignItems: "center", - "&::before": { - content: '""', - flex: 1, - height: 1, - borderTop: `${theme.fn.size({ size, sizes })}px ${variant} ${getColor(theme, color)}`, - marginRight: theme.spacing.xs - }, - "&::after": { - content: '""', - flex: 1, - borderTop: `${theme.fn.size({ size, sizes })}px ${variant} ${getColor(theme, color)}`, - marginLeft: theme.spacing.xs - } - }, - labelDefaultStyles: { - color: color === "dark" ? theme.colors.dark[1] : theme.fn.themeColor(color, theme.colorScheme === "dark" ? 5 : theme.fn.primaryShade(), false) - }, - horizontal: { - border: 0, - borderTopWidth: theme.fn.size({ size, sizes }), - borderTopColor: getColor(theme, color), - borderTopStyle: variant, - margin: 0 - }, - vertical: { - border: 0, - alignSelf: "stretch", - height: "auto", - borderLeftWidth: theme.fn.size({ size, sizes }), - borderLeftColor: getColor(theme, color), - borderLeftStyle: variant - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Divider.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Drawer/Drawer.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Drawer/Drawer.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Drawer: () => (/* binding */ Drawer) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-focus-trap/use-focus-trap.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-scroll-lock/use-scroll-lock.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-focus-return/use-focus-return.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Drawer_styles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Drawer.styles.js */ "./node_modules/@mantine/core/esm/Drawer/Drawer.styles.js"); -/* harmony import */ var _Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Portal/OptionalPortal.js */ "./node_modules/@mantine/core/esm/Portal/OptionalPortal.js"); -/* harmony import */ var _Transition_GroupedTransition_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Transition/GroupedTransition.js */ "./node_modules/@mantine/core/esm/Transition/GroupedTransition.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Paper_Paper_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Paper/Paper.js */ "./node_modules/@mantine/core/esm/Paper/Paper.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../CloseButton/CloseButton.js */ "./node_modules/@mantine/core/esm/CloseButton/CloseButton.js"); -/* harmony import */ var _Overlay_Overlay_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../Overlay/Overlay.js */ "./node_modules/@mantine/core/esm/Overlay/Overlay.js"); - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const transitions = { - top: "slide-down", - bottom: "slide-up", - left: "slide-right", - right: "slide-left" -}; -const rtlTransitions = { - top: "slide-down", - bottom: "slide-up", - right: "slide-right", - left: "slide-left" -}; -const defaultProps = { - position: "left", - size: "md", - transitionDuration: 250, - transitionTimingFunction: "ease", - zIndex: (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.getDefaultZIndex)("modal"), - shadow: "md", - padding: 0, - lockScroll: true, - closeOnClickOutside: true, - closeOnEscape: true, - trapFocus: true, - withOverlay: true, - withCloseButton: true, - withinPortal: true, - withFocusReturn: true, - overlayBlur: 0 -}; -function Drawer(props) { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("Drawer", defaultProps, props), { - className, - opened, - onClose, - position, - size, - trapFocus, - lockScroll, - closeOnClickOutside, - closeOnEscape, - transition, - transitionDuration, - transitionTimingFunction, - zIndex, - overlayColor, - overlayOpacity, - children, - withOverlay, - shadow, - id, - padding, - title, - withCloseButton, - closeButtonLabel, - classNames, - styles, - target, - withinPortal, - overlayBlur, - unstyled, - withFocusReturn - } = _a, others = __objRest(_a, [ - "className", - "opened", - "onClose", - "position", - "size", - "trapFocus", - "lockScroll", - "closeOnClickOutside", - "closeOnEscape", - "transition", - "transitionDuration", - "transitionTimingFunction", - "zIndex", - "overlayColor", - "overlayOpacity", - "children", - "withOverlay", - "shadow", - "id", - "padding", - "title", - "withCloseButton", - "closeButtonLabel", - "classNames", - "styles", - "target", - "withinPortal", - "overlayBlur", - "unstyled", - "withFocusReturn" - ]); - const baseId = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useId)(id); - const titleId = `${baseId}-title`; - const bodyId = `${baseId}-body`; - const { classes, cx, theme } = (0,_Drawer_styles_js__WEBPACK_IMPORTED_MODULE_4__["default"])({ size, position, zIndex, withOverlay }, { classNames, styles, unstyled, name: "Drawer" }); - const focusTrapRef = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_5__.useFocusTrap)(trapFocus && opened); - const [, _lockScroll] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_6__.useScrollLock)(); - const drawerTransition = transition || (theme.dir === "rtl" ? rtlTransitions : transitions)[position]; - const _overlayOpacity = typeof overlayOpacity === "number" ? overlayOpacity : theme.colorScheme === "dark" ? 0.85 : 0.75; - const _closeOnEscape = (event) => { - if (event.key === "Escape" && closeOnEscape) { - onClose(); - } - }; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (!trapFocus) { - window.addEventListener("keydown", _closeOnEscape); - return () => window.removeEventListener("keydown", _closeOnEscape); - } - return void 0; - }, [trapFocus]); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useFocusReturn)({ opened, shouldReturnFocus: trapFocus && withFocusReturn }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_8__.OptionalPortal, { - withinPortal, - target - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Transition_GroupedTransition_js__WEBPACK_IMPORTED_MODULE_9__.GroupedTransition, { - onExited: () => _lockScroll(false), - onEntered: () => _lockScroll(lockScroll && true), - mounted: opened, - duration: transitionDuration, - timingFunction: transitionTimingFunction, - transitions: { - overlay: { duration: transitionDuration / 2, transition: "fade", timingFunction: "ease" }, - drawer: { - duration: transitionDuration, - transition: drawerTransition, - timingFunction: transitionTimingFunction - } - } - }, (transitionStyles) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_10__.Box, __spreadValues({ - className: cx(classes.root, className), - role: "dialog", - "aria-modal": true, - "aria-labelledby": titleId, - "aria-describedby": bodyId - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Paper_Paper_js__WEBPACK_IMPORTED_MODULE_11__.Paper, { - className: cx(classes.drawer, className), - ref: focusTrapRef, - style: transitionStyles.drawer, - radius: 0, - tabIndex: -1, - onKeyDownCapture: (event) => { - var _a2; - const shouldTrigger = ((_a2 = event.target) == null ? void 0 : _a2.getAttribute("data-mantine-stop-propagation")) !== "true"; - shouldTrigger && event.key === "Escape" && closeOnEscape && onClose(); - }, - shadow, - p: padding, - unstyled - }, (title || withCloseButton) && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.header - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_12__.Text, { - id: titleId, - className: classes.title, - unstyled - }, title), withCloseButton && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_13__.CloseButton, { - iconSize: 16, - onClick: onClose, - "aria-label": closeButtonLabel, - className: classes.closeButton, - unstyled - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - id: bodyId, - className: classes.body - }, children)), withOverlay && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - style: transitionStyles.overlay - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Overlay_Overlay_js__WEBPACK_IMPORTED_MODULE_14__.Overlay, { - unstyled, - blur: overlayBlur, - onMouseDown: () => closeOnClickOutside && onClose(), - className: classes.overlay, - opacity: _overlayOpacity, - zIndex: 0, - color: overlayColor || (theme.colorScheme === "dark" ? theme.colors.dark[9] : theme.black) - }))))); -} -Drawer.displayName = "@mantine/core/Drawer"; - - -//# sourceMappingURL=Drawer.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Drawer/Drawer.styles.js": -/*!****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Drawer/Drawer.styles.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 180, - sm: 240, - md: 320, - lg: 360, - xl: 500, - full: "100%" -}; -function getPositionStyles({ - position, - size, - theme -}) { - switch (position) { - case "top": - return { top: 0, left: 0, right: 0, height: theme.fn.size({ size, sizes }) }; - case "bottom": - return { bottom: 0, left: 0, right: 0, height: theme.fn.size({ size, sizes }) }; - case "right": - return { bottom: 0, top: 0, right: 0, width: theme.fn.size({ size, sizes }) }; - case "left": - return { bottom: 0, top: 0, left: 0, width: theme.fn.size({ size, sizes }) }; - default: - return null; - } -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { position, size, zIndex, withOverlay }) => ({ - closeButton: {}, - overlay: {}, - body: {}, - root: { - position: "fixed", - zIndex, - top: 0, - left: 0, - right: 0, - bottom: 0, - pointerEvents: withOverlay === false ? "none" : void 0 - }, - drawer: __spreadProps(__spreadValues({}, getPositionStyles({ position, size, theme })), { - maxWidth: "100%", - maxHeight: "100vh", - position: "fixed", - outline: 0, - zIndex: 1, - pointerEvents: withOverlay === false ? "auto" : void 0 - }), - title: { - marginRight: theme.spacing.md, - textOverflow: "ellipsis", - display: "block", - wordBreak: "break-word" - }, - header: { - display: "flex", - alignItems: "center", - justifyContent: "space-between", - marginBottom: theme.spacing.md - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Drawer.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/FileButton/FileButton.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/FileButton/FileButton.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ FileButton: () => (/* binding */ FileButton) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/utils/assign-ref/assign-ref.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - multiple: false -}; -const FileButton = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("FileButton", defaultProps, props), { - onChange, - children, - multiple, - accept, - name, - form, - resetRef, - disabled, - capture, - inputProps - } = _a, others = __objRest(_a, [ - "onChange", - "children", - "multiple", - "accept", - "name", - "form", - "resetRef", - "disabled", - "capture", - "inputProps" - ]); - const inputRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const onClick = () => { - !disabled && inputRef.current.click(); - }; - const handleChange = (event) => { - if (multiple) { - onChange(Array.from(event.currentTarget.files)); - } else { - onChange(event.currentTarget.files[0] || null); - } - }; - const reset = () => { - inputRef.current.value = ""; - }; - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.assignRef)(resetRef, reset); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children(__spreadValues({ onClick }, others)), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", __spreadValues({ - style: { display: "none" }, - type: "file", - accept, - multiple, - onChange: handleChange, - ref: (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useMergedRef)(ref, inputRef), - name, - form, - capture - }, inputProps))); -}); -FileButton.displayName = "@mantine/core/FileButton"; - - -//# sourceMappingURL=FileButton.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/FileInput/FileInput.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/FileInput/FileInput.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ FileInput: () => (/* binding */ FileInput), -/* harmony export */ _FileInput: () => (/* binding */ _FileInput) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _FileInput_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./FileInput.styles.js */ "./node_modules/@mantine/core/esm/FileInput/FileInput.styles.js"); -/* harmony import */ var _Input_use_input_props_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Input/use-input-props.js */ "./node_modules/@mantine/core/esm/Input/use-input-props.js"); -/* harmony import */ var _CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../CloseButton/CloseButton.js */ "./node_modules/@mantine/core/esm/CloseButton/CloseButton.js"); -/* harmony import */ var _Input_Input_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Input/Input.js */ "./node_modules/@mantine/core/esm/Input/Input.js"); -/* harmony import */ var _FileButton_FileButton_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../FileButton/FileButton.js */ "./node_modules/@mantine/core/esm/FileButton/FileButton.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const DefaultValue = ({ value }) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_1__.Text, { - sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } -}, Array.isArray(value) ? value.map((file) => file.name).join(", ") : value == null ? void 0 : value.name); -const defaultProps = { - size: "sm", - valueComponent: DefaultValue, - clearButtonTabIndex: 0 -}; -const RIGHT_SECTION_WIDTH = { - xs: 24, - sm: 30, - md: 34, - lg: 40, - xl: 44 -}; -const _FileInput = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_Input_use_input_props_js__WEBPACK_IMPORTED_MODULE_2__.useInputProps)("FileInput", defaultProps, props), { - inputProps, - wrapperProps, - placeholder, - value, - defaultValue, - onChange, - multiple, - accept, - name, - form, - classNames, - styles, - unstyled, - valueComponent: ValueComponent, - rightSection, - rightSectionWidth, - clearable, - clearButtonLabel, - clearButtonTabIndex, - readOnly, - capture, - fileInputProps - } = _a, others = __objRest(_a, [ - "inputProps", - "wrapperProps", - "placeholder", - "value", - "defaultValue", - "onChange", - "multiple", - "accept", - "name", - "form", - "classNames", - "styles", - "unstyled", - "valueComponent", - "rightSection", - "rightSectionWidth", - "clearable", - "clearButtonLabel", - "clearButtonTabIndex", - "readOnly", - "capture", - "fileInputProps" - ]); - const resetRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const { classes, theme, cx } = (0,_FileInput_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])(null, { - name: "FileInput", - classNames, - styles, - unstyled - }); - const [_value, setValue] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.useUncontrolled)({ - value, - defaultValue, - onChange, - finalValue: multiple ? [] : null - }); - const hasValue = Array.isArray(_value) ? _value.length !== 0 : _value !== null; - const _rightSection = rightSection || (clearable && hasValue && !readOnly ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_5__.CloseButton, { - variant: "transparent", - "aria-label": clearButtonLabel, - onClick: () => setValue(multiple ? [] : null), - size: inputProps.size, - tabIndex: clearButtonTabIndex, - unstyled - }) : null); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (Array.isArray(_value) && _value.length === 0 || _value === null) { - resetRef.current(); - } - }, [_value]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_6__.Input.Wrapper, __spreadProps(__spreadValues({}, wrapperProps), { - __staticSelector: "FileInput" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_FileButton_FileButton_js__WEBPACK_IMPORTED_MODULE_7__.FileButton, { - onChange: setValue, - multiple, - accept, - name, - form, - resetRef, - disabled: readOnly, - capture, - inputProps: fileInputProps - }, (fileButtonProps) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_6__.Input, __spreadProps(__spreadValues(__spreadValues(__spreadValues({ - multiline: true - }, fileButtonProps), inputProps), others), { - component: "button", - type: "button", - ref, - __staticSelector: "FileInput", - rightSection: _rightSection, - rightSectionWidth: rightSectionWidth || theme.fn.size({ size: inputProps.size, sizes: RIGHT_SECTION_WIDTH }), - classNames: __spreadProps(__spreadValues({}, classNames), { input: cx(classes.input, classNames == null ? void 0 : classNames.input) }) - }), !hasValue ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_6__.Input.Placeholder, { - className: classes.placeholder - }, placeholder) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ValueComponent, { - value: _value - })))); -}); -_FileInput.displayName = "@mantine/core/FileInput"; -const FileInput = _FileInput; - - -//# sourceMappingURL=FileInput.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/FileInput/FileInput.styles.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/FileInput/FileInput.styles.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)(() => ({ - placeholder: {}, - input: { - cursor: "pointer" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=FileInput.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Flex/Flex.js": -/*!*****************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Flex/Flex.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Flex: () => (/* binding */ Flex) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/pack-sx/pack-sx.js"); -/* harmony import */ var _flex_props_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./flex-props.js */ "./node_modules/@mantine/core/esm/Flex/flex-props.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Box_style_system_props_get_system_styles_get_system_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/style-system-props/get-system-styles/get-system-styles.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/get-system-styles/get-system-styles.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -const Flex = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Flex", defaultProps, props), { gap, rowGap, columnGap, align, justify, wrap, direction, sx } = _a, others = __objRest(_a, ["gap", "rowGap", "columnGap", "align", "justify", "wrap", "direction", "sx"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_2__.Box, __spreadProps(__spreadValues({}, others), { - sx: [ - { display: "flex" }, - (theme) => (0,_Box_style_system_props_get_system_styles_get_system_styles_js__WEBPACK_IMPORTED_MODULE_3__.getSystemStyles)({ gap, rowGap, columnGap, align, justify, wrap, direction }, theme, _flex_props_js__WEBPACK_IMPORTED_MODULE_4__.FLEX_SYSTEM_PROPS), - ...(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.packSx)(sx) - ], - ref - })); -}); -Flex.displayName = "@mantine/core/Flex"; - - -//# sourceMappingURL=Flex.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Flex/flex-props.js": -/*!***********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Flex/flex-props.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ FLEX_SYSTEM_PROPS: () => (/* binding */ FLEX_SYSTEM_PROPS) -/* harmony export */ }); -const FLEX_SYSTEM_PROPS = { - gap: { type: "spacing", property: "gap" }, - rowGap: { type: "spacing", property: "rowGap" }, - columnGap: { type: "spacing", property: "columnGap" }, - align: { type: "default", property: "alignItems" }, - justify: { type: "default", property: "justifyContent" }, - wrap: { type: "default", property: "flexWrap" }, - direction: { type: "default", property: "flexDirection" } -}; - - -//# sourceMappingURL=flex-props.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Floating/FloatingArrow/FloatingArrow.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Floating/FloatingArrow/FloatingArrow.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ FloatingArrow: () => (/* binding */ FloatingArrow) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _get_arrow_position_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-arrow-position-styles.js */ "./node_modules/@mantine/core/esm/Floating/FloatingArrow/get-arrow-position-styles.js"); - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const FloatingArrow = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { - withBorder, - position, - arrowSize, - arrowOffset, - arrowRadius, - arrowPosition, - visible, - arrowX, - arrowY - } = _b, others = __objRest(_b, [ - "withBorder", - "position", - "arrowSize", - "arrowOffset", - "arrowRadius", - "arrowPosition", - "visible", - "arrowX", - "arrowY" - ]); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useMantineTheme)(); - if (!visible) { - return null; - } - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", __spreadProps(__spreadValues({}, others), { - ref, - style: (0,_get_arrow_position_styles_js__WEBPACK_IMPORTED_MODULE_2__.getArrowPositionStyles)({ - withBorder, - position, - arrowSize, - arrowOffset, - arrowRadius, - arrowPosition, - dir: theme.dir, - arrowX, - arrowY - }) - })); -}); -FloatingArrow.displayName = "@mantine/core/FloatingArrow"; - - -//# sourceMappingURL=FloatingArrow.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Floating/FloatingArrow/get-arrow-position-styles.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Floating/FloatingArrow/get-arrow-position-styles.js ***! - \********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getArrowPositionStyles: () => (/* binding */ getArrowPositionStyles) -/* harmony export */ }); -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function horizontalSide(placement, arrowY, arrowOffset, arrowPosition) { - if (placement === "center" || arrowPosition === "center") { - return { top: arrowY }; - } - if (placement === "end") { - return { bottom: arrowOffset }; - } - if (placement === "start") { - return { top: arrowOffset }; - } - return {}; -} -function verticalSide(placement, arrowX, arrowOffset, arrowPosition, dir) { - if (placement === "center" || arrowPosition === "center") { - return { left: arrowX }; - } - if (placement === "end") { - return { [dir === "ltr" ? "right" : "left"]: arrowOffset }; - } - if (placement === "start") { - return { [dir === "ltr" ? "left" : "right"]: arrowOffset }; - } - return {}; -} -const radiusByFloatingSide = { - bottom: "borderTopLeftRadius", - left: "borderTopRightRadius", - right: "borderBottomLeftRadius", - top: "borderBottomRightRadius" -}; -function getArrowPositionStyles({ - position, - withBorder, - arrowSize, - arrowOffset, - arrowRadius, - arrowPosition, - arrowX, - arrowY, - dir -}) { - const [side, placement = "center"] = position.split("-"); - const baseStyles = { - width: arrowSize, - height: arrowSize, - transform: "rotate(45deg)", - position: "absolute", - [radiusByFloatingSide[side]]: arrowRadius - }; - const arrowPlacement = withBorder ? -arrowSize / 2 - 1 : -arrowSize / 2; - if (side === "left") { - return __spreadProps(__spreadValues(__spreadValues({}, baseStyles), horizontalSide(placement, arrowY, arrowOffset, arrowPosition)), { - right: arrowPlacement, - borderLeft: 0, - borderBottom: 0 - }); - } - if (side === "right") { - return __spreadProps(__spreadValues(__spreadValues({}, baseStyles), horizontalSide(placement, arrowY, arrowOffset, arrowPosition)), { - left: arrowPlacement, - borderRight: 0, - borderTop: 0 - }); - } - if (side === "top") { - return __spreadProps(__spreadValues(__spreadValues({}, baseStyles), verticalSide(placement, arrowX, arrowOffset, arrowPosition, dir)), { - bottom: arrowPlacement, - borderTop: 0, - borderLeft: 0 - }); - } - if (side === "bottom") { - return __spreadProps(__spreadValues(__spreadValues({}, baseStyles), verticalSide(placement, arrowX, arrowOffset, arrowPosition, dir)), { - top: arrowPlacement, - borderBottom: 0, - borderRight: 0 - }); - } - return {}; -} - - -//# sourceMappingURL=get-arrow-position-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Floating/get-floating-position/get-floating-position.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Floating/get-floating-position/get-floating-position.js ***! - \************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getFloatingPosition: () => (/* binding */ getFloatingPosition) -/* harmony export */ }); -function getFloatingPosition(dir, position) { - if (dir === "rtl" && (position.includes("right") || position.includes("left"))) { - const [side, placement] = position.split("-"); - const flippedPosition = side === "right" ? "left" : "right"; - return placement === void 0 ? flippedPosition : `${flippedPosition}-${placement}`; - } - return position; -} - - -//# sourceMappingURL=get-floating-position.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Floating/use-delayed-hover.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Floating/use-delayed-hover.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useDelayedHover: () => (/* binding */ useDelayedHover) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useDelayedHover({ open, close, openDelay, closeDelay }) { - const openTimeout = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(-1); - const closeTimeout = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(-1); - const clearTimeouts = () => { - window.clearTimeout(openTimeout.current); - window.clearTimeout(closeTimeout.current); - }; - const openDropdown = () => { - clearTimeouts(); - if (openDelay === 0) { - open(); - } else { - openTimeout.current = window.setTimeout(open, openDelay); - } - }; - const closeDropdown = () => { - clearTimeouts(); - if (closeDelay === 0) { - close(); - } else { - closeTimeout.current = window.setTimeout(close, closeDelay); - } - }; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => clearTimeouts, []); - return { openDropdown, closeDropdown }; -} - - -//# sourceMappingURL=use-delayed-hover.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Floating/use-floating-auto-update.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Floating/use-floating-auto-update.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useFloatingAutoUpdate: () => (/* binding */ useFloatingAutoUpdate) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); - - - - -function useFloatingAutoUpdate({ opened, floating, positionDependencies }) { - const [delayedUpdate, setDelayedUpdate] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (floating.refs.reference.current && floating.refs.floating.current) { - return (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_1__.autoUpdate)(floating.refs.reference.current, floating.refs.floating.current, floating.update); - } - return void 0; - }, [floating.refs.reference.current, floating.refs.floating.current, opened, delayedUpdate]); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useDidUpdate)(() => { - floating.update(); - }, positionDependencies); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useDidUpdate)(() => { - setDelayedUpdate((c) => c + 1); - }, [opened]); -} - - -//# sourceMappingURL=use-floating-auto-update.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/FocusTrap/FocusTrap.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/FocusTrap/FocusTrap.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ FocusTrap: () => (/* binding */ FocusTrap) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/is-element/is-element.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-focus-trap/use-focus-trap.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); - - - - -function FocusTrap({ - children, - active = true, - refProp = "ref" -}) { - const focusTrapRef = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_1__.useFocusTrap)(active); - const ref = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useMergedRef)(focusTrapRef, children == null ? void 0 : children.ref); - if (!(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_3__.isElement)(children)) { - return children; - } - return (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(children, { [refProp]: ref }); -} -FocusTrap.displayName = "@mantine/core/FocusTrap"; - - -//# sourceMappingURL=FocusTrap.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Grid/Col/Col.js": -/*!********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Grid/Col/Col.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Col: () => (/* binding */ Col) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Grid_context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Grid.context.js */ "./node_modules/@mantine/core/esm/Grid/Grid.context.js"); -/* harmony import */ var _Col_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Col.styles.js */ "./node_modules/@mantine/core/esm/Grid/Col/Col.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -function isValidSpan(span) { - if (span === "auto" || span === "content") { - return true; - } - return typeof span === "number" && span > 0 && span % 1 === 0; -} -const Col = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("GridCol", defaultProps, props), { - children, - span, - offset, - offsetXs, - offsetSm, - offsetMd, - offsetLg, - offsetXl, - xs, - sm, - md, - lg, - xl, - order, - orderXs, - orderSm, - orderMd, - orderLg, - orderXl, - className, - id, - unstyled - } = _a, others = __objRest(_a, [ - "children", - "span", - "offset", - "offsetXs", - "offsetSm", - "offsetMd", - "offsetLg", - "offsetXl", - "xs", - "sm", - "md", - "lg", - "xl", - "order", - "orderXs", - "orderSm", - "orderMd", - "orderLg", - "orderXl", - "className", - "id", - "unstyled" - ]); - const ctx = (0,_Grid_context_js__WEBPACK_IMPORTED_MODULE_2__.useGridContext)(); - const colSpan = span || ctx.columns; - const { classes, cx } = (0,_Col_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ - gutter: ctx.gutter, - gutterXs: ctx.gutterXs, - gutterSm: ctx.gutterSm, - gutterMd: ctx.gutterMd, - gutterLg: ctx.gutterLg, - gutterXl: ctx.gutterXl, - offset, - offsetXs, - offsetSm, - offsetMd, - offsetLg, - offsetXl, - xs, - sm, - md, - lg, - xl, - order, - orderXs, - orderSm, - orderMd, - orderLg, - orderXl, - grow: ctx.grow, - columns: ctx.columns, - span: colSpan - }, { unstyled, name: "Grid" }); - if (!isValidSpan(colSpan) || colSpan > ctx.columns) { - return null; - } - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.col, className), - ref - }, others), children); -}); -Col.displayName = "@mantine/core/Col"; - - -//# sourceMappingURL=Col.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Grid/Col/Col.styles.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Grid/Col/Col.styles.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/default-theme.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -const getColumnFlexBasis = (colSpan, columns) => { - if (colSpan === "content") { - return "auto"; - } - if (colSpan === "auto") { - return "0px"; - } - return colSpan ? `${100 / (columns / colSpan)}%` : void 0; -}; -const getColumnMaxWidth = (colSpan, columns, grow) => { - if (grow || colSpan === "auto" || colSpan === "content") { - return "unset"; - } - return getColumnFlexBasis(colSpan, columns); -}; -const getColumnFlexGrow = (colSpan, grow) => { - if (!colSpan) { - return void 0; - } - return colSpan === "auto" || grow ? 1 : 0; -}; -const getColumnOffset = (offset, columns) => offset === 0 ? 0 : offset ? `${100 / (columns / offset)}%` : void 0; -const getGutterSize = (gutter, theme) => typeof gutter !== "undefined" ? theme.fn.size({ size: gutter, sizes: theme.spacing }) / 2 : void 0; -function getBreakpointsStyles({ - sizes, - offsets, - orders, - theme, - columns, - gutters, - grow -}) { - return _mantine_styles__WEBPACK_IMPORTED_MODULE_0__.MANTINE_SIZES.reduce((acc, size) => { - acc[`@media (min-width: ${theme.breakpoints[size]}px)`] = { - order: orders[size], - flexBasis: getColumnFlexBasis(sizes[size], columns), - padding: getGutterSize(gutters[size], theme), - flexShrink: 0, - width: sizes[size] === "content" ? "auto" : void 0, - maxWidth: getColumnMaxWidth(sizes[size], columns, grow), - marginLeft: getColumnOffset(offsets[size], columns), - flexGrow: getColumnFlexGrow(sizes[size], grow) - }; - return acc; - }, {}); -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.createStyles)((theme, { - gutter, - gutterXs, - gutterSm, - gutterMd, - gutterLg, - gutterXl, - grow, - offset, - offsetXs, - offsetSm, - offsetMd, - offsetLg, - offsetXl, - columns, - span, - xs, - sm, - md, - lg, - xl, - order, - orderXs, - orderSm, - orderMd, - orderLg, - orderXl -}) => ({ - col: __spreadValues({ - boxSizing: "border-box", - flexGrow: getColumnFlexGrow(span, grow), - order, - padding: getGutterSize(gutter, theme), - marginLeft: getColumnOffset(offset, columns), - flexBasis: getColumnFlexBasis(span, columns), - flexShrink: 0, - width: span === "content" ? "auto" : void 0, - maxWidth: getColumnMaxWidth(span, columns, grow) - }, getBreakpointsStyles({ - sizes: { xs, sm, md, lg, xl }, - offsets: { xs: offsetXs, sm: offsetSm, md: offsetMd, lg: offsetLg, xl: offsetXl }, - orders: { xs: orderXs, sm: orderSm, md: orderMd, lg: orderLg, xl: orderXl }, - gutters: { xs: gutterXs, sm: gutterSm, md: gutterMd, lg: gutterLg, xl: gutterXl }, - theme, - columns, - grow - })) -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Col.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Grid/Grid.context.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Grid/Grid.context.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ GridProvider: () => (/* binding */ GridProvider), -/* harmony export */ useGridContext: () => (/* binding */ useGridContext) -/* harmony export */ }); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-safe-context/create-safe-context.js"); - - -const [GridProvider, useGridContext] = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_0__.createSafeContext)("Grid component was not found in tree"); - - -//# sourceMappingURL=Grid.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Grid/Grid.js": -/*!*****************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Grid/Grid.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Grid: () => (/* binding */ Grid) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Col_Col_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Col/Col.js */ "./node_modules/@mantine/core/esm/Grid/Col/Col.js"); -/* harmony import */ var _Grid_context_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Grid.context.js */ "./node_modules/@mantine/core/esm/Grid/Grid.context.js"); -/* harmony import */ var _Grid_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Grid.styles.js */ "./node_modules/@mantine/core/esm/Grid/Grid.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - gutter: "md", - justify: "flex-start", - align: "stretch", - columns: 12 -}; -const Grid = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Grid", defaultProps, props), { - gutter, - gutterXs, - gutterSm, - gutterMd, - gutterLg, - gutterXl, - children, - grow, - justify, - align, - columns, - className, - id, - unstyled - } = _a, others = __objRest(_a, [ - "gutter", - "gutterXs", - "gutterSm", - "gutterMd", - "gutterLg", - "gutterXl", - "children", - "grow", - "justify", - "align", - "columns", - "className", - "id", - "unstyled" - ]); - const { classes, cx } = (0,_Grid_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ gutter, justify, align, gutterXs, gutterSm, gutterMd, gutterLg, gutterXl }, { unstyled, name: "Grid" }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Grid_context_js__WEBPACK_IMPORTED_MODULE_3__.GridProvider, { - value: { gutter, gutterXs, gutterSm, gutterMd, gutterLg, gutterXl, grow, columns } - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others), children)); -}); -Grid.Col = _Col_Col_js__WEBPACK_IMPORTED_MODULE_5__.Col; -Grid.displayName = "@mantine/core/Grid"; - - -//# sourceMappingURL=Grid.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Grid/Grid.styles.js": -/*!************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Grid/Grid.styles.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/default-theme.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function getGutterStyles(gutters, theme) { - return _mantine_styles__WEBPACK_IMPORTED_MODULE_0__.MANTINE_SIZES.reduce((acc, size) => { - if (typeof gutters[size] !== "undefined") { - acc[`@media (min-width: ${theme.breakpoints[size]}px)`] = { - margin: -theme.fn.size({ size: gutters[size], sizes: theme.spacing }) / 2 - }; - } - return acc; - }, {}); -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.createStyles)((theme, { justify, align, gutter, gutterXs, gutterSm, gutterMd, gutterLg, gutterXl }) => ({ - root: __spreadValues({ - margin: -theme.fn.size({ size: gutter, sizes: theme.spacing }) / 2, - display: "flex", - flexWrap: "wrap", - justifyContent: justify, - alignItems: align - }, getGutterStyles({ xs: gutterXs, sm: gutterSm, md: gutterMd, lg: gutterLg, xl: gutterXl }, theme)) -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Grid.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Group/Group.js": -/*!*******************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Group/Group.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Group: () => (/* binding */ Group) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _filter_falsy_children_filter_falsy_children_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./filter-falsy-children/filter-falsy-children.js */ "./node_modules/@mantine/core/esm/Group/filter-falsy-children/filter-falsy-children.js"); -/* harmony import */ var _Group_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Group.styles.js */ "./node_modules/@mantine/core/esm/Group/Group.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - position: "left", - spacing: "md" -}; -const Group = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Group", defaultProps, props), { className, position, align, children, noWrap, grow, spacing, unstyled } = _a, others = __objRest(_a, ["className", "position", "align", "children", "noWrap", "grow", "spacing", "unstyled"]); - const filteredChildren = (0,_filter_falsy_children_filter_falsy_children_js__WEBPACK_IMPORTED_MODULE_2__.filterFalsyChildren)(children); - const { classes, cx } = (0,_Group_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ - align, - grow, - noWrap, - spacing, - position, - count: filteredChildren.length - }, { unstyled, name: "Group" }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others), filteredChildren); -}); -Group.displayName = "@mantine/core/Group"; - - -//# sourceMappingURL=Group.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Group/Group.styles.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Group/Group.styles.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ GROUP_POSITIONS: () => (/* binding */ GROUP_POSITIONS), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -const GROUP_POSITIONS = { - left: "flex-start", - center: "center", - right: "flex-end", - apart: "space-between" -}; -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { spacing, position, noWrap, grow, align, count }) => ({ - root: { - boxSizing: "border-box", - display: "flex", - flexDirection: "row", - alignItems: align || "center", - flexWrap: noWrap ? "nowrap" : "wrap", - justifyContent: GROUP_POSITIONS[position], - gap: theme.fn.size({ size: spacing, sizes: theme.spacing }), - "& > *": { - boxSizing: "border-box", - maxWidth: grow ? `calc(${100 / count}% - ${theme.fn.size({ size: spacing, sizes: theme.spacing }) - theme.fn.size({ size: spacing, sizes: theme.spacing }) / count}px)` : void 0, - flexGrow: grow ? 1 : 0 - } - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); - -//# sourceMappingURL=Group.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Group/filter-falsy-children/filter-falsy-children.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Group/filter-falsy-children/filter-falsy-children.js ***! - \*********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ filterFalsyChildren: () => (/* binding */ filterFalsyChildren) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function filterFalsyChildren(children) { - return react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).filter(Boolean); -} - - -//# sourceMappingURL=filter-falsy-children.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Image/Image.js": -/*!*******************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Image/Image.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Image: () => (/* binding */ Image) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); -/* harmony import */ var _ImageIcon_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ImageIcon.js */ "./node_modules/@mantine/core/esm/Image/ImageIcon.js"); -/* harmony import */ var _Image_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Image.styles.js */ "./node_modules/@mantine/core/esm/Image/Image.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - fit: "cover", - width: "100%", - height: "auto", - radius: 0 -}; -const Image = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Image", defaultProps, props), { - className, - alt, - src, - fit, - width, - height, - radius, - imageProps, - withPlaceholder, - placeholder, - imageRef, - classNames, - styles, - caption, - unstyled, - style - } = _a, others = __objRest(_a, [ - "className", - "alt", - "src", - "fit", - "width", - "height", - "radius", - "imageProps", - "withPlaceholder", - "placeholder", - "imageRef", - "classNames", - "styles", - "caption", - "unstyled", - "style" - ]); - const { classes, cx } = (0,_Image_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ radius }, { classNames, styles, unstyled, name: "Image" }); - const [error, setError] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!src); - const isPlaceholder = withPlaceholder && error; - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useDidUpdate)(() => { - setError(!src); - }, [src]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.root, className), - ref, - style: __spreadValues({ width }, style) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("figure", { - className: classes.figure - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.imageWrapper - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("img", __spreadValues({ - className: classes.image, - src, - alt, - style: { objectFit: fit, width, height }, - ref: imageRef, - onError: (event) => { - setError(true); - typeof (imageProps == null ? void 0 : imageProps.onError) === "function" && imageProps.onError(event); - } - }, imageProps)), isPlaceholder && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.placeholder, - title: alt - }, placeholder || /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ImageIcon_js__WEBPACK_IMPORTED_MODULE_5__.ImageIcon, { - style: { width: 40, height: 40 } - })))), !!caption && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_6__.Text, { - component: "figcaption", - size: "sm", - align: "center", - className: classes.caption - }, caption))); -}); -Image.displayName = "@mantine/core/Image"; - - -//# sourceMappingURL=Image.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Image/Image.styles.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Image/Image.styles.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { radius }) => ({ - root: {}, - imageWrapper: { - position: "relative" - }, - figure: { - margin: 0 - }, - image: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - display: "block", - width: "100%", - height: "100%", - border: 0, - borderRadius: theme.fn.size({ size: radius, sizes: theme.radius }) - }), - caption: { - color: theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[7], - marginTop: theme.spacing.xs - }, - placeholder: __spreadProps(__spreadValues({}, theme.fn.cover()), { - display: "flex", - alignItems: "center", - justifyContent: "center", - color: theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6], - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[0], - borderRadius: theme.fn.size({ size: radius, sizes: theme.radius }) - }) -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Image.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Image/ImageIcon.js": -/*!***********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Image/ImageIcon.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ImageIcon: () => (/* binding */ ImageIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function ImageIcon(props) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - width: "15", - height: "15", - viewBox: "0 0 15 15", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M2.5 1H12.5C13.3284 1 14 1.67157 14 2.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V2.5C1 1.67157 1.67157 1 2.5 1ZM2.5 2C2.22386 2 2 2.22386 2 2.5V8.3636L3.6818 6.6818C3.76809 6.59551 3.88572 6.54797 4.00774 6.55007C4.12975 6.55216 4.24568 6.60372 4.32895 6.69293L7.87355 10.4901L10.6818 7.6818C10.8575 7.50607 11.1425 7.50607 11.3182 7.6818L13 9.3636V2.5C13 2.22386 12.7761 2 12.5 2H2.5ZM2 12.5V9.6364L3.98887 7.64753L7.5311 11.4421L8.94113 13H2.5C2.22386 13 2 12.7761 2 12.5ZM12.5 13H10.155L8.48336 11.153L11 8.6364L13 10.6364V12.5C13 12.7761 12.7761 13 12.5 13ZM6.64922 5.5C6.64922 5.03013 7.03013 4.64922 7.5 4.64922C7.96987 4.64922 8.35078 5.03013 8.35078 5.5C8.35078 5.96987 7.96987 6.35078 7.5 6.35078C7.03013 6.35078 6.64922 5.96987 6.64922 5.5ZM7.5 3.74922C6.53307 3.74922 5.74922 4.53307 5.74922 5.5C5.74922 6.46693 6.53307 7.25078 7.5 7.25078C8.46693 7.25078 9.25078 6.46693 9.25078 5.5C9.25078 4.53307 8.46693 3.74922 7.5 3.74922Z", - fill: "currentColor", - fillRule: "evenodd", - clipRule: "evenodd" - })); -} - - -//# sourceMappingURL=ImageIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/InlineInput/InlineInput.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/InlineInput/InlineInput.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ InlineInput: () => (/* binding */ InlineInput) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _InlineInput_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./InlineInput.styles.js */ "./node_modules/@mantine/core/esm/InlineInput/InlineInput.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Input_Input_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Input/Input.js */ "./node_modules/@mantine/core/esm/Input/Input.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function InlineInput(_a) { - var _b = _a, { - __staticSelector, - className, - classNames, - styles, - unstyled, - children, - label, - description, - id, - disabled, - error, - size, - labelPosition - } = _b, others = __objRest(_b, [ - "__staticSelector", - "className", - "classNames", - "styles", - "unstyled", - "children", - "label", - "description", - "id", - "disabled", - "error", - "size", - "labelPosition" - ]); - const { classes, cx } = (0,_InlineInput_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ size, labelPosition }, { name: __staticSelector, styles, classNames, unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_2__.Box, __spreadValues({ - className: cx(classes.root, className) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: cx(classes.body) - }, children, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.labelWrapper - }, label && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", { - className: classes.label, - "data-disabled": disabled || void 0, - htmlFor: id - }, label), description && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_3__.Input.Description, { - className: classes.description - }, description), error && error !== "boolean" && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_3__.Input.Error, { - className: classes.error - }, error)))); -} -InlineInput.displayName = "@mantine/core/InlineInput"; - - -//# sourceMappingURL=InlineInput.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/InlineInput/InlineInput.styles.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/InlineInput/InlineInput.styles.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 16, - sm: 20, - md: 24, - lg: 30, - xl: 36 -}; -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { labelPosition, size }) => ({ - root: {}, - body: { - display: "flex" - }, - labelWrapper: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - display: "inline-flex", - flexDirection: "column", - WebkitTapHighlightColor: "transparent", - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - lineHeight: `${theme.fn.size({ size, sizes })}px`, - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - cursor: theme.cursorType, - order: labelPosition === "left" ? 1 : 2 - }), - description: { - marginTop: `calc(${theme.spacing.xs}px / 2)`, - [labelPosition === "left" ? "paddingRight" : "paddingLeft"]: theme.spacing.sm - }, - error: { - marginTop: `calc(${theme.spacing.xs}px / 2)`, - [labelPosition === "left" ? "paddingRight" : "paddingLeft"]: theme.spacing.sm - }, - label: { - cursor: theme.cursorType, - [labelPosition === "left" ? "paddingRight" : "paddingLeft"]: theme.spacing.sm, - "&[data-disabled]": { - color: theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[5] - } - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=InlineInput.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/Input.js": -/*!*******************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/Input.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Input: () => (/* binding */ Input), -/* harmony export */ _Input: () => (/* binding */ _Input) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _InputWrapper_InputWrapper_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputWrapper/InputWrapper.js */ "./node_modules/@mantine/core/esm/Input/InputWrapper/InputWrapper.js"); -/* harmony import */ var _InputDescription_InputDescription_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./InputDescription/InputDescription.js */ "./node_modules/@mantine/core/esm/Input/InputDescription/InputDescription.js"); -/* harmony import */ var _InputLabel_InputLabel_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./InputLabel/InputLabel.js */ "./node_modules/@mantine/core/esm/Input/InputLabel/InputLabel.js"); -/* harmony import */ var _InputError_InputError_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./InputError/InputError.js */ "./node_modules/@mantine/core/esm/Input/InputError/InputError.js"); -/* harmony import */ var _InputPlaceholder_InputPlaceholder_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./InputPlaceholder/InputPlaceholder.js */ "./node_modules/@mantine/core/esm/Input/InputPlaceholder/InputPlaceholder.js"); -/* harmony import */ var _InputWrapper_context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InputWrapper.context.js */ "./node_modules/@mantine/core/esm/Input/InputWrapper.context.js"); -/* harmony import */ var _Input_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Input.styles.js */ "./node_modules/@mantine/core/esm/Input/Input.styles.js"); -/* harmony import */ var _Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box/style-system-props/extract-system-styles/extract-system-styles.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - rightSectionWidth: 36, - size: "sm", - variant: "default" -}; -const _Input = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Input", defaultProps, props), { - className, - invalid, - required, - disabled, - variant, - icon, - style, - rightSectionWidth, - iconWidth, - rightSection, - rightSectionProps, - radius, - size, - wrapperProps, - classNames, - styles, - __staticSelector, - multiline, - sx, - unstyled, - pointer - } = _a, others = __objRest(_a, [ - "className", - "invalid", - "required", - "disabled", - "variant", - "icon", - "style", - "rightSectionWidth", - "iconWidth", - "rightSection", - "rightSectionProps", - "radius", - "size", - "wrapperProps", - "classNames", - "styles", - "__staticSelector", - "multiline", - "sx", - "unstyled", - "pointer" - ]); - const { offsetBottom, offsetTop, describedBy } = (0,_InputWrapper_context_js__WEBPACK_IMPORTED_MODULE_2__.useInputWrapperContext)(); - const { classes, cx } = (0,_Input_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ - radius, - size, - multiline, - variant, - invalid, - rightSectionWidth, - iconWidth, - withRightSection: !!rightSection, - offsetBottom, - offsetTop, - pointer - }, { classNames, styles, name: ["Input", __staticSelector], unstyled }); - const { systemStyles, rest } = (0,_Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_4__.extractSystemStyles)(others); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_5__.Box, __spreadValues(__spreadValues({ - className: cx(classes.wrapper, className), - sx, - style - }, systemStyles), wrapperProps), icon && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.icon - }, icon), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_5__.Box, __spreadProps(__spreadValues({ - component: "input" - }, rest), { - ref, - required, - "aria-invalid": invalid, - "aria-describedby": describedBy, - disabled, - className: cx(classes[`${variant}Variant`], classes.input, { - [classes.withIcon]: icon, - [classes.invalid]: invalid, - [classes.disabled]: disabled - }) - })), rightSection && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", __spreadProps(__spreadValues({}, rightSectionProps), { - className: classes.rightSection - }), rightSection)); -}); -_Input.displayName = "@mantine/core/Input"; -_Input.Wrapper = _InputWrapper_InputWrapper_js__WEBPACK_IMPORTED_MODULE_6__.InputWrapper; -_Input.Label = _InputLabel_InputLabel_js__WEBPACK_IMPORTED_MODULE_7__.InputLabel; -_Input.Description = _InputDescription_InputDescription_js__WEBPACK_IMPORTED_MODULE_8__.InputDescription; -_Input.Error = _InputError_InputError_js__WEBPACK_IMPORTED_MODULE_9__.InputError; -_Input.Placeholder = _InputPlaceholder_InputPlaceholder_js__WEBPACK_IMPORTED_MODULE_10__.InputPlaceholder; -const Input = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_11__.createPolymorphicComponent)(_Input); - - -//# sourceMappingURL=Input.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/Input.styles.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/Input.styles.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ sizes: () => (/* binding */ sizes) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 30, - sm: 36, - md: 42, - lg: 50, - xl: 60 -}; -function getVariantStyles({ theme, variant }) { - if (variant === "default") { - return { - border: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[4]}`, - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.white, - transition: "border-color 100ms ease", - "&:focus, &:focus-within": theme.focusRingStyles.inputStyles(theme) - }; - } - if (variant === "filled") { - return { - border: "1px solid transparent", - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[1], - "&:focus, &:focus-within": theme.focusRingStyles.inputStyles(theme) - }; - } - return { - borderWidth: 0, - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - backgroundColor: "transparent", - minHeight: 28, - outline: 0, - "&:focus, &:focus-within": { - outline: "none", - borderColor: "transparent" - }, - "&:disabled": { - backgroundColor: "transparent", - "&:focus, &:focus-within": { - outline: "none", - borderColor: "transparent" - } - } - }; -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { - size, - multiline, - radius, - variant, - invalid, - rightSectionWidth, - withRightSection, - iconWidth, - offsetBottom, - offsetTop, - pointer -}) => { - const invalidColor = theme.fn.variant({ variant: "filled", color: "red" }).background; - const sizeStyles = variant === "default" || variant === "filled" ? { - minHeight: theme.fn.size({ size, sizes }), - paddingLeft: theme.fn.size({ size, sizes }) / 3, - paddingRight: withRightSection ? rightSectionWidth : theme.fn.size({ size, sizes }) / 3, - borderRadius: theme.fn.radius(radius) - } : null; - return { - wrapper: { - position: "relative", - marginTop: offsetTop ? `calc(${theme.spacing.xs}px / 2)` : void 0, - marginBottom: offsetBottom ? `calc(${theme.spacing.xs}px / 2)` : void 0 - }, - input: __spreadValues(__spreadProps(__spreadValues(__spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - height: multiline ? variant === "unstyled" ? void 0 : "auto" : theme.fn.size({ size, sizes }), - WebkitTapHighlightColor: "transparent", - lineHeight: multiline ? theme.lineHeight : `${theme.fn.size({ size, sizes }) - 2}px`, - appearance: "none", - resize: "none", - boxSizing: "border-box", - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - width: "100%", - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - display: "block", - textAlign: "left", - cursor: pointer ? "pointer" : void 0 - }), sizeStyles), { - "&:disabled": { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[1], - color: theme.colors.dark[2], - opacity: 0.6, - cursor: "not-allowed", - "&::placeholder": { - color: theme.colors.dark[2] - } - }, - "&::placeholder": __spreadProps(__spreadValues({}, theme.fn.placeholderStyles()), { - opacity: 1 - }), - "&::-webkit-inner-spin-button, &::-webkit-outer-spin-button, &::-webkit-search-decoration, &::-webkit-search-cancel-button, &::-webkit-search-results-button, &::-webkit-search-results-decoration": { - appearance: "none" - }, - "&[type=number]": { - MozAppearance: "textfield" - } - }), getVariantStyles({ theme, variant })), - withIcon: { - paddingLeft: typeof iconWidth === "number" ? iconWidth : theme.fn.size({ size, sizes }) - }, - invalid: { - color: invalidColor, - borderColor: invalidColor, - "&::placeholder": { - opacity: 1, - color: invalidColor - } - }, - disabled: { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[1], - color: theme.colors.dark[2], - opacity: 0.6, - cursor: "not-allowed", - "&::placeholder": { - color: theme.colors.dark[2] - } - }, - icon: { - pointerEvents: "none", - position: "absolute", - zIndex: 1, - left: 0, - top: 0, - bottom: 0, - display: "flex", - alignItems: "center", - justifyContent: "center", - width: typeof iconWidth === "number" ? iconWidth : theme.fn.size({ size, sizes }), - color: invalid ? theme.colors.red[theme.colorScheme === "dark" ? 6 : 7] : theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[5] - }, - rightSection: { - position: "absolute", - top: 0, - bottom: 0, - right: 0, - display: "flex", - alignItems: "center", - justifyContent: "center", - width: rightSectionWidth - } - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); - -//# sourceMappingURL=Input.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputDescription/InputDescription.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputDescription/InputDescription.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ InputDescription: () => (/* binding */ InputDescription) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _InputDescription_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InputDescription.styles.js */ "./node_modules/@mantine/core/esm/Input/InputDescription/InputDescription.styles.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - size: "sm" -}; -const InputDescription = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("InputDescription", defaultProps, props), { children, className, classNames, styles, unstyled, size, __staticSelector } = _a, others = __objRest(_a, ["children", "className", "classNames", "styles", "unstyled", "size", "__staticSelector"]); - const { classes, cx } = (0,_InputDescription_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ size }, { name: ["InputWrapper", __staticSelector], classNames, styles, unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_3__.Text, __spreadValues({ - color: "dimmed", - className: cx(classes.description, className), - ref, - unstyled - }, others), children); -}); -InputDescription.displayName = "@mantine/core/InputDescription"; - - -//# sourceMappingURL=InputDescription.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputDescription/InputDescription.styles.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputDescription/InputDescription.styles.js ***! - \******************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size }) => ({ - description: { - wordBreak: "break-word", - color: theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6], - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }) - 2, - lineHeight: 1.2, - display: "block" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=InputDescription.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputError/InputError.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputError/InputError.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ InputError: () => (/* binding */ InputError) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _InputError_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InputError.styles.js */ "./node_modules/@mantine/core/esm/Input/InputError/InputError.styles.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - size: "sm" -}; -const InputError = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("InputError", defaultProps, props), { children, className, classNames, styles, unstyled, size, __staticSelector } = _a, others = __objRest(_a, ["children", "className", "classNames", "styles", "unstyled", "size", "__staticSelector"]); - const { classes, cx } = (0,_InputError_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ size }, { name: ["InputWrapper", __staticSelector], classNames, styles, unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_3__.Text, __spreadValues({ - className: cx(classes.error, className), - ref - }, others), children); -}); -InputError.displayName = "@mantine/core/InputError"; - - -//# sourceMappingURL=InputError.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputError/InputError.styles.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputError/InputError.styles.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size }) => ({ - error: { - wordBreak: "break-word", - color: theme.fn.variant({ variant: "filled", color: "red" }).background, - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }) - 2, - lineHeight: 1.2, - display: "block" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=InputError.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputLabel/InputLabel.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputLabel/InputLabel.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ InputLabel: () => (/* binding */ InputLabel) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _InputLabel_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InputLabel.styles.js */ "./node_modules/@mantine/core/esm/Input/InputLabel/InputLabel.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - labelElement: "label", - size: "sm" -}; -const InputLabel = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("InputLabel", defaultProps, props), { - labelElement, - children, - required, - size, - classNames, - styles, - unstyled, - className, - htmlFor, - __staticSelector - } = _a, others = __objRest(_a, [ - "labelElement", - "children", - "required", - "size", - "classNames", - "styles", - "unstyled", - "className", - "htmlFor", - "__staticSelector" - ]); - const { classes, cx } = (0,_InputLabel_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ size }, { name: ["InputWrapper", __staticSelector], classNames, styles, unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - component: labelElement, - ref, - className: cx(classes.label, className), - htmlFor: labelElement === "label" ? htmlFor : void 0 - }, others), children, required && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: classes.required, - "aria-hidden": true - }, " *")); -}); -InputLabel.displayName = "@mantine/core/InputLabel"; - - -//# sourceMappingURL=InputLabel.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputLabel/InputLabel.styles.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputLabel/InputLabel.styles.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size }) => ({ - label: { - display: "inline-block", - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - fontWeight: 500, - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.gray[9], - wordBreak: "break-word", - cursor: "default", - WebkitTapHighlightColor: "transparent" - }, - required: { - color: theme.fn.variant({ variant: "filled", color: "red" }).background - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=InputLabel.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputPlaceholder/InputPlaceholder.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputPlaceholder/InputPlaceholder.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ InputPlaceholder: () => (/* binding */ InputPlaceholder) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/pack-sx/pack-sx.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -const InputPlaceholder = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("InputPlaceholder", defaultProps, props), { sx } = _a, others = __objRest(_a, ["sx"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_2__.Box, __spreadValues({ - component: "span", - sx: [(theme) => theme.fn.placeholderStyles(), ...(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_3__.packSx)(sx)], - ref - }, others)); -}); -InputPlaceholder.displayName = "@mantine/core/InputPlaceholder"; - - -//# sourceMappingURL=InputPlaceholder.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputWrapper.context.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputWrapper.context.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ InputWrapperProvider: () => (/* binding */ InputWrapperProvider), -/* harmony export */ useInputWrapperContext: () => (/* binding */ useInputWrapperContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const InputWrapperContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({ - offsetBottom: false, - offsetTop: false, - describedBy: void 0 -}); -const InputWrapperProvider = InputWrapperContext.Provider; -const useInputWrapperContext = () => (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(InputWrapperContext); - - -//# sourceMappingURL=InputWrapper.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputWrapper/InputWrapper.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputWrapper/InputWrapper.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ InputWrapper: () => (/* binding */ InputWrapper) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _InputLabel_InputLabel_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../InputLabel/InputLabel.js */ "./node_modules/@mantine/core/esm/Input/InputLabel/InputLabel.js"); -/* harmony import */ var _InputError_InputError_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../InputError/InputError.js */ "./node_modules/@mantine/core/esm/Input/InputError/InputError.js"); -/* harmony import */ var _InputDescription_InputDescription_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../InputDescription/InputDescription.js */ "./node_modules/@mantine/core/esm/Input/InputDescription/InputDescription.js"); -/* harmony import */ var _InputWrapper_context_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../InputWrapper.context.js */ "./node_modules/@mantine/core/esm/Input/InputWrapper.context.js"); -/* harmony import */ var _get_input_offsets_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./get-input-offsets.js */ "./node_modules/@mantine/core/esm/Input/InputWrapper/get-input-offsets.js"); -/* harmony import */ var _InputWrapper_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InputWrapper.styles.js */ "./node_modules/@mantine/core/esm/Input/InputWrapper/InputWrapper.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - labelElement: "label", - size: "sm", - inputContainer: (children) => children, - inputWrapperOrder: ["label", "description", "input", "error"] -}; -const InputWrapper = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("InputWrapper", defaultProps, props), { - className, - label, - children, - required, - id, - error, - description, - labelElement, - labelProps, - descriptionProps, - errorProps, - classNames, - styles, - size, - inputContainer, - __staticSelector, - unstyled, - inputWrapperOrder, - withAsterisk - } = _a, others = __objRest(_a, [ - "className", - "label", - "children", - "required", - "id", - "error", - "description", - "labelElement", - "labelProps", - "descriptionProps", - "errorProps", - "classNames", - "styles", - "size", - "inputContainer", - "__staticSelector", - "unstyled", - "inputWrapperOrder", - "withAsterisk" - ]); - const { classes, cx } = (0,_InputWrapper_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])(null, { - classNames, - styles, - name: ["InputWrapper", __staticSelector], - unstyled - }); - const sharedProps = { - classNames, - styles, - unstyled, - size, - __staticSelector - }; - const isRequired = typeof withAsterisk === "boolean" ? withAsterisk : required; - const errorId = id ? `${id}-error` : errorProps == null ? void 0 : errorProps.id; - const descriptionId = id ? `${id}-description` : descriptionProps == null ? void 0 : descriptionProps.id; - const hasError = !!error && typeof error !== "boolean"; - const _describedBy = `${hasError ? errorId : ""} ${description ? descriptionId : ""}`; - const describedBy = _describedBy.trim().length > 0 ? _describedBy.trim() : void 0; - const _label = label && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputLabel_InputLabel_js__WEBPACK_IMPORTED_MODULE_3__.InputLabel, __spreadValues(__spreadValues({ - key: "label", - labelElement, - id: id ? `${id}-label` : void 0, - htmlFor: id, - required: isRequired - }, sharedProps), labelProps), label); - const _description = description && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputDescription_InputDescription_js__WEBPACK_IMPORTED_MODULE_4__.InputDescription, __spreadProps(__spreadValues(__spreadValues({ - key: "description" - }, descriptionProps), sharedProps), { - size: (descriptionProps == null ? void 0 : descriptionProps.size) || sharedProps.size, - id: (descriptionProps == null ? void 0 : descriptionProps.id) || descriptionId - }), description); - const _input = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - key: "input" - }, inputContainer(children)); - const _error = typeof error !== "boolean" && error && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputError_InputError_js__WEBPACK_IMPORTED_MODULE_5__.InputError, __spreadProps(__spreadValues(__spreadValues({}, errorProps), sharedProps), { - size: (errorProps == null ? void 0 : errorProps.size) || sharedProps.size, - key: "error", - id: (errorProps == null ? void 0 : errorProps.id) || errorId - }), error); - const content = inputWrapperOrder.map((part) => { - switch (part) { - case "label": - return _label; - case "input": - return _input; - case "description": - return _description; - case "error": - return _error; - default: - return null; - } - }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_InputWrapper_context_js__WEBPACK_IMPORTED_MODULE_6__.InputWrapperProvider, { - value: __spreadValues({ - describedBy - }, (0,_get_input_offsets_js__WEBPACK_IMPORTED_MODULE_7__.getInputOffsets)(inputWrapperOrder, { - hasDescription: !!_description, - hasError: !!_error - })) - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_8__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others), content)); -}); -InputWrapper.displayName = "@mantine/core/InputWrapper"; - - -//# sourceMappingURL=InputWrapper.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputWrapper/InputWrapper.styles.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputWrapper/InputWrapper.styles.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme) => ({ - root: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - lineHeight: theme.lineHeight - }) -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=InputWrapper.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/InputWrapper/get-input-offsets.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/InputWrapper/get-input-offsets.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getInputOffsets: () => (/* binding */ getInputOffsets) -/* harmony export */ }); -function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) { - const inputIndex = inputWrapperOrder.findIndex((part) => part === "input"); - const aboveInput = inputWrapperOrder[inputIndex - 1]; - const belowInput = inputWrapperOrder[inputIndex + 1]; - const offsetTop = hasDescription && aboveInput === "description" || hasError && aboveInput === "error"; - const offsetBottom = hasDescription && belowInput === "description" || hasError && belowInput === "error"; - return { offsetBottom, offsetTop }; -} - - -//# sourceMappingURL=get-input-offsets.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Input/use-input-props.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Input/use-input-props.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useInputProps: () => (/* binding */ useInputProps) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Box/style-system-props/extract-system-styles/extract-system-styles.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js"); - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function useInputProps(component, defaultProps, props) { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.useComponentDefaultProps)(component, defaultProps, props), { - label, - description, - error, - required, - classNames, - styles, - className, - unstyled, - __staticSelector, - sx, - errorProps, - labelProps, - descriptionProps, - wrapperProps: _wrapperProps, - id, - size, - style, - inputContainer, - inputWrapperOrder, - withAsterisk - } = _a, others = __objRest(_a, [ - "label", - "description", - "error", - "required", - "classNames", - "styles", - "className", - "unstyled", - "__staticSelector", - "sx", - "errorProps", - "labelProps", - "descriptionProps", - "wrapperProps", - "id", - "size", - "style", - "inputContainer", - "inputWrapperOrder", - "withAsterisk" - ]); - const uid = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_1__.useId)(id); - const { systemStyles, rest } = (0,_Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_2__.extractSystemStyles)(others); - const wrapperProps = __spreadValues({ - label, - description, - error, - required, - classNames, - className, - __staticSelector, - sx, - errorProps, - labelProps, - descriptionProps, - unstyled, - styles, - id: uid, - size, - style, - inputContainer, - inputWrapperOrder, - withAsterisk - }, _wrapperProps); - return __spreadProps(__spreadValues({}, rest), { - classNames, - styles, - unstyled, - wrapperProps: __spreadValues(__spreadValues({}, wrapperProps), systemStyles), - inputProps: { - required, - classNames, - styles, - unstyled, - id: uid, - size, - __staticSelector, - invalid: !!error - } - }); -} - - -//# sourceMappingURL=use-input-props.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Loader/Loader.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Loader/Loader.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Loader: () => (/* binding */ Loader) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _loaders_Bars_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./loaders/Bars.js */ "./node_modules/@mantine/core/esm/Loader/loaders/Bars.js"); -/* harmony import */ var _loaders_Oval_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./loaders/Oval.js */ "./node_modules/@mantine/core/esm/Loader/loaders/Oval.js"); -/* harmony import */ var _loaders_Dots_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./loaders/Dots.js */ "./node_modules/@mantine/core/esm/Loader/loaders/Dots.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const LOADERS = { - bars: _loaders_Bars_js__WEBPACK_IMPORTED_MODULE_1__.Bars, - oval: _loaders_Oval_js__WEBPACK_IMPORTED_MODULE_2__.Oval, - dots: _loaders_Dots_js__WEBPACK_IMPORTED_MODULE_3__.Dots -}; -const sizes = { - xs: 18, - sm: 22, - md: 36, - lg: 44, - xl: 58 -}; -const defaultProps = { - size: "md" -}; -function Loader(props) { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_4__.useComponentDefaultProps)("Loader", defaultProps, props), { size, color, variant } = _a, others = __objRest(_a, ["size", "color", "variant"]); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_4__.useMantineTheme)(); - const defaultLoader = variant in LOADERS ? variant : theme.loader; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_5__.Box, __spreadValues({ - role: "presentation", - component: LOADERS[defaultLoader] || LOADERS.bars, - size: theme.fn.size({ size, sizes }), - color: theme.fn.variant({ - variant: "filled", - primaryFallback: false, - color: color || theme.primaryColor - }).background - }, others)); -} -Loader.displayName = "@mantine/core/Loader"; - - -//# sourceMappingURL=Loader.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Loader/loaders/Bars.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Loader/loaders/Bars.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Bars: () => (/* binding */ Bars) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function Bars(_a) { - var _b = _a, { size, color } = _b, others = __objRest(_b, ["size", "color"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - viewBox: "0 0 135 140", - xmlns: "http://www.w3.org/2000/svg", - fill: color, - width: `${size}px` - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", { - y: "10", - width: "15", - height: "120", - rx: "6" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "height", - begin: "0.5s", - dur: "1s", - values: "120;110;100;90;80;70;60;50;40;140;120", - calcMode: "linear", - repeatCount: "indefinite" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "y", - begin: "0.5s", - dur: "1s", - values: "10;15;20;25;30;35;40;45;50;0;10", - calcMode: "linear", - repeatCount: "indefinite" - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", { - x: "30", - y: "10", - width: "15", - height: "120", - rx: "6" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "height", - begin: "0.25s", - dur: "1s", - values: "120;110;100;90;80;70;60;50;40;140;120", - calcMode: "linear", - repeatCount: "indefinite" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "y", - begin: "0.25s", - dur: "1s", - values: "10;15;20;25;30;35;40;45;50;0;10", - calcMode: "linear", - repeatCount: "indefinite" - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", { - x: "60", - width: "15", - height: "140", - rx: "6" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "height", - begin: "0s", - dur: "1s", - values: "120;110;100;90;80;70;60;50;40;140;120", - calcMode: "linear", - repeatCount: "indefinite" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "y", - begin: "0s", - dur: "1s", - values: "10;15;20;25;30;35;40;45;50;0;10", - calcMode: "linear", - repeatCount: "indefinite" - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", { - x: "90", - y: "10", - width: "15", - height: "120", - rx: "6" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "height", - begin: "0.25s", - dur: "1s", - values: "120;110;100;90;80;70;60;50;40;140;120", - calcMode: "linear", - repeatCount: "indefinite" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "y", - begin: "0.25s", - dur: "1s", - values: "10;15;20;25;30;35;40;45;50;0;10", - calcMode: "linear", - repeatCount: "indefinite" - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", { - x: "120", - y: "10", - width: "15", - height: "120", - rx: "6" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "height", - begin: "0.5s", - dur: "1s", - values: "120;110;100;90;80;70;60;50;40;140;120", - calcMode: "linear", - repeatCount: "indefinite" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "y", - begin: "0.5s", - dur: "1s", - values: "10;15;20;25;30;35;40;45;50;0;10", - calcMode: "linear", - repeatCount: "indefinite" - }))); -} - - -//# sourceMappingURL=Bars.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Loader/loaders/Dots.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Loader/loaders/Dots.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Dots: () => (/* binding */ Dots) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function Dots(_a) { - var _b = _a, { size, color } = _b, others = __objRest(_b, ["size", "color"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - width: `${size}px`, - height: `${size / 4}px`, - viewBox: "0 0 120 30", - xmlns: "http://www.w3.org/2000/svg", - fill: color - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", { - cx: "15", - cy: "15", - r: "15" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "r", - from: "15", - to: "15", - begin: "0s", - dur: "0.8s", - values: "15;9;15", - calcMode: "linear", - repeatCount: "indefinite" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "fill-opacity", - from: "1", - to: "1", - begin: "0s", - dur: "0.8s", - values: "1;.5;1", - calcMode: "linear", - repeatCount: "indefinite" - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", { - cx: "60", - cy: "15", - r: "9", - fillOpacity: "0.3" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "r", - from: "9", - to: "9", - begin: "0s", - dur: "0.8s", - values: "9;15;9", - calcMode: "linear", - repeatCount: "indefinite" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "fill-opacity", - from: "0.5", - to: "0.5", - begin: "0s", - dur: "0.8s", - values: ".5;1;.5", - calcMode: "linear", - repeatCount: "indefinite" - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", { - cx: "105", - cy: "15", - r: "15" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "r", - from: "15", - to: "15", - begin: "0s", - dur: "0.8s", - values: "15;9;15", - calcMode: "linear", - repeatCount: "indefinite" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animate", { - attributeName: "fill-opacity", - from: "1", - to: "1", - begin: "0s", - dur: "0.8s", - values: "1;.5;1", - calcMode: "linear", - repeatCount: "indefinite" - }))); -} - - -//# sourceMappingURL=Dots.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Loader/loaders/Oval.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Loader/loaders/Oval.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Oval: () => (/* binding */ Oval) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function Oval(_a) { - var _b = _a, { size, color } = _b, others = __objRest(_b, ["size", "color"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - width: `${size}px`, - height: `${size}px`, - viewBox: "0 0 38 38", - xmlns: "http://www.w3.org/2000/svg", - stroke: color - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", { - fill: "none", - fillRule: "evenodd" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", { - transform: "translate(2.5 2.5)", - strokeWidth: "5" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", { - strokeOpacity: ".5", - cx: "16", - cy: "16", - r: "16" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M32 16c0-9.94-8.06-16-16-16" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("animateTransform", { - attributeName: "transform", - type: "rotate", - from: "0 16 16", - to: "360 16 16", - dur: "1s", - repeatCount: "indefinite" - }))))); -} - - -//# sourceMappingURL=Oval.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/Menu.context.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/Menu.context.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MenuContextProvider: () => (/* binding */ MenuContextProvider), -/* harmony export */ useMenuContext: () => (/* binding */ useMenuContext) -/* harmony export */ }); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-safe-context/create-safe-context.js"); -/* harmony import */ var _Menu_errors_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Menu.errors.js */ "./node_modules/@mantine/core/esm/Menu/Menu.errors.js"); - - - -const [MenuContextProvider, useMenuContext] = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_0__.createSafeContext)(_Menu_errors_js__WEBPACK_IMPORTED_MODULE_1__.MENU_ERRORS.context); - - -//# sourceMappingURL=Menu.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/Menu.errors.js": -/*!************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/Menu.errors.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MENU_ERRORS: () => (/* binding */ MENU_ERRORS) -/* harmony export */ }); -const MENU_ERRORS = { - context: "Menu component was not found in the tree", - children: "Menu.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported" -}; - - -//# sourceMappingURL=Menu.errors.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/Menu.js": -/*!*****************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/Menu.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Menu: () => (/* binding */ Menu) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/use-hovered/use-hovered.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/get-context-item-index/get-context-item-index.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _MenuDivider_MenuDivider_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./MenuDivider/MenuDivider.js */ "./node_modules/@mantine/core/esm/Menu/MenuDivider/MenuDivider.js"); -/* harmony import */ var _MenuDropdown_MenuDropdown_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./MenuDropdown/MenuDropdown.js */ "./node_modules/@mantine/core/esm/Menu/MenuDropdown/MenuDropdown.js"); -/* harmony import */ var _MenuItem_MenuItem_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MenuItem/MenuItem.js */ "./node_modules/@mantine/core/esm/Menu/MenuItem/MenuItem.js"); -/* harmony import */ var _MenuLabel_MenuLabel_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./MenuLabel/MenuLabel.js */ "./node_modules/@mantine/core/esm/Menu/MenuLabel/MenuLabel.js"); -/* harmony import */ var _MenuTarget_MenuTarget_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./MenuTarget/MenuTarget.js */ "./node_modules/@mantine/core/esm/Menu/MenuTarget/MenuTarget.js"); -/* harmony import */ var _Menu_context_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Menu.context.js */ "./node_modules/@mantine/core/esm/Menu/Menu.context.js"); -/* harmony import */ var _Menu_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Menu.styles.js */ "./node_modules/@mantine/core/esm/Menu/Menu.styles.js"); -/* harmony import */ var _Floating_use_delayed_hover_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Floating/use-delayed-hover.js */ "./node_modules/@mantine/core/esm/Floating/use-delayed-hover.js"); -/* harmony import */ var _Popover_Popover_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Popover/Popover.js */ "./node_modules/@mantine/core/esm/Popover/Popover.js"); - - - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - closeOnItemClick: true, - loop: true, - trigger: "click", - openDelay: 0, - closeDelay: 100 -}; -function Menu(props) { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Menu", defaultProps, props), { - children, - onOpen, - onClose, - opened, - defaultOpened, - onChange, - closeOnItemClick, - loop, - closeOnEscape, - trigger, - openDelay, - closeDelay, - classNames, - styles, - unstyled, - radius - } = _a, others = __objRest(_a, [ - "children", - "onOpen", - "onClose", - "opened", - "defaultOpened", - "onChange", - "closeOnItemClick", - "loop", - "closeOnEscape", - "trigger", - "openDelay", - "closeDelay", - "classNames", - "styles", - "unstyled", - "radius" - ]); - const { classes, cx } = (0,_Menu_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])(); - const [hovered, { setHovered, resetHovered }] = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_3__.useHovered)(); - const [_opened, setOpened] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.useUncontrolled)({ - value: opened, - defaultValue: defaultOpened, - finalValue: false, - onChange - }); - const close = () => { - setOpened(false); - _opened && (onClose == null ? void 0 : onClose()); - }; - const open = () => { - setOpened(true); - !_opened && (onOpen == null ? void 0 : onOpen()); - }; - const toggleDropdown = () => _opened ? close() : open(); - const { openDropdown, closeDropdown } = (0,_Floating_use_delayed_hover_js__WEBPACK_IMPORTED_MODULE_5__.useDelayedHover)({ open, close, closeDelay, openDelay }); - const getItemIndex = (node) => (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_6__.getContextItemIndex)("[data-menu-item]", "[data-menu-dropdown]", node); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useDidUpdate)(() => { - resetHovered(); - }, [_opened]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Menu_context_js__WEBPACK_IMPORTED_MODULE_8__.MenuContextProvider, { - value: { - opened: _opened, - toggleDropdown, - getItemIndex, - hovered, - setHovered, - closeOnItemClick, - closeDropdown: trigger === "click" ? close : closeDropdown, - openDropdown: trigger === "click" ? open : openDropdown, - closeDropdownImmediately: close, - loop, - trigger, - radius, - classNames, - styles, - unstyled - } - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Popover_Popover_js__WEBPACK_IMPORTED_MODULE_9__.Popover, __spreadProps(__spreadValues({}, others), { - radius, - opened: _opened, - onChange: setOpened, - defaultOpened, - trapFocus: trigger === "click", - closeOnEscape: closeOnEscape && trigger === "click", - __staticSelector: "Menu", - classNames: __spreadProps(__spreadValues({}, classNames), { dropdown: cx(classes.dropdown, classNames == null ? void 0 : classNames.dropdown) }), - styles, - unstyled, - onClose: close, - onOpen: open - }), children)); -} -Menu.displayName = "@mantine/core/Menu"; -Menu.Item = _MenuItem_MenuItem_js__WEBPACK_IMPORTED_MODULE_10__.MenuItem; -Menu.Label = _MenuLabel_MenuLabel_js__WEBPACK_IMPORTED_MODULE_11__.MenuLabel; -Menu.Dropdown = _MenuDropdown_MenuDropdown_js__WEBPACK_IMPORTED_MODULE_12__.MenuDropdown; -Menu.Target = _MenuTarget_MenuTarget_js__WEBPACK_IMPORTED_MODULE_13__.MenuTarget; -Menu.Divider = _MenuDivider_MenuDivider_js__WEBPACK_IMPORTED_MODULE_14__.MenuDivider; - - -//# sourceMappingURL=Menu.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/Menu.styles.js": -/*!************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/Menu.styles.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)({ - dropdown: { padding: 4 } -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Menu.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/MenuDivider/MenuDivider.js": -/*!************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/MenuDivider/MenuDivider.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MenuDivider: () => (/* binding */ MenuDivider) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Menu_context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Menu.context.js */ "./node_modules/@mantine/core/esm/Menu/Menu.context.js"); -/* harmony import */ var _MenuDivider_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MenuDivider.styles.js */ "./node_modules/@mantine/core/esm/Menu/MenuDivider/MenuDivider.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -const MenuDivider = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("MenuDivider", defaultProps, props), { children, className } = _a, others = __objRest(_a, ["children", "className"]); - const { classNames, styles, unstyled } = (0,_Menu_context_js__WEBPACK_IMPORTED_MODULE_2__.useMenuContext)(); - const { classes, cx } = (0,_MenuDivider_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])(null, { name: "Menu", classNames, styles, unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.divider, className), - ref - }, others)); -}); -MenuDivider.displayName = "@mantine/core/MenuDivider"; - - -//# sourceMappingURL=MenuDivider.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/MenuDivider/MenuDivider.styles.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/MenuDivider/MenuDivider.styles.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme) => ({ - divider: { - margin: `calc(${theme.spacing.xs}px / 2) -5px`, - borderTop: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[2]}` - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=MenuDivider.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/MenuDropdown/MenuDropdown.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/MenuDropdown/MenuDropdown.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MenuDropdown: () => (/* binding */ MenuDropdown) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-event-handler/create-event-handler.js"); -/* harmony import */ var _Menu_context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Menu.context.js */ "./node_modules/@mantine/core/esm/Menu/Menu.context.js"); -/* harmony import */ var _Popover_Popover_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Popover/Popover.js */ "./node_modules/@mantine/core/esm/Popover/Popover.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -function MenuDropdown(props) { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("MenuDropdown", defaultProps, props), { children, onMouseEnter, onMouseLeave } = _a, others = __objRest(_a, ["children", "onMouseEnter", "onMouseLeave"]); - const wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const ctx = (0,_Menu_context_js__WEBPACK_IMPORTED_MODULE_2__.useMenuContext)(); - const handleKeyDown = (event) => { - if (event.key === "ArrowUp" || event.key === "ArrowDown") { - event.preventDefault(); - wrapperRef.current.querySelectorAll("[data-menu-item]")[0].focus(); - } - }; - const handleMouseEnter = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_3__.createEventHandler)(onMouseEnter, () => ctx.trigger === "hover" && ctx.openDropdown()); - const handleMouseLeave = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_3__.createEventHandler)(onMouseLeave, () => ctx.trigger === "hover" && ctx.closeDropdown()); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Popover_Popover_js__WEBPACK_IMPORTED_MODULE_4__.Popover.Dropdown, __spreadValues({ - onMouseEnter: handleMouseEnter, - onMouseLeave: handleMouseLeave, - role: "menu", - "aria-orientation": "vertical" - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - tabIndex: -1, - "data-menu-dropdown": true, - "data-autofocus": true, - onKeyDown: handleKeyDown, - ref: wrapperRef, - style: { outline: 0 } - }, children)); -} -MenuDropdown.displayName = "@mantine/core/MenuDropdown"; - - -//# sourceMappingURL=MenuDropdown.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/MenuItem/MenuItem.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/MenuItem/MenuItem.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MenuItem: () => (/* binding */ MenuItem), -/* harmony export */ _MenuItem: () => (/* binding */ _MenuItem) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-event-handler/create-event-handler.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-scoped-keydown-handler/create-scoped-keydown-handler.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _Menu_context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Menu.context.js */ "./node_modules/@mantine/core/esm/Menu/Menu.context.js"); -/* harmony import */ var _MenuItem_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MenuItem.styles.js */ "./node_modules/@mantine/core/esm/Menu/MenuItem/MenuItem.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -const _MenuItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("MenuItem", defaultProps, props), { children, className, color, closeMenuOnClick, icon, rightSection } = _a, others = __objRest(_a, ["children", "className", "color", "closeMenuOnClick", "icon", "rightSection"]); - const ctx = (0,_Menu_context_js__WEBPACK_IMPORTED_MODULE_2__.useMenuContext)(); - const { classes, cx, theme } = (0,_MenuItem_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ radius: ctx.radius, color }, { name: "Menu", classNames: ctx.classNames, styles: ctx.styles, unstyled: ctx.unstyled }); - const itemRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const itemIndex = ctx.getItemIndex(itemRef.current); - const _others = others; - const handleMouseLeave = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createEventHandler)(_others.onMouseLeave, () => ctx.setHovered(-1)); - const handleMouseEnter = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createEventHandler)(_others.onMouseEnter, () => ctx.setHovered(ctx.getItemIndex(itemRef.current))); - const handleClick = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createEventHandler)(_others.onClick, () => { - if (typeof closeMenuOnClick === "boolean") { - closeMenuOnClick && ctx.closeDropdownImmediately(); - } else { - ctx.closeOnItemClick && ctx.closeDropdownImmediately(); - } - }); - const handleFocus = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createEventHandler)(_others.onFocus, () => ctx.setHovered(ctx.getItemIndex(itemRef.current))); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_5__.Box, __spreadProps(__spreadValues({ - component: "button", - type: "button" - }, others), { - tabIndex: -1, - onFocus: handleFocus, - className: cx(classes.item, className), - ref: (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_6__.useMergedRef)(itemRef, ref), - role: "menuitem", - "data-menu-item": true, - "data-hovered": ctx.hovered === itemIndex ? true : void 0, - onMouseEnter: handleMouseEnter, - onMouseLeave: handleMouseLeave, - onClick: handleClick, - onKeyDown: (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_7__.createScopedKeydownHandler)({ - siblingSelector: "[data-menu-item]", - parentSelector: "[data-menu-dropdown]", - activateOnFocus: false, - loop: ctx.loop, - dir: theme.dir, - orientation: "vertical", - onKeyDown: _others.onKeydown - }) - }), icon && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.itemIcon - }, icon), children && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.itemLabel - }, children), rightSection && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.itemRightSection - }, rightSection)); -}); -_MenuItem.displayName = "@mantine/core/MenuItem"; -const MenuItem = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_8__.createPolymorphicComponent)(_MenuItem); - - -//# sourceMappingURL=MenuItem.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/MenuItem/MenuItem.styles.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/MenuItem/MenuItem.styles.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { color, radius }) => ({ - item: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - WebkitTapHighlightColor: "transparent", - fontSize: theme.fontSizes.sm, - border: 0, - backgroundColor: "transparent", - outline: 0, - width: "100%", - textAlign: "left", - textDecoration: "none", - boxSizing: "border-box", - padding: `${theme.spacing.xs}px ${theme.spacing.sm}px`, - cursor: "pointer", - borderRadius: theme.fn.radius(radius), - color: color ? theme.fn.variant({ variant: "filled", primaryFallback: false, color }).background : theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - display: "flex", - alignItems: "center", - "&:disabled": { - color: theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[5], - pointerEvents: "none", - userSelect: "none" - }, - "&[data-hovered]": { - backgroundColor: color ? theme.fn.variant({ variant: "light", color }).background : theme.colorScheme === "dark" ? theme.fn.rgba(theme.colors.dark[3], 0.35) : theme.colors.gray[1] - } - }), - itemLabel: { - flex: 1 - }, - itemIcon: { - display: "flex", - justifyContent: "center", - alignItems: "center", - marginRight: theme.spacing.xs - }, - itemRightSection: {} -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=MenuItem.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/MenuLabel/MenuLabel.js": -/*!********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/MenuLabel/MenuLabel.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MenuLabel: () => (/* binding */ MenuLabel) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Menu_context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Menu.context.js */ "./node_modules/@mantine/core/esm/Menu/Menu.context.js"); -/* harmony import */ var _MenuLabel_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MenuLabel.styles.js */ "./node_modules/@mantine/core/esm/Menu/MenuLabel/MenuLabel.styles.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -const MenuLabel = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("MenuLabel", defaultProps, props), { children, className } = _a, others = __objRest(_a, ["children", "className"]); - const { classNames, styles, unstyled } = (0,_Menu_context_js__WEBPACK_IMPORTED_MODULE_2__.useMenuContext)(); - const { classes, cx } = (0,_MenuLabel_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])(null, { name: "Menu", classNames, styles, unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_4__.Text, __spreadValues({ - className: cx(classes.label, className), - ref - }, others), children); -}); -MenuLabel.displayName = "@mantine/core/MenuLabel"; - - -//# sourceMappingURL=MenuLabel.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/MenuLabel/MenuLabel.styles.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/MenuLabel/MenuLabel.styles.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme) => ({ - label: { - color: theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6], - fontWeight: 500, - fontSize: theme.fontSizes.xs, - padding: `calc(${theme.spacing.xs}px / 2) ${theme.spacing.sm}px`, - cursor: "default" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=MenuLabel.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Menu/MenuTarget/MenuTarget.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Menu/MenuTarget/MenuTarget.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MenuTarget: () => (/* binding */ MenuTarget) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/is-element/is-element.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-event-handler/create-event-handler.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Menu_context_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Menu.context.js */ "./node_modules/@mantine/core/esm/Menu/Menu.context.js"); -/* harmony import */ var _Menu_errors_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Menu.errors.js */ "./node_modules/@mantine/core/esm/Menu/Menu.errors.js"); -/* harmony import */ var _Popover_Popover_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Popover/Popover.js */ "./node_modules/@mantine/core/esm/Popover/Popover.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - refProp: "ref" -}; -const MenuTarget = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("MenuTarget", defaultProps, props), { children, refProp } = _a, others = __objRest(_a, ["children", "refProp"]); - if (!(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_2__.isElement)(children)) { - throw new Error(_Menu_errors_js__WEBPACK_IMPORTED_MODULE_3__.MENU_ERRORS.children); - } - const ctx = (0,_Menu_context_js__WEBPACK_IMPORTED_MODULE_4__.useMenuContext)(); - const onClick = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.createEventHandler)(children.props.onClick, () => ctx.trigger === "click" && ctx.toggleDropdown()); - const onMouseEnter = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.createEventHandler)(children.props.onMouseEnter, () => ctx.trigger === "hover" && ctx.openDropdown()); - const onMouseLeave = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.createEventHandler)(children.props.onMouseLeave, () => ctx.trigger === "hover" && ctx.closeDropdown()); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Popover_Popover_js__WEBPACK_IMPORTED_MODULE_6__.Popover.Target, __spreadValues({ - refProp, - popupType: "menu", - ref - }, others), (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(children, { - onClick, - onMouseEnter, - onMouseLeave, - "data-expanded": ctx.opened ? true : void 0 - })); -}); -MenuTarget.displayName = "@mantine/core/MenuTarget"; - - -//# sourceMappingURL=MenuTarget.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Modal/Modal.js": -/*!*******************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Modal/Modal.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Modal: () => (/* binding */ Modal) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-focus-trap/use-focus-trap.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-scroll-lock/use-scroll-lock.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-focus-return/use-focus-return.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-window-event/use-window-event.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Modal_styles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Modal.styles.js */ "./node_modules/@mantine/core/esm/Modal/Modal.styles.js"); -/* harmony import */ var _Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Portal/OptionalPortal.js */ "./node_modules/@mantine/core/esm/Portal/OptionalPortal.js"); -/* harmony import */ var _Transition_GroupedTransition_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Transition/GroupedTransition.js */ "./node_modules/@mantine/core/esm/Transition/GroupedTransition.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Overlay_Overlay_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Overlay/Overlay.js */ "./node_modules/@mantine/core/esm/Overlay/Overlay.js"); -/* harmony import */ var _Paper_Paper_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../Paper/Paper.js */ "./node_modules/@mantine/core/esm/Paper/Paper.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../CloseButton/CloseButton.js */ "./node_modules/@mantine/core/esm/CloseButton/CloseButton.js"); - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - size: "md", - transitionDuration: 250, - overflow: "outside", - padding: "lg", - shadow: "lg", - closeOnClickOutside: true, - closeOnEscape: true, - trapFocus: true, - withCloseButton: true, - withinPortal: true, - lockScroll: true, - withFocusReturn: true, - overlayBlur: 0, - zIndex: (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.getDefaultZIndex)("modal"), - exitTransitionDuration: 0 -}; -function Modal(props) { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("Modal", defaultProps, props), { - className, - opened, - title, - onClose, - children, - withCloseButton, - overlayOpacity, - size, - transitionDuration, - exitTransitionDuration, - closeButtonLabel, - overlayColor, - overflow, - transition, - padding, - shadow, - radius, - id, - classNames, - styles, - closeOnClickOutside, - trapFocus, - closeOnEscape, - centered, - target, - withinPortal, - zIndex, - overlayBlur, - transitionTimingFunction, - fullScreen, - unstyled, - lockScroll: shouldLockScroll, - withFocusReturn - } = _a, others = __objRest(_a, [ - "className", - "opened", - "title", - "onClose", - "children", - "withCloseButton", - "overlayOpacity", - "size", - "transitionDuration", - "exitTransitionDuration", - "closeButtonLabel", - "overlayColor", - "overflow", - "transition", - "padding", - "shadow", - "radius", - "id", - "classNames", - "styles", - "closeOnClickOutside", - "trapFocus", - "closeOnEscape", - "centered", - "target", - "withinPortal", - "zIndex", - "overlayBlur", - "transitionTimingFunction", - "fullScreen", - "unstyled", - "lockScroll", - "withFocusReturn" - ]); - const baseId = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useId)(id); - const titleId = `${baseId}-title`; - const bodyId = `${baseId}-body`; - const { classes, cx, theme } = (0,_Modal_styles_js__WEBPACK_IMPORTED_MODULE_4__["default"])({ size, overflow, centered, zIndex, fullScreen }, { unstyled, classNames, styles, name: "Modal" }); - const focusTrapRef = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_5__.useFocusTrap)(trapFocus && opened); - const overlayRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const mergedRef = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_6__.useMergedRef)(focusTrapRef, overlayRef); - const _overlayOpacity = typeof overlayOpacity === "number" ? overlayOpacity : theme.colorScheme === "dark" ? 0.85 : 0.75; - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useScrollLock)(shouldLockScroll && opened); - const closeOnEscapePress = (event) => { - if (!trapFocus && event.key === "Escape" && closeOnEscape) { - onClose(); - } - }; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (!trapFocus) { - window.addEventListener("keydown", closeOnEscapePress); - return () => window.removeEventListener("keydown", closeOnEscapePress); - } - return void 0; - }, [trapFocus]); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_8__.useFocusReturn)({ opened, shouldReturnFocus: trapFocus && withFocusReturn }); - const clickTarget = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_9__.useWindowEvent)("mousedown", (e) => { - clickTarget.current = e.target; - }); - const handleOutsideClick = () => { - if (clickTarget.current === overlayRef.current) { - closeOnClickOutside && onClose(); - } - }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_10__.OptionalPortal, { - withinPortal, - target - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Transition_GroupedTransition_js__WEBPACK_IMPORTED_MODULE_11__.GroupedTransition, { - mounted: opened, - duration: transitionDuration, - exitDuration: exitTransitionDuration, - timingFunction: transitionTimingFunction, - transitions: { - modal: { - duration: transitionDuration, - transition: transition || (fullScreen ? "fade" : "pop") - }, - overlay: { - duration: transitionDuration / 2, - transition: "fade", - timingFunction: "ease" - } - } - }, (transitionStyles) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_12__.Box, __spreadValues({ - id: baseId, - className: cx(classes.root, className) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - style: transitionStyles.overlay - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Overlay_Overlay_js__WEBPACK_IMPORTED_MODULE_13__.Overlay, { - className: classes.overlay, - sx: { position: "fixed" }, - zIndex: 0, - blur: overlayBlur, - color: overlayColor || (theme.colorScheme === "dark" ? theme.colors.dark[9] : theme.black), - opacity: _overlayOpacity, - unstyled - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - role: "presentation", - className: classes.inner, - onClick: handleOutsideClick, - onKeyDown: (event) => { - var _a2; - const shouldTrigger = ((_a2 = event.target) == null ? void 0 : _a2.getAttribute("data-mantine-stop-propagation")) !== "true"; - shouldTrigger && event.key === "Escape" && closeOnEscape && onClose(); - }, - ref: mergedRef - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Paper_Paper_js__WEBPACK_IMPORTED_MODULE_14__.Paper, { - className: classes.modal, - shadow, - p: padding, - radius, - role: "dialog", - "aria-labelledby": titleId, - "aria-describedby": bodyId, - "aria-modal": true, - tabIndex: -1, - style: transitionStyles.modal, - unstyled, - onClick: (event) => event.stopPropagation() - }, (title || withCloseButton) && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.header - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_15__.Text, { - id: titleId, - className: classes.title - }, title), withCloseButton && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_16__.CloseButton, { - iconSize: 16, - onClick: onClose, - "aria-label": closeButtonLabel, - className: classes.close - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - id: bodyId, - className: classes.body - }, children))))))); -} -Modal.displayName = "@mantine/core/Modal"; - - -//# sourceMappingURL=Modal.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Modal/Modal.styles.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Modal/Modal.styles.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -const sizes = { - xs: 320, - sm: 380, - md: 440, - lg: 620, - xl: 780 -}; -function getFullScreenStyles(fullScreen) { - if (!fullScreen) { - return {}; - } - return { - position: "absolute", - top: 0, - left: 0, - right: 0, - bottom: 0, - maxHeight: "100vh", - overflowY: "auto" - }; -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { overflow, size, centered, zIndex, fullScreen }) => ({ - close: {}, - overlay: { - display: fullScreen ? "none" : void 0 - }, - root: { - position: "fixed", - zIndex, - top: 0, - left: 0, - right: 0, - bottom: 0 - }, - inner: { - position: "absolute", - top: 0, - left: 0, - right: 0, - bottom: 0, - overflowY: "auto", - padding: fullScreen ? 0 : `${theme.spacing.xl * 2}px ${theme.spacing.md}px`, - display: "flex", - justifyContent: "center", - alignItems: centered ? "center" : "flex-start" - }, - title: { - marginRight: theme.spacing.md, - textOverflow: "ellipsis", - display: "block", - wordBreak: "break-word" - }, - modal: __spreadValues({ - position: "relative", - width: fullScreen ? "100vw" : theme.fn.size({ sizes, size }), - borderRadius: fullScreen ? 0 : void 0, - outline: 0, - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white, - marginTop: centered ? "auto" : void 0, - marginBottom: centered ? "auto" : void 0, - zIndex: 1 - }, getFullScreenStyles(fullScreen)), - header: { - display: "flex", - alignItems: "center", - justifyContent: "space-between", - marginBottom: theme.spacing.md, - marginRight: -9 - }, - body: { - maxHeight: overflow === "inside" ? "calc(100vh - 185px)" : null, - overflowY: overflow === "inside" ? "auto" : null, - wordBreak: "break-word" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Modal.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/MultiSelect/DefaultValue/DefaultValue.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/MultiSelect/DefaultValue/DefaultValue.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DefaultValue: () => (/* binding */ DefaultValue) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _DefaultValue_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DefaultValue.styles.js */ "./node_modules/@mantine/core/esm/MultiSelect/DefaultValue/DefaultValue.styles.js"); -/* harmony import */ var _CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../CloseButton/CloseButton.js */ "./node_modules/@mantine/core/esm/CloseButton/CloseButton.js"); - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const buttonSizes = { - xs: 16, - sm: 22, - md: 24, - lg: 26, - xl: 30 -}; -function DefaultValue(_a) { - var _b = _a, { - label, - classNames, - styles, - className, - onRemove, - disabled, - readOnly, - size, - radius = "sm", - variant - } = _b, others = __objRest(_b, [ - "label", - "classNames", - "styles", - "className", - "onRemove", - "disabled", - "readOnly", - "size", - "radius", - "variant" - ]); - const { classes, cx } = (0,_DefaultValue_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ size, disabled, readOnly, radius, variant }, { classNames, styles, name: "MultiSelect" }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", __spreadValues({ - className: cx(classes.defaultValue, className) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { - className: classes.defaultValueLabel - }, label), !disabled && !readOnly && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_2__.CloseButton, { - "aria-hidden": true, - onMouseDown: onRemove, - size: buttonSizes[size], - radius: 2, - color: "blue", - variant: "transparent", - iconSize: buttonSizes[size] / 2, - className: classes.defaultValueRemove, - tabIndex: -1 - })); -} -DefaultValue.displayName = "@mantine/core/MultiSelect/DefaultValue"; - - -//# sourceMappingURL=DefaultValue.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/MultiSelect/DefaultValue/DefaultValue.styles.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/MultiSelect/DefaultValue/DefaultValue.styles.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -const sizes = { - xs: 16, - sm: 22, - md: 26, - lg: 30, - xl: 36 -}; -const fontSizes = { - xs: 10, - sm: 12, - md: 14, - lg: 16, - xl: 18 -}; -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size, disabled, radius, readOnly, variant }) => ({ - defaultValue: { - display: "flex", - alignItems: "center", - backgroundColor: disabled ? theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[3] : theme.colorScheme === "dark" ? theme.colors.dark[7] : variant === "filled" ? theme.white : theme.colors.gray[1], - color: disabled ? theme.colorScheme === "dark" ? theme.colors.dark[1] : theme.colors.gray[7] : theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.gray[7], - height: theme.fn.size({ size, sizes }), - paddingLeft: theme.fn.size({ size, sizes: theme.spacing }), - paddingRight: disabled || readOnly ? theme.fn.size({ size, sizes: theme.spacing }) : 0, - fontWeight: 500, - fontSize: theme.fn.size({ size, sizes: fontSizes }), - borderRadius: theme.fn.size({ size: radius, sizes: theme.radius }), - cursor: disabled ? "not-allowed" : "default", - userSelect: "none", - maxWidth: "calc(100% - 20px)" - }, - defaultValueRemove: { - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.gray[7], - marginLeft: theme.fn.size({ size, sizes: theme.spacing }) / 6 - }, - defaultValueLabel: { - display: "block", - overflow: "hidden", - textOverflow: "ellipsis", - whiteSpace: "nowrap" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=DefaultValue.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/MultiSelect/MultiSelect.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/MultiSelect/MultiSelect.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MultiSelect: () => (/* binding */ MultiSelect), -/* harmony export */ defaultFilter: () => (/* binding */ defaultFilter), -/* harmony export */ defaultShouldCreate: () => (/* binding */ defaultShouldCreate) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/use-scroll-into-view.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/group-options/group-options.js"); -/* harmony import */ var _DefaultValue_DefaultValue_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DefaultValue/DefaultValue.js */ "./node_modules/@mantine/core/esm/MultiSelect/DefaultValue/DefaultValue.js"); -/* harmony import */ var _Select_DefaultItem_DefaultItem_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Select/DefaultItem/DefaultItem.js */ "./node_modules/@mantine/core/esm/Select/DefaultItem/DefaultItem.js"); -/* harmony import */ var _filter_data_filter_data_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./filter-data/filter-data.js */ "./node_modules/@mantine/core/esm/MultiSelect/filter-data/filter-data.js"); -/* harmony import */ var _Select_SelectRightSection_get_select_right_section_props_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../Select/SelectRightSection/get-select-right-section-props.js */ "./node_modules/@mantine/core/esm/Select/SelectRightSection/get-select-right-section-props.js"); -/* harmony import */ var _Select_SelectScrollArea_SelectScrollArea_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../Select/SelectScrollArea/SelectScrollArea.js */ "./node_modules/@mantine/core/esm/Select/SelectScrollArea/SelectScrollArea.js"); -/* harmony import */ var _Select_SelectPopover_SelectPopover_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../Select/SelectPopover/SelectPopover.js */ "./node_modules/@mantine/core/esm/Select/SelectPopover/SelectPopover.js"); -/* harmony import */ var _Select_SelectItems_SelectItems_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../Select/SelectItems/SelectItems.js */ "./node_modules/@mantine/core/esm/Select/SelectItems/SelectItems.js"); -/* harmony import */ var _MultiSelect_styles_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MultiSelect.styles.js */ "./node_modules/@mantine/core/esm/MultiSelect/MultiSelect.styles.js"); -/* harmony import */ var _Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Box/style-system-props/extract-system-styles/extract-system-styles.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js"); -/* harmony import */ var _Input_Input_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Input/Input.js */ "./node_modules/@mantine/core/esm/Input/Input.js"); - - - - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function defaultFilter(value, selected, item) { - if (selected) { - return false; - } - return item.label.toLowerCase().trim().includes(value.toLowerCase().trim()); -} -function defaultShouldCreate(query, data) { - return !!query && !data.some((item) => item.value.toLowerCase() === query.toLowerCase()); -} -function filterValue(value, data) { - if (!Array.isArray(value)) { - return void 0; - } - if (data.length === 0) { - return []; - } - const flatData = data.map((item) => { - if (typeof item === "object") { - return item.value; - } - return item; - }); - return value.filter((val) => flatData.includes(val)); -} -const defaultProps = { - size: "sm", - valueComponent: _DefaultValue_DefaultValue_js__WEBPACK_IMPORTED_MODULE_1__.DefaultValue, - itemComponent: _Select_DefaultItem_DefaultItem_js__WEBPACK_IMPORTED_MODULE_2__.DefaultItem, - transition: "pop-top-left", - transitionDuration: 0, - maxDropdownHeight: 220, - shadow: "sm", - searchable: false, - filter: defaultFilter, - limit: Infinity, - clearSearchOnChange: true, - clearable: false, - clearSearchOnBlur: false, - disabled: false, - initiallyOpened: false, - creatable: false, - shouldCreate: defaultShouldCreate, - switchDirectionOnFlip: false, - zIndex: (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_3__.getDefaultZIndex)("popover"), - selectOnBlur: false, - clearButtonTabIndex: 0, - positionDependencies: [], - dropdownPosition: "flip" -}; -const MultiSelect = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_4__.useComponentDefaultProps)("MultiSelect", defaultProps, props), { - className, - style, - required, - label, - description, - size, - error, - classNames, - styles, - wrapperProps, - value, - defaultValue, - data, - onChange, - valueComponent: Value, - itemComponent, - id, - transition, - transitionDuration, - transitionTimingFunction, - maxDropdownHeight, - shadow, - nothingFound, - onFocus, - onBlur, - searchable, - placeholder, - filter, - limit, - clearSearchOnChange, - clearable, - clearSearchOnBlur, - clearButtonLabel, - variant, - onSearchChange, - searchValue, - disabled, - initiallyOpened, - radius, - icon, - rightSection, - rightSectionWidth, - creatable, - getCreateLabel, - shouldCreate, - onCreate, - sx, - dropdownComponent, - onDropdownClose, - onDropdownOpen, - maxSelectedValues, - withinPortal, - switchDirectionOnFlip, - zIndex, - selectOnBlur, - name, - dropdownPosition, - errorProps, - labelProps, - descriptionProps, - clearButtonTabIndex, - form, - positionDependencies, - onKeyDown, - unstyled, - inputContainer, - inputWrapperOrder, - readOnly, - withAsterisk, - hoverOnSearchChange, - disableSelectedItemFiltering - } = _a, others = __objRest(_a, [ - "className", - "style", - "required", - "label", - "description", - "size", - "error", - "classNames", - "styles", - "wrapperProps", - "value", - "defaultValue", - "data", - "onChange", - "valueComponent", - "itemComponent", - "id", - "transition", - "transitionDuration", - "transitionTimingFunction", - "maxDropdownHeight", - "shadow", - "nothingFound", - "onFocus", - "onBlur", - "searchable", - "placeholder", - "filter", - "limit", - "clearSearchOnChange", - "clearable", - "clearSearchOnBlur", - "clearButtonLabel", - "variant", - "onSearchChange", - "searchValue", - "disabled", - "initiallyOpened", - "radius", - "icon", - "rightSection", - "rightSectionWidth", - "creatable", - "getCreateLabel", - "shouldCreate", - "onCreate", - "sx", - "dropdownComponent", - "onDropdownClose", - "onDropdownOpen", - "maxSelectedValues", - "withinPortal", - "switchDirectionOnFlip", - "zIndex", - "selectOnBlur", - "name", - "dropdownPosition", - "errorProps", - "labelProps", - "descriptionProps", - "clearButtonTabIndex", - "form", - "positionDependencies", - "onKeyDown", - "unstyled", - "inputContainer", - "inputWrapperOrder", - "readOnly", - "withAsterisk", - "hoverOnSearchChange", - "disableSelectedItemFiltering" - ]); - const { classes, cx, theme } = (0,_MultiSelect_styles_js__WEBPACK_IMPORTED_MODULE_5__["default"])({ size, invalid: !!error }, { classNames, styles, unstyled, name: "MultiSelect" }); - const { systemStyles, rest } = (0,_Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_6__.extractSystemStyles)(others); - const inputRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const itemsRefs = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({}); - const uuid = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useId)(id); - const [dropdownOpened, setDropdownOpened] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initiallyOpened); - const [hovered, setHovered] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1); - const [direction, setDirection] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("column"); - const [_searchValue, handleSearchChange] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_8__.useUncontrolled)({ - value: searchValue, - defaultValue: "", - finalValue: void 0, - onChange: onSearchChange - }); - const [IMEOpen, setIMEOpen] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const { scrollIntoView, targetRef, scrollableRef } = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_9__.useScrollIntoView)({ - duration: 0, - offset: 5, - cancelable: false, - isList: true - }); - const isCreatable = creatable && typeof getCreateLabel === "function"; - let createLabel = null; - const formattedData = data.map((item) => typeof item === "string" ? { label: item, value: item } : item); - const sortedData = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_10__.groupOptions)({ data: formattedData }); - const [_value, setValue] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_8__.useUncontrolled)({ - value: filterValue(value, data), - defaultValue: filterValue(defaultValue, data), - finalValue: [], - onChange - }); - const valuesOverflow = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!!maxSelectedValues && maxSelectedValues < _value.length); - const handleValueRemove = (_val) => { - if (!readOnly) { - const newValue = _value.filter((val) => val !== _val); - setValue(newValue); - if (!!maxSelectedValues && newValue.length < maxSelectedValues) { - valuesOverflow.current = false; - } - } - }; - const handleInputChange = (event) => { - handleSearchChange(event.currentTarget.value); - !disabled && !valuesOverflow.current && searchable && setDropdownOpened(true); - }; - const handleInputFocus = (event) => { - typeof onFocus === "function" && onFocus(event); - !disabled && !valuesOverflow.current && searchable && setDropdownOpened(true); - }; - const filteredData = (0,_filter_data_filter_data_js__WEBPACK_IMPORTED_MODULE_11__.filterData)({ - data: sortedData, - searchable, - searchValue: _searchValue, - limit, - filter, - value: _value, - disableSelectedItemFiltering - }); - const getNextIndex = (index, nextItem, compareFn) => { - let i = index; - while (compareFn(i)) { - i = nextItem(i); - if (!filteredData[i].disabled) - return i; - } - return index; - }; - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_12__.useDidUpdate)(() => { - if (hoverOnSearchChange && _searchValue) { - setHovered(0); - } else { - setHovered(-1); - } - }, [_searchValue, hoverOnSearchChange]); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_12__.useDidUpdate)(() => { - if (!disabled && _value.length > data.length) { - setDropdownOpened(false); - } - if (!!maxSelectedValues && _value.length < maxSelectedValues) { - valuesOverflow.current = false; - } - if (!!maxSelectedValues && _value.length >= maxSelectedValues) { - valuesOverflow.current = true; - setDropdownOpened(false); - } - }, [_value]); - const handleItemSelect = (item) => { - if (!readOnly) { - clearSearchOnChange && handleSearchChange(""); - if (_value.includes(item.value)) { - handleValueRemove(item.value); - } else { - if (item.creatable && typeof onCreate === "function") { - const createdItem = onCreate(item.value); - if (typeof createdItem !== "undefined" && createdItem !== null) { - if (typeof createdItem === "string") { - setValue([..._value, createdItem]); - } else { - setValue([..._value, createdItem.value]); - } - } - } else { - setValue([..._value, item.value]); - } - if (_value.length === maxSelectedValues - 1) { - valuesOverflow.current = true; - setDropdownOpened(false); - } - if (hovered === filteredData.length - 1) { - setHovered(filteredData.length - 2); - } - if (filteredData.length === 1) { - setDropdownOpened(false); - } - } - } - }; - const handleInputBlur = (event) => { - typeof onBlur === "function" && onBlur(event); - if (selectOnBlur && filteredData[hovered] && dropdownOpened) { - handleItemSelect(filteredData[hovered]); - } - clearSearchOnBlur && handleSearchChange(""); - setDropdownOpened(false); - }; - const handleInputKeydown = (event) => { - if (IMEOpen) { - return; - } - onKeyDown == null ? void 0 : onKeyDown(event); - if (readOnly) { - return; - } - if (event.key !== "Backspace" && !!maxSelectedValues && valuesOverflow.current) { - return; - } - const isColumn = direction === "column"; - const handleNext = () => { - setHovered((current) => { - var _a2; - const nextIndex = getNextIndex(current, (index) => index + 1, (index) => index < filteredData.length - 1); - if (dropdownOpened) { - targetRef.current = itemsRefs.current[(_a2 = filteredData[nextIndex]) == null ? void 0 : _a2.value]; - scrollIntoView({ - alignment: isColumn ? "end" : "start" - }); - } - return nextIndex; - }); - }; - const handlePrevious = () => { - setHovered((current) => { - var _a2; - const nextIndex = getNextIndex(current, (index) => index - 1, (index) => index > 0); - if (dropdownOpened) { - targetRef.current = itemsRefs.current[(_a2 = filteredData[nextIndex]) == null ? void 0 : _a2.value]; - scrollIntoView({ - alignment: isColumn ? "start" : "end" - }); - } - return nextIndex; - }); - }; - switch (event.key) { - case "ArrowUp": { - event.preventDefault(); - setDropdownOpened(true); - isColumn ? handlePrevious() : handleNext(); - break; - } - case "ArrowDown": { - event.preventDefault(); - setDropdownOpened(true); - isColumn ? handleNext() : handlePrevious(); - break; - } - case "Enter": { - event.preventDefault(); - if (filteredData[hovered] && dropdownOpened) { - handleItemSelect(filteredData[hovered]); - } else { - setDropdownOpened(true); - } - break; - } - case " ": { - if (!searchable) { - event.preventDefault(); - if (filteredData[hovered] && dropdownOpened) { - handleItemSelect(filteredData[hovered]); - } else { - setDropdownOpened(true); - } - } - break; - } - case "Backspace": { - if (_value.length > 0 && _searchValue.length === 0) { - setValue(_value.slice(0, -1)); - setDropdownOpened(true); - if (maxSelectedValues) { - valuesOverflow.current = false; - } - } - break; - } - case "Home": { - if (!searchable) { - event.preventDefault(); - if (!dropdownOpened) { - setDropdownOpened(true); - } - const firstItemIndex = filteredData.findIndex((item) => !item.disabled); - setHovered(firstItemIndex); - scrollIntoView({ - alignment: isColumn ? "end" : "start" - }); - } - break; - } - case "End": { - if (!searchable) { - event.preventDefault(); - if (!dropdownOpened) { - setDropdownOpened(true); - } - const lastItemIndex = filteredData.map((item) => !!item.disabled).lastIndexOf(false); - setHovered(lastItemIndex); - scrollIntoView({ - alignment: isColumn ? "end" : "start" - }); - } - break; - } - case "Escape": { - setDropdownOpened(false); - } - } - }; - const selectedItems = _value.map((val) => { - let selectedItem = sortedData.find((item) => item.value === val && !item.disabled); - if (!selectedItem && isCreatable) { - selectedItem = { - value: val, - label: val - }; - } - return selectedItem; - }).filter((val) => !!val).map((item) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Value, __spreadProps(__spreadValues({}, item), { - variant, - disabled, - className: classes.value, - readOnly, - onRemove: (event) => { - event.preventDefault(); - event.stopPropagation(); - handleValueRemove(item.value); - }, - key: item.value, - size, - styles, - classNames, - radius - }))); - const isItemSelected = (itemValue) => _value.includes(itemValue); - const handleClear = () => { - var _a2; - handleSearchChange(""); - setValue([]); - (_a2 = inputRef.current) == null ? void 0 : _a2.focus(); - if (maxSelectedValues) { - valuesOverflow.current = false; - } - }; - if (isCreatable && shouldCreate(_searchValue, sortedData)) { - createLabel = getCreateLabel(_searchValue); - filteredData.push({ label: _searchValue, value: _searchValue, creatable: true }); - } - const shouldRenderDropdown = !readOnly && (filteredData.length > 0 ? dropdownOpened : dropdownOpened && !!nothingFound); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_12__.useDidUpdate)(() => { - const handler = shouldRenderDropdown ? onDropdownOpen : onDropdownClose; - typeof handler === "function" && handler(); - }, [shouldRenderDropdown]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_13__.Input.Wrapper, __spreadValues(__spreadValues({ - required, - id: uuid, - label, - error, - description, - size, - className, - style, - classNames, - styles, - __staticSelector: "MultiSelect", - sx, - errorProps, - descriptionProps, - labelProps, - inputContainer, - inputWrapperOrder, - unstyled, - withAsterisk - }, systemStyles), wrapperProps), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Select_SelectPopover_SelectPopover_js__WEBPACK_IMPORTED_MODULE_14__.SelectPopover, { - opened: shouldRenderDropdown, - transition, - transitionDuration, - shadow: "sm", - withinPortal, - __staticSelector: "MultiSelect", - onDirectionChange: setDirection, - switchDirectionOnFlip, - zIndex, - dropdownPosition, - positionDependencies: [...positionDependencies, _searchValue], - classNames, - styles, - unstyled - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Select_SelectPopover_SelectPopover_js__WEBPACK_IMPORTED_MODULE_14__.SelectPopover.Target, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.wrapper, - role: "combobox", - "aria-haspopup": "listbox", - "aria-owns": dropdownOpened && shouldRenderDropdown ? `${uuid}-items` : null, - "aria-controls": uuid, - "aria-expanded": dropdownOpened, - onMouseLeave: () => setHovered(-1), - tabIndex: -1 - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", { - type: "hidden", - name, - value: _value.join(","), - form, - disabled - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_13__.Input, __spreadValues({ - __staticSelector: "MultiSelect", - style: { overflow: "hidden" }, - component: "div", - multiline: true, - size, - variant, - disabled, - invalid: !!error, - required, - radius, - icon, - unstyled, - onMouseDown: (event) => { - var _a2; - event.preventDefault(); - !disabled && !valuesOverflow.current && setDropdownOpened(!dropdownOpened); - (_a2 = inputRef.current) == null ? void 0 : _a2.focus(); - }, - classNames: __spreadProps(__spreadValues({}, classNames), { - input: cx({ [classes.input]: !searchable }, classNames == null ? void 0 : classNames.input) - }) - }, (0,_Select_SelectRightSection_get_select_right_section_props_js__WEBPACK_IMPORTED_MODULE_15__.getSelectRightSectionProps)({ - theme, - rightSection, - rightSectionWidth, - styles, - size, - shouldClear: clearable && _value.length > 0, - clearButtonLabel, - onClear: handleClear, - error, - disabled, - clearButtonTabIndex, - readOnly - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.values - }, selectedItems, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", __spreadValues({ - ref: (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_16__.useMergedRef)(ref, inputRef), - type: "search", - id: uuid, - className: cx(classes.searchInput, { - [classes.searchInputPointer]: !searchable, - [classes.searchInputInputHidden]: !dropdownOpened && _value.length > 0 || !searchable && _value.length > 0, - [classes.searchInputEmpty]: _value.length === 0 - }), - onKeyDown: handleInputKeydown, - value: _searchValue, - onChange: handleInputChange, - onFocus: handleInputFocus, - onBlur: handleInputBlur, - readOnly: !searchable || valuesOverflow.current || readOnly, - placeholder: _value.length === 0 ? placeholder : void 0, - disabled, - "data-mantine-stop-propagation": dropdownOpened, - autoComplete: "off", - onCompositionStart: () => setIMEOpen(true), - onCompositionEnd: () => setIMEOpen(false) - }, rest)))))), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Select_SelectPopover_SelectPopover_js__WEBPACK_IMPORTED_MODULE_14__.SelectPopover.Dropdown, { - component: dropdownComponent || _Select_SelectScrollArea_SelectScrollArea_js__WEBPACK_IMPORTED_MODULE_17__.SelectScrollArea, - maxHeight: maxDropdownHeight, - direction, - id: uuid, - innerRef: scrollableRef, - __staticSelector: "MultiSelect", - classNames, - styles - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Select_SelectItems_SelectItems_js__WEBPACK_IMPORTED_MODULE_18__.SelectItems, { - data: filteredData, - hovered, - classNames, - styles, - uuid, - __staticSelector: "MultiSelect", - onItemHover: setHovered, - onItemSelect: handleItemSelect, - itemsRefs, - itemComponent, - size, - nothingFound, - isItemSelected, - creatable: creatable && !!createLabel, - createLabel, - unstyled - })))); -}); -MultiSelect.displayName = "@mantine/core/MultiSelect"; - - -//# sourceMappingURL=MultiSelect.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/MultiSelect/MultiSelect.styles.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/MultiSelect/MultiSelect.styles.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); -/* harmony import */ var _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Input/Input.styles.js */ "./node_modules/@mantine/core/esm/Input/Input.styles.js"); - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size, invalid }) => ({ - wrapper: { - position: "relative" - }, - values: { - minHeight: theme.fn.size({ size, sizes: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_1__.sizes }) - 2, - display: "flex", - alignItems: "center", - flexWrap: "wrap", - marginLeft: `calc(${-theme.spacing.xs}px / 2)`, - boxSizing: "border-box" - }, - value: { - margin: `calc(${theme.spacing.xs}px / 2 - 2px) calc(${theme.spacing.xs}px / 2)` - }, - searchInput: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - flex: 1, - minWidth: 60, - backgroundColor: "transparent", - border: 0, - outline: 0, - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - padding: 0, - marginLeft: `calc(${theme.spacing.xs}px / 2)`, - appearance: "none", - color: "inherit", - lineHeight: `${theme.fn.size({ size, sizes: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_1__.sizes }) - 2}px`, - "&::placeholder": { - opacity: 1, - color: invalid ? theme.colors.red[theme.colorScheme === "dark" ? 6 : 7] : theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[5] - }, - "&:disabled": { - cursor: "not-allowed" - } - }), - searchInputEmpty: { - width: "100%" - }, - searchInputInputHidden: { - width: 0, - height: 0, - margin: 0, - overflow: "hidden" - }, - searchInputPointer: { - cursor: "pointer", - "&:disabled": { - cursor: "not-allowed" - } - }, - input: { - cursor: "pointer", - "&:disabled": { - cursor: "not-allowed" - } - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=MultiSelect.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/MultiSelect/filter-data/filter-data.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/MultiSelect/filter-data/filter-data.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ filterData: () => (/* binding */ filterData) -/* harmony export */ }); -function filterData({ - data, - searchable, - limit, - searchValue, - filter, - value, - disableSelectedItemFiltering -}) { - if (!searchable && value.length === 0) { - return data; - } - if (!searchable) { - const result2 = []; - for (let i = 0; i < data.length; i += 1) { - if (!!disableSelectedItemFiltering || !value.some((val) => val === data[i].value && !data[i].disabled)) { - result2.push(data[i]); - } - } - return result2; - } - const result = []; - for (let i = 0; i < data.length; i += 1) { - if (filter(searchValue, value.some((val) => val === data[i].value && !data[i].disabled), data[i])) { - result.push(data[i]); - } - if (result.length >= limit) { - break; - } - } - return result; -} - - -//# sourceMappingURL=filter-data.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Notification/Notification.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Notification/Notification.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Notification: () => (/* binding */ Notification) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Notification_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Notification.styles.js */ "./node_modules/@mantine/core/esm/Notification/Notification.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Loader_Loader_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Loader/Loader.js */ "./node_modules/@mantine/core/esm/Loader/Loader.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../CloseButton/CloseButton.js */ "./node_modules/@mantine/core/esm/CloseButton/CloseButton.js"); - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const Notification = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Notification", {}, props), { - className, - color, - radius, - loading, - disallowClose, - title, - icon, - children, - onClose, - closeButtonProps, - classNames, - styles, - unstyled - } = _a, others = __objRest(_a, [ - "className", - "color", - "radius", - "loading", - "disallowClose", - "title", - "icon", - "children", - "onClose", - "closeButtonProps", - "classNames", - "styles", - "unstyled" - ]); - const { classes, cx } = (0,_Notification_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ color, radius, withTitle: !!title }, { classNames, styles, unstyled, name: "Notification" }); - const withIcon = icon || loading; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - className: cx(classes.root, { [classes.withIcon]: withIcon }, className), - role: "alert", - ref - }, others), icon && !loading && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.icon - }, icon), loading && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Loader_Loader_js__WEBPACK_IMPORTED_MODULE_4__.Loader, { - size: 28, - color, - className: classes.loader - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.body - }, title && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_5__.Text, { - className: classes.title, - size: "sm", - weight: 500 - }, title), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_5__.Text, { - color: "dimmed", - className: classes.description, - size: "sm" - }, children)), !disallowClose && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_6__.CloseButton, __spreadProps(__spreadValues({ - iconSize: 16, - color: "gray" - }, closeButtonProps), { - onClick: onClose, - className: classes.closeButton - }))); -}); -Notification.displayName = "@mantine/core/Notification"; - - -//# sourceMappingURL=Notification.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Notification/Notification.styles.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Notification/Notification.styles.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { color, radius, withTitle }, getRef) => { - const _radius = theme.fn.radius(radius); - const topBottom = Math.min(Math.max(_radius / 1.2, 4), 30); - const colors = theme.fn.variant({ variant: "filled", color }); - return { - closeButton: theme.fn.hover({ - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[0] - }), - icon: { - ref: getRef("icon"), - boxSizing: "border-box", - marginRight: theme.spacing.md, - width: 28, - height: 28, - borderRadius: 28, - display: "flex", - flex: "none", - alignItems: "center", - justifyContent: "center", - color: theme.white - }, - withIcon: { - paddingLeft: theme.spacing.xs, - "&::before": { - display: "none" - } - }, - root: { - boxSizing: "border-box", - position: "relative", - display: "flex", - alignItems: "center", - overflow: "hidden", - paddingLeft: 22, - paddingRight: 5, - paddingTop: theme.spacing.xs, - paddingBottom: theme.spacing.xs, - borderRadius: _radius, - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.white, - boxShadow: theme.shadows.lg, - border: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[2]}`, - "&::before": { - content: '""', - display: "block", - position: "absolute", - width: 6, - top: topBottom, - bottom: topBottom, - left: 4, - borderRadius: _radius, - backgroundColor: colors.background - }, - [`& .${getRef("icon")}`]: { - backgroundColor: colors.background, - color: theme.white - } - }, - body: { - flex: 1, - overflow: "hidden", - marginRight: 10 - }, - loader: { - marginRight: theme.spacing.md - }, - title: { - lineHeight: 1.4, - marginBottom: 2, - overflow: "hidden", - textOverflow: "ellipsis", - color: theme.colorScheme === "dark" ? theme.white : theme.colors.gray[9] - }, - description: { - color: withTitle ? theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6] : theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - lineHeight: 1.4, - overflow: "hidden", - textOverflow: "ellipsis" - } - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Notification.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Overlay/Overlay.js": -/*!***********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Overlay/Overlay.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Overlay: () => (/* binding */ Overlay), -/* harmony export */ _Overlay: () => (/* binding */ _Overlay) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/pack-sx/pack-sx.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _Overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Overlay.styles.js */ "./node_modules/@mantine/core/esm/Overlay/Overlay.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - opacity: 0.6, - color: "#fff", - zIndex: (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.getDefaultZIndex)("modal"), - radius: 0, - blur: 0 -}; -const _Overlay = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("Overlay", defaultProps, props), { opacity, blur, color, gradient, zIndex, radius, sx, unstyled, className } = _a, others = __objRest(_a, ["opacity", "blur", "color", "gradient", "zIndex", "radius", "sx", "unstyled", "className"]); - const { classes, cx } = (0,_Overlay_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ zIndex }, { name: "Overlay", unstyled }); - const background = gradient ? { backgroundImage: gradient } : { backgroundColor: color }; - const innerOverlay = (otherProps) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - ref, - className: cx(classes.root, className), - sx: [ - (theme) => __spreadProps(__spreadValues({}, background), { - opacity, - borderRadius: theme.fn.size({ size: radius, sizes: theme.radius }) - }), - ...(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.packSx)(sx) - ] - }, otherProps)); - if (blur) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.root, className), - sx: [{ backdropFilter: `blur(${blur}px)` }, ...(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.packSx)(sx)] - }, others), innerOverlay()); - } - return innerOverlay(others); -}); -_Overlay.displayName = "@mantine/core/Overlay"; -const Overlay = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_6__.createPolymorphicComponent)(_Overlay); - - -//# sourceMappingURL=Overlay.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Overlay/Overlay.styles.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Overlay/Overlay.styles.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { zIndex }) => ({ - root: { - position: "absolute", - top: 0, - bottom: 0, - left: 0, - right: 0, - zIndex - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Overlay.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Pagination/DefaultItem/DefaultItem.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Pagination/DefaultItem/DefaultItem.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DefaultItem: () => (/* binding */ DefaultItem) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _icons_DotsIcon_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../icons/DotsIcon.js */ "./node_modules/@mantine/core/esm/Pagination/icons/DotsIcon.js"); -/* harmony import */ var _icons_NextIcon_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icons/NextIcon.js */ "./node_modules/@mantine/core/esm/Pagination/icons/NextIcon.js"); -/* harmony import */ var _icons_PrevIcon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icons/PrevIcon.js */ "./node_modules/@mantine/core/esm/Pagination/icons/PrevIcon.js"); -/* harmony import */ var _icons_FirstIcon_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icons/FirstIcon.js */ "./node_modules/@mantine/core/esm/Pagination/icons/FirstIcon.js"); -/* harmony import */ var _icons_LastIcon_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icons/LastIcon.js */ "./node_modules/@mantine/core/esm/Pagination/icons/LastIcon.js"); - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const icons = { - dots: _icons_DotsIcon_js__WEBPACK_IMPORTED_MODULE_1__.DotsIcon, - next: _icons_NextIcon_js__WEBPACK_IMPORTED_MODULE_2__.NextIcon, - prev: _icons_PrevIcon_js__WEBPACK_IMPORTED_MODULE_3__.PrevIcon, - first: _icons_FirstIcon_js__WEBPACK_IMPORTED_MODULE_4__.FirstIcon, - last: _icons_LastIcon_js__WEBPACK_IMPORTED_MODULE_5__.LastIcon -}; -const rtlIcons = { - dots: _icons_DotsIcon_js__WEBPACK_IMPORTED_MODULE_1__.DotsIcon, - prev: _icons_NextIcon_js__WEBPACK_IMPORTED_MODULE_2__.NextIcon, - next: _icons_PrevIcon_js__WEBPACK_IMPORTED_MODULE_3__.PrevIcon, - last: _icons_FirstIcon_js__WEBPACK_IMPORTED_MODULE_4__.FirstIcon, - first: _icons_LastIcon_js__WEBPACK_IMPORTED_MODULE_5__.LastIcon -}; -function DefaultItem(_a) { - var _b = _a, { page, active, onClick } = _b, others = __objRest(_b, ["page", "active", "onClick"]); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_6__.useMantineTheme)(); - const Item = (theme.dir === "rtl" ? rtlIcons : icons)[page]; - const children = Item ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Item, null) : page; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", __spreadValues({ - type: "button", - onClick - }, others), children); -} -DefaultItem.displayName = "@mantine/core/Pagination/DefaultItem"; - - -//# sourceMappingURL=DefaultItem.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Pagination/Pagination.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Pagination/Pagination.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Pagination: () => (/* binding */ Pagination) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-pagination/use-pagination.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Group_Group_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Group/Group.js */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _DefaultItem_DefaultItem_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DefaultItem/DefaultItem.js */ "./node_modules/@mantine/core/esm/Pagination/DefaultItem/DefaultItem.js"); -/* harmony import */ var _Pagination_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Pagination.styles.js */ "./node_modules/@mantine/core/esm/Pagination/Pagination.styles.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - itemComponent: _DefaultItem_DefaultItem_js__WEBPACK_IMPORTED_MODULE_1__.DefaultItem, - initialPage: 1, - siblings: 1, - boundaries: 1, - size: "md", - radius: "sm", - withEdges: false, - withControls: true -}; -const Pagination = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("Pagination", defaultProps, props), { - itemComponent: Item, - classNames, - styles, - page, - initialPage, - color, - total, - siblings, - boundaries, - size, - radius, - onChange, - getItemAriaLabel, - spacing, - withEdges, - withControls, - sx, - unstyled, - disabled - } = _a, others = __objRest(_a, [ - "itemComponent", - "classNames", - "styles", - "page", - "initialPage", - "color", - "total", - "siblings", - "boundaries", - "size", - "radius", - "onChange", - "getItemAriaLabel", - "spacing", - "withEdges", - "withControls", - "sx", - "unstyled", - "disabled" - ]); - const { classes, theme } = (0,_Pagination_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ color, size, radius }, { classNames, styles, unstyled, name: "Pagination" }); - const { range, setPage, next, previous, active, first, last } = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.usePagination)({ - page, - siblings, - total, - onChange, - initialPage, - boundaries - }); - if (total <= 0) { - return null; - } - const items = range.map((pageNumber, index) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Item, { - key: index, - page: pageNumber, - active: pageNumber === active, - "aria-current": pageNumber === active ? "page" : void 0, - "aria-label": typeof getItemAriaLabel === "function" ? getItemAriaLabel(pageNumber) : null, - tabIndex: pageNumber === "dots" ? -1 : 0, - "data-dots": pageNumber === "dots" || void 0, - "data-active": pageNumber === active || void 0, - className: classes.item, - onClick: pageNumber !== "dots" ? () => setPage(pageNumber) : void 0, - disabled - })); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Group_Group_js__WEBPACK_IMPORTED_MODULE_5__.Group, __spreadValues({ - role: "navigation", - spacing: spacing != null ? spacing : theme.fn.size({ size, sizes: theme.spacing }) / 2, - ref, - sx, - unstyled - }, others), withEdges && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Item, { - page: "first", - onClick: first, - "aria-label": getItemAriaLabel ? getItemAriaLabel("first") : void 0, - "aria-disabled": active === 1 || disabled, - className: classes.item, - disabled: active === 1 || disabled - }), withControls && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Item, { - page: "prev", - onClick: previous, - "aria-label": getItemAriaLabel ? getItemAriaLabel("prev") : void 0, - "aria-disabled": active === 1 || disabled, - className: classes.item, - disabled: active === 1 || disabled - }), items, withControls && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Item, { - page: "next", - onClick: next, - "aria-label": getItemAriaLabel ? getItemAriaLabel("next") : void 0, - "aria-disabled": active === total || disabled, - className: classes.item, - disabled: active === total || disabled - }), withEdges && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Item, { - page: "last", - onClick: last, - "aria-label": getItemAriaLabel ? getItemAriaLabel("last") : void 0, - "aria-disabled": active === total || disabled, - className: classes.item, - disabled: active === total || disabled - })); -}); -Pagination.displayName = "@mantine/core/Pagination"; - - -//# sourceMappingURL=Pagination.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Pagination/Pagination.styles.js": -/*!************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Pagination/Pagination.styles.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 22, - sm: 26, - md: 32, - lg: 38, - xl: 44 -}; -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size, radius, color }) => { - const colors = theme.fn.variant({ color, variant: "filled" }); - return { - item: __spreadProps(__spreadValues(__spreadValues({}, theme.fn.fontStyles()), theme.fn.focusStyles()), { - cursor: "pointer", - userSelect: "none", - display: "flex", - alignItems: "center", - justifyContent: "center", - border: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[4]}`, - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - height: theme.fn.size({ size, sizes }), - minWidth: theme.fn.size({ size, sizes }), - padding: `0 ${theme.fn.size({ size, sizes: theme.spacing }) / 2}px`, - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - borderRadius: theme.fn.radius(radius), - lineHeight: 1, - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.white, - "&:active:not(:disabled):not([data-dots])": theme.activeStyles, - "&:disabled": { - opacity: 0.6, - cursor: "not-allowed", - color: theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[5] - }, - "&[data-dots]": { - cursor: "default", - borderColor: "transparent", - backgroundColor: "transparent" - }, - "&[data-active]": { - borderColor: "transparent", - color: colors.color, - backgroundColor: colors.background - } - }) - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Pagination.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Pagination/icons/DotsIcon.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Pagination/icons/DotsIcon.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DotsIcon: () => (/* binding */ DotsIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function DotsIcon(props) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - width: 16, - height: 16, - viewBox: "0 0 16 16", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z", - fill: "currentColor" - })); -} - - -//# sourceMappingURL=DotsIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Pagination/icons/FirstIcon.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Pagination/icons/FirstIcon.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ FirstIcon: () => (/* binding */ FirstIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function FirstIcon(props) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - width: 16, - height: 16, - viewBox: "0 0 16 16", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z", - fill: "currentColor" - })); -} - - -//# sourceMappingURL=FirstIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Pagination/icons/LastIcon.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Pagination/icons/LastIcon.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ LastIcon: () => (/* binding */ LastIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function LastIcon(props) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - width: 16, - height: 16, - viewBox: "0 0 16 16", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z", - fill: "currentColor" - })); -} - - -//# sourceMappingURL=LastIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Pagination/icons/NextIcon.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Pagination/icons/NextIcon.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ NextIcon: () => (/* binding */ NextIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function NextIcon(props) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - width: 16, - height: 16, - viewBox: "0 0 16 16", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z", - fill: "currentColor" - })); -} - - -//# sourceMappingURL=NextIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Pagination/icons/PrevIcon.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Pagination/icons/PrevIcon.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PrevIcon: () => (/* binding */ PrevIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function PrevIcon(props) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - width: 16, - height: 16, - viewBox: "0 0 16 16", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" - }, props), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z", - fill: "currentColor" - })); -} - - -//# sourceMappingURL=PrevIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Paper/Paper.js": -/*!*******************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Paper/Paper.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Paper: () => (/* binding */ Paper), -/* harmony export */ _Paper: () => (/* binding */ _Paper) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _Paper_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Paper.styles.js */ "./node_modules/@mantine/core/esm/Paper/Paper.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -const _Paper = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Paper", defaultProps, props), { className, children, radius, withBorder, shadow, unstyled } = _a, others = __objRest(_a, ["className", "children", "radius", "withBorder", "shadow", "unstyled"]); - const { classes, cx } = (0,_Paper_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ radius, shadow, withBorder }, { name: "Paper", unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others), children); -}); -_Paper.displayName = "@mantine/core/Paper"; -const Paper = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createPolymorphicComponent)(_Paper); - - -//# sourceMappingURL=Paper.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Paper/Paper.styles.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Paper/Paper.styles.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { radius, shadow, withBorder }) => ({ - root: { - outline: 0, - WebkitTapHighlightColor: "transparent", - display: "block", - textDecoration: "none", - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white, - boxSizing: "border-box", - borderRadius: theme.fn.radius(radius), - boxShadow: theme.shadows[shadow] || shadow || "none", - border: withBorder ? `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[3]}` : void 0 - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Paper.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/PasswordInput/PasswordInput.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/PasswordInput/PasswordInput.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PasswordInput: () => (/* binding */ PasswordInput) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _PasswordToggleIcon_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PasswordToggleIcon.js */ "./node_modules/@mantine/core/esm/PasswordInput/PasswordToggleIcon.js"); -/* harmony import */ var _PasswordInput_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PasswordInput.styles.js */ "./node_modules/@mantine/core/esm/PasswordInput/PasswordInput.styles.js"); -/* harmony import */ var _Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Box/style-system-props/extract-system-styles/extract-system-styles.js */ "./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js"); -/* harmony import */ var _ActionIcon_ActionIcon_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../ActionIcon/ActionIcon.js */ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js"); -/* harmony import */ var _Input_Input_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Input/Input.js */ "./node_modules/@mantine/core/esm/Input/Input.js"); - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const buttonSizes = { - xs: 22, - sm: 26, - md: 28, - lg: 32, - xl: 40 -}; -const iconSizes = { - xs: 12, - sm: 15, - md: 17, - lg: 19, - xl: 21 -}; -const rightSectionSizes = { - xs: 28, - sm: 32, - md: 34, - lg: 44, - xl: 54 -}; -const defaultProps = { - size: "sm", - toggleTabIndex: -1, - visibilityToggleIcon: _PasswordToggleIcon_js__WEBPACK_IMPORTED_MODULE_1__.PasswordToggleIcon, - __staticSelector: "PasswordInput" -}; -const PasswordInput = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("PasswordInput", defaultProps, props), { - radius, - disabled, - size, - toggleTabIndex, - className, - id, - label, - error, - required, - style, - icon, - description, - wrapperProps, - classNames, - styles, - variant, - visibilityToggleIcon: VisibilityToggleIcon, - __staticSelector, - rightSection: _rightSection, - rightSectionWidth: _rightSectionWidth, - rightSectionProps: _rightSectionProps, - sx, - labelProps, - descriptionProps, - errorProps, - unstyled, - visibilityToggleLabel, - withAsterisk, - inputContainer, - iconWidth, - inputWrapperOrder, - visible, - defaultVisible, - onVisibilityChange - } = _a, others = __objRest(_a, [ - "radius", - "disabled", - "size", - "toggleTabIndex", - "className", - "id", - "label", - "error", - "required", - "style", - "icon", - "description", - "wrapperProps", - "classNames", - "styles", - "variant", - "visibilityToggleIcon", - "__staticSelector", - "rightSection", - "rightSectionWidth", - "rightSectionProps", - "sx", - "labelProps", - "descriptionProps", - "errorProps", - "unstyled", - "visibilityToggleLabel", - "withAsterisk", - "inputContainer", - "iconWidth", - "inputWrapperOrder", - "visible", - "defaultVisible", - "onVisibilityChange" - ]); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useMantineTheme)(); - const rightSectionWidth = theme.fn.size({ size, sizes: rightSectionSizes }); - const { classes, cx } = (0,_PasswordInput_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ size, rightSectionWidth }, { name: "PasswordInput", classNames, styles, unstyled }); - const uuid = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.useId)(id); - const { systemStyles, rest } = (0,_Box_style_system_props_extract_system_styles_extract_system_styles_js__WEBPACK_IMPORTED_MODULE_5__.extractSystemStyles)(others); - const [_visible, setVisibility] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_6__.useUncontrolled)({ - value: visible, - defaultValue: defaultVisible, - finalValue: false, - onChange: onVisibilityChange - }); - const toggleVisibility = () => setVisibility(!_visible); - const rightSection = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ActionIcon_ActionIcon_js__WEBPACK_IMPORTED_MODULE_7__.ActionIcon, { - className: classes.visibilityToggle, - tabIndex: toggleTabIndex, - radius, - size: theme.fn.size({ size, sizes: buttonSizes }), - "aria-hidden": !visibilityToggleLabel, - "aria-label": visibilityToggleLabel, - unstyled, - onMouseDown: (event) => { - event.preventDefault(); - toggleVisibility(); - }, - onKeyDown: (event) => { - if (event.key === " ") { - event.preventDefault(); - toggleVisibility(); - } - } - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(VisibilityToggleIcon, { - reveal: _visible, - size: theme.fn.size({ size, sizes: iconSizes }) - })); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_8__.Input.Wrapper, __spreadValues(__spreadValues({ - required, - id: uuid, - label, - error, - description, - size, - className, - style, - classNames, - styles, - __staticSelector, - sx, - errorProps, - descriptionProps, - labelProps, - unstyled, - withAsterisk, - inputWrapperOrder, - inputContainer - }, systemStyles), wrapperProps), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_8__.Input, { - component: "div", - invalid: !!error, - icon, - size, - classNames: __spreadProps(__spreadValues({}, classNames), { input: classes.input }), - styles, - radius, - disabled, - __staticSelector, - rightSectionWidth, - rightSection: !disabled && rightSection, - variant, - unstyled, - iconWidth - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", __spreadValues({ - type: _visible ? "text" : "password", - required, - className: cx(classes.innerInput, { - [classes.withIcon]: icon, - [classes.invalid]: !!error - }), - disabled, - id: uuid, - ref - }, rest)))); -}); -PasswordInput.displayName = "@mantine/core/PasswordInput"; - - -//# sourceMappingURL=PasswordInput.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/PasswordInput/PasswordInput.styles.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/PasswordInput/PasswordInput.styles.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); -/* harmony import */ var _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Input/Input.styles.js */ "./node_modules/@mantine/core/esm/Input/Input.styles.js"); - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size, rightSectionWidth }) => ({ - visibilityToggle: {}, - input: { - position: "relative", - overflow: "hidden" - }, - innerInput: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - backgroundColor: "transparent", - border: "1px solid transparent", - borderLeftWidth: 0, - borderRightWidth: 0, - boxSizing: "border-box", - position: "absolute", - display: "block", - width: `calc(100% - ${rightSectionWidth}px)`, - paddingLeft: theme.fn.size({ size, sizes: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_1__.sizes }) / 3, - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - height: theme.fn.size({ size, sizes: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_1__.sizes }) - 2, - lineHeight: `${theme.fn.size({ size, sizes: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_1__.sizes }) - 4}px`, - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - top: 0, - bottom: 0, - left: 0, - right: 0, - "&::-ms-reveal, &::-ms-clear": { - display: "none" - }, - "&:focus": { - outline: 0 - }, - "&:disabled": { - cursor: "not-allowed" - }, - "&::placeholder": __spreadProps(__spreadValues({}, theme.fn.placeholderStyles()), { - opacity: 1 - }) - }), - invalid: { - color: theme.fn.variant({ variant: "filled", color: "red" }).background, - "&::placeholder": { - opacity: 1, - color: theme.fn.variant({ variant: "filled", color: "red" }).background - } - }, - withIcon: { - paddingLeft: `${theme.fn.size({ size, sizes: _Input_Input_styles_js__WEBPACK_IMPORTED_MODULE_1__.sizes })}px !important` - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=PasswordInput.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/PasswordInput/PasswordToggleIcon.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/PasswordInput/PasswordToggleIcon.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PasswordToggleIcon: () => (/* binding */ PasswordToggleIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const PasswordToggleIcon = ({ - reveal, - size = 15 -}) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", { - width: size, - height: size, - viewBox: "0 0 15 15", - fill: "none", - xmlns: "http://www.w3.org/2000/svg" -}, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: reveal ? "M13.3536 2.35355C13.5488 2.15829 13.5488 1.84171 13.3536 1.64645C13.1583 1.45118 12.8417 1.45118 12.6464 1.64645L10.6828 3.61012C9.70652 3.21671 8.63759 3 7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C0.902945 9.08812 2.02314 10.1861 3.36061 10.9323L1.64645 12.6464C1.45118 12.8417 1.45118 13.1583 1.64645 13.3536C1.84171 13.5488 2.15829 13.5488 2.35355 13.3536L4.31723 11.3899C5.29348 11.7833 6.36241 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C14.0971 5.9119 12.9769 4.81391 11.6394 4.06771L13.3536 2.35355ZM9.90428 4.38861C9.15332 4.1361 8.34759 4 7.5 4C4.80285 4 2.52952 5.37816 1.09622 7.50001C1.87284 8.6497 2.89609 9.58106 4.09974 10.1931L9.90428 4.38861ZM5.09572 10.6114L10.9003 4.80685C12.1039 5.41894 13.1272 6.35031 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11C6.65241 11 5.84668 10.8639 5.09572 10.6114Z" : "M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z", - fill: "currentColor", - fillRule: "evenodd", - clipRule: "evenodd" -})); - - -//# sourceMappingURL=PasswordToggleIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Popover/Popover.context.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Popover/Popover.context.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PopoverContextProvider: () => (/* binding */ PopoverContextProvider), -/* harmony export */ usePopoverContext: () => (/* binding */ usePopoverContext) -/* harmony export */ }); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-safe-context/create-safe-context.js"); -/* harmony import */ var _Popover_errors_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Popover.errors.js */ "./node_modules/@mantine/core/esm/Popover/Popover.errors.js"); - - - -const [PopoverContextProvider, usePopoverContext] = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_0__.createSafeContext)(_Popover_errors_js__WEBPACK_IMPORTED_MODULE_1__.POPOVER_ERRORS.context); - - -//# sourceMappingURL=Popover.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Popover/Popover.errors.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Popover/Popover.errors.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ POPOVER_ERRORS: () => (/* binding */ POPOVER_ERRORS) -/* harmony export */ }); -const POPOVER_ERRORS = { - context: "Popover component was not found in the tree", - children: "Popover.Target component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported" -}; - - -//# sourceMappingURL=Popover.errors.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Popover/Popover.js": -/*!***********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Popover/Popover.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Popover: () => (/* binding */ Popover) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-click-outside/use-click-outside.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _use_popover_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./use-popover.js */ "./node_modules/@mantine/core/esm/Popover/use-popover.js"); -/* harmony import */ var _Popover_context_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Popover.context.js */ "./node_modules/@mantine/core/esm/Popover/Popover.context.js"); -/* harmony import */ var _PopoverTarget_PopoverTarget_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PopoverTarget/PopoverTarget.js */ "./node_modules/@mantine/core/esm/Popover/PopoverTarget/PopoverTarget.js"); -/* harmony import */ var _PopoverDropdown_PopoverDropdown_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./PopoverDropdown/PopoverDropdown.js */ "./node_modules/@mantine/core/esm/Popover/PopoverDropdown/PopoverDropdown.js"); -/* harmony import */ var _Floating_get_floating_position_get_floating_position_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Floating/get-floating-position/get-floating-position.js */ "./node_modules/@mantine/core/esm/Floating/get-floating-position/get-floating-position.js"); - - - - - - - - - -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - position: "bottom", - offset: 8, - positionDependencies: [], - transition: "fade", - transitionDuration: 150, - middlewares: { flip: true, shift: true, inline: false }, - arrowSize: 7, - arrowOffset: 5, - arrowRadius: 0, - arrowPosition: "side", - closeOnClickOutside: true, - withinPortal: false, - closeOnEscape: true, - trapFocus: false, - withRoles: true, - returnFocus: false, - clickOutsideEvents: ["mousedown", "touchstart"], - zIndex: (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.getDefaultZIndex)("popover"), - __staticSelector: "Popover", - width: "max-content" -}; -function Popover(props) { - var _b, _c, _d, _e, _f, _g; - const arrowRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("Popover", defaultProps, props), { - children, - position, - offset, - onPositionChange, - positionDependencies, - opened, - transition, - transitionDuration, - width, - middlewares, - withArrow, - arrowSize, - arrowOffset, - arrowRadius, - arrowPosition, - unstyled, - classNames, - styles, - closeOnClickOutside, - withinPortal, - closeOnEscape, - clickOutsideEvents, - trapFocus, - onClose, - onOpen, - onChange, - zIndex, - radius, - shadow, - id, - defaultOpened, - exitTransitionDuration, - __staticSelector, - withRoles, - disabled, - returnFocus - } = _a, others = __objRest(_a, [ - "children", - "position", - "offset", - "onPositionChange", - "positionDependencies", - "opened", - "transition", - "transitionDuration", - "width", - "middlewares", - "withArrow", - "arrowSize", - "arrowOffset", - "arrowRadius", - "arrowPosition", - "unstyled", - "classNames", - "styles", - "closeOnClickOutside", - "withinPortal", - "closeOnEscape", - "clickOutsideEvents", - "trapFocus", - "onClose", - "onOpen", - "onChange", - "zIndex", - "radius", - "shadow", - "id", - "defaultOpened", - "exitTransitionDuration", - "__staticSelector", - "withRoles", - "disabled", - "returnFocus" - ]); - const [targetNode, setTargetNode] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [dropdownNode, setDropdownNode] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const uid = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useId)(id); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useMantineTheme)(); - const popover = (0,_use_popover_js__WEBPACK_IMPORTED_MODULE_4__.usePopover)({ - middlewares, - width, - position: (0,_Floating_get_floating_position_get_floating_position_js__WEBPACK_IMPORTED_MODULE_5__.getFloatingPosition)(theme.dir, position), - offset: offset + (withArrow ? arrowSize / 2 : 0), - arrowRef, - arrowOffset, - onPositionChange, - positionDependencies, - opened, - defaultOpened, - onChange, - onOpen, - onClose - }); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_6__.useClickOutside)(() => closeOnClickOutside && popover.onClose(), clickOutsideEvents, [ - targetNode, - dropdownNode - ]); - const reference = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((node) => { - setTargetNode(node); - popover.floating.reference(node); - }, [popover.floating.reference]); - const floating = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((node) => { - setDropdownNode(node); - popover.floating.floating(node); - }, [popover.floating.floating]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Popover_context_js__WEBPACK_IMPORTED_MODULE_7__.PopoverContextProvider, { - value: { - returnFocus, - disabled, - controlled: popover.controlled, - reference, - floating, - x: popover.floating.x, - y: popover.floating.y, - arrowX: (_d = (_c = (_b = popover.floating) == null ? void 0 : _b.middlewareData) == null ? void 0 : _c.arrow) == null ? void 0 : _d.x, - arrowY: (_g = (_f = (_e = popover.floating) == null ? void 0 : _e.middlewareData) == null ? void 0 : _f.arrow) == null ? void 0 : _g.y, - opened: popover.opened, - arrowRef, - transition, - transitionDuration, - exitTransitionDuration, - width, - withArrow, - arrowSize, - arrowOffset, - arrowRadius, - arrowPosition, - placement: popover.floating.placement, - trapFocus, - withinPortal, - zIndex, - radius, - shadow, - closeOnEscape, - onClose: popover.onClose, - onToggle: popover.onToggle, - getTargetId: () => `${uid}-target`, - getDropdownId: () => `${uid}-dropdown`, - withRoles, - targetProps: others, - __staticSelector, - classNames, - styles, - unstyled - } - }, children); -} -Popover.Target = _PopoverTarget_PopoverTarget_js__WEBPACK_IMPORTED_MODULE_8__.PopoverTarget; -Popover.Dropdown = _PopoverDropdown_PopoverDropdown_js__WEBPACK_IMPORTED_MODULE_9__.PopoverDropdown; -Popover.displayName = "@mantine/core/Popover"; - - -//# sourceMappingURL=Popover.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Popover/PopoverDropdown/PopoverDropdown.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Popover/PopoverDropdown/PopoverDropdown.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PopoverDropdown: () => (/* binding */ PopoverDropdown) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/close-on-escape/close-on-escape.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-focus-return/use-focus-return.js"); -/* harmony import */ var _Popover_context_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Popover.context.js */ "./node_modules/@mantine/core/esm/Popover/Popover.context.js"); -/* harmony import */ var _PopoverDropdown_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PopoverDropdown.styles.js */ "./node_modules/@mantine/core/esm/Popover/PopoverDropdown/PopoverDropdown.styles.js"); -/* harmony import */ var _Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Portal/OptionalPortal.js */ "./node_modules/@mantine/core/esm/Portal/OptionalPortal.js"); -/* harmony import */ var _Transition_Transition_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Transition/Transition.js */ "./node_modules/@mantine/core/esm/Transition/Transition.js"); -/* harmony import */ var _FocusTrap_FocusTrap_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../FocusTrap/FocusTrap.js */ "./node_modules/@mantine/core/esm/FocusTrap/FocusTrap.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Floating_FloatingArrow_FloatingArrow_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../Floating/FloatingArrow/FloatingArrow.js */ "./node_modules/@mantine/core/esm/Floating/FloatingArrow/FloatingArrow.js"); - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = {}; -function PopoverDropdown(props) { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("PopoverDropdown", defaultProps, props), { style, className, children, onKeyDownCapture } = _a, others = __objRest(_a, ["style", "className", "children", "onKeyDownCapture"]); - const ctx = (0,_Popover_context_js__WEBPACK_IMPORTED_MODULE_2__.usePopoverContext)(); - const { classes, cx } = (0,_PopoverDropdown_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ radius: ctx.radius, shadow: ctx.shadow }, { - name: ctx.__staticSelector, - classNames: ctx.classNames, - styles: ctx.styles, - unstyled: ctx.unstyled - }); - const returnFocus = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.useFocusReturn)({ - opened: ctx.opened, - shouldReturnFocus: ctx.returnFocus - }); - const accessibleProps = ctx.withRoles ? { - "aria-labelledby": ctx.getTargetId(), - id: ctx.getDropdownId(), - role: "dialog" - } : {}; - if (ctx.disabled) { - return null; - } - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_5__.OptionalPortal, { - withinPortal: ctx.withinPortal - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Transition_Transition_js__WEBPACK_IMPORTED_MODULE_6__.Transition, { - mounted: ctx.opened, - transition: ctx.transition, - duration: ctx.transitionDuration, - exitDuration: typeof ctx.exitTransitionDuration === "number" ? ctx.exitTransitionDuration : ctx.transitionDuration - }, (transitionStyles) => { - var _a2, _b; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_FocusTrap_FocusTrap_js__WEBPACK_IMPORTED_MODULE_7__.FocusTrap, { - active: ctx.trapFocus - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_8__.Box, __spreadValues(__spreadProps(__spreadValues({}, accessibleProps), { - tabIndex: -1, - key: ctx.placement, - ref: ctx.floating, - style: __spreadProps(__spreadValues(__spreadValues({}, style), transitionStyles), { - zIndex: ctx.zIndex, - top: (_a2 = ctx.y) != null ? _a2 : 0, - left: (_b = ctx.x) != null ? _b : 0, - width: ctx.width === "target" ? void 0 : ctx.width - }), - className: cx(classes.dropdown, className), - onKeyDownCapture: (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_9__.closeOnEscape)(ctx.onClose, { - active: ctx.closeOnEscape, - onTrigger: returnFocus, - onKeyDown: onKeyDownCapture - }), - "data-position": ctx.placement - }), others), children, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Floating_FloatingArrow_FloatingArrow_js__WEBPACK_IMPORTED_MODULE_10__.FloatingArrow, { - ref: ctx.arrowRef, - arrowX: ctx.arrowX, - arrowY: ctx.arrowY, - visible: ctx.withArrow, - withBorder: true, - position: ctx.placement, - arrowSize: ctx.arrowSize, - arrowRadius: ctx.arrowRadius, - arrowOffset: ctx.arrowOffset, - arrowPosition: ctx.arrowPosition, - className: classes.arrow - }))); - })); -} -PopoverDropdown.displayName = "@mantine/core/PopoverDropdown"; - - -//# sourceMappingURL=PopoverDropdown.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Popover/PopoverDropdown/PopoverDropdown.styles.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Popover/PopoverDropdown/PopoverDropdown.styles.js ***! - \******************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { radius, shadow }) => ({ - dropdown: { - position: "absolute", - backgroundColor: theme.white, - background: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.white, - border: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[2]}`, - padding: `${theme.spacing.sm}px ${theme.spacing.md}px`, - boxShadow: theme.shadows[shadow] || shadow || "none", - borderRadius: theme.fn.radius(radius), - "&:focus": { - outline: 0 - } - }, - arrow: { - backgroundColor: "inherit", - border: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[2]}`, - zIndex: 1 - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=PopoverDropdown.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Popover/PopoverTarget/PopoverTarget.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Popover/PopoverTarget/PopoverTarget.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ PopoverTarget: () => (/* binding */ PopoverTarget) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/is-element/is-element.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _Popover_context_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Popover.context.js */ "./node_modules/@mantine/core/esm/Popover/Popover.context.js"); -/* harmony import */ var _Popover_errors_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Popover.errors.js */ "./node_modules/@mantine/core/esm/Popover/Popover.errors.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - refProp: "ref", - popupType: "dialog" -}; -const PopoverTarget = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("PopoverTarget", defaultProps, props), { children, refProp, popupType } = _a, others = __objRest(_a, ["children", "refProp", "popupType"]); - if (!(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_2__.isElement)(children)) { - throw new Error(_Popover_errors_js__WEBPACK_IMPORTED_MODULE_3__.POPOVER_ERRORS.children); - } - const forwardedProps = others; - const ctx = (0,_Popover_context_js__WEBPACK_IMPORTED_MODULE_4__.usePopoverContext)(); - const targetRef = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_5__.useMergedRef)(ctx.reference, children.ref, ref); - const accessibleProps = ctx.withRoles ? { - "aria-haspopup": popupType, - "aria-expanded": ctx.opened, - "aria-controls": ctx.getDropdownId(), - id: ctx.getTargetId() - } : {}; - return (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(children, __spreadValues(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, forwardedProps), accessibleProps), ctx.targetProps), { - className: (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_6__["default"])(ctx.targetProps.className, forwardedProps.className, children.props.className), - [refProp]: targetRef - }), !ctx.controlled ? { onClick: ctx.onToggle } : null)); -}); -PopoverTarget.displayName = "@mantine/core/PopoverTarget"; - - -//# sourceMappingURL=PopoverTarget.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Popover/use-popover.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Popover/use-popover.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ usePopover: () => (/* binding */ usePopover) -/* harmony export */ }); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/core/dist/floating-ui.core.mjs"); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js"); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/react/dist/floating-ui.react.esm.js"); -/* harmony import */ var _Floating_use_floating_auto_update_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Floating/use-floating-auto-update.js */ "./node_modules/@mantine/core/esm/Floating/use-floating-auto-update.js"); - - - - -function getPopoverMiddlewares(options) { - const middlewares = [(0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_0__.offset)(options.offset)]; - if (options.middlewares.shift) { - middlewares.push((0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_0__.shift)({ limiter: (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_0__.limitShift)() })); - } - if (options.middlewares.flip) { - middlewares.push((0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_0__.flip)()); - } - if (options.middlewares.inline) { - middlewares.push((0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_0__.inline)()); - } - middlewares.push((0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_1__.arrow)({ element: options.arrowRef, padding: options.arrowOffset })); - return middlewares; -} -function usePopover(options) { - const [_opened, setOpened] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useUncontrolled)({ - value: options.opened, - defaultValue: options.defaultOpened, - finalValue: false, - onChange: options.onChange - }); - const onClose = () => { - var _a; - (_a = options.onClose) == null ? void 0 : _a.call(options); - setOpened(false); - }; - const onToggle = () => { - var _a, _b; - if (_opened) { - (_a = options.onClose) == null ? void 0 : _a.call(options); - setOpened(false); - } else { - (_b = options.onOpen) == null ? void 0 : _b.call(options); - setOpened(true); - } - }; - const floating = (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.useFloating)({ - placement: options.position, - middleware: [ - ...getPopoverMiddlewares(options), - ...options.width === "target" ? [ - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_0__.size)({ - apply({ rects }) { - var _a, _b; - Object.assign((_b = (_a = floating.refs.floating.current) == null ? void 0 : _a.style) != null ? _b : {}, { - width: `${rects.reference.width}px` - }); - } - }) - ] : [] - ] - }); - (0,_Floating_use_floating_auto_update_js__WEBPACK_IMPORTED_MODULE_4__.useFloatingAutoUpdate)({ - opened: options.opened, - positionDependencies: options.positionDependencies, - floating - }); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_5__.useDidUpdate)(() => { - var _a; - (_a = options.onPositionChange) == null ? void 0 : _a.call(options, floating.placement); - }, [floating.placement]); - return { - floating, - controlled: typeof options.opened === "boolean", - opened: _opened, - onClose, - onToggle - }; -} - - -//# sourceMappingURL=use-popover.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Portal/OptionalPortal.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Portal/OptionalPortal.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ OptionalPortal: () => (/* binding */ OptionalPortal) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _Portal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Portal.js */ "./node_modules/@mantine/core/esm/Portal/Portal.js"); - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function OptionalPortal(_a) { - var _b = _a, { withinPortal = true, children } = _b, others = __objRest(_b, ["withinPortal", "children"]); - if (withinPortal) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Portal_js__WEBPACK_IMPORTED_MODULE_1__.Portal, __spreadValues({}, others), children); - } - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children); -} -OptionalPortal.displayName = "@mantine/core/OptionalPortal"; - - -//# sourceMappingURL=OptionalPortal.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Portal/Portal.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Portal/Portal.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Portal: () => (/* binding */ Portal) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-isomorphic-effect/use-isomorphic-effect.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); - - - - - -function Portal(props) { - const { children, target, className } = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("Portal", {}, props); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useMantineTheme)(); - const [mounted, setMounted] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useIsomorphicEffect)(() => { - setMounted(true); - ref.current = !target ? document.createElement("div") : typeof target === "string" ? document.querySelector(target) : target; - if (!target) { - document.body.appendChild(ref.current); - } - return () => { - !target && document.body.removeChild(ref.current); - }; - }, [target]); - if (!mounted) { - return null; - } - return (0,react_dom__WEBPACK_IMPORTED_MODULE_1__.createPortal)(/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className, - dir: theme.dir - }, children), ref.current); -} -Portal.displayName = "@mantine/core/Portal"; - - -//# sourceMappingURL=Portal.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Progress/Progress.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Progress/Progress.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Progress: () => (/* binding */ Progress) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Progress_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Progress.styles.js */ "./node_modules/@mantine/core/esm/Progress/Progress.styles.js"); -/* harmony import */ var _Tooltip_Tooltip_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Tooltip/Tooltip.js */ "./node_modules/@mantine/core/esm/Tooltip/Tooltip.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function getCumulativeSections(sections) { - return sections.reduce((acc, section) => { - acc.sections.push(__spreadProps(__spreadValues({}, section), { accumulated: acc.accumulated })); - acc.accumulated += section.value; - return acc; - }, { accumulated: 0, sections: [] }).sections; -} -const defaultProps = { - size: "md", - radius: "sm", - striped: false, - animate: false, - label: "" -}; -const Progress = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Progress", defaultProps, props), { - className, - value, - color, - size, - radius, - striped, - animate, - label, - "aria-label": ariaLabel, - classNames, - styles, - sections, - unstyled - } = _a, others = __objRest(_a, [ - "className", - "value", - "color", - "size", - "radius", - "striped", - "animate", - "label", - "aria-label", - "classNames", - "styles", - "sections", - "unstyled" - ]); - const { classes, cx, theme } = (0,_Progress_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ color, size, radius, striped: striped || animate, animate }, { classNames, styles, unstyled, name: "Progress" }); - const segments = Array.isArray(sections) ? getCumulativeSections(sections).map((_b, index) => { - var _c = _b, { - tooltip, - accumulated, - value: sectionValue, - label: sectionLabel, - color: sectionColor - } = _c, sectionProps = __objRest(_c, [ - "tooltip", - "accumulated", - "value", - "label", - "color" - ]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Tooltip_Tooltip_js__WEBPACK_IMPORTED_MODULE_3__.Tooltip.Floating, { - label: tooltip, - disabled: !tooltip, - key: index - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadProps(__spreadValues({}, sectionProps), { - className: cx(classes.bar, sectionProps.className), - sx: { - width: `${sectionValue}%`, - left: `${accumulated}%`, - backgroundColor: theme.fn.variant({ - variant: "filled", - primaryFallback: false, - color: sectionColor || theme.primaryColor - }).background - } - }), sectionLabel && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_5__.Text, { - className: classes.label - }, sectionLabel))); - }) : null; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others), segments || /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - role: "progressbar", - "aria-valuemax": 100, - "aria-valuemin": 0, - "aria-valuenow": value, - "aria-label": ariaLabel, - className: classes.bar, - style: { width: `${value}%` } - }, label ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_5__.Text, { - className: classes.label - }, label) : "")); -}); -Progress.displayName = "@mantine/core/Progress"; - - -//# sourceMappingURL=Progress.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Progress/Progress.styles.js": -/*!********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Progress/Progress.styles.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -const sizes = { - xs: 3, - sm: 5, - md: 8, - lg: 12, - xl: 16 -}; -const stripesAnimation = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.keyframes)({ - from: { backgroundPosition: "0 0" }, - to: { backgroundPosition: "40px 0" } -}); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.createStyles)((theme, { color, radius, size, striped, animate }) => ({ - root: { - position: "relative", - height: theme.fn.size({ size, sizes }), - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[2], - borderRadius: theme.fn.size({ size: radius, sizes: theme.radius }), - overflow: "hidden" - }, - bar: { - position: "absolute", - top: 0, - bottom: 0, - left: 0, - height: "100%", - display: "flex", - justifyContent: "center", - alignItems: "center", - backgroundColor: theme.fn.variant({ - variant: "filled", - primaryFallback: false, - color: color || theme.primaryColor - }).background, - transition: "width 100ms linear", - animation: animate ? `${stripesAnimation} 1000ms linear infinite` : "none", - backgroundSize: "20px 20px", - backgroundImage: striped ? "linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)" : "none", - "&:last-of-type": { - borderTopRightRadius: theme.fn.size({ size: radius, sizes: theme.radius }), - borderBottomRightRadius: theme.fn.size({ size: radius, sizes: theme.radius }) - }, - "&:first-of-type": { - borderTopLeftRadius: theme.fn.size({ size: radius, sizes: theme.radius }), - borderBottomLeftRadius: theme.fn.size({ size: radius, sizes: theme.radius }) - }, - "@media (prefers-reduced-motion)": { - transitionDuration: theme.respectReducedMotion ? "0ms" : void 0 - } - }, - label: { - color: theme.white, - fontSize: theme.fn.size({ size, sizes }) * 0.65, - fontWeight: 700, - userSelect: "none", - overflow: "hidden", - whiteSpace: "nowrap" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Progress.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/ScrollArea/ScrollArea.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/ScrollArea/ScrollArea.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ScrollArea: () => (/* binding */ ScrollArea), -/* harmony export */ _ScrollArea: () => (/* binding */ _ScrollArea) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _radix_ui_react_scroll_area__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @radix-ui/react-scroll-area */ "./node_modules/@radix-ui/react-scroll-area/dist/index.module.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/pack-sx/pack-sx.js"); -/* harmony import */ var _ScrollArea_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ScrollArea.styles.js */ "./node_modules/@mantine/core/esm/ScrollArea/ScrollArea.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - scrollbarSize: 12, - scrollHideDelay: 1e3, - type: "hover", - offsetScrollbars: false -}; -const _ScrollArea = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("ScrollArea", defaultProps, props), { - children, - className, - classNames, - styles, - scrollbarSize, - scrollHideDelay, - type, - dir, - offsetScrollbars, - viewportRef, - onScrollPositionChange, - unstyled, - viewportProps - } = _a, others = __objRest(_a, [ - "children", - "className", - "classNames", - "styles", - "scrollbarSize", - "scrollHideDelay", - "type", - "dir", - "offsetScrollbars", - "viewportRef", - "onScrollPositionChange", - "unstyled", - "viewportProps" - ]); - const [scrollbarHovered, setScrollbarHovered] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useMantineTheme)(); - const { classes, cx } = (0,_ScrollArea_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ scrollbarSize, offsetScrollbars, scrollbarHovered, hidden: type === "never" }, { name: "ScrollArea", classNames, styles, unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_radix_ui_react_scroll_area__WEBPACK_IMPORTED_MODULE_3__.Root, { - type: type === "never" ? "always" : type, - scrollHideDelay, - dir: dir || theme.dir, - ref, - asChild: true - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadValues({ - className: cx(classes.root, className) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_radix_ui_react_scroll_area__WEBPACK_IMPORTED_MODULE_3__.Viewport, __spreadProps(__spreadValues({}, viewportProps), { - className: classes.viewport, - ref: viewportRef, - onScroll: typeof onScrollPositionChange === "function" ? ({ currentTarget }) => onScrollPositionChange({ - x: currentTarget.scrollLeft, - y: currentTarget.scrollTop - }) : void 0 - }), children), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_radix_ui_react_scroll_area__WEBPACK_IMPORTED_MODULE_3__.Scrollbar, { - orientation: "horizontal", - className: classes.scrollbar, - forceMount: true, - onMouseEnter: () => setScrollbarHovered(true), - onMouseLeave: () => setScrollbarHovered(false) - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_radix_ui_react_scroll_area__WEBPACK_IMPORTED_MODULE_3__.Thumb, { - className: classes.thumb - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_radix_ui_react_scroll_area__WEBPACK_IMPORTED_MODULE_3__.Scrollbar, { - orientation: "vertical", - className: classes.scrollbar, - forceMount: true, - onMouseEnter: () => setScrollbarHovered(true), - onMouseLeave: () => setScrollbarHovered(false) - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_radix_ui_react_scroll_area__WEBPACK_IMPORTED_MODULE_3__.Thumb, { - className: classes.thumb - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_radix_ui_react_scroll_area__WEBPACK_IMPORTED_MODULE_3__.Corner, { - className: classes.corner - }))); -}); -const ScrollAreaAutosize = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("ScrollAreaAutosize", defaultProps, props), { - maxHeight, - children, - classNames, - styles, - scrollbarSize, - scrollHideDelay, - type, - dir, - offsetScrollbars, - viewportRef, - onScrollPositionChange, - unstyled, - sx - } = _a, others = __objRest(_a, [ - "maxHeight", - "children", - "classNames", - "styles", - "scrollbarSize", - "scrollHideDelay", - "type", - "dir", - "offsetScrollbars", - "viewportRef", - "onScrollPositionChange", - "unstyled", - "sx" - ]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, __spreadProps(__spreadValues({}, others), { - ref, - sx: [{ display: "flex", maxHeight }, ...(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.packSx)(sx)] - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_4__.Box, { - sx: { display: "flex", flexDirection: "column", flex: 1 } - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ScrollArea, { - classNames, - styles, - scrollHideDelay, - scrollbarSize, - type, - dir, - offsetScrollbars, - viewportRef, - onScrollPositionChange, - unstyled - }, children))); -}); -ScrollAreaAutosize.displayName = "@mantine/core/ScrollAreaAutosize"; -_ScrollArea.displayName = "@mantine/core/ScrollArea"; -_ScrollArea.Autosize = ScrollAreaAutosize; -const ScrollArea = _ScrollArea; - - -//# sourceMappingURL=ScrollArea.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/ScrollArea/ScrollArea.styles.js": -/*!************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/ScrollArea/ScrollArea.styles.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { scrollbarSize, offsetScrollbars, scrollbarHovered, hidden }, getRef) => ({ - root: { - overflow: "hidden" - }, - viewport: { - width: "100%", - height: "100%", - paddingRight: offsetScrollbars ? scrollbarSize : void 0, - paddingBottom: offsetScrollbars ? scrollbarSize : void 0 - }, - scrollbar: { - display: hidden ? "none" : "flex", - userSelect: "none", - touchAction: "none", - boxSizing: "border-box", - padding: scrollbarSize / 5, - transition: "background-color 150ms ease, opacity 150ms ease", - "&:hover": { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[0], - [`& .${getRef("thumb")}`]: { - backgroundColor: theme.colorScheme === "dark" ? theme.fn.rgba(theme.white, 0.5) : theme.fn.rgba(theme.black, 0.5) - } - }, - '&[data-orientation="vertical"]': { - width: scrollbarSize - }, - '&[data-orientation="horizontal"]': { - flexDirection: "column", - height: scrollbarSize - }, - '&[data-state="hidden"]': { - display: "none", - opacity: 0 - } - }, - thumb: { - ref: getRef("thumb"), - flex: 1, - backgroundColor: theme.colorScheme === "dark" ? theme.fn.rgba(theme.white, 0.4) : theme.fn.rgba(theme.black, 0.4), - borderRadius: scrollbarSize, - position: "relative", - transition: "background-color 150ms ease", - display: hidden ? "none" : void 0, - overflow: "hidden", - "&::before": { - content: '""', - position: "absolute", - top: "50%", - left: "50%", - transform: "translate(-50%, -50%)", - width: "100%", - height: "100%", - minWidth: 44, - minHeight: 44 - } - }, - corner: { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[0], - transition: "opacity 150ms ease", - opacity: scrollbarHovered ? 1 : 0, - display: hidden ? "none" : void 0 - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=ScrollArea.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/SegmentedControl/SegmentedControl.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/SegmentedControl/SegmentedControl.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SegmentedControl: () => (/* binding */ SegmentedControl) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-reduced-motion/use-reduced-motion.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-resize-observer/use-resize-observer.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-isomorphic-effect/use-isomorphic-effect.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _SegmentedControl_styles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SegmentedControl.styles.js */ "./node_modules/@mantine/core/esm/SegmentedControl/SegmentedControl.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - disabled: false, - size: "sm", - transitionDuration: 200 -}; -const SegmentedControl = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - var _b, _c, _d, _e; - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("SegmentedControl", defaultProps, props), { - className, - disabled, - data: _data, - name, - value, - onChange, - color, - fullWidth, - radius, - size, - transitionDuration, - transitionTimingFunction, - classNames, - styles, - defaultValue, - orientation, - unstyled - } = _a, others = __objRest(_a, [ - "className", - "disabled", - "data", - "name", - "value", - "onChange", - "color", - "fullWidth", - "radius", - "size", - "transitionDuration", - "transitionTimingFunction", - "classNames", - "styles", - "defaultValue", - "orientation", - "unstyled" - ]); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useMantineTheme)(); - const shouldReduceMotion = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useReducedMotion)(); - const reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : false; - const data = _data.map((item) => typeof item === "string" ? { label: item, value: item } : item); - const mounted = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const [shouldAnimate, setShouldAnimate] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [_value, handleValueChange] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useUncontrolled)({ - value, - defaultValue, - finalValue: Array.isArray(data) ? (_e = (_d = (_b = data.find((item) => !item.disabled)) == null ? void 0 : _b.value) != null ? _d : (_c = data[0]) == null ? void 0 : _c.value) != null ? _e : null : null, - onChange - }); - const { classes, cx } = (0,_SegmentedControl_styles_js__WEBPACK_IMPORTED_MODULE_4__["default"])({ - size, - fullWidth, - color, - radius, - shouldAnimate: reduceMotion || !shouldAnimate, - transitionDuration, - transitionTimingFunction, - orientation - }, { classNames, styles, unstyled, name: "SegmentedControl" }); - const [activePosition, setActivePosition] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({ - width: 0, - height: 0, - translate: [0, 0] - }); - const uuid = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_5__.useId)(name); - const refs = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({}); - const [observerRef, containerRect] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_6__.useResizeObserver)(); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useIsomorphicEffect)(() => { - if (!mounted.current) { - mounted.current = true; - setShouldAnimate(false); - } else { - setShouldAnimate(true); - } - }); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (_value in refs.current && observerRef.current) { - const element = refs.current[_value]; - const elementRect = element.getBoundingClientRect(); - const scaledValue = element.offsetWidth / elementRect.width; - const width = elementRect.width * scaledValue || 0; - const height = elementRect.height * scaledValue || 0; - const offsetRight = containerRect.width - element.parentElement.offsetLeft + _SegmentedControl_styles_js__WEBPACK_IMPORTED_MODULE_4__.WRAPPER_PADDING - width; - const offsetLeft = element.parentElement.offsetLeft - _SegmentedControl_styles_js__WEBPACK_IMPORTED_MODULE_4__.WRAPPER_PADDING; - setActivePosition({ - width, - height, - translate: [ - theme.dir === "rtl" ? offsetRight : offsetLeft, - element.parentElement.offsetTop - _SegmentedControl_styles_js__WEBPACK_IMPORTED_MODULE_4__.WRAPPER_PADDING - ] - }); - } - }, [_value, containerRect]); - const controls = data.map((item) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: cx(classes.control, { [classes.controlActive]: _value === item.value }), - key: item.value - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", { - className: classes.input, - disabled: disabled || item.disabled, - type: "radio", - name: uuid, - value: item.value, - id: `${uuid}-${item.value}`, - checked: _value === item.value, - onChange: () => handleValueChange(item.value) - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("label", { - className: cx(classes.label, { - [classes.labelActive]: _value === item.value, - [classes.disabled]: disabled || item.disabled - }), - htmlFor: `${uuid}-${item.value}`, - ref: (node) => { - refs.current[item.value] = node; - } - }, item.label))); - const mergedRef = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_8__.useMergedRef)(observerRef, ref); - if (data.length === 0) { - return null; - } - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_9__.Box, __spreadValues({ - className: cx(classes.root, className), - ref: mergedRef - }, others), typeof _value === "string" && shouldAnimate && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_9__.Box, { - component: "span", - className: classes.active, - sx: { - width: activePosition.width, - height: activePosition.height, - transform: `translate(${activePosition.translate[0]}px, ${activePosition.translate[1]}px )` - } - }), controls); -}); -SegmentedControl.displayName = "@mantine/core/SegmentedControl"; - - -//# sourceMappingURL=SegmentedControl.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/SegmentedControl/SegmentedControl.styles.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/SegmentedControl/SegmentedControl.styles.js ***! - \************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ WRAPPER_PADDING: () => (/* binding */ WRAPPER_PADDING), -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const WRAPPER_PADDING = 4; -const sizes = { - xs: "3px 6px", - sm: "5px 10px", - md: "7px 14px", - lg: "9px 16px", - xl: "12px 20px" -}; -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { - fullWidth, - color, - radius, - shouldAnimate, - transitionDuration, - transitionTimingFunction, - size, - orientation -}, getRef) => { - const vertical = orientation === "vertical"; - const colors = theme.fn.variant({ variant: "filled", color }); - return { - label: __spreadProps(__spreadValues(__spreadValues({ - ref: getRef("label") - }, theme.fn.focusStyles()), theme.fn.fontStyles()), { - WebkitTapHighlightColor: "transparent", - borderRadius: theme.fn.radius(radius), - fontWeight: 500, - fontSize: size in theme.fontSizes ? theme.fontSizes[size] : theme.fontSizes.sm, - cursor: "pointer", - display: "block", - textAlign: "center", - padding: sizes[size in sizes ? size : "sm"], - whiteSpace: "nowrap", - overflow: "hidden", - textOverflow: "ellipsis", - userSelect: "none", - color: theme.colorScheme === "dark" ? theme.colors.dark[1] : theme.colors.gray[7], - transition: `color ${shouldAnimate ? 0 : transitionDuration}ms ${transitionTimingFunction || theme.transitionTimingFunction}`, - "&:hover": { - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black - } - }), - control: { - ref: getRef("control"), - position: "relative", - boxSizing: "border-box", - flex: 1, - zIndex: 2, - transition: `border-left-color ${shouldAnimate ? 0 : transitionDuration}ms ${transitionTimingFunction || theme.transitionTimingFunction}`, - "&:not(:first-of-type)": { - borderStyle: "solid", - borderWidth: vertical ? "1px 0 0 0" : "0 0 0 1px", - borderColor: theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[3] - } - }, - input: { - height: 0, - width: 0, - position: "absolute", - overflow: "hidden", - whiteSpace: "nowrap", - opacity: 0, - "&:focus": { - outline: "none", - [`& + .${getRef("label")}`]: __spreadValues({}, theme.focusRing === "always" || theme.focusRing === "auto" ? theme.focusRingStyles.styles(theme) : theme.focusRingStyles.resetStyles(theme)), - "&:focus:not(:focus-visible)": { - [`& + .${getRef("label")}`]: __spreadValues({}, theme.focusRing === "auto" || theme.focusRing === "never" ? theme.focusRingStyles.resetStyles(theme) : null) - } - } - }, - root: { - position: "relative", - display: fullWidth || vertical ? "flex" : "inline-flex", - width: vertical && !fullWidth ? "max-content" : "auto", - flexDirection: vertical ? "column" : "row", - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[1], - borderRadius: theme.fn.radius(radius), - overflow: "hidden", - padding: WRAPPER_PADDING - }, - controlActive: { - borderLeftColor: "transparent !important", - borderTopColor: "transparent !important", - [`& + .${getRef("control")}`]: { - borderLeftColor: "transparent !important", - borderTopColor: "transparent !important" - }, - borderRadius: theme.fn.radius(radius), - boxShadow: shouldAnimate ? color || theme.colorScheme === "dark" ? "none" : theme.shadows.xs : void 0, - backgroundColor: shouldAnimate ? color ? colors.background : theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.white : void 0 - }, - labelActive: { - "&, &:hover": { - color: color || theme.colorScheme === "dark" ? theme.white : theme.black - } - }, - disabled: { - "&, &:hover": { - color: theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[5], - cursor: "not-allowed" - } - }, - active: { - boxSizing: "border-box", - borderRadius: theme.fn.radius(radius), - position: "absolute", - zIndex: 1, - boxShadow: color || theme.colorScheme === "dark" ? "none" : theme.shadows.xs, - transition: `transform ${shouldAnimate ? 0 : transitionDuration}ms ${theme.transitionTimingFunction}, width ${shouldAnimate ? 0 : transitionDuration / 2}ms ${transitionTimingFunction || theme.transitionTimingFunction}`, - backgroundColor: color ? colors.background : theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.white - } - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); - -//# sourceMappingURL=SegmentedControl.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/DefaultItem/DefaultItem.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/DefaultItem/DefaultItem.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DefaultItem: () => (/* binding */ DefaultItem) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const DefaultItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { label, value } = _b, others = __objRest(_b, ["label", "value"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", __spreadValues({ - ref - }, others), label || value); -}); -DefaultItem.displayName = "@mantine/core/DefaultItem"; - - -//# sourceMappingURL=DefaultItem.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/Select.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/Select.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Select: () => (/* binding */ Select), -/* harmony export */ defaultFilter: () => (/* binding */ defaultFilter), -/* harmony export */ defaultShouldCreate: () => (/* binding */ defaultShouldCreate) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/use-scroll-into-view.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/group-options/group-options.js"); -/* harmony import */ var _SelectScrollArea_SelectScrollArea_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./SelectScrollArea/SelectScrollArea.js */ "./node_modules/@mantine/core/esm/Select/SelectScrollArea/SelectScrollArea.js"); -/* harmony import */ var _DefaultItem_DefaultItem_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DefaultItem/DefaultItem.js */ "./node_modules/@mantine/core/esm/Select/DefaultItem/DefaultItem.js"); -/* harmony import */ var _SelectRightSection_get_select_right_section_props_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SelectRightSection/get-select-right-section-props.js */ "./node_modules/@mantine/core/esm/Select/SelectRightSection/get-select-right-section-props.js"); -/* harmony import */ var _SelectItems_SelectItems_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./SelectItems/SelectItems.js */ "./node_modules/@mantine/core/esm/Select/SelectItems/SelectItems.js"); -/* harmony import */ var _SelectPopover_SelectPopover_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SelectPopover/SelectPopover.js */ "./node_modules/@mantine/core/esm/Select/SelectPopover/SelectPopover.js"); -/* harmony import */ var _filter_data_filter_data_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./filter-data/filter-data.js */ "./node_modules/@mantine/core/esm/Select/filter-data/filter-data.js"); -/* harmony import */ var _Select_styles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Select.styles.js */ "./node_modules/@mantine/core/esm/Select/Select.styles.js"); -/* harmony import */ var _Input_use_input_props_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Input/use-input-props.js */ "./node_modules/@mantine/core/esm/Input/use-input-props.js"); -/* harmony import */ var _Input_Input_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Input/Input.js */ "./node_modules/@mantine/core/esm/Input/Input.js"); - - - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function defaultFilter(value, item) { - return item.label.toLowerCase().trim().includes(value.toLowerCase().trim()); -} -function defaultShouldCreate(query, data) { - return !!query && !data.some((item) => item.label.toLowerCase() === query.toLowerCase()); -} -const defaultProps = { - required: false, - size: "sm", - shadow: "sm", - itemComponent: _DefaultItem_DefaultItem_js__WEBPACK_IMPORTED_MODULE_1__.DefaultItem, - transition: "fade", - transitionDuration: 0, - initiallyOpened: false, - filter: defaultFilter, - maxDropdownHeight: 220, - searchable: false, - clearable: false, - limit: Infinity, - disabled: false, - creatable: false, - shouldCreate: defaultShouldCreate, - selectOnBlur: false, - switchDirectionOnFlip: false, - filterDataOnExactSearchMatch: false, - zIndex: (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.getDefaultZIndex)("popover"), - clearButtonTabIndex: 0, - positionDependencies: [], - dropdownPosition: "flip" -}; -const Select = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_Input_use_input_props_js__WEBPACK_IMPORTED_MODULE_3__.useInputProps)("Select", defaultProps, props), { - inputProps, - wrapperProps, - shadow, - data, - value, - defaultValue, - onChange, - itemComponent, - onKeyDown, - onBlur, - onFocus, - transition, - transitionDuration, - initiallyOpened, - transitionTimingFunction, - unstyled, - classNames, - styles, - filter, - maxDropdownHeight, - searchable, - clearable, - nothingFound, - clearButtonLabel, - limit, - disabled, - onSearchChange, - searchValue, - rightSection, - rightSectionWidth, - creatable, - getCreateLabel, - shouldCreate, - selectOnBlur, - onCreate, - dropdownComponent, - onDropdownClose, - onDropdownOpen, - withinPortal, - switchDirectionOnFlip, - zIndex, - name, - dropdownPosition, - allowDeselect, - placeholder, - filterDataOnExactSearchMatch, - clearButtonTabIndex, - form, - positionDependencies, - readOnly, - hoverOnSearchChange - } = _a, others = __objRest(_a, [ - "inputProps", - "wrapperProps", - "shadow", - "data", - "value", - "defaultValue", - "onChange", - "itemComponent", - "onKeyDown", - "onBlur", - "onFocus", - "transition", - "transitionDuration", - "initiallyOpened", - "transitionTimingFunction", - "unstyled", - "classNames", - "styles", - "filter", - "maxDropdownHeight", - "searchable", - "clearable", - "nothingFound", - "clearButtonLabel", - "limit", - "disabled", - "onSearchChange", - "searchValue", - "rightSection", - "rightSectionWidth", - "creatable", - "getCreateLabel", - "shouldCreate", - "selectOnBlur", - "onCreate", - "dropdownComponent", - "onDropdownClose", - "onDropdownOpen", - "withinPortal", - "switchDirectionOnFlip", - "zIndex", - "name", - "dropdownPosition", - "allowDeselect", - "placeholder", - "filterDataOnExactSearchMatch", - "clearButtonTabIndex", - "form", - "positionDependencies", - "readOnly", - "hoverOnSearchChange" - ]); - const { classes, cx, theme } = (0,_Select_styles_js__WEBPACK_IMPORTED_MODULE_4__["default"])(); - const [dropdownOpened, _setDropdownOpened] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initiallyOpened); - const [hovered, setHovered] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1); - const inputRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const itemsRefs = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({}); - const [direction, setDirection] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("column"); - const isColumn = direction === "column"; - const { scrollIntoView, targetRef, scrollableRef } = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_5__.useScrollIntoView)({ - duration: 0, - offset: 5, - cancelable: false, - isList: true - }); - const isDeselectable = allowDeselect === void 0 ? clearable : allowDeselect; - const setDropdownOpened = (opened) => { - if (dropdownOpened !== opened) { - _setDropdownOpened(opened); - const handler = opened ? onDropdownOpen : onDropdownClose; - typeof handler === "function" && handler(); - } - }; - const isCreatable = creatable && typeof getCreateLabel === "function"; - let createLabel = null; - const formattedData = data.map((item) => typeof item === "string" ? { label: item, value: item } : item); - const sortedData = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_6__.groupOptions)({ data: formattedData }); - const [_value, handleChange, controlled] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useUncontrolled)({ - value, - defaultValue, - finalValue: null, - onChange - }); - const selectedValue = sortedData.find((item) => item.value === _value); - const [inputValue, setInputValue] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useUncontrolled)({ - value: searchValue, - defaultValue: (selectedValue == null ? void 0 : selectedValue.label) || "", - finalValue: void 0, - onChange: onSearchChange - }); - const handleSearchChange = (val) => { - setInputValue(val); - if (searchable && typeof onSearchChange === "function") { - onSearchChange(val); - } - }; - const handleClear = () => { - var _a2; - if (!readOnly) { - handleChange(null); - if (!controlled) { - handleSearchChange(""); - } - (_a2 = inputRef.current) == null ? void 0 : _a2.focus(); - } - }; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - const newSelectedValue = sortedData.find((item) => item.value === _value); - if (newSelectedValue) { - handleSearchChange(newSelectedValue.label); - } else if (!isCreatable || !_value) { - handleSearchChange(""); - } - }, [_value]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (selectedValue && (!searchable || !dropdownOpened)) { - handleSearchChange(selectedValue.label); - } - }, [selectedValue == null ? void 0 : selectedValue.label]); - const handleItemSelect = (item) => { - if (!readOnly) { - if (isDeselectable && (selectedValue == null ? void 0 : selectedValue.value) === item.value) { - handleChange(null); - setDropdownOpened(false); - } else { - if (item.creatable && typeof onCreate === "function") { - const createdItem = onCreate(item.value); - if (typeof createdItem !== "undefined" && createdItem !== null) { - if (typeof createdItem === "string") { - handleChange(createdItem); - } else { - handleChange(createdItem.value); - } - } - } else { - handleChange(item.value); - } - if (!controlled) { - handleSearchChange(item.label); - } - setHovered(-1); - setDropdownOpened(false); - inputRef.current.focus(); - } - } - }; - const filteredData = (0,_filter_data_filter_data_js__WEBPACK_IMPORTED_MODULE_8__.filterData)({ - data: sortedData, - searchable, - limit, - searchValue: inputValue, - filter, - filterDataOnExactSearchMatch, - value: _value - }); - if (isCreatable && shouldCreate(inputValue, filteredData)) { - createLabel = getCreateLabel(inputValue); - filteredData.push({ label: inputValue, value: inputValue, creatable: true }); - } - const getNextIndex = (index, nextItem, compareFn) => { - let i = index; - while (compareFn(i)) { - i = nextItem(i); - if (!filteredData[i].disabled) - return i; - } - return index; - }; - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_9__.useDidUpdate)(() => { - if (hoverOnSearchChange && inputValue) { - setHovered(0); - } else { - setHovered(-1); - } - }, [inputValue, hoverOnSearchChange]); - const selectedItemIndex = _value ? filteredData.findIndex((el) => el.value === _value) : 0; - const shouldShowDropdown = !readOnly && (filteredData.length > 0 ? dropdownOpened : dropdownOpened && !!nothingFound); - const handlePrevious = () => { - setHovered((current) => { - var _a2; - const nextIndex = getNextIndex(current, (index) => index - 1, (index) => index > 0); - targetRef.current = itemsRefs.current[(_a2 = filteredData[nextIndex]) == null ? void 0 : _a2.value]; - shouldShowDropdown && scrollIntoView({ alignment: isColumn ? "start" : "end" }); - return nextIndex; - }); - }; - const handleNext = () => { - setHovered((current) => { - var _a2; - const nextIndex = getNextIndex(current, (index) => index + 1, (index) => index < filteredData.length - 1); - targetRef.current = itemsRefs.current[(_a2 = filteredData[nextIndex]) == null ? void 0 : _a2.value]; - shouldShowDropdown && scrollIntoView({ alignment: isColumn ? "end" : "start" }); - return nextIndex; - }); - }; - const scrollSelectedItemIntoView = () => window.setTimeout(() => { - var _a2; - targetRef.current = itemsRefs.current[(_a2 = filteredData[selectedItemIndex]) == null ? void 0 : _a2.value]; - scrollIntoView({ alignment: isColumn ? "end" : "start" }); - }, 0); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_9__.useDidUpdate)(() => { - if (shouldShowDropdown) - scrollSelectedItemIntoView(); - }, [shouldShowDropdown]); - const handleInputKeydown = (event) => { - typeof onKeyDown === "function" && onKeyDown(event); - switch (event.key) { - case "ArrowUp": { - event.preventDefault(); - if (!dropdownOpened) { - setHovered(selectedItemIndex); - setDropdownOpened(true); - scrollSelectedItemIntoView(); - } else { - isColumn ? handlePrevious() : handleNext(); - } - break; - } - case "ArrowDown": { - event.preventDefault(); - if (!dropdownOpened) { - setHovered(selectedItemIndex); - setDropdownOpened(true); - scrollSelectedItemIntoView(); - } else { - isColumn ? handleNext() : handlePrevious(); - } - break; - } - case "Home": { - if (!searchable) { - event.preventDefault(); - if (!dropdownOpened) { - setDropdownOpened(true); - } - const firstItemIndex = filteredData.findIndex((item) => !item.disabled); - setHovered(firstItemIndex); - shouldShowDropdown && scrollIntoView({ alignment: isColumn ? "end" : "start" }); - } - break; - } - case "End": { - if (!searchable) { - event.preventDefault(); - if (!dropdownOpened) { - setDropdownOpened(true); - } - const lastItemIndex = filteredData.map((item) => !!item.disabled).lastIndexOf(false); - setHovered(lastItemIndex); - shouldShowDropdown && scrollIntoView({ alignment: isColumn ? "end" : "start" }); - } - break; - } - case "Escape": { - event.preventDefault(); - setDropdownOpened(false); - setHovered(-1); - break; - } - case " ": { - if (!searchable) { - event.preventDefault(); - if (filteredData[hovered] && dropdownOpened) { - handleItemSelect(filteredData[hovered]); - } else { - setDropdownOpened(true); - setHovered(selectedItemIndex); - scrollSelectedItemIntoView(); - } - } - break; - } - case "Enter": { - if (!searchable) { - event.preventDefault(); - } - if (filteredData[hovered] && dropdownOpened) { - event.preventDefault(); - handleItemSelect(filteredData[hovered]); - } - } - } - }; - const handleInputBlur = (event) => { - typeof onBlur === "function" && onBlur(event); - const selected = sortedData.find((item) => item.value === _value); - if (selectOnBlur && filteredData[hovered] && dropdownOpened) { - handleItemSelect(filteredData[hovered]); - } - handleSearchChange((selected == null ? void 0 : selected.label) || ""); - setDropdownOpened(false); - }; - const handleInputFocus = (event) => { - typeof onFocus === "function" && onFocus(event); - if (searchable) { - setDropdownOpened(true); - } - }; - const handleInputChange = (event) => { - if (!readOnly) { - handleSearchChange(event.currentTarget.value); - if (clearable && event.currentTarget.value === "") { - handleChange(null); - } - setHovered(-1); - setDropdownOpened(true); - } - }; - const handleInputClick = () => { - if (!readOnly) { - setDropdownOpened(!dropdownOpened); - if (_value && !dropdownOpened) { - setHovered(selectedItemIndex); - } - } - }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_10__.Input.Wrapper, __spreadProps(__spreadValues({}, wrapperProps), { - __staticSelector: "Select" - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SelectPopover_SelectPopover_js__WEBPACK_IMPORTED_MODULE_11__.SelectPopover, { - opened: shouldShowDropdown, - transition, - transitionDuration, - shadow: "sm", - withinPortal, - __staticSelector: "Select", - onDirectionChange: setDirection, - switchDirectionOnFlip, - zIndex, - dropdownPosition, - positionDependencies: [...positionDependencies, inputValue], - classNames, - styles, - unstyled - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SelectPopover_SelectPopover_js__WEBPACK_IMPORTED_MODULE_11__.SelectPopover.Target, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - role: "combobox", - "aria-haspopup": "listbox", - "aria-owns": shouldShowDropdown ? `${inputProps.id}-items` : null, - "aria-controls": inputProps.id, - "aria-expanded": shouldShowDropdown, - onMouseLeave: () => setHovered(-1), - tabIndex: -1 - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", { - type: "hidden", - name, - value: _value || "", - form, - disabled - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_10__.Input, __spreadValues(__spreadProps(__spreadValues(__spreadValues({ - autoComplete: "off", - type: "search" - }, inputProps), others), { - ref: (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_12__.useMergedRef)(ref, inputRef), - onKeyDown: handleInputKeydown, - __staticSelector: "Select", - value: inputValue, - placeholder, - onChange: handleInputChange, - "aria-autocomplete": "list", - "aria-controls": shouldShowDropdown ? `${inputProps.id}-items` : null, - "aria-activedescendant": hovered >= 0 ? `${inputProps.id}-${hovered}` : null, - onMouseDown: handleInputClick, - onBlur: handleInputBlur, - onFocus: handleInputFocus, - readOnly: !searchable || readOnly, - disabled, - "data-mantine-stop-propagation": shouldShowDropdown, - name: null, - classNames: __spreadProps(__spreadValues({}, classNames), { - input: cx({ [classes.input]: !searchable }, classNames == null ? void 0 : classNames.input) - }) - }), (0,_SelectRightSection_get_select_right_section_props_js__WEBPACK_IMPORTED_MODULE_13__.getSelectRightSectionProps)({ - theme, - rightSection, - rightSectionWidth, - styles, - size: inputProps.size, - shouldClear: clearable && !!selectedValue, - clearButtonLabel, - onClear: handleClear, - error: wrapperProps.error, - clearButtonTabIndex, - disabled, - readOnly - }))))), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SelectPopover_SelectPopover_js__WEBPACK_IMPORTED_MODULE_11__.SelectPopover.Dropdown, { - component: dropdownComponent || _SelectScrollArea_SelectScrollArea_js__WEBPACK_IMPORTED_MODULE_14__.SelectScrollArea, - maxHeight: maxDropdownHeight, - direction, - id: inputProps.id, - innerRef: scrollableRef, - __staticSelector: "Select", - classNames, - styles - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SelectItems_SelectItems_js__WEBPACK_IMPORTED_MODULE_15__.SelectItems, { - data: filteredData, - hovered, - classNames, - styles, - isItemSelected: (val) => val === _value, - uuid: inputProps.id, - __staticSelector: "Select", - onItemHover: setHovered, - onItemSelect: handleItemSelect, - itemsRefs, - itemComponent, - size: inputProps.size, - nothingFound, - creatable: isCreatable && !!createLabel, - createLabel, - "aria-label": wrapperProps.label, - unstyled - })))); -}); -Select.displayName = "@mantine/core/Select"; - - -//# sourceMappingURL=Select.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/Select.styles.js": -/*!****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/Select.styles.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)(() => ({ - input: { - "&:not(:disabled)": { - cursor: "pointer", - "&::selection": { - backgroundColor: "transparent" - } - } - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Select.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/SelectItems/SelectItems.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/SelectItems/SelectItems.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SelectItems: () => (/* binding */ SelectItems) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/utils/random-id/random-id.js"); -/* harmony import */ var _Text_Text_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Text/Text.js */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _Divider_Divider_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Divider/Divider.js */ "./node_modules/@mantine/core/esm/Divider/Divider.js"); -/* harmony import */ var _SelectItems_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectItems.styles.js */ "./node_modules/@mantine/core/esm/Select/SelectItems/SelectItems.styles.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function SelectItems({ - data, - hovered, - classNames, - styles, - isItemSelected, - uuid, - __staticSelector, - onItemHover, - onItemSelect, - itemsRefs, - itemComponent: Item, - size, - nothingFound, - creatable, - createLabel, - unstyled -}) { - const { classes } = (0,_SelectItems_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ size }, { classNames, styles, unstyled, name: __staticSelector }); - const unGroupedItems = []; - const groupedItems = []; - let creatableDataIndex = null; - const constructItemComponent = (item, index) => { - const selected = typeof isItemSelected === "function" ? isItemSelected(item.value) : false; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Item, __spreadValues({ - key: item.value, - className: classes.item, - "data-disabled": item.disabled || void 0, - "data-hovered": !item.disabled && hovered === index || void 0, - "data-selected": !item.disabled && selected || void 0, - selected, - onMouseEnter: () => onItemHover(index), - id: `${uuid}-${index}`, - role: "option", - tabIndex: -1, - "aria-selected": hovered === index, - ref: (node) => { - if (itemsRefs && itemsRefs.current) { - itemsRefs.current[item.value] = node; - } - }, - onMouseDown: !item.disabled ? (event) => { - event.preventDefault(); - onItemSelect(item); - } : null, - disabled: item.disabled - }, item)); - }; - let groupName = null; - data.forEach((item, index) => { - if (item.creatable) { - creatableDataIndex = index; - } else if (!item.group) { - unGroupedItems.push(constructItemComponent(item, index)); - } else { - if (groupName !== item.group) { - groupName = item.group; - groupedItems.push(/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.separator, - key: `__mantine-divider-${index}` - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Divider_Divider_js__WEBPACK_IMPORTED_MODULE_2__.Divider, { - classNames: { label: classes.separatorLabel }, - label: item.group - }))); - } - groupedItems.push(constructItemComponent(item, index)); - } - }); - if (creatable) { - const creatableDataItem = data[creatableDataIndex]; - unGroupedItems.push(/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - key: (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.randomId)(), - className: classes.item, - "data-hovered": hovered === creatableDataIndex || void 0, - onMouseEnter: () => onItemHover(creatableDataIndex), - onMouseDown: (event) => { - event.preventDefault(); - onItemSelect(creatableDataItem); - }, - tabIndex: -1, - ref: (node) => { - if (itemsRefs && itemsRefs.current) { - itemsRefs.current[creatableDataItem.value] = node; - } - } - }, createLabel)); - } - if (groupedItems.length > 0 && unGroupedItems.length > 0) { - unGroupedItems.unshift(/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.separator, - key: "empty-group-separator" - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Divider_Divider_js__WEBPACK_IMPORTED_MODULE_2__.Divider, null))); - } - return groupedItems.length > 0 || unGroupedItems.length > 0 ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, groupedItems, unGroupedItems) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Text_Text_js__WEBPACK_IMPORTED_MODULE_4__.Text, { - size, - unstyled, - className: classes.nothingFound - }, nothingFound); -} -SelectItems.displayName = "@mantine/core/SelectItems"; - - -//# sourceMappingURL=SelectItems.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/SelectItems/SelectItems.styles.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/SelectItems/SelectItems.styles.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size }) => ({ - item: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - boxSizing: "border-box", - textAlign: "left", - width: "100%", - padding: `${theme.fn.size({ size, sizes: theme.spacing }) / 1.5}px ${theme.fn.size({ - size, - sizes: theme.spacing - })}px`, - cursor: "pointer", - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - borderRadius: theme.fn.radius(), - "&[data-hovered]": { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[1] - }, - "&[data-selected]": __spreadValues({ - backgroundColor: theme.fn.variant({ variant: "filled" }).background, - color: theme.fn.variant({ variant: "filled" }).color - }, theme.fn.hover({ backgroundColor: theme.fn.variant({ variant: "filled" }).hover })), - "&[data-disabled]": { - cursor: "default", - color: theme.colors.dark[2] - } - }), - nothingFound: { - boxSizing: "border-box", - color: theme.colors.gray[6], - paddingTop: theme.fn.size({ size, sizes: theme.spacing }) / 2, - paddingBottom: theme.fn.size({ size, sizes: theme.spacing }) / 2, - textAlign: "center" - }, - separator: { - boxSizing: "border-box", - textAlign: "left", - width: "100%", - padding: `${theme.fn.size({ size, sizes: theme.spacing }) / 1.5}px ${theme.fn.size({ - size, - sizes: theme.spacing - })}px` - }, - separatorLabel: { - color: theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[5] - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=SelectItems.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/SelectPopover/SelectPopover.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/SelectPopover/SelectPopover.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SelectPopover: () => (/* binding */ SelectPopover) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _SelectScrollArea_SelectScrollArea_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../SelectScrollArea/SelectScrollArea.js */ "./node_modules/@mantine/core/esm/Select/SelectScrollArea/SelectScrollArea.js"); -/* harmony import */ var _SelectPopover_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectPopover.styles.js */ "./node_modules/@mantine/core/esm/Select/SelectPopover/SelectPopover.styles.js"); -/* harmony import */ var _Popover_Popover_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Popover/Popover.js */ "./node_modules/@mantine/core/esm/Popover/Popover.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function SelectPopoverDropdown(_a) { - var _b = _a, { - children, - component = "div", - maxHeight = 220, - direction = "column", - id, - innerRef, - __staticSelector, - styles, - classNames, - unstyled - } = _b, others = __objRest(_b, [ - "children", - "component", - "maxHeight", - "direction", - "id", - "innerRef", - "__staticSelector", - "styles", - "classNames", - "unstyled" - ]); - const { classes } = (0,_SelectPopover_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])(null, { name: __staticSelector, styles, classNames, unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Popover_Popover_js__WEBPACK_IMPORTED_MODULE_2__.Popover.Dropdown, __spreadValues({ - p: 0, - onMouseDown: (event) => event.preventDefault() - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - style: { maxHeight, display: "flex" } - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, { - component: component || "div", - id: `${id}-items`, - "aria-labelledby": `${id}-label`, - role: "listbox", - onMouseDown: (event) => event.preventDefault(), - style: { flex: 1, overflowY: component !== _SelectScrollArea_SelectScrollArea_js__WEBPACK_IMPORTED_MODULE_4__.SelectScrollArea ? "auto" : void 0 }, - "data-combobox-popover": true, - ref: innerRef - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.itemsWrapper, - style: { flexDirection: direction } - }, children)))); -} -function SelectPopover({ - opened, - transition = "fade", - transitionDuration = 0, - shadow, - withinPortal, - children, - __staticSelector, - onDirectionChange, - switchDirectionOnFlip, - zIndex, - dropdownPosition, - positionDependencies = [], - classNames, - styles, - unstyled, - readOnly -}) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Popover_Popover_js__WEBPACK_IMPORTED_MODULE_2__.Popover, { - unstyled, - classNames, - styles, - width: "target", - withRoles: false, - opened, - middlewares: { flip: dropdownPosition === "flip", shift: false }, - position: dropdownPosition === "flip" ? "bottom" : dropdownPosition, - positionDependencies, - zIndex, - __staticSelector, - withinPortal, - transition, - transitionDuration, - shadow, - disabled: readOnly, - onPositionChange: (nextPosition) => switchDirectionOnFlip && (onDirectionChange == null ? void 0 : onDirectionChange(nextPosition === "top" ? "column-reverse" : "column")) - }, children); -} -SelectPopover.Target = _Popover_Popover_js__WEBPACK_IMPORTED_MODULE_2__.Popover.Target; -SelectPopover.Dropdown = SelectPopoverDropdown; - - -//# sourceMappingURL=SelectPopover.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/SelectPopover/SelectPopover.styles.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/SelectPopover/SelectPopover.styles.js ***! - \*************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)(() => ({ - dropdown: {}, - itemsWrapper: { - padding: 4, - display: "flex", - width: "100%", - boxSizing: "border-box" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=SelectPopover.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/SelectRightSection/ChevronIcon.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/SelectRightSection/ChevronIcon.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ChevronIcon: () => (/* binding */ ChevronIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const iconSizes = { - xs: 14, - sm: 18, - md: 20, - lg: 24, - xl: 28 -}; -function ChevronIcon(_a) { - var _b = _a, { size, error, style } = _b, others = __objRest(_b, ["size", "error", "style"]); - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useMantineTheme)(); - const _size = theme.fn.size({ size, sizes: iconSizes }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - width: _size, - height: _size, - viewBox: "0 0 15 15", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - style: __spreadValues({ color: error ? theme.colors.red[6] : theme.colors.gray[6] }, style), - "data-chevron": true - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z", - fill: "currentColor", - fillRule: "evenodd", - clipRule: "evenodd" - })); -} - - -//# sourceMappingURL=ChevronIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/SelectRightSection/SelectRightSection.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/SelectRightSection/SelectRightSection.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SelectRightSection: () => (/* binding */ SelectRightSection) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _ChevronIcon_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ChevronIcon.js */ "./node_modules/@mantine/core/esm/Select/SelectRightSection/ChevronIcon.js"); -/* harmony import */ var _CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../CloseButton/CloseButton.js */ "./node_modules/@mantine/core/esm/CloseButton/CloseButton.js"); - - - - -function SelectRightSection({ - shouldClear, - clearButtonLabel, - onClear, - size, - error, - clearButtonTabIndex -}) { - return shouldClear ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CloseButton_CloseButton_js__WEBPACK_IMPORTED_MODULE_1__.CloseButton, { - variant: "transparent", - "aria-label": clearButtonLabel, - onClick: onClear, - size, - tabIndex: clearButtonTabIndex, - onMouseDown: (event) => event.preventDefault() - }) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ChevronIcon_js__WEBPACK_IMPORTED_MODULE_2__.ChevronIcon, { - error, - size - }); -} -SelectRightSection.displayName = "@mantine/core/SelectRightSection"; - - -//# sourceMappingURL=SelectRightSection.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/SelectRightSection/get-select-right-section-props.js": -/*!****************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/SelectRightSection/get-select-right-section-props.js ***! - \****************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getSelectRightSectionProps: () => (/* binding */ getSelectRightSectionProps) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _SelectRightSection_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectRightSection.js */ "./node_modules/@mantine/core/esm/Select/SelectRightSection/SelectRightSection.js"); - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const RIGHT_SECTION_WIDTH = { - xs: 24, - sm: 30, - md: 34, - lg: 44, - xl: 54 -}; -function getSelectRightSectionProps(_a) { - var _b = _a, { - styles, - rightSection, - rightSectionWidth, - theme - } = _b, props = __objRest(_b, [ - "styles", - "rightSection", - "rightSectionWidth", - "theme" - ]); - if (rightSection) { - return { rightSection, rightSectionWidth, styles }; - } - const _styles = typeof styles === "function" ? styles(theme) : styles; - return { - rightSectionWidth: theme.fn.size({ size: props.size, sizes: RIGHT_SECTION_WIDTH }), - rightSection: !props.readOnly && !(props.disabled && props.shouldClear) && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SelectRightSection_js__WEBPACK_IMPORTED_MODULE_1__.SelectRightSection, __spreadValues({}, props)), - styles: __spreadProps(__spreadValues({}, _styles), { - rightSection: __spreadProps(__spreadValues({}, _styles == null ? void 0 : _styles.rightSection), { - pointerEvents: props.shouldClear ? void 0 : "none" - }) - }) - }; -} - - -//# sourceMappingURL=get-select-right-section-props.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/SelectScrollArea/SelectScrollArea.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/SelectScrollArea/SelectScrollArea.js ***! - \************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SelectScrollArea: () => (/* binding */ SelectScrollArea) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _ScrollArea_ScrollArea_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../ScrollArea/ScrollArea.js */ "./node_modules/@mantine/core/esm/ScrollArea/ScrollArea.js"); - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const SelectScrollArea = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { style } = _b, others = __objRest(_b, ["style"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ScrollArea_ScrollArea_js__WEBPACK_IMPORTED_MODULE_1__.ScrollArea, __spreadProps(__spreadValues({}, others), { - style: __spreadValues({ width: "100%" }, style), - viewportRef: ref - }), others.children); -}); -SelectScrollArea.displayName = "@mantine/core/SelectScrollArea"; - - -//# sourceMappingURL=SelectScrollArea.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Select/filter-data/filter-data.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Select/filter-data/filter-data.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ filterData: () => (/* binding */ filterData) -/* harmony export */ }); -function filterData({ - data, - searchable, - limit, - searchValue, - filter, - value, - filterDataOnExactSearchMatch -}) { - if (!searchable) { - return data; - } - const selected = value != null ? data.find((item) => item.value === value) || null : null; - if (selected && !filterDataOnExactSearchMatch && (selected == null ? void 0 : selected.label) === searchValue) { - if (limit) { - if (limit >= data.length) { - return data; - } - const firstIndex = data.indexOf(selected); - const lastIndex = firstIndex + limit; - const firstIndexOffset = lastIndex - data.length; - if (firstIndexOffset > 0) { - return data.slice(firstIndex - firstIndexOffset); - } - return data.slice(firstIndex, lastIndex); - } - return data; - } - const result = []; - for (let i = 0; i < data.length; i += 1) { - if (filter(searchValue, data[i])) { - result.push(data[i]); - } - if (result.length >= limit) { - break; - } - } - return result; -} - - -//# sourceMappingURL=filter-data.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Stack/Stack.js": -/*!*******************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Stack/Stack.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Stack: () => (/* binding */ Stack) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Stack_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Stack.styles.js */ "./node_modules/@mantine/core/esm/Stack/Stack.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - spacing: "md", - align: "stretch", - justify: "flex-start" -}; -const Stack = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Stack", defaultProps, props), { spacing, className, align, justify, unstyled } = _a, others = __objRest(_a, ["spacing", "className", "align", "justify", "unstyled"]); - const { classes, cx } = (0,_Stack_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ spacing, align, justify }, { name: "Stack", unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - className: cx(classes.root, className), - ref - }, others)); -}); -Stack.displayName = "@mantine/core/Stack"; - - -//# sourceMappingURL=Stack.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Stack/Stack.styles.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Stack/Stack.styles.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { spacing, align, justify }) => ({ - root: { - display: "flex", - flexDirection: "column", - alignItems: align, - justifyContent: justify, - gap: theme.fn.size({ size: spacing, sizes: theme.spacing }) - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Stack.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Table/Table.js": -/*!*******************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Table/Table.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Table: () => (/* binding */ Table) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Table_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Table.styles.js */ "./node_modules/@mantine/core/esm/Table/Table.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - striped: false, - highlightOnHover: false, - captionSide: "top", - horizontalSpacing: "xs", - fontSize: "sm", - verticalSpacing: 7, - withBorder: false, - withColumnBorders: false -}; -const Table = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Table", defaultProps, props), { - className, - children, - striped, - highlightOnHover, - captionSide, - horizontalSpacing, - verticalSpacing, - fontSize, - unstyled, - withBorder, - withColumnBorders - } = _a, others = __objRest(_a, [ - "className", - "children", - "striped", - "highlightOnHover", - "captionSide", - "horizontalSpacing", - "verticalSpacing", - "fontSize", - "unstyled", - "withBorder", - "withColumnBorders" - ]); - const { classes, cx } = (0,_Table_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ captionSide, verticalSpacing, horizontalSpacing, fontSize, withBorder, withColumnBorders }, { unstyled, name: "Table" }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadProps(__spreadValues({}, others), { - component: "table", - ref, - className: cx(classes.root, className), - "data-striped": striped || void 0, - "data-hover": highlightOnHover || void 0 - }), children); -}); -Table.displayName = "@mantine/core/Table"; - - -//# sourceMappingURL=Table.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Table/Table.styles.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Table/Table.styles.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { - captionSide, - horizontalSpacing, - verticalSpacing, - fontSize, - withBorder, - withColumnBorders -}) => { - const border = `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[3]}`; - return { - root: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - width: "100%", - borderCollapse: "collapse", - captionSide, - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - lineHeight: theme.lineHeight, - border: withBorder ? border : "", - "& caption": { - marginTop: captionSide === "top" ? 0 : theme.spacing.xs, - marginBottom: captionSide === "bottom" ? 0 : theme.spacing.xs, - fontSize: theme.fontSizes.sm, - color: theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6] - }, - "& thead tr th, & tfoot tr th, & tbody tr th": { - textAlign: "left", - fontWeight: "bold", - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.gray[7], - fontSize: theme.fn.size({ size: fontSize, sizes: theme.fontSizes }), - padding: `${theme.fn.size({ - size: verticalSpacing, - sizes: theme.spacing - })}px ${theme.fn.size({ size: horizontalSpacing, sizes: theme.spacing })}px` - }, - "& thead tr th": { - borderBottom: border - }, - "& tfoot tr th, & tbody tr th": { - borderTop: border - }, - "& tbody tr td": { - padding: `${theme.fn.size({ - size: verticalSpacing, - sizes: theme.spacing - })}px ${theme.fn.size({ size: horizontalSpacing, sizes: theme.spacing })}px`, - borderTop: border, - fontSize: theme.fn.size({ size: fontSize, sizes: theme.fontSizes }) - }, - "& tbody tr:first-of-type td, & tbody tr:first-of-type th": { - borderTop: "none" - }, - "& thead th, & tbody td": { - borderRight: withColumnBorders ? border : "none", - "&:last-of-type": { - borderRight: "none", - borderLeft: withColumnBorders ? border : "none" - } - }, - "& tbody tr th": { - borderRight: withColumnBorders ? border : "none" - }, - "&[data-striped] tbody tr:nth-of-type(odd)": { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[0] - }, - "&[data-hover] tbody tr": theme.fn.hover({ - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[1] - }) - }) - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Table.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Text/Text.js": -/*!*****************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Text/Text.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Text: () => (/* binding */ Text), -/* harmony export */ _Text: () => (/* binding */ _Text) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _Text_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Text.styles.js */ "./node_modules/@mantine/core/esm/Text/Text.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - variant: "text" -}; -const _Text = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Text", defaultProps, props), { - className, - size, - weight, - transform, - color, - align, - variant, - lineClamp, - truncate, - gradient, - inline, - inherit, - underline, - strikethrough, - italic, - classNames, - styles, - unstyled, - span - } = _a, others = __objRest(_a, [ - "className", - "size", - "weight", - "transform", - "color", - "align", - "variant", - "lineClamp", - "truncate", - "gradient", - "inline", - "inherit", - "underline", - "strikethrough", - "italic", - "classNames", - "styles", - "unstyled", - "span" - ]); - const { classes, cx } = (0,_Text_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])({ - variant, - color, - size, - lineClamp, - truncate, - inline, - inherit, - underline, - strikethrough, - italic, - weight, - transform, - align, - gradient - }, { unstyled, name: "Text" }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - ref, - className: cx(classes.root, { [classes.gradient]: variant === "gradient" }, className), - component: span ? "span" : "div" - }, others)); -}); -_Text.displayName = "@mantine/core/Text"; -const Text = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createPolymorphicComponent)(_Text); - - -//# sourceMappingURL=Text.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Text/Text.styles.js": -/*!************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Text/Text.styles.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function getTextDecoration({ - underline, - strikethrough -}) { - const styles = []; - if (underline) { - styles.push("underline"); - } - if (strikethrough) { - styles.push("line-through"); - } - return styles.length > 0 ? styles.join(" ") : "none"; -} -function getTextColor({ theme, color, variant }) { - if (color === "dimmed") { - return theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6]; - } - return typeof color === "string" && (color in theme.colors || color.split(".")[0] in theme.colors) ? theme.fn.variant({ variant: "filled", color }).background : variant === "link" ? theme.colors[theme.primaryColor][theme.colorScheme === "dark" ? 4 : 7] : color || "inherit"; -} -function getLineClamp(lineClamp) { - if (typeof lineClamp === "number") { - return { - overflow: "hidden", - textOverflow: "ellipsis", - display: "-webkit-box", - WebkitLineClamp: lineClamp, - WebkitBoxOrient: "vertical" - }; - } - return null; -} -function getTruncate({ theme, truncate }) { - if (truncate === "start") { - return { - overflow: "hidden", - textOverflow: "ellipsis", - whiteSpace: "nowrap", - direction: theme.dir === "ltr" ? "rtl" : "ltr", - textAlign: theme.dir === "ltr" ? "right" : "left" - }; - } - if (truncate) { - return { - overflow: "hidden", - textOverflow: "ellipsis", - whiteSpace: "nowrap" - }; - } - return null; -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { - color, - variant, - size, - lineClamp, - truncate, - inline, - inherit, - underline, - gradient, - weight, - transform, - align, - strikethrough, - italic -}) => { - const colors = theme.fn.variant({ variant: "gradient", gradient }); - return { - root: __spreadValues(__spreadProps(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, theme.fn.fontStyles()), theme.fn.focusStyles()), getLineClamp(lineClamp)), getTruncate({ theme, truncate })), { - color: getTextColor({ color, theme, variant }), - fontFamily: inherit ? "inherit" : theme.fontFamily, - fontSize: inherit || size === void 0 ? "inherit" : theme.fn.size({ size, sizes: theme.fontSizes }), - lineHeight: inherit ? "inherit" : inline ? 1 : theme.lineHeight, - textDecoration: getTextDecoration({ underline, strikethrough }), - WebkitTapHighlightColor: "transparent", - fontWeight: inherit ? "inherit" : weight, - textTransform: transform, - textAlign: align, - fontStyle: italic ? "italic" : void 0 - }), theme.fn.hover(variant === "link" && underline === void 0 ? { - textDecoration: "underline" - } : void 0)), - gradient: { - backgroundImage: colors.background, - WebkitBackgroundClip: "text", - WebkitTextFillColor: "transparent" - } - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Text.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/TextInput/TextInput.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/TextInput/TextInput.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ TextInput: () => (/* binding */ TextInput) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _Input_use_input_props_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Input/use-input-props.js */ "./node_modules/@mantine/core/esm/Input/use-input-props.js"); -/* harmony import */ var _Input_Input_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Input/Input.js */ "./node_modules/@mantine/core/esm/Input/Input.js"); - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - type: "text", - size: "sm", - __staticSelector: "TextInput" -}; -const TextInput = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_Input_use_input_props_js__WEBPACK_IMPORTED_MODULE_1__.useInputProps)("TextInput", defaultProps, props), { inputProps, wrapperProps } = _a, others = __objRest(_a, ["inputProps", "wrapperProps"]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_2__.Input.Wrapper, __spreadValues({}, wrapperProps), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Input_Input_js__WEBPACK_IMPORTED_MODULE_2__.Input, __spreadProps(__spreadValues(__spreadValues({}, inputProps), others), { - ref - }))); -}); -TextInput.displayName = "@mantine/core/TextInput"; - - -//# sourceMappingURL=TextInput.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Tooltip/Tooltip.errors.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Tooltip/Tooltip.errors.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ TOOLTIP_ERRORS: () => (/* binding */ TOOLTIP_ERRORS) -/* harmony export */ }); -const TOOLTIP_ERRORS = { - children: "Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported" -}; - - -//# sourceMappingURL=Tooltip.errors.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Tooltip/Tooltip.js": -/*!***********************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Tooltip/Tooltip.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Tooltip: () => (/* binding */ Tooltip) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/is-element/is-element.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _TooltipGroup_TooltipGroup_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TooltipGroup/TooltipGroup.js */ "./node_modules/@mantine/core/esm/Tooltip/TooltipGroup/TooltipGroup.js"); -/* harmony import */ var _TooltipFloating_TooltipFloating_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TooltipFloating/TooltipFloating.js */ "./node_modules/@mantine/core/esm/Tooltip/TooltipFloating/TooltipFloating.js"); -/* harmony import */ var _use_tooltip_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./use-tooltip.js */ "./node_modules/@mantine/core/esm/Tooltip/use-tooltip.js"); -/* harmony import */ var _Tooltip_errors_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Tooltip.errors.js */ "./node_modules/@mantine/core/esm/Tooltip/Tooltip.errors.js"); -/* harmony import */ var _Tooltip_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Tooltip.styles.js */ "./node_modules/@mantine/core/esm/Tooltip/Tooltip.styles.js"); -/* harmony import */ var _Floating_get_floating_position_get_floating_position_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Floating/get-floating-position/get-floating-position.js */ "./node_modules/@mantine/core/esm/Floating/get-floating-position/get-floating-position.js"); -/* harmony import */ var _Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Portal/OptionalPortal.js */ "./node_modules/@mantine/core/esm/Portal/OptionalPortal.js"); -/* harmony import */ var _Transition_Transition_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Transition/Transition.js */ "./node_modules/@mantine/core/esm/Transition/Transition.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _Floating_FloatingArrow_FloatingArrow_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Floating/FloatingArrow/FloatingArrow.js */ "./node_modules/@mantine/core/esm/Floating/FloatingArrow/FloatingArrow.js"); - - - - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - position: "top", - refProp: "ref", - withinPortal: false, - inline: false, - arrowSize: 4, - arrowOffset: 5, - arrowRadius: 0, - arrowPosition: "side", - offset: 5, - transition: "fade", - transitionDuration: 100, - width: "auto", - events: { hover: true, focus: false, touch: false }, - zIndex: (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.getDefaultZIndex)("popover"), - positionDependencies: [] -}; -const _Tooltip = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const arrowRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("Tooltip", defaultProps, props), { - children, - position, - refProp, - label, - openDelay, - closeDelay, - onPositionChange, - opened, - withinPortal, - radius, - color, - classNames, - styles, - unstyled, - style, - className, - withArrow, - arrowSize, - arrowOffset, - arrowRadius, - arrowPosition, - offset, - transition, - transitionDuration, - multiline, - width, - events, - zIndex, - disabled, - positionDependencies, - onClick, - onMouseEnter, - onMouseLeave, - inline - } = _a, others = __objRest(_a, [ - "children", - "position", - "refProp", - "label", - "openDelay", - "closeDelay", - "onPositionChange", - "opened", - "withinPortal", - "radius", - "color", - "classNames", - "styles", - "unstyled", - "style", - "className", - "withArrow", - "arrowSize", - "arrowOffset", - "arrowRadius", - "arrowPosition", - "offset", - "transition", - "transitionDuration", - "multiline", - "width", - "events", - "zIndex", - "disabled", - "positionDependencies", - "onClick", - "onMouseEnter", - "onMouseLeave", - "inline" - ]); - const { classes, cx, theme } = (0,_Tooltip_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ radius, color, width, multiline }, { name: "Tooltip", classNames, styles, unstyled }); - const tooltip = (0,_use_tooltip_js__WEBPACK_IMPORTED_MODULE_4__.useTooltip)({ - position: (0,_Floating_get_floating_position_get_floating_position_js__WEBPACK_IMPORTED_MODULE_5__.getFloatingPosition)(theme.dir, position), - closeDelay, - openDelay, - onPositionChange, - opened, - events, - arrowRef, - arrowOffset, - offset: offset + (withArrow ? arrowSize / 2 : 0), - positionDependencies: [...positionDependencies, children], - inline - }); - if (!(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_6__.isElement)(children)) { - throw new Error(_Tooltip_errors_js__WEBPACK_IMPORTED_MODULE_7__.TOOLTIP_ERRORS.children); - } - const targetRef = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_8__.useMergedRef)(tooltip.reference, children.ref, ref); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_9__.OptionalPortal, { - withinPortal - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Transition_Transition_js__WEBPACK_IMPORTED_MODULE_10__.Transition, { - mounted: !disabled && tooltip.opened, - transition, - duration: tooltip.isGroupPhase ? 10 : transitionDuration - }, (transitionStyles) => { - var _a2, _b; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_11__.Box, __spreadValues(__spreadValues({}, others), tooltip.getFloatingProps({ - ref: tooltip.floating, - className: classes.tooltip, - style: __spreadProps(__spreadValues(__spreadValues({}, style), transitionStyles), { - zIndex, - top: (_a2 = tooltip.y) != null ? _a2 : 0, - left: (_b = tooltip.x) != null ? _b : 0 - }) - })), label, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Floating_FloatingArrow_FloatingArrow_js__WEBPACK_IMPORTED_MODULE_12__.FloatingArrow, { - ref: arrowRef, - arrowX: tooltip.arrowX, - arrowY: tooltip.arrowY, - visible: withArrow, - withBorder: false, - position: tooltip.placement, - arrowSize, - arrowOffset, - arrowRadius, - arrowPosition, - className: classes.arrow - })); - })), (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(children, tooltip.getReferenceProps(__spreadValues({ - onClick, - onMouseEnter, - onMouseLeave, - onMouseMove: props.onMouseMove, - onPointerDown: props.onPointerDown, - onPointerEnter: props.onPointerEnter, - [refProp]: targetRef, - className: cx(className, children.props.className) - }, children.props)))); -}); -_Tooltip.Group = _TooltipGroup_TooltipGroup_js__WEBPACK_IMPORTED_MODULE_13__.TooltipGroup; -_Tooltip.Floating = _TooltipFloating_TooltipFloating_js__WEBPACK_IMPORTED_MODULE_14__.TooltipFloating; -_Tooltip.displayName = "@mantine/core/Tooltip"; -const Tooltip = _Tooltip; - - -//# sourceMappingURL=Tooltip.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Tooltip/Tooltip.styles.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Tooltip/Tooltip.styles.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function getColors(theme, color) { - if (!color) { - return { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[9], - color: theme.white - }; - } - const colors = theme.fn.variant({ variant: "filled", color, primaryFallback: false }); - return { - backgroundColor: colors.background, - color: colors.color - }; -} -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { color, radius, width, multiline }) => ({ - tooltip: __spreadProps(__spreadValues(__spreadValues({}, theme.fn.fontStyles()), getColors(theme, color)), { - lineHeight: theme.lineHeight, - fontSize: theme.fontSizes.sm, - borderRadius: theme.fn.radius(radius), - padding: `calc(${theme.spacing.xs}px / 2) ${theme.spacing.xs}px`, - position: "absolute", - whiteSpace: multiline ? "unset" : "nowrap", - pointerEvents: "none", - width - }), - arrow: { - backgroundColor: "inherit", - border: 0, - zIndex: 1 - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Tooltip.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Tooltip/TooltipFloating/TooltipFloating.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Tooltip/TooltipFloating/TooltipFloating.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ TooltipFloating: () => (/* binding */ TooltipFloating) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/is-element/is-element.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Tooltip_styles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Tooltip.styles.js */ "./node_modules/@mantine/core/esm/Tooltip/Tooltip.styles.js"); -/* harmony import */ var _Tooltip_errors_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Tooltip.errors.js */ "./node_modules/@mantine/core/esm/Tooltip/Tooltip.errors.js"); -/* harmony import */ var _use_floating_tooltip_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./use-floating-tooltip.js */ "./node_modules/@mantine/core/esm/Tooltip/TooltipFloating/use-floating-tooltip.js"); -/* harmony import */ var _Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../Portal/OptionalPortal.js */ "./node_modules/@mantine/core/esm/Portal/OptionalPortal.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - refProp: "ref", - withinPortal: true, - offset: 10, - position: "right", - zIndex: (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.getDefaultZIndex)("popover") -}; -function TooltipFloating(props) { - var _b; - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("TooltipFloating", defaultProps, props), { - children, - refProp, - withinPortal, - style, - className, - classNames, - styles, - unstyled, - radius, - color, - label, - offset, - position, - multiline, - width, - zIndex, - disabled - } = _a, others = __objRest(_a, [ - "children", - "refProp", - "withinPortal", - "style", - "className", - "classNames", - "styles", - "unstyled", - "radius", - "color", - "label", - "offset", - "position", - "multiline", - "width", - "zIndex", - "disabled" - ]); - const { handleMouseMove, x, y, opened, boundaryRef, floating, setOpened } = (0,_use_floating_tooltip_js__WEBPACK_IMPORTED_MODULE_3__.useFloatingTooltip)({ - offset, - position - }); - const { classes, cx } = (0,_Tooltip_styles_js__WEBPACK_IMPORTED_MODULE_4__["default"])({ radius, color, multiline, width }, { name: "TooltipFloating", classNames, styles, unstyled }); - if (!(0,_mantine_utils__WEBPACK_IMPORTED_MODULE_5__.isElement)(children)) { - throw new Error(_Tooltip_errors_js__WEBPACK_IMPORTED_MODULE_6__.TOOLTIP_ERRORS.children); - } - const targetRef = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useMergedRef)(boundaryRef, children.ref); - const onMouseEnter = (event) => { - var _a2, _b2; - (_b2 = (_a2 = children.props).onMouseEnter) == null ? void 0 : _b2.call(_a2, event); - handleMouseMove(event); - setOpened(true); - }; - const onMouseLeave = (event) => { - var _a2, _b2; - (_b2 = (_a2 = children.props).onMouseLeave) == null ? void 0 : _b2.call(_a2, event); - setOpened(false); - }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Portal_OptionalPortal_js__WEBPACK_IMPORTED_MODULE_8__.OptionalPortal, { - withinPortal - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_9__.Box, __spreadProps(__spreadValues({}, others), { - ref: floating, - className: cx(classes.tooltip, className), - style: __spreadProps(__spreadValues({}, style), { - zIndex, - display: !disabled && opened ? "block" : "none", - top: y != null ? y : "", - left: (_b = Math.round(x)) != null ? _b : "" - }) - }), label)), (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(children, __spreadProps(__spreadValues({}, children.props), { - [refProp]: targetRef, - onMouseEnter, - onMouseLeave - }))); -} -TooltipFloating.displayName = "@mantine/core/TooltipFloating"; - - -//# sourceMappingURL=TooltipFloating.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Tooltip/TooltipFloating/use-floating-tooltip.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Tooltip/TooltipFloating/use-floating-tooltip.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useFloatingTooltip: () => (/* binding */ useFloatingTooltip) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/react/dist/floating-ui.react.esm.js"); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/core/dist/floating-ui.core.mjs"); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs"); - - - -function useFloatingTooltip({ - offset, - position -}) { - const [opened, setOpened] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const boundaryRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const { x, y, reference, floating, refs, update, placement } = (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_1__.useFloating)({ - placement: position, - middleware: [ - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_2__.shift)({ - crossAxis: true, - padding: 5, - rootBoundary: "document" - }) - ] - }); - const horizontalOffset = placement.includes("right") ? offset : position.includes("left") ? offset * -1 : 0; - const verticalOffset = placement.includes("bottom") ? offset : position.includes("top") ? offset * -1 : 0; - const handleMouseMove = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(({ clientX, clientY }) => { - reference({ - getBoundingClientRect() { - return { - width: 0, - height: 0, - x: clientX, - y: clientY, - left: clientX + horizontalOffset, - top: clientY + verticalOffset, - right: clientX, - bottom: clientY - }; - } - }); - }, [reference]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (refs.floating.current) { - const boundary = boundaryRef.current; - boundary.addEventListener("mousemove", handleMouseMove); - const parents = (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.getOverflowAncestors)(refs.floating.current); - parents.forEach((parent) => { - parent.addEventListener("scroll", update); - }); - return () => { - boundary.removeEventListener("mousemove", handleMouseMove); - parents.forEach((parent) => { - parent.removeEventListener("scroll", update); - }); - }; - } - return void 0; - }, [reference, refs.floating.current, update, handleMouseMove, opened]); - return { handleMouseMove, x, y, opened, setOpened, boundaryRef, floating }; -} - - -//# sourceMappingURL=use-floating-tooltip.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Tooltip/TooltipGroup/TooltipGroup.context.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Tooltip/TooltipGroup/TooltipGroup.context.js ***! - \*************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ TooltipGroupProvider: () => (/* binding */ TooltipGroupProvider), -/* harmony export */ useTooltipGroupContext: () => (/* binding */ useTooltipGroupContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const TooltipGroupContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(false); -const TooltipGroupProvider = TooltipGroupContext.Provider; -const useTooltipGroupContext = () => (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(TooltipGroupContext); - - -//# sourceMappingURL=TooltipGroup.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Tooltip/TooltipGroup/TooltipGroup.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Tooltip/TooltipGroup/TooltipGroup.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ TooltipGroup: () => (/* binding */ TooltipGroup) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/react/dist/floating-ui.react.esm.js"); -/* harmony import */ var _TooltipGroup_context_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TooltipGroup.context.js */ "./node_modules/@mantine/core/esm/Tooltip/TooltipGroup/TooltipGroup.context.js"); - - - - -function TooltipGroup({ children, openDelay = 0, closeDelay = 0 }) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_TooltipGroup_context_js__WEBPACK_IMPORTED_MODULE_1__.TooltipGroupProvider, { - value: true - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_floating_ui_react__WEBPACK_IMPORTED_MODULE_2__.FloatingDelayGroup, { - delay: { open: openDelay, close: closeDelay } - }, children)); -} -TooltipGroup.displayName = "@mantine/core/TooltipGroup"; - - -//# sourceMappingURL=TooltipGroup.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Tooltip/use-tooltip.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Tooltip/use-tooltip.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useTooltip: () => (/* binding */ useTooltip) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/react/dist/floating-ui.react.esm.js"); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/core/dist/floating-ui.core.mjs"); -/* harmony import */ var _floating_ui_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @floating-ui/react */ "./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); -/* harmony import */ var _TooltipGroup_TooltipGroup_context_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TooltipGroup/TooltipGroup.context.js */ "./node_modules/@mantine/core/esm/Tooltip/TooltipGroup/TooltipGroup.context.js"); -/* harmony import */ var _Floating_use_floating_auto_update_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Floating/use-floating-auto-update.js */ "./node_modules/@mantine/core/esm/Floating/use-floating-auto-update.js"); - - - - - - -function useTooltip(settings) { - const [uncontrolledOpened, setUncontrolledOpened] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const controlled = typeof settings.opened === "boolean"; - const opened = controlled ? settings.opened : uncontrolledOpened; - const withinGroup = (0,_TooltipGroup_TooltipGroup_context_js__WEBPACK_IMPORTED_MODULE_1__.useTooltipGroupContext)(); - const uid = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useId)(); - const { delay: groupDelay, currentId, setCurrentId } = (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.useDelayGroupContext)(); - const onChange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((_opened) => { - setUncontrolledOpened(_opened); - if (_opened) { - setCurrentId(uid); - } - }, [setCurrentId, uid]); - const { - x, - y, - reference, - floating, - context, - refs, - update, - placement, - middlewareData: { arrow: { x: arrowX, y: arrowY } = {} } - } = (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.useFloating)({ - placement: settings.position, - open: opened, - onOpenChange: onChange, - middleware: [ - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_4__.offset)(settings.offset), - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_4__.shift)({ padding: 8 }), - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_4__.flip)(), - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_5__.arrow)({ element: settings.arrowRef, padding: settings.arrowOffset }), - ...settings.inline ? [(0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_4__.inline)()] : [] - ] - }); - const { getReferenceProps, getFloatingProps } = (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.useInteractions)([ - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.useHover)(context, { - enabled: settings.events.hover, - delay: withinGroup ? groupDelay : { open: settings.openDelay, close: settings.closeDelay }, - mouseOnly: !settings.events.touch - }), - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.useFocus)(context, { enabled: settings.events.focus, keyboardOnly: true }), - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.useRole)(context, { role: "tooltip" }), - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.useDismiss)(context, { enabled: typeof settings.opened === void 0 }), - (0,_floating_ui_react__WEBPACK_IMPORTED_MODULE_3__.useDelayGroup)(context, { id: uid }) - ]); - (0,_Floating_use_floating_auto_update_js__WEBPACK_IMPORTED_MODULE_6__.useFloatingAutoUpdate)({ - opened, - positionDependencies: settings.positionDependencies, - floating: { refs, update } - }); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useDidUpdate)(() => { - var _a; - (_a = settings.onPositionChange) == null ? void 0 : _a.call(settings, placement); - }, [placement]); - const isGroupPhase = opened && currentId && currentId !== uid; - return { - x, - y, - arrowX, - arrowY, - reference, - floating, - getFloatingProps, - getReferenceProps, - isGroupPhase, - opened, - placement - }; -} - - -//# sourceMappingURL=use-tooltip.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Transition/GroupedTransition.js": -/*!************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Transition/GroupedTransition.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ GroupedTransition: () => (/* binding */ GroupedTransition) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _get_transition_styles_get_transition_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-transition-styles/get-transition-styles.js */ "./node_modules/@mantine/core/esm/Transition/get-transition-styles/get-transition-styles.js"); -/* harmony import */ var _use_transition_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./use-transition.js */ "./node_modules/@mantine/core/esm/Transition/use-transition.js"); - - - - -function GroupedTransition({ - transitions, - duration = 250, - exitDuration = duration, - mounted, - children, - timingFunction, - onExit, - onEntered, - onEnter, - onExited -}) { - const { transitionDuration, transitionStatus, transitionTimingFunction } = (0,_use_transition_js__WEBPACK_IMPORTED_MODULE_1__.useTransition)({ - mounted, - duration, - exitDuration, - timingFunction, - onExit, - onEntered, - onEnter, - onExited - }); - if (transitionDuration === 0) { - return mounted ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children({})) : null; - } - if (transitionStatus === "exited") { - return null; - } - const transitionsStyles = Object.keys(transitions).reduce((acc, transition) => { - acc[transition] = (0,_get_transition_styles_get_transition_styles_js__WEBPACK_IMPORTED_MODULE_2__.getTransitionStyles)({ - duration: transitions[transition].duration, - transition: transitions[transition].transition, - timingFunction: transitions[transition].timingFunction || transitionTimingFunction, - state: transitionStatus - }); - return acc; - }, {}); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children(transitionsStyles)); -} -GroupedTransition.displayName = "@mantine/core/GroupedTransition"; - - -//# sourceMappingURL=GroupedTransition.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Transition/Transition.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Transition/Transition.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Transition: () => (/* binding */ Transition) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _get_transition_styles_get_transition_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-transition-styles/get-transition-styles.js */ "./node_modules/@mantine/core/esm/Transition/get-transition-styles/get-transition-styles.js"); -/* harmony import */ var _use_transition_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./use-transition.js */ "./node_modules/@mantine/core/esm/Transition/use-transition.js"); - - - - -function Transition({ - transition, - duration = 250, - exitDuration = duration, - mounted, - children, - timingFunction, - onExit, - onEntered, - onEnter, - onExited -}) { - const { transitionDuration, transitionStatus, transitionTimingFunction } = (0,_use_transition_js__WEBPACK_IMPORTED_MODULE_1__.useTransition)({ - mounted, - exitDuration, - duration, - timingFunction, - onExit, - onEntered, - onEnter, - onExited - }); - if (transitionDuration === 0) { - return mounted ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children({})) : null; - } - return transitionStatus === "exited" ? null : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children((0,_get_transition_styles_get_transition_styles_js__WEBPACK_IMPORTED_MODULE_2__.getTransitionStyles)({ - transition, - duration: transitionDuration, - state: transitionStatus, - timingFunction: transitionTimingFunction - }))); -} -Transition.displayName = "@mantine/core/Transition"; - - -//# sourceMappingURL=Transition.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Transition/get-transition-styles/get-transition-styles.js": -/*!**************************************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Transition/get-transition-styles/get-transition-styles.js ***! - \**************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getTransitionStyles: () => (/* binding */ getTransitionStyles) -/* harmony export */ }); -/* harmony import */ var _transitions_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../transitions.js */ "./node_modules/@mantine/core/esm/Transition/transitions.js"); - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -const transitionStatuses = { - entering: "in", - entered: "in", - exiting: "out", - exited: "out", - "pre-exiting": "out", - "pre-entering": "out" -}; -function getTransitionStyles({ - transition, - state, - duration, - timingFunction -}) { - const shared = { - transitionDuration: `${duration}ms`, - transitionTimingFunction: timingFunction - }; - if (typeof transition === "string") { - if (!(transition in _transitions_js__WEBPACK_IMPORTED_MODULE_0__.transitions)) { - return null; - } - return __spreadValues(__spreadValues(__spreadValues({ - transitionProperty: _transitions_js__WEBPACK_IMPORTED_MODULE_0__.transitions[transition].transitionProperty - }, shared), _transitions_js__WEBPACK_IMPORTED_MODULE_0__.transitions[transition].common), _transitions_js__WEBPACK_IMPORTED_MODULE_0__.transitions[transition][transitionStatuses[state]]); - } - return __spreadValues(__spreadValues(__spreadValues({ - transitionProperty: transition.transitionProperty - }, shared), transition.common), transition[transitionStatuses[state]]); -} - - -//# sourceMappingURL=get-transition-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Transition/transitions.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Transition/transitions.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ transitions: () => (/* binding */ transitions) -/* harmony export */ }); -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const popIn = { - in: { opacity: 1, transform: "scale(1)" }, - out: { opacity: 0, transform: "scale(.9) translateY(10px)" }, - transitionProperty: "transform, opacity" -}; -const transitions = { - fade: { - in: { opacity: 1 }, - out: { opacity: 0 }, - transitionProperty: "opacity" - }, - scale: { - in: { opacity: 1, transform: "scale(1)" }, - out: { opacity: 0, transform: "scale(0)" }, - common: { transformOrigin: "top" }, - transitionProperty: "transform, opacity" - }, - "scale-y": { - in: { opacity: 1, transform: "scaleY(1)" }, - out: { opacity: 0, transform: "scaleY(0)" }, - common: { transformOrigin: "top" }, - transitionProperty: "transform, opacity" - }, - "scale-x": { - in: { opacity: 1, transform: "scaleX(1)" }, - out: { opacity: 0, transform: "scaleX(0)" }, - common: { transformOrigin: "left" }, - transitionProperty: "transform, opacity" - }, - "skew-up": { - in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" }, - out: { opacity: 0, transform: "translateY(-20px) skew(-10deg, -5deg)" }, - common: { transformOrigin: "top" }, - transitionProperty: "transform, opacity" - }, - "skew-down": { - in: { opacity: 1, transform: "translateY(0) skew(0deg, 0deg)" }, - out: { opacity: 0, transform: "translateY(20px) skew(-10deg, -5deg)" }, - common: { transformOrigin: "bottom" }, - transitionProperty: "transform, opacity" - }, - "rotate-left": { - in: { opacity: 1, transform: "translateY(0) rotate(0deg)" }, - out: { opacity: 0, transform: "translateY(20px) rotate(-5deg)" }, - common: { transformOrigin: "bottom" }, - transitionProperty: "transform, opacity" - }, - "rotate-right": { - in: { opacity: 1, transform: "translateY(0) rotate(0deg)" }, - out: { opacity: 0, transform: "translateY(20px) rotate(5deg)" }, - common: { transformOrigin: "top" }, - transitionProperty: "transform, opacity" - }, - "slide-down": { - in: { opacity: 1, transform: "translateY(0)" }, - out: { opacity: 0, transform: "translateY(-100%)" }, - common: { transformOrigin: "top" }, - transitionProperty: "transform, opacity" - }, - "slide-up": { - in: { opacity: 1, transform: "translateY(0)" }, - out: { opacity: 0, transform: "translateY(100%)" }, - common: { transformOrigin: "bottom" }, - transitionProperty: "transform, opacity" - }, - "slide-left": { - in: { opacity: 1, transform: "translateX(0)" }, - out: { opacity: 0, transform: "translateX(100%)" }, - common: { transformOrigin: "left" }, - transitionProperty: "transform, opacity" - }, - "slide-right": { - in: { opacity: 1, transform: "translateX(0)" }, - out: { opacity: 0, transform: "translateX(-100%)" }, - common: { transformOrigin: "right" }, - transitionProperty: "transform, opacity" - }, - pop: __spreadProps(__spreadValues({}, popIn), { - common: { transformOrigin: "center center" } - }), - "pop-bottom-left": __spreadProps(__spreadValues({}, popIn), { - common: { transformOrigin: "bottom left" } - }), - "pop-bottom-right": __spreadProps(__spreadValues({}, popIn), { - common: { transformOrigin: "bottom right" } - }), - "pop-top-left": __spreadProps(__spreadValues({}, popIn), { - common: { transformOrigin: "top left" } - }), - "pop-top-right": __spreadProps(__spreadValues({}, popIn), { - common: { transformOrigin: "top right" } - }) -}; - - -//# sourceMappingURL=transitions.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/Transition/use-transition.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/Transition/use-transition.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useTransition: () => (/* binding */ useTransition) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-reduced-motion/use-reduced-motion.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); - - - - -function useTransition({ - duration, - exitDuration, - timingFunction, - mounted, - onEnter, - onExit, - onEntered, - onExited -}) { - const theme = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useMantineTheme)(); - const shouldReduceMotion = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useReducedMotion)(); - const reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : false; - const [transitionStatus, setStatus] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(mounted ? "entered" : "exited"); - let transitionDuration = reduceMotion ? 0 : duration; - const timeoutRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(-1); - const handleStateChange = (shouldMount) => { - const preHandler = shouldMount ? onEnter : onExit; - const handler = shouldMount ? onEntered : onExited; - setStatus(shouldMount ? "pre-entering" : "pre-exiting"); - window.clearTimeout(timeoutRef.current); - transitionDuration = reduceMotion ? 0 : shouldMount ? duration : exitDuration; - if (transitionDuration === 0) { - typeof preHandler === "function" && preHandler(); - typeof handler === "function" && handler(); - setStatus(shouldMount ? "entered" : "exited"); - } else { - const preStateTimeout = window.setTimeout(() => { - typeof preHandler === "function" && preHandler(); - setStatus(shouldMount ? "entering" : "exiting"); - }, 10); - timeoutRef.current = window.setTimeout(() => { - window.clearTimeout(preStateTimeout); - typeof handler === "function" && handler(); - setStatus(shouldMount ? "entered" : "exited"); - }, transitionDuration); - } - }; - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useDidUpdate)(() => { - handleStateChange(mounted); - }, [mounted]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => () => window.clearTimeout(timeoutRef.current), []); - return { - transitionDuration, - transitionStatus, - transitionTimingFunction: timingFunction || theme.transitionTimingFunction - }; -} - - -//# sourceMappingURL=use-transition.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ UnstyledButton: () => (/* binding */ UnstyledButton), -/* harmony export */ _UnstyledButton: () => (/* binding */ _UnstyledButton) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js"); -/* harmony import */ var _UnstyledButton_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./UnstyledButton.styles.js */ "./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.styles.js"); -/* harmony import */ var _Box_Box_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Box/Box.js */ "./node_modules/@mantine/core/esm/Box/Box.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const _UnstyledButton = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("UnstyledButton", {}, props), { - className, - component = "button", - unstyled - } = _a, others = __objRest(_a, [ - "className", - "component", - "unstyled" - ]); - const { classes, cx } = (0,_UnstyledButton_styles_js__WEBPACK_IMPORTED_MODULE_2__["default"])(null, { name: "UnstyledButton", unstyled }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Box_Box_js__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - component, - ref, - className: cx(classes.root, className), - type: component === "button" ? "button" : void 0 - }, others)); -}); -_UnstyledButton.displayName = "@mantine/core/UnstyledButton"; -const UnstyledButton = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_4__.createPolymorphicComponent)(_UnstyledButton); - - -//# sourceMappingURL=UnstyledButton.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.styles.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.styles.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/styles */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_styles__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme) => ({ - root: __spreadProps(__spreadValues(__spreadValues({}, theme.fn.focusStyles()), theme.fn.fontStyles()), { - cursor: "pointer", - border: 0, - padding: 0, - appearance: "none", - fontSize: theme.fontSizes.md, - backgroundColor: "transparent", - textAlign: "left", - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - textDecoration: "none", - boxSizing: "border-box" - }) -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=UnstyledButton.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Calendar/Calendar.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Calendar/Calendar.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Calendar: () => (/* binding */ Calendar) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _CalendarBase_CalendarBase_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../CalendarBase/CalendarBase.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarBase.js"); -/* harmony import */ var _utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/is-same-date/is-same-date.js */ "./node_modules/@mantine/dates/esm/utils/is-same-date/is-same-date.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - __staticSelector: "Calendar" -}; -function Calendar(props) { - const _a = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_1__.useComponentDefaultProps)("Calendar", defaultProps, props), { - __staticSelector = "Calendar", - multiple, - value, - onChange - } = _a, others = __objRest(_a, [ - "__staticSelector", - "multiple", - "value", - "onChange" - ]); - const handleChange = (date) => { - if (!multiple) { - return onChange(date); - } - const isSelected = value.some((val) => (0,_utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_2__.isSameDate)(val, date)); - return onChange(isSelected ? value.filter((val) => !(0,_utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_2__.isSameDate)(val, date)) : [...value, date]); - }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CalendarBase_CalendarBase_js__WEBPACK_IMPORTED_MODULE_3__.CalendarBase, __spreadValues({ - __staticSelector, - onChange: handleChange, - value - }, others)); -} -Calendar.displayName = "@mantine/dates/Calendar"; - - -//# sourceMappingURL=Calendar.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarBase.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarBase.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CalendarBase: () => (/* binding */ CalendarBase) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _YearPicker_YearPicker_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./YearPicker/YearPicker.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/YearPicker/YearPicker.js"); -/* harmony import */ var _MonthPicker_MonthPicker_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./MonthPicker/MonthPicker.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/MonthPicker.js"); -/* harmony import */ var _MonthsList_MonthsList_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./MonthsList/MonthsList.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthsList/MonthsList.js"); -/* harmony import */ var _CalendarBase_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CalendarBase.styles.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarBase.styles.js"); - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const CalendarBase = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { - className, - classNames, - styles, - month, - initialMonth, - onMonthChange, - locale, - amountOfMonths = 1, - paginateBy = amountOfMonths, - size = "sm", - allowLevelChange = true, - initialLevel = "date", - minDate, - maxDate, - __staticSelector = "CalendarBase", - dayClassName, - dayStyle, - disableOutsideEvents, - excludeDate, - hideWeekdays, - fullWidth, - preventFocus, - firstDayOfWeek = "monday", - value, - onChange, - onDayMouseEnter, - range, - nextDecadeLabel, - nextMonthLabel, - nextYearLabel, - previousDecadeLabel, - previousMonthLabel, - previousYearLabel, - labelFormat = "MMMM YYYY", - weekdayLabelFormat, - hideOutsideDates, - isDateInRange, - isDateFirstInRange, - isDateLastInRange, - renderDay, - unstyled, - weekendDays, - __stopPropagation, - yearLabelFormat = "YYYY" - } = _b, others = __objRest(_b, [ - "className", - "classNames", - "styles", - "month", - "initialMonth", - "onMonthChange", - "locale", - "amountOfMonths", - "paginateBy", - "size", - "allowLevelChange", - "initialLevel", - "minDate", - "maxDate", - "__staticSelector", - "dayClassName", - "dayStyle", - "disableOutsideEvents", - "excludeDate", - "hideWeekdays", - "fullWidth", - "preventFocus", - "firstDayOfWeek", - "value", - "onChange", - "onDayMouseEnter", - "range", - "nextDecadeLabel", - "nextMonthLabel", - "nextYearLabel", - "previousDecadeLabel", - "previousMonthLabel", - "previousYearLabel", - "labelFormat", - "weekdayLabelFormat", - "hideOutsideDates", - "isDateInRange", - "isDateFirstInRange", - "isDateLastInRange", - "renderDay", - "unstyled", - "weekendDays", - "__stopPropagation", - "yearLabelFormat" - ]); - const [selectionState, setSelectionState] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialLevel); - const { classes, cx, theme } = (0,_CalendarBase_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ size, fullWidth, amountOfMonths: selectionState === "date" ? amountOfMonths : 1 }, { name: __staticSelector, styles, classNames, unstyled }); - const finalLocale = locale || theme.datesLocale; - const daysRefs = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(Array(amountOfMonths).fill(0).map(() => [])); - const [_month, setMonth] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useUncontrolled)({ - value: month, - defaultValue: initialMonth, - finalValue: new Date(), - onChange: onMonthChange - }); - const [yearSelection, setYearSelection] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(_month.getFullYear()); - const minYear = minDate instanceof Date ? minDate.getFullYear() : 100; - const maxYear = maxDate instanceof Date ? maxDate.getFullYear() : 1e4; - const daysPerRow = 6; - const focusOnNextFocusableDay = (direction, monthIndex, payload, n = 1) => { - var _a2; - const changeRow = ["down", "up"].includes(direction); - const rowIndex = changeRow ? payload.rowIndex + (direction === "down" ? n : -n) : payload.rowIndex; - const cellIndex = changeRow ? payload.cellIndex : payload.cellIndex + (direction === "right" ? n : -n); - const dayToFocus = (_a2 = daysRefs.current[monthIndex][rowIndex]) == null ? void 0 : _a2[cellIndex]; - if (!dayToFocus) { - return; - } - if (dayToFocus.disabled) { - focusOnNextFocusableDay(direction, monthIndex, payload, n + 1); - } else { - dayToFocus.focus(); - } - }; - const handleDayKeyDown = (monthIndex, payload, event) => { - var _a2; - switch (event.key) { - case "ArrowDown": { - event.preventDefault(); - const hasRowBelow = payload.rowIndex + 1 < daysRefs.current[monthIndex].length; - if (hasRowBelow) { - focusOnNextFocusableDay("down", monthIndex, payload); - } - break; - } - case "ArrowUp": { - event.preventDefault(); - const hasRowAbove = payload.rowIndex > 0; - if (hasRowAbove) { - focusOnNextFocusableDay("up", monthIndex, payload); - } - break; - } - case "ArrowRight": { - event.preventDefault(); - const isNotLastCell = payload.cellIndex !== daysPerRow; - if (isNotLastCell) { - focusOnNextFocusableDay("right", monthIndex, payload); - } else if (monthIndex + 1 < amountOfMonths) { - if (daysRefs.current[monthIndex + 1][payload.rowIndex]) { - (_a2 = daysRefs.current[monthIndex + 1][payload.rowIndex][0]) == null ? void 0 : _a2.focus(); - } - } - break; - } - case "ArrowLeft": { - event.preventDefault(); - if (payload.cellIndex !== 0) { - focusOnNextFocusableDay("left", monthIndex, payload); - } else if (monthIndex > 0) { - if (daysRefs.current[monthIndex - 1][payload.rowIndex]) { - daysRefs.current[monthIndex - 1][payload.rowIndex][daysPerRow].focus(); - } - } - } - } - }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Box, __spreadValues({ - className: cx(classes.calendarBase, className), - ref - }, others), selectionState === "year" && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_YearPicker_YearPicker_js__WEBPACK_IMPORTED_MODULE_4__.YearPicker, { - size, - value: yearSelection, - minYear, - maxYear, - onChange: (year) => { - setYearSelection(year); - setSelectionState("month"); - }, - classNames, - styles, - __staticSelector, - __stopPropagation, - nextDecadeLabel, - previousDecadeLabel, - preventFocus, - unstyled, - yearLabelFormat - }), selectionState === "month" && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MonthPicker_MonthPicker_js__WEBPACK_IMPORTED_MODULE_5__.MonthPicker, { - size, - value: { month: _month.getMonth(), year: _month.getFullYear() }, - year: yearSelection, - onYearChange: setYearSelection, - onNextLevel: () => setSelectionState("year"), - locale: finalLocale, - minDate, - maxDate, - onChange: (monthValue) => { - setMonth(new Date(yearSelection, monthValue, 1)); - setSelectionState("date"); - }, - classNames, - styles, - __staticSelector, - __stopPropagation, - nextYearLabel, - previousYearLabel, - preventFocus, - unstyled, - yearLabelFormat - }), selectionState === "date" && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MonthsList_MonthsList_js__WEBPACK_IMPORTED_MODULE_6__.MonthsList, { - amountOfMonths, - paginateBy, - month: _month, - locale: finalLocale, - minDate, - maxDate, - allowLevelChange, - size, - daysRefs, - onMonthChange: setMonth, - onNextLevel: () => setSelectionState("month"), - onDayKeyDown: handleDayKeyDown, - classNames, - styles, - __staticSelector, - dayClassName, - dayStyle, - disableOutsideEvents, - excludeDate, - hideWeekdays, - fullWidth, - preventFocus, - firstDayOfWeek, - value, - range, - onChange, - nextMonthLabel, - previousMonthLabel, - labelFormat, - weekdayLabelFormat, - onDayMouseEnter, - renderDay, - hideOutsideDates, - isDateInRange, - isDateFirstInRange, - isDateLastInRange, - unstyled, - weekendDays, - __stopPropagation - })); -}); -CalendarBase.displayName = "@mantine/dates/CalendarBase"; - - -//# sourceMappingURL=CalendarBase.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarBase.styles.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarBase.styles.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); -/* harmony import */ var _Month_Day_Day_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Month/Day/Day.styles.js */ "./node_modules/@mantine/dates/esm/components/Month/Day/Day.styles.js"); - - - -var useStyles = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size, amountOfMonths, fullWidth }) => { - const _maxWidth = theme.fn.size({ size, sizes: _Month_Day_Day_styles_js__WEBPACK_IMPORTED_MODULE_1__.sizes }) * 7; - const maxWidth = amountOfMonths > 1 ? _maxWidth * amountOfMonths + (amountOfMonths - 1) * theme.spacing.md : _maxWidth; - return { - calendarBase: { - boxSizing: "border-box", - display: "flex", - gap: theme.spacing.md, - maxWidth: fullWidth ? "100%" : maxWidth - } - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=CalendarBase.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/ArrowIcon.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/ArrowIcon.js ***! - \*********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ArrowIcon: () => (/* binding */ ArrowIcon) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function ArrowIcon(_a) { - var _b = _a, { direction, style } = _b, others = __objRest(_b, ["direction", "style"]); - const theme = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_1__.useMantineTheme)(); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", __spreadValues({ - viewBox: "0 0 15 15", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - style: __spreadProps(__spreadValues({}, style), { - transform: direction === "right" && theme.dir === "ltr" || direction === "left" && theme.dir === "rtl" ? "rotate(180deg)" : "none" - }) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", { - d: "M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z", - fill: "currentColor", - fillRule: "evenodd", - clipRule: "evenodd" - })); -} -ArrowIcon.displayName = "@mantine/dates/ArrowIcon"; - - -//# sourceMappingURL=ArrowIcon.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/CalendarHeader.js": -/*!**************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/CalendarHeader.js ***! - \**************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CalendarHeader: () => (/* binding */ CalendarHeader) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Select/SelectRightSection/ChevronIcon.js"); -/* harmony import */ var _ArrowIcon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ArrowIcon.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/ArrowIcon.js"); -/* harmony import */ var _CalendarHeader_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CalendarHeader.styles.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/CalendarHeader.styles.js"); - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const iconSizes = { - xs: 12, - sm: 14, - md: 18, - lg: 22, - xl: 28 -}; -function CalendarHeader(_a) { - var _b = _a, { - hasNext, - hasPrevious, - onNext, - onPrevious, - onNextLevel, - className, - label, - nextLevelDisabled, - size, - classNames, - styles, - __staticSelector = "CalendarHeader", - nextLabel, - previousLabel, - preventLevelFocus = false, - preventFocus, - unstyled, - __stopPropagation - } = _b, others = __objRest(_b, [ - "hasNext", - "hasPrevious", - "onNext", - "onPrevious", - "onNextLevel", - "className", - "label", - "nextLevelDisabled", - "size", - "classNames", - "styles", - "__staticSelector", - "nextLabel", - "previousLabel", - "preventLevelFocus", - "preventFocus", - "unstyled", - "__stopPropagation" - ]); - const { classes, cx, theme } = (0,_CalendarHeader_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ size }, { classNames, styles, unstyled, name: __staticSelector }); - const iconSize = theme.fn.size({ size, sizes: iconSizes }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", __spreadValues({ - className: cx(classes.calendarHeader, className) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.ActionIcon, { - className: classes.calendarHeaderControl, - disabled: !hasPrevious, - onClick: onPrevious, - "aria-label": previousLabel, - onMouseDown: (event) => preventFocus && event.preventDefault(), - unstyled, - "data-mantine-stop-propagation": __stopPropagation || void 0 - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ArrowIcon_js__WEBPACK_IMPORTED_MODULE_3__.ArrowIcon, { - direction: "left", - width: iconSize, - height: iconSize - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.UnstyledButton, { - unstyled, - className: classes.calendarHeaderLevel, - disabled: nextLevelDisabled, - onClick: onNextLevel, - tabIndex: preventLevelFocus ? -1 : 0, - onMouseDown: (event) => preventFocus && event.preventDefault(), - "data-mantine-stop-propagation": __stopPropagation || void 0 - }, label, !nextLevelDisabled && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.ChevronIcon, { - error: false, - size, - className: classes.calendarHeaderLevelIcon - })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.ActionIcon, { - className: classes.calendarHeaderControl, - disabled: !hasNext, - onClick: onNext, - "aria-label": nextLabel, - unstyled, - onMouseDown: (event) => preventFocus && event.preventDefault(), - "data-mantine-stop-propagation": __stopPropagation || void 0 - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ArrowIcon_js__WEBPACK_IMPORTED_MODULE_3__.ArrowIcon, { - direction: "right", - width: iconSize, - height: iconSize - }))); -} -CalendarHeader.displayName = "@mantine/dates/CalendarHeader"; - - -//# sourceMappingURL=CalendarHeader.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/CalendarHeader.styles.js": -/*!*********************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/CalendarHeader.styles.js ***! - \*********************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ sizes: () => (/* binding */ sizes) -/* harmony export */ }); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 32, - sm: 40, - md: 44, - lg: 50, - xl: 54 -}; -var useStyles = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size }) => ({ - calendarHeader: { - display: "flex", - justifyContent: "space-between", - align: "center", - marginBottom: theme.fn.size({ size, sizes: theme.spacing }) - }, - calendarHeaderControl: { - width: theme.fn.size({ size, sizes }), - height: theme.fn.size({ size, sizes }), - "&:disabled": { - opacity: 0, - cursor: "default" - } - }, - calendarHeaderLevel: __spreadProps(__spreadValues({ - display: "flex", - alignItems: "center", - justifyContent: "center", - height: theme.fn.size({ size, sizes }), - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - padding: `0 ${theme.fn.size({ size, sizes: theme.spacing })}px`, - borderRadius: theme.radius.sm, - fontWeight: 500, - flex: 1, - textAlign: "center", - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black - }, theme.fn.hover({ - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[0] - })), { - "&:disabled": theme.fn.hover({ - backgroundColor: "transparent", - cursor: "default" - }) - }), - calendarHeaderLevelIcon: { - marginLeft: 4 - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); - -//# sourceMappingURL=CalendarHeader.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/MonthPicker.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/MonthPicker.js ***! - \********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MonthPicker: () => (/* binding */ MonthPicker) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.js"); -/* harmony import */ var _CalendarHeader_CalendarHeader_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../CalendarHeader/CalendarHeader.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/CalendarHeader.js"); -/* harmony import */ var _is_month_in_range_is_month_in_range_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./is-month-in-range/is-month-in-range.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/is-month-in-range/is-month-in-range.js"); -/* harmony import */ var _format_year_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../format-year.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/format-year.js"); -/* harmony import */ var _MonthPicker_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MonthPicker.styles.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/MonthPicker.styles.js"); -/* harmony import */ var _utils_get_months_names_get_months_names_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/get-months-names/get-months-names.js */ "./node_modules/@mantine/dates/esm/utils/get-months-names/get-months-names.js"); - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function MonthPicker(_a) { - var _b = _a, { - className, - styles, - classNames, - value, - onChange, - locale, - year, - onYearChange, - onNextLevel, - size, - minDate, - maxDate, - __staticSelector = "MonthPicker", - nextYearLabel, - previousYearLabel, - preventFocus, - unstyled, - yearLabelFormat = "YYYY", - __stopPropagation - } = _b, others = __objRest(_b, [ - "className", - "styles", - "classNames", - "value", - "onChange", - "locale", - "year", - "onYearChange", - "onNextLevel", - "size", - "minDate", - "maxDate", - "__staticSelector", - "nextYearLabel", - "previousYearLabel", - "preventFocus", - "unstyled", - "yearLabelFormat", - "__stopPropagation" - ]); - const { classes, cx } = (0,_MonthPicker_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ size }, { classNames, styles, unstyled, name: __staticSelector }); - const range = (0,_utils_get_months_names_get_months_names_js__WEBPACK_IMPORTED_MODULE_2__.getMonthsNames)(locale); - const minYear = minDate instanceof Date ? minDate.getFullYear() : void 0; - const maxYear = maxDate instanceof Date ? maxDate.getFullYear() : void 0; - const months = range.map((month, index) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.UnstyledButton, { - key: month, - unstyled, - onClick: () => onChange(index), - className: cx(classes.monthPickerControl, { - [classes.monthPickerControlActive]: index === value.month && year === value.year - }), - disabled: !(0,_is_month_in_range_is_month_in_range_js__WEBPACK_IMPORTED_MODULE_4__.isMonthInRange)({ date: new Date(year, index), minDate, maxDate }), - onMouseDown: (event) => preventFocus && event.preventDefault(), - "data-mantine-stop-propagation": __stopPropagation || void 0 - }, month)); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", __spreadValues({ - className: cx(classes.monthPicker, className) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CalendarHeader_CalendarHeader_js__WEBPACK_IMPORTED_MODULE_5__.CalendarHeader, { - label: (0,_format_year_js__WEBPACK_IMPORTED_MODULE_6__.formatYear)(year, yearLabelFormat), - hasNext: typeof maxYear === "number" ? year < maxYear : true, - hasPrevious: typeof minYear === "number" ? year > minYear : true, - onNext: () => onYearChange(year + 1), - onPrevious: () => onYearChange(year - 1), - onNextLevel, - size, - classNames, - styles, - __staticSelector, - nextLabel: nextYearLabel, - previousLabel: previousYearLabel, - preventFocus, - unstyled, - __stopPropagation - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.monthPickerControls - }, months)); -} -MonthPicker.displayName = "@mantine/dates/MonthPicker"; - - -//# sourceMappingURL=MonthPicker.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/MonthPicker.styles.js": -/*!***************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/MonthPicker.styles.js ***! - \***************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 32, - sm: 40, - md: 46, - lg: 52, - xl: 56 -}; -var useStyles = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size }) => { - const colors = theme.fn.variant({ color: theme.primaryColor, variant: "filled" }); - return { - monthPicker: { - width: "100%" - }, - monthPickerControls: { - display: "flex", - flexWrap: "wrap", - justifyContent: "center" - }, - monthPickerControl: __spreadProps(__spreadValues({ - flex: "0 0 33.3333%", - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - height: theme.fn.size({ size, sizes }), - textAlign: "center", - borderRadius: theme.radius.sm, - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }) - }, theme.fn.hover({ - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[0] - })), { - "&:disabled": __spreadValues({ - color: theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[4], - cursor: "not-allowed" - }, theme.fn.hover({ - backgroundColor: "transparent" - })) - }), - monthPickerControlActive: __spreadValues({ - backgroundColor: colors.background, - color: colors.color - }, theme.fn.hover({ - backgroundColor: colors.hover - })) - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=MonthPicker.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/is-month-in-range/is-month-in-range.js": -/*!********************************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/is-month-in-range/is-month-in-range.js ***! - \********************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isMonthInRange: () => (/* binding */ isMonthInRange) -/* harmony export */ }); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__); - - -function isMonthInRange({ date, minDate, maxDate }) { - const hasMinDate = minDate instanceof Date; - const hasMaxDate = maxDate instanceof Date; - if (!hasMaxDate && !hasMinDate) { - return true; - } - const endOfMonth = dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).endOf("month"); - const startOfMonth = dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).startOf("month"); - const maxInRange = hasMaxDate ? startOfMonth.isBefore(maxDate) : true; - const minInRange = hasMinDate ? endOfMonth.isAfter(minDate) : true; - return maxInRange && minInRange; -} - - -//# sourceMappingURL=is-month-in-range.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthsList/MonthsList.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/MonthsList/MonthsList.js ***! - \******************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MonthsList: () => (/* binding */ MonthsList) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _format_month_label_format_month_label_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./format-month-label/format-month-label.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthsList/format-month-label/format-month-label.js"); -/* harmony import */ var _MonthPicker_is_month_in_range_is_month_in_range_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../MonthPicker/is-month-in-range/is-month-in-range.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthPicker/is-month-in-range/is-month-in-range.js"); -/* harmony import */ var _CalendarHeader_CalendarHeader_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../CalendarHeader/CalendarHeader.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/CalendarHeader.js"); -/* harmony import */ var _Month_Month_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Month/Month.js */ "./node_modules/@mantine/dates/esm/components/Month/Month.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function MonthsList(_a) { - var _b = _a, { - amountOfMonths, - paginateBy, - month, - locale, - minDate, - maxDate, - allowLevelChange, - size, - daysRefs, - onMonthChange, - onNextLevel, - onDayKeyDown, - classNames, - styles, - __staticSelector = "MonthsList", - nextMonthLabel, - previousMonthLabel, - labelFormat, - weekdayLabelFormat, - preventFocus, - renderDay, - unstyled, - __stopPropagation - } = _b, others = __objRest(_b, [ - "amountOfMonths", - "paginateBy", - "month", - "locale", - "minDate", - "maxDate", - "allowLevelChange", - "size", - "daysRefs", - "onMonthChange", - "onNextLevel", - "onDayKeyDown", - "classNames", - "styles", - "__staticSelector", - "nextMonthLabel", - "previousMonthLabel", - "labelFormat", - "weekdayLabelFormat", - "preventFocus", - "renderDay", - "unstyled", - "__stopPropagation" - ]); - const nextMonth = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(month).add(amountOfMonths, "months").toDate(); - const previousMonth = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(month).subtract(1, "months").toDate(); - const months = Array(amountOfMonths).fill(0).map((_, index) => { - const monthDate = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(month).add(index, "months").toDate(); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - key: index - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CalendarHeader_CalendarHeader_js__WEBPACK_IMPORTED_MODULE_2__.CalendarHeader, { - hasNext: index + 1 === amountOfMonths && (0,_MonthPicker_is_month_in_range_is_month_in_range_js__WEBPACK_IMPORTED_MODULE_3__.isMonthInRange)({ date: nextMonth, minDate, maxDate }), - hasPrevious: index === 0 && (0,_MonthPicker_is_month_in_range_is_month_in_range_js__WEBPACK_IMPORTED_MODULE_3__.isMonthInRange)({ date: previousMonth, minDate, maxDate }), - label: (0,_format_month_label_format_month_label_js__WEBPACK_IMPORTED_MODULE_4__.formatMonthLabel)({ month: monthDate, locale, format: labelFormat }), - onNext: () => onMonthChange(dayjs__WEBPACK_IMPORTED_MODULE_1___default()(month).add(paginateBy, "months").toDate()), - onPrevious: () => onMonthChange(dayjs__WEBPACK_IMPORTED_MODULE_1___default()(month).subtract(paginateBy, "months").toDate()), - onNextLevel, - nextLevelDisabled: !allowLevelChange, - size, - classNames, - styles, - __staticSelector, - nextLabel: nextMonthLabel, - previousLabel: previousMonthLabel, - preventLevelFocus: index > 0, - preventFocus, - unstyled, - __stopPropagation - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Month_Month_js__WEBPACK_IMPORTED_MODULE_5__.Month, __spreadValues({ - month: monthDate, - daysRefs: daysRefs.current[index], - onDayKeyDown: (...args) => onDayKeyDown(index, ...args), - size, - minDate, - maxDate, - classNames, - styles, - __staticSelector, - locale, - focusable: index === 0, - preventFocus, - renderDay, - weekdayLabelFormat, - unstyled, - __stopPropagation - }, others))); - }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, months); -} -MonthsList.displayName = "@mantine/dates/MonthsList"; - - -//# sourceMappingURL=MonthsList.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/MonthsList/format-month-label/format-month-label.js": -/*!*********************************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/MonthsList/format-month-label/format-month-label.js ***! - \*********************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ formatMonthLabel: () => (/* binding */ formatMonthLabel) -/* harmony export */ }); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/utils/upper-first/upper-first.js"); - - - -function formatMonthLabel({ month, locale, format }) { - return (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_1__.upperFirst)(dayjs__WEBPACK_IMPORTED_MODULE_0___default()(month).locale(locale).format(format)); -} - - -//# sourceMappingURL=format-month-label.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/YearPicker/YearPicker.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/YearPicker/YearPicker.js ***! - \******************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ YearPicker: () => (/* binding */ YearPicker) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/UnstyledButton/UnstyledButton.js"); -/* harmony import */ var _get_decade_range_get_decade_range_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-decade-range/get-decade-range.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/YearPicker/get-decade-range/get-decade-range.js"); -/* harmony import */ var _CalendarHeader_CalendarHeader_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../CalendarHeader/CalendarHeader.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/CalendarHeader/CalendarHeader.js"); -/* harmony import */ var _format_year_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../format-year.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/format-year.js"); -/* harmony import */ var _YearPicker_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./YearPicker.styles.js */ "./node_modules/@mantine/dates/esm/components/CalendarBase/YearPicker/YearPicker.styles.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function YearPicker(_a) { - var _b = _a, { - className, - styles, - classNames, - value, - onChange, - size, - minYear, - maxYear, - __staticSelector = "YearPicker", - nextDecadeLabel, - previousDecadeLabel, - preventFocus, - unstyled, - yearLabelFormat = "YYYY", - __stopPropagation - } = _b, others = __objRest(_b, [ - "className", - "styles", - "classNames", - "value", - "onChange", - "size", - "minYear", - "maxYear", - "__staticSelector", - "nextDecadeLabel", - "previousDecadeLabel", - "preventFocus", - "unstyled", - "yearLabelFormat", - "__stopPropagation" - ]); - const { classes, cx } = (0,_YearPicker_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ size }, { classNames, styles, unstyled, name: __staticSelector }); - const [decade, setDecade] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(value); - const range = (0,_get_decade_range_get_decade_range_js__WEBPACK_IMPORTED_MODULE_2__.getDecadeRange)(decade); - const years = range.map((year) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.UnstyledButton, { - key: year, - unstyled, - onClick: () => onChange(year), - disabled: year < minYear || year > maxYear, - onMouseDown: (event) => preventFocus && event.preventDefault(), - "data-mantine-stop-propagation": __stopPropagation || void 0, - className: cx(classes.yearPickerControl, { - [classes.yearPickerControlActive]: year === value - }) - }, (0,_format_year_js__WEBPACK_IMPORTED_MODULE_4__.formatYear)(year, yearLabelFormat))); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", __spreadValues({ - className: cx(classes.yearPicker, className) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CalendarHeader_CalendarHeader_js__WEBPACK_IMPORTED_MODULE_5__.CalendarHeader, { - unstyled, - label: `${(0,_format_year_js__WEBPACK_IMPORTED_MODULE_4__.formatYear)(range[0], yearLabelFormat)} \u2013 ${(0,_format_year_js__WEBPACK_IMPORTED_MODULE_4__.formatYear)(range[range.length - 1], yearLabelFormat)}`, - hasPrevious: typeof minYear === "number" ? minYear < range[0] : true, - hasNext: typeof maxYear === "number" ? maxYear > range[range.length - 1] : true, - onNext: () => setDecade((current) => current + 10), - onPrevious: () => setDecade((current) => current - 10), - nextLevelDisabled: true, - size, - nextLabel: nextDecadeLabel, - previousLabel: previousDecadeLabel, - styles, - classNames, - __staticSelector, - preventFocus, - __stopPropagation - }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.yearPickerControls - }, years)); -} -YearPicker.displayName = "@mantine/dates/YearPicker"; - - -//# sourceMappingURL=YearPicker.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/YearPicker/YearPicker.styles.js": -/*!*************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/YearPicker/YearPicker.styles.js ***! - \*************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 32, - sm: 40, - md: 46, - lg: 52, - xl: 56 -}; -var useStyles = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size }) => { - const colors = theme.fn.variant({ color: theme.primaryColor, variant: "filled" }); - return { - yearPicker: { - width: "100%" - }, - yearPickerControls: { - display: "flex", - flexWrap: "wrap", - justifyContent: "center" - }, - yearPickerControl: __spreadProps(__spreadValues({ - flex: "0 0 25%", - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - height: theme.fn.size({ size, sizes }), - textAlign: "center", - borderRadius: theme.radius.sm, - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }) - }, theme.fn.hover({ - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[8] : theme.colors.gray[0] - })), { - "&:disabled": __spreadValues({ - color: theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[4], - cursor: "not-allowed" - }, theme.fn.hover({ - backgroundColor: "transparent" - })) - }), - yearPickerControlActive: __spreadValues({ - backgroundColor: colors.background, - color: colors.color - }, theme.fn.hover({ - backgroundColor: colors.hover - })) - }; -}); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=YearPicker.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/YearPicker/get-decade-range/get-decade-range.js": -/*!*****************************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/YearPicker/get-decade-range/get-decade-range.js ***! - \*****************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getDecadeRange: () => (/* binding */ getDecadeRange) -/* harmony export */ }); -function getDecadeRange(year) { - const rounded = year - year % 10 - 1; - const range = []; - for (let i = 0; i < 12; i += 1) { - const rangeYear = rounded + i; - range.push(rangeYear); - } - return range; -} - - -//# sourceMappingURL=get-decade-range.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/CalendarBase/format-year.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/CalendarBase/format-year.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ formatYear: () => (/* binding */ formatYear) -/* harmony export */ }); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__); - - -function formatYear(year, format) { - return dayjs__WEBPACK_IMPORTED_MODULE_0___default()(new Date(year, 1, 1)).format(format); -} - - -//# sourceMappingURL=format-year.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/DatePicker/DatePicker.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/DatePicker/DatePicker.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DatePicker: () => (/* binding */ DatePicker) -/* harmony export */ }); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/utils/upper-first/upper-first.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _Calendar_Calendar_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Calendar/Calendar.js */ "./node_modules/@mantine/dates/esm/components/Calendar/Calendar.js"); -/* harmony import */ var _DatePickerBase_DatePickerBase_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../DatePickerBase/DatePickerBase.js */ "./node_modules/@mantine/dates/esm/components/DatePickerBase/DatePickerBase.js"); - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const defaultProps = { - shadow: "sm", - transitionDuration: 200, - closeCalendarOnChange: true, - labelFormat: "MMMM YYYY", - initiallyOpened: false, - name: "date", - size: "sm", - dropdownType: "popover", - dropdownPosition: "flip", - clearable: true, - disabled: false, - fixOnBlur: true, - withinPortal: false, - firstDayOfWeek: "monday", - openDropdownOnClear: false -}; -const DatePicker = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, ref) => { - const _a = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("DatePicker", defaultProps, props), { - value, - onChange, - defaultValue, - classNames, - styles, - shadow, - locale, - inputFormat, - transitionDuration, - transitionTimingFunction, - nextMonthLabel, - previousMonthLabel, - closeCalendarOnChange, - labelFormat, - dayClassName, - dayStyle, - disableOutsideEvents, - minDate, - maxDate, - excludeDate, - initialMonth, - initiallyOpened, - name, - size, - dropdownType, - dropdownPosition, - clearable, - disabled, - clearButtonLabel, - fixOnBlur, - allowFreeInput, - withinPortal, - dateParser, - firstDayOfWeek, - onFocus, - onBlur, - amountOfMonths, - allowLevelChange, - initialLevel, - onDropdownClose, - onDropdownOpen, - hideOutsideDates, - hideWeekdays, - renderDay, - type, - openDropdownOnClear, - unstyled, - weekendDays, - yearLabelFormat, - nextDecadeLabel, - nextYearLabel, - previousDecadeLabel, - previousYearLabel - } = _a, others = __objRest(_a, [ - "value", - "onChange", - "defaultValue", - "classNames", - "styles", - "shadow", - "locale", - "inputFormat", - "transitionDuration", - "transitionTimingFunction", - "nextMonthLabel", - "previousMonthLabel", - "closeCalendarOnChange", - "labelFormat", - "dayClassName", - "dayStyle", - "disableOutsideEvents", - "minDate", - "maxDate", - "excludeDate", - "initialMonth", - "initiallyOpened", - "name", - "size", - "dropdownType", - "dropdownPosition", - "clearable", - "disabled", - "clearButtonLabel", - "fixOnBlur", - "allowFreeInput", - "withinPortal", - "dateParser", - "firstDayOfWeek", - "onFocus", - "onBlur", - "amountOfMonths", - "allowLevelChange", - "initialLevel", - "onDropdownClose", - "onDropdownOpen", - "hideOutsideDates", - "hideWeekdays", - "renderDay", - "type", - "openDropdownOnClear", - "unstyled", - "weekendDays", - "yearLabelFormat", - "nextDecadeLabel", - "nextYearLabel", - "previousDecadeLabel", - "previousYearLabel" - ]); - const theme = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_2__.useMantineTheme)(); - const finalLocale = locale || theme.datesLocale; - const dateFormat = type === "date" ? "YYYY-MM-DD" : inputFormat || theme.dateFormat; - const [dropdownOpened, setDropdownOpened] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(initiallyOpened); - const calendarSize = size === "lg" || size === "xl" ? "md" : "sm"; - const inputRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(); - const [lastValidValue, setLastValidValue] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(defaultValue != null ? defaultValue : null); - const [_value, setValue] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useUncontrolled)({ - value, - defaultValue, - finalValue: null, - onChange - }); - const [calendarMonth, setCalendarMonth] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(_value || initialMonth || new Date()); - const [focused, setFocused] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false); - const [inputState, setInputState] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(_value instanceof Date ? (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.upperFirst)(dayjs__WEBPACK_IMPORTED_MODULE_0___default()(_value).locale(finalLocale).format(dateFormat)) : ""); - const closeDropdown = () => { - setDropdownOpened(false); - onDropdownClose == null ? void 0 : onDropdownClose(); - }; - const openDropdown = () => { - setDropdownOpened(true); - onDropdownOpen == null ? void 0 : onDropdownOpen(); - }; - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { - if (value === null && !focused) { - setInputState(""); - } - if (value instanceof Date && !focused) { - setInputState((0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.upperFirst)(dayjs__WEBPACK_IMPORTED_MODULE_0___default()(value).locale(finalLocale).format(dateFormat))); - } - }, [value, focused]); - const handleValueChange = (date) => { - setValue(date); - setInputState((0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.upperFirst)(dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).locale(finalLocale).format(dateFormat))); - closeCalendarOnChange && closeDropdown(); - window.setTimeout(() => { - var _a2; - return (_a2 = inputRef.current) == null ? void 0 : _a2.focus(); - }, 0); - }; - const handleClear = () => { - var _a2; - setValue(null); - setLastValidValue(null); - setInputState(""); - openDropdownOnClear && openDropdown(); - (_a2 = inputRef.current) == null ? void 0 : _a2.focus(); - }; - const parseDate = (date) => dateParser ? dateParser(date) : dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date, dateFormat, finalLocale).toDate(); - const setDateFromInput = () => { - let date = typeof _value === "string" ? parseDate(_value) : _value; - if (maxDate && dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).isAfter(maxDate)) { - date = maxDate; - } - if (minDate && dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).isBefore(minDate)) { - date = minDate; - } - if (dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).isValid()) { - setValue(date); - setLastValidValue(date); - setInputState((0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_4__.upperFirst)(dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).locale(finalLocale).format(dateFormat))); - setCalendarMonth(date); - } else if (fixOnBlur) { - setValue(lastValidValue); - } - }; - const handleInputBlur = (event) => { - typeof onBlur === "function" && onBlur(event); - setFocused(false); - if (allowFreeInput) { - setDateFromInput(); - } - }; - const handleKeyDown = (event) => { - if (event.key === "Enter" && allowFreeInput) { - closeDropdown(); - setDateFromInput(); - } - }; - const handleInputFocus = (event) => { - typeof onFocus === "function" && onFocus(event); - setFocused(true); - }; - const handleChange = (event) => { - openDropdown(); - const date = parseDate(event.target.value); - if (dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).isValid()) { - setValue(date); - setLastValidValue(date); - setInputState(event.target.value); - setCalendarMonth(date); - } else { - setInputState(event.target.value); - } - }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_DatePickerBase_DatePickerBase_js__WEBPACK_IMPORTED_MODULE_5__.DatePickerBase, __spreadValues({ - allowFreeInput, - dropdownOpened, - setDropdownOpened, - shadow, - transitionDuration, - ref: (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_6__.useMergedRef)(ref, inputRef), - size, - styles, - classNames, - onChange: handleChange, - onBlur: handleInputBlur, - onFocus: handleInputFocus, - onKeyDown: handleKeyDown, - name, - inputLabel: inputState, - __staticSelector: "DatePicker", - dropdownType, - dropdownPosition, - clearable: type === "date" ? false : clearable && !!_value && !disabled, - clearButtonLabel, - onClear: handleClear, - disabled, - withinPortal, - amountOfMonths, - onDropdownClose, - onDropdownOpen, - type, - unstyled - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_Calendar_Calendar_js__WEBPACK_IMPORTED_MODULE_7__.Calendar, { - classNames, - styles, - locale: finalLocale, - nextMonthLabel, - previousMonthLabel, - month: allowFreeInput ? calendarMonth : void 0, - initialMonth: initialMonth || (_value instanceof Date ? _value : new Date()), - onMonthChange: setCalendarMonth, - value: _value instanceof Date ? _value : dayjs__WEBPACK_IMPORTED_MODULE_0___default()(_value).toDate(), - onChange: handleValueChange, - labelFormat, - dayClassName, - dayStyle, - disableOutsideEvents, - minDate, - maxDate, - excludeDate, - __staticSelector: "DatePicker", - fullWidth: dropdownType === "modal", - __stopPropagation: dropdownType !== "modal", - size: dropdownType === "modal" ? "lg" : calendarSize, - firstDayOfWeek, - preventFocus: allowFreeInput, - amountOfMonths, - allowLevelChange, - initialLevel, - hideOutsideDates, - hideWeekdays, - renderDay, - unstyled, - weekendDays, - yearLabelFormat, - nextDecadeLabel, - nextYearLabel, - previousDecadeLabel, - previousYearLabel - })); -}); -DatePicker.displayName = "@mantine/dates/DatePicker"; - - -//# sourceMappingURL=DatePicker.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/DatePickerBase/DatePickerBase.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/DatePickerBase/DatePickerBase.js ***! - \*************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DatePickerBase: () => (/* binding */ DatePickerBase) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/style-system-props/extract-system-styles/extract-system-styles.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/CloseButton/CloseButton.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Input/Input.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Popover/Popover.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Modal/Modal.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-id/use-id.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js"); -/* harmony import */ var _DatePickerBase_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DatePickerBase.styles.js */ "./node_modules/@mantine/dates/esm/components/DatePickerBase/DatePickerBase.styles.js"); - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const RIGHT_SECTION_WIDTH = { - xs: 24, - sm: 30, - md: 34, - lg: 40, - xl: 44 -}; -const defaultTransition = { - in: { opacity: 1, transform: "translateY(0) scale(1)" }, - out: { opacity: 0, transform: "translateY(-25px) scale(0.93)" }, - common: { transformOrigin: "top left" }, - transitionProperty: "opacity, transform" -}; -const DatePickerBase = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { - classNames, - className, - style, - styles, - wrapperProps, - required, - allowFreeInput = false, - label, - error, - id, - description, - placeholder, - shadow, - transition = defaultTransition, - transitionDuration = 100, - transitionTimingFunction, - size = "sm", - children, - inputLabel, - __staticSelector = "DatePickerBase", - dropdownOpened, - setDropdownOpened, - dropdownType = "popover", - dropdownPosition = "flip", - clearable = true, - clearButtonLabel, - onClear, - positionDependencies = [], - zIndex, - withinPortal = false, - onBlur, - onFocus, - onChange, - onKeyDown, - name = "date", - sx, - amountOfMonths = 1, - onDropdownClose, - onDropdownOpen, - clickOutsideEvents = ["mousedown", "touchstart"], - modalZIndex, - errorProps, - labelProps, - descriptionProps, - clearButtonTabIndex = 0, - unstyled, - inputContainer, - inputWrapperOrder, - modalProps, - withAsterisk, - readOnly - } = _b, others = __objRest(_b, [ - "classNames", - "className", - "style", - "styles", - "wrapperProps", - "required", - "allowFreeInput", - "label", - "error", - "id", - "description", - "placeholder", - "shadow", - "transition", - "transitionDuration", - "transitionTimingFunction", - "size", - "children", - "inputLabel", - "__staticSelector", - "dropdownOpened", - "setDropdownOpened", - "dropdownType", - "dropdownPosition", - "clearable", - "clearButtonLabel", - "onClear", - "positionDependencies", - "zIndex", - "withinPortal", - "onBlur", - "onFocus", - "onChange", - "onKeyDown", - "name", - "sx", - "amountOfMonths", - "onDropdownClose", - "onDropdownOpen", - "clickOutsideEvents", - "modalZIndex", - "errorProps", - "labelProps", - "descriptionProps", - "clearButtonTabIndex", - "unstyled", - "inputContainer", - "inputWrapperOrder", - "modalProps", - "withAsterisk", - "readOnly" - ]); - const { classes, cx, theme } = (0,_DatePickerBase_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])(null, { - classNames, - styles, - unstyled, - name: __staticSelector - }); - const { systemStyles, rest } = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_2__.extractSystemStyles)(others); - const uuid = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_3__.useId)(id); - const inputRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const closeDropdown = () => { - setDropdownOpened(false); - onDropdownClose == null ? void 0 : onDropdownClose(); - }; - const openDropdown = () => { - setDropdownOpened(true); - onDropdownOpen == null ? void 0 : onDropdownOpen(); - }; - const toggleDropdown = () => { - setDropdownOpened(!dropdownOpened); - !dropdownOpened ? onDropdownOpen == null ? void 0 : onDropdownOpen() : onDropdownClose == null ? void 0 : onDropdownClose(); - }; - const closeOnEscape = (event) => { - if (event.key === "Escape") { - closeDropdown(); - window.setTimeout(() => { - var _a2; - return (_a2 = inputRef.current) == null ? void 0 : _a2.focus(); - }, 0); - } - }; - const rightSection = clearable && !readOnly ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.CloseButton, { - variant: "transparent", - "aria-label": clearButtonLabel, - onClick: onClear, - size, - tabIndex: clearButtonTabIndex, - unstyled - }) : null; - const handleInputBlur = (event) => { - typeof onBlur === "function" && onBlur(event); - if (allowFreeInput) { - closeDropdown(); - } - }; - const handleInputFocus = (event) => { - typeof onFocus === "function" && onFocus(event); - if (allowFreeInput) { - openDropdown(); - } - }; - const handleKeyDown = (event) => { - typeof onKeyDown === "function" && onKeyDown(event); - if ((event.key === "Space" || event.key === "Enter") && !allowFreeInput) { - event.preventDefault(); - openDropdown(); - } - }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Input.Wrapper, __spreadValues(__spreadValues({ - required, - id: uuid, - label, - error, - description, - className, - style, - classNames, - styles, - size, - __staticSelector, - sx, - errorProps, - descriptionProps, - labelProps, - inputContainer, - inputWrapperOrder, - unstyled, - withAsterisk - }, systemStyles), wrapperProps), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Popover, { - __staticSelector, - withinPortal, - offset: 10, - opened: dropdownOpened, - transitionDuration, - transition, - positionDependencies, - middlewares: { flip: dropdownPosition === "flip", shift: false }, - position: dropdownPosition === "flip" ? "bottom-start" : dropdownPosition, - shadow, - onClose: closeDropdown, - trapFocus: !allowFreeInput, - withRoles: false, - clickOutsideEvents, - zIndex, - classNames, - styles, - unstyled, - disabled: readOnly - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Popover.Target, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.wrapper - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Input, __spreadValues({ - classNames: __spreadProps(__spreadValues({}, classNames), { - input: cx(classes.input, classNames == null ? void 0 : classNames.input) - }), - "data-free-input": allowFreeInput || void 0, - styles, - onClick: () => !allowFreeInput ? toggleDropdown() : openDropdown(), - onKeyDown: handleKeyDown, - id: uuid, - ref: (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useMergedRef)(ref, inputRef), - __staticSelector, - size, - name, - placeholder, - value: inputLabel, - required, - invalid: !!error, - readOnly: !allowFreeInput, - rightSection, - rightSectionWidth: theme.fn.size({ size, sizes: RIGHT_SECTION_WIDTH }), - onBlur: handleInputBlur, - onFocus: handleInputFocus, - onChange, - autoComplete: "off", - unstyled - }, rest)))), dropdownType === "popover" ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Popover.Dropdown, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - "data-mantine-stop-propagation": dropdownOpened, - onKeyDownCapture: closeOnEscape, - "aria-hidden": allowFreeInput || void 0 - }, children)) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Modal, __spreadProps(__spreadValues({}, modalProps), { - opened: dropdownOpened, - onClose: closeDropdown, - withCloseButton: false, - size: amountOfMonths * 400, - zIndex: modalZIndex, - unstyled - }), children))); -}); -DatePickerBase.displayName = "@mantine/dates/DatePickerBase"; - - -//# sourceMappingURL=DatePickerBase.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/DatePickerBase/DatePickerBase.styles.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/DatePickerBase/DatePickerBase.styles.js ***! - \********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme) => ({ - wrapper: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - position: "relative", - cursor: "pointer" - }), - input: { - cursor: "pointer", - whiteSpace: "nowrap", - "&:not([data-free-input])::selection": { - backgroundColor: "transparent" - }, - "&[data-free-input]": { - cursor: "text" - } - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=DatePickerBase.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/Day/Day.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/Day/Day.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Day: () => (/* binding */ Day) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _get_day_tab_index_get_day_tab_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-day-tab-index/get-day-tab-index.js */ "./node_modules/@mantine/dates/esm/components/Month/Day/get-day-tab-index/get-day-tab-index.js"); -/* harmony import */ var _get_day_autofocus_get_day_autofocus_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./get-day-autofocus/get-day-autofocus.js */ "./node_modules/@mantine/dates/esm/components/Month/Day/get-day-autofocus/get-day-autofocus.js"); -/* harmony import */ var _Day_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Day.styles.js */ "./node_modules/@mantine/dates/esm/components/Month/Day/Day.styles.js"); - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const Day = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_a, ref) => { - var _b = _a, { - className, - value, - selected, - weekend, - outside, - onMouseEnter, - classNames, - styles, - hasValue, - firstInRange, - lastInRange, - __staticSelector = "Month", - inRange, - size, - fullWidth, - firstInMonth, - focusable, - hideOutsideDates, - renderDay, - unstyled, - disabled, - stopPropagation - } = _b, others = __objRest(_b, [ - "className", - "value", - "selected", - "weekend", - "outside", - "onMouseEnter", - "classNames", - "styles", - "hasValue", - "firstInRange", - "lastInRange", - "__staticSelector", - "inRange", - "size", - "fullWidth", - "firstInMonth", - "focusable", - "hideOutsideDates", - "renderDay", - "unstyled", - "disabled", - "stopPropagation" - ]); - const { classes, cx } = (0,_Day_styles_js__WEBPACK_IMPORTED_MODULE_1__["default"])({ size, fullWidth, hideOutsideDates }, { classNames, styles, unstyled, name: __staticSelector }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", __spreadProps(__spreadValues({}, others), { - type: "button", - ref, - disabled, - onMouseEnter: (event) => onMouseEnter(value, event), - tabIndex: (0,_get_day_tab_index_get_day_tab_index_js__WEBPACK_IMPORTED_MODULE_2__.getDayTabIndex)({ focusable, hasValue, selected, firstInMonth }), - "data-autofocus": (0,_get_day_autofocus_get_day_autofocus_js__WEBPACK_IMPORTED_MODULE_3__.getDayAutofocus)({ hasValue, selected, firstInMonth }), - "data-mantine-stop-propagation": stopPropagation || void 0, - "data-outside": outside && !disabled || void 0, - "data-weekend": weekend && !disabled || void 0, - "data-selected": selected && !disabled || void 0, - "data-in-range": inRange && !disabled || void 0, - "data-first-in-range": firstInRange && !disabled || void 0, - "data-last-in-range": lastInRange && !disabled || void 0, - className: cx(classes.day, className) - }), typeof renderDay === "function" ? renderDay(value) : value.getDate()); -}); -Day.displayName = "@mantine/core/Day"; - - -//# sourceMappingURL=Day.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/Day/Day.styles.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/Day/Day.styles.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), -/* harmony export */ sizes: () => (/* binding */ sizes) -/* harmony export */ }); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -const sizes = { - xs: 34, - sm: 38, - md: 46, - lg: 58, - xl: 66 -}; -var useStyles = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { size, fullWidth, hideOutsideDates }) => ({ - day: __spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, theme.fn.fontStyles()), theme.fn.focusStyles()), { - position: "relative", - WebkitTapHighlightColor: "transparent", - backgroundColor: "transparent", - width: fullWidth ? "100%" : theme.fn.size({ size, sizes }), - height: theme.fn.size({ size, sizes }), - lineHeight: `${theme.fn.size({ size, sizes })}px`, - fontSize: theme.fn.size({ size, sizes: theme.fontSizes }), - padding: 0, - borderRadius: theme.radius.sm, - border: "none", - cursor: "pointer", - userSelect: "none", - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.gray[7], - "&:disabled": { - pointerEvents: "none", - color: theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[4] - } - }), theme.fn.hover({ - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[0] - })), { - "&[data-weekend]": { - color: theme.colorScheme === "dark" ? theme.colors.red[5] : theme.colors.red[7] - }, - "&[data-outside]": { - display: hideOutsideDates ? "none" : void 0, - color: `${theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[4]}` - }, - "&[data-in-range]": { - backgroundColor: theme.fn.variant({ variant: "light" }).background, - borderRadius: 0 - }, - "&[data-selected]": { - backgroundColor: theme.fn.variant({ variant: "filled" }).background, - color: theme.white - }, - "&[data-first-in-range]": { - borderTopLeftRadius: theme.radius.sm, - borderBottomLeftRadius: theme.radius.sm - }, - "&[data-last-in-range]": { - borderTopRightRadius: theme.radius.sm, - borderBottomRightRadius: theme.radius.sm - } - }) -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); - -//# sourceMappingURL=Day.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/Day/get-day-autofocus/get-day-autofocus.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/Day/get-day-autofocus/get-day-autofocus.js ***! - \*****************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getDayAutofocus: () => (/* binding */ getDayAutofocus) -/* harmony export */ }); -function getDayAutofocus({ hasValue, selected, firstInMonth }) { - if (hasValue) { - return selected ? true : void 0; - } - return firstInMonth ? true : void 0; -} - - -//# sourceMappingURL=get-day-autofocus.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/Day/get-day-tab-index/get-day-tab-index.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/Day/get-day-tab-index/get-day-tab-index.js ***! - \*****************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getDayTabIndex: () => (/* binding */ getDayTabIndex) -/* harmony export */ }); -function getDayTabIndex({ focusable, hasValue, selected, firstInMonth }) { - if (!focusable) { - return -1; - } - if (hasValue) { - return selected ? 0 : -1; - } - return firstInMonth ? 0 : -1; -} - - -//# sourceMappingURL=get-day-tab-index.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/Month.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/Month.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Month: () => (/* binding */ Month) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/utils/upper-first/upper-first.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _Day_Day_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Day/Day.js */ "./node_modules/@mantine/dates/esm/components/Month/Day/Day.js"); -/* harmony import */ var _get_day_props_get_day_props_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./get-day-props/get-day-props.js */ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/get-day-props.js"); -/* harmony import */ var _Month_styles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Month.styles.js */ "./node_modules/@mantine/dates/esm/components/Month/Month.styles.js"); -/* harmony import */ var _utils_get_month_days_get_month_days_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/get-month-days/get-month-days.js */ "./node_modules/@mantine/dates/esm/utils/get-month-days/get-month-days.js"); -/* harmony import */ var _utils_get_weekdays_names_get_weekdays_names_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/get-weekdays-names/get-weekdays-names.js */ "./node_modules/@mantine/dates/esm/utils/get-weekdays-names/get-weekdays-names.js"); -/* harmony import */ var _utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/is-same-date/is-same-date.js */ "./node_modules/@mantine/dates/esm/utils/is-same-date/is-same-date.js"); - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const noop = () => false; -const defaultProps = { - disableOutsideEvents: false, - hideWeekdays: false, - __staticSelector: "Month", - size: "sm", - fullWidth: false, - preventFocus: false, - focusable: true, - firstDayOfWeek: "monday", - hideOutsideDates: false, - weekendDays: [0, 6], - __stopPropagation: true -}; -const Month = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((props, ref) => { - const _a = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_2__.useComponentDefaultProps)("Month", defaultProps, props), { - className, - month, - value, - onChange, - disableOutsideEvents, - locale, - dayClassName, - dayStyle, - classNames, - styles, - minDate, - maxDate, - excludeDate, - onDayMouseEnter, - range, - hideWeekdays, - __staticSelector, - size, - fullWidth, - preventFocus, - focusable, - firstDayOfWeek, - onDayKeyDown, - daysRefs, - hideOutsideDates, - isDateInRange = noop, - isDateFirstInRange = noop, - isDateLastInRange = noop, - renderDay, - weekdayLabelFormat, - unstyled, - weekendDays, - __stopPropagation - } = _a, others = __objRest(_a, [ - "className", - "month", - "value", - "onChange", - "disableOutsideEvents", - "locale", - "dayClassName", - "dayStyle", - "classNames", - "styles", - "minDate", - "maxDate", - "excludeDate", - "onDayMouseEnter", - "range", - "hideWeekdays", - "__staticSelector", - "size", - "fullWidth", - "preventFocus", - "focusable", - "firstDayOfWeek", - "onDayKeyDown", - "daysRefs", - "hideOutsideDates", - "isDateInRange", - "isDateFirstInRange", - "isDateLastInRange", - "renderDay", - "weekdayLabelFormat", - "unstyled", - "weekendDays", - "__stopPropagation" - ]); - const { classes, cx, theme } = (0,_Month_styles_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ fullWidth }, { classNames, styles, unstyled, name: __staticSelector }); - const finalLocale = locale || theme.datesLocale; - const days = (0,_utils_get_month_days_get_month_days_js__WEBPACK_IMPORTED_MODULE_4__.getMonthDays)(month, firstDayOfWeek); - const weekdays = (0,_utils_get_weekdays_names_get_weekdays_names_js__WEBPACK_IMPORTED_MODULE_5__.getWeekdaysNames)(finalLocale, firstDayOfWeek, weekdayLabelFormat).map((weekday) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("th", { - className: classes.weekdayCell, - key: weekday - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Text, { - size, - className: classes.weekday - }, weekday.length >= 2 ? (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.upperFirst)(weekday) : weekday))); - const hasValue = Array.isArray(value) ? value.every((item) => item instanceof Date) : value instanceof Date; - const hasValueInMonthRange = value instanceof Date && dayjs__WEBPACK_IMPORTED_MODULE_1___default()(value).isAfter(dayjs__WEBPACK_IMPORTED_MODULE_1___default()(month).startOf("month")) && dayjs__WEBPACK_IMPORTED_MODULE_1___default()(value).isBefore(dayjs__WEBPACK_IMPORTED_MODULE_1___default()(month).endOf("month")); - const firstIncludedDay = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => days.flatMap((_) => _).find((date) => { - const dayProps = (0,_get_day_props_get_day_props_js__WEBPACK_IMPORTED_MODULE_8__.getDayProps)({ - date, - month, - hasValue, - minDate, - maxDate, - value, - excludeDate, - disableOutsideEvents, - range, - weekendDays - }); - return !dayProps.disabled && !dayProps.outside; - }) || dayjs__WEBPACK_IMPORTED_MODULE_1___default()(month).startOf("month").toDate(), []); - const rows = days.map((row, rowIndex) => { - const cells = row.map((date, cellIndex) => { - const dayProps = (0,_get_day_props_get_day_props_js__WEBPACK_IMPORTED_MODULE_8__.getDayProps)({ - date, - month, - hasValue, - minDate, - maxDate, - value, - excludeDate, - disableOutsideEvents, - range, - weekendDays - }); - const onKeyDownPayload = { rowIndex, cellIndex, date }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("td", { - className: classes.cell, - key: cellIndex - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Day_Day_js__WEBPACK_IMPORTED_MODULE_9__.Day, { - unstyled, - ref: (button) => { - if (daysRefs) { - if (!Array.isArray(daysRefs[rowIndex])) { - daysRefs[rowIndex] = []; - } - daysRefs[rowIndex][cellIndex] = button; - } - }, - onClick: () => typeof onChange === "function" && onChange(date), - onMouseDown: (event) => preventFocus && event.preventDefault(), - value: date, - outside: dayProps.outside, - weekend: dayProps.weekend, - inRange: dayProps.inRange || isDateInRange(date, dayProps), - firstInRange: dayProps.firstInRange || isDateFirstInRange(date, dayProps), - lastInRange: dayProps.lastInRange || isDateLastInRange(date, dayProps), - firstInMonth: (0,_utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_10__.isSameDate)(date, firstIncludedDay), - selected: dayProps.selected || dayProps.selectedInRange, - hasValue: hasValueInMonthRange, - onKeyDown: (event) => typeof onDayKeyDown === "function" && onDayKeyDown(onKeyDownPayload, event), - className: typeof dayClassName === "function" ? dayClassName(date, dayProps) : null, - style: typeof dayStyle === "function" ? dayStyle(date, dayProps) : null, - disabled: dayProps.disabled, - onMouseEnter: typeof onDayMouseEnter === "function" ? onDayMouseEnter : noop, - size, - fullWidth, - focusable, - hideOutsideDates, - __staticSelector, - styles, - classNames, - renderDay, - stopPropagation: __stopPropagation - })); - }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tr", { - key: rowIndex - }, cells); - }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.Box, __spreadValues({ - component: "table", - className: cx(classes.month, className), - ref - }, others), !hideWeekdays && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("thead", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tr", null, weekdays)), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tbody", null, rows)); -}); -Month.displayName = "@mantine/dates/Month"; - - -//# sourceMappingURL=Month.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/Month.styles.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/Month.styles.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var useStyles = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { fullWidth }) => ({ - weekday: { - color: theme.colorScheme === "dark" ? theme.colors.dark[1] : theme.colors.gray[5] - }, - month: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - borderCollapse: "collapse", - width: fullWidth ? "100%" : "auto", - tableLayout: "fixed" - }), - cell: { - boxSizing: "border-box", - padding: 0, - borderTop: "1px solid transparent" - }, - weekdayCell: { - boxSizing: "border-box", - padding: 0, - fontWeight: "normal", - paddingBottom: `calc(${theme.spacing.xs}px / 2)`, - textAlign: "center", - cursor: "default", - userSelect: "none" - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=Month.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/get-day-props.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/get-day-props/get-day-props.js ***! - \*****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getDayProps: () => (/* binding */ getDayProps) -/* harmony export */ }); -/* harmony import */ var _is_weekend_is_weekend_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./is-weekend/is-weekend.js */ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/is-weekend/is-weekend.js"); -/* harmony import */ var _is_outside_is_outside_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./is-outside/is-outside.js */ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/is-outside/is-outside.js"); -/* harmony import */ var _is_disabled_is_disabled_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./is-disabled/is-disabled.js */ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/is-disabled/is-disabled.js"); -/* harmony import */ var _get_range_props_get_range_props_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./get-range-props/get-range-props.js */ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/get-range-props/get-range-props.js"); -/* harmony import */ var _utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../utils/is-same-date/is-same-date.js */ "./node_modules/@mantine/dates/esm/utils/is-same-date/is-same-date.js"); - - - - - - -function getDayProps({ - date, - month, - hasValue, - minDate, - maxDate, - value, - excludeDate, - disableOutsideEvents, - range, - weekendDays -}) { - const outside = (0,_is_outside_is_outside_js__WEBPACK_IMPORTED_MODULE_0__.isOutside)(date, month); - const selected = hasValue && (Array.isArray(value) ? value.some((val) => (0,_utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_1__.isSameDate)(val, date)) : (0,_utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_1__.isSameDate)(date, value)); - const { inRange, lastInRange, firstInRange, selectedInRange } = (0,_get_range_props_get_range_props_js__WEBPACK_IMPORTED_MODULE_2__.getRangeProps)(date, range); - return { - disabled: (0,_is_disabled_is_disabled_js__WEBPACK_IMPORTED_MODULE_3__.isDisabled)({ minDate, maxDate, excludeDate, disableOutsideEvents, date, outside }), - weekend: (0,_is_weekend_is_weekend_js__WEBPACK_IMPORTED_MODULE_4__.isWeekend)(date, weekendDays), - selectedInRange, - selected, - inRange, - firstInRange, - lastInRange, - outside - }; -} - - -//# sourceMappingURL=get-day-props.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/get-range-props/get-range-props.js": -/*!***********************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/get-day-props/get-range-props/get-range-props.js ***! - \***********************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getRangeProps: () => (/* binding */ getRangeProps) -/* harmony export */ }); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../utils/is-same-date/is-same-date.js */ "./node_modules/@mantine/dates/esm/utils/is-same-date/is-same-date.js"); - - - -function getRangeProps(date, range) { - const hasRange = Array.isArray(range) && range.every((val) => val instanceof Date); - const inclusiveRange = hasRange && [ - dayjs__WEBPACK_IMPORTED_MODULE_0___default()(range[0]).subtract(1, "day"), - dayjs__WEBPACK_IMPORTED_MODULE_0___default()(range[1]).add(1, "day") - ]; - const firstInRange = hasRange && (0,_utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_1__.isSameDate)(date, range[0]); - const lastInRange = hasRange && (0,_utils_is_same_date_is_same_date_js__WEBPACK_IMPORTED_MODULE_1__.isSameDate)(date, range[1]); - const inRange = hasRange && dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).isAfter(inclusiveRange[0], "day") && dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).isBefore(inclusiveRange[1], "day"); - return { firstInRange, lastInRange, inRange, selectedInRange: firstInRange || lastInRange }; -} - - -//# sourceMappingURL=get-range-props.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/is-disabled/is-disabled.js": -/*!***************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/get-day-props/is-disabled/is-disabled.js ***! - \***************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isDisabled: () => (/* binding */ isDisabled) -/* harmony export */ }); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__); - - -function isDisabled({ - minDate, - maxDate, - excludeDate, - disableOutsideEvents, - date, - outside -}) { - const isAfterMax = maxDate instanceof Date && dayjs__WEBPACK_IMPORTED_MODULE_0___default()(maxDate).isBefore(date, "day"); - const isBeforeMin = minDate instanceof Date && dayjs__WEBPACK_IMPORTED_MODULE_0___default()(minDate).isAfter(date, "day"); - const shouldExclude = typeof excludeDate === "function" && excludeDate(date); - const disabledOutside = !!disableOutsideEvents && !!outside; - return isAfterMax || isBeforeMin || shouldExclude || disabledOutside; -} - - -//# sourceMappingURL=is-disabled.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/is-outside/is-outside.js": -/*!*************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/get-day-props/is-outside/is-outside.js ***! - \*************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isOutside: () => (/* binding */ isOutside) -/* harmony export */ }); -/* harmony import */ var _utils_is_same_month_is_same_month_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../utils/is-same-month/is-same-month.js */ "./node_modules/@mantine/dates/esm/utils/is-same-month/is-same-month.js"); - - -function isOutside(date, month) { - return !(0,_utils_is_same_month_is_same_month_js__WEBPACK_IMPORTED_MODULE_0__.isSameMonth)(date, month); -} - - -//# sourceMappingURL=is-outside.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/components/Month/get-day-props/is-weekend/is-weekend.js": -/*!*************************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/components/Month/get-day-props/is-weekend/is-weekend.js ***! - \*************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isWeekend: () => (/* binding */ isWeekend) -/* harmony export */ }); -function isWeekend(date, weekendDays = [0, 6]) { - return weekendDays.includes(date.getDay()); -} - - -//# sourceMappingURL=is-weekend.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/utils/get-end-of-week/get-end-of-week.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/utils/get-end-of-week/get-end-of-week.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getEndOfWeek: () => (/* binding */ getEndOfWeek) -/* harmony export */ }); -function getEndOfWeek(date, firstDayOfWeek = "monday") { - const value = new Date(date); - const day = value.getDay(); - const isSunday = firstDayOfWeek === "sunday"; - const clampToLastDay = 7 - (isSunday ? day + 1 : day); - if (isSunday && day !== 6 || day !== 0) { - value.setDate(value.getDate() + clampToLastDay); - } - return value; -} - - -//# sourceMappingURL=get-end-of-week.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/utils/get-month-days/get-month-days.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/utils/get-month-days/get-month-days.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getMonthDays: () => (/* binding */ getMonthDays) -/* harmony export */ }); -/* harmony import */ var _get_start_of_week_get_start_of_week_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../get-start-of-week/get-start-of-week.js */ "./node_modules/@mantine/dates/esm/utils/get-start-of-week/get-start-of-week.js"); -/* harmony import */ var _get_end_of_week_get_end_of_week_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../get-end-of-week/get-end-of-week.js */ "./node_modules/@mantine/dates/esm/utils/get-end-of-week/get-end-of-week.js"); - - - -function getMonthDays(month, firstDayOfWeek = "monday") { - const currentMonth = month.getMonth(); - const startOfMonth = new Date(month.getFullYear(), currentMonth, 1); - const endOfMonth = new Date(month.getFullYear(), month.getMonth() + 1, 0); - const endDate = (0,_get_end_of_week_get_end_of_week_js__WEBPACK_IMPORTED_MODULE_0__.getEndOfWeek)(endOfMonth, firstDayOfWeek); - const date = (0,_get_start_of_week_get_start_of_week_js__WEBPACK_IMPORTED_MODULE_1__.getStartOfWeek)(startOfMonth, firstDayOfWeek); - const weeks = []; - while (date <= endDate) { - const days = []; - for (let i = 0; i < 7; i += 1) { - days.push(new Date(date)); - date.setDate(date.getDate() + 1); - } - weeks.push(days); - } - return weeks; -} - - -//# sourceMappingURL=get-month-days.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/utils/get-months-names/get-months-names.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/utils/get-months-names/get-months-names.js ***! - \************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getMonthsNames: () => (/* binding */ getMonthsNames) -/* harmony export */ }); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__); - - -function getMonthsNames(locale, format = "MMM") { - const names = []; - const date = new Date(2021, 0, 1); - for (let i = 0; i < 12; i += 1) { - names.push(dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).locale(locale).format(format)); - date.setMonth(date.getMonth() + 1); - } - return names; -} - - -//# sourceMappingURL=get-months-names.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/utils/get-start-of-week/get-start-of-week.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/utils/get-start-of-week/get-start-of-week.js ***! - \**************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getStartOfWeek: () => (/* binding */ getStartOfWeek) -/* harmony export */ }); -function getStartOfWeek(date, firstDayOfWeek = "monday") { - const value = new Date(date); - const day = value.getDay() || 7; - const isSunday = firstDayOfWeek === "sunday"; - const clampToFirstDay = isSunday ? day : day - 1; - if (isSunday && day !== 0 || day !== 1) { - value.setHours(-24 * clampToFirstDay); - } - return value; -} - - -//# sourceMappingURL=get-start-of-week.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/utils/get-weekdays-names/get-weekdays-names.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/utils/get-weekdays-names/get-weekdays-names.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getWeekdaysNames: () => (/* binding */ getWeekdaysNames) -/* harmony export */ }); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dayjs */ "./node_modules/dayjs/dayjs.min.js"); -/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _get_start_of_week_get_start_of_week_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../get-start-of-week/get-start-of-week.js */ "./node_modules/@mantine/dates/esm/utils/get-start-of-week/get-start-of-week.js"); - - - -function getWeekdaysNames(locale, firstDayOfWeek = "monday", format = "dd") { - const names = []; - const date = (0,_get_start_of_week_get_start_of_week_js__WEBPACK_IMPORTED_MODULE_1__.getStartOfWeek)(new Date(), firstDayOfWeek); - for (let i = 0; i < 7; i += 1) { - names.push(dayjs__WEBPACK_IMPORTED_MODULE_0___default()(date).locale(locale).format(format)); - date.setDate(date.getDate() + 1); - } - return names; -} - - -//# sourceMappingURL=get-weekdays-names.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/utils/is-same-date/is-same-date.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/utils/is-same-date/is-same-date.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isSameDate: () => (/* binding */ isSameDate) -/* harmony export */ }); -/* harmony import */ var _is_same_month_is_same_month_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../is-same-month/is-same-month.js */ "./node_modules/@mantine/dates/esm/utils/is-same-month/is-same-month.js"); - - -function isSameDate(date, comparison) { - return (0,_is_same_month_is_same_month_js__WEBPACK_IMPORTED_MODULE_0__.isSameMonth)(date, comparison) && date.getDate() === comparison.getDate(); -} - - -//# sourceMappingURL=is-same-date.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/dates/esm/utils/is-same-month/is-same-month.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/dates/esm/utils/is-same-month/is-same-month.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isSameMonth: () => (/* binding */ isSameMonth) -/* harmony export */ }); -function isSameMonth(date, comparison) { - return date.getFullYear() === comparison.getFullYear() && date.getMonth() === comparison.getMonth(); -} - - -//# sourceMappingURL=is-same-month.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/clear-list-state/clear-list-state.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/clear-list-state/clear-list-state.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ clearListState: () => (/* binding */ clearListState) -/* harmony export */ }); -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function clearListState(field, state) { - if (state === null || typeof state !== "object") { - return {}; - } - const clone = __spreadValues({}, state); - Object.keys(state).forEach((errorKey) => { - if (errorKey.includes(`${String(field)}.`)) { - delete clone[errorKey]; - } - }); - return clone; -} - - -//# sourceMappingURL=clear-list-state.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/filter-errors/filter-errors.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/filter-errors/filter-errors.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ filterErrors: () => (/* binding */ filterErrors) -/* harmony export */ }); -function filterErrors(errors) { - if (errors === null || typeof errors !== "object") { - return {}; - } - return Object.keys(errors).reduce((acc, key) => { - const errorValue = errors[key]; - if (errorValue !== void 0 && errorValue !== null && errorValue !== false) { - acc[key] = errorValue; - } - return acc; - }, {}); -} - - -//# sourceMappingURL=filter-errors.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/form-index.js": -/*!******************************************************!*\ - !*** ./node_modules/@mantine/form/esm/form-index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ FORM_INDEX: () => (/* binding */ FORM_INDEX) -/* harmony export */ }); -const FORM_INDEX = "__MANTINE_FORM_INDEX__"; - - -//# sourceMappingURL=form-index.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getInputOnChange: () => (/* binding */ getInputOnChange) -/* harmony export */ }); -function getInputOnChange(setValue) { - return (val) => { - if (!val) { - setValue(val); - } else if (typeof val === "function") { - setValue(val); - } else if (typeof val === "object" && "nativeEvent" in val) { - const { currentTarget } = val; - if (currentTarget instanceof HTMLInputElement) { - if (currentTarget.type === "checkbox") { - setValue(currentTarget.checked); - } else { - setValue(currentTarget.value); - } - } else if (currentTarget instanceof HTMLTextAreaElement || currentTarget instanceof HTMLSelectElement) { - setValue(currentTarget.value); - } - } else { - setValue(val); - } - }; -} - - -//# sourceMappingURL=get-input-on-change.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/get-status/get-status.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/get-status/get-status.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getStatus: () => (/* binding */ getStatus) -/* harmony export */ }); -function getStatus(status, path) { - const paths = Object.keys(status); - if (typeof path === "string") { - const nestedPaths = paths.filter((statusPath) => statusPath.startsWith(`${path}.`)); - return status[path] || nestedPaths.some((statusPath) => status[statusPath]) || false; - } - return paths.some((statusPath) => status[statusPath]); -} - - -//# sourceMappingURL=get-status.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/paths/get-path.js": -/*!**********************************************************!*\ - !*** ./node_modules/@mantine/form/esm/paths/get-path.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getPath: () => (/* binding */ getPath) -/* harmony export */ }); -/* harmony import */ var _get_splitted_path_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-splitted-path.js */ "./node_modules/@mantine/form/esm/paths/get-splitted-path.js"); - - -function getPath(path, values) { - const splittedPath = (0,_get_splitted_path_js__WEBPACK_IMPORTED_MODULE_0__.getSplittedPath)(path); - if (splittedPath.length === 0 || typeof values !== "object" || values === null) { - return void 0; - } - let value = values[splittedPath[0]]; - for (let i = 1; i < splittedPath.length; i += 1) { - if (value === void 0) { - break; - } - value = value[splittedPath[i]]; - } - return value; -} - - -//# sourceMappingURL=get-path.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/paths/get-splitted-path.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/paths/get-splitted-path.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getSplittedPath: () => (/* binding */ getSplittedPath) -/* harmony export */ }); -function getSplittedPath(path) { - if (typeof path !== "string") { - return []; - } - return path.split("."); -} - - -//# sourceMappingURL=get-splitted-path.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/paths/insert-path.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/paths/insert-path.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ insertPath: () => (/* binding */ insertPath) -/* harmony export */ }); -/* harmony import */ var _get_path_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-path.js */ "./node_modules/@mantine/form/esm/paths/get-path.js"); -/* harmony import */ var _set_path_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./set-path.js */ "./node_modules/@mantine/form/esm/paths/set-path.js"); - - - -function insertPath(path, value, index, values) { - const currentValue = (0,_get_path_js__WEBPACK_IMPORTED_MODULE_0__.getPath)(path, values); - if (!Array.isArray(currentValue)) { - return values; - } - const cloned = [...currentValue]; - cloned.splice(typeof index === "number" ? index : cloned.length, 0, value); - return (0,_set_path_js__WEBPACK_IMPORTED_MODULE_1__.setPath)(path, cloned, values); -} - - -//# sourceMappingURL=insert-path.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/paths/remove-path.js": -/*!*************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/paths/remove-path.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ removePath: () => (/* binding */ removePath) -/* harmony export */ }); -/* harmony import */ var _get_path_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-path.js */ "./node_modules/@mantine/form/esm/paths/get-path.js"); -/* harmony import */ var _set_path_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./set-path.js */ "./node_modules/@mantine/form/esm/paths/set-path.js"); - - - -function removePath(path, index, values) { - const currentValue = (0,_get_path_js__WEBPACK_IMPORTED_MODULE_0__.getPath)(path, values); - if (!Array.isArray(currentValue)) { - return values; - } - return (0,_set_path_js__WEBPACK_IMPORTED_MODULE_1__.setPath)(path, currentValue.filter((_, itemIndex) => itemIndex !== index), values); -} - - -//# sourceMappingURL=remove-path.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/paths/reorder-path.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/paths/reorder-path.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ reorderPath: () => (/* binding */ reorderPath) -/* harmony export */ }); -/* harmony import */ var _get_path_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-path.js */ "./node_modules/@mantine/form/esm/paths/get-path.js"); -/* harmony import */ var _set_path_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./set-path.js */ "./node_modules/@mantine/form/esm/paths/set-path.js"); - - - -function reorderPath(path, { from, to }, values) { - const currentValue = (0,_get_path_js__WEBPACK_IMPORTED_MODULE_0__.getPath)(path, values); - if (!Array.isArray(currentValue)) { - return values; - } - const cloned = [...currentValue]; - const item = currentValue[from]; - cloned.splice(from, 1); - cloned.splice(to, 0, item); - return (0,_set_path_js__WEBPACK_IMPORTED_MODULE_1__.setPath)(path, cloned, values); -} - - -//# sourceMappingURL=reorder-path.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/paths/set-path.js": -/*!**********************************************************!*\ - !*** ./node_modules/@mantine/form/esm/paths/set-path.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ setPath: () => (/* binding */ setPath) -/* harmony export */ }); -/* harmony import */ var klona__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! klona */ "./node_modules/klona/dist/index.mjs"); -/* harmony import */ var _get_splitted_path_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./get-splitted-path.js */ "./node_modules/@mantine/form/esm/paths/get-splitted-path.js"); - - - -function setPath(path, value, values) { - const splittedPath = (0,_get_splitted_path_js__WEBPACK_IMPORTED_MODULE_1__.getSplittedPath)(path); - if (splittedPath.length === 0) { - return values; - } - const cloned = (0,klona__WEBPACK_IMPORTED_MODULE_0__.klona)(values); - if (splittedPath.length === 1) { - cloned[splittedPath[0]] = value; - return cloned; - } - let val = cloned[splittedPath[0]]; - for (let i = 1; i < splittedPath.length - 1; i += 1) { - if (val === void 0) { - return cloned; - } - val = val[splittedPath[i]]; - } - val[splittedPath[splittedPath.length - 1]] = value; - return cloned; -} - - -//# sourceMappingURL=set-path.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/use-form.js": -/*!****************************************************!*\ - !*** ./node_modules/@mantine/form/esm/use-form.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useForm: () => (/* binding */ useForm) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-deep-equal */ "./node_modules/fast-deep-equal/index.js"); -/* harmony import */ var fast_deep_equal__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fast_deep_equal__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _filter_errors_filter_errors_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./filter-errors/filter-errors.js */ "./node_modules/@mantine/form/esm/filter-errors/filter-errors.js"); -/* harmony import */ var _clear_list_state_clear_list_state_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./clear-list-state/clear-list-state.js */ "./node_modules/@mantine/form/esm/clear-list-state/clear-list-state.js"); -/* harmony import */ var _validate_should_validate_on_change_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./validate/should-validate-on-change.js */ "./node_modules/@mantine/form/esm/validate/should-validate-on-change.js"); -/* harmony import */ var _paths_set_path_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./paths/set-path.js */ "./node_modules/@mantine/form/esm/paths/set-path.js"); -/* harmony import */ var _validate_validate_field_value_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./validate/validate-field-value.js */ "./node_modules/@mantine/form/esm/validate/validate-field-value.js"); -/* harmony import */ var _paths_reorder_path_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./paths/reorder-path.js */ "./node_modules/@mantine/form/esm/paths/reorder-path.js"); -/* harmony import */ var _paths_remove_path_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./paths/remove-path.js */ "./node_modules/@mantine/form/esm/paths/remove-path.js"); -/* harmony import */ var _paths_insert_path_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./paths/insert-path.js */ "./node_modules/@mantine/form/esm/paths/insert-path.js"); -/* harmony import */ var _validate_validate_values_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./validate/validate-values.js */ "./node_modules/@mantine/form/esm/validate/validate-values.js"); -/* harmony import */ var _get_status_get_status_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./get-status/get-status.js */ "./node_modules/@mantine/form/esm/get-status/get-status.js"); -/* harmony import */ var _paths_get_path_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./paths/get-path.js */ "./node_modules/@mantine/form/esm/paths/get-path.js"); -/* harmony import */ var _get_input_on_change_get_input_on_change_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./get-input-on-change/get-input-on-change.js */ "./node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.js"); - - - - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function useForm({ - initialValues = {}, - initialErrors = {}, - initialDirty = {}, - initialTouched = {}, - clearInputErrorOnChange = true, - validateInputOnChange = false, - validateInputOnBlur = false, - transformValues = (values) => values, - validate: rules -} = {}) { - const [touched, setTouched] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialTouched); - const [dirty, setDirty] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialDirty); - const [values, _setValues] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialValues); - const [errors, _setErrors] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((0,_filter_errors_filter_errors_js__WEBPACK_IMPORTED_MODULE_2__.filterErrors)(initialErrors)); - const _dirtyValues = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(initialValues); - const _setDirtyValues = (_values) => { - _dirtyValues.current = _values; - }; - const resetTouched = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => setTouched({}), []); - const resetDirty = (_values) => { - _setDirtyValues(_values || values); - setDirty({}); - }; - const setErrors = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((errs) => _setErrors((current) => (0,_filter_errors_filter_errors_js__WEBPACK_IMPORTED_MODULE_2__.filterErrors)(typeof errs === "function" ? errs(current) : errs)), []); - const clearErrors = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => _setErrors({}), []); - const reset = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => { - _setValues(initialValues); - clearErrors(); - resetDirty(initialValues); - resetTouched(); - }, []); - const setFieldError = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path, error) => setErrors((current) => __spreadProps(__spreadValues({}, current), { [path]: error })), []); - const clearFieldError = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path) => setErrors((current) => { - if (typeof path !== "string") { - return current; - } - const clone = __spreadValues({}, current); - delete clone[path]; - return clone; - }), []); - const clearFieldDirty = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path) => setDirty((current) => { - if (typeof path !== "string") { - return current; - } - const result = (0,_clear_list_state_clear_list_state_js__WEBPACK_IMPORTED_MODULE_3__.clearListState)(path, current); - delete result[path]; - return result; - }), []); - const setFieldValue = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path, value) => { - const shouldValidate = (0,_validate_should_validate_on_change_js__WEBPACK_IMPORTED_MODULE_4__.shouldValidateOnChange)(path, validateInputOnChange); - clearFieldDirty(path); - setTouched((currentTouched) => __spreadProps(__spreadValues({}, currentTouched), { [path]: true })); - _setValues((current) => { - const result = (0,_paths_set_path_js__WEBPACK_IMPORTED_MODULE_5__.setPath)(path, value, current); - if (shouldValidate) { - const validationResults = (0,_validate_validate_field_value_js__WEBPACK_IMPORTED_MODULE_6__.validateFieldValue)(path, rules, result); - validationResults.hasError ? setFieldError(path, validationResults.error) : clearFieldError(path); - } - return result; - }); - !shouldValidate && clearInputErrorOnChange && setFieldError(path, null); - }, []); - const setValues = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((payload) => { - _setValues((currentValues) => { - const valuesPartial = typeof payload === "function" ? payload(currentValues) : payload; - return __spreadValues(__spreadValues({}, currentValues), valuesPartial); - }); - clearInputErrorOnChange && clearErrors(); - }, []); - const reorderListItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path, payload) => { - clearFieldDirty(path); - _setValues((current) => (0,_paths_reorder_path_js__WEBPACK_IMPORTED_MODULE_7__.reorderPath)(path, payload, current)); - }, []); - const removeListItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path, index) => { - clearFieldDirty(path); - _setValues((current) => (0,_paths_remove_path_js__WEBPACK_IMPORTED_MODULE_8__.removePath)(path, index, current)); - _setErrors((errs) => (0,_clear_list_state_clear_list_state_js__WEBPACK_IMPORTED_MODULE_3__.clearListState)(path, errs)); - }, []); - const insertListItem = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path, item, index) => { - clearFieldDirty(path); - _setValues((current) => (0,_paths_insert_path_js__WEBPACK_IMPORTED_MODULE_9__.insertPath)(path, item, index, current)); - }, []); - const validate = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => { - const results = (0,_validate_validate_values_js__WEBPACK_IMPORTED_MODULE_10__.validateValues)(rules, values); - _setErrors(results.errors); - return results; - }, [values, rules]); - const validateField = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path) => { - const results = (0,_validate_validate_field_value_js__WEBPACK_IMPORTED_MODULE_6__.validateFieldValue)(path, rules, values); - results.hasError ? setFieldError(path, results.error) : clearFieldError(path); - return results; - }, [values, rules]); - const getInputProps = (path, { type = "input", withError = type === "input", withFocus = true } = {}) => { - const onChange = (0,_get_input_on_change_get_input_on_change_js__WEBPACK_IMPORTED_MODULE_11__.getInputOnChange)((value) => setFieldValue(path, value)); - const payload = { onChange }; - if (withError) { - payload.error = errors[path]; - } - if (type === "checkbox") { - payload.checked = (0,_paths_get_path_js__WEBPACK_IMPORTED_MODULE_12__.getPath)(path, values); - } else { - payload.value = (0,_paths_get_path_js__WEBPACK_IMPORTED_MODULE_12__.getPath)(path, values); - } - if (withFocus) { - payload.onFocus = () => setTouched((current) => __spreadProps(__spreadValues({}, current), { [path]: true })); - payload.onBlur = () => { - if ((0,_validate_should_validate_on_change_js__WEBPACK_IMPORTED_MODULE_4__.shouldValidateOnChange)(path, validateInputOnBlur)) { - const validationResults = (0,_validate_validate_field_value_js__WEBPACK_IMPORTED_MODULE_6__.validateFieldValue)(path, rules, values); - validationResults.hasError ? setFieldError(path, validationResults.error) : clearFieldError(path); - } - }; - } - return payload; - }; - const onSubmit = (handleSubmit, handleValidationFailure) => (event) => { - event == null ? void 0 : event.preventDefault(); - const results = validate(); - if (results.hasErrors) { - handleValidationFailure == null ? void 0 : handleValidationFailure(results.errors, values, event); - } else { - handleSubmit(transformValues(values), event); - } - }; - const onReset = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event) => { - event.preventDefault(); - reset(); - }, []); - const isDirty = (path) => { - if (path) { - const overridenValue = (0,_paths_get_path_js__WEBPACK_IMPORTED_MODULE_12__.getPath)(path, dirty); - if (typeof overridenValue === "boolean") { - return overridenValue; - } - const sliceOfValues = (0,_paths_get_path_js__WEBPACK_IMPORTED_MODULE_12__.getPath)(path, values); - const sliceOfInitialValues = (0,_paths_get_path_js__WEBPACK_IMPORTED_MODULE_12__.getPath)(path, _dirtyValues.current); - return !fast_deep_equal__WEBPACK_IMPORTED_MODULE_1___default()(sliceOfValues, sliceOfInitialValues); - } - const isOverridden = Object.keys(dirty).length > 0; - if (isOverridden) { - return (0,_get_status_get_status_js__WEBPACK_IMPORTED_MODULE_13__.getStatus)(dirty); - } - return !fast_deep_equal__WEBPACK_IMPORTED_MODULE_1___default()(values, _dirtyValues.current); - }; - const isTouched = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path) => (0,_get_status_get_status_js__WEBPACK_IMPORTED_MODULE_13__.getStatus)(touched, path), [touched]); - const isValid = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((path) => path ? !(0,_validate_validate_field_value_js__WEBPACK_IMPORTED_MODULE_6__.validateFieldValue)(path, rules, values).hasError : !(0,_validate_validate_values_js__WEBPACK_IMPORTED_MODULE_10__.validateValues)(rules, values).hasErrors, [values, rules]); - return { - values, - errors, - setValues, - setErrors, - setFieldValue, - setFieldError, - clearFieldError, - clearErrors, - reset, - validate, - validateField, - reorderListItem, - removeListItem, - insertListItem, - getInputProps, - onSubmit, - onReset, - isDirty, - isTouched, - setTouched, - setDirty, - resetTouched, - resetDirty, - isValid - }; -} - - -//# sourceMappingURL=use-form.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/validate/should-validate-on-change.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/validate/should-validate-on-change.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ shouldValidateOnChange: () => (/* binding */ shouldValidateOnChange) -/* harmony export */ }); -/* harmony import */ var _form_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../form-index.js */ "./node_modules/@mantine/form/esm/form-index.js"); - - -function shouldValidateOnChange(path, validateInputOnChange) { - if (!validateInputOnChange) { - return false; - } - if (typeof validateInputOnChange === "boolean") { - return validateInputOnChange; - } - if (Array.isArray(validateInputOnChange)) { - return validateInputOnChange.includes(path.replace(/[.][0-9]/g, `.${_form_index_js__WEBPACK_IMPORTED_MODULE_0__.FORM_INDEX}`)); - } - return false; -} - - -//# sourceMappingURL=should-validate-on-change.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/validate/validate-field-value.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/validate/validate-field-value.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ validateFieldValue: () => (/* binding */ validateFieldValue) -/* harmony export */ }); -/* harmony import */ var _validate_values_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate-values.js */ "./node_modules/@mantine/form/esm/validate/validate-values.js"); - - -function validateFieldValue(path, rules, values) { - if (typeof path !== "string") { - return { hasError: false, error: null }; - } - const results = (0,_validate_values_js__WEBPACK_IMPORTED_MODULE_0__.validateValues)(rules, values); - const pathInError = Object.keys(results.errors).find((errorKey) => path.split(".").every((pathPart, i) => pathPart === errorKey.split(".")[i])); - return { hasError: !!pathInError, error: pathInError ? results.errors[pathInError] : null }; -} - - -//# sourceMappingURL=validate-field-value.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/validate/validate-values.js": -/*!********************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/validate/validate-values.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ validateValues: () => (/* binding */ validateValues) -/* harmony export */ }); -/* harmony import */ var _filter_errors_filter_errors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../filter-errors/filter-errors.js */ "./node_modules/@mantine/form/esm/filter-errors/filter-errors.js"); -/* harmony import */ var _paths_get_path_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../paths/get-path.js */ "./node_modules/@mantine/form/esm/paths/get-path.js"); - - - -function getValidationResults(errors) { - const filteredErrors = (0,_filter_errors_filter_errors_js__WEBPACK_IMPORTED_MODULE_0__.filterErrors)(errors); - return { hasErrors: Object.keys(filteredErrors).length > 0, errors: filteredErrors }; -} -function validateRulesRecord(rules, values, path = "", errors = {}) { - if (typeof rules !== "object" || rules === null) { - return errors; - } - return Object.keys(rules).reduce((acc, ruleKey) => { - const rule = rules[ruleKey]; - const rulePath = `${path === "" ? "" : `${path}.`}${ruleKey}`; - const value = (0,_paths_get_path_js__WEBPACK_IMPORTED_MODULE_1__.getPath)(rulePath, values); - let arrayValidation = false; - if (typeof rule === "function") { - acc[rulePath] = rule(value, values, rulePath); - } - if (typeof rule === "object" && Array.isArray(value)) { - arrayValidation = true; - value.forEach((_item, index) => validateRulesRecord(rule, values, `${rulePath}.${index}`, acc)); - } - if (typeof rule === "object" && typeof value === "object" && value !== null) { - if (!arrayValidation) { - validateRulesRecord(rule, values, rulePath, acc); - } - } - return acc; - }, errors); -} -function validateValues(validate, values) { - if (typeof validate === "function") { - return getValidationResults(validate(values)); - } - return getValidationResults(validateRulesRecord(validate, values)); -} - - -//# sourceMappingURL=validate-values.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/validators/has-length/has-length.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/validators/has-length/has-length.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ hasLength: () => (/* binding */ hasLength) -/* harmony export */ }); -function isLengthValid(payload, value) { - if (typeof payload === "number") { - return value.length === payload; - } - const { max, min } = payload; - let valid = true; - if (typeof max === "number" && value.length > max) { - valid = false; - } - if (typeof min === "number" && value.length < min) { - valid = false; - } - return valid; -} -function hasLength(payload, error) { - const _error = error || true; - return (value) => { - if (typeof value === "string") { - return isLengthValid(payload, value.trim()) ? null : _error; - } - if (typeof value === "object" && value !== null && "length" in value) { - return isLengthValid(payload, value) ? null : _error; - } - return _error; - }; -} - - -//# sourceMappingURL=has-length.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/form/esm/validators/is-not-empty/is-not-empty.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@mantine/form/esm/validators/is-not-empty/is-not-empty.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isNotEmpty: () => (/* binding */ isNotEmpty) -/* harmony export */ }); -function isNotEmpty(error) { - const _error = error || true; - return (value) => { - if (typeof value === "string") { - return value.trim().length > 0 ? null : _error; - } - if (Array.isArray(value)) { - return value.length > 0 ? null : _error; - } - if (value === null || value === void 0) { - return _error; - } - if (value === false) { - return _error; - } - return null; - }; -} - - -//# sourceMappingURL=is-not-empty.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-click-outside/use-click-outside.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-click-outside/use-click-outside.js ***! - \********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useClickOutside: () => (/* binding */ useClickOutside) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const DEFAULT_EVENTS = ["mousedown", "touchstart"]; -function useClickOutside(handler, events, nodes) { - const ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - const listener = (event) => { - const { target } = event != null ? event : {}; - if (Array.isArray(nodes)) { - const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML"; - const shouldTrigger = nodes.every((node) => !!node && !event.composedPath().includes(node)); - shouldTrigger && !shouldIgnore && handler(); - } else if (ref.current && !ref.current.contains(target)) { - handler(); - } - }; - (events || DEFAULT_EVENTS).forEach((fn) => document.addEventListener(fn, listener)); - return () => { - (events || DEFAULT_EVENTS).forEach((fn) => document.removeEventListener(fn, listener)); - }; - }, [ref, handler, nodes]); - return ref; -} - - -//# sourceMappingURL=use-click-outside.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-debounced-state/use-debounced-state.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-debounced-state/use-debounced-state.js ***! - \************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useDebouncedState: () => (/* binding */ useDebouncedState) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useDebouncedState(defaultValue, wait, options = { leading: false }) { - const [value, setValue] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultValue); - const timeoutRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const leadingRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(true); - const clearTimeout = () => window.clearTimeout(timeoutRef.current); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => clearTimeout, []); - const debouncedSetValue = (newValue) => { - clearTimeout(); - if (leadingRef.current && options.leading) { - setValue(newValue); - } else { - timeoutRef.current = window.setTimeout(() => { - leadingRef.current = true; - setValue(newValue); - }, wait); - } - leadingRef.current = false; - }; - return [value, debouncedSetValue]; -} - - -//# sourceMappingURL=use-debounced-state.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useDidUpdate: () => (/* binding */ useDidUpdate) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useDidUpdate(fn, dependencies) { - const mounted = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => () => { - mounted.current = false; - }, []); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (mounted.current) { - return fn(); - } - mounted.current = true; - return void 0; - }, dependencies); -} - - -//# sourceMappingURL=use-did-update.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-disclosure/use-disclosure.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-disclosure/use-disclosure.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useDisclosure: () => (/* binding */ useDisclosure) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useDisclosure(initialState = false, callbacks) { - const { onOpen, onClose } = callbacks || {}; - const [opened, setOpened] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialState); - const open = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => { - setOpened((isOpened) => { - if (!isOpened) { - onOpen == null ? void 0 : onOpen(); - return true; - } - return isOpened; - }); - }, [onOpen]); - const close = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => { - setOpened((isOpened) => { - if (isOpened) { - onClose == null ? void 0 : onClose(); - return false; - } - return isOpened; - }); - }, [onClose]); - const toggle = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(() => { - opened ? close() : open(); - }, [close, open, opened]); - return [opened, { open, close, toggle }]; -} - - -//# sourceMappingURL=use-disclosure.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-focus-return/use-focus-return.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-focus-return/use-focus-return.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useFocusReturn: () => (/* binding */ useFocusReturn) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _use_did_update_use_did_update_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../use-did-update/use-did-update.js */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); - - - -function useFocusReturn({ opened, shouldReturnFocus = true }) { - const lastActiveElement = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const returnFocus = () => { - var _a; - if (lastActiveElement.current && "focus" in lastActiveElement.current && typeof lastActiveElement.current.focus === "function") { - (_a = lastActiveElement.current) == null ? void 0 : _a.focus({ preventScroll: true }); - } - }; - (0,_use_did_update_use_did_update_js__WEBPACK_IMPORTED_MODULE_1__.useDidUpdate)(() => { - let timeout = -1; - const clearFocusTimeout = (event) => { - if (event.key === "Tab") { - window.clearTimeout(timeout); - } - }; - document.addEventListener("keydown", clearFocusTimeout); - if (opened) { - lastActiveElement.current = document.activeElement; - } else if (shouldReturnFocus) { - timeout = window.setTimeout(returnFocus, 10); - } - return () => { - window.clearTimeout(timeout); - document.removeEventListener("keydown", clearFocusTimeout); - }; - }, [opened, shouldReturnFocus]); - return returnFocus; -} - - -//# sourceMappingURL=use-focus-return.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-focus-trap/create-aria-hider.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-focus-trap/create-aria-hider.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createAriaHider: () => (/* binding */ createAriaHider) -/* harmony export */ }); -function createAriaHider(containerNode, selector = "body > :not(script)") { - const rootNodes = Array.from(document.querySelectorAll(selector)).map((node) => { - var _a; - if (((_a = node == null ? void 0 : node.shadowRoot) == null ? void 0 : _a.contains(containerNode)) || node.contains(containerNode)) { - return void 0; - } - const ariaHidden = node.getAttribute("aria-hidden"); - if (ariaHidden === null || ariaHidden === "false") { - node.setAttribute("aria-hidden", "true"); - } - return { node, ariaHidden }; - }); - return () => { - rootNodes.forEach((item) => { - if (!item) { - return; - } - if (item.ariaHidden === null) { - item.node.removeAttribute("aria-hidden"); - } else { - item.node.setAttribute("aria-hidden", item.ariaHidden); - } - }); - }; -} - - -//# sourceMappingURL=create-aria-hider.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-focus-trap/scope-tab.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-focus-trap/scope-tab.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ scopeTab: () => (/* binding */ scopeTab) -/* harmony export */ }); -/* harmony import */ var _tabbable_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./tabbable.js */ "./node_modules/@mantine/hooks/esm/use-focus-trap/tabbable.js"); - - -function scopeTab(node, event) { - const tabbable = (0,_tabbable_js__WEBPACK_IMPORTED_MODULE_0__.findTabbableDescendants)(node); - if (!tabbable.length) { - event.preventDefault(); - return; - } - const finalTabbable = tabbable[event.shiftKey ? 0 : tabbable.length - 1]; - const root = node.getRootNode(); - const leavingFinalTabbable = finalTabbable === root.activeElement || node === root.activeElement; - if (!leavingFinalTabbable) { - return; - } - event.preventDefault(); - const target = tabbable[event.shiftKey ? tabbable.length - 1 : 0]; - if (target) { - target.focus(); - } -} - - -//# sourceMappingURL=scope-tab.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-focus-trap/tabbable.js": -/*!********************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-focus-trap/tabbable.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ FOCUS_SELECTOR: () => (/* binding */ FOCUS_SELECTOR), -/* harmony export */ findTabbableDescendants: () => (/* binding */ findTabbableDescendants), -/* harmony export */ focusable: () => (/* binding */ focusable), -/* harmony export */ tabbable: () => (/* binding */ tabbable) -/* harmony export */ }); -const TABBABLE_NODES = /input|select|textarea|button|object/; -const FOCUS_SELECTOR = "a, input, select, textarea, button, object, [tabindex]"; -function hidden(element) { - if (false) {} - return element.style.display === "none"; -} -function visible(element) { - const isHidden = element.getAttribute("aria-hidden") || element.getAttribute("hidden") || element.getAttribute("type") === "hidden"; - if (isHidden) { - return false; - } - let parentElement = element; - while (parentElement) { - if (parentElement === document.body || parentElement.nodeType === 11) { - break; - } - if (hidden(parentElement)) { - return false; - } - parentElement = parentElement.parentNode; - } - return true; -} -function getElementTabIndex(element) { - let tabIndex = element.getAttribute("tabindex"); - if (tabIndex === null) { - tabIndex = void 0; - } - return parseInt(tabIndex, 10); -} -function focusable(element) { - const nodeName = element.nodeName.toLowerCase(); - const isTabIndexNotNaN = !Number.isNaN(getElementTabIndex(element)); - const res = TABBABLE_NODES.test(nodeName) && !element.disabled || (element instanceof HTMLAnchorElement ? element.href || isTabIndexNotNaN : isTabIndexNotNaN); - return res && visible(element); -} -function tabbable(element) { - const tabIndex = getElementTabIndex(element); - const isTabIndexNaN = Number.isNaN(tabIndex); - return (isTabIndexNaN || tabIndex >= 0) && focusable(element); -} -function findTabbableDescendants(element) { - return Array.from(element.querySelectorAll(FOCUS_SELECTOR)).filter(tabbable); -} - - -//# sourceMappingURL=tabbable.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-focus-trap/use-focus-trap.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-focus-trap/use-focus-trap.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useFocusTrap: () => (/* binding */ useFocusTrap) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _tabbable_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tabbable.js */ "./node_modules/@mantine/hooks/esm/use-focus-trap/tabbable.js"); -/* harmony import */ var _scope_tab_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./scope-tab.js */ "./node_modules/@mantine/hooks/esm/use-focus-trap/scope-tab.js"); -/* harmony import */ var _create_aria_hider_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-aria-hider.js */ "./node_modules/@mantine/hooks/esm/use-focus-trap/create-aria-hider.js"); - - - - - -function useFocusTrap(active = true) { - const ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const restoreAria = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const setRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((node) => { - if (!active) { - return; - } - if (node === null) { - if (restoreAria.current) { - restoreAria.current(); - restoreAria.current = null; - } - return; - } - restoreAria.current = (0,_create_aria_hider_js__WEBPACK_IMPORTED_MODULE_1__.createAriaHider)(node); - if (ref.current === node) { - return; - } - if (node) { - const processNode = () => { - let focusElement = node.querySelector("[data-autofocus]"); - if (!focusElement) { - const children = Array.from(node.querySelectorAll(_tabbable_js__WEBPACK_IMPORTED_MODULE_2__.FOCUS_SELECTOR)); - focusElement = children.find(_tabbable_js__WEBPACK_IMPORTED_MODULE_2__.tabbable) || children.find(_tabbable_js__WEBPACK_IMPORTED_MODULE_2__.focusable) || null; - if (!focusElement && (0,_tabbable_js__WEBPACK_IMPORTED_MODULE_2__.focusable)(node)) - focusElement = node; - } - if (focusElement) { - focusElement.focus({ preventScroll: true }); - } else if (true) { - console.warn("[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node", node); - } - }; - setTimeout(() => { - if (node.getRootNode()) { - processNode(); - } else if (true) { - console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom", node); - } - }); - ref.current = node; - } else { - ref.current = null; - } - }, [active]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (!active) { - return void 0; - } - const handleKeyDown = (event) => { - if (event.key === "Tab" && ref.current) { - (0,_scope_tab_js__WEBPACK_IMPORTED_MODULE_3__.scopeTab)(ref.current, event); - } - }; - document.addEventListener("keydown", handleKeyDown); - return () => { - document.removeEventListener("keydown", handleKeyDown); - if (restoreAria.current) { - restoreAria.current(); - } - }; - }, [active]); - return setRef; -} - - -//# sourceMappingURL=use-focus-trap.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-force-update/use-force-update.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-force-update/use-force-update.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useForceUpdate: () => (/* binding */ useForceUpdate) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const reducer = (value) => (value + 1) % 1e6; -function useForceUpdate() { - const [, update] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useReducer)(reducer, 0); - return update; -} - - -//# sourceMappingURL=use-force-update.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-id/use-id.js": -/*!**********************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-id/use-id.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useId: () => (/* binding */ useId) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _use_isomorphic_effect_use_isomorphic_effect_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../use-isomorphic-effect/use-isomorphic-effect.js */ "./node_modules/@mantine/hooks/esm/use-isomorphic-effect/use-isomorphic-effect.js"); - - - -const randomId = () => `mantine-${Math.random().toString(36).slice(2, 11)}`; -const useReactId = (react__WEBPACK_IMPORTED_MODULE_0___default())["useId".toString()] || (() => void 0); -function useClientId() { - const [uuid, setUuid] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(""); - (0,_use_isomorphic_effect_use_isomorphic_effect_js__WEBPACK_IMPORTED_MODULE_1__.useIsomorphicEffect)(() => { - setUuid(randomId()); - }, []); - return uuid; -} -function getReactId() { - const id = useReactId(); - return id ? `mantine-${id.replace(/:/g, "")}` : ""; -} -function useId(staticId) { - return typeof staticId === "string" ? staticId : getReactId() || useClientId(); -} - - -//# sourceMappingURL=use-id.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-isomorphic-effect/use-isomorphic-effect.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-isomorphic-effect/use-isomorphic-effect.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useIsomorphicEffect: () => (/* binding */ useIsomorphicEffect) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const useIsomorphicEffect = typeof document !== "undefined" ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; - - -//# sourceMappingURL=use-isomorphic-effect.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-media-query/use-media-query.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-media-query/use-media-query.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useMediaQuery: () => (/* binding */ useMediaQuery) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function attachMediaListener(query, callback) { - try { - query.addEventListener("change", callback); - return () => query.removeEventListener("change", callback); - } catch (e) { - query.addListener(callback); - return () => query.removeListener(callback); - } -} -function getInitialValue(query, initialValue) { - if (typeof initialValue === "boolean") { - return initialValue; - } - if (typeof window !== "undefined" && "matchMedia" in window) { - return window.matchMedia(query).matches; - } - return false; -} -function useMediaQuery(query, initialValue, { getInitialValueInEffect } = { - getInitialValueInEffect: true -}) { - const [matches, setMatches] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(getInitialValueInEffect ? initialValue : getInitialValue(query, initialValue)); - const queryRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if ("matchMedia" in window) { - queryRef.current = window.matchMedia(query); - setMatches(queryRef.current.matches); - return attachMediaListener(queryRef.current, (event) => setMatches(event.matches)); - } - return void 0; - }, [query]); - return matches; -} - - -//# sourceMappingURL=use-media-query.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-merged-ref/use-merged-ref.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ mergeRefs: () => (/* binding */ mergeRefs), -/* harmony export */ useMergedRef: () => (/* binding */ useMergedRef) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _utils_assign_ref_assign_ref_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/assign-ref/assign-ref.js */ "./node_modules/@mantine/hooks/esm/utils/assign-ref/assign-ref.js"); - - - -function mergeRefs(...refs) { - return (node) => { - refs.forEach((ref) => (0,_utils_assign_ref_assign_ref_js__WEBPACK_IMPORTED_MODULE_1__.assignRef)(ref, node)); - }; -} -function useMergedRef(...refs) { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(mergeRefs(...refs), refs); -} - - -//# sourceMappingURL=use-merged-ref.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-pagination/use-pagination.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-pagination/use-pagination.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DOTS: () => (/* binding */ DOTS), -/* harmony export */ usePagination: () => (/* binding */ usePagination) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _use_uncontrolled_use_uncontrolled_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../use-uncontrolled/use-uncontrolled.js */ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js"); -/* harmony import */ var _utils_range_range_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/range/range.js */ "./node_modules/@mantine/hooks/esm/utils/range/range.js"); - - - - -const DOTS = "dots"; -function usePagination({ - total, - siblings = 1, - boundaries = 1, - page, - initialPage = 1, - onChange -}) { - const _total = Math.max(Math.trunc(total), 0); - const [activePage, setActivePage] = (0,_use_uncontrolled_use_uncontrolled_js__WEBPACK_IMPORTED_MODULE_1__.useUncontrolled)({ - value: page, - onChange, - defaultValue: initialPage, - finalValue: initialPage - }); - const setPage = (pageNumber) => { - if (pageNumber <= 0) { - setActivePage(1); - } else if (pageNumber > _total) { - setActivePage(_total); - } else { - setActivePage(pageNumber); - } - }; - const next = () => setPage(activePage + 1); - const previous = () => setPage(activePage - 1); - const first = () => setPage(1); - const last = () => setPage(_total); - const paginationRange = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => { - const totalPageNumbers = siblings * 2 + 3 + boundaries * 2; - if (totalPageNumbers >= _total) { - return (0,_utils_range_range_js__WEBPACK_IMPORTED_MODULE_2__.range)(1, _total); - } - const leftSiblingIndex = Math.max(activePage - siblings, boundaries); - const rightSiblingIndex = Math.min(activePage + siblings, _total - boundaries); - const shouldShowLeftDots = leftSiblingIndex > boundaries + 2; - const shouldShowRightDots = rightSiblingIndex < _total - (boundaries + 1); - if (!shouldShowLeftDots && shouldShowRightDots) { - const leftItemCount = siblings * 2 + boundaries + 2; - return [...(0,_utils_range_range_js__WEBPACK_IMPORTED_MODULE_2__.range)(1, leftItemCount), DOTS, ...(0,_utils_range_range_js__WEBPACK_IMPORTED_MODULE_2__.range)(_total - (boundaries - 1), _total)]; - } - if (shouldShowLeftDots && !shouldShowRightDots) { - const rightItemCount = boundaries + 1 + 2 * siblings; - return [...(0,_utils_range_range_js__WEBPACK_IMPORTED_MODULE_2__.range)(1, boundaries), DOTS, ...(0,_utils_range_range_js__WEBPACK_IMPORTED_MODULE_2__.range)(_total - rightItemCount, _total)]; - } - return [ - ...(0,_utils_range_range_js__WEBPACK_IMPORTED_MODULE_2__.range)(1, boundaries), - DOTS, - ...(0,_utils_range_range_js__WEBPACK_IMPORTED_MODULE_2__.range)(leftSiblingIndex, rightSiblingIndex), - DOTS, - ...(0,_utils_range_range_js__WEBPACK_IMPORTED_MODULE_2__.range)(_total - boundaries + 1, _total) - ]; - }, [_total, siblings, activePage]); - return { - range: paginationRange, - active: activePage, - setPage, - next, - previous, - first, - last - }; -} - - -//# sourceMappingURL=use-pagination.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-queue/use-queue.js": -/*!****************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-queue/use-queue.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useQueue: () => (/* binding */ useQueue) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useQueue({ initialValues = [], limit }) { - const [{ state, queue }, setState] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({ - state: initialValues.slice(0, limit), - queue: initialValues.slice(limit) - }); - const add = (...items) => setState((current) => { - const results = [...current.state, ...current.queue, ...items]; - return { - state: results.slice(0, limit), - queue: results.slice(limit) - }; - }); - const update = (fn) => setState((current) => { - const results = fn([...current.state, ...current.queue]); - return { - state: results.slice(0, limit), - queue: results.slice(limit) - }; - }); - const cleanQueue = () => setState((current) => ({ state: current.state, queue: [] })); - return { - state, - queue, - add, - update, - cleanQueue - }; -} - - -//# sourceMappingURL=use-queue.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-reduced-motion/use-reduced-motion.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-reduced-motion/use-reduced-motion.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useReducedMotion: () => (/* binding */ useReducedMotion) -/* harmony export */ }); -/* harmony import */ var _use_media_query_use_media_query_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../use-media-query/use-media-query.js */ "./node_modules/@mantine/hooks/esm/use-media-query/use-media-query.js"); - - -function useReducedMotion(initialValue, options) { - return (0,_use_media_query_use_media_query_js__WEBPACK_IMPORTED_MODULE_0__.useMediaQuery)("(prefers-reduced-motion: reduce)", initialValue, options); -} - - -//# sourceMappingURL=use-reduced-motion.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-resize-observer/use-resize-observer.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-resize-observer/use-resize-observer.js ***! - \************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useElementSize: () => (/* binding */ useElementSize), -/* harmony export */ useResizeObserver: () => (/* binding */ useResizeObserver) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const defaultState = { - x: 0, - y: 0, - width: 0, - height: 0, - top: 0, - left: 0, - bottom: 0, - right: 0 -}; -function useResizeObserver() { - const frameID = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0); - const ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const [rect, setRect] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultState); - const observer = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(() => typeof window !== "undefined" ? new ResizeObserver((entries) => { - const entry = entries[0]; - if (entry) { - cancelAnimationFrame(frameID.current); - frameID.current = requestAnimationFrame(() => { - if (ref.current) { - setRect(entry.contentRect); - } - }); - } - }) : null, []); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (ref.current) { - observer.observe(ref.current); - } - return () => { - observer.disconnect(); - if (frameID.current) { - cancelAnimationFrame(frameID.current); - } - }; - }, [ref.current]); - return [ref, rect]; -} -function useElementSize() { - const [ref, { width, height }] = useResizeObserver(); - return { ref, width, height }; -} - - -//# sourceMappingURL=use-resize-observer.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/use-scroll-into-view.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-into-view/use-scroll-into-view.js ***! - \**************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useScrollIntoView: () => (/* binding */ useScrollIntoView) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _use_reduced_motion_use_reduced_motion_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../use-reduced-motion/use-reduced-motion.js */ "./node_modules/@mantine/hooks/esm/use-reduced-motion/use-reduced-motion.js"); -/* harmony import */ var _use_window_event_use_window_event_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../use-window-event/use-window-event.js */ "./node_modules/@mantine/hooks/esm/use-window-event/use-window-event.js"); -/* harmony import */ var _utils_ease_in_out_quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/ease-in-out-quad.js */ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/ease-in-out-quad.js"); -/* harmony import */ var _utils_get_relative_position_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/get-relative-position.js */ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/get-relative-position.js"); -/* harmony import */ var _utils_get_scroll_start_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/get-scroll-start.js */ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/get-scroll-start.js"); -/* harmony import */ var _utils_set_scroll_param_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/set-scroll-param.js */ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/set-scroll-param.js"); - - - - - - - - -function useScrollIntoView({ - duration = 1250, - axis = "y", - onScrollFinish, - easing = _utils_ease_in_out_quad_js__WEBPACK_IMPORTED_MODULE_1__.easeInOutQuad, - offset = 0, - cancelable = true, - isList = false -} = {}) { - const frameID = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0); - const startTime = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0); - const shouldStop = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(false); - const scrollableRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const targetRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const reducedMotion = (0,_use_reduced_motion_use_reduced_motion_js__WEBPACK_IMPORTED_MODULE_2__.useReducedMotion)(); - const cancel = () => { - if (frameID.current) { - cancelAnimationFrame(frameID.current); - } - }; - const scrollIntoView = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(({ alignment = "start" } = {}) => { - var _a; - shouldStop.current = false; - if (frameID.current) { - cancel(); - } - const start = (_a = (0,_utils_get_scroll_start_js__WEBPACK_IMPORTED_MODULE_3__.getScrollStart)({ parent: scrollableRef.current, axis })) != null ? _a : 0; - const change = (0,_utils_get_relative_position_js__WEBPACK_IMPORTED_MODULE_4__.getRelativePosition)({ - parent: scrollableRef.current, - target: targetRef.current, - axis, - alignment, - offset, - isList - }) - (scrollableRef.current ? 0 : start); - function animateScroll() { - if (startTime.current === 0) { - startTime.current = performance.now(); - } - const now = performance.now(); - const elapsed = now - startTime.current; - const t = reducedMotion || duration === 0 ? 1 : elapsed / duration; - const distance = start + change * easing(t); - (0,_utils_set_scroll_param_js__WEBPACK_IMPORTED_MODULE_5__.setScrollParam)({ - parent: scrollableRef.current, - axis, - distance - }); - if (!shouldStop.current && t < 1) { - frameID.current = requestAnimationFrame(animateScroll); - } else { - typeof onScrollFinish === "function" && onScrollFinish(); - startTime.current = 0; - frameID.current = 0; - cancel(); - } - } - animateScroll(); - }, [axis, duration, easing, isList, offset, onScrollFinish, reducedMotion]); - const handleStop = () => { - if (cancelable) { - shouldStop.current = true; - } - }; - (0,_use_window_event_use_window_event_js__WEBPACK_IMPORTED_MODULE_6__.useWindowEvent)("wheel", handleStop, { - passive: true - }); - (0,_use_window_event_use_window_event_js__WEBPACK_IMPORTED_MODULE_6__.useWindowEvent)("touchmove", handleStop, { - passive: true - }); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => cancel, []); - return { - scrollableRef, - targetRef, - scrollIntoView, - cancel - }; -} - - -//# sourceMappingURL=use-scroll-into-view.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/ease-in-out-quad.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/ease-in-out-quad.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ easeInOutQuad: () => (/* binding */ easeInOutQuad) -/* harmony export */ }); -const easeInOutQuad = (t) => t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t; - - -//# sourceMappingURL=ease-in-out-quad.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/get-relative-position.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/get-relative-position.js ***! - \*********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getRelativePosition: () => (/* binding */ getRelativePosition) -/* harmony export */ }); -const getRelativePosition = ({ - axis, - target, - parent, - alignment, - offset, - isList -}) => { - if (!target || !parent && typeof document === "undefined") { - return 0; - } - const isCustomParent = !!parent; - const parentElement = parent || document.body; - const parentPosition = parentElement.getBoundingClientRect(); - const targetPosition = target.getBoundingClientRect(); - const getDiff = (property) => targetPosition[property] - parentPosition[property]; - if (axis === "y") { - const diff = getDiff("top"); - if (diff === 0) - return 0; - if (alignment === "start") { - const distance = diff - offset; - const shouldScroll = distance <= targetPosition.height * (isList ? 0 : 1) || !isList; - return shouldScroll ? distance : 0; - } - const parentHeight = isCustomParent ? parentPosition.height : window.innerHeight; - if (alignment === "end") { - const distance = diff + offset - parentHeight + targetPosition.height; - const shouldScroll = distance >= -targetPosition.height * (isList ? 0 : 1) || !isList; - return shouldScroll ? distance : 0; - } - if (alignment === "center") { - return diff - parentHeight / 2 + targetPosition.height / 2; - } - return 0; - } - if (axis === "x") { - const diff = getDiff("left"); - if (diff === 0) - return 0; - if (alignment === "start") { - const distance = diff - offset; - const shouldScroll = distance <= targetPosition.width || !isList; - return shouldScroll ? distance : 0; - } - const parentWidth = isCustomParent ? parentPosition.width : window.innerWidth; - if (alignment === "end") { - const distance = diff + offset - parentWidth + targetPosition.width; - const shouldScroll = distance >= -targetPosition.width || !isList; - return shouldScroll ? distance : 0; - } - if (alignment === "center") { - return diff - parentWidth / 2 + targetPosition.width / 2; - } - return 0; - } - return 0; -}; - - -//# sourceMappingURL=get-relative-position.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/get-scroll-start.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/get-scroll-start.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getScrollStart: () => (/* binding */ getScrollStart) -/* harmony export */ }); -const getScrollStart = ({ axis, parent }) => { - if (!parent && typeof document === "undefined") { - return 0; - } - const method = axis === "y" ? "scrollTop" : "scrollLeft"; - if (parent) { - return parent[method]; - } - const { body, documentElement } = document; - return body[method] + documentElement[method]; -}; - - -//# sourceMappingURL=get-scroll-start.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/set-scroll-param.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/set-scroll-param.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ setScrollParam: () => (/* binding */ setScrollParam) -/* harmony export */ }); -const setScrollParam = ({ axis, parent, distance }) => { - if (!parent && typeof document === "undefined") { - return; - } - const method = axis === "y" ? "scrollTop" : "scrollLeft"; - if (parent) { - parent[method] = distance; - } else { - const { body, documentElement } = document; - body[method] = distance; - documentElement[method] = distance; - } -}; - - -//# sourceMappingURL=set-scroll-param.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-lock/use-scroll-lock.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-lock/use-scroll-lock.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useScrollLock: () => (/* binding */ useScrollLock) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _utils_get_lock_styles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/get-lock-styles.js */ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/get-lock-styles.js"); -/* harmony import */ var _utils_inject_style_tag_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/inject-style-tag.js */ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/inject-style-tag.js"); -/* harmony import */ var _utils_insert_style_tag_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/insert-style-tag.js */ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/insert-style-tag.js"); -/* harmony import */ var _utils_make_style_tag_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/make-style-tag.js */ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/make-style-tag.js"); - - - - - - -function useScrollLock(lock, options = { - disableBodyPadding: false -}) { - const [scrollLocked, setScrollLocked] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(lock || false); - const scrollTop = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0); - const { disableBodyPadding } = options; - const stylesheet = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const lockScroll = () => { - scrollTop.current = window.scrollY; - const styles = (0,_utils_get_lock_styles_js__WEBPACK_IMPORTED_MODULE_1__.getLockStyles)({ disableBodyPadding }); - const sheet = (0,_utils_make_style_tag_js__WEBPACK_IMPORTED_MODULE_2__.makeStyleTag)(); - (0,_utils_inject_style_tag_js__WEBPACK_IMPORTED_MODULE_3__.injectStyles)(sheet, styles); - (0,_utils_insert_style_tag_js__WEBPACK_IMPORTED_MODULE_4__.insertStyleTag)(sheet); - stylesheet.current = sheet; - }; - const unlockScroll = () => { - if (!(stylesheet == null ? void 0 : stylesheet.current)) - return; - stylesheet.current.parentNode.removeChild(stylesheet.current); - stylesheet.current = null; - }; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (scrollLocked) { - lockScroll(); - } else { - unlockScroll(); - } - return unlockScroll; - }, [scrollLocked]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (lock !== void 0) { - setScrollLocked(lock); - } - }, [lock]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (lock === void 0 && typeof window !== "undefined") { - window.document.body.style.overflow === "hidden" && setScrollLocked(true); - } - }, [setScrollLocked]); - return [scrollLocked, setScrollLocked]; -} - - -//# sourceMappingURL=use-scroll-lock.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/get-lock-styles.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/get-lock-styles.js ***! - \**********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getLockStyles: () => (/* binding */ getLockStyles) -/* harmony export */ }); -/* harmony import */ var _get_scroll_width_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-scroll-width.js */ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/get-scroll-width.js"); - - -const getLockStyles = ({ disableBodyPadding }) => { - const scrollWidth = disableBodyPadding ? null : (0,_get_scroll_width_js__WEBPACK_IMPORTED_MODULE_0__.getScrollWidth)(); - const styles = `body { - --removed-scroll-width: ${scrollWidth}px; - touch-action: none; - overflow: hidden !important; - position: relative !important; - ${scrollWidth ? "padding-right: var(--removed-scroll-width) !important;" : ""} - `; - return styles; -}; - - -//# sourceMappingURL=get-lock-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/get-scroll-width.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/get-scroll-width.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getScrollWidth: () => (/* binding */ getScrollWidth) -/* harmony export */ }); -function getScrollWidth() { - if (typeof window === "undefined" || typeof document === "undefined") - return 0; - const paddingRight = parseInt(window.getComputedStyle(document.body).paddingRight, 10); - const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth; - return paddingRight + scrollbarWidth; -} - - -//# sourceMappingURL=get-scroll-width.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/inject-style-tag.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/inject-style-tag.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ injectStyles: () => (/* binding */ injectStyles) -/* harmony export */ }); -function injectStyles(tag, css) { - if (tag.styleSheet) { - tag.styleSheet.cssText = css; - } else { - tag.appendChild(document.createTextNode(css)); - } -} - - -//# sourceMappingURL=inject-style-tag.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/insert-style-tag.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/insert-style-tag.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ insertStyleTag: () => (/* binding */ insertStyleTag) -/* harmony export */ }); -function insertStyleTag(tag) { - const head = document.head || document.getElementsByTagName("head")[0]; - head.appendChild(tag); -} - - -//# sourceMappingURL=insert-style-tag.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/make-style-tag.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-scroll-lock/utils/make-style-tag.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ makeStyleTag: () => (/* binding */ makeStyleTag) -/* harmony export */ }); -function makeStyleTag() { - const tag = document.createElement("style"); - tag.type = "text/css"; - tag.setAttribute("mantine-scroll-lock", ""); - return tag; -} - - -//# sourceMappingURL=make-style-tag.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-timeout/use-timeout.js": -/*!********************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-timeout/use-timeout.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useTimeout: () => (/* binding */ useTimeout) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useTimeout(callback, delay, options = { autoInvoke: false }) { - const timeoutRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null); - const start = (...callbackParams) => { - if (!timeoutRef.current) { - timeoutRef.current = window.setTimeout(() => { - callback(callbackParams); - timeoutRef.current = null; - }, delay); - } - }; - const clear = () => { - if (timeoutRef.current) { - window.clearTimeout(timeoutRef.current); - timeoutRef.current = null; - } - }; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (options.autoInvoke) { - start(); - } - return clear; - }, [delay]); - return { start, clear }; -} - - -//# sourceMappingURL=use-timeout.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-uncontrolled/use-uncontrolled.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useUncontrolled: () => (/* binding */ useUncontrolled) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useUncontrolled({ - value, - defaultValue, - finalValue, - onChange = () => { - } -}) { - const [uncontrolledValue, setUncontrolledValue] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(defaultValue !== void 0 ? defaultValue : finalValue); - const handleUncontrolledChange = (val) => { - setUncontrolledValue(val); - onChange == null ? void 0 : onChange(val); - }; - if (value !== void 0) { - return [value, onChange, true]; - } - return [uncontrolledValue, handleUncontrolledChange, false]; -} - - -//# sourceMappingURL=use-uncontrolled.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/use-window-event/use-window-event.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/use-window-event/use-window-event.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useWindowEvent: () => (/* binding */ useWindowEvent) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useWindowEvent(type, listener, options) { - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - window.addEventListener(type, listener, options); - return () => window.removeEventListener(type, listener, options); - }, [type, listener]); -} - - -//# sourceMappingURL=use-window-event.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/utils/assign-ref/assign-ref.js": -/*!************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/utils/assign-ref/assign-ref.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ assignRef: () => (/* binding */ assignRef) -/* harmony export */ }); -function assignRef(ref, value) { - if (typeof ref === "function") { - ref(value); - } else if (typeof ref === "object" && ref !== null && "current" in ref) { - ref.current = value; - } -} - - -//# sourceMappingURL=assign-ref.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/utils/random-id/random-id.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/utils/random-id/random-id.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ randomId: () => (/* binding */ randomId) -/* harmony export */ }); -function randomId() { - return `mantine-${Math.random().toString(36).slice(2, 11)}`; -} - - -//# sourceMappingURL=random-id.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/utils/range/range.js": -/*!**************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/utils/range/range.js ***! - \**************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ range: () => (/* binding */ range) -/* harmony export */ }); -function range(start, end) { - const length = end - start + 1; - return Array.from({ length }, (_, index) => index + start); -} - - -//# sourceMappingURL=range.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/hooks/esm/utils/upper-first/upper-first.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/hooks/esm/utils/upper-first/upper-first.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ upperFirst: () => (/* binding */ upperFirst) -/* harmony export */ }); -function upperFirst(value) { - return typeof value !== "string" ? "" : value.charAt(0).toUpperCase() + value.slice(1); -} - - -//# sourceMappingURL=upper-first.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/modals/esm/ConfirmModal.js": -/*!**********************************************************!*\ - !*** ./node_modules/@mantine/modals/esm/ConfirmModal.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ConfirmModal: () => (/* binding */ ConfirmModal) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Button/Button.js"); -/* harmony import */ var _use_modals_use_modals_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./use-modals/use-modals.js */ "./node_modules/@mantine/modals/esm/use-modals/use-modals.js"); - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function ConfirmModal({ - id, - cancelProps, - confirmProps, - labels = { cancel: "", confirm: "" }, - closeOnConfirm = true, - closeOnCancel = true, - groupProps, - onCancel, - onConfirm, - children -}) { - const { cancel: cancelLabel, confirm: confirmLabel } = labels; - const ctx = (0,_use_modals_use_modals_js__WEBPACK_IMPORTED_MODULE_1__.useModals)(); - const handleCancel = (event) => { - typeof (cancelProps == null ? void 0 : cancelProps.onClick) === "function" && (cancelProps == null ? void 0 : cancelProps.onClick(event)); - typeof onCancel === "function" && onCancel(); - closeOnCancel && ctx.closeModal(id); - }; - const handleConfirm = (event) => { - typeof (confirmProps == null ? void 0 : confirmProps.onClick) === "function" && (confirmProps == null ? void 0 : confirmProps.onClick(event)); - typeof onConfirm === "function" && onConfirm(); - closeOnConfirm && ctx.closeModal(id); - }; - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, children && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.Box, { - mb: "md" - }, children), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Group, __spreadValues({ - position: "right" - }, groupProps), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Button, __spreadProps(__spreadValues({ - variant: "default" - }, cancelProps), { - onClick: handleCancel - }), (cancelProps == null ? void 0 : cancelProps.children) || cancelLabel), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Button, __spreadProps(__spreadValues({}, confirmProps), { - onClick: handleConfirm - }), (confirmProps == null ? void 0 : confirmProps.children) || confirmLabel))); -} - - -//# sourceMappingURL=ConfirmModal.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/modals/esm/ModalsProvider.js": -/*!************************************************************!*\ - !*** ./node_modules/@mantine/modals/esm/ModalsProvider.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ModalsProvider: () => (/* binding */ ModalsProvider) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Modal/Modal.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/utils/random-id/random-id.js"); -/* harmony import */ var _context_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./context.js */ "./node_modules/@mantine/modals/esm/context.js"); -/* harmony import */ var _ConfirmModal_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ConfirmModal.js */ "./node_modules/@mantine/modals/esm/ConfirmModal.js"); -/* harmony import */ var _reducer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./reducer.js */ "./node_modules/@mantine/modals/esm/reducer.js"); -/* harmony import */ var _events_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./events.js */ "./node_modules/@mantine/modals/esm/events.js"); - - - - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function separateConfirmModalProps(props) { - if (!props) { - return { confirmProps: {}, modalProps: {} }; - } - const _a = props, { - id, - children, - onCancel, - onConfirm, - closeOnConfirm, - closeOnCancel, - cancelProps, - confirmProps, - groupProps, - labels - } = _a, others = __objRest(_a, [ - "id", - "children", - "onCancel", - "onConfirm", - "closeOnConfirm", - "closeOnCancel", - "cancelProps", - "confirmProps", - "groupProps", - "labels" - ]); - return { - confirmProps: { - id, - children, - onCancel, - onConfirm, - closeOnConfirm, - closeOnCancel, - cancelProps, - confirmProps, - groupProps, - labels - }, - modalProps: __spreadValues({ - id - }, others) - }; -} -function ModalsProvider({ children, modalProps, labels, modals }) { - const [state, dispatch] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useReducer)(_reducer_js__WEBPACK_IMPORTED_MODULE_1__.modalsReducer, { modals: [], current: null }); - const stateRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(state); - stateRef.current = state; - const closeAll = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((canceled) => { - stateRef.current.modals.forEach((modal) => { - var _a, _b, _c, _d; - if (modal.type === "confirm" && canceled) { - (_b = (_a = modal.props).onCancel) == null ? void 0 : _b.call(_a); - } - (_d = (_c = modal.props).onClose) == null ? void 0 : _d.call(_c); - }); - dispatch({ type: "CLOSE_ALL" }); - }, [stateRef, dispatch]); - const openModal = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((_a) => { - var _b = _a, { modalId } = _b, props = __objRest(_b, ["modalId"]); - const id = modalId || (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.randomId)(); - dispatch({ - type: "OPEN", - payload: { - id, - type: "content", - props - } - }); - return id; - }, [dispatch]); - const openConfirmModal = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((_c) => { - var _d = _c, { modalId } = _d, props = __objRest(_d, ["modalId"]); - const id = modalId || (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.randomId)(); - dispatch({ - type: "OPEN", - payload: { - id, - type: "confirm", - props - } - }); - return id; - }, [dispatch]); - const openContextModal = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((modal, _e) => { - var _f = _e, { modalId } = _f, props = __objRest(_f, ["modalId"]); - const id = modalId || (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.randomId)(); - dispatch({ - type: "OPEN", - payload: { - id, - type: "context", - props, - ctx: modal - } - }); - return id; - }, [dispatch]); - const closeModal = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((id, canceled) => { - var _a, _b, _c, _d; - const modal = stateRef.current.modals.find((item) => item.id === id); - if (!modal) { - return; - } - if (modal.type === "confirm" && canceled) { - (_b = (_a = modal.props).onCancel) == null ? void 0 : _b.call(_a); - } - (_d = (_c = modal.props).onClose) == null ? void 0 : _d.call(_c); - dispatch({ type: "CLOSE", payload: modal.id }); - }, [stateRef, dispatch]); - (0,_events_js__WEBPACK_IMPORTED_MODULE_3__.useModalsEvents)({ - openModal, - openConfirmModal, - openContextModal: (_g) => { - var _h = _g, { modal } = _h, payload = __objRest(_h, ["modal"]); - return openContextModal(modal, payload); - }, - closeModal, - closeAllModals: closeAll - }); - const ctx = { - modals: state.modals, - openModal, - openConfirmModal, - openContextModal, - closeModal, - closeAll - }; - const getCurrentModal = () => { - const currentModal = stateRef.current.current; - switch (currentModal == null ? void 0 : currentModal.type) { - case "context": { - const _a = currentModal.props, { innerProps } = _a, rest = __objRest(_a, ["innerProps"]); - const ContextModal = modals[currentModal.ctx]; - return { - modalProps: rest, - content: /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ContextModal, { - innerProps, - context: ctx, - id: currentModal.id - }) - }; - } - case "confirm": { - const { modalProps: separatedModalProps, confirmProps: separatedConfirmProps } = separateConfirmModalProps(currentModal.props); - return { - modalProps: separatedModalProps, - content: /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ConfirmModal_js__WEBPACK_IMPORTED_MODULE_4__.ConfirmModal, __spreadProps(__spreadValues({}, separatedConfirmProps), { - id: currentModal.id, - labels: currentModal.props.labels || labels - })) - }; - } - case "content": { - const _b = currentModal.props, { children: currentModalChildren } = _b, rest = __objRest(_b, ["children"]); - return { - modalProps: rest, - content: /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, currentModalChildren) - }; - } - default: { - return { - modalProps: {}, - content: null - }; - } - } - }; - const { modalProps: currentModalProps, content } = getCurrentModal(); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_context_js__WEBPACK_IMPORTED_MODULE_5__.ModalsContext.Provider, { - value: ctx - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Modal, __spreadProps(__spreadValues(__spreadValues({ - zIndex: (0,_mantine_core__WEBPACK_IMPORTED_MODULE_7__.getDefaultZIndex)("modal") + 1 - }, modalProps), currentModalProps), { - opened: state.modals.length > 0, - onClose: () => closeModal(state.current.id) - }), content), children); -} - - -//# sourceMappingURL=ModalsProvider.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/modals/esm/context.js": -/*!*****************************************************!*\ - !*** ./node_modules/@mantine/modals/esm/context.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ModalsContext: () => (/* binding */ ModalsContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const ModalsContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null); -ModalsContext.displayName = "@mantine/modals/ModalsContext"; - - -//# sourceMappingURL=context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/modals/esm/events.js": -/*!****************************************************!*\ - !*** ./node_modules/@mantine/modals/esm/events.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ closeAllModals: () => (/* binding */ closeAllModals), -/* harmony export */ closeModal: () => (/* binding */ closeModal), -/* harmony export */ createEvent: () => (/* binding */ createEvent), -/* harmony export */ openConfirmModal: () => (/* binding */ openConfirmModal), -/* harmony export */ openContextModal: () => (/* binding */ openContextModal), -/* harmony export */ openModal: () => (/* binding */ openModal), -/* harmony export */ useModalsEvents: () => (/* binding */ useModalsEvents) -/* harmony export */ }); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-use-external-events/create-use-external-events.js"); - - -const [useModalsEvents, createEvent] = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_0__.createUseExternalEvents)("mantine-modals"); -const openModal = createEvent("openModal"); -const closeModal = createEvent("closeModal"); -const closeAllModals = createEvent("closeAllModals"); -const openConfirmModal = createEvent("openConfirmModal"); -const openContextModal = createEvent("openContextModal"); - - -//# sourceMappingURL=events.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/modals/esm/reducer.js": -/*!*****************************************************!*\ - !*** ./node_modules/@mantine/modals/esm/reducer.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ modalsReducer: () => (/* binding */ modalsReducer) -/* harmony export */ }); -function modalsReducer(state, action) { - switch (action.type) { - case "OPEN": { - return { - current: action.payload, - modals: [...state.modals, action.payload] - }; - } - case "CLOSE": { - const modals = state.modals.filter((m) => m.id !== action.payload); - return { - current: modals[modals.length - 1] || state.current, - modals - }; - } - case "CLOSE_ALL": { - return { - current: state.current, - modals: [] - }; - } - default: { - return state; - } - } -} - - -//# sourceMappingURL=reducer.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/modals/esm/use-modals/use-modals.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/modals/esm/use-modals/use-modals.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useModals: () => (/* binding */ useModals) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _context_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../context.js */ "./node_modules/@mantine/modals/esm/context.js"); - - - -function useModals() { - const ctx = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_js__WEBPACK_IMPORTED_MODULE_1__.ModalsContext); - if (!ctx) { - throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component"); - } - return ctx; -} - - -//# sourceMappingURL=use-modals.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/notifications/esm/NotificationContainer/NotificationContainer.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/@mantine/notifications/esm/NotificationContainer/NotificationContainer.js ***! - \************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Notification/Notification.js"); -/* harmony import */ var _get_auto_close_get_auto_close_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./get-auto-close/get-auto-close.js */ "./node_modules/@mantine/notifications/esm/NotificationContainer/get-auto-close/get-auto-close.js"); - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -function NotificationContainer(_a) { - var _b = _a, { - notification, - autoClose, - onHide, - innerRef - } = _b, others = __objRest(_b, [ - "notification", - "autoClose", - "onHide", - "innerRef" - ]); - const _a2 = notification, { autoClose: notificationAutoClose, message } = _a2, notificationProps = __objRest(_a2, ["autoClose", "message"]); - const autoCloseTimeout = (0,_get_auto_close_get_auto_close_js__WEBPACK_IMPORTED_MODULE_1__["default"])(autoClose, notificationAutoClose); - const hideTimeout = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - const handleHide = () => { - onHide(notification.id); - window.clearTimeout(hideTimeout.current); - }; - const cancelDelayedHide = () => { - clearTimeout(hideTimeout.current); - }; - const handleDelayedHide = () => { - if (typeof autoCloseTimeout === "number") { - hideTimeout.current = window.setTimeout(handleHide, autoCloseTimeout); - } - }; - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (typeof notification.onOpen === "function") { - notification.onOpen(notification); - } - }, []); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - handleDelayedHide(); - return cancelDelayedHide; - }, [autoClose, notification.autoClose]); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.Notification, __spreadProps(__spreadValues(__spreadValues({}, notificationProps), others), { - onClose: handleHide, - onMouseEnter: cancelDelayedHide, - onMouseLeave: handleDelayedHide, - ref: innerRef - }), message); -} -NotificationContainer.displayName = "@mantine/notifications/NotificationContainer"; - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (NotificationContainer); -//# sourceMappingURL=NotificationContainer.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/notifications/esm/NotificationContainer/get-auto-close/get-auto-close.js": -/*!********************************************************************************************************!*\ - !*** ./node_modules/@mantine/notifications/esm/NotificationContainer/get-auto-close/get-auto-close.js ***! - \********************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -function getAutoClose(autoClose, notificationAutoClose) { - if (typeof notificationAutoClose === "number") { - return notificationAutoClose; - } - if (notificationAutoClose === false || autoClose === false) { - return false; - } - return autoClose; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getAutoClose); -//# sourceMappingURL=get-auto-close.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/notifications/esm/Notifications.context.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@mantine/notifications/esm/Notifications.context.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ NotificationsContext: () => (/* binding */ NotificationsContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -const NotificationsContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null); -NotificationsContext.displayName = "@mantine/notifications/NotificationsContext"; - - -//# sourceMappingURL=Notifications.context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.js ***! - \************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ NotificationsProvider: () => (/* binding */ NotificationsProvider) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-transition-group */ "./node_modules/react-transition-group/esm/Transition.js"); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! react-transition-group */ "./node_modules/react-transition-group/esm/TransitionGroup.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Portal/Portal.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-force-update/use-force-update.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-reduced-motion/use-reduced-motion.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-did-update/use-did-update.js"); -/* harmony import */ var _Notifications_context_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Notifications.context.js */ "./node_modules/@mantine/notifications/esm/Notifications.context.js"); -/* harmony import */ var _events_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../events.js */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _get_position_styles_get_position_styles_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./get-position-styles/get-position-styles.js */ "./node_modules/@mantine/notifications/esm/NotificationsProvider/get-position-styles/get-position-styles.js"); -/* harmony import */ var _get_notification_state_styles_get_notification_state_styles_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./get-notification-state-styles/get-notification-state-styles.js */ "./node_modules/@mantine/notifications/esm/NotificationsProvider/get-notification-state-styles/get-notification-state-styles.js"); -/* harmony import */ var _NotificationContainer_NotificationContainer_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../NotificationContainer/NotificationContainer.js */ "./node_modules/@mantine/notifications/esm/NotificationContainer/NotificationContainer.js"); -/* harmony import */ var _NotificationsProvider_styles_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NotificationsProvider.styles.js */ "./node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.styles.js"); -/* harmony import */ var _use_notifications_state_use_notifications_state_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./use-notifications-state/use-notifications-state.js */ "./node_modules/@mantine/notifications/esm/NotificationsProvider/use-notifications-state/use-notifications-state.js"); - - - - - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -const POSITIONS = [ - "top-left", - "top-right", - "top-center", - "bottom-left", - "bottom-right", - "bottom-center" -]; -function NotificationsProvider(_a) { - var _b = _a, { - className, - position = "bottom-right", - autoClose = 4e3, - transitionDuration = 250, - containerWidth = 440, - notificationMaxHeight = 200, - limit = 5, - zIndex = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_1__.getDefaultZIndex)("overlay"), - style, - children, - target - } = _b, others = __objRest(_b, [ - "className", - "position", - "autoClose", - "transitionDuration", - "containerWidth", - "notificationMaxHeight", - "limit", - "zIndex", - "style", - "children", - "target" - ]); - const forceUpdate = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_2__.useForceUpdate)(); - const refs = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({}); - const previousLength = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(0); - const { - notifications, - queue, - showNotification, - updateNotification, - hideNotification, - clean, - cleanQueue - } = (0,_use_notifications_state_use_notifications_state_js__WEBPACK_IMPORTED_MODULE_3__["default"])({ limit }); - const { classes, cx, theme } = (0,_NotificationsProvider_styles_js__WEBPACK_IMPORTED_MODULE_4__["default"])({ zIndex }); - const shouldReduceMotion = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_5__.useReducedMotion)(); - const reduceMotion = theme.respectReducedMotion ? shouldReduceMotion : false; - const duration = reduceMotion ? 1 : transitionDuration; - const positioning = (POSITIONS.includes(position) ? position : "bottom-right").split("-"); - (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_6__.useDidUpdate)(() => { - if (notifications.length > previousLength.current) { - setTimeout(() => forceUpdate(), 0); - } - previousLength.current = notifications.length; - }, [notifications]); - (0,_events_js__WEBPACK_IMPORTED_MODULE_7__.useNotificationsEvents)({ - show: showNotification, - hide: hideNotification, - update: updateNotification, - clean, - cleanQueue - }); - const items = notifications.map((notification) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_transition_group__WEBPACK_IMPORTED_MODULE_8__["default"], { - key: notification.id, - timeout: duration, - onEnter: () => refs.current[notification.id].offsetHeight, - nodeRef: { current: refs.current[notification.id] } - }, (state) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_NotificationContainer_NotificationContainer_js__WEBPACK_IMPORTED_MODULE_9__["default"], { - innerRef: (node) => { - refs.current[notification.id] = node; - }, - notification, - onHide: hideNotification, - className: classes.notification, - autoClose, - sx: [ - __spreadValues({}, (0,_get_notification_state_styles_get_notification_state_styles_js__WEBPACK_IMPORTED_MODULE_10__["default"])({ - state, - positioning, - transitionDuration: duration, - maxHeight: notificationMaxHeight - })), - ...Array.isArray(notification.sx) ? notification.sx : [notification.sx] - ] - }))); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Notifications_context_js__WEBPACK_IMPORTED_MODULE_11__.NotificationsContext.Provider, { - value: { notifications, queue } - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_12__.Portal, { - target - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_13__.Box, __spreadValues({ - className: cx(classes.notifications, className), - style, - sx: __spreadValues({ - maxWidth: containerWidth - }, (0,_get_position_styles_get_position_styles_js__WEBPACK_IMPORTED_MODULE_14__["default"])(positioning, theme.spacing.md)) - }, others), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(react_transition_group__WEBPACK_IMPORTED_MODULE_15__["default"], null, items))), children); -} -NotificationsProvider.displayName = "@mantine/notifications/NotificationsProvider"; - - -//# sourceMappingURL=NotificationsProvider.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.styles.js": -/*!*******************************************************************************************************!*\ - !*** ./node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.styles.js ***! - \*******************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - - -var useStyles = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, { zIndex }) => ({ - notifications: { - width: `calc(100% - ${theme.spacing.md * 2}px)`, - boxSizing: "border-box", - position: "fixed", - zIndex - }, - notification: { - "&:not(:first-of-type)": { - marginTop: theme.spacing.sm - } - } -})); - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useStyles); -//# sourceMappingURL=NotificationsProvider.styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/notifications/esm/NotificationsProvider/get-notification-state-styles/get-notification-state-styles.js": -/*!**************************************************************************************************************************************!*\ - !*** ./node_modules/@mantine/notifications/esm/NotificationsProvider/get-notification-state-styles/get-notification-state-styles.js ***! - \**************************************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -const transforms = { - left: "translateX(-100%)", - right: "translateX(100%)", - "top-center": "translateY(-100%)", - "bottom-center": "translateY(100%)" -}; -const noTransform = { - left: "translateX(0)", - right: "translateX(0)", - "top-center": "translateY(0)", - "bottom-center": "translateY(0)" -}; -function getNotificationStateStyles({ - state, - maxHeight, - positioning, - transitionDuration -}) { - const [vertical, horizontal] = positioning; - const property = horizontal === "center" ? `${vertical}-center` : horizontal; - const commonStyles = { - opacity: 0, - maxHeight, - transform: transforms[property], - transitionDuration: `${transitionDuration}ms, ${transitionDuration}ms, ${transitionDuration}ms`, - transitionTimingFunction: "cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear", - transitionProperty: "opacity, transform, max-height" - }; - const inState = { - opacity: 1, - transform: noTransform[property] - }; - const outState = { - opacity: 0, - maxHeight: 0, - transform: transforms[property] - }; - const transitionStyles = { - entering: inState, - entered: inState, - exiting: outState, - exited: outState - }; - return __spreadValues(__spreadValues({}, commonStyles), transitionStyles[state]); -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getNotificationStateStyles); -//# sourceMappingURL=get-notification-state-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/notifications/esm/NotificationsProvider/get-position-styles/get-position-styles.js": -/*!******************************************************************************************************************!*\ - !*** ./node_modules/@mantine/notifications/esm/NotificationsProvider/get-position-styles/get-position-styles.js ***! - \******************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -function getPositionStyles([vertical, horizontal], spacing) { - const styles = {}; - vertical === "top" && (styles.top = spacing); - vertical === "bottom" && (styles.bottom = spacing); - horizontal === "left" && (styles.left = spacing); - horizontal === "right" && (styles.right = spacing); - horizontal === "center" && (styles.left = "50%", styles.transform = "translateX(-50%)"); - return styles; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getPositionStyles); -//# sourceMappingURL=get-position-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/notifications/esm/NotificationsProvider/use-notifications-state/use-notifications-state.js": -/*!**************************************************************************************************************************!*\ - !*** ./node_modules/@mantine/notifications/esm/NotificationsProvider/use-notifications-state/use-notifications-state.js ***! - \**************************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-queue/use-queue.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/utils/random-id/random-id.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function useNotificationsState({ limit }) { - const { state, queue, update, cleanQueue } = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_0__.useQueue)({ - initialValues: [], - limit - }); - const showNotification = (notification) => { - const id = notification.id || (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_1__.randomId)(); - update((notifications) => { - if (notification.id && notifications.some((n) => n.id === notification.id)) { - return notifications; - } - return [...notifications, __spreadProps(__spreadValues({}, notification), { id })]; - }); - return id; - }; - const updateNotification = (notification) => update((notifications) => { - const index = notifications.findIndex((n) => n.id === notification.id); - if (index === -1) { - return notifications; - } - const newNotifications = [...notifications]; - newNotifications[index] = notification; - return newNotifications; - }); - const hideNotification = (id) => update((notifications) => notifications.filter((notification) => { - if (notification.id === id) { - typeof notification.onClose === "function" && notification.onClose(notification); - return false; - } - return true; - })); - const clean = () => update(() => []); - return { - notifications: state, - queue, - showNotification, - updateNotification, - hideNotification, - cleanQueue, - clean - }; -} - -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (useNotificationsState); -//# sourceMappingURL=use-notifications-state.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/notifications/esm/events.js": -/*!***********************************************************!*\ - !*** ./node_modules/@mantine/notifications/esm/events.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ cleanNotifications: () => (/* binding */ cleanNotifications), -/* harmony export */ cleanNotificationsQueue: () => (/* binding */ cleanNotificationsQueue), -/* harmony export */ createEvent: () => (/* binding */ createEvent), -/* harmony export */ hideNotification: () => (/* binding */ hideNotification), -/* harmony export */ showNotification: () => (/* binding */ showNotification), -/* harmony export */ updateNotification: () => (/* binding */ updateNotification), -/* harmony export */ useNotificationsEvents: () => (/* binding */ useNotificationsEvents) -/* harmony export */ }); -/* harmony import */ var _mantine_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/utils */ "./node_modules/@mantine/utils/esm/create-use-external-events/create-use-external-events.js"); - - -const [useNotificationsEvents, createEvent] = (0,_mantine_utils__WEBPACK_IMPORTED_MODULE_0__.createUseExternalEvents)("mantine-notifications"); -const showNotification = createEvent("show"); -const hideNotification = createEvent("hide"); -const cleanNotifications = createEvent("clean"); -const cleanNotificationsQueue = createEvent("cleanQueue"); -const updateNotification = createEvent("update"); - - -//# sourceMappingURL=events.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/GlobalStyles.js": -/*!****************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/GlobalStyles.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ GlobalStyles: () => (/* binding */ GlobalStyles) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"); - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function GlobalStyles({ theme }) { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_emotion_react__WEBPACK_IMPORTED_MODULE_1__.Global, { - styles: { - "*, *::before, *::after": { - boxSizing: "border-box" - }, - html: { - colorScheme: theme.colorScheme === "dark" ? "dark" : "light" - }, - body: __spreadProps(__spreadValues({}, theme.fn.fontStyles()), { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.white, - color: theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.black, - lineHeight: theme.lineHeight, - fontSize: theme.fontSizes.md, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale" - }) - } - }); -} - - -//# sourceMappingURL=GlobalStyles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/MantineCssVariables.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/MantineCssVariables.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MantineCssVariables: () => (/* binding */ MantineCssVariables) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"); - - - -function assignSizeVariables(variables, sizes, name) { - Object.keys(sizes).forEach((size) => { - variables[`--mantine-${name}-${size}`] = typeof sizes[size] === "number" ? `${sizes[size]}px` : sizes[size]; - }); -} -function MantineCssVariables({ theme }) { - const variables = { - "--mantine-color-white": theme.white, - "--mantine-color-black": theme.black, - "--mantine-transition-timing-function": theme.transitionTimingFunction, - "--mantine-line-height": `${theme.lineHeight}`, - "--mantine-font-family": theme.fontFamily, - "--mantine-font-family-monospace": theme.fontFamilyMonospace, - "--mantine-font-family-headings": theme.headings.fontFamily, - "--mantine-heading-font-weight": `${theme.headings.fontWeight}` - }; - assignSizeVariables(variables, theme.shadows, "shadow"); - assignSizeVariables(variables, theme.fontSizes, "font-size"); - assignSizeVariables(variables, theme.radius, "radius"); - assignSizeVariables(variables, theme.spacing, "spacing"); - Object.keys(theme.colors).forEach((color) => { - theme.colors[color].forEach((shade, index) => { - variables[`--mantine-color-${color}-${index}`] = shade; - }); - }); - const headings = theme.headings.sizes; - Object.keys(headings).forEach((heading) => { - variables[`--mantine-${heading}-font-size`] = `${headings[heading].fontSize}px`; - variables[`--mantine-${heading}-line-height`] = `${headings[heading].lineHeight}`; - }); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_emotion_react__WEBPACK_IMPORTED_MODULE_1__.Global, { - styles: { - ":root": variables - } - }); -} - - -//# sourceMappingURL=MantineCssVariables.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/MantineProvider.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ MantineProvider: () => (/* binding */ MantineProvider), -/* harmony export */ useComponentDefaultProps: () => (/* binding */ useComponentDefaultProps), -/* harmony export */ useMantineEmotionCache: () => (/* binding */ useMantineEmotionCache), -/* harmony export */ useMantineProviderStyles: () => (/* binding */ useMantineProviderStyles), -/* harmony export */ useMantineTheme: () => (/* binding */ useMantineTheme) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js"); -/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"); -/* harmony import */ var _default_theme_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-theme.js */ "./node_modules/@mantine/styles/esm/theme/default-theme.js"); -/* harmony import */ var _GlobalStyles_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./GlobalStyles.js */ "./node_modules/@mantine/styles/esm/theme/GlobalStyles.js"); -/* harmony import */ var _MantineCssVariables_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MantineCssVariables.js */ "./node_modules/@mantine/styles/esm/theme/MantineCssVariables.js"); -/* harmony import */ var _utils_merge_theme_merge_theme_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/merge-theme/merge-theme.js */ "./node_modules/@mantine/styles/esm/theme/utils/merge-theme/merge-theme.js"); -/* harmony import */ var _utils_filter_props_filter_props_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/filter-props/filter-props.js */ "./node_modules/@mantine/styles/esm/theme/utils/filter-props/filter-props.js"); -/* harmony import */ var _NormalizeCSS_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NormalizeCSS.js */ "./node_modules/@mantine/styles/esm/theme/NormalizeCSS.js"); - - - - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -const MantineProviderContext = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({ - theme: _default_theme_js__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_THEME -}); -function useMantineTheme() { - var _a; - return ((_a = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(MantineProviderContext)) == null ? void 0 : _a.theme) || _default_theme_js__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_THEME; -} -function useMantineProviderStyles(component) { - const theme = useMantineTheme(); - const getStyles = (name) => { - var _a, _b; - return { - styles: ((_a = theme.components[name]) == null ? void 0 : _a.styles) || {}, - classNames: ((_b = theme.components[name]) == null ? void 0 : _b.classNames) || {} - }; - }; - if (Array.isArray(component)) { - return component.map(getStyles); - } - return [getStyles(component)]; -} -function useMantineEmotionCache() { - var _a; - return (_a = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(MantineProviderContext)) == null ? void 0 : _a.emotionCache; -} -function useComponentDefaultProps(component, defaultProps, props) { - var _a; - const theme = useMantineTheme(); - const contextPropsPayload = (_a = theme.components[component]) == null ? void 0 : _a.defaultProps; - const contextProps = typeof contextPropsPayload === "function" ? contextPropsPayload(theme) : contextPropsPayload; - return __spreadValues(__spreadValues(__spreadValues({}, defaultProps), contextProps), (0,_utils_filter_props_filter_props_js__WEBPACK_IMPORTED_MODULE_2__.filterProps)(props)); -} -function MantineProvider({ - theme, - emotionCache, - withNormalizeCSS = false, - withGlobalStyles = false, - withCSSVariables = false, - inherit = false, - children -}) { - const ctx = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(MantineProviderContext); - const mergedTheme = (0,_utils_merge_theme_merge_theme_js__WEBPACK_IMPORTED_MODULE_3__.mergeThemeWithFunctions)(_default_theme_js__WEBPACK_IMPORTED_MODULE_1__.DEFAULT_THEME, inherit ? __spreadValues(__spreadValues({}, ctx.theme), theme) : theme); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_emotion_react__WEBPACK_IMPORTED_MODULE_4__.a, { - theme: mergedTheme - }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(MantineProviderContext.Provider, { - value: { theme: mergedTheme, emotionCache } - }, withNormalizeCSS && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_NormalizeCSS_js__WEBPACK_IMPORTED_MODULE_5__.NormalizeCSS, null), withGlobalStyles && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_GlobalStyles_js__WEBPACK_IMPORTED_MODULE_6__.GlobalStyles, { - theme: mergedTheme - }), withCSSVariables && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_MantineCssVariables_js__WEBPACK_IMPORTED_MODULE_7__.MantineCssVariables, { - theme: mergedTheme - }), typeof mergedTheme.globalStyles === "function" && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_emotion_react__WEBPACK_IMPORTED_MODULE_8__.Global, { - styles: mergedTheme.globalStyles(mergedTheme) - }), children)); -} -MantineProvider.displayName = "@mantine/core/MantineProvider"; - - -//# sourceMappingURL=MantineProvider.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/NormalizeCSS.js": -/*!****************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/NormalizeCSS.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ NormalizeCSS: () => (/* binding */ NormalizeCSS) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"); - - - -const styles = { - html: { - fontFamily: "sans-serif", - lineHeight: "1.15", - textSizeAdjust: "100%" - }, - body: { - margin: 0 - }, - "article, aside, footer, header, nav, section, figcaption, figure, main": { - display: "block" - }, - h1: { - fontSize: "2em" - }, - hr: { - boxSizing: "content-box", - height: 0, - overflow: "visible" - }, - pre: { - fontFamily: "monospace, monospace", - fontSize: "1em" - }, - a: { - background: "transparent", - textDecorationSkip: "objects" - }, - "a:active, a:hover": { - outlineWidth: 0 - }, - "abbr[title]": { - borderBottom: "none", - textDecoration: "underline" - }, - "b, strong": { - fontWeight: "bolder" - }, - "code, kbp, samp": { - fontFamily: "monospace, monospace", - fontSize: "1em" - }, - dfn: { - fontStyle: "italic" - }, - mark: { - backgroundColor: "#ff0", - color: "#000" - }, - small: { - fontSize: "80%" - }, - "sub, sup": { - fontSize: "75%", - lineHeight: 0, - position: "relative", - verticalAlign: "baseline" - }, - sup: { - top: "-0.5em" - }, - sub: { - bottom: "-0.25em" - }, - "audio, video": { - display: "inline-block" - }, - "audio:not([controls])": { - display: "none", - height: 0 - }, - img: { - borderStyle: "none", - verticalAlign: "middle" - }, - "svg:not(:root)": { - overflow: "hidden" - }, - "button, input, optgroup, select, textarea": { - fontFamily: "sans-serif", - fontSize: "100%", - lineHeight: "1.15", - margin: 0 - }, - "button, input": { - overflow: "visible" - }, - "button, select": { - textTransform: "none" - }, - "button, [type=reset], [type=submit]": { - WebkitAppearance: "button" - }, - "button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner": { - borderStyle: "none", - padding: 0 - }, - "button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring": { - outline: "1px dotted ButtonText" - }, - legend: { - boxSizing: "border-box", - color: "inherit", - display: "table", - maxWidth: "100%", - padding: 0, - whiteSpace: "normal" - }, - progress: { - display: "inline-block", - verticalAlign: "baseline" - }, - textarea: { - overflow: "auto" - }, - "[type=checkbox], [type=radio]": { - boxSizing: "border-box", - padding: 0 - }, - "[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button": { - height: "auto" - }, - "[type=search]": { - appearance: "none" - }, - "[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration": { - appearance: "none" - }, - "::-webkit-file-upload-button": { - appearance: "button", - font: "inherit" - }, - "details, menu": { - display: "block" - }, - summary: { - display: "list-item" - }, - canvas: { - display: "inline-block" - }, - template: { - display: "none" - }, - "[hidden]": { - display: "none" - } -}; -function NormalizeCSS() { - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_emotion_react__WEBPACK_IMPORTED_MODULE_1__.Global, { - styles - }); -} - - -//# sourceMappingURL=NormalizeCSS.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/default-colors.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/default-colors.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DEFAULT_COLORS: () => (/* binding */ DEFAULT_COLORS) -/* harmony export */ }); -const DEFAULT_COLORS = { - dark: [ - "#C1C2C5", - "#A6A7AB", - "#909296", - "#5c5f66", - "#373A40", - "#2C2E33", - "#25262b", - "#1A1B1E", - "#141517", - "#101113" - ], - gray: [ - "#f8f9fa", - "#f1f3f5", - "#e9ecef", - "#dee2e6", - "#ced4da", - "#adb5bd", - "#868e96", - "#495057", - "#343a40", - "#212529" - ], - red: [ - "#fff5f5", - "#ffe3e3", - "#ffc9c9", - "#ffa8a8", - "#ff8787", - "#ff6b6b", - "#fa5252", - "#f03e3e", - "#e03131", - "#c92a2a" - ], - pink: [ - "#fff0f6", - "#ffdeeb", - "#fcc2d7", - "#faa2c1", - "#f783ac", - "#f06595", - "#e64980", - "#d6336c", - "#c2255c", - "#a61e4d" - ], - grape: [ - "#f8f0fc", - "#f3d9fa", - "#eebefa", - "#e599f7", - "#da77f2", - "#cc5de8", - "#be4bdb", - "#ae3ec9", - "#9c36b5", - "#862e9c" - ], - violet: [ - "#f3f0ff", - "#e5dbff", - "#d0bfff", - "#b197fc", - "#9775fa", - "#845ef7", - "#7950f2", - "#7048e8", - "#6741d9", - "#5f3dc4" - ], - indigo: [ - "#edf2ff", - "#dbe4ff", - "#bac8ff", - "#91a7ff", - "#748ffc", - "#5c7cfa", - "#4c6ef5", - "#4263eb", - "#3b5bdb", - "#364fc7" - ], - blue: [ - "#e7f5ff", - "#d0ebff", - "#a5d8ff", - "#74c0fc", - "#4dabf7", - "#339af0", - "#228be6", - "#1c7ed6", - "#1971c2", - "#1864ab" - ], - cyan: [ - "#e3fafc", - "#c5f6fa", - "#99e9f2", - "#66d9e8", - "#3bc9db", - "#22b8cf", - "#15aabf", - "#1098ad", - "#0c8599", - "#0b7285" - ], - teal: [ - "#e6fcf5", - "#c3fae8", - "#96f2d7", - "#63e6be", - "#38d9a9", - "#20c997", - "#12b886", - "#0ca678", - "#099268", - "#087f5b" - ], - green: [ - "#ebfbee", - "#d3f9d8", - "#b2f2bb", - "#8ce99a", - "#69db7c", - "#51cf66", - "#40c057", - "#37b24d", - "#2f9e44", - "#2b8a3e" - ], - lime: [ - "#f4fce3", - "#e9fac8", - "#d8f5a2", - "#c0eb75", - "#a9e34b", - "#94d82d", - "#82c91e", - "#74b816", - "#66a80f", - "#5c940d" - ], - yellow: [ - "#fff9db", - "#fff3bf", - "#ffec99", - "#ffe066", - "#ffd43b", - "#fcc419", - "#fab005", - "#f59f00", - "#f08c00", - "#e67700" - ], - orange: [ - "#fff4e6", - "#ffe8cc", - "#ffd8a8", - "#ffc078", - "#ffa94d", - "#ff922b", - "#fd7e14", - "#f76707", - "#e8590c", - "#d9480f" - ] -}; - - -//# sourceMappingURL=default-colors.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/default-theme.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/default-theme.js ***! - \*****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DEFAULT_THEME: () => (/* binding */ DEFAULT_THEME), -/* harmony export */ MANTINE_COLORS: () => (/* binding */ MANTINE_COLORS), -/* harmony export */ MANTINE_SIZES: () => (/* binding */ MANTINE_SIZES), -/* harmony export */ _DEFAULT_THEME: () => (/* binding */ _DEFAULT_THEME) -/* harmony export */ }); -/* harmony import */ var _default_colors_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./default-colors.js */ "./node_modules/@mantine/styles/esm/theme/default-colors.js"); -/* harmony import */ var _functions_attach_functions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./functions/attach-functions.js */ "./node_modules/@mantine/styles/esm/theme/functions/attach-functions.js"); - - - -const MANTINE_COLORS = Object.keys(_default_colors_js__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_COLORS); -const MANTINE_SIZES = ["xs", "sm", "md", "lg", "xl"]; -const _DEFAULT_THEME = { - dir: "ltr", - primaryShade: { - light: 6, - dark: 8 - }, - focusRing: "auto", - loader: "oval", - dateFormat: "MMMM D, YYYY", - colorScheme: "light", - white: "#fff", - black: "#000", - defaultRadius: "sm", - transitionTimingFunction: "ease", - colors: _default_colors_js__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_COLORS, - lineHeight: 1.55, - fontFamily: "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", - fontFamilyMonospace: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace", - primaryColor: "blue", - respectReducedMotion: true, - cursorType: "default", - defaultGradient: { - from: "indigo", - to: "cyan", - deg: 45 - }, - shadows: { - xs: "0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)", - sm: "0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px", - md: "0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px", - lg: "0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px", - xl: "0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px" - }, - fontSizes: { - xs: 12, - sm: 14, - md: 16, - lg: 18, - xl: 20 - }, - radius: { - xs: 2, - sm: 4, - md: 8, - lg: 16, - xl: 32 - }, - spacing: { - xs: 10, - sm: 12, - md: 16, - lg: 20, - xl: 24 - }, - breakpoints: { - xs: 576, - sm: 768, - md: 992, - lg: 1200, - xl: 1400 - }, - headings: { - fontFamily: "-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji", - fontWeight: 700, - sizes: { - h1: { fontSize: 34, lineHeight: 1.3, fontWeight: void 0 }, - h2: { fontSize: 26, lineHeight: 1.35, fontWeight: void 0 }, - h3: { fontSize: 22, lineHeight: 1.4, fontWeight: void 0 }, - h4: { fontSize: 18, lineHeight: 1.45, fontWeight: void 0 }, - h5: { fontSize: 16, lineHeight: 1.5, fontWeight: void 0 }, - h6: { fontSize: 14, lineHeight: 1.5, fontWeight: void 0 } - } - }, - other: {}, - components: {}, - activeStyles: { transform: "translateY(1px)" }, - datesLocale: "en", - globalStyles: void 0, - focusRingStyles: { - styles: (theme) => ({ - outlineOffset: 2, - outline: `2px solid ${theme.colors[theme.primaryColor][theme.colorScheme === "dark" ? 7 : 5]}` - }), - resetStyles: () => ({ outline: "none" }), - inputStyles: (theme) => ({ - outline: "none", - borderColor: theme.colors[theme.primaryColor][typeof theme.primaryShade === "object" ? theme.primaryShade[theme.colorScheme] : theme.primaryShade] - }) - } -}; -const DEFAULT_THEME = (0,_functions_attach_functions_js__WEBPACK_IMPORTED_MODULE_1__.attachFunctions)(_DEFAULT_THEME); - - -//# sourceMappingURL=default-theme.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/attach-functions.js": -/*!******************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/attach-functions.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ attachFunctions: () => (/* binding */ attachFunctions) -/* harmony export */ }); -/* harmony import */ var _fns_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fns/index.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/index.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function attachFunctions(themeBase) { - return __spreadProps(__spreadValues({}, themeBase), { - fn: { - fontStyles: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.fontStyles(themeBase), - themeColor: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.themeColor(themeBase), - focusStyles: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.focusStyles(themeBase), - largerThan: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.largerThan(themeBase), - smallerThan: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.smallerThan(themeBase), - radialGradient: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.radialGradient, - linearGradient: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.linearGradient, - gradient: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.gradient(themeBase), - rgba: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.rgba, - size: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.size, - cover: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.cover, - lighten: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.lighten, - darken: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.darken, - primaryShade: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.primaryShade(themeBase), - radius: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.radius(themeBase), - variant: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.variant(themeBase), - hover: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.hover, - primaryColor: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.primaryColor(themeBase), - placeholderStyles: _fns_index_js__WEBPACK_IMPORTED_MODULE_0__.fns.placeholderStyles(themeBase) - } - }); -} - - -//# sourceMappingURL=attach-functions.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/breakpoints/breakpoints.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/breakpoints/breakpoints.js ***! - \*****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ largerThan: () => (/* binding */ largerThan), -/* harmony export */ smallerThan: () => (/* binding */ smallerThan) -/* harmony export */ }); -/* harmony import */ var _size_size_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../size/size.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/size/size.js"); - - -function largerThan(theme) { - return (breakpoint) => `@media (min-width: ${(0,_size_size_js__WEBPACK_IMPORTED_MODULE_0__.size)({ size: breakpoint, sizes: theme.breakpoints })}px)`; -} -function smallerThan(theme) { - return (breakpoint) => `@media (max-width: ${(0,_size_size_js__WEBPACK_IMPORTED_MODULE_0__.size)({ size: breakpoint, sizes: theme.breakpoints }) - 1}px)`; -} - - -//# sourceMappingURL=breakpoints.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/cover/cover.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/cover/cover.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ cover: () => (/* binding */ cover) -/* harmony export */ }); -function cover(offset = 0) { - return { - position: "absolute", - top: offset, - right: offset, - left: offset, - bottom: offset - }; -} - - -//# sourceMappingURL=cover.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/darken/darken.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/darken/darken.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ darken: () => (/* binding */ darken) -/* harmony export */ }); -/* harmony import */ var _utils_to_rgba_to_rgba_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../utils/to-rgba/to-rgba.js */ "./node_modules/@mantine/styles/esm/theme/utils/to-rgba/to-rgba.js"); - - -function darken(color, alpha) { - const { r, g, b, a } = (0,_utils_to_rgba_to_rgba_js__WEBPACK_IMPORTED_MODULE_0__.toRgba)(color); - const f = 1 - alpha; - const dark = (input) => Math.round(input * f); - return `rgba(${dark(r)}, ${dark(g)}, ${dark(b)}, ${a})`; -} - - -//# sourceMappingURL=darken.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/focus-styles/focus-styles.js": -/*!*******************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/focus-styles/focus-styles.js ***! - \*******************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ focusStyles: () => (/* binding */ focusStyles) -/* harmony export */ }); -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function focusStyles(theme) { - return (selector) => ({ - WebkitTapHighlightColor: "transparent", - [selector || "&:focus"]: __spreadValues({}, theme.focusRing === "always" || theme.focusRing === "auto" ? theme.focusRingStyles.styles(theme) : theme.focusRingStyles.resetStyles(theme)), - [selector ? selector.replace(":focus", ":focus:not(:focus-visible)") : "&:focus:not(:focus-visible)"]: __spreadValues({}, theme.focusRing === "auto" || theme.focusRing === "never" ? theme.focusRingStyles.resetStyles(theme) : null) - }); -} - - -//# sourceMappingURL=focus-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/font-styles/font-styles.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/font-styles/font-styles.js ***! - \*****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ fontStyles: () => (/* binding */ fontStyles) -/* harmony export */ }); -function fontStyles(theme) { - return () => ({ fontFamily: theme.fontFamily || "sans-serif" }); -} - - -//# sourceMappingURL=font-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/gradient/get-gradient-color-stops/get-gradient-color-stops.js": -/*!****************************************************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/gradient/get-gradient-color-stops/get-gradient-color-stops.js ***! - \****************************************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getGradientColorStops: () => (/* binding */ getGradientColorStops) -/* harmony export */ }); -function getGradientColorStops(colors) { - let stops = ""; - for (let i = 1; i < colors.length - 1; i += 1) { - stops += `${colors[i]} ${i / (colors.length - 1) * 100}%, `; - } - return `${colors[0]} 0%, ${stops}${colors[colors.length - 1]} 100%`; -} - - -//# sourceMappingURL=get-gradient-color-stops.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/gradient/gradient.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/gradient/gradient.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ gradient: () => (/* binding */ gradient), -/* harmony export */ linearGradient: () => (/* binding */ linearGradient), -/* harmony export */ radialGradient: () => (/* binding */ radialGradient) -/* harmony export */ }); -/* harmony import */ var _theme_color_theme_color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../theme-color/theme-color.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/theme-color/theme-color.js"); -/* harmony import */ var _primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../primary-shade/primary-shade.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/primary-shade/primary-shade.js"); -/* harmony import */ var _get_gradient_color_stops_get_gradient_color_stops_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./get-gradient-color-stops/get-gradient-color-stops.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/gradient/get-gradient-color-stops/get-gradient-color-stops.js"); - - - - -function linearGradient(deg, ...colors) { - return `linear-gradient(${deg}deg, ${(0,_get_gradient_color_stops_get_gradient_color_stops_js__WEBPACK_IMPORTED_MODULE_0__.getGradientColorStops)(colors)})`; -} -function radialGradient(...colors) { - return `radial-gradient(circle, ${(0,_get_gradient_color_stops_get_gradient_color_stops_js__WEBPACK_IMPORTED_MODULE_0__.getGradientColorStops)(colors)})`; -} -function gradient(theme) { - const getThemeColor = (0,_theme_color_theme_color_js__WEBPACK_IMPORTED_MODULE_1__.themeColor)(theme); - const getPrimaryShade = (0,_primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_2__.primaryShade)(theme); - return (payload) => { - const merged = { - from: (payload == null ? void 0 : payload.from) || theme.defaultGradient.from, - to: (payload == null ? void 0 : payload.to) || theme.defaultGradient.to, - deg: (payload == null ? void 0 : payload.deg) || theme.defaultGradient.deg - }; - return `linear-gradient(${merged.deg}deg, ${getThemeColor(merged.from, getPrimaryShade(), false)} 0%, ${getThemeColor(merged.to, getPrimaryShade(), false)} 100%)`; - }; -} - - -//# sourceMappingURL=gradient.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/hover/hover.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/hover/hover.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ hover: () => (/* binding */ hover) -/* harmony export */ }); -function hover(hoverStyle) { - return { - "@media (hover: hover)": { - "&:hover": hoverStyle - }, - "@media (hover: none)": { - "&:active": hoverStyle - } - }; -} - - -//# sourceMappingURL=hover.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/index.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/index.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ fns: () => (/* binding */ fns) -/* harmony export */ }); -/* harmony import */ var _font_styles_font_styles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./font-styles/font-styles.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/font-styles/font-styles.js"); -/* harmony import */ var _focus_styles_focus_styles_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./focus-styles/focus-styles.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/focus-styles/focus-styles.js"); -/* harmony import */ var _theme_color_theme_color_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./theme-color/theme-color.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/theme-color/theme-color.js"); -/* harmony import */ var _gradient_gradient_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./gradient/gradient.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/gradient/gradient.js"); -/* harmony import */ var _breakpoints_breakpoints_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./breakpoints/breakpoints.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/breakpoints/breakpoints.js"); -/* harmony import */ var _rgba_rgba_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./rgba/rgba.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/rgba/rgba.js"); -/* harmony import */ var _size_size_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./size/size.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/size/size.js"); -/* harmony import */ var _cover_cover_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cover/cover.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/cover/cover.js"); -/* harmony import */ var _darken_darken_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./darken/darken.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/darken/darken.js"); -/* harmony import */ var _lighten_lighten_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./lighten/lighten.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/lighten/lighten.js"); -/* harmony import */ var _radius_radius_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./radius/radius.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/radius/radius.js"); -/* harmony import */ var _variant_variant_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./variant/variant.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/variant/variant.js"); -/* harmony import */ var _primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./primary-shade/primary-shade.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/primary-shade/primary-shade.js"); -/* harmony import */ var _primary_color_primary_color_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./primary-color/primary-color.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/primary-color/primary-color.js"); -/* harmony import */ var _hover_hover_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./hover/hover.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/hover/hover.js"); -/* harmony import */ var _placeholder_styles_placeholder_styles_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./placeholder-styles/placeholder-styles.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/placeholder-styles/placeholder-styles.js"); - - - - - - - - - - - - - - - - - -const fns = { - fontStyles: _font_styles_font_styles_js__WEBPACK_IMPORTED_MODULE_0__.fontStyles, - themeColor: _theme_color_theme_color_js__WEBPACK_IMPORTED_MODULE_1__.themeColor, - focusStyles: _focus_styles_focus_styles_js__WEBPACK_IMPORTED_MODULE_2__.focusStyles, - linearGradient: _gradient_gradient_js__WEBPACK_IMPORTED_MODULE_3__.linearGradient, - radialGradient: _gradient_gradient_js__WEBPACK_IMPORTED_MODULE_3__.radialGradient, - smallerThan: _breakpoints_breakpoints_js__WEBPACK_IMPORTED_MODULE_4__.smallerThan, - largerThan: _breakpoints_breakpoints_js__WEBPACK_IMPORTED_MODULE_4__.largerThan, - rgba: _rgba_rgba_js__WEBPACK_IMPORTED_MODULE_5__.rgba, - size: _size_size_js__WEBPACK_IMPORTED_MODULE_6__.size, - cover: _cover_cover_js__WEBPACK_IMPORTED_MODULE_7__.cover, - darken: _darken_darken_js__WEBPACK_IMPORTED_MODULE_8__.darken, - lighten: _lighten_lighten_js__WEBPACK_IMPORTED_MODULE_9__.lighten, - radius: _radius_radius_js__WEBPACK_IMPORTED_MODULE_10__.radius, - variant: _variant_variant_js__WEBPACK_IMPORTED_MODULE_11__.variant, - primaryShade: _primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_12__.primaryShade, - hover: _hover_hover_js__WEBPACK_IMPORTED_MODULE_13__.hover, - gradient: _gradient_gradient_js__WEBPACK_IMPORTED_MODULE_3__.gradient, - primaryColor: _primary_color_primary_color_js__WEBPACK_IMPORTED_MODULE_14__.primaryColor, - placeholderStyles: _placeholder_styles_placeholder_styles_js__WEBPACK_IMPORTED_MODULE_15__.placeholderStyles -}; - - -//# sourceMappingURL=index.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/lighten/lighten.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/lighten/lighten.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ lighten: () => (/* binding */ lighten) -/* harmony export */ }); -/* harmony import */ var _utils_to_rgba_to_rgba_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../utils/to-rgba/to-rgba.js */ "./node_modules/@mantine/styles/esm/theme/utils/to-rgba/to-rgba.js"); - - -function lighten(color, alpha) { - const { r, g, b, a } = (0,_utils_to_rgba_to_rgba_js__WEBPACK_IMPORTED_MODULE_0__.toRgba)(color); - const light = (input) => Math.round(input + (255 - input) * alpha); - return `rgba(${light(r)}, ${light(g)}, ${light(b)}, ${a})`; -} - - -//# sourceMappingURL=lighten.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/placeholder-styles/placeholder-styles.js": -/*!*******************************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/placeholder-styles/placeholder-styles.js ***! - \*******************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ placeholderStyles: () => (/* binding */ placeholderStyles) -/* harmony export */ }); -function placeholderStyles(theme) { - return () => ({ - userSelect: "none", - color: theme.colorScheme === "dark" ? theme.colors.dark[3] : theme.colors.gray[5] - }); -} - - -//# sourceMappingURL=placeholder-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/primary-color/primary-color.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/primary-color/primary-color.js ***! - \*********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ primaryColor: () => (/* binding */ primaryColor) -/* harmony export */ }); -/* harmony import */ var _primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../primary-shade/primary-shade.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/primary-shade/primary-shade.js"); - - -function primaryColor(theme) { - return (colorScheme) => { - const shade = (0,_primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_0__.primaryShade)(theme)(colorScheme); - return theme.colors[theme.primaryColor][shade]; - }; -} - - -//# sourceMappingURL=primary-color.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/primary-shade/primary-shade.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/primary-shade/primary-shade.js ***! - \*********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ primaryShade: () => (/* binding */ primaryShade) -/* harmony export */ }); -function primaryShade(theme) { - return (colorScheme) => { - if (typeof theme.primaryShade === "number") { - return theme.primaryShade; - } - return theme.primaryShade[colorScheme || theme.colorScheme]; - }; -} - - -//# sourceMappingURL=primary-shade.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/radius/radius.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/radius/radius.js ***! - \*******************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ radius: () => (/* binding */ radius) -/* harmony export */ }); -function radius(theme) { - return (size) => { - if (typeof size === "number") { - return size; - } - const defaultRadius = typeof theme.defaultRadius === "number" ? theme.defaultRadius : theme.radius[theme.defaultRadius] || theme.defaultRadius; - return theme.radius[size] || size || defaultRadius; - }; -} - - -//# sourceMappingURL=radius.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/rgba/rgba.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/rgba/rgba.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ rgba: () => (/* binding */ rgba) -/* harmony export */ }); -/* harmony import */ var _utils_to_rgba_to_rgba_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../utils/to-rgba/to-rgba.js */ "./node_modules/@mantine/styles/esm/theme/utils/to-rgba/to-rgba.js"); - - -function rgba(color, alpha) { - if (typeof color !== "string" || alpha > 1 || alpha < 0) { - return "rgba(0, 0, 0, 1)"; - } - const { r, g, b } = (0,_utils_to_rgba_to_rgba_js__WEBPACK_IMPORTED_MODULE_0__.toRgba)(color); - return `rgba(${r}, ${g}, ${b}, ${alpha})`; -} - - -//# sourceMappingURL=rgba.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/size/size.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/size/size.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ size: () => (/* binding */ size) -/* harmony export */ }); -function size(props) { - if (typeof props.size === "number") { - return props.size; - } - const computedSize = props.sizes[props.size]; - return computedSize !== void 0 ? computedSize : props.size || props.sizes.md; -} - - -//# sourceMappingURL=size.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/theme-color/theme-color.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/theme-color/theme-color.js ***! - \*****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ themeColor: () => (/* binding */ themeColor) -/* harmony export */ }); -/* harmony import */ var _primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../primary-shade/primary-shade.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/primary-shade/primary-shade.js"); - - -function themeColor(theme) { - const getPrimaryShade = (0,_primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_0__.primaryShade)(theme); - return (color, shade, primaryFallback = true, useSplittedShade = true) => { - if (typeof color === "string" && color.includes(".")) { - const [splitterColor, _splittedShade] = color.split("."); - const splittedShade = parseInt(_splittedShade, 10); - if (splitterColor in theme.colors && splittedShade >= 0 && splittedShade < 10) { - return theme.colors[splitterColor][typeof shade === "number" && !useSplittedShade ? shade : splittedShade]; - } - } - const _shade = typeof shade === "number" ? shade : getPrimaryShade(); - return color in theme.colors ? theme.colors[color][_shade] : primaryFallback ? theme.colors[theme.primaryColor][_shade] : color; - }; -} - - -//# sourceMappingURL=theme-color.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/functions/fns/variant/variant.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/functions/fns/variant/variant.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ variant: () => (/* binding */ variant) -/* harmony export */ }); -/* harmony import */ var _rgba_rgba_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../rgba/rgba.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/rgba/rgba.js"); -/* harmony import */ var _theme_color_theme_color_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../theme-color/theme-color.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/theme-color/theme-color.js"); -/* harmony import */ var _primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../primary-shade/primary-shade.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/primary-shade/primary-shade.js"); -/* harmony import */ var _gradient_gradient_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../gradient/gradient.js */ "./node_modules/@mantine/styles/esm/theme/functions/fns/gradient/gradient.js"); - - - - - -function getColorIndexInfo(color, theme) { - if (typeof color === "string" && color.includes(".")) { - const [splittedColor, _splittedShade] = color.split("."); - const splittedShade = parseInt(_splittedShade, 10); - if (splittedColor in theme.colors && splittedShade >= 0 && splittedShade < 10) { - return { isSplittedColor: true, key: splittedColor, shade: splittedShade }; - } - } - return { isSplittedColor: false }; -} -function variant(theme) { - const getThemeColor = (0,_theme_color_theme_color_js__WEBPACK_IMPORTED_MODULE_0__.themeColor)(theme); - const getPrimaryShade = (0,_primary_shade_primary_shade_js__WEBPACK_IMPORTED_MODULE_1__.primaryShade)(theme); - const getGradient = (0,_gradient_gradient_js__WEBPACK_IMPORTED_MODULE_2__.gradient)(theme); - return ({ variant: variant2, color, gradient: gradient2, primaryFallback }) => { - const colorInfo = getColorIndexInfo(color, theme); - switch (variant2) { - case "light": { - return { - border: "transparent", - background: (0,_rgba_rgba_js__WEBPACK_IMPORTED_MODULE_3__.rgba)(getThemeColor(color, theme.colorScheme === "dark" ? 8 : 0, primaryFallback, false), theme.colorScheme === "dark" ? 0.2 : 1), - color: color === "dark" ? theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.dark[9] : getThemeColor(color, theme.colorScheme === "dark" ? 2 : getPrimaryShade("light")), - hover: (0,_rgba_rgba_js__WEBPACK_IMPORTED_MODULE_3__.rgba)(getThemeColor(color, theme.colorScheme === "dark" ? 7 : 1, primaryFallback, false), theme.colorScheme === "dark" ? 0.25 : 0.65) - }; - } - case "subtle": { - return { - border: "transparent", - background: "transparent", - color: color === "dark" ? theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.dark[9] : getThemeColor(color, theme.colorScheme === "dark" ? 2 : getPrimaryShade("light")), - hover: (0,_rgba_rgba_js__WEBPACK_IMPORTED_MODULE_3__.rgba)(getThemeColor(color, theme.colorScheme === "dark" ? 8 : 0, primaryFallback, false), theme.colorScheme === "dark" ? 0.2 : 1) - }; - } - case "outline": { - return { - border: getThemeColor(color, theme.colorScheme === "dark" ? 5 : getPrimaryShade("light")), - background: "transparent", - color: getThemeColor(color, theme.colorScheme === "dark" ? 5 : getPrimaryShade("light")), - hover: theme.colorScheme === "dark" ? (0,_rgba_rgba_js__WEBPACK_IMPORTED_MODULE_3__.rgba)(getThemeColor(color, 5, primaryFallback, false), 0.05) : (0,_rgba_rgba_js__WEBPACK_IMPORTED_MODULE_3__.rgba)(getThemeColor(color, 0, primaryFallback, false), 0.35) - }; - } - case "default": { - return { - border: theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[4], - background: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.white, - color: theme.colorScheme === "dark" ? theme.white : theme.black, - hover: theme.colorScheme === "dark" ? theme.colors.dark[5] : theme.colors.gray[0] - }; - } - case "white": { - return { - border: "transparent", - background: theme.white, - color: getThemeColor(color, getPrimaryShade()), - hover: null - }; - } - case "transparent": { - return { - border: "transparent", - color: color === "dark" ? theme.colorScheme === "dark" ? theme.colors.dark[0] : theme.colors.dark[9] : getThemeColor(color, theme.colorScheme === "dark" ? 2 : getPrimaryShade("light")), - background: "transparent", - hover: null - }; - } - case "gradient": { - return { - background: getGradient(gradient2), - color: theme.white, - border: "transparent", - hover: null - }; - } - default: { - const _primaryShade = getPrimaryShade(); - const _shade = colorInfo.isSplittedColor ? colorInfo.shade : _primaryShade; - const _color = colorInfo.isSplittedColor ? colorInfo.key : color; - return { - border: "transparent", - background: getThemeColor(_color, _shade, primaryFallback), - color: theme.white, - hover: getThemeColor(_color, _shade === 9 ? 8 : _shade + 1) - }; - } - } - }; -} - - -//# sourceMappingURL=variant.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/utils/filter-props/filter-props.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/utils/filter-props/filter-props.js ***! - \***********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ filterProps: () => (/* binding */ filterProps) -/* harmony export */ }); -function filterProps(props) { - return Object.keys(props).reduce((acc, key) => { - if (props[key] !== void 0) { - acc[key] = props[key]; - } - return acc; - }, {}); -} - - -//# sourceMappingURL=filter-props.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js": -/*!*************************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/utils/get-default-z-index/get-default-z-index.js ***! - \*************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getDefaultZIndex: () => (/* binding */ getDefaultZIndex) -/* harmony export */ }); -const elevations = { - app: 100, - modal: 200, - popover: 300, - overlay: 400, - max: 9999 -}; -function getDefaultZIndex(level) { - return elevations[level]; -} - - -//# sourceMappingURL=get-default-z-index.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/utils/merge-theme/merge-theme.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/utils/merge-theme/merge-theme.js ***! - \*********************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ mergeTheme: () => (/* binding */ mergeTheme), -/* harmony export */ mergeThemeWithFunctions: () => (/* binding */ mergeThemeWithFunctions) -/* harmony export */ }); -/* harmony import */ var _functions_attach_functions_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../functions/attach-functions.js */ "./node_modules/@mantine/styles/esm/theme/functions/attach-functions.js"); - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -function mergeTheme(currentTheme, themeOverride) { - if (!themeOverride) { - return currentTheme; - } - const result = Object.keys(currentTheme).reduce((acc, key) => { - if (key === "headings" && themeOverride.headings) { - const sizes = themeOverride.headings.sizes ? Object.keys(currentTheme.headings.sizes).reduce((headingsAcc, h) => { - headingsAcc[h] = __spreadValues(__spreadValues({}, currentTheme.headings.sizes[h]), themeOverride.headings.sizes[h]); - return headingsAcc; - }, {}) : currentTheme.headings.sizes; - return __spreadProps(__spreadValues({}, acc), { - headings: __spreadProps(__spreadValues(__spreadValues({}, currentTheme.headings), themeOverride.headings), { - sizes - }) - }); - } - acc[key] = typeof themeOverride[key] === "object" ? __spreadValues(__spreadValues({}, currentTheme[key]), themeOverride[key]) : typeof themeOverride[key] === "number" || typeof themeOverride[key] === "boolean" || typeof themeOverride[key] === "function" ? themeOverride[key] : themeOverride[key] || currentTheme[key]; - return acc; - }, {}); - if (!(result.primaryColor in result.colors)) { - throw new Error("MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more \u2013 https://mantine.dev/theming/colors/#primary-color"); - } - return result; -} -function mergeThemeWithFunctions(currentTheme, themeOverride) { - return (0,_functions_attach_functions_js__WEBPACK_IMPORTED_MODULE_0__.attachFunctions)(mergeTheme(currentTheme, themeOverride)); -} - - -//# sourceMappingURL=merge-theme.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/theme/utils/to-rgba/to-rgba.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/theme/utils/to-rgba/to-rgba.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ toRgba: () => (/* binding */ toRgba) -/* harmony export */ }); -function isHexColor(hex) { - const HEX_REGEXP = /^#?([0-9A-F]{3}){1,2}$/i; - return HEX_REGEXP.test(hex); -} -function hexToRgba(color) { - let hexString = color.replace("#", ""); - if (hexString.length === 3) { - const shorthandHex = hexString.split(""); - hexString = [ - shorthandHex[0], - shorthandHex[0], - shorthandHex[1], - shorthandHex[1], - shorthandHex[2], - shorthandHex[2] - ].join(""); - } - const parsed = parseInt(hexString, 16); - const r = parsed >> 16 & 255; - const g = parsed >> 8 & 255; - const b = parsed & 255; - return { - r, - g, - b, - a: 1 - }; -} -function rgbStringToRgba(color) { - const [r, g, b, a] = color.replace(/[^0-9,.]/g, "").split(",").map(Number); - return { r, g, b, a: a || 1 }; -} -function toRgba(color) { - if (isHexColor(color)) { - return hexToRgba(color); - } - if (color.startsWith("rgb")) { - return rgbStringToRgba(color); - } - return { - r: 0, - g: 0, - b: 0, - a: 1 - }; -} - - -//# sourceMappingURL=to-rgba.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/tss/Global.js": -/*!********************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/tss/Global.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Global: () => (/* binding */ Global) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _emotion_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/react */ "./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"); -/* harmony import */ var _theme_MantineProvider_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../theme/MantineProvider.js */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); - - - - -function Global({ styles }) { - const theme = (0,_theme_MantineProvider_js__WEBPACK_IMPORTED_MODULE_1__.useMantineTheme)(); - return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_emotion_react__WEBPACK_IMPORTED_MODULE_2__.Global, { - styles: (0,_emotion_react__WEBPACK_IMPORTED_MODULE_2__.css)(typeof styles === "function" ? styles(theme) : styles) - }); -} - - -//# sourceMappingURL=Global.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/tss/create-styles.js": -/*!***************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/tss/create-styles.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createStyles: () => (/* binding */ createStyles) -/* harmony export */ }); -/* harmony import */ var _use_css_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./use-css.js */ "./node_modules/@mantine/styles/esm/tss/use-css.js"); -/* harmony import */ var _theme_MantineProvider_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../theme/MantineProvider.js */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _utils_merge_class_names_merge_class_names_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/merge-class-names/merge-class-names.js */ "./node_modules/@mantine/styles/esm/tss/utils/merge-class-names/merge-class-names.js"); - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -function createRef(refName) { - return `__mantine-ref-${refName || ""}`; -} -function getStyles(styles, theme, params) { - const extractStyles = (stylesPartial) => typeof stylesPartial === "function" ? stylesPartial(theme, params || {}) : stylesPartial || {}; - if (Array.isArray(styles)) { - return styles.map((item) => extractStyles(item.styles)).reduce((acc, item) => { - Object.keys(item).forEach((key) => { - if (!acc[key]) { - acc[key] = __spreadValues({}, item[key]); - } else { - acc[key] = __spreadValues(__spreadValues({}, acc[key]), item[key]); - } - }); - return acc; - }, {}); - } - return extractStyles(styles); -} -function createStyles(input) { - const getCssObject = typeof input === "function" ? input : () => input; - function useStyles(params, options) { - const theme = (0,_theme_MantineProvider_js__WEBPACK_IMPORTED_MODULE_0__.useMantineTheme)(); - const context = (0,_theme_MantineProvider_js__WEBPACK_IMPORTED_MODULE_0__.useMantineProviderStyles)(options == null ? void 0 : options.name); - const cache = (0,_theme_MantineProvider_js__WEBPACK_IMPORTED_MODULE_0__.useMantineEmotionCache)(); - const { css, cx } = (0,_use_css_js__WEBPACK_IMPORTED_MODULE_1__.useCss)(); - const cssObject = getCssObject(theme, params, createRef); - const componentStyles = getStyles(options == null ? void 0 : options.styles, theme, params); - const providerStyles = getStyles(context, theme, params); - const classes = Object.fromEntries(Object.keys(cssObject).map((key) => { - const mergedStyles = cx({ [css(cssObject[key])]: !(options == null ? void 0 : options.unstyled) }, css(providerStyles[key]), css(componentStyles[key])); - return [key, mergedStyles]; - })); - return { - classes: (0,_utils_merge_class_names_merge_class_names_js__WEBPACK_IMPORTED_MODULE_2__.mergeClassNames)({ - cx, - classes, - context, - classNames: options == null ? void 0 : options.classNames, - name: options == null ? void 0 : options.name, - cache - }), - cx, - theme - }; - } - return useStyles; -} - - -//# sourceMappingURL=create-styles.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/tss/default-emotion-cache.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/tss/default-emotion-cache.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ defaultMantineEmotionCache: () => (/* binding */ defaultMantineEmotionCache) -/* harmony export */ }); -/* harmony import */ var _emotion_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @emotion/cache */ "./node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js"); - - -const defaultMantineEmotionCache = (0,_emotion_cache__WEBPACK_IMPORTED_MODULE_0__["default"])({ key: "mantine", prepend: true }); - - -//# sourceMappingURL=default-emotion-cache.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/tss/use-css.js": -/*!*********************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/tss/use-css.js ***! - \*********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ cssFactory: () => (/* binding */ cssFactory), -/* harmony export */ useCss: () => (/* binding */ useCss) -/* harmony export */ }); -/* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! clsx */ "./node_modules/clsx/dist/clsx.m.js"); -/* harmony import */ var _emotion_serialize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @emotion/serialize */ "./node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"); -/* harmony import */ var _emotion_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @emotion/utils */ "./node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"); -/* harmony import */ var _utils_use_guaranteed_memo_use_guaranteed_memo_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/use-guaranteed-memo/use-guaranteed-memo.js */ "./node_modules/@mantine/styles/esm/tss/utils/use-guaranteed-memo/use-guaranteed-memo.js"); -/* harmony import */ var _use_emotion_cache_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./use-emotion-cache.js */ "./node_modules/@mantine/styles/esm/tss/use-emotion-cache.js"); - - - - - - -var __defProp = Object.defineProperty; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -const refPropertyName = "ref"; -function getRef(args) { - let ref; - if (args.length !== 1) { - return { args, ref }; - } - const [arg] = args; - if (!(arg instanceof Object)) { - return { args, ref }; - } - if (!(refPropertyName in arg)) { - return { args, ref }; - } - ref = arg[refPropertyName]; - const argCopy = __spreadValues({}, arg); - delete argCopy[refPropertyName]; - return { args: [argCopy], ref }; -} -const { cssFactory } = (() => { - function merge(registered, css, className) { - const registeredStyles = []; - const rawClassName = (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.getRegisteredStyles)(registered, registeredStyles, className); - if (registeredStyles.length < 2) { - return className; - } - return rawClassName + css(registeredStyles); - } - function _cssFactory(params) { - const { cache } = params; - const css = (...styles) => { - const { ref, args } = getRef(styles); - const serialized = (0,_emotion_serialize__WEBPACK_IMPORTED_MODULE_1__.serializeStyles)(args, cache.registered); - (0,_emotion_utils__WEBPACK_IMPORTED_MODULE_2__.insertStyles)(cache, serialized, false); - return `${cache.key}-${serialized.name}${ref === void 0 ? "" : ` ${ref}`}`; - }; - const cx = (...args) => merge(cache.registered, css, (0,clsx__WEBPACK_IMPORTED_MODULE_0__["default"])(args)); - return { css, cx }; - } - return { cssFactory: _cssFactory }; -})(); -function useCss() { - const cache = (0,_use_emotion_cache_js__WEBPACK_IMPORTED_MODULE_3__.useEmotionCache)(); - return (0,_utils_use_guaranteed_memo_use_guaranteed_memo_js__WEBPACK_IMPORTED_MODULE_4__.useGuaranteedMemo)(() => cssFactory({ cache }), [cache]); -} - - -//# sourceMappingURL=use-css.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/tss/use-emotion-cache.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/tss/use-emotion-cache.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useEmotionCache: () => (/* binding */ useEmotionCache) -/* harmony export */ }); -/* harmony import */ var _default_emotion_cache_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./default-emotion-cache.js */ "./node_modules/@mantine/styles/esm/tss/default-emotion-cache.js"); -/* harmony import */ var _theme_MantineProvider_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../theme/MantineProvider.js */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); - - - -function useEmotionCache() { - const cache = (0,_theme_MantineProvider_js__WEBPACK_IMPORTED_MODULE_0__.useMantineEmotionCache)(); - return cache || _default_emotion_cache_js__WEBPACK_IMPORTED_MODULE_1__.defaultMantineEmotionCache; -} - - -//# sourceMappingURL=use-emotion-cache.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/tss/utils/merge-class-names/merge-class-names.js": -/*!*******************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/tss/utils/merge-class-names/merge-class-names.js ***! - \*******************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ mergeClassNames: () => (/* binding */ mergeClassNames) -/* harmony export */ }); -function mergeClassNames({ - cx, - classes, - context, - classNames, - name, - cache -}) { - const contextClassNames = context.reduce((acc, item) => { - Object.keys(item.classNames).forEach((key) => { - if (typeof acc[key] !== "string") { - acc[key] = `${item.classNames[key]}`; - } else { - acc[key] = `${acc[key]} ${item.classNames[key]}`; - } - }); - return acc; - }, {}); - return Object.keys(classes).reduce((acc, className) => { - acc[className] = cx(classes[className], contextClassNames[className], classNames != null && classNames[className], Array.isArray(name) ? name.filter(Boolean).map((part) => `${(cache == null ? void 0 : cache.key) || "mantine"}-${part}-${className}`).join(" ") : name ? `${(cache == null ? void 0 : cache.key) || "mantine"}-${name}-${className}` : null); - return acc; - }, {}); -} - - -//# sourceMappingURL=merge-class-names.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/styles/esm/tss/utils/use-guaranteed-memo/use-guaranteed-memo.js": -/*!***********************************************************************************************!*\ - !*** ./node_modules/@mantine/styles/esm/tss/utils/use-guaranteed-memo/use-guaranteed-memo.js ***! - \***********************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useGuaranteedMemo: () => (/* binding */ useGuaranteedMemo) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useGuaranteedMemo(fn, deps) { - const ref = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(); - if (!ref.current || deps.length !== ref.current.prevDeps.length || ref.current.prevDeps.map((v, i) => v === deps[i]).indexOf(false) >= 0) { - ref.current = { - v: fn(), - prevDeps: [...deps] - }; - } - return ref.current.v; -} - - -//# sourceMappingURL=use-guaranteed-memo.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/close-on-escape/close-on-escape.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/close-on-escape/close-on-escape.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ closeOnEscape: () => (/* binding */ closeOnEscape) -/* harmony export */ }); -/* harmony import */ var _noop_noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop/noop.js */ "./node_modules/@mantine/utils/esm/noop/noop.js"); - - -function closeOnEscape(callback, options = { active: true }) { - if (typeof callback !== "function" || !options.active) { - return options.onKeyDown || _noop_noop_js__WEBPACK_IMPORTED_MODULE_0__.noop; - } - return (event) => { - var _a; - if (event.key === "Escape") { - callback(event); - (_a = options.onTrigger) == null ? void 0 : _a.call(options); - } - }; -} - - -//# sourceMappingURL=close-on-escape.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/create-event-handler/create-event-handler.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/create-event-handler/create-event-handler.js ***! - \**************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createEventHandler: () => (/* binding */ createEventHandler) -/* harmony export */ }); -function createEventHandler(parentEventHandler, eventHandler) { - return (event) => { - parentEventHandler == null ? void 0 : parentEventHandler(event); - eventHandler == null ? void 0 : eventHandler(event); - }; -} - - -//# sourceMappingURL=create-event-handler.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js": -/*!******************************************************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/create-polymorphic-component/create-polymorphic-component.js ***! - \******************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createPolymorphicComponent: () => (/* binding */ createPolymorphicComponent) -/* harmony export */ }); -function createPolymorphicComponent(component) { - return component; -} - - -//# sourceMappingURL=create-polymorphic-component.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/create-safe-context/create-safe-context.js": -/*!************************************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/create-safe-context/create-safe-context.js ***! - \************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createSafeContext: () => (/* binding */ createSafeContext) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function createSafeContext(errorMessage) { - const Context = (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null); - const useSafeContext = () => { - const ctx = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context); - if (ctx === null) { - throw new Error(errorMessage); - } - return ctx; - }; - const Provider = ({ children, value }) => /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Context.Provider, { - value - }, children); - return [Provider, useSafeContext]; -} - - -//# sourceMappingURL=create-safe-context.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/create-scoped-keydown-handler/create-scoped-keydown-handler.js": -/*!********************************************************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/create-scoped-keydown-handler/create-scoped-keydown-handler.js ***! - \********************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createScopedKeydownHandler: () => (/* binding */ createScopedKeydownHandler) -/* harmony export */ }); -/* harmony import */ var _find_element_ancestor_find_element_ancestor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../find-element-ancestor/find-element-ancestor.js */ "./node_modules/@mantine/utils/esm/find-element-ancestor/find-element-ancestor.js"); - - -function getPreviousIndex(current, elements, loop) { - for (let i = current - 1; i >= 0; i -= 1) { - if (!elements[i].disabled) { - return i; - } - } - if (loop) { - for (let i = elements.length - 1; i > -1; i -= 1) { - if (!elements[i].disabled) { - return i; - } - } - } - return current; -} -function getNextIndex(current, elements, loop) { - for (let i = current + 1; i < elements.length; i += 1) { - if (!elements[i].disabled) { - return i; - } - } - if (loop) { - for (let i = 0; i < elements.length; i += 1) { - if (!elements[i].disabled) { - return i; - } - } - } - return current; -} -function onSameLevel(target, sibling, parentSelector) { - return (0,_find_element_ancestor_find_element_ancestor_js__WEBPACK_IMPORTED_MODULE_0__.findElementAncestor)(target, parentSelector) === (0,_find_element_ancestor_find_element_ancestor_js__WEBPACK_IMPORTED_MODULE_0__.findElementAncestor)(sibling, parentSelector); -} -function createScopedKeydownHandler({ - parentSelector, - siblingSelector, - onKeyDown, - loop = true, - activateOnFocus = false, - dir = "rtl", - orientation -}) { - return (event) => { - var _a; - onKeyDown == null ? void 0 : onKeyDown(event); - const elements = Array.from(((_a = (0,_find_element_ancestor_find_element_ancestor_js__WEBPACK_IMPORTED_MODULE_0__.findElementAncestor)(event.currentTarget, parentSelector)) == null ? void 0 : _a.querySelectorAll(siblingSelector)) || []).filter((node) => onSameLevel(event.currentTarget, node, parentSelector)); - const current = elements.findIndex((el) => event.currentTarget === el); - const _nextIndex = getNextIndex(current, elements, loop); - const _previousIndex = getPreviousIndex(current, elements, loop); - const nextIndex = dir === "rtl" ? _previousIndex : _nextIndex; - const previousIndex = dir === "rtl" ? _nextIndex : _previousIndex; - switch (event.key) { - case "ArrowRight": { - if (orientation === "horizontal") { - event.stopPropagation(); - event.preventDefault(); - elements[nextIndex].focus(); - activateOnFocus && elements[nextIndex].click(); - } - break; - } - case "ArrowLeft": { - if (orientation === "horizontal") { - event.stopPropagation(); - event.preventDefault(); - elements[previousIndex].focus(); - activateOnFocus && elements[previousIndex].click(); - } - break; - } - case "ArrowUp": { - if (orientation === "vertical") { - event.stopPropagation(); - event.preventDefault(); - elements[_previousIndex].focus(); - activateOnFocus && elements[_previousIndex].click(); - } - break; - } - case "ArrowDown": { - if (orientation === "vertical") { - event.stopPropagation(); - event.preventDefault(); - elements[_nextIndex].focus(); - activateOnFocus && elements[_nextIndex].click(); - } - break; - } - case "Home": { - event.stopPropagation(); - event.preventDefault(); - !elements[0].disabled && elements[0].focus(); - break; - } - case "End": { - event.stopPropagation(); - event.preventDefault(); - const last = elements.length - 1; - !elements[last].disabled && elements[last].focus(); - break; - } - } - }; -} - - -//# sourceMappingURL=create-scoped-keydown-handler.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/create-use-external-events/create-use-external-events.js": -/*!**************************************************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/create-use-external-events/create-use-external-events.js ***! - \**************************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createUseExternalEvents: () => (/* binding */ createUseExternalEvents) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function dispatchEvent(type, detail) { - window.dispatchEvent(new CustomEvent(type, { detail })); -} -const useIsomorphicEffect = typeof window !== "undefined" ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_0__.useEffect; -function createUseExternalEvents(prefix) { - function _useExternalEvents(events) { - const handlers = Object.keys(events).reduce((acc, eventKey) => { - acc[`${prefix}:${eventKey}`] = (event) => events[eventKey](event.detail); - return acc; - }, {}); - useIsomorphicEffect(() => { - Object.keys(handlers).forEach((eventKey) => { - window.removeEventListener(eventKey, handlers[eventKey]); - window.addEventListener(eventKey, handlers[eventKey]); - }); - return () => Object.keys(handlers).forEach((eventKey) => { - window.removeEventListener(eventKey, handlers[eventKey]); - }); - }, [handlers]); - } - function createEvent(event) { - return (...payload) => dispatchEvent(`${prefix}:${String(event)}`, payload[0]); - } - return [_useExternalEvents, createEvent]; -} - - -//# sourceMappingURL=create-use-external-events.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/find-element-ancestor/find-element-ancestor.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/find-element-ancestor/find-element-ancestor.js ***! - \****************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ findElementAncestor: () => (/* binding */ findElementAncestor) -/* harmony export */ }); -function findElementAncestor(element, selector) { - let _element = element; - while ((_element = _element.parentElement) && !_element.matches(selector)) - ; - return _element; -} - - -//# sourceMappingURL=find-element-ancestor.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/get-context-item-index/get-context-item-index.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/get-context-item-index/get-context-item-index.js ***! - \******************************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getContextItemIndex: () => (/* binding */ getContextItemIndex) -/* harmony export */ }); -/* harmony import */ var _find_element_ancestor_find_element_ancestor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../find-element-ancestor/find-element-ancestor.js */ "./node_modules/@mantine/utils/esm/find-element-ancestor/find-element-ancestor.js"); - - -function getContextItemIndex(elementSelector, parentSelector, node) { - var _a; - if (!node) { - return null; - } - return Array.from(((_a = (0,_find_element_ancestor_find_element_ancestor_js__WEBPACK_IMPORTED_MODULE_0__.findElementAncestor)(node, parentSelector)) == null ? void 0 : _a.querySelectorAll(elementSelector)) || []).findIndex((element) => element === node); -} - - -//# sourceMappingURL=get-context-item-index.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/group-options/group-options.js": -/*!************************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/group-options/group-options.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getGroupedOptions: () => (/* binding */ getGroupedOptions), -/* harmony export */ groupOptions: () => (/* binding */ groupOptions) -/* harmony export */ }); -function groupOptions({ data }) { - const sortedData = []; - const unGroupedData = []; - const groupedData = data.reduce((acc, item, index) => { - if (item.group) { - if (acc[item.group]) - acc[item.group].push(index); - else - acc[item.group] = [index]; - } else { - unGroupedData.push(index); - } - return acc; - }, {}); - Object.keys(groupedData).forEach((groupName) => { - sortedData.push(...groupedData[groupName].map((index) => data[index])); - }); - sortedData.push(...unGroupedData.map((itemIndex) => data[itemIndex])); - return sortedData; -} -function getGroupedOptions(data) { - const sorted = groupOptions({ data }); - const unGrouped = []; - const grouped = []; - let groupName = null; - sorted.forEach((item, index) => { - if (!item.group) { - unGrouped.push({ type: "item", item, index }); - } else { - if (groupName !== item.group) { - groupName = item.group; - grouped.push({ type: "label", label: groupName }); - } - grouped.push({ type: "item", item, index }); - } - }); - return { - grouped, - unGrouped, - items: [...grouped, ...unGrouped], - hasItems: grouped.length > 0 || unGrouped.length > 0 - }; -} - - -//# sourceMappingURL=group-options.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/is-element/is-element.js": -/*!******************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/is-element/is-element.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ isElement: () => (/* binding */ isElement) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function isElement(value) { - if (Array.isArray(value) || value === null) { - return false; - } - if (typeof value === "object") { - if (value.type === (react__WEBPACK_IMPORTED_MODULE_0___default().Fragment)) { - return false; - } - return true; - } - return false; -} - - -//# sourceMappingURL=is-element.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/noop/noop.js": -/*!******************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/noop/noop.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ noop: () => (/* binding */ noop) -/* harmony export */ }); -const noop = () => { -}; - - -//# sourceMappingURL=noop.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/pack-sx/pack-sx.js": -/*!************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/pack-sx/pack-sx.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ packSx: () => (/* binding */ packSx) -/* harmony export */ }); -function packSx(sx) { - return Array.isArray(sx) ? sx : [sx]; -} - - -//# sourceMappingURL=pack-sx.js.map - - -/***/ }), - -/***/ "./node_modules/@mantine/utils/esm/use-hovered/use-hovered.js": -/*!********************************************************************!*\ - !*** ./node_modules/@mantine/utils/esm/use-hovered/use-hovered.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useHovered: () => (/* binding */ useHovered) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - -function useHovered() { - const [hovered, setHovered] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(-1); - const resetHovered = () => setHovered(-1); - return [hovered, { setHovered, resetHovered }]; -} - - -//# sourceMappingURL=use-hovered.js.map - - -/***/ }), - -/***/ "./node_modules/@nextcloud/auth/dist/index.js": -/*!****************************************************!*\ - !*** ./node_modules/@nextcloud/auth/dist/index.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -Object.defineProperty(exports, "getRequestToken", ({ - enumerable: true, - get: function get() { - return _requesttoken.getRequestToken; - } -})); -Object.defineProperty(exports, "onRequestTokenUpdate", ({ - enumerable: true, - get: function get() { - return _requesttoken.onRequestTokenUpdate; - } -})); -Object.defineProperty(exports, "getCurrentUser", ({ - enumerable: true, - get: function get() { - return _user.getCurrentUser; - } -})); - -var _requesttoken = __webpack_require__(/*! ./requesttoken */ "./node_modules/@nextcloud/auth/dist/requesttoken.js"); - -var _user = __webpack_require__(/*! ./user */ "./node_modules/@nextcloud/auth/dist/user.js"); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@nextcloud/auth/dist/requesttoken.js": -/*!***********************************************************!*\ - !*** ./node_modules/@nextcloud/auth/dist/requesttoken.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -__webpack_require__(/*! core-js/modules/es.array.for-each */ "./node_modules/core-js/modules/es.array.for-each.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getRequestToken = getRequestToken; -exports.onRequestTokenUpdate = onRequestTokenUpdate; - -var _eventBus = __webpack_require__(/*! @nextcloud/event-bus */ "./node_modules/@nextcloud/event-bus/dist/index.es.js"); - -var tokenElement = document.getElementsByTagName('head')[0]; -var token = tokenElement ? tokenElement.getAttribute('data-requesttoken') : null; -var observers = []; - -function getRequestToken() { - return token; -} - -function onRequestTokenUpdate(observer) { - observers.push(observer); -} // Listen to server event and keep token in sync - - -(0, _eventBus.subscribe)('csrf-token-update', function (e) { - token = e.token; - observers.forEach(function (observer) { - try { - observer(e.token); - } catch (e) { - console.error('error updating CSRF token observer', e); - } - }); -}); -//# sourceMappingURL=requesttoken.js.map - -/***/ }), - -/***/ "./node_modules/@nextcloud/auth/dist/user.js": -/*!***************************************************!*\ - !*** ./node_modules/@nextcloud/auth/dist/user.js ***! - \***************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.getCurrentUser = getCurrentUser; -/// -var uidElement = document.getElementsByTagName('head')[0]; -var uid = uidElement ? uidElement.getAttribute('data-user') : null; -var displayNameElement = document.getElementsByTagName('head')[0]; -var displayName = displayNameElement ? displayNameElement.getAttribute('data-user-displayname') : null; -var isAdmin = typeof OC === 'undefined' ? false : OC.isUserAdmin(); - -function getCurrentUser() { - if (uid === null) { - return null; - } - - return { - uid: uid, - displayName: displayName, - isAdmin: isAdmin - }; -} -//# sourceMappingURL=user.js.map - -/***/ }), - -/***/ "./node_modules/@nextcloud/axios/dist/index.js": -/*!*****************************************************!*\ - !*** ./node_modules/@nextcloud/axios/dist/index.js ***! - \*****************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -__webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js"); - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; - -__webpack_require__(/*! core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js"); - -var _axios = _interopRequireDefault(__webpack_require__(/*! axios */ "./node_modules/axios/index.js")); - -var _auth = __webpack_require__(/*! @nextcloud/auth */ "./node_modules/@nextcloud/auth/dist/index.js"); - -var _getRequestToken; - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -var client = _axios.default.create({ - headers: { - requesttoken: (_getRequestToken = (0, _auth.getRequestToken)()) !== null && _getRequestToken !== void 0 ? _getRequestToken : '' - } -}); - -var cancelableClient = Object.assign(client, { - CancelToken: _axios.default.CancelToken, - isCancel: _axios.default.isCancel -}); -(0, _auth.onRequestTokenUpdate)(function (token) { - return client.defaults.headers.requesttoken = token; -}); -var _default = cancelableClient; -exports["default"] = _default; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@nextcloud/event-bus/dist/index.es.js": -/*!************************************************************!*\ - !*** ./node_modules/@nextcloud/event-bus/dist/index.es.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ emit: () => (/* binding */ emit), -/* harmony export */ subscribe: () => (/* binding */ subscribe), -/* harmony export */ unsubscribe: () => (/* binding */ unsubscribe) -/* harmony export */ }); -/* provided dependency */ var process = __webpack_require__(/*! ./node_modules/process/browser.js */ "./node_modules/process/browser.js"); -var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : typeof self !== 'undefined' ? self : {}; - -function createCommonjsModule(fn) { - var module = { exports: {} }; - return fn(module, module.exports), module.exports; -} - -var check = function (it) { - return it && it.Math == Math && it; -}; - -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -var global$1 = - // eslint-disable-next-line es/no-global-this -- safe - check(typeof globalThis == 'object' && globalThis) || - check(typeof window == 'object' && window) || - // eslint-disable-next-line no-restricted-globals -- safe - check(typeof self == 'object' && self) || - check(typeof commonjsGlobal == 'object' && commonjsGlobal) || - // eslint-disable-next-line no-new-func -- fallback - (function () { return this; })() || Function('return this')(); - -var fails = function (exec) { - try { - return !!exec(); - } catch (error) { - return true; - } -}; - -// Detect IE8's incomplete defineProperty implementation -var descriptors = !fails(function () { - // eslint-disable-next-line es/no-object-defineproperty -- required for testing - return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; -}); - -var $propertyIsEnumerable = {}.propertyIsEnumerable; -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe -var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor; - -// Nashorn ~ JDK8 bug -var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1); - -// `Object.prototype.propertyIsEnumerable` method implementation -// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable -var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) { - var descriptor = getOwnPropertyDescriptor$2(this, V); - return !!descriptor && descriptor.enumerable; -} : $propertyIsEnumerable; - -var objectPropertyIsEnumerable = { - f: f$4 -}; - -var createPropertyDescriptor = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; -}; - -var toString = {}.toString; - -var classofRaw = function (it) { - return toString.call(it).slice(8, -1); -}; - -var split = ''.split; - -// fallback for non-array-like ES3 and non-enumerable old V8 strings -var indexedObject = fails(function () { - // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 - // eslint-disable-next-line no-prototype-builtins -- safe - return !Object('z').propertyIsEnumerable(0); -}) ? function (it) { - return classofRaw(it) == 'String' ? split.call(it, '') : Object(it); -} : Object; - -// `RequireObjectCoercible` abstract operation -// https://tc39.es/ecma262/#sec-requireobjectcoercible -var requireObjectCoercible = function (it) { - if (it == undefined) throw TypeError("Can't call method on " + it); - return it; -}; - -// toObject with fallback for non-array-like ES3 strings - - - -var toIndexedObject = function (it) { - return indexedObject(requireObjectCoercible(it)); -}; - -var isObject = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; -}; - -// `ToPrimitive` abstract operation -// https://tc39.es/ecma262/#sec-toprimitive -// instead of the ES6 spec version, we didn't implement @@toPrimitive case -// and the second argument - flag - preferred type is a string -var toPrimitive = function (input, PREFERRED_STRING) { - if (!isObject(input)) return input; - var fn, val; - if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; - if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val; - if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val; - throw TypeError("Can't convert object to primitive value"); -}; - -// `ToObject` abstract operation -// https://tc39.es/ecma262/#sec-toobject -var toObject = function (argument) { - return Object(requireObjectCoercible(argument)); -}; - -var hasOwnProperty = {}.hasOwnProperty; - -var has$1 = function hasOwn(it, key) { - return hasOwnProperty.call(toObject(it), key); -}; - -var document$1 = global$1.document; -// typeof document.createElement is 'object' in old IE -var EXISTS = isObject(document$1) && isObject(document$1.createElement); - -var documentCreateElement = function (it) { - return EXISTS ? document$1.createElement(it) : {}; -}; - -// Thank's IE8 for his funny defineProperty -var ie8DomDefine = !descriptors && !fails(function () { - // eslint-disable-next-line es/no-object-defineproperty -- requied for testing - return Object.defineProperty(documentCreateElement('div'), 'a', { - get: function () { return 7; } - }).a != 7; -}); - -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe -var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - -// `Object.getOwnPropertyDescriptor` method -// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor -var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { - O = toIndexedObject(O); - P = toPrimitive(P, true); - if (ie8DomDefine) try { - return $getOwnPropertyDescriptor(O, P); - } catch (error) { /* empty */ } - if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]); -}; - -var objectGetOwnPropertyDescriptor = { - f: f$3 -}; - -var anObject = function (it) { - if (!isObject(it)) { - throw TypeError(String(it) + ' is not an object'); - } return it; -}; - -// eslint-disable-next-line es/no-object-defineproperty -- safe -var $defineProperty = Object.defineProperty; - -// `Object.defineProperty` method -// https://tc39.es/ecma262/#sec-object.defineproperty -var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPrimitive(P, true); - anObject(Attributes); - if (ie8DomDefine) try { - return $defineProperty(O, P, Attributes); - } catch (error) { /* empty */ } - if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); - if ('value' in Attributes) O[P] = Attributes.value; - return O; -}; - -var objectDefineProperty = { - f: f$2 -}; - -var createNonEnumerableProperty = descriptors ? function (object, key, value) { - return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value)); -} : function (object, key, value) { - object[key] = value; - return object; -}; - -var setGlobal = function (key, value) { - try { - createNonEnumerableProperty(global$1, key, value); - } catch (error) { - global$1[key] = value; - } return value; -}; - -var SHARED = '__core-js_shared__'; -var store$1 = global$1[SHARED] || setGlobal(SHARED, {}); - -var sharedStore = store$1; - -var functionToString = Function.toString; - -// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper -if (typeof sharedStore.inspectSource != 'function') { - sharedStore.inspectSource = function (it) { - return functionToString.call(it); - }; -} - -var inspectSource = sharedStore.inspectSource; - -var WeakMap$1 = global$1.WeakMap; - -var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1)); - -var shared = createCommonjsModule(function (module) { -(module.exports = function (key, value) { - return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {}); -})('versions', []).push({ - version: '3.11.2', - mode: 'global', - copyright: '© 2021 Denis Pushkarev (zloirock.ru)' -}); -}); - -var id = 0; -var postfix = Math.random(); - -var uid = function (key) { - return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); -}; - -var keys$2 = shared('keys'); - -var sharedKey = function (key) { - return keys$2[key] || (keys$2[key] = uid(key)); -}; - -var hiddenKeys$1 = {}; - -var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; -var WeakMap = global$1.WeakMap; -var set, get, has; - -var enforce = function (it) { - return has(it) ? get(it) : set(it, {}); -}; - -var getterFor = function (TYPE) { - return function (it) { - var state; - if (!isObject(it) || (state = get(it)).type !== TYPE) { - throw TypeError('Incompatible receiver, ' + TYPE + ' required'); - } return state; - }; -}; - -if (nativeWeakMap) { - var store = sharedStore.state || (sharedStore.state = new WeakMap()); - var wmget = store.get; - var wmhas = store.has; - var wmset = store.set; - set = function (it, metadata) { - if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); - metadata.facade = it; - wmset.call(store, it, metadata); - return metadata; - }; - get = function (it) { - return wmget.call(store, it) || {}; - }; - has = function (it) { - return wmhas.call(store, it); - }; -} else { - var STATE = sharedKey('state'); - hiddenKeys$1[STATE] = true; - set = function (it, metadata) { - if (has$1(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); - metadata.facade = it; - createNonEnumerableProperty(it, STATE, metadata); - return metadata; - }; - get = function (it) { - return has$1(it, STATE) ? it[STATE] : {}; - }; - has = function (it) { - return has$1(it, STATE); - }; -} - -var internalState = { - set: set, - get: get, - has: has, - enforce: enforce, - getterFor: getterFor -}; - -var redefine = createCommonjsModule(function (module) { -var getInternalState = internalState.get; -var enforceInternalState = internalState.enforce; -var TEMPLATE = String(String).split('String'); - -(module.exports = function (O, key, value, options) { - var unsafe = options ? !!options.unsafe : false; - var simple = options ? !!options.enumerable : false; - var noTargetGet = options ? !!options.noTargetGet : false; - var state; - if (typeof value == 'function') { - if (typeof key == 'string' && !has$1(value, 'name')) { - createNonEnumerableProperty(value, 'name', key); - } - state = enforceInternalState(value); - if (!state.source) { - state.source = TEMPLATE.join(typeof key == 'string' ? key : ''); - } - } - if (O === global$1) { - if (simple) O[key] = value; - else setGlobal(key, value); - return; - } else if (!unsafe) { - delete O[key]; - } else if (!noTargetGet && O[key]) { - simple = true; - } - if (simple) O[key] = value; - else createNonEnumerableProperty(O, key, value); -// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative -})(Function.prototype, 'toString', function toString() { - return typeof this == 'function' && getInternalState(this).source || inspectSource(this); -}); -}); - -var path = global$1; - -var aFunction$1 = function (variable) { - return typeof variable == 'function' ? variable : undefined; -}; - -var getBuiltIn = function (namespace, method) { - return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global$1[namespace]) - : path[namespace] && path[namespace][method] || global$1[namespace] && global$1[namespace][method]; -}; - -var ceil = Math.ceil; -var floor = Math.floor; - -// `ToInteger` abstract operation -// https://tc39.es/ecma262/#sec-tointeger -var toInteger = function (argument) { - return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); -}; - -var min$2 = Math.min; - -// `ToLength` abstract operation -// https://tc39.es/ecma262/#sec-tolength -var toLength = function (argument) { - return argument > 0 ? min$2(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 -}; - -var max = Math.max; -var min$1 = Math.min; - -// Helper for a popular repeating case of the spec: -// Let integer be ? ToInteger(index). -// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). -var toAbsoluteIndex = function (index, length) { - var integer = toInteger(index); - return integer < 0 ? max(integer + length, 0) : min$1(integer, length); -}; - -// `Array.prototype.{ indexOf, includes }` methods implementation -var createMethod$3 = function (IS_INCLUDES) { - return function ($this, el, fromIndex) { - var O = toIndexedObject($this); - var length = toLength(O.length); - var index = toAbsoluteIndex(fromIndex, length); - var value; - // Array#includes uses SameValueZero equality algorithm - // eslint-disable-next-line no-self-compare -- NaN check - if (IS_INCLUDES && el != el) while (length > index) { - value = O[index++]; - // eslint-disable-next-line no-self-compare -- NaN check - if (value != value) return true; - // Array#indexOf ignores holes, Array#includes - not - } else for (;length > index; index++) { - if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; - } return !IS_INCLUDES && -1; - }; -}; - -var arrayIncludes = { - // `Array.prototype.includes` method - // https://tc39.es/ecma262/#sec-array.prototype.includes - includes: createMethod$3(true), - // `Array.prototype.indexOf` method - // https://tc39.es/ecma262/#sec-array.prototype.indexof - indexOf: createMethod$3(false) -}; - -var indexOf = arrayIncludes.indexOf; - - -var objectKeysInternal = function (object, names) { - var O = toIndexedObject(object); - var i = 0; - var result = []; - var key; - for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key); - // Don't enum bug & hidden keys - while (names.length > i) if (has$1(O, key = names[i++])) { - ~indexOf(result, key) || result.push(key); - } - return result; -}; - -// IE8- don't enum bug keys -var enumBugKeys = [ - 'constructor', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'toLocaleString', - 'toString', - 'valueOf' -]; - -var hiddenKeys = enumBugKeys.concat('length', 'prototype'); - -// `Object.getOwnPropertyNames` method -// https://tc39.es/ecma262/#sec-object.getownpropertynames -// eslint-disable-next-line es/no-object-getownpropertynames -- safe -var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return objectKeysInternal(O, hiddenKeys); -}; - -var objectGetOwnPropertyNames = { - f: f$1 -}; - -// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe -var f = Object.getOwnPropertySymbols; - -var objectGetOwnPropertySymbols = { - f: f -}; - -// all object keys, includes non-enumerable and symbols -var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { - var keys = objectGetOwnPropertyNames.f(anObject(it)); - var getOwnPropertySymbols = objectGetOwnPropertySymbols.f; - return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; -}; - -var copyConstructorProperties = function (target, source) { - var keys = ownKeys(source); - var defineProperty = objectDefineProperty.f; - var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); - } -}; - -var replacement = /#|\.prototype\./; - -var isForced = function (feature, detection) { - var value = data[normalize(feature)]; - return value == POLYFILL ? true - : value == NATIVE ? false - : typeof detection == 'function' ? fails(detection) - : !!detection; -}; - -var normalize = isForced.normalize = function (string) { - return String(string).replace(replacement, '.').toLowerCase(); -}; - -var data = isForced.data = {}; -var NATIVE = isForced.NATIVE = 'N'; -var POLYFILL = isForced.POLYFILL = 'P'; - -var isForced_1 = isForced; - -var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; - - - - - - -/* - options.target - name of the target object - options.global - target is the global object - options.stat - export as static methods of target - options.proto - export as prototype methods of target - options.real - real prototype method for the `pure` version - options.forced - export even if the native feature is available - options.bind - bind methods to the target, required for the `pure` version - options.wrap - wrap constructors to preventing global pollution, required for the `pure` version - options.unsafe - use the simple assignment of property instead of delete + defineProperty - options.sham - add a flag to not completely full polyfills - options.enumerable - export as enumerable property - options.noTargetGet - prevent calling a getter on target -*/ -var _export = function (options, source) { - var TARGET = options.target; - var GLOBAL = options.global; - var STATIC = options.stat; - var FORCED, target, key, targetProperty, sourceProperty, descriptor; - if (GLOBAL) { - target = global$1; - } else if (STATIC) { - target = global$1[TARGET] || setGlobal(TARGET, {}); - } else { - target = (global$1[TARGET] || {}).prototype; - } - if (target) for (key in source) { - sourceProperty = source[key]; - if (options.noTargetGet) { - descriptor = getOwnPropertyDescriptor$1(target, key); - targetProperty = descriptor && descriptor.value; - } else targetProperty = target[key]; - FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); - // contained in target - if (!FORCED && targetProperty !== undefined) { - if (typeof sourceProperty === typeof targetProperty) continue; - copyConstructorProperties(sourceProperty, targetProperty); - } - // add a flag to not completely full polyfills - if (options.sham || (targetProperty && targetProperty.sham)) { - createNonEnumerableProperty(sourceProperty, 'sham', true); - } - // extend global - redefine(target, key, sourceProperty, options); - } -}; - -// `Number.MAX_SAFE_INTEGER` constant -// https://tc39.es/ecma262/#sec-number.max_safe_integer -_export({ target: 'Number', stat: true }, { - MAX_SAFE_INTEGER: 0x1FFFFFFFFFFFFF -}); - -var aPossiblePrototype = function (it) { - if (!isObject(it) && it !== null) { - throw TypeError("Can't set " + String(it) + ' as a prototype'); - } return it; -}; - -/* eslint-disable no-proto -- safe */ - -// `Object.setPrototypeOf` method -// https://tc39.es/ecma262/#sec-object.setprototypeof -// Works with __proto__ only. Old v8 can't work with null proto objects. -// eslint-disable-next-line es/no-object-setprototypeof -- safe -var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () { - var CORRECT_SETTER = false; - var test = {}; - var setter; - try { - // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe - setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set; - setter.call(test, []); - CORRECT_SETTER = test instanceof Array; - } catch (error) { /* empty */ } - return function setPrototypeOf(O, proto) { - anObject(O); - aPossiblePrototype(proto); - if (CORRECT_SETTER) setter.call(O, proto); - else O.__proto__ = proto; - return O; - }; -}() : undefined); - -// makes subclassing work correct for wrapped built-ins -var inheritIfRequired = function ($this, dummy, Wrapper) { - var NewTarget, NewTargetPrototype; - if ( - // it can work only with native `setPrototypeOf` - objectSetPrototypeOf && - // we haven't completely correct pre-ES6 way for getting `new.target`, so use this - typeof (NewTarget = dummy.constructor) == 'function' && - NewTarget !== Wrapper && - isObject(NewTargetPrototype = NewTarget.prototype) && - NewTargetPrototype !== Wrapper.prototype - ) objectSetPrototypeOf($this, NewTargetPrototype); - return $this; -}; - -// `Object.keys` method -// https://tc39.es/ecma262/#sec-object.keys -// eslint-disable-next-line es/no-object-keys -- safe -var objectKeys = Object.keys || function keys(O) { - return objectKeysInternal(O, enumBugKeys); -}; - -// `Object.defineProperties` method -// https://tc39.es/ecma262/#sec-object.defineproperties -// eslint-disable-next-line es/no-object-defineproperties -- safe -var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) { - anObject(O); - var keys = objectKeys(Properties); - var length = keys.length; - var index = 0; - var key; - while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]); - return O; -}; - -var html = getBuiltIn('document', 'documentElement'); - -var GT = '>'; -var LT = '<'; -var PROTOTYPE = 'prototype'; -var SCRIPT = 'script'; -var IE_PROTO$1 = sharedKey('IE_PROTO'); - -var EmptyConstructor = function () { /* empty */ }; - -var scriptTag = function (content) { - return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; -}; - -// Create object with fake `null` prototype: use ActiveX Object with cleared prototype -var NullProtoObjectViaActiveX = function (activeXDocument) { - activeXDocument.write(scriptTag('')); - activeXDocument.close(); - var temp = activeXDocument.parentWindow.Object; - activeXDocument = null; // avoid memory leak - return temp; -}; - -// Create object with fake `null` prototype: use iframe Object with cleared prototype -var NullProtoObjectViaIFrame = function () { - // Thrash, waste and sodomy: IE GC bug - var iframe = documentCreateElement('iframe'); - var JS = 'java' + SCRIPT + ':'; - var iframeDocument; - iframe.style.display = 'none'; - html.appendChild(iframe); - // https://github.com/zloirock/core-js/issues/475 - iframe.src = String(JS); - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(scriptTag('document.F=Object')); - iframeDocument.close(); - return iframeDocument.F; -}; - -// Check for document.domain and active x support -// No need to use active x approach when document.domain is not set -// see https://github.com/es-shims/es5-shim/issues/150 -// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 -// avoid IE GC bug -var activeXDocument; -var NullProtoObject = function () { - try { - /* global ActiveXObject -- old IE */ - activeXDocument = document.domain && new ActiveXObject('htmlfile'); - } catch (error) { /* ignore */ } - NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame(); - var length = enumBugKeys.length; - while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; - return NullProtoObject(); -}; - -hiddenKeys$1[IE_PROTO$1] = true; - -// `Object.create` method -// https://tc39.es/ecma262/#sec-object.create -var objectCreate = Object.create || function create(O, Properties) { - var result; - if (O !== null) { - EmptyConstructor[PROTOTYPE] = anObject(O); - result = new EmptyConstructor(); - EmptyConstructor[PROTOTYPE] = null; - // add "__proto__" for Object.getPrototypeOf polyfill - result[IE_PROTO$1] = O; - } else result = NullProtoObject(); - return Properties === undefined ? result : objectDefineProperties(result, Properties); -}; - -// a string of all valid unicode whitespaces -var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' + - '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; - -var whitespace = '[' + whitespaces + ']'; -var ltrim = RegExp('^' + whitespace + whitespace + '*'); -var rtrim = RegExp(whitespace + whitespace + '*$'); - -// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation -var createMethod$2 = function (TYPE) { - return function ($this) { - var string = String(requireObjectCoercible($this)); - if (TYPE & 1) string = string.replace(ltrim, ''); - if (TYPE & 2) string = string.replace(rtrim, ''); - return string; - }; -}; - -var stringTrim = { - // `String.prototype.{ trimLeft, trimStart }` methods - // https://tc39.es/ecma262/#sec-string.prototype.trimstart - start: createMethod$2(1), - // `String.prototype.{ trimRight, trimEnd }` methods - // https://tc39.es/ecma262/#sec-string.prototype.trimend - end: createMethod$2(2), - // `String.prototype.trim` method - // https://tc39.es/ecma262/#sec-string.prototype.trim - trim: createMethod$2(3) -}; - -var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f; -var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; -var defineProperty$3 = objectDefineProperty.f; -var trim = stringTrim.trim; - -var NUMBER = 'Number'; -var NativeNumber = global$1[NUMBER]; -var NumberPrototype = NativeNumber.prototype; - -// Opera ~12 has broken Object#toString -var BROKEN_CLASSOF = classofRaw(objectCreate(NumberPrototype)) == NUMBER; - -// `ToNumber` abstract operation -// https://tc39.es/ecma262/#sec-tonumber -var toNumber = function (argument) { - var it = toPrimitive(argument, false); - var first, third, radix, maxCode, digits, length, index, code; - if (typeof it == 'string' && it.length > 2) { - it = trim(it); - first = it.charCodeAt(0); - if (first === 43 || first === 45) { - third = it.charCodeAt(2); - if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix - } else if (first === 48) { - switch (it.charCodeAt(1)) { - case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i - case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i - default: return +it; - } - digits = it.slice(2); - length = digits.length; - for (index = 0; index < length; index++) { - code = digits.charCodeAt(index); - // parseInt parses a string to a first unavailable symbol - // but ToNumber should return NaN if a string contains unavailable symbols - if (code < 48 || code > maxCode) return NaN; - } return parseInt(digits, radix); - } - } return +it; -}; - -// `Number` constructor -// https://tc39.es/ecma262/#sec-number-constructor -if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) { - var NumberWrapper = function Number(value) { - var it = arguments.length < 1 ? 0 : value; - var dummy = this; - return dummy instanceof NumberWrapper - // check on 1..constructor(foo) case - && (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classofRaw(dummy) != NUMBER) - ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it); - }; - for (var keys$1 = descriptors ? getOwnPropertyNames$1(NativeNumber) : ( - // ES3: - 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' + - // ES2015 (in case, if modules with ES2015 Number statics required before): - 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + - 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' + - // ESNext - 'fromString,range' - ).split(','), j = 0, key; keys$1.length > j; j++) { - if (has$1(NativeNumber, key = keys$1[j]) && !has$1(NumberWrapper, key)) { - defineProperty$3(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key)); - } - } - NumberWrapper.prototype = NumberPrototype; - NumberPrototype.constructor = NumberWrapper; - redefine(global$1, NUMBER, NumberWrapper); -} - -// Note: this is the semver.org version of the spec that it implements -// Not necessarily the package version of this code. -var SEMVER_SPEC_VERSION = '2.0.0'; -var MAX_LENGTH$2 = 256; -var MAX_SAFE_INTEGER$2 = Number.MAX_SAFE_INTEGER || -/* istanbul ignore next */ -9007199254740991; // Max safe segment length for coercion. - -var MAX_SAFE_COMPONENT_LENGTH = 16; -var constants = { - SEMVER_SPEC_VERSION: SEMVER_SPEC_VERSION, - MAX_LENGTH: MAX_LENGTH$2, - MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$2, - MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH -}; - -var engineIsNode = classofRaw(global$1.process) == 'process'; - -var engineUserAgent = getBuiltIn('navigator', 'userAgent') || ''; - -var process$1 = global$1.process; -var versions = process$1 && process$1.versions; -var v8 = versions && versions.v8; -var match, version; - -if (v8) { - match = v8.split('.'); - version = match[0] + match[1]; -} else if (engineUserAgent) { - match = engineUserAgent.match(/Edge\/(\d+)/); - if (!match || match[1] >= 74) { - match = engineUserAgent.match(/Chrome\/(\d+)/); - if (match) version = match[1]; - } -} - -var engineV8Version = version && +version; - -// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing -var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () { - // eslint-disable-next-line es/no-symbol -- required for testing - return !Symbol.sham && - // Chrome 38 Symbol has incorrect toString conversion - // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances - (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41); -}); - -/* eslint-disable es/no-symbol -- required for testing */ - -var useSymbolAsUid = nativeSymbol - && !Symbol.sham - && typeof Symbol.iterator == 'symbol'; - -var WellKnownSymbolsStore = shared('wks'); -var Symbol$1 = global$1.Symbol; -var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid; - -var wellKnownSymbol = function (name) { - if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) { - if (nativeSymbol && has$1(Symbol$1, name)) { - WellKnownSymbolsStore[name] = Symbol$1[name]; - } else { - WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name); - } - } return WellKnownSymbolsStore[name]; -}; - -var MATCH$1 = wellKnownSymbol('match'); - -// `IsRegExp` abstract operation -// https://tc39.es/ecma262/#sec-isregexp -var isRegexp = function (it) { - var isRegExp; - return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp'); -}; - -// `RegExp.prototype.flags` getter implementation -// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags -var regexpFlags = function () { - var that = anObject(this); - var result = ''; - if (that.global) result += 'g'; - if (that.ignoreCase) result += 'i'; - if (that.multiline) result += 'm'; - if (that.dotAll) result += 's'; - if (that.unicode) result += 'u'; - if (that.sticky) result += 'y'; - return result; -}; - -// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError, -// so we use an intermediate function. -function RE(s, f) { - return RegExp(s, f); -} - -var UNSUPPORTED_Y$3 = fails(function () { - // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError - var re = RE('a', 'y'); - re.lastIndex = 2; - return re.exec('abcd') != null; -}); - -var BROKEN_CARET = fails(function () { - // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 - var re = RE('^r', 'gy'); - re.lastIndex = 2; - return re.exec('str') != null; -}); - -var regexpStickyHelpers = { - UNSUPPORTED_Y: UNSUPPORTED_Y$3, - BROKEN_CARET: BROKEN_CARET -}; - -var SPECIES$4 = wellKnownSymbol('species'); - -var setSpecies = function (CONSTRUCTOR_NAME) { - var Constructor = getBuiltIn(CONSTRUCTOR_NAME); - var defineProperty = objectDefineProperty.f; - - if (descriptors && Constructor && !Constructor[SPECIES$4]) { - defineProperty(Constructor, SPECIES$4, { - configurable: true, - get: function () { return this; } - }); - } -}; - -var defineProperty$2 = objectDefineProperty.f; -var getOwnPropertyNames = objectGetOwnPropertyNames.f; - - - - - -var enforceInternalState = internalState.enforce; - - - -var MATCH = wellKnownSymbol('match'); -var NativeRegExp = global$1.RegExp; -var RegExpPrototype$1 = NativeRegExp.prototype; -var re1 = /a/g; -var re2 = /a/g; - -// "new" should create a new object, old webkit bug -var CORRECT_NEW = new NativeRegExp(re1) !== re1; - -var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y; - -var FORCED$1 = descriptors && isForced_1('RegExp', (!CORRECT_NEW || UNSUPPORTED_Y$2 || fails(function () { - re2[MATCH] = false; - // RegExp constructor can alter flags and IsRegExp works correct with @@match - return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i'; -}))); - -// `RegExp` constructor -// https://tc39.es/ecma262/#sec-regexp-constructor -if (FORCED$1) { - var RegExpWrapper = function RegExp(pattern, flags) { - var thisIsRegExp = this instanceof RegExpWrapper; - var patternIsRegExp = isRegexp(pattern); - var flagsAreUndefined = flags === undefined; - var sticky; - - if (!thisIsRegExp && patternIsRegExp && pattern.constructor === RegExpWrapper && flagsAreUndefined) { - return pattern; - } - - if (CORRECT_NEW) { - if (patternIsRegExp && !flagsAreUndefined) pattern = pattern.source; - } else if (pattern instanceof RegExpWrapper) { - if (flagsAreUndefined) flags = regexpFlags.call(pattern); - pattern = pattern.source; - } - - if (UNSUPPORTED_Y$2) { - sticky = !!flags && flags.indexOf('y') > -1; - if (sticky) flags = flags.replace(/y/g, ''); - } - - var result = inheritIfRequired( - CORRECT_NEW ? new NativeRegExp(pattern, flags) : NativeRegExp(pattern, flags), - thisIsRegExp ? this : RegExpPrototype$1, - RegExpWrapper - ); - - if (UNSUPPORTED_Y$2 && sticky) { - var state = enforceInternalState(result); - state.sticky = true; - } - - return result; - }; - var proxy = function (key) { - key in RegExpWrapper || defineProperty$2(RegExpWrapper, key, { - configurable: true, - get: function () { return NativeRegExp[key]; }, - set: function (it) { NativeRegExp[key] = it; } - }); - }; - var keys = getOwnPropertyNames(NativeRegExp); - var index = 0; - while (keys.length > index) proxy(keys[index++]); - RegExpPrototype$1.constructor = RegExpWrapper; - RegExpWrapper.prototype = RegExpPrototype$1; - redefine(global$1, 'RegExp', RegExpWrapper); -} - -// https://tc39.es/ecma262/#sec-get-regexp-@@species -setSpecies('RegExp'); - -var nativeExec = RegExp.prototype.exec; -var nativeReplace = shared('native-string-replace', String.prototype.replace); - -var patchedExec = nativeExec; - -var UPDATES_LAST_INDEX_WRONG = (function () { - var re1 = /a/; - var re2 = /b*/g; - nativeExec.call(re1, 'a'); - nativeExec.call(re2, 'a'); - return re1.lastIndex !== 0 || re2.lastIndex !== 0; -})(); - -var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET; - -// nonparticipating capturing group, copied from es5-shim's String#split patch. -// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing -var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; - -var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1; - -if (PATCH) { - patchedExec = function exec(str) { - var re = this; - var lastIndex, reCopy, match, i; - var sticky = UNSUPPORTED_Y$1 && re.sticky; - var flags = regexpFlags.call(re); - var source = re.source; - var charsAdded = 0; - var strCopy = str; - - if (sticky) { - flags = flags.replace('y', ''); - if (flags.indexOf('g') === -1) { - flags += 'g'; - } - - strCopy = String(str).slice(re.lastIndex); - // Support anchored sticky behavior. - if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) { - source = '(?: ' + source + ')'; - strCopy = ' ' + strCopy; - charsAdded++; - } - // ^(? + rx + ) is needed, in combination with some str slicing, to - // simulate the 'y' flag. - reCopy = new RegExp('^(?:' + source + ')', flags); - } - - if (NPCG_INCLUDED) { - reCopy = new RegExp('^' + source + '$(?!\\s)', flags); - } - if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; - - match = nativeExec.call(sticky ? reCopy : re, strCopy); - - if (sticky) { - if (match) { - match.input = match.input.slice(charsAdded); - match[0] = match[0].slice(charsAdded); - match.index = re.lastIndex; - re.lastIndex += match[0].length; - } else re.lastIndex = 0; - } else if (UPDATES_LAST_INDEX_WRONG && match) { - re.lastIndex = re.global ? match.index + match[0].length : lastIndex; - } - if (NPCG_INCLUDED && match && match.length > 1) { - // Fix browsers whose `exec` methods don't consistently return `undefined` - // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ - nativeReplace.call(match[0], reCopy, function () { - for (i = 1; i < arguments.length - 2; i++) { - if (arguments[i] === undefined) match[i] = undefined; - } - }); - } - - return match; - }; -} - -var regexpExec = patchedExec; - -// `RegExp.prototype.exec` method -// https://tc39.es/ecma262/#sec-regexp.prototype.exec -_export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, { - exec: regexpExec -}); - -var TO_STRING = 'toString'; -var RegExpPrototype = RegExp.prototype; -var nativeToString = RegExpPrototype[TO_STRING]; - -var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); -// FF44- RegExp#toString has a wrong name -var INCORRECT_NAME = nativeToString.name != TO_STRING; - -// `RegExp.prototype.toString` method -// https://tc39.es/ecma262/#sec-regexp.prototype.tostring -if (NOT_GENERIC || INCORRECT_NAME) { - redefine(RegExp.prototype, TO_STRING, function toString() { - var R = anObject(this); - var p = String(R.source); - var rf = R.flags; - var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? regexpFlags.call(R) : rf); - return '/' + p + '/' + f; - }, { unsafe: true }); -} - -// `IsArray` abstract operation -// https://tc39.es/ecma262/#sec-isarray -// eslint-disable-next-line es/no-array-isarray -- safe -var isArray = Array.isArray || function isArray(arg) { - return classofRaw(arg) == 'Array'; -}; - -var createProperty = function (object, key, value) { - var propertyKey = toPrimitive(key); - if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value)); - else object[propertyKey] = value; -}; - -var SPECIES$3 = wellKnownSymbol('species'); - -// `ArraySpeciesCreate` abstract operation -// https://tc39.es/ecma262/#sec-arrayspeciescreate -var arraySpeciesCreate = function (originalArray, length) { - var C; - if (isArray(originalArray)) { - C = originalArray.constructor; - // cross-realm fallback - if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; - else if (isObject(C)) { - C = C[SPECIES$3]; - if (C === null) C = undefined; - } - } return new (C === undefined ? Array : C)(length === 0 ? 0 : length); -}; - -var SPECIES$2 = wellKnownSymbol('species'); - -var arrayMethodHasSpeciesSupport = function (METHOD_NAME) { - // We can't use this feature detection in V8 since it causes - // deoptimization and serious performance degradation - // https://github.com/zloirock/core-js/issues/677 - return engineV8Version >= 51 || !fails(function () { - var array = []; - var constructor = array.constructor = {}; - constructor[SPECIES$2] = function () { - return { foo: 1 }; - }; - return array[METHOD_NAME](Boolean).foo !== 1; - }); -}; - -var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable'); -var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF; -var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; - -// We can't use this feature detection in V8 since it causes -// deoptimization and serious performance degradation -// https://github.com/zloirock/core-js/issues/679 -var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () { - var array = []; - array[IS_CONCAT_SPREADABLE] = false; - return array.concat()[0] !== array; -}); - -var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat'); - -var isConcatSpreadable = function (O) { - if (!isObject(O)) return false; - var spreadable = O[IS_CONCAT_SPREADABLE]; - return spreadable !== undefined ? !!spreadable : isArray(O); -}; - -var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT; - -// `Array.prototype.concat` method -// https://tc39.es/ecma262/#sec-array.prototype.concat -// with adding support of @@isConcatSpreadable and @@species -_export({ target: 'Array', proto: true, forced: FORCED }, { - // eslint-disable-next-line no-unused-vars -- required for `.length` - concat: function concat(arg) { - var O = toObject(this); - var A = arraySpeciesCreate(O, 0); - var n = 0; - var i, k, length, len, E; - for (i = -1, length = arguments.length; i < length; i++) { - E = i === -1 ? O : arguments[i]; - if (isConcatSpreadable(E)) { - len = toLength(E.length); - if (n + len > MAX_SAFE_INTEGER$1) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); - for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]); - } else { - if (n >= MAX_SAFE_INTEGER$1) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED); - createProperty(A, n++, E); - } - } - A.length = n; - return A; - } -}); - -function _typeof(obj) { - "@babel/helpers - typeof"; - - if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { - _typeof = function (obj) { - return typeof obj; - }; - } else { - _typeof = function (obj) { - return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }; - } - - return _typeof(obj); -} - -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} - -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } -} - -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - return Constructor; -} - -var debug = (typeof process === "undefined" ? "undefined" : _typeof(process)) === 'object' && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? function () { - var _console; - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - return (_console = console).error.apply(_console, ['SEMVER'].concat(args)); -} : function () {}; -var debug_1 = debug; - -var re_1 = createCommonjsModule(function (module, exports) { - var MAX_SAFE_COMPONENT_LENGTH = constants.MAX_SAFE_COMPONENT_LENGTH; - exports = module.exports = {}; // The actual regexps go on exports.re - - var re = exports.re = []; - var src = exports.src = []; - var t = exports.t = {}; - var R = 0; - - var createToken = function createToken(name, value, isGlobal) { - var index = R++; - debug_1(index, value); - t[name] = index; - src[index] = value; - re[index] = new RegExp(value, isGlobal ? 'g' : undefined); - }; // The following Regular Expressions can be used for tokenizing, - // validating, and parsing SemVer version strings. - // ## Numeric Identifier - // A single `0`, or a non-zero digit followed by zero or more digits. - - - createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*'); - createToken('NUMERICIDENTIFIERLOOSE', '[0-9]+'); // ## Non-numeric Identifier - // Zero or more digits, followed by a letter or hyphen, and then zero or - // more letters, digits, or hyphens. - - createToken('NONNUMERICIDENTIFIER', '\\d*[a-zA-Z-][a-zA-Z0-9-]*'); // ## Main Version - // Three dot-separated numeric identifiers. - - createToken('MAINVERSION', "(".concat(src[t.NUMERICIDENTIFIER], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIER], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIER], ")")); - createToken('MAINVERSIONLOOSE', "(".concat(src[t.NUMERICIDENTIFIERLOOSE], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIERLOOSE], ")\\.") + "(".concat(src[t.NUMERICIDENTIFIERLOOSE], ")")); // ## Pre-release Version Identifier - // A numeric identifier, or a non-numeric identifier. - - createToken('PRERELEASEIDENTIFIER', "(?:".concat(src[t.NUMERICIDENTIFIER], "|").concat(src[t.NONNUMERICIDENTIFIER], ")")); - createToken('PRERELEASEIDENTIFIERLOOSE', "(?:".concat(src[t.NUMERICIDENTIFIERLOOSE], "|").concat(src[t.NONNUMERICIDENTIFIER], ")")); // ## Pre-release Version - // Hyphen, followed by one or more dot-separated pre-release version - // identifiers. - - createToken('PRERELEASE', "(?:-(".concat(src[t.PRERELEASEIDENTIFIER], "(?:\\.").concat(src[t.PRERELEASEIDENTIFIER], ")*))")); - createToken('PRERELEASELOOSE', "(?:-?(".concat(src[t.PRERELEASEIDENTIFIERLOOSE], "(?:\\.").concat(src[t.PRERELEASEIDENTIFIERLOOSE], ")*))")); // ## Build Metadata Identifier - // Any combination of digits, letters, or hyphens. - - createToken('BUILDIDENTIFIER', '[0-9A-Za-z-]+'); // ## Build Metadata - // Plus sign, followed by one or more period-separated build metadata - // identifiers. - - createToken('BUILD', "(?:\\+(".concat(src[t.BUILDIDENTIFIER], "(?:\\.").concat(src[t.BUILDIDENTIFIER], ")*))")); // ## Full Version String - // A main version, followed optionally by a pre-release version and - // build metadata. - // Note that the only major, minor, patch, and pre-release sections of - // the version string are capturing groups. The build metadata is not a - // capturing group, because it should not ever be used in version - // comparison. - - createToken('FULLPLAIN', "v?".concat(src[t.MAINVERSION]).concat(src[t.PRERELEASE], "?").concat(src[t.BUILD], "?")); - createToken('FULL', "^".concat(src[t.FULLPLAIN], "$")); // like full, but allows v1.2.3 and =1.2.3, which people do sometimes. - // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty - // common in the npm registry. - - createToken('LOOSEPLAIN', "[v=\\s]*".concat(src[t.MAINVERSIONLOOSE]).concat(src[t.PRERELEASELOOSE], "?").concat(src[t.BUILD], "?")); - createToken('LOOSE', "^".concat(src[t.LOOSEPLAIN], "$")); - createToken('GTLT', '((?:<|>)?=?)'); // Something like "2.*" or "1.2.x". - // Note that "x.x" is a valid xRange identifer, meaning "any version" - // Only the first item is strictly required. - - createToken('XRANGEIDENTIFIERLOOSE', "".concat(src[t.NUMERICIDENTIFIERLOOSE], "|x|X|\\*")); - createToken('XRANGEIDENTIFIER', "".concat(src[t.NUMERICIDENTIFIER], "|x|X|\\*")); - createToken('XRANGEPLAIN', "[v=\\s]*(".concat(src[t.XRANGEIDENTIFIER], ")") + "(?:\\.(".concat(src[t.XRANGEIDENTIFIER], ")") + "(?:\\.(".concat(src[t.XRANGEIDENTIFIER], ")") + "(?:".concat(src[t.PRERELEASE], ")?").concat(src[t.BUILD], "?") + ")?)?"); - createToken('XRANGEPLAINLOOSE', "[v=\\s]*(".concat(src[t.XRANGEIDENTIFIERLOOSE], ")") + "(?:\\.(".concat(src[t.XRANGEIDENTIFIERLOOSE], ")") + "(?:\\.(".concat(src[t.XRANGEIDENTIFIERLOOSE], ")") + "(?:".concat(src[t.PRERELEASELOOSE], ")?").concat(src[t.BUILD], "?") + ")?)?"); - createToken('XRANGE', "^".concat(src[t.GTLT], "\\s*").concat(src[t.XRANGEPLAIN], "$")); - createToken('XRANGELOOSE', "^".concat(src[t.GTLT], "\\s*").concat(src[t.XRANGEPLAINLOOSE], "$")); // Coercion. - // Extract anything that could conceivably be a part of a valid semver - - createToken('COERCE', "".concat('(^|[^\\d])' + '(\\d{1,').concat(MAX_SAFE_COMPONENT_LENGTH, "})") + "(?:\\.(\\d{1,".concat(MAX_SAFE_COMPONENT_LENGTH, "}))?") + "(?:\\.(\\d{1,".concat(MAX_SAFE_COMPONENT_LENGTH, "}))?") + "(?:$|[^\\d])"); - createToken('COERCERTL', src[t.COERCE], true); // Tilde ranges. - // Meaning is "reasonably at or greater than" - - createToken('LONETILDE', '(?:~>?)'); - createToken('TILDETRIM', "(\\s*)".concat(src[t.LONETILDE], "\\s+"), true); - exports.tildeTrimReplace = '$1~'; - createToken('TILDE', "^".concat(src[t.LONETILDE]).concat(src[t.XRANGEPLAIN], "$")); - createToken('TILDELOOSE', "^".concat(src[t.LONETILDE]).concat(src[t.XRANGEPLAINLOOSE], "$")); // Caret ranges. - // Meaning is "at least and backwards compatible with" - - createToken('LONECARET', '(?:\\^)'); - createToken('CARETTRIM', "(\\s*)".concat(src[t.LONECARET], "\\s+"), true); - exports.caretTrimReplace = '$1^'; - createToken('CARET', "^".concat(src[t.LONECARET]).concat(src[t.XRANGEPLAIN], "$")); - createToken('CARETLOOSE', "^".concat(src[t.LONECARET]).concat(src[t.XRANGEPLAINLOOSE], "$")); // A simple gt/lt/eq thing, or just "" to indicate "any version" - - createToken('COMPARATORLOOSE', "^".concat(src[t.GTLT], "\\s*(").concat(src[t.LOOSEPLAIN], ")$|^$")); - createToken('COMPARATOR', "^".concat(src[t.GTLT], "\\s*(").concat(src[t.FULLPLAIN], ")$|^$")); // An expression to strip any whitespace between the gtlt and the thing - // it modifies, so that `> 1.2.3` ==> `>1.2.3` - - createToken('COMPARATORTRIM', "(\\s*)".concat(src[t.GTLT], "\\s*(").concat(src[t.LOOSEPLAIN], "|").concat(src[t.XRANGEPLAIN], ")"), true); - exports.comparatorTrimReplace = '$1$2$3'; // Something like `1.2.3 - 1.2.4` - // Note that these all use the loose form, because they'll be - // checked against either the strict or loose comparator form - // later. - - createToken('HYPHENRANGE', "^\\s*(".concat(src[t.XRANGEPLAIN], ")") + "\\s+-\\s+" + "(".concat(src[t.XRANGEPLAIN], ")") + "\\s*$"); - createToken('HYPHENRANGELOOSE', "^\\s*(".concat(src[t.XRANGEPLAINLOOSE], ")") + "\\s+-\\s+" + "(".concat(src[t.XRANGEPLAINLOOSE], ")") + "\\s*$"); // Star ranges basically just allow anything at all. - - createToken('STAR', '(<|>)?=?\\s*\\*'); // >=0.0.0 is like a star - - createToken('GTE0', '^\\s*>=\\s*0\.0\.0\\s*$'); - createToken('GTE0PRE', '^\\s*>=\\s*0\.0\.0-0\\s*$'); -}); - -// TODO: Remove from `core-js@4` since it's moved to entry points - - - - - - -var SPECIES$1 = wellKnownSymbol('species'); - -var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { - // #replace needs built-in support for named groups. - // #match works fine because it just return the exec results, even if it has - // a "grops" property. - var re = /./; - re.exec = function () { - var result = []; - result.groups = { a: '7' }; - return result; - }; - return ''.replace(re, '$') !== '7'; -}); - -// IE <= 11 replaces $0 with the whole match, as if it was $& -// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0 -var REPLACE_KEEPS_$0 = (function () { - // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing - return 'a'.replace(/./, '$0') === '$0'; -})(); - -var REPLACE = wellKnownSymbol('replace'); -// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string -var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () { - if (/./[REPLACE]) { - return /./[REPLACE]('a', '$0') === ''; - } - return false; -})(); - -// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec -// Weex JS has frozen built-in prototypes, so use try / catch wrapper -var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () { - // eslint-disable-next-line regexp/no-empty-group -- required for testing - var re = /(?:)/; - var originalExec = re.exec; - re.exec = function () { return originalExec.apply(this, arguments); }; - var result = 'ab'.split(re); - return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b'; -}); - -var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) { - var SYMBOL = wellKnownSymbol(KEY); - - var DELEGATES_TO_SYMBOL = !fails(function () { - // String methods call symbol-named RegEp methods - var O = {}; - O[SYMBOL] = function () { return 7; }; - return ''[KEY](O) != 7; - }); - - var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () { - // Symbol-named RegExp methods call .exec - var execCalled = false; - var re = /a/; - - if (KEY === 'split') { - // We can't use real regex here since it causes deoptimization - // and serious performance degradation in V8 - // https://github.com/zloirock/core-js/issues/306 - re = {}; - // RegExp[@@split] doesn't call the regex's exec method, but first creates - // a new one. We need to return the patched regex when creating the new one. - re.constructor = {}; - re.constructor[SPECIES$1] = function () { return re; }; - re.flags = ''; - re[SYMBOL] = /./[SYMBOL]; - } - - re.exec = function () { execCalled = true; return null; }; - - re[SYMBOL](''); - return !execCalled; - }); - - if ( - !DELEGATES_TO_SYMBOL || - !DELEGATES_TO_EXEC || - (KEY === 'replace' && !( - REPLACE_SUPPORTS_NAMED_GROUPS && - REPLACE_KEEPS_$0 && - !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE - )) || - (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) - ) { - var nativeRegExpMethod = /./[SYMBOL]; - var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { - if (regexp.exec === RegExp.prototype.exec) { - if (DELEGATES_TO_SYMBOL && !forceStringMethod) { - // The native String method already delegates to @@method (this - // polyfilled function), leasing to infinite recursion. - // We avoid it by directly calling the native @@method method. - return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; - } - return { done: true, value: nativeMethod.call(str, regexp, arg2) }; - } - return { done: false }; - }, { - REPLACE_KEEPS_$0: REPLACE_KEEPS_$0, - REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE - }); - var stringMethod = methods[0]; - var regexMethod = methods[1]; - - redefine(String.prototype, KEY, stringMethod); - redefine(RegExp.prototype, SYMBOL, length == 2 - // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) - // 21.2.5.11 RegExp.prototype[@@split](string, limit) - ? function (string, arg) { return regexMethod.call(string, this, arg); } - // 21.2.5.6 RegExp.prototype[@@match](string) - // 21.2.5.9 RegExp.prototype[@@search](string) - : function (string) { return regexMethod.call(string, this); } - ); - } - - if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true); -}; - -// `String.prototype.{ codePointAt, at }` methods implementation -var createMethod$1 = function (CONVERT_TO_STRING) { - return function ($this, pos) { - var S = String(requireObjectCoercible($this)); - var position = toInteger(pos); - var size = S.length; - var first, second; - if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; - first = S.charCodeAt(position); - return first < 0xD800 || first > 0xDBFF || position + 1 === size - || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF - ? CONVERT_TO_STRING ? S.charAt(position) : first - : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; - }; -}; - -var stringMultibyte = { - // `String.prototype.codePointAt` method - // https://tc39.es/ecma262/#sec-string.prototype.codepointat - codeAt: createMethod$1(false), - // `String.prototype.at` method - // https://github.com/mathiasbynens/String.prototype.at - charAt: createMethod$1(true) -}; - -var charAt$1 = stringMultibyte.charAt; - -// `AdvanceStringIndex` abstract operation -// https://tc39.es/ecma262/#sec-advancestringindex -var advanceStringIndex = function (S, index, unicode) { - return index + (unicode ? charAt$1(S, index).length : 1); -}; - -// `RegExpExec` abstract operation -// https://tc39.es/ecma262/#sec-regexpexec -var regexpExecAbstract = function (R, S) { - var exec = R.exec; - if (typeof exec === 'function') { - var result = exec.call(R, S); - if (typeof result !== 'object') { - throw TypeError('RegExp exec method returned something other than an Object or null'); - } - return result; - } - - if (classofRaw(R) !== 'RegExp') { - throw TypeError('RegExp#exec called on incompatible receiver'); - } - - return regexpExec.call(R, S); -}; - -// @@match logic -fixRegexpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) { - return [ - // `String.prototype.match` method - // https://tc39.es/ecma262/#sec-string.prototype.match - function match(regexp) { - var O = requireObjectCoercible(this); - var matcher = regexp == undefined ? undefined : regexp[MATCH]; - return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O)); - }, - // `RegExp.prototype[@@match]` method - // https://tc39.es/ecma262/#sec-regexp.prototype-@@match - function (regexp) { - var res = maybeCallNative(nativeMatch, regexp, this); - if (res.done) return res.value; - - var rx = anObject(regexp); - var S = String(this); - - if (!rx.global) return regexpExecAbstract(rx, S); - - var fullUnicode = rx.unicode; - rx.lastIndex = 0; - var A = []; - var n = 0; - var result; - while ((result = regexpExecAbstract(rx, S)) !== null) { - var matchStr = String(result[0]); - A[n] = matchStr; - if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); - n++; - } - return n === 0 ? null : A; - } - ]; -}); - -var non = '\u200B\u0085\u180E'; - -// check that a method works with the correct list -// of whitespaces and has a correct name -var stringTrimForced = function (METHOD_NAME) { - return fails(function () { - return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME; - }); -}; - -var $trim = stringTrim.trim; - - -// `String.prototype.trim` method -// https://tc39.es/ecma262/#sec-string.prototype.trim -_export({ target: 'String', proto: true, forced: stringTrimForced('trim') }, { - trim: function trim() { - return $trim(this); - } -}); - -var aFunction = function (it) { - if (typeof it != 'function') { - throw TypeError(String(it) + ' is not a function'); - } return it; -}; - -// optional / simple context binding -var functionBindContext = function (fn, that, length) { - aFunction(fn); - if (that === undefined) return fn; - switch (length) { - case 0: return function () { - return fn.call(that); - }; - case 1: return function (a) { - return fn.call(that, a); - }; - case 2: return function (a, b) { - return fn.call(that, a, b); - }; - case 3: return function (a, b, c) { - return fn.call(that, a, b, c); - }; - } - return function (/* ...args */) { - return fn.apply(that, arguments); - }; -}; - -var push = [].push; - -// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation -var createMethod = function (TYPE) { - var IS_MAP = TYPE == 1; - var IS_FILTER = TYPE == 2; - var IS_SOME = TYPE == 3; - var IS_EVERY = TYPE == 4; - var IS_FIND_INDEX = TYPE == 6; - var IS_FILTER_OUT = TYPE == 7; - var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; - return function ($this, callbackfn, that, specificCreate) { - var O = toObject($this); - var self = indexedObject(O); - var boundFunction = functionBindContext(callbackfn, that, 3); - var length = toLength(self.length); - var index = 0; - var create = specificCreate || arraySpeciesCreate; - var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined; - var value, result; - for (;length > index; index++) if (NO_HOLES || index in self) { - value = self[index]; - result = boundFunction(value, index, O); - if (TYPE) { - if (IS_MAP) target[index] = result; // map - else if (result) switch (TYPE) { - case 3: return true; // some - case 5: return value; // find - case 6: return index; // findIndex - case 2: push.call(target, value); // filter - } else switch (TYPE) { - case 4: return false; // every - case 7: push.call(target, value); // filterOut - } - } - } - return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; - }; -}; - -var arrayIteration = { - // `Array.prototype.forEach` method - // https://tc39.es/ecma262/#sec-array.prototype.foreach - forEach: createMethod(0), - // `Array.prototype.map` method - // https://tc39.es/ecma262/#sec-array.prototype.map - map: createMethod(1), - // `Array.prototype.filter` method - // https://tc39.es/ecma262/#sec-array.prototype.filter - filter: createMethod(2), - // `Array.prototype.some` method - // https://tc39.es/ecma262/#sec-array.prototype.some - some: createMethod(3), - // `Array.prototype.every` method - // https://tc39.es/ecma262/#sec-array.prototype.every - every: createMethod(4), - // `Array.prototype.find` method - // https://tc39.es/ecma262/#sec-array.prototype.find - find: createMethod(5), - // `Array.prototype.findIndex` method - // https://tc39.es/ecma262/#sec-array.prototype.findIndex - findIndex: createMethod(6), - // `Array.prototype.filterOut` method - // https://github.com/tc39/proposal-array-filtering - filterOut: createMethod(7) -}; - -var $map = arrayIteration.map; - - -var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('map'); - -// `Array.prototype.map` method -// https://tc39.es/ecma262/#sec-array.prototype.map -// with adding support of @@species -_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, { - map: function map(callbackfn /* , thisArg */) { - return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); - } -}); - -var SPECIES = wellKnownSymbol('species'); - -// `SpeciesConstructor` abstract operation -// https://tc39.es/ecma262/#sec-speciesconstructor -var speciesConstructor = function (O, defaultConstructor) { - var C = anObject(O).constructor; - var S; - return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S); -}; - -var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y; -var arrayPush = [].push; -var min = Math.min; -var MAX_UINT32 = 0xFFFFFFFF; - -// @@split logic -fixRegexpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) { - var internalSplit; - if ( - 'abbc'.split(/(b)*/)[1] == 'c' || - // eslint-disable-next-line regexp/no-empty-group -- required for testing - 'test'.split(/(?:)/, -1).length != 4 || - 'ab'.split(/(?:ab)*/).length != 2 || - '.'.split(/(.?)(.?)/).length != 4 || - // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing - '.'.split(/()()/).length > 1 || - ''.split(/.?/).length - ) { - // based on es5-shim implementation, need to rework it - internalSplit = function (separator, limit) { - var string = String(requireObjectCoercible(this)); - var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; - if (lim === 0) return []; - if (separator === undefined) return [string]; - // If `separator` is not a regex, use native split - if (!isRegexp(separator)) { - return nativeSplit.call(string, separator, lim); - } - var output = []; - var flags = (separator.ignoreCase ? 'i' : '') + - (separator.multiline ? 'm' : '') + - (separator.unicode ? 'u' : '') + - (separator.sticky ? 'y' : ''); - var lastLastIndex = 0; - // Make `global` and avoid `lastIndex` issues by working with a copy - var separatorCopy = new RegExp(separator.source, flags + 'g'); - var match, lastIndex, lastLength; - while (match = regexpExec.call(separatorCopy, string)) { - lastIndex = separatorCopy.lastIndex; - if (lastIndex > lastLastIndex) { - output.push(string.slice(lastLastIndex, match.index)); - if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1)); - lastLength = match[0].length; - lastLastIndex = lastIndex; - if (output.length >= lim) break; - } - if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop - } - if (lastLastIndex === string.length) { - if (lastLength || !separatorCopy.test('')) output.push(''); - } else output.push(string.slice(lastLastIndex)); - return output.length > lim ? output.slice(0, lim) : output; - }; - // Chakra, V8 - } else if ('0'.split(undefined, 0).length) { - internalSplit = function (separator, limit) { - return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit); - }; - } else internalSplit = nativeSplit; - - return [ - // `String.prototype.split` method - // https://tc39.es/ecma262/#sec-string.prototype.split - function split(separator, limit) { - var O = requireObjectCoercible(this); - var splitter = separator == undefined ? undefined : separator[SPLIT]; - return splitter !== undefined - ? splitter.call(separator, O, limit) - : internalSplit.call(String(O), separator, limit); - }, - // `RegExp.prototype[@@split]` method - // https://tc39.es/ecma262/#sec-regexp.prototype-@@split - // - // NOTE: This cannot be properly polyfilled in engines that don't support - // the 'y' flag. - function (regexp, limit) { - var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit); - if (res.done) return res.value; - - var rx = anObject(regexp); - var S = String(this); - var C = speciesConstructor(rx, RegExp); - - var unicodeMatching = rx.unicode; - var flags = (rx.ignoreCase ? 'i' : '') + - (rx.multiline ? 'm' : '') + - (rx.unicode ? 'u' : '') + - (UNSUPPORTED_Y ? 'g' : 'y'); - - // ^(? + rx + ) is needed, in combination with some S slicing, to - // simulate the 'y' flag. - var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags); - var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; - if (lim === 0) return []; - if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : []; - var p = 0; - var q = 0; - var A = []; - while (q < S.length) { - splitter.lastIndex = UNSUPPORTED_Y ? 0 : q; - var z = regexpExecAbstract(splitter, UNSUPPORTED_Y ? S.slice(q) : S); - var e; - if ( - z === null || - (e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p - ) { - q = advanceStringIndex(S, q, unicodeMatching); - } else { - A.push(S.slice(p, q)); - if (A.length === lim) return A; - for (var i = 1; i <= z.length - 1; i++) { - A.push(z[i]); - if (A.length === lim) return A; - } - q = p = e; - } - } - A.push(S.slice(p)); - return A; - } - ]; -}, UNSUPPORTED_Y); - -var arrayMethodIsStrict = function (METHOD_NAME, argument) { - var method = [][METHOD_NAME]; - return !!method && fails(function () { - // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing - method.call(null, argument || function () { throw 1; }, 1); - }); -}; - -var nativeJoin = [].join; - -var ES3_STRINGS = indexedObject != Object; -var STRICT_METHOD$1 = arrayMethodIsStrict('join', ','); - -// `Array.prototype.join` method -// https://tc39.es/ecma262/#sec-array.prototype.join -_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, { - join: function join(separator) { - return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator); - } -}); - -var $filter = arrayIteration.filter; - - -var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter'); - -// `Array.prototype.filter` method -// https://tc39.es/ecma262/#sec-array.prototype.filter -// with adding support of @@species -_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { - filter: function filter(callbackfn /* , thisArg */) { - return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); - } -}); - -// parse out just the options we care about so we always get a consistent -// obj with keys in a consistent order. -var opts = ['includePrerelease', 'loose', 'rtl']; - -var parseOptions = function parseOptions(options) { - return !options ? {} : _typeof(options) !== 'object' ? { - loose: true - } : opts.filter(function (k) { - return options[k]; - }).reduce(function (options, k) { - options[k] = true; - return options; - }, {}); -}; - -var parseOptions_1 = parseOptions; - -var numeric = /^[0-9]+$/; - -var compareIdentifiers$1 = function compareIdentifiers(a, b) { - var anum = numeric.test(a); - var bnum = numeric.test(b); - - if (anum && bnum) { - a = +a; - b = +b; - } - - return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1; -}; - -var rcompareIdentifiers = function rcompareIdentifiers(a, b) { - return compareIdentifiers$1(b, a); -}; - -var identifiers = { - compareIdentifiers: compareIdentifiers$1, - rcompareIdentifiers: rcompareIdentifiers -}; - -var MAX_LENGTH$1 = constants.MAX_LENGTH, - MAX_SAFE_INTEGER = constants.MAX_SAFE_INTEGER; -var re$1 = re_1.re, - t$1 = re_1.t; -var compareIdentifiers = identifiers.compareIdentifiers; - -var SemVer = /*#__PURE__*/function () { - function SemVer(version, options) { - _classCallCheck(this, SemVer); - - options = parseOptions_1(options); - - if (version instanceof SemVer) { - if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) { - return version; - } else { - version = version.version; - } - } else if (typeof version !== 'string') { - throw new TypeError("Invalid Version: ".concat(version)); - } - - if (version.length > MAX_LENGTH$1) { - throw new TypeError("version is longer than ".concat(MAX_LENGTH$1, " characters")); - } - - debug_1('SemVer', version, options); - this.options = options; - this.loose = !!options.loose; // this isn't actually relevant for versions, but keep it so that we - // don't run into trouble passing this.options around. - - this.includePrerelease = !!options.includePrerelease; - var m = version.trim().match(options.loose ? re$1[t$1.LOOSE] : re$1[t$1.FULL]); - - if (!m) { - throw new TypeError("Invalid Version: ".concat(version)); - } - - this.raw = version; // these are actually numbers - - this.major = +m[1]; - this.minor = +m[2]; - this.patch = +m[3]; - - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version'); - } - - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version'); - } - - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version'); - } // numberify any prerelease numeric ids - - - if (!m[4]) { - this.prerelease = []; - } else { - this.prerelease = m[4].split('.').map(function (id) { - if (/^[0-9]+$/.test(id)) { - var num = +id; - - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num; - } - } - - return id; - }); - } - - this.build = m[5] ? m[5].split('.') : []; - this.format(); - } - - _createClass(SemVer, [{ - key: "format", - value: function format() { - this.version = "".concat(this.major, ".").concat(this.minor, ".").concat(this.patch); - - if (this.prerelease.length) { - this.version += "-".concat(this.prerelease.join('.')); - } - - return this.version; - } - }, { - key: "toString", - value: function toString() { - return this.version; - } - }, { - key: "compare", - value: function compare(other) { - debug_1('SemVer.compare', this.version, this.options, other); - - if (!(other instanceof SemVer)) { - if (typeof other === 'string' && other === this.version) { - return 0; - } - - other = new SemVer(other, this.options); - } - - if (other.version === this.version) { - return 0; - } - - return this.compareMain(other) || this.comparePre(other); - } - }, { - key: "compareMain", - value: function compareMain(other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options); - } - - return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch); - } - }, { - key: "comparePre", - value: function comparePre(other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options); - } // NOT having a prerelease is > having one - - - if (this.prerelease.length && !other.prerelease.length) { - return -1; - } else if (!this.prerelease.length && other.prerelease.length) { - return 1; - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0; - } - - var i = 0; - - do { - var a = this.prerelease[i]; - var b = other.prerelease[i]; - debug_1('prerelease compare', i, a, b); - - if (a === undefined && b === undefined) { - return 0; - } else if (b === undefined) { - return 1; - } else if (a === undefined) { - return -1; - } else if (a === b) { - continue; - } else { - return compareIdentifiers(a, b); - } - } while (++i); - } - }, { - key: "compareBuild", - value: function compareBuild(other) { - if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options); - } - - var i = 0; - - do { - var a = this.build[i]; - var b = other.build[i]; - debug_1('prerelease compare', i, a, b); - - if (a === undefined && b === undefined) { - return 0; - } else if (b === undefined) { - return 1; - } else if (a === undefined) { - return -1; - } else if (a === b) { - continue; - } else { - return compareIdentifiers(a, b); - } - } while (++i); - } // preminor will bump the version up to the next minor release, and immediately - // down to pre-release. premajor and prepatch work the same way. - - }, { - key: "inc", - value: function inc(release, identifier) { - switch (release) { - case 'premajor': - this.prerelease.length = 0; - this.patch = 0; - this.minor = 0; - this.major++; - this.inc('pre', identifier); - break; - - case 'preminor': - this.prerelease.length = 0; - this.patch = 0; - this.minor++; - this.inc('pre', identifier); - break; - - case 'prepatch': - // If this is already a prerelease, it will bump to the next version - // drop any prereleases that might already exist, since they are not - // relevant at this point. - this.prerelease.length = 0; - this.inc('patch', identifier); - this.inc('pre', identifier); - break; - // If the input is a non-prerelease version, this acts the same as - // prepatch. - - case 'prerelease': - if (this.prerelease.length === 0) { - this.inc('patch', identifier); - } - - this.inc('pre', identifier); - break; - - case 'major': - // If this is a pre-major version, bump up to the same major version. - // Otherwise increment major. - // 1.0.0-5 bumps to 1.0.0 - // 1.1.0 bumps to 2.0.0 - if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) { - this.major++; - } - - this.minor = 0; - this.patch = 0; - this.prerelease = []; - break; - - case 'minor': - // If this is a pre-minor version, bump up to the same minor version. - // Otherwise increment minor. - // 1.2.0-5 bumps to 1.2.0 - // 1.2.1 bumps to 1.3.0 - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++; - } - - this.patch = 0; - this.prerelease = []; - break; - - case 'patch': - // If this is not a pre-release version, it will increment the patch. - // If it is a pre-release it will bump up to the same patch version. - // 1.2.0-5 patches to 1.2.0 - // 1.2.0 patches to 1.2.1 - if (this.prerelease.length === 0) { - this.patch++; - } - - this.prerelease = []; - break; - // This probably shouldn't be used publicly. - // 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction. - - case 'pre': - if (this.prerelease.length === 0) { - this.prerelease = [0]; - } else { - var i = this.prerelease.length; - - while (--i >= 0) { - if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++; - i = -2; - } - } - - if (i === -1) { - // didn't increment anything - this.prerelease.push(0); - } - } - - if (identifier) { - // 1.2.0-beta.1 bumps to 1.2.0-beta.2, - // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 - if (this.prerelease[0] === identifier) { - if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0]; - } - } else { - this.prerelease = [identifier, 0]; - } - } - - break; - - default: - throw new Error("invalid increment argument: ".concat(release)); - } - - this.format(); - this.raw = this.version; - return this; - } - }]); - - return SemVer; -}(); - -var semver = SemVer; - -var MAX_LENGTH = constants.MAX_LENGTH; -var re = re_1.re, - t = re_1.t; - -var parse = function parse(version, options) { - options = parseOptions_1(options); - - if (version instanceof semver) { - return version; - } - - if (typeof version !== 'string') { - return null; - } - - if (version.length > MAX_LENGTH) { - return null; - } - - var r = options.loose ? re[t.LOOSE] : re[t.FULL]; - - if (!r.test(version)) { - return null; - } - - try { - return new semver(version, options); - } catch (er) { - return null; - } -}; - -var parse_1 = parse; - -var valid = function valid(version, options) { - var v = parse_1(version, options); - return v ? v.version : null; -}; - -var valid_1 = valid; - -var major = function major(a, loose) { - return new semver(a, loose).major; -}; - -var major_1 = major; - -var packageJson$1 = { - name: "@nextcloud/event-bus", - version: "1.3.0", - description: "", - main: "dist/index.js", - module: "dist/index.es.js", - types: "dist/index.d.ts", - scripts: { - build: "NODE_ENV=production rollup -c", - "build:doc": "typedoc --out dist/doc lib/index.ts && touch dist/doc/.nojekyll", - "check-types": "tsc", - dev: "NODE_ENV=development rollup -c --watch", - test: "jest", - "test:watch": "jest --watchAll" - }, - keywords: ["nextcloud"], - homepage: "https://github.com/nextcloud/nextcloud-event-bus#readme", - author: "Christoph Wurst", - license: "GPL-3.0-or-later", - repository: { - type: "git", - url: "https://github.com/nextcloud/nextcloud-event-bus" - }, - dependencies: { - "@types/semver": "^7.3.5", - "core-js": "^3.11.2", - semver: "^7.3.5" - }, - devDependencies: { - "@babel/cli": "^7.13.16", - "@babel/core": "^7.14.0", - "@babel/plugin-proposal-class-properties": "^7.13.0", - "@babel/preset-env": "^7.14.1", - "@babel/preset-typescript": "^7.13.0", - "@nextcloud/browserslist-config": "^1.0.0", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^18.0.0", - "@rollup/plugin-node-resolve": "^11.2.1", - "babel-jest": "^26.6.3", - "babel-plugin-inline-json-import": "^0.3.2", - jest: "^26.6.3", - rollup: "^2.47.0", - "rollup-plugin-inject-process-env": "^1.3.1", - "rollup-plugin-typescript2": "^0.30.0", - typedoc: "^0.20.36", - typescript: "^4.2.4" - }, - browserslist: ["extends @nextcloud/browserslist-config"] -}; - -var ProxyBus = -/** @class */ -function () { - function ProxyBus(bus) { - if (typeof bus.getVersion !== 'function' || !valid_1(bus.getVersion())) { - console.warn('Proxying an event bus with an unknown or invalid version'); - } else if (major_1(bus.getVersion()) !== major_1(this.getVersion())) { - console.warn('Proxying an event bus of version ' + bus.getVersion() + ' with ' + this.getVersion()); - } - - this.bus = bus; - } - - ProxyBus.prototype.getVersion = function () { - return packageJson$1.version; - }; - - ProxyBus.prototype.subscribe = function (name, handler) { - this.bus.subscribe(name, handler); - }; - - ProxyBus.prototype.unsubscribe = function (name, handler) { - this.bus.unsubscribe(name, handler); - }; - - ProxyBus.prototype.emit = function (name, event) { - this.bus.emit(name, event); - }; - - return ProxyBus; -}(); - -var UNSCOPABLES = wellKnownSymbol('unscopables'); -var ArrayPrototype$1 = Array.prototype; - -// Array.prototype[@@unscopables] -// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -if (ArrayPrototype$1[UNSCOPABLES] == undefined) { - objectDefineProperty.f(ArrayPrototype$1, UNSCOPABLES, { - configurable: true, - value: objectCreate(null) - }); -} - -// add a key to Array.prototype[@@unscopables] -var addToUnscopables = function (key) { - ArrayPrototype$1[UNSCOPABLES][key] = true; -}; - -var iterators = {}; - -var correctPrototypeGetter = !fails(function () { - function F() { /* empty */ } - F.prototype.constructor = null; - // eslint-disable-next-line es/no-object-getprototypeof -- required for testing - return Object.getPrototypeOf(new F()) !== F.prototype; -}); - -var IE_PROTO = sharedKey('IE_PROTO'); -var ObjectPrototype = Object.prototype; - -// `Object.getPrototypeOf` method -// https://tc39.es/ecma262/#sec-object.getprototypeof -// eslint-disable-next-line es/no-object-getprototypeof -- safe -var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) { - O = toObject(O); - if (has$1(O, IE_PROTO)) return O[IE_PROTO]; - if (typeof O.constructor == 'function' && O instanceof O.constructor) { - return O.constructor.prototype; - } return O instanceof Object ? ObjectPrototype : null; -}; - -var ITERATOR$5 = wellKnownSymbol('iterator'); -var BUGGY_SAFARI_ITERATORS$1 = false; - -var returnThis$2 = function () { return this; }; - -// `%IteratorPrototype%` object -// https://tc39.es/ecma262/#sec-%iteratorprototype%-object -var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator; - -/* eslint-disable es/no-array-prototype-keys -- safe */ -if ([].keys) { - arrayIterator = [].keys(); - // Safari 8 has buggy iterators w/o `next` - if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true; - else { - PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator)); - if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype; - } -} - -var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails(function () { - var test = {}; - // FF44- legacy iterators case - return IteratorPrototype$2[ITERATOR$5].call(test) !== test; -}); - -if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {}; - -// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() -if (!has$1(IteratorPrototype$2, ITERATOR$5)) { - createNonEnumerableProperty(IteratorPrototype$2, ITERATOR$5, returnThis$2); -} - -var iteratorsCore = { - IteratorPrototype: IteratorPrototype$2, - BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1 -}; - -var defineProperty$1 = objectDefineProperty.f; - - - -var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag'); - -var setToStringTag = function (it, TAG, STATIC) { - if (it && !has$1(it = STATIC ? it : it.prototype, TO_STRING_TAG$3)) { - defineProperty$1(it, TO_STRING_TAG$3, { configurable: true, value: TAG }); - } -}; - -var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; - - - - - -var returnThis$1 = function () { return this; }; - -var createIteratorConstructor = function (IteratorConstructor, NAME, next) { - var TO_STRING_TAG = NAME + ' Iterator'; - IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) }); - setToStringTag(IteratorConstructor, TO_STRING_TAG, false); - iterators[TO_STRING_TAG] = returnThis$1; - return IteratorConstructor; -}; - -var IteratorPrototype = iteratorsCore.IteratorPrototype; -var BUGGY_SAFARI_ITERATORS = iteratorsCore.BUGGY_SAFARI_ITERATORS; -var ITERATOR$4 = wellKnownSymbol('iterator'); -var KEYS = 'keys'; -var VALUES = 'values'; -var ENTRIES = 'entries'; - -var returnThis = function () { return this; }; - -var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { - createIteratorConstructor(IteratorConstructor, NAME, next); - - var getIterationMethod = function (KIND) { - if (KIND === DEFAULT && defaultIterator) return defaultIterator; - if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; - switch (KIND) { - case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; - case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; - case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; - } return function () { return new IteratorConstructor(this); }; - }; - - var TO_STRING_TAG = NAME + ' Iterator'; - var INCORRECT_VALUES_NAME = false; - var IterablePrototype = Iterable.prototype; - var nativeIterator = IterablePrototype[ITERATOR$4] - || IterablePrototype['@@iterator'] - || DEFAULT && IterablePrototype[DEFAULT]; - var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); - var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; - var CurrentIteratorPrototype, methods, KEY; - - // fix native - if (anyNativeIterator) { - CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable())); - if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { - if (objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) { - if (objectSetPrototypeOf) { - objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype); - } else if (typeof CurrentIteratorPrototype[ITERATOR$4] != 'function') { - createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$4, returnThis); - } - } - // Set @@toStringTag to native iterators - setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true); - } - } - - // fix Array#{values, @@iterator}.name in V8 / FF - if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { - INCORRECT_VALUES_NAME = true; - defaultIterator = function values() { return nativeIterator.call(this); }; - } - - // define iterator - if (IterablePrototype[ITERATOR$4] !== defaultIterator) { - createNonEnumerableProperty(IterablePrototype, ITERATOR$4, defaultIterator); - } - iterators[NAME] = defaultIterator; - - // export additional methods - if (DEFAULT) { - methods = { - values: getIterationMethod(VALUES), - keys: IS_SET ? defaultIterator : getIterationMethod(KEYS), - entries: getIterationMethod(ENTRIES) - }; - if (FORCED) for (KEY in methods) { - if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) { - redefine(IterablePrototype, KEY, methods[KEY]); - } - } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); - } - - return methods; -}; - -var ARRAY_ITERATOR = 'Array Iterator'; -var setInternalState$2 = internalState.set; -var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR); - -// `Array.prototype.entries` method -// https://tc39.es/ecma262/#sec-array.prototype.entries -// `Array.prototype.keys` method -// https://tc39.es/ecma262/#sec-array.prototype.keys -// `Array.prototype.values` method -// https://tc39.es/ecma262/#sec-array.prototype.values -// `Array.prototype[@@iterator]` method -// https://tc39.es/ecma262/#sec-array.prototype-@@iterator -// `CreateArrayIterator` internal method -// https://tc39.es/ecma262/#sec-createarrayiterator -var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) { - setInternalState$2(this, { - type: ARRAY_ITERATOR, - target: toIndexedObject(iterated), // target - index: 0, // next index - kind: kind // kind - }); -// `%ArrayIteratorPrototype%.next` method -// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next -}, function () { - var state = getInternalState$1(this); - var target = state.target; - var kind = state.kind; - var index = state.index++; - if (!target || index >= target.length) { - state.target = undefined; - return { value: undefined, done: true }; - } - if (kind == 'keys') return { value: index, done: false }; - if (kind == 'values') return { value: target[index], done: false }; - return { value: [index, target[index]], done: false }; -}, 'values'); - -// argumentsList[@@iterator] is %ArrayProto_values% -// https://tc39.es/ecma262/#sec-createunmappedargumentsobject -// https://tc39.es/ecma262/#sec-createmappedargumentsobject -iterators.Arguments = iterators.Array; - -// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables -addToUnscopables('keys'); -addToUnscopables('values'); -addToUnscopables('entries'); - -var freezing = !fails(function () { - // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing - return Object.isExtensible(Object.preventExtensions({})); -}); - -var internalMetadata = createCommonjsModule(function (module) { -var defineProperty = objectDefineProperty.f; - - - -var METADATA = uid('meta'); -var id = 0; - -// eslint-disable-next-line es/no-object-isextensible -- safe -var isExtensible = Object.isExtensible || function () { - return true; -}; - -var setMetadata = function (it) { - defineProperty(it, METADATA, { value: { - objectID: 'O' + ++id, // object ID - weakData: {} // weak collections IDs - } }); -}; - -var fastKey = function (it, create) { - // return a primitive with prefix - if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; - if (!has$1(it, METADATA)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return 'F'; - // not necessary to add metadata - if (!create) return 'E'; - // add missing metadata - setMetadata(it); - // return object ID - } return it[METADATA].objectID; -}; - -var getWeakData = function (it, create) { - if (!has$1(it, METADATA)) { - // can't set metadata to uncaught frozen object - if (!isExtensible(it)) return true; - // not necessary to add metadata - if (!create) return false; - // add missing metadata - setMetadata(it); - // return the store of weak collections IDs - } return it[METADATA].weakData; -}; - -// add metadata on freeze-family methods calling -var onFreeze = function (it) { - if (freezing && meta.REQUIRED && isExtensible(it) && !has$1(it, METADATA)) setMetadata(it); - return it; -}; - -var meta = module.exports = { - REQUIRED: false, - fastKey: fastKey, - getWeakData: getWeakData, - onFreeze: onFreeze -}; - -hiddenKeys$1[METADATA] = true; -}); - -var ITERATOR$3 = wellKnownSymbol('iterator'); -var ArrayPrototype = Array.prototype; - -// check on default Array iterator -var isArrayIteratorMethod = function (it) { - return it !== undefined && (iterators.Array === it || ArrayPrototype[ITERATOR$3] === it); -}; - -var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag'); -var test = {}; - -test[TO_STRING_TAG$2] = 'z'; - -var toStringTagSupport = String(test) === '[object z]'; - -var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag'); -// ES3 wrong here -var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; - -// fallback for IE11 Script Access Denied error -var tryGet = function (it, key) { - try { - return it[key]; - } catch (error) { /* empty */ } -}; - -// getting tag from ES6+ `Object.prototype.toString` -var classof = toStringTagSupport ? classofRaw : function (it) { - var O, tag, result; - return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag - // builtinTag case - : CORRECT_ARGUMENTS ? classofRaw(O) - // ES3 arguments fallback - : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result; -}; - -var ITERATOR$2 = wellKnownSymbol('iterator'); - -var getIteratorMethod = function (it) { - if (it != undefined) return it[ITERATOR$2] - || it['@@iterator'] - || iterators[classof(it)]; -}; - -var iteratorClose = function (iterator) { - var returnMethod = iterator['return']; - if (returnMethod !== undefined) { - return anObject(returnMethod.call(iterator)).value; - } -}; - -var Result = function (stopped, result) { - this.stopped = stopped; - this.result = result; -}; - -var iterate = function (iterable, unboundFunction, options) { - var that = options && options.that; - var AS_ENTRIES = !!(options && options.AS_ENTRIES); - var IS_ITERATOR = !!(options && options.IS_ITERATOR); - var INTERRUPTED = !!(options && options.INTERRUPTED); - var fn = functionBindContext(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED); - var iterator, iterFn, index, length, result, next, step; - - var stop = function (condition) { - if (iterator) iteratorClose(iterator); - return new Result(true, condition); - }; - - var callFn = function (value) { - if (AS_ENTRIES) { - anObject(value); - return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); - } return INTERRUPTED ? fn(value, stop) : fn(value); - }; - - if (IS_ITERATOR) { - iterator = iterable; - } else { - iterFn = getIteratorMethod(iterable); - if (typeof iterFn != 'function') throw TypeError('Target is not iterable'); - // optimisation for array iterators - if (isArrayIteratorMethod(iterFn)) { - for (index = 0, length = toLength(iterable.length); length > index; index++) { - result = callFn(iterable[index]); - if (result && result instanceof Result) return result; - } return new Result(false); - } - iterator = iterFn.call(iterable); - } - - next = iterator.next; - while (!(step = next.call(iterator)).done) { - try { - result = callFn(step.value); - } catch (error) { - iteratorClose(iterator); - throw error; - } - if (typeof result == 'object' && result && result instanceof Result) return result; - } return new Result(false); -}; - -var anInstance = function (it, Constructor, name) { - if (!(it instanceof Constructor)) { - throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation'); - } return it; -}; - -var ITERATOR$1 = wellKnownSymbol('iterator'); -var SAFE_CLOSING = false; - -try { - var called = 0; - var iteratorWithReturn = { - next: function () { - return { done: !!called++ }; - }, - 'return': function () { - SAFE_CLOSING = true; - } - }; - iteratorWithReturn[ITERATOR$1] = function () { - return this; - }; - // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing - Array.from(iteratorWithReturn, function () { throw 2; }); -} catch (error) { /* empty */ } - -var checkCorrectnessOfIteration = function (exec, SKIP_CLOSING) { - if (!SKIP_CLOSING && !SAFE_CLOSING) return false; - var ITERATION_SUPPORT = false; - try { - var object = {}; - object[ITERATOR$1] = function () { - return { - next: function () { - return { done: ITERATION_SUPPORT = true }; - } - }; - }; - exec(object); - } catch (error) { /* empty */ } - return ITERATION_SUPPORT; -}; - -var collection = function (CONSTRUCTOR_NAME, wrapper, common) { - var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1; - var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1; - var ADDER = IS_MAP ? 'set' : 'add'; - var NativeConstructor = global$1[CONSTRUCTOR_NAME]; - var NativePrototype = NativeConstructor && NativeConstructor.prototype; - var Constructor = NativeConstructor; - var exported = {}; - - var fixMethod = function (KEY) { - var nativeMethod = NativePrototype[KEY]; - redefine(NativePrototype, KEY, - KEY == 'add' ? function add(value) { - nativeMethod.call(this, value === 0 ? 0 : value); - return this; - } : KEY == 'delete' ? function (key) { - return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key); - } : KEY == 'get' ? function get(key) { - return IS_WEAK && !isObject(key) ? undefined : nativeMethod.call(this, key === 0 ? 0 : key); - } : KEY == 'has' ? function has(key) { - return IS_WEAK && !isObject(key) ? false : nativeMethod.call(this, key === 0 ? 0 : key); - } : function set(key, value) { - nativeMethod.call(this, key === 0 ? 0 : key, value); - return this; - } - ); - }; - - var REPLACE = isForced_1( - CONSTRUCTOR_NAME, - typeof NativeConstructor != 'function' || !(IS_WEAK || NativePrototype.forEach && !fails(function () { - new NativeConstructor().entries().next(); - })) - ); - - if (REPLACE) { - // create collection constructor - Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER); - internalMetadata.REQUIRED = true; - } else if (isForced_1(CONSTRUCTOR_NAME, true)) { - var instance = new Constructor(); - // early implementations not supports chaining - var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; - // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false - var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); }); - // most early implementations doesn't supports iterables, most modern - not close it correctly - // eslint-disable-next-line no-new -- required for testing - var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); }); - // for early implementations -0 and +0 not the same - var BUGGY_ZERO = !IS_WEAK && fails(function () { - // V8 ~ Chromium 42- fails only with 5+ elements - var $instance = new NativeConstructor(); - var index = 5; - while (index--) $instance[ADDER](index, index); - return !$instance.has(-0); - }); - - if (!ACCEPT_ITERABLES) { - Constructor = wrapper(function (dummy, iterable) { - anInstance(dummy, Constructor, CONSTRUCTOR_NAME); - var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor); - if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); - return that; - }); - Constructor.prototype = NativePrototype; - NativePrototype.constructor = Constructor; - } - - if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { - fixMethod('delete'); - fixMethod('has'); - IS_MAP && fixMethod('get'); - } - - if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); - - // weak collections should not contains .clear method - if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear; - } - - exported[CONSTRUCTOR_NAME] = Constructor; - _export({ global: true, forced: Constructor != NativeConstructor }, exported); - - setToStringTag(Constructor, CONSTRUCTOR_NAME); - - if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP); - - return Constructor; -}; - -var redefineAll = function (target, src, options) { - for (var key in src) redefine(target, key, src[key], options); - return target; -}; - -var defineProperty = objectDefineProperty.f; - - - - - - - - -var fastKey = internalMetadata.fastKey; - - -var setInternalState$1 = internalState.set; -var internalStateGetterFor = internalState.getterFor; - -var collectionStrong = { - getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { - var C = wrapper(function (that, iterable) { - anInstance(that, C, CONSTRUCTOR_NAME); - setInternalState$1(that, { - type: CONSTRUCTOR_NAME, - index: objectCreate(null), - first: undefined, - last: undefined, - size: 0 - }); - if (!descriptors) that.size = 0; - if (iterable != undefined) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); - }); - - var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); - - var define = function (that, key, value) { - var state = getInternalState(that); - var entry = getEntry(that, key); - var previous, index; - // change existing entry - if (entry) { - entry.value = value; - // create new entry - } else { - state.last = entry = { - index: index = fastKey(key, true), - key: key, - value: value, - previous: previous = state.last, - next: undefined, - removed: false - }; - if (!state.first) state.first = entry; - if (previous) previous.next = entry; - if (descriptors) state.size++; - else that.size++; - // add to index - if (index !== 'F') state.index[index] = entry; - } return that; - }; - - var getEntry = function (that, key) { - var state = getInternalState(that); - // fast case - var index = fastKey(key); - var entry; - if (index !== 'F') return state.index[index]; - // frozen object case - for (entry = state.first; entry; entry = entry.next) { - if (entry.key == key) return entry; - } - }; - - redefineAll(C.prototype, { - // 23.1.3.1 Map.prototype.clear() - // 23.2.3.2 Set.prototype.clear() - clear: function clear() { - var that = this; - var state = getInternalState(that); - var data = state.index; - var entry = state.first; - while (entry) { - entry.removed = true; - if (entry.previous) entry.previous = entry.previous.next = undefined; - delete data[entry.index]; - entry = entry.next; - } - state.first = state.last = undefined; - if (descriptors) state.size = 0; - else that.size = 0; - }, - // 23.1.3.3 Map.prototype.delete(key) - // 23.2.3.4 Set.prototype.delete(value) - 'delete': function (key) { - var that = this; - var state = getInternalState(that); - var entry = getEntry(that, key); - if (entry) { - var next = entry.next; - var prev = entry.previous; - delete state.index[entry.index]; - entry.removed = true; - if (prev) prev.next = next; - if (next) next.previous = prev; - if (state.first == entry) state.first = next; - if (state.last == entry) state.last = prev; - if (descriptors) state.size--; - else that.size--; - } return !!entry; - }, - // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) - // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) - forEach: function forEach(callbackfn /* , that = undefined */) { - var state = getInternalState(this); - var boundFunction = functionBindContext(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); - var entry; - while (entry = entry ? entry.next : state.first) { - boundFunction(entry.value, entry.key, this); - // revert to the last existing entry - while (entry && entry.removed) entry = entry.previous; - } - }, - // 23.1.3.7 Map.prototype.has(key) - // 23.2.3.7 Set.prototype.has(value) - has: function has(key) { - return !!getEntry(this, key); - } - }); - - redefineAll(C.prototype, IS_MAP ? { - // 23.1.3.6 Map.prototype.get(key) - get: function get(key) { - var entry = getEntry(this, key); - return entry && entry.value; - }, - // 23.1.3.9 Map.prototype.set(key, value) - set: function set(key, value) { - return define(this, key === 0 ? 0 : key, value); - } - } : { - // 23.2.3.1 Set.prototype.add(value) - add: function add(value) { - return define(this, value = value === 0 ? 0 : value, value); - } - }); - if (descriptors) defineProperty(C.prototype, 'size', { - get: function () { - return getInternalState(this).size; - } - }); - return C; - }, - setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) { - var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator'; - var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME); - var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME); - // add .keys, .values, .entries, [@@iterator] - // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 - defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) { - setInternalState$1(this, { - type: ITERATOR_NAME, - target: iterated, - state: getInternalCollectionState(iterated), - kind: kind, - last: undefined - }); - }, function () { - var state = getInternalIteratorState(this); - var kind = state.kind; - var entry = state.last; - // revert to the last existing entry - while (entry && entry.removed) entry = entry.previous; - // get next entry - if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) { - // or finish the iteration - state.target = undefined; - return { value: undefined, done: true }; - } - // return step by kind - if (kind == 'keys') return { value: entry.key, done: false }; - if (kind == 'values') return { value: entry.value, done: false }; - return { value: [entry.key, entry.value], done: false }; - }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); - - // add [@@species], 23.1.2.2, 23.2.2.2 - setSpecies(CONSTRUCTOR_NAME); - } -}; - -// `Map` constructor -// https://tc39.es/ecma262/#sec-map-objects -collection('Map', function (init) { - return function Map() { return init(this, arguments.length ? arguments[0] : undefined); }; -}, collectionStrong); - -// `Object.prototype.toString` method implementation -// https://tc39.es/ecma262/#sec-object.prototype.tostring -var objectToString = toStringTagSupport ? {}.toString : function toString() { - return '[object ' + classof(this) + ']'; -}; - -// `Object.prototype.toString` method -// https://tc39.es/ecma262/#sec-object.prototype.tostring -if (!toStringTagSupport) { - redefine(Object.prototype, 'toString', objectToString, { unsafe: true }); -} - -var charAt = stringMultibyte.charAt; - - - -var STRING_ITERATOR = 'String Iterator'; -var setInternalState = internalState.set; -var getInternalState = internalState.getterFor(STRING_ITERATOR); - -// `String.prototype[@@iterator]` method -// https://tc39.es/ecma262/#sec-string.prototype-@@iterator -defineIterator(String, 'String', function (iterated) { - setInternalState(this, { - type: STRING_ITERATOR, - string: String(iterated), - index: 0 - }); -// `%StringIteratorPrototype%.next` method -// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next -}, function next() { - var state = getInternalState(this); - var string = state.string; - var index = state.index; - var point; - if (index >= string.length) return { value: undefined, done: true }; - point = charAt(string, index); - state.index += point.length; - return { value: point, done: false }; -}); - -// iterable DOM collections -// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods -var domIterables = { - CSSRuleList: 0, - CSSStyleDeclaration: 0, - CSSValueList: 0, - ClientRectList: 0, - DOMRectList: 0, - DOMStringList: 0, - DOMTokenList: 1, - DataTransferItemList: 0, - FileList: 0, - HTMLAllCollection: 0, - HTMLCollection: 0, - HTMLFormElement: 0, - HTMLSelectElement: 0, - MediaList: 0, - MimeTypeArray: 0, - NamedNodeMap: 0, - NodeList: 1, - PaintRequestList: 0, - Plugin: 0, - PluginArray: 0, - SVGLengthList: 0, - SVGNumberList: 0, - SVGPathSegList: 0, - SVGPointList: 0, - SVGStringList: 0, - SVGTransformList: 0, - SourceBufferList: 0, - StyleSheetList: 0, - TextTrackCueList: 0, - TextTrackList: 0, - TouchList: 0 -}; - -var ITERATOR = wellKnownSymbol('iterator'); -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var ArrayValues = es_array_iterator.values; - -for (var COLLECTION_NAME$1 in domIterables) { - var Collection$1 = global$1[COLLECTION_NAME$1]; - var CollectionPrototype$1 = Collection$1 && Collection$1.prototype; - if (CollectionPrototype$1) { - // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype$1[ITERATOR] !== ArrayValues) try { - createNonEnumerableProperty(CollectionPrototype$1, ITERATOR, ArrayValues); - } catch (error) { - CollectionPrototype$1[ITERATOR] = ArrayValues; - } - if (!CollectionPrototype$1[TO_STRING_TAG]) { - createNonEnumerableProperty(CollectionPrototype$1, TO_STRING_TAG, COLLECTION_NAME$1); - } - if (domIterables[COLLECTION_NAME$1]) for (var METHOD_NAME in es_array_iterator) { - // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype$1[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try { - createNonEnumerableProperty(CollectionPrototype$1, METHOD_NAME, es_array_iterator[METHOD_NAME]); - } catch (error) { - CollectionPrototype$1[METHOD_NAME] = es_array_iterator[METHOD_NAME]; - } - } - } -} - -var $forEach = arrayIteration.forEach; - - -var STRICT_METHOD = arrayMethodIsStrict('forEach'); - -// `Array.prototype.forEach` method implementation -// https://tc39.es/ecma262/#sec-array.prototype.foreach -var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) { - return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); -// eslint-disable-next-line es/no-array-prototype-foreach -- safe -} : [].forEach; - -for (var COLLECTION_NAME in domIterables) { - var Collection = global$1[COLLECTION_NAME]; - var CollectionPrototype = Collection && Collection.prototype; - // some Chrome versions have non-configurable methods on DOMTokenList - if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try { - createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach); - } catch (error) { - CollectionPrototype.forEach = arrayForEach; - } -} - -var packageJson = { - name: "@nextcloud/event-bus", - version: "1.3.0", - description: "", - main: "dist/index.js", - module: "dist/index.es.js", - types: "dist/index.d.ts", - scripts: { - build: "NODE_ENV=production rollup -c", - "build:doc": "typedoc --out dist/doc lib/index.ts && touch dist/doc/.nojekyll", - "check-types": "tsc", - dev: "NODE_ENV=development rollup -c --watch", - test: "jest", - "test:watch": "jest --watchAll" - }, - keywords: ["nextcloud"], - homepage: "https://github.com/nextcloud/nextcloud-event-bus#readme", - author: "Christoph Wurst", - license: "GPL-3.0-or-later", - repository: { - type: "git", - url: "https://github.com/nextcloud/nextcloud-event-bus" - }, - dependencies: { - "@types/semver": "^7.3.5", - "core-js": "^3.11.2", - semver: "^7.3.5" - }, - devDependencies: { - "@babel/cli": "^7.13.16", - "@babel/core": "^7.14.0", - "@babel/plugin-proposal-class-properties": "^7.13.0", - "@babel/preset-env": "^7.14.1", - "@babel/preset-typescript": "^7.13.0", - "@nextcloud/browserslist-config": "^1.0.0", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^18.0.0", - "@rollup/plugin-node-resolve": "^11.2.1", - "babel-jest": "^26.6.3", - "babel-plugin-inline-json-import": "^0.3.2", - jest: "^26.6.3", - rollup: "^2.47.0", - "rollup-plugin-inject-process-env": "^1.3.1", - "rollup-plugin-typescript2": "^0.30.0", - typedoc: "^0.20.36", - typescript: "^4.2.4" - }, - browserslist: ["extends @nextcloud/browserslist-config"] -}; - -var SimpleBus = -/** @class */ -function () { - function SimpleBus() { - this.handlers = new Map(); - } - - SimpleBus.prototype.getVersion = function () { - return packageJson.version; - }; - - SimpleBus.prototype.subscribe = function (name, handler) { - this.handlers.set(name, (this.handlers.get(name) || []).concat(handler)); - }; - - SimpleBus.prototype.unsubscribe = function (name, handler) { - this.handlers.set(name, (this.handlers.get(name) || []).filter(function (h) { - return h != handler; - })); - }; - - SimpleBus.prototype.emit = function (name, event) { - (this.handlers.get(name) || []).forEach(function (h) { - try { - h(event); - } catch (e) { - console.error('could not invoke event listener', e); - } - }); - }; - - return SimpleBus; -}(); - -function getBus() { - if (typeof window.OC !== 'undefined' && window.OC._eventBus && typeof window._nc_event_bus === 'undefined') { - console.warn('found old event bus instance at OC._eventBus. Update your version!'); - window._nc_event_bus = window.OC._eventBus; - } // Either use an existing event bus instance or create one - - - if (typeof window._nc_event_bus !== 'undefined') { - return new ProxyBus(window._nc_event_bus); - } else { - return window._nc_event_bus = new SimpleBus(); - } -} - -var bus = getBus(); -/** - * Register an event listener - * - * @param name name of the event - * @param handler callback invoked for every matching event emitted on the bus - */ - -function subscribe(name, handler) { - bus.subscribe(name, handler); -} -/** - * Unregister a previously registered event listener - * - * Note: doesn't work with anonymous functions (closures). Use method of an object or store listener function in variable. - * - * @param name name of the event - * @param handler callback passed to `subscribed` - */ - -function unsubscribe(name, handler) { - bus.unsubscribe(name, handler); -} -/** - * Emit an event - * - * @param name name of the event - * @param event event payload - */ - -function emit(name, event) { - bus.emit(name, event); -} - - -//# sourceMappingURL=index.es.js.map - - -/***/ }), - -/***/ "./node_modules/@nextcloud/router/dist/index.js": -/*!******************************************************!*\ - !*** ./node_modules/@nextcloud/router/dist/index.js ***! - \******************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - - -__webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js"); -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.linkTo = exports.imagePath = exports.getRootUrl = exports.generateUrl = exports.generateRemoteUrl = exports.generateOcsUrl = exports.generateFilePath = void 0; -__webpack_require__(/*! core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js"); -__webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js"); -__webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js"); -__webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js"); -__webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js"); -__webpack_require__(/*! core-js/modules/es.array.index-of.js */ "./node_modules/core-js/modules/es.array.index-of.js"); -/// - -/** - * Get an url with webroot to a file in an app - * - * @param {string} app the id of the app the file belongs to - * @param {string} file the file path relative to the app folder - * @return {string} URL with webroot to a file - */ -var linkTo = function linkTo(app, file) { - return generateFilePath(app, '', file); -}; - -/** - * Creates a relative url for remote use - * - * @param {string} service id - * @return {string} the url - */ -exports.linkTo = linkTo; -var linkToRemoteBase = function linkToRemoteBase(service) { - return getRootUrl() + '/remote.php/' + service; -}; - -/** - * @brief Creates an absolute url for remote use - * @param {string} service id - * @return {string} the url - */ -var generateRemoteUrl = function generateRemoteUrl(service) { - return window.location.protocol + '//' + window.location.host + linkToRemoteBase(service); -}; - -/** - * Get the base path for the given OCS API service - * - * @param {string} url OCS API service url - * @param {object} params parameters to be replaced into the service url - * @param {UrlOptions} options options for the parameter replacement - * @param {boolean} options.escape Set to false if parameters should not be URL encoded (default true) - * @param {Number} options.ocsVersion OCS version to use (defaults to 2) - * @return {string} Absolute path for the OCS URL - */ -exports.generateRemoteUrl = generateRemoteUrl; -var generateOcsUrl = function generateOcsUrl(url, params, options) { - var allOptions = Object.assign({ - ocsVersion: 2 - }, options || {}); - var version = allOptions.ocsVersion === 1 ? 1 : 2; - return window.location.protocol + '//' + window.location.host + getRootUrl() + '/ocs/v' + version + '.php' + _generateUrlPath(url, params, options); -}; -exports.generateOcsUrl = generateOcsUrl; -/** - * Generate a url path, which can contain parameters - * - * Parameters will be URL encoded automatically - * - * @param {string} url address (can contain placeholders e.g. /call/{token} would replace {token} with the value of params.token - * @param {object} params parameters to be replaced into the address - * @param {UrlOptions} options options for the parameter replacement - * @return {string} Path part for the given URL - */ -var _generateUrlPath = function _generateUrlPath(url, params, options) { - var allOptions = Object.assign({ - escape: true - }, options || {}); - var _build = function _build(text, vars) { - vars = vars || {}; - return text.replace(/{([^{}]*)}/g, function (a, b) { - var r = vars[b]; - if (allOptions.escape) { - return typeof r === 'string' || typeof r === 'number' ? encodeURIComponent(r.toString()) : encodeURIComponent(a); - } else { - return typeof r === 'string' || typeof r === 'number' ? r.toString() : a; - } - }); - }; - if (url.charAt(0) !== '/') { - url = '/' + url; - } - return _build(url, params || {}); -}; - -/** - * Generate the url with webroot for the given relative url, which can contain parameters - * - * Parameters will be URL encoded automatically - * - * @param {string} url address (can contain placeholders e.g. /call/{token} would replace {token} with the value of params.token - * @param {object} params parameters to be replaced into the url - * @param {UrlOptions} options options for the parameter replacement - * @param {boolean} options.noRewrite True if you want to force index.php being added - * @param {boolean} options.escape Set to false if parameters should not be URL encoded (default true) - * @return {string} URL with webroot for the given relative URL - */ -var generateUrl = function generateUrl(url, params, options) { - var _window, _window$OC, _window$OC$config; - var allOptions = Object.assign({ - noRewrite: false - }, options || {}); - if (((_window = window) === null || _window === void 0 ? void 0 : (_window$OC = _window.OC) === null || _window$OC === void 0 ? void 0 : (_window$OC$config = _window$OC.config) === null || _window$OC$config === void 0 ? void 0 : _window$OC$config.modRewriteWorking) === true && !allOptions.noRewrite) { - return getRootUrl() + _generateUrlPath(url, params, options); - } - return getRootUrl() + '/index.php' + _generateUrlPath(url, params, options); -}; - -/** - * Get the path with webroot to an image file - * if no extension is given for the image, it will automatically decide - * between .png and .svg based on what the browser supports - * - * @param {string} app the app id to which the image belongs - * @param {string} file the name of the image file - * @return {string} - */ -exports.generateUrl = generateUrl; -var imagePath = function imagePath(app, file) { - if (file.indexOf('.') === -1) { - //if no extension is given, use svg - return generateFilePath(app, 'img', file + '.svg'); - } - return generateFilePath(app, 'img', file); -}; - -/** - * Get the url with webroot for a file in an app - * - * @param {string} app the id of the app - * @param {string} type the type of the file to link to (e.g. css,img,ajax.template) - * @param {string} file the filename - * @return {string} URL with webroot for a file in an app - */ -exports.imagePath = imagePath; -var generateFilePath = function generateFilePath(app, type, file) { - var _window2, _window2$OC, _window2$OC$coreApps; - var isCore = ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$OC = _window2.OC) === null || _window2$OC === void 0 ? void 0 : (_window2$OC$coreApps = _window2$OC.coreApps) === null || _window2$OC$coreApps === void 0 ? void 0 : _window2$OC$coreApps.indexOf(app)) !== -1; - var link = getRootUrl(); - if (file.substring(file.length - 3) === 'php' && !isCore) { - link += '/index.php/apps/' + app; - if (file !== 'index.php') { - link += '/'; - if (type) { - link += encodeURI(type + '/'); - } - link += file; - } - } else if (file.substring(file.length - 3) !== 'php' && !isCore) { - var _window3, _window3$OC, _window3$OC$appswebro; - link = (_window3 = window) === null || _window3 === void 0 ? void 0 : (_window3$OC = _window3.OC) === null || _window3$OC === void 0 ? void 0 : (_window3$OC$appswebro = _window3$OC.appswebroots) === null || _window3$OC$appswebro === void 0 ? void 0 : _window3$OC$appswebro[app]; - if (type) { - link += '/' + type + '/'; - } - if (link.substring(link.length - 1) !== '/') { - link += '/'; - } - link += file; - } else { - if ((app === 'settings' || app === 'core' || app === 'search') && type === 'ajax') { - link += '/index.php/'; - } else { - link += '/'; - } - if (!isCore) { - link += 'apps/'; - } - if (app !== '') { - app += '/'; - link += app; - } - if (type) { - link += type + '/'; - } - link += file; - } - return link; -}; - -/** - * Return the web root path where this Nextcloud instance - * is accessible, with a leading slash. - * For example "/nextcloud". - * - * @return {string} web root path - */ -exports.generateFilePath = generateFilePath; -var getRootUrl = function getRootUrl() { - var _window4, _window4$OC; - return ((_window4 = window) === null || _window4 === void 0 ? void 0 : (_window4$OC = _window4.OC) === null || _window4$OC === void 0 ? void 0 : _window4$OC.webroot) || ''; -}; -exports.getRootUrl = getRootUrl; -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@radix-ui/number/dist/index.module.js": -/*!************************************************************!*\ - !*** ./node_modules/@radix-ui/number/dist/index.module.js ***! - \************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ clamp: () => (/* binding */ $ae6933e535247d3d$export$7d15b64cf5a3a4c4) -/* harmony export */ }); -function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value, [min, max]) { - return Math.min(max, Math.max(min, value)); -} - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/primitive/dist/index.module.js": -/*!***************************************************************!*\ - !*** ./node_modules/@radix-ui/primitive/dist/index.module.js ***! - \***************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ composeEventHandlers: () => (/* binding */ $e42e1063c40fb3ef$export$b9ecd428b558ff10) -/* harmony export */ }); -function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) { - return function handleEvent(event) { - originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event); - if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event); - }; -} - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/react-compose-refs/dist/index.module.js": -/*!************************************************************************!*\ - !*** ./node_modules/@radix-ui/react-compose-refs/dist/index.module.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ composeRefs: () => (/* binding */ $6ed0406888f73fc4$export$43e446d32b3d21af), -/* harmony export */ useComposedRefs: () => (/* binding */ $6ed0406888f73fc4$export$c7b2cbe3552a0d05) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - - -/** - * Set a given ref to a given value - * This utility takes care of different types of refs: callback refs and RefObject(s) - */ function $6ed0406888f73fc4$var$setRef(ref, value) { - if (typeof ref === 'function') ref(value); - else if (ref !== null && ref !== undefined) ref.current = value; -} -/** - * A utility to compose multiple refs together - * Accepts callback refs and RefObject(s) - */ function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) { - return (node)=>refs.forEach((ref)=>$6ed0406888f73fc4$var$setRef(ref, node) - ) - ; -} -/** - * A custom hook that composes multiple refs - * Accepts callback refs and RefObject(s) - */ function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) { - // eslint-disable-next-line react-hooks/exhaustive-deps - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs); -} - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/react-context/dist/index.module.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@radix-ui/react-context/dist/index.module.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ createContext: () => (/* binding */ $c512c27ab02ef895$export$fd42f52fd3ae1109), -/* harmony export */ createContextScope: () => (/* binding */ $c512c27ab02ef895$export$50c7b4e9d9f19c1) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - - -function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) { - const Context = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(defaultContext); - function Provider(props) { - const { children: children , ...context } = props; // Only re-memoize when prop values change - // eslint-disable-next-line react-hooks/exhaustive-deps - const value = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>context - , Object.values(context)); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Context.Provider, { - value: value - }, children); - } - function useContext(consumerName) { - const context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context); - if (context) return context; - if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context. - throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``); - } - Provider.displayName = rootComponentName + 'Provider'; - return [ - Provider, - useContext - ]; -} -/* ------------------------------------------------------------------------------------------------- - * createContextScope - * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) { - let defaultContexts = []; - /* ----------------------------------------------------------------------------------------------- - * createContext - * ---------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) { - const BaseContext = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(defaultContext); - const index = defaultContexts.length; - defaultContexts = [ - ...defaultContexts, - defaultContext - ]; - function Provider(props) { - const { scope: scope , children: children , ...context } = props; - const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; // Only re-memoize when prop values change - // eslint-disable-next-line react-hooks/exhaustive-deps - const value = (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>context - , Object.values(context)); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Context.Provider, { - value: value - }, children); - } - function useContext(consumerName, scope) { - const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index]) || BaseContext; - const context = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(Context); - if (context) return context; - if (defaultContext !== undefined) return defaultContext; // if a defaultContext wasn't specified, it's a required context. - throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``); - } - Provider.displayName = rootComponentName + 'Provider'; - return [ - Provider, - useContext - ]; - } - /* ----------------------------------------------------------------------------------------------- - * createScope - * ---------------------------------------------------------------------------------------------*/ const createScope = ()=>{ - const scopeContexts = defaultContexts.map((defaultContext)=>{ - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(defaultContext); - }); - return function useScope(scope) { - const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts; - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>({ - [`__scope${scopeName}`]: { - ...scope, - [scopeName]: contexts - } - }) - , [ - scope, - contexts - ]); - }; - }; - createScope.scopeName = scopeName; - return [ - $c512c27ab02ef895$export$fd42f52fd3ae1109, - $c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps) - ]; -} -/* ------------------------------------------------------------------------------------------------- - * composeContextScopes - * -----------------------------------------------------------------------------------------------*/ function $c512c27ab02ef895$var$composeContextScopes(...scopes) { - const baseScope = scopes[0]; - if (scopes.length === 1) return baseScope; - const createScope1 = ()=>{ - const scopeHooks = scopes.map((createScope)=>({ - useScope: createScope(), - scopeName: createScope.scopeName - }) - ); - return function useComposedScopes(overrideScopes) { - const nextScopes1 = scopeHooks.reduce((nextScopes, { useScope: useScope , scopeName: scopeName })=>{ - // We are calling a hook inside a callback which React warns against to avoid inconsistent - // renders, however, scoping doesn't have render side effects so we ignore the rule. - // eslint-disable-next-line react-hooks/rules-of-hooks - const scopeProps = useScope(overrideScopes); - const currentScope = scopeProps[`__scope${scopeName}`]; - return { - ...nextScopes, - ...currentScope - }; - }, {}); - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>({ - [`__scope${baseScope.scopeName}`]: nextScopes1 - }) - , [ - nextScopes1 - ]); - }; - }; - createScope1.scopeName = baseScope.scopeName; - return createScope1; -} - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/react-direction/dist/index.module.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@radix-ui/react-direction/dist/index.module.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ DirectionProvider: () => (/* binding */ $f631663db3294ace$export$c760c09fdd558351), -/* harmony export */ Provider: () => (/* binding */ $f631663db3294ace$export$2881499e37b75b9a), -/* harmony export */ useDirection: () => (/* binding */ $f631663db3294ace$export$b39126d51d94e6f3) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - - -const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(undefined); -/* ------------------------------------------------------------------------------------------------- - * Direction - * -----------------------------------------------------------------------------------------------*/ const $f631663db3294ace$export$c760c09fdd558351 = (props)=>{ - const { dir: dir , children: children } = props; - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)($f631663db3294ace$var$DirectionContext.Provider, { - value: dir - }, children); -}; -/* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) { - const globalDir = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)($f631663db3294ace$var$DirectionContext); - return localDir || globalDir || 'ltr'; -} -const $f631663db3294ace$export$2881499e37b75b9a = $f631663db3294ace$export$c760c09fdd558351; - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/react-presence/dist/index.module.js": -/*!********************************************************************!*\ - !*** ./node_modules/@radix-ui/react-presence/dist/index.module.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Presence: () => (/* binding */ $921a889cee6df7e8$export$99c2b779aa4e8b8b) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); -/* harmony import */ var _radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @radix-ui/react-compose-refs */ "./node_modules/@radix-ui/react-compose-refs/dist/index.module.js"); -/* harmony import */ var _radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @radix-ui/react-use-layout-effect */ "./node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js"); - - - - - - - - - - -function $fe963b355347cc68$export$3e6543de14f8614f(initialState, machine) { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useReducer)((state, event)=>{ - const nextState = machine[state][event]; - return nextState !== null && nextState !== void 0 ? nextState : state; - }, initialState); -} - - -const $921a889cee6df7e8$export$99c2b779aa4e8b8b = (props)=>{ - const { present: present , children: children } = props; - const presence = $921a889cee6df7e8$var$usePresence(present); - const child = typeof children === 'function' ? children({ - present: presence.isPresent - }) : react__WEBPACK_IMPORTED_MODULE_0__.Children.only(children); - const ref = (0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__.useComposedRefs)(presence.ref, child.ref); - const forceMount = typeof children === 'function'; - return forceMount || presence.isPresent ? /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, { - ref: ref - }) : null; -}; -$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName = 'Presence'; -/* ------------------------------------------------------------------------------------------------- - * usePresence - * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence(present) { - const [node1, setNode] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(); - const stylesRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({}); - const prevPresentRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(present); - const prevAnimationNameRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)('none'); - const initialState = present ? 'mounted' : 'unmounted'; - const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f(initialState, { - mounted: { - UNMOUNT: 'unmounted', - ANIMATION_OUT: 'unmountSuspended' - }, - unmountSuspended: { - MOUNT: 'mounted', - ANIMATION_END: 'unmounted' - }, - unmounted: { - MOUNT: 'mounted' - } - }); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{ - const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current); - prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none'; - }, [ - state - ]); - (0,_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_3__.useLayoutEffect)(()=>{ - const styles = stylesRef.current; - const wasPresent = prevPresentRef.current; - const hasPresentChanged = wasPresent !== present; - if (hasPresentChanged) { - const prevAnimationName = prevAnimationNameRef.current; - const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(styles); - if (present) send('MOUNT'); - else if (currentAnimationName === 'none' || (styles === null || styles === void 0 ? void 0 : styles.display) === 'none') // If there is no exit animation or the element is hidden, animations won't run - // so we unmount instantly - send('UNMOUNT'); - else { - /** - * When `present` changes to `false`, we check changes to animation-name to - * determine whether an animation has started. We chose this approach (reading - * computed styles) because there is no `animationrun` event and `animationstart` - * fires after `animation-delay` has expired which would be too late. - */ const isAnimating = prevAnimationName !== currentAnimationName; - if (wasPresent && isAnimating) send('ANIMATION_OUT'); - else send('UNMOUNT'); - } - prevPresentRef.current = present; - } - }, [ - present, - send - ]); - (0,_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_3__.useLayoutEffect)(()=>{ - if (node1) { - /** - * Triggering an ANIMATION_OUT during an ANIMATION_IN will fire an `animationcancel` - * event for ANIMATION_IN after we have entered `unmountSuspended` state. So, we - * make sure we only trigger ANIMATION_END for the currently active animation. - */ const handleAnimationEnd = (event)=>{ - const currentAnimationName = $921a889cee6df7e8$var$getAnimationName(stylesRef.current); - const isCurrentAnimation = currentAnimationName.includes(event.animationName); - if (event.target === node1 && isCurrentAnimation) // With React 18 concurrency this update is applied - // a frame after the animation ends, creating a flash of visible content. - // By manually flushing we ensure they sync within a frame, removing the flash. - (0,react_dom__WEBPACK_IMPORTED_MODULE_1__.flushSync)(()=>send('ANIMATION_END') - ); - }; - const handleAnimationStart = (event)=>{ - if (event.target === node1) // if animation occurred, store its name as the previous animation. - prevAnimationNameRef.current = $921a889cee6df7e8$var$getAnimationName(stylesRef.current); - }; - node1.addEventListener('animationstart', handleAnimationStart); - node1.addEventListener('animationcancel', handleAnimationEnd); - node1.addEventListener('animationend', handleAnimationEnd); - return ()=>{ - node1.removeEventListener('animationstart', handleAnimationStart); - node1.removeEventListener('animationcancel', handleAnimationEnd); - node1.removeEventListener('animationend', handleAnimationEnd); - }; - } else // Transition to the unmounted state if the node is removed prematurely. - // We avoid doing so during cleanup as the node may change but still exist. - send('ANIMATION_END'); - }, [ - node1, - send - ]); - return { - isPresent: [ - 'mounted', - 'unmountSuspended' - ].includes(state), - ref: (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((node)=>{ - if (node) stylesRef.current = getComputedStyle(node); - setNode(node); - }, []) - }; -} -/* -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$getAnimationName(styles) { - return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none'; -} - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/react-primitive/dist/index.module.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@radix-ui/react-primitive/dist/index.module.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Primitive: () => (/* binding */ $8927f6f2acc4f386$export$250ffa63cdc0d034), -/* harmony export */ Root: () => (/* binding */ $8927f6f2acc4f386$export$be92b6f5f03c0fe9), -/* harmony export */ dispatchDiscreteCustomEvent: () => (/* binding */ $8927f6f2acc4f386$export$6d1a0317bde7de7f) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "./node_modules/react-dom/index.js"); -/* harmony import */ var _radix_ui_react_slot__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @radix-ui/react-slot */ "./node_modules/@radix-ui/react-slot/dist/index.module.js"); - - - - - - - - - -const $8927f6f2acc4f386$var$NODES = [ - 'a', - 'button', - 'div', - 'h2', - 'h3', - 'img', - 'label', - 'li', - 'nav', - 'ol', - 'p', - 'span', - 'svg', - 'ul' -]; // Temporary while we await merge of this fix: -// https://github.com/DefinitelyTyped/DefinitelyTyped/pull/55396 -// prettier-ignore -/* ------------------------------------------------------------------------------------------------- - * Primitive - * -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.reduce((primitive, node)=>{ - const Node = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { asChild: asChild , ...primitiveProps } = props; - const Comp = asChild ? _radix_ui_react_slot__WEBPACK_IMPORTED_MODULE_3__.Slot : node; - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ - window[Symbol.for('radix-ui')] = true; - }, []); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(Comp, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, primitiveProps, { - ref: forwardedRef - })); - }); - Node.displayName = `Primitive.${node}`; - return { - ...primitive, - [node]: Node - }; -}, {}); -/* ------------------------------------------------------------------------------------------------- - * Utils - * -----------------------------------------------------------------------------------------------*/ /** - * Flush custom event dispatch - * https://github.com/radix-ui/primitives/pull/1378 - * - * React batches *all* event handlers since version 18, this introduces certain considerations when using custom event types. - * - * Internally, React prioritises events in the following order: - * - discrete - * - continuous - * - default - * - * https://github.com/facebook/react/blob/a8a4742f1c54493df00da648a3f9d26e3db9c8b5/packages/react-dom/src/events/ReactDOMEventListener.js#L294-L350 - * - * `discrete` is an important distinction as updates within these events are applied immediately. - * React however, is not able to infer the priority of custom event types due to how they are detected internally. - * Because of this, it's possible for updates from custom events to be unexpectedly batched when - * dispatched by another `discrete` event. - * - * In order to ensure that updates from custom events are applied predictably, we need to manually flush the batch. - * This utility should be used when dispatching a custom event from within another `discrete` event, this utility - * is not nessesary when dispatching known event types, or if dispatching a custom type inside a non-discrete event. - * For example: - * - * dispatching a known click 👎 - * target.dispatchEvent(new Event(‘click’)) - * - * dispatching a custom type within a non-discrete event 👎 - * onScroll={(event) => event.target.dispatchEvent(new CustomEvent(‘customType’))} - * - * dispatching a custom type within a `discrete` event 👍 - * onPointerDown={(event) => dispatchDiscreteCustomEvent(event.target, new CustomEvent(‘customType’))} - * - * Note: though React classifies `focus`, `focusin` and `focusout` events as `discrete`, it's not recommended to use - * this utility with them. This is because it's possible for those handlers to be called implicitly during render - * e.g. when focus is within a component as it is unmounted, or when managing focus on mount. - */ function $8927f6f2acc4f386$export$6d1a0317bde7de7f(target, event) { - if (target) (0,react_dom__WEBPACK_IMPORTED_MODULE_2__.flushSync)(()=>target.dispatchEvent(event) - ); -} -/* -----------------------------------------------------------------------------------------------*/ const $8927f6f2acc4f386$export$be92b6f5f03c0fe9 = $8927f6f2acc4f386$export$250ffa63cdc0d034; - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/react-scroll-area/dist/index.module.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@radix-ui/react-scroll-area/dist/index.module.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Corner: () => (/* binding */ $57acba87d6e25586$export$ac61190d9fc311a9), -/* harmony export */ Root: () => (/* binding */ $57acba87d6e25586$export$be92b6f5f03c0fe9), -/* harmony export */ ScrollArea: () => (/* binding */ $57acba87d6e25586$export$ccf8d8d7bbf3c2cc), -/* harmony export */ ScrollAreaCorner: () => (/* binding */ $57acba87d6e25586$export$56969d565df7cc4b), -/* harmony export */ ScrollAreaScrollbar: () => (/* binding */ $57acba87d6e25586$export$2fabd85d0eba3c57), -/* harmony export */ ScrollAreaThumb: () => (/* binding */ $57acba87d6e25586$export$9fba1154677d7cd2), -/* harmony export */ ScrollAreaViewport: () => (/* binding */ $57acba87d6e25586$export$a21cbf9f11fca853), -/* harmony export */ Scrollbar: () => (/* binding */ $57acba87d6e25586$export$9a4e88b92edfce6b), -/* harmony export */ Thumb: () => (/* binding */ $57acba87d6e25586$export$6521433ed15a34db), -/* harmony export */ Viewport: () => (/* binding */ $57acba87d6e25586$export$d5c6c08dc2d3ca7), -/* harmony export */ createScrollAreaScope: () => (/* binding */ $57acba87d6e25586$export$488468afe3a6f2b1) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @radix-ui/react-primitive */ "./node_modules/@radix-ui/react-primitive/dist/index.module.js"); -/* harmony import */ var _radix_ui_react_presence__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @radix-ui/react-presence */ "./node_modules/@radix-ui/react-presence/dist/index.module.js"); -/* harmony import */ var _radix_ui_react_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @radix-ui/react-context */ "./node_modules/@radix-ui/react-context/dist/index.module.js"); -/* harmony import */ var _radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @radix-ui/react-compose-refs */ "./node_modules/@radix-ui/react-compose-refs/dist/index.module.js"); -/* harmony import */ var _radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @radix-ui/react-use-callback-ref */ "./node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js"); -/* harmony import */ var _radix_ui_react_direction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @radix-ui/react-direction */ "./node_modules/@radix-ui/react-direction/dist/index.module.js"); -/* harmony import */ var _radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @radix-ui/react-use-layout-effect */ "./node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js"); -/* harmony import */ var _radix_ui_number__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @radix-ui/number */ "./node_modules/@radix-ui/number/dist/index.module.js"); -/* harmony import */ var _radix_ui_primitive__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @radix-ui/primitive */ "./node_modules/@radix-ui/primitive/dist/index.module.js"); - - - - - - - - - - - - - - - - - - - - - - - - -function $6c2e24571c90391f$export$3e6543de14f8614f(initialState, machine) { - return (0,react__WEBPACK_IMPORTED_MODULE_1__.useReducer)((state, event)=>{ - const nextState = machine[state][event]; - return nextState !== null && nextState !== void 0 ? nextState : state; - }, initialState); -} - - -/* ------------------------------------------------------------------------------------------------- - * ScrollArea - * -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$var$SCROLL_AREA_NAME = 'ScrollArea'; -const [$57acba87d6e25586$var$createScrollAreaContext, $57acba87d6e25586$export$488468afe3a6f2b1] = (0,_radix_ui_react_context__WEBPACK_IMPORTED_MODULE_2__.createContextScope)($57acba87d6e25586$var$SCROLL_AREA_NAME); -const [$57acba87d6e25586$var$ScrollAreaProvider, $57acba87d6e25586$var$useScrollAreaContext] = $57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLL_AREA_NAME); -const $57acba87d6e25586$export$ccf8d8d7bbf3c2cc = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { __scopeScrollArea: __scopeScrollArea , type: type = 'hover' , dir: dir , scrollHideDelay: scrollHideDelay = 600 , ...scrollAreaProps } = props; - const [scrollArea, setScrollArea] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null); - const [viewport, setViewport] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null); - const [content, setContent] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null); - const [scrollbarX, setScrollbarX] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null); - const [scrollbarY, setScrollbarY] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null); - const [cornerWidth, setCornerWidth] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0); - const [cornerHeight, setCornerHeight] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0); - const [scrollbarXEnabled, setScrollbarXEnabled] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false); - const [scrollbarYEnabled, setScrollbarYEnabled] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false); - const composedRefs = (0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_3__.useComposedRefs)(forwardedRef, (node)=>setScrollArea(node) - ); - const direction = (0,_radix_ui_react_direction__WEBPACK_IMPORTED_MODULE_4__.useDirection)(dir); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaProvider, { - scope: __scopeScrollArea, - type: type, - dir: direction, - scrollHideDelay: scrollHideDelay, - scrollArea: scrollArea, - viewport: viewport, - onViewportChange: setViewport, - content: content, - onContentChange: setContent, - scrollbarX: scrollbarX, - onScrollbarXChange: setScrollbarX, - scrollbarXEnabled: scrollbarXEnabled, - onScrollbarXEnabledChange: setScrollbarXEnabled, - scrollbarY: scrollbarY, - onScrollbarYChange: setScrollbarY, - scrollbarYEnabled: scrollbarYEnabled, - onScrollbarYEnabledChange: setScrollbarYEnabled, - onCornerWidthChange: setCornerWidth, - onCornerHeightChange: setCornerHeight - }, /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_5__.Primitive.div, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - dir: direction - }, scrollAreaProps, { - ref: composedRefs, - style: { - position: 'relative', - // Pass corner sizes as CSS vars to reduce re-renders of context consumers - ['--radix-scroll-area-corner-width']: cornerWidth + 'px', - ['--radix-scroll-area-corner-height']: cornerHeight + 'px', - ...props.style - } - }))); -}); -/*#__PURE__*/ Object.assign($57acba87d6e25586$export$ccf8d8d7bbf3c2cc, { - displayName: $57acba87d6e25586$var$SCROLL_AREA_NAME -}); -/* ------------------------------------------------------------------------------------------------- - * ScrollAreaViewport - * -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$var$VIEWPORT_NAME = 'ScrollAreaViewport'; -const $57acba87d6e25586$export$a21cbf9f11fca853 = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { __scopeScrollArea: __scopeScrollArea , children: children , ...viewportProps } = props; - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$VIEWPORT_NAME, __scopeScrollArea); - const ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); - const composedRefs = (0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_3__.useComposedRefs)(forwardedRef, ref, context.onViewportChange); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)("style", { - dangerouslySetInnerHTML: { - __html: `[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}` - } - }), /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_5__.Primitive.div, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "data-radix-scroll-area-viewport": "" - }, viewportProps, { - ref: composedRefs, - style: { - /** - * We don't support `visible` because the intention is to have at least one scrollbar - * if this component is used and `visible` will behave like `auto` in that case - * https://developer.mozilla.org/en-US/docs/Web/CSS/overflowed#description - * - * We don't handle `auto` because the intention is for the native implementation - * to be hidden if using this component. We just want to ensure the node is scrollable - * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent - * the browser from having to work out whether to render native scrollbars or not, - * we tell it to with the intention of hiding them in CSS. - */ overflowX: context.scrollbarXEnabled ? 'scroll' : 'hidden', - overflowY: context.scrollbarYEnabled ? 'scroll' : 'hidden', - ...props.style - } - }), /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", { - ref: context.onContentChange, - style: { - minWidth: '100%', - display: 'table' - } - }, children))); -}); -/*#__PURE__*/ Object.assign($57acba87d6e25586$export$a21cbf9f11fca853, { - displayName: $57acba87d6e25586$var$VIEWPORT_NAME -}); -/* ------------------------------------------------------------------------------------------------- - * ScrollAreaScrollbar - * -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$var$SCROLLBAR_NAME = 'ScrollAreaScrollbar'; -const $57acba87d6e25586$export$2fabd85d0eba3c57 = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { forceMount: forceMount , ...scrollbarProps } = props; - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME, props.__scopeScrollArea); - const { onScrollbarXEnabledChange: onScrollbarXEnabledChange , onScrollbarYEnabledChange: onScrollbarYEnabledChange } = context; - const isHorizontal = props.orientation === 'horizontal'; - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ - isHorizontal ? onScrollbarXEnabledChange(true) : onScrollbarYEnabledChange(true); - return ()=>{ - isHorizontal ? onScrollbarXEnabledChange(false) : onScrollbarYEnabledChange(false); - }; - }, [ - isHorizontal, - onScrollbarXEnabledChange, - onScrollbarYEnabledChange - ]); - return context.type === 'hover' ? /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarHover, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, scrollbarProps, { - ref: forwardedRef, - forceMount: forceMount - })) : context.type === 'scroll' ? /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarScroll, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, scrollbarProps, { - ref: forwardedRef, - forceMount: forceMount - })) : context.type === 'auto' ? /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, scrollbarProps, { - ref: forwardedRef, - forceMount: forceMount - })) : context.type === 'always' ? /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, scrollbarProps, { - ref: forwardedRef - })) : null; -}); -/*#__PURE__*/ Object.assign($57acba87d6e25586$export$2fabd85d0eba3c57, { - displayName: $57acba87d6e25586$var$SCROLLBAR_NAME -}); -/* -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$var$ScrollAreaScrollbarHover = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { forceMount: forceMount , ...scrollbarProps } = props; - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME, props.__scopeScrollArea); - const [visible, setVisible] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false); - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ - const scrollArea = context.scrollArea; - let hideTimer = 0; - if (scrollArea) { - const handlePointerEnter = ()=>{ - window.clearTimeout(hideTimer); - setVisible(true); - }; - const handlePointerLeave = ()=>{ - hideTimer = window.setTimeout(()=>setVisible(false) - , context.scrollHideDelay); - }; - scrollArea.addEventListener('pointerenter', handlePointerEnter); - scrollArea.addEventListener('pointerleave', handlePointerLeave); - return ()=>{ - window.clearTimeout(hideTimer); - scrollArea.removeEventListener('pointerenter', handlePointerEnter); - scrollArea.removeEventListener('pointerleave', handlePointerLeave); - }; - } - }, [ - context.scrollArea, - context.scrollHideDelay - ]); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_radix_ui_react_presence__WEBPACK_IMPORTED_MODULE_6__.Presence, { - present: forceMount || visible - }, /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarAuto, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "data-state": visible ? 'visible' : 'hidden' - }, scrollbarProps, { - ref: forwardedRef - }))); -}); -const $57acba87d6e25586$var$ScrollAreaScrollbarScroll = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { forceMount: forceMount , ...scrollbarProps } = props; - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME, props.__scopeScrollArea); - const isHorizontal = props.orientation === 'horizontal'; - const debounceScrollEnd = $57acba87d6e25586$var$useDebounceCallback(()=>send('SCROLL_END') - , 100); - const [state, send] = $6c2e24571c90391f$export$3e6543de14f8614f('hidden', { - hidden: { - SCROLL: 'scrolling' - }, - scrolling: { - SCROLL_END: 'idle', - POINTER_ENTER: 'interacting' - }, - interacting: { - SCROLL: 'interacting', - POINTER_LEAVE: 'idle' - }, - idle: { - HIDE: 'hidden', - SCROLL: 'scrolling', - POINTER_ENTER: 'interacting' - } - }); - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ - if (state === 'idle') { - const hideTimer = window.setTimeout(()=>send('HIDE') - , context.scrollHideDelay); - return ()=>window.clearTimeout(hideTimer) - ; - } - }, [ - state, - context.scrollHideDelay, - send - ]); - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ - const viewport = context.viewport; - const scrollDirection = isHorizontal ? 'scrollLeft' : 'scrollTop'; - if (viewport) { - let prevScrollPos = viewport[scrollDirection]; - const handleScroll = ()=>{ - const scrollPos = viewport[scrollDirection]; - const hasScrollInDirectionChanged = prevScrollPos !== scrollPos; - if (hasScrollInDirectionChanged) { - send('SCROLL'); - debounceScrollEnd(); - } - prevScrollPos = scrollPos; - }; - viewport.addEventListener('scroll', handleScroll); - return ()=>viewport.removeEventListener('scroll', handleScroll) - ; - } - }, [ - context.viewport, - isHorizontal, - send, - debounceScrollEnd - ]); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_radix_ui_react_presence__WEBPACK_IMPORTED_MODULE_6__.Presence, { - present: forceMount || state !== 'hidden' - }, /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "data-state": state === 'hidden' ? 'hidden' : 'visible' - }, scrollbarProps, { - ref: forwardedRef, - onPointerEnter: (0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_7__.composeEventHandlers)(props.onPointerEnter, ()=>send('POINTER_ENTER') - ), - onPointerLeave: (0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_7__.composeEventHandlers)(props.onPointerLeave, ()=>send('POINTER_LEAVE') - ) - }))); -}); -const $57acba87d6e25586$var$ScrollAreaScrollbarAuto = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME, props.__scopeScrollArea); - const { forceMount: forceMount , ...scrollbarProps } = props; - const [visible, setVisible] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false); - const isHorizontal = props.orientation === 'horizontal'; - const handleResize = $57acba87d6e25586$var$useDebounceCallback(()=>{ - if (context.viewport) { - const isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth; - const isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight; - setVisible(isHorizontal ? isOverflowX : isOverflowY); - } - }, 10); - $57acba87d6e25586$var$useResizeObserver(context.viewport, handleResize); - $57acba87d6e25586$var$useResizeObserver(context.content, handleResize); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_radix_ui_react_presence__WEBPACK_IMPORTED_MODULE_6__.Presence, { - present: forceMount || visible - }, /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarVisible, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "data-state": visible ? 'visible' : 'hidden' - }, scrollbarProps, { - ref: forwardedRef - }))); -}); -/* -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$var$ScrollAreaScrollbarVisible = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { orientation: orientation = 'vertical' , ...scrollbarProps } = props; - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME, props.__scopeScrollArea); - const thumbRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); - const pointerOffsetRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(0); - const [sizes, setSizes] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({ - content: 0, - viewport: 0, - scrollbar: { - size: 0, - paddingStart: 0, - paddingEnd: 0 - } - }); - const thumbRatio = $57acba87d6e25586$var$getThumbRatio(sizes.viewport, sizes.content); - const commonProps = { - ...scrollbarProps, - sizes: sizes, - onSizesChange: setSizes, - hasThumb: Boolean(thumbRatio > 0 && thumbRatio < 1), - onThumbChange: (thumb)=>thumbRef.current = thumb - , - onThumbPointerUp: ()=>pointerOffsetRef.current = 0 - , - onThumbPointerDown: (pointerPos)=>pointerOffsetRef.current = pointerPos - }; - function getScrollPosition(pointerPos, dir) { - return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes, dir); - } - if (orientation === 'horizontal') return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarX, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { - ref: forwardedRef, - onThumbPositionChange: ()=>{ - if (context.viewport && thumbRef.current) { - const scrollPos = context.viewport.scrollLeft; - const offset = $57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos, sizes, context.dir); - thumbRef.current.style.transform = `translate3d(${offset}px, 0, 0)`; - } - }, - onWheelScroll: (scrollPos)=>{ - if (context.viewport) context.viewport.scrollLeft = scrollPos; - }, - onDragScroll: (pointerPos)=>{ - if (context.viewport) context.viewport.scrollLeft = getScrollPosition(pointerPos, context.dir); - } - })); - if (orientation === 'vertical') return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarY, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, commonProps, { - ref: forwardedRef, - onThumbPositionChange: ()=>{ - if (context.viewport && thumbRef.current) { - const scrollPos = context.viewport.scrollTop; - const offset = $57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos, sizes); - thumbRef.current.style.transform = `translate3d(0, ${offset}px, 0)`; - } - }, - onWheelScroll: (scrollPos)=>{ - if (context.viewport) context.viewport.scrollTop = scrollPos; - }, - onDragScroll: (pointerPos)=>{ - if (context.viewport) context.viewport.scrollTop = getScrollPosition(pointerPos); - } - })); - return null; -}); -/* -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$var$ScrollAreaScrollbarX = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { sizes: sizes , onSizesChange: onSizesChange , ...scrollbarProps } = props; - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME, props.__scopeScrollArea); - const [computedStyle, setComputedStyle] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(); - const ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); - const composeRefs = (0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_3__.useComposedRefs)(forwardedRef, ref, context.onScrollbarXChange); - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ - if (ref.current) setComputedStyle(getComputedStyle(ref.current)); - }, [ - ref - ]); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "data-orientation": "horizontal" - }, scrollbarProps, { - ref: composeRefs, - sizes: sizes, - style: { - bottom: 0, - left: context.dir === 'rtl' ? 'var(--radix-scroll-area-corner-width)' : 0, - right: context.dir === 'ltr' ? 'var(--radix-scroll-area-corner-width)' : 0, - ['--radix-scroll-area-thumb-width']: $57acba87d6e25586$var$getThumbSize(sizes) + 'px', - ...props.style - }, - onThumbPointerDown: (pointerPos)=>props.onThumbPointerDown(pointerPos.x) - , - onDragScroll: (pointerPos)=>props.onDragScroll(pointerPos.x) - , - onWheelScroll: (event, maxScrollPos)=>{ - if (context.viewport) { - const scrollPos = context.viewport.scrollLeft + event.deltaX; - props.onWheelScroll(scrollPos); // prevent window scroll when wheeling on scrollbar - if ($57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) event.preventDefault(); - } - }, - onResize: ()=>{ - if (ref.current && context.viewport && computedStyle) onSizesChange({ - content: context.viewport.scrollWidth, - viewport: context.viewport.offsetWidth, - scrollbar: { - size: ref.current.clientWidth, - paddingStart: $57acba87d6e25586$var$toInt(computedStyle.paddingLeft), - paddingEnd: $57acba87d6e25586$var$toInt(computedStyle.paddingRight) - } - }); - } - })); -}); -const $57acba87d6e25586$var$ScrollAreaScrollbarY = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { sizes: sizes , onSizesChange: onSizesChange , ...scrollbarProps } = props; - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME, props.__scopeScrollArea); - const [computedStyle, setComputedStyle] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(); - const ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); - const composeRefs = (0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_3__.useComposedRefs)(forwardedRef, ref, context.onScrollbarYChange); - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ - if (ref.current) setComputedStyle(getComputedStyle(ref.current)); - }, [ - ref - ]); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaScrollbarImpl, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "data-orientation": "vertical" - }, scrollbarProps, { - ref: composeRefs, - sizes: sizes, - style: { - top: 0, - right: context.dir === 'ltr' ? 0 : undefined, - left: context.dir === 'rtl' ? 0 : undefined, - bottom: 'var(--radix-scroll-area-corner-height)', - ['--radix-scroll-area-thumb-height']: $57acba87d6e25586$var$getThumbSize(sizes) + 'px', - ...props.style - }, - onThumbPointerDown: (pointerPos)=>props.onThumbPointerDown(pointerPos.y) - , - onDragScroll: (pointerPos)=>props.onDragScroll(pointerPos.y) - , - onWheelScroll: (event, maxScrollPos)=>{ - if (context.viewport) { - const scrollPos = context.viewport.scrollTop + event.deltaY; - props.onWheelScroll(scrollPos); // prevent window scroll when wheeling on scrollbar - if ($57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) event.preventDefault(); - } - }, - onResize: ()=>{ - if (ref.current && context.viewport && computedStyle) onSizesChange({ - content: context.viewport.scrollHeight, - viewport: context.viewport.offsetHeight, - scrollbar: { - size: ref.current.clientHeight, - paddingStart: $57acba87d6e25586$var$toInt(computedStyle.paddingTop), - paddingEnd: $57acba87d6e25586$var$toInt(computedStyle.paddingBottom) - } - }); - } - })); -}); -/* -----------------------------------------------------------------------------------------------*/ const [$57acba87d6e25586$var$ScrollbarProvider, $57acba87d6e25586$var$useScrollbarContext] = $57acba87d6e25586$var$createScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME); -const $57acba87d6e25586$var$ScrollAreaScrollbarImpl = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { __scopeScrollArea: __scopeScrollArea , sizes: sizes , hasThumb: hasThumb , onThumbChange: onThumbChange , onThumbPointerUp: onThumbPointerUp , onThumbPointerDown: onThumbPointerDown , onThumbPositionChange: onThumbPositionChange , onDragScroll: onDragScroll , onWheelScroll: onWheelScroll , onResize: onResize , ...scrollbarProps } = props; - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$SCROLLBAR_NAME, __scopeScrollArea); - const [scrollbar, setScrollbar] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null); - const composeRefs = (0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_3__.useComposedRefs)(forwardedRef, (node)=>setScrollbar(node) - ); - const rectRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); - const prevWebkitUserSelectRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(''); - const viewport = context.viewport; - const maxScrollPos = sizes.content - sizes.viewport; - const handleWheelScroll = (0,_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_8__.useCallbackRef)(onWheelScroll); - const handleThumbPositionChange = (0,_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_8__.useCallbackRef)(onThumbPositionChange); - const handleResize = $57acba87d6e25586$var$useDebounceCallback(onResize, 10); - function handleDragScroll(event) { - if (rectRef.current) { - const x = event.clientX - rectRef.current.left; - const y = event.clientY - rectRef.current.top; - onDragScroll({ - x: x, - y: y - }); - } - } - /** - * We bind wheel event imperatively so we can switch off passive - * mode for document wheel event to allow it to be prevented - */ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ - const handleWheel = (event)=>{ - const element = event.target; - const isScrollbarWheel = scrollbar === null || scrollbar === void 0 ? void 0 : scrollbar.contains(element); - if (isScrollbarWheel) handleWheelScroll(event, maxScrollPos); - }; - document.addEventListener('wheel', handleWheel, { - passive: false - }); - return ()=>document.removeEventListener('wheel', handleWheel, { - passive: false - }) - ; - }, [ - viewport, - scrollbar, - maxScrollPos, - handleWheelScroll - ]); - /** - * Update thumb position on sizes change - */ (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(handleThumbPositionChange, [ - sizes, - handleThumbPositionChange - ]); - $57acba87d6e25586$var$useResizeObserver(scrollbar, handleResize); - $57acba87d6e25586$var$useResizeObserver(context.content, handleResize); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollbarProvider, { - scope: __scopeScrollArea, - scrollbar: scrollbar, - hasThumb: hasThumb, - onThumbChange: (0,_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_8__.useCallbackRef)(onThumbChange), - onThumbPointerUp: (0,_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_8__.useCallbackRef)(onThumbPointerUp), - onThumbPositionChange: handleThumbPositionChange, - onThumbPointerDown: (0,_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_8__.useCallbackRef)(onThumbPointerDown) - }, /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_5__.Primitive.div, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, scrollbarProps, { - ref: composeRefs, - style: { - position: 'absolute', - ...scrollbarProps.style - }, - onPointerDown: (0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_7__.composeEventHandlers)(props.onPointerDown, (event)=>{ - const mainPointer = 0; - if (event.button === mainPointer) { - const element = event.target; - element.setPointerCapture(event.pointerId); - rectRef.current = scrollbar.getBoundingClientRect(); // pointer capture doesn't prevent text selection in Safari - // so we remove text selection manually when scrolling - prevWebkitUserSelectRef.current = document.body.style.webkitUserSelect; - document.body.style.webkitUserSelect = 'none'; - handleDragScroll(event); - } - }), - onPointerMove: (0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_7__.composeEventHandlers)(props.onPointerMove, handleDragScroll), - onPointerUp: (0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_7__.composeEventHandlers)(props.onPointerUp, (event)=>{ - const element = event.target; - if (element.hasPointerCapture(event.pointerId)) element.releasePointerCapture(event.pointerId); - document.body.style.webkitUserSelect = prevWebkitUserSelectRef.current; - rectRef.current = null; - }) - }))); -}); -/* ------------------------------------------------------------------------------------------------- - * ScrollAreaThumb - * -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$var$THUMB_NAME = 'ScrollAreaThumb'; -const $57acba87d6e25586$export$9fba1154677d7cd2 = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { forceMount: forceMount , ...thumbProps } = props; - const scrollbarContext = $57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME, props.__scopeScrollArea); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_radix_ui_react_presence__WEBPACK_IMPORTED_MODULE_6__.Presence, { - present: forceMount || scrollbarContext.hasThumb - }, /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaThumbImpl, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - ref: forwardedRef - }, thumbProps))); -}); -const $57acba87d6e25586$var$ScrollAreaThumbImpl = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { __scopeScrollArea: __scopeScrollArea , style: style , ...thumbProps } = props; - const scrollAreaContext = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$THUMB_NAME, __scopeScrollArea); - const scrollbarContext = $57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME, __scopeScrollArea); - const { onThumbPositionChange: onThumbPositionChange } = scrollbarContext; - const composedRef = (0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_3__.useComposedRefs)(forwardedRef, (node)=>scrollbarContext.onThumbChange(node) - ); - const removeUnlinkedScrollListenerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(); - const debounceScrollEnd = $57acba87d6e25586$var$useDebounceCallback(()=>{ - if (removeUnlinkedScrollListenerRef.current) { - removeUnlinkedScrollListenerRef.current(); - removeUnlinkedScrollListenerRef.current = undefined; - } - }, 100); - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>{ - const viewport = scrollAreaContext.viewport; - if (viewport) { - /** - * We only bind to native scroll event so we know when scroll starts and ends. - * When scroll starts we start a requestAnimationFrame loop that checks for - * changes to scroll position. That rAF loop triggers our thumb position change - * when relevant to avoid scroll-linked effects. We cancel the loop when scroll ends. - * https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Scroll-linked_effects - */ const handleScroll = ()=>{ - debounceScrollEnd(); - if (!removeUnlinkedScrollListenerRef.current) { - const listener = $57acba87d6e25586$var$addUnlinkedScrollListener(viewport, onThumbPositionChange); - removeUnlinkedScrollListenerRef.current = listener; - onThumbPositionChange(); - } - }; - onThumbPositionChange(); - viewport.addEventListener('scroll', handleScroll); - return ()=>viewport.removeEventListener('scroll', handleScroll) - ; - } - }, [ - scrollAreaContext.viewport, - debounceScrollEnd, - onThumbPositionChange - ]); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_5__.Primitive.div, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({ - "data-state": scrollbarContext.hasThumb ? 'visible' : 'hidden' - }, thumbProps, { - ref: composedRef, - style: { - width: 'var(--radix-scroll-area-thumb-width)', - height: 'var(--radix-scroll-area-thumb-height)', - ...style - }, - onPointerDownCapture: (0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_7__.composeEventHandlers)(props.onPointerDownCapture, (event)=>{ - const thumb = event.target; - const thumbRect = thumb.getBoundingClientRect(); - const x = event.clientX - thumbRect.left; - const y = event.clientY - thumbRect.top; - scrollbarContext.onThumbPointerDown({ - x: x, - y: y - }); - }), - onPointerUp: (0,_radix_ui_primitive__WEBPACK_IMPORTED_MODULE_7__.composeEventHandlers)(props.onPointerUp, scrollbarContext.onThumbPointerUp) - })); -}); -/*#__PURE__*/ Object.assign($57acba87d6e25586$export$9fba1154677d7cd2, { - displayName: $57acba87d6e25586$var$THUMB_NAME -}); -/* ------------------------------------------------------------------------------------------------- - * ScrollAreaCorner - * -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$var$CORNER_NAME = 'ScrollAreaCorner'; -const $57acba87d6e25586$export$56969d565df7cc4b = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME, props.__scopeScrollArea); - const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY); - const hasCorner = context.type !== 'scroll' && hasBothScrollbarsVisible; - return hasCorner ? /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($57acba87d6e25586$var$ScrollAreaCornerImpl, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props, { - ref: forwardedRef - })) : null; -}); -/*#__PURE__*/ Object.assign($57acba87d6e25586$export$56969d565df7cc4b, { - displayName: $57acba87d6e25586$var$CORNER_NAME -}); -/* -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$var$ScrollAreaCornerImpl = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { __scopeScrollArea: __scopeScrollArea , ...cornerProps } = props; - const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME, __scopeScrollArea); - const [width1, setWidth] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0); - const [height1, setHeight] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0); - const hasSize = Boolean(width1 && height1); - $57acba87d6e25586$var$useResizeObserver(context.scrollbarX, ()=>{ - var _context$scrollbarX; - const height = ((_context$scrollbarX = context.scrollbarX) === null || _context$scrollbarX === void 0 ? void 0 : _context$scrollbarX.offsetHeight) || 0; - context.onCornerHeightChange(height); - setHeight(height); - }); - $57acba87d6e25586$var$useResizeObserver(context.scrollbarY, ()=>{ - var _context$scrollbarY; - const width = ((_context$scrollbarY = context.scrollbarY) === null || _context$scrollbarY === void 0 ? void 0 : _context$scrollbarY.offsetWidth) || 0; - context.onCornerWidthChange(width); - setWidth(width); - }); - return hasSize ? /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_radix_ui_react_primitive__WEBPACK_IMPORTED_MODULE_5__.Primitive.div, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, cornerProps, { - ref: forwardedRef, - style: { - width: width1, - height: height1, - position: 'absolute', - right: context.dir === 'ltr' ? 0 : undefined, - left: context.dir === 'rtl' ? 0 : undefined, - bottom: 0, - ...props.style - } - })) : null; -}); -/* -----------------------------------------------------------------------------------------------*/ function $57acba87d6e25586$var$toInt(value) { - return value ? parseInt(value, 10) : 0; -} -function $57acba87d6e25586$var$getThumbRatio(viewportSize, contentSize) { - const ratio = viewportSize / contentSize; - return isNaN(ratio) ? 0 : ratio; -} -function $57acba87d6e25586$var$getThumbSize(sizes) { - const ratio = $57acba87d6e25586$var$getThumbRatio(sizes.viewport, sizes.content); - const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd; - const thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio; // minimum of 18 matches macOS minimum - return Math.max(thumbSize, 18); -} -function $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = 'ltr') { - const thumbSizePx = $57acba87d6e25586$var$getThumbSize(sizes); - const thumbCenter = thumbSizePx / 2; - const offset = pointerOffset || thumbCenter; - const thumbOffsetFromEnd = thumbSizePx - offset; - const minPointerPos = sizes.scrollbar.paddingStart + offset; - const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd; - const maxScrollPos = sizes.content - sizes.viewport; - const scrollRange = dir === 'ltr' ? [ - 0, - maxScrollPos - ] : [ - maxScrollPos * -1, - 0 - ]; - const interpolate = $57acba87d6e25586$var$linearScale([ - minPointerPos, - maxPointerPos - ], scrollRange); - return interpolate(pointerPos); -} -function $57acba87d6e25586$var$getThumbOffsetFromScroll(scrollPos, sizes, dir = 'ltr') { - const thumbSizePx = $57acba87d6e25586$var$getThumbSize(sizes); - const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd; - const scrollbar = sizes.scrollbar.size - scrollbarPadding; - const maxScrollPos = sizes.content - sizes.viewport; - const maxThumbPos = scrollbar - thumbSizePx; - const scrollClampRange = dir === 'ltr' ? [ - 0, - maxScrollPos - ] : [ - maxScrollPos * -1, - 0 - ]; - const scrollWithoutMomentum = (0,_radix_ui_number__WEBPACK_IMPORTED_MODULE_9__.clamp)(scrollPos, scrollClampRange); - const interpolate = $57acba87d6e25586$var$linearScale([ - 0, - maxScrollPos - ], [ - 0, - maxThumbPos - ]); - return interpolate(scrollWithoutMomentum); -} // https://github.com/tmcw-up-for-adoption/simple-linear-scale/blob/master/index.js -function $57acba87d6e25586$var$linearScale(input, output) { - return (value)=>{ - if (input[0] === input[1] || output[0] === output[1]) return output[0]; - const ratio = (output[1] - output[0]) / (input[1] - input[0]); - return output[0] + ratio * (value - input[0]); - }; -} -function $57acba87d6e25586$var$isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) { - return scrollPos > 0 && scrollPos < maxScrollPos; -} // Custom scroll handler to avoid scroll-linked effects -// https://developer.mozilla.org/en-US/docs/Mozilla/Performance/Scroll-linked_effects -const $57acba87d6e25586$var$addUnlinkedScrollListener = (node, handler = ()=>{})=>{ - let prevPosition = { - left: node.scrollLeft, - top: node.scrollTop - }; - let rAF = 0; - (function loop() { - const position = { - left: node.scrollLeft, - top: node.scrollTop - }; - const isHorizontalScroll = prevPosition.left !== position.left; - const isVerticalScroll = prevPosition.top !== position.top; - if (isHorizontalScroll || isVerticalScroll) handler(); - prevPosition = position; - rAF = window.requestAnimationFrame(loop); - })(); - return ()=>window.cancelAnimationFrame(rAF) - ; -}; -function $57acba87d6e25586$var$useDebounceCallback(callback, delay) { - const handleCallback = (0,_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_8__.useCallbackRef)(callback); - const debounceTimerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(0); - (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(()=>()=>window.clearTimeout(debounceTimerRef.current) - , []); - return (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(()=>{ - window.clearTimeout(debounceTimerRef.current); - debounceTimerRef.current = window.setTimeout(handleCallback, delay); - }, [ - handleCallback, - delay - ]); -} -function $57acba87d6e25586$var$useResizeObserver(element, onResize) { - const handleResize = (0,_radix_ui_react_use_callback_ref__WEBPACK_IMPORTED_MODULE_8__.useCallbackRef)(onResize); - (0,_radix_ui_react_use_layout_effect__WEBPACK_IMPORTED_MODULE_10__.useLayoutEffect)(()=>{ - let rAF = 0; - if (element) { - /** - * Resize Observer will throw an often benign error that says `ResizeObserver loop - * completed with undelivered notifications`. This means that ResizeObserver was not - * able to deliver all observations within a single animation frame, so we use - * `requestAnimationFrame` to ensure we don't deliver unnecessary observations. - * Further reading: https://github.com/WICG/resize-observer/issues/38 - */ const resizeObserver = new ResizeObserver(()=>{ - cancelAnimationFrame(rAF); - rAF = window.requestAnimationFrame(handleResize); - }); - resizeObserver.observe(element); - return ()=>{ - window.cancelAnimationFrame(rAF); - resizeObserver.unobserve(element); - }; - } - }, [ - element, - handleResize - ]); -} -/* -----------------------------------------------------------------------------------------------*/ const $57acba87d6e25586$export$be92b6f5f03c0fe9 = $57acba87d6e25586$export$ccf8d8d7bbf3c2cc; -const $57acba87d6e25586$export$d5c6c08dc2d3ca7 = $57acba87d6e25586$export$a21cbf9f11fca853; -const $57acba87d6e25586$export$9a4e88b92edfce6b = $57acba87d6e25586$export$2fabd85d0eba3c57; -const $57acba87d6e25586$export$6521433ed15a34db = $57acba87d6e25586$export$9fba1154677d7cd2; -const $57acba87d6e25586$export$ac61190d9fc311a9 = $57acba87d6e25586$export$56969d565df7cc4b; - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/react-slot/dist/index.module.js": -/*!****************************************************************!*\ - !*** ./node_modules/@radix-ui/react-slot/dist/index.module.js ***! - \****************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Root: () => (/* binding */ $5e63c961fc1ce211$export$be92b6f5f03c0fe9), -/* harmony export */ Slot: () => (/* binding */ $5e63c961fc1ce211$export$8c6ed5c666ac1360), -/* harmony export */ Slottable: () => (/* binding */ $5e63c961fc1ce211$export$d9f1ccf0bdb05d45) -/* harmony export */ }); -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @radix-ui/react-compose-refs */ "./node_modules/@radix-ui/react-compose-refs/dist/index.module.js"); - - - - - - - -/* ------------------------------------------------------------------------------------------------- - * Slot - * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { children: children , ...slotProps } = props; - const childrenArray = react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(children); - const slottable = childrenArray.find($5e63c961fc1ce211$var$isSlottable); - if (slottable) { - // the new element to render is the one passed as a child of `Slottable` - const newElement = slottable.props.children; - const newChildren = childrenArray.map((child)=>{ - if (child === slottable) { - // because the new element will be the one rendered, we are only interested - // in grabbing its children (`newElement.props.children`) - if (react__WEBPACK_IMPORTED_MODULE_1__.Children.count(newElement) > 1) return react__WEBPACK_IMPORTED_MODULE_1__.Children.only(null); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(newElement) ? newElement.props.children : null; - } else return child; - }); - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($5e63c961fc1ce211$var$SlotClone, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, slotProps, { - ref: forwardedRef - }), /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(newElement) ? /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(newElement, undefined, newChildren) : null); - } - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)($5e63c961fc1ce211$var$SlotClone, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, slotProps, { - ref: forwardedRef - }), children); -}); -$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName = 'Slot'; -/* ------------------------------------------------------------------------------------------------- - * SlotClone - * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$var$SlotClone = /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)((props, forwardedRef)=>{ - const { children: children , ...slotProps } = props; - if (/*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(children)) return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(children, { - ...$5e63c961fc1ce211$var$mergeProps(slotProps, children.props), - ref: (0,_radix_ui_react_compose_refs__WEBPACK_IMPORTED_MODULE_2__.composeRefs)(forwardedRef, children.ref) - }); - return react__WEBPACK_IMPORTED_MODULE_1__.Children.count(children) > 1 ? react__WEBPACK_IMPORTED_MODULE_1__.Children.only(null) : null; -}); -$5e63c961fc1ce211$var$SlotClone.displayName = 'SlotClone'; -/* ------------------------------------------------------------------------------------------------- - * Slottable - * -----------------------------------------------------------------------------------------------*/ const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children: children })=>{ - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, children); -}; -/* ---------------------------------------------------------------------------------------------- */ function $5e63c961fc1ce211$var$isSlottable(child) { - return /*#__PURE__*/ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45; -} -function $5e63c961fc1ce211$var$mergeProps(slotProps, childProps) { - // all child props should override - const overrideProps = { - ...childProps - }; - for(const propName in childProps){ - const slotPropValue = slotProps[propName]; - const childPropValue = childProps[propName]; - const isHandler = /^on[A-Z]/.test(propName); - if (isHandler) { - // if the handler exists on both, we compose them - if (slotPropValue && childPropValue) overrideProps[propName] = (...args)=>{ - childPropValue(...args); - slotPropValue(...args); - }; - else if (slotPropValue) overrideProps[propName] = slotPropValue; - } else if (propName === 'style') overrideProps[propName] = { - ...slotPropValue, - ...childPropValue - }; - else if (propName === 'className') overrideProps[propName] = [ - slotPropValue, - childPropValue - ].filter(Boolean).join(' '); - } - return { - ...slotProps, - ...overrideProps - }; -} -const $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = $5e63c961fc1ce211$export$8c6ed5c666ac1360; - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@radix-ui/react-use-callback-ref/dist/index.module.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useCallbackRef: () => (/* binding */ $b1b2314f5f9a1d84$export$25bec8c6f54ee79a) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - - -/** - * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a - * prop or avoid re-executing effects when passed as a dependency - */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(callback) { - const callbackRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(callback); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{ - callbackRef.current = callback; - }); // https://github.com/facebook/react/issues/19240 - return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(()=>(...args)=>{ - var _callbackRef$current; - return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args); - } - , []); -} - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@radix-ui/react-use-layout-effect/dist/index.module.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ useLayoutEffect: () => (/* binding */ $9f79659886946c16$export$e5c5a5f917a5871c) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); - - - -/** - * On the server, React emits a warning when calling `useLayoutEffect`. - * This is because neither `useLayoutEffect` nor `useEffect` run on the server. - * We use this safe version which suppresses the warning by replacing it with a noop on the server. - * - * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect - */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect : ()=>{}; - - - - - -//# sourceMappingURL=index.module.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ createReactComponent) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"); -/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _defaultAttributes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultAttributes.js */ "./node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - - - -var __defProp = Object.defineProperty; -var __defProps = Object.defineProperties; -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; -var __getOwnPropSymbols = Object.getOwnPropertySymbols; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __propIsEnum = Object.prototype.propertyIsEnumerable; -var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; -var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; -}; -var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); -var __objRest = (source, exclude) => { - var target = {}; - for (var prop in source) - if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) - target[prop] = source[prop]; - if (source != null && __getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(source)) { - if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) - target[prop] = source[prop]; - } - return target; -}; -var createReactComponent = (iconName, iconNamePascal, iconNode) => { - const Component = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)( - (_a, ref) => { - var _b = _a, { color = "currentColor", size = 24, stroke = 2, children } = _b, rest = __objRest(_b, ["color", "size", "stroke", "children"]); - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)( - "svg", - __spreadValues(__spreadProps(__spreadValues({ - ref - }, _defaultAttributes_js__WEBPACK_IMPORTED_MODULE_1__["default"]), { - width: size, - height: size, - stroke: color, - strokeWidth: stroke, - className: `tabler-icon tabler-icon-${iconName}` - }), rest), - [...iconNode.map(([tag, attrs]) => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(tag, attrs)), ...children || []] - ); - } - ); - Component.propTypes = { - color: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), - size: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)]), - stroke: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)]) - }; - Component.displayName = `${iconNamePascal}`; - return Component; -}; - - -//# sourceMappingURL=createReactComponent.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js": -/*!************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/defaultAttributes.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ defaultAttributes) -/* harmony export */ }); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - -var defaultAttributes = { - xmlns: "http://www.w3.org/2000/svg", - width: 24, - height: 24, - viewBox: "0 0 24 24", - fill: "none", - stroke: "currentColor", - strokeWidth: 2, - strokeLinecap: "round", - strokeLinejoin: "round" -}; - - -//# sourceMappingURL=defaultAttributes.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconAbc.js": -/*!********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconAbc.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconAbc) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconAbc = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("abc", "IconAbc", [ - ["path", { d: "M3 16v-6a2 2 0 1 1 4 0v6", key: "svg-0" }], - ["path", { d: "M3 13h4", key: "svg-1" }], - ["path", { d: "M10 8v6a2 2 0 1 0 4 0v-1a2 2 0 1 0 -4 0v1", key: "svg-2" }], - [ - "path", - { d: "M20.732 12a2 2 0 0 0 -3.732 1v1a2 2 0 0 0 3.726 1.01", key: "svg-3" } - ] -]); - - -//# sourceMappingURL=IconAbc.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconApps.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconApps.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconApps) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconApps = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("apps", "IconApps", [ - [ - "path", - { - d: "M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z", - key: "svg-0" - } - ], - [ - "path", - { - d: "M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z", - key: "svg-1" - } - ], - [ - "path", - { - d: "M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z", - key: "svg-2" - } - ], - ["path", { d: "M14 7l6 0", key: "svg-3" }], - ["path", { d: "M17 4l0 6", key: "svg-4" }] -]); - - -//# sourceMappingURL=IconApps.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconCheck) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconCheck = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("check", "IconCheck", [ - ["path", { d: "M5 12l5 5l10 -10", key: "svg-0" }] -]); - - -//# sourceMappingURL=IconCheck.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconChevronLeft) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconChevronLeft = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("chevron-left", "IconChevronLeft", [ - ["path", { d: "M15 6l-6 6l6 6", key: "svg-0" }] -]); - - -//# sourceMappingURL=IconChevronLeft.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js ***! - \*****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconChevronRight) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconChevronRight = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("chevron-right", "IconChevronRight", [ - ["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }] -]); - - -//# sourceMappingURL=IconChevronRight.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconCirclePlus) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconCirclePlus = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("circle-plus", "IconCirclePlus", [ - ["path", { d: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", key: "svg-0" }], - ["path", { d: "M9 12l6 0", key: "svg-1" }], - ["path", { d: "M12 9l0 6", key: "svg-2" }] -]); - - -//# sourceMappingURL=IconCirclePlus.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconCopy) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconCopy = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("copy", "IconCopy", [ - [ - "path", - { - d: "M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z", - key: "svg-0" - } - ], - [ - "path", - { - d: "M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2", - key: "svg-1" - } - ] -]); - - -//# sourceMappingURL=IconCopy.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconDatabaseOff.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconDatabaseOff.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconDatabaseOff) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconDatabaseOff = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("database-off", "IconDatabaseOff", [ - [ - "path", - { - d: "M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74", - key: "svg-0" - } - ], - [ - "path", - { - d: "M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6", - key: "svg-1" - } - ], - [ - "path", - { - d: "M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4", - key: "svg-2" - } - ], - ["path", { d: "M3 3l18 18", key: "svg-3" }] -]); - - -//# sourceMappingURL=IconDatabaseOff.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconEdit) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconEdit = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("edit", "IconEdit", [ - [ - "path", - { - d: "M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1", - key: "svg-0" - } - ], - [ - "path", - { - d: "M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z", - key: "svg-1" - } - ], - ["path", { d: "M16 5l3 3", key: "svg-2" }] -]); - - -//# sourceMappingURL=IconEdit.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconFileExport.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconFileExport.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconFileExport) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconFileExport = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("file-export", "IconFileExport", [ - ["path", { d: "M14 3v4a1 1 0 0 0 1 1h4", key: "svg-0" }], - [ - "path", - { - d: "M11.5 21h-4.5a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v5m-5 6h7m-3 -3l3 3l-3 3", - key: "svg-1" - } - ] -]); - - -//# sourceMappingURL=IconFileExport.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconFileImport.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconFileImport.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconFileImport) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconFileImport = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("file-import", "IconFileImport", [ - ["path", { d: "M14 3v4a1 1 0 0 0 1 1h4", key: "svg-0" }], - [ - "path", - { - d: "M5 13v-8a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-5.5m-9.5 -2h7m-3 -3l3 3l-3 3", - key: "svg-1" - } - ] -]); - - -//# sourceMappingURL=IconFileImport.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconFileInvoice.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconFileInvoice.js ***! - \****************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconFileInvoice) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconFileInvoice = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("file-invoice", "IconFileInvoice", [ - ["path", { d: "M14 3v4a1 1 0 0 0 1 1h4", key: "svg-0" }], - [ - "path", - { - d: "M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z", - key: "svg-1" - } - ], - ["path", { d: "M9 7l1 0", key: "svg-2" }], - ["path", { d: "M9 13l6 0", key: "svg-3" }], - ["path", { d: "M13 17l2 0", key: "svg-4" }] -]); - - -//# sourceMappingURL=IconFileInvoice.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconKey.js": -/*!********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconKey.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconKey) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconKey = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("key", "IconKey", [ - [ - "path", - { - d: "M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0z", - key: "svg-0" - } - ], - ["path", { d: "M15 9h.01", key: "svg-1" }] -]); - - -//# sourceMappingURL=IconKey.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconList.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconList.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconList) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconList = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("list", "IconList", [ - ["path", { d: "M9 6l11 0", key: "svg-0" }], - ["path", { d: "M9 12l11 0", key: "svg-1" }], - ["path", { d: "M9 18l11 0", key: "svg-2" }], - ["path", { d: "M5 6l0 .01", key: "svg-3" }], - ["path", { d: "M5 12l0 .01", key: "svg-4" }], - ["path", { d: "M5 18l0 .01", key: "svg-5" }] -]); - - -//# sourceMappingURL=IconList.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconLock) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconLock = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("lock", "IconLock", [ - [ - "path", - { - d: "M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z", - key: "svg-0" - } - ], - ["path", { d: "M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-1" }], - ["path", { d: "M8 11v-4a4 4 0 0 1 8 0v4", key: "svg-2" }] -]); - - -//# sourceMappingURL=IconLock.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconLockOff.js": -/*!************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconLockOff.js ***! - \************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconLockOff) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconLockOff = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("lock-off", "IconLockOff", [ - ["path", { d: "M3 3l18 18", key: "svg-0" }], - [ - "path", - { - d: "M19 19a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h4m4 0h2a2 2 0 0 1 2 2v2", - key: "svg-1" - } - ], - ["path", { d: "M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-2" }], - ["path", { d: "M8 11v-3m.712 -3.278a4 4 0 0 1 7.288 2.278v4", key: "svg-3" }] -]); - - -//# sourceMappingURL=IconLockOff.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconLockOpen) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconLockOpen = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("lock-open", "IconLockOpen", [ - [ - "path", - { - d: "M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z", - key: "svg-0" - } - ], - ["path", { d: "M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-1" }], - ["path", { d: "M8 11v-5a4 4 0 0 1 8 0", key: "svg-2" }] -]); - - -//# sourceMappingURL=IconLockOpen.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconMoonStars.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconMoonStars.js ***! - \**************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconMoonStars) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconMoonStars = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("moon-stars", "IconMoonStars", [ - [ - "path", - { - d: "M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z", - key: "svg-0" - } - ], - [ - "path", - { - d: "M17 4a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2", - key: "svg-1" - } - ], - ["path", { d: "M19 11h2m-1 -1v2", key: "svg-2" }] -]); - - -//# sourceMappingURL=IconMoonStars.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.js ***! - \*********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconPlus) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconPlus = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("plus", "IconPlus", [ - ["path", { d: "M12 5l0 14", key: "svg-0" }], - ["path", { d: "M5 12l14 0", key: "svg-1" }] -]); - - -//# sourceMappingURL=IconPlus.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconReload.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconReload.js ***! - \***********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconReload) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconReload = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("reload", "IconReload", [ - [ - "path", - { - d: "M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1 7.935 1.007 9.425 4.747", - key: "svg-0" - } - ], - ["path", { d: "M20 4v5h-5", key: "svg-1" }] -]); - - -//# sourceMappingURL=IconReload.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconSettings) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconSettings = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("settings", "IconSettings", [ - [ - "path", - { - d: "M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z", - key: "svg-0" - } - ], - ["path", { d: "M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", key: "svg-1" }] -]); - - -//# sourceMappingURL=IconSettings.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconShare.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconShare.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconShare) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconShare = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("share", "IconShare", [ - ["path", { d: "M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", key: "svg-0" }], - ["path", { d: "M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", key: "svg-1" }], - ["path", { d: "M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", key: "svg-2" }], - ["path", { d: "M8.7 10.7l6.6 -3.4", key: "svg-3" }], - ["path", { d: "M8.7 13.3l6.6 3.4", key: "svg-4" }] -]); - - -//# sourceMappingURL=IconShare.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconShareOff.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconShareOff.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconShareOff) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconShareOff = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("share-off", "IconShareOff", [ - ["path", { d: "M6 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", key: "svg-0" }], - ["path", { d: "M18 6m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", key: "svg-1" }], - [ - "path", - { - d: "M15.861 15.896a3 3 0 0 0 4.265 4.22m.578 -3.417a3.012 3.012 0 0 0 -1.507 -1.45", - key: "svg-2" - } - ], - [ - "path", - { d: "M8.7 10.7l1.336 -.688m2.624 -1.352l2.64 -1.36", key: "svg-3" } - ], - ["path", { d: "M8.7 13.3l6.6 3.4", key: "svg-4" }], - ["path", { d: "M3 3l18 18", key: "svg-5" }] -]); - - -//# sourceMappingURL=IconShareOff.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconShieldLock.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconShieldLock.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconShieldLock) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconShieldLock = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("shield-lock", "IconShieldLock", [ - [ - "path", - { - d: "M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3", - key: "svg-0" - } - ], - ["path", { d: "M12 11m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-1" }], - ["path", { d: "M12 12l0 2.5", key: "svg-2" }] -]); - - -//# sourceMappingURL=IconShieldLock.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconSun.js": -/*!********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconSun.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconSun) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconSun = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("sun", "IconSun", [ - ["path", { d: "M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0", key: "svg-0" }], - [ - "path", - { - d: "M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7", - key: "svg-1" - } - ] -]); - - -//# sourceMappingURL=IconSun.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js ***! - \**********************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconTrash) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconTrash = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("trash", "IconTrash", [ - ["path", { d: "M4 7l16 0", key: "svg-0" }], - ["path", { d: "M10 11l0 6", key: "svg-1" }], - ["path", { d: "M14 11l0 6", key: "svg-2" }], - [ - "path", - { d: "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12", key: "svg-3" } - ], - ["path", { d: "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3", key: "svg-4" }] -]); - - -//# sourceMappingURL=IconTrash.js.map - - -/***/ }), - -/***/ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js": -/*!******************************************************************!*\ - !*** ./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ IconX) -/* harmony export */ }); -/* harmony import */ var _createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createReactComponent.js */ "./node_modules/@tabler/icons-react/dist/esm/createReactComponent.js"); -/** - * @tabler/icons-react v2.2.0 - MIT - */ - - - -var IconX = (0,_createReactComponent_js__WEBPACK_IMPORTED_MODULE_0__["default"])("x", "IconX", [ - ["path", { d: "M18 6l-12 12", key: "svg-0" }], - ["path", { d: "M6 6l12 12", key: "svg-1" }] -]); - - -//# sourceMappingURL=IconX.js.map - - -/***/ }), - -/***/ "./node_modules/aria-hidden/dist/es2015/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/aria-hidden/dist/es2015/index.js ***! - \*******************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ hideOthers: () => (/* binding */ hideOthers), -/* harmony export */ inertOthers: () => (/* binding */ inertOthers), -/* harmony export */ supportsInert: () => (/* binding */ supportsInert), -/* harmony export */ suppressOthers: () => (/* binding */ suppressOthers) -/* harmony export */ }); -var getDefaultParent = function (originalTarget) { - if (typeof document === 'undefined') { - return null; - } - var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget; - return sampleTarget.ownerDocument.body; -}; -var counterMap = new WeakMap(); -var uncontrolledNodes = new WeakMap(); -var markerMap = {}; -var lockCount = 0; -var unwrapHost = function (node) { - return node && (node.host || unwrapHost(node.parentNode)); -}; -var correctTargets = function (parent, targets) { - return targets - .map(function (target) { - if (parent.contains(target)) { - return target; - } - var correctedTarget = unwrapHost(target); - if (correctedTarget && parent.contains(correctedTarget)) { - return correctedTarget; - } - console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing'); - return null; - }) - .filter(function (x) { return Boolean(x); }); -}; -/** - * Marks everything except given node(or nodes) as aria-hidden - * @param {Element | Element[]} originalTarget - elements to keep on the page - * @param [parentNode] - top element, defaults to document.body - * @param {String} [markerName] - a special attribute to mark every node - * @param {String} [controlAttribute] - html Attribute to control - * @return {Undo} undo command - */ -var applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) { - var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]); - if (!markerMap[markerName]) { - markerMap[markerName] = new WeakMap(); - } - var markerCounter = markerMap[markerName]; - var hiddenNodes = []; - var elementsToKeep = new Set(); - var elementsToStop = new Set(targets); - var keep = function (el) { - if (!el || elementsToKeep.has(el)) { - return; - } - elementsToKeep.add(el); - keep(el.parentNode); - }; - targets.forEach(keep); - var deep = function (parent) { - if (!parent || elementsToStop.has(parent)) { - return; - } - Array.prototype.forEach.call(parent.children, function (node) { - if (elementsToKeep.has(node)) { - deep(node); - } - else { - var attr = node.getAttribute(controlAttribute); - var alreadyHidden = attr !== null && attr !== 'false'; - var counterValue = (counterMap.get(node) || 0) + 1; - var markerValue = (markerCounter.get(node) || 0) + 1; - counterMap.set(node, counterValue); - markerCounter.set(node, markerValue); - hiddenNodes.push(node); - if (counterValue === 1 && alreadyHidden) { - uncontrolledNodes.set(node, true); - } - if (markerValue === 1) { - node.setAttribute(markerName, 'true'); - } - if (!alreadyHidden) { - node.setAttribute(controlAttribute, 'true'); - } - } - }); - }; - deep(parentNode); - elementsToKeep.clear(); - lockCount++; - return function () { - hiddenNodes.forEach(function (node) { - var counterValue = counterMap.get(node) - 1; - var markerValue = markerCounter.get(node) - 1; - counterMap.set(node, counterValue); - markerCounter.set(node, markerValue); - if (!counterValue) { - if (!uncontrolledNodes.has(node)) { - node.removeAttribute(controlAttribute); - } - uncontrolledNodes.delete(node); - } - if (!markerValue) { - node.removeAttribute(markerName); - } - }); - lockCount--; - if (!lockCount) { - // clear - counterMap = new WeakMap(); - counterMap = new WeakMap(); - uncontrolledNodes = new WeakMap(); - markerMap = {}; - } - }; -}; -/** - * Marks everything except given node(or nodes) as aria-hidden - * @param {Element | Element[]} originalTarget - elements to keep on the page - * @param [parentNode] - top element, defaults to document.body - * @param {String} [markerName] - a special attribute to mark every node - * @return {Undo} undo command - */ -var hideOthers = function (originalTarget, parentNode, markerName) { - if (markerName === void 0) { markerName = 'data-aria-hidden'; } - var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]); - var activeParentNode = parentNode || getDefaultParent(originalTarget); - if (!activeParentNode) { - return function () { return null; }; - } - // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10 - targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]'))); - return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden'); -}; -/** - * Marks everything except given node(or nodes) as inert - * @param {Element | Element[]} originalTarget - elements to keep on the page - * @param [parentNode] - top element, defaults to document.body - * @param {String} [markerName] - a special attribute to mark every node - * @return {Undo} undo command - */ -var inertOthers = function (originalTarget, parentNode, markerName) { - if (markerName === void 0) { markerName = 'data-inert-ed'; } - var activeParentNode = parentNode || getDefaultParent(originalTarget); - if (!activeParentNode) { - return function () { return null; }; - } - return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert'); -}; -/** - * @returns if current browser supports inert - */ -var supportsInert = function () { - return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert'); -}; -/** - * Automatic function to "suppress" DOM elements - _hide_ or _inert_ in the best possible way - * @param {Element | Element[]} originalTarget - elements to keep on the page - * @param [parentNode] - top element, defaults to document.body - * @param {String} [markerName] - a special attribute to mark every node - * @return {Undo} undo command - */ -var suppressOthers = function (originalTarget, parentNode, markerName) { - if (markerName === void 0) { markerName = 'data-suppressed'; } - return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName); -}; - - -/***/ }), - -/***/ "./node_modules/axios/index.js": -/*!*************************************!*\ - !*** ./node_modules/axios/index.js ***! - \*************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/xhr.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/adapters/xhr.js ***! - \************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); -var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); -var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); -var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js"); -var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); -var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); -var transitionalDefaults = __webpack_require__(/*! ../defaults/transitional */ "./node_modules/axios/lib/defaults/transitional.js"); -var AxiosError = __webpack_require__(/*! ../core/AxiosError */ "./node_modules/axios/lib/core/AxiosError.js"); -var CanceledError = __webpack_require__(/*! ../cancel/CanceledError */ "./node_modules/axios/lib/cancel/CanceledError.js"); -var parseProtocol = __webpack_require__(/*! ../helpers/parseProtocol */ "./node_modules/axios/lib/helpers/parseProtocol.js"); - -module.exports = function xhrAdapter(config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - var requestData = config.data; - var requestHeaders = config.headers; - var responseType = config.responseType; - var onCanceled; - function done() { - if (config.cancelToken) { - config.cancelToken.unsubscribe(onCanceled); - } - - if (config.signal) { - config.signal.removeEventListener('abort', onCanceled); - } - } - - if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) { - delete requestHeaders['Content-Type']; // Let the browser set it - } - - var request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - var username = config.auth.username || ''; - var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; - requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); - } - - var fullPath = buildFullPath(config.baseURL, config.url); - - request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - - function onloadend() { - if (!request) { - return; - } - // Prepare the response - var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; - var responseData = !responseType || responseType === 'text' || responseType === 'json' ? - request.responseText : request.response; - var response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config: config, - request: request - }; - - settle(function _resolve(value) { - resolve(value); - done(); - }, function _reject(err) { - reject(err); - done(); - }, response); - - // Clean up request - request = null; - } - - if ('onloadend' in request) { - // Use onloadend if available - request.onloadend = onloadend; - } else { - // Listen for ready state to emulate onloadend - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } - - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; - } - // readystate handler is calling before onerror or ontimeout handlers, - // so we should call onloadend on the next 'tick' - setTimeout(onloadend); - }; - } - - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } - - reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request)); - - // Clean up request - request = null; - }; - - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request, request)); - - // Clean up request - request = null; - }; - - // Handle timeout - request.ontimeout = function handleTimeout() { - var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; - var transitional = config.transitional || transitionalDefaults; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(new AxiosError( - timeoutErrorMessage, - transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, - config, - request)); - - // Clean up request - request = null; - }; - - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if (utils.isStandardBrowserEnv()) { - // Add xsrf header - var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? - cookies.read(config.xsrfCookieName) : - undefined; - - if (xsrfValue) { - requestHeaders[config.xsrfHeaderName] = xsrfValue; - } - } - - // Add headers to the request - if ('setRequestHeader' in request) { - utils.forEach(requestHeaders, function setRequestHeader(val, key) { - if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { - // Remove Content-Type if data is undefined - delete requestHeaders[key]; - } else { - // Otherwise add header to the request - request.setRequestHeader(key, val); - } - }); - } - - // Add withCredentials to request if needed - if (!utils.isUndefined(config.withCredentials)) { - request.withCredentials = !!config.withCredentials; - } - - // Add responseType to request if needed - if (responseType && responseType !== 'json') { - request.responseType = config.responseType; - } - - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', config.onDownloadProgress); - } - - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', config.onUploadProgress); - } - - if (config.cancelToken || config.signal) { - // Handle cancellation - // eslint-disable-next-line func-names - onCanceled = function(cancel) { - if (!request) { - return; - } - reject(!cancel || (cancel && cancel.type) ? new CanceledError() : cancel); - request.abort(); - request = null; - }; - - config.cancelToken && config.cancelToken.subscribe(onCanceled); - if (config.signal) { - config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); - } - } - - if (!requestData) { - requestData = null; - } - - var protocol = parseProtocol(fullPath); - - if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) { - reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config)); - return; - } - - - // Send the request - request.send(requestData); - }); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/axios.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/axios.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); -var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); -var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); -var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); -var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults/index.js"); - -/** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * @return {Axios} A new instance of Axios - */ -function createInstance(defaultConfig) { - var context = new Axios(defaultConfig); - var instance = bind(Axios.prototype.request, context); - - // Copy axios.prototype to instance - utils.extend(instance, Axios.prototype, context); - - // Copy context to instance - utils.extend(instance, context); - - // Factory for creating new instances - instance.create = function create(instanceConfig) { - return createInstance(mergeConfig(defaultConfig, instanceConfig)); - }; - - return instance; -} - -// Create the default instance to be exported -var axios = createInstance(defaults); - -// Expose Axios class to allow class inheritance -axios.Axios = Axios; - -// Expose Cancel & CancelToken -axios.CanceledError = __webpack_require__(/*! ./cancel/CanceledError */ "./node_modules/axios/lib/cancel/CanceledError.js"); -axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); -axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); -axios.VERSION = (__webpack_require__(/*! ./env/data */ "./node_modules/axios/lib/env/data.js").version); -axios.toFormData = __webpack_require__(/*! ./helpers/toFormData */ "./node_modules/axios/lib/helpers/toFormData.js"); - -// Expose AxiosError class -axios.AxiosError = __webpack_require__(/*! ../lib/core/AxiosError */ "./node_modules/axios/lib/core/AxiosError.js"); - -// alias for CanceledError for backward compatibility -axios.Cancel = axios.CanceledError; - -// Expose all/spread -axios.all = function all(promises) { - return Promise.all(promises); -}; -axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); - -// Expose isAxiosError -axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js"); - -module.exports = axios; - -// Allow use of default import syntax in TypeScript -module.exports["default"] = axios; - - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CancelToken.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! - \******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var CanceledError = __webpack_require__(/*! ./CanceledError */ "./node_modules/axios/lib/cancel/CanceledError.js"); - -/** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @class - * @param {Function} executor The executor function. - */ -function CancelToken(executor) { - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); - } - - var resolvePromise; - - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); - - var token = this; - - // eslint-disable-next-line func-names - this.promise.then(function(cancel) { - if (!token._listeners) return; - - var i; - var l = token._listeners.length; - - for (i = 0; i < l; i++) { - token._listeners[i](cancel); - } - token._listeners = null; - }); - - // eslint-disable-next-line func-names - this.promise.then = function(onfulfilled) { - var _resolve; - // eslint-disable-next-line func-names - var promise = new Promise(function(resolve) { - token.subscribe(resolve); - _resolve = resolve; - }).then(onfulfilled); - - promise.cancel = function reject() { - token.unsubscribe(_resolve); - }; - - return promise; - }; - - executor(function cancel(message) { - if (token.reason) { - // Cancellation has already been requested - return; - } - - token.reason = new CanceledError(message); - resolvePromise(token.reason); - }); -} - -/** - * Throws a `CanceledError` if cancellation has been requested. - */ -CancelToken.prototype.throwIfRequested = function throwIfRequested() { - if (this.reason) { - throw this.reason; - } -}; - -/** - * Subscribe to the cancel signal - */ - -CancelToken.prototype.subscribe = function subscribe(listener) { - if (this.reason) { - listener(this.reason); - return; - } - - if (this._listeners) { - this._listeners.push(listener); - } else { - this._listeners = [listener]; - } -}; - -/** - * Unsubscribe from the cancel signal - */ - -CancelToken.prototype.unsubscribe = function unsubscribe(listener) { - if (!this._listeners) { - return; - } - var index = this._listeners.indexOf(listener); - if (index !== -1) { - this._listeners.splice(index, 1); - } -}; - -/** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. - */ -CancelToken.source = function source() { - var cancel; - var token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token: token, - cancel: cancel - }; -}; - -module.exports = CancelToken; - - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CanceledError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CanceledError.js ***! - \********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var AxiosError = __webpack_require__(/*! ../core/AxiosError */ "./node_modules/axios/lib/core/AxiosError.js"); -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); - -/** - * A `CanceledError` is an object that is thrown when an operation is canceled. - * - * @class - * @param {string=} message The message. - */ -function CanceledError(message) { - // eslint-disable-next-line no-eq-null,eqeqeq - AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED); - this.name = 'CanceledError'; -} - -utils.inherits(CanceledError, AxiosError, { - __CANCEL__: true -}); - -module.exports = CanceledError; - - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/isCancel.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/cancel/isCancel.js ***! - \***************************************************/ -/***/ ((module) => { - -"use strict"; - - -module.exports = function isCancel(value) { - return !!(value && value.__CANCEL__); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/Axios.js": -/*!**********************************************!*\ - !*** ./node_modules/axios/lib/core/Axios.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); -var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); -var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); -var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); -var buildFullPath = __webpack_require__(/*! ./buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js"); -var validator = __webpack_require__(/*! ../helpers/validator */ "./node_modules/axios/lib/helpers/validator.js"); - -var validators = validator.validators; -/** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance - */ -function Axios(instanceConfig) { - this.defaults = instanceConfig; - this.interceptors = { - request: new InterceptorManager(), - response: new InterceptorManager() - }; -} - -/** - * Dispatch a request - * - * @param {Object} config The config specific for this request (merged with this.defaults) - */ -Axios.prototype.request = function request(configOrUrl, config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof configOrUrl === 'string') { - config = config || {}; - config.url = configOrUrl; - } else { - config = configOrUrl || {}; - } - - config = mergeConfig(this.defaults, config); - - // Set config.method - if (config.method) { - config.method = config.method.toLowerCase(); - } else if (this.defaults.method) { - config.method = this.defaults.method.toLowerCase(); - } else { - config.method = 'get'; - } - - var transitional = config.transitional; - - if (transitional !== undefined) { - validator.assertOptions(transitional, { - silentJSONParsing: validators.transitional(validators.boolean), - forcedJSONParsing: validators.transitional(validators.boolean), - clarifyTimeoutError: validators.transitional(validators.boolean) - }, false); - } - - // filter out skipped interceptors - var requestInterceptorChain = []; - var synchronousRequestInterceptors = true; - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { - return; - } - - synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; - - requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - - var responseInterceptorChain = []; - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); - }); - - var promise; - - if (!synchronousRequestInterceptors) { - var chain = [dispatchRequest, undefined]; - - Array.prototype.unshift.apply(chain, requestInterceptorChain); - chain = chain.concat(responseInterceptorChain); - - promise = Promise.resolve(config); - while (chain.length) { - promise = promise.then(chain.shift(), chain.shift()); - } - - return promise; - } - - - var newConfig = config; - while (requestInterceptorChain.length) { - var onFulfilled = requestInterceptorChain.shift(); - var onRejected = requestInterceptorChain.shift(); - try { - newConfig = onFulfilled(newConfig); - } catch (error) { - onRejected(error); - break; - } - } - - try { - promise = dispatchRequest(newConfig); - } catch (error) { - return Promise.reject(error); - } - - while (responseInterceptorChain.length) { - promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift()); - } - - return promise; -}; - -Axios.prototype.getUri = function getUri(config) { - config = mergeConfig(this.defaults, config); - var fullPath = buildFullPath(config.baseURL, config.url); - return buildURL(fullPath, config.params, config.paramsSerializer); -}; - -// Provide aliases for supported request methods -utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, config) { - return this.request(mergeConfig(config || {}, { - method: method, - url: url, - data: (config || {}).data - })); - }; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - - function generateHTTPMethod(isForm) { - return function httpMethod(url, data, config) { - return this.request(mergeConfig(config || {}, { - method: method, - headers: isForm ? { - 'Content-Type': 'multipart/form-data' - } : {}, - url: url, - data: data - })); - }; - } - - Axios.prototype[method] = generateHTTPMethod(); - - Axios.prototype[method + 'Form'] = generateHTTPMethod(true); -}); - -module.exports = Axios; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/AxiosError.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/core/AxiosError.js ***! - \***************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); - -/** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [config] The config. - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The created error. - */ -function AxiosError(message, code, config, request, response) { - Error.call(this); - this.message = message; - this.name = 'AxiosError'; - code && (this.code = code); - config && (this.config = config); - request && (this.request = request); - response && (this.response = response); -} - -utils.inherits(AxiosError, Error, { - toJSON: function toJSON() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: this.config, - code: this.code, - status: this.response && this.response.status ? this.response.status : null - }; - } -}); - -var prototype = AxiosError.prototype; -var descriptors = {}; - -[ - 'ERR_BAD_OPTION_VALUE', - 'ERR_BAD_OPTION', - 'ECONNABORTED', - 'ETIMEDOUT', - 'ERR_NETWORK', - 'ERR_FR_TOO_MANY_REDIRECTS', - 'ERR_DEPRECATED', - 'ERR_BAD_RESPONSE', - 'ERR_BAD_REQUEST', - 'ERR_CANCELED' -// eslint-disable-next-line func-names -].forEach(function(code) { - descriptors[code] = {value: code}; -}); - -Object.defineProperties(AxiosError, descriptors); -Object.defineProperty(prototype, 'isAxiosError', {value: true}); - -// eslint-disable-next-line func-names -AxiosError.from = function(error, code, config, request, response, customProps) { - var axiosError = Object.create(prototype); - - utils.toFlatObject(error, axiosError, function filter(obj) { - return obj !== Error.prototype; - }); - - AxiosError.call(axiosError, error.message, code, config, request, response); - - axiosError.name = error.name; - - customProps && Object.assign(axiosError, customProps); - - return axiosError; -}; - -module.exports = AxiosError; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/InterceptorManager.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! - \***********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -function InterceptorManager() { - this.handlers = []; -} - -/** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later - */ -InterceptorManager.prototype.use = function use(fulfilled, rejected, options) { - this.handlers.push({ - fulfilled: fulfilled, - rejected: rejected, - synchronous: options ? options.synchronous : false, - runWhen: options ? options.runWhen : null - }); - return this.handlers.length - 1; -}; - -/** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - */ -InterceptorManager.prototype.eject = function eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } -}; - -/** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - */ -InterceptorManager.prototype.forEach = function forEach(fn) { - utils.forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); - } - }); -}; - -module.exports = InterceptorManager; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/buildFullPath.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/buildFullPath.js ***! - \******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); -var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); - -/** - * Creates a new URL by combining the baseURL with the requestedURL, - * only when the requestedURL is not already an absolute URL. - * If the requestURL is absolute, this function returns the requestedURL untouched. - * - * @param {string} baseURL The base URL - * @param {string} requestedURL Absolute or relative URL to combine - * @returns {string} The combined full path - */ -module.exports = function buildFullPath(baseURL, requestedURL) { - if (baseURL && !isAbsoluteURL(requestedURL)) { - return combineURLs(baseURL, requestedURL); - } - return requestedURL; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/dispatchRequest.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! - \********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); -var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); -var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults/index.js"); -var CanceledError = __webpack_require__(/*! ../cancel/CanceledError */ "./node_modules/axios/lib/cancel/CanceledError.js"); - -/** - * Throws a `CanceledError` if cancellation has been requested. - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } - - if (config.signal && config.signal.aborted) { - throw new CanceledError(); - } -} - -/** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * @returns {Promise} The Promise to be fulfilled - */ -module.exports = function dispatchRequest(config) { - throwIfCancellationRequested(config); - - // Ensure headers exist - config.headers = config.headers || {}; - - // Transform request data - config.data = transformData.call( - config, - config.data, - config.headers, - config.transformRequest - ); - - // Flatten headers - config.headers = utils.merge( - config.headers.common || {}, - config.headers[config.method] || {}, - config.headers - ); - - utils.forEach( - ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], - function cleanHeaderConfig(method) { - delete config.headers[method]; - } - ); - - var adapter = config.adapter || defaults.adapter; - - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); - - // Transform response data - response.data = transformData.call( - config, - response.data, - response.headers, - config.transformResponse - ); - - return response; - }, function onAdapterRejection(reason) { - if (!isCancel(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = transformData.call( - config, - reason.response.data, - reason.response.headers, - config.transformResponse - ); - } - } - - return Promise.reject(reason); - }); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/mergeConfig.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/mergeConfig.js ***! - \****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); - -/** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * @returns {Object} New object resulting from merging config2 to config1 - */ -module.exports = function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - var config = {}; - - function getMergedValue(target, source) { - if (utils.isPlainObject(target) && utils.isPlainObject(source)) { - return utils.merge(target, source); - } else if (utils.isPlainObject(source)) { - return utils.merge({}, source); - } else if (utils.isArray(source)) { - return source.slice(); - } - return source; - } - - // eslint-disable-next-line consistent-return - function mergeDeepProperties(prop) { - if (!utils.isUndefined(config2[prop])) { - return getMergedValue(config1[prop], config2[prop]); - } else if (!utils.isUndefined(config1[prop])) { - return getMergedValue(undefined, config1[prop]); - } - } - - // eslint-disable-next-line consistent-return - function valueFromConfig2(prop) { - if (!utils.isUndefined(config2[prop])) { - return getMergedValue(undefined, config2[prop]); - } - } - - // eslint-disable-next-line consistent-return - function defaultToConfig2(prop) { - if (!utils.isUndefined(config2[prop])) { - return getMergedValue(undefined, config2[prop]); - } else if (!utils.isUndefined(config1[prop])) { - return getMergedValue(undefined, config1[prop]); - } - } - - // eslint-disable-next-line consistent-return - function mergeDirectKeys(prop) { - if (prop in config2) { - return getMergedValue(config1[prop], config2[prop]); - } else if (prop in config1) { - return getMergedValue(undefined, config1[prop]); - } - } - - var mergeMap = { - 'url': valueFromConfig2, - 'method': valueFromConfig2, - 'data': valueFromConfig2, - 'baseURL': defaultToConfig2, - 'transformRequest': defaultToConfig2, - 'transformResponse': defaultToConfig2, - 'paramsSerializer': defaultToConfig2, - 'timeout': defaultToConfig2, - 'timeoutMessage': defaultToConfig2, - 'withCredentials': defaultToConfig2, - 'adapter': defaultToConfig2, - 'responseType': defaultToConfig2, - 'xsrfCookieName': defaultToConfig2, - 'xsrfHeaderName': defaultToConfig2, - 'onUploadProgress': defaultToConfig2, - 'onDownloadProgress': defaultToConfig2, - 'decompress': defaultToConfig2, - 'maxContentLength': defaultToConfig2, - 'maxBodyLength': defaultToConfig2, - 'beforeRedirect': defaultToConfig2, - 'transport': defaultToConfig2, - 'httpAgent': defaultToConfig2, - 'httpsAgent': defaultToConfig2, - 'cancelToken': defaultToConfig2, - 'socketPath': defaultToConfig2, - 'responseEncoding': defaultToConfig2, - 'validateStatus': mergeDirectKeys - }; - - utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) { - var merge = mergeMap[prop] || mergeDeepProperties; - var configValue = merge(prop); - (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); - }); - - return config; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/settle.js": -/*!***********************************************!*\ - !*** ./node_modules/axios/lib/core/settle.js ***! - \***********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var AxiosError = __webpack_require__(/*! ./AxiosError */ "./node_modules/axios/lib/core/AxiosError.js"); - -/** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - */ -module.exports = function settle(resolve, reject, response) { - var validateStatus = response.config.validateStatus; - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(new AxiosError( - 'Request failed with status code ' + response.status, - [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], - response.config, - response.request, - response - )); - } -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/transformData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/transformData.js ***! - \******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults/index.js"); - -/** - * Transform the data for a request or a response - * - * @param {Object|String} data The data to be transformed - * @param {Array} headers The headers for the request or response - * @param {Array|Function} fns A single function or Array of functions - * @returns {*} The resulting transformed data - */ -module.exports = function transformData(data, headers, fns) { - var context = this || defaults; - /*eslint no-param-reassign:0*/ - utils.forEach(fns, function transform(fn) { - data = fn.call(context, data, headers); - }); - - return data; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/defaults/index.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/defaults/index.js ***! - \**************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -/* provided dependency */ var process = __webpack_require__(/*! ./node_modules/process/browser.js */ "./node_modules/process/browser.js"); - - -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); -var normalizeHeaderName = __webpack_require__(/*! ../helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); -var AxiosError = __webpack_require__(/*! ../core/AxiosError */ "./node_modules/axios/lib/core/AxiosError.js"); -var transitionalDefaults = __webpack_require__(/*! ./transitional */ "./node_modules/axios/lib/defaults/transitional.js"); -var toFormData = __webpack_require__(/*! ../helpers/toFormData */ "./node_modules/axios/lib/helpers/toFormData.js"); - -var DEFAULT_CONTENT_TYPE = { - 'Content-Type': 'application/x-www-form-urlencoded' -}; - -function setContentTypeIfUnset(headers, value) { - if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { - headers['Content-Type'] = value; - } -} - -function getDefaultAdapter() { - var adapter; - if (typeof XMLHttpRequest !== 'undefined') { - // For browsers use XHR adapter - adapter = __webpack_require__(/*! ../adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); - } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { - // For node use HTTP adapter - adapter = __webpack_require__(/*! ../adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); - } - return adapter; -} - -function stringifySafely(rawValue, parser, encoder) { - if (utils.isString(rawValue)) { - try { - (parser || JSON.parse)(rawValue); - return utils.trim(rawValue); - } catch (e) { - if (e.name !== 'SyntaxError') { - throw e; - } - } - } - - return (encoder || JSON.stringify)(rawValue); -} - -var defaults = { - - transitional: transitionalDefaults, - - adapter: getDefaultAdapter(), - - transformRequest: [function transformRequest(data, headers) { - normalizeHeaderName(headers, 'Accept'); - normalizeHeaderName(headers, 'Content-Type'); - - if (utils.isFormData(data) || - utils.isArrayBuffer(data) || - utils.isBuffer(data) || - utils.isStream(data) || - utils.isFile(data) || - utils.isBlob(data) - ) { - return data; - } - if (utils.isArrayBufferView(data)) { - return data.buffer; - } - if (utils.isURLSearchParams(data)) { - setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); - return data.toString(); - } - - var isObjectPayload = utils.isObject(data); - var contentType = headers && headers['Content-Type']; - - var isFileList; - - if ((isFileList = utils.isFileList(data)) || (isObjectPayload && contentType === 'multipart/form-data')) { - var _FormData = this.env && this.env.FormData; - return toFormData(isFileList ? {'files[]': data} : data, _FormData && new _FormData()); - } else if (isObjectPayload || contentType === 'application/json') { - setContentTypeIfUnset(headers, 'application/json'); - return stringifySafely(data); - } - - return data; - }], - - transformResponse: [function transformResponse(data) { - var transitional = this.transitional || defaults.transitional; - var silentJSONParsing = transitional && transitional.silentJSONParsing; - var forcedJSONParsing = transitional && transitional.forcedJSONParsing; - var strictJSONParsing = !silentJSONParsing && this.responseType === 'json'; - - if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) { - try { - return JSON.parse(data); - } catch (e) { - if (strictJSONParsing) { - if (e.name === 'SyntaxError') { - throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response); - } - throw e; - } - } - } - - return data; - }], - - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, - - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', - - maxContentLength: -1, - maxBodyLength: -1, - - env: { - FormData: __webpack_require__(/*! ./env/FormData */ "./node_modules/axios/lib/helpers/null.js") - }, - - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - }, - - headers: { - common: { - 'Accept': 'application/json, text/plain, */*' - } - } -}; - -utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { - defaults.headers[method] = {}; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); -}); - -module.exports = defaults; - - -/***/ }), - -/***/ "./node_modules/axios/lib/defaults/transitional.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/defaults/transitional.js ***! - \*********************************************************/ -/***/ ((module) => { - -"use strict"; - - -module.exports = { - silentJSONParsing: true, - forcedJSONParsing: true, - clarifyTimeoutError: false -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/env/data.js": -/*!********************************************!*\ - !*** ./node_modules/axios/lib/env/data.js ***! - \********************************************/ -/***/ ((module) => { - -module.exports = { - "version": "0.27.2" -}; - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/bind.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/bind.js ***! - \************************************************/ -/***/ ((module) => { - -"use strict"; - - -module.exports = function bind(fn, thisArg) { - return function wrap() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; - } - return fn.apply(thisArg, args); - }; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/buildURL.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/buildURL.js ***! - \****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -function encode(val) { - return encodeURIComponent(val). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} - -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @returns {string} The formatted url - */ -module.exports = function buildURL(url, params, paramsSerializer) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } - - var serializedParams; - if (paramsSerializer) { - serializedParams = paramsSerializer(params); - } else if (utils.isURLSearchParams(params)) { - serializedParams = params.toString(); - } else { - var parts = []; - - utils.forEach(params, function serialize(val, key) { - if (val === null || typeof val === 'undefined') { - return; - } - - if (utils.isArray(val)) { - key = key + '[]'; - } else { - val = [val]; - } - - utils.forEach(val, function parseValue(v) { - if (utils.isDate(v)) { - v = v.toISOString(); - } else if (utils.isObject(v)) { - v = JSON.stringify(v); - } - parts.push(encode(key) + '=' + encode(v)); - }); - }); - - serializedParams = parts.join('&'); - } - - if (serializedParams) { - var hashmarkIndex = url.indexOf('#'); - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); - } - - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } - - return url; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/combineURLs.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! - \*******************************************************/ -/***/ ((module) => { - -"use strict"; - - -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * @returns {string} The combined URL - */ -module.exports = function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/cookies.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/helpers/cookies.js ***! - \***************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -module.exports = ( - utils.isStandardBrowserEnv() ? - - // Standard browser envs support document.cookie - (function standardBrowserEnv() { - return { - write: function write(name, value, expires, path, domain, secure) { - var cookie = []; - cookie.push(name + '=' + encodeURIComponent(value)); - - if (utils.isNumber(expires)) { - cookie.push('expires=' + new Date(expires).toGMTString()); - } - - if (utils.isString(path)) { - cookie.push('path=' + path); - } - - if (utils.isString(domain)) { - cookie.push('domain=' + domain); - } - - if (secure === true) { - cookie.push('secure'); - } - - document.cookie = cookie.join('; '); - }, - - read: function read(name) { - var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, - - remove: function remove(name) { - this.write(name, '', Date.now() - 86400000); - } - }; - })() : - - // Non standard browser env (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return { - write: function write() {}, - read: function read() { return null; }, - remove: function remove() {} - }; - })() -); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \*********************************************************/ -/***/ ((module) => { - -"use strict"; - - -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -module.exports = function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAxiosError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***! - \********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -/** - * Determines whether the payload is an error thrown by Axios - * - * @param {*} payload The value to test - * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false - */ -module.exports = function isAxiosError(payload) { - return utils.isObject(payload) && (payload.isAxiosError === true); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \***********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -module.exports = ( - utils.isStandardBrowserEnv() ? - - // Standard browser envs have full support of the APIs needed to test - // whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - var msie = /(msie|trident)/i.test(navigator.userAgent); - var urlParsingNode = document.createElement('a'); - var originURL; - - /** - * Parse a URL to discover it's components - * - * @param {String} url The URL to be parsed - * @returns {Object} - */ - function resolveURL(url) { - var href = url; - - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; - } - - urlParsingNode.setAttribute('href', href); - - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } - - originURL = resolveURL(window.location.href); - - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false - */ - return function isURLSameOrigin(requestURL) { - var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : - - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })() -); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": -/*!***************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! - \***************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); - -module.exports = function normalizeHeaderName(headers, normalizedName) { - utils.forEach(headers, function processHeader(value, name) { - if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { - headers[normalizedName] = value; - delete headers[name]; - } - }); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/null.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/null.js ***! - \************************************************/ -/***/ ((module) => { - -// eslint-disable-next-line strict -module.exports = null; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! - \********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -// Headers whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -var ignoreDuplicateOf = [ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]; - -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} headers Headers needing to be parsed - * @returns {Object} Headers parsed into an object - */ -module.exports = function parseHeaders(headers) { - var parsed = {}; - var key; - var val; - var i; - - if (!headers) { return parsed; } - - utils.forEach(headers.split('\n'), function parser(line) { - i = line.indexOf(':'); - key = utils.trim(line.substr(0, i)).toLowerCase(); - val = utils.trim(line.substr(i + 1)); - - if (key) { - if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { - return; - } - if (key === 'set-cookie') { - parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - } - }); - - return parsed; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/parseProtocol.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseProtocol.js ***! - \*********************************************************/ -/***/ ((module) => { - -"use strict"; - - -module.exports = function parseProtocol(url) { - var match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); - return match && match[1] || ''; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/spread.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/helpers/spread.js ***! - \**************************************************/ -/***/ ((module) => { - -"use strict"; - - -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * @returns {Function} - */ -module.exports = function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/toFormData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/toFormData.js ***! - \******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -/* provided dependency */ var Buffer = __webpack_require__(/*! ./node_modules/buffer/index.js */ "./node_modules/buffer/index.js")["Buffer"]; - - -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); - -/** - * Convert a data object to FormData - * @param {Object} obj - * @param {?Object} [formData] - * @returns {Object} - **/ - -function toFormData(obj, formData) { - // eslint-disable-next-line no-param-reassign - formData = formData || new FormData(); - - var stack = []; - - function convertValue(value) { - if (value === null) return ''; - - if (utils.isDate(value)) { - return value.toISOString(); - } - - if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) { - return typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value); - } - - return value; - } - - function build(data, parentKey) { - if (utils.isPlainObject(data) || utils.isArray(data)) { - if (stack.indexOf(data) !== -1) { - throw Error('Circular reference detected in ' + parentKey); - } - - stack.push(data); - - utils.forEach(data, function each(value, key) { - if (utils.isUndefined(value)) return; - var fullKey = parentKey ? parentKey + '.' + key : key; - var arr; - - if (value && !parentKey && typeof value === 'object') { - if (utils.endsWith(key, '{}')) { - // eslint-disable-next-line no-param-reassign - value = JSON.stringify(value); - } else if (utils.endsWith(key, '[]') && (arr = utils.toArray(value))) { - // eslint-disable-next-line func-names - arr.forEach(function(el) { - !utils.isUndefined(el) && formData.append(fullKey, convertValue(el)); - }); - return; - } - } - - build(value, fullKey); - }); - - stack.pop(); - } else { - formData.append(parentKey, convertValue(data)); - } - } - - build(obj); - - return formData; -} - -module.exports = toFormData; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/validator.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/validator.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var VERSION = (__webpack_require__(/*! ../env/data */ "./node_modules/axios/lib/env/data.js").version); -var AxiosError = __webpack_require__(/*! ../core/AxiosError */ "./node_modules/axios/lib/core/AxiosError.js"); - -var validators = {}; - -// eslint-disable-next-line func-names -['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) { - validators[type] = function validator(thing) { - return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; - }; -}); - -var deprecatedWarnings = {}; - -/** - * Transitional option validator - * @param {function|boolean?} validator - set to false if the transitional option has been removed - * @param {string?} version - deprecated version / removed since version - * @param {string?} message - some message with additional info - * @returns {function} - */ -validators.transitional = function transitional(validator, version, message) { - function formatMessage(opt, desc) { - return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); - } - - // eslint-disable-next-line func-names - return function(value, opt, opts) { - if (validator === false) { - throw new AxiosError( - formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), - AxiosError.ERR_DEPRECATED - ); - } - - if (version && !deprecatedWarnings[opt]) { - deprecatedWarnings[opt] = true; - // eslint-disable-next-line no-console - console.warn( - formatMessage( - opt, - ' has been deprecated since v' + version + ' and will be removed in the near future' - ) - ); - } - - return validator ? validator(value, opt, opts) : true; - }; -}; - -/** - * Assert object's properties type - * @param {object} options - * @param {object} schema - * @param {boolean?} allowUnknown - */ - -function assertOptions(options, schema, allowUnknown) { - if (typeof options !== 'object') { - throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE); - } - var keys = Object.keys(options); - var i = keys.length; - while (i-- > 0) { - var opt = keys[i]; - var validator = schema[opt]; - if (validator) { - var value = options[opt]; - var result = value === undefined || validator(value, opt, options); - if (result !== true) { - throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE); - } - continue; - } - if (allowUnknown !== true) { - throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION); - } - } -} - -module.exports = { - assertOptions: assertOptions, - validators: validators -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/utils.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/utils.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); - -// utils is a library of generic helper functions non-specific to axios - -var toString = Object.prototype.toString; - -// eslint-disable-next-line func-names -var kindOf = (function(cache) { - // eslint-disable-next-line func-names - return function(thing) { - var str = toString.call(thing); - return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase()); - }; -})(Object.create(null)); - -function kindOfTest(type) { - type = type.toLowerCase(); - return function isKindOf(thing) { - return kindOf(thing) === type; - }; -} - -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Array, otherwise false - */ -function isArray(val) { - return Array.isArray(val); -} - -/** - * Determine if a value is undefined - * - * @param {Object} val The value to test - * @returns {boolean} True if the value is undefined, otherwise false - */ -function isUndefined(val) { - return typeof val === 'undefined'; -} - -/** - * Determine if a value is a Buffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Buffer, otherwise false - */ -function isBuffer(val) { - return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) - && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); -} - -/** - * Determine if a value is an ArrayBuffer - * - * @function - * @param {Object} val The value to test - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -var isArrayBuffer = kindOfTest('ArrayBuffer'); - - -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - var result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); - } - return result; -} - -/** - * Determine if a value is a String - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a String, otherwise false - */ -function isString(val) { - return typeof val === 'string'; -} - -/** - * Determine if a value is a Number - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Number, otherwise false - */ -function isNumber(val) { - return typeof val === 'number'; -} - -/** - * Determine if a value is an Object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Object, otherwise false - */ -function isObject(val) { - return val !== null && typeof val === 'object'; -} - -/** - * Determine if a value is a plain Object - * - * @param {Object} val The value to test - * @return {boolean} True if value is a plain Object, otherwise false - */ -function isPlainObject(val) { - if (kindOf(val) !== 'object') { - return false; - } - - var prototype = Object.getPrototypeOf(val); - return prototype === null || prototype === Object.prototype; -} - -/** - * Determine if a value is a Date - * - * @function - * @param {Object} val The value to test - * @returns {boolean} True if value is a Date, otherwise false - */ -var isDate = kindOfTest('Date'); - -/** - * Determine if a value is a File - * - * @function - * @param {Object} val The value to test - * @returns {boolean} True if value is a File, otherwise false - */ -var isFile = kindOfTest('File'); - -/** - * Determine if a value is a Blob - * - * @function - * @param {Object} val The value to test - * @returns {boolean} True if value is a Blob, otherwise false - */ -var isBlob = kindOfTest('Blob'); - -/** - * Determine if a value is a FileList - * - * @function - * @param {Object} val The value to test - * @returns {boolean} True if value is a File, otherwise false - */ -var isFileList = kindOfTest('FileList'); - -/** - * Determine if a value is a Function - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ -function isFunction(val) { - return toString.call(val) === '[object Function]'; -} - -/** - * Determine if a value is a Stream - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Stream, otherwise false - */ -function isStream(val) { - return isObject(val) && isFunction(val.pipe); -} - -/** - * Determine if a value is a FormData - * - * @param {Object} thing The value to test - * @returns {boolean} True if value is an FormData, otherwise false - */ -function isFormData(thing) { - var pattern = '[object FormData]'; - return thing && ( - (typeof FormData === 'function' && thing instanceof FormData) || - toString.call(thing) === pattern || - (isFunction(thing.toString) && thing.toString() === pattern) - ); -} - -/** - * Determine if a value is a URLSearchParams object - * @function - * @param {Object} val The value to test - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ -var isURLSearchParams = kindOfTest('URLSearchParams'); - -/** - * Trim excess whitespace off the beginning and end of a string - * - * @param {String} str The String to trim - * @returns {String} The String freed of excess whitespace - */ -function trim(str) { - return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); -} - -/** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. - * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - * nativescript - * navigator.product -> 'NativeScript' or 'NS' - */ -function isStandardBrowserEnv() { - if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || - navigator.product === 'NativeScript' || - navigator.product === 'NS')) { - return false; - } - return ( - typeof window !== 'undefined' && - typeof document !== 'undefined' - ); -} - -/** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. - * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item - */ -function forEach(obj, fn) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - - // Force an array if not already something iterable - if (typeof obj !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } - - if (isArray(obj)) { - // Iterate over array values - for (var i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); - } - } else { - // Iterate over object keys - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - fn.call(null, obj[key], key, obj); - } - } - } -} - -/** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. - * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` - * - * @param {Object} obj1 Object to merge - * @returns {Object} Result of all merge properties - */ -function merge(/* obj1, obj2, obj3, ... */) { - var result = {}; - function assignValue(val, key) { - if (isPlainObject(result[key]) && isPlainObject(val)) { - result[key] = merge(result[key], val); - } else if (isPlainObject(val)) { - result[key] = merge({}, val); - } else if (isArray(val)) { - result[key] = val.slice(); - } else { - result[key] = val; - } - } - - for (var i = 0, l = arguments.length; i < l; i++) { - forEach(arguments[i], assignValue); - } - return result; -} - -/** - * Extends object a by mutably adding to it the properties of object b. - * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * @return {Object} The resulting value of object a - */ -function extend(a, b, thisArg) { - forEach(b, function assignValue(val, key) { - if (thisArg && typeof val === 'function') { - a[key] = bind(val, thisArg); - } else { - a[key] = val; - } - }); - return a; -} - -/** - * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) - * - * @param {string} content with BOM - * @return {string} content value without BOM - */ -function stripBOM(content) { - if (content.charCodeAt(0) === 0xFEFF) { - content = content.slice(1); - } - return content; -} - -/** - * Inherit the prototype methods from one constructor into another - * @param {function} constructor - * @param {function} superConstructor - * @param {object} [props] - * @param {object} [descriptors] - */ - -function inherits(constructor, superConstructor, props, descriptors) { - constructor.prototype = Object.create(superConstructor.prototype, descriptors); - constructor.prototype.constructor = constructor; - props && Object.assign(constructor.prototype, props); -} - -/** - * Resolve object with deep prototype chain to a flat object - * @param {Object} sourceObj source object - * @param {Object} [destObj] - * @param {Function} [filter] - * @returns {Object} - */ - -function toFlatObject(sourceObj, destObj, filter) { - var props; - var i; - var prop; - var merged = {}; - - destObj = destObj || {}; - - do { - props = Object.getOwnPropertyNames(sourceObj); - i = props.length; - while (i-- > 0) { - prop = props[i]; - if (!merged[prop]) { - destObj[prop] = sourceObj[prop]; - merged[prop] = true; - } - } - sourceObj = Object.getPrototypeOf(sourceObj); - } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype); - - return destObj; -} - -/* - * determines whether a string ends with the characters of a specified string - * @param {String} str - * @param {String} searchString - * @param {Number} [position= 0] - * @returns {boolean} - */ -function endsWith(str, searchString, position) { - str = String(str); - if (position === undefined || position > str.length) { - position = str.length; - } - position -= searchString.length; - var lastIndex = str.indexOf(searchString, position); - return lastIndex !== -1 && lastIndex === position; -} - - -/** - * Returns new array from array like object - * @param {*} [thing] - * @returns {Array} - */ -function toArray(thing) { - if (!thing) return null; - var i = thing.length; - if (isUndefined(i)) return null; - var arr = new Array(i); - while (i-- > 0) { - arr[i] = thing[i]; - } - return arr; -} - -// eslint-disable-next-line func-names -var isTypedArray = (function(TypedArray) { - // eslint-disable-next-line func-names - return function(thing) { - return TypedArray && thing instanceof TypedArray; - }; -})(typeof Uint8Array !== 'undefined' && Object.getPrototypeOf(Uint8Array)); - -module.exports = { - isArray: isArray, - isArrayBuffer: isArrayBuffer, - isBuffer: isBuffer, - isFormData: isFormData, - isArrayBufferView: isArrayBufferView, - isString: isString, - isNumber: isNumber, - isObject: isObject, - isPlainObject: isPlainObject, - isUndefined: isUndefined, - isDate: isDate, - isFile: isFile, - isBlob: isBlob, - isFunction: isFunction, - isStream: isStream, - isURLSearchParams: isURLSearchParams, - isStandardBrowserEnv: isStandardBrowserEnv, - forEach: forEach, - merge: merge, - extend: extend, - trim: trim, - stripBOM: stripBOM, - inherits: inherits, - toFlatObject: toFlatObject, - kindOf: kindOf, - kindOfTest: kindOfTest, - endsWith: endsWith, - toArray: toArray, - isTypedArray: isTypedArray, - isFileList: isFileList -}; - - -/***/ }), - -/***/ "./src/js/OtpLayout.js": -/*!*****************************!*\ - !*** ./src/js/OtpLayout.js ***! - \*****************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ OtpLayout: () => (/* binding */ OtpLayout) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/theme/MantineProvider.js"); -/* harmony import */ var _mantine_modals__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/modals */ "./node_modules/@mantine/modals/esm/ModalsProvider.js"); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/NotificationsProvider/NotificationsProvider.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _utils_Password__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/Password */ "./src/js/utils/Password.js"); -/* harmony import */ var _context_UserSettingProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./context/UserSettingProvider */ "./src/js/context/UserSettingProvider.js"); - - - - - - - - - -// get nextcloud theme -var nextcloudTheme = "dark"; -const bodyElement = document.getElementsByTagName("body")[0]; -const theme = bodyElement.getAttribute("data-themes"); -if (theme.includes("default")) { - nextcloudTheme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; -} else if (bodyElement.getAttribute("data-themes").includes("light") || bodyElement.classList.contains("theme--light")) { - nextcloudTheme = "light"; -} -const OtpLayout = _ref => { - let { - children, - myCache, - emotionRoot - } = _ref; - const [userSetting, setUserSetting] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_UserSettingProvider__WEBPACK_IMPORTED_MODULE_3__.UserSettingContext); - const [password, setPassword] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [auth, setAuth] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - fetch((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_1__.generateUrl)("/apps/otpmanager/password")).then(response => response.json()).then(response => setPassword(response)).catch(error => setPassword(null)); - }, []); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.MantineProvider, { - theme: { - colorScheme: userSetting.darkMode == null ? nextcloudTheme : userSetting.darkMode ? "dark" : "light", - breakpoints: { - min: 0 - }, - components: { - Portal: { - defaultProps: { - target: emotionRoot - } - } - } - }, - emotionCache: myCache - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.NotificationsProvider, { - position: "top-right", - zIndex: 999999, - sx: { - right: "16px", - // default - maxWidth: "440px", - // default - top: "calc(50px + 16px)" // 50px (nextcloud header) - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_modals__WEBPACK_IMPORTED_MODULE_6__.ModalsProvider, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Box, { - sx: { - minHeight: "calc(100vh - 50px)", - width: "100%", - padding: 0, - margin: 0 - } - }, auth ? children : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_utils_Password__WEBPACK_IMPORTED_MODULE_2__.Password, { - exists: password, - setAuth: setAuth - }))))); -}; - -/***/ }), - -/***/ "./src/js/appShell/AppShell.js": -/*!*************************************!*\ - !*** ./src/js/appShell/AppShell.js ***! - \*************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ MainAppShell) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/AppShell/AppShell.js"); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-media-query/use-media-query.js"); -/* harmony import */ var _navbar_LargeDevice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../navbar/LargeDevice */ "./src/js/navbar/LargeDevice.js"); -/* harmony import */ var _navbar_SmallDevice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../navbar/SmallDevice */ "./src/js/navbar/SmallDevice.js"); -/* harmony import */ var _Content__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Content */ "./src/js/appShell/Content.js"); -/* harmony import */ var _aside_Aside__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../aside/Aside */ "./src/js/aside/Aside.js"); -/* harmony import */ var _aside_Info__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../aside/Info */ "./src/js/aside/Info.js"); -/* harmony import */ var _aside_Share__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../aside/Share */ "./src/js/aside/Share.js"); - - - - - - - - - -function MainAppShell(_ref) { - let { - children - } = _ref; - const smallScreen = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_7__.useMediaQuery)("(max-width: 991px)"); - const [otp, setOtp] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [showAsideInfo, setShowAsideInfo] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [showAsideShare, setShowAsideShare] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [showNavbarSmallDevice, setShowNavbarSmallDevice] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [showApps, setShowApps] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [showChangePassword, setShowChangePassword] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [showImportExport, setShowImportExport] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - - // user settings - const [showSettings, setShowSettings] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_aside_Aside__WEBPACK_IMPORTED_MODULE_4__["default"], { - showAside: showAsideInfo, - setShowAside: setShowAsideInfo, - title: "Account Details" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_aside_Info__WEBPACK_IMPORTED_MODULE_5__["default"], { - otp: otp - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_aside_Aside__WEBPACK_IMPORTED_MODULE_4__["default"], { - showAside: showAsideShare, - setShowAside: setShowAsideShare, - title: "Account Sharing" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_aside_Share__WEBPACK_IMPORTED_MODULE_6__["default"], { - otp: otp - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_navbar_SmallDevice__WEBPACK_IMPORTED_MODULE_2__.NavbarSmallDevice, { - showNavbarSmallDevice: showNavbarSmallDevice, - setShowNavbarSmallDevice: setShowNavbarSmallDevice, - showSettings: showSettings, - setShowSettings: setShowSettings, - setShowApps: setShowApps, - setShowChangePassword: setShowChangePassword, - setShowImportExport: setShowImportExport - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.AppShell, { - padding: "0", - fixed: false, - layout: "alt", - navbar: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_navbar_LargeDevice__WEBPACK_IMPORTED_MODULE_1__.NavbarLargeDevice, { - showSettings: showSettings, - setShowSettings: setShowSettings, - setShowChangePassword: setShowChangePassword, - setShowApps: setShowApps, - setShowImportExport: setShowImportExport - }), - styles: { - main: { - width: smallScreen ? "100vw" : "calc(100vw - 300px)" - } - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Content__WEBPACK_IMPORTED_MODULE_3__.AppShellContent, { - otp: otp, - setOtp: setOtp, - showNavbarSmallDevice: showNavbarSmallDevice, - setShowNavbarSmallDevice: setShowNavbarSmallDevice, - setShowAsideInfo: setShowAsideInfo, - setShowAsideShare: setShowAsideShare, - showApps: showApps, - setShowApps: setShowApps, - setShowChangePassword: setShowChangePassword, - showChangePassword: showChangePassword, - showImportExport: showImportExport, - setShowImportExport: setShowImportExport - }), children)); -} - -/***/ }), - -/***/ "./src/js/appShell/Content.js": -/*!************************************!*\ - !*** ./src/js/appShell/Content.js ***! - \************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AppShellContent: () => (/* binding */ AppShellContent) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/AppShell/Header/Header.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Flex/Flex.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Burger/Burger.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Breadcrumbs/Breadcrumbs.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Anchor/Anchor.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.js"); -/* harmony import */ var _accountsTable_AccountsTable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./accountsTable/AccountsTable */ "./src/js/appShell/accountsTable/AccountsTable.js"); -/* harmony import */ var _modals_CreateOtpAccount__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../modals/CreateOtpAccount */ "./src/js/modals/CreateOtpAccount.js"); -/* harmony import */ var _modals_EditOtpAccount__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../modals/EditOtpAccount */ "./src/js/modals/EditOtpAccount.js"); -/* harmony import */ var _modals_ChangePassword__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modals/ChangePassword */ "./src/js/modals/ChangePassword.js"); -/* harmony import */ var _modals_ImportExport__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../modals/ImportExport */ "./src/js/modals/ImportExport.js"); -/* harmony import */ var _modals_UnlockSharedAccount__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../modals/UnlockSharedAccount */ "./src/js/modals/UnlockSharedAccount.js"); -/* harmony import */ var _modals_Apps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../modals/Apps */ "./src/js/modals/Apps.js"); - - - - - - - - - - -function AppShellContent(_ref) { - let { - otp, - setOtp, - showNavbarSmallDevice, - setShowNavbarSmallDevice, - setShowAsideInfo, - setShowAsideShare, - showApps, - setShowApps, - setShowChangePassword, - showChangePassword, - showImportExport, - setShowImportExport - } = _ref; - const [showCreateAccount, setShowCreateAccount] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [showEditOtpAccount, setShowEditOtpAccount] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [sharedAccountToUnlock, setSharedAccountToUnlock] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [accounts, setAccounts] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [isFetching, setFetchState] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Header, { - height: 44, - mb: 0 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.Flex, { - align: "center", - h: "100%" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.Burger, { - opened: showNavbarSmallDevice, - onClick: () => setShowNavbarSmallDevice(true), - size: "sm", - ml: 4, - display: { - base: "block", - md: "none" - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.Breadcrumbs, { - separator: "\u2192", - ml: "md" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_12__.Anchor, { - href: "#", - variant: "text", - color: "dimmed" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_13__.Text, { - c: "dimmed" - }, "All accounts")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_14__.ActionIcon, { - sx: { - display: "inline" - }, - variant: "transparent", - color: "blue", - onClick: () => setShowCreateAccount(true) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_15__["default"], null))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_16__.Group, { - sx: theme => ({ - background: theme.colorScheme === "dark" ? "rgba(0, 0, 0, .8)" : "rgba(255, 255, 255, .8)", - padding: "16px", - paddingBottom: "calc(var(--body-container-margin)*2 + 16px)", - paddingRight: "calc(var(--body-container-margin)*2 + 16px)", - height: "calc(100vh - 44px - 50px)" - }), - grow: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_accountsTable_AccountsTable__WEBPACK_IMPORTED_MODULE_1__.AccountsTable, { - setOtp: setOtp, - accounts: accounts, - setAccounts: setAccounts, - isFetching: isFetching, - setFetchState: setFetchState, - setShowEditOtpAccount: setShowEditOtpAccount, - setShowAsideInfo: setShowAsideInfo, - setShowAsideShare: setShowAsideShare, - setSharedAccountToUnlock: setSharedAccountToUnlock - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modals_CreateOtpAccount__WEBPACK_IMPORTED_MODULE_2__.CreateOtpAccount, { - showCreateAccount: showCreateAccount, - setShowCreateAccount: setShowCreateAccount, - setAccounts: setAccounts, - setFetchState: setFetchState - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modals_EditOtpAccount__WEBPACK_IMPORTED_MODULE_3__.EditOtpAccount, { - otp: otp, - showEditOtpAccount: showEditOtpAccount, - setShowEditOtpAccount: setShowEditOtpAccount, - setAccounts: setAccounts, - setFetchState: setFetchState - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modals_ChangePassword__WEBPACK_IMPORTED_MODULE_4__.ChangePassword, { - showChangePassword: showChangePassword, - setShowChangePassword: setShowChangePassword, - setAccounts: setAccounts, - setFetchState: setFetchState - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modals_ImportExport__WEBPACK_IMPORTED_MODULE_5__.ImportExport, { - showImportExport: showImportExport, - setShowImportExport: setShowImportExport, - accounts: accounts, - setAccounts: setAccounts, - setFetchState: setFetchState - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modals_UnlockSharedAccount__WEBPACK_IMPORTED_MODULE_6__.UnlockSharedAccount, { - sharedAccountToUnlock: sharedAccountToUnlock, - setSharedAccountToUnlock: setSharedAccountToUnlock, - setAccounts: setAccounts, - setFetchState: setFetchState - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_modals_Apps__WEBPACK_IMPORTED_MODULE_7__.Apps, { - showApps: showApps, - setShowApps: setShowApps - })); -} - -/***/ }), - -/***/ "./src/js/appShell/accountsTable/AccountsTable.js": -/*!********************************************************!*\ - !*** ./src/js/appShell/accountsTable/AccountsTable.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AccountsTable: () => (/* binding */ AccountsTable) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/sortBy */ "./node_modules/lodash/sortBy.js"); -/* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_sortBy__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _utils_generateCodes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/generateCodes */ "./src/js/utils/generateCodes.js"); -/* harmony import */ var _Datatable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Datatable */ "./src/js/appShell/accountsTable/Datatable.js"); -/* harmony import */ var _context_SecretProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./../../context/SecretProvider */ "./src/js/context/SecretProvider.js"); - - - - - - - -function AccountsTable(_ref) { - let { - setOtp, - accounts, - setAccounts, - isFetching, - setFetchState, - setShowEditOtpAccount, - setShowAsideInfo, - setShowAsideShare, - selectedAccounts, - setSelectedAccounts, - setSharedAccountToUnlock - } = _ref; - const [sortStatus, setSortStatus] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({ - columnAccessor: "position", - direction: "asc" - }); - const [timer, setTimer] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [secret, setSecret] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_SecretProvider__WEBPACK_IMPORTED_MODULE_6__.SecretContext); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - let response = null; - if (accounts == null) { - const getData = async () => { - response = await _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].get((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)("/apps/otpmanager/accounts")); - response.data.accounts = response.data.accounts.concat(response.data.shared_accounts); - response = lodash_sortBy__WEBPACK_IMPORTED_MODULE_3___default()(response.data.accounts, sortStatus.columnAccessor); - if (timer != null) { - clearTimeout(timer); - } - (0,_utils_generateCodes__WEBPACK_IMPORTED_MODULE_4__.generateCodes)(response, setTimer, setAccounts, secret.passwordHash, secret.iv); - setFetchState(false); - }; - getData(); - } else { - response = lodash_sortBy__WEBPACK_IMPORTED_MODULE_3___default()(accounts, sortStatus.columnAccessor); - if (sortStatus.direction === "desc") response = response.reverse(); - setAccounts(response); - } - }, [sortStatus, isFetching]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Datatable__WEBPACK_IMPORTED_MODULE_5__["default"], { - isFetching: isFetching, - setFetchState: setFetchState, - accounts: accounts, - setAccounts: setAccounts, - setOtp: setOtp, - setShowAsideInfo: setShowAsideInfo, - setShowAsideShare: setShowAsideShare, - setShowEditOtpAccount: setShowEditOtpAccount, - sortStatus: sortStatus, - setSortStatus: setSortStatus, - selectedAccounts: selectedAccounts, - setSelectedAccounts: setSelectedAccounts, - setSharedAccountToUnlock: setSharedAccountToUnlock - }); -} - -/***/ }), - -/***/ "./src/js/appShell/accountsTable/Datatable.js": -/*!****************************************************!*\ - !*** ./src/js/appShell/accountsTable/Datatable.js ***! - \****************************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ CustomDatatable) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Avatar/Avatar.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconReload.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconShare.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconDatabaseOff.js"); -/* harmony import */ var mantine_datatable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! mantine-datatable */ "./node_modules/mantine-datatable/dist/index.mjs"); -/* harmony import */ var _modals_DeleteOtpAccount__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../modals/DeleteOtpAccount */ "./src/js/modals/DeleteOtpAccount.js"); -/* harmony import */ var _utils_copy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/copy */ "./src/js/utils/copy.js"); -/* harmony import */ var _utils_updateCounter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/updateCounter */ "./src/js/utils/updateCounter.js"); -/* harmony import */ var _context_UserSettingProvider__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../context/UserSettingProvider */ "./src/js/context/UserSettingProvider.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); - - - - - - - - - -const PAGE_SIZES = ["10", "20", "30", "All"]; -const isTouchDevice = "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0; -function CustomDatatable(_ref) { - let { - isFetching, - setFetchState, - accounts, - setAccounts, - setOtp, - setShowAsideInfo, - setShowAsideShare, - setShowEditOtpAccount, - sortStatus, - setSortStatus, - setSharedAccountToUnlock - } = _ref; - const [userSetting, setUserSetting] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_UserSettingProvider__WEBPACK_IMPORTED_MODULE_5__.UserSettingContext); - const [pageSize, setPageSize] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(PAGE_SIZES[0]); - const [isUpdatingCounter, setUpdateCounterState] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [page, setPage] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(1); - const [from, setFrom] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0); - const [to, setTo] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(pageSize); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (accounts == null) return; - userSetting.recordsPerPage == "All" ? setPageSize(accounts.length) : setPageSize(userSetting.recordsPerPage); - }, [userSetting.recordsPerPage, accounts]); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (accounts != null) { - let from = (page - 1) * pageSize; - setFrom(from); - setTo(from + parseInt(pageSize)); - } else { - setFrom(0); - setTo(pageSize); - } - }, [page, pageSize]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(mantine_datatable__WEBPACK_IMPORTED_MODULE_1__.DataTable, { - fetching: isFetching, - textSelectionDisabled: true, - verticalSpacing: "xs", - records: accounts == null ? null : accounts.slice(from, to), - striped: true, - highlightOnHover: true, - withBorder: true, - sx: { - backgroundColor: "", - marginTop: "0px" - }, - onRowClick: (account, rowIndex, event) => { - if (account.unlocked === 0) { - setSharedAccountToUnlock(account); - } else if (account.type == "hotp" && account.counter < 0) { - (0,_utils_updateCounter__WEBPACK_IMPORTED_MODULE_4__.updateCounter)(account, account.user_id, setUpdateCounterState); - } else { - setOtp(account); - setShowAsideInfo(true); - } - }, - columns: [{ - accessor: "position", - sortable: true, - width: 70, - title: "#" - }, { - accessor: "name", - sortable: true, - width: 250 - }, { - accessor: "issuer", - sortable: true, - width: 400 - }, { - accessor: "code", - width: 300, - render: account => { - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Box, { - sx: { - "&:hover>#hiddenCode": { - display: "none" - }, - "&:hover>#code": { - display: "flex" - } - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Text, { - sx: { - display: userSetting.showCodes || isTouchDevice || account.unlocked === 0 ? "none" : "block" - }, - id: "hiddenCode" - }, "******"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.Group, { - spacing: 0, - id: "code", - sx: { - display: userSetting.showCodes || isTouchDevice || account.unlocked === 0 ? "flex" : "none" - }, - onClick: event => { - console.log(account); - if ((account.unlocked === undefined || account.unlocked === 1) && (account.type == "hotp" && account.counter >= 0 || account.type == "totp")) { - event.preventDefault(); - event.stopPropagation(); - (0,_utils_copy__WEBPACK_IMPORTED_MODULE_3__.copy)(account.code); - } - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Text, null, account.code), (account.unlocked === undefined || account.unlocked === 1) && (account.type == "hotp" && account.counter >= 0 || account.type == "totp") && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.ActionIcon, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_11__["default"], { - size: 18 - }))))); - } - }, { - accessor: "actions", - title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Text, { - mr: "xs" - }, "Actions"), - textAlignment: "right", - render: account => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.Group, { - spacing: 4, - position: "right", - noWrap: true - }, account.unlocked === 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.ActionIcon, { - onClick: event => { - event.stopPropagation(); - setSharedAccountToUnlock(account); - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__["default"], { - size: 18 - })), account.type == "hotp" && account.unlocked !== 0 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.ActionIcon, { - disabled: isUpdatingCounter, - onClick: event => { - event.stopPropagation(); - (0,_utils_updateCounter__WEBPACK_IMPORTED_MODULE_4__.updateCounter)(account, account.user_id, setUpdateCounterState); - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_13__["default"], { - size: 18 - })), account.unlocked === 1 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_14__.Avatar, { - src: (0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_6__.generateUrl)("/avatar/" + account.user_id + "/64"), - alt: account.user_id, - radius: "xl", - size: "sm" - }), account.unlocked === undefined && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.ActionIcon - //color="gray" - , { - onClick: event => { - event.stopPropagation(); - setOtp(account); - setShowAsideShare(true); - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_15__["default"], { - size: 18 - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.ActionIcon, { - color: "blue", - onClick: event => { - event.stopPropagation(); - setOtp(account); - setShowEditOtpAccount(true); - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_16__["default"], { - size: 16 - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.ActionIcon, { - color: "red", - onClick: event => { - event.stopPropagation(); - (0,_modals_DeleteOtpAccount__WEBPACK_IMPORTED_MODULE_2__.openDeleteModal)(account, setAccounts, setFetchState, setPage); - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_17__["default"], { - size: 18 - })))) - }], - sortStatus: sortStatus, - onSortStatusChange: setSortStatus, - totalRecords: accounts == null ? 0 : accounts.length, - recordsPerPage: pageSize, - page: page, - onPageChange: p => setPage(p), - recordsPerPageOptions: PAGE_SIZES, - onRecordsPerPageChange: p => { - setUserSetting(userSetting.copyWith({ - recordsPerPage: p - })); - setPage(1); - p == "All" ? setPageSize(accounts.length) : setPageSize(p); - }, - emptyState: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_18__.Stack, { - align: "center", - spacing: "xs" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_19__["default"], { - size: 40 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Text, { - color: "dimmed" - }, "Add your first OTP account")) - - //selectedRecords={selectedAccounts} - //onSelectedRecordsChange={setSelectedAccounts} - //onRowClick={(account, index) => setOtp(account) } - }); -} - -/***/ }), - -/***/ "./src/js/aside/Aside.js": -/*!*******************************!*\ - !*** ./src/js/aside/Aside.js ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Aside) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Drawer/Drawer.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Divider/Divider.js"); - - -function Aside(_ref) { - let { - children, - showAside, - setShowAside, - title - } = _ref; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_1__.Drawer, { - padding: "md", - position: "right", - size: 380, - opened: showAside, - onClose: () => setShowAside(false), - title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.Text, { - fw: 700, - fz: "lg" - }, title), - styles: { - drawer: { - top: "50px" - }, - body: { - height: "calc(100% - 50px)", - display: "flex", - flexDirection: "column" - } - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Divider, { - mb: "lg" - }), children); -} - -/***/ }), - -/***/ "./src/js/aside/Info.js": -/*!******************************!*\ - !*** ./src/js/aside/Info.js ***! - \******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ AsideInfo) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Grid/Grid.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _utils_getAlgorithm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/getAlgorithm */ "./src/js/utils/getAlgorithm.js"); - - - -function AsideInfo(_ref) { - let { - otp - } = _ref; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.Stack, { - spacing: "xl" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between", - sx: { - backgroundColor: "" - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Name"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, otp.name))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Issuer"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, otp.issuer))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Period"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, otp.period, "s"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Digits"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, otp.digits))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Algorithm"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, (0,_utils_getAlgorithm__WEBPACK_IMPORTED_MODULE_1__.getAlgorithm)(otp.algorithm)))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Type"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed", - tt: "uppercase" - }, otp.type))), otp.type == "hotp" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Counter"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, otp.counter))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Created At"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, otp.created_at))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Updated At"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, otp.updated_at))), otp.deleted_at != null && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Deleted At"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, otp.deleted_at))), otp.expired_at !== undefined && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, "Expired At"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - ta: "right", - fs: "italic", - c: "dimmed" - }, otp.expired_at == null ? "Never expires" : otp.expired_at))))); -} - -/***/ }), - -/***/ "./src/js/aside/Share.js": -/*!*******************************!*\ - !*** ./src/js/aside/Share.js ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ AsideShare) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Avatar/Avatar.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/MultiSelect/MultiSelect.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/PasswordInput/PasswordInput.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Button/Button.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Divider/Divider.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Center/Center.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Loader/Loader.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/ScrollArea/ScrollArea.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Card/Card.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Flex/Flex.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCopy.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconShareOff.js"); -/* harmony import */ var _mantine_dates__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @mantine/dates */ "./node_modules/@mantine/dates/esm/components/DatePicker/DatePicker.js"); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _mantine_form__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mantine/form */ "./node_modules/@mantine/form/esm/use-form.js"); -/* harmony import */ var crypto_es__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! crypto-es */ "./node_modules/crypto-es/lib/index.js"); -/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "./node_modules/moment/moment.js"); -/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _utils_copy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/copy */ "./src/js/utils/copy.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - - - - - - - - - - -const SelectItem = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_ref, ref) => { - let { - image, - label, - value, - ...others - } = _ref; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", _extends({ - ref: ref - }, others), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Group, { - noWrap: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Avatar, { - src: image, - radius: "xl" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, null, label == null ? value : label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, { - size: "xs", - color: "dimmed" - }, value)))); -}); -function AsideShare(_ref2) { - let { - otp - } = _ref2; - const [activeShares, setActiveShares] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [users, setUsers] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]); - const [fetchUsers, setFetchUsers] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true); - const [fetchActiveShares, setFetchActiveShares] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true); - function showError(response) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.updateNotification)({ - id: "share-account", - color: "red", - title: "Error", - message: response !== undefined && response.data["error"] ? response.data["error"] : "Something went wrong while sharing the account", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__["default"], { - size: 16 - }), - autoClose: 2000 - }); - for (const field in response.data) { - form.setFieldError(field, response.data[field]); - } - } - async function saveShare(values) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.showNotification)({ - id: "share-account", - loading: true, - title: "Sharing account", - message: "Account is being sharing", - autoClose: false, - disallowClose: true - }); - values.password = crypto_es__WEBPACK_IMPORTED_MODULE_10__["default"].SHA256(values.plainTextPassword).toString(); - const key = crypto_es__WEBPACK_IMPORTED_MODULE_10__["default"].enc.Hex.parse(values.password); - const iv = crypto_es__WEBPACK_IMPORTED_MODULE_10__["default"].lib.WordArray.random(16); - values.iv = crypto_es__WEBPACK_IMPORTED_MODULE_10__["default"].enc.Hex.stringify(iv); - values.sharedSecret = crypto_es__WEBPACK_IMPORTED_MODULE_10__["default"].AES.encrypt(otp.decryptedSecret, key, { - iv: iv - }).toString(); - const response = await _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].post((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)("/apps/otpmanager/share"), { - data: values - }).catch(() => showError()); - if (response.data == "OK") { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.updateNotification)({ - id: "share-account", - color: "blue", - title: "Account shared", - message: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, null, otp.issuer != "" ? otp.issuer + " (" + otp.name + ")" : otp.name, " ", "shared with success."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, { - fw: 600 - }, "Remember to share the password you used with the users you shared your account with."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, { - td: "underline", - onClick: () => (0,_utils_copy__WEBPACK_IMPORTED_MODULE_4__.copy)(values.plainTextPassword) - }, "Click here to copy the password.")), - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.ActionIcon, { - color: "blue", - size: "lg", - radius: "xl", - variant: "filled" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__["default"], { - size: 26, - onClick: () => (0,_utils_copy__WEBPACK_IMPORTED_MODULE_4__.copy)(values.plainTextPassword) - })), - autoClose: false - }); - form.reset(); - setFetchUsers(true); - setActiveShares(null); - setFetchActiveShares(true); - } else { - showError(response); - } - } - async function cancelShare(activeShareId, receiver) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.showNotification)({ - id: "delete-shared-account", - loading: true, - title: "Deleting shared account", - message: "Sharing is being deleting", - autoClose: false, - disallowClose: true - }); - const response = await _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].delete((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)("/apps/otpmanager/share/" + activeShareId + "?receiver=" + receiver.value)); - if (response.status === 200) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.updateNotification)({ - id: "delete-shared-account", - color: "teal", - title: "Shared account deleted", - message: (otp.issuer != "" ? otp.issuer + " (" + otp.name + ")" : otp.name) + " is no longer shared with " + receiver.label, - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_13__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } else { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.updateNotification)({ - id: "delete-shared-account", - color: "red", - title: "Error", - message: "Something went wrong while deleting shared account", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - setActiveShares(null); - setFetchActiveShares(true); - setFetchUsers(true); - } - const form = (0,_mantine_form__WEBPACK_IMPORTED_MODULE_14__.useForm)({ - initialValues: { - users: [], - expirationDate: null, - plainTextPassword: "", - accountSecret: otp.secret - }, - validate: { - users: value => value.length == 0 ? "Must choose at least one user" : null, - plainTextPassword: value => value.length == 0 ? "Password cannot be empty" : null - } - }); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (fetchUsers) { - _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].get((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)("/apps/otpmanager/get-users/" + otp.id)).then(response => { - setUsers(response.data); - setFetchUsers(false); - }); - } - if (fetchActiveShares) { - _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].get((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)("/apps/otpmanager/share/" + otp.id)).then(response => { - setActiveShares(response.data); - setFetchActiveShares(false); - }); - } - }, [fetchUsers, fetchActiveShares]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("form", { - onSubmit: form.onSubmit(values => saveShare(values)) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_15__.Stack, { - spacing: "lg" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_16__.MultiSelect, _extends({ - itemComponent: SelectItem, - data: users, - label: "Share account to an other user", - placeholder: "Pick users", - searchable: true, - nothingFound: "Nothing found", - clearButtonLabel: "Clear selection", - clearable: true, - maxDropdownHeight: 200, - transitionDuration: 150, - transition: "pop", - transitionTimingFunction: "ease", - limit: 20 - }, form.getInputProps("users"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_dates__WEBPACK_IMPORTED_MODULE_17__.DatePicker, _extends({ - placeholder: "Pick date", - label: "Choose an expiration date, if you want to share forever leave blank", - transitionDuration: 150, - transition: "pop", - transitionTimingFunction: "ease", - minDate: new Date() - }, form.getInputProps("expirationDate"), { - onChange: date => { - form.setValues({ - expirationDate: date == null ? null : moment__WEBPACK_IMPORTED_MODULE_3___default()(date).format("MM/DD/YYYY") - }); - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_18__.PasswordInput, _extends({ - label: "Password", - placeholder: "Insert your sharing password" - }, form.getInputProps("plainTextPassword"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Group, { - position: "right" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_19__.Button, { - type: "submit" - }, "Submit")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_20__.Divider, { - my: "lg" - }), fetchActiveShares ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_21__.Center, { - h: "100%" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_22__.Loader, null)) : activeShares != null && activeShares.length > 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, { - mb: "lg" - }, "Active shares"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_23__.ScrollArea, { - h: "100%" - }, activeShares.map(activeShare => { - let receiver = activeShare.receiver; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_24__.Card, { - key: receiver.value, - mb: "md", - shadow: "md", - radius: "md", - withBorder: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_25__.Flex, { - justify: "space-between", - align: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Group, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Avatar, { - src: receiver.image, - radius: "xl" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_15__.Stack, { - spacing: "0" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, { - fw: 700 - }, receiver.label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Group, { - spacing: "5px" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, { - fz: "sm" - }, receiver.value), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, { - fz: "sm" - }, "|"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, { - fz: "sm", - fs: "italic" - }, activeShare.expired_at == null ? "Never expires" : `Expires on ${moment__WEBPACK_IMPORTED_MODULE_3___default()(activeShare.expired_at).format("D MMMM YYYY")}`)))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.ActionIcon, { - color: "red", - onClick: event => cancelShare(activeShare.account_id, receiver) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_26__["default"], { - size: 18 - })))); - }))) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null)); -} - -/***/ }), - -/***/ "./src/js/context/SecretProvider.js": -/*!******************************************!*\ - !*** ./src/js/context/SecretProvider.js ***! - \******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ SecretContext: () => (/* binding */ SecretContext), -/* harmony export */ SecretContextProvider: () => (/* binding */ SecretContextProvider) -/* harmony export */ }); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _model_Secret__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../model/Secret */ "./src/js/model/Secret.js"); - - - - - - -const initState = new _model_Secret__WEBPACK_IMPORTED_MODULE_3__.Secret(); -const SecretContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.createContext)(initState); -const SecretContextProvider = _ref => { - let { - children - } = _ref; - const [state, setState] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(initState); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(SecretContext.Provider, { - value: [state, setState] - }, children); -}; - - -/***/ }), - -/***/ "./src/js/context/UserSettingProvider.js": -/*!***********************************************!*\ - !*** ./src/js/context/UserSettingProvider.js ***! - \***********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ UserSettingContext: () => (/* binding */ UserSettingContext), -/* harmony export */ UserSettingContextProvider: () => (/* binding */ UserSettingContextProvider) -/* harmony export */ }); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _model_UserSetting__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../model/UserSetting */ "./src/js/model/UserSetting.js"); - - - - - - -const initState = new _model_UserSetting__WEBPACK_IMPORTED_MODULE_3__.UserSetting(false, null, "10"); -const UserSettingContext = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.createContext)(initState); -const UserSettingContextProvider = _ref => { - let { - children - } = _ref; - const [state, setState] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(initState); - (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(() => { - if (!state.toUpdate) return; - _nextcloud_axios__WEBPACK_IMPORTED_MODULE_0__["default"].post((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_1__.generateUrl)("/apps/otpmanager/settings"), JSON.stringify(state), { - headers: { - "Content-Type": "application/json" - } - }).catch(error => { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_4__.showNotification)({ - id: "update-user-setting", - color: "red", - title: "Error", - message: "Something went wrong while updating your settings", - autoClose: 2000, - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_5__["default"], { - size: 16 - }) - }); - }); - }, [state]); - (0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(() => { - _nextcloud_axios__WEBPACK_IMPORTED_MODULE_0__["default"].get((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_1__.generateUrl)("/apps/otpmanager/settings")).then(response => { - setState(state.copyWith({ - showCodes: response.data.show_codes, - darkMode: response.data.dark_mode, - recordsPerPage: response.data.records_per_page, - toUpdate: false - })); - }).catch(error => setState(initState)); - }, []); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(UserSettingContext.Provider, { - value: [state, setState] - }, children); -}; - - -/***/ }), - -/***/ "./src/js/modals/Apps.js": -/*!*******************************!*\ - !*** ./src/js/modals/Apps.js ***! - \*******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Apps: () => (/* binding */ Apps) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Modal/Modal.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/ScrollArea/ScrollArea.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _img_otp_manager_png__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../img/otp_manager.png */ "./img/otp_manager.png"); -/* harmony import */ var _img_firefox_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../img/firefox.svg */ "./img/firefox.svg"); -/* harmony import */ var _img_chrome_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../img/chrome.svg */ "./img/chrome.svg"); -/* harmony import */ var _utils_AppCard__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/AppCard */ "./src/js/utils/AppCard.js"); - - - - - - -function Apps(_ref) { - let { - showApps, - setShowApps - } = _ref; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Modal, { - opened: showApps, - onClose: () => setShowApps(false), - title: "Apps", - size: "xl" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.ScrollArea.Autosize, { - mah: "calc(100vh - (10vh * 2))" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Stack, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_utils_AppCard__WEBPACK_IMPORTED_MODULE_4__.AppCard, { - title: "OTP Manager", - description: "OTP Manager is an Android application designed to simplify the management of OTP (One-Time Password) codes and allow you to access to your OTP codes in a secure and convenient way. The application has been developed to work in synergy with your personal Nextcloud server, which allows you to store and manage your OTP codes securely and accessibly from anywhere.", - image: _img_otp_manager_png__WEBPACK_IMPORTED_MODULE_1__, - badgeText: "Android", - buttonText: "Install from Google Play", - link: "https://play.google.com/store/apps/details?id=com.convertino.otp_manager" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_utils_AppCard__WEBPACK_IMPORTED_MODULE_4__.AppCard, { - title: "OTP Manager", - description: "OTP Manager is an iOS application designed to simplify the management of OTP (One-Time Password) codes and allow you to access to your OTP codes in a secure and convenient way. The application has been developed to work in synergy with your personal Nextcloud server, which allows you to store and manage your OTP codes securely and accessibly from anywhere.", - image: _img_otp_manager_png__WEBPACK_IMPORTED_MODULE_1__, - badgeText: "iOS", - buttonText: "Install from Apple Store", - link: "https://apps.apple.com/us/app/nextcloud-otp-manager/id6471510170" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_utils_AppCard__WEBPACK_IMPORTED_MODULE_4__.AppCard, { - title: "OTP Manager", - description: "The OTP Manager extension, available on the Firefox Add-ons, securely manages your OTP codes with your personal Nextcloud server. With this extension, you can conveniently access all of your accounts, generate TOTP and HOTP codes and much more directly from Firefox.", - image: _img_firefox_svg__WEBPACK_IMPORTED_MODULE_2__, - badgeText: "Firefox Extension", - buttonText: "Install from Firefox Add-ons", - buttonDisabled: true - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_utils_AppCard__WEBPACK_IMPORTED_MODULE_4__.AppCard, { - title: "OTP Manager", - description: "The OTP Manager extension, available on the Chrome Web Store, securely manages your OTP codes with your personal Nextcloud server. With this extension, you can conveniently access all of your accounts, generate TOTP and HOTP codes and much more directly from many Chromium based Browsers.", - image: _img_chrome_svg__WEBPACK_IMPORTED_MODULE_3__, - badgeText: "Chrome Extension", - buttonText: "Install from Chrome Web Store", - buttonDisabled: true - })))); -} - -/***/ }), - -/***/ "./src/js/modals/ChangePassword.js": -/*!*****************************************!*\ - !*** ./src/js/modals/ChangePassword.js ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ChangePassword: () => (/* binding */ ChangePassword) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Modal/Modal.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Button/Button.js"); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconKey.js"); -/* harmony import */ var crypto_es__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! crypto-es */ "./node_modules/crypto-es/lib/index.js"); -/* harmony import */ var _utils_PasswordForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils/PasswordForm */ "./src/js/utils/PasswordForm.js"); -/* harmony import */ var _context_SecretProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../context/SecretProvider */ "./src/js/context/SecretProvider.js"); - - - - - - - - - -function ChangePassword(_ref) { - let { - showChangePassword, - setShowChangePassword, - setAccounts, - setFetchState - } = _ref; - const [secret, setSecret] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_SecretProvider__WEBPACK_IMPORTED_MODULE_4__.SecretContext); - function closeModal() { - setShowChangePassword(false); - } - async function changePassword(values) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.showNotification)({ - id: "change-password", - loading: true, - title: "Password", - message: "Password is being updated", - autoClose: false, - disallowClose: true - }); - _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].put((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)("/apps/otpmanager/password"), { - newPassword: values.password, - oldPassword: values.oldPassword - }).then(response => { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "change-password", - color: "teal", - title: "Password", - message: "Password updated with success", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__["default"], { - size: 16 - }), - autoClose: 2000 - }); - setSecret(secret.copyWith({ - iv: response.data["iv"], - password: values.password, - passwordHash: crypto_es__WEBPACK_IMPORTED_MODULE_7__["default"].SHA256(values.password).toString() - })); - if (localStorage.getItem("otpmanager_cached_password") !== null) { - localStorage.setItem("otpmanager_cached_password", values.password); - } - closeModal(); - setAccounts(null); - setFetchState(true); - }).catch(error => { - if (error.response) { - if (error.response.status == 400) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "change-password", - color: "red", - title: "Request Error", - message: error.response.data["error"], - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - } else if (error.request) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "change-password", - color: "red", - title: "Timeout Error", - message: "The nextcloud server took too long to respond", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } else { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "change-password", - color: "red", - title: "Generic Error", - message: "Something went wrong", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - }); - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.Modal, { - opened: showChangePassword, - onClose: () => closeModal(), - title: "Change Password", - centered: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.Stack, { - spacing: "xl" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_utils_PasswordForm__WEBPACK_IMPORTED_MODULE_3__["default"], { - exists: false, - onSubmit: changePassword, - isChanging: true - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.Group, { - position: "right" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_12__.Button, { - styles: { - icon: { - display: "inline" - } - }, - rightIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_13__["default"], null), - type: "submit", - form: "form" - }, "Change Password")))); -} - -/***/ }), - -/***/ "./src/js/modals/CreateEditContent.js": -/*!********************************************!*\ - !*** ./src/js/modals/CreateEditContent.js ***! - \********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ CreateEditContent) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/TextInput/TextInput.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Grid/Grid.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Select/Select.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Button/Button.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconAbc.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconShieldLock.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconKey.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - - -function CreateEditContent(_ref) { - let { - form, - textSubmitButton, - iconSumbitButton, - isSecretKeyDisabled, - isSharedAccount - } = _ref; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_1__.Stack, { - spacing: "xl" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.TextInput, _extends({ - label: "Account name", - withAsterisk: true, - rightSection: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_3__["default"], null) - }, form.getInputProps("name"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.TextInput, _extends({ - label: "Account issuer", - rightSection: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_4__["default"], null) - }, form.getInputProps("issuer"))), !isSharedAccount && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.TextInput, _extends({ - label: "Secret key", - disabled: isSecretKeyDisabled, - withAsterisk: true, - rightSection: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_5__["default"], null) - }, form.getInputProps("secret"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Grid, { - grow: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Grid.Col, { - span: 8 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Select, _extends({ - label: "Type of code", - defaultValue: "totp", - data: [{ - value: "totp", - label: "Based on time (TOTP)" - }, { - value: "hotp", - label: "Based on counter (HOTP)" - }] - }, form.getInputProps("type")))), form.values.type == "totp" && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Grid.Col, { - span: 4 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Select, _extends({ - label: "Interval", - defaultValue: "30", - data: [{ - value: "30", - label: "30s" - }, { - value: "45", - label: "45s" - }, { - value: "60", - label: "60s" - }] - }, form.getInputProps("period"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Grid, { - grow: true, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Select, _extends({ - label: "Algorithm", - defaultValue: "SHA1", - data: [{ - value: "SHA1", - label: "SHA1" - }, { - value: "SHA256", - label: "SHA256" - }, { - value: "SHA512", - label: "SHA512" - }] - }, form.getInputProps("algorithm")))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Grid.Col, { - span: 3 - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Select, _extends({ - label: "Digits", - defaultValue: "6", - data: [{ - value: "6", - label: "6" - }, { - value: "4", - label: "4" - }] - }, form.getInputProps("digits")))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Group, { - position: "right" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.Button, { - styles: { - icon: { - display: "inline" - } - }, - rightIcon: iconSumbitButton, - type: "submit" - }, textSubmitButton))); -} - -/***/ }), - -/***/ "./src/js/modals/CreateOtpAccount.js": -/*!*******************************************!*\ - !*** ./src/js/modals/CreateOtpAccount.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ CreateOtpAccount: () => (/* binding */ CreateOtpAccount) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Modal/Modal.js"); -/* harmony import */ var _mantine_form__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/form */ "./node_modules/@mantine/form/esm/use-form.js"); -/* harmony import */ var _mantine_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/form */ "./node_modules/@mantine/form/esm/validators/has-length/has-length.js"); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.js"); -/* harmony import */ var crypto_es__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! crypto-es */ "./node_modules/crypto-es/lib/index.js"); -/* harmony import */ var _context_SecretProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../context/SecretProvider */ "./src/js/context/SecretProvider.js"); -/* harmony import */ var _CreateEditContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CreateEditContent */ "./src/js/modals/CreateEditContent.js"); - - - - - - - - - - -function CreateOtpAccount(_ref) { - let { - showCreateAccount, - setShowCreateAccount, - setAccounts, - setFetchState - } = _ref; - const [secretContext, setSecretContext] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_SecretProvider__WEBPACK_IMPORTED_MODULE_3__.SecretContext); - const form = (0,_mantine_form__WEBPACK_IMPORTED_MODULE_5__.useForm)({ - initialValues: { - name: "", - issuer: "", - secret: "", - type: "totp", - period: "30", - algorithm: "SHA1", - digits: "6" - }, - validate: { - name: (0,_mantine_form__WEBPACK_IMPORTED_MODULE_6__.hasLength)({ - min: 1, - max: 256 - }, "Name must be 1-256 characters long"), - issuer: (0,_mantine_form__WEBPACK_IMPORTED_MODULE_6__.hasLength)({ - min: 0, - max: 256 - }, "Issuer must be shorter than 256 characters"), - secret: value => { - if (value.length < 16 || value.length > 512) { - return "Secret must be 16-512 characters long"; - } - if (!value.match(/^[A-Z2-7]+=*$/i)) { - return "Secret key is not Base32-encodable"; - } - return null; - } - } - }); - function closeModal() { - setShowCreateAccount(false); - form.reset(); - } - async function createAccount(values) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_7__.showNotification)({ - id: "create-account", - loading: true, - title: "Creating account", - message: "Account is being creating", - autoClose: false, - disallowClose: true - }); - const key = crypto_es__WEBPACK_IMPORTED_MODULE_8__["default"].enc.Hex.parse(secretContext.passwordHash); - const parsedIv = crypto_es__WEBPACK_IMPORTED_MODULE_8__["default"].enc.Hex.parse(secretContext.iv); - values.secret = crypto_es__WEBPACK_IMPORTED_MODULE_8__["default"].AES.encrypt(values.secret, key, { - iv: parsedIv - }).toString(); - const response = await _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].post((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)("/apps/otpmanager/accounts"), { - data: values - }); - if (response.data == "OK") { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_7__.updateNotification)({ - id: "create-account", - color: "teal", - title: "Account created", - message: (values.issuer != "" ? values.issuer + " (" + values.name + ")" : values.name) + " created with success", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__["default"], { - size: 16 - }), - autoClose: 2000 - }); - closeModal(); - setAccounts(null); - setFetchState(true); - } else { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_7__.updateNotification)({ - id: "create-account", - color: "red", - title: "Error", - message: "Something went wrong while creating the account", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_10__["default"], { - size: 16 - }), - autoClose: 2000 - }); - for (const field in response.data) { - form.setFieldError(field, response.data[field]); - } - } - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.Modal, { - opened: showCreateAccount, - onClose: () => closeModal(), - title: "Add New Account" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("form", { - onSubmit: form.onSubmit(values => createAccount(JSON.parse(JSON.stringify(values)))) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CreateEditContent__WEBPACK_IMPORTED_MODULE_4__["default"], { - form: form, - textSubmitButton: "Add", - iconSumbitButton: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__["default"], { - size: "18px" - }), - isSecretKeyDisabled: false, - isSharedAccount: false - }))); -} - -/***/ }), - -/***/ "./src/js/modals/DeleteOtpAccount.js": -/*!*******************************************!*\ - !*** ./src/js/modals/DeleteOtpAccount.js ***! - \*******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ openDeleteModal: () => (/* binding */ openDeleteModal) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_modals__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/modals */ "./node_modules/@mantine/modals/esm/events.js"); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); - - - - - - - -function openDeleteModal(account, setAccounts, setFetchState, setPage) { - async function deleteAccount() { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_3__.showNotification)({ - id: "delete-account", - loading: true, - title: "Deleting account", - message: account.issuer + " (" + account.name + ") is being deleted", - autoClose: false, - disallowClose: true - }); - const url = account.unlocked === undefined ? "/apps/otpmanager/accounts/" + account.id : "/apps/otpmanager/share/" + account.account_id; - _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].delete((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)(url)).then(response => { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_3__.updateNotification)({ - id: "delete-account", - color: "teal", - title: "Account deleted", - message: (account.issuer != "" ? account.issuer + " (" + account.name + ")" : account.name) + " deleted with success", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_4__["default"], { - size: 16 - }), - autoClose: 2000 - }); - }).catch(error => { - if (error.response) { - if (error.response.status == 400) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_3__.updateNotification)({ - id: "delete-account", - color: "red", - title: "Request Error", - message: error.response.data["error"], - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_5__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - } else if (error.request) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_3__.updateNotification)({ - id: "delete-account", - color: "red", - title: "Timeout Error", - message: "The nextcloud server took too long to respond", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_5__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } else { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_3__.updateNotification)({ - id: "delete-account", - color: "red", - title: "Generic Error", - message: "Something went wrong", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_5__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - }).finally(() => { - setPage(1); - setAccounts(null); - setFetchState(true); - }); - } - return (0,_mantine_modals__WEBPACK_IMPORTED_MODULE_6__.openConfirmModal)({ - title: "Delete Account", - centered: true, - children: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Text, { - size: "sm" - }, "Are you sure that you want to remove", " ", account.issuer != "" ? account.issuer + " (" + account.name + ")" : account.name, "?"), - labels: { - confirm: "Delete", - cancel: "Cancel" - }, - confirmProps: { - color: "red" - }, - //onCancel: () => console.log('Cancel'), - onConfirm: () => deleteAccount() - }); -} - -/***/ }), - -/***/ "./src/js/modals/EditOtpAccount.js": -/*!*****************************************!*\ - !*** ./src/js/modals/EditOtpAccount.js ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ EditOtpAccount: () => (/* binding */ EditOtpAccount) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Modal/Modal.js"); -/* harmony import */ var _mantine_form__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/form */ "./node_modules/@mantine/form/esm/use-form.js"); -/* harmony import */ var _mantine_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/form */ "./node_modules/@mantine/form/esm/validators/has-length/has-length.js"); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.js"); -/* harmony import */ var _utils_getAlgorithm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/getAlgorithm */ "./src/js/utils/getAlgorithm.js"); -/* harmony import */ var _CreateEditContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CreateEditContent */ "./src/js/modals/CreateEditContent.js"); - - - - - - - - - -function EditOtpAccount(_ref) { - let { - otp, - showEditOtpAccount, - setShowEditOtpAccount, - setAccounts, - setFetchState - } = _ref; - const form = (0,_mantine_form__WEBPACK_IMPORTED_MODULE_5__.useForm)({ - initialValues: { - name: "", - issuer: "", - secret: "", - type: "totp", - period: "30", - algorithm: "SHA1", - digits: "6" - }, - validate: { - name: (0,_mantine_form__WEBPACK_IMPORTED_MODULE_6__.hasLength)({ - min: 1, - max: 256 - }, "Name must be 1-256 characters long"), - issuer: (0,_mantine_form__WEBPACK_IMPORTED_MODULE_6__.hasLength)({ - min: 0, - max: 256 - }, "Issuer must be shorter than 256 characters") - } - }); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (otp != null) { - form.setFieldValue("name", otp.name); - form.setFieldValue("issuer", otp.issuer); - form.setFieldValue("secret", otp.decryptedSecret); - form.setFieldValue("type", otp.type); - form.setFieldValue("period", otp.period.toString()); - form.setFieldValue("algorithm", (0,_utils_getAlgorithm__WEBPACK_IMPORTED_MODULE_3__.getAlgorithm)(otp.algorithm)); - form.setFieldValue("digits", otp.digits.toString()); - } - }, [otp]); - async function editAccount(values) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_7__.showNotification)({ - id: "edit-account", - loading: true, - title: "Editing account", - message: "Account is being editing", - autoClose: false, - disallowClose: true - }); - values.secret = otp.secret; - const url = otp.unlocked === undefined ? "/apps/otpmanager/accounts" : "/apps/otpmanager/share"; - const response = await _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].put((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)(url), { - data: values - }); - if (response.data == "OK") { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_7__.updateNotification)({ - id: "edit-account", - color: "teal", - title: "Account edited", - message: (values.issuer != "" ? values.issuer + " (" + values.name + ")" : values.name) + " edited with success", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__["default"], { - size: 16 - }), - autoClose: 2000 - }); - setShowEditOtpAccount(false); - setAccounts(null); - setFetchState(true); - } else { - var msg = "Something went wrong while editing the account"; - if (response.data.msg !== undefined) { - msg = response.data.msg; - delete response.data.msg; - } - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_7__.updateNotification)({ - id: "edit-account", - color: "red", - title: "Error", - message: msg, - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__["default"], { - size: 16 - }), - autoClose: 2000 - }); - for (const field in response.data) { - form.setFieldError(field, response.data[field]); - } - } - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.Modal, { - opened: showEditOtpAccount, - onClose: () => setShowEditOtpAccount(false), - title: "Edit Account" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("form", { - onSubmit: form.onSubmit(values => editAccount(JSON.parse(JSON.stringify(values)))) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_CreateEditContent__WEBPACK_IMPORTED_MODULE_4__["default"], { - form: form, - textSubmitButton: "Edit", - iconSumbitButton: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_11__["default"], { - size: "18px" - }), - isSecretKeyDisabled: true, - isSharedAccount: otp != null && otp.unlocked !== undefined - }))); -} - -/***/ }), - -/***/ "./src/js/modals/ExportAccounts.js": -/*!*****************************************!*\ - !*** ./src/js/modals/ExportAccounts.js ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ExportAccounts: () => (/* binding */ ExportAccounts) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Button/Button.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconLock.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconLockOpen.js"); -/* harmony import */ var _context_SecretProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../context/SecretProvider */ "./src/js/context/SecretProvider.js"); - - - - -function ExportAccounts(_ref) { - let { - accounts - } = _ref; - const [secret, setSecret] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_SecretProvider__WEBPACK_IMPORTED_MODULE_1__.SecretContext); - function exportAccounts(encrypt) { - let accountsToExport = accounts.map(e => ({ - ...e - })); - accountsToExport.forEach(account => { - if (!encrypt) account.secret = account.decryptedSecret; - delete account.decryptedSecret; - delete account.id; - delete account.created_at; - delete account.updated_at; - delete account.deleted_at; - delete account.user_id; - delete account.position; - delete account.code; - }); - const jsonString = `data:text/json;chatset=utf-8,${encodeURIComponent(JSON.stringify(encrypt ? { - accounts: accountsToExport, - iv: secret.iv - } : { - accounts: accountsToExport - }))}`; - const link = document.createElement("a"); - link.href = jsonString; - link.download = encrypt ? "accounts_encrypted_secret.json" : "accounts_plain_secret.json"; - link.click(); - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.Text, null, "Select how you want to export your accounts."), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Box, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.Text, { - sx: { - display: "inline" - } - }, "Choose based on your needs whether to export them securely"), " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.Text, { - sx: { - display: "inline" - }, - fw: 700 - }, "with your encrypted secret key"), " ", "or", " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.Text, { - sx: { - display: "inline" - }, - fw: 700 - }, "totally unencrypted")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Group, { - position: "right" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Button, { - styles: { - icon: { - display: "inline" - } - }, - rightIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__["default"], null), - type: "submit", - onClick: () => exportAccounts(true) - }, "Encrypted Export"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Button, { - styles: { - icon: { - display: "inline" - } - }, - rightIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__["default"], null), - type: "submit", - color: "red", - onClick: () => exportAccounts(false) - }, "Plain Secret Export"))); -} - -/***/ }), - -/***/ "./src/js/modals/ImportAccounts.js": -/*!*****************************************!*\ - !*** ./src/js/modals/ImportAccounts.js ***! - \*****************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ImportAccounts: () => (/* binding */ ImportAccounts) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/FileInput/FileInput.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/PasswordInput/PasswordInput.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Button/Button.js"); -/* harmony import */ var _mantine_form__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/form */ "./node_modules/@mantine/form/esm/use-form.js"); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconFileImport.js"); -/* harmony import */ var _context_SecretProvider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../context/SecretProvider */ "./src/js/context/SecretProvider.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - - - - - - - -function ImportAccounts(_ref) { - let { - setAccounts, - setFetchState, - closeModal - } = _ref; - const [file, setFile] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [secret, setSecret] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_SecretProvider__WEBPACK_IMPORTED_MODULE_3__.SecretContext); - const form = (0,_mantine_form__WEBPACK_IMPORTED_MODULE_4__.useForm)({ - initialValues: { - password: "" - } - }); - function importAccounts() { - const fileReader = new FileReader(); - fileReader.onloadend = () => { - try { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.showNotification)({ - id: "import-accounts", - loading: true, - title: "Import Accounts", - message: "Accounts are being imported", - autoClose: false, - disallowClose: true - }); - _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].post((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)("/apps/otpmanager/accounts/import"), { - data: JSON.parse(fileReader.result), - passwordUsedOnExport: form.values.password, - currentPassword: secret.passwordHash - }).then(response => { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "import-accounts", - color: "teal", - title: "Import Accounts", - message: "Accounts imported with success", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__["default"], { - size: 16 - }), - autoClose: 2000 - }); - closeModal(); - setAccounts(null); - setFetchState(true); - }).catch(error => { - if (error.response) { - if (error.response.status == 400) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "import-accounts", - color: "red", - title: "Request Error", - message: error.response.data["error"], - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - } else if (error.request) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "import-accounts", - color: "red", - title: "Timeout Error", - message: "The nextcloud server took too long to respond", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } else { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "import-accounts", - color: "red", - title: "Generic Error", - message: "Something went wrong", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - }); - } catch (e) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.showNotification)({ - id: "import-accounts", - title: "Import Error", - message: "The file uploaded is not a .json file", - color: "red", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - }; - if (file != null) fileReader.readAsText(file); - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.FileInput, { - label: "Import file", - placeholder: "Click here to upload your .json file", - accept: "application/json", - value: file, - onChange: setFile - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.PasswordInput, _extends({ - label: "Password", - mb: "md", - description: "Only if you are importing encrypted accounts", - placeholder: "Insert the password to decrypt" - }, form.getInputProps("password"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.Group, { - position: "right" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.Button, { - styles: { - icon: { - display: "inline" - } - }, - rightIcon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__["default"], null), - type: "submit", - onClick: () => importAccounts() - }, "Import accounts"))); -} - -/***/ }), - -/***/ "./src/js/modals/ImportExport.js": -/*!***************************************!*\ - !*** ./src/js/modals/ImportExport.js ***! - \***************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ImportExport: () => (/* binding */ ImportExport) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Modal/Modal.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/SegmentedControl/SegmentedControl.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Center/Center.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconFileImport.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconFileExport.js"); -/* harmony import */ var _ExportAccounts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExportAccounts */ "./src/js/modals/ExportAccounts.js"); -/* harmony import */ var _ImportAccounts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ImportAccounts */ "./src/js/modals/ImportAccounts.js"); - - - - - -function ImportExport(_ref) { - let { - showImportExport, - setShowImportExport, - accounts, - setAccounts, - setFetchState - } = _ref; - const [sectionComponent, setSectionComponent] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null); - const [sectionValue, setSectionValue] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("import"); - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (sectionValue == "export") setSectionComponent( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ExportAccounts__WEBPACK_IMPORTED_MODULE_1__.ExportAccounts, { - accounts: accounts - }));else if (sectionValue == "import") setSectionComponent( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ImportAccounts__WEBPACK_IMPORTED_MODULE_2__.ImportAccounts, { - setAccounts: setAccounts, - setFetchState: setFetchState, - closeModal: closeModal - })); - }, [sectionValue]); - function closeModal() { - setShowImportExport(false); - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Modal, { - opened: showImportExport, - onClose: () => closeModal(), - title: "Import Accounts", - centered: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Stack, { - spacing: "xl" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.SegmentedControl, { - value: sectionValue, - onChange: setSectionValue, - data: [{ - value: "import", - label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Center, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__["default"], { - size: 16 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Box, { - ml: 10 - }, "Import")) - }, { - value: "export", - label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Center, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__["default"], { - size: 16 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Box, { - ml: 10 - }, "Export")) - }], - fullWidth: true - }), sectionComponent)); -} - -/***/ }), - -/***/ "./src/js/modals/UnlockSharedAccount.js": -/*!**********************************************!*\ - !*** ./src/js/modals/UnlockSharedAccount.js ***! - \**********************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ UnlockSharedAccount: () => (/* binding */ UnlockSharedAccount) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-disclosure/use-disclosure.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Modal/Modal.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/PasswordInput/PasswordInput.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Flex/Flex.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Button/Button.js"); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -/* harmony import */ var _utils_PasswordForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./../utils/PasswordForm */ "./src/js/utils/PasswordForm.js"); -/* harmony import */ var _context_SecretProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./../context/SecretProvider */ "./src/js/context/SecretProvider.js"); -/* harmony import */ var _mantine_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/form */ "./node_modules/@mantine/form/esm/use-form.js"); -/* harmony import */ var _mantine_form__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/form */ "./node_modules/@mantine/form/esm/validators/is-not-empty/is-not-empty.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - - - - - - - - - - -function UnlockSharedAccount(_ref) { - let { - sharedAccountToUnlock, - setSharedAccountToUnlock, - setAccounts, - setFetchState - } = _ref; - const [secret, setSecret] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_SecretProvider__WEBPACK_IMPORTED_MODULE_4__.SecretContext); - const [visible, { - toggle - }] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_5__.useDisclosure)(false); - const form = (0,_mantine_form__WEBPACK_IMPORTED_MODULE_6__.useForm)({ - initialValues: { - tempPassword: "" - }, - validate: { - tempPassword: (0,_mantine_form__WEBPACK_IMPORTED_MODULE_7__.isNotEmpty)("Password cannot be empty") - } - }); - function closeModal() { - setSharedAccountToUnlock(null); - } - async function unlock(values) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.showNotification)({ - id: "unlock", - loading: true, - title: "Shared Account", - message: "Unlocking shared account", - autoClose: false, - disallowClose: true - }); - _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].post((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateOcsUrl)("/apps/otpmanager/share/unlock"), { - accountId: sharedAccountToUnlock.account_id, - currentPassword: secret.passwordHash, - tempPassword: values.tempPassword - }).then(response => { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.updateNotification)({ - id: "unlock", - color: "teal", - title: "Shared Account", - message: "Shared account unlocked with success", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__["default"], { - size: 16 - }), - autoClose: 2000 - }); - closeModal(); - setAccounts(null); - setFetchState(true); - }).catch(error => { - if (error.response) { - if (error.response.status == 400) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.updateNotification)({ - id: "unlock", - color: "red", - title: "Request Error", - message: error.response.data["error"], - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_10__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - } else if (error.request) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.updateNotification)({ - id: "unlock", - color: "red", - title: "Timeout Error", - message: "The nextcloud server took too long to respond", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_10__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } else { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_8__.updateNotification)({ - id: "unlock", - color: "red", - title: "Generic Error", - message: "Something went wrong", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_10__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - }); - } - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.Modal, { - opened: sharedAccountToUnlock !== null, - onClose: () => closeModal(), - title: "Unlock Shared Account", - centered: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("form", { - onSubmit: form.onSubmit(values => unlock(values)) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_12__.Stack, { - spacing: "xl" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_13__.PasswordInput, _extends({ - label: "Password", - description: "Insert the password that was used to share this account", - visible: visible, - onVisibilityChange: toggle - }, form.getInputProps("tempPassword"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_14__.Flex, { - justify: "flex-end" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_15__.Button, { - type: "submit" - }, "Unlock"))))); -} - -/***/ }), - -/***/ "./src/js/model/Secret.js": -/*!********************************!*\ - !*** ./src/js/model/Secret.js ***! - \********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Secret: () => (/* binding */ Secret) -/* harmony export */ }); -class Secret { - constructor() { - let password = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; - let passwordHash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ""; - let iv = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ""; - this.password = password; - this.passwordHash = passwordHash; - this.iv = iv; - } - copyWith() { - let { - password = null, - passwordHash = null, - iv = null - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return new Secret(password == null ? this.password : password, passwordHash == null ? this.passwordHash : passwordHash, iv == null ? this.iv : iv); - } -} - -/***/ }), - -/***/ "./src/js/model/UserSetting.js": -/*!*************************************!*\ - !*** ./src/js/model/UserSetting.js ***! - \*************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ UserSetting: () => (/* binding */ UserSetting) -/* harmony export */ }); -class UserSetting { - constructor(showCodes, darkMode, recordsPerPage) { - let toUpdate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; - this.showCodes = showCodes; - this.darkMode = darkMode; - this.recordsPerPage = recordsPerPage; - /*this.password = password; - this.passwordHash = passwordHash; - this.iv = iv;*/ - this.toUpdate = toUpdate; - } - - /*fromJson(json) { - return this.copyWith({ - showCodes: json.show_codes, - darkMode: json.dark_mode, - recordsPerPage: json.records_per_page, - }); - }*/ - - copyWith() { - let { - showCodes = null, - darkMode = null, - recordsPerPage = null, - /*password = null, - passwordHash = null, - iv = null,*/ - toUpdate = null - } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - return new UserSetting(showCodes === null ? this.showCodes : showCodes, darkMode === null ? this.darkMode : darkMode, recordsPerPage === null ? this.recordsPerPage : recordsPerPage, - /*password == null ? this.password : password, - passwordHash == null ? this.passwordHash : passwordHash, - iv == null ? this.iv : iv,*/ - toUpdate == null ? true : toUpdate); - } -} - -/***/ }), - -/***/ "./src/js/navbar/LargeDevice.js": -/*!**************************************!*\ - !*** ./src/js/navbar/LargeDevice.js ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ NavbarLargeDevice: () => (/* binding */ NavbarLargeDevice) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/AppShell/Navbar/Navbar.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Collapse/Collapse.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Checkbox/Checkbox.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Flex/Flex.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconList.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconApps.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconSun.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconMoonStars.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconLockOff.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconKey.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconFileInvoice.js"); -/* harmony import */ var _context_UserSettingProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../context/UserSettingProvider */ "./src/js/context/UserSettingProvider.js"); -/* harmony import */ var _Styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Styles */ "./src/js/navbar/Styles.js"); - - - - - -function NavbarLargeDevice(_ref) { - let { - showSettings, - setShowSettings, - setShowApps, - setShowChangePassword, - setShowImportExport - } = _ref; - const [active, setActive] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("All accounts"); - const { - classes, - cx - } = (0,_Styles__WEBPACK_IMPORTED_MODULE_2__.navbarStyles)(); - const ChevronIcon = !showSettings ? _tabler_icons_react__WEBPACK_IMPORTED_MODULE_3__["default"] : _tabler_icons_react__WEBPACK_IMPORTED_MODULE_4__["default"]; - const [userSetting, setUserSetting] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_UserSettingProvider__WEBPACK_IMPORTED_MODULE_1__.UserSettingContext); - const [passwordSaved, setPasswordSaved] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(Boolean(localStorage.getItem("otpmanager_cached_password"))); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Navbar, { - hidden: true, - hiddenBreakpoint: "md", - width: { - min: 300, - xs: 300 - }, - p: "xs", - mih: "calc(100vh - 50px)" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Navbar.Section, { - className: classes.header - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Text, { - fw: 700, - fz: "lg", - ta: "center" - }, "OTP Manager")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Navbar.Section, { - grow: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", { - className: cx(classes.link, { - [classes.linkActive]: "All accounts" === active - }) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_7__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, "All accounts"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Navbar.Section, { - className: classes.footer - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - href: "#", - className: classes.link, - onClick: event => setShowApps(true) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, "Apps")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.Group, { - position: "apart", - className: classes.link, - spacing: 0, - onClick: () => setShowSettings(o => !o) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.Box, { - sx: { - display: "flex", - alignItems: "center" - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_11__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Text, null, "Settings")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ChevronIcon, { - className: classes.chevron, - size: "16px", - stroke: 1.5, - style: { - transform: showSettings ? "rotate(-90deg)" : "none" - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_12__.Collapse, { - in: showSettings - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_13__.Checkbox, { - checked: userSetting.showCodes, - onChange: e => setUserSetting(userSetting.copyWith({ - showCodes: !userSetting.showCodes - })), - className: classes.innerLink, - label: "Show codes" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_14__.Flex, { - className: classes.innerLink, - align: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_15__.ActionIcon, { - variant: "outline", - color: userSetting.darkMode ? "yellow" : "blue", - onClick: () => setUserSetting(userSetting.copyWith({ - darkMode: !userSetting.darkMode - })), - sx: { - width: "20px", - height: "20px", - minWidth: "20px", - minHeight: "20px" - }, - title: "Toggle color scheme" - }, userSetting.darkMode ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_16__["default"], { - style: { - width: 16 - } - }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_17__["default"], { - style: { - width: 16 - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Text, { - sx: { - fontSize: "14px", - color: "#C1C2C5", - marginLeft: "12px" - } - }, "Switch to " + (userSetting.darkMode ? "light mode" : "dark mode"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_14__.Flex, { - className: classes.innerLink, - align: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_15__.ActionIcon, { - variant: "outline", - color: "red", - onClick: e => { - localStorage.removeItem("otpmanager_cached_password"); - setPasswordSaved(false); - }, - disabled: !passwordSaved, - sx: { - width: "20px", - height: "20px", - minWidth: "20px", - minHeight: "20px" - }, - title: "Remove saved password" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_18__["default"], { - style: { - width: 16 - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Text, { - sx: { - fontSize: "14px", - color: "#C1C2C5", - marginLeft: "12px" - } - }, "Remove saved password")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - href: "#", - className: classes.link, - onClick: event => setShowChangePassword(true) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_19__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, "Change password")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - href: "#", - className: classes.link, - onClick: event => setShowImportExport(true) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_20__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, "Import / Export")))))); -} - -/***/ }), - -/***/ "./src/js/navbar/SmallDevice.js": -/*!**************************************!*\ - !*** ./src/js/navbar/SmallDevice.js ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ NavbarSmallDevice: () => (/* binding */ NavbarSmallDevice) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Drawer/Drawer.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Collapse/Collapse.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Checkbox/Checkbox.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Flex/Flex.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/ActionIcon/ActionIcon.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronRight.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconChevronLeft.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconList.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconApps.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconSun.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconMoonStars.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconLockOff.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconKey.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconFileInvoice.js"); -/* harmony import */ var _context_UserSettingProvider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../context/UserSettingProvider */ "./src/js/context/UserSettingProvider.js"); -/* harmony import */ var _Styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Styles */ "./src/js/navbar/Styles.js"); - - - - - -function NavbarSmallDevice(_ref) { - let { - showNavbarSmallDevice, - setShowNavbarSmallDevice, - showSettings, - setShowSettings, - setShowApps, - setShowChangePassword, - setShowImportExport - } = _ref; - const [active, setActive] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("All accounts"); - const { - classes, - cx - } = (0,_Styles__WEBPACK_IMPORTED_MODULE_2__.navbarStyles)(); - const ChevronIcon = !showSettings ? _tabler_icons_react__WEBPACK_IMPORTED_MODULE_3__["default"] : _tabler_icons_react__WEBPACK_IMPORTED_MODULE_4__["default"]; - const [userSetting, setUserSetting] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_UserSettingProvider__WEBPACK_IMPORTED_MODULE_1__.UserSettingContext); - const [passwordSaved, setPasswordSaved] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(Boolean(localStorage.getItem("otpmanager_cached_password"))); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Drawer, { - padding: "xs", - position: "left", - size: 300, - opened: showNavbarSmallDevice, - onClose: () => setShowNavbarSmallDevice(false), - title: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Text, { - fw: 700, - fz: "lg", - ta: "center" - }, "OTP Manager"), - styles: { - drawer: { - top: "50px" - //minHeight: "calc(100vh - 50px)" - }, - - header: classes.header, - body: { - height: "calc(100% - 100px)" - }, - closeButton: { - position: "absolute", - left: "calc(100% - 28px - 16px);" // - 28px (button size) - 16 px (padding right) - }, - - title: { - width: "100%" - } - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Stack, { - sx: { - height: "calc(100% + 20px)" - }, - justify: "space-between" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("a", { - className: cx(classes.link, { - [classes.linkActive]: "All accounts" === active - }) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, "All accounts"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - className: classes.footer - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - href: "#", - className: classes.link, - onClick: event => setShowApps(true) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_9__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, "Apps")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.Group, { - position: "apart", - className: classes.link, - spacing: 0, - onClick: () => setShowSettings(o => !o) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.Box, { - sx: { - display: "flex", - alignItems: "center" - } - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_12__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Text, null, "Settings")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ChevronIcon, { - className: classes.chevron, - size: "16px", - stroke: 1.5, - style: { - transform: showSettings ? "rotate(-90deg)" : "none" - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_13__.Collapse, { - in: showSettings - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_14__.Checkbox, { - checked: userSetting.showCodes, - onChange: e => setUserSetting(userSetting.copyWith({ - showCodes: !userSetting.showCodes - })), - className: classes.innerLink, - label: "Show codes" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_15__.Flex, { - className: classes.innerLink, - align: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_16__.ActionIcon, { - variant: "outline", - color: userSetting.darkMode ? "yellow" : "blue", - onClick: () => setUserSetting(userSetting.copyWith({ - darkMode: !userSetting.darkMode - })), - sx: { - width: "20px", - height: "20px", - minWidth: "20px", - minHeight: "20px" - }, - title: "Toggle color scheme" - }, userSetting.darkMode ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_17__["default"], { - style: { - width: 16 - } - }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_18__["default"], { - style: { - width: 16 - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Text, { - sx: { - fontSize: "14px", - color: "#C1C2C5", - marginLeft: "12px" - } - }, "Switch to " + (userSetting.darkMode ? "light mode" : "dark mode"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_15__.Flex, { - className: classes.innerLink, - align: "center" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_16__.ActionIcon, { - variant: "outline", - color: "red", - onClick: e => { - localStorage.removeItem("otpmanager_cached_password"); - setPasswordSaved(false); - }, - disabled: !passwordSaved, - sx: { - width: "20px", - height: "20px", - minWidth: "20px", - minHeight: "20px" - }, - title: "Remove saved password" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_19__["default"], { - style: { - width: 16 - } - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Text, { - sx: { - fontSize: "14px", - color: "#C1C2C5", - marginLeft: "12px" - } - }, "Remove saved password")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - href: "#", - className: classes.link, - onClick: event => setShowChangePassword(true) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_20__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, "Change password")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { - href: "#", - className: classes.link, - onClick: event => setShowImportExport(true) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_21__["default"], { - className: classes.linkIcon, - stroke: 1.5 - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", null, "Import / Export"))))))); -} - -/***/ }), - -/***/ "./src/js/navbar/Styles.js": -/*!*********************************!*\ - !*** ./src/js/navbar/Styles.js ***! - \*********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ navbarStyles: () => (/* binding */ navbarStyles) -/* harmony export */ }); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/styles/esm/tss/create-styles.js"); - -const navbarStyles = (0,_mantine_core__WEBPACK_IMPORTED_MODULE_0__.createStyles)((theme, _params, getRef) => { - const icon = getRef("icon"); - return { - header: { - paddingTop: theme.spacing.xs, - paddingBottom: theme.spacing.md, - marginBottom: theme.spacing.md * 1.5, - borderBottom: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[2]}` - }, - footer: { - paddingTop: theme.spacing.md, - marginTop: theme.spacing.md, - borderTop: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[2]}` - }, - link: { - ...theme.fn.focusStyles(), - display: "flex", - alignItems: "center", - textDecoration: "none", - fontSize: theme.fontSizes.sm, - color: theme.colorScheme === "dark" ? theme.colors.dark[1] : theme.colors.gray[7], - padding: `${theme.spacing.xs}px ${theme.spacing.sm}px`, - borderRadius: theme.radius.sm, - fontWeight: 500, - "&:hover": { - backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[6] : theme.colors.gray[0], - color: theme.colorScheme === "dark" ? theme.white : theme.black, - [`& .${icon}`]: { - color: theme.colorScheme === "dark" ? theme.white : theme.black - } - } - }, - linkIcon: { - ref: icon, - color: theme.colorScheme === "dark" ? theme.colors.dark[2] : theme.colors.gray[6], - marginRight: theme.spacing.sm - }, - linkActive: { - "&, &:hover": { - backgroundColor: theme.fn.variant({ - variant: "light", - color: theme.primaryColor - }).background, - color: theme.fn.variant({ - variant: "light", - color: theme.primaryColor - }).color, - [`& .${icon}`]: { - color: theme.fn.variant({ - variant: "light", - color: theme.primaryColor - }).color - } - } - }, - innerLink: { - textDecoration: "none", - padding: `${theme.spacing.xs}px 0px ${theme.spacing.xs}px ${theme.spacing.xl}px`, - marginLeft: theme.spacing.xl, - borderLeft: `1px solid ${theme.colorScheme === "dark" ? theme.colors.dark[4] : theme.colors.gray[3]}` - } - }; -}); - -/***/ }), - -/***/ "./src/js/utils/AppCard.js": -/*!*********************************!*\ - !*** ./src/js/utils/AppCard.js ***! - \*********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ AppCard: () => (/* binding */ AppCard) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Card/Card.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Image/Image.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Group/Group.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Badge/Badge.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Button/Button.js"); - - -function AppCard(_ref) { - let { - title, - description, - badgeText, - image, - buttonText, - link = "#", - buttonDisabled = false - } = _ref; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_1__.Card, { - shadow: "sm", - padding: "lg", - radius: "md", - withBorder: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_1__.Card.Section, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_2__.Image, { - src: image, - mt: "md", - height: 160, - fit: "contain" - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_3__.Group, { - position: "apart", - mt: "md", - mb: "xs" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - weight: 500 - }, title), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_5__.Badge, { - color: "blue", - variant: "light" - }, badgeText)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Text, { - size: "sm", - color: "dimmed", - align: "justify" - }, description), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_6__.Button, { - component: "a", - href: link, - variant: "light", - color: "blue", - fullWidth: true, - mt: "md", - radius: "md", - disabled: buttonDisabled, - sx: { - "&[data-disabled]": { - pointerEvents: "all" - } - } - }, buttonText)); -} - -/***/ }), - -/***/ "./src/js/utils/Password.js": -/*!**********************************!*\ - !*** ./src/js/utils/Password.js ***! - \**********************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ Password: () => (/* binding */ Password) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/AppShell/AppShell.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Flex/Flex.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Loader/Loader.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Card/Card.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Stack/Stack.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Divider/Divider.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Button/Button.js"); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -/* harmony import */ var crypto_es__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! crypto-es */ "./node_modules/crypto-es/lib/index.js"); -/* harmony import */ var _PasswordForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PasswordForm */ "./src/js/utils/PasswordForm.js"); -/* harmony import */ var _context_SecretProvider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../context/SecretProvider */ "./src/js/context/SecretProvider.js"); - - - - - - - - - -const Password = _ref => { - let { - exists, - setAuth - } = _ref; - const [secret, setSecret] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(_context_SecretProvider__WEBPACK_IMPORTED_MODULE_4__.SecretContext); - function updatePassword(values) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.showNotification)({ - id: "update-password", - loading: true, - title: "Password", - message: exists ? "Password is being checked" : "Password is being stored", - autoClose: false, - disallowClose: true - }); - _nextcloud_axios__WEBPACK_IMPORTED_MODULE_1__["default"].post(exists ? (0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateOcsUrl)("/apps/otpmanager/password/check") : (0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_2__.generateUrl)("/apps/otpmanager/password"), { - password: values.password - }).then(response => { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "update-password", - color: "teal", - title: "Password", - message: exists ? "Correct password" : "Password stored with success", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__["default"], { - size: 16 - }), - autoClose: 2000 - }); - setAuth(true); - setSecret(secret.copyWith({ - iv: response.data["iv"], - password: values.password, - passwordHash: crypto_es__WEBPACK_IMPORTED_MODULE_7__["default"].SHA256(values.password).toString() - })); - if (values.savePassword) { - localStorage.setItem("otpmanager_cached_password", values.password); - } - }).catch(error => { - if (error.response) { - if (error.response.status == 400) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "update-password", - color: "red", - title: "Request Error", - message: error.response.data["error"], - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - } else if (error.request) { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "update-password", - color: "red", - title: "Timeout Error", - message: "The nextcloud server took too long to respond", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } else { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.updateNotification)({ - id: "update-password", - color: "red", - title: "Generic Error", - message: "Something went wrong", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_8__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - }); - } - (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { - if (exists && localStorage.getItem("otpmanager_cached_password")) { - updatePassword({ - password: localStorage.getItem("otpmanager_cached_password") - }); - } - }, [exists]); - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.AppShell, { - padding: "0", - fixed: false, - layout: "alt" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.Flex, { - justify: "center", - align: "center", - sx: theme => ({ - background: theme.colorScheme === "dark" ? "rgba(0, 0, 0, .8)" : "rgba(255, 255, 255, .8)", - padding: "16px", - paddingBottom: "calc(var(--body-container-margin)*2 + 16px)", - paddingRight: "calc(var(--body-container-margin)*2 + 16px)", - height: "calc(100vh - 44px - 50px)" - }) - }, exists == null ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.Loader, null) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_12__.Card, { - w: 500, - h: 500, - shadow: "xl", - padding: "lg", - radius: "lg", - withBorder: true - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_13__.Stack, { - justify: "space-between", - h: "100%" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_14__.Box, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_15__.Text, { - size: "lg", - fw: 700, - ta: "center" - }, "Authentication"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_16__.Divider, { - my: "sm" - })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_PasswordForm__WEBPACK_IMPORTED_MODULE_3__["default"], { - exists: exists, - onSubmit: updatePassword - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_14__.Box, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_16__.Divider, { - my: "md" - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.Flex, { - justify: "flex-end" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_17__.Button, { - type: "submit", - form: "form" - }, "Submit"))))))); -}; - -/***/ }), - -/***/ "./src/js/utils/PasswordForm.js": -/*!**************************************!*\ - !*** ./src/js/utils/PasswordForm.js ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ PasswordForm) -/* harmony export */ }); -/* harmony import */ var _mantine_hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/hooks */ "./node_modules/@mantine/hooks/esm/use-disclosure/use-disclosure.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Text/Text.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Box/Box.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Flex/Flex.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Popover/Popover.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/PasswordInput/PasswordInput.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Progress/Progress.js"); -/* harmony import */ var _mantine_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @mantine/core */ "./node_modules/@mantine/core/esm/Checkbox/Checkbox.js"); -/* harmony import */ var _mantine_form__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @mantine/form */ "./node_modules/@mantine/form/esm/use-form.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } - - - - - -function PasswordRequirement(_ref) { - let { - meets, - label - } = _ref; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_1__.Text, { - c: meets ? "teal" : "red", - style: { - display: "flex", - alignItems: "center" - }, - mt: 7, - size: "sm" - }, meets ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_2__["default"], { - style: { - width: 14, - height: 14 - } - }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_3__["default"], { - style: { - width: 14, - height: 14 - } - }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Box, { - ml: 10 - }, label)); -} -const requirements = [{ - re: /^.{6,}$/, - label: "Length greater than 5 character" -}, { - re: /[0-9]/, - label: "Includes number" -}, { - re: /[a-z]/, - label: "Includes lowercase letter" -}, { - re: /[A-Z]/, - label: "Includes uppercase letter" -}, { - re: /[$&+,:;=?@#|'<>.^*()%!-]/, - label: "Includes special symbol" -}]; -function getStrength(password) { - let multiplier = password.length > 5 ? 0 : 1; - requirements.forEach(requirement => { - if (!requirement.re.test(password)) { - multiplier += 1; - } - }); - return Math.max(100 - 100 / (requirements.length + 1) * multiplier, 10); -} -function PasswordForm(_ref2) { - let { - exists, - onSubmit, - isChanging - } = _ref2; - const [popoverOpened, setPopoverOpened] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); - const [visible, { - toggle - }] = (0,_mantine_hooks__WEBPACK_IMPORTED_MODULE_5__.useDisclosure)(false); - const autoFocus = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(inputElement => inputElement && inputElement.focus(), []); - const form = (0,_mantine_form__WEBPACK_IMPORTED_MODULE_6__.useForm)({ - initialValues: { - oldPassword: "", - password: "", - confirmPassword: "", - savePassword: false - }, - validate: { - oldPassword: value => !isChanging || value.length !== 0 ? null : "Old password cannot be empty", - password: value => strength == 100 ? null : "Not all requirements are satisfied", - confirmPassword: (value, values) => exists || value === values.password ? null : "Passwords did not match" - } - }); - const checks = requirements.map((requirement, index) => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PasswordRequirement, { - key: index, - label: requirement.label, - meets: requirement.re.test(form.values.password) - })); - const strength = getStrength(form.values.password); - const color = strength === 100 ? "teal" : strength > 50 ? "yellow" : "red"; - return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Box, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("form", { - id: "form", - onSubmit: form.onSubmit(values => onSubmit(values)) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_7__.Flex, { - justify: "center", - direction: "column" - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Popover, { - opened: popoverOpened, - disabled: exists, - position: "bottom", - width: "calc(100% - 68px)", - shadow: "md" - }, isChanging && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.PasswordInput, _extends({ - required: true, - label: "Current Password", - mb: "md", - placeholder: "Insert your current password" - }, form.getInputProps("oldPassword"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Popover.Target, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_4__.Box, { - w: "100%", - onFocusCapture: () => setPopoverOpened(true), - onBlurCapture: () => setPopoverOpened(false) - }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.PasswordInput, _extends({ - required: true, - label: "Password", - placeholder: "Insert your" + (isChanging ? " new " : " ") + "password", - visible: visible, - onVisibilityChange: toggle, - ref: autoFocus - }, form.getInputProps("password"))))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_8__.Popover.Dropdown, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_10__.Progress, { - color: color, - value: strength, - size: 5, - mb: "xs" - }), checks)), !exists && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_9__.PasswordInput, _extends({ - required: true, - label: "Confirm Password", - placeholder: "Confirm your" + (isChanging ? " new " : " ") + "password", - mt: "md", - visible: visible, - onVisibilityChange: toggle - }, form.getInputProps("confirmPassword"))), !isChanging && exists && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_mantine_core__WEBPACK_IMPORTED_MODULE_11__.Checkbox, _extends({ - label: "Remember password", - mt: "md" - }, form.getInputProps("savePassword")))))); -} - -/***/ }), - -/***/ "./src/js/utils/copy.js": -/*!******************************!*\ - !*** ./src/js/utils/copy.js ***! - \******************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ copy: () => (/* binding */ copy) -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.js"); - - - -const unsecuredCopyToClipboard = text => { - const textArea = document.createElement("textarea"); - textArea.value = text; - document.body.appendChild(textArea); - textArea.focus(); - textArea.select(); - try { - document.execCommand("copy"); - } catch (err) { - console.error("Unable to copy to clipboard", err); - } - document.body.removeChild(textArea); -}; - -/** - * Copies the text passed as param to the system clipboard - * Check if using HTTPS and navigator.clipboard is available - * Then uses standard clipboard API, otherwise uses fallback - */ -const copy = content => { - if (window.isSecureContext && navigator.clipboard) { - navigator.clipboard.writeText(content); - } else { - unsecuredCopyToClipboard(content); - } - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_1__.showNotification)({ - id: "copy", - color: "teal", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_2__["default"], { - size: 16 - }), - message: "Copied to Clipboard", - autoClose: 2000, - disallowClose: false - }); -}; - - -/***/ }), - -/***/ "./src/js/utils/generateCodes.js": -/*!***************************************!*\ - !*** ./src/js/utils/generateCodes.js ***! - \***************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ generateCodes: () => (/* binding */ generateCodes) -/* harmony export */ }); -/* harmony import */ var otpauth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! otpauth */ "./node_modules/otpauth/dist/otpauth.esm.js"); -/* harmony import */ var _getAlgorithm__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getAlgorithm */ "./src/js/utils/getAlgorithm.js"); -/* harmony import */ var crypto_es__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! crypto-es */ "./node_modules/crypto-es/lib/index.js"); - - - -function generateCodes(newAccounts, setTimer, setAccounts, passwordHash, iv) { - for (let i = 0; i < newAccounts.length; i++) { - const account = newAccounts[i]; - if (account.unlocked === undefined || account.unlocked === 1) { - if (account.decryptedSecret === undefined) { - const key = crypto_es__WEBPACK_IMPORTED_MODULE_2__["default"].enc.Hex.parse(passwordHash); - const parsedIv = crypto_es__WEBPACK_IMPORTED_MODULE_2__["default"].enc.Hex.parse(iv); - const dec = crypto_es__WEBPACK_IMPORTED_MODULE_2__["default"].AES.decrypt(account.secret, key, { - iv: parsedIv - }); - account.decryptedSecret = dec.toString(crypto_es__WEBPACK_IMPORTED_MODULE_2__["default"].enc.Utf8); - } - if (account.type == "totp") { - let totp = new otpauth__WEBPACK_IMPORTED_MODULE_0__.TOTP({ - issuer: account.issuer, - label: account.name, - algorithm: (0,_getAlgorithm__WEBPACK_IMPORTED_MODULE_1__.getAlgorithm)(account.algorithm), - digits: account.digits, - period: account.period, - secret: account.decryptedSecret - }); - account.code = totp.generate(); - } else { - if (account.counter < 0) { - account.code = "Click here to generate HOTP code"; - } else { - let hotp = new otpauth__WEBPACK_IMPORTED_MODULE_0__.HOTP({ - issuer: account.issuer, - label: account.name, - algorithm: (0,_getAlgorithm__WEBPACK_IMPORTED_MODULE_1__.getAlgorithm)(account.algorithm), - digits: account.digits, - counter: account.counter, - secret: account.decryptedSecret - }); - account.code = hotp.generate(); - } - } - } else { - account.code = "Click here to unlock your shared account"; - } - } - setAccounts(newAccounts); - let timeLeft = Math.round((30 - Date.now() / 1000 % 30) * 1000); - setTimer(setTimeout(() => generateCodes(newAccounts, setTimer, setAccounts, passwordHash, iv), timeLeft)); -} - -/***/ }), - -/***/ "./src/js/utils/getAlgorithm.js": -/*!**************************************!*\ - !*** ./src/js/utils/getAlgorithm.js ***! - \**************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ getAlgorithm: () => (/* binding */ getAlgorithm) -/* harmony export */ }); -const ALGORITHMS = ["SHA1", "SHA256", "SHA512"]; -const getAlgorithm = n => ALGORITHMS[n]; - -/***/ }), - -/***/ "./src/js/utils/updateCounter.js": -/*!***************************************!*\ - !*** ./src/js/utils/updateCounter.js ***! - \***************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ updateCounter: () => (/* binding */ updateCounter) -/* harmony export */ }); -/* harmony import */ var _mantine_notifications__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @mantine/notifications */ "./node_modules/@mantine/notifications/esm/events.js"); -/* harmony import */ var _nextcloud_axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @nextcloud/axios */ "./node_modules/@nextcloud/axios/dist/index.js"); -/* harmony import */ var _nextcloud_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/router */ "./node_modules/@nextcloud/router/dist/index.js"); -/* harmony import */ var otpauth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! otpauth */ "./node_modules/otpauth/dist/otpauth.esm.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tabler/icons-react */ "./node_modules/@tabler/icons-react/dist/esm/icons/IconX.js"); -/* harmony import */ var _getAlgorithm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./getAlgorithm */ "./src/js/utils/getAlgorithm.js"); - - - - - - - -async function updateCounter(account, userId, setUpdateCounterState) { - setUpdateCounterState(true); - const url = account.unlocked === undefined ? "/apps/otpmanager/accounts/update-counter" : "/apps/otpmanager/share/update-counter"; - await _nextcloud_axios__WEBPACK_IMPORTED_MODULE_0__["default"].post((0,_nextcloud_router__WEBPACK_IMPORTED_MODULE_1__.generateOcsUrl)(url), { - secret: account.secret - }).then(response => { - if (response.status === 200) { - account.counter = response.data; - let hotp = new otpauth__WEBPACK_IMPORTED_MODULE_2__.HOTP({ - issuer: account.issuer, - label: account.name, - algorithm: (0,_getAlgorithm__WEBPACK_IMPORTED_MODULE_4__.getAlgorithm)(account.algorithm), - digits: account.digits, - counter: account.counter, - secret: account.decryptedSecret - }); - account.code = hotp.generate(); - } else { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.showNotification)({ - color: "red", - title: "Error", - message: response.data.error ?? "There was an error while incrementing counter", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__["default"], { - size: 16 - }), - autoClose: 2000 - }); - } - }).catch(e => { - (0,_mantine_notifications__WEBPACK_IMPORTED_MODULE_5__.showNotification)({ - color: "red", - title: "Error", - message: e.response.data.error ?? "There was an error while incrementing counter", - icon: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_tabler_icons_react__WEBPACK_IMPORTED_MODULE_6__["default"], { - size: 16 - }), - autoClose: 2000 - }); - }); - setUpdateCounterState(false); -} - -/***/ }), - -/***/ "./node_modules/base64-js/index.js": -/*!*****************************************!*\ - !*** ./node_modules/base64-js/index.js ***! - \*****************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - - -exports.byteLength = byteLength -exports.toByteArray = toByteArray -exports.fromByteArray = fromByteArray - -var lookup = [] -var revLookup = [] -var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array - -var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' -for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i] - revLookup[code.charCodeAt(i)] = i -} - -// Support decoding URL-safe base64 strings, as Node.js does. -// See: https://en.wikipedia.org/wiki/Base64#URL_applications -revLookup['-'.charCodeAt(0)] = 62 -revLookup['_'.charCodeAt(0)] = 63 - -function getLens (b64) { - var len = b64.length - - if (len % 4 > 0) { - throw new Error('Invalid string. Length must be a multiple of 4') - } - - // Trim off extra bytes after placeholder bytes are found - // See: https://github.com/beatgammit/base64-js/issues/42 - var validLen = b64.indexOf('=') - if (validLen === -1) validLen = len - - var placeHoldersLen = validLen === len - ? 0 - : 4 - (validLen % 4) - - return [validLen, placeHoldersLen] -} - -// base64 is 4/3 + up to two characters of the original data -function byteLength (b64) { - var lens = getLens(b64) - var validLen = lens[0] - var placeHoldersLen = lens[1] - return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen -} - -function _byteLength (b64, validLen, placeHoldersLen) { - return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen -} - -function toByteArray (b64) { - var tmp - var lens = getLens(b64) - var validLen = lens[0] - var placeHoldersLen = lens[1] - - var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) - - var curByte = 0 - - // if there are placeholders, only get up to the last complete 4 chars - var len = placeHoldersLen > 0 - ? validLen - 4 - : validLen - - var i - for (i = 0; i < len; i += 4) { - tmp = - (revLookup[b64.charCodeAt(i)] << 18) | - (revLookup[b64.charCodeAt(i + 1)] << 12) | - (revLookup[b64.charCodeAt(i + 2)] << 6) | - revLookup[b64.charCodeAt(i + 3)] - arr[curByte++] = (tmp >> 16) & 0xFF - arr[curByte++] = (tmp >> 8) & 0xFF - arr[curByte++] = tmp & 0xFF - } - - if (placeHoldersLen === 2) { - tmp = - (revLookup[b64.charCodeAt(i)] << 2) | - (revLookup[b64.charCodeAt(i + 1)] >> 4) - arr[curByte++] = tmp & 0xFF - } - - if (placeHoldersLen === 1) { - tmp = - (revLookup[b64.charCodeAt(i)] << 10) | - (revLookup[b64.charCodeAt(i + 1)] << 4) | - (revLookup[b64.charCodeAt(i + 2)] >> 2) - arr[curByte++] = (tmp >> 8) & 0xFF - arr[curByte++] = tmp & 0xFF - } - - return arr -} - -function tripletToBase64 (num) { - return lookup[num >> 18 & 0x3F] + - lookup[num >> 12 & 0x3F] + - lookup[num >> 6 & 0x3F] + - lookup[num & 0x3F] -} - -function encodeChunk (uint8, start, end) { - var tmp - var output = [] - for (var i = start; i < end; i += 3) { - tmp = - ((uint8[i] << 16) & 0xFF0000) + - ((uint8[i + 1] << 8) & 0xFF00) + - (uint8[i + 2] & 0xFF) - output.push(tripletToBase64(tmp)) - } - return output.join('') -} - -function fromByteArray (uint8) { - var tmp - var len = uint8.length - var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes - var parts = [] - var maxChunkLength = 16383 // must be multiple of 3 - - // go through the array every three bytes, we'll deal with trailing stuff later - for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength))) - } - - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1] - parts.push( - lookup[tmp >> 2] + - lookup[(tmp << 4) & 0x3F] + - '==' - ) - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + uint8[len - 1] - parts.push( - lookup[tmp >> 10] + - lookup[(tmp >> 4) & 0x3F] + - lookup[(tmp << 2) & 0x3F] + - '=' - ) - } - - return parts.join('') -} - - -/***/ }), - -/***/ "./node_modules/buffer/index.js": -/*!**************************************!*\ - !*** ./node_modules/buffer/index.js ***! - \**************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -/* eslint-disable no-proto */ - - - -const base64 = __webpack_require__(/*! base64-js */ "./node_modules/base64-js/index.js") -const ieee754 = __webpack_require__(/*! ieee754 */ "./node_modules/ieee754/index.js") -const customInspectSymbol = - (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation - ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation - : null - -exports.Buffer = Buffer -exports.SlowBuffer = SlowBuffer -exports.INSPECT_MAX_BYTES = 50 - -const K_MAX_LENGTH = 0x7fffffff -exports.kMaxLength = K_MAX_LENGTH - -/** - * If `Buffer.TYPED_ARRAY_SUPPORT`: - * === true Use Uint8Array implementation (fastest) - * === false Print warning and recommend using `buffer` v4.x which has an Object - * implementation (most compatible, even IE6) - * - * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, - * Opera 11.6+, iOS 4.2+. - * - * We report that the browser does not support typed arrays if the are not subclassable - * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array` - * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support - * for __proto__ and has a buggy typed array implementation. - */ -Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport() - -if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' && - typeof console.error === 'function') { - console.error( - 'This browser lacks typed array (Uint8Array) support which is required by ' + - '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.' - ) -} - -function typedArraySupport () { - // Can typed array instances can be augmented? - try { - const arr = new Uint8Array(1) - const proto = { foo: function () { return 42 } } - Object.setPrototypeOf(proto, Uint8Array.prototype) - Object.setPrototypeOf(arr, proto) - return arr.foo() === 42 - } catch (e) { - return false - } -} - -Object.defineProperty(Buffer.prototype, 'parent', { - enumerable: true, - get: function () { - if (!Buffer.isBuffer(this)) return undefined - return this.buffer - } -}) - -Object.defineProperty(Buffer.prototype, 'offset', { - enumerable: true, - get: function () { - if (!Buffer.isBuffer(this)) return undefined - return this.byteOffset - } -}) - -function createBuffer (length) { - if (length > K_MAX_LENGTH) { - throw new RangeError('The value "' + length + '" is invalid for option "size"') - } - // Return an augmented `Uint8Array` instance - const buf = new Uint8Array(length) - Object.setPrototypeOf(buf, Buffer.prototype) - return buf -} - -/** - * The Buffer constructor returns instances of `Uint8Array` that have their - * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of - * `Uint8Array`, so the returned instances will have all the node `Buffer` methods - * and the `Uint8Array` methods. Square bracket notation works as expected -- it - * returns a single octet. - * - * The `Uint8Array` prototype remains unmodified. - */ - -function Buffer (arg, encodingOrOffset, length) { - // Common case. - if (typeof arg === 'number') { - if (typeof encodingOrOffset === 'string') { - throw new TypeError( - 'The "string" argument must be of type string. Received type number' - ) - } - return allocUnsafe(arg) - } - return from(arg, encodingOrOffset, length) -} - -Buffer.poolSize = 8192 // not used by this implementation - -function from (value, encodingOrOffset, length) { - if (typeof value === 'string') { - return fromString(value, encodingOrOffset) - } - - if (ArrayBuffer.isView(value)) { - return fromArrayView(value) - } - - if (value == null) { - throw new TypeError( - 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + - 'or Array-like Object. Received type ' + (typeof value) - ) - } - - if (isInstance(value, ArrayBuffer) || - (value && isInstance(value.buffer, ArrayBuffer))) { - return fromArrayBuffer(value, encodingOrOffset, length) - } - - if (typeof SharedArrayBuffer !== 'undefined' && - (isInstance(value, SharedArrayBuffer) || - (value && isInstance(value.buffer, SharedArrayBuffer)))) { - return fromArrayBuffer(value, encodingOrOffset, length) - } - - if (typeof value === 'number') { - throw new TypeError( - 'The "value" argument must not be of type number. Received type number' - ) - } - - const valueOf = value.valueOf && value.valueOf() - if (valueOf != null && valueOf !== value) { - return Buffer.from(valueOf, encodingOrOffset, length) - } - - const b = fromObject(value) - if (b) return b - - if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null && - typeof value[Symbol.toPrimitive] === 'function') { - return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length) - } - - throw new TypeError( - 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + - 'or Array-like Object. Received type ' + (typeof value) - ) -} - -/** - * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError - * if value is a number. - * Buffer.from(str[, encoding]) - * Buffer.from(array) - * Buffer.from(buffer) - * Buffer.from(arrayBuffer[, byteOffset[, length]]) - **/ -Buffer.from = function (value, encodingOrOffset, length) { - return from(value, encodingOrOffset, length) -} - -// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug: -// https://github.com/feross/buffer/pull/148 -Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype) -Object.setPrototypeOf(Buffer, Uint8Array) - -function assertSize (size) { - if (typeof size !== 'number') { - throw new TypeError('"size" argument must be of type number') - } else if (size < 0) { - throw new RangeError('The value "' + size + '" is invalid for option "size"') - } -} - -function alloc (size, fill, encoding) { - assertSize(size) - if (size <= 0) { - return createBuffer(size) - } - if (fill !== undefined) { - // Only pay attention to encoding if it's a string. This - // prevents accidentally sending in a number that would - // be interpreted as a start offset. - return typeof encoding === 'string' - ? createBuffer(size).fill(fill, encoding) - : createBuffer(size).fill(fill) - } - return createBuffer(size) -} - -/** - * Creates a new filled Buffer instance. - * alloc(size[, fill[, encoding]]) - **/ -Buffer.alloc = function (size, fill, encoding) { - return alloc(size, fill, encoding) -} - -function allocUnsafe (size) { - assertSize(size) - return createBuffer(size < 0 ? 0 : checked(size) | 0) -} - -/** - * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. - * */ -Buffer.allocUnsafe = function (size) { - return allocUnsafe(size) -} -/** - * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. - */ -Buffer.allocUnsafeSlow = function (size) { - return allocUnsafe(size) -} - -function fromString (string, encoding) { - if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8' - } - - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding) - } - - const length = byteLength(string, encoding) | 0 - let buf = createBuffer(length) - - const actual = buf.write(string, encoding) - - if (actual !== length) { - // Writing a hex string, for example, that contains invalid characters will - // cause everything after the first invalid character to be ignored. (e.g. - // 'abxxcd' will be treated as 'ab') - buf = buf.slice(0, actual) - } - - return buf -} - -function fromArrayLike (array) { - const length = array.length < 0 ? 0 : checked(array.length) | 0 - const buf = createBuffer(length) - for (let i = 0; i < length; i += 1) { - buf[i] = array[i] & 255 - } - return buf -} - -function fromArrayView (arrayView) { - if (isInstance(arrayView, Uint8Array)) { - const copy = new Uint8Array(arrayView) - return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength) - } - return fromArrayLike(arrayView) -} - -function fromArrayBuffer (array, byteOffset, length) { - if (byteOffset < 0 || array.byteLength < byteOffset) { - throw new RangeError('"offset" is outside of buffer bounds') - } - - if (array.byteLength < byteOffset + (length || 0)) { - throw new RangeError('"length" is outside of buffer bounds') - } - - let buf - if (byteOffset === undefined && length === undefined) { - buf = new Uint8Array(array) - } else if (length === undefined) { - buf = new Uint8Array(array, byteOffset) - } else { - buf = new Uint8Array(array, byteOffset, length) - } - - // Return an augmented `Uint8Array` instance - Object.setPrototypeOf(buf, Buffer.prototype) - - return buf -} - -function fromObject (obj) { - if (Buffer.isBuffer(obj)) { - const len = checked(obj.length) | 0 - const buf = createBuffer(len) - - if (buf.length === 0) { - return buf - } - - obj.copy(buf, 0, 0, len) - return buf - } - - if (obj.length !== undefined) { - if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) { - return createBuffer(0) - } - return fromArrayLike(obj) - } - - if (obj.type === 'Buffer' && Array.isArray(obj.data)) { - return fromArrayLike(obj.data) - } -} - -function checked (length) { - // Note: cannot use `length < K_MAX_LENGTH` here because that fails when - // length is NaN (which is otherwise coerced to zero.) - if (length >= K_MAX_LENGTH) { - throw new RangeError('Attempt to allocate Buffer larger than maximum ' + - 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes') - } - return length | 0 -} - -function SlowBuffer (length) { - if (+length != length) { // eslint-disable-line eqeqeq - length = 0 - } - return Buffer.alloc(+length) -} - -Buffer.isBuffer = function isBuffer (b) { - return b != null && b._isBuffer === true && - b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false -} - -Buffer.compare = function compare (a, b) { - if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength) - if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength) - if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - throw new TypeError( - 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' - ) - } - - if (a === b) return 0 - - let x = a.length - let y = b.length - - for (let i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i] - y = b[i] - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 -} - -Buffer.isEncoding = function isEncoding (encoding) { - switch (String(encoding).toLowerCase()) { - case 'hex': - case 'utf8': - case 'utf-8': - case 'ascii': - case 'latin1': - case 'binary': - case 'base64': - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return true - default: - return false - } -} - -Buffer.concat = function concat (list, length) { - if (!Array.isArray(list)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } - - if (list.length === 0) { - return Buffer.alloc(0) - } - - let i - if (length === undefined) { - length = 0 - for (i = 0; i < list.length; ++i) { - length += list[i].length - } - } - - const buffer = Buffer.allocUnsafe(length) - let pos = 0 - for (i = 0; i < list.length; ++i) { - let buf = list[i] - if (isInstance(buf, Uint8Array)) { - if (pos + buf.length > buffer.length) { - if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf) - buf.copy(buffer, pos) - } else { - Uint8Array.prototype.set.call( - buffer, - buf, - pos - ) - } - } else if (!Buffer.isBuffer(buf)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } else { - buf.copy(buffer, pos) - } - pos += buf.length - } - return buffer -} - -function byteLength (string, encoding) { - if (Buffer.isBuffer(string)) { - return string.length - } - if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) { - return string.byteLength - } - if (typeof string !== 'string') { - throw new TypeError( - 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + - 'Received type ' + typeof string - ) - } - - const len = string.length - const mustMatch = (arguments.length > 2 && arguments[2] === true) - if (!mustMatch && len === 0) return 0 - - // Use a for loop to avoid recursion - let loweredCase = false - for (;;) { - switch (encoding) { - case 'ascii': - case 'latin1': - case 'binary': - return len - case 'utf8': - case 'utf-8': - return utf8ToBytes(string).length - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return len * 2 - case 'hex': - return len >>> 1 - case 'base64': - return base64ToBytes(string).length - default: - if (loweredCase) { - return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8 - } - encoding = ('' + encoding).toLowerCase() - loweredCase = true - } - } -} -Buffer.byteLength = byteLength - -function slowToString (encoding, start, end) { - let loweredCase = false - - // No need to verify that "this.length <= MAX_UINT32" since it's a read-only - // property of a typed array. - - // This behaves neither like String nor Uint8Array in that we set start/end - // to their upper/lower bounds if the value passed is out of range. - // undefined is handled specially as per ECMA-262 6th Edition, - // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. - if (start === undefined || start < 0) { - start = 0 - } - // Return early if start > this.length. Done here to prevent potential uint32 - // coercion fail below. - if (start > this.length) { - return '' - } - - if (end === undefined || end > this.length) { - end = this.length - } - - if (end <= 0) { - return '' - } - - // Force coercion to uint32. This will also coerce falsey/NaN values to 0. - end >>>= 0 - start >>>= 0 - - if (end <= start) { - return '' - } - - if (!encoding) encoding = 'utf8' - - while (true) { - switch (encoding) { - case 'hex': - return hexSlice(this, start, end) - - case 'utf8': - case 'utf-8': - return utf8Slice(this, start, end) - - case 'ascii': - return asciiSlice(this, start, end) - - case 'latin1': - case 'binary': - return latin1Slice(this, start, end) - - case 'base64': - return base64Slice(this, start, end) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return utf16leSlice(this, start, end) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = (encoding + '').toLowerCase() - loweredCase = true - } - } -} - -// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package) -// to detect a Buffer instance. It's not possible to use `instanceof Buffer` -// reliably in a browserify context because there could be multiple different -// copies of the 'buffer' package in use. This method works even for Buffer -// instances that were created from another copy of the `buffer` package. -// See: https://github.com/feross/buffer/issues/154 -Buffer.prototype._isBuffer = true - -function swap (b, n, m) { - const i = b[n] - b[n] = b[m] - b[m] = i -} - -Buffer.prototype.swap16 = function swap16 () { - const len = this.length - if (len % 2 !== 0) { - throw new RangeError('Buffer size must be a multiple of 16-bits') - } - for (let i = 0; i < len; i += 2) { - swap(this, i, i + 1) - } - return this -} - -Buffer.prototype.swap32 = function swap32 () { - const len = this.length - if (len % 4 !== 0) { - throw new RangeError('Buffer size must be a multiple of 32-bits') - } - for (let i = 0; i < len; i += 4) { - swap(this, i, i + 3) - swap(this, i + 1, i + 2) - } - return this -} - -Buffer.prototype.swap64 = function swap64 () { - const len = this.length - if (len % 8 !== 0) { - throw new RangeError('Buffer size must be a multiple of 64-bits') - } - for (let i = 0; i < len; i += 8) { - swap(this, i, i + 7) - swap(this, i + 1, i + 6) - swap(this, i + 2, i + 5) - swap(this, i + 3, i + 4) - } - return this -} - -Buffer.prototype.toString = function toString () { - const length = this.length - if (length === 0) return '' - if (arguments.length === 0) return utf8Slice(this, 0, length) - return slowToString.apply(this, arguments) -} - -Buffer.prototype.toLocaleString = Buffer.prototype.toString - -Buffer.prototype.equals = function equals (b) { - if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer') - if (this === b) return true - return Buffer.compare(this, b) === 0 -} - -Buffer.prototype.inspect = function inspect () { - let str = '' - const max = exports.INSPECT_MAX_BYTES - str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim() - if (this.length > max) str += ' ... ' - return '' -} -if (customInspectSymbol) { - Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect -} - -Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { - if (isInstance(target, Uint8Array)) { - target = Buffer.from(target, target.offset, target.byteLength) - } - if (!Buffer.isBuffer(target)) { - throw new TypeError( - 'The "target" argument must be one of type Buffer or Uint8Array. ' + - 'Received type ' + (typeof target) - ) - } - - if (start === undefined) { - start = 0 - } - if (end === undefined) { - end = target ? target.length : 0 - } - if (thisStart === undefined) { - thisStart = 0 - } - if (thisEnd === undefined) { - thisEnd = this.length - } - - if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { - throw new RangeError('out of range index') - } - - if (thisStart >= thisEnd && start >= end) { - return 0 - } - if (thisStart >= thisEnd) { - return -1 - } - if (start >= end) { - return 1 - } - - start >>>= 0 - end >>>= 0 - thisStart >>>= 0 - thisEnd >>>= 0 - - if (this === target) return 0 - - let x = thisEnd - thisStart - let y = end - start - const len = Math.min(x, y) - - const thisCopy = this.slice(thisStart, thisEnd) - const targetCopy = target.slice(start, end) - - for (let i = 0; i < len; ++i) { - if (thisCopy[i] !== targetCopy[i]) { - x = thisCopy[i] - y = targetCopy[i] - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 -} - -// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, -// OR the last index of `val` in `buffer` at offset <= `byteOffset`. -// -// Arguments: -// - buffer - a Buffer to search -// - val - a string, Buffer, or number -// - byteOffset - an index into `buffer`; will be clamped to an int32 -// - encoding - an optional encoding, relevant is val is a string -// - dir - true for indexOf, false for lastIndexOf -function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { - // Empty buffer means no match - if (buffer.length === 0) return -1 - - // Normalize byteOffset - if (typeof byteOffset === 'string') { - encoding = byteOffset - byteOffset = 0 - } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff - } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000 - } - byteOffset = +byteOffset // Coerce to Number. - if (numberIsNaN(byteOffset)) { - // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer - byteOffset = dir ? 0 : (buffer.length - 1) - } - - // Normalize byteOffset: negative offsets start from the end of the buffer - if (byteOffset < 0) byteOffset = buffer.length + byteOffset - if (byteOffset >= buffer.length) { - if (dir) return -1 - else byteOffset = buffer.length - 1 - } else if (byteOffset < 0) { - if (dir) byteOffset = 0 - else return -1 - } - - // Normalize val - if (typeof val === 'string') { - val = Buffer.from(val, encoding) - } - - // Finally, search either indexOf (if dir is true) or lastIndexOf - if (Buffer.isBuffer(val)) { - // Special case: looking for empty string/buffer always fails - if (val.length === 0) { - return -1 - } - return arrayIndexOf(buffer, val, byteOffset, encoding, dir) - } else if (typeof val === 'number') { - val = val & 0xFF // Search for a byte value [0-255] - if (typeof Uint8Array.prototype.indexOf === 'function') { - if (dir) { - return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) - } else { - return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) - } - } - return arrayIndexOf(buffer, [val], byteOffset, encoding, dir) - } - - throw new TypeError('val must be string, number or Buffer') -} - -function arrayIndexOf (arr, val, byteOffset, encoding, dir) { - let indexSize = 1 - let arrLength = arr.length - let valLength = val.length - - if (encoding !== undefined) { - encoding = String(encoding).toLowerCase() - if (encoding === 'ucs2' || encoding === 'ucs-2' || - encoding === 'utf16le' || encoding === 'utf-16le') { - if (arr.length < 2 || val.length < 2) { - return -1 - } - indexSize = 2 - arrLength /= 2 - valLength /= 2 - byteOffset /= 2 - } - } - - function read (buf, i) { - if (indexSize === 1) { - return buf[i] - } else { - return buf.readUInt16BE(i * indexSize) - } - } - - let i - if (dir) { - let foundIndex = -1 - for (i = byteOffset; i < arrLength; i++) { - if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { - if (foundIndex === -1) foundIndex = i - if (i - foundIndex + 1 === valLength) return foundIndex * indexSize - } else { - if (foundIndex !== -1) i -= i - foundIndex - foundIndex = -1 - } - } - } else { - if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength - for (i = byteOffset; i >= 0; i--) { - let found = true - for (let j = 0; j < valLength; j++) { - if (read(arr, i + j) !== read(val, j)) { - found = false - break - } - } - if (found) return i - } - } - - return -1 -} - -Buffer.prototype.includes = function includes (val, byteOffset, encoding) { - return this.indexOf(val, byteOffset, encoding) !== -1 -} - -Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, true) -} - -Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, false) -} - -function hexWrite (buf, string, offset, length) { - offset = Number(offset) || 0 - const remaining = buf.length - offset - if (!length) { - length = remaining - } else { - length = Number(length) - if (length > remaining) { - length = remaining - } - } - - const strLen = string.length - - if (length > strLen / 2) { - length = strLen / 2 - } - let i - for (i = 0; i < length; ++i) { - const parsed = parseInt(string.substr(i * 2, 2), 16) - if (numberIsNaN(parsed)) return i - buf[offset + i] = parsed - } - return i -} - -function utf8Write (buf, string, offset, length) { - return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length) -} - -function asciiWrite (buf, string, offset, length) { - return blitBuffer(asciiToBytes(string), buf, offset, length) -} - -function base64Write (buf, string, offset, length) { - return blitBuffer(base64ToBytes(string), buf, offset, length) -} - -function ucs2Write (buf, string, offset, length) { - return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length) -} - -Buffer.prototype.write = function write (string, offset, length, encoding) { - // Buffer#write(string) - if (offset === undefined) { - encoding = 'utf8' - length = this.length - offset = 0 - // Buffer#write(string, encoding) - } else if (length === undefined && typeof offset === 'string') { - encoding = offset - length = this.length - offset = 0 - // Buffer#write(string, offset[, length][, encoding]) - } else if (isFinite(offset)) { - offset = offset >>> 0 - if (isFinite(length)) { - length = length >>> 0 - if (encoding === undefined) encoding = 'utf8' - } else { - encoding = length - length = undefined - } - } else { - throw new Error( - 'Buffer.write(string, encoding, offset[, length]) is no longer supported' - ) - } - - const remaining = this.length - offset - if (length === undefined || length > remaining) length = remaining - - if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { - throw new RangeError('Attempt to write outside buffer bounds') - } - - if (!encoding) encoding = 'utf8' - - let loweredCase = false - for (;;) { - switch (encoding) { - case 'hex': - return hexWrite(this, string, offset, length) - - case 'utf8': - case 'utf-8': - return utf8Write(this, string, offset, length) - - case 'ascii': - case 'latin1': - case 'binary': - return asciiWrite(this, string, offset, length) - - case 'base64': - // Warning: maxLength not taken into account in base64Write - return base64Write(this, string, offset, length) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return ucs2Write(this, string, offset, length) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = ('' + encoding).toLowerCase() - loweredCase = true - } - } -} - -Buffer.prototype.toJSON = function toJSON () { - return { - type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) - } -} - -function base64Slice (buf, start, end) { - if (start === 0 && end === buf.length) { - return base64.fromByteArray(buf) - } else { - return base64.fromByteArray(buf.slice(start, end)) - } -} - -function utf8Slice (buf, start, end) { - end = Math.min(buf.length, end) - const res = [] - - let i = start - while (i < end) { - const firstByte = buf[i] - let codePoint = null - let bytesPerSequence = (firstByte > 0xEF) - ? 4 - : (firstByte > 0xDF) - ? 3 - : (firstByte > 0xBF) - ? 2 - : 1 - - if (i + bytesPerSequence <= end) { - let secondByte, thirdByte, fourthByte, tempCodePoint - - switch (bytesPerSequence) { - case 1: - if (firstByte < 0x80) { - codePoint = firstByte - } - break - case 2: - secondByte = buf[i + 1] - if ((secondByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F) - if (tempCodePoint > 0x7F) { - codePoint = tempCodePoint - } - } - break - case 3: - secondByte = buf[i + 1] - thirdByte = buf[i + 2] - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F) - if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { - codePoint = tempCodePoint - } - } - break - case 4: - secondByte = buf[i + 1] - thirdByte = buf[i + 2] - fourthByte = buf[i + 3] - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F) - if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { - codePoint = tempCodePoint - } - } - } - } - - if (codePoint === null) { - // we did not generate a valid codePoint so insert a - // replacement char (U+FFFD) and advance only 1 byte - codePoint = 0xFFFD - bytesPerSequence = 1 - } else if (codePoint > 0xFFFF) { - // encode to utf16 (surrogate pair dance) - codePoint -= 0x10000 - res.push(codePoint >>> 10 & 0x3FF | 0xD800) - codePoint = 0xDC00 | codePoint & 0x3FF - } - - res.push(codePoint) - i += bytesPerSequence - } - - return decodeCodePointsArray(res) -} - -// Based on http://stackoverflow.com/a/22747272/680742, the browser with -// the lowest limit is Chrome, with 0x10000 args. -// We go 1 magnitude less, for safety -const MAX_ARGUMENTS_LENGTH = 0x1000 - -function decodeCodePointsArray (codePoints) { - const len = codePoints.length - if (len <= MAX_ARGUMENTS_LENGTH) { - return String.fromCharCode.apply(String, codePoints) // avoid extra slice() - } - - // Decode in chunks to avoid "call stack size exceeded". - let res = '' - let i = 0 - while (i < len) { - res += String.fromCharCode.apply( - String, - codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) - ) - } - return res -} - -function asciiSlice (buf, start, end) { - let ret = '' - end = Math.min(buf.length, end) - - for (let i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i] & 0x7F) - } - return ret -} - -function latin1Slice (buf, start, end) { - let ret = '' - end = Math.min(buf.length, end) - - for (let i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i]) - } - return ret -} - -function hexSlice (buf, start, end) { - const len = buf.length - - if (!start || start < 0) start = 0 - if (!end || end < 0 || end > len) end = len - - let out = '' - for (let i = start; i < end; ++i) { - out += hexSliceLookupTable[buf[i]] - } - return out -} - -function utf16leSlice (buf, start, end) { - const bytes = buf.slice(start, end) - let res = '' - // If bytes.length is odd, the last 8 bits must be ignored (same as node.js) - for (let i = 0; i < bytes.length - 1; i += 2) { - res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256)) - } - return res -} - -Buffer.prototype.slice = function slice (start, end) { - const len = this.length - start = ~~start - end = end === undefined ? len : ~~end - - if (start < 0) { - start += len - if (start < 0) start = 0 - } else if (start > len) { - start = len - } - - if (end < 0) { - end += len - if (end < 0) end = 0 - } else if (end > len) { - end = len - } - - if (end < start) end = start - - const newBuf = this.subarray(start, end) - // Return an augmented `Uint8Array` instance - Object.setPrototypeOf(newBuf, Buffer.prototype) - - return newBuf -} - -/* - * Need to make sure that buffer isn't trying to write out of bounds. - */ -function checkOffset (offset, ext, length) { - if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') - if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') -} - -Buffer.prototype.readUintLE = -Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) - - let val = this[offset] - let mul = 1 - let i = 0 - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul - } - - return val -} - -Buffer.prototype.readUintBE = -Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) { - checkOffset(offset, byteLength, this.length) - } - - let val = this[offset + --byteLength] - let mul = 1 - while (byteLength > 0 && (mul *= 0x100)) { - val += this[offset + --byteLength] * mul - } - - return val -} - -Buffer.prototype.readUint8 = -Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 1, this.length) - return this[offset] -} - -Buffer.prototype.readUint16LE = -Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 2, this.length) - return this[offset] | (this[offset + 1] << 8) -} - -Buffer.prototype.readUint16BE = -Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 2, this.length) - return (this[offset] << 8) | this[offset + 1] -} - -Buffer.prototype.readUint32LE = -Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - - return ((this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16)) + - (this[offset + 3] * 0x1000000) -} - -Buffer.prototype.readUint32BE = -Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - - return (this[offset] * 0x1000000) + - ((this[offset + 1] << 16) | - (this[offset + 2] << 8) | - this[offset + 3]) -} - -Buffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) { - offset = offset >>> 0 - validateNumber(offset, 'offset') - const first = this[offset] - const last = this[offset + 7] - if (first === undefined || last === undefined) { - boundsError(offset, this.length - 8) - } - - const lo = first + - this[++offset] * 2 ** 8 + - this[++offset] * 2 ** 16 + - this[++offset] * 2 ** 24 - - const hi = this[++offset] + - this[++offset] * 2 ** 8 + - this[++offset] * 2 ** 16 + - last * 2 ** 24 - - return BigInt(lo) + (BigInt(hi) << BigInt(32)) -}) - -Buffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) { - offset = offset >>> 0 - validateNumber(offset, 'offset') - const first = this[offset] - const last = this[offset + 7] - if (first === undefined || last === undefined) { - boundsError(offset, this.length - 8) - } - - const hi = first * 2 ** 24 + - this[++offset] * 2 ** 16 + - this[++offset] * 2 ** 8 + - this[++offset] - - const lo = this[++offset] * 2 ** 24 + - this[++offset] * 2 ** 16 + - this[++offset] * 2 ** 8 + - last - - return (BigInt(hi) << BigInt(32)) + BigInt(lo) -}) - -Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) { - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) - - let val = this[offset] - let mul = 1 - let i = 0 - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul - } - mul *= 0x80 - - if (val >= mul) val -= Math.pow(2, 8 * byteLength) - - return val -} - -Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) { - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) - - let i = byteLength - let mul = 1 - let val = this[offset + --i] - while (i > 0 && (mul *= 0x100)) { - val += this[offset + --i] * mul - } - mul *= 0x80 - - if (val >= mul) val -= Math.pow(2, 8 * byteLength) - - return val -} - -Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 1, this.length) - if (!(this[offset] & 0x80)) return (this[offset]) - return ((0xff - this[offset] + 1) * -1) -} - -Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 2, this.length) - const val = this[offset] | (this[offset + 1] << 8) - return (val & 0x8000) ? val | 0xFFFF0000 : val -} - -Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 2, this.length) - const val = this[offset + 1] | (this[offset] << 8) - return (val & 0x8000) ? val | 0xFFFF0000 : val -} - -Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - - return (this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16) | - (this[offset + 3] << 24) -} - -Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - - return (this[offset] << 24) | - (this[offset + 1] << 16) | - (this[offset + 2] << 8) | - (this[offset + 3]) -} - -Buffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) { - offset = offset >>> 0 - validateNumber(offset, 'offset') - const first = this[offset] - const last = this[offset + 7] - if (first === undefined || last === undefined) { - boundsError(offset, this.length - 8) - } - - const val = this[offset + 4] + - this[offset + 5] * 2 ** 8 + - this[offset + 6] * 2 ** 16 + - (last << 24) // Overflow - - return (BigInt(val) << BigInt(32)) + - BigInt(first + - this[++offset] * 2 ** 8 + - this[++offset] * 2 ** 16 + - this[++offset] * 2 ** 24) -}) - -Buffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) { - offset = offset >>> 0 - validateNumber(offset, 'offset') - const first = this[offset] - const last = this[offset + 7] - if (first === undefined || last === undefined) { - boundsError(offset, this.length - 8) - } - - const val = (first << 24) + // Overflow - this[++offset] * 2 ** 16 + - this[++offset] * 2 ** 8 + - this[++offset] - - return (BigInt(val) << BigInt(32)) + - BigInt(this[++offset] * 2 ** 24 + - this[++offset] * 2 ** 16 + - this[++offset] * 2 ** 8 + - last) -}) - -Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - return ieee754.read(this, offset, true, 23, 4) -} - -Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - return ieee754.read(this, offset, false, 23, 4) -} - -Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 8, this.length) - return ieee754.read(this, offset, true, 52, 8) -} - -Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 8, this.length) - return ieee754.read(this, offset, false, 52, 8) -} - -function checkInt (buf, value, offset, ext, max, min) { - if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance') - if (value > max || value < min) throw new RangeError('"value" argument is out of bounds') - if (offset + ext > buf.length) throw new RangeError('Index out of range') -} - -Buffer.prototype.writeUintLE = -Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) { - value = +value - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) { - const maxBytes = Math.pow(2, 8 * byteLength) - 1 - checkInt(this, value, offset, byteLength, maxBytes, 0) - } - - let mul = 1 - let i = 0 - this[offset] = value & 0xFF - while (++i < byteLength && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF - } - - return offset + byteLength -} - -Buffer.prototype.writeUintBE = -Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) { - value = +value - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) { - const maxBytes = Math.pow(2, 8 * byteLength) - 1 - checkInt(this, value, offset, byteLength, maxBytes, 0) - } - - let i = byteLength - 1 - let mul = 1 - this[offset + i] = value & 0xFF - while (--i >= 0 && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF - } - - return offset + byteLength -} - -Buffer.prototype.writeUint8 = -Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0) - this[offset] = (value & 0xff) - return offset + 1 -} - -Buffer.prototype.writeUint16LE = -Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - return offset + 2 -} - -Buffer.prototype.writeUint16BE = -Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) - this[offset] = (value >>> 8) - this[offset + 1] = (value & 0xff) - return offset + 2 -} - -Buffer.prototype.writeUint32LE = -Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) - this[offset + 3] = (value >>> 24) - this[offset + 2] = (value >>> 16) - this[offset + 1] = (value >>> 8) - this[offset] = (value & 0xff) - return offset + 4 -} - -Buffer.prototype.writeUint32BE = -Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) - this[offset] = (value >>> 24) - this[offset + 1] = (value >>> 16) - this[offset + 2] = (value >>> 8) - this[offset + 3] = (value & 0xff) - return offset + 4 -} - -function wrtBigUInt64LE (buf, value, offset, min, max) { - checkIntBI(value, min, max, buf, offset, 7) - - let lo = Number(value & BigInt(0xffffffff)) - buf[offset++] = lo - lo = lo >> 8 - buf[offset++] = lo - lo = lo >> 8 - buf[offset++] = lo - lo = lo >> 8 - buf[offset++] = lo - let hi = Number(value >> BigInt(32) & BigInt(0xffffffff)) - buf[offset++] = hi - hi = hi >> 8 - buf[offset++] = hi - hi = hi >> 8 - buf[offset++] = hi - hi = hi >> 8 - buf[offset++] = hi - return offset -} - -function wrtBigUInt64BE (buf, value, offset, min, max) { - checkIntBI(value, min, max, buf, offset, 7) - - let lo = Number(value & BigInt(0xffffffff)) - buf[offset + 7] = lo - lo = lo >> 8 - buf[offset + 6] = lo - lo = lo >> 8 - buf[offset + 5] = lo - lo = lo >> 8 - buf[offset + 4] = lo - let hi = Number(value >> BigInt(32) & BigInt(0xffffffff)) - buf[offset + 3] = hi - hi = hi >> 8 - buf[offset + 2] = hi - hi = hi >> 8 - buf[offset + 1] = hi - hi = hi >> 8 - buf[offset] = hi - return offset + 8 -} - -Buffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) { - return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff')) -}) - -Buffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) { - return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff')) -}) - -Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) { - const limit = Math.pow(2, (8 * byteLength) - 1) - - checkInt(this, value, offset, byteLength, limit - 1, -limit) - } - - let i = 0 - let mul = 1 - let sub = 0 - this[offset] = value & 0xFF - while (++i < byteLength && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) { - sub = 1 - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF - } - - return offset + byteLength -} - -Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) { - const limit = Math.pow(2, (8 * byteLength) - 1) - - checkInt(this, value, offset, byteLength, limit - 1, -limit) - } - - let i = byteLength - 1 - let mul = 1 - let sub = 0 - this[offset + i] = value & 0xFF - while (--i >= 0 && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) { - sub = 1 - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF - } - - return offset + byteLength -} - -Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80) - if (value < 0) value = 0xff + value + 1 - this[offset] = (value & 0xff) - return offset + 1 -} - -Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - return offset + 2 -} - -Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) - this[offset] = (value >>> 8) - this[offset + 1] = (value & 0xff) - return offset + 2 -} - -Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - this[offset + 2] = (value >>> 16) - this[offset + 3] = (value >>> 24) - return offset + 4 -} - -Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) - if (value < 0) value = 0xffffffff + value + 1 - this[offset] = (value >>> 24) - this[offset + 1] = (value >>> 16) - this[offset + 2] = (value >>> 8) - this[offset + 3] = (value & 0xff) - return offset + 4 -} - -Buffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) { - return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff')) -}) - -Buffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) { - return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff')) -}) - -function checkIEEE754 (buf, value, offset, ext, max, min) { - if (offset + ext > buf.length) throw new RangeError('Index out of range') - if (offset < 0) throw new RangeError('Index out of range') -} - -function writeFloat (buf, value, offset, littleEndian, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) { - checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38) - } - ieee754.write(buf, value, offset, littleEndian, 23, 4) - return offset + 4 -} - -Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) { - return writeFloat(this, value, offset, true, noAssert) -} - -Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) { - return writeFloat(this, value, offset, false, noAssert) -} - -function writeDouble (buf, value, offset, littleEndian, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) { - checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308) - } - ieee754.write(buf, value, offset, littleEndian, 52, 8) - return offset + 8 -} - -Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) { - return writeDouble(this, value, offset, true, noAssert) -} - -Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) { - return writeDouble(this, value, offset, false, noAssert) -} - -// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) -Buffer.prototype.copy = function copy (target, targetStart, start, end) { - if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer') - if (!start) start = 0 - if (!end && end !== 0) end = this.length - if (targetStart >= target.length) targetStart = target.length - if (!targetStart) targetStart = 0 - if (end > 0 && end < start) end = start - - // Copy 0 bytes; we're done - if (end === start) return 0 - if (target.length === 0 || this.length === 0) return 0 - - // Fatal error conditions - if (targetStart < 0) { - throw new RangeError('targetStart out of bounds') - } - if (start < 0 || start >= this.length) throw new RangeError('Index out of range') - if (end < 0) throw new RangeError('sourceEnd out of bounds') - - // Are we oob? - if (end > this.length) end = this.length - if (target.length - targetStart < end - start) { - end = target.length - targetStart + start - } - - const len = end - start - - if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') { - // Use built-in when available, missing from IE11 - this.copyWithin(targetStart, start, end) - } else { - Uint8Array.prototype.set.call( - target, - this.subarray(start, end), - targetStart - ) - } - - return len -} - -// Usage: -// buffer.fill(number[, offset[, end]]) -// buffer.fill(buffer[, offset[, end]]) -// buffer.fill(string[, offset[, end]][, encoding]) -Buffer.prototype.fill = function fill (val, start, end, encoding) { - // Handle string cases: - if (typeof val === 'string') { - if (typeof start === 'string') { - encoding = start - start = 0 - end = this.length - } else if (typeof end === 'string') { - encoding = end - end = this.length - } - if (encoding !== undefined && typeof encoding !== 'string') { - throw new TypeError('encoding must be a string') - } - if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding) - } - if (val.length === 1) { - const code = val.charCodeAt(0) - if ((encoding === 'utf8' && code < 128) || - encoding === 'latin1') { - // Fast path: If `val` fits into a single byte, use that numeric value. - val = code - } - } - } else if (typeof val === 'number') { - val = val & 255 - } else if (typeof val === 'boolean') { - val = Number(val) - } - - // Invalid ranges are not set to a default, so can range check early. - if (start < 0 || this.length < start || this.length < end) { - throw new RangeError('Out of range index') - } - - if (end <= start) { - return this - } - - start = start >>> 0 - end = end === undefined ? this.length : end >>> 0 - - if (!val) val = 0 - - let i - if (typeof val === 'number') { - for (i = start; i < end; ++i) { - this[i] = val - } - } else { - const bytes = Buffer.isBuffer(val) - ? val - : Buffer.from(val, encoding) - const len = bytes.length - if (len === 0) { - throw new TypeError('The value "' + val + - '" is invalid for argument "value"') - } - for (i = 0; i < end - start; ++i) { - this[i + start] = bytes[i % len] - } - } - - return this -} - -// CUSTOM ERRORS -// ============= - -// Simplified versions from Node, changed for Buffer-only usage -const errors = {} -function E (sym, getMessage, Base) { - errors[sym] = class NodeError extends Base { - constructor () { - super() - - Object.defineProperty(this, 'message', { - value: getMessage.apply(this, arguments), - writable: true, - configurable: true - }) - - // Add the error code to the name to include it in the stack trace. - this.name = `${this.name} [${sym}]` - // Access the stack to generate the error message including the error code - // from the name. - this.stack // eslint-disable-line no-unused-expressions - // Reset the name to the actual name. - delete this.name - } - - get code () { - return sym - } - - set code (value) { - Object.defineProperty(this, 'code', { - configurable: true, - enumerable: true, - value, - writable: true - }) - } - - toString () { - return `${this.name} [${sym}]: ${this.message}` - } - } -} - -E('ERR_BUFFER_OUT_OF_BOUNDS', - function (name) { - if (name) { - return `${name} is outside of buffer bounds` - } - - return 'Attempt to access memory outside buffer bounds' - }, RangeError) -E('ERR_INVALID_ARG_TYPE', - function (name, actual) { - return `The "${name}" argument must be of type number. Received type ${typeof actual}` - }, TypeError) -E('ERR_OUT_OF_RANGE', - function (str, range, input) { - let msg = `The value of "${str}" is out of range.` - let received = input - if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) { - received = addNumericalSeparator(String(input)) - } else if (typeof input === 'bigint') { - received = String(input) - if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) { - received = addNumericalSeparator(received) - } - received += 'n' - } - msg += ` It must be ${range}. Received ${received}` - return msg - }, RangeError) - -function addNumericalSeparator (val) { - let res = '' - let i = val.length - const start = val[0] === '-' ? 1 : 0 - for (; i >= start + 4; i -= 3) { - res = `_${val.slice(i - 3, i)}${res}` - } - return `${val.slice(0, i)}${res}` -} - -// CHECK FUNCTIONS -// =============== - -function checkBounds (buf, offset, byteLength) { - validateNumber(offset, 'offset') - if (buf[offset] === undefined || buf[offset + byteLength] === undefined) { - boundsError(offset, buf.length - (byteLength + 1)) - } -} - -function checkIntBI (value, min, max, buf, offset, byteLength) { - if (value > max || value < min) { - const n = typeof min === 'bigint' ? 'n' : '' - let range - if (byteLength > 3) { - if (min === 0 || min === BigInt(0)) { - range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}` - } else { - range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` + - `${(byteLength + 1) * 8 - 1}${n}` - } - } else { - range = `>= ${min}${n} and <= ${max}${n}` - } - throw new errors.ERR_OUT_OF_RANGE('value', range, value) - } - checkBounds(buf, offset, byteLength) -} - -function validateNumber (value, name) { - if (typeof value !== 'number') { - throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value) - } -} - -function boundsError (value, length, type) { - if (Math.floor(value) !== value) { - validateNumber(value, type) - throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value) - } - - if (length < 0) { - throw new errors.ERR_BUFFER_OUT_OF_BOUNDS() - } - - throw new errors.ERR_OUT_OF_RANGE(type || 'offset', - `>= ${type ? 1 : 0} and <= ${length}`, - value) -} - -// HELPER FUNCTIONS -// ================ - -const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g - -function base64clean (str) { - // Node takes equal signs as end of the Base64 encoding - str = str.split('=')[0] - // Node strips out invalid characters like \n and \t from the string, base64-js does not - str = str.trim().replace(INVALID_BASE64_RE, '') - // Node converts strings with length < 2 to '' - if (str.length < 2) return '' - // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not - while (str.length % 4 !== 0) { - str = str + '=' - } - return str -} - -function utf8ToBytes (string, units) { - units = units || Infinity - let codePoint - const length = string.length - let leadSurrogate = null - const bytes = [] - - for (let i = 0; i < length; ++i) { - codePoint = string.charCodeAt(i) - - // is surrogate component - if (codePoint > 0xD7FF && codePoint < 0xE000) { - // last char was a lead - if (!leadSurrogate) { - // no lead yet - if (codePoint > 0xDBFF) { - // unexpected trail - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - continue - } else if (i + 1 === length) { - // unpaired lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - continue - } - - // valid lead - leadSurrogate = codePoint - - continue - } - - // 2 leads in a row - if (codePoint < 0xDC00) { - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - leadSurrogate = codePoint - continue - } - - // valid surrogate pair - codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000 - } else if (leadSurrogate) { - // valid bmp char, but last char was a lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - } - - leadSurrogate = null - - // encode utf8 - if (codePoint < 0x80) { - if ((units -= 1) < 0) break - bytes.push(codePoint) - } else if (codePoint < 0x800) { - if ((units -= 2) < 0) break - bytes.push( - codePoint >> 0x6 | 0xC0, - codePoint & 0x3F | 0x80 - ) - } else if (codePoint < 0x10000) { - if ((units -= 3) < 0) break - bytes.push( - codePoint >> 0xC | 0xE0, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ) - } else if (codePoint < 0x110000) { - if ((units -= 4) < 0) break - bytes.push( - codePoint >> 0x12 | 0xF0, - codePoint >> 0xC & 0x3F | 0x80, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ) - } else { - throw new Error('Invalid code point') - } - } - - return bytes -} - -function asciiToBytes (str) { - const byteArray = [] - for (let i = 0; i < str.length; ++i) { - // Node's code seems to be doing this and not & 0x7F.. - byteArray.push(str.charCodeAt(i) & 0xFF) - } - return byteArray -} - -function utf16leToBytes (str, units) { - let c, hi, lo - const byteArray = [] - for (let i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) break - - c = str.charCodeAt(i) - hi = c >> 8 - lo = c % 256 - byteArray.push(lo) - byteArray.push(hi) - } - - return byteArray -} - -function base64ToBytes (str) { - return base64.toByteArray(base64clean(str)) -} - -function blitBuffer (src, dst, offset, length) { - let i - for (i = 0; i < length; ++i) { - if ((i + offset >= dst.length) || (i >= src.length)) break - dst[i + offset] = src[i] - } - return i -} - -// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass -// the `instanceof` check but they should be treated as of that type. -// See: https://github.com/feross/buffer/issues/166 -function isInstance (obj, type) { - return obj instanceof type || - (obj != null && obj.constructor != null && obj.constructor.name != null && - obj.constructor.name === type.name) -} -function numberIsNaN (obj) { - // For IE11 support - return obj !== obj // eslint-disable-line no-self-compare -} - -// Create lookup table for `toString('hex')` -// See: https://github.com/feross/buffer/issues/219 -const hexSliceLookupTable = (function () { - const alphabet = '0123456789abcdef' - const table = new Array(256) - for (let i = 0; i < 16; ++i) { - const i16 = i * 16 - for (let j = 0; j < 16; ++j) { - table[i16 + j] = alphabet[i] + alphabet[j] - } - } - return table -})() - -// Return not function with Error if BigInt not supported -function defineBigIntMethod (fn) { - return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn -} - -function BufferBigIntNotDefined () { - throw new Error('BigInt not supported') -} - - -/***/ }), - -/***/ "./node_modules/clsx/dist/clsx.m.js": -/*!******************************************!*\ - !*** ./node_modules/clsx/dist/clsx.m.js ***! - \******************************************/ -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -function toVal(mix) { - var k, y, str=''; - - if (typeof mix === 'string' || typeof mix === 'number') { - str += mix; - } else if (typeof mix === 'object') { - if (Array.isArray(mix)) { - for (k=0; k < mix.length; k++) { - if (mix[k]) { - if (y = toVal(mix[k])) { - str && (str += ' '); - str += y; - } - } - } - } else { - for (k in mix) { - if (mix[k]) { - str && (str += ' '); - str += k; - } - } - } - } - - return str; -} - -/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() { - var i=0, tmp, x, str=''; - while (i < arguments.length) { - if (tmp = arguments[i++]) { - if (x = toVal(tmp)) { - str && (str += ' '); - str += x - } - } - } - return str; -} - - -/***/ }), - -/***/ "./node_modules/core-js/internals/a-callable.js": -/*!******************************************************!*\ - !*** ./node_modules/core-js/internals/a-callable.js ***! - \******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var tryToString = __webpack_require__(/*! ../internals/try-to-string */ "./node_modules/core-js/internals/try-to-string.js"); - -var $TypeError = TypeError; - -// `Assert: IsCallable(argument) is true` -module.exports = function (argument) { - if (isCallable(argument)) return argument; - throw $TypeError(tryToString(argument) + ' is not a function'); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/advance-string-index.js": -/*!****************************************************************!*\ - !*** ./node_modules/core-js/internals/advance-string-index.js ***! - \****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var charAt = (__webpack_require__(/*! ../internals/string-multibyte */ "./node_modules/core-js/internals/string-multibyte.js").charAt); - -// `AdvanceStringIndex` abstract operation -// https://tc39.es/ecma262/#sec-advancestringindex -module.exports = function (S, index, unicode) { - return index + (unicode ? charAt(S, index).length : 1); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/an-object.js": -/*!*****************************************************!*\ - !*** ./node_modules/core-js/internals/an-object.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js"); - -var $String = String; -var $TypeError = TypeError; - -// `Assert: Type(argument) is Object` -module.exports = function (argument) { - if (isObject(argument)) return argument; - throw $TypeError($String(argument) + ' is not an object'); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/array-for-each.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/internals/array-for-each.js ***! - \**********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var $forEach = (__webpack_require__(/*! ../internals/array-iteration */ "./node_modules/core-js/internals/array-iteration.js").forEach); -var arrayMethodIsStrict = __webpack_require__(/*! ../internals/array-method-is-strict */ "./node_modules/core-js/internals/array-method-is-strict.js"); - -var STRICT_METHOD = arrayMethodIsStrict('forEach'); - -// `Array.prototype.forEach` method implementation -// https://tc39.es/ecma262/#sec-array.prototype.foreach -module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) { - return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); -// eslint-disable-next-line es/no-array-prototype-foreach -- safe -} : [].forEach; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/array-includes.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/internals/array-includes.js ***! - \**********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js"); -var toAbsoluteIndex = __webpack_require__(/*! ../internals/to-absolute-index */ "./node_modules/core-js/internals/to-absolute-index.js"); -var lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ "./node_modules/core-js/internals/length-of-array-like.js"); - -// `Array.prototype.{ indexOf, includes }` methods implementation -var createMethod = function (IS_INCLUDES) { - return function ($this, el, fromIndex) { - var O = toIndexedObject($this); - var length = lengthOfArrayLike(O); - var index = toAbsoluteIndex(fromIndex, length); - var value; - // Array#includes uses SameValueZero equality algorithm - // eslint-disable-next-line no-self-compare -- NaN check - if (IS_INCLUDES && el != el) while (length > index) { - value = O[index++]; - // eslint-disable-next-line no-self-compare -- NaN check - if (value != value) return true; - // Array#indexOf ignores holes, Array#includes - not - } else for (;length > index; index++) { - if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; - } return !IS_INCLUDES && -1; - }; -}; - -module.exports = { - // `Array.prototype.includes` method - // https://tc39.es/ecma262/#sec-array.prototype.includes - includes: createMethod(true), - // `Array.prototype.indexOf` method - // https://tc39.es/ecma262/#sec-array.prototype.indexof - indexOf: createMethod(false) -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/array-iteration.js": -/*!***********************************************************!*\ - !*** ./node_modules/core-js/internals/array-iteration.js ***! - \***********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var bind = __webpack_require__(/*! ../internals/function-bind-context */ "./node_modules/core-js/internals/function-bind-context.js"); -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "./node_modules/core-js/internals/indexed-object.js"); -var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js"); -var lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ "./node_modules/core-js/internals/length-of-array-like.js"); -var arraySpeciesCreate = __webpack_require__(/*! ../internals/array-species-create */ "./node_modules/core-js/internals/array-species-create.js"); - -var push = uncurryThis([].push); - -// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation -var createMethod = function (TYPE) { - var IS_MAP = TYPE == 1; - var IS_FILTER = TYPE == 2; - var IS_SOME = TYPE == 3; - var IS_EVERY = TYPE == 4; - var IS_FIND_INDEX = TYPE == 6; - var IS_FILTER_REJECT = TYPE == 7; - var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; - return function ($this, callbackfn, that, specificCreate) { - var O = toObject($this); - var self = IndexedObject(O); - var boundFunction = bind(callbackfn, that); - var length = lengthOfArrayLike(self); - var index = 0; - var create = specificCreate || arraySpeciesCreate; - var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined; - var value, result; - for (;length > index; index++) if (NO_HOLES || index in self) { - value = self[index]; - result = boundFunction(value, index, O); - if (TYPE) { - if (IS_MAP) target[index] = result; // map - else if (result) switch (TYPE) { - case 3: return true; // some - case 5: return value; // find - case 6: return index; // findIndex - case 2: push(target, value); // filter - } else switch (TYPE) { - case 4: return false; // every - case 7: push(target, value); // filterReject - } - } - } - return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; - }; -}; - -module.exports = { - // `Array.prototype.forEach` method - // https://tc39.es/ecma262/#sec-array.prototype.foreach - forEach: createMethod(0), - // `Array.prototype.map` method - // https://tc39.es/ecma262/#sec-array.prototype.map - map: createMethod(1), - // `Array.prototype.filter` method - // https://tc39.es/ecma262/#sec-array.prototype.filter - filter: createMethod(2), - // `Array.prototype.some` method - // https://tc39.es/ecma262/#sec-array.prototype.some - some: createMethod(3), - // `Array.prototype.every` method - // https://tc39.es/ecma262/#sec-array.prototype.every - every: createMethod(4), - // `Array.prototype.find` method - // https://tc39.es/ecma262/#sec-array.prototype.find - find: createMethod(5), - // `Array.prototype.findIndex` method - // https://tc39.es/ecma262/#sec-array.prototype.findIndex - findIndex: createMethod(6), - // `Array.prototype.filterReject` method - // https://github.com/tc39/proposal-array-filtering - filterReject: createMethod(7) -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/array-method-is-strict.js": -/*!******************************************************************!*\ - !*** ./node_modules/core-js/internals/array-method-is-strict.js ***! - \******************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); - -module.exports = function (METHOD_NAME, argument) { - var method = [][METHOD_NAME]; - return !!method && fails(function () { - // eslint-disable-next-line no-useless-call -- required for testing - method.call(null, argument || function () { return 1; }, 1); - }); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/array-species-constructor.js": -/*!*********************************************************************!*\ - !*** ./node_modules/core-js/internals/array-species-constructor.js ***! - \*********************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isArray = __webpack_require__(/*! ../internals/is-array */ "./node_modules/core-js/internals/is-array.js"); -var isConstructor = __webpack_require__(/*! ../internals/is-constructor */ "./node_modules/core-js/internals/is-constructor.js"); -var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js"); -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js"); - -var SPECIES = wellKnownSymbol('species'); -var $Array = Array; - -// a part of `ArraySpeciesCreate` abstract operation -// https://tc39.es/ecma262/#sec-arrayspeciescreate -module.exports = function (originalArray) { - var C; - if (isArray(originalArray)) { - C = originalArray.constructor; - // cross-realm fallback - if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined; - else if (isObject(C)) { - C = C[SPECIES]; - if (C === null) C = undefined; - } - } return C === undefined ? $Array : C; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/array-species-create.js": -/*!****************************************************************!*\ - !*** ./node_modules/core-js/internals/array-species-create.js ***! - \****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arraySpeciesConstructor = __webpack_require__(/*! ../internals/array-species-constructor */ "./node_modules/core-js/internals/array-species-constructor.js"); - -// `ArraySpeciesCreate` abstract operation -// https://tc39.es/ecma262/#sec-arrayspeciescreate -module.exports = function (originalArray, length) { - return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/classof-raw.js": -/*!*******************************************************!*\ - !*** ./node_modules/core-js/internals/classof-raw.js ***! - \*******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); - -var toString = uncurryThis({}.toString); -var stringSlice = uncurryThis(''.slice); - -module.exports = function (it) { - return stringSlice(toString(it), 8, -1); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/classof.js": -/*!***************************************************!*\ - !*** ./node_modules/core-js/internals/classof.js ***! - \***************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var classofRaw = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js"); -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js"); - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var $Object = Object; - -// ES3 wrong here -var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; - -// fallback for IE11 Script Access Denied error -var tryGet = function (it, key) { - try { - return it[key]; - } catch (error) { /* empty */ } -}; - -// getting tag from ES6+ `Object.prototype.toString` -module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) { - var O, tag, result; - return it === undefined ? 'Undefined' : it === null ? 'Null' - // @@toStringTag case - : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag - // builtinTag case - : CORRECT_ARGUMENTS ? classofRaw(O) - // ES3 arguments fallback - : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/copy-constructor-properties.js": -/*!***********************************************************************!*\ - !*** ./node_modules/core-js/internals/copy-constructor-properties.js ***! - \***********************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js"); -var ownKeys = __webpack_require__(/*! ../internals/own-keys */ "./node_modules/core-js/internals/own-keys.js"); -var getOwnPropertyDescriptorModule = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js"); -var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js"); - -module.exports = function (target, source, exceptions) { - var keys = ownKeys(source); - var defineProperty = definePropertyModule.f; - var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) { - defineProperty(target, key, getOwnPropertyDescriptor(source, key)); - } - } -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/create-non-enumerable-property.js": -/*!**************************************************************************!*\ - !*** ./node_modules/core-js/internals/create-non-enumerable-property.js ***! - \**************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js"); -var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./node_modules/core-js/internals/create-property-descriptor.js"); - -module.exports = DESCRIPTORS ? function (object, key, value) { - return definePropertyModule.f(object, key, createPropertyDescriptor(1, value)); -} : function (object, key, value) { - object[key] = value; - return object; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/create-property-descriptor.js": -/*!**********************************************************************!*\ - !*** ./node_modules/core-js/internals/create-property-descriptor.js ***! - \**********************************************************************/ -/***/ ((module) => { - -module.exports = function (bitmap, value) { - return { - enumerable: !(bitmap & 1), - configurable: !(bitmap & 2), - writable: !(bitmap & 4), - value: value - }; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/define-built-in.js": -/*!***********************************************************!*\ - !*** ./node_modules/core-js/internals/define-built-in.js ***! - \***********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js"); -var makeBuiltIn = __webpack_require__(/*! ../internals/make-built-in */ "./node_modules/core-js/internals/make-built-in.js"); -var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "./node_modules/core-js/internals/define-global-property.js"); - -module.exports = function (O, key, value, options) { - if (!options) options = {}; - var simple = options.enumerable; - var name = options.name !== undefined ? options.name : key; - if (isCallable(value)) makeBuiltIn(value, name, options); - if (options.global) { - if (simple) O[key] = value; - else defineGlobalProperty(key, value); - } else { - try { - if (!options.unsafe) delete O[key]; - else if (O[key]) simple = true; - } catch (error) { /* empty */ } - if (simple) O[key] = value; - else definePropertyModule.f(O, key, { - value: value, - enumerable: false, - configurable: !options.nonConfigurable, - writable: !options.nonWritable - }); - } return O; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/define-global-property.js": -/*!******************************************************************!*\ - !*** ./node_modules/core-js/internals/define-global-property.js ***! - \******************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); - -// eslint-disable-next-line es/no-object-defineproperty -- safe -var defineProperty = Object.defineProperty; - -module.exports = function (key, value) { - try { - defineProperty(global, key, { value: value, configurable: true, writable: true }); - } catch (error) { - global[key] = value; - } return value; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/descriptors.js": -/*!*******************************************************!*\ - !*** ./node_modules/core-js/internals/descriptors.js ***! - \*******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); - -// Detect IE8's incomplete defineProperty implementation -module.exports = !fails(function () { - // eslint-disable-next-line es/no-object-defineproperty -- required for testing - return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; -}); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/document-all.js": -/*!********************************************************!*\ - !*** ./node_modules/core-js/internals/document-all.js ***! - \********************************************************/ -/***/ ((module) => { - -var documentAll = typeof document == 'object' && document.all; - -// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot -// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing -var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined; - -module.exports = { - all: documentAll, - IS_HTMLDDA: IS_HTMLDDA -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/document-create-element.js": -/*!*******************************************************************!*\ - !*** ./node_modules/core-js/internals/document-create-element.js ***! - \*******************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); -var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js"); - -var document = global.document; -// typeof document.createElement is 'object' in old IE -var EXISTS = isObject(document) && isObject(document.createElement); - -module.exports = function (it) { - return EXISTS ? document.createElement(it) : {}; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/engine-user-agent.js": -/*!*************************************************************!*\ - !*** ./node_modules/core-js/internals/engine-user-agent.js ***! - \*************************************************************/ -/***/ ((module) => { - -module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/engine-v8-version.js": -/*!*************************************************************!*\ - !*** ./node_modules/core-js/internals/engine-v8-version.js ***! - \*************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); -var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js"); - -var process = global.process; -var Deno = global.Deno; -var versions = process && process.versions || Deno && Deno.version; -var v8 = versions && versions.v8; -var match, version; - -if (v8) { - match = v8.split('.'); - // in old Chrome, versions of V8 isn't V8 = Chrome / 10 - // but their correct versions are not interesting for us - version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); -} - -// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` -// so check `userAgent` even if `.v8` exists, but 0 -if (!version && userAgent) { - match = userAgent.match(/Edge\/(\d+)/); - if (!match || match[1] >= 74) { - match = userAgent.match(/Chrome\/(\d+)/); - if (match) version = +match[1]; - } -} - -module.exports = version; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/enum-bug-keys.js": -/*!*********************************************************!*\ - !*** ./node_modules/core-js/internals/enum-bug-keys.js ***! - \*********************************************************/ -/***/ ((module) => { - -// IE8- don't enum bug keys -module.exports = [ - 'constructor', - 'hasOwnProperty', - 'isPrototypeOf', - 'propertyIsEnumerable', - 'toLocaleString', - 'toString', - 'valueOf' -]; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/export.js": -/*!**************************************************!*\ - !*** ./node_modules/core-js/internals/export.js ***! - \**************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); -var getOwnPropertyDescriptor = (__webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js").f); -var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js"); -var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "./node_modules/core-js/internals/define-built-in.js"); -var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "./node_modules/core-js/internals/define-global-property.js"); -var copyConstructorProperties = __webpack_require__(/*! ../internals/copy-constructor-properties */ "./node_modules/core-js/internals/copy-constructor-properties.js"); -var isForced = __webpack_require__(/*! ../internals/is-forced */ "./node_modules/core-js/internals/is-forced.js"); - -/* - options.target - name of the target object - options.global - target is the global object - options.stat - export as static methods of target - options.proto - export as prototype methods of target - options.real - real prototype method for the `pure` version - options.forced - export even if the native feature is available - options.bind - bind methods to the target, required for the `pure` version - options.wrap - wrap constructors to preventing global pollution, required for the `pure` version - options.unsafe - use the simple assignment of property instead of delete + defineProperty - options.sham - add a flag to not completely full polyfills - options.enumerable - export as enumerable property - options.dontCallGetSet - prevent calling a getter on target - options.name - the .name of the function if it does not match the key -*/ -module.exports = function (options, source) { - var TARGET = options.target; - var GLOBAL = options.global; - var STATIC = options.stat; - var FORCED, target, key, targetProperty, sourceProperty, descriptor; - if (GLOBAL) { - target = global; - } else if (STATIC) { - target = global[TARGET] || defineGlobalProperty(TARGET, {}); - } else { - target = (global[TARGET] || {}).prototype; - } - if (target) for (key in source) { - sourceProperty = source[key]; - if (options.dontCallGetSet) { - descriptor = getOwnPropertyDescriptor(target, key); - targetProperty = descriptor && descriptor.value; - } else targetProperty = target[key]; - FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); - // contained in target - if (!FORCED && targetProperty !== undefined) { - if (typeof sourceProperty == typeof targetProperty) continue; - copyConstructorProperties(sourceProperty, targetProperty); - } - // add a flag to not completely full polyfills - if (options.sham || (targetProperty && targetProperty.sham)) { - createNonEnumerableProperty(sourceProperty, 'sham', true); - } - defineBuiltIn(target, key, sourceProperty, options); - } -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/fails.js": -/*!*************************************************!*\ - !*** ./node_modules/core-js/internals/fails.js ***! - \*************************************************/ -/***/ ((module) => { - -module.exports = function (exec) { - try { - return !!exec(); - } catch (error) { - return true; - } -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js": -/*!******************************************************************************!*\ - !*** ./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js ***! - \******************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -// TODO: Remove from `core-js@4` since it's moved to entry points -__webpack_require__(/*! ../modules/es.regexp.exec */ "./node_modules/core-js/modules/es.regexp.exec.js"); -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this-clause */ "./node_modules/core-js/internals/function-uncurry-this-clause.js"); -var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "./node_modules/core-js/internals/define-built-in.js"); -var regexpExec = __webpack_require__(/*! ../internals/regexp-exec */ "./node_modules/core-js/internals/regexp-exec.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js"); -var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js"); - -var SPECIES = wellKnownSymbol('species'); -var RegExpPrototype = RegExp.prototype; - -module.exports = function (KEY, exec, FORCED, SHAM) { - var SYMBOL = wellKnownSymbol(KEY); - - var DELEGATES_TO_SYMBOL = !fails(function () { - // String methods call symbol-named RegEp methods - var O = {}; - O[SYMBOL] = function () { return 7; }; - return ''[KEY](O) != 7; - }); - - var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () { - // Symbol-named RegExp methods call .exec - var execCalled = false; - var re = /a/; - - if (KEY === 'split') { - // We can't use real regex here since it causes deoptimization - // and serious performance degradation in V8 - // https://github.com/zloirock/core-js/issues/306 - re = {}; - // RegExp[@@split] doesn't call the regex's exec method, but first creates - // a new one. We need to return the patched regex when creating the new one. - re.constructor = {}; - re.constructor[SPECIES] = function () { return re; }; - re.flags = ''; - re[SYMBOL] = /./[SYMBOL]; - } - - re.exec = function () { execCalled = true; return null; }; - - re[SYMBOL](''); - return !execCalled; - }); - - if ( - !DELEGATES_TO_SYMBOL || - !DELEGATES_TO_EXEC || - FORCED - ) { - var uncurriedNativeRegExpMethod = uncurryThis(/./[SYMBOL]); - var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { - var uncurriedNativeMethod = uncurryThis(nativeMethod); - var $exec = regexp.exec; - if ($exec === regexpExec || $exec === RegExpPrototype.exec) { - if (DELEGATES_TO_SYMBOL && !forceStringMethod) { - // The native String method already delegates to @@method (this - // polyfilled function), leasing to infinite recursion. - // We avoid it by directly calling the native @@method method. - return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) }; - } - return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) }; - } - return { done: false }; - }); - - defineBuiltIn(String.prototype, KEY, methods[0]); - defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]); - } - - if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/function-apply.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/internals/function-apply.js ***! - \**********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "./node_modules/core-js/internals/function-bind-native.js"); - -var FunctionPrototype = Function.prototype; -var apply = FunctionPrototype.apply; -var call = FunctionPrototype.call; - -// eslint-disable-next-line es/no-reflect -- safe -module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { - return call.apply(apply, arguments); -}); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/function-bind-context.js": -/*!*****************************************************************!*\ - !*** ./node_modules/core-js/internals/function-bind-context.js ***! - \*****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this-clause */ "./node_modules/core-js/internals/function-uncurry-this-clause.js"); -var aCallable = __webpack_require__(/*! ../internals/a-callable */ "./node_modules/core-js/internals/a-callable.js"); -var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "./node_modules/core-js/internals/function-bind-native.js"); - -var bind = uncurryThis(uncurryThis.bind); - -// optional / simple context binding -module.exports = function (fn, that) { - aCallable(fn); - return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) { - return fn.apply(that, arguments); - }; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/function-bind-native.js": -/*!****************************************************************!*\ - !*** ./node_modules/core-js/internals/function-bind-native.js ***! - \****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); - -module.exports = !fails(function () { - // eslint-disable-next-line es/no-function-prototype-bind -- safe - var test = (function () { /* empty */ }).bind(); - // eslint-disable-next-line no-prototype-builtins -- safe - return typeof test != 'function' || test.hasOwnProperty('prototype'); -}); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/function-call.js": -/*!*********************************************************!*\ - !*** ./node_modules/core-js/internals/function-call.js ***! - \*********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "./node_modules/core-js/internals/function-bind-native.js"); - -var call = Function.prototype.call; - -module.exports = NATIVE_BIND ? call.bind(call) : function () { - return call.apply(call, arguments); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/function-name.js": -/*!*********************************************************!*\ - !*** ./node_modules/core-js/internals/function-name.js ***! - \*********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js"); - -var FunctionPrototype = Function.prototype; -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe -var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; - -var EXISTS = hasOwn(FunctionPrototype, 'name'); -// additional protection from minified / mangled / dropped function names -var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; -var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable)); - -module.exports = { - EXISTS: EXISTS, - PROPER: PROPER, - CONFIGURABLE: CONFIGURABLE -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/function-uncurry-this-clause.js": -/*!************************************************************************!*\ - !*** ./node_modules/core-js/internals/function-uncurry-this-clause.js ***! - \************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var classofRaw = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js"); -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); - -module.exports = function (fn) { - // Nashorn bug: - // https://github.com/zloirock/core-js/issues/1128 - // https://github.com/zloirock/core-js/issues/1130 - if (classofRaw(fn) === 'Function') return uncurryThis(fn); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/function-uncurry-this.js": -/*!*****************************************************************!*\ - !*** ./node_modules/core-js/internals/function-uncurry-this.js ***! - \*****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "./node_modules/core-js/internals/function-bind-native.js"); - -var FunctionPrototype = Function.prototype; -var call = FunctionPrototype.call; -var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); - -module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { - return function () { - return call.apply(fn, arguments); - }; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/get-built-in.js": -/*!********************************************************!*\ - !*** ./node_modules/core-js/internals/get-built-in.js ***! - \********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); - -var aFunction = function (argument) { - return isCallable(argument) ? argument : undefined; -}; - -module.exports = function (namespace, method) { - return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method]; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/get-method.js": -/*!******************************************************!*\ - !*** ./node_modules/core-js/internals/get-method.js ***! - \******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var aCallable = __webpack_require__(/*! ../internals/a-callable */ "./node_modules/core-js/internals/a-callable.js"); -var isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ "./node_modules/core-js/internals/is-null-or-undefined.js"); - -// `GetMethod` abstract operation -// https://tc39.es/ecma262/#sec-getmethod -module.exports = function (V, P) { - var func = V[P]; - return isNullOrUndefined(func) ? undefined : aCallable(func); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/get-substitution.js": -/*!************************************************************!*\ - !*** ./node_modules/core-js/internals/get-substitution.js ***! - \************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js"); - -var floor = Math.floor; -var charAt = uncurryThis(''.charAt); -var replace = uncurryThis(''.replace); -var stringSlice = uncurryThis(''.slice); -var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g; -var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g; - -// `GetSubstitution` abstract operation -// https://tc39.es/ecma262/#sec-getsubstitution -module.exports = function (matched, str, position, captures, namedCaptures, replacement) { - var tailPos = position + matched.length; - var m = captures.length; - var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; - if (namedCaptures !== undefined) { - namedCaptures = toObject(namedCaptures); - symbols = SUBSTITUTION_SYMBOLS; - } - return replace(replacement, symbols, function (match, ch) { - var capture; - switch (charAt(ch, 0)) { - case '$': return '$'; - case '&': return matched; - case '`': return stringSlice(str, 0, position); - case "'": return stringSlice(str, tailPos); - case '<': - capture = namedCaptures[stringSlice(ch, 1, -1)]; - break; - default: // \d\d? - var n = +ch; - if (n === 0) return match; - if (n > m) { - var f = floor(n / 10); - if (f === 0) return match; - if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1); - return match; - } - capture = captures[n - 1]; - } - return capture === undefined ? '' : capture; - }); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/global.js": -/*!**************************************************!*\ - !*** ./node_modules/core-js/internals/global.js ***! - \**************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var check = function (it) { - return it && it.Math == Math && it; -}; - -// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 -module.exports = - // eslint-disable-next-line es/no-global-this -- safe - check(typeof globalThis == 'object' && globalThis) || - check(typeof window == 'object' && window) || - // eslint-disable-next-line no-restricted-globals -- safe - check(typeof self == 'object' && self) || - check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) || - // eslint-disable-next-line no-new-func -- fallback - (function () { return this; })() || Function('return this')(); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/has-own-property.js": -/*!************************************************************!*\ - !*** ./node_modules/core-js/internals/has-own-property.js ***! - \************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js"); - -var hasOwnProperty = uncurryThis({}.hasOwnProperty); - -// `HasOwnProperty` abstract operation -// https://tc39.es/ecma262/#sec-hasownproperty -// eslint-disable-next-line es/no-object-hasown -- safe -module.exports = Object.hasOwn || function hasOwn(it, key) { - return hasOwnProperty(toObject(it), key); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/hidden-keys.js": -/*!*******************************************************!*\ - !*** ./node_modules/core-js/internals/hidden-keys.js ***! - \*******************************************************/ -/***/ ((module) => { - -module.exports = {}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/html.js": -/*!************************************************!*\ - !*** ./node_modules/core-js/internals/html.js ***! - \************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js"); - -module.exports = getBuiltIn('document', 'documentElement'); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/ie8-dom-define.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/internals/ie8-dom-define.js ***! - \**********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var createElement = __webpack_require__(/*! ../internals/document-create-element */ "./node_modules/core-js/internals/document-create-element.js"); - -// Thanks to IE8 for its funny defineProperty -module.exports = !DESCRIPTORS && !fails(function () { - // eslint-disable-next-line es/no-object-defineproperty -- required for testing - return Object.defineProperty(createElement('div'), 'a', { - get: function () { return 7; } - }).a != 7; -}); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/indexed-object.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/internals/indexed-object.js ***! - \**********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js"); - -var $Object = Object; -var split = uncurryThis(''.split); - -// fallback for non-array-like ES3 and non-enumerable old V8 strings -module.exports = fails(function () { - // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 - // eslint-disable-next-line no-prototype-builtins -- safe - return !$Object('z').propertyIsEnumerable(0); -}) ? function (it) { - return classof(it) == 'String' ? split(it, '') : $Object(it); -} : $Object; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/inspect-source.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/internals/inspect-source.js ***! - \**********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var store = __webpack_require__(/*! ../internals/shared-store */ "./node_modules/core-js/internals/shared-store.js"); - -var functionToString = uncurryThis(Function.toString); - -// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper -if (!isCallable(store.inspectSource)) { - store.inspectSource = function (it) { - return functionToString(it); - }; -} - -module.exports = store.inspectSource; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/internal-state.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/internals/internal-state.js ***! - \**********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var NATIVE_WEAK_MAP = __webpack_require__(/*! ../internals/weak-map-basic-detection */ "./node_modules/core-js/internals/weak-map-basic-detection.js"); -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); -var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js"); -var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "./node_modules/core-js/internals/create-non-enumerable-property.js"); -var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js"); -var shared = __webpack_require__(/*! ../internals/shared-store */ "./node_modules/core-js/internals/shared-store.js"); -var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "./node_modules/core-js/internals/shared-key.js"); -var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./node_modules/core-js/internals/hidden-keys.js"); - -var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; -var TypeError = global.TypeError; -var WeakMap = global.WeakMap; -var set, get, has; - -var enforce = function (it) { - return has(it) ? get(it) : set(it, {}); -}; - -var getterFor = function (TYPE) { - return function (it) { - var state; - if (!isObject(it) || (state = get(it)).type !== TYPE) { - throw TypeError('Incompatible receiver, ' + TYPE + ' required'); - } return state; - }; -}; - -if (NATIVE_WEAK_MAP || shared.state) { - var store = shared.state || (shared.state = new WeakMap()); - /* eslint-disable no-self-assign -- prototype methods protection */ - store.get = store.get; - store.has = store.has; - store.set = store.set; - /* eslint-enable no-self-assign -- prototype methods protection */ - set = function (it, metadata) { - if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED); - metadata.facade = it; - store.set(it, metadata); - return metadata; - }; - get = function (it) { - return store.get(it) || {}; - }; - has = function (it) { - return store.has(it); - }; -} else { - var STATE = sharedKey('state'); - hiddenKeys[STATE] = true; - set = function (it, metadata) { - if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED); - metadata.facade = it; - createNonEnumerableProperty(it, STATE, metadata); - return metadata; - }; - get = function (it) { - return hasOwn(it, STATE) ? it[STATE] : {}; - }; - has = function (it) { - return hasOwn(it, STATE); - }; -} - -module.exports = { - set: set, - get: get, - has: has, - enforce: enforce, - getterFor: getterFor -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/is-array.js": -/*!****************************************************!*\ - !*** ./node_modules/core-js/internals/is-array.js ***! - \****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js"); - -// `IsArray` abstract operation -// https://tc39.es/ecma262/#sec-isarray -// eslint-disable-next-line es/no-array-isarray -- safe -module.exports = Array.isArray || function isArray(argument) { - return classof(argument) == 'Array'; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/is-callable.js": -/*!*******************************************************!*\ - !*** ./node_modules/core-js/internals/is-callable.js ***! - \*******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var $documentAll = __webpack_require__(/*! ../internals/document-all */ "./node_modules/core-js/internals/document-all.js"); - -var documentAll = $documentAll.all; - -// `IsCallable` abstract operation -// https://tc39.es/ecma262/#sec-iscallable -module.exports = $documentAll.IS_HTMLDDA ? function (argument) { - return typeof argument == 'function' || argument === documentAll; -} : function (argument) { - return typeof argument == 'function'; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/is-constructor.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/internals/is-constructor.js ***! - \**********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var classof = __webpack_require__(/*! ../internals/classof */ "./node_modules/core-js/internals/classof.js"); -var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js"); -var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "./node_modules/core-js/internals/inspect-source.js"); - -var noop = function () { /* empty */ }; -var empty = []; -var construct = getBuiltIn('Reflect', 'construct'); -var constructorRegExp = /^\s*(?:class|function)\b/; -var exec = uncurryThis(constructorRegExp.exec); -var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); - -var isConstructorModern = function isConstructor(argument) { - if (!isCallable(argument)) return false; - try { - construct(noop, empty, argument); - return true; - } catch (error) { - return false; - } -}; - -var isConstructorLegacy = function isConstructor(argument) { - if (!isCallable(argument)) return false; - switch (classof(argument)) { - case 'AsyncFunction': - case 'GeneratorFunction': - case 'AsyncGeneratorFunction': return false; - } - try { - // we can't check .prototype since constructors produced by .bind haven't it - // `Function#toString` throws on some built-it function in some legacy engines - // (for example, `DOMQuad` and similar in FF41-) - return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument)); - } catch (error) { - return true; - } -}; - -isConstructorLegacy.sham = true; - -// `IsConstructor` abstract operation -// https://tc39.es/ecma262/#sec-isconstructor -module.exports = !construct || fails(function () { - var called; - return isConstructorModern(isConstructorModern.call) - || !isConstructorModern(Object) - || !isConstructorModern(function () { called = true; }) - || called; -}) ? isConstructorLegacy : isConstructorModern; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/is-forced.js": -/*!*****************************************************!*\ - !*** ./node_modules/core-js/internals/is-forced.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); - -var replacement = /#|\.prototype\./; - -var isForced = function (feature, detection) { - var value = data[normalize(feature)]; - return value == POLYFILL ? true - : value == NATIVE ? false - : isCallable(detection) ? fails(detection) - : !!detection; -}; - -var normalize = isForced.normalize = function (string) { - return String(string).replace(replacement, '.').toLowerCase(); -}; - -var data = isForced.data = {}; -var NATIVE = isForced.NATIVE = 'N'; -var POLYFILL = isForced.POLYFILL = 'P'; - -module.exports = isForced; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/is-null-or-undefined.js": -/*!****************************************************************!*\ - !*** ./node_modules/core-js/internals/is-null-or-undefined.js ***! - \****************************************************************/ -/***/ ((module) => { - -// we can't use just `it == null` since of `document.all` special case -// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec -module.exports = function (it) { - return it === null || it === undefined; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/is-object.js": -/*!*****************************************************!*\ - !*** ./node_modules/core-js/internals/is-object.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var $documentAll = __webpack_require__(/*! ../internals/document-all */ "./node_modules/core-js/internals/document-all.js"); - -var documentAll = $documentAll.all; - -module.exports = $documentAll.IS_HTMLDDA ? function (it) { - return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll; -} : function (it) { - return typeof it == 'object' ? it !== null : isCallable(it); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/is-pure.js": -/*!***************************************************!*\ - !*** ./node_modules/core-js/internals/is-pure.js ***! - \***************************************************/ -/***/ ((module) => { - -module.exports = false; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/is-symbol.js": -/*!*****************************************************!*\ - !*** ./node_modules/core-js/internals/is-symbol.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "./node_modules/core-js/internals/object-is-prototype-of.js"); -var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "./node_modules/core-js/internals/use-symbol-as-uid.js"); - -var $Object = Object; - -module.exports = USE_SYMBOL_AS_UID ? function (it) { - return typeof it == 'symbol'; -} : function (it) { - var $Symbol = getBuiltIn('Symbol'); - return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it)); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/length-of-array-like.js": -/*!****************************************************************!*\ - !*** ./node_modules/core-js/internals/length-of-array-like.js ***! - \****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js"); - -// `LengthOfArrayLike` abstract operation -// https://tc39.es/ecma262/#sec-lengthofarraylike -module.exports = function (obj) { - return toLength(obj.length); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/make-built-in.js": -/*!*********************************************************!*\ - !*** ./node_modules/core-js/internals/make-built-in.js ***! - \*********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js"); -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(/*! ../internals/function-name */ "./node_modules/core-js/internals/function-name.js").CONFIGURABLE); -var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "./node_modules/core-js/internals/inspect-source.js"); -var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js"); - -var enforceInternalState = InternalStateModule.enforce; -var getInternalState = InternalStateModule.get; -var $String = String; -// eslint-disable-next-line es/no-object-defineproperty -- safe -var defineProperty = Object.defineProperty; -var stringSlice = uncurryThis(''.slice); -var replace = uncurryThis(''.replace); -var join = uncurryThis([].join); - -var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () { - return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8; -}); - -var TEMPLATE = String(String).split('String'); - -var makeBuiltIn = module.exports = function (value, name, options) { - if (stringSlice($String(name), 0, 7) === 'Symbol(') { - name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; - } - if (options && options.getter) name = 'get ' + name; - if (options && options.setter) name = 'set ' + name; - if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { - if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true }); - else value.name = name; - } - if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) { - defineProperty(value, 'length', { value: options.arity }); - } - try { - if (options && hasOwn(options, 'constructor') && options.constructor) { - if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false }); - // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable - } else if (value.prototype) value.prototype = undefined; - } catch (error) { /* empty */ } - var state = enforceInternalState(value); - if (!hasOwn(state, 'source')) { - state.source = join(TEMPLATE, typeof name == 'string' ? name : ''); - } return value; -}; - -// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative -// eslint-disable-next-line no-extend-native -- required -Function.prototype.toString = makeBuiltIn(function toString() { - return isCallable(this) && getInternalState(this).source || inspectSource(this); -}, 'toString'); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/math-trunc.js": -/*!******************************************************!*\ - !*** ./node_modules/core-js/internals/math-trunc.js ***! - \******************************************************/ -/***/ ((module) => { - -var ceil = Math.ceil; -var floor = Math.floor; - -// `Math.trunc` method -// https://tc39.es/ecma262/#sec-math.trunc -// eslint-disable-next-line es/no-math-trunc -- safe -module.exports = Math.trunc || function trunc(x) { - var n = +x; - return (n > 0 ? floor : ceil)(n); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-assign.js": -/*!*********************************************************!*\ - !*** ./node_modules/core-js/internals/object-assign.js ***! - \*********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var objectKeys = __webpack_require__(/*! ../internals/object-keys */ "./node_modules/core-js/internals/object-keys.js"); -var getOwnPropertySymbolsModule = __webpack_require__(/*! ../internals/object-get-own-property-symbols */ "./node_modules/core-js/internals/object-get-own-property-symbols.js"); -var propertyIsEnumerableModule = __webpack_require__(/*! ../internals/object-property-is-enumerable */ "./node_modules/core-js/internals/object-property-is-enumerable.js"); -var toObject = __webpack_require__(/*! ../internals/to-object */ "./node_modules/core-js/internals/to-object.js"); -var IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "./node_modules/core-js/internals/indexed-object.js"); - -// eslint-disable-next-line es/no-object-assign -- safe -var $assign = Object.assign; -// eslint-disable-next-line es/no-object-defineproperty -- required for testing -var defineProperty = Object.defineProperty; -var concat = uncurryThis([].concat); - -// `Object.assign` method -// https://tc39.es/ecma262/#sec-object.assign -module.exports = !$assign || fails(function () { - // should have correct order of operations (Edge bug) - if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', { - enumerable: true, - get: function () { - defineProperty(this, 'b', { - value: 3, - enumerable: false - }); - } - }), { b: 2 })).b !== 1) return true; - // should work with symbols and should have deterministic property order (V8 bug) - var A = {}; - var B = {}; - // eslint-disable-next-line es/no-symbol -- safe - var symbol = Symbol(); - var alphabet = 'abcdefghijklmnopqrst'; - A[symbol] = 7; - alphabet.split('').forEach(function (chr) { B[chr] = chr; }); - return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet; -}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length` - var T = toObject(target); - var argumentsLength = arguments.length; - var index = 1; - var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; - var propertyIsEnumerable = propertyIsEnumerableModule.f; - while (argumentsLength > index) { - var S = IndexedObject(arguments[index++]); - var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S); - var length = keys.length; - var j = 0; - var key; - while (length > j) { - key = keys[j++]; - if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key]; - } - } return T; -} : $assign; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-create.js": -/*!*********************************************************!*\ - !*** ./node_modules/core-js/internals/object-create.js ***! - \*********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/* global ActiveXObject -- old IE, WSH */ -var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); -var definePropertiesModule = __webpack_require__(/*! ../internals/object-define-properties */ "./node_modules/core-js/internals/object-define-properties.js"); -var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "./node_modules/core-js/internals/enum-bug-keys.js"); -var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./node_modules/core-js/internals/hidden-keys.js"); -var html = __webpack_require__(/*! ../internals/html */ "./node_modules/core-js/internals/html.js"); -var documentCreateElement = __webpack_require__(/*! ../internals/document-create-element */ "./node_modules/core-js/internals/document-create-element.js"); -var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "./node_modules/core-js/internals/shared-key.js"); - -var GT = '>'; -var LT = '<'; -var PROTOTYPE = 'prototype'; -var SCRIPT = 'script'; -var IE_PROTO = sharedKey('IE_PROTO'); - -var EmptyConstructor = function () { /* empty */ }; - -var scriptTag = function (content) { - return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; -}; - -// Create object with fake `null` prototype: use ActiveX Object with cleared prototype -var NullProtoObjectViaActiveX = function (activeXDocument) { - activeXDocument.write(scriptTag('')); - activeXDocument.close(); - var temp = activeXDocument.parentWindow.Object; - activeXDocument = null; // avoid memory leak - return temp; -}; - -// Create object with fake `null` prototype: use iframe Object with cleared prototype -var NullProtoObjectViaIFrame = function () { - // Thrash, waste and sodomy: IE GC bug - var iframe = documentCreateElement('iframe'); - var JS = 'java' + SCRIPT + ':'; - var iframeDocument; - iframe.style.display = 'none'; - html.appendChild(iframe); - // https://github.com/zloirock/core-js/issues/475 - iframe.src = String(JS); - iframeDocument = iframe.contentWindow.document; - iframeDocument.open(); - iframeDocument.write(scriptTag('document.F=Object')); - iframeDocument.close(); - return iframeDocument.F; -}; - -// Check for document.domain and active x support -// No need to use active x approach when document.domain is not set -// see https://github.com/es-shims/es5-shim/issues/150 -// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 -// avoid IE GC bug -var activeXDocument; -var NullProtoObject = function () { - try { - activeXDocument = new ActiveXObject('htmlfile'); - } catch (error) { /* ignore */ } - NullProtoObject = typeof document != 'undefined' - ? document.domain && activeXDocument - ? NullProtoObjectViaActiveX(activeXDocument) // old IE - : NullProtoObjectViaIFrame() - : NullProtoObjectViaActiveX(activeXDocument); // WSH - var length = enumBugKeys.length; - while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; - return NullProtoObject(); -}; - -hiddenKeys[IE_PROTO] = true; - -// `Object.create` method -// https://tc39.es/ecma262/#sec-object.create -// eslint-disable-next-line es/no-object-create -- safe -module.exports = Object.create || function create(O, Properties) { - var result; - if (O !== null) { - EmptyConstructor[PROTOTYPE] = anObject(O); - result = new EmptyConstructor(); - EmptyConstructor[PROTOTYPE] = null; - // add "__proto__" for Object.getPrototypeOf polyfill - result[IE_PROTO] = O; - } else result = NullProtoObject(); - return Properties === undefined ? result : definePropertiesModule.f(result, Properties); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-define-properties.js": -/*!********************************************************************!*\ - !*** ./node_modules/core-js/internals/object-define-properties.js ***! - \********************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(/*! ../internals/v8-prototype-define-bug */ "./node_modules/core-js/internals/v8-prototype-define-bug.js"); -var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js"); -var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); -var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js"); -var objectKeys = __webpack_require__(/*! ../internals/object-keys */ "./node_modules/core-js/internals/object-keys.js"); - -// `Object.defineProperties` method -// https://tc39.es/ecma262/#sec-object.defineproperties -// eslint-disable-next-line es/no-object-defineproperties -- safe -exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { - anObject(O); - var props = toIndexedObject(Properties); - var keys = objectKeys(Properties); - var length = keys.length; - var index = 0; - var key; - while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]); - return O; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-define-property.js": -/*!******************************************************************!*\ - !*** ./node_modules/core-js/internals/object-define-property.js ***! - \******************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "./node_modules/core-js/internals/ie8-dom-define.js"); -var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(/*! ../internals/v8-prototype-define-bug */ "./node_modules/core-js/internals/v8-prototype-define-bug.js"); -var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); -var toPropertyKey = __webpack_require__(/*! ../internals/to-property-key */ "./node_modules/core-js/internals/to-property-key.js"); - -var $TypeError = TypeError; -// eslint-disable-next-line es/no-object-defineproperty -- safe -var $defineProperty = Object.defineProperty; -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe -var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -var ENUMERABLE = 'enumerable'; -var CONFIGURABLE = 'configurable'; -var WRITABLE = 'writable'; - -// `Object.defineProperty` method -// https://tc39.es/ecma262/#sec-object.defineproperty -exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) { - anObject(O); - P = toPropertyKey(P); - anObject(Attributes); - if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) { - var current = $getOwnPropertyDescriptor(O, P); - if (current && current[WRITABLE]) { - O[P] = Attributes.value; - Attributes = { - configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE], - enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE], - writable: false - }; - } - } return $defineProperty(O, P, Attributes); -} : $defineProperty : function defineProperty(O, P, Attributes) { - anObject(O); - P = toPropertyKey(P); - anObject(Attributes); - if (IE8_DOM_DEFINE) try { - return $defineProperty(O, P, Attributes); - } catch (error) { /* empty */ } - if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported'); - if ('value' in Attributes) O[P] = Attributes.value; - return O; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-get-own-property-descriptor.js": -/*!******************************************************************************!*\ - !*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***! - \******************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); -var propertyIsEnumerableModule = __webpack_require__(/*! ../internals/object-property-is-enumerable */ "./node_modules/core-js/internals/object-property-is-enumerable.js"); -var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "./node_modules/core-js/internals/create-property-descriptor.js"); -var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js"); -var toPropertyKey = __webpack_require__(/*! ../internals/to-property-key */ "./node_modules/core-js/internals/to-property-key.js"); -var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js"); -var IE8_DOM_DEFINE = __webpack_require__(/*! ../internals/ie8-dom-define */ "./node_modules/core-js/internals/ie8-dom-define.js"); - -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe -var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - -// `Object.getOwnPropertyDescriptor` method -// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor -exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { - O = toIndexedObject(O); - P = toPropertyKey(P); - if (IE8_DOM_DEFINE) try { - return $getOwnPropertyDescriptor(O, P); - } catch (error) { /* empty */ } - if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-get-own-property-names.js": -/*!*************************************************************************!*\ - !*** ./node_modules/core-js/internals/object-get-own-property-names.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -var internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ "./node_modules/core-js/internals/object-keys-internal.js"); -var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "./node_modules/core-js/internals/enum-bug-keys.js"); - -var hiddenKeys = enumBugKeys.concat('length', 'prototype'); - -// `Object.getOwnPropertyNames` method -// https://tc39.es/ecma262/#sec-object.getownpropertynames -// eslint-disable-next-line es/no-object-getownpropertynames -- safe -exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { - return internalObjectKeys(O, hiddenKeys); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-get-own-property-symbols.js": -/*!***************************************************************************!*\ - !*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***! - \***************************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe -exports.f = Object.getOwnPropertySymbols; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-is-prototype-of.js": -/*!******************************************************************!*\ - !*** ./node_modules/core-js/internals/object-is-prototype-of.js ***! - \******************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); - -module.exports = uncurryThis({}.isPrototypeOf); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-keys-internal.js": -/*!****************************************************************!*\ - !*** ./node_modules/core-js/internals/object-keys-internal.js ***! - \****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js"); -var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "./node_modules/core-js/internals/to-indexed-object.js"); -var indexOf = (__webpack_require__(/*! ../internals/array-includes */ "./node_modules/core-js/internals/array-includes.js").indexOf); -var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "./node_modules/core-js/internals/hidden-keys.js"); - -var push = uncurryThis([].push); - -module.exports = function (object, names) { - var O = toIndexedObject(object); - var i = 0; - var result = []; - var key; - for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key); - // Don't enum bug & hidden keys - while (names.length > i) if (hasOwn(O, key = names[i++])) { - ~indexOf(result, key) || push(result, key); - } - return result; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-keys.js": -/*!*******************************************************!*\ - !*** ./node_modules/core-js/internals/object-keys.js ***! - \*******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ "./node_modules/core-js/internals/object-keys-internal.js"); -var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "./node_modules/core-js/internals/enum-bug-keys.js"); - -// `Object.keys` method -// https://tc39.es/ecma262/#sec-object.keys -// eslint-disable-next-line es/no-object-keys -- safe -module.exports = Object.keys || function keys(O) { - return internalObjectKeys(O, enumBugKeys); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-property-is-enumerable.js": -/*!*************************************************************************!*\ - !*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***! - \*************************************************************************/ -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -var $propertyIsEnumerable = {}.propertyIsEnumerable; -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - -// Nashorn ~ JDK8 bug -var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1); - -// `Object.prototype.propertyIsEnumerable` method implementation -// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable -exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) { - var descriptor = getOwnPropertyDescriptor(this, V); - return !!descriptor && descriptor.enumerable; -} : $propertyIsEnumerable; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/object-to-string.js": -/*!************************************************************!*\ - !*** ./node_modules/core-js/internals/object-to-string.js ***! - \************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js"); -var classof = __webpack_require__(/*! ../internals/classof */ "./node_modules/core-js/internals/classof.js"); - -// `Object.prototype.toString` method implementation -// https://tc39.es/ecma262/#sec-object.prototype.tostring -module.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() { - return '[object ' + classof(this) + ']'; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/ordinary-to-primitive.js": -/*!*****************************************************************!*\ - !*** ./node_modules/core-js/internals/ordinary-to-primitive.js ***! - \*****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js"); - -var $TypeError = TypeError; - -// `OrdinaryToPrimitive` abstract operation -// https://tc39.es/ecma262/#sec-ordinarytoprimitive -module.exports = function (input, pref) { - var fn, val; - if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; - if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val; - if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; - throw $TypeError("Can't convert object to primitive value"); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/own-keys.js": -/*!****************************************************!*\ - !*** ./node_modules/core-js/internals/own-keys.js ***! - \****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js"); -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var getOwnPropertyNamesModule = __webpack_require__(/*! ../internals/object-get-own-property-names */ "./node_modules/core-js/internals/object-get-own-property-names.js"); -var getOwnPropertySymbolsModule = __webpack_require__(/*! ../internals/object-get-own-property-symbols */ "./node_modules/core-js/internals/object-get-own-property-symbols.js"); -var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); - -var concat = uncurryThis([].concat); - -// all object keys, includes non-enumerable and symbols -module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { - var keys = getOwnPropertyNamesModule.f(anObject(it)); - var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; - return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/regexp-exec-abstract.js": -/*!****************************************************************!*\ - !*** ./node_modules/core-js/internals/regexp-exec-abstract.js ***! - \****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); -var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var classof = __webpack_require__(/*! ../internals/classof-raw */ "./node_modules/core-js/internals/classof-raw.js"); -var regexpExec = __webpack_require__(/*! ../internals/regexp-exec */ "./node_modules/core-js/internals/regexp-exec.js"); - -var $TypeError = TypeError; - -// `RegExpExec` abstract operation -// https://tc39.es/ecma262/#sec-regexpexec -module.exports = function (R, S) { - var exec = R.exec; - if (isCallable(exec)) { - var result = call(exec, R, S); - if (result !== null) anObject(result); - return result; - } - if (classof(R) === 'RegExp') return call(regexpExec, R, S); - throw $TypeError('RegExp#exec called on incompatible receiver'); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/regexp-exec.js": -/*!*******************************************************!*\ - !*** ./node_modules/core-js/internals/regexp-exec.js ***! - \*******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */ -/* eslint-disable regexp/no-useless-quantifier -- testing */ -var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var toString = __webpack_require__(/*! ../internals/to-string */ "./node_modules/core-js/internals/to-string.js"); -var regexpFlags = __webpack_require__(/*! ../internals/regexp-flags */ "./node_modules/core-js/internals/regexp-flags.js"); -var stickyHelpers = __webpack_require__(/*! ../internals/regexp-sticky-helpers */ "./node_modules/core-js/internals/regexp-sticky-helpers.js"); -var shared = __webpack_require__(/*! ../internals/shared */ "./node_modules/core-js/internals/shared.js"); -var create = __webpack_require__(/*! ../internals/object-create */ "./node_modules/core-js/internals/object-create.js"); -var getInternalState = (__webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js").get); -var UNSUPPORTED_DOT_ALL = __webpack_require__(/*! ../internals/regexp-unsupported-dot-all */ "./node_modules/core-js/internals/regexp-unsupported-dot-all.js"); -var UNSUPPORTED_NCG = __webpack_require__(/*! ../internals/regexp-unsupported-ncg */ "./node_modules/core-js/internals/regexp-unsupported-ncg.js"); - -var nativeReplace = shared('native-string-replace', String.prototype.replace); -var nativeExec = RegExp.prototype.exec; -var patchedExec = nativeExec; -var charAt = uncurryThis(''.charAt); -var indexOf = uncurryThis(''.indexOf); -var replace = uncurryThis(''.replace); -var stringSlice = uncurryThis(''.slice); - -var UPDATES_LAST_INDEX_WRONG = (function () { - var re1 = /a/; - var re2 = /b*/g; - call(nativeExec, re1, 'a'); - call(nativeExec, re2, 'a'); - return re1.lastIndex !== 0 || re2.lastIndex !== 0; -})(); - -var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET; - -// nonparticipating capturing group, copied from es5-shim's String#split patch. -var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; - -var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; - -if (PATCH) { - patchedExec = function exec(string) { - var re = this; - var state = getInternalState(re); - var str = toString(string); - var raw = state.raw; - var result, reCopy, lastIndex, match, i, object, group; - - if (raw) { - raw.lastIndex = re.lastIndex; - result = call(patchedExec, raw, str); - re.lastIndex = raw.lastIndex; - return result; - } - - var groups = state.groups; - var sticky = UNSUPPORTED_Y && re.sticky; - var flags = call(regexpFlags, re); - var source = re.source; - var charsAdded = 0; - var strCopy = str; - - if (sticky) { - flags = replace(flags, 'y', ''); - if (indexOf(flags, 'g') === -1) { - flags += 'g'; - } - - strCopy = stringSlice(str, re.lastIndex); - // Support anchored sticky behavior. - if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) { - source = '(?: ' + source + ')'; - strCopy = ' ' + strCopy; - charsAdded++; - } - // ^(? + rx + ) is needed, in combination with some str slicing, to - // simulate the 'y' flag. - reCopy = new RegExp('^(?:' + source + ')', flags); - } - - if (NPCG_INCLUDED) { - reCopy = new RegExp('^' + source + '$(?!\\s)', flags); - } - if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; - - match = call(nativeExec, sticky ? reCopy : re, strCopy); - - if (sticky) { - if (match) { - match.input = stringSlice(match.input, charsAdded); - match[0] = stringSlice(match[0], charsAdded); - match.index = re.lastIndex; - re.lastIndex += match[0].length; - } else re.lastIndex = 0; - } else if (UPDATES_LAST_INDEX_WRONG && match) { - re.lastIndex = re.global ? match.index + match[0].length : lastIndex; - } - if (NPCG_INCLUDED && match && match.length > 1) { - // Fix browsers whose `exec` methods don't consistently return `undefined` - // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/ - call(nativeReplace, match[0], reCopy, function () { - for (i = 1; i < arguments.length - 2; i++) { - if (arguments[i] === undefined) match[i] = undefined; - } - }); - } - - if (match && groups) { - match.groups = object = create(null); - for (i = 0; i < groups.length; i++) { - group = groups[i]; - object[group[0]] = match[group[1]]; - } - } - - return match; - }; -} - -module.exports = patchedExec; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/regexp-flags.js": -/*!********************************************************!*\ - !*** ./node_modules/core-js/internals/regexp-flags.js ***! - \********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); - -// `RegExp.prototype.flags` getter implementation -// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags -module.exports = function () { - var that = anObject(this); - var result = ''; - if (that.hasIndices) result += 'd'; - if (that.global) result += 'g'; - if (that.ignoreCase) result += 'i'; - if (that.multiline) result += 'm'; - if (that.dotAll) result += 's'; - if (that.unicode) result += 'u'; - if (that.unicodeSets) result += 'v'; - if (that.sticky) result += 'y'; - return result; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/regexp-get-flags.js": -/*!************************************************************!*\ - !*** ./node_modules/core-js/internals/regexp-get-flags.js ***! - \************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); -var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js"); -var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "./node_modules/core-js/internals/object-is-prototype-of.js"); -var regExpFlags = __webpack_require__(/*! ../internals/regexp-flags */ "./node_modules/core-js/internals/regexp-flags.js"); - -var RegExpPrototype = RegExp.prototype; - -module.exports = function (R) { - var flags = R.flags; - return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R) - ? call(regExpFlags, R) : flags; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/regexp-sticky-helpers.js": -/*!*****************************************************************!*\ - !*** ./node_modules/core-js/internals/regexp-sticky-helpers.js ***! - \*****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); - -// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError -var $RegExp = global.RegExp; - -var UNSUPPORTED_Y = fails(function () { - var re = $RegExp('a', 'y'); - re.lastIndex = 2; - return re.exec('abcd') != null; -}); - -// UC Browser bug -// https://github.com/zloirock/core-js/issues/1008 -var MISSED_STICKY = UNSUPPORTED_Y || fails(function () { - return !$RegExp('a', 'y').sticky; -}); - -var BROKEN_CARET = UNSUPPORTED_Y || fails(function () { - // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 - var re = $RegExp('^r', 'gy'); - re.lastIndex = 2; - return re.exec('str') != null; -}); - -module.exports = { - BROKEN_CARET: BROKEN_CARET, - MISSED_STICKY: MISSED_STICKY, - UNSUPPORTED_Y: UNSUPPORTED_Y -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/regexp-unsupported-dot-all.js": -/*!**********************************************************************!*\ - !*** ./node_modules/core-js/internals/regexp-unsupported-dot-all.js ***! - \**********************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); - -// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError -var $RegExp = global.RegExp; - -module.exports = fails(function () { - var re = $RegExp('.', 's'); - return !(re.dotAll && re.exec('\n') && re.flags === 's'); -}); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/regexp-unsupported-ncg.js": -/*!******************************************************************!*\ - !*** ./node_modules/core-js/internals/regexp-unsupported-ncg.js ***! - \******************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); - -// babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError -var $RegExp = global.RegExp; - -module.exports = fails(function () { - var re = $RegExp('(?b)', 'g'); - return re.exec('b').groups.a !== 'b' || - 'b'.replace(re, '$c') !== 'bc'; -}); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/require-object-coercible.js": -/*!********************************************************************!*\ - !*** ./node_modules/core-js/internals/require-object-coercible.js ***! - \********************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ "./node_modules/core-js/internals/is-null-or-undefined.js"); - -var $TypeError = TypeError; - -// `RequireObjectCoercible` abstract operation -// https://tc39.es/ecma262/#sec-requireobjectcoercible -module.exports = function (it) { - if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it); - return it; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/shared-key.js": -/*!******************************************************!*\ - !*** ./node_modules/core-js/internals/shared-key.js ***! - \******************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var shared = __webpack_require__(/*! ../internals/shared */ "./node_modules/core-js/internals/shared.js"); -var uid = __webpack_require__(/*! ../internals/uid */ "./node_modules/core-js/internals/uid.js"); - -var keys = shared('keys'); - -module.exports = function (key) { - return keys[key] || (keys[key] = uid(key)); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/shared-store.js": -/*!********************************************************!*\ - !*** ./node_modules/core-js/internals/shared-store.js ***! - \********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); -var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "./node_modules/core-js/internals/define-global-property.js"); - -var SHARED = '__core-js_shared__'; -var store = global[SHARED] || defineGlobalProperty(SHARED, {}); - -module.exports = store; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/shared.js": -/*!**************************************************!*\ - !*** ./node_modules/core-js/internals/shared.js ***! - \**************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js"); -var store = __webpack_require__(/*! ../internals/shared-store */ "./node_modules/core-js/internals/shared-store.js"); - -(module.exports = function (key, value) { - return store[key] || (store[key] = value !== undefined ? value : {}); -})('versions', []).push({ - version: '3.27.2', - mode: IS_PURE ? 'pure' : 'global', - copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', - license: 'https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE', - source: 'https://github.com/zloirock/core-js' -}); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/string-multibyte.js": -/*!************************************************************!*\ - !*** ./node_modules/core-js/internals/string-multibyte.js ***! - \************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ "./node_modules/core-js/internals/to-integer-or-infinity.js"); -var toString = __webpack_require__(/*! ../internals/to-string */ "./node_modules/core-js/internals/to-string.js"); -var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js"); - -var charAt = uncurryThis(''.charAt); -var charCodeAt = uncurryThis(''.charCodeAt); -var stringSlice = uncurryThis(''.slice); - -var createMethod = function (CONVERT_TO_STRING) { - return function ($this, pos) { - var S = toString(requireObjectCoercible($this)); - var position = toIntegerOrInfinity(pos); - var size = S.length; - var first, second; - if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; - first = charCodeAt(S, position); - return first < 0xD800 || first > 0xDBFF || position + 1 === size - || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF - ? CONVERT_TO_STRING - ? charAt(S, position) - : first - : CONVERT_TO_STRING - ? stringSlice(S, position, position + 2) - : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; - }; -}; - -module.exports = { - // `String.prototype.codePointAt` method - // https://tc39.es/ecma262/#sec-string.prototype.codepointat - codeAt: createMethod(false), - // `String.prototype.at` method - // https://github.com/mathiasbynens/String.prototype.at - charAt: createMethod(true) -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/symbol-constructor-detection.js": -/*!************************************************************************!*\ - !*** ./node_modules/core-js/internals/symbol-constructor-detection.js ***! - \************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/* eslint-disable es/no-symbol -- required for testing */ -var V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ "./node_modules/core-js/internals/engine-v8-version.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); - -// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing -module.exports = !!Object.getOwnPropertySymbols && !fails(function () { - var symbol = Symbol(); - // Chrome 38 Symbol has incorrect toString conversion - // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances - return !String(symbol) || !(Object(symbol) instanceof Symbol) || - // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances - !Symbol.sham && V8_VERSION && V8_VERSION < 41; -}); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/to-absolute-index.js": -/*!*************************************************************!*\ - !*** ./node_modules/core-js/internals/to-absolute-index.js ***! - \*************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ "./node_modules/core-js/internals/to-integer-or-infinity.js"); - -var max = Math.max; -var min = Math.min; - -// Helper for a popular repeating case of the spec: -// Let integer be ? ToInteger(index). -// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). -module.exports = function (index, length) { - var integer = toIntegerOrInfinity(index); - return integer < 0 ? max(integer + length, 0) : min(integer, length); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/to-indexed-object.js": -/*!*************************************************************!*\ - !*** ./node_modules/core-js/internals/to-indexed-object.js ***! - \*************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// toObject with fallback for non-array-like ES3 strings -var IndexedObject = __webpack_require__(/*! ../internals/indexed-object */ "./node_modules/core-js/internals/indexed-object.js"); -var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js"); - -module.exports = function (it) { - return IndexedObject(requireObjectCoercible(it)); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/to-integer-or-infinity.js": -/*!******************************************************************!*\ - !*** ./node_modules/core-js/internals/to-integer-or-infinity.js ***! - \******************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var trunc = __webpack_require__(/*! ../internals/math-trunc */ "./node_modules/core-js/internals/math-trunc.js"); - -// `ToIntegerOrInfinity` abstract operation -// https://tc39.es/ecma262/#sec-tointegerorinfinity -module.exports = function (argument) { - var number = +argument; - // eslint-disable-next-line no-self-compare -- NaN check - return number !== number || number === 0 ? 0 : trunc(number); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/to-length.js": -/*!*****************************************************!*\ - !*** ./node_modules/core-js/internals/to-length.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ "./node_modules/core-js/internals/to-integer-or-infinity.js"); - -var min = Math.min; - -// `ToLength` abstract operation -// https://tc39.es/ecma262/#sec-tolength -module.exports = function (argument) { - return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/to-object.js": -/*!*****************************************************!*\ - !*** ./node_modules/core-js/internals/to-object.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js"); - -var $Object = Object; - -// `ToObject` abstract operation -// https://tc39.es/ecma262/#sec-toobject -module.exports = function (argument) { - return $Object(requireObjectCoercible(argument)); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/to-primitive.js": -/*!********************************************************!*\ - !*** ./node_modules/core-js/internals/to-primitive.js ***! - \********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); -var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js"); -var isSymbol = __webpack_require__(/*! ../internals/is-symbol */ "./node_modules/core-js/internals/is-symbol.js"); -var getMethod = __webpack_require__(/*! ../internals/get-method */ "./node_modules/core-js/internals/get-method.js"); -var ordinaryToPrimitive = __webpack_require__(/*! ../internals/ordinary-to-primitive */ "./node_modules/core-js/internals/ordinary-to-primitive.js"); -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js"); - -var $TypeError = TypeError; -var TO_PRIMITIVE = wellKnownSymbol('toPrimitive'); - -// `ToPrimitive` abstract operation -// https://tc39.es/ecma262/#sec-toprimitive -module.exports = function (input, pref) { - if (!isObject(input) || isSymbol(input)) return input; - var exoticToPrim = getMethod(input, TO_PRIMITIVE); - var result; - if (exoticToPrim) { - if (pref === undefined) pref = 'default'; - result = call(exoticToPrim, input, pref); - if (!isObject(result) || isSymbol(result)) return result; - throw $TypeError("Can't convert object to primitive value"); - } - if (pref === undefined) pref = 'number'; - return ordinaryToPrimitive(input, pref); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/to-property-key.js": -/*!***********************************************************!*\ - !*** ./node_modules/core-js/internals/to-property-key.js ***! - \***********************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var toPrimitive = __webpack_require__(/*! ../internals/to-primitive */ "./node_modules/core-js/internals/to-primitive.js"); -var isSymbol = __webpack_require__(/*! ../internals/is-symbol */ "./node_modules/core-js/internals/is-symbol.js"); - -// `ToPropertyKey` abstract operation -// https://tc39.es/ecma262/#sec-topropertykey -module.exports = function (argument) { - var key = toPrimitive(argument, 'string'); - return isSymbol(key) ? key : key + ''; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/to-string-tag-support.js": -/*!*****************************************************************!*\ - !*** ./node_modules/core-js/internals/to-string-tag-support.js ***! - \*****************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js"); - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); -var test = {}; - -test[TO_STRING_TAG] = 'z'; - -module.exports = String(test) === '[object z]'; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/to-string.js": -/*!*****************************************************!*\ - !*** ./node_modules/core-js/internals/to-string.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var classof = __webpack_require__(/*! ../internals/classof */ "./node_modules/core-js/internals/classof.js"); - -var $String = String; - -module.exports = function (argument) { - if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); - return $String(argument); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/try-to-string.js": -/*!*********************************************************!*\ - !*** ./node_modules/core-js/internals/try-to-string.js ***! - \*********************************************************/ -/***/ ((module) => { - -var $String = String; - -module.exports = function (argument) { - try { - return $String(argument); - } catch (error) { - return 'Object'; - } -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/uid.js": -/*!***********************************************!*\ - !*** ./node_modules/core-js/internals/uid.js ***! - \***********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); - -var id = 0; -var postfix = Math.random(); -var toString = uncurryThis(1.0.toString); - -module.exports = function (key) { - return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); -}; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/use-symbol-as-uid.js": -/*!*************************************************************!*\ - !*** ./node_modules/core-js/internals/use-symbol-as-uid.js ***! - \*************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/* eslint-disable es/no-symbol -- required for testing */ -var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ "./node_modules/core-js/internals/symbol-constructor-detection.js"); - -module.exports = NATIVE_SYMBOL - && !Symbol.sham - && typeof Symbol.iterator == 'symbol'; - - -/***/ }), - -/***/ "./node_modules/core-js/internals/v8-prototype-define-bug.js": -/*!*******************************************************************!*\ - !*** ./node_modules/core-js/internals/v8-prototype-define-bug.js ***! - \*******************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); - -// V8 ~ Chrome 36- -// https://bugs.chromium.org/p/v8/issues/detail?id=3334 -module.exports = DESCRIPTORS && fails(function () { - // eslint-disable-next-line es/no-object-defineproperty -- required for testing - return Object.defineProperty(function () { /* empty */ }, 'prototype', { - value: 42, - writable: false - }).prototype != 42; -}); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/weak-map-basic-detection.js": -/*!********************************************************************!*\ - !*** ./node_modules/core-js/internals/weak-map-basic-detection.js ***! - \********************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); - -var WeakMap = global.WeakMap; - -module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); - - -/***/ }), - -/***/ "./node_modules/core-js/internals/well-known-symbol.js": -/*!*************************************************************!*\ - !*** ./node_modules/core-js/internals/well-known-symbol.js ***! - \*************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js"); -var shared = __webpack_require__(/*! ../internals/shared */ "./node_modules/core-js/internals/shared.js"); -var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "./node_modules/core-js/internals/has-own-property.js"); -var uid = __webpack_require__(/*! ../internals/uid */ "./node_modules/core-js/internals/uid.js"); -var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ "./node_modules/core-js/internals/symbol-constructor-detection.js"); -var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "./node_modules/core-js/internals/use-symbol-as-uid.js"); - -var Symbol = global.Symbol; -var WellKnownSymbolsStore = shared('wks'); -var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid; - -module.exports = function (name) { - if (!hasOwn(WellKnownSymbolsStore, name)) { - WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name) - ? Symbol[name] - : createWellKnownSymbol('Symbol.' + name); - } return WellKnownSymbolsStore[name]; -}; - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es.array.for-each.js": -/*!***********************************************************!*\ - !*** ./node_modules/core-js/modules/es.array.for-each.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); -var forEach = __webpack_require__(/*! ../internals/array-for-each */ "./node_modules/core-js/internals/array-for-each.js"); - -// `Array.prototype.forEach` method -// https://tc39.es/ecma262/#sec-array.prototype.foreach -// eslint-disable-next-line es/no-array-prototype-foreach -- safe -$({ target: 'Array', proto: true, forced: [].forEach != forEach }, { - forEach: forEach -}); - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es.array.index-of.js": -/*!***********************************************************!*\ - !*** ./node_modules/core-js/modules/es.array.index-of.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -/* eslint-disable es/no-array-prototype-indexof -- required for testing */ -var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this-clause */ "./node_modules/core-js/internals/function-uncurry-this-clause.js"); -var $indexOf = (__webpack_require__(/*! ../internals/array-includes */ "./node_modules/core-js/internals/array-includes.js").indexOf); -var arrayMethodIsStrict = __webpack_require__(/*! ../internals/array-method-is-strict */ "./node_modules/core-js/internals/array-method-is-strict.js"); - -var nativeIndexOf = uncurryThis([].indexOf); - -var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0; -var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf'); - -// `Array.prototype.indexOf` method -// https://tc39.es/ecma262/#sec-array.prototype.indexof -$({ target: 'Array', proto: true, forced: FORCED }, { - indexOf: function indexOf(searchElement /* , fromIndex = 0 */) { - var fromIndex = arguments.length > 1 ? arguments[1] : undefined; - return NEGATIVE_ZERO - // convert -0 to +0 - ? nativeIndexOf(this, searchElement, fromIndex) || 0 - : $indexOf(this, searchElement, fromIndex); - } -}); - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es.object.assign.js": -/*!**********************************************************!*\ - !*** ./node_modules/core-js/modules/es.object.assign.js ***! - \**********************************************************/ -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); -var assign = __webpack_require__(/*! ../internals/object-assign */ "./node_modules/core-js/internals/object-assign.js"); - -// `Object.assign` method -// https://tc39.es/ecma262/#sec-object.assign -// eslint-disable-next-line es/no-object-assign -- required for testing -$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, { - assign: assign -}); - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es.object.define-property.js": -/*!*******************************************************************!*\ - !*** ./node_modules/core-js/modules/es.object.define-property.js ***! - \*******************************************************************/ -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "./node_modules/core-js/internals/descriptors.js"); -var defineProperty = (__webpack_require__(/*! ../internals/object-define-property */ "./node_modules/core-js/internals/object-define-property.js").f); - -// `Object.defineProperty` method -// https://tc39.es/ecma262/#sec-object.defineproperty -// eslint-disable-next-line es/no-object-defineproperty -- safe -$({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, { - defineProperty: defineProperty -}); - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es.object.to-string.js": -/*!*************************************************************!*\ - !*** ./node_modules/core-js/modules/es.object.to-string.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -var TO_STRING_TAG_SUPPORT = __webpack_require__(/*! ../internals/to-string-tag-support */ "./node_modules/core-js/internals/to-string-tag-support.js"); -var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "./node_modules/core-js/internals/define-built-in.js"); -var toString = __webpack_require__(/*! ../internals/object-to-string */ "./node_modules/core-js/internals/object-to-string.js"); - -// `Object.prototype.toString` method -// https://tc39.es/ecma262/#sec-object.prototype.tostring -if (!TO_STRING_TAG_SUPPORT) { - defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true }); -} - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es.regexp.exec.js": -/*!********************************************************!*\ - !*** ./node_modules/core-js/modules/es.regexp.exec.js ***! - \********************************************************/ -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js"); -var exec = __webpack_require__(/*! ../internals/regexp-exec */ "./node_modules/core-js/internals/regexp-exec.js"); - -// `RegExp.prototype.exec` method -// https://tc39.es/ecma262/#sec-regexp.prototype.exec -$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, { - exec: exec -}); - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es.regexp.to-string.js": -/*!*************************************************************!*\ - !*** ./node_modules/core-js/modules/es.regexp.to-string.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var PROPER_FUNCTION_NAME = (__webpack_require__(/*! ../internals/function-name */ "./node_modules/core-js/internals/function-name.js").PROPER); -var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "./node_modules/core-js/internals/define-built-in.js"); -var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); -var $toString = __webpack_require__(/*! ../internals/to-string */ "./node_modules/core-js/internals/to-string.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var getRegExpFlags = __webpack_require__(/*! ../internals/regexp-get-flags */ "./node_modules/core-js/internals/regexp-get-flags.js"); - -var TO_STRING = 'toString'; -var RegExpPrototype = RegExp.prototype; -var nativeToString = RegExpPrototype[TO_STRING]; - -var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); -// FF44- RegExp#toString has a wrong name -var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING; - -// `RegExp.prototype.toString` method -// https://tc39.es/ecma262/#sec-regexp.prototype.tostring -if (NOT_GENERIC || INCORRECT_NAME) { - defineBuiltIn(RegExp.prototype, TO_STRING, function toString() { - var R = anObject(this); - var pattern = $toString(R.source); - var flags = $toString(getRegExpFlags(R)); - return '/' + pattern + '/' + flags; - }, { unsafe: true }); -} - - -/***/ }), - -/***/ "./node_modules/core-js/modules/es.string.replace.js": -/*!***********************************************************!*\ - !*** ./node_modules/core-js/modules/es.string.replace.js ***! - \***********************************************************/ -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - -var apply = __webpack_require__(/*! ../internals/function-apply */ "./node_modules/core-js/internals/function-apply.js"); -var call = __webpack_require__(/*! ../internals/function-call */ "./node_modules/core-js/internals/function-call.js"); -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "./node_modules/core-js/internals/function-uncurry-this.js"); -var fixRegExpWellKnownSymbolLogic = __webpack_require__(/*! ../internals/fix-regexp-well-known-symbol-logic */ "./node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js"); -var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js"); -var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js"); -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "./node_modules/core-js/internals/is-callable.js"); -var isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ "./node_modules/core-js/internals/is-null-or-undefined.js"); -var toIntegerOrInfinity = __webpack_require__(/*! ../internals/to-integer-or-infinity */ "./node_modules/core-js/internals/to-integer-or-infinity.js"); -var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js"); -var toString = __webpack_require__(/*! ../internals/to-string */ "./node_modules/core-js/internals/to-string.js"); -var requireObjectCoercible = __webpack_require__(/*! ../internals/require-object-coercible */ "./node_modules/core-js/internals/require-object-coercible.js"); -var advanceStringIndex = __webpack_require__(/*! ../internals/advance-string-index */ "./node_modules/core-js/internals/advance-string-index.js"); -var getMethod = __webpack_require__(/*! ../internals/get-method */ "./node_modules/core-js/internals/get-method.js"); -var getSubstitution = __webpack_require__(/*! ../internals/get-substitution */ "./node_modules/core-js/internals/get-substitution.js"); -var regExpExec = __webpack_require__(/*! ../internals/regexp-exec-abstract */ "./node_modules/core-js/internals/regexp-exec-abstract.js"); -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js"); - -var REPLACE = wellKnownSymbol('replace'); -var max = Math.max; -var min = Math.min; -var concat = uncurryThis([].concat); -var push = uncurryThis([].push); -var stringIndexOf = uncurryThis(''.indexOf); -var stringSlice = uncurryThis(''.slice); - -var maybeToString = function (it) { - return it === undefined ? it : String(it); -}; - -// IE <= 11 replaces $0 with the whole match, as if it was $& -// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0 -var REPLACE_KEEPS_$0 = (function () { - // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing - return 'a'.replace(/./, '$0') === '$0'; -})(); - -// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string -var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () { - if (/./[REPLACE]) { - return /./[REPLACE]('a', '$0') === ''; - } - return false; -})(); - -var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { - var re = /./; - re.exec = function () { - var result = []; - result.groups = { a: '7' }; - return result; - }; - // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive - return ''.replace(re, '$') !== '7'; -}); - -// @@replace logic -fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) { - var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0'; - - return [ - // `String.prototype.replace` method - // https://tc39.es/ecma262/#sec-string.prototype.replace - function replace(searchValue, replaceValue) { - var O = requireObjectCoercible(this); - var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE); - return replacer - ? call(replacer, searchValue, O, replaceValue) - : call(nativeReplace, toString(O), searchValue, replaceValue); - }, - // `RegExp.prototype[@@replace]` method - // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace - function (string, replaceValue) { - var rx = anObject(this); - var S = toString(string); - - if ( - typeof replaceValue == 'string' && - stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 && - stringIndexOf(replaceValue, '$<') === -1 - ) { - var res = maybeCallNative(nativeReplace, rx, S, replaceValue); - if (res.done) return res.value; - } - - var functionalReplace = isCallable(replaceValue); - if (!functionalReplace) replaceValue = toString(replaceValue); - - var global = rx.global; - if (global) { - var fullUnicode = rx.unicode; - rx.lastIndex = 0; - } - var results = []; - while (true) { - var result = regExpExec(rx, S); - if (result === null) break; - - push(results, result); - if (!global) break; - - var matchStr = toString(result[0]); - if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); - } - - var accumulatedResult = ''; - var nextSourcePosition = 0; - for (var i = 0; i < results.length; i++) { - result = results[i]; - - var matched = toString(result[0]); - var position = max(min(toIntegerOrInfinity(result.index), S.length), 0); - var captures = []; - // NOTE: This is equivalent to - // captures = result.slice(1).map(maybeToString) - // but for some reason `nativeSlice.call(result, 1, result.length)` (called in - // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and - // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. - for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j])); - var namedCaptures = result.groups; - if (functionalReplace) { - var replacerArgs = concat([matched], captures, position, S); - if (namedCaptures !== undefined) push(replacerArgs, namedCaptures); - var replacement = toString(apply(replaceValue, undefined, replacerArgs)); - } else { - replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); - } - if (position >= nextSourcePosition) { - accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement; - nextSourcePosition = position + matched.length; - } - } - return accumulatedResult + stringSlice(S, nextSourcePosition); - } - ]; -}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE); - - -/***/ }), - -/***/ "./node_modules/dayjs/dayjs.min.js": -/*!*****************************************!*\ - !*** ./node_modules/dayjs/dayjs.min.js ***! - \*****************************************/ -/***/ (function(module) { - -!function(t,e){ true?module.exports=e():0}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t) { - -"use strict"; - - -// do not edit .js files directly - edit src/index.jst - - - -module.exports = function equal(a, b) { - if (a === b) return true; - - if (a && b && typeof a == 'object' && typeof b == 'object') { - if (a.constructor !== b.constructor) return false; - - var length, i, keys; - if (Array.isArray(a)) { - length = a.length; - if (length != b.length) return false; - for (i = length; i-- !== 0;) - if (!equal(a[i], b[i])) return false; - return true; - } - - - - if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags; - if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf(); - if (a.toString !== Object.prototype.toString) return a.toString() === b.toString(); - - keys = Object.keys(a); - length = keys.length; - if (length !== Object.keys(b).length) return false; - - for (i = length; i-- !== 0;) - if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false; - - for (i = length; i-- !== 0;) { - var key = keys[i]; - - if (!equal(a[key], b[key])) return false; - } - - return true; - } - - // true if both NaN, false otherwise - return a!==a && b!==b; -}; - - -/***/ }), - -/***/ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js ***! - \**********************************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; - - -var reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js"); - -/** - * Copyright 2015, Yahoo! Inc. - * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. - */ -var REACT_STATICS = { - childContextTypes: true, - contextType: true, - contextTypes: true, - defaultProps: true, - displayName: true, - getDefaultProps: true, - getDerivedStateFromError: true, - getDerivedStateFromProps: true, - mixins: true, - propTypes: true, - type: true -}; -var KNOWN_STATICS = { - name: true, - length: true, - prototype: true, - caller: true, - callee: true, - arguments: true, - arity: true -}; -var FORWARD_REF_STATICS = { - '$$typeof': true, - render: true, - defaultProps: true, - displayName: true, - propTypes: true -}; -var MEMO_STATICS = { - '$$typeof': true, - compare: true, - defaultProps: true, - displayName: true, - propTypes: true, - type: true -}; -var TYPE_STATICS = {}; -TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS; -TYPE_STATICS[reactIs.Memo] = MEMO_STATICS; - -function getStatics(component) { - // React v16.11 and below - if (reactIs.isMemo(component)) { - return MEMO_STATICS; - } // React v16.12 and above - - - return TYPE_STATICS[component['$$typeof']] || REACT_STATICS; -} - -var defineProperty = Object.defineProperty; -var getOwnPropertyNames = Object.getOwnPropertyNames; -var getOwnPropertySymbols = Object.getOwnPropertySymbols; -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; -var getPrototypeOf = Object.getPrototypeOf; -var objectPrototype = Object.prototype; -function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { - if (typeof sourceComponent !== 'string') { - // don't hoist over string (html) components - if (objectPrototype) { - var inheritedComponent = getPrototypeOf(sourceComponent); - - if (inheritedComponent && inheritedComponent !== objectPrototype) { - hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); - } - } - - var keys = getOwnPropertyNames(sourceComponent); - - if (getOwnPropertySymbols) { - keys = keys.concat(getOwnPropertySymbols(sourceComponent)); - } - - var targetStatics = getStatics(targetComponent); - var sourceStatics = getStatics(sourceComponent); - - for (var i = 0; i < keys.length; ++i) { - var key = keys[i]; - - if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) { - var descriptor = getOwnPropertyDescriptor(sourceComponent, key); - - try { - // Avoid failures from read-only properties - defineProperty(targetComponent, key, descriptor); - } catch (e) {} - } - } - } - - return targetComponent; -} - -module.exports = hoistNonReactStatics; - - -/***/ }), - -/***/ "./node_modules/ieee754/index.js": -/*!***************************************!*\ - !*** ./node_modules/ieee754/index.js ***! - \***************************************/ -/***/ ((__unused_webpack_module, exports) => { - -/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -exports.read = function (buffer, offset, isLE, mLen, nBytes) { - var e, m - var eLen = (nBytes * 8) - mLen - 1 - var eMax = (1 << eLen) - 1 - var eBias = eMax >> 1 - var nBits = -7 - var i = isLE ? (nBytes - 1) : 0 - var d = isLE ? -1 : 1 - var s = buffer[offset + i] - - i += d - - e = s & ((1 << (-nBits)) - 1) - s >>= (-nBits) - nBits += eLen - for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {} - - m = e & ((1 << (-nBits)) - 1) - e >>= (-nBits) - nBits += mLen - for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {} - - if (e === 0) { - e = 1 - eBias - } else if (e === eMax) { - return m ? NaN : ((s ? -1 : 1) * Infinity) - } else { - m = m + Math.pow(2, mLen) - e = e - eBias - } - return (s ? -1 : 1) * m * Math.pow(2, e - mLen) -} - -exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { - var e, m, c - var eLen = (nBytes * 8) - mLen - 1 - var eMax = (1 << eLen) - 1 - var eBias = eMax >> 1 - var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0) - var i = isLE ? 0 : (nBytes - 1) - var d = isLE ? 1 : -1 - var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0 - - value = Math.abs(value) - - if (isNaN(value) || value === Infinity) { - m = isNaN(value) ? 1 : 0 - e = eMax - } else { - e = Math.floor(Math.log(value) / Math.LN2) - if (value * (c = Math.pow(2, -e)) < 1) { - e-- - c *= 2 - } - if (e + eBias >= 1) { - value += rt / c - } else { - value += rt * Math.pow(2, 1 - eBias) - } - if (value * c >= 2) { - e++ - c /= 2 - } - - if (e + eBias >= eMax) { - m = 0 - e = eMax - } else if (e + eBias >= 1) { - m = ((value * c) - 1) * Math.pow(2, mLen) - e = e + eBias - } else { - m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen) - e = 0 - } - } - - for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {} - - e = (e << mLen) | m - eLen += mLen - for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {} - - buffer[offset + i - d] |= s * 128 -} - - -/***/ }), - -/***/ "./node_modules/lodash/_DataView.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_DataView.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"), - root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var DataView = getNative(root, 'DataView'); - -module.exports = DataView; - - -/***/ }), - -/***/ "./node_modules/lodash/_Hash.js": -/*!**************************************!*\ - !*** ./node_modules/lodash/_Hash.js ***! - \**************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"), - hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"), - hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"), - hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"), - hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js"); - -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; - -module.exports = Hash; - - -/***/ }), - -/***/ "./node_modules/lodash/_ListCache.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_ListCache.js ***! - \*******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"), - listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"), - listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"), - listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"), - listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js"); - -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; - -module.exports = ListCache; - - -/***/ }), - -/***/ "./node_modules/lodash/_Map.js": -/*!*************************************!*\ - !*** ./node_modules/lodash/_Map.js ***! - \*************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"), - root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'); - -module.exports = Map; - - -/***/ }), - -/***/ "./node_modules/lodash/_MapCache.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_MapCache.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"), - mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"), - mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"), - mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"), - mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js"); - -/** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function MapCache(entries) { - var index = -1, - length = entries == null ? 0 : entries.length; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } -} - -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; - -module.exports = MapCache; - - -/***/ }), - -/***/ "./node_modules/lodash/_Promise.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_Promise.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"), - root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var Promise = getNative(root, 'Promise'); - -module.exports = Promise; - - -/***/ }), - -/***/ "./node_modules/lodash/_Set.js": -/*!*************************************!*\ - !*** ./node_modules/lodash/_Set.js ***! - \*************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"), - root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var Set = getNative(root, 'Set'); - -module.exports = Set; - - -/***/ }), - -/***/ "./node_modules/lodash/_SetCache.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_SetCache.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"), - setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"), - setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js"); - -/** - * - * Creates an array cache object to store unique values. - * - * @private - * @constructor - * @param {Array} [values] The values to cache. - */ -function SetCache(values) { - var index = -1, - length = values == null ? 0 : values.length; - - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); - } -} - -// Add methods to `SetCache`. -SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; -SetCache.prototype.has = setCacheHas; - -module.exports = SetCache; - - -/***/ }), - -/***/ "./node_modules/lodash/_Stack.js": -/*!***************************************!*\ - !*** ./node_modules/lodash/_Stack.js ***! - \***************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"), - stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"), - stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"), - stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"), - stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"), - stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js"); - -/** - * Creates a stack cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; -} - -// Add methods to `Stack`. -Stack.prototype.clear = stackClear; -Stack.prototype['delete'] = stackDelete; -Stack.prototype.get = stackGet; -Stack.prototype.has = stackHas; -Stack.prototype.set = stackSet; - -module.exports = Stack; - - -/***/ }), - -/***/ "./node_modules/lodash/_Symbol.js": -/*!****************************************!*\ - !*** ./node_modules/lodash/_Symbol.js ***! - \****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"); - -/** Built-in value references. */ -var Symbol = root.Symbol; - -module.exports = Symbol; - - -/***/ }), - -/***/ "./node_modules/lodash/_Uint8Array.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_Uint8Array.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"); - -/** Built-in value references. */ -var Uint8Array = root.Uint8Array; - -module.exports = Uint8Array; - - -/***/ }), - -/***/ "./node_modules/lodash/_WeakMap.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_WeakMap.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"), - root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"); - -/* Built-in method references that are verified to be native. */ -var WeakMap = getNative(root, 'WeakMap'); - -module.exports = WeakMap; - - -/***/ }), - -/***/ "./node_modules/lodash/_apply.js": -/*!***************************************!*\ - !*** ./node_modules/lodash/_apply.js ***! - \***************************************/ -/***/ ((module) => { - -/** - * A faster alternative to `Function#apply`, this function invokes `func` - * with the `this` binding of `thisArg` and the arguments of `args`. - * - * @private - * @param {Function} func The function to invoke. - * @param {*} thisArg The `this` binding of `func`. - * @param {Array} args The arguments to invoke `func` with. - * @returns {*} Returns the result of `func`. - */ -function apply(func, thisArg, args) { - switch (args.length) { - case 0: return func.call(thisArg); - case 1: return func.call(thisArg, args[0]); - case 2: return func.call(thisArg, args[0], args[1]); - case 3: return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); -} - -module.exports = apply; - - -/***/ }), - -/***/ "./node_modules/lodash/_arrayFilter.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_arrayFilter.js ***! - \*********************************************/ -/***/ ((module) => { - -/** - * A specialized version of `_.filter` for arrays without support for - * iteratee shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {Array} Returns the new filtered array. - */ -function arrayFilter(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length, - resIndex = 0, - result = []; - - while (++index < length) { - var value = array[index]; - if (predicate(value, index, array)) { - result[resIndex++] = value; - } - } - return result; -} - -module.exports = arrayFilter; - - -/***/ }), - -/***/ "./node_modules/lodash/_arrayLikeKeys.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash/_arrayLikeKeys.js ***! - \***********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"), - isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"), - isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"), - isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"), - isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"), - isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Creates an array of the enumerable property names of the array-like `value`. - * - * @private - * @param {*} value The value to query. - * @param {boolean} inherited Specify returning inherited property names. - * @returns {Array} Returns the array of property names. - */ -function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), - isArg = !isArr && isArguments(value), - isBuff = !isArr && !isArg && isBuffer(value), - isType = !isArr && !isArg && !isBuff && isTypedArray(value), - skipIndexes = isArr || isArg || isBuff || isType, - result = skipIndexes ? baseTimes(value.length, String) : [], - length = result.length; - - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && - !(skipIndexes && ( - // Safari 9 has enumerable `arguments.length` in strict mode. - key == 'length' || - // Node.js 0.10 has enumerable non-index properties on buffers. - (isBuff && (key == 'offset' || key == 'parent')) || - // PhantomJS 2 has enumerable non-index properties on typed arrays. - (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || - // Skip index properties. - isIndex(key, length) - ))) { - result.push(key); - } - } - return result; -} - -module.exports = arrayLikeKeys; - - -/***/ }), - -/***/ "./node_modules/lodash/_arrayMap.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_arrayMap.js ***! - \******************************************/ -/***/ ((module) => { - -/** - * A specialized version of `_.map` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ -function arrayMap(array, iteratee) { - var index = -1, - length = array == null ? 0 : array.length, - result = Array(length); - - while (++index < length) { - result[index] = iteratee(array[index], index, array); - } - return result; -} - -module.exports = arrayMap; - - -/***/ }), - -/***/ "./node_modules/lodash/_arrayPush.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_arrayPush.js ***! - \*******************************************/ -/***/ ((module) => { - -/** - * Appends the elements of `values` to `array`. - * - * @private - * @param {Array} array The array to modify. - * @param {Array} values The values to append. - * @returns {Array} Returns `array`. - */ -function arrayPush(array, values) { - var index = -1, - length = values.length, - offset = array.length; - - while (++index < length) { - array[offset + index] = values[index]; - } - return array; -} - -module.exports = arrayPush; - - -/***/ }), - -/***/ "./node_modules/lodash/_arraySome.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_arraySome.js ***! - \*******************************************/ -/***/ ((module) => { - -/** - * A specialized version of `_.some` for arrays without support for iteratee - * shorthands. - * - * @private - * @param {Array} [array] The array to iterate over. - * @param {Function} predicate The function invoked per iteration. - * @returns {boolean} Returns `true` if any element passes the predicate check, - * else `false`. - */ -function arraySome(array, predicate) { - var index = -1, - length = array == null ? 0 : array.length; - - while (++index < length) { - if (predicate(array[index], index, array)) { - return true; - } - } - return false; -} - -module.exports = arraySome; - - -/***/ }), - -/***/ "./node_modules/lodash/_assocIndexOf.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_assocIndexOf.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"); - -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} - -module.exports = assocIndexOf; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseEach.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_baseEach.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"), - createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js"); - -/** - * The base implementation of `_.forEach` without support for iteratee shorthands. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array|Object} Returns `collection`. - */ -var baseEach = createBaseEach(baseForOwn); - -module.exports = baseEach; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseFlatten.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseFlatten.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"), - isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js"); - -/** - * The base implementation of `_.flatten` with support for restricting flattening. - * - * @private - * @param {Array} array The array to flatten. - * @param {number} depth The maximum recursion depth. - * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. - * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. - * @param {Array} [result=[]] The initial result value. - * @returns {Array} Returns the new flattened array. - */ -function baseFlatten(array, depth, predicate, isStrict, result) { - var index = -1, - length = array.length; - - predicate || (predicate = isFlattenable); - result || (result = []); - - while (++index < length) { - var value = array[index]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - // Recursively flatten arrays (susceptible to call stack limits). - baseFlatten(value, depth - 1, predicate, isStrict, result); - } else { - arrayPush(result, value); - } - } else if (!isStrict) { - result[result.length] = value; - } - } - return result; -} - -module.exports = baseFlatten; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseFor.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_baseFor.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js"); - -/** - * The base implementation of `baseForOwn` which iterates over `object` - * properties returned by `keysFunc` and invokes `iteratee` for each property. - * Iteratee functions may exit iteration early by explicitly returning `false`. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @param {Function} keysFunc The function to get the keys of `object`. - * @returns {Object} Returns `object`. - */ -var baseFor = createBaseFor(); - -module.exports = baseFor; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseForOwn.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_baseForOwn.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"), - keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"); - -/** - * The base implementation of `_.forOwn` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Object} Returns `object`. - */ -function baseForOwn(object, iteratee) { - return object && baseFor(object, iteratee, keys); -} - -module.exports = baseForOwn; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseGet.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_baseGet.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"), - toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js"); - -/** - * The base implementation of `_.get` without support for default values. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @returns {*} Returns the resolved value. - */ -function baseGet(object, path) { - path = castPath(path, object); - - var index = 0, - length = path.length; - - while (object != null && index < length) { - object = object[toKey(path[index++])]; - } - return (index && index == length) ? object : undefined; -} - -module.exports = baseGet; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseGetAllKeys.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_baseGetAllKeys.js ***! - \************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"), - isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"); - -/** - * The base implementation of `getAllKeys` and `getAllKeysIn` which uses - * `keysFunc` and `symbolsFunc` to get the enumerable property names and - * symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Function} keysFunc The function to get the keys of `object`. - * @param {Function} symbolsFunc The function to get the symbols of `object`. - * @returns {Array} Returns the array of property names and symbols. - */ -function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); -} - -module.exports = baseGetAllKeys; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseGetTag.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_baseGetTag.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"), - getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"), - objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js"); - -/** `Object#toString` result references. */ -var nullTag = '[object Null]', - undefinedTag = '[object Undefined]'; - -/** Built-in value references. */ -var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - -/** - * The base implementation of `getTag` without fallbacks for buggy environments. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -function baseGetTag(value) { - if (value == null) { - return value === undefined ? undefinedTag : nullTag; - } - return (symToStringTag && symToStringTag in Object(value)) - ? getRawTag(value) - : objectToString(value); -} - -module.exports = baseGetTag; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseHasIn.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_baseHasIn.js ***! - \*******************************************/ -/***/ ((module) => { - -/** - * The base implementation of `_.hasIn` without support for deep paths. - * - * @private - * @param {Object} [object] The object to query. - * @param {Array|string} key The key to check. - * @returns {boolean} Returns `true` if `key` exists, else `false`. - */ -function baseHasIn(object, key) { - return object != null && key in Object(object); -} - -module.exports = baseHasIn; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseIsArguments.js": -/*!*************************************************!*\ - !*** ./node_modules/lodash/_baseIsArguments.js ***! - \*************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js"); - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]'; - -/** - * The base implementation of `_.isArguments`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - */ -function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; -} - -module.exports = baseIsArguments; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseIsEqual.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseIsEqual.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js"); - -/** - * The base implementation of `_.isEqual` which supports partial comparisons - * and tracks traversed objects. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @param {boolean} bitmask The bitmask flags. - * 1 - Unordered comparison - * 2 - Partial comparison - * @param {Function} [customizer] The function to customize comparisons. - * @param {Object} [stack] Tracks traversed `value` and `other` objects. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - */ -function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); -} - -module.exports = baseIsEqual; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseIsEqualDeep.js": -/*!*************************************************!*\ - !*** ./node_modules/lodash/_baseIsEqualDeep.js ***! - \*************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"), - equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"), - equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"), - equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"), - getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"), - isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"), - isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"), - isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1; - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - objectTag = '[object Object]'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * A specialized version of `baseIsEqual` for arrays and objects which performs - * deep comparisons and tracks traversed objects enabling objects with circular - * references to be compared. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} [stack] Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), - othIsArr = isArray(other), - objTag = objIsArr ? arrayTag : getTag(object), - othTag = othIsArr ? arrayTag : getTag(other); - - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - - var objIsObj = objTag == objectTag, - othIsObj = othTag == objectTag, - isSameTag = objTag == othTag; - - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack); - return (objIsArr || isTypedArray(object)) - ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) - : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'), - othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__'); - - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, - othUnwrapped = othIsWrapped ? other.value() : other; - - stack || (stack = new Stack); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); -} - -module.exports = baseIsEqualDeep; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseIsMatch.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseIsMatch.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"), - baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - -/** - * The base implementation of `_.isMatch` without support for iteratee shorthands. - * - * @private - * @param {Object} object The object to inspect. - * @param {Object} source The object of property values to match. - * @param {Array} matchData The property names, values, and compare flags to match. - * @param {Function} [customizer] The function to customize comparisons. - * @returns {boolean} Returns `true` if `object` is a match, else `false`. - */ -function baseIsMatch(object, source, matchData, customizer) { - var index = matchData.length, - length = index, - noCustomizer = !customizer; - - if (object == null) { - return !length; - } - object = Object(object); - while (index--) { - var data = matchData[index]; - if ((noCustomizer && data[2]) - ? data[1] !== object[data[0]] - : !(data[0] in object) - ) { - return false; - } - } - while (++index < length) { - data = matchData[index]; - var key = data[0], - objValue = object[key], - srcValue = data[1]; - - if (noCustomizer && data[2]) { - if (objValue === undefined && !(key in object)) { - return false; - } - } else { - var stack = new Stack; - if (customizer) { - var result = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result === undefined - ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) - : result - )) { - return false; - } - } - } - return true; -} - -module.exports = baseIsMatch; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseIsNative.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_baseIsNative.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"), - isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"), - isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"), - toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js"); - -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; - -/** Used for built-in method references. */ -var funcProto = Function.prototype, - objectProto = Object.prototype; - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); - -/** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. - */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -module.exports = baseIsNative; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseIsTypedArray.js": -/*!**************************************************!*\ - !*** ./node_modules/lodash/_baseIsTypedArray.js ***! - \**************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"), - isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js"); - -/** `Object#toString` result references. */ -var argsTag = '[object Arguments]', - arrayTag = '[object Array]', - boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - funcTag = '[object Function]', - mapTag = '[object Map]', - numberTag = '[object Number]', - objectTag = '[object Object]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - weakMapTag = '[object WeakMap]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]', - float32Tag = '[object Float32Array]', - float64Tag = '[object Float64Array]', - int8Tag = '[object Int8Array]', - int16Tag = '[object Int16Array]', - int32Tag = '[object Int32Array]', - uint8Tag = '[object Uint8Array]', - uint8ClampedTag = '[object Uint8ClampedArray]', - uint16Tag = '[object Uint16Array]', - uint32Tag = '[object Uint32Array]'; - -/** Used to identify `toStringTag` values of typed arrays. */ -var typedArrayTags = {}; -typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = -typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = -typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = -typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = -typedArrayTags[uint32Tag] = true; -typedArrayTags[argsTag] = typedArrayTags[arrayTag] = -typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = -typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = -typedArrayTags[errorTag] = typedArrayTags[funcTag] = -typedArrayTags[mapTag] = typedArrayTags[numberTag] = -typedArrayTags[objectTag] = typedArrayTags[regexpTag] = -typedArrayTags[setTag] = typedArrayTags[stringTag] = -typedArrayTags[weakMapTag] = false; - -/** - * The base implementation of `_.isTypedArray` without Node.js optimizations. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - */ -function baseIsTypedArray(value) { - return isObjectLike(value) && - isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; -} - -module.exports = baseIsTypedArray; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseIteratee.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_baseIteratee.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"), - baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"), - identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"), - isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"), - property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js"); - -/** - * The base implementation of `_.iteratee`. - * - * @private - * @param {*} [value=_.identity] The value to convert to an iteratee. - * @returns {Function} Returns the iteratee. - */ -function baseIteratee(value) { - // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9. - // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details. - if (typeof value == 'function') { - return value; - } - if (value == null) { - return identity; - } - if (typeof value == 'object') { - return isArray(value) - ? baseMatchesProperty(value[0], value[1]) - : baseMatches(value); - } - return property(value); -} - -module.exports = baseIteratee; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseKeys.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_baseKeys.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"), - nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - */ -function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != 'constructor') { - result.push(key); - } - } - return result; -} - -module.exports = baseKeys; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseMap.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_baseMap.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js"), - isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"); - -/** - * The base implementation of `_.map` without support for iteratee shorthands. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the new mapped array. - */ -function baseMap(collection, iteratee) { - var index = -1, - result = isArrayLike(collection) ? Array(collection.length) : []; - - baseEach(collection, function(value, key, collection) { - result[++index] = iteratee(value, key, collection); - }); - return result; -} - -module.exports = baseMap; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseMatches.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseMatches.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"), - getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"), - matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"); - -/** - * The base implementation of `_.matches` which doesn't clone `source`. - * - * @private - * @param {Object} source The object of property values to match. - * @returns {Function} Returns the new spec function. - */ -function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; -} - -module.exports = baseMatches; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseMatchesProperty.js": -/*!*****************************************************!*\ - !*** ./node_modules/lodash/_baseMatchesProperty.js ***! - \*****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"), - get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"), - hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"), - isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"), - isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"), - matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"), - toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - -/** - * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`. - * - * @private - * @param {string} path The path of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. - */ -function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - return function(object) { - var objValue = get(object, path); - return (objValue === undefined && objValue === srcValue) - ? hasIn(object, path) - : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; -} - -module.exports = baseMatchesProperty; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseOrderBy.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_baseOrderBy.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"), - baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"), - baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"), - baseMap = __webpack_require__(/*! ./_baseMap */ "./node_modules/lodash/_baseMap.js"), - baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "./node_modules/lodash/_baseSortBy.js"), - baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"), - compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "./node_modules/lodash/_compareMultiple.js"), - identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"), - isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"); - -/** - * The base implementation of `_.orderBy` without param guards. - * - * @private - * @param {Array|Object} collection The collection to iterate over. - * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by. - * @param {string[]} orders The sort orders of `iteratees`. - * @returns {Array} Returns the new sorted array. - */ -function baseOrderBy(collection, iteratees, orders) { - if (iteratees.length) { - iteratees = arrayMap(iteratees, function(iteratee) { - if (isArray(iteratee)) { - return function(value) { - return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee); - } - } - return iteratee; - }); - } else { - iteratees = [identity]; - } - - var index = -1; - iteratees = arrayMap(iteratees, baseUnary(baseIteratee)); - - var result = baseMap(collection, function(value, key, collection) { - var criteria = arrayMap(iteratees, function(iteratee) { - return iteratee(value); - }); - return { 'criteria': criteria, 'index': ++index, 'value': value }; - }); - - return baseSortBy(result, function(object, other) { - return compareMultiple(object, other, orders); - }); -} - -module.exports = baseOrderBy; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseProperty.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_baseProperty.js ***! - \**********************************************/ -/***/ ((module) => { - -/** - * The base implementation of `_.property` without support for deep paths. - * - * @private - * @param {string} key The key of the property to get. - * @returns {Function} Returns the new accessor function. - */ -function baseProperty(key) { - return function(object) { - return object == null ? undefined : object[key]; - }; -} - -module.exports = baseProperty; - - -/***/ }), - -/***/ "./node_modules/lodash/_basePropertyDeep.js": -/*!**************************************************!*\ - !*** ./node_modules/lodash/_basePropertyDeep.js ***! - \**************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"); - -/** - * A specialized version of `baseProperty` which supports deep paths. - * - * @private - * @param {Array|string} path The path of the property to get. - * @returns {Function} Returns the new accessor function. - */ -function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; -} - -module.exports = basePropertyDeep; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseRest.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_baseRest.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"), - overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"), - setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js"); - -/** - * The base implementation of `_.rest` which doesn't validate or coerce arguments. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @returns {Function} Returns the new function. - */ -function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ''); -} - -module.exports = baseRest; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseSetToString.js": -/*!*************************************************!*\ - !*** ./node_modules/lodash/_baseSetToString.js ***! - \*************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"), - defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"), - identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"); - -/** - * The base implementation of `setToString` without support for hot loop shorting. - * - * @private - * @param {Function} func The function to modify. - * @param {Function} string The `toString` result. - * @returns {Function} Returns `func`. - */ -var baseSetToString = !defineProperty ? identity : function(func, string) { - return defineProperty(func, 'toString', { - 'configurable': true, - 'enumerable': false, - 'value': constant(string), - 'writable': true - }); -}; - -module.exports = baseSetToString; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseSortBy.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_baseSortBy.js ***! - \********************************************/ -/***/ ((module) => { - -/** - * The base implementation of `_.sortBy` which uses `comparer` to define the - * sort order of `array` and replaces criteria objects with their corresponding - * values. - * - * @private - * @param {Array} array The array to sort. - * @param {Function} comparer The function to define sort order. - * @returns {Array} Returns `array`. - */ -function baseSortBy(array, comparer) { - var length = array.length; - - array.sort(comparer); - while (length--) { - array[length] = array[length].value; - } - return array; -} - -module.exports = baseSortBy; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseTimes.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_baseTimes.js ***! - \*******************************************/ -/***/ ((module) => { - -/** - * The base implementation of `_.times` without support for iteratee shorthands - * or max array length checks. - * - * @private - * @param {number} n The number of times to invoke `iteratee`. - * @param {Function} iteratee The function invoked per iteration. - * @returns {Array} Returns the array of results. - */ -function baseTimes(n, iteratee) { - var index = -1, - result = Array(n); - - while (++index < n) { - result[index] = iteratee(index); - } - return result; -} - -module.exports = baseTimes; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseToString.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_baseToString.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"), - arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"), - isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"), - isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js"); - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined; - -/** - * The base implementation of `_.toString` which doesn't convert nullish - * values to empty strings. - * - * @private - * @param {*} value The value to process. - * @returns {string} Returns the string. - */ -function baseToString(value) { - // Exit early for strings to avoid a performance hit in some environments. - if (typeof value == 'string') { - return value; - } - if (isArray(value)) { - // Recursively convert values (susceptible to call stack limits). - return arrayMap(value, baseToString) + ''; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ''; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -module.exports = baseToString; - - -/***/ }), - -/***/ "./node_modules/lodash/_baseUnary.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_baseUnary.js ***! - \*******************************************/ -/***/ ((module) => { - -/** - * The base implementation of `_.unary` without support for storing metadata. - * - * @private - * @param {Function} func The function to cap arguments for. - * @returns {Function} Returns the new capped function. - */ -function baseUnary(func) { - return function(value) { - return func(value); - }; -} - -module.exports = baseUnary; - - -/***/ }), - -/***/ "./node_modules/lodash/_cacheHas.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_cacheHas.js ***! - \******************************************/ -/***/ ((module) => { - -/** - * Checks if a `cache` value for `key` exists. - * - * @private - * @param {Object} cache The cache to query. - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function cacheHas(cache, key) { - return cache.has(key); -} - -module.exports = cacheHas; - - -/***/ }), - -/***/ "./node_modules/lodash/_castPath.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_castPath.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"), - isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"), - stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"), - toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js"); - -/** - * Casts `value` to a path array if it's not one. - * - * @private - * @param {*} value The value to inspect. - * @param {Object} [object] The object to query keys on. - * @returns {Array} Returns the cast property path array. - */ -function castPath(value, object) { - if (isArray(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString(value)); -} - -module.exports = castPath; - - -/***/ }), - -/***/ "./node_modules/lodash/_compareAscending.js": -/*!**************************************************!*\ - !*** ./node_modules/lodash/_compareAscending.js ***! - \**************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js"); - -/** - * Compares values to sort them in ascending order. - * - * @private - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {number} Returns the sort order indicator for `value`. - */ -function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = value !== undefined, - valIsNull = value === null, - valIsReflexive = value === value, - valIsSymbol = isSymbol(value); - - var othIsDefined = other !== undefined, - othIsNull = other === null, - othIsReflexive = other === other, - othIsSymbol = isSymbol(other); - - if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) || - (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) || - (valIsNull && othIsDefined && othIsReflexive) || - (!valIsDefined && othIsReflexive) || - !valIsReflexive) { - return 1; - } - if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) || - (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) || - (othIsNull && valIsDefined && valIsReflexive) || - (!othIsDefined && valIsReflexive) || - !othIsReflexive) { - return -1; - } - } - return 0; -} - -module.exports = compareAscending; - - -/***/ }), - -/***/ "./node_modules/lodash/_compareMultiple.js": -/*!*************************************************!*\ - !*** ./node_modules/lodash/_compareMultiple.js ***! - \*************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var compareAscending = __webpack_require__(/*! ./_compareAscending */ "./node_modules/lodash/_compareAscending.js"); - -/** - * Used by `_.orderBy` to compare multiple properties of a value to another - * and stable sort them. - * - * If `orders` is unspecified, all values are sorted in ascending order. Otherwise, - * specify an order of "desc" for descending or "asc" for ascending sort order - * of corresponding values. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {boolean[]|string[]} orders The order to sort by for each property. - * @returns {number} Returns the sort order indicator for `object`. - */ -function compareMultiple(object, other, orders) { - var index = -1, - objCriteria = object.criteria, - othCriteria = other.criteria, - length = objCriteria.length, - ordersLength = orders.length; - - while (++index < length) { - var result = compareAscending(objCriteria[index], othCriteria[index]); - if (result) { - if (index >= ordersLength) { - return result; - } - var order = orders[index]; - return result * (order == 'desc' ? -1 : 1); - } - } - // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications - // that causes it, under certain circumstances, to provide the same value for - // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247 - // for more details. - // - // This also ensures a stable sort in V8 and other engines. - // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details. - return object.index - other.index; -} - -module.exports = compareMultiple; - - -/***/ }), - -/***/ "./node_modules/lodash/_coreJsData.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_coreJsData.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"); - -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; - -module.exports = coreJsData; - - -/***/ }), - -/***/ "./node_modules/lodash/_createBaseEach.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_createBaseEach.js ***! - \************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"); - -/** - * Creates a `baseEach` or `baseEachRight` function. - * - * @private - * @param {Function} eachFunc The function to iterate over a collection. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. - */ -function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee); - } - var length = collection.length, - index = fromRight ? length : -1, - iterable = Object(collection); - - while ((fromRight ? index-- : ++index < length)) { - if (iteratee(iterable[index], index, iterable) === false) { - break; - } - } - return collection; - }; -} - -module.exports = createBaseEach; - - -/***/ }), - -/***/ "./node_modules/lodash/_createBaseFor.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash/_createBaseFor.js ***! - \***********************************************/ -/***/ ((module) => { - -/** - * Creates a base function for methods like `_.forIn` and `_.forOwn`. - * - * @private - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {Function} Returns the new base function. - */ -function createBaseFor(fromRight) { - return function(object, iteratee, keysFunc) { - var index = -1, - iterable = Object(object), - props = keysFunc(object), - length = props.length; - - while (length--) { - var key = props[fromRight ? length : ++index]; - if (iteratee(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; -} - -module.exports = createBaseFor; - - -/***/ }), - -/***/ "./node_modules/lodash/_defineProperty.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_defineProperty.js ***! - \************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"); - -var defineProperty = (function() { - try { - var func = getNative(Object, 'defineProperty'); - func({}, '', {}); - return func; - } catch (e) {} -}()); - -module.exports = defineProperty; - - -/***/ }), - -/***/ "./node_modules/lodash/_equalArrays.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_equalArrays.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"), - arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"), - cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - -/** - * A specialized version of `baseIsEqualDeep` for arrays with support for - * partial deep comparisons. - * - * @private - * @param {Array} array The array to compare. - * @param {Array} other The other array to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `array` and `other` objects. - * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`. - */ -function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - arrLength = array.length, - othLength = other.length; - - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - // Check that cyclic values are equal. - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index = -1, - result = true, - seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined; - - stack.set(array, other); - stack.set(other, array); - - // Ignore non-index properties. - while (++index < arrLength) { - var arrValue = array[index], - othValue = other[index]; - - if (customizer) { - var compared = isPartial - ? customizer(othValue, arrValue, index, other, array, stack) - : customizer(arrValue, othValue, index, array, other, stack); - } - if (compared !== undefined) { - if (compared) { - continue; - } - result = false; - break; - } - // Recursively compare arrays (susceptible to call stack limits). - if (seen) { - if (!arraySome(other, function(othValue, othIndex) { - if (!cacheHas(seen, othIndex) && - (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result = false; - break; - } - } else if (!( - arrValue === othValue || - equalFunc(arrValue, othValue, bitmask, customizer, stack) - )) { - result = false; - break; - } - } - stack['delete'](array); - stack['delete'](other); - return result; -} - -module.exports = equalArrays; - - -/***/ }), - -/***/ "./node_modules/lodash/_equalByTag.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_equalByTag.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"), - Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"), - eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"), - equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"), - mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"), - setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1, - COMPARE_UNORDERED_FLAG = 2; - -/** `Object#toString` result references. */ -var boolTag = '[object Boolean]', - dateTag = '[object Date]', - errorTag = '[object Error]', - mapTag = '[object Map]', - numberTag = '[object Number]', - regexpTag = '[object RegExp]', - setTag = '[object Set]', - stringTag = '[object String]', - symbolTag = '[object Symbol]'; - -var arrayBufferTag = '[object ArrayBuffer]', - dataViewTag = '[object DataView]'; - -/** Used to convert symbols to primitives and strings. */ -var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolValueOf = symbolProto ? symbolProto.valueOf : undefined; - -/** - * A specialized version of `baseIsEqualDeep` for comparing objects of - * the same `toStringTag`. - * - * **Note:** This function only supports comparing values with tags of - * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {string} tag The `toStringTag` of the objects to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if ((object.byteLength != other.byteLength) || - (object.byteOffset != other.byteOffset)) { - return false; - } - object = object.buffer; - other = other.buffer; - - case arrayBufferTag: - if ((object.byteLength != other.byteLength) || - !equalFunc(new Uint8Array(object), new Uint8Array(other))) { - return false; - } - return true; - - case boolTag: - case dateTag: - case numberTag: - // Coerce booleans to `1` or `0` and dates to milliseconds. - // Invalid dates are coerced to `NaN`. - return eq(+object, +other); - - case errorTag: - return object.name == other.name && object.message == other.message; - - case regexpTag: - case stringTag: - // Coerce regexes to strings and treat strings, primitives and objects, - // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring - // for more details. - return object == (other + ''); - - case mapTag: - var convert = mapToArray; - - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - - if (object.size != other.size && !isPartial) { - return false; - } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - - // Recursively compare objects (susceptible to call stack limits). - stack.set(object, other); - var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack['delete'](object); - return result; - - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; -} - -module.exports = equalByTag; - - -/***/ }), - -/***/ "./node_modules/lodash/_equalObjects.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_equalObjects.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"); - -/** Used to compose bitmasks for value comparisons. */ -var COMPARE_PARTIAL_FLAG = 1; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * A specialized version of `baseIsEqualDeep` for objects with support for - * partial deep comparisons. - * - * @private - * @param {Object} object The object to compare. - * @param {Object} other The other object to compare. - * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details. - * @param {Function} customizer The function to customize comparisons. - * @param {Function} equalFunc The function to determine equivalents of values. - * @param {Object} stack Tracks traversed `object` and `other` objects. - * @returns {boolean} Returns `true` if the objects are equivalent, else `false`. - */ -function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, - objProps = getAllKeys(object), - objLength = objProps.length, - othProps = getAllKeys(other), - othLength = othProps.length; - - if (objLength != othLength && !isPartial) { - return false; - } - var index = objLength; - while (index--) { - var key = objProps[index]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { - return false; - } - } - // Check that cyclic values are equal. - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result = true; - stack.set(object, other); - stack.set(other, object); - - var skipCtor = isPartial; - while (++index < objLength) { - key = objProps[index]; - var objValue = object[key], - othValue = other[key]; - - if (customizer) { - var compared = isPartial - ? customizer(othValue, objValue, key, other, object, stack) - : customizer(objValue, othValue, key, object, other, stack); - } - // Recursively compare objects (susceptible to call stack limits). - if (!(compared === undefined - ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack)) - : compared - )) { - result = false; - break; - } - skipCtor || (skipCtor = key == 'constructor'); - } - if (result && !skipCtor) { - var objCtor = object.constructor, - othCtor = other.constructor; - - // Non `Object` object instances with different constructors are not equal. - if (objCtor != othCtor && - ('constructor' in object && 'constructor' in other) && - !(typeof objCtor == 'function' && objCtor instanceof objCtor && - typeof othCtor == 'function' && othCtor instanceof othCtor)) { - result = false; - } - } - stack['delete'](object); - stack['delete'](other); - return result; -} - -module.exports = equalObjects; - - -/***/ }), - -/***/ "./node_modules/lodash/_freeGlobal.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_freeGlobal.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g; - -module.exports = freeGlobal; - - -/***/ }), - -/***/ "./node_modules/lodash/_getAllKeys.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_getAllKeys.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"), - getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"), - keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"); - -/** - * Creates an array of own enumerable property names and symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names and symbols. - */ -function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); -} - -module.exports = getAllKeys; - - -/***/ }), - -/***/ "./node_modules/lodash/_getMapData.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_getMapData.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js"); - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -module.exports = getMapData; - - -/***/ }), - -/***/ "./node_modules/lodash/_getMatchData.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_getMatchData.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"), - keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"); - -/** - * Gets the property names, values, and compare flags of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the match data of `object`. - */ -function getMatchData(object) { - var result = keys(object), - length = result.length; - - while (length--) { - var key = result[length], - value = object[key]; - - result[length] = [key, value, isStrictComparable(value)]; - } - return result; -} - -module.exports = getMatchData; - - -/***/ }), - -/***/ "./node_modules/lodash/_getNative.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_getNative.js ***! - \*******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"), - getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js"); - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; -} - -module.exports = getNative; - - -/***/ }), - -/***/ "./node_modules/lodash/_getRawTag.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_getRawTag.js ***! - \*******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var nativeObjectToString = objectProto.toString; - -/** Built-in value references. */ -var symToStringTag = Symbol ? Symbol.toStringTag : undefined; - -/** - * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the raw `toStringTag`. - */ -function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), - tag = value[symToStringTag]; - - try { - value[symToStringTag] = undefined; - var unmasked = true; - } catch (e) {} - - var result = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result; -} - -module.exports = getRawTag; - - -/***/ }), - -/***/ "./node_modules/lodash/_getSymbols.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_getSymbols.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"), - stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Built-in value references. */ -var propertyIsEnumerable = objectProto.propertyIsEnumerable; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeGetSymbols = Object.getOwnPropertySymbols; - -/** - * Creates an array of the own enumerable symbols of `object`. - * - * @private - * @param {Object} object The object to query. - * @returns {Array} Returns the array of symbols. - */ -var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); -}; - -module.exports = getSymbols; - - -/***/ }), - -/***/ "./node_modules/lodash/_getTag.js": -/*!****************************************!*\ - !*** ./node_modules/lodash/_getTag.js ***! - \****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"), - Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"), - Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"), - Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"), - WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"), - baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"), - toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js"); - -/** `Object#toString` result references. */ -var mapTag = '[object Map]', - objectTag = '[object Object]', - promiseTag = '[object Promise]', - setTag = '[object Set]', - weakMapTag = '[object WeakMap]'; - -var dataViewTag = '[object DataView]'; - -/** Used to detect maps, sets, and weakmaps. */ -var dataViewCtorString = toSource(DataView), - mapCtorString = toSource(Map), - promiseCtorString = toSource(Promise), - setCtorString = toSource(Set), - weakMapCtorString = toSource(WeakMap); - -/** - * Gets the `toStringTag` of `value`. - * - * @private - * @param {*} value The value to query. - * @returns {string} Returns the `toStringTag`. - */ -var getTag = baseGetTag; - -// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6. -if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) || - (Map && getTag(new Map) != mapTag) || - (Promise && getTag(Promise.resolve()) != promiseTag) || - (Set && getTag(new Set) != setTag) || - (WeakMap && getTag(new WeakMap) != weakMapTag)) { - getTag = function(value) { - var result = baseGetTag(value), - Ctor = result == objectTag ? value.constructor : undefined, - ctorString = Ctor ? toSource(Ctor) : ''; - - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: return dataViewTag; - case mapCtorString: return mapTag; - case promiseCtorString: return promiseTag; - case setCtorString: return setTag; - case weakMapCtorString: return weakMapTag; - } - } - return result; - }; -} - -module.exports = getTag; - - -/***/ }), - -/***/ "./node_modules/lodash/_getValue.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_getValue.js ***! - \******************************************/ -/***/ ((module) => { - -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} - -module.exports = getValue; - - -/***/ }), - -/***/ "./node_modules/lodash/_hasPath.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_hasPath.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"), - isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"), - isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"), - isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"), - isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"), - toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js"); - -/** - * Checks if `path` exists on `object`. - * - * @private - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @param {Function} hasFunc The function to check properties. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - */ -function hasPath(object, path, hasFunc) { - path = castPath(path, object); - - var index = -1, - length = path.length, - result = false; - - while (++index < length) { - var key = toKey(path[index]); - if (!(result = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result || ++index != length) { - return result; - } - length = object == null ? 0 : object.length; - return !!length && isLength(length) && isIndex(key, length) && - (isArray(object) || isArguments(object)); -} - -module.exports = hasPath; - - -/***/ }), - -/***/ "./node_modules/lodash/_hashClear.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_hashClear.js ***! - \*******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js"); - -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; -} - -module.exports = hashClear; - - -/***/ }), - -/***/ "./node_modules/lodash/_hashDelete.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_hashDelete.js ***! - \********************************************/ -/***/ ((module) => { - -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; -} - -module.exports = hashDelete; - - -/***/ }), - -/***/ "./node_modules/lodash/_hashGet.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_hashGet.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js"); - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} - -module.exports = hashGet; - - -/***/ }), - -/***/ "./node_modules/lodash/_hashHas.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_hashHas.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); -} - -module.exports = hashHas; - - -/***/ }), - -/***/ "./node_modules/lodash/_hashSet.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_hashSet.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js"); - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} - -module.exports = hashSet; - - -/***/ }), - -/***/ "./node_modules/lodash/_isFlattenable.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash/_isFlattenable.js ***! - \***********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"), - isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"), - isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"); - -/** Built-in value references. */ -var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; - -/** - * Checks if `value` is a flattenable `arguments` object or array. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. - */ -function isFlattenable(value) { - return isArray(value) || isArguments(value) || - !!(spreadableSymbol && value && value[spreadableSymbol]); -} - -module.exports = isFlattenable; - - -/***/ }), - -/***/ "./node_modules/lodash/_isIndex.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_isIndex.js ***! - \*****************************************/ -/***/ ((module) => { - -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** Used to detect unsigned integer values. */ -var reIsUint = /^(?:0|[1-9]\d*)$/; - -/** - * Checks if `value` is a valid array-like index. - * - * @private - * @param {*} value The value to check. - * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. - * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. - */ -function isIndex(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER : length; - - return !!length && - (type == 'number' || - (type != 'symbol' && reIsUint.test(value))) && - (value > -1 && value % 1 == 0 && value < length); -} - -module.exports = isIndex; - - -/***/ }), - -/***/ "./node_modules/lodash/_isIterateeCall.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_isIterateeCall.js ***! - \************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"), - isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"), - isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"), - isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"); - -/** - * Checks if the given arguments are from an iteratee call. - * - * @private - * @param {*} value The potential iteratee value argument. - * @param {*} index The potential iteratee index or key argument. - * @param {*} object The potential iteratee object argument. - * @returns {boolean} Returns `true` if the arguments are from an iteratee call, - * else `false`. - */ -function isIterateeCall(value, index, object) { - if (!isObject(object)) { - return false; - } - var type = typeof index; - if (type == 'number' - ? (isArrayLike(object) && isIndex(index, object.length)) - : (type == 'string' && index in object) - ) { - return eq(object[index], value); - } - return false; -} - -module.exports = isIterateeCall; - - -/***/ }), - -/***/ "./node_modules/lodash/_isKey.js": -/*!***************************************!*\ - !*** ./node_modules/lodash/_isKey.js ***! - \***************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"), - isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js"); - -/** Used to match property names within property paths. */ -var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, - reIsPlainProp = /^\w*$/; - -/** - * Checks if `value` is a property name and not a property path. - * - * @private - * @param {*} value The value to check. - * @param {Object} [object] The object to query keys on. - * @returns {boolean} Returns `true` if `value` is a property name, else `false`. - */ -function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == 'number' || type == 'symbol' || type == 'boolean' || - value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || - (object != null && value in Object(object)); -} - -module.exports = isKey; - - -/***/ }), - -/***/ "./node_modules/lodash/_isKeyable.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/_isKeyable.js ***! - \*******************************************/ -/***/ ((module) => { - -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} - -module.exports = isKeyable; - - -/***/ }), - -/***/ "./node_modules/lodash/_isMasked.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_isMasked.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js"); - -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); - -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} - -module.exports = isMasked; - - -/***/ }), - -/***/ "./node_modules/lodash/_isPrototype.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_isPrototype.js ***! - \*********************************************/ -/***/ ((module) => { - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Checks if `value` is likely a prototype object. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. - */ -function isPrototype(value) { - var Ctor = value && value.constructor, - proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; - - return value === proto; -} - -module.exports = isPrototype; - - -/***/ }), - -/***/ "./node_modules/lodash/_isStrictComparable.js": -/*!****************************************************!*\ - !*** ./node_modules/lodash/_isStrictComparable.js ***! - \****************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"); - -/** - * Checks if `value` is suitable for strict equality comparisons, i.e. `===`. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` if suitable for strict - * equality comparisons, else `false`. - */ -function isStrictComparable(value) { - return value === value && !isObject(value); -} - -module.exports = isStrictComparable; - - -/***/ }), - -/***/ "./node_modules/lodash/_listCacheClear.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_listCacheClear.js ***! - \************************************************/ -/***/ ((module) => { - -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; - this.size = 0; -} - -module.exports = listCacheClear; - - -/***/ }), - -/***/ "./node_modules/lodash/_listCacheDelete.js": -/*!*************************************************!*\ - !*** ./node_modules/lodash/_listCacheDelete.js ***! - \*************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js"); - -/** Used for built-in method references. */ -var arrayProto = Array.prototype; - -/** Built-in value references. */ -var splice = arrayProto.splice; - -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); - } - --this.size; - return true; -} - -module.exports = listCacheDelete; - - -/***/ }), - -/***/ "./node_modules/lodash/_listCacheGet.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_listCacheGet.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js"); - -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); - - return index < 0 ? undefined : data[index][1]; -} - -module.exports = listCacheGet; - - -/***/ }), - -/***/ "./node_modules/lodash/_listCacheHas.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_listCacheHas.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js"); - -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; -} - -module.exports = listCacheHas; - - -/***/ }), - -/***/ "./node_modules/lodash/_listCacheSet.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_listCacheSet.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js"); - -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index][1] = value; - } - return this; -} - -module.exports = listCacheSet; - - -/***/ }), - -/***/ "./node_modules/lodash/_mapCacheClear.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash/_mapCacheClear.js ***! - \***********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"), - ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"), - Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"); - -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.size = 0; - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} - -module.exports = mapCacheClear; - - -/***/ }), - -/***/ "./node_modules/lodash/_mapCacheDelete.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_mapCacheDelete.js ***! - \************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js"); - -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - var result = getMapData(this, key)['delete'](key); - this.size -= result ? 1 : 0; - return result; -} - -module.exports = mapCacheDelete; - - -/***/ }), - -/***/ "./node_modules/lodash/_mapCacheGet.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_mapCacheGet.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js"); - -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} - -module.exports = mapCacheGet; - - -/***/ }), - -/***/ "./node_modules/lodash/_mapCacheHas.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_mapCacheHas.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js"); - -/** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -module.exports = mapCacheHas; - - -/***/ }), - -/***/ "./node_modules/lodash/_mapCacheSet.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_mapCacheSet.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js"); - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - var data = getMapData(this, key), - size = data.size; - - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; -} - -module.exports = mapCacheSet; - - -/***/ }), - -/***/ "./node_modules/lodash/_mapToArray.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_mapToArray.js ***! - \********************************************/ -/***/ ((module) => { - -/** - * Converts `map` to its key-value pairs. - * - * @private - * @param {Object} map The map to convert. - * @returns {Array} Returns the key-value pairs. - */ -function mapToArray(map) { - var index = -1, - result = Array(map.size); - - map.forEach(function(value, key) { - result[++index] = [key, value]; - }); - return result; -} - -module.exports = mapToArray; - - -/***/ }), - -/***/ "./node_modules/lodash/_matchesStrictComparable.js": -/*!*********************************************************!*\ - !*** ./node_modules/lodash/_matchesStrictComparable.js ***! - \*********************************************************/ -/***/ ((module) => { - -/** - * A specialized version of `matchesProperty` for source values suitable - * for strict equality comparisons, i.e. `===`. - * - * @private - * @param {string} key The key of the property to get. - * @param {*} srcValue The value to match. - * @returns {Function} Returns the new spec function. - */ -function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && - (srcValue !== undefined || (key in Object(object))); - }; -} - -module.exports = matchesStrictComparable; - - -/***/ }), - -/***/ "./node_modules/lodash/_memoizeCapped.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash/_memoizeCapped.js ***! - \***********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js"); - -/** Used as the maximum memoize cache size. */ -var MAX_MEMOIZE_SIZE = 500; - -/** - * A specialized version of `_.memoize` which clears the memoized function's - * cache when it exceeds `MAX_MEMOIZE_SIZE`. - * - * @private - * @param {Function} func The function to have its output memoized. - * @returns {Function} Returns the new memoized function. - */ -function memoizeCapped(func) { - var result = memoize(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - - var cache = result.cache; - return result; -} - -module.exports = memoizeCapped; - - -/***/ }), - -/***/ "./node_modules/lodash/_nativeCreate.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_nativeCreate.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"); - -/* Built-in method references that are verified to be native. */ -var nativeCreate = getNative(Object, 'create'); - -module.exports = nativeCreate; - - -/***/ }), - -/***/ "./node_modules/lodash/_nativeKeys.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_nativeKeys.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js"); - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeKeys = overArg(Object.keys, Object); - -module.exports = nativeKeys; - - -/***/ }), - -/***/ "./node_modules/lodash/_nodeUtil.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_nodeUtil.js ***! - \******************************************/ -/***/ ((module, exports, __webpack_require__) => { - -/* module decorator */ module = __webpack_require__.nmd(module); -var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js"); - -/** Detect free variable `exports`. */ -var freeExports = true && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** Detect free variable `process` from Node.js. */ -var freeProcess = moduleExports && freeGlobal.process; - -/** Used to access faster Node.js helpers. */ -var nodeUtil = (function() { - try { - // Use `util.types` for Node.js 10+. - var types = freeModule && freeModule.require && freeModule.require('util').types; - - if (types) { - return types; - } - - // Legacy `process.binding('util')` for Node.js < 10. - return freeProcess && freeProcess.binding && freeProcess.binding('util'); - } catch (e) {} -}()); - -module.exports = nodeUtil; - - -/***/ }), - -/***/ "./node_modules/lodash/_objectToString.js": -/*!************************************************!*\ - !*** ./node_modules/lodash/_objectToString.js ***! - \************************************************/ -/***/ ((module) => { - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var nativeObjectToString = objectProto.toString; - -/** - * Converts `value` to a string using `Object.prototype.toString`. - * - * @private - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - */ -function objectToString(value) { - return nativeObjectToString.call(value); -} - -module.exports = objectToString; - - -/***/ }), - -/***/ "./node_modules/lodash/_overArg.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/_overArg.js ***! - \*****************************************/ -/***/ ((module) => { - -/** - * Creates a unary function that invokes `func` with its argument transformed. - * - * @private - * @param {Function} func The function to wrap. - * @param {Function} transform The argument transform. - * @returns {Function} Returns the new function. - */ -function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; -} - -module.exports = overArg; - - -/***/ }), - -/***/ "./node_modules/lodash/_overRest.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_overRest.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js"); - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeMax = Math.max; - -/** - * A specialized version of `baseRest` which transforms the rest array. - * - * @private - * @param {Function} func The function to apply a rest parameter to. - * @param {number} [start=func.length-1] The start position of the rest parameter. - * @param {Function} transform The rest array transform. - * @returns {Function} Returns the new function. - */ -function overRest(func, start, transform) { - start = nativeMax(start === undefined ? (func.length - 1) : start, 0); - return function() { - var args = arguments, - index = -1, - length = nativeMax(args.length - start, 0), - array = Array(length); - - while (++index < length) { - array[index] = args[start + index]; - } - index = -1; - var otherArgs = Array(start + 1); - while (++index < start) { - otherArgs[index] = args[index]; - } - otherArgs[start] = transform(array); - return apply(func, this, otherArgs); - }; -} - -module.exports = overRest; - - -/***/ }), - -/***/ "./node_modules/lodash/_root.js": -/*!**************************************!*\ - !*** ./node_modules/lodash/_root.js ***! - \**************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js"); - -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; - -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); - -module.exports = root; - - -/***/ }), - -/***/ "./node_modules/lodash/_setCacheAdd.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_setCacheAdd.js ***! - \*********************************************/ -/***/ ((module) => { - -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; - -/** - * Adds `value` to the array cache. - * - * @private - * @name add - * @memberOf SetCache - * @alias push - * @param {*} value The value to cache. - * @returns {Object} Returns the cache instance. - */ -function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; -} - -module.exports = setCacheAdd; - - -/***/ }), - -/***/ "./node_modules/lodash/_setCacheHas.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_setCacheHas.js ***! - \*********************************************/ -/***/ ((module) => { - -/** - * Checks if `value` is in the array cache. - * - * @private - * @name has - * @memberOf SetCache - * @param {*} value The value to search for. - * @returns {number} Returns `true` if `value` is found, else `false`. - */ -function setCacheHas(value) { - return this.__data__.has(value); -} - -module.exports = setCacheHas; - - -/***/ }), - -/***/ "./node_modules/lodash/_setToArray.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_setToArray.js ***! - \********************************************/ -/***/ ((module) => { - -/** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ -function setToArray(set) { - var index = -1, - result = Array(set.size); - - set.forEach(function(value) { - result[++index] = value; - }); - return result; -} - -module.exports = setToArray; - - -/***/ }), - -/***/ "./node_modules/lodash/_setToString.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_setToString.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"), - shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js"); - -/** - * Sets the `toString` method of `func` to return `string`. - * - * @private - * @param {Function} func The function to modify. - * @param {Function} string The `toString` result. - * @returns {Function} Returns `func`. - */ -var setToString = shortOut(baseSetToString); - -module.exports = setToString; - - -/***/ }), - -/***/ "./node_modules/lodash/_shortOut.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_shortOut.js ***! - \******************************************/ -/***/ ((module) => { - -/** Used to detect hot functions by number of calls within a span of milliseconds. */ -var HOT_COUNT = 800, - HOT_SPAN = 16; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeNow = Date.now; - -/** - * Creates a function that'll short out and invoke `identity` instead - * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN` - * milliseconds. - * - * @private - * @param {Function} func The function to restrict. - * @returns {Function} Returns the new shortable function. - */ -function shortOut(func) { - var count = 0, - lastCalled = 0; - - return function() { - var stamp = nativeNow(), - remaining = HOT_SPAN - (stamp - lastCalled); - - lastCalled = stamp; - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - return func.apply(undefined, arguments); - }; -} - -module.exports = shortOut; - - -/***/ }), - -/***/ "./node_modules/lodash/_stackClear.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/_stackClear.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"); - -/** - * Removes all key-value entries from the stack. - * - * @private - * @name clear - * @memberOf Stack - */ -function stackClear() { - this.__data__ = new ListCache; - this.size = 0; -} - -module.exports = stackClear; - - -/***/ }), - -/***/ "./node_modules/lodash/_stackDelete.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/_stackDelete.js ***! - \*********************************************/ -/***/ ((module) => { - -/** - * Removes `key` and its value from the stack. - * - * @private - * @name delete - * @memberOf Stack - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function stackDelete(key) { - var data = this.__data__, - result = data['delete'](key); - - this.size = data.size; - return result; -} - -module.exports = stackDelete; - - -/***/ }), - -/***/ "./node_modules/lodash/_stackGet.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_stackGet.js ***! - \******************************************/ -/***/ ((module) => { - -/** - * Gets the stack value for `key`. - * - * @private - * @name get - * @memberOf Stack - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function stackGet(key) { - return this.__data__.get(key); -} - -module.exports = stackGet; - - -/***/ }), - -/***/ "./node_modules/lodash/_stackHas.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_stackHas.js ***! - \******************************************/ -/***/ ((module) => { - -/** - * Checks if a stack value for `key` exists. - * - * @private - * @name has - * @memberOf Stack - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function stackHas(key) { - return this.__data__.has(key); -} - -module.exports = stackHas; - - -/***/ }), - -/***/ "./node_modules/lodash/_stackSet.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_stackSet.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"), - Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"), - MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"); - -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; - -/** - * Sets the stack `key` to `value`. - * - * @private - * @name set - * @memberOf Stack - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the stack cache instance. - */ -function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; -} - -module.exports = stackSet; - - -/***/ }), - -/***/ "./node_modules/lodash/_stringToPath.js": -/*!**********************************************!*\ - !*** ./node_modules/lodash/_stringToPath.js ***! - \**********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js"); - -/** Used to match property names within property paths. */ -var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - -/** Used to match backslashes in property paths. */ -var reEscapeChar = /\\(\\)?/g; - -/** - * Converts `string` to a property path array. - * - * @private - * @param {string} string The string to convert. - * @returns {Array} Returns the property path array. - */ -var stringToPath = memoizeCapped(function(string) { - var result = []; - if (string.charCodeAt(0) === 46 /* . */) { - result.push(''); - } - string.replace(rePropName, function(match, number, quote, subString) { - result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); - }); - return result; -}); - -module.exports = stringToPath; - - -/***/ }), - -/***/ "./node_modules/lodash/_toKey.js": -/*!***************************************!*\ - !*** ./node_modules/lodash/_toKey.js ***! - \***************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js"); - -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; - -/** - * Converts `value` to a string key if it's not a string or symbol. - * - * @private - * @param {*} value The value to inspect. - * @returns {string|symbol} Returns the key. - */ -function toKey(value) { - if (typeof value == 'string' || isSymbol(value)) { - return value; - } - var result = (value + ''); - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; -} - -module.exports = toKey; - - -/***/ }), - -/***/ "./node_modules/lodash/_toSource.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/_toSource.js ***! - \******************************************/ -/***/ ((module) => { - -/** Used for built-in method references. */ -var funcProto = Function.prototype; - -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; - -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to convert. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} - -module.exports = toSource; - - -/***/ }), - -/***/ "./node_modules/lodash/constant.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/constant.js ***! - \*****************************************/ -/***/ ((module) => { - -/** - * Creates a function that returns `value`. - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Util - * @param {*} value The value to return from the new function. - * @returns {Function} Returns the new constant function. - * @example - * - * var objects = _.times(2, _.constant({ 'a': 1 })); - * - * console.log(objects); - * // => [{ 'a': 1 }, { 'a': 1 }] - * - * console.log(objects[0] === objects[1]); - * // => true - */ -function constant(value) { - return function() { - return value; - }; -} - -module.exports = constant; - - -/***/ }), - -/***/ "./node_modules/lodash/eq.js": -/*!***********************************!*\ - !*** ./node_modules/lodash/eq.js ***! - \***********************************/ -/***/ ((module) => { - -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} - -module.exports = eq; - - -/***/ }), - -/***/ "./node_modules/lodash/get.js": -/*!************************************!*\ - !*** ./node_modules/lodash/get.js ***! - \************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"); - -/** - * Gets the value at `path` of `object`. If the resolved value is - * `undefined`, the `defaultValue` is returned in its place. - * - * @static - * @memberOf _ - * @since 3.7.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path of the property to get. - * @param {*} [defaultValue] The value returned for `undefined` resolved values. - * @returns {*} Returns the resolved value. - * @example - * - * var object = { 'a': [{ 'b': { 'c': 3 } }] }; - * - * _.get(object, 'a[0].b.c'); - * // => 3 - * - * _.get(object, ['a', '0', 'b', 'c']); - * // => 3 - * - * _.get(object, 'a.b.c', 'default'); - * // => 'default' - */ -function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, path); - return result === undefined ? defaultValue : result; -} - -module.exports = get; - - -/***/ }), - -/***/ "./node_modules/lodash/hasIn.js": -/*!**************************************!*\ - !*** ./node_modules/lodash/hasIn.js ***! - \**************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"), - hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js"); - -/** - * Checks if `path` is a direct or inherited property of `object`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Object - * @param {Object} object The object to query. - * @param {Array|string} path The path to check. - * @returns {boolean} Returns `true` if `path` exists, else `false`. - * @example - * - * var object = _.create({ 'a': _.create({ 'b': 2 }) }); - * - * _.hasIn(object, 'a'); - * // => true - * - * _.hasIn(object, 'a.b'); - * // => true - * - * _.hasIn(object, ['a', 'b']); - * // => true - * - * _.hasIn(object, 'b'); - * // => false - */ -function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); -} - -module.exports = hasIn; - - -/***/ }), - -/***/ "./node_modules/lodash/identity.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/identity.js ***! - \*****************************************/ -/***/ ((module) => { - -/** - * This method returns the first argument it receives. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Util - * @param {*} value Any value. - * @returns {*} Returns `value`. - * @example - * - * var object = { 'a': 1 }; - * - * console.log(_.identity(object) === object); - * // => true - */ -function identity(value) { - return value; -} - -module.exports = identity; - - -/***/ }), - -/***/ "./node_modules/lodash/isArguments.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/isArguments.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js"); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** Built-in value references. */ -var propertyIsEnumerable = objectProto.propertyIsEnumerable; - -/** - * Checks if `value` is likely an `arguments` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an `arguments` object, - * else `false`. - * @example - * - * _.isArguments(function() { return arguments; }()); - * // => true - * - * _.isArguments([1, 2, 3]); - * // => false - */ -var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && - !propertyIsEnumerable.call(value, 'callee'); -}; - -module.exports = isArguments; - - -/***/ }), - -/***/ "./node_modules/lodash/isArray.js": -/*!****************************************!*\ - !*** ./node_modules/lodash/isArray.js ***! - \****************************************/ -/***/ ((module) => { - -/** - * Checks if `value` is classified as an `Array` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an array, else `false`. - * @example - * - * _.isArray([1, 2, 3]); - * // => true - * - * _.isArray(document.body.children); - * // => false - * - * _.isArray('abc'); - * // => false - * - * _.isArray(_.noop); - * // => false - */ -var isArray = Array.isArray; - -module.exports = isArray; - - -/***/ }), - -/***/ "./node_modules/lodash/isArrayLike.js": -/*!********************************************!*\ - !*** ./node_modules/lodash/isArrayLike.js ***! - \********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"), - isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"); - -/** - * Checks if `value` is array-like. A value is considered array-like if it's - * not a function and has a `value.length` that's an integer greater than or - * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is array-like, else `false`. - * @example - * - * _.isArrayLike([1, 2, 3]); - * // => true - * - * _.isArrayLike(document.body.children); - * // => true - * - * _.isArrayLike('abc'); - * // => true - * - * _.isArrayLike(_.noop); - * // => false - */ -function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); -} - -module.exports = isArrayLike; - - -/***/ }), - -/***/ "./node_modules/lodash/isBuffer.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/isBuffer.js ***! - \*****************************************/ -/***/ ((module, exports, __webpack_require__) => { - -/* module decorator */ module = __webpack_require__.nmd(module); -var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"), - stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js"); - -/** Detect free variable `exports`. */ -var freeExports = true && exports && !exports.nodeType && exports; - -/** Detect free variable `module`. */ -var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; - -/** Detect the popular CommonJS extension `module.exports`. */ -var moduleExports = freeModule && freeModule.exports === freeExports; - -/** Built-in value references. */ -var Buffer = moduleExports ? root.Buffer : undefined; - -/* Built-in method references for those with the same name as other `lodash` methods. */ -var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; - -/** - * Checks if `value` is a buffer. - * - * @static - * @memberOf _ - * @since 4.3.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. - * @example - * - * _.isBuffer(new Buffer(2)); - * // => true - * - * _.isBuffer(new Uint8Array(2)); - * // => false - */ -var isBuffer = nativeIsBuffer || stubFalse; - -module.exports = isBuffer; - - -/***/ }), - -/***/ "./node_modules/lodash/isFunction.js": -/*!*******************************************!*\ - !*** ./node_modules/lodash/isFunction.js ***! - \*******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"), - isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"); - -/** `Object#toString` result references. */ -var asyncTag = '[object AsyncFunction]', - funcTag = '[object Function]', - genTag = '[object GeneratorFunction]', - proxyTag = '[object Proxy]'; - -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - if (!isObject(value)) { - return false; - } - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 9 which returns 'object' for typed arrays and other constructors. - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; -} - -module.exports = isFunction; - - -/***/ }), - -/***/ "./node_modules/lodash/isLength.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/isLength.js ***! - \*****************************************/ -/***/ ((module) => { - -/** Used as references for various `Number` constants. */ -var MAX_SAFE_INTEGER = 9007199254740991; - -/** - * Checks if `value` is a valid array-like length. - * - * **Note:** This method is loosely based on - * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. - * @example - * - * _.isLength(3); - * // => true - * - * _.isLength(Number.MIN_VALUE); - * // => false - * - * _.isLength(Infinity); - * // => false - * - * _.isLength('3'); - * // => false - */ -function isLength(value) { - return typeof value == 'number' && - value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; -} - -module.exports = isLength; - - -/***/ }), - -/***/ "./node_modules/lodash/isObject.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/isObject.js ***! - \*****************************************/ -/***/ ((module) => { - -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return value != null && (type == 'object' || type == 'function'); -} - -module.exports = isObject; - - -/***/ }), - -/***/ "./node_modules/lodash/isObjectLike.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/isObjectLike.js ***! - \*********************************************/ -/***/ ((module) => { - -/** - * Checks if `value` is object-like. A value is object-like if it's not `null` - * and has a `typeof` result of "object". - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is object-like, else `false`. - * @example - * - * _.isObjectLike({}); - * // => true - * - * _.isObjectLike([1, 2, 3]); - * // => true - * - * _.isObjectLike(_.noop); - * // => false - * - * _.isObjectLike(null); - * // => false - */ -function isObjectLike(value) { - return value != null && typeof value == 'object'; -} - -module.exports = isObjectLike; - - -/***/ }), - -/***/ "./node_modules/lodash/isSymbol.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/isSymbol.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"), - isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js"); - -/** `Object#toString` result references. */ -var symbolTag = '[object Symbol]'; - -/** - * Checks if `value` is classified as a `Symbol` primitive or object. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. - * @example - * - * _.isSymbol(Symbol.iterator); - * // => true - * - * _.isSymbol('abc'); - * // => false - */ -function isSymbol(value) { - return typeof value == 'symbol' || - (isObjectLike(value) && baseGetTag(value) == symbolTag); -} - -module.exports = isSymbol; - - -/***/ }), - -/***/ "./node_modules/lodash/isTypedArray.js": -/*!*********************************************!*\ - !*** ./node_modules/lodash/isTypedArray.js ***! - \*********************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"), - baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"), - nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js"); - -/* Node.js helper references. */ -var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - -/** - * Checks if `value` is classified as a typed array. - * - * @static - * @memberOf _ - * @since 3.0.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. - * @example - * - * _.isTypedArray(new Uint8Array); - * // => true - * - * _.isTypedArray([]); - * // => false - */ -var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - -module.exports = isTypedArray; - - -/***/ }), - -/***/ "./node_modules/lodash/keys.js": -/*!*************************************!*\ - !*** ./node_modules/lodash/keys.js ***! - \*************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"), - baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"), - isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"); - -/** - * Creates an array of the own enumerable property names of `object`. - * - * **Note:** Non-object values are coerced to objects. See the - * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) - * for more details. - * - * @static - * @since 0.1.0 - * @memberOf _ - * @category Object - * @param {Object} object The object to query. - * @returns {Array} Returns the array of property names. - * @example - * - * function Foo() { - * this.a = 1; - * this.b = 2; - * } - * - * Foo.prototype.c = 3; - * - * _.keys(new Foo); - * // => ['a', 'b'] (iteration order is not guaranteed) - * - * _.keys('hi'); - * // => ['0', '1'] - */ -function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); -} - -module.exports = keys; - - -/***/ }), - -/***/ "./node_modules/lodash/memoize.js": -/*!****************************************!*\ - !*** ./node_modules/lodash/memoize.js ***! - \****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"); - -/** Error message constants. */ -var FUNC_ERROR_TEXT = 'Expected a function'; - -/** - * Creates a function that memoizes the result of `func`. If `resolver` is - * provided, it determines the cache key for storing the result based on the - * arguments provided to the memoized function. By default, the first argument - * provided to the memoized function is used as the map cache key. The `func` - * is invoked with the `this` binding of the memoized function. - * - * **Note:** The cache is exposed as the `cache` property on the memoized - * function. Its creation may be customized by replacing the `_.memoize.Cache` - * constructor with one whose instances implement the - * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) - * method interface of `clear`, `delete`, `get`, `has`, and `set`. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Function - * @param {Function} func The function to have its output memoized. - * @param {Function} [resolver] The function to resolve the cache key. - * @returns {Function} Returns the new memoized function. - * @example - * - * var object = { 'a': 1, 'b': 2 }; - * var other = { 'c': 3, 'd': 4 }; - * - * var values = _.memoize(_.values); - * values(object); - * // => [1, 2] - * - * values(other); - * // => [3, 4] - * - * object.a = 2; - * values(object); - * // => [1, 2] - * - * // Modify the result cache. - * values.cache.set(object, ['a', 'b']); - * values(object); - * // => ['a', 'b'] - * - * // Replace `_.memoize.Cache`. - * _.memoize.Cache = WeakMap; - */ -function memoize(func, resolver) { - if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { - throw new TypeError(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, - key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache; - - if (cache.has(key)) { - return cache.get(key); - } - var result = func.apply(this, args); - memoized.cache = cache.set(key, result) || cache; - return result; - }; - memoized.cache = new (memoize.Cache || MapCache); - return memoized; -} - -// Expose `MapCache`. -memoize.Cache = MapCache; - -module.exports = memoize; - - -/***/ }), - -/***/ "./node_modules/lodash/property.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/property.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"), - basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"), - isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"), - toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js"); - -/** - * Creates a function that returns the value at `path` of a given object. - * - * @static - * @memberOf _ - * @since 2.4.0 - * @category Util - * @param {Array|string} path The path of the property to get. - * @returns {Function} Returns the new accessor function. - * @example - * - * var objects = [ - * { 'a': { 'b': 2 } }, - * { 'a': { 'b': 1 } } - * ]; - * - * _.map(objects, _.property('a.b')); - * // => [2, 1] - * - * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b'); - * // => [1, 2] - */ -function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); -} - -module.exports = property; - - -/***/ }), - -/***/ "./node_modules/lodash/sortBy.js": -/*!***************************************!*\ - !*** ./node_modules/lodash/sortBy.js ***! - \***************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js"), - baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "./node_modules/lodash/_baseOrderBy.js"), - baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"), - isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js"); - -/** - * Creates an array of elements, sorted in ascending order by the results of - * running each element in a collection thru each iteratee. This method - * performs a stable sort, that is, it preserves the original sort order of - * equal elements. The iteratees are invoked with one argument: (value). - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Collection - * @param {Array|Object} collection The collection to iterate over. - * @param {...(Function|Function[])} [iteratees=[_.identity]] - * The iteratees to sort by. - * @returns {Array} Returns the new sorted array. - * @example - * - * var users = [ - * { 'user': 'fred', 'age': 48 }, - * { 'user': 'barney', 'age': 36 }, - * { 'user': 'fred', 'age': 30 }, - * { 'user': 'barney', 'age': 34 } - * ]; - * - * _.sortBy(users, [function(o) { return o.user; }]); - * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]] - * - * _.sortBy(users, ['user', 'age']); - * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]] - */ -var sortBy = baseRest(function(collection, iteratees) { - if (collection == null) { - return []; - } - var length = iteratees.length; - if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { - iteratees = []; - } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { - iteratees = [iteratees[0]]; - } - return baseOrderBy(collection, baseFlatten(iteratees, 1), []); -}); - -module.exports = sortBy; - - -/***/ }), - -/***/ "./node_modules/lodash/stubArray.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/stubArray.js ***! - \******************************************/ -/***/ ((module) => { - -/** - * This method returns a new empty array. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {Array} Returns the new empty array. - * @example - * - * var arrays = _.times(2, _.stubArray); - * - * console.log(arrays); - * // => [[], []] - * - * console.log(arrays[0] === arrays[1]); - * // => false - */ -function stubArray() { - return []; -} - -module.exports = stubArray; - - -/***/ }), - -/***/ "./node_modules/lodash/stubFalse.js": -/*!******************************************!*\ - !*** ./node_modules/lodash/stubFalse.js ***! - \******************************************/ -/***/ ((module) => { - -/** - * This method returns `false`. - * - * @static - * @memberOf _ - * @since 4.13.0 - * @category Util - * @returns {boolean} Returns `false`. - * @example - * - * _.times(2, _.stubFalse); - * // => [false, false] - */ -function stubFalse() { - return false; -} - -module.exports = stubFalse; - - -/***/ }), - -/***/ "./node_modules/lodash/toString.js": -/*!*****************************************!*\ - !*** ./node_modules/lodash/toString.js ***! - \*****************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js"); - -/** - * Converts `value` to a string. An empty string is returned for `null` - * and `undefined` values. The sign of `-0` is preserved. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to convert. - * @returns {string} Returns the converted string. - * @example - * - * _.toString(null); - * // => '' - * - * _.toString(-0); - * // => '-0' - * - * _.toString([1, 2, 3]); - * // => '1,2,3' - */ -function toString(value) { - return value == null ? '' : baseToString(value); -} - -module.exports = toString; - - -/***/ }), - -/***/ "./node_modules/moment/locale/af.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/af.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Afrikaans [af] -//! author : Werner Mollentze : https://github.com/wernerm - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var af = moment.defineLocale('af', { - months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( - '_' - ), - weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), - weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), - meridiemParse: /vm|nm/i, - isPM: function (input) { - return /^nm$/i.test(input); - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'vm' : 'VM'; - } else { - return isLower ? 'nm' : 'NM'; - } - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Vandag om] LT', - nextDay: '[Môre om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[Gister om] LT', - lastWeek: '[Laas] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'oor %s', - past: '%s gelede', - s: "'n paar sekondes", - ss: '%d sekondes', - m: "'n minuut", - mm: '%d minute', - h: "'n uur", - hh: '%d ure', - d: "'n dag", - dd: '%d dae', - M: "'n maand", - MM: '%d maande', - y: "'n jaar", - yy: '%d jaar', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); // Thanks to Joris Röling : https://github.com/jjupiter - }, - week: { - dow: 1, // Maandag is die eerste dag van die week. - doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar. - }, - }); - - return af; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ar-dz.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/ar-dz.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Arabic (Algeria) [ar-dz] -//! author : Amine Roukh: https://github.com/Amine27 -//! author : Abdel Said: https://github.com/abdelsaid -//! author : Ahmed Elkhatib -//! author : forabi https://github.com/forabi -//! author : Noureddine LOUAHEDJ : https://github.com/noureddinem - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var pluralForm = function (n) { - return n === 0 - ? 0 - : n === 1 - ? 1 - : n === 2 - ? 2 - : n % 100 >= 3 && n % 100 <= 10 - ? 3 - : n % 100 >= 11 - ? 4 - : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية', - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة', - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة', - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم', - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر', - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام', - ], - }, - pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }, - months = [ - 'جانفي', - 'فيفري', - 'مارس', - 'أفريل', - 'ماي', - 'جوان', - 'جويلية', - 'أوت', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', - ]; - - var arDz = moment.defineLocale('ar-dz', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/\u200FM/\u200FYYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y'), - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return arDz; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ar-kw.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/ar-kw.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Arabic (Kuwait) [ar-kw] -//! author : Nusret Parlak: https://github.com/nusretparlak - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var arKw = moment.defineLocale('ar-kw', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - monthsShort: - 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - - return arKw; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ar-ly.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/ar-ly.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Arabic (Libya) [ar-ly] -//! author : Ali Hmer: https://github.com/kikoanis - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '1', - 2: '2', - 3: '3', - 4: '4', - 5: '5', - 6: '6', - 7: '7', - 8: '8', - 9: '9', - 0: '0', - }, - pluralForm = function (n) { - return n === 0 - ? 0 - : n === 1 - ? 1 - : n === 2 - ? 2 - : n % 100 >= 3 && n % 100 <= 10 - ? 3 - : n % 100 >= 11 - ? 4 - : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية', - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة', - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة', - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم', - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر', - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام', - ], - }, - pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }, - months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', - ]; - - var arLy = moment.defineLocale('ar-ly', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/\u200FM/\u200FYYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y'), - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - - return arLy; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ar-ma.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/ar-ma.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Arabic (Morocco) [ar-ma] -//! author : ElFadili Yassine : https://github.com/ElFadiliY -//! author : Abdel Said : https://github.com/abdelsaid - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var arMa = moment.defineLocale('ar-ma', { - months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - monthsShort: - 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return arMa; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ar-ps.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/ar-ps.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Arabic (Palestine) [ar-ps] -//! author : Majd Al-Shihabi : https://github.com/majdal - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '١', - 2: '٢', - 3: '٣', - 4: '٤', - 5: '٥', - 6: '٦', - 7: '٧', - 8: '٨', - 9: '٩', - 0: '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }; - - var arPs = moment.defineLocale('ar-ps', { - months: 'كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل'.split( - '_' - ), - monthsShort: - 'ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١'.split('_'), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - preparse: function (string) { - return string - .replace(/[٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .split('') // reversed since negative lookbehind not supported everywhere - .reverse() - .join('') - .replace(/[١٢](?![\u062a\u0643])/g, function (match) { - return numberMap[match]; - }) - .split('') - .reverse() - .join('') - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return arPs; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ar-sa.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/ar-sa.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Arabic (Saudi Arabia) [ar-sa] -//! author : Suhail Alkowaileet : https://github.com/xsoh - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '١', - 2: '٢', - 3: '٣', - 4: '٤', - 5: '٥', - 6: '٦', - 7: '٧', - 8: '٨', - 9: '٩', - 0: '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }; - - var arSa = moment.defineLocale('ar-sa', { - months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: - 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - preparse: function (string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return arSa; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ar-tn.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/ar-tn.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Arabic (Tunisia) [ar-tn] -//! author : Nader Toukabri : https://github.com/naderio - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var arTn = moment.defineLocale('ar-tn', { - months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - monthsShort: - 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( - '_' - ), - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[اليوم على الساعة] LT', - nextDay: '[غدا على الساعة] LT', - nextWeek: 'dddd [على الساعة] LT', - lastDay: '[أمس على الساعة] LT', - lastWeek: 'dddd [على الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'في %s', - past: 'منذ %s', - s: 'ثوان', - ss: '%d ثانية', - m: 'دقيقة', - mm: '%d دقائق', - h: 'ساعة', - hh: '%d ساعات', - d: 'يوم', - dd: '%d أيام', - M: 'شهر', - MM: '%d أشهر', - y: 'سنة', - yy: '%d سنوات', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return arTn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ar.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ar.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Arabic [ar] -//! author : Abdel Said: https://github.com/abdelsaid -//! author : Ahmed Elkhatib -//! author : forabi https://github.com/forabi - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '١', - 2: '٢', - 3: '٣', - 4: '٤', - 5: '٥', - 6: '٦', - 7: '٧', - 8: '٨', - 9: '٩', - 0: '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }, - pluralForm = function (n) { - return n === 0 - ? 0 - : n === 1 - ? 1 - : n === 2 - ? 2 - : n % 100 >= 3 && n % 100 <= 10 - ? 3 - : n % 100 >= 11 - ? 4 - : 5; - }, - plurals = { - s: [ - 'أقل من ثانية', - 'ثانية واحدة', - ['ثانيتان', 'ثانيتين'], - '%d ثوان', - '%d ثانية', - '%d ثانية', - ], - m: [ - 'أقل من دقيقة', - 'دقيقة واحدة', - ['دقيقتان', 'دقيقتين'], - '%d دقائق', - '%d دقيقة', - '%d دقيقة', - ], - h: [ - 'أقل من ساعة', - 'ساعة واحدة', - ['ساعتان', 'ساعتين'], - '%d ساعات', - '%d ساعة', - '%d ساعة', - ], - d: [ - 'أقل من يوم', - 'يوم واحد', - ['يومان', 'يومين'], - '%d أيام', - '%d يومًا', - '%d يوم', - ], - M: [ - 'أقل من شهر', - 'شهر واحد', - ['شهران', 'شهرين'], - '%d أشهر', - '%d شهرا', - '%d شهر', - ], - y: [ - 'أقل من عام', - 'عام واحد', - ['عامان', 'عامين'], - '%d أعوام', - '%d عامًا', - '%d عام', - ], - }, - pluralize = function (u) { - return function (number, withoutSuffix, string, isFuture) { - var f = pluralForm(number), - str = plurals[u][pluralForm(number)]; - if (f === 2) { - str = str[withoutSuffix ? 0 : 1]; - } - return str.replace(/%d/i, number); - }; - }, - months = [ - 'يناير', - 'فبراير', - 'مارس', - 'أبريل', - 'مايو', - 'يونيو', - 'يوليو', - 'أغسطس', - 'سبتمبر', - 'أكتوبر', - 'نوفمبر', - 'ديسمبر', - ]; - - var ar = moment.defineLocale('ar', { - months: months, - monthsShort: months, - weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), - weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), - weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/\u200FM/\u200FYYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ص|م/, - isPM: function (input) { - return 'م' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ص'; - } else { - return 'م'; - } - }, - calendar: { - sameDay: '[اليوم عند الساعة] LT', - nextDay: '[غدًا عند الساعة] LT', - nextWeek: 'dddd [عند الساعة] LT', - lastDay: '[أمس عند الساعة] LT', - lastWeek: 'dddd [عند الساعة] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'بعد %s', - past: 'منذ %s', - s: pluralize('s'), - ss: pluralize('s'), - m: pluralize('m'), - mm: pluralize('m'), - h: pluralize('h'), - hh: pluralize('h'), - d: pluralize('d'), - dd: pluralize('d'), - M: pluralize('M'), - MM: pluralize('M'), - y: pluralize('y'), - yy: pluralize('y'), - }, - preparse: function (string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - - return ar; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/az.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/az.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Azerbaijani [az] -//! author : topchiyev : https://github.com/topchiyev - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var suffixes = { - 1: '-inci', - 5: '-inci', - 8: '-inci', - 70: '-inci', - 80: '-inci', - 2: '-nci', - 7: '-nci', - 20: '-nci', - 50: '-nci', - 3: '-üncü', - 4: '-üncü', - 100: '-üncü', - 6: '-ncı', - 9: '-uncu', - 10: '-uncu', - 30: '-uncu', - 60: '-ıncı', - 90: '-ıncı', - }; - - var az = moment.defineLocale('az', { - months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( - '_' - ), - monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), - weekdays: - 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( - '_' - ), - weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), - weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[sabah saat] LT', - nextWeek: '[gələn həftə] dddd [saat] LT', - lastDay: '[dünən] LT', - lastWeek: '[keçən həftə] dddd [saat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s sonra', - past: '%s əvvəl', - s: 'bir neçə saniyə', - ss: '%d saniyə', - m: 'bir dəqiqə', - mm: '%d dəqiqə', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - M: 'bir ay', - MM: '%d ay', - y: 'bir il', - yy: '%d il', - }, - meridiemParse: /gecə|səhər|gündüz|axşam/, - isPM: function (input) { - return /^(gündüz|axşam)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'gecə'; - } else if (hour < 12) { - return 'səhər'; - } else if (hour < 17) { - return 'gündüz'; - } else { - return 'axşam'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, - ordinal: function (number) { - if (number === 0) { - // special case for zero - return number + '-ıncı'; - } - var a = number % 10, - b = (number % 100) - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return az; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/be.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/be.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Belarusian [be] -//! author : Dmitry Demidov : https://github.com/demidov91 -//! author: Praleska: http://praleska.pro/ -//! Author : Menelion Elensúle : https://github.com/Oire - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', - hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', - dd: 'дзень_дні_дзён', - MM: 'месяц_месяцы_месяцаў', - yy: 'год_гады_гадоў', - }; - if (key === 'm') { - return withoutSuffix ? 'хвіліна' : 'хвіліну'; - } else if (key === 'h') { - return withoutSuffix ? 'гадзіна' : 'гадзіну'; - } else { - return number + ' ' + plural(format[key], +number); - } - } - - var be = moment.defineLocale('be', { - months: { - format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( - '_' - ), - standalone: - 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( - '_' - ), - }, - monthsShort: - 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'), - weekdays: { - format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( - '_' - ), - standalone: - 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( - '_' - ), - isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/, - }, - weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., HH:mm', - LLLL: 'dddd, D MMMM YYYY г., HH:mm', - }, - calendar: { - sameDay: '[Сёння ў] LT', - nextDay: '[Заўтра ў] LT', - lastDay: '[Учора ў] LT', - nextWeek: function () { - return '[У] dddd [ў] LT'; - }, - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return '[У мінулую] dddd [ў] LT'; - case 1: - case 2: - case 4: - return '[У мінулы] dddd [ў] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'праз %s', - past: '%s таму', - s: 'некалькі секунд', - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: relativeTimeWithPlural, - hh: relativeTimeWithPlural, - d: 'дзень', - dd: relativeTimeWithPlural, - M: 'месяц', - MM: relativeTimeWithPlural, - y: 'год', - yy: relativeTimeWithPlural, - }, - meridiemParse: /ночы|раніцы|дня|вечара/, - isPM: function (input) { - return /^(дня|вечара)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ночы'; - } else if (hour < 12) { - return 'раніцы'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечара'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return (number % 10 === 2 || number % 10 === 3) && - number % 100 !== 12 && - number % 100 !== 13 - ? number + '-і' - : number + '-ы'; - case 'D': - return number + '-га'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return be; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/bg.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/bg.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Bulgarian [bg] -//! author : Krasen Borisov : https://github.com/kraz - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var bg = moment.defineLocale('bg', { - months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), - weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( - '_' - ), - weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[Днес в] LT', - nextDay: '[Утре в] LT', - nextWeek: 'dddd [в] LT', - lastDay: '[Вчера в] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Миналата] dddd [в] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Миналия] dddd [в] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'след %s', - past: 'преди %s', - s: 'няколко секунди', - ss: '%d секунди', - m: 'минута', - mm: '%d минути', - h: 'час', - hh: '%d часа', - d: 'ден', - dd: '%d дена', - w: 'седмица', - ww: '%d седмици', - M: 'месец', - MM: '%d месеца', - y: 'година', - yy: '%d години', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return bg; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/bm.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/bm.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Bambara [bm] -//! author : Estelle Comment : https://github.com/estellecomment - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var bm = moment.defineLocale('bm', { - months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( - '_' - ), - monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'), - weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), - weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), - weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'MMMM [tile] D [san] YYYY', - LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', - }, - calendar: { - sameDay: '[Bi lɛrɛ] LT', - nextDay: '[Sini lɛrɛ] LT', - nextWeek: 'dddd [don lɛrɛ] LT', - lastDay: '[Kunu lɛrɛ] LT', - lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s kɔnɔ', - past: 'a bɛ %s bɔ', - s: 'sanga dama dama', - ss: 'sekondi %d', - m: 'miniti kelen', - mm: 'miniti %d', - h: 'lɛrɛ kelen', - hh: 'lɛrɛ %d', - d: 'tile kelen', - dd: 'tile %d', - M: 'kalo kelen', - MM: 'kalo %d', - y: 'san kelen', - yy: 'san %d', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return bm; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/bn-bd.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/bn-bd.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Bengali (Bangladesh) [bn-bd] -//! author : Asraf Hossain Patoary : https://github.com/ashwoolford - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '১', - 2: '২', - 3: '৩', - 4: '৪', - 5: '৫', - 6: '৬', - 7: '৭', - 8: '৮', - 9: '৯', - 0: '০', - }, - numberMap = { - '১': '1', - '২': '2', - '৩': '3', - '৪': '4', - '৫': '5', - '৬': '6', - '৭': '7', - '৮': '8', - '৯': '9', - '০': '0', - }; - - var bnBd = moment.defineLocale('bn-bd', { - months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( - '_' - ), - monthsShort: - 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split( - '_' - ), - weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( - '_' - ), - weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), - weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'), - longDateFormat: { - LT: 'A h:mm সময়', - LTS: 'A h:mm:ss সময়', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm সময়', - LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', - }, - calendar: { - sameDay: '[আজ] LT', - nextDay: '[আগামীকাল] LT', - nextWeek: 'dddd, LT', - lastDay: '[গতকাল] LT', - lastWeek: '[গত] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s পরে', - past: '%s আগে', - s: 'কয়েক সেকেন্ড', - ss: '%d সেকেন্ড', - m: 'এক মিনিট', - mm: '%d মিনিট', - h: 'এক ঘন্টা', - hh: '%d ঘন্টা', - d: 'এক দিন', - dd: '%d দিন', - M: 'এক মাস', - MM: '%d মাস', - y: 'এক বছর', - yy: '%d বছর', - }, - preparse: function (string) { - return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - - meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'রাত') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ভোর') { - return hour; - } else if (meridiem === 'সকাল') { - return hour; - } else if (meridiem === 'দুপুর') { - return hour >= 3 ? hour : hour + 12; - } else if (meridiem === 'বিকাল') { - return hour + 12; - } else if (meridiem === 'সন্ধ্যা') { - return hour + 12; - } - }, - - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'রাত'; - } else if (hour < 6) { - return 'ভোর'; - } else if (hour < 12) { - return 'সকাল'; - } else if (hour < 15) { - return 'দুপুর'; - } else if (hour < 18) { - return 'বিকাল'; - } else if (hour < 20) { - return 'সন্ধ্যা'; - } else { - return 'রাত'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return bnBd; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/bn.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/bn.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Bengali [bn] -//! author : Kaushik Gandhi : https://github.com/kaushikgandhi - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '১', - 2: '২', - 3: '৩', - 4: '৪', - 5: '৫', - 6: '৬', - 7: '৭', - 8: '৮', - 9: '৯', - 0: '০', - }, - numberMap = { - '১': '1', - '২': '2', - '৩': '3', - '৪': '4', - '৫': '5', - '৬': '6', - '৭': '7', - '৮': '8', - '৯': '9', - '০': '0', - }; - - var bn = moment.defineLocale('bn', { - months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( - '_' - ), - monthsShort: - 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split( - '_' - ), - weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( - '_' - ), - weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), - weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'), - longDateFormat: { - LT: 'A h:mm সময়', - LTS: 'A h:mm:ss সময়', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm সময়', - LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', - }, - calendar: { - sameDay: '[আজ] LT', - nextDay: '[আগামীকাল] LT', - nextWeek: 'dddd, LT', - lastDay: '[গতকাল] LT', - lastWeek: '[গত] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s পরে', - past: '%s আগে', - s: 'কয়েক সেকেন্ড', - ss: '%d সেকেন্ড', - m: 'এক মিনিট', - mm: '%d মিনিট', - h: 'এক ঘন্টা', - hh: '%d ঘন্টা', - d: 'এক দিন', - dd: '%d দিন', - M: 'এক মাস', - MM: '%d মাস', - y: 'এক বছর', - yy: '%d বছর', - }, - preparse: function (string) { - return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - (meridiem === 'রাত' && hour >= 4) || - (meridiem === 'দুপুর' && hour < 5) || - meridiem === 'বিকাল' - ) { - return hour + 12; - } else { - return hour; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'রাত'; - } else if (hour < 10) { - return 'সকাল'; - } else if (hour < 17) { - return 'দুপুর'; - } else if (hour < 20) { - return 'বিকাল'; - } else { - return 'রাত'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return bn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/bo.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/bo.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Tibetan [bo] -//! author : Thupten N. Chakrishar : https://github.com/vajradog - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '༡', - 2: '༢', - 3: '༣', - 4: '༤', - 5: '༥', - 6: '༦', - 7: '༧', - 8: '༨', - 9: '༩', - 0: '༠', - }, - numberMap = { - '༡': '1', - '༢': '2', - '༣': '3', - '༤': '4', - '༥': '5', - '༦': '6', - '༧': '7', - '༨': '8', - '༩': '9', - '༠': '0', - }; - - var bo = moment.defineLocale('bo', { - months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( - '_' - ), - monthsShort: - 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split( - '_' - ), - monthsShortRegex: /^(ཟླ་\d{1,2})/, - monthsParseExact: true, - weekdays: - 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( - '_' - ), - weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( - '_' - ), - weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm', - }, - calendar: { - sameDay: '[དི་རིང] LT', - nextDay: '[སང་ཉིན] LT', - nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', - lastDay: '[ཁ་སང] LT', - lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ལ་', - past: '%s སྔན་ལ', - s: 'ལམ་སང', - ss: '%d སྐར་ཆ།', - m: 'སྐར་མ་གཅིག', - mm: '%d སྐར་མ', - h: 'ཆུ་ཚོད་གཅིག', - hh: '%d ཆུ་ཚོད', - d: 'ཉིན་གཅིག', - dd: '%d ཉིན་', - M: 'ཟླ་བ་གཅིག', - MM: '%d ཟླ་བ', - y: 'ལོ་གཅིག', - yy: '%d ལོ', - }, - preparse: function (string) { - return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - (meridiem === 'མཚན་མོ' && hour >= 4) || - (meridiem === 'ཉིན་གུང' && hour < 5) || - meridiem === 'དགོང་དག' - ) { - return hour + 12; - } else { - return hour; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'མཚན་མོ'; - } else if (hour < 10) { - return 'ཞོགས་ཀས'; - } else if (hour < 17) { - return 'ཉིན་གུང'; - } else if (hour < 20) { - return 'དགོང་དག'; - } else { - return 'མཚན་མོ'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return bo; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/br.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/br.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Breton [br] -//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function relativeTimeWithMutation(number, withoutSuffix, key) { - var format = { - mm: 'munutenn', - MM: 'miz', - dd: 'devezh', - }; - return number + ' ' + mutation(format[key], number); - } - function specialMutationForYears(number) { - switch (lastNumber(number)) { - case 1: - case 3: - case 4: - case 5: - case 9: - return number + ' bloaz'; - default: - return number + ' vloaz'; - } - } - function lastNumber(number) { - if (number > 9) { - return lastNumber(number % 10); - } - return number; - } - function mutation(text, number) { - if (number === 2) { - return softMutation(text); - } - return text; - } - function softMutation(text) { - var mutationTable = { - m: 'v', - b: 'v', - d: 'z', - }; - if (mutationTable[text.charAt(0)] === undefined) { - return text; - } - return mutationTable[text.charAt(0)] + text.substring(1); - } - - var monthsParse = [ - /^gen/i, - /^c[ʼ\']hwe/i, - /^meu/i, - /^ebr/i, - /^mae/i, - /^(mez|eve)/i, - /^gou/i, - /^eos/i, - /^gwe/i, - /^her/i, - /^du/i, - /^ker/i, - ], - monthsRegex = - /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, - monthsStrictRegex = - /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i, - monthsShortStrictRegex = - /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i, - fullWeekdaysParse = [ - /^sul/i, - /^lun/i, - /^meurzh/i, - /^merc[ʼ\']her/i, - /^yaou/i, - /^gwener/i, - /^sadorn/i, - ], - shortWeekdaysParse = [ - /^Sul/i, - /^Lun/i, - /^Meu/i, - /^Mer/i, - /^Yao/i, - /^Gwe/i, - /^Sad/i, - ], - minWeekdaysParse = [ - /^Su/i, - /^Lu/i, - /^Me([^r]|$)/i, - /^Mer/i, - /^Ya/i, - /^Gw/i, - /^Sa/i, - ]; - - var br = moment.defineLocale('br', { - months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split( - '_' - ), - monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), - weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'), - weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), - weekdaysParse: minWeekdaysParse, - fullWeekdaysParse: fullWeekdaysParse, - shortWeekdaysParse: shortWeekdaysParse, - minWeekdaysParse: minWeekdaysParse, - - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: monthsStrictRegex, - monthsShortStrictRegex: monthsShortStrictRegex, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [a viz] MMMM YYYY', - LLL: 'D [a viz] MMMM YYYY HH:mm', - LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Hiziv da] LT', - nextDay: '[Warcʼhoazh da] LT', - nextWeek: 'dddd [da] LT', - lastDay: '[Decʼh da] LT', - lastWeek: 'dddd [paset da] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'a-benn %s', - past: '%s ʼzo', - s: 'un nebeud segondennoù', - ss: '%d eilenn', - m: 'ur vunutenn', - mm: relativeTimeWithMutation, - h: 'un eur', - hh: '%d eur', - d: 'un devezh', - dd: relativeTimeWithMutation, - M: 'ur miz', - MM: relativeTimeWithMutation, - y: 'ur bloaz', - yy: specialMutationForYears, - }, - dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, - ordinal: function (number) { - var output = number === 1 ? 'añ' : 'vet'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn - isPM: function (token) { - return token === 'g.m.'; - }, - meridiem: function (hour, minute, isLower) { - return hour < 12 ? 'a.m.' : 'g.m.'; - }, - }); - - return br; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/bs.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/bs.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Bosnian [bs] -//! author : Nedim Cholich : https://github.com/frontyard -//! author : Rasid Redzic : https://github.com/rasidre -//! based on (hr) translation by Bojan Marković - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - switch (key) { - case 'm': - return withoutSuffix - ? 'jedna minuta' - : isFuture - ? 'jednu minutu' - : 'jedne minute'; - } - } - - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - if (number === 1) { - result += 'sekunda'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sekunde'; - } else { - result += 'sekundi'; - } - return result; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jedan sat'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } - } - - var bs = moment.defineLocale('bs', { - months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: - 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[jučer u] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - return '[prošlu] dddd [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: translate, - m: processRelativeTime, - mm: translate, - h: translate, - hh: translate, - d: 'dan', - dd: translate, - M: 'mjesec', - MM: translate, - y: 'godinu', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return bs; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ca.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ca.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Catalan [ca] -//! author : Juan G. Hurtado : https://github.com/juanghurtado - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ca = moment.defineLocale('ca', { - months: { - standalone: - 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( - '_' - ), - format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( - '_' - ), - isFormat: /D[oD]?(\s)+MMMM/, - }, - monthsShort: - 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( - '_' - ), - monthsParseExact: true, - weekdays: - 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( - '_' - ), - weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), - weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [de] YYYY', - ll: 'D MMM YYYY', - LLL: 'D MMMM [de] YYYY [a les] H:mm', - lll: 'D MMM YYYY, H:mm', - LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', - llll: 'ddd D MMM YYYY, H:mm', - }, - calendar: { - sameDay: function () { - return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - nextDay: function () { - return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - lastDay: function () { - return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [passat a ' + - (this.hours() !== 1 ? 'les' : 'la') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: "d'aquí %s", - past: 'fa %s', - s: 'uns segons', - ss: '%d segons', - m: 'un minut', - mm: '%d minuts', - h: 'una hora', - hh: '%d hores', - d: 'un dia', - dd: '%d dies', - M: 'un mes', - MM: '%d mesos', - y: 'un any', - yy: '%d anys', - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal: function (number, period) { - var output = - number === 1 - ? 'r' - : number === 2 - ? 'n' - : number === 3 - ? 'r' - : number === 4 - ? 't' - : 'è'; - if (period === 'w' || period === 'W') { - output = 'a'; - } - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return ca; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/cs.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/cs.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Czech [cs] -//! author : petrbela : https://github.com/petrbela - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var months = { - standalone: - 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( - '_' - ), - format: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split( - '_' - ), - isFormat: /DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/, - }, - monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), - monthsParse = [ - /^led/i, - /^úno/i, - /^bře/i, - /^dub/i, - /^kvě/i, - /^(čvn|červen$|června)/i, - /^(čvc|červenec|července)/i, - /^srp/i, - /^zář/i, - /^říj/i, - /^lis/i, - /^pro/i, - ], - // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. - // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. - monthsRegex = - /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; - - function plural(n) { - return n > 1 && n < 5 && ~~(n / 10) !== 1; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami'; - case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'sekundy' : 'sekund'); - } else { - return result + 'sekundami'; - } - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou'; - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minuty' : 'minut'); - } else { - return result + 'minutami'; - } - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodin'); - } else { - return result + 'hodinami'; - } - case 'd': // a day / in a day / a day ago - return withoutSuffix || isFuture ? 'den' : 'dnem'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dny' : 'dní'); - } else { - return result + 'dny'; - } - case 'M': // a month / in a month / a month ago - return withoutSuffix || isFuture ? 'měsíc' : 'měsícem'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'měsíce' : 'měsíců'); - } else { - return result + 'měsíci'; - } - case 'y': // a year / in a year / a year ago - return withoutSuffix || isFuture ? 'rok' : 'rokem'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'let'); - } else { - return result + 'lety'; - } - } - } - - var cs = moment.defineLocale('cs', { - months: months, - monthsShort: monthsShort, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched. - // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'. - monthsStrictRegex: - /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, - monthsShortStrictRegex: - /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), - weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), - weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm', - l: 'D. M. YYYY', - }, - calendar: { - sameDay: '[dnes v] LT', - nextDay: '[zítra v] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v neděli v] LT'; - case 1: - case 2: - return '[v] dddd [v] LT'; - case 3: - return '[ve středu v] LT'; - case 4: - return '[ve čtvrtek v] LT'; - case 5: - return '[v pátek v] LT'; - case 6: - return '[v sobotu v] LT'; - } - }, - lastDay: '[včera v] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulou neděli v] LT'; - case 1: - case 2: - return '[minulé] dddd [v] LT'; - case 3: - return '[minulou středu v] LT'; - case 4: - case 5: - return '[minulý] dddd [v] LT'; - case 6: - return '[minulou sobotu v] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'před %s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return cs; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/cv.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/cv.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Chuvash [cv] -//! author : Anatoly Mironov : https://github.com/mirontoli - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var cv = moment.defineLocale('cv', { - months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( - '_' - ), - monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), - weekdays: - 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( - '_' - ), - weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), - weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', - LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', - }, - calendar: { - sameDay: '[Паян] LT [сехетре]', - nextDay: '[Ыран] LT [сехетре]', - lastDay: '[Ӗнер] LT [сехетре]', - nextWeek: '[Ҫитес] dddd LT [сехетре]', - lastWeek: '[Иртнӗ] dddd LT [сехетре]', - sameElse: 'L', - }, - relativeTime: { - future: function (output) { - var affix = /сехет$/i.exec(output) - ? 'рен' - : /ҫул$/i.exec(output) - ? 'тан' - : 'ран'; - return output + affix; - }, - past: '%s каялла', - s: 'пӗр-ик ҫеккунт', - ss: '%d ҫеккунт', - m: 'пӗр минут', - mm: '%d минут', - h: 'пӗр сехет', - hh: '%d сехет', - d: 'пӗр кун', - dd: '%d кун', - M: 'пӗр уйӑх', - MM: '%d уйӑх', - y: 'пӗр ҫул', - yy: '%d ҫул', - }, - dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, - ordinal: '%d-мӗш', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return cv; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/cy.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/cy.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Welsh [cy] -//! author : Robert Allen : https://github.com/robgallen -//! author : https://github.com/ryangreaves - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var cy = moment.defineLocale('cy', { - months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( - '_' - ), - monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( - '_' - ), - weekdays: - 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( - '_' - ), - weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), - weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), - weekdaysParseExact: true, - // time formats are the same as en-gb - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Heddiw am] LT', - nextDay: '[Yfory am] LT', - nextWeek: 'dddd [am] LT', - lastDay: '[Ddoe am] LT', - lastWeek: 'dddd [diwethaf am] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'mewn %s', - past: '%s yn ôl', - s: 'ychydig eiliadau', - ss: '%d eiliad', - m: 'munud', - mm: '%d munud', - h: 'awr', - hh: '%d awr', - d: 'diwrnod', - dd: '%d diwrnod', - M: 'mis', - MM: '%d mis', - y: 'blwyddyn', - yy: '%d flynedd', - }, - dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, - // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh - ordinal: function (number) { - var b = number, - output = '', - lookup = [ - '', - 'af', - 'il', - 'ydd', - 'ydd', - 'ed', - 'ed', - 'ed', - 'fed', - 'fed', - 'fed', // 1af to 10fed - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'eg', - 'fed', - 'eg', - 'fed', // 11eg to 20fed - ]; - if (b > 20) { - if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { - output = 'fed'; // not 30ain, 70ain or 90ain - } else { - output = 'ain'; - } - } else if (b > 0) { - output = lookup[b]; - } - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return cy; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/da.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/da.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Danish [da] -//! author : Ulrik Nielsen : https://github.com/mrbase - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var da = moment.defineLocale('da', { - months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'på dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[i] dddd[s kl.] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'få sekunder', - ss: '%d sekunder', - m: 'et minut', - mm: '%d minutter', - h: 'en time', - hh: '%d timer', - d: 'en dag', - dd: '%d dage', - M: 'en måned', - MM: '%d måneder', - y: 'et år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return da; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/de-at.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/de-at.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : German (Austria) [de-at] -//! author : lluchs : https://github.com/lluchs -//! author: Menelion Elensúle: https://github.com/Oire -//! author : Martin Groller : https://github.com/MadMG -//! author : Mikolaj Dadela : https://github.com/mik01aj - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - w: ['eine Woche', 'einer Woche'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - - var deAt = moment.defineLocale('de-at', { - months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: - 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), - monthsParseExact: true, - weekdays: - 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]', - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - w: processRelativeTime, - ww: '%d Wochen', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return deAt; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/de-ch.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/de-ch.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : German (Switzerland) [de-ch] -//! author : sschueller : https://github.com/sschueller - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - w: ['eine Woche', 'einer Woche'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - - var deCh = moment.defineLocale('de-ch', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: - 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), - monthsParseExact: true, - weekdays: - 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]', - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - w: processRelativeTime, - ww: '%d Wochen', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return deCh; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/de.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/de.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : German [de] -//! author : lluchs : https://github.com/lluchs -//! author: Menelion Elensúle: https://github.com/Oire -//! author : Mikolaj Dadela : https://github.com/mik01aj - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eine Minute', 'einer Minute'], - h: ['eine Stunde', 'einer Stunde'], - d: ['ein Tag', 'einem Tag'], - dd: [number + ' Tage', number + ' Tagen'], - w: ['eine Woche', 'einer Woche'], - M: ['ein Monat', 'einem Monat'], - MM: [number + ' Monate', number + ' Monaten'], - y: ['ein Jahr', 'einem Jahr'], - yy: [number + ' Jahre', number + ' Jahren'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - - var de = moment.defineLocale('de', { - months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: - 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'), - monthsParseExact: true, - weekdays: - 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( - '_' - ), - weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY HH:mm', - LLLL: 'dddd, D. MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[heute um] LT [Uhr]', - sameElse: 'L', - nextDay: '[morgen um] LT [Uhr]', - nextWeek: 'dddd [um] LT [Uhr]', - lastDay: '[gestern um] LT [Uhr]', - lastWeek: '[letzten] dddd [um] LT [Uhr]', - }, - relativeTime: { - future: 'in %s', - past: 'vor %s', - s: 'ein paar Sekunden', - ss: '%d Sekunden', - m: processRelativeTime, - mm: '%d Minuten', - h: processRelativeTime, - hh: '%d Stunden', - d: processRelativeTime, - dd: processRelativeTime, - w: processRelativeTime, - ww: '%d Wochen', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return de; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/dv.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/dv.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Maldivian [dv] -//! author : Jawish Hameed : https://github.com/jawish - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var months = [ - 'ޖެނުއަރީ', - 'ފެބްރުއަރީ', - 'މާރިޗު', - 'އޭޕްރީލު', - 'މޭ', - 'ޖޫން', - 'ޖުލައި', - 'އޯގަސްޓު', - 'ސެޕްޓެމްބަރު', - 'އޮކްޓޯބަރު', - 'ނޮވެމްބަރު', - 'ޑިސެމްބަރު', - ], - weekdays = [ - 'އާދިއްތަ', - 'ހޯމަ', - 'އަންގާރަ', - 'ބުދަ', - 'ބުރާސްފަތި', - 'ހުކުރު', - 'ހޮނިހިރު', - ]; - - var dv = moment.defineLocale('dv', { - months: months, - monthsShort: months, - weekdays: weekdays, - weekdaysShort: weekdays, - weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'D/M/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - meridiemParse: /މކ|މފ/, - isPM: function (input) { - return 'މފ' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'މކ'; - } else { - return 'މފ'; - } - }, - calendar: { - sameDay: '[މިއަދު] LT', - nextDay: '[މާދަމާ] LT', - nextWeek: 'dddd LT', - lastDay: '[އިއްޔެ] LT', - lastWeek: '[ފާއިތުވި] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ތެރޭގައި %s', - past: 'ކުރިން %s', - s: 'ސިކުންތުކޮޅެއް', - ss: 'd% ސިކުންތު', - m: 'މިނިޓެއް', - mm: 'މިނިޓު %d', - h: 'ގަޑިއިރެއް', - hh: 'ގަޑިއިރު %d', - d: 'ދުވަހެއް', - dd: 'ދުވަސް %d', - M: 'މަހެއް', - MM: 'މަސް %d', - y: 'އަހަރެއް', - yy: 'އަހަރު %d', - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 7, // Sunday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - - return dv; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/el.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/el.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Greek [el] -//! author : Aggelos Karalias : https://github.com/mehiel - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function isFunction(input) { - return ( - (typeof Function !== 'undefined' && input instanceof Function) || - Object.prototype.toString.call(input) === '[object Function]' - ); - } - - var el = moment.defineLocale('el', { - monthsNominativeEl: - 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( - '_' - ), - monthsGenitiveEl: - 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( - '_' - ), - months: function (momentToFormat, format) { - if (!momentToFormat) { - return this._monthsNominativeEl; - } else if ( - typeof format === 'string' && - /D/.test(format.substring(0, format.indexOf('MMMM'))) - ) { - // if there is a day number before 'MMMM' - return this._monthsGenitiveEl[momentToFormat.month()]; - } else { - return this._monthsNominativeEl[momentToFormat.month()]; - } - }, - monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), - weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( - '_' - ), - weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), - weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'μμ' : 'ΜΜ'; - } else { - return isLower ? 'πμ' : 'ΠΜ'; - } - }, - isPM: function (input) { - return (input + '').toLowerCase()[0] === 'μ'; - }, - meridiemParse: /[ΠΜ]\.?Μ?\.?/i, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendarEl: { - sameDay: '[Σήμερα {}] LT', - nextDay: '[Αύριο {}] LT', - nextWeek: 'dddd [{}] LT', - lastDay: '[Χθες {}] LT', - lastWeek: function () { - switch (this.day()) { - case 6: - return '[το προηγούμενο] dddd [{}] LT'; - default: - return '[την προηγούμενη] dddd [{}] LT'; - } - }, - sameElse: 'L', - }, - calendar: function (key, mom) { - var output = this._calendarEl[key], - hours = mom && mom.hours(); - if (isFunction(output)) { - output = output.apply(mom); - } - return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις'); - }, - relativeTime: { - future: 'σε %s', - past: '%s πριν', - s: 'λίγα δευτερόλεπτα', - ss: '%d δευτερόλεπτα', - m: 'ένα λεπτό', - mm: '%d λεπτά', - h: 'μία ώρα', - hh: '%d ώρες', - d: 'μία μέρα', - dd: '%d μέρες', - M: 'ένας μήνας', - MM: '%d μήνες', - y: 'ένας χρόνος', - yy: '%d χρόνια', - }, - dayOfMonthOrdinalParse: /\d{1,2}η/, - ordinal: '%dη', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4st is the first week of the year. - }, - }); - - return el; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/en-au.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/en-au.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : English (Australia) [en-au] -//! author : Jared Morse : https://github.com/jarcoal - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var enAu = moment.defineLocale('en-au', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return enAu; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/en-ca.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/en-ca.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : English (Canada) [en-ca] -//! author : Jonathan Abourbih : https://github.com/jonbca - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var enCa = moment.defineLocale('en-ca', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'YYYY-MM-DD', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY h:mm A', - LLLL: 'dddd, MMMM D, YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); - - return enCa; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/en-gb.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/en-gb.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : English (United Kingdom) [en-gb] -//! author : Chris Gedrim : https://github.com/chrisgedrim - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var enGb = moment.defineLocale('en-gb', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return enGb; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/en-ie.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/en-ie.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : English (Ireland) [en-ie] -//! author : Chris Cartlidge : https://github.com/chriscartlidge - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var enIe = moment.defineLocale('en-ie', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return enIe; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/en-il.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/en-il.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : English (Israel) [en-il] -//! author : Chris Gedrim : https://github.com/chrisgedrim - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var enIl = moment.defineLocale('en-il', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); - - return enIl; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/en-in.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/en-in.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : English (India) [en-in] -//! author : Jatin Agrawal : https://github.com/jatinag22 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var enIn = moment.defineLocale('en-in', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 1st is the first week of the year. - }, - }); - - return enIn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/en-nz.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/en-nz.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : English (New Zealand) [en-nz] -//! author : Luke McGregor : https://github.com/lukemcgregor - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var enNz = moment.defineLocale('en-nz', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return enNz; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/en-sg.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/en-sg.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : English (Singapore) [en-sg] -//! author : Matthew Castrillon-Madrigal : https://github.com/techdimension - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var enSg = moment.defineLocale('en-sg', { - months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return enSg; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/eo.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/eo.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Esperanto [eo] -//! author : Colin Dean : https://github.com/colindean -//! author : Mia Nordentoft Imperatori : https://github.com/miestasmia -//! comment : miestasmia corrected the translation by colindean -//! comment : Vivakvo corrected the translation by colindean and miestasmia - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var eo = moment.defineLocale('eo', { - months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( - '_' - ), - monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'), - weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'), - weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), - weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: '[la] D[-an de] MMMM, YYYY', - LLL: '[la] D[-an de] MMMM, YYYY HH:mm', - LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm', - llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm', - }, - meridiemParse: /[ap]\.t\.m/i, - isPM: function (input) { - return input.charAt(0).toLowerCase() === 'p'; - }, - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'p.t.m.' : 'P.T.M.'; - } else { - return isLower ? 'a.t.m.' : 'A.T.M.'; - } - }, - calendar: { - sameDay: '[Hodiaŭ je] LT', - nextDay: '[Morgaŭ je] LT', - nextWeek: 'dddd[n je] LT', - lastDay: '[Hieraŭ je] LT', - lastWeek: '[pasintan] dddd[n je] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'post %s', - past: 'antaŭ %s', - s: 'kelkaj sekundoj', - ss: '%d sekundoj', - m: 'unu minuto', - mm: '%d minutoj', - h: 'unu horo', - hh: '%d horoj', - d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo - dd: '%d tagoj', - M: 'unu monato', - MM: '%d monatoj', - y: 'unu jaro', - yy: '%d jaroj', - }, - dayOfMonthOrdinalParse: /\d{1,2}a/, - ordinal: '%da', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return eo; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/es-do.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/es-do.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Spanish (Dominican Republic) [es-do] - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var monthsShortDot = - 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = - /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - - var esDo = moment.defineLocale('es-do', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: - /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: - /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY h:mm A', - LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - w: 'una semana', - ww: '%d semanas', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return esDo; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/es-mx.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/es-mx.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Spanish (Mexico) [es-mx] -//! author : JC Franco : https://github.com/jcfranco - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var monthsShortDot = - 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = - /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - - var esMx = moment.defineLocale('es-mx', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: - /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: - /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - w: 'una semana', - ww: '%d semanas', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 0, // Sunday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - invalidDate: 'Fecha inválida', - }); - - return esMx; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/es-us.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/es-us.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Spanish (United States) [es-us] -//! author : bustta : https://github.com/bustta -//! author : chrisrodz : https://github.com/chrisrodz - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var monthsShortDot = - 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = - /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - - var esUs = moment.defineLocale('es-us', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: - /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: - /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'MM/DD/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY h:mm A', - LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - w: 'una semana', - ww: '%d semanas', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return esUs; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/es.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/es.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Spanish [es] -//! author : Julio Napurí : https://github.com/julionc - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var monthsShortDot = - 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( - '_' - ), - monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), - monthsParse = [ - /^ene/i, - /^feb/i, - /^mar/i, - /^abr/i, - /^may/i, - /^jun/i, - /^jul/i, - /^ago/i, - /^sep/i, - /^oct/i, - /^nov/i, - /^dic/i, - ], - monthsRegex = - /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; - - var es = moment.defineLocale('es', { - months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortDot; - } else if (/-MMM-/.test(format)) { - return monthsShort[m.month()]; - } else { - return monthsShortDot[m.month()]; - } - }, - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: - /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, - monthsShortStrictRegex: - /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', - }, - calendar: { - sameDay: function () { - return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextDay: function () { - return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - nextWeek: function () { - return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastDay: function () { - return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT'; - }, - lastWeek: function () { - return ( - '[el] dddd [pasado a la' + - (this.hours() !== 1 ? 's' : '') + - '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: 'en %s', - past: 'hace %s', - s: 'unos segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'una hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - w: 'una semana', - ww: '%d semanas', - M: 'un mes', - MM: '%d meses', - y: 'un año', - yy: '%d años', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - invalidDate: 'Fecha inválida', - }); - - return es; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/et.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/et.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Estonian [et] -//! author : Henry Kehlmann : https://github.com/madhenry -//! improvements : Illimar Tambek : https://github.com/ragulka - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], - ss: [number + 'sekundi', number + 'sekundit'], - m: ['ühe minuti', 'üks minut'], - mm: [number + ' minuti', number + ' minutit'], - h: ['ühe tunni', 'tund aega', 'üks tund'], - hh: [number + ' tunni', number + ' tundi'], - d: ['ühe päeva', 'üks päev'], - M: ['kuu aja', 'kuu aega', 'üks kuu'], - MM: [number + ' kuu', number + ' kuud'], - y: ['ühe aasta', 'aasta', 'üks aasta'], - yy: [number + ' aasta', number + ' aastat'], - }; - if (withoutSuffix) { - return format[key][2] ? format[key][2] : format[key][1]; - } - return isFuture ? format[key][0] : format[key][1]; - } - - var et = moment.defineLocale('et', { - months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( - '_' - ), - monthsShort: - 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'), - weekdays: - 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( - '_' - ), - weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), - weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[Täna,] LT', - nextDay: '[Homme,] LT', - nextWeek: '[Järgmine] dddd LT', - lastDay: '[Eile,] LT', - lastWeek: '[Eelmine] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s pärast', - past: '%s tagasi', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: '%d päeva', - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return et; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/eu.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/eu.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Basque [eu] -//! author : Eneko Illarramendi : https://github.com/eillarra - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var eu = moment.defineLocale('eu', { - months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( - '_' - ), - monthsShort: - 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( - '_' - ), - monthsParseExact: true, - weekdays: - 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( - '_' - ), - weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), - weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY[ko] MMMM[ren] D[a]', - LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', - LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', - l: 'YYYY-M-D', - ll: 'YYYY[ko] MMM D[a]', - lll: 'YYYY[ko] MMM D[a] HH:mm', - llll: 'ddd, YYYY[ko] MMM D[a] HH:mm', - }, - calendar: { - sameDay: '[gaur] LT[etan]', - nextDay: '[bihar] LT[etan]', - nextWeek: 'dddd LT[etan]', - lastDay: '[atzo] LT[etan]', - lastWeek: '[aurreko] dddd LT[etan]', - sameElse: 'L', - }, - relativeTime: { - future: '%s barru', - past: 'duela %s', - s: 'segundo batzuk', - ss: '%d segundo', - m: 'minutu bat', - mm: '%d minutu', - h: 'ordu bat', - hh: '%d ordu', - d: 'egun bat', - dd: '%d egun', - M: 'hilabete bat', - MM: '%d hilabete', - y: 'urte bat', - yy: '%d urte', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return eu; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/fa.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/fa.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Persian [fa] -//! author : Ebrahim Byagowi : https://github.com/ebraminio - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '۱', - 2: '۲', - 3: '۳', - 4: '۴', - 5: '۵', - 6: '۶', - 7: '۷', - 8: '۸', - 9: '۹', - 0: '۰', - }, - numberMap = { - '۱': '1', - '۲': '2', - '۳': '3', - '۴': '4', - '۵': '5', - '۶': '6', - '۷': '7', - '۸': '8', - '۹': '9', - '۰': '0', - }; - - var fa = moment.defineLocale('fa', { - months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( - '_' - ), - monthsShort: - 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( - '_' - ), - weekdays: - 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( - '_' - ), - weekdaysShort: - 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split( - '_' - ), - weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - meridiemParse: /قبل از ظهر|بعد از ظهر/, - isPM: function (input) { - return /بعد از ظهر/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'قبل از ظهر'; - } else { - return 'بعد از ظهر'; - } - }, - calendar: { - sameDay: '[امروز ساعت] LT', - nextDay: '[فردا ساعت] LT', - nextWeek: 'dddd [ساعت] LT', - lastDay: '[دیروز ساعت] LT', - lastWeek: 'dddd [پیش] [ساعت] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'در %s', - past: '%s پیش', - s: 'چند ثانیه', - ss: '%d ثانیه', - m: 'یک دقیقه', - mm: '%d دقیقه', - h: 'یک ساعت', - hh: '%d ساعت', - d: 'یک روز', - dd: '%d روز', - M: 'یک ماه', - MM: '%d ماه', - y: 'یک سال', - yy: '%d سال', - }, - preparse: function (string) { - return string - .replace(/[۰-۹]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - dayOfMonthOrdinalParse: /\d{1,2}م/, - ordinal: '%dم', - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - - return fa; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/fi.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/fi.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Finnish [fi] -//! author : Tarmo Aidantausta : https://github.com/bleadof - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var numbersPast = - 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( - ' ' - ), - numbersFuture = [ - 'nolla', - 'yhden', - 'kahden', - 'kolmen', - 'neljän', - 'viiden', - 'kuuden', - numbersPast[7], - numbersPast[8], - numbersPast[9], - ]; - function translate(number, withoutSuffix, key, isFuture) { - var result = ''; - switch (key) { - case 's': - return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; - case 'ss': - result = isFuture ? 'sekunnin' : 'sekuntia'; - break; - case 'm': - return isFuture ? 'minuutin' : 'minuutti'; - case 'mm': - result = isFuture ? 'minuutin' : 'minuuttia'; - break; - case 'h': - return isFuture ? 'tunnin' : 'tunti'; - case 'hh': - result = isFuture ? 'tunnin' : 'tuntia'; - break; - case 'd': - return isFuture ? 'päivän' : 'päivä'; - case 'dd': - result = isFuture ? 'päivän' : 'päivää'; - break; - case 'M': - return isFuture ? 'kuukauden' : 'kuukausi'; - case 'MM': - result = isFuture ? 'kuukauden' : 'kuukautta'; - break; - case 'y': - return isFuture ? 'vuoden' : 'vuosi'; - case 'yy': - result = isFuture ? 'vuoden' : 'vuotta'; - break; - } - result = verbalNumber(number, isFuture) + ' ' + result; - return result; - } - function verbalNumber(number, isFuture) { - return number < 10 - ? isFuture - ? numbersFuture[number] - : numbersPast[number] - : number; - } - - var fi = moment.defineLocale('fi', { - months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( - '_' - ), - monthsShort: - 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( - '_' - ), - weekdays: - 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( - '_' - ), - weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), - weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'Do MMMM[ta] YYYY', - LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', - LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', - l: 'D.M.YYYY', - ll: 'Do MMM YYYY', - lll: 'Do MMM YYYY, [klo] HH.mm', - llll: 'ddd, Do MMM YYYY, [klo] HH.mm', - }, - calendar: { - sameDay: '[tänään] [klo] LT', - nextDay: '[huomenna] [klo] LT', - nextWeek: 'dddd [klo] LT', - lastDay: '[eilen] [klo] LT', - lastWeek: '[viime] dddd[na] [klo] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s päästä', - past: '%s sitten', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return fi; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/fil.js": -/*!*******************************************!*\ - !*** ./node_modules/moment/locale/fil.js ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Filipino [fil] -//! author : Dan Hagman : https://github.com/hagmandan -//! author : Matthew Co : https://github.com/matthewdeeco - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var fil = moment.defineLocale('fil', { - months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( - '_' - ), - monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), - weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( - '_' - ), - weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'MM/D/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY HH:mm', - LLLL: 'dddd, MMMM DD, YYYY HH:mm', - }, - calendar: { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L', - }, - relativeTime: { - future: 'sa loob ng %s', - past: '%s ang nakalipas', - s: 'ilang segundo', - ss: '%d segundo', - m: 'isang minuto', - mm: '%d minuto', - h: 'isang oras', - hh: '%d oras', - d: 'isang araw', - dd: '%d araw', - M: 'isang buwan', - MM: '%d buwan', - y: 'isang taon', - yy: '%d taon', - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function (number) { - return number; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return fil; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/fo.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/fo.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Faroese [fo] -//! author : Ragnar Johannesen : https://github.com/ragnar123 -//! author : Kristian Sakarisson : https://github.com/sakarisson - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var fo = moment.defineLocale('fo', { - months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), - weekdays: - 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), - weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D. MMMM, YYYY HH:mm', - }, - calendar: { - sameDay: '[Í dag kl.] LT', - nextDay: '[Í morgin kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[Í gjár kl.] LT', - lastWeek: '[síðstu] dddd [kl] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'um %s', - past: '%s síðani', - s: 'fá sekund', - ss: '%d sekundir', - m: 'ein minuttur', - mm: '%d minuttir', - h: 'ein tími', - hh: '%d tímar', - d: 'ein dagur', - dd: '%d dagar', - M: 'ein mánaður', - MM: '%d mánaðir', - y: 'eitt ár', - yy: '%d ár', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return fo; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/fr-ca.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/fr-ca.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : French (Canada) [fr-ca] -//! author : Jonathan Abourbih : https://github.com/jonbca - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var frCa = moment.defineLocale('fr-ca', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: - 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); - - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - }); - - return frCa; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/fr-ch.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/fr-ch.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : French (Switzerland) [fr-ch] -//! author : Gaspard Bucher : https://github.com/gaspard - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var frCh = moment.defineLocale('fr-ch', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: - 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, - ordinal: function (number, period) { - switch (period) { - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'D': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); - - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return frCh; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/fr.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/fr.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : French [fr] -//! author : John Fischer : https://github.com/jfroffice - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var monthsStrictRegex = - /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, - monthsShortStrictRegex = - /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, - monthsRegex = - /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, - monthsParse = [ - /^janv/i, - /^févr/i, - /^mars/i, - /^avr/i, - /^mai/i, - /^juin/i, - /^juil/i, - /^août/i, - /^sept/i, - /^oct/i, - /^nov/i, - /^déc/i, - ]; - - var fr = moment.defineLocale('fr', { - months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( - '_' - ), - monthsShort: - 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( - '_' - ), - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: monthsStrictRegex, - monthsShortStrictRegex: monthsShortStrictRegex, - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), - weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), - weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Aujourd’hui à] LT', - nextDay: '[Demain à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[Hier à] LT', - lastWeek: 'dddd [dernier à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dans %s', - past: 'il y a %s', - s: 'quelques secondes', - ss: '%d secondes', - m: 'une minute', - mm: '%d minutes', - h: 'une heure', - hh: '%d heures', - d: 'un jour', - dd: '%d jours', - w: 'une semaine', - ww: '%d semaines', - M: 'un mois', - MM: '%d mois', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(er|)/, - ordinal: function (number, period) { - switch (period) { - // TODO: Return 'e' when day of month > 1. Move this case inside - // block for masculine words below. - // See https://github.com/moment/moment/issues/3375 - case 'D': - return number + (number === 1 ? 'er' : ''); - - // Words with masculine grammatical gender: mois, trimestre, jour - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - return number + (number === 1 ? 'er' : 'e'); - - // Words with feminine grammatical gender: semaine - case 'w': - case 'W': - return number + (number === 1 ? 're' : 'e'); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return fr; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/fy.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/fy.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Frisian [fy] -//! author : Robin van der Vliet : https://github.com/robin0van0der0v - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var monthsShortWithDots = - 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'), - monthsShortWithoutDots = - 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); - - var fy = moment.defineLocale('fy', { - months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, - monthsParseExact: true, - weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( - '_' - ), - weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), - weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[hjoed om] LT', - nextDay: '[moarn om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[juster om] LT', - lastWeek: '[ôfrûne] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'oer %s', - past: '%s lyn', - s: 'in pear sekonden', - ss: '%d sekonden', - m: 'ien minút', - mm: '%d minuten', - h: 'ien oere', - hh: '%d oeren', - d: 'ien dei', - dd: '%d dagen', - M: 'ien moanne', - MM: '%d moannen', - y: 'ien jier', - yy: '%d jierren', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return fy; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ga.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ga.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Irish or Irish Gaelic [ga] -//! author : André Silva : https://github.com/askpt - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var months = [ - 'Eanáir', - 'Feabhra', - 'Márta', - 'Aibreán', - 'Bealtaine', - 'Meitheamh', - 'Iúil', - 'Lúnasa', - 'Meán Fómhair', - 'Deireadh Fómhair', - 'Samhain', - 'Nollaig', - ], - monthsShort = [ - 'Ean', - 'Feabh', - 'Márt', - 'Aib', - 'Beal', - 'Meith', - 'Iúil', - 'Lún', - 'M.F.', - 'D.F.', - 'Samh', - 'Noll', - ], - weekdays = [ - 'Dé Domhnaigh', - 'Dé Luain', - 'Dé Máirt', - 'Dé Céadaoin', - 'Déardaoin', - 'Dé hAoine', - 'Dé Sathairn', - ], - weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'], - weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa']; - - var ga = moment.defineLocale('ga', { - months: months, - monthsShort: monthsShort, - monthsParseExact: true, - weekdays: weekdays, - weekdaysShort: weekdaysShort, - weekdaysMin: weekdaysMin, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Inniu ag] LT', - nextDay: '[Amárach ag] LT', - nextWeek: 'dddd [ag] LT', - lastDay: '[Inné ag] LT', - lastWeek: 'dddd [seo caite] [ag] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'i %s', - past: '%s ó shin', - s: 'cúpla soicind', - ss: '%d soicind', - m: 'nóiméad', - mm: '%d nóiméad', - h: 'uair an chloig', - hh: '%d uair an chloig', - d: 'lá', - dd: '%d lá', - M: 'mí', - MM: '%d míonna', - y: 'bliain', - yy: '%d bliain', - }, - dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, - ordinal: function (number) { - var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return ga; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/gd.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/gd.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Scottish Gaelic [gd] -//! author : Jon Ashdown : https://github.com/jonashdown - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var months = [ - 'Am Faoilleach', - 'An Gearran', - 'Am Màrt', - 'An Giblean', - 'An Cèitean', - 'An t-Ògmhios', - 'An t-Iuchar', - 'An Lùnastal', - 'An t-Sultain', - 'An Dàmhair', - 'An t-Samhain', - 'An Dùbhlachd', - ], - monthsShort = [ - 'Faoi', - 'Gear', - 'Màrt', - 'Gibl', - 'Cèit', - 'Ògmh', - 'Iuch', - 'Lùn', - 'Sult', - 'Dàmh', - 'Samh', - 'Dùbh', - ], - weekdays = [ - 'Didòmhnaich', - 'Diluain', - 'Dimàirt', - 'Diciadain', - 'Diardaoin', - 'Dihaoine', - 'Disathairne', - ], - weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], - weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa']; - - var gd = moment.defineLocale('gd', { - months: months, - monthsShort: monthsShort, - monthsParseExact: true, - weekdays: weekdays, - weekdaysShort: weekdaysShort, - weekdaysMin: weekdaysMin, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[An-diugh aig] LT', - nextDay: '[A-màireach aig] LT', - nextWeek: 'dddd [aig] LT', - lastDay: '[An-dè aig] LT', - lastWeek: 'dddd [seo chaidh] [aig] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ann an %s', - past: 'bho chionn %s', - s: 'beagan diogan', - ss: '%d diogan', - m: 'mionaid', - mm: '%d mionaidean', - h: 'uair', - hh: '%d uairean', - d: 'latha', - dd: '%d latha', - M: 'mìos', - MM: '%d mìosan', - y: 'bliadhna', - yy: '%d bliadhna', - }, - dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, - ordinal: function (number) { - var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return gd; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/gl.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/gl.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Galician [gl] -//! author : Juan G. Hurtado : https://github.com/juanghurtado - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var gl = moment.defineLocale('gl', { - months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( - '_' - ), - monthsShort: - 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), - weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), - weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY H:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', - }, - calendar: { - sameDay: function () { - return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; - }, - nextDay: function () { - return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT'; - }, - nextWeek: function () { - return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'; - }, - lastDay: function () { - return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT'; - }, - lastWeek: function () { - return ( - '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT' - ); - }, - sameElse: 'L', - }, - relativeTime: { - future: function (str) { - if (str.indexOf('un') === 0) { - return 'n' + str; - } - return 'en ' + str; - }, - past: 'hai %s', - s: 'uns segundos', - ss: '%d segundos', - m: 'un minuto', - mm: '%d minutos', - h: 'unha hora', - hh: '%d horas', - d: 'un día', - dd: '%d días', - M: 'un mes', - MM: '%d meses', - y: 'un ano', - yy: '%d anos', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return gl; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/gom-deva.js": -/*!************************************************!*\ - !*** ./node_modules/moment/locale/gom-deva.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Konkani Devanagari script [gom-deva] -//! author : The Discoverer : https://github.com/WikiDiscoverer - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'], - ss: [number + ' सॅकंडांनी', number + ' सॅकंड'], - m: ['एका मिणटान', 'एक मिनूट'], - mm: [number + ' मिणटांनी', number + ' मिणटां'], - h: ['एका वरान', 'एक वर'], - hh: [number + ' वरांनी', number + ' वरां'], - d: ['एका दिसान', 'एक दीस'], - dd: [number + ' दिसांनी', number + ' दीस'], - M: ['एका म्हयन्यान', 'एक म्हयनो'], - MM: [number + ' म्हयन्यानी', number + ' म्हयने'], - y: ['एका वर्सान', 'एक वर्स'], - yy: [number + ' वर्सांनी', number + ' वर्सां'], - }; - return isFuture ? format[key][0] : format[key][1]; - } - - var gomDeva = moment.defineLocale('gom-deva', { - months: { - standalone: - 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( - '_' - ), - format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split( - '_' - ), - isFormat: /MMMM(\s)+D[oD]?/, - }, - monthsShort: - 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'), - weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'), - weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'A h:mm [वाजतां]', - LTS: 'A h:mm:ss [वाजतां]', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY A h:mm [वाजतां]', - LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]', - llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]', - }, - calendar: { - sameDay: '[आयज] LT', - nextDay: '[फाल्यां] LT', - nextWeek: '[फुडलो] dddd[,] LT', - lastDay: '[काल] LT', - lastWeek: '[फाटलो] dddd[,] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s', - past: '%s आदीं', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}(वेर)/, - ordinal: function (number, period) { - switch (period) { - // the ordinal 'वेर' only applies to day of the month - case 'D': - return number + 'वेर'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return number; - } - }, - week: { - dow: 0, // Sunday is the first day of the week - doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4) - }, - meridiemParse: /राती|सकाळीं|दनपारां|सांजे/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'राती') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सकाळीं') { - return hour; - } else if (meridiem === 'दनपारां') { - return hour > 12 ? hour : hour + 12; - } else if (meridiem === 'सांजे') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'राती'; - } else if (hour < 12) { - return 'सकाळीं'; - } else if (hour < 16) { - return 'दनपारां'; - } else if (hour < 20) { - return 'सांजे'; - } else { - return 'राती'; - } - }, - }); - - return gomDeva; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/gom-latn.js": -/*!************************************************!*\ - !*** ./node_modules/moment/locale/gom-latn.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Konkani Latin script [gom-latn] -//! author : The Discoverer : https://github.com/WikiDiscoverer - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['thoddea sekondamni', 'thodde sekond'], - ss: [number + ' sekondamni', number + ' sekond'], - m: ['eka mintan', 'ek minut'], - mm: [number + ' mintamni', number + ' mintam'], - h: ['eka voran', 'ek vor'], - hh: [number + ' voramni', number + ' voram'], - d: ['eka disan', 'ek dis'], - dd: [number + ' disamni', number + ' dis'], - M: ['eka mhoinean', 'ek mhoino'], - MM: [number + ' mhoineamni', number + ' mhoine'], - y: ['eka vorsan', 'ek voros'], - yy: [number + ' vorsamni', number + ' vorsam'], - }; - return isFuture ? format[key][0] : format[key][1]; - } - - var gomLatn = moment.defineLocale('gom-latn', { - months: { - standalone: - 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( - '_' - ), - format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split( - '_' - ), - isFormat: /MMMM(\s)+D[oD]?/, - }, - monthsShort: - 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'), - monthsParseExact: true, - weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'), - weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), - weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'A h:mm [vazta]', - LTS: 'A h:mm:ss [vazta]', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY A h:mm [vazta]', - LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]', - llll: 'ddd, D MMM YYYY, A h:mm [vazta]', - }, - calendar: { - sameDay: '[Aiz] LT', - nextDay: '[Faleam] LT', - nextWeek: '[Fuddlo] dddd[,] LT', - lastDay: '[Kal] LT', - lastWeek: '[Fattlo] dddd[,] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s', - past: '%s adim', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}(er)/, - ordinal: function (number, period) { - switch (period) { - // the ordinal 'er' only applies to day of the month - case 'D': - return number + 'er'; - default: - case 'M': - case 'Q': - case 'DDD': - case 'd': - case 'w': - case 'W': - return number; - } - }, - week: { - dow: 0, // Sunday is the first day of the week - doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4) - }, - meridiemParse: /rati|sokallim|donparam|sanje/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'rati') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'sokallim') { - return hour; - } else if (meridiem === 'donparam') { - return hour > 12 ? hour : hour + 12; - } else if (meridiem === 'sanje') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'rati'; - } else if (hour < 12) { - return 'sokallim'; - } else if (hour < 16) { - return 'donparam'; - } else if (hour < 20) { - return 'sanje'; - } else { - return 'rati'; - } - }, - }); - - return gomLatn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/gu.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/gu.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Gujarati [gu] -//! author : Kaushik Thanki : https://github.com/Kaushik1987 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '૧', - 2: '૨', - 3: '૩', - 4: '૪', - 5: '૫', - 6: '૬', - 7: '૭', - 8: '૮', - 9: '૯', - 0: '૦', - }, - numberMap = { - '૧': '1', - '૨': '2', - '૩': '3', - '૪': '4', - '૫': '5', - '૬': '6', - '૭': '7', - '૮': '8', - '૯': '9', - '૦': '0', - }; - - var gu = moment.defineLocale('gu', { - months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( - '_' - ), - monthsShort: - 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( - '_' - ), - weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), - weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), - longDateFormat: { - LT: 'A h:mm વાગ્યે', - LTS: 'A h:mm:ss વાગ્યે', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm વાગ્યે', - LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે', - }, - calendar: { - sameDay: '[આજ] LT', - nextDay: '[કાલે] LT', - nextWeek: 'dddd, LT', - lastDay: '[ગઇકાલે] LT', - lastWeek: '[પાછલા] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s મા', - past: '%s પહેલા', - s: 'અમુક પળો', - ss: '%d સેકંડ', - m: 'એક મિનિટ', - mm: '%d મિનિટ', - h: 'એક કલાક', - hh: '%d કલાક', - d: 'એક દિવસ', - dd: '%d દિવસ', - M: 'એક મહિનો', - MM: '%d મહિનો', - y: 'એક વર્ષ', - yy: '%d વર્ષ', - }, - preparse: function (string) { - return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Gujarati notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati. - meridiemParse: /રાત|બપોર|સવાર|સાંજ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'રાત') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'સવાર') { - return hour; - } else if (meridiem === 'બપોર') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'સાંજ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'રાત'; - } else if (hour < 10) { - return 'સવાર'; - } else if (hour < 17) { - return 'બપોર'; - } else if (hour < 20) { - return 'સાંજ'; - } else { - return 'રાત'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return gu; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/he.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/he.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Hebrew [he] -//! author : Tomer Cohen : https://github.com/tomer -//! author : Moshe Simantov : https://github.com/DevelopmentIL -//! author : Tal Ater : https://github.com/TalAter - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var he = moment.defineLocale('he', { - months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( - '_' - ), - monthsShort: - 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'), - weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), - weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), - weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [ב]MMMM YYYY', - LLL: 'D [ב]MMMM YYYY HH:mm', - LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', - l: 'D/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm', - }, - calendar: { - sameDay: '[היום ב־]LT', - nextDay: '[מחר ב־]LT', - nextWeek: 'dddd [בשעה] LT', - lastDay: '[אתמול ב־]LT', - lastWeek: '[ביום] dddd [האחרון בשעה] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'בעוד %s', - past: 'לפני %s', - s: 'מספר שניות', - ss: '%d שניות', - m: 'דקה', - mm: '%d דקות', - h: 'שעה', - hh: function (number) { - if (number === 2) { - return 'שעתיים'; - } - return number + ' שעות'; - }, - d: 'יום', - dd: function (number) { - if (number === 2) { - return 'יומיים'; - } - return number + ' ימים'; - }, - M: 'חודש', - MM: function (number) { - if (number === 2) { - return 'חודשיים'; - } - return number + ' חודשים'; - }, - y: 'שנה', - yy: function (number) { - if (number === 2) { - return 'שנתיים'; - } else if (number % 10 === 0 && number !== 10) { - return number + ' שנה'; - } - return number + ' שנים'; - }, - }, - meridiemParse: - /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, - isPM: function (input) { - return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 5) { - return 'לפנות בוקר'; - } else if (hour < 10) { - return 'בבוקר'; - } else if (hour < 12) { - return isLower ? 'לפנה"צ' : 'לפני הצהריים'; - } else if (hour < 18) { - return isLower ? 'אחה"צ' : 'אחרי הצהריים'; - } else { - return 'בערב'; - } - }, - }); - - return he; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/hi.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/hi.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Hindi [hi] -//! author : Mayank Singhal : https://github.com/mayanksinghal - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '१', - 2: '२', - 3: '३', - 4: '४', - 5: '५', - 6: '६', - 7: '७', - 8: '८', - 9: '९', - 0: '०', - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0', - }, - monthsParse = [ - /^जन/i, - /^फ़र|फर/i, - /^मार्च/i, - /^अप्रै/i, - /^मई/i, - /^जून/i, - /^जुल/i, - /^अग/i, - /^सितं|सित/i, - /^अक्टू/i, - /^नव|नवं/i, - /^दिसं|दिस/i, - ], - shortMonthsParse = [ - /^जन/i, - /^फ़र/i, - /^मार्च/i, - /^अप्रै/i, - /^मई/i, - /^जून/i, - /^जुल/i, - /^अग/i, - /^सित/i, - /^अक्टू/i, - /^नव/i, - /^दिस/i, - ]; - - var hi = moment.defineLocale('hi', { - months: { - format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( - '_' - ), - standalone: - 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split( - '_' - ), - }, - monthsShort: - 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'), - weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm बजे', - LTS: 'A h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, A h:mm बजे', - }, - - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: shortMonthsParse, - - monthsRegex: - /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i, - - monthsShortRegex: - /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i, - - monthsStrictRegex: - /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i, - - monthsShortStrictRegex: - /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i, - - calendar: { - sameDay: '[आज] LT', - nextDay: '[कल] LT', - nextWeek: 'dddd, LT', - lastDay: '[कल] LT', - lastWeek: '[पिछले] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s में', - past: '%s पहले', - s: 'कुछ ही क्षण', - ss: '%d सेकंड', - m: 'एक मिनट', - mm: '%d मिनट', - h: 'एक घंटा', - hh: '%d घंटे', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महीने', - MM: '%d महीने', - y: 'एक वर्ष', - yy: '%d वर्ष', - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Hindi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. - meridiemParse: /रात|सुबह|दोपहर|शाम/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'रात') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'सुबह') { - return hour; - } else if (meridiem === 'दोपहर') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'शाम') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'रात'; - } else if (hour < 10) { - return 'सुबह'; - } else if (hour < 17) { - return 'दोपहर'; - } else if (hour < 20) { - return 'शाम'; - } else { - return 'रात'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return hi; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/hr.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/hr.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Croatian [hr] -//! author : Bojan Marković : https://github.com/bmarkovic - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - if (number === 1) { - result += 'sekunda'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sekunde'; - } else { - result += 'sekundi'; - } - return result; - case 'm': - return withoutSuffix ? 'jedna minuta' : 'jedne minute'; - case 'mm': - if (number === 1) { - result += 'minuta'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'minute'; - } else { - result += 'minuta'; - } - return result; - case 'h': - return withoutSuffix ? 'jedan sat' : 'jednog sata'; - case 'hh': - if (number === 1) { - result += 'sat'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'sata'; - } else { - result += 'sati'; - } - return result; - case 'dd': - if (number === 1) { - result += 'dan'; - } else { - result += 'dana'; - } - return result; - case 'MM': - if (number === 1) { - result += 'mjesec'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'mjeseca'; - } else { - result += 'mjeseci'; - } - return result; - case 'yy': - if (number === 1) { - result += 'godina'; - } else if (number === 2 || number === 3 || number === 4) { - result += 'godine'; - } else { - result += 'godina'; - } - return result; - } - } - - var hr = moment.defineLocale('hr', { - months: { - format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( - '_' - ), - standalone: - 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( - '_' - ), - }, - monthsShort: - 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'Do MMMM YYYY', - LLL: 'Do MMMM YYYY H:mm', - LLLL: 'dddd, Do MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[jučer u] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[prošlu] [nedjelju] [u] LT'; - case 3: - return '[prošlu] [srijedu] [u] LT'; - case 6: - return '[prošle] [subote] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prošli] dddd [u] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'par sekundi', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: 'dan', - dd: translate, - M: 'mjesec', - MM: translate, - y: 'godinu', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return hr; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/hu.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/hu.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Hungarian [hu] -//! author : Adam Brunner : https://github.com/adambrunner -//! author : Peter Viszt : https://github.com/passatgt - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var weekEndings = - 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' '); - function translate(number, withoutSuffix, key, isFuture) { - var num = number; - switch (key) { - case 's': - return isFuture || withoutSuffix - ? 'néhány másodperc' - : 'néhány másodperce'; - case 'ss': - return num + (isFuture || withoutSuffix) - ? ' másodperc' - : ' másodperce'; - case 'm': - return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'mm': - return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); - case 'h': - return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'hh': - return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); - case 'd': - return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'dd': - return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); - case 'M': - return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'MM': - return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); - case 'y': - return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); - case 'yy': - return num + (isFuture || withoutSuffix ? ' év' : ' éve'); - } - return ''; - } - function week(isFuture) { - return ( - (isFuture ? '' : '[múlt] ') + - '[' + - weekEndings[this.day()] + - '] LT[-kor]' - ); - } - - var hu = moment.defineLocale('hu', { - months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( - '_' - ), - monthsShort: - 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), - weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), - weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'YYYY.MM.DD.', - LL: 'YYYY. MMMM D.', - LLL: 'YYYY. MMMM D. H:mm', - LLLL: 'YYYY. MMMM D., dddd H:mm', - }, - meridiemParse: /de|du/i, - isPM: function (input) { - return input.charAt(1).toLowerCase() === 'u'; - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower === true ? 'de' : 'DE'; - } else { - return isLower === true ? 'du' : 'DU'; - } - }, - calendar: { - sameDay: '[ma] LT[-kor]', - nextDay: '[holnap] LT[-kor]', - nextWeek: function () { - return week.call(this, true); - }, - lastDay: '[tegnap] LT[-kor]', - lastWeek: function () { - return week.call(this, false); - }, - sameElse: 'L', - }, - relativeTime: { - future: '%s múlva', - past: '%s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return hu; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/hy-am.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/hy-am.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Armenian [hy-am] -//! author : Armendarabyan : https://github.com/armendarabyan - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var hyAm = moment.defineLocale('hy-am', { - months: { - format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( - '_' - ), - standalone: - 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( - '_' - ), - }, - monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'), - weekdays: - 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( - '_' - ), - weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY թ.', - LLL: 'D MMMM YYYY թ., HH:mm', - LLLL: 'dddd, D MMMM YYYY թ., HH:mm', - }, - calendar: { - sameDay: '[այսօր] LT', - nextDay: '[վաղը] LT', - lastDay: '[երեկ] LT', - nextWeek: function () { - return 'dddd [օրը ժամը] LT'; - }, - lastWeek: function () { - return '[անցած] dddd [օրը ժամը] LT'; - }, - sameElse: 'L', - }, - relativeTime: { - future: '%s հետո', - past: '%s առաջ', - s: 'մի քանի վայրկյան', - ss: '%d վայրկյան', - m: 'րոպե', - mm: '%d րոպե', - h: 'ժամ', - hh: '%d ժամ', - d: 'օր', - dd: '%d օր', - M: 'ամիս', - MM: '%d ամիս', - y: 'տարի', - yy: '%d տարի', - }, - meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, - isPM: function (input) { - return /^(ցերեկվա|երեկոյան)$/.test(input); - }, - meridiem: function (hour) { - if (hour < 4) { - return 'գիշերվա'; - } else if (hour < 12) { - return 'առավոտվա'; - } else if (hour < 17) { - return 'ցերեկվա'; - } else { - return 'երեկոյան'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, - ordinal: function (number, period) { - switch (period) { - case 'DDD': - case 'w': - case 'W': - case 'DDDo': - if (number === 1) { - return number + '-ին'; - } - return number + '-րդ'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return hyAm; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/id.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/id.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Indonesian [id] -//! author : Mohammad Satrio Utomo : https://github.com/tyok -//! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var id = moment.defineLocale('id', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'), - weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /pagi|siang|sore|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'siang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sore' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'siang'; - } else if (hours < 19) { - return 'sore'; - } else { - return 'malam'; - } - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Besok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kemarin pukul] LT', - lastWeek: 'dddd [lalu pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lalu', - s: 'beberapa detik', - ss: '%d detik', - m: 'semenit', - mm: '%d menit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun', - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return id; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/is.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/is.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Icelandic [is] -//! author : Hinrik Örn Sigurðsson : https://github.com/hinrik - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function plural(n) { - if (n % 100 === 11) { - return true; - } else if (n % 10 === 1) { - return false; - } - return true; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture - ? 'nokkrar sekúndur' - : 'nokkrum sekúndum'; - case 'ss': - if (plural(number)) { - return ( - result + - (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum') - ); - } - return result + 'sekúnda'; - case 'm': - return withoutSuffix ? 'mínúta' : 'mínútu'; - case 'mm': - if (plural(number)) { - return ( - result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum') - ); - } else if (withoutSuffix) { - return result + 'mínúta'; - } - return result + 'mínútu'; - case 'hh': - if (plural(number)) { - return ( - result + - (withoutSuffix || isFuture - ? 'klukkustundir' - : 'klukkustundum') - ); - } - return result + 'klukkustund'; - case 'd': - if (withoutSuffix) { - return 'dagur'; - } - return isFuture ? 'dag' : 'degi'; - case 'dd': - if (plural(number)) { - if (withoutSuffix) { - return result + 'dagar'; - } - return result + (isFuture ? 'daga' : 'dögum'); - } else if (withoutSuffix) { - return result + 'dagur'; - } - return result + (isFuture ? 'dag' : 'degi'); - case 'M': - if (withoutSuffix) { - return 'mánuður'; - } - return isFuture ? 'mánuð' : 'mánuði'; - case 'MM': - if (plural(number)) { - if (withoutSuffix) { - return result + 'mánuðir'; - } - return result + (isFuture ? 'mánuði' : 'mánuðum'); - } else if (withoutSuffix) { - return result + 'mánuður'; - } - return result + (isFuture ? 'mánuð' : 'mánuði'); - case 'y': - return withoutSuffix || isFuture ? 'ár' : 'ári'; - case 'yy': - if (plural(number)) { - return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); - } - return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); - } - } - - var is = moment.defineLocale('is', { - months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), - weekdays: - 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( - '_' - ), - weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), - weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm', - }, - calendar: { - sameDay: '[í dag kl.] LT', - nextDay: '[á morgun kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[í gær kl.] LT', - lastWeek: '[síðasta] dddd [kl.] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'eftir %s', - past: 'fyrir %s síðan', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: 'klukkustund', - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return is; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/it-ch.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/it-ch.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Italian (Switzerland) [it-ch] -//! author : xfh : https://github.com/xfh - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var itCh = moment.defineLocale('it-ch', { - months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( - '_' - ), - monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( - '_' - ), - weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Oggi alle] LT', - nextDay: '[Domani alle] LT', - nextWeek: 'dddd [alle] LT', - lastDay: '[Ieri alle] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[la scorsa] dddd [alle] LT'; - default: - return '[lo scorso] dddd [alle] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: function (s) { - return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s; - }, - past: '%s fa', - s: 'alcuni secondi', - ss: '%d secondi', - m: 'un minuto', - mm: '%d minuti', - h: "un'ora", - hh: '%d ore', - d: 'un giorno', - dd: '%d giorni', - M: 'un mese', - MM: '%d mesi', - y: 'un anno', - yy: '%d anni', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return itCh; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/it.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/it.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Italian [it] -//! author : Lorenzo : https://github.com/aliem -//! author: Mattia Larentis: https://github.com/nostalgiaz -//! author: Marco : https://github.com/Manfre98 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var it = moment.defineLocale('it', { - months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( - '_' - ), - monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), - weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( - '_' - ), - weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), - weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: function () { - return ( - '[Oggi a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - nextDay: function () { - return ( - '[Domani a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - nextWeek: function () { - return ( - 'dddd [a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - lastDay: function () { - return ( - '[Ieri a' + - (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") + - ']LT' - ); - }, - lastWeek: function () { - switch (this.day()) { - case 0: - return ( - '[La scorsa] dddd [a' + - (this.hours() > 1 - ? 'lle ' - : this.hours() === 0 - ? ' ' - : "ll'") + - ']LT' - ); - default: - return ( - '[Lo scorso] dddd [a' + - (this.hours() > 1 - ? 'lle ' - : this.hours() === 0 - ? ' ' - : "ll'") + - ']LT' - ); - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'tra %s', - past: '%s fa', - s: 'alcuni secondi', - ss: '%d secondi', - m: 'un minuto', - mm: '%d minuti', - h: "un'ora", - hh: '%d ore', - d: 'un giorno', - dd: '%d giorni', - w: 'una settimana', - ww: '%d settimane', - M: 'un mese', - MM: '%d mesi', - y: 'un anno', - yy: '%d anni', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return it; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ja.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ja.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Japanese [ja] -//! author : LI Long : https://github.com/baryon - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ja = moment.defineLocale('ja', { - eras: [ - { - since: '2019-05-01', - offset: 1, - name: '令和', - narrow: '㋿', - abbr: 'R', - }, - { - since: '1989-01-08', - until: '2019-04-30', - offset: 1, - name: '平成', - narrow: '㍻', - abbr: 'H', - }, - { - since: '1926-12-25', - until: '1989-01-07', - offset: 1, - name: '昭和', - narrow: '㍼', - abbr: 'S', - }, - { - since: '1912-07-30', - until: '1926-12-24', - offset: 1, - name: '大正', - narrow: '㍽', - abbr: 'T', - }, - { - since: '1873-01-01', - until: '1912-07-29', - offset: 6, - name: '明治', - narrow: '㍾', - abbr: 'M', - }, - { - since: '0001-01-01', - until: '1873-12-31', - offset: 1, - name: '西暦', - narrow: 'AD', - abbr: 'AD', - }, - { - since: '0000-12-31', - until: -Infinity, - offset: 1, - name: '紀元前', - narrow: 'BC', - abbr: 'BC', - }, - ], - eraYearOrdinalRegex: /(元|\d+)年/, - eraYearOrdinalParse: function (input, match) { - return match[1] === '元' ? 1 : parseInt(match[1] || input, 10); - }, - months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), - weekdaysShort: '日_月_火_水_木_金_土'.split('_'), - weekdaysMin: '日_月_火_水_木_金_土'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日 dddd HH:mm', - l: 'YYYY/MM/DD', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日(ddd) HH:mm', - }, - meridiemParse: /午前|午後/i, - isPM: function (input) { - return input === '午後'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return '午前'; - } else { - return '午後'; - } - }, - calendar: { - sameDay: '[今日] LT', - nextDay: '[明日] LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - return '[来週]dddd LT'; - } else { - return 'dddd LT'; - } - }, - lastDay: '[昨日] LT', - lastWeek: function (now) { - if (this.week() !== now.week()) { - return '[先週]dddd LT'; - } else { - return 'dddd LT'; - } - }, - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}日/, - ordinal: function (number, period) { - switch (period) { - case 'y': - return number === 1 ? '元年' : number + '年'; - case 'd': - case 'D': - case 'DDD': - return number + '日'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '数秒', - ss: '%d秒', - m: '1分', - mm: '%d分', - h: '1時間', - hh: '%d時間', - d: '1日', - dd: '%d日', - M: '1ヶ月', - MM: '%dヶ月', - y: '1年', - yy: '%d年', - }, - }); - - return ja; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/jv.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/jv.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Javanese [jv] -//! author : Rony Lantip : https://github.com/lantip -//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var jv = moment.defineLocale('jv', { - months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), - weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), - weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), - weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /enjing|siyang|sonten|ndalu/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'enjing') { - return hour; - } else if (meridiem === 'siyang') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'sonten' || meridiem === 'ndalu') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'enjing'; - } else if (hours < 15) { - return 'siyang'; - } else if (hours < 19) { - return 'sonten'; - } else { - return 'ndalu'; - } - }, - calendar: { - sameDay: '[Dinten puniko pukul] LT', - nextDay: '[Mbenjang pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kala wingi pukul] LT', - lastWeek: 'dddd [kepengker pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'wonten ing %s', - past: '%s ingkang kepengker', - s: 'sawetawis detik', - ss: '%d detik', - m: 'setunggal menit', - mm: '%d menit', - h: 'setunggal jam', - hh: '%d jam', - d: 'sedinten', - dd: '%d dinten', - M: 'sewulan', - MM: '%d wulan', - y: 'setaun', - yy: '%d taun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return jv; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ka.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ka.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Georgian [ka] -//! author : Irakli Janiashvili : https://github.com/IrakliJani - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ka = moment.defineLocale('ka', { - months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( - '_' - ), - monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), - weekdays: { - standalone: - 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( - '_' - ), - format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( - '_' - ), - isFormat: /(წინა|შემდეგ)/, - }, - weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), - weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[დღეს] LT[-ზე]', - nextDay: '[ხვალ] LT[-ზე]', - lastDay: '[გუშინ] LT[-ზე]', - nextWeek: '[შემდეგ] dddd LT[-ზე]', - lastWeek: '[წინა] dddd LT-ზე', - sameElse: 'L', - }, - relativeTime: { - future: function (s) { - return s.replace( - /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, - function ($0, $1, $2) { - return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში'; - } - ); - }, - past: function (s) { - if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) { - return s.replace(/(ი|ე)$/, 'ის წინ'); - } - if (/წელი/.test(s)) { - return s.replace(/წელი$/, 'წლის წინ'); - } - return s; - }, - s: 'რამდენიმე წამი', - ss: '%d წამი', - m: 'წუთი', - mm: '%d წუთი', - h: 'საათი', - hh: '%d საათი', - d: 'დღე', - dd: '%d დღე', - M: 'თვე', - MM: '%d თვე', - y: 'წელი', - yy: '%d წელი', - }, - dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, - ordinal: function (number) { - if (number === 0) { - return number; - } - if (number === 1) { - return number + '-ლი'; - } - if ( - number < 20 || - (number <= 100 && number % 20 === 0) || - number % 100 === 0 - ) { - return 'მე-' + number; - } - return number + '-ე'; - }, - week: { - dow: 1, - doy: 7, - }, - }); - - return ka; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/kk.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/kk.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Kazakh [kk] -//! authors : Nurlan Rakhimzhanov : https://github.com/nurlan - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var suffixes = { - 0: '-ші', - 1: '-ші', - 2: '-ші', - 3: '-ші', - 4: '-ші', - 5: '-ші', - 6: '-шы', - 7: '-ші', - 8: '-ші', - 9: '-шы', - 10: '-шы', - 20: '-шы', - 30: '-шы', - 40: '-шы', - 50: '-ші', - 60: '-шы', - 70: '-ші', - 80: '-ші', - 90: '-шы', - 100: '-ші', - }; - - var kk = moment.defineLocale('kk', { - months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( - '_' - ), - monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'), - weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split( - '_' - ), - weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), - weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Бүгін сағат] LT', - nextDay: '[Ертең сағат] LT', - nextWeek: 'dddd [сағат] LT', - lastDay: '[Кеше сағат] LT', - lastWeek: '[Өткен аптаның] dddd [сағат] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ішінде', - past: '%s бұрын', - s: 'бірнеше секунд', - ss: '%d секунд', - m: 'бір минут', - mm: '%d минут', - h: 'бір сағат', - hh: '%d сағат', - d: 'бір күн', - dd: '%d күн', - M: 'бір ай', - MM: '%d ай', - y: 'бір жыл', - yy: '%d жыл', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, - ordinal: function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return kk; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/km.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/km.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Cambodian [km] -//! author : Kruy Vanna : https://github.com/kruyvanna - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '១', - 2: '២', - 3: '៣', - 4: '៤', - 5: '៥', - 6: '៦', - 7: '៧', - 8: '៨', - 9: '៩', - 0: '០', - }, - numberMap = { - '១': '1', - '២': '2', - '៣': '3', - '៤': '4', - '៥': '5', - '៦': '6', - '៧': '7', - '៨': '8', - '៩': '9', - '០': '0', - }; - - var km = moment.defineLocale('km', { - months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( - '_' - ), - monthsShort: - 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( - '_' - ), - weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), - weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), - weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - meridiemParse: /ព្រឹក|ល្ងាច/, - isPM: function (input) { - return input === 'ល្ងាច'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ព្រឹក'; - } else { - return 'ល្ងាច'; - } - }, - calendar: { - sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', - nextDay: '[ស្អែក ម៉ោង] LT', - nextWeek: 'dddd [ម៉ោង] LT', - lastDay: '[ម្សិលមិញ ម៉ោង] LT', - lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%sទៀត', - past: '%sមុន', - s: 'ប៉ុន្មានវិនាទី', - ss: '%d វិនាទី', - m: 'មួយនាទី', - mm: '%d នាទី', - h: 'មួយម៉ោង', - hh: '%d ម៉ោង', - d: 'មួយថ្ងៃ', - dd: '%d ថ្ងៃ', - M: 'មួយខែ', - MM: '%d ខែ', - y: 'មួយឆ្នាំ', - yy: '%d ឆ្នាំ', - }, - dayOfMonthOrdinalParse: /ទី\d{1,2}/, - ordinal: 'ទី%d', - preparse: function (string) { - return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return km; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/kn.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/kn.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Kannada [kn] -//! author : Rajeev Naik : https://github.com/rajeevnaikte - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '೧', - 2: '೨', - 3: '೩', - 4: '೪', - 5: '೫', - 6: '೬', - 7: '೭', - 8: '೮', - 9: '೯', - 0: '೦', - }, - numberMap = { - '೧': '1', - '೨': '2', - '೩': '3', - '೪': '4', - '೫': '5', - '೬': '6', - '೭': '7', - '೮': '8', - '೯': '9', - '೦': '0', - }; - - var kn = moment.defineLocale('kn', { - months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( - '_' - ), - monthsShort: - 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split( - '_' - ), - weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), - weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm', - }, - calendar: { - sameDay: '[ಇಂದು] LT', - nextDay: '[ನಾಳೆ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ನಿನ್ನೆ] LT', - lastWeek: '[ಕೊನೆಯ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ನಂತರ', - past: '%s ಹಿಂದೆ', - s: 'ಕೆಲವು ಕ್ಷಣಗಳು', - ss: '%d ಸೆಕೆಂಡುಗಳು', - m: 'ಒಂದು ನಿಮಿಷ', - mm: '%d ನಿಮಿಷ', - h: 'ಒಂದು ಗಂಟೆ', - hh: '%d ಗಂಟೆ', - d: 'ಒಂದು ದಿನ', - dd: '%d ದಿನ', - M: 'ಒಂದು ತಿಂಗಳು', - MM: '%d ತಿಂಗಳು', - y: 'ಒಂದು ವರ್ಷ', - yy: '%d ವರ್ಷ', - }, - preparse: function (string) { - return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ರಾತ್ರಿ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') { - return hour; - } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ಸಂಜೆ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ರಾತ್ರಿ'; - } else if (hour < 10) { - return 'ಬೆಳಿಗ್ಗೆ'; - } else if (hour < 17) { - return 'ಮಧ್ಯಾಹ್ನ'; - } else if (hour < 20) { - return 'ಸಂಜೆ'; - } else { - return 'ರಾತ್ರಿ'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, - ordinal: function (number) { - return number + 'ನೇ'; - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return kn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ko.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ko.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Korean [ko] -//! author : Kyungwook, Park : https://github.com/kyungw00k -//! author : Jeeeyul Lee - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ko = moment.defineLocale('ko', { - months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), - monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( - '_' - ), - weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), - weekdaysShort: '일_월_화_수_목_금_토'.split('_'), - weekdaysMin: '일_월_화_수_목_금_토'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'YYYY.MM.DD.', - LL: 'YYYY년 MMMM D일', - LLL: 'YYYY년 MMMM D일 A h:mm', - LLLL: 'YYYY년 MMMM D일 dddd A h:mm', - l: 'YYYY.MM.DD.', - ll: 'YYYY년 MMMM D일', - lll: 'YYYY년 MMMM D일 A h:mm', - llll: 'YYYY년 MMMM D일 dddd A h:mm', - }, - calendar: { - sameDay: '오늘 LT', - nextDay: '내일 LT', - nextWeek: 'dddd LT', - lastDay: '어제 LT', - lastWeek: '지난주 dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s 후', - past: '%s 전', - s: '몇 초', - ss: '%d초', - m: '1분', - mm: '%d분', - h: '한 시간', - hh: '%d시간', - d: '하루', - dd: '%d일', - M: '한 달', - MM: '%d달', - y: '일 년', - yy: '%d년', - }, - dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '일'; - case 'M': - return number + '월'; - case 'w': - case 'W': - return number + '주'; - default: - return number; - } - }, - meridiemParse: /오전|오후/, - isPM: function (token) { - return token === '오후'; - }, - meridiem: function (hour, minute, isUpper) { - return hour < 12 ? '오전' : '오후'; - }, - }); - - return ko; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ku-kmr.js": -/*!**********************************************!*\ - !*** ./node_modules/moment/locale/ku-kmr.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Northern Kurdish [ku-kmr] -//! authors : Mazlum Özdogan : https://github.com/mergehez - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(num, withoutSuffix, key, isFuture) { - var format = { - s: ['çend sanîye', 'çend sanîyeyan'], - ss: [num + ' sanîye', num + ' sanîyeyan'], - m: ['deqîqeyek', 'deqîqeyekê'], - mm: [num + ' deqîqe', num + ' deqîqeyan'], - h: ['saetek', 'saetekê'], - hh: [num + ' saet', num + ' saetan'], - d: ['rojek', 'rojekê'], - dd: [num + ' roj', num + ' rojan'], - w: ['hefteyek', 'hefteyekê'], - ww: [num + ' hefte', num + ' hefteyan'], - M: ['mehek', 'mehekê'], - MM: [num + ' meh', num + ' mehan'], - y: ['salek', 'salekê'], - yy: [num + ' sal', num + ' salan'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - // function obliqueNumSuffix(num) { - // if(num.includes(':')) - // num = parseInt(num.split(':')[0]); - // else - // num = parseInt(num); - // return num == 0 || num % 10 == 1 ? 'ê' - // : (num > 10 && num % 10 == 0 ? 'î' : 'an'); - // } - function ezafeNumSuffix(num) { - num = '' + num; - var l = num.substring(num.length - 1), - ll = num.length > 1 ? num.substring(num.length - 2) : ''; - if ( - !(ll == 12 || ll == 13) && - (l == '2' || l == '3' || ll == '50' || l == '70' || l == '80') - ) - return 'yê'; - return 'ê'; - } - - var kuKmr = moment.defineLocale('ku-kmr', { - // According to the spelling rules defined by the work group of Weqfa Mezopotamyayê (Mesopotamia Foundation) - // this should be: 'Kanûna Paşîn_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Çirîya Pêşîn_Çirîya Paşîn_Kanûna Pêşîn' - // But the names below are more well known and handy - months: 'Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar'.split( - '_' - ), - monthsShort: 'Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber'.split('_'), - monthsParseExact: true, - weekdays: 'Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî'.split('_'), - weekdaysShort: 'Yek_Du_Sê_Çar_Pên_În_Şem'.split('_'), - weekdaysMin: 'Ye_Du_Sê_Ça_Pê_În_Şe'.split('_'), - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'bn' : 'BN'; - } else { - return isLower ? 'pn' : 'PN'; - } - }, - meridiemParse: /bn|BN|pn|PN/, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'Do MMMM[a] YYYY[an]', - LLL: 'Do MMMM[a] YYYY[an] HH:mm', - LLLL: 'dddd, Do MMMM[a] YYYY[an] HH:mm', - ll: 'Do MMM[.] YYYY[an]', - lll: 'Do MMM[.] YYYY[an] HH:mm', - llll: 'ddd[.], Do MMM[.] YYYY[an] HH:mm', - }, - calendar: { - sameDay: '[Îro di saet] LT [de]', - nextDay: '[Sibê di saet] LT [de]', - nextWeek: 'dddd [di saet] LT [de]', - lastDay: '[Duh di saet] LT [de]', - lastWeek: 'dddd[a borî di saet] LT [de]', - sameElse: 'L', - }, - relativeTime: { - future: 'di %s de', - past: 'berî %s', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - w: processRelativeTime, - ww: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}(?:yê|ê|\.)/, - ordinal: function (num, period) { - var p = period.toLowerCase(); - if (p.includes('w') || p.includes('m')) return num + '.'; - - return num + ezafeNumSuffix(num); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return kuKmr; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ku.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ku.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Kurdish [ku] -//! author : Shahram Mebashar : https://github.com/ShahramMebashar - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '١', - 2: '٢', - 3: '٣', - 4: '٤', - 5: '٥', - 6: '٦', - 7: '٧', - 8: '٨', - 9: '٩', - 0: '٠', - }, - numberMap = { - '١': '1', - '٢': '2', - '٣': '3', - '٤': '4', - '٥': '5', - '٦': '6', - '٧': '7', - '٨': '8', - '٩': '9', - '٠': '0', - }, - months = [ - 'کانونی دووەم', - 'شوبات', - 'ئازار', - 'نیسان', - 'ئایار', - 'حوزەیران', - 'تەمموز', - 'ئاب', - 'ئەیلوول', - 'تشرینی یەكەم', - 'تشرینی دووەم', - 'كانونی یەکەم', - ]; - - var ku = moment.defineLocale('ku', { - months: months, - monthsShort: months, - weekdays: - 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split( - '_' - ), - weekdaysShort: - 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'), - weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - meridiemParse: /ئێواره‌|به‌یانی/, - isPM: function (input) { - return /ئێواره‌/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'به‌یانی'; - } else { - return 'ئێواره‌'; - } - }, - calendar: { - sameDay: '[ئه‌مرۆ كاتژمێر] LT', - nextDay: '[به‌یانی كاتژمێر] LT', - nextWeek: 'dddd [كاتژمێر] LT', - lastDay: '[دوێنێ كاتژمێر] LT', - lastWeek: 'dddd [كاتژمێر] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'له‌ %s', - past: '%s', - s: 'چه‌ند چركه‌یه‌ك', - ss: 'چركه‌ %d', - m: 'یه‌ك خوله‌ك', - mm: '%d خوله‌ك', - h: 'یه‌ك كاتژمێر', - hh: '%d كاتژمێر', - d: 'یه‌ك ڕۆژ', - dd: '%d ڕۆژ', - M: 'یه‌ك مانگ', - MM: '%d مانگ', - y: 'یه‌ك ساڵ', - yy: '%d ساڵ', - }, - preparse: function (string) { - return string - .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { - return numberMap[match]; - }) - .replace(/،/g, ','); - }, - postformat: function (string) { - return string - .replace(/\d/g, function (match) { - return symbolMap[match]; - }) - .replace(/,/g, '،'); - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - - return ku; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ky.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ky.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Kyrgyz [ky] -//! author : Chyngyz Arystan uulu : https://github.com/chyngyz - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var suffixes = { - 0: '-чү', - 1: '-чи', - 2: '-чи', - 3: '-чү', - 4: '-чү', - 5: '-чи', - 6: '-чы', - 7: '-чи', - 8: '-чи', - 9: '-чу', - 10: '-чу', - 20: '-чы', - 30: '-чу', - 40: '-чы', - 50: '-чү', - 60: '-чы', - 70: '-чи', - 80: '-чи', - 90: '-чу', - 100: '-чү', - }; - - var ky = moment.defineLocale('ky', { - months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ), - monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( - '_' - ), - weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split( - '_' - ), - weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), - weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Бүгүн саат] LT', - nextDay: '[Эртең саат] LT', - nextWeek: 'dddd [саат] LT', - lastDay: '[Кечээ саат] LT', - lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ичинде', - past: '%s мурун', - s: 'бирнече секунд', - ss: '%d секунд', - m: 'бир мүнөт', - mm: '%d мүнөт', - h: 'бир саат', - hh: '%d саат', - d: 'бир күн', - dd: '%d күн', - M: 'бир ай', - MM: '%d ай', - y: 'бир жыл', - yy: '%d жыл', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, - ordinal: function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return ky; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/lb.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/lb.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Luxembourgish [lb] -//! author : mweimerskirch : https://github.com/mweimerskirch -//! author : David Raison : https://github.com/kwisatz - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - m: ['eng Minutt', 'enger Minutt'], - h: ['eng Stonn', 'enger Stonn'], - d: ['een Dag', 'engem Dag'], - M: ['ee Mount', 'engem Mount'], - y: ['ee Joer', 'engem Joer'], - }; - return withoutSuffix ? format[key][0] : format[key][1]; - } - function processFutureTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'a ' + string; - } - return 'an ' + string; - } - function processPastTime(string) { - var number = string.substr(0, string.indexOf(' ')); - if (eifelerRegelAppliesToNumber(number)) { - return 'viru ' + string; - } - return 'virun ' + string; - } - /** - * Returns true if the word before the given number loses the '-n' ending. - * e.g. 'an 10 Deeg' but 'a 5 Deeg' - * - * @param number {integer} - * @returns {boolean} - */ - function eifelerRegelAppliesToNumber(number) { - number = parseInt(number, 10); - if (isNaN(number)) { - return false; - } - if (number < 0) { - // Negative Number --> always true - return true; - } else if (number < 10) { - // Only 1 digit - if (4 <= number && number <= 7) { - return true; - } - return false; - } else if (number < 100) { - // 2 digits - var lastDigit = number % 10, - firstDigit = number / 10; - if (lastDigit === 0) { - return eifelerRegelAppliesToNumber(firstDigit); - } - return eifelerRegelAppliesToNumber(lastDigit); - } else if (number < 10000) { - // 3 or 4 digits --> recursively check first digit - while (number >= 10) { - number = number / 10; - } - return eifelerRegelAppliesToNumber(number); - } else { - // Anything larger than 4 digits: recursively check first n-3 digits - number = number / 1000; - return eifelerRegelAppliesToNumber(number); - } - } - - var lb = moment.defineLocale('lb', { - months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( - '_' - ), - monthsShort: - 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( - '_' - ), - monthsParseExact: true, - weekdays: - 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( - '_' - ), - weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), - weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm [Auer]', - LTS: 'H:mm:ss [Auer]', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm [Auer]', - LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]', - }, - calendar: { - sameDay: '[Haut um] LT', - sameElse: 'L', - nextDay: '[Muer um] LT', - nextWeek: 'dddd [um] LT', - lastDay: '[Gëschter um] LT', - lastWeek: function () { - // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule - switch (this.day()) { - case 2: - case 4: - return '[Leschten] dddd [um] LT'; - default: - return '[Leschte] dddd [um] LT'; - } - }, - }, - relativeTime: { - future: processFutureTime, - past: processPastTime, - s: 'e puer Sekonnen', - ss: '%d Sekonnen', - m: processRelativeTime, - mm: '%d Minutten', - h: processRelativeTime, - hh: '%d Stonnen', - d: processRelativeTime, - dd: '%d Deeg', - M: processRelativeTime, - MM: '%d Méint', - y: processRelativeTime, - yy: '%d Joer', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return lb; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/lo.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/lo.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Lao [lo] -//! author : Ryan Hart : https://github.com/ryanhart2 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var lo = moment.defineLocale('lo', { - months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - monthsShort: - 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( - '_' - ), - weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), - weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'ວັນdddd D MMMM YYYY HH:mm', - }, - meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, - isPM: function (input) { - return input === 'ຕອນແລງ'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ຕອນເຊົ້າ'; - } else { - return 'ຕອນແລງ'; - } - }, - calendar: { - sameDay: '[ມື້ນີ້ເວລາ] LT', - nextDay: '[ມື້ອື່ນເວລາ] LT', - nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', - lastDay: '[ມື້ວານນີ້ເວລາ] LT', - lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ອີກ %s', - past: '%sຜ່ານມາ', - s: 'ບໍ່ເທົ່າໃດວິນາທີ', - ss: '%d ວິນາທີ', - m: '1 ນາທີ', - mm: '%d ນາທີ', - h: '1 ຊົ່ວໂມງ', - hh: '%d ຊົ່ວໂມງ', - d: '1 ມື້', - dd: '%d ມື້', - M: '1 ເດືອນ', - MM: '%d ເດືອນ', - y: '1 ປີ', - yy: '%d ປີ', - }, - dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, - ordinal: function (number) { - return 'ທີ່' + number; - }, - }); - - return lo; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/lt.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/lt.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Lithuanian [lt] -//! author : Mindaugas Mozūras : https://github.com/mmozuras - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var units = { - ss: 'sekundė_sekundžių_sekundes', - m: 'minutė_minutės_minutę', - mm: 'minutės_minučių_minutes', - h: 'valanda_valandos_valandą', - hh: 'valandos_valandų_valandas', - d: 'diena_dienos_dieną', - dd: 'dienos_dienų_dienas', - M: 'mėnuo_mėnesio_mėnesį', - MM: 'mėnesiai_mėnesių_mėnesius', - y: 'metai_metų_metus', - yy: 'metai_metų_metus', - }; - function translateSeconds(number, withoutSuffix, key, isFuture) { - if (withoutSuffix) { - return 'kelios sekundės'; - } else { - return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; - } - } - function translateSingular(number, withoutSuffix, key, isFuture) { - return withoutSuffix - ? forms(key)[0] - : isFuture - ? forms(key)[1] - : forms(key)[2]; - } - function special(number) { - return number % 10 === 0 || (number > 10 && number < 20); - } - function forms(key) { - return units[key].split('_'); - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - if (number === 1) { - return ( - result + translateSingular(number, withoutSuffix, key[0], isFuture) - ); - } else if (withoutSuffix) { - return result + (special(number) ? forms(key)[1] : forms(key)[0]); - } else { - if (isFuture) { - return result + forms(key)[1]; - } else { - return result + (special(number) ? forms(key)[1] : forms(key)[2]); - } - } - } - var lt = moment.defineLocale('lt', { - months: { - format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( - '_' - ), - standalone: - 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( - '_' - ), - isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/, - }, - monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), - weekdays: { - format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( - '_' - ), - standalone: - 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( - '_' - ), - isFormat: /dddd HH:mm/, - }, - weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), - weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY [m.] MMMM D [d.]', - LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', - l: 'YYYY-MM-DD', - ll: 'YYYY [m.] MMMM D [d.]', - lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', - llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]', - }, - calendar: { - sameDay: '[Šiandien] LT', - nextDay: '[Rytoj] LT', - nextWeek: 'dddd LT', - lastDay: '[Vakar] LT', - lastWeek: '[Praėjusį] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: 'po %s', - past: 'prieš %s', - s: translateSeconds, - ss: translate, - m: translateSingular, - mm: translate, - h: translateSingular, - hh: translate, - d: translateSingular, - dd: translate, - M: translateSingular, - MM: translate, - y: translateSingular, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}-oji/, - ordinal: function (number) { - return number + '-oji'; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return lt; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/lv.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/lv.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Latvian [lv] -//! author : Kristaps Karlsons : https://github.com/skakri -//! author : Jānis Elmeris : https://github.com/JanisE - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var units = { - ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), - m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), - h: 'stundas_stundām_stunda_stundas'.split('_'), - hh: 'stundas_stundām_stunda_stundas'.split('_'), - d: 'dienas_dienām_diena_dienas'.split('_'), - dd: 'dienas_dienām_diena_dienas'.split('_'), - M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), - y: 'gada_gadiem_gads_gadi'.split('_'), - yy: 'gada_gadiem_gads_gadi'.split('_'), - }; - /** - * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. - */ - function format(forms, number, withoutSuffix) { - if (withoutSuffix) { - // E.g. "21 minūte", "3 minūtes". - return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3]; - } else { - // E.g. "21 minūtes" as in "pēc 21 minūtes". - // E.g. "3 minūtēm" as in "pēc 3 minūtēm". - return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1]; - } - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - return number + ' ' + format(units[key], number, withoutSuffix); - } - function relativeTimeWithSingular(number, withoutSuffix, key) { - return format(units[key], number, withoutSuffix); - } - function relativeSeconds(number, withoutSuffix) { - return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; - } - - var lv = moment.defineLocale('lv', { - months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), - weekdays: - 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( - '_' - ), - weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY.', - LL: 'YYYY. [gada] D. MMMM', - LLL: 'YYYY. [gada] D. MMMM, HH:mm', - LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm', - }, - calendar: { - sameDay: '[Šodien pulksten] LT', - nextDay: '[Rīt pulksten] LT', - nextWeek: 'dddd [pulksten] LT', - lastDay: '[Vakar pulksten] LT', - lastWeek: '[Pagājušā] dddd [pulksten] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'pēc %s', - past: 'pirms %s', - s: relativeSeconds, - ss: relativeTimeWithPlural, - m: relativeTimeWithSingular, - mm: relativeTimeWithPlural, - h: relativeTimeWithSingular, - hh: relativeTimeWithPlural, - d: relativeTimeWithSingular, - dd: relativeTimeWithPlural, - M: relativeTimeWithSingular, - MM: relativeTimeWithPlural, - y: relativeTimeWithSingular, - yy: relativeTimeWithPlural, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return lv; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/me.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/me.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Montenegrin [me] -//! author : Miodrag Nikač : https://github.com/miodragnikac - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var translator = { - words: { - //Different grammatical cases - ss: ['sekund', 'sekunda', 'sekundi'], - m: ['jedan minut', 'jednog minuta'], - mm: ['minut', 'minuta', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - dd: ['dan', 'dana', 'dana'], - MM: ['mjesec', 'mjeseca', 'mjeseci'], - yy: ['godina', 'godine', 'godina'], - }, - correctGrammaticalCase: function (number, wordKey) { - return number === 1 - ? wordKey[0] - : number >= 2 && number <= 4 - ? wordKey[1] - : wordKey[2]; - }, - translate: function (number, withoutSuffix, key) { - var wordKey = translator.words[key]; - if (key.length === 1) { - return withoutSuffix ? wordKey[0] : wordKey[1]; - } else { - return ( - number + - ' ' + - translator.correctGrammaticalCase(number, wordKey) - ); - } - }, - }; - - var me = moment.defineLocale('me', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: - 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sjutra u] LT', - - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedjelju] [u] LT'; - case 3: - return '[u] [srijedu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function () { - var lastWeekDays = [ - '[prošle] [nedjelje] [u] LT', - '[prošlog] [ponedjeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srijede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT', - ]; - return lastWeekDays[this.day()]; - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'prije %s', - s: 'nekoliko sekundi', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: 'dan', - dd: translator.translate, - M: 'mjesec', - MM: translator.translate, - y: 'godinu', - yy: translator.translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return me; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/mi.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/mi.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Maori [mi] -//! author : John Corrigan : https://github.com/johnideal - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var mi = moment.defineLocale('mi', { - months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( - '_' - ), - monthsShort: - 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( - '_' - ), - monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, - monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, - weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), - weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [i] HH:mm', - LLLL: 'dddd, D MMMM YYYY [i] HH:mm', - }, - calendar: { - sameDay: '[i teie mahana, i] LT', - nextDay: '[apopo i] LT', - nextWeek: 'dddd [i] LT', - lastDay: '[inanahi i] LT', - lastWeek: 'dddd [whakamutunga i] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'i roto i %s', - past: '%s i mua', - s: 'te hēkona ruarua', - ss: '%d hēkona', - m: 'he meneti', - mm: '%d meneti', - h: 'te haora', - hh: '%d haora', - d: 'he ra', - dd: '%d ra', - M: 'he marama', - MM: '%d marama', - y: 'he tau', - yy: '%d tau', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return mi; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/mk.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/mk.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Macedonian [mk] -//! author : Borislav Mickov : https://github.com/B0k0 -//! author : Sashko Todorov : https://github.com/bkyceh - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var mk = moment.defineLocale('mk', { - months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( - '_' - ), - monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), - weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( - '_' - ), - weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), - weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[Денес во] LT', - nextDay: '[Утре во] LT', - nextWeek: '[Во] dddd [во] LT', - lastDay: '[Вчера во] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 6: - return '[Изминатата] dddd [во] LT'; - case 1: - case 2: - case 4: - case 5: - return '[Изминатиот] dddd [во] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'за %s', - past: 'пред %s', - s: 'неколку секунди', - ss: '%d секунди', - m: 'една минута', - mm: '%d минути', - h: 'еден час', - hh: '%d часа', - d: 'еден ден', - dd: '%d дена', - M: 'еден месец', - MM: '%d месеци', - y: 'една година', - yy: '%d години', - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, - ordinal: function (number) { - var lastDigit = number % 10, - last2Digits = number % 100; - if (number === 0) { - return number + '-ев'; - } else if (last2Digits === 0) { - return number + '-ен'; - } else if (last2Digits > 10 && last2Digits < 20) { - return number + '-ти'; - } else if (lastDigit === 1) { - return number + '-ви'; - } else if (lastDigit === 2) { - return number + '-ри'; - } else if (lastDigit === 7 || lastDigit === 8) { - return number + '-ми'; - } else { - return number + '-ти'; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return mk; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ml.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ml.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Malayalam [ml] -//! author : Floyd Pink : https://github.com/floydpink - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ml = moment.defineLocale('ml', { - months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( - '_' - ), - monthsShort: - 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( - '_' - ), - monthsParseExact: true, - weekdays: - 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( - '_' - ), - weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), - weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), - longDateFormat: { - LT: 'A h:mm -നു', - LTS: 'A h:mm:ss -നു', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm -നു', - LLLL: 'dddd, D MMMM YYYY, A h:mm -നു', - }, - calendar: { - sameDay: '[ഇന്ന്] LT', - nextDay: '[നാളെ] LT', - nextWeek: 'dddd, LT', - lastDay: '[ഇന്നലെ] LT', - lastWeek: '[കഴിഞ്ഞ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s കഴിഞ്ഞ്', - past: '%s മുൻപ്', - s: 'അൽപ നിമിഷങ്ങൾ', - ss: '%d സെക്കൻഡ്', - m: 'ഒരു മിനിറ്റ്', - mm: '%d മിനിറ്റ്', - h: 'ഒരു മണിക്കൂർ', - hh: '%d മണിക്കൂർ', - d: 'ഒരു ദിവസം', - dd: '%d ദിവസം', - M: 'ഒരു മാസം', - MM: '%d മാസം', - y: 'ഒരു വർഷം', - yy: '%d വർഷം', - }, - meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - (meridiem === 'രാത്രി' && hour >= 4) || - meridiem === 'ഉച്ച കഴിഞ്ഞ്' || - meridiem === 'വൈകുന്നേരം' - ) { - return hour + 12; - } else { - return hour; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'രാത്രി'; - } else if (hour < 12) { - return 'രാവിലെ'; - } else if (hour < 17) { - return 'ഉച്ച കഴിഞ്ഞ്'; - } else if (hour < 20) { - return 'വൈകുന്നേരം'; - } else { - return 'രാത്രി'; - } - }, - }); - - return ml; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/mn.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/mn.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Mongolian [mn] -//! author : Javkhlantugs Nyamdorj : https://github.com/javkhaanj7 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function translate(number, withoutSuffix, key, isFuture) { - switch (key) { - case 's': - return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын'; - case 'ss': - return number + (withoutSuffix ? ' секунд' : ' секундын'); - case 'm': - case 'mm': - return number + (withoutSuffix ? ' минут' : ' минутын'); - case 'h': - case 'hh': - return number + (withoutSuffix ? ' цаг' : ' цагийн'); - case 'd': - case 'dd': - return number + (withoutSuffix ? ' өдөр' : ' өдрийн'); - case 'M': - case 'MM': - return number + (withoutSuffix ? ' сар' : ' сарын'); - case 'y': - case 'yy': - return number + (withoutSuffix ? ' жил' : ' жилийн'); - default: - return number; - } - } - - var mn = moment.defineLocale('mn', { - months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( - '_' - ), - monthsShort: - '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), - weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), - weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY оны MMMMын D', - LLL: 'YYYY оны MMMMын D HH:mm', - LLLL: 'dddd, YYYY оны MMMMын D HH:mm', - }, - meridiemParse: /ҮӨ|ҮХ/i, - isPM: function (input) { - return input === 'ҮХ'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ҮӨ'; - } else { - return 'ҮХ'; - } - }, - calendar: { - sameDay: '[Өнөөдөр] LT', - nextDay: '[Маргааш] LT', - nextWeek: '[Ирэх] dddd LT', - lastDay: '[Өчигдөр] LT', - lastWeek: '[Өнгөрсөн] dddd LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s дараа', - past: '%s өмнө', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2} өдөр/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + ' өдөр'; - default: - return number; - } - }, - }); - - return mn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/mr.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/mr.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Marathi [mr] -//! author : Harshad Kale : https://github.com/kalehv -//! author : Vivek Athalye : https://github.com/vnathalye - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '१', - 2: '२', - 3: '३', - 4: '४', - 5: '५', - 6: '६', - 7: '७', - 8: '८', - 9: '९', - 0: '०', - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0', - }; - - function relativeTimeMr(number, withoutSuffix, string, isFuture) { - var output = ''; - if (withoutSuffix) { - switch (string) { - case 's': - output = 'काही सेकंद'; - break; - case 'ss': - output = '%d सेकंद'; - break; - case 'm': - output = 'एक मिनिट'; - break; - case 'mm': - output = '%d मिनिटे'; - break; - case 'h': - output = 'एक तास'; - break; - case 'hh': - output = '%d तास'; - break; - case 'd': - output = 'एक दिवस'; - break; - case 'dd': - output = '%d दिवस'; - break; - case 'M': - output = 'एक महिना'; - break; - case 'MM': - output = '%d महिने'; - break; - case 'y': - output = 'एक वर्ष'; - break; - case 'yy': - output = '%d वर्षे'; - break; - } - } else { - switch (string) { - case 's': - output = 'काही सेकंदां'; - break; - case 'ss': - output = '%d सेकंदां'; - break; - case 'm': - output = 'एका मिनिटा'; - break; - case 'mm': - output = '%d मिनिटां'; - break; - case 'h': - output = 'एका तासा'; - break; - case 'hh': - output = '%d तासां'; - break; - case 'd': - output = 'एका दिवसा'; - break; - case 'dd': - output = '%d दिवसां'; - break; - case 'M': - output = 'एका महिन्या'; - break; - case 'MM': - output = '%d महिन्यां'; - break; - case 'y': - output = 'एका वर्षा'; - break; - case 'yy': - output = '%d वर्षां'; - break; - } - } - return output.replace(/%d/i, number); - } - - var mr = moment.defineLocale('mr', { - months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( - '_' - ), - monthsShort: - 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), - weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), - weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), - longDateFormat: { - LT: 'A h:mm वाजता', - LTS: 'A h:mm:ss वाजता', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm वाजता', - LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता', - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[उद्या] LT', - nextWeek: 'dddd, LT', - lastDay: '[काल] LT', - lastWeek: '[मागील] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%sमध्ये', - past: '%sपूर्वी', - s: relativeTimeMr, - ss: relativeTimeMr, - m: relativeTimeMr, - mm: relativeTimeMr, - h: relativeTimeMr, - hh: relativeTimeMr, - d: relativeTimeMr, - dd: relativeTimeMr, - M: relativeTimeMr, - MM: relativeTimeMr, - y: relativeTimeMr, - yy: relativeTimeMr, - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'पहाटे' || meridiem === 'सकाळी') { - return hour; - } else if ( - meridiem === 'दुपारी' || - meridiem === 'सायंकाळी' || - meridiem === 'रात्री' - ) { - return hour >= 12 ? hour : hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour >= 0 && hour < 6) { - return 'पहाटे'; - } else if (hour < 12) { - return 'सकाळी'; - } else if (hour < 17) { - return 'दुपारी'; - } else if (hour < 20) { - return 'सायंकाळी'; - } else { - return 'रात्री'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return mr; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ms-my.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/ms-my.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Malay [ms-my] -//! note : DEPRECATED, the correct one is [ms] -//! author : Weldan Jamili : https://github.com/weldan - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var msMy = moment.defineLocale('ms-my', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return msMy; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ms.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ms.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Malay [ms] -//! author : Weldan Jamili : https://github.com/weldan - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ms = moment.defineLocale('ms', { - months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), - weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), - weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), - weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [pukul] HH.mm', - LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', - }, - meridiemParse: /pagi|tengahari|petang|malam/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'pagi') { - return hour; - } else if (meridiem === 'tengahari') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'petang' || meridiem === 'malam') { - return hour + 12; - } - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'pagi'; - } else if (hours < 15) { - return 'tengahari'; - } else if (hours < 19) { - return 'petang'; - } else { - return 'malam'; - } - }, - calendar: { - sameDay: '[Hari ini pukul] LT', - nextDay: '[Esok pukul] LT', - nextWeek: 'dddd [pukul] LT', - lastDay: '[Kelmarin pukul] LT', - lastWeek: 'dddd [lepas pukul] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dalam %s', - past: '%s yang lepas', - s: 'beberapa saat', - ss: '%d saat', - m: 'seminit', - mm: '%d minit', - h: 'sejam', - hh: '%d jam', - d: 'sehari', - dd: '%d hari', - M: 'sebulan', - MM: '%d bulan', - y: 'setahun', - yy: '%d tahun', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return ms; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/mt.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/mt.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Maltese (Malta) [mt] -//! author : Alessandro Maruccia : https://github.com/alesma - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var mt = moment.defineLocale('mt', { - months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( - '_' - ), - monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'), - weekdays: - 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( - '_' - ), - weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), - weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Illum fil-]LT', - nextDay: '[Għada fil-]LT', - nextWeek: 'dddd [fil-]LT', - lastDay: '[Il-bieraħ fil-]LT', - lastWeek: 'dddd [li għadda] [fil-]LT', - sameElse: 'L', - }, - relativeTime: { - future: 'f’ %s', - past: '%s ilu', - s: 'ftit sekondi', - ss: '%d sekondi', - m: 'minuta', - mm: '%d minuti', - h: 'siegħa', - hh: '%d siegħat', - d: 'ġurnata', - dd: '%d ġranet', - M: 'xahar', - MM: '%d xhur', - y: 'sena', - yy: '%d sni', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return mt; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/my.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/my.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Burmese [my] -//! author : Squar team, mysquar.com -//! author : David Rossellat : https://github.com/gholadr -//! author : Tin Aung Lin : https://github.com/thanyawzinmin - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '၁', - 2: '၂', - 3: '၃', - 4: '၄', - 5: '၅', - 6: '၆', - 7: '၇', - 8: '၈', - 9: '၉', - 0: '၀', - }, - numberMap = { - '၁': '1', - '၂': '2', - '၃': '3', - '၄': '4', - '၅': '5', - '၆': '6', - '၇': '7', - '၈': '8', - '၉': '9', - '၀': '0', - }; - - var my = moment.defineLocale('my', { - months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( - '_' - ), - monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), - weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( - '_' - ), - weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), - - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[ယနေ.] LT [မှာ]', - nextDay: '[မနက်ဖြန်] LT [မှာ]', - nextWeek: 'dddd LT [မှာ]', - lastDay: '[မနေ.က] LT [မှာ]', - lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', - sameElse: 'L', - }, - relativeTime: { - future: 'လာမည့် %s မှာ', - past: 'လွန်ခဲ့သော %s က', - s: 'စက္ကန်.အနည်းငယ်', - ss: '%d စက္ကန့်', - m: 'တစ်မိနစ်', - mm: '%d မိနစ်', - h: 'တစ်နာရီ', - hh: '%d နာရီ', - d: 'တစ်ရက်', - dd: '%d ရက်', - M: 'တစ်လ', - MM: '%d လ', - y: 'တစ်နှစ်', - yy: '%d နှစ်', - }, - preparse: function (string) { - return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return my; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/nb.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/nb.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Norwegian Bokmål [nb] -//! authors : Espen Hovlandsdal : https://github.com/rexxars -//! Sigurd Gartmann : https://github.com/sigurdga -//! Stephen Ramthun : https://github.com/stephenramthun - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var nb = moment.defineLocale('nb', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: - 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), - monthsParseExact: true, - weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), - weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), - weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', - }, - calendar: { - sameDay: '[i dag kl.] LT', - nextDay: '[i morgen kl.] LT', - nextWeek: 'dddd [kl.] LT', - lastDay: '[i går kl.] LT', - lastWeek: '[forrige] dddd [kl.] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: '%s siden', - s: 'noen sekunder', - ss: '%d sekunder', - m: 'ett minutt', - mm: '%d minutter', - h: 'én time', - hh: '%d timer', - d: 'én dag', - dd: '%d dager', - w: 'én uke', - ww: '%d uker', - M: 'én måned', - MM: '%d måneder', - y: 'ett år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return nb; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ne.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ne.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Nepalese [ne] -//! author : suvash : https://github.com/suvash - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '१', - 2: '२', - 3: '३', - 4: '४', - 5: '५', - 6: '६', - 7: '७', - 8: '८', - 9: '९', - 0: '०', - }, - numberMap = { - '१': '1', - '२': '2', - '३': '3', - '४': '4', - '५': '5', - '६': '6', - '७': '7', - '८': '8', - '९': '9', - '०': '0', - }; - - var ne = moment.defineLocale('ne', { - months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( - '_' - ), - monthsShort: - 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( - '_' - ), - weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), - weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'Aको h:mm बजे', - LTS: 'Aको h:mm:ss बजे', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, Aको h:mm बजे', - LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे', - }, - preparse: function (string) { - return string.replace(/[१२३४५६७८९०]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - meridiemParse: /राति|बिहान|दिउँसो|साँझ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'राति') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'बिहान') { - return hour; - } else if (meridiem === 'दिउँसो') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'साँझ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 3) { - return 'राति'; - } else if (hour < 12) { - return 'बिहान'; - } else if (hour < 16) { - return 'दिउँसो'; - } else if (hour < 20) { - return 'साँझ'; - } else { - return 'राति'; - } - }, - calendar: { - sameDay: '[आज] LT', - nextDay: '[भोलि] LT', - nextWeek: '[आउँदो] dddd[,] LT', - lastDay: '[हिजो] LT', - lastWeek: '[गएको] dddd[,] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%sमा', - past: '%s अगाडि', - s: 'केही क्षण', - ss: '%d सेकेण्ड', - m: 'एक मिनेट', - mm: '%d मिनेट', - h: 'एक घण्टा', - hh: '%d घण्टा', - d: 'एक दिन', - dd: '%d दिन', - M: 'एक महिना', - MM: '%d महिना', - y: 'एक बर्ष', - yy: '%d बर्ष', - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return ne; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/nl-be.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/nl-be.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Dutch (Belgium) [nl-be] -//! author : Joris Röling : https://github.com/jorisroling -//! author : Jacob Middag : https://github.com/middagj - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var monthsShortWithDots = - 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'), - monthsShortWithoutDots = - 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), - monthsParse = [ - /^jan/i, - /^feb/i, - /^(maart|mrt\.?)$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i, - ], - monthsRegex = - /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - - var nlBe = moment.defineLocale('nl-be', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, - - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: - /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: - /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - - weekdays: - 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return nlBe; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/nl.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/nl.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Dutch [nl] -//! author : Joris Röling : https://github.com/jorisroling -//! author : Jacob Middag : https://github.com/middagj - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var monthsShortWithDots = - 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'), - monthsShortWithoutDots = - 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), - monthsParse = [ - /^jan/i, - /^feb/i, - /^(maart|mrt\.?)$/i, - /^apr/i, - /^mei$/i, - /^jun[i.]?$/i, - /^jul[i.]?$/i, - /^aug/i, - /^sep/i, - /^okt/i, - /^nov/i, - /^dec/i, - ], - monthsRegex = - /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; - - var nl = moment.defineLocale('nl', { - months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( - '_' - ), - monthsShort: function (m, format) { - if (!m) { - return monthsShortWithDots; - } else if (/-MMM-/.test(format)) { - return monthsShortWithoutDots[m.month()]; - } else { - return monthsShortWithDots[m.month()]; - } - }, - - monthsRegex: monthsRegex, - monthsShortRegex: monthsRegex, - monthsStrictRegex: - /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, - monthsShortStrictRegex: - /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, - - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - - weekdays: - 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), - weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), - weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD-MM-YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[vandaag om] LT', - nextDay: '[morgen om] LT', - nextWeek: 'dddd [om] LT', - lastDay: '[gisteren om] LT', - lastWeek: '[afgelopen] dddd [om] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'over %s', - past: '%s geleden', - s: 'een paar seconden', - ss: '%d seconden', - m: 'één minuut', - mm: '%d minuten', - h: 'één uur', - hh: '%d uur', - d: 'één dag', - dd: '%d dagen', - w: 'één week', - ww: '%d weken', - M: 'één maand', - MM: '%d maanden', - y: 'één jaar', - yy: '%d jaar', - }, - dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, - ordinal: function (number) { - return ( - number + - (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de') - ); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return nl; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/nn.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/nn.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Nynorsk [nn] -//! authors : https://github.com/mechuwind -//! Stephen Ramthun : https://github.com/stephenramthun - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var nn = moment.defineLocale('nn', { - months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( - '_' - ), - monthsShort: - 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'), - monthsParseExact: true, - weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), - weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'), - weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY [kl.] H:mm', - LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', - }, - calendar: { - sameDay: '[I dag klokka] LT', - nextDay: '[I morgon klokka] LT', - nextWeek: 'dddd [klokka] LT', - lastDay: '[I går klokka] LT', - lastWeek: '[Føregåande] dddd [klokka] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: '%s sidan', - s: 'nokre sekund', - ss: '%d sekund', - m: 'eit minutt', - mm: '%d minutt', - h: 'ein time', - hh: '%d timar', - d: 'ein dag', - dd: '%d dagar', - w: 'ei veke', - ww: '%d veker', - M: 'ein månad', - MM: '%d månader', - y: 'eit år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return nn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/oc-lnc.js": -/*!**********************************************!*\ - !*** ./node_modules/moment/locale/oc-lnc.js ***! - \**********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Occitan, lengadocian dialecte [oc-lnc] -//! author : Quentin PAGÈS : https://github.com/Quenty31 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ocLnc = moment.defineLocale('oc-lnc', { - months: { - standalone: - 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split( - '_' - ), - format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split( - '_' - ), - isFormat: /D[oD]?(\s)+MMMM/, - }, - monthsShort: - 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split( - '_' - ), - weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'), - weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [de] YYYY', - ll: 'D MMM YYYY', - LLL: 'D MMMM [de] YYYY [a] H:mm', - lll: 'D MMM YYYY, H:mm', - LLLL: 'dddd D MMMM [de] YYYY [a] H:mm', - llll: 'ddd D MMM YYYY, H:mm', - }, - calendar: { - sameDay: '[uèi a] LT', - nextDay: '[deman a] LT', - nextWeek: 'dddd [a] LT', - lastDay: '[ièr a] LT', - lastWeek: 'dddd [passat a] LT', - sameElse: 'L', - }, - relativeTime: { - future: "d'aquí %s", - past: 'fa %s', - s: 'unas segondas', - ss: '%d segondas', - m: 'una minuta', - mm: '%d minutas', - h: 'una ora', - hh: '%d oras', - d: 'un jorn', - dd: '%d jorns', - M: 'un mes', - MM: '%d meses', - y: 'un an', - yy: '%d ans', - }, - dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, - ordinal: function (number, period) { - var output = - number === 1 - ? 'r' - : number === 2 - ? 'n' - : number === 3 - ? 'r' - : number === 4 - ? 't' - : 'è'; - if (period === 'w' || period === 'W') { - output = 'a'; - } - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, - }, - }); - - return ocLnc; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/pa-in.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/pa-in.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Punjabi (India) [pa-in] -//! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '੧', - 2: '੨', - 3: '੩', - 4: '੪', - 5: '੫', - 6: '੬', - 7: '੭', - 8: '੮', - 9: '੯', - 0: '੦', - }, - numberMap = { - '੧': '1', - '੨': '2', - '੩': '3', - '੪': '4', - '੫': '5', - '੬': '6', - '੭': '7', - '੮': '8', - '੯': '9', - '੦': '0', - }; - - var paIn = moment.defineLocale('pa-in', { - // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi. - months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( - '_' - ), - monthsShort: - 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( - '_' - ), - weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split( - '_' - ), - weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), - longDateFormat: { - LT: 'A h:mm ਵਜੇ', - LTS: 'A h:mm:ss ਵਜੇ', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', - LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ', - }, - calendar: { - sameDay: '[ਅਜ] LT', - nextDay: '[ਕਲ] LT', - nextWeek: '[ਅਗਲਾ] dddd, LT', - lastDay: '[ਕਲ] LT', - lastWeek: '[ਪਿਛਲੇ] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s ਵਿੱਚ', - past: '%s ਪਿਛਲੇ', - s: 'ਕੁਝ ਸਕਿੰਟ', - ss: '%d ਸਕਿੰਟ', - m: 'ਇਕ ਮਿੰਟ', - mm: '%d ਮਿੰਟ', - h: 'ਇੱਕ ਘੰਟਾ', - hh: '%d ਘੰਟੇ', - d: 'ਇੱਕ ਦਿਨ', - dd: '%d ਦਿਨ', - M: 'ਇੱਕ ਮਹੀਨਾ', - MM: '%d ਮਹੀਨੇ', - y: 'ਇੱਕ ਸਾਲ', - yy: '%d ਸਾਲ', - }, - preparse: function (string) { - return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // Punjabi notation for meridiems are quite fuzzy in practice. While there exists - // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi. - meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ਰਾਤ') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ਸਵੇਰ') { - return hour; - } else if (meridiem === 'ਦੁਪਹਿਰ') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'ਸ਼ਾਮ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ਰਾਤ'; - } else if (hour < 10) { - return 'ਸਵੇਰ'; - } else if (hour < 17) { - return 'ਦੁਪਹਿਰ'; - } else if (hour < 20) { - return 'ਸ਼ਾਮ'; - } else { - return 'ਰਾਤ'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return paIn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/pl.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/pl.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Polish [pl] -//! author : Rafal Hirsz : https://github.com/evoL - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var monthsNominative = - 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( - '_' - ), - monthsSubjective = - 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( - '_' - ), - monthsParse = [ - /^sty/i, - /^lut/i, - /^mar/i, - /^kwi/i, - /^maj/i, - /^cze/i, - /^lip/i, - /^sie/i, - /^wrz/i, - /^paź/i, - /^lis/i, - /^gru/i, - ]; - function plural(n) { - return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1; - } - function translate(number, withoutSuffix, key) { - var result = number + ' '; - switch (key) { - case 'ss': - return result + (plural(number) ? 'sekundy' : 'sekund'); - case 'm': - return withoutSuffix ? 'minuta' : 'minutę'; - case 'mm': - return result + (plural(number) ? 'minuty' : 'minut'); - case 'h': - return withoutSuffix ? 'godzina' : 'godzinę'; - case 'hh': - return result + (plural(number) ? 'godziny' : 'godzin'); - case 'ww': - return result + (plural(number) ? 'tygodnie' : 'tygodni'); - case 'MM': - return result + (plural(number) ? 'miesiące' : 'miesięcy'); - case 'yy': - return result + (plural(number) ? 'lata' : 'lat'); - } - } - - var pl = moment.defineLocale('pl', { - months: function (momentToFormat, format) { - if (!momentToFormat) { - return monthsNominative; - } else if (/D MMMM/.test(format)) { - return monthsSubjective[momentToFormat.month()]; - } else { - return monthsNominative[momentToFormat.month()]; - } - }, - monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - weekdays: - 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'), - weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), - weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Dziś o] LT', - nextDay: '[Jutro o] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[W niedzielę o] LT'; - - case 2: - return '[We wtorek o] LT'; - - case 3: - return '[W środę o] LT'; - - case 6: - return '[W sobotę o] LT'; - - default: - return '[W] dddd [o] LT'; - } - }, - lastDay: '[Wczoraj o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[W zeszłą niedzielę o] LT'; - case 3: - return '[W zeszłą środę o] LT'; - case 6: - return '[W zeszłą sobotę o] LT'; - default: - return '[W zeszły] dddd [o] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: '%s temu', - s: 'kilka sekund', - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: '1 dzień', - dd: '%d dni', - w: 'tydzień', - ww: translate, - M: 'miesiąc', - MM: translate, - y: 'rok', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return pl; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/pt-br.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/pt-br.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Portuguese (Brazil) [pt-br] -//! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ptBr = moment.defineLocale('pt-br', { - months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( - '_' - ), - monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays: - 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split( - '_' - ), - weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'), - weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm', - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return this.day() === 0 || this.day() === 6 - ? '[Último] dddd [às] LT' // Saturday + Sunday - : '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L', - }, - relativeTime: { - future: 'em %s', - past: 'há %s', - s: 'poucos segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - invalidDate: 'Data inválida', - }); - - return ptBr; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/pt.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/pt.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Portuguese [pt] -//! author : Jefferson : https://github.com/jalex79 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var pt = moment.defineLocale('pt', { - months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split( - '_' - ), - monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'), - weekdays: - 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( - '_' - ), - weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), - weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D [de] MMMM [de] YYYY', - LLL: 'D [de] MMMM [de] YYYY HH:mm', - LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm', - }, - calendar: { - sameDay: '[Hoje às] LT', - nextDay: '[Amanhã às] LT', - nextWeek: 'dddd [às] LT', - lastDay: '[Ontem às] LT', - lastWeek: function () { - return this.day() === 0 || this.day() === 6 - ? '[Último] dddd [às] LT' // Saturday + Sunday - : '[Última] dddd [às] LT'; // Monday - Friday - }, - sameElse: 'L', - }, - relativeTime: { - future: 'em %s', - past: 'há %s', - s: 'segundos', - ss: '%d segundos', - m: 'um minuto', - mm: '%d minutos', - h: 'uma hora', - hh: '%d horas', - d: 'um dia', - dd: '%d dias', - w: 'uma semana', - ww: '%d semanas', - M: 'um mês', - MM: '%d meses', - y: 'um ano', - yy: '%d anos', - }, - dayOfMonthOrdinalParse: /\d{1,2}º/, - ordinal: '%dº', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return pt; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ro.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ro.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Romanian [ro] -//! author : Vlad Gurdiga : https://github.com/gurdiga -//! author : Valentin Agachi : https://github.com/avaly -//! author : Emanuel Cepoi : https://github.com/cepem - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: 'secunde', - mm: 'minute', - hh: 'ore', - dd: 'zile', - ww: 'săptămâni', - MM: 'luni', - yy: 'ani', - }, - separator = ' '; - if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { - separator = ' de '; - } - return number + separator + format[key]; - } - - var ro = moment.defineLocale('ro', { - months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( - '_' - ), - monthsShort: - 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), - weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), - weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY H:mm', - LLLL: 'dddd, D MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[azi la] LT', - nextDay: '[mâine la] LT', - nextWeek: 'dddd [la] LT', - lastDay: '[ieri la] LT', - lastWeek: '[fosta] dddd [la] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'peste %s', - past: '%s în urmă', - s: 'câteva secunde', - ss: relativeTimeWithPlural, - m: 'un minut', - mm: relativeTimeWithPlural, - h: 'o oră', - hh: relativeTimeWithPlural, - d: 'o zi', - dd: relativeTimeWithPlural, - w: 'o săptămână', - ww: relativeTimeWithPlural, - M: 'o lună', - MM: relativeTimeWithPlural, - y: 'un an', - yy: relativeTimeWithPlural, - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return ro; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ru.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ru.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Russian [ru] -//! author : Viktorminator : https://github.com/Viktorminator -//! author : Menelion Elensúle : https://github.com/Oire -//! author : Коренберг Марк : https://github.com/socketpair - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', - mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', - hh: 'час_часа_часов', - dd: 'день_дня_дней', - ww: 'неделя_недели_недель', - MM: 'месяц_месяца_месяцев', - yy: 'год_года_лет', - }; - if (key === 'm') { - return withoutSuffix ? 'минута' : 'минуту'; - } else { - return number + ' ' + plural(format[key], +number); - } - } - var monthsParse = [ - /^янв/i, - /^фев/i, - /^мар/i, - /^апр/i, - /^ма[йя]/i, - /^июн/i, - /^июл/i, - /^авг/i, - /^сен/i, - /^окт/i, - /^ноя/i, - /^дек/i, - ]; - - // http://new.gramota.ru/spravka/rules/139-prop : § 103 - // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637 - // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753 - var ru = moment.defineLocale('ru', { - months: { - format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( - '_' - ), - standalone: - 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( - '_' - ), - }, - monthsShort: { - // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку? - format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( - '_' - ), - standalone: - 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( - '_' - ), - }, - weekdays: { - standalone: - 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( - '_' - ), - format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( - '_' - ), - isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/, - }, - weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), - monthsParse: monthsParse, - longMonthsParse: monthsParse, - shortMonthsParse: monthsParse, - - // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки - monthsRegex: - /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - - // копия предыдущего - monthsShortRegex: - /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, - - // полные названия с падежами - monthsStrictRegex: - /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, - - // Выражение, которое соответствует только сокращённым формам - monthsShortStrictRegex: - /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY г.', - LLL: 'D MMMM YYYY г., H:mm', - LLLL: 'dddd, D MMMM YYYY г., H:mm', - }, - calendar: { - sameDay: '[Сегодня, в] LT', - nextDay: '[Завтра, в] LT', - lastDay: '[Вчера, в] LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В следующее] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В следующий] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В следующую] dddd, [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd, [в] LT'; - } else { - return '[В] dddd, [в] LT'; - } - } - }, - lastWeek: function (now) { - if (now.week() !== this.week()) { - switch (this.day()) { - case 0: - return '[В прошлое] dddd, [в] LT'; - case 1: - case 2: - case 4: - return '[В прошлый] dddd, [в] LT'; - case 3: - case 5: - case 6: - return '[В прошлую] dddd, [в] LT'; - } - } else { - if (this.day() === 2) { - return '[Во] dddd, [в] LT'; - } else { - return '[В] dddd, [в] LT'; - } - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'через %s', - past: '%s назад', - s: 'несколько секунд', - ss: relativeTimeWithPlural, - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: 'час', - hh: relativeTimeWithPlural, - d: 'день', - dd: relativeTimeWithPlural, - w: 'неделя', - ww: relativeTimeWithPlural, - M: 'месяц', - MM: relativeTimeWithPlural, - y: 'год', - yy: relativeTimeWithPlural, - }, - meridiemParse: /ночи|утра|дня|вечера/i, - isPM: function (input) { - return /^(дня|вечера)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ночи'; - } else if (hour < 12) { - return 'утра'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечера'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - return number + '-й'; - case 'D': - return number + '-го'; - case 'w': - case 'W': - return number + '-я'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return ru; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/sd.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/sd.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Sindhi [sd] -//! author : Narain Sagar : https://github.com/narainsagar - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var months = [ - 'جنوري', - 'فيبروري', - 'مارچ', - 'اپريل', - 'مئي', - 'جون', - 'جولاءِ', - 'آگسٽ', - 'سيپٽمبر', - 'آڪٽوبر', - 'نومبر', - 'ڊسمبر', - ], - days = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; - - var sd = moment.defineLocale('sd', { - months: months, - monthsShort: months, - weekdays: days, - weekdaysShort: days, - weekdaysMin: days, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm', - }, - meridiemParse: /صبح|شام/, - isPM: function (input) { - return 'شام' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; - } - return 'شام'; - }, - calendar: { - sameDay: '[اڄ] LT', - nextDay: '[سڀاڻي] LT', - nextWeek: 'dddd [اڳين هفتي تي] LT', - lastDay: '[ڪالهه] LT', - lastWeek: '[گزريل هفتي] dddd [تي] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s پوء', - past: '%s اڳ', - s: 'چند سيڪنڊ', - ss: '%d سيڪنڊ', - m: 'هڪ منٽ', - mm: '%d منٽ', - h: 'هڪ ڪلاڪ', - hh: '%d ڪلاڪ', - d: 'هڪ ڏينهن', - dd: '%d ڏينهن', - M: 'هڪ مهينو', - MM: '%d مهينا', - y: 'هڪ سال', - yy: '%d سال', - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return sd; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/se.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/se.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Northern Sami [se] -//! authors : Bård Rolstad Henriksen : https://github.com/karamell - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var se = moment.defineLocale('se', { - months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( - '_' - ), - monthsShort: - 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'), - weekdays: - 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( - '_' - ), - weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), - weekdaysMin: 's_v_m_g_d_b_L'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'MMMM D. [b.] YYYY', - LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', - LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm', - }, - calendar: { - sameDay: '[otne ti] LT', - nextDay: '[ihttin ti] LT', - nextWeek: 'dddd [ti] LT', - lastDay: '[ikte ti] LT', - lastWeek: '[ovddit] dddd [ti] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s geažes', - past: 'maŋit %s', - s: 'moadde sekunddat', - ss: '%d sekunddat', - m: 'okta minuhta', - mm: '%d minuhtat', - h: 'okta diimmu', - hh: '%d diimmut', - d: 'okta beaivi', - dd: '%d beaivvit', - M: 'okta mánnu', - MM: '%d mánut', - y: 'okta jahki', - yy: '%d jagit', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return se; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/si.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/si.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Sinhalese [si] -//! author : Sampath Sitinamaluwa : https://github.com/sampathsris - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - /*jshint -W100*/ - var si = moment.defineLocale('si', { - months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( - '_' - ), - monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split( - '_' - ), - weekdays: - 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( - '_' - ), - weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), - weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'a h:mm', - LTS: 'a h:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY MMMM D', - LLL: 'YYYY MMMM D, a h:mm', - LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', - }, - calendar: { - sameDay: '[අද] LT[ට]', - nextDay: '[හෙට] LT[ට]', - nextWeek: 'dddd LT[ට]', - lastDay: '[ඊයේ] LT[ට]', - lastWeek: '[පසුගිය] dddd LT[ට]', - sameElse: 'L', - }, - relativeTime: { - future: '%sකින්', - past: '%sකට පෙර', - s: 'තත්පර කිහිපය', - ss: 'තත්පර %d', - m: 'මිනිත්තුව', - mm: 'මිනිත්තු %d', - h: 'පැය', - hh: 'පැය %d', - d: 'දිනය', - dd: 'දින %d', - M: 'මාසය', - MM: 'මාස %d', - y: 'වසර', - yy: 'වසර %d', - }, - dayOfMonthOrdinalParse: /\d{1,2} වැනි/, - ordinal: function (number) { - return number + ' වැනි'; - }, - meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, - isPM: function (input) { - return input === 'ප.ව.' || input === 'පස් වරු'; - }, - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'ප.ව.' : 'පස් වරු'; - } else { - return isLower ? 'පෙ.ව.' : 'පෙර වරු'; - } - }, - }); - - return si; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/sk.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/sk.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Slovak [sk] -//! author : Martin Minka : https://github.com/k2s -//! based on work of petrbela : https://github.com/petrbela - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var months = - 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( - '_' - ), - monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); - function plural(n) { - return n > 1 && n < 5; - } - function translate(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': // a few seconds / in a few seconds / a few seconds ago - return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami'; - case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'sekundy' : 'sekúnd'); - } else { - return result + 'sekundami'; - } - case 'm': // a minute / in a minute / a minute ago - return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou'; - case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'minúty' : 'minút'); - } else { - return result + 'minútami'; - } - case 'h': // an hour / in an hour / an hour ago - return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou'; - case 'hh': // 9 hours / in 9 hours / 9 hours ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'hodiny' : 'hodín'); - } else { - return result + 'hodinami'; - } - case 'd': // a day / in a day / a day ago - return withoutSuffix || isFuture ? 'deň' : 'dňom'; - case 'dd': // 9 days / in 9 days / 9 days ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'dni' : 'dní'); - } else { - return result + 'dňami'; - } - case 'M': // a month / in a month / a month ago - return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom'; - case 'MM': // 9 months / in 9 months / 9 months ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'mesiace' : 'mesiacov'); - } else { - return result + 'mesiacmi'; - } - case 'y': // a year / in a year / a year ago - return withoutSuffix || isFuture ? 'rok' : 'rokom'; - case 'yy': // 9 years / in 9 years / 9 years ago - if (withoutSuffix || isFuture) { - return result + (plural(number) ? 'roky' : 'rokov'); - } else { - return result + 'rokmi'; - } - } - } - - var sk = moment.defineLocale('sk', { - months: months, - monthsShort: monthsShort, - weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), - weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), - weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[dnes o] LT', - nextDay: '[zajtra o] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v nedeľu o] LT'; - case 1: - case 2: - return '[v] dddd [o] LT'; - case 3: - return '[v stredu o] LT'; - case 4: - return '[vo štvrtok o] LT'; - case 5: - return '[v piatok o] LT'; - case 6: - return '[v sobotu o] LT'; - } - }, - lastDay: '[včera o] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[minulú nedeľu o] LT'; - case 1: - case 2: - return '[minulý] dddd [o] LT'; - case 3: - return '[minulú stredu o] LT'; - case 4: - case 5: - return '[minulý] dddd [o] LT'; - case 6: - return '[minulú sobotu o] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'pred %s', - s: translate, - ss: translate, - m: translate, - mm: translate, - h: translate, - hh: translate, - d: translate, - dd: translate, - M: translate, - MM: translate, - y: translate, - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return sk; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/sl.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/sl.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Slovenian [sl] -//! author : Robert Sedovšek : https://github.com/sedovsek - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var result = number + ' '; - switch (key) { - case 's': - return withoutSuffix || isFuture - ? 'nekaj sekund' - : 'nekaj sekundami'; - case 'ss': - if (number === 1) { - result += withoutSuffix ? 'sekundo' : 'sekundi'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah'; - } else { - result += 'sekund'; - } - return result; - case 'm': - return withoutSuffix ? 'ena minuta' : 'eno minuto'; - case 'mm': - if (number === 1) { - result += withoutSuffix ? 'minuta' : 'minuto'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'minute' : 'minutami'; - } else { - result += withoutSuffix || isFuture ? 'minut' : 'minutami'; - } - return result; - case 'h': - return withoutSuffix ? 'ena ura' : 'eno uro'; - case 'hh': - if (number === 1) { - result += withoutSuffix ? 'ura' : 'uro'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'uri' : 'urama'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'ure' : 'urami'; - } else { - result += withoutSuffix || isFuture ? 'ur' : 'urami'; - } - return result; - case 'd': - return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; - case 'dd': - if (number === 1) { - result += withoutSuffix || isFuture ? 'dan' : 'dnem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; - } else { - result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; - } - return result; - case 'M': - return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; - case 'MM': - if (number === 1) { - result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; - } else { - result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; - } - return result; - case 'y': - return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; - case 'yy': - if (number === 1) { - result += withoutSuffix || isFuture ? 'leto' : 'letom'; - } else if (number === 2) { - result += withoutSuffix || isFuture ? 'leti' : 'letoma'; - } else if (number < 5) { - result += withoutSuffix || isFuture ? 'leta' : 'leti'; - } else { - result += withoutSuffix || isFuture ? 'let' : 'leti'; - } - return result; - } - } - - var sl = moment.defineLocale('sl', { - months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( - '_' - ), - monthsShort: - 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), - weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), - weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD. MM. YYYY', - LL: 'D. MMMM YYYY', - LLL: 'D. MMMM YYYY H:mm', - LLLL: 'dddd, D. MMMM YYYY H:mm', - }, - calendar: { - sameDay: '[danes ob] LT', - nextDay: '[jutri ob] LT', - - nextWeek: function () { - switch (this.day()) { - case 0: - return '[v] [nedeljo] [ob] LT'; - case 3: - return '[v] [sredo] [ob] LT'; - case 6: - return '[v] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[v] dddd [ob] LT'; - } - }, - lastDay: '[včeraj ob] LT', - lastWeek: function () { - switch (this.day()) { - case 0: - return '[prejšnjo] [nedeljo] [ob] LT'; - case 3: - return '[prejšnjo] [sredo] [ob] LT'; - case 6: - return '[prejšnjo] [soboto] [ob] LT'; - case 1: - case 2: - case 4: - case 5: - return '[prejšnji] dddd [ob] LT'; - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'čez %s', - past: 'pred %s', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return sl; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/sq.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/sq.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Albanian [sq] -//! author : Flakërim Ismani : https://github.com/flakerimi -//! author : Menelion Elensúle : https://github.com/Oire -//! author : Oerd Cukalla : https://github.com/oerd - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var sq = moment.defineLocale('sq', { - months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( - '_' - ), - monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), - weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( - '_' - ), - weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), - weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), - weekdaysParseExact: true, - meridiemParse: /PD|MD/, - isPM: function (input) { - return input.charAt(0) === 'M'; - }, - meridiem: function (hours, minutes, isLower) { - return hours < 12 ? 'PD' : 'MD'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Sot në] LT', - nextDay: '[Nesër në] LT', - nextWeek: 'dddd [në] LT', - lastDay: '[Dje në] LT', - lastWeek: 'dddd [e kaluar në] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'në %s', - past: '%s më parë', - s: 'disa sekonda', - ss: '%d sekonda', - m: 'një minutë', - mm: '%d minuta', - h: 'një orë', - hh: '%d orë', - d: 'një ditë', - dd: '%d ditë', - M: 'një muaj', - MM: '%d muaj', - y: 'një vit', - yy: '%d vite', - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return sq; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/sr-cyrl.js": -/*!***********************************************!*\ - !*** ./node_modules/moment/locale/sr-cyrl.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Serbian Cyrillic [sr-cyrl] -//! author : Milan Janačković : https://github.com/milan-j -//! author : Stefan Crnjaković : https://github.com/crnjakovic - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var translator = { - words: { - //Different grammatical cases - ss: ['секунда', 'секунде', 'секунди'], - m: ['један минут', 'једног минута'], - mm: ['минут', 'минута', 'минута'], - h: ['један сат', 'једног сата'], - hh: ['сат', 'сата', 'сати'], - d: ['један дан', 'једног дана'], - dd: ['дан', 'дана', 'дана'], - M: ['један месец', 'једног месеца'], - MM: ['месец', 'месеца', 'месеци'], - y: ['једну годину', 'једне године'], - yy: ['годину', 'године', 'година'], - }, - correctGrammaticalCase: function (number, wordKey) { - if ( - number % 10 >= 1 && - number % 10 <= 4 && - (number % 100 < 10 || number % 100 >= 20) - ) { - return number % 10 === 1 ? wordKey[0] : wordKey[1]; - } - return wordKey[2]; - }, - translate: function (number, withoutSuffix, key, isFuture) { - var wordKey = translator.words[key], - word; - - if (key.length === 1) { - // Nominativ - if (key === 'y' && withoutSuffix) return 'једна година'; - return isFuture || withoutSuffix ? wordKey[0] : wordKey[1]; - } - - word = translator.correctGrammaticalCase(number, wordKey); - // Nominativ - if (key === 'yy' && withoutSuffix && word === 'годину') { - return number + ' година'; - } - - return number + ' ' + word; - }, - }; - - var srCyrl = moment.defineLocale('sr-cyrl', { - months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( - '_' - ), - monthsShort: - 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'), - monthsParseExact: true, - weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'), - weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), - weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D. M. YYYY.', - LL: 'D. MMMM YYYY.', - LLL: 'D. MMMM YYYY. H:mm', - LLLL: 'dddd, D. MMMM YYYY. H:mm', - }, - calendar: { - sameDay: '[данас у] LT', - nextDay: '[сутра у] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[у] [недељу] [у] LT'; - case 3: - return '[у] [среду] [у] LT'; - case 6: - return '[у] [суботу] [у] LT'; - case 1: - case 2: - case 4: - case 5: - return '[у] dddd [у] LT'; - } - }, - lastDay: '[јуче у] LT', - lastWeek: function () { - var lastWeekDays = [ - '[прошле] [недеље] [у] LT', - '[прошлог] [понедељка] [у] LT', - '[прошлог] [уторка] [у] LT', - '[прошле] [среде] [у] LT', - '[прошлог] [четвртка] [у] LT', - '[прошлог] [петка] [у] LT', - '[прошле] [суботе] [у] LT', - ]; - return lastWeekDays[this.day()]; - }, - sameElse: 'L', - }, - relativeTime: { - future: 'за %s', - past: 'пре %s', - s: 'неколико секунди', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: translator.translate, - dd: translator.translate, - M: translator.translate, - MM: translator.translate, - y: translator.translate, - yy: translator.translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 1st is the first week of the year. - }, - }); - - return srCyrl; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/sr.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/sr.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Serbian [sr] -//! author : Milan Janačković : https://github.com/milan-j -//! author : Stefan Crnjaković : https://github.com/crnjakovic - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var translator = { - words: { - //Different grammatical cases - ss: ['sekunda', 'sekunde', 'sekundi'], - m: ['jedan minut', 'jednog minuta'], - mm: ['minut', 'minuta', 'minuta'], - h: ['jedan sat', 'jednog sata'], - hh: ['sat', 'sata', 'sati'], - d: ['jedan dan', 'jednog dana'], - dd: ['dan', 'dana', 'dana'], - M: ['jedan mesec', 'jednog meseca'], - MM: ['mesec', 'meseca', 'meseci'], - y: ['jednu godinu', 'jedne godine'], - yy: ['godinu', 'godine', 'godina'], - }, - correctGrammaticalCase: function (number, wordKey) { - if ( - number % 10 >= 1 && - number % 10 <= 4 && - (number % 100 < 10 || number % 100 >= 20) - ) { - return number % 10 === 1 ? wordKey[0] : wordKey[1]; - } - return wordKey[2]; - }, - translate: function (number, withoutSuffix, key, isFuture) { - var wordKey = translator.words[key], - word; - - if (key.length === 1) { - // Nominativ - if (key === 'y' && withoutSuffix) return 'jedna godina'; - return isFuture || withoutSuffix ? wordKey[0] : wordKey[1]; - } - - word = translator.correctGrammaticalCase(number, wordKey); - // Nominativ - if (key === 'yy' && withoutSuffix && word === 'godinu') { - return number + ' godina'; - } - - return number + ' ' + word; - }, - }; - - var sr = moment.defineLocale('sr', { - months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( - '_' - ), - monthsShort: - 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'), - monthsParseExact: true, - weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( - '_' - ), - weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), - weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'D. M. YYYY.', - LL: 'D. MMMM YYYY.', - LLL: 'D. MMMM YYYY. H:mm', - LLLL: 'dddd, D. MMMM YYYY. H:mm', - }, - calendar: { - sameDay: '[danas u] LT', - nextDay: '[sutra u] LT', - nextWeek: function () { - switch (this.day()) { - case 0: - return '[u] [nedelju] [u] LT'; - case 3: - return '[u] [sredu] [u] LT'; - case 6: - return '[u] [subotu] [u] LT'; - case 1: - case 2: - case 4: - case 5: - return '[u] dddd [u] LT'; - } - }, - lastDay: '[juče u] LT', - lastWeek: function () { - var lastWeekDays = [ - '[prošle] [nedelje] [u] LT', - '[prošlog] [ponedeljka] [u] LT', - '[prošlog] [utorka] [u] LT', - '[prošle] [srede] [u] LT', - '[prošlog] [četvrtka] [u] LT', - '[prošlog] [petka] [u] LT', - '[prošle] [subote] [u] LT', - ]; - return lastWeekDays[this.day()]; - }, - sameElse: 'L', - }, - relativeTime: { - future: 'za %s', - past: 'pre %s', - s: 'nekoliko sekundi', - ss: translator.translate, - m: translator.translate, - mm: translator.translate, - h: translator.translate, - hh: translator.translate, - d: translator.translate, - dd: translator.translate, - M: translator.translate, - MM: translator.translate, - y: translator.translate, - yy: translator.translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return sr; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ss.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ss.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : siSwati [ss] -//! author : Nicolai Davies : https://github.com/nicolaidavies - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ss = moment.defineLocale('ss', { - months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( - '_' - ), - monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'), - weekdays: - 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( - '_' - ), - weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), - weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Namuhla nga] LT', - nextDay: '[Kusasa nga] LT', - nextWeek: 'dddd [nga] LT', - lastDay: '[Itolo nga] LT', - lastWeek: 'dddd [leliphelile] [nga] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'nga %s', - past: 'wenteka nga %s', - s: 'emizuzwana lomcane', - ss: '%d mzuzwana', - m: 'umzuzu', - mm: '%d emizuzu', - h: 'lihora', - hh: '%d emahora', - d: 'lilanga', - dd: '%d emalanga', - M: 'inyanga', - MM: '%d tinyanga', - y: 'umnyaka', - yy: '%d iminyaka', - }, - meridiemParse: /ekuseni|emini|entsambama|ebusuku/, - meridiem: function (hours, minutes, isLower) { - if (hours < 11) { - return 'ekuseni'; - } else if (hours < 15) { - return 'emini'; - } else if (hours < 19) { - return 'entsambama'; - } else { - return 'ebusuku'; - } - }, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'ekuseni') { - return hour; - } else if (meridiem === 'emini') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') { - if (hour === 0) { - return 0; - } - return hour + 12; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: '%d', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return ss; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/sv.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/sv.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Swedish [sv] -//! author : Jens Alm : https://github.com/ulmus - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var sv = moment.defineLocale('sv', { - months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( - '_' - ), - monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), - weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), - weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), - weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY [kl.] HH:mm', - LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd D MMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Idag] LT', - nextDay: '[Imorgon] LT', - lastDay: '[Igår] LT', - nextWeek: '[På] dddd LT', - lastWeek: '[I] dddd[s] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'om %s', - past: 'för %s sedan', - s: 'några sekunder', - ss: '%d sekunder', - m: 'en minut', - mm: '%d minuter', - h: 'en timme', - hh: '%d timmar', - d: 'en dag', - dd: '%d dagar', - M: 'en månad', - MM: '%d månader', - y: 'ett år', - yy: '%d år', - }, - dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? ':e' - : b === 1 - ? ':a' - : b === 2 - ? ':a' - : b === 3 - ? ':e' - : ':e'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return sv; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/sw.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/sw.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Swahili [sw] -//! author : Fahad Kassim : https://github.com/fadsel - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var sw = moment.defineLocale('sw', { - months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( - '_' - ), - monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'), - weekdays: - 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( - '_' - ), - weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), - weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'hh:mm A', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[leo saa] LT', - nextDay: '[kesho saa] LT', - nextWeek: '[wiki ijayo] dddd [saat] LT', - lastDay: '[jana] LT', - lastWeek: '[wiki iliyopita] dddd [saat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s baadaye', - past: 'tokea %s', - s: 'hivi punde', - ss: 'sekunde %d', - m: 'dakika moja', - mm: 'dakika %d', - h: 'saa limoja', - hh: 'masaa %d', - d: 'siku moja', - dd: 'siku %d', - M: 'mwezi mmoja', - MM: 'miezi %d', - y: 'mwaka mmoja', - yy: 'miaka %d', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return sw; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ta.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ta.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Tamil [ta] -//! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var symbolMap = { - 1: '௧', - 2: '௨', - 3: '௩', - 4: '௪', - 5: '௫', - 6: '௬', - 7: '௭', - 8: '௮', - 9: '௯', - 0: '௦', - }, - numberMap = { - '௧': '1', - '௨': '2', - '௩': '3', - '௪': '4', - '௫': '5', - '௬': '6', - '௭': '7', - '௮': '8', - '௯': '9', - '௦': '0', - }; - - var ta = moment.defineLocale('ta', { - months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - monthsShort: - 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( - '_' - ), - weekdays: - 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( - '_' - ), - weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split( - '_' - ), - weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, HH:mm', - LLLL: 'dddd, D MMMM YYYY, HH:mm', - }, - calendar: { - sameDay: '[இன்று] LT', - nextDay: '[நாளை] LT', - nextWeek: 'dddd, LT', - lastDay: '[நேற்று] LT', - lastWeek: '[கடந்த வாரம்] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s இல்', - past: '%s முன்', - s: 'ஒரு சில விநாடிகள்', - ss: '%d விநாடிகள்', - m: 'ஒரு நிமிடம்', - mm: '%d நிமிடங்கள்', - h: 'ஒரு மணி நேரம்', - hh: '%d மணி நேரம்', - d: 'ஒரு நாள்', - dd: '%d நாட்கள்', - M: 'ஒரு மாதம்', - MM: '%d மாதங்கள்', - y: 'ஒரு வருடம்', - yy: '%d ஆண்டுகள்', - }, - dayOfMonthOrdinalParse: /\d{1,2}வது/, - ordinal: function (number) { - return number + 'வது'; - }, - preparse: function (string) { - return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) { - return numberMap[match]; - }); - }, - postformat: function (string) { - return string.replace(/\d/g, function (match) { - return symbolMap[match]; - }); - }, - // refer http://ta.wikipedia.org/s/1er1 - meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, - meridiem: function (hour, minute, isLower) { - if (hour < 2) { - return ' யாமம்'; - } else if (hour < 6) { - return ' வைகறை'; // வைகறை - } else if (hour < 10) { - return ' காலை'; // காலை - } else if (hour < 14) { - return ' நண்பகல்'; // நண்பகல் - } else if (hour < 18) { - return ' எற்பாடு'; // எற்பாடு - } else if (hour < 22) { - return ' மாலை'; // மாலை - } else { - return ' யாமம்'; - } - }, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'யாமம்') { - return hour < 2 ? hour : hour + 12; - } else if (meridiem === 'வைகறை' || meridiem === 'காலை') { - return hour; - } else if (meridiem === 'நண்பகல்') { - return hour >= 10 ? hour : hour + 12; - } else { - return hour + 12; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return ta; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/te.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/te.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Telugu [te] -//! author : Krishna Chaitanya Thota : https://github.com/kcthota - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var te = moment.defineLocale('te', { - months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( - '_' - ), - monthsShort: - 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split( - '_' - ), - monthsParseExact: true, - weekdays: - 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split( - '_' - ), - weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), - weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), - longDateFormat: { - LT: 'A h:mm', - LTS: 'A h:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY, A h:mm', - LLLL: 'dddd, D MMMM YYYY, A h:mm', - }, - calendar: { - sameDay: '[నేడు] LT', - nextDay: '[రేపు] LT', - nextWeek: 'dddd, LT', - lastDay: '[నిన్న] LT', - lastWeek: '[గత] dddd, LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s లో', - past: '%s క్రితం', - s: 'కొన్ని క్షణాలు', - ss: '%d సెకన్లు', - m: 'ఒక నిమిషం', - mm: '%d నిమిషాలు', - h: 'ఒక గంట', - hh: '%d గంటలు', - d: 'ఒక రోజు', - dd: '%d రోజులు', - M: 'ఒక నెల', - MM: '%d నెలలు', - y: 'ఒక సంవత్సరం', - yy: '%d సంవత్సరాలు', - }, - dayOfMonthOrdinalParse: /\d{1,2}వ/, - ordinal: '%dవ', - meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'రాత్రి') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'ఉదయం') { - return hour; - } else if (meridiem === 'మధ్యాహ్నం') { - return hour >= 10 ? hour : hour + 12; - } else if (meridiem === 'సాయంత్రం') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'రాత్రి'; - } else if (hour < 10) { - return 'ఉదయం'; - } else if (hour < 17) { - return 'మధ్యాహ్నం'; - } else if (hour < 20) { - return 'సాయంత్రం'; - } else { - return 'రాత్రి'; - } - }, - week: { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }, - }); - - return te; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/tet.js": -/*!*******************************************!*\ - !*** ./node_modules/moment/locale/tet.js ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Tetun Dili (East Timor) [tet] -//! author : Joshua Brooks : https://github.com/joshbrooks -//! author : Onorio De J. Afonso : https://github.com/marobo -//! author : Sonia Simoes : https://github.com/soniasimoes - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var tet = moment.defineLocale('tet', { - months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), - weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), - weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), - weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Ohin iha] LT', - nextDay: '[Aban iha] LT', - nextWeek: 'dddd [iha] LT', - lastDay: '[Horiseik iha] LT', - lastWeek: 'dddd [semana kotuk] [iha] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'iha %s', - past: '%s liuba', - s: 'segundu balun', - ss: 'segundu %d', - m: 'minutu ida', - mm: 'minutu %d', - h: 'oras ida', - hh: 'oras %d', - d: 'loron ida', - dd: 'loron %d', - M: 'fulan ida', - MM: 'fulan %d', - y: 'tinan ida', - yy: 'tinan %d', - }, - dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return tet; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/tg.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/tg.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Tajik [tg] -//! author : Orif N. Jr. : https://github.com/orif-jr - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var suffixes = { - 0: '-ум', - 1: '-ум', - 2: '-юм', - 3: '-юм', - 4: '-ум', - 5: '-ум', - 6: '-ум', - 7: '-ум', - 8: '-ум', - 9: '-ум', - 10: '-ум', - 12: '-ум', - 13: '-ум', - 20: '-ум', - 30: '-юм', - 40: '-ум', - 50: '-ум', - 60: '-ум', - 70: '-ум', - 80: '-ум', - 90: '-ум', - 100: '-ум', - }; - - var tg = moment.defineLocale('tg', { - months: { - format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split( - '_' - ), - standalone: - 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( - '_' - ), - }, - monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), - weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split( - '_' - ), - weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), - weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Имрӯз соати] LT', - nextDay: '[Фардо соати] LT', - lastDay: '[Дирӯз соати] LT', - nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT', - lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'баъди %s', - past: '%s пеш', - s: 'якчанд сония', - m: 'як дақиқа', - mm: '%d дақиқа', - h: 'як соат', - hh: '%d соат', - d: 'як рӯз', - dd: '%d рӯз', - M: 'як моҳ', - MM: '%d моҳ', - y: 'як сол', - yy: '%d сол', - }, - meridiemParse: /шаб|субҳ|рӯз|бегоҳ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === 'шаб') { - return hour < 4 ? hour : hour + 12; - } else if (meridiem === 'субҳ') { - return hour; - } else if (meridiem === 'рӯз') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === 'бегоҳ') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'шаб'; - } else if (hour < 11) { - return 'субҳ'; - } else if (hour < 16) { - return 'рӯз'; - } else if (hour < 19) { - return 'бегоҳ'; - } else { - return 'шаб'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/, - ordinal: function (number) { - var a = number % 10, - b = number >= 100 ? 100 : null; - return number + (suffixes[number] || suffixes[a] || suffixes[b]); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 1th is the first week of the year. - }, - }); - - return tg; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/th.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/th.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Thai [th] -//! author : Kridsada Thanabulpong : https://github.com/sirn - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var th = moment.defineLocale('th', { - months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( - '_' - ), - monthsShort: - 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), - weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference - weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'H:mm', - LTS: 'H:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY เวลา H:mm', - LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm', - }, - meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, - isPM: function (input) { - return input === 'หลังเที่ยง'; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'ก่อนเที่ยง'; - } else { - return 'หลังเที่ยง'; - } - }, - calendar: { - sameDay: '[วันนี้ เวลา] LT', - nextDay: '[พรุ่งนี้ เวลา] LT', - nextWeek: 'dddd[หน้า เวลา] LT', - lastDay: '[เมื่อวานนี้ เวลา] LT', - lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'อีก %s', - past: '%sที่แล้ว', - s: 'ไม่กี่วินาที', - ss: '%d วินาที', - m: '1 นาที', - mm: '%d นาที', - h: '1 ชั่วโมง', - hh: '%d ชั่วโมง', - d: '1 วัน', - dd: '%d วัน', - w: '1 สัปดาห์', - ww: '%d สัปดาห์', - M: '1 เดือน', - MM: '%d เดือน', - y: '1 ปี', - yy: '%d ปี', - }, - }); - - return th; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/tk.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/tk.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Turkmen [tk] -//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var suffixes = { - 1: "'inji", - 5: "'inji", - 8: "'inji", - 70: "'inji", - 80: "'inji", - 2: "'nji", - 7: "'nji", - 20: "'nji", - 50: "'nji", - 3: "'ünji", - 4: "'ünji", - 100: "'ünji", - 6: "'njy", - 9: "'unjy", - 10: "'unjy", - 30: "'unjy", - 60: "'ynjy", - 90: "'ynjy", - }; - - var tk = moment.defineLocale('tk', { - months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split( - '_' - ), - monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'), - weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split( - '_' - ), - weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'), - weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[bugün sagat] LT', - nextDay: '[ertir sagat] LT', - nextWeek: '[indiki] dddd [sagat] LT', - lastDay: '[düýn] LT', - lastWeek: '[geçen] dddd [sagat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s soň', - past: '%s öň', - s: 'birnäçe sekunt', - m: 'bir minut', - mm: '%d minut', - h: 'bir sagat', - hh: '%d sagat', - d: 'bir gün', - dd: '%d gün', - M: 'bir aý', - MM: '%d aý', - y: 'bir ýyl', - yy: '%d ýyl', - }, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'Do': - case 'DD': - return number; - default: - if (number === 0) { - // special case for zero - return number + "'unjy"; - } - var a = number % 10, - b = (number % 100) - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return tk; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/tl-ph.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/tl-ph.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Tagalog (Philippines) [tl-ph] -//! author : Dan Hagman : https://github.com/hagmandan - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var tlPh = moment.defineLocale('tl-ph', { - months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( - '_' - ), - monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), - weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( - '_' - ), - weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), - weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'MM/D/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY HH:mm', - LLLL: 'dddd, MMMM DD, YYYY HH:mm', - }, - calendar: { - sameDay: 'LT [ngayong araw]', - nextDay: '[Bukas ng] LT', - nextWeek: 'LT [sa susunod na] dddd', - lastDay: 'LT [kahapon]', - lastWeek: 'LT [noong nakaraang] dddd', - sameElse: 'L', - }, - relativeTime: { - future: 'sa loob ng %s', - past: '%s ang nakalipas', - s: 'ilang segundo', - ss: '%d segundo', - m: 'isang minuto', - mm: '%d minuto', - h: 'isang oras', - hh: '%d oras', - d: 'isang araw', - dd: '%d araw', - M: 'isang buwan', - MM: '%d buwan', - y: 'isang taon', - yy: '%d taon', - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function (number) { - return number; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return tlPh; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/tlh.js": -/*!*******************************************!*\ - !*** ./node_modules/moment/locale/tlh.js ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Klingon [tlh] -//! author : Dominika Kruk : https://github.com/amaranthrose - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); - - function translateFuture(output) { - var time = output; - time = - output.indexOf('jaj') !== -1 - ? time.slice(0, -3) + 'leS' - : output.indexOf('jar') !== -1 - ? time.slice(0, -3) + 'waQ' - : output.indexOf('DIS') !== -1 - ? time.slice(0, -3) + 'nem' - : time + ' pIq'; - return time; - } - - function translatePast(output) { - var time = output; - time = - output.indexOf('jaj') !== -1 - ? time.slice(0, -3) + 'Hu’' - : output.indexOf('jar') !== -1 - ? time.slice(0, -3) + 'wen' - : output.indexOf('DIS') !== -1 - ? time.slice(0, -3) + 'ben' - : time + ' ret'; - return time; - } - - function translate(number, withoutSuffix, string, isFuture) { - var numberNoun = numberAsNoun(number); - switch (string) { - case 'ss': - return numberNoun + ' lup'; - case 'mm': - return numberNoun + ' tup'; - case 'hh': - return numberNoun + ' rep'; - case 'dd': - return numberNoun + ' jaj'; - case 'MM': - return numberNoun + ' jar'; - case 'yy': - return numberNoun + ' DIS'; - } - } - - function numberAsNoun(number) { - var hundred = Math.floor((number % 1000) / 100), - ten = Math.floor((number % 100) / 10), - one = number % 10, - word = ''; - if (hundred > 0) { - word += numbersNouns[hundred] + 'vatlh'; - } - if (ten > 0) { - word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH'; - } - if (one > 0) { - word += (word !== '' ? ' ' : '') + numbersNouns[one]; - } - return word === '' ? 'pagh' : word; - } - - var tlh = moment.defineLocale('tlh', { - months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( - '_' - ), - monthsShort: - 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( - '_' - ), - weekdaysShort: - 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - weekdaysMin: - 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[DaHjaj] LT', - nextDay: '[wa’leS] LT', - nextWeek: 'LLL', - lastDay: '[wa’Hu’] LT', - lastWeek: 'LLL', - sameElse: 'L', - }, - relativeTime: { - future: translateFuture, - past: translatePast, - s: 'puS lup', - ss: translate, - m: 'wa’ tup', - mm: translate, - h: 'wa’ rep', - hh: translate, - d: 'wa’ jaj', - dd: translate, - M: 'wa’ jar', - MM: translate, - y: 'wa’ DIS', - yy: translate, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return tlh; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/tr.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/tr.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Turkish [tr] -//! authors : Erhan Gundogan : https://github.com/erhangundogan, -//! Burak Yiğit Kaya: https://github.com/BYK - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var suffixes = { - 1: "'inci", - 5: "'inci", - 8: "'inci", - 70: "'inci", - 80: "'inci", - 2: "'nci", - 7: "'nci", - 20: "'nci", - 50: "'nci", - 3: "'üncü", - 4: "'üncü", - 100: "'üncü", - 6: "'ncı", - 9: "'uncu", - 10: "'uncu", - 30: "'uncu", - 60: "'ıncı", - 90: "'ıncı", - }; - - var tr = moment.defineLocale('tr', { - months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( - '_' - ), - monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), - weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( - '_' - ), - weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'), - weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'öö' : 'ÖÖ'; - } else { - return isLower ? 'ös' : 'ÖS'; - } - }, - meridiemParse: /öö|ÖÖ|ös|ÖS/, - isPM: function (input) { - return input === 'ös' || input === 'ÖS'; - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[bugün saat] LT', - nextDay: '[yarın saat] LT', - nextWeek: '[gelecek] dddd [saat] LT', - lastDay: '[dün] LT', - lastWeek: '[geçen] dddd [saat] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s sonra', - past: '%s önce', - s: 'birkaç saniye', - ss: '%d saniye', - m: 'bir dakika', - mm: '%d dakika', - h: 'bir saat', - hh: '%d saat', - d: 'bir gün', - dd: '%d gün', - w: 'bir hafta', - ww: '%d hafta', - M: 'bir ay', - MM: '%d ay', - y: 'bir yıl', - yy: '%d yıl', - }, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'Do': - case 'DD': - return number; - default: - if (number === 0) { - // special case for zero - return number + "'ıncı"; - } - var a = number % 10, - b = (number % 100) - a, - c = number >= 100 ? 100 : null; - return number + (suffixes[a] || suffixes[b] || suffixes[c]); - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return tr; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/tzl.js": -/*!*******************************************!*\ - !*** ./node_modules/moment/locale/tzl.js ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Talossan [tzl] -//! author : Robin van der Vliet : https://github.com/robin0van0der0v -//! author : Iustì Canun - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. - // This is currently too difficult (maybe even impossible) to add. - var tzl = moment.defineLocale('tzl', { - months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( - '_' - ), - monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), - weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), - weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), - weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), - longDateFormat: { - LT: 'HH.mm', - LTS: 'HH.mm.ss', - L: 'DD.MM.YYYY', - LL: 'D. MMMM [dallas] YYYY', - LLL: 'D. MMMM [dallas] YYYY HH.mm', - LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm', - }, - meridiemParse: /d\'o|d\'a/i, - isPM: function (input) { - return "d'o" === input.toLowerCase(); - }, - meridiem: function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? "d'o" : "D'O"; - } else { - return isLower ? "d'a" : "D'A"; - } - }, - calendar: { - sameDay: '[oxhi à] LT', - nextDay: '[demà à] LT', - nextWeek: 'dddd [à] LT', - lastDay: '[ieiri à] LT', - lastWeek: '[sür el] dddd [lasteu à] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'osprei %s', - past: 'ja%s', - s: processRelativeTime, - ss: processRelativeTime, - m: processRelativeTime, - mm: processRelativeTime, - h: processRelativeTime, - hh: processRelativeTime, - d: processRelativeTime, - dd: processRelativeTime, - M: processRelativeTime, - MM: processRelativeTime, - y: processRelativeTime, - yy: processRelativeTime, - }, - dayOfMonthOrdinalParse: /\d{1,2}\./, - ordinal: '%d.', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - function processRelativeTime(number, withoutSuffix, key, isFuture) { - var format = { - s: ['viensas secunds', "'iensas secunds"], - ss: [number + ' secunds', '' + number + ' secunds'], - m: ["'n míut", "'iens míut"], - mm: [number + ' míuts', '' + number + ' míuts'], - h: ["'n þora", "'iensa þora"], - hh: [number + ' þoras', '' + number + ' þoras'], - d: ["'n ziua", "'iensa ziua"], - dd: [number + ' ziuas', '' + number + ' ziuas'], - M: ["'n mes", "'iens mes"], - MM: [number + ' mesen', '' + number + ' mesen'], - y: ["'n ar", "'iens ar"], - yy: [number + ' ars', '' + number + ' ars'], - }; - return isFuture - ? format[key][0] - : withoutSuffix - ? format[key][0] - : format[key][1]; - } - - return tzl; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/tzm-latn.js": -/*!************************************************!*\ - !*** ./node_modules/moment/locale/tzm-latn.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Central Atlas Tamazight Latin [tzm-latn] -//! author : Abdel Said : https://github.com/abdelsaid - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var tzmLatn = moment.defineLocale('tzm-latn', { - months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - monthsShort: - 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( - '_' - ), - weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[asdkh g] LT', - nextDay: '[aska g] LT', - nextWeek: 'dddd [g] LT', - lastDay: '[assant g] LT', - lastWeek: 'dddd [g] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'dadkh s yan %s', - past: 'yan %s', - s: 'imik', - ss: '%d imik', - m: 'minuḍ', - mm: '%d minuḍ', - h: 'saɛa', - hh: '%d tassaɛin', - d: 'ass', - dd: '%d ossan', - M: 'ayowr', - MM: '%d iyyirn', - y: 'asgas', - yy: '%d isgasn', - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - - return tzmLatn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/tzm.js": -/*!*******************************************!*\ - !*** ./node_modules/moment/locale/tzm.js ***! - \*******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Central Atlas Tamazight [tzm] -//! author : Abdel Said : https://github.com/abdelsaid - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var tzm = moment.defineLocale('tzm', { - months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - monthsShort: - 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( - '_' - ), - weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', - nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', - nextWeek: 'dddd [ⴴ] LT', - lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', - lastWeek: 'dddd [ⴴ] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', - past: 'ⵢⴰⵏ %s', - s: 'ⵉⵎⵉⴽ', - ss: '%d ⵉⵎⵉⴽ', - m: 'ⵎⵉⵏⵓⴺ', - mm: '%d ⵎⵉⵏⵓⴺ', - h: 'ⵙⴰⵄⴰ', - hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', - d: 'ⴰⵙⵙ', - dd: '%d oⵙⵙⴰⵏ', - M: 'ⴰⵢoⵓⵔ', - MM: '%d ⵉⵢⵢⵉⵔⵏ', - y: 'ⴰⵙⴳⴰⵙ', - yy: '%d ⵉⵙⴳⴰⵙⵏ', - }, - week: { - dow: 6, // Saturday is the first day of the week. - doy: 12, // The week that contains Jan 12th is the first week of the year. - }, - }); - - return tzm; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ug-cn.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/ug-cn.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Uyghur (China) [ug-cn] -//! author: boyaq : https://github.com/boyaq - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var ugCn = moment.defineLocale('ug-cn', { - months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( - '_' - ), - monthsShort: - 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( - '_' - ), - weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split( - '_' - ), - weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), - weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY-MM-DD', - LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى', - LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', - LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', - }, - meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if ( - meridiem === 'يېرىم كېچە' || - meridiem === 'سەھەر' || - meridiem === 'چۈشتىن بۇرۇن' - ) { - return hour; - } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') { - return hour + 12; - } else { - return hour >= 11 ? hour : hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return 'يېرىم كېچە'; - } else if (hm < 900) { - return 'سەھەر'; - } else if (hm < 1130) { - return 'چۈشتىن بۇرۇن'; - } else if (hm < 1230) { - return 'چۈش'; - } else if (hm < 1800) { - return 'چۈشتىن كېيىن'; - } else { - return 'كەچ'; - } - }, - calendar: { - sameDay: '[بۈگۈن سائەت] LT', - nextDay: '[ئەتە سائەت] LT', - nextWeek: '[كېلەركى] dddd [سائەت] LT', - lastDay: '[تۆنۈگۈن] LT', - lastWeek: '[ئالدىنقى] dddd [سائەت] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s كېيىن', - past: '%s بۇرۇن', - s: 'نەچچە سېكونت', - ss: '%d سېكونت', - m: 'بىر مىنۇت', - mm: '%d مىنۇت', - h: 'بىر سائەت', - hh: '%d سائەت', - d: 'بىر كۈن', - dd: '%d كۈن', - M: 'بىر ئاي', - MM: '%d ئاي', - y: 'بىر يىل', - yy: '%d يىل', - }, - - dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '-كۈنى'; - case 'w': - case 'W': - return number + '-ھەپتە'; - default: - return number; - } - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 1st is the first week of the year. - }, - }); - - return ugCn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/uk.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/uk.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Ukrainian [uk] -//! author : zemlanin : https://github.com/zemlanin -//! Author : Menelion Elensúle : https://github.com/Oire - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - function plural(word, num) { - var forms = word.split('_'); - return num % 10 === 1 && num % 100 !== 11 - ? forms[0] - : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) - ? forms[1] - : forms[2]; - } - function relativeTimeWithPlural(number, withoutSuffix, key) { - var format = { - ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', - mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', - hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин', - dd: 'день_дні_днів', - MM: 'місяць_місяці_місяців', - yy: 'рік_роки_років', - }; - if (key === 'm') { - return withoutSuffix ? 'хвилина' : 'хвилину'; - } else if (key === 'h') { - return withoutSuffix ? 'година' : 'годину'; - } else { - return number + ' ' + plural(format[key], +number); - } - } - function weekdaysCaseReplace(m, format) { - var weekdays = { - nominative: - 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split( - '_' - ), - accusative: - 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split( - '_' - ), - genitive: - 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split( - '_' - ), - }, - nounCase; - - if (m === true) { - return weekdays['nominative'] - .slice(1, 7) - .concat(weekdays['nominative'].slice(0, 1)); - } - if (!m) { - return weekdays['nominative']; - } - - nounCase = /(\[[ВвУу]\]) ?dddd/.test(format) - ? 'accusative' - : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format) - ? 'genitive' - : 'nominative'; - return weekdays[nounCase][m.day()]; - } - function processHoursFunction(str) { - return function () { - return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; - }; - } - - var uk = moment.defineLocale('uk', { - months: { - format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( - '_' - ), - standalone: - 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( - '_' - ), - }, - monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( - '_' - ), - weekdays: weekdaysCaseReplace, - weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD.MM.YYYY', - LL: 'D MMMM YYYY р.', - LLL: 'D MMMM YYYY р., HH:mm', - LLLL: 'dddd, D MMMM YYYY р., HH:mm', - }, - calendar: { - sameDay: processHoursFunction('[Сьогодні '), - nextDay: processHoursFunction('[Завтра '), - lastDay: processHoursFunction('[Вчора '), - nextWeek: processHoursFunction('[У] dddd ['), - lastWeek: function () { - switch (this.day()) { - case 0: - case 3: - case 5: - case 6: - return processHoursFunction('[Минулої] dddd [').call(this); - case 1: - case 2: - case 4: - return processHoursFunction('[Минулого] dddd [').call(this); - } - }, - sameElse: 'L', - }, - relativeTime: { - future: 'за %s', - past: '%s тому', - s: 'декілька секунд', - ss: relativeTimeWithPlural, - m: relativeTimeWithPlural, - mm: relativeTimeWithPlural, - h: 'годину', - hh: relativeTimeWithPlural, - d: 'день', - dd: relativeTimeWithPlural, - M: 'місяць', - MM: relativeTimeWithPlural, - y: 'рік', - yy: relativeTimeWithPlural, - }, - // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason - meridiemParse: /ночі|ранку|дня|вечора/, - isPM: function (input) { - return /^(дня|вечора)$/.test(input); - }, - meridiem: function (hour, minute, isLower) { - if (hour < 4) { - return 'ночі'; - } else if (hour < 12) { - return 'ранку'; - } else if (hour < 17) { - return 'дня'; - } else { - return 'вечора'; - } - }, - dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, - ordinal: function (number, period) { - switch (period) { - case 'M': - case 'd': - case 'DDD': - case 'w': - case 'W': - return number + '-й'; - case 'D': - return number + '-го'; - default: - return number; - } - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return uk; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/ur.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/ur.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Urdu [ur] -//! author : Sawood Alam : https://github.com/ibnesayeed -//! author : Zack : https://github.com/ZackVision - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var months = [ - 'جنوری', - 'فروری', - 'مارچ', - 'اپریل', - 'مئی', - 'جون', - 'جولائی', - 'اگست', - 'ستمبر', - 'اکتوبر', - 'نومبر', - 'دسمبر', - ], - days = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ']; - - var ur = moment.defineLocale('ur', { - months: months, - monthsShort: months, - weekdays: days, - weekdaysShort: days, - weekdaysMin: days, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd، D MMMM YYYY HH:mm', - }, - meridiemParse: /صبح|شام/, - isPM: function (input) { - return 'شام' === input; - }, - meridiem: function (hour, minute, isLower) { - if (hour < 12) { - return 'صبح'; - } - return 'شام'; - }, - calendar: { - sameDay: '[آج بوقت] LT', - nextDay: '[کل بوقت] LT', - nextWeek: 'dddd [بوقت] LT', - lastDay: '[گذشتہ روز بوقت] LT', - lastWeek: '[گذشتہ] dddd [بوقت] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s بعد', - past: '%s قبل', - s: 'چند سیکنڈ', - ss: '%d سیکنڈ', - m: 'ایک منٹ', - mm: '%d منٹ', - h: 'ایک گھنٹہ', - hh: '%d گھنٹے', - d: 'ایک دن', - dd: '%d دن', - M: 'ایک ماہ', - MM: '%d ماہ', - y: 'ایک سال', - yy: '%d سال', - }, - preparse: function (string) { - return string.replace(/،/g, ','); - }, - postformat: function (string) { - return string.replace(/,/g, '،'); - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return ur; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/uz-latn.js": -/*!***********************************************!*\ - !*** ./node_modules/moment/locale/uz-latn.js ***! - \***********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Uzbek Latin [uz-latn] -//! author : Rasulbek Mirzayev : github.com/Rasulbeeek - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var uzLatn = moment.defineLocale('uz-latn', { - months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( - '_' - ), - monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'), - weekdays: - 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split( - '_' - ), - weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), - weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm', - }, - calendar: { - sameDay: '[Bugun soat] LT [da]', - nextDay: '[Ertaga] LT [da]', - nextWeek: 'dddd [kuni soat] LT [da]', - lastDay: '[Kecha soat] LT [da]', - lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", - sameElse: 'L', - }, - relativeTime: { - future: 'Yaqin %s ichida', - past: 'Bir necha %s oldin', - s: 'soniya', - ss: '%d soniya', - m: 'bir daqiqa', - mm: '%d daqiqa', - h: 'bir soat', - hh: '%d soat', - d: 'bir kun', - dd: '%d kun', - M: 'bir oy', - MM: '%d oy', - y: 'bir yil', - yy: '%d yil', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 7th is the first week of the year. - }, - }); - - return uzLatn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/uz.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/uz.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Uzbek [uz] -//! author : Sardor Muminov : https://github.com/muminoff - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var uz = moment.defineLocale('uz', { - months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( - '_' - ), - monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), - weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), - weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), - weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'D MMMM YYYY, dddd HH:mm', - }, - calendar: { - sameDay: '[Бугун соат] LT [да]', - nextDay: '[Эртага] LT [да]', - nextWeek: 'dddd [куни соат] LT [да]', - lastDay: '[Кеча соат] LT [да]', - lastWeek: '[Утган] dddd [куни соат] LT [да]', - sameElse: 'L', - }, - relativeTime: { - future: 'Якин %s ичида', - past: 'Бир неча %s олдин', - s: 'фурсат', - ss: '%d фурсат', - m: 'бир дакика', - mm: '%d дакика', - h: 'бир соат', - hh: '%d соат', - d: 'бир кун', - dd: '%d кун', - M: 'бир ой', - MM: '%d ой', - y: 'бир йил', - yy: '%d йил', - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 7, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return uz; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/vi.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/vi.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Vietnamese [vi] -//! author : Bang Nguyen : https://github.com/bangnk -//! author : Chien Kira : https://github.com/chienkira - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var vi = moment.defineLocale('vi', { - months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split( - '_' - ), - monthsShort: - 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split( - '_' - ), - monthsParseExact: true, - weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split( - '_' - ), - weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), - weekdaysParseExact: true, - meridiemParse: /sa|ch/i, - isPM: function (input) { - return /^ch$/i.test(input); - }, - meridiem: function (hours, minutes, isLower) { - if (hours < 12) { - return isLower ? 'sa' : 'SA'; - } else { - return isLower ? 'ch' : 'CH'; - } - }, - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'D MMMM [năm] YYYY', - LLL: 'D MMMM [năm] YYYY HH:mm', - LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', - l: 'DD/M/YYYY', - ll: 'D MMM YYYY', - lll: 'D MMM YYYY HH:mm', - llll: 'ddd, D MMM YYYY HH:mm', - }, - calendar: { - sameDay: '[Hôm nay lúc] LT', - nextDay: '[Ngày mai lúc] LT', - nextWeek: 'dddd [tuần tới lúc] LT', - lastDay: '[Hôm qua lúc] LT', - lastWeek: 'dddd [tuần trước lúc] LT', - sameElse: 'L', - }, - relativeTime: { - future: '%s tới', - past: '%s trước', - s: 'vài giây', - ss: '%d giây', - m: 'một phút', - mm: '%d phút', - h: 'một giờ', - hh: '%d giờ', - d: 'một ngày', - dd: '%d ngày', - w: 'một tuần', - ww: '%d tuần', - M: 'một tháng', - MM: '%d tháng', - y: 'một năm', - yy: '%d năm', - }, - dayOfMonthOrdinalParse: /\d{1,2}/, - ordinal: function (number) { - return number; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return vi; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/x-pseudo.js": -/*!************************************************!*\ - !*** ./node_modules/moment/locale/x-pseudo.js ***! - \************************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Pseudo [x-pseudo] -//! author : Andrew Hood : https://github.com/andrewhood125 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var xPseudo = moment.defineLocale('x-pseudo', { - months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( - '_' - ), - monthsShort: - 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( - '_' - ), - monthsParseExact: true, - weekdays: - 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( - '_' - ), - weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), - weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), - weekdaysParseExact: true, - longDateFormat: { - LT: 'HH:mm', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY HH:mm', - LLLL: 'dddd, D MMMM YYYY HH:mm', - }, - calendar: { - sameDay: '[T~ódá~ý át] LT', - nextDay: '[T~ómó~rró~w át] LT', - nextWeek: 'dddd [át] LT', - lastDay: '[Ý~ést~érdá~ý át] LT', - lastWeek: '[L~ást] dddd [át] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'í~ñ %s', - past: '%s á~gó', - s: 'á ~féw ~sécó~ñds', - ss: '%d s~écóñ~ds', - m: 'á ~míñ~úté', - mm: '%d m~íñú~tés', - h: 'á~ñ hó~úr', - hh: '%d h~óúrs', - d: 'á ~dáý', - dd: '%d d~áýs', - M: 'á ~móñ~th', - MM: '%d m~óñt~hs', - y: 'á ~ýéár', - yy: '%d ý~éárs', - }, - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function (number) { - var b = number % 10, - output = - ~~((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return xPseudo; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/yo.js": -/*!******************************************!*\ - !*** ./node_modules/moment/locale/yo.js ***! - \******************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Yoruba Nigeria [yo] -//! author : Atolagbe Abisoye : https://github.com/andela-batolagbe - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var yo = moment.defineLocale('yo', { - months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( - '_' - ), - monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'), - weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), - weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), - weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), - longDateFormat: { - LT: 'h:mm A', - LTS: 'h:mm:ss A', - L: 'DD/MM/YYYY', - LL: 'D MMMM YYYY', - LLL: 'D MMMM YYYY h:mm A', - LLLL: 'dddd, D MMMM YYYY h:mm A', - }, - calendar: { - sameDay: '[Ònì ni] LT', - nextDay: '[Ọ̀la ni] LT', - nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", - lastDay: '[Àna ni] LT', - lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', - sameElse: 'L', - }, - relativeTime: { - future: 'ní %s', - past: '%s kọjá', - s: 'ìsẹjú aayá die', - ss: 'aayá %d', - m: 'ìsẹjú kan', - mm: 'ìsẹjú %d', - h: 'wákati kan', - hh: 'wákati %d', - d: 'ọjọ́ kan', - dd: 'ọjọ́ %d', - M: 'osù kan', - MM: 'osù %d', - y: 'ọdún kan', - yy: 'ọdún %d', - }, - dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, - ordinal: 'ọjọ́ %d', - week: { - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return yo; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/zh-cn.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/zh-cn.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Chinese (China) [zh-cn] -//! author : suupic : https://github.com/suupic -//! author : Zeno Zeng : https://github.com/zenozeng -//! author : uu109 : https://github.com/uu109 - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var zhCn = moment.defineLocale('zh-cn', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日Ah点mm分', - LLLL: 'YYYY年M月D日ddddAh点mm分', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } else { - // '中午' - return hour >= 11 ? hour : hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: function (now) { - if (now.week() !== this.week()) { - return '[下]dddLT'; - } else { - return '[本]dddLT'; - } - }, - lastDay: '[昨天]LT', - lastWeek: function (now) { - if (this.week() !== now.week()) { - return '[上]dddLT'; - } else { - return '[本]dddLT'; - } - }, - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '周'; - default: - return number; - } - }, - relativeTime: { - future: '%s后', - past: '%s前', - s: '几秒', - ss: '%d 秒', - m: '1 分钟', - mm: '%d 分钟', - h: '1 小时', - hh: '%d 小时', - d: '1 天', - dd: '%d 天', - w: '1 周', - ww: '%d 周', - M: '1 个月', - MM: '%d 个月', - y: '1 年', - yy: '%d 年', - }, - week: { - // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 - dow: 1, // Monday is the first day of the week. - doy: 4, // The week that contains Jan 4th is the first week of the year. - }, - }); - - return zhCn; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/zh-hk.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/zh-hk.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Chinese (Hong Kong) [zh-hk] -//! author : Ben : https://github.com/ben-lin -//! author : Chris Lam : https://github.com/hehachris -//! author : Konstantin : https://github.com/skfd -//! author : Anthony : https://github.com/anthonylau - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var zhHk = moment.defineLocale('zh-hk', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1200) { - return '上午'; - } else if (hm === 1200) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天]LT', - nextDay: '[明天]LT', - nextWeek: '[下]ddddLT', - lastDay: '[昨天]LT', - lastWeek: '[上]ddddLT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年', - }, - }); - - return zhHk; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/zh-mo.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/zh-mo.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Chinese (Macau) [zh-mo] -//! author : Ben : https://github.com/ben-lin -//! author : Chris Lam : https://github.com/hehachris -//! author : Tan Yuanhong : https://github.com/le0tan - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var zhMo = moment.defineLocale('zh-mo', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'DD/MM/YYYY', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'D/M/YYYY', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天] LT', - nextDay: '[明天] LT', - nextWeek: '[下]dddd LT', - lastDay: '[昨天] LT', - lastWeek: '[上]dddd LT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s內', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年', - }, - }); - - return zhMo; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale/zh-tw.js": -/*!*********************************************!*\ - !*** ./node_modules/moment/locale/zh-tw.js ***! - \*********************************************/ -/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { - -//! moment.js locale configuration -//! locale : Chinese (Taiwan) [zh-tw] -//! author : Ben : https://github.com/ben-lin -//! author : Chris Lam : https://github.com/hehachris - -;(function (global, factory) { - true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) : - 0 -}(this, (function (moment) { 'use strict'; - - //! moment.js locale configuration - - var zhTw = moment.defineLocale('zh-tw', { - months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( - '_' - ), - monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( - '_' - ), - weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), - weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), - weekdaysMin: '日_一_二_三_四_五_六'.split('_'), - longDateFormat: { - LT: 'HH:mm', - LTS: 'HH:mm:ss', - L: 'YYYY/MM/DD', - LL: 'YYYY年M月D日', - LLL: 'YYYY年M月D日 HH:mm', - LLLL: 'YYYY年M月D日dddd HH:mm', - l: 'YYYY/M/D', - ll: 'YYYY年M月D日', - lll: 'YYYY年M月D日 HH:mm', - llll: 'YYYY年M月D日dddd HH:mm', - }, - meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, - meridiemHour: function (hour, meridiem) { - if (hour === 12) { - hour = 0; - } - if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') { - return hour; - } else if (meridiem === '中午') { - return hour >= 11 ? hour : hour + 12; - } else if (meridiem === '下午' || meridiem === '晚上') { - return hour + 12; - } - }, - meridiem: function (hour, minute, isLower) { - var hm = hour * 100 + minute; - if (hm < 600) { - return '凌晨'; - } else if (hm < 900) { - return '早上'; - } else if (hm < 1130) { - return '上午'; - } else if (hm < 1230) { - return '中午'; - } else if (hm < 1800) { - return '下午'; - } else { - return '晚上'; - } - }, - calendar: { - sameDay: '[今天] LT', - nextDay: '[明天] LT', - nextWeek: '[下]dddd LT', - lastDay: '[昨天] LT', - lastWeek: '[上]dddd LT', - sameElse: 'L', - }, - dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, - ordinal: function (number, period) { - switch (period) { - case 'd': - case 'D': - case 'DDD': - return number + '日'; - case 'M': - return number + '月'; - case 'w': - case 'W': - return number + '週'; - default: - return number; - } - }, - relativeTime: { - future: '%s後', - past: '%s前', - s: '幾秒', - ss: '%d 秒', - m: '1 分鐘', - mm: '%d 分鐘', - h: '1 小時', - hh: '%d 小時', - d: '1 天', - dd: '%d 天', - M: '1 個月', - MM: '%d 個月', - y: '1 年', - yy: '%d 年', - }, - }); - - return zhTw; - -}))); - - -/***/ }), - -/***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$": -/*!***************************************************!*\ - !*** ./node_modules/moment/locale/ sync ^\.\/.*$ ***! - \***************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -var map = { - "./af": "./node_modules/moment/locale/af.js", - "./af.js": "./node_modules/moment/locale/af.js", - "./ar": "./node_modules/moment/locale/ar.js", - "./ar-dz": "./node_modules/moment/locale/ar-dz.js", - "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js", - "./ar-kw": "./node_modules/moment/locale/ar-kw.js", - "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js", - "./ar-ly": "./node_modules/moment/locale/ar-ly.js", - "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js", - "./ar-ma": "./node_modules/moment/locale/ar-ma.js", - "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js", - "./ar-ps": "./node_modules/moment/locale/ar-ps.js", - "./ar-ps.js": "./node_modules/moment/locale/ar-ps.js", - "./ar-sa": "./node_modules/moment/locale/ar-sa.js", - "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js", - "./ar-tn": "./node_modules/moment/locale/ar-tn.js", - "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js", - "./ar.js": "./node_modules/moment/locale/ar.js", - "./az": "./node_modules/moment/locale/az.js", - "./az.js": "./node_modules/moment/locale/az.js", - "./be": "./node_modules/moment/locale/be.js", - "./be.js": "./node_modules/moment/locale/be.js", - "./bg": "./node_modules/moment/locale/bg.js", - "./bg.js": "./node_modules/moment/locale/bg.js", - "./bm": "./node_modules/moment/locale/bm.js", - "./bm.js": "./node_modules/moment/locale/bm.js", - "./bn": "./node_modules/moment/locale/bn.js", - "./bn-bd": "./node_modules/moment/locale/bn-bd.js", - "./bn-bd.js": "./node_modules/moment/locale/bn-bd.js", - "./bn.js": "./node_modules/moment/locale/bn.js", - "./bo": "./node_modules/moment/locale/bo.js", - "./bo.js": "./node_modules/moment/locale/bo.js", - "./br": "./node_modules/moment/locale/br.js", - "./br.js": "./node_modules/moment/locale/br.js", - "./bs": "./node_modules/moment/locale/bs.js", - "./bs.js": "./node_modules/moment/locale/bs.js", - "./ca": "./node_modules/moment/locale/ca.js", - "./ca.js": "./node_modules/moment/locale/ca.js", - "./cs": "./node_modules/moment/locale/cs.js", - "./cs.js": "./node_modules/moment/locale/cs.js", - "./cv": "./node_modules/moment/locale/cv.js", - "./cv.js": "./node_modules/moment/locale/cv.js", - "./cy": "./node_modules/moment/locale/cy.js", - "./cy.js": "./node_modules/moment/locale/cy.js", - "./da": "./node_modules/moment/locale/da.js", - "./da.js": "./node_modules/moment/locale/da.js", - "./de": "./node_modules/moment/locale/de.js", - "./de-at": "./node_modules/moment/locale/de-at.js", - "./de-at.js": "./node_modules/moment/locale/de-at.js", - "./de-ch": "./node_modules/moment/locale/de-ch.js", - "./de-ch.js": "./node_modules/moment/locale/de-ch.js", - "./de.js": "./node_modules/moment/locale/de.js", - "./dv": "./node_modules/moment/locale/dv.js", - "./dv.js": "./node_modules/moment/locale/dv.js", - "./el": "./node_modules/moment/locale/el.js", - "./el.js": "./node_modules/moment/locale/el.js", - "./en-au": "./node_modules/moment/locale/en-au.js", - "./en-au.js": "./node_modules/moment/locale/en-au.js", - "./en-ca": "./node_modules/moment/locale/en-ca.js", - "./en-ca.js": "./node_modules/moment/locale/en-ca.js", - "./en-gb": "./node_modules/moment/locale/en-gb.js", - "./en-gb.js": "./node_modules/moment/locale/en-gb.js", - "./en-ie": "./node_modules/moment/locale/en-ie.js", - "./en-ie.js": "./node_modules/moment/locale/en-ie.js", - "./en-il": "./node_modules/moment/locale/en-il.js", - "./en-il.js": "./node_modules/moment/locale/en-il.js", - "./en-in": "./node_modules/moment/locale/en-in.js", - "./en-in.js": "./node_modules/moment/locale/en-in.js", - "./en-nz": "./node_modules/moment/locale/en-nz.js", - "./en-nz.js": "./node_modules/moment/locale/en-nz.js", - "./en-sg": "./node_modules/moment/locale/en-sg.js", - "./en-sg.js": "./node_modules/moment/locale/en-sg.js", - "./eo": "./node_modules/moment/locale/eo.js", - "./eo.js": "./node_modules/moment/locale/eo.js", - "./es": "./node_modules/moment/locale/es.js", - "./es-do": "./node_modules/moment/locale/es-do.js", - "./es-do.js": "./node_modules/moment/locale/es-do.js", - "./es-mx": "./node_modules/moment/locale/es-mx.js", - "./es-mx.js": "./node_modules/moment/locale/es-mx.js", - "./es-us": "./node_modules/moment/locale/es-us.js", - "./es-us.js": "./node_modules/moment/locale/es-us.js", - "./es.js": "./node_modules/moment/locale/es.js", - "./et": "./node_modules/moment/locale/et.js", - "./et.js": "./node_modules/moment/locale/et.js", - "./eu": "./node_modules/moment/locale/eu.js", - "./eu.js": "./node_modules/moment/locale/eu.js", - "./fa": "./node_modules/moment/locale/fa.js", - "./fa.js": "./node_modules/moment/locale/fa.js", - "./fi": "./node_modules/moment/locale/fi.js", - "./fi.js": "./node_modules/moment/locale/fi.js", - "./fil": "./node_modules/moment/locale/fil.js", - "./fil.js": "./node_modules/moment/locale/fil.js", - "./fo": "./node_modules/moment/locale/fo.js", - "./fo.js": "./node_modules/moment/locale/fo.js", - "./fr": "./node_modules/moment/locale/fr.js", - "./fr-ca": "./node_modules/moment/locale/fr-ca.js", - "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js", - "./fr-ch": "./node_modules/moment/locale/fr-ch.js", - "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js", - "./fr.js": "./node_modules/moment/locale/fr.js", - "./fy": "./node_modules/moment/locale/fy.js", - "./fy.js": "./node_modules/moment/locale/fy.js", - "./ga": "./node_modules/moment/locale/ga.js", - "./ga.js": "./node_modules/moment/locale/ga.js", - "./gd": "./node_modules/moment/locale/gd.js", - "./gd.js": "./node_modules/moment/locale/gd.js", - "./gl": "./node_modules/moment/locale/gl.js", - "./gl.js": "./node_modules/moment/locale/gl.js", - "./gom-deva": "./node_modules/moment/locale/gom-deva.js", - "./gom-deva.js": "./node_modules/moment/locale/gom-deva.js", - "./gom-latn": "./node_modules/moment/locale/gom-latn.js", - "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js", - "./gu": "./node_modules/moment/locale/gu.js", - "./gu.js": "./node_modules/moment/locale/gu.js", - "./he": "./node_modules/moment/locale/he.js", - "./he.js": "./node_modules/moment/locale/he.js", - "./hi": "./node_modules/moment/locale/hi.js", - "./hi.js": "./node_modules/moment/locale/hi.js", - "./hr": "./node_modules/moment/locale/hr.js", - "./hr.js": "./node_modules/moment/locale/hr.js", - "./hu": "./node_modules/moment/locale/hu.js", - "./hu.js": "./node_modules/moment/locale/hu.js", - "./hy-am": "./node_modules/moment/locale/hy-am.js", - "./hy-am.js": "./node_modules/moment/locale/hy-am.js", - "./id": "./node_modules/moment/locale/id.js", - "./id.js": "./node_modules/moment/locale/id.js", - "./is": "./node_modules/moment/locale/is.js", - "./is.js": "./node_modules/moment/locale/is.js", - "./it": "./node_modules/moment/locale/it.js", - "./it-ch": "./node_modules/moment/locale/it-ch.js", - "./it-ch.js": "./node_modules/moment/locale/it-ch.js", - "./it.js": "./node_modules/moment/locale/it.js", - "./ja": "./node_modules/moment/locale/ja.js", - "./ja.js": "./node_modules/moment/locale/ja.js", - "./jv": "./node_modules/moment/locale/jv.js", - "./jv.js": "./node_modules/moment/locale/jv.js", - "./ka": "./node_modules/moment/locale/ka.js", - "./ka.js": "./node_modules/moment/locale/ka.js", - "./kk": "./node_modules/moment/locale/kk.js", - "./kk.js": "./node_modules/moment/locale/kk.js", - "./km": "./node_modules/moment/locale/km.js", - "./km.js": "./node_modules/moment/locale/km.js", - "./kn": "./node_modules/moment/locale/kn.js", - "./kn.js": "./node_modules/moment/locale/kn.js", - "./ko": "./node_modules/moment/locale/ko.js", - "./ko.js": "./node_modules/moment/locale/ko.js", - "./ku": "./node_modules/moment/locale/ku.js", - "./ku-kmr": "./node_modules/moment/locale/ku-kmr.js", - "./ku-kmr.js": "./node_modules/moment/locale/ku-kmr.js", - "./ku.js": "./node_modules/moment/locale/ku.js", - "./ky": "./node_modules/moment/locale/ky.js", - "./ky.js": "./node_modules/moment/locale/ky.js", - "./lb": "./node_modules/moment/locale/lb.js", - "./lb.js": "./node_modules/moment/locale/lb.js", - "./lo": "./node_modules/moment/locale/lo.js", - "./lo.js": "./node_modules/moment/locale/lo.js", - "./lt": "./node_modules/moment/locale/lt.js", - "./lt.js": "./node_modules/moment/locale/lt.js", - "./lv": "./node_modules/moment/locale/lv.js", - "./lv.js": "./node_modules/moment/locale/lv.js", - "./me": "./node_modules/moment/locale/me.js", - "./me.js": "./node_modules/moment/locale/me.js", - "./mi": "./node_modules/moment/locale/mi.js", - "./mi.js": "./node_modules/moment/locale/mi.js", - "./mk": "./node_modules/moment/locale/mk.js", - "./mk.js": "./node_modules/moment/locale/mk.js", - "./ml": "./node_modules/moment/locale/ml.js", - "./ml.js": "./node_modules/moment/locale/ml.js", - "./mn": "./node_modules/moment/locale/mn.js", - "./mn.js": "./node_modules/moment/locale/mn.js", - "./mr": "./node_modules/moment/locale/mr.js", - "./mr.js": "./node_modules/moment/locale/mr.js", - "./ms": "./node_modules/moment/locale/ms.js", - "./ms-my": "./node_modules/moment/locale/ms-my.js", - "./ms-my.js": "./node_modules/moment/locale/ms-my.js", - "./ms.js": "./node_modules/moment/locale/ms.js", - "./mt": "./node_modules/moment/locale/mt.js", - "./mt.js": "./node_modules/moment/locale/mt.js", - "./my": "./node_modules/moment/locale/my.js", - "./my.js": "./node_modules/moment/locale/my.js", - "./nb": "./node_modules/moment/locale/nb.js", - "./nb.js": "./node_modules/moment/locale/nb.js", - "./ne": "./node_modules/moment/locale/ne.js", - "./ne.js": "./node_modules/moment/locale/ne.js", - "./nl": "./node_modules/moment/locale/nl.js", - "./nl-be": "./node_modules/moment/locale/nl-be.js", - "./nl-be.js": "./node_modules/moment/locale/nl-be.js", - "./nl.js": "./node_modules/moment/locale/nl.js", - "./nn": "./node_modules/moment/locale/nn.js", - "./nn.js": "./node_modules/moment/locale/nn.js", - "./oc-lnc": "./node_modules/moment/locale/oc-lnc.js", - "./oc-lnc.js": "./node_modules/moment/locale/oc-lnc.js", - "./pa-in": "./node_modules/moment/locale/pa-in.js", - "./pa-in.js": "./node_modules/moment/locale/pa-in.js", - "./pl": "./node_modules/moment/locale/pl.js", - "./pl.js": "./node_modules/moment/locale/pl.js", - "./pt": "./node_modules/moment/locale/pt.js", - "./pt-br": "./node_modules/moment/locale/pt-br.js", - "./pt-br.js": "./node_modules/moment/locale/pt-br.js", - "./pt.js": "./node_modules/moment/locale/pt.js", - "./ro": "./node_modules/moment/locale/ro.js", - "./ro.js": "./node_modules/moment/locale/ro.js", - "./ru": "./node_modules/moment/locale/ru.js", - "./ru.js": "./node_modules/moment/locale/ru.js", - "./sd": "./node_modules/moment/locale/sd.js", - "./sd.js": "./node_modules/moment/locale/sd.js", - "./se": "./node_modules/moment/locale/se.js", - "./se.js": "./node_modules/moment/locale/se.js", - "./si": "./node_modules/moment/locale/si.js", - "./si.js": "./node_modules/moment/locale/si.js", - "./sk": "./node_modules/moment/locale/sk.js", - "./sk.js": "./node_modules/moment/locale/sk.js", - "./sl": "./node_modules/moment/locale/sl.js", - "./sl.js": "./node_modules/moment/locale/sl.js", - "./sq": "./node_modules/moment/locale/sq.js", - "./sq.js": "./node_modules/moment/locale/sq.js", - "./sr": "./node_modules/moment/locale/sr.js", - "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js", - "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js", - "./sr.js": "./node_modules/moment/locale/sr.js", - "./ss": "./node_modules/moment/locale/ss.js", - "./ss.js": "./node_modules/moment/locale/ss.js", - "./sv": "./node_modules/moment/locale/sv.js", - "./sv.js": "./node_modules/moment/locale/sv.js", - "./sw": "./node_modules/moment/locale/sw.js", - "./sw.js": "./node_modules/moment/locale/sw.js", - "./ta": "./node_modules/moment/locale/ta.js", - "./ta.js": "./node_modules/moment/locale/ta.js", - "./te": "./node_modules/moment/locale/te.js", - "./te.js": "./node_modules/moment/locale/te.js", - "./tet": "./node_modules/moment/locale/tet.js", - "./tet.js": "./node_modules/moment/locale/tet.js", - "./tg": "./node_modules/moment/locale/tg.js", - "./tg.js": "./node_modules/moment/locale/tg.js", - "./th": "./node_modules/moment/locale/th.js", - "./th.js": "./node_modules/moment/locale/th.js", - "./tk": "./node_modules/moment/locale/tk.js", - "./tk.js": "./node_modules/moment/locale/tk.js", - "./tl-ph": "./node_modules/moment/locale/tl-ph.js", - "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js", - "./tlh": "./node_modules/moment/locale/tlh.js", - "./tlh.js": "./node_modules/moment/locale/tlh.js", - "./tr": "./node_modules/moment/locale/tr.js", - "./tr.js": "./node_modules/moment/locale/tr.js", - "./tzl": "./node_modules/moment/locale/tzl.js", - "./tzl.js": "./node_modules/moment/locale/tzl.js", - "./tzm": "./node_modules/moment/locale/tzm.js", - "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js", - "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js", - "./tzm.js": "./node_modules/moment/locale/tzm.js", - "./ug-cn": "./node_modules/moment/locale/ug-cn.js", - "./ug-cn.js": "./node_modules/moment/locale/ug-cn.js", - "./uk": "./node_modules/moment/locale/uk.js", - "./uk.js": "./node_modules/moment/locale/uk.js", - "./ur": "./node_modules/moment/locale/ur.js", - "./ur.js": "./node_modules/moment/locale/ur.js", - "./uz": "./node_modules/moment/locale/uz.js", - "./uz-latn": "./node_modules/moment/locale/uz-latn.js", - "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js", - "./uz.js": "./node_modules/moment/locale/uz.js", - "./vi": "./node_modules/moment/locale/vi.js", - "./vi.js": "./node_modules/moment/locale/vi.js", - "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js", - "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js", - "./yo": "./node_modules/moment/locale/yo.js", - "./yo.js": "./node_modules/moment/locale/yo.js", - "./zh-cn": "./node_modules/moment/locale/zh-cn.js", - "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js", - "./zh-hk": "./node_modules/moment/locale/zh-hk.js", - "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js", - "./zh-mo": "./node_modules/moment/locale/zh-mo.js", - "./zh-mo.js": "./node_modules/moment/locale/zh-mo.js", - "./zh-tw": "./node_modules/moment/locale/zh-tw.js", - "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js" -}; - - -function webpackContext(req) { - var id = webpackContextResolve(req); - return __webpack_require__(id); -} -function webpackContextResolve(req) { - if(!__webpack_require__.o(map, req)) { - var e = new Error("Cannot find module '" + req + "'"); - e.code = 'MODULE_NOT_FOUND'; - throw e; - } - return map[req]; -} -webpackContext.keys = function webpackContextKeys() { - return Object.keys(map); -}; -webpackContext.resolve = webpackContextResolve; -module.exports = webpackContext; -webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$"; - -/***/ }), - -/***/ "./node_modules/moment/moment.js": -/*!***************************************!*\ - !*** ./node_modules/moment/moment.js ***! - \***************************************/ -/***/ (function(module, __unused_webpack_exports, __webpack_require__) { - -/* module decorator */ module = __webpack_require__.nmd(module); -//! moment.js -//! version : 2.30.1 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com - -;(function (global, factory) { - true ? module.exports = factory() : - 0 -}(this, (function () { 'use strict'; - - var hookCallback; - - function hooks() { - return hookCallback.apply(null, arguments); - } - - // This is done to register the method called with moment() - // without creating circular dependencies. - function setHookCallback(callback) { - hookCallback = callback; - } - - function isArray(input) { - return ( - input instanceof Array || - Object.prototype.toString.call(input) === '[object Array]' - ); - } - - function isObject(input) { - // IE8 will treat undefined and null as object if it wasn't for - // input != null - return ( - input != null && - Object.prototype.toString.call(input) === '[object Object]' - ); - } - - function hasOwnProp(a, b) { - return Object.prototype.hasOwnProperty.call(a, b); - } - - function isObjectEmpty(obj) { - if (Object.getOwnPropertyNames) { - return Object.getOwnPropertyNames(obj).length === 0; - } else { - var k; - for (k in obj) { - if (hasOwnProp(obj, k)) { - return false; - } - } - return true; - } - } - - function isUndefined(input) { - return input === void 0; - } - - function isNumber(input) { - return ( - typeof input === 'number' || - Object.prototype.toString.call(input) === '[object Number]' - ); - } - - function isDate(input) { - return ( - input instanceof Date || - Object.prototype.toString.call(input) === '[object Date]' - ); - } - - function map(arr, fn) { - var res = [], - i, - arrLen = arr.length; - for (i = 0; i < arrLen; ++i) { - res.push(fn(arr[i], i)); - } - return res; - } - - function extend(a, b) { - for (var i in b) { - if (hasOwnProp(b, i)) { - a[i] = b[i]; - } - } - - if (hasOwnProp(b, 'toString')) { - a.toString = b.toString; - } - - if (hasOwnProp(b, 'valueOf')) { - a.valueOf = b.valueOf; - } - - return a; - } - - function createUTC(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, true).utc(); - } - - function defaultParsingFlags() { - // We need to deep clone this object. - return { - empty: false, - unusedTokens: [], - unusedInput: [], - overflow: -2, - charsLeftOver: 0, - nullInput: false, - invalidEra: null, - invalidMonth: null, - invalidFormat: false, - userInvalidated: false, - iso: false, - parsedDateParts: [], - era: null, - meridiem: null, - rfc2822: false, - weekdayMismatch: false, - }; - } - - function getParsingFlags(m) { - if (m._pf == null) { - m._pf = defaultParsingFlags(); - } - return m._pf; - } - - var some; - if (Array.prototype.some) { - some = Array.prototype.some; - } else { - some = function (fun) { - var t = Object(this), - len = t.length >>> 0, - i; - - for (i = 0; i < len; i++) { - if (i in t && fun.call(this, t[i], i, t)) { - return true; - } - } - - return false; - }; - } - - function isValid(m) { - var flags = null, - parsedParts = false, - isNowValid = m._d && !isNaN(m._d.getTime()); - if (isNowValid) { - flags = getParsingFlags(m); - parsedParts = some.call(flags.parsedDateParts, function (i) { - return i != null; - }); - isNowValid = - flags.overflow < 0 && - !flags.empty && - !flags.invalidEra && - !flags.invalidMonth && - !flags.invalidWeekday && - !flags.weekdayMismatch && - !flags.nullInput && - !flags.invalidFormat && - !flags.userInvalidated && - (!flags.meridiem || (flags.meridiem && parsedParts)); - if (m._strict) { - isNowValid = - isNowValid && - flags.charsLeftOver === 0 && - flags.unusedTokens.length === 0 && - flags.bigHour === undefined; - } - } - if (Object.isFrozen == null || !Object.isFrozen(m)) { - m._isValid = isNowValid; - } else { - return isNowValid; - } - return m._isValid; - } - - function createInvalid(flags) { - var m = createUTC(NaN); - if (flags != null) { - extend(getParsingFlags(m), flags); - } else { - getParsingFlags(m).userInvalidated = true; - } - - return m; - } - - // Plugins that add properties should also add the key here (null value), - // so we can properly clone ourselves. - var momentProperties = (hooks.momentProperties = []), - updateInProgress = false; - - function copyConfig(to, from) { - var i, - prop, - val, - momentPropertiesLen = momentProperties.length; - - if (!isUndefined(from._isAMomentObject)) { - to._isAMomentObject = from._isAMomentObject; - } - if (!isUndefined(from._i)) { - to._i = from._i; - } - if (!isUndefined(from._f)) { - to._f = from._f; - } - if (!isUndefined(from._l)) { - to._l = from._l; - } - if (!isUndefined(from._strict)) { - to._strict = from._strict; - } - if (!isUndefined(from._tzm)) { - to._tzm = from._tzm; - } - if (!isUndefined(from._isUTC)) { - to._isUTC = from._isUTC; - } - if (!isUndefined(from._offset)) { - to._offset = from._offset; - } - if (!isUndefined(from._pf)) { - to._pf = getParsingFlags(from); - } - if (!isUndefined(from._locale)) { - to._locale = from._locale; - } - - if (momentPropertiesLen > 0) { - for (i = 0; i < momentPropertiesLen; i++) { - prop = momentProperties[i]; - val = from[prop]; - if (!isUndefined(val)) { - to[prop] = val; - } - } - } - - return to; - } - - // Moment prototype object - function Moment(config) { - copyConfig(this, config); - this._d = new Date(config._d != null ? config._d.getTime() : NaN); - if (!this.isValid()) { - this._d = new Date(NaN); - } - // Prevent infinite loop in case updateOffset creates new moment - // objects. - if (updateInProgress === false) { - updateInProgress = true; - hooks.updateOffset(this); - updateInProgress = false; - } - } - - function isMoment(obj) { - return ( - obj instanceof Moment || (obj != null && obj._isAMomentObject != null) - ); - } - - function warn(msg) { - if ( - hooks.suppressDeprecationWarnings === false && - typeof console !== 'undefined' && - console.warn - ) { - console.warn('Deprecation warning: ' + msg); - } - } - - function deprecate(msg, fn) { - var firstTime = true; - - return extend(function () { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(null, msg); - } - if (firstTime) { - var args = [], - arg, - i, - key, - argLen = arguments.length; - for (i = 0; i < argLen; i++) { - arg = ''; - if (typeof arguments[i] === 'object') { - arg += '\n[' + i + '] '; - for (key in arguments[0]) { - if (hasOwnProp(arguments[0], key)) { - arg += key + ': ' + arguments[0][key] + ', '; - } - } - arg = arg.slice(0, -2); // Remove trailing comma and space - } else { - arg = arguments[i]; - } - args.push(arg); - } - warn( - msg + - '\nArguments: ' + - Array.prototype.slice.call(args).join('') + - '\n' + - new Error().stack - ); - firstTime = false; - } - return fn.apply(this, arguments); - }, fn); - } - - var deprecations = {}; - - function deprecateSimple(name, msg) { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(name, msg); - } - if (!deprecations[name]) { - warn(msg); - deprecations[name] = true; - } - } - - hooks.suppressDeprecationWarnings = false; - hooks.deprecationHandler = null; - - function isFunction(input) { - return ( - (typeof Function !== 'undefined' && input instanceof Function) || - Object.prototype.toString.call(input) === '[object Function]' - ); - } - - function set(config) { - var prop, i; - for (i in config) { - if (hasOwnProp(config, i)) { - prop = config[i]; - if (isFunction(prop)) { - this[i] = prop; - } else { - this['_' + i] = prop; - } - } - } - this._config = config; - // Lenient ordinal parsing accepts just a number in addition to - // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. - // TODO: Remove "ordinalParse" fallback in next major release. - this._dayOfMonthOrdinalParseLenient = new RegExp( - (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + - '|' + - /\d{1,2}/.source - ); - } - - function mergeConfigs(parentConfig, childConfig) { - var res = extend({}, parentConfig), - prop; - for (prop in childConfig) { - if (hasOwnProp(childConfig, prop)) { - if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { - res[prop] = {}; - extend(res[prop], parentConfig[prop]); - extend(res[prop], childConfig[prop]); - } else if (childConfig[prop] != null) { - res[prop] = childConfig[prop]; - } else { - delete res[prop]; - } - } - } - for (prop in parentConfig) { - if ( - hasOwnProp(parentConfig, prop) && - !hasOwnProp(childConfig, prop) && - isObject(parentConfig[prop]) - ) { - // make sure changes to properties don't modify parent config - res[prop] = extend({}, res[prop]); - } - } - return res; - } - - function Locale(config) { - if (config != null) { - this.set(config); - } - } - - var keys; - - if (Object.keys) { - keys = Object.keys; - } else { - keys = function (obj) { - var i, - res = []; - for (i in obj) { - if (hasOwnProp(obj, i)) { - res.push(i); - } - } - return res; - }; - } - - var defaultCalendar = { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }; - - function calendar(key, mom, now) { - var output = this._calendar[key] || this._calendar['sameElse']; - return isFunction(output) ? output.call(mom, now) : output; - } - - function zeroFill(number, targetLength, forceSign) { - var absNumber = '' + Math.abs(number), - zerosToFill = targetLength - absNumber.length, - sign = number >= 0; - return ( - (sign ? (forceSign ? '+' : '') : '-') + - Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + - absNumber - ); - } - - var formattingTokens = - /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, - localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, - formatFunctions = {}, - formatTokenFunctions = {}; - - // token: 'M' - // padded: ['MM', 2] - // ordinal: 'Mo' - // callback: function () { this.month() + 1 } - function addFormatToken(token, padded, ordinal, callback) { - var func = callback; - if (typeof callback === 'string') { - func = function () { - return this[callback](); - }; - } - if (token) { - formatTokenFunctions[token] = func; - } - if (padded) { - formatTokenFunctions[padded[0]] = function () { - return zeroFill(func.apply(this, arguments), padded[1], padded[2]); - }; - } - if (ordinal) { - formatTokenFunctions[ordinal] = function () { - return this.localeData().ordinal( - func.apply(this, arguments), - token - ); - }; - } - } - - function removeFormattingTokens(input) { - if (input.match(/\[[\s\S]/)) { - return input.replace(/^\[|\]$/g, ''); - } - return input.replace(/\\/g, ''); - } - - function makeFormatFunction(format) { - var array = format.match(formattingTokens), - i, - length; - - for (i = 0, length = array.length; i < length; i++) { - if (formatTokenFunctions[array[i]]) { - array[i] = formatTokenFunctions[array[i]]; - } else { - array[i] = removeFormattingTokens(array[i]); - } - } - - return function (mom) { - var output = '', - i; - for (i = 0; i < length; i++) { - output += isFunction(array[i]) - ? array[i].call(mom, format) - : array[i]; - } - return output; - }; - } - - // format date using native date object - function formatMoment(m, format) { - if (!m.isValid()) { - return m.localeData().invalidDate(); - } - - format = expandFormat(format, m.localeData()); - formatFunctions[format] = - formatFunctions[format] || makeFormatFunction(format); - - return formatFunctions[format](m); - } - - function expandFormat(format, locale) { - var i = 5; - - function replaceLongDateFormatTokens(input) { - return locale.longDateFormat(input) || input; - } - - localFormattingTokens.lastIndex = 0; - while (i >= 0 && localFormattingTokens.test(format)) { - format = format.replace( - localFormattingTokens, - replaceLongDateFormatTokens - ); - localFormattingTokens.lastIndex = 0; - i -= 1; - } - - return format; - } - - var defaultLongDateFormat = { - LTS: 'h:mm:ss A', - LT: 'h:mm A', - L: 'MM/DD/YYYY', - LL: 'MMMM D, YYYY', - LLL: 'MMMM D, YYYY h:mm A', - LLLL: 'dddd, MMMM D, YYYY h:mm A', - }; - - function longDateFormat(key) { - var format = this._longDateFormat[key], - formatUpper = this._longDateFormat[key.toUpperCase()]; - - if (format || !formatUpper) { - return format; - } - - this._longDateFormat[key] = formatUpper - .match(formattingTokens) - .map(function (tok) { - if ( - tok === 'MMMM' || - tok === 'MM' || - tok === 'DD' || - tok === 'dddd' - ) { - return tok.slice(1); - } - return tok; - }) - .join(''); - - return this._longDateFormat[key]; - } - - var defaultInvalidDate = 'Invalid date'; - - function invalidDate() { - return this._invalidDate; - } - - var defaultOrdinal = '%d', - defaultDayOfMonthOrdinalParse = /\d{1,2}/; - - function ordinal(number) { - return this._ordinal.replace('%d', number); - } - - var defaultRelativeTime = { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%d seconds', - m: 'a minute', - mm: '%d minutes', - h: 'an hour', - hh: '%d hours', - d: 'a day', - dd: '%d days', - w: 'a week', - ww: '%d weeks', - M: 'a month', - MM: '%d months', - y: 'a year', - yy: '%d years', - }; - - function relativeTime(number, withoutSuffix, string, isFuture) { - var output = this._relativeTime[string]; - return isFunction(output) - ? output(number, withoutSuffix, string, isFuture) - : output.replace(/%d/i, number); - } - - function pastFuture(diff, output) { - var format = this._relativeTime[diff > 0 ? 'future' : 'past']; - return isFunction(format) ? format(output) : format.replace(/%s/i, output); - } - - var aliases = { - D: 'date', - dates: 'date', - date: 'date', - d: 'day', - days: 'day', - day: 'day', - e: 'weekday', - weekdays: 'weekday', - weekday: 'weekday', - E: 'isoWeekday', - isoweekdays: 'isoWeekday', - isoweekday: 'isoWeekday', - DDD: 'dayOfYear', - dayofyears: 'dayOfYear', - dayofyear: 'dayOfYear', - h: 'hour', - hours: 'hour', - hour: 'hour', - ms: 'millisecond', - milliseconds: 'millisecond', - millisecond: 'millisecond', - m: 'minute', - minutes: 'minute', - minute: 'minute', - M: 'month', - months: 'month', - month: 'month', - Q: 'quarter', - quarters: 'quarter', - quarter: 'quarter', - s: 'second', - seconds: 'second', - second: 'second', - gg: 'weekYear', - weekyears: 'weekYear', - weekyear: 'weekYear', - GG: 'isoWeekYear', - isoweekyears: 'isoWeekYear', - isoweekyear: 'isoWeekYear', - w: 'week', - weeks: 'week', - week: 'week', - W: 'isoWeek', - isoweeks: 'isoWeek', - isoweek: 'isoWeek', - y: 'year', - years: 'year', - year: 'year', - }; - - function normalizeUnits(units) { - return typeof units === 'string' - ? aliases[units] || aliases[units.toLowerCase()] - : undefined; - } - - function normalizeObjectUnits(inputObject) { - var normalizedInput = {}, - normalizedProp, - prop; - - for (prop in inputObject) { - if (hasOwnProp(inputObject, prop)) { - normalizedProp = normalizeUnits(prop); - if (normalizedProp) { - normalizedInput[normalizedProp] = inputObject[prop]; - } - } - } - - return normalizedInput; - } - - var priorities = { - date: 9, - day: 11, - weekday: 11, - isoWeekday: 11, - dayOfYear: 4, - hour: 13, - millisecond: 16, - minute: 14, - month: 8, - quarter: 7, - second: 15, - weekYear: 1, - isoWeekYear: 1, - week: 5, - isoWeek: 5, - year: 1, - }; - - function getPrioritizedUnits(unitsObj) { - var units = [], - u; - for (u in unitsObj) { - if (hasOwnProp(unitsObj, u)) { - units.push({ unit: u, priority: priorities[u] }); - } - } - units.sort(function (a, b) { - return a.priority - b.priority; - }); - return units; - } - - var match1 = /\d/, // 0 - 9 - match2 = /\d\d/, // 00 - 99 - match3 = /\d{3}/, // 000 - 999 - match4 = /\d{4}/, // 0000 - 9999 - match6 = /[+-]?\d{6}/, // -999999 - 999999 - match1to2 = /\d\d?/, // 0 - 99 - match3to4 = /\d\d\d\d?/, // 999 - 9999 - match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999 - match1to3 = /\d{1,3}/, // 0 - 999 - match1to4 = /\d{1,4}/, // 0 - 9999 - match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999 - matchUnsigned = /\d+/, // 0 - inf - matchSigned = /[+-]?\d+/, // -inf - inf - matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z - matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z - matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 - // any word (or two) characters or numbers including two/three word month in arabic. - // includes scottish gaelic two word and hyphenated months - matchWord = - /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, - match1to2NoLeadingZero = /^[1-9]\d?/, // 1-99 - match1to2HasZero = /^([1-9]\d|\d)/, // 0-99 - regexes; - - regexes = {}; - - function addRegexToken(token, regex, strictRegex) { - regexes[token] = isFunction(regex) - ? regex - : function (isStrict, localeData) { - return isStrict && strictRegex ? strictRegex : regex; - }; - } - - function getParseRegexForToken(token, config) { - if (!hasOwnProp(regexes, token)) { - return new RegExp(unescapeFormat(token)); - } - - return regexes[token](config._strict, config._locale); - } - - // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript - function unescapeFormat(s) { - return regexEscape( - s - .replace('\\', '') - .replace( - /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, - function (matched, p1, p2, p3, p4) { - return p1 || p2 || p3 || p4; - } - ) - ); - } - - function regexEscape(s) { - return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); - } - - function absFloor(number) { - if (number < 0) { - // -0 -> 0 - return Math.ceil(number) || 0; - } else { - return Math.floor(number); - } - } - - function toInt(argumentForCoercion) { - var coercedNumber = +argumentForCoercion, - value = 0; - - if (coercedNumber !== 0 && isFinite(coercedNumber)) { - value = absFloor(coercedNumber); - } - - return value; - } - - var tokens = {}; - - function addParseToken(token, callback) { - var i, - func = callback, - tokenLen; - if (typeof token === 'string') { - token = [token]; - } - if (isNumber(callback)) { - func = function (input, array) { - array[callback] = toInt(input); - }; - } - tokenLen = token.length; - for (i = 0; i < tokenLen; i++) { - tokens[token[i]] = func; - } - } - - function addWeekParseToken(token, callback) { - addParseToken(token, function (input, array, config, token) { - config._w = config._w || {}; - callback(input, config._w, config, token); - }); - } - - function addTimeToArrayFromToken(token, input, config) { - if (input != null && hasOwnProp(tokens, token)) { - tokens[token](input, config._a, config, token); - } - } - - function isLeapYear(year) { - return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; - } - - var YEAR = 0, - MONTH = 1, - DATE = 2, - HOUR = 3, - MINUTE = 4, - SECOND = 5, - MILLISECOND = 6, - WEEK = 7, - WEEKDAY = 8; - - // FORMATTING - - addFormatToken('Y', 0, 0, function () { - var y = this.year(); - return y <= 9999 ? zeroFill(y, 4) : '+' + y; - }); - - addFormatToken(0, ['YY', 2], 0, function () { - return this.year() % 100; - }); - - addFormatToken(0, ['YYYY', 4], 0, 'year'); - addFormatToken(0, ['YYYYY', 5], 0, 'year'); - addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); - - // PARSING - - addRegexToken('Y', matchSigned); - addRegexToken('YY', match1to2, match2); - addRegexToken('YYYY', match1to4, match4); - addRegexToken('YYYYY', match1to6, match6); - addRegexToken('YYYYYY', match1to6, match6); - - addParseToken(['YYYYY', 'YYYYYY'], YEAR); - addParseToken('YYYY', function (input, array) { - array[YEAR] = - input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); - }); - addParseToken('YY', function (input, array) { - array[YEAR] = hooks.parseTwoDigitYear(input); - }); - addParseToken('Y', function (input, array) { - array[YEAR] = parseInt(input, 10); - }); - - // HELPERS - - function daysInYear(year) { - return isLeapYear(year) ? 366 : 365; - } - - // HOOKS - - hooks.parseTwoDigitYear = function (input) { - return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); - }; - - // MOMENTS - - var getSetYear = makeGetSet('FullYear', true); - - function getIsLeapYear() { - return isLeapYear(this.year()); - } - - function makeGetSet(unit, keepTime) { - return function (value) { - if (value != null) { - set$1(this, unit, value); - hooks.updateOffset(this, keepTime); - return this; - } else { - return get(this, unit); - } - }; - } - - function get(mom, unit) { - if (!mom.isValid()) { - return NaN; - } - - var d = mom._d, - isUTC = mom._isUTC; - - switch (unit) { - case 'Milliseconds': - return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds(); - case 'Seconds': - return isUTC ? d.getUTCSeconds() : d.getSeconds(); - case 'Minutes': - return isUTC ? d.getUTCMinutes() : d.getMinutes(); - case 'Hours': - return isUTC ? d.getUTCHours() : d.getHours(); - case 'Date': - return isUTC ? d.getUTCDate() : d.getDate(); - case 'Day': - return isUTC ? d.getUTCDay() : d.getDay(); - case 'Month': - return isUTC ? d.getUTCMonth() : d.getMonth(); - case 'FullYear': - return isUTC ? d.getUTCFullYear() : d.getFullYear(); - default: - return NaN; // Just in case - } - } - - function set$1(mom, unit, value) { - var d, isUTC, year, month, date; - - if (!mom.isValid() || isNaN(value)) { - return; - } - - d = mom._d; - isUTC = mom._isUTC; - - switch (unit) { - case 'Milliseconds': - return void (isUTC - ? d.setUTCMilliseconds(value) - : d.setMilliseconds(value)); - case 'Seconds': - return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value)); - case 'Minutes': - return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value)); - case 'Hours': - return void (isUTC ? d.setUTCHours(value) : d.setHours(value)); - case 'Date': - return void (isUTC ? d.setUTCDate(value) : d.setDate(value)); - // case 'Day': // Not real - // return void (isUTC ? d.setUTCDay(value) : d.setDay(value)); - // case 'Month': // Not used because we need to pass two variables - // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value)); - case 'FullYear': - break; // See below ... - default: - return; // Just in case - } - - year = value; - month = mom.month(); - date = mom.date(); - date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date; - void (isUTC - ? d.setUTCFullYear(year, month, date) - : d.setFullYear(year, month, date)); - } - - // MOMENTS - - function stringGet(units) { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](); - } - return this; - } - - function stringSet(units, value) { - if (typeof units === 'object') { - units = normalizeObjectUnits(units); - var prioritized = getPrioritizedUnits(units), - i, - prioritizedLen = prioritized.length; - for (i = 0; i < prioritizedLen; i++) { - this[prioritized[i].unit](units[prioritized[i].unit]); - } - } else { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](value); - } - } - return this; - } - - function mod(n, x) { - return ((n % x) + x) % x; - } - - var indexOf; - - if (Array.prototype.indexOf) { - indexOf = Array.prototype.indexOf; - } else { - indexOf = function (o) { - // I know - var i; - for (i = 0; i < this.length; ++i) { - if (this[i] === o) { - return i; - } - } - return -1; - }; - } - - function daysInMonth(year, month) { - if (isNaN(year) || isNaN(month)) { - return NaN; - } - var modMonth = mod(month, 12); - year += (month - modMonth) / 12; - return modMonth === 1 - ? isLeapYear(year) - ? 29 - : 28 - : 31 - ((modMonth % 7) % 2); - } - - // FORMATTING - - addFormatToken('M', ['MM', 2], 'Mo', function () { - return this.month() + 1; - }); - - addFormatToken('MMM', 0, 0, function (format) { - return this.localeData().monthsShort(this, format); - }); - - addFormatToken('MMMM', 0, 0, function (format) { - return this.localeData().months(this, format); - }); - - // PARSING - - addRegexToken('M', match1to2, match1to2NoLeadingZero); - addRegexToken('MM', match1to2, match2); - addRegexToken('MMM', function (isStrict, locale) { - return locale.monthsShortRegex(isStrict); - }); - addRegexToken('MMMM', function (isStrict, locale) { - return locale.monthsRegex(isStrict); - }); - - addParseToken(['M', 'MM'], function (input, array) { - array[MONTH] = toInt(input) - 1; - }); - - addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { - var month = config._locale.monthsParse(input, token, config._strict); - // if we didn't find a month name, mark the date as invalid. - if (month != null) { - array[MONTH] = month; - } else { - getParsingFlags(config).invalidMonth = input; - } - }); - - // LOCALES - - var defaultLocaleMonths = - 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - defaultLocaleMonthsShort = - 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, - defaultMonthsShortRegex = matchWord, - defaultMonthsRegex = matchWord; - - function localeMonths(m, format) { - if (!m) { - return isArray(this._months) - ? this._months - : this._months['standalone']; - } - return isArray(this._months) - ? this._months[m.month()] - : this._months[ - (this._months.isFormat || MONTHS_IN_FORMAT).test(format) - ? 'format' - : 'standalone' - ][m.month()]; - } - - function localeMonthsShort(m, format) { - if (!m) { - return isArray(this._monthsShort) - ? this._monthsShort - : this._monthsShort['standalone']; - } - return isArray(this._monthsShort) - ? this._monthsShort[m.month()] - : this._monthsShort[ - MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone' - ][m.month()]; - } - - function handleStrictParse(monthName, format, strict) { - var i, - ii, - mom, - llc = monthName.toLocaleLowerCase(); - if (!this._monthsParse) { - // this is not used - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - for (i = 0; i < 12; ++i) { - mom = createUTC([2000, i]); - this._shortMonthsParse[i] = this.monthsShort( - mom, - '' - ).toLocaleLowerCase(); - this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); - } - } - - if (strict) { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } - } - } - - function localeMonthsParse(monthName, format, strict) { - var i, mom, regex; - - if (this._monthsParseExact) { - return handleStrictParse.call(this, monthName, format, strict); - } - - if (!this._monthsParse) { - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - } - - // TODO: add sorting - // Sorting makes sure if one month (or abbr) is a prefix of another - // see sorting in computeMonthsParse - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - if (strict && !this._longMonthsParse[i]) { - this._longMonthsParse[i] = new RegExp( - '^' + this.months(mom, '').replace('.', '') + '$', - 'i' - ); - this._shortMonthsParse[i] = new RegExp( - '^' + this.monthsShort(mom, '').replace('.', '') + '$', - 'i' - ); - } - if (!strict && !this._monthsParse[i]) { - regex = - '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); - this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if ( - strict && - format === 'MMMM' && - this._longMonthsParse[i].test(monthName) - ) { - return i; - } else if ( - strict && - format === 'MMM' && - this._shortMonthsParse[i].test(monthName) - ) { - return i; - } else if (!strict && this._monthsParse[i].test(monthName)) { - return i; - } - } - } - - // MOMENTS - - function setMonth(mom, value) { - if (!mom.isValid()) { - // No op - return mom; - } - - if (typeof value === 'string') { - if (/^\d+$/.test(value)) { - value = toInt(value); - } else { - value = mom.localeData().monthsParse(value); - // TODO: Another silent failure? - if (!isNumber(value)) { - return mom; - } - } - } - - var month = value, - date = mom.date(); - - date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month)); - void (mom._isUTC - ? mom._d.setUTCMonth(month, date) - : mom._d.setMonth(month, date)); - return mom; - } - - function getSetMonth(value) { - if (value != null) { - setMonth(this, value); - hooks.updateOffset(this, true); - return this; - } else { - return get(this, 'Month'); - } - } - - function getDaysInMonth() { - return daysInMonth(this.year(), this.month()); - } - - function monthsShortRegex(isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsShortStrictRegex; - } else { - return this._monthsShortRegex; - } - } else { - if (!hasOwnProp(this, '_monthsShortRegex')) { - this._monthsShortRegex = defaultMonthsShortRegex; - } - return this._monthsShortStrictRegex && isStrict - ? this._monthsShortStrictRegex - : this._monthsShortRegex; - } - } - - function monthsRegex(isStrict) { - if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsStrictRegex; - } else { - return this._monthsRegex; - } - } else { - if (!hasOwnProp(this, '_monthsRegex')) { - this._monthsRegex = defaultMonthsRegex; - } - return this._monthsStrictRegex && isStrict - ? this._monthsStrictRegex - : this._monthsRegex; - } - } - - function computeMonthsParse() { - function cmpLenRev(a, b) { - return b.length - a.length; - } - - var shortPieces = [], - longPieces = [], - mixedPieces = [], - i, - mom, - shortP, - longP; - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - shortP = regexEscape(this.monthsShort(mom, '')); - longP = regexEscape(this.months(mom, '')); - shortPieces.push(shortP); - longPieces.push(longP); - mixedPieces.push(longP); - mixedPieces.push(shortP); - } - // Sorting makes sure if one month (or abbr) is a prefix of another it - // will match the longer piece. - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - - this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._monthsShortRegex = this._monthsRegex; - this._monthsStrictRegex = new RegExp( - '^(' + longPieces.join('|') + ')', - 'i' - ); - this._monthsShortStrictRegex = new RegExp( - '^(' + shortPieces.join('|') + ')', - 'i' - ); - } - - function createDate(y, m, d, h, M, s, ms) { - // can't just apply() to create a date: - // https://stackoverflow.com/q/181348 - var date; - // the date constructor remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - date = new Date(y + 400, m, d, h, M, s, ms); - if (isFinite(date.getFullYear())) { - date.setFullYear(y); - } - } else { - date = new Date(y, m, d, h, M, s, ms); - } - - return date; - } - - function createUTCDate(y) { - var date, args; - // the Date.UTC function remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - args = Array.prototype.slice.call(arguments); - // preserve leap years using a full 400 year cycle, then reset - args[0] = y + 400; - date = new Date(Date.UTC.apply(null, args)); - if (isFinite(date.getUTCFullYear())) { - date.setUTCFullYear(y); - } - } else { - date = new Date(Date.UTC.apply(null, arguments)); - } - - return date; - } - - // start-of-first-week - start-of-year - function firstWeekOffset(year, dow, doy) { - var // first-week day -- which january is always in the first week (4 for iso, 1 for other) - fwd = 7 + dow - doy, - // first-week day local weekday -- which local weekday is fwd - fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; - - return -fwdlw + fwd - 1; - } - - // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday - function dayOfYearFromWeeks(year, week, weekday, dow, doy) { - var localWeekday = (7 + weekday - dow) % 7, - weekOffset = firstWeekOffset(year, dow, doy), - dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, - resYear, - resDayOfYear; - - if (dayOfYear <= 0) { - resYear = year - 1; - resDayOfYear = daysInYear(resYear) + dayOfYear; - } else if (dayOfYear > daysInYear(year)) { - resYear = year + 1; - resDayOfYear = dayOfYear - daysInYear(year); - } else { - resYear = year; - resDayOfYear = dayOfYear; - } - - return { - year: resYear, - dayOfYear: resDayOfYear, - }; - } - - function weekOfYear(mom, dow, doy) { - var weekOffset = firstWeekOffset(mom.year(), dow, doy), - week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, - resWeek, - resYear; - - if (week < 1) { - resYear = mom.year() - 1; - resWeek = week + weeksInYear(resYear, dow, doy); - } else if (week > weeksInYear(mom.year(), dow, doy)) { - resWeek = week - weeksInYear(mom.year(), dow, doy); - resYear = mom.year() + 1; - } else { - resYear = mom.year(); - resWeek = week; - } - - return { - week: resWeek, - year: resYear, - }; - } - - function weeksInYear(year, dow, doy) { - var weekOffset = firstWeekOffset(year, dow, doy), - weekOffsetNext = firstWeekOffset(year + 1, dow, doy); - return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; - } - - // FORMATTING - - addFormatToken('w', ['ww', 2], 'wo', 'week'); - addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); - - // PARSING - - addRegexToken('w', match1to2, match1to2NoLeadingZero); - addRegexToken('ww', match1to2, match2); - addRegexToken('W', match1to2, match1to2NoLeadingZero); - addRegexToken('WW', match1to2, match2); - - addWeekParseToken( - ['w', 'ww', 'W', 'WW'], - function (input, week, config, token) { - week[token.substr(0, 1)] = toInt(input); - } - ); - - // HELPERS - - // LOCALES - - function localeWeek(mom) { - return weekOfYear(mom, this._week.dow, this._week.doy).week; - } - - var defaultLocaleWeek = { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }; - - function localeFirstDayOfWeek() { - return this._week.dow; - } - - function localeFirstDayOfYear() { - return this._week.doy; - } - - // MOMENTS - - function getSetWeek(input) { - var week = this.localeData().week(this); - return input == null ? week : this.add((input - week) * 7, 'd'); - } - - function getSetISOWeek(input) { - var week = weekOfYear(this, 1, 4).week; - return input == null ? week : this.add((input - week) * 7, 'd'); - } - - // FORMATTING - - addFormatToken('d', 0, 'do', 'day'); - - addFormatToken('dd', 0, 0, function (format) { - return this.localeData().weekdaysMin(this, format); - }); - - addFormatToken('ddd', 0, 0, function (format) { - return this.localeData().weekdaysShort(this, format); - }); - - addFormatToken('dddd', 0, 0, function (format) { - return this.localeData().weekdays(this, format); - }); - - addFormatToken('e', 0, 0, 'weekday'); - addFormatToken('E', 0, 0, 'isoWeekday'); - - // PARSING - - addRegexToken('d', match1to2); - addRegexToken('e', match1to2); - addRegexToken('E', match1to2); - addRegexToken('dd', function (isStrict, locale) { - return locale.weekdaysMinRegex(isStrict); - }); - addRegexToken('ddd', function (isStrict, locale) { - return locale.weekdaysShortRegex(isStrict); - }); - addRegexToken('dddd', function (isStrict, locale) { - return locale.weekdaysRegex(isStrict); - }); - - addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { - var weekday = config._locale.weekdaysParse(input, token, config._strict); - // if we didn't get a weekday name, mark the date as invalid - if (weekday != null) { - week.d = weekday; - } else { - getParsingFlags(config).invalidWeekday = input; - } - }); - - addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { - week[token] = toInt(input); - }); - - // HELPERS - - function parseWeekday(input, locale) { - if (typeof input !== 'string') { - return input; - } - - if (!isNaN(input)) { - return parseInt(input, 10); - } - - input = locale.weekdaysParse(input); - if (typeof input === 'number') { - return input; - } - - return null; - } - - function parseIsoWeekday(input, locale) { - if (typeof input === 'string') { - return locale.weekdaysParse(input) % 7 || 7; - } - return isNaN(input) ? null : input; - } - - // LOCALES - function shiftWeekdays(ws, n) { - return ws.slice(n, 7).concat(ws.slice(0, n)); - } - - var defaultLocaleWeekdays = - 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - defaultWeekdaysRegex = matchWord, - defaultWeekdaysShortRegex = matchWord, - defaultWeekdaysMinRegex = matchWord; - - function localeWeekdays(m, format) { - var weekdays = isArray(this._weekdays) - ? this._weekdays - : this._weekdays[ - m && m !== true && this._weekdays.isFormat.test(format) - ? 'format' - : 'standalone' - ]; - return m === true - ? shiftWeekdays(weekdays, this._week.dow) - : m - ? weekdays[m.day()] - : weekdays; - } - - function localeWeekdaysShort(m) { - return m === true - ? shiftWeekdays(this._weekdaysShort, this._week.dow) - : m - ? this._weekdaysShort[m.day()] - : this._weekdaysShort; - } - - function localeWeekdaysMin(m) { - return m === true - ? shiftWeekdays(this._weekdaysMin, this._week.dow) - : m - ? this._weekdaysMin[m.day()] - : this._weekdaysMin; - } - - function handleStrictParse$1(weekdayName, format, strict) { - var i, - ii, - mom, - llc = weekdayName.toLocaleLowerCase(); - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._shortWeekdaysParse = []; - this._minWeekdaysParse = []; - - for (i = 0; i < 7; ++i) { - mom = createUTC([2000, 1]).day(i); - this._minWeekdaysParse[i] = this.weekdaysMin( - mom, - '' - ).toLocaleLowerCase(); - this._shortWeekdaysParse[i] = this.weekdaysShort( - mom, - '' - ).toLocaleLowerCase(); - this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); - } - } - - if (strict) { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } else { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } - } - } - - function localeWeekdaysParse(weekdayName, format, strict) { - var i, mom, regex; - - if (this._weekdaysParseExact) { - return handleStrictParse$1.call(this, weekdayName, format, strict); - } - - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._minWeekdaysParse = []; - this._shortWeekdaysParse = []; - this._fullWeekdaysParse = []; - } - - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - - mom = createUTC([2000, 1]).day(i); - if (strict && !this._fullWeekdaysParse[i]) { - this._fullWeekdaysParse[i] = new RegExp( - '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - this._shortWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - this._minWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - } - if (!this._weekdaysParse[i]) { - regex = - '^' + - this.weekdays(mom, '') + - '|^' + - this.weekdaysShort(mom, '') + - '|^' + - this.weekdaysMin(mom, ''); - this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if ( - strict && - format === 'dddd' && - this._fullWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if ( - strict && - format === 'ddd' && - this._shortWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if ( - strict && - format === 'dd' && - this._minWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { - return i; - } - } - } - - // MOMENTS - - function getSetDayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - - var day = get(this, 'Day'); - if (input != null) { - input = parseWeekday(input, this.localeData()); - return this.add(input - day, 'd'); - } else { - return day; - } - } - - function getSetLocaleDayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; - return input == null ? weekday : this.add(input - weekday, 'd'); - } - - function getSetISODayOfWeek(input) { - if (!this.isValid()) { - return input != null ? this : NaN; - } - - // behaves the same as moment#day except - // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) - // as a setter, sunday should belong to the previous week. - - if (input != null) { - var weekday = parseIsoWeekday(input, this.localeData()); - return this.day(this.day() % 7 ? weekday : weekday - 7); - } else { - return this.day() || 7; - } - } - - function weekdaysRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysStrictRegex; - } else { - return this._weekdaysRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysRegex')) { - this._weekdaysRegex = defaultWeekdaysRegex; - } - return this._weekdaysStrictRegex && isStrict - ? this._weekdaysStrictRegex - : this._weekdaysRegex; - } - } - - function weekdaysShortRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysShortStrictRegex; - } else { - return this._weekdaysShortRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysShortRegex')) { - this._weekdaysShortRegex = defaultWeekdaysShortRegex; - } - return this._weekdaysShortStrictRegex && isStrict - ? this._weekdaysShortStrictRegex - : this._weekdaysShortRegex; - } - } - - function weekdaysMinRegex(isStrict) { - if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysMinStrictRegex; - } else { - return this._weekdaysMinRegex; - } - } else { - if (!hasOwnProp(this, '_weekdaysMinRegex')) { - this._weekdaysMinRegex = defaultWeekdaysMinRegex; - } - return this._weekdaysMinStrictRegex && isStrict - ? this._weekdaysMinStrictRegex - : this._weekdaysMinRegex; - } - } - - function computeWeekdaysParse() { - function cmpLenRev(a, b) { - return b.length - a.length; - } - - var minPieces = [], - shortPieces = [], - longPieces = [], - mixedPieces = [], - i, - mom, - minp, - shortp, - longp; - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, 1]).day(i); - minp = regexEscape(this.weekdaysMin(mom, '')); - shortp = regexEscape(this.weekdaysShort(mom, '')); - longp = regexEscape(this.weekdays(mom, '')); - minPieces.push(minp); - shortPieces.push(shortp); - longPieces.push(longp); - mixedPieces.push(minp); - mixedPieces.push(shortp); - mixedPieces.push(longp); - } - // Sorting makes sure if one weekday (or abbr) is a prefix of another it - // will match the longer piece. - minPieces.sort(cmpLenRev); - shortPieces.sort(cmpLenRev); - longPieces.sort(cmpLenRev); - mixedPieces.sort(cmpLenRev); - - this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._weekdaysShortRegex = this._weekdaysRegex; - this._weekdaysMinRegex = this._weekdaysRegex; - - this._weekdaysStrictRegex = new RegExp( - '^(' + longPieces.join('|') + ')', - 'i' - ); - this._weekdaysShortStrictRegex = new RegExp( - '^(' + shortPieces.join('|') + ')', - 'i' - ); - this._weekdaysMinStrictRegex = new RegExp( - '^(' + minPieces.join('|') + ')', - 'i' - ); - } - - // FORMATTING - - function hFormat() { - return this.hours() % 12 || 12; - } - - function kFormat() { - return this.hours() || 24; - } - - addFormatToken('H', ['HH', 2], 0, 'hour'); - addFormatToken('h', ['hh', 2], 0, hFormat); - addFormatToken('k', ['kk', 2], 0, kFormat); - - addFormatToken('hmm', 0, 0, function () { - return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); - }); - - addFormatToken('hmmss', 0, 0, function () { - return ( - '' + - hFormat.apply(this) + - zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2) - ); - }); - - addFormatToken('Hmm', 0, 0, function () { - return '' + this.hours() + zeroFill(this.minutes(), 2); - }); - - addFormatToken('Hmmss', 0, 0, function () { - return ( - '' + - this.hours() + - zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2) - ); - }); - - function meridiem(token, lowercase) { - addFormatToken(token, 0, 0, function () { - return this.localeData().meridiem( - this.hours(), - this.minutes(), - lowercase - ); - }); - } - - meridiem('a', true); - meridiem('A', false); - - // PARSING - - function matchMeridiem(isStrict, locale) { - return locale._meridiemParse; - } - - addRegexToken('a', matchMeridiem); - addRegexToken('A', matchMeridiem); - addRegexToken('H', match1to2, match1to2HasZero); - addRegexToken('h', match1to2, match1to2NoLeadingZero); - addRegexToken('k', match1to2, match1to2NoLeadingZero); - addRegexToken('HH', match1to2, match2); - addRegexToken('hh', match1to2, match2); - addRegexToken('kk', match1to2, match2); - - addRegexToken('hmm', match3to4); - addRegexToken('hmmss', match5to6); - addRegexToken('Hmm', match3to4); - addRegexToken('Hmmss', match5to6); - - addParseToken(['H', 'HH'], HOUR); - addParseToken(['k', 'kk'], function (input, array, config) { - var kInput = toInt(input); - array[HOUR] = kInput === 24 ? 0 : kInput; - }); - addParseToken(['a', 'A'], function (input, array, config) { - config._isPm = config._locale.isPM(input); - config._meridiem = input; - }); - addParseToken(['h', 'hh'], function (input, array, config) { - array[HOUR] = toInt(input); - getParsingFlags(config).bigHour = true; - }); - addParseToken('hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - getParsingFlags(config).bigHour = true; - }); - addParseToken('hmmss', function (input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - getParsingFlags(config).bigHour = true; - }); - addParseToken('Hmm', function (input, array, config) { - var pos = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos)); - array[MINUTE] = toInt(input.substr(pos)); - }); - addParseToken('Hmmss', function (input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; - array[HOUR] = toInt(input.substr(0, pos1)); - array[MINUTE] = toInt(input.substr(pos1, 2)); - array[SECOND] = toInt(input.substr(pos2)); - }); - - // LOCALES - - function localeIsPM(input) { - // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays - // Using charAt should be more compatible. - return (input + '').toLowerCase().charAt(0) === 'p'; - } - - var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, - // Setting the hour should keep the time, because the user explicitly - // specified which hour they want. So trying to maintain the same hour (in - // a new timezone) makes sense. Adding/subtracting hours does not follow - // this rule. - getSetHour = makeGetSet('Hours', true); - - function localeMeridiem(hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'pm' : 'PM'; - } else { - return isLower ? 'am' : 'AM'; - } - } - - var baseConfig = { - calendar: defaultCalendar, - longDateFormat: defaultLongDateFormat, - invalidDate: defaultInvalidDate, - ordinal: defaultOrdinal, - dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, - relativeTime: defaultRelativeTime, - - months: defaultLocaleMonths, - monthsShort: defaultLocaleMonthsShort, - - week: defaultLocaleWeek, - - weekdays: defaultLocaleWeekdays, - weekdaysMin: defaultLocaleWeekdaysMin, - weekdaysShort: defaultLocaleWeekdaysShort, - - meridiemParse: defaultLocaleMeridiemParse, - }; - - // internal storage for locale config files - var locales = {}, - localeFamilies = {}, - globalLocale; - - function commonPrefix(arr1, arr2) { - var i, - minl = Math.min(arr1.length, arr2.length); - for (i = 0; i < minl; i += 1) { - if (arr1[i] !== arr2[i]) { - return i; - } - } - return minl; - } - - function normalizeLocale(key) { - return key ? key.toLowerCase().replace('_', '-') : key; - } - - // pick the locale from the array - // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each - // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root - function chooseLocale(names) { - var i = 0, - j, - next, - locale, - split; - - while (i < names.length) { - split = normalizeLocale(names[i]).split('-'); - j = split.length; - next = normalizeLocale(names[i + 1]); - next = next ? next.split('-') : null; - while (j > 0) { - locale = loadLocale(split.slice(0, j).join('-')); - if (locale) { - return locale; - } - if ( - next && - next.length >= j && - commonPrefix(split, next) >= j - 1 - ) { - //the next array item is better than a shallower substring of this one - break; - } - j--; - } - i++; - } - return globalLocale; - } - - function isLocaleNameSane(name) { - // Prevent names that look like filesystem paths, i.e contain '/' or '\' - // Ensure name is available and function returns boolean - return !!(name && name.match('^[^/\\\\]*$')); - } - - function loadLocale(name) { - var oldLocale = null, - aliasedRequire; - // TODO: Find a better way to register and load all the locales in Node - if ( - locales[name] === undefined && - "object" !== 'undefined' && - module && - module.exports && - isLocaleNameSane(name) - ) { - try { - oldLocale = globalLocale._abbr; - aliasedRequire = undefined; - __webpack_require__("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./" + name); - getSetGlobalLocale(oldLocale); - } catch (e) { - // mark as not found to avoid repeating expensive file require call causing high CPU - // when trying to find en-US, en_US, en-us for every format call - locales[name] = null; // null means not found - } - } - return locales[name]; - } - - // This function will load locale and then set the global locale. If - // no arguments are passed in, it will simply return the current global - // locale key. - function getSetGlobalLocale(key, values) { - var data; - if (key) { - if (isUndefined(values)) { - data = getLocale(key); - } else { - data = defineLocale(key, values); - } - - if (data) { - // moment.duration._locale = moment._locale = data; - globalLocale = data; - } else { - if (typeof console !== 'undefined' && console.warn) { - //warn user if arguments are passed but the locale could not be set - console.warn( - 'Locale ' + key + ' not found. Did you forget to load it?' - ); - } - } - } - - return globalLocale._abbr; - } - - function defineLocale(name, config) { - if (config !== null) { - var locale, - parentConfig = baseConfig; - config.abbr = name; - if (locales[name] != null) { - deprecateSimple( - 'defineLocaleOverride', - 'use moment.updateLocale(localeName, config) to change ' + - 'an existing locale. moment.defineLocale(localeName, ' + - 'config) should only be used for creating a new locale ' + - 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' - ); - parentConfig = locales[name]._config; - } else if (config.parentLocale != null) { - if (locales[config.parentLocale] != null) { - parentConfig = locales[config.parentLocale]._config; - } else { - locale = loadLocale(config.parentLocale); - if (locale != null) { - parentConfig = locale._config; - } else { - if (!localeFamilies[config.parentLocale]) { - localeFamilies[config.parentLocale] = []; - } - localeFamilies[config.parentLocale].push({ - name: name, - config: config, - }); - return null; - } - } - } - locales[name] = new Locale(mergeConfigs(parentConfig, config)); - - if (localeFamilies[name]) { - localeFamilies[name].forEach(function (x) { - defineLocale(x.name, x.config); - }); - } - - // backwards compat for now: also set the locale - // make sure we set the locale AFTER all child locales have been - // created, so we won't end up with the child locale set. - getSetGlobalLocale(name); - - return locales[name]; - } else { - // useful for testing - delete locales[name]; - return null; - } - } - - function updateLocale(name, config) { - if (config != null) { - var locale, - tmpLocale, - parentConfig = baseConfig; - - if (locales[name] != null && locales[name].parentLocale != null) { - // Update existing child locale in-place to avoid memory-leaks - locales[name].set(mergeConfigs(locales[name]._config, config)); - } else { - // MERGE - tmpLocale = loadLocale(name); - if (tmpLocale != null) { - parentConfig = tmpLocale._config; - } - config = mergeConfigs(parentConfig, config); - if (tmpLocale == null) { - // updateLocale is called for creating a new locale - // Set abbr so it will have a name (getters return - // undefined otherwise). - config.abbr = name; - } - locale = new Locale(config); - locale.parentLocale = locales[name]; - locales[name] = locale; - } - - // backwards compat for now: also set the locale - getSetGlobalLocale(name); - } else { - // pass null for config to unupdate, useful for tests - if (locales[name] != null) { - if (locales[name].parentLocale != null) { - locales[name] = locales[name].parentLocale; - if (name === getSetGlobalLocale()) { - getSetGlobalLocale(name); - } - } else if (locales[name] != null) { - delete locales[name]; - } - } - } - return locales[name]; - } - - // returns locale data - function getLocale(key) { - var locale; - - if (key && key._locale && key._locale._abbr) { - key = key._locale._abbr; - } - - if (!key) { - return globalLocale; - } - - if (!isArray(key)) { - //short-circuit everything else - locale = loadLocale(key); - if (locale) { - return locale; - } - key = [key]; - } - - return chooseLocale(key); - } - - function listLocales() { - return keys(locales); - } - - function checkOverflow(m) { - var overflow, - a = m._a; - - if (a && getParsingFlags(m).overflow === -2) { - overflow = - a[MONTH] < 0 || a[MONTH] > 11 - ? MONTH - : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) - ? DATE - : a[HOUR] < 0 || - a[HOUR] > 24 || - (a[HOUR] === 24 && - (a[MINUTE] !== 0 || - a[SECOND] !== 0 || - a[MILLISECOND] !== 0)) - ? HOUR - : a[MINUTE] < 0 || a[MINUTE] > 59 - ? MINUTE - : a[SECOND] < 0 || a[SECOND] > 59 - ? SECOND - : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 - ? MILLISECOND - : -1; - - if ( - getParsingFlags(m)._overflowDayOfYear && - (overflow < YEAR || overflow > DATE) - ) { - overflow = DATE; - } - if (getParsingFlags(m)._overflowWeeks && overflow === -1) { - overflow = WEEK; - } - if (getParsingFlags(m)._overflowWeekday && overflow === -1) { - overflow = WEEKDAY; - } - - getParsingFlags(m).overflow = overflow; - } - - return m; - } - - // iso 8601 regex - // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) - var extendedIsoRegex = - /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, - basicIsoRegex = - /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, - tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, - isoDates = [ - ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], - ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], - ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], - ['GGGG-[W]WW', /\d{4}-W\d\d/, false], - ['YYYY-DDD', /\d{4}-\d{3}/], - ['YYYY-MM', /\d{4}-\d\d/, false], - ['YYYYYYMMDD', /[+-]\d{10}/], - ['YYYYMMDD', /\d{8}/], - ['GGGG[W]WWE', /\d{4}W\d{3}/], - ['GGGG[W]WW', /\d{4}W\d{2}/, false], - ['YYYYDDD', /\d{7}/], - ['YYYYMM', /\d{6}/, false], - ['YYYY', /\d{4}/, false], - ], - // iso time formats and regexes - isoTimes = [ - ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], - ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], - ['HH:mm:ss', /\d\d:\d\d:\d\d/], - ['HH:mm', /\d\d:\d\d/], - ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], - ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], - ['HHmmss', /\d\d\d\d\d\d/], - ['HHmm', /\d\d\d\d/], - ['HH', /\d\d/], - ], - aspNetJsonRegex = /^\/?Date\((-?\d+)/i, - // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 - rfc2822 = - /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, - obsOffsets = { - UT: 0, - GMT: 0, - EDT: -4 * 60, - EST: -5 * 60, - CDT: -5 * 60, - CST: -6 * 60, - MDT: -6 * 60, - MST: -7 * 60, - PDT: -7 * 60, - PST: -8 * 60, - }; - - // date from iso format - function configFromISO(config) { - var i, - l, - string = config._i, - match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), - allowTime, - dateFormat, - timeFormat, - tzFormat, - isoDatesLen = isoDates.length, - isoTimesLen = isoTimes.length; - - if (match) { - getParsingFlags(config).iso = true; - for (i = 0, l = isoDatesLen; i < l; i++) { - if (isoDates[i][1].exec(match[1])) { - dateFormat = isoDates[i][0]; - allowTime = isoDates[i][2] !== false; - break; - } - } - if (dateFormat == null) { - config._isValid = false; - return; - } - if (match[3]) { - for (i = 0, l = isoTimesLen; i < l; i++) { - if (isoTimes[i][1].exec(match[3])) { - // match[2] should be 'T' or space - timeFormat = (match[2] || ' ') + isoTimes[i][0]; - break; - } - } - if (timeFormat == null) { - config._isValid = false; - return; - } - } - if (!allowTime && timeFormat != null) { - config._isValid = false; - return; - } - if (match[4]) { - if (tzRegex.exec(match[4])) { - tzFormat = 'Z'; - } else { - config._isValid = false; - return; - } - } - config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); - configFromStringAndFormat(config); - } else { - config._isValid = false; - } - } - - function extractFromRFC2822Strings( - yearStr, - monthStr, - dayStr, - hourStr, - minuteStr, - secondStr - ) { - var result = [ - untruncateYear(yearStr), - defaultLocaleMonthsShort.indexOf(monthStr), - parseInt(dayStr, 10), - parseInt(hourStr, 10), - parseInt(minuteStr, 10), - ]; - - if (secondStr) { - result.push(parseInt(secondStr, 10)); - } - - return result; - } - - function untruncateYear(yearStr) { - var year = parseInt(yearStr, 10); - if (year <= 49) { - return 2000 + year; - } else if (year <= 999) { - return 1900 + year; - } - return year; - } - - function preprocessRFC2822(s) { - // Remove comments and folding whitespace and replace multiple-spaces with a single space - return s - .replace(/\([^()]*\)|[\n\t]/g, ' ') - .replace(/(\s\s+)/g, ' ') - .replace(/^\s\s*/, '') - .replace(/\s\s*$/, ''); - } - - function checkWeekday(weekdayStr, parsedInput, config) { - if (weekdayStr) { - // TODO: Replace the vanilla JS Date object with an independent day-of-week check. - var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), - weekdayActual = new Date( - parsedInput[0], - parsedInput[1], - parsedInput[2] - ).getDay(); - if (weekdayProvided !== weekdayActual) { - getParsingFlags(config).weekdayMismatch = true; - config._isValid = false; - return false; - } - } - return true; - } - - function calculateOffset(obsOffset, militaryOffset, numOffset) { - if (obsOffset) { - return obsOffsets[obsOffset]; - } else if (militaryOffset) { - // the only allowed military tz is Z - return 0; - } else { - var hm = parseInt(numOffset, 10), - m = hm % 100, - h = (hm - m) / 100; - return h * 60 + m; - } - } - - // date and time from ref 2822 format - function configFromRFC2822(config) { - var match = rfc2822.exec(preprocessRFC2822(config._i)), - parsedArray; - if (match) { - parsedArray = extractFromRFC2822Strings( - match[4], - match[3], - match[2], - match[5], - match[6], - match[7] - ); - if (!checkWeekday(match[1], parsedArray, config)) { - return; - } - - config._a = parsedArray; - config._tzm = calculateOffset(match[8], match[9], match[10]); - - config._d = createUTCDate.apply(null, config._a); - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - - getParsingFlags(config).rfc2822 = true; - } else { - config._isValid = false; - } - } - - // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict - function configFromString(config) { - var matched = aspNetJsonRegex.exec(config._i); - if (matched !== null) { - config._d = new Date(+matched[1]); - return; - } - - configFromISO(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } - - configFromRFC2822(config); - if (config._isValid === false) { - delete config._isValid; - } else { - return; - } - - if (config._strict) { - config._isValid = false; - } else { - // Final attempt, use Input Fallback - hooks.createFromInputFallback(config); - } - } - - hooks.createFromInputFallback = deprecate( - 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + - 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + - 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', - function (config) { - config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); - } - ); - - // Pick the first defined of two or three arguments. - function defaults(a, b, c) { - if (a != null) { - return a; - } - if (b != null) { - return b; - } - return c; - } - - function currentDateArray(config) { - // hooks is actually the exported moment object - var nowValue = new Date(hooks.now()); - if (config._useUTC) { - return [ - nowValue.getUTCFullYear(), - nowValue.getUTCMonth(), - nowValue.getUTCDate(), - ]; - } - return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; - } - - // convert an array to a date. - // the array should mirror the parameters below - // note: all values past the year are optional and will default to the lowest possible value. - // [year, month, day , hour, minute, second, millisecond] - function configFromArray(config) { - var i, - date, - input = [], - currentDate, - expectedWeekday, - yearToUse; - - if (config._d) { - return; - } - - currentDate = currentDateArray(config); - - //compute day of the year from weeks and weekdays - if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { - dayOfYearFromWeekInfo(config); - } - - //if the day of the year is set, figure out what it is - if (config._dayOfYear != null) { - yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); - - if ( - config._dayOfYear > daysInYear(yearToUse) || - config._dayOfYear === 0 - ) { - getParsingFlags(config)._overflowDayOfYear = true; - } - - date = createUTCDate(yearToUse, 0, config._dayOfYear); - config._a[MONTH] = date.getUTCMonth(); - config._a[DATE] = date.getUTCDate(); - } - - // Default to current date. - // * if no year, month, day of month are given, default to today - // * if day of month is given, default month and year - // * if month is given, default only year - // * if year is given, don't default anything - for (i = 0; i < 3 && config._a[i] == null; ++i) { - config._a[i] = input[i] = currentDate[i]; - } - - // Zero out whatever was not defaulted, including time - for (; i < 7; i++) { - config._a[i] = input[i] = - config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i]; - } - - // Check for 24:00:00.000 - if ( - config._a[HOUR] === 24 && - config._a[MINUTE] === 0 && - config._a[SECOND] === 0 && - config._a[MILLISECOND] === 0 - ) { - config._nextDay = true; - config._a[HOUR] = 0; - } - - config._d = (config._useUTC ? createUTCDate : createDate).apply( - null, - input - ); - expectedWeekday = config._useUTC - ? config._d.getUTCDay() - : config._d.getDay(); - - // Apply timezone offset from input. The actual utcOffset can be changed - // with parseZone. - if (config._tzm != null) { - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - } - - if (config._nextDay) { - config._a[HOUR] = 24; - } - - // check for mismatching day of week - if ( - config._w && - typeof config._w.d !== 'undefined' && - config._w.d !== expectedWeekday - ) { - getParsingFlags(config).weekdayMismatch = true; - } - } - - function dayOfYearFromWeekInfo(config) { - var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; - - w = config._w; - if (w.GG != null || w.W != null || w.E != null) { - dow = 1; - doy = 4; - - // TODO: We need to take the current isoWeekYear, but that depends on - // how we interpret now (local, utc, fixed offset). So create - // a now version of current config (take local/utc/offset flags, and - // create now). - weekYear = defaults( - w.GG, - config._a[YEAR], - weekOfYear(createLocal(), 1, 4).year - ); - week = defaults(w.W, 1); - weekday = defaults(w.E, 1); - if (weekday < 1 || weekday > 7) { - weekdayOverflow = true; - } - } else { - dow = config._locale._week.dow; - doy = config._locale._week.doy; - - curWeek = weekOfYear(createLocal(), dow, doy); - - weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); - - // Default to current week. - week = defaults(w.w, curWeek.week); - - if (w.d != null) { - // weekday -- low day numbers are considered next week - weekday = w.d; - if (weekday < 0 || weekday > 6) { - weekdayOverflow = true; - } - } else if (w.e != null) { - // local weekday -- counting starts from beginning of week - weekday = w.e + dow; - if (w.e < 0 || w.e > 6) { - weekdayOverflow = true; - } - } else { - // default to beginning of week - weekday = dow; - } - } - if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { - getParsingFlags(config)._overflowWeeks = true; - } else if (weekdayOverflow != null) { - getParsingFlags(config)._overflowWeekday = true; - } else { - temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); - config._a[YEAR] = temp.year; - config._dayOfYear = temp.dayOfYear; - } - } - - // constant that refers to the ISO standard - hooks.ISO_8601 = function () {}; - - // constant that refers to the RFC 2822 form - hooks.RFC_2822 = function () {}; - - // date from string and format string - function configFromStringAndFormat(config) { - // TODO: Move this to another part of the creation flow to prevent circular deps - if (config._f === hooks.ISO_8601) { - configFromISO(config); - return; - } - if (config._f === hooks.RFC_2822) { - configFromRFC2822(config); - return; - } - config._a = []; - getParsingFlags(config).empty = true; - - // This array is used to make a Date, either with `new Date` or `Date.UTC` - var string = '' + config._i, - i, - parsedInput, - tokens, - token, - skipped, - stringLength = string.length, - totalParsedInputLength = 0, - era, - tokenLen; - - tokens = - expandFormat(config._f, config._locale).match(formattingTokens) || []; - tokenLen = tokens.length; - for (i = 0; i < tokenLen; i++) { - token = tokens[i]; - parsedInput = (string.match(getParseRegexForToken(token, config)) || - [])[0]; - if (parsedInput) { - skipped = string.substr(0, string.indexOf(parsedInput)); - if (skipped.length > 0) { - getParsingFlags(config).unusedInput.push(skipped); - } - string = string.slice( - string.indexOf(parsedInput) + parsedInput.length - ); - totalParsedInputLength += parsedInput.length; - } - // don't parse if it's not a known token - if (formatTokenFunctions[token]) { - if (parsedInput) { - getParsingFlags(config).empty = false; - } else { - getParsingFlags(config).unusedTokens.push(token); - } - addTimeToArrayFromToken(token, parsedInput, config); - } else if (config._strict && !parsedInput) { - getParsingFlags(config).unusedTokens.push(token); - } - } - - // add remaining unparsed input length to the string - getParsingFlags(config).charsLeftOver = - stringLength - totalParsedInputLength; - if (string.length > 0) { - getParsingFlags(config).unusedInput.push(string); - } - - // clear _12h flag if hour is <= 12 - if ( - config._a[HOUR] <= 12 && - getParsingFlags(config).bigHour === true && - config._a[HOUR] > 0 - ) { - getParsingFlags(config).bigHour = undefined; - } - - getParsingFlags(config).parsedDateParts = config._a.slice(0); - getParsingFlags(config).meridiem = config._meridiem; - // handle meridiem - config._a[HOUR] = meridiemFixWrap( - config._locale, - config._a[HOUR], - config._meridiem - ); - - // handle era - era = getParsingFlags(config).era; - if (era !== null) { - config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]); - } - - configFromArray(config); - checkOverflow(config); - } - - function meridiemFixWrap(locale, hour, meridiem) { - var isPm; - - if (meridiem == null) { - // nothing to do - return hour; - } - if (locale.meridiemHour != null) { - return locale.meridiemHour(hour, meridiem); - } else if (locale.isPM != null) { - // Fallback - isPm = locale.isPM(meridiem); - if (isPm && hour < 12) { - hour += 12; - } - if (!isPm && hour === 12) { - hour = 0; - } - return hour; - } else { - // this is not supposed to happen - return hour; - } - } - - // date from string and array of format strings - function configFromStringAndArray(config) { - var tempConfig, - bestMoment, - scoreToBeat, - i, - currentScore, - validFormatFound, - bestFormatIsValid = false, - configfLen = config._f.length; - - if (configfLen === 0) { - getParsingFlags(config).invalidFormat = true; - config._d = new Date(NaN); - return; - } - - for (i = 0; i < configfLen; i++) { - currentScore = 0; - validFormatFound = false; - tempConfig = copyConfig({}, config); - if (config._useUTC != null) { - tempConfig._useUTC = config._useUTC; - } - tempConfig._f = config._f[i]; - configFromStringAndFormat(tempConfig); - - if (isValid(tempConfig)) { - validFormatFound = true; - } - - // if there is any input that was not parsed add a penalty for that format - currentScore += getParsingFlags(tempConfig).charsLeftOver; - - //or tokens - currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; - - getParsingFlags(tempConfig).score = currentScore; - - if (!bestFormatIsValid) { - if ( - scoreToBeat == null || - currentScore < scoreToBeat || - validFormatFound - ) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - if (validFormatFound) { - bestFormatIsValid = true; - } - } - } else { - if (currentScore < scoreToBeat) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - } - } - } - - extend(config, bestMoment || tempConfig); - } - - function configFromObject(config) { - if (config._d) { - return; - } - - var i = normalizeObjectUnits(config._i), - dayOrDate = i.day === undefined ? i.date : i.day; - config._a = map( - [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], - function (obj) { - return obj && parseInt(obj, 10); - } - ); - - configFromArray(config); - } - - function createFromConfig(config) { - var res = new Moment(checkOverflow(prepareConfig(config))); - if (res._nextDay) { - // Adding is smart enough around DST - res.add(1, 'd'); - res._nextDay = undefined; - } - - return res; - } - - function prepareConfig(config) { - var input = config._i, - format = config._f; - - config._locale = config._locale || getLocale(config._l); - - if (input === null || (format === undefined && input === '')) { - return createInvalid({ nullInput: true }); - } - - if (typeof input === 'string') { - config._i = input = config._locale.preparse(input); - } - - if (isMoment(input)) { - return new Moment(checkOverflow(input)); - } else if (isDate(input)) { - config._d = input; - } else if (isArray(format)) { - configFromStringAndArray(config); - } else if (format) { - configFromStringAndFormat(config); - } else { - configFromInput(config); - } - - if (!isValid(config)) { - config._d = null; - } - - return config; - } - - function configFromInput(config) { - var input = config._i; - if (isUndefined(input)) { - config._d = new Date(hooks.now()); - } else if (isDate(input)) { - config._d = new Date(input.valueOf()); - } else if (typeof input === 'string') { - configFromString(config); - } else if (isArray(input)) { - config._a = map(input.slice(0), function (obj) { - return parseInt(obj, 10); - }); - configFromArray(config); - } else if (isObject(input)) { - configFromObject(config); - } else if (isNumber(input)) { - // from milliseconds - config._d = new Date(input); - } else { - hooks.createFromInputFallback(config); - } - } - - function createLocalOrUTC(input, format, locale, strict, isUTC) { - var c = {}; - - if (format === true || format === false) { - strict = format; - format = undefined; - } - - if (locale === true || locale === false) { - strict = locale; - locale = undefined; - } - - if ( - (isObject(input) && isObjectEmpty(input)) || - (isArray(input) && input.length === 0) - ) { - input = undefined; - } - // object construction must be done this way. - // https://github.com/moment/moment/issues/1423 - c._isAMomentObject = true; - c._useUTC = c._isUTC = isUTC; - c._l = locale; - c._i = input; - c._f = format; - c._strict = strict; - - return createFromConfig(c); - } - - function createLocal(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, false); - } - - var prototypeMin = deprecate( - 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other < this ? this : other; - } else { - return createInvalid(); - } - } - ), - prototypeMax = deprecate( - 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other > this ? this : other; - } else { - return createInvalid(); - } - } - ); - - // Pick a moment m from moments so that m[fn](other) is true for all - // other. This relies on the function fn to be transitive. - // - // moments should either be an array of moment objects or an array, whose - // first element is an array of moment objects. - function pickBy(fn, moments) { - var res, i; - if (moments.length === 1 && isArray(moments[0])) { - moments = moments[0]; - } - if (!moments.length) { - return createLocal(); - } - res = moments[0]; - for (i = 1; i < moments.length; ++i) { - if (!moments[i].isValid() || moments[i][fn](res)) { - res = moments[i]; - } - } - return res; - } - - // TODO: Use [].sort instead? - function min() { - var args = [].slice.call(arguments, 0); - - return pickBy('isBefore', args); - } - - function max() { - var args = [].slice.call(arguments, 0); - - return pickBy('isAfter', args); - } - - var now = function () { - return Date.now ? Date.now() : +new Date(); - }; - - var ordering = [ - 'year', - 'quarter', - 'month', - 'week', - 'day', - 'hour', - 'minute', - 'second', - 'millisecond', - ]; - - function isDurationValid(m) { - var key, - unitHasDecimal = false, - i, - orderLen = ordering.length; - for (key in m) { - if ( - hasOwnProp(m, key) && - !( - indexOf.call(ordering, key) !== -1 && - (m[key] == null || !isNaN(m[key])) - ) - ) { - return false; - } - } - - for (i = 0; i < orderLen; ++i) { - if (m[ordering[i]]) { - if (unitHasDecimal) { - return false; // only allow non-integers for smallest unit - } - if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { - unitHasDecimal = true; - } - } - } - - return true; - } - - function isValid$1() { - return this._isValid; - } - - function createInvalid$1() { - return createDuration(NaN); - } - - function Duration(duration) { - var normalizedInput = normalizeObjectUnits(duration), - years = normalizedInput.year || 0, - quarters = normalizedInput.quarter || 0, - months = normalizedInput.month || 0, - weeks = normalizedInput.week || normalizedInput.isoWeek || 0, - days = normalizedInput.day || 0, - hours = normalizedInput.hour || 0, - minutes = normalizedInput.minute || 0, - seconds = normalizedInput.second || 0, - milliseconds = normalizedInput.millisecond || 0; - - this._isValid = isDurationValid(normalizedInput); - - // representation for dateAddRemove - this._milliseconds = - +milliseconds + - seconds * 1e3 + // 1000 - minutes * 6e4 + // 1000 * 60 - hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 - // Because of dateAddRemove treats 24 hours as different from a - // day when working around DST, we need to store them separately - this._days = +days + weeks * 7; - // It is impossible to translate months into days without knowing - // which months you are are talking about, so we have to store - // it separately. - this._months = +months + quarters * 3 + years * 12; - - this._data = {}; - - this._locale = getLocale(); - - this._bubble(); - } - - function isDuration(obj) { - return obj instanceof Duration; - } - - function absRound(number) { - if (number < 0) { - return Math.round(-1 * number) * -1; - } else { - return Math.round(number); - } - } - - // compare two arrays, return the number of differences - function compareArrays(array1, array2, dontConvert) { - var len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0, - i; - for (i = 0; i < len; i++) { - if ( - (dontConvert && array1[i] !== array2[i]) || - (!dontConvert && toInt(array1[i]) !== toInt(array2[i])) - ) { - diffs++; - } - } - return diffs + lengthDiff; - } - - // FORMATTING - - function offset(token, separator) { - addFormatToken(token, 0, 0, function () { - var offset = this.utcOffset(), - sign = '+'; - if (offset < 0) { - offset = -offset; - sign = '-'; - } - return ( - sign + - zeroFill(~~(offset / 60), 2) + - separator + - zeroFill(~~offset % 60, 2) - ); - }); - } - - offset('Z', ':'); - offset('ZZ', ''); - - // PARSING - - addRegexToken('Z', matchShortOffset); - addRegexToken('ZZ', matchShortOffset); - addParseToken(['Z', 'ZZ'], function (input, array, config) { - config._useUTC = true; - config._tzm = offsetFromString(matchShortOffset, input); - }); - - // HELPERS - - // timezone chunker - // '+10:00' > ['10', '00'] - // '-1530' > ['-15', '30'] - var chunkOffset = /([\+\-]|\d\d)/gi; - - function offsetFromString(matcher, string) { - var matches = (string || '').match(matcher), - chunk, - parts, - minutes; - - if (matches === null) { - return null; - } - - chunk = matches[matches.length - 1] || []; - parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; - minutes = +(parts[1] * 60) + toInt(parts[2]); - - return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes; - } - - // Return a moment from input, that is local/utc/zone equivalent to model. - function cloneWithOffset(input, model) { - var res, diff; - if (model._isUTC) { - res = model.clone(); - diff = - (isMoment(input) || isDate(input) - ? input.valueOf() - : createLocal(input).valueOf()) - res.valueOf(); - // Use low-level api, because this fn is low-level api. - res._d.setTime(res._d.valueOf() + diff); - hooks.updateOffset(res, false); - return res; - } else { - return createLocal(input).local(); - } - } - - function getDateOffset(m) { - // On Firefox.24 Date#getTimezoneOffset returns a floating point. - // https://github.com/moment/moment/pull/1871 - return -Math.round(m._d.getTimezoneOffset()); - } - - // HOOKS - - // This function will be called whenever a moment is mutated. - // It is intended to keep the offset in sync with the timezone. - hooks.updateOffset = function () {}; - - // MOMENTS - - // keepLocalTime = true means only change the timezone, without - // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> - // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset - // +0200, so we adjust the time as needed, to be valid. - // - // Keeping the time actually adds/subtracts (one hour) - // from the actual represented time. That is why we call updateOffset - // a second time. In case it wants us to change the offset again - // _changeInProgress == true case, then we have to adjust, because - // there is no such time in the given timezone. - function getSetOffset(input, keepLocalTime, keepMinutes) { - var offset = this._offset || 0, - localAdjust; - if (!this.isValid()) { - return input != null ? this : NaN; - } - if (input != null) { - if (typeof input === 'string') { - input = offsetFromString(matchShortOffset, input); - if (input === null) { - return this; - } - } else if (Math.abs(input) < 16 && !keepMinutes) { - input = input * 60; - } - if (!this._isUTC && keepLocalTime) { - localAdjust = getDateOffset(this); - } - this._offset = input; - this._isUTC = true; - if (localAdjust != null) { - this.add(localAdjust, 'm'); - } - if (offset !== input) { - if (!keepLocalTime || this._changeInProgress) { - addSubtract( - this, - createDuration(input - offset, 'm'), - 1, - false - ); - } else if (!this._changeInProgress) { - this._changeInProgress = true; - hooks.updateOffset(this, true); - this._changeInProgress = null; - } - } - return this; - } else { - return this._isUTC ? offset : getDateOffset(this); - } - } - - function getSetZone(input, keepLocalTime) { - if (input != null) { - if (typeof input !== 'string') { - input = -input; - } - - this.utcOffset(input, keepLocalTime); - - return this; - } else { - return -this.utcOffset(); - } - } - - function setOffsetToUTC(keepLocalTime) { - return this.utcOffset(0, keepLocalTime); - } - - function setOffsetToLocal(keepLocalTime) { - if (this._isUTC) { - this.utcOffset(0, keepLocalTime); - this._isUTC = false; - - if (keepLocalTime) { - this.subtract(getDateOffset(this), 'm'); - } - } - return this; - } - - function setOffsetToParsedOffset() { - if (this._tzm != null) { - this.utcOffset(this._tzm, false, true); - } else if (typeof this._i === 'string') { - var tZone = offsetFromString(matchOffset, this._i); - if (tZone != null) { - this.utcOffset(tZone); - } else { - this.utcOffset(0, true); - } - } - return this; - } - - function hasAlignedHourOffset(input) { - if (!this.isValid()) { - return false; - } - input = input ? createLocal(input).utcOffset() : 0; - - return (this.utcOffset() - input) % 60 === 0; - } - - function isDaylightSavingTime() { - return ( - this.utcOffset() > this.clone().month(0).utcOffset() || - this.utcOffset() > this.clone().month(5).utcOffset() - ); - } - - function isDaylightSavingTimeShifted() { - if (!isUndefined(this._isDSTShifted)) { - return this._isDSTShifted; - } - - var c = {}, - other; - - copyConfig(c, this); - c = prepareConfig(c); - - if (c._a) { - other = c._isUTC ? createUTC(c._a) : createLocal(c._a); - this._isDSTShifted = - this.isValid() && compareArrays(c._a, other.toArray()) > 0; - } else { - this._isDSTShifted = false; - } - - return this._isDSTShifted; - } - - function isLocal() { - return this.isValid() ? !this._isUTC : false; - } - - function isUtcOffset() { - return this.isValid() ? this._isUTC : false; - } - - function isUtc() { - return this.isValid() ? this._isUTC && this._offset === 0 : false; - } - - // ASP.NET json date format regex - var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, - // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html - // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere - // and further modified to allow for strings containing both week and day - isoRegex = - /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; - - function createDuration(input, key) { - var duration = input, - // matching against regexp is expensive, do it on demand - match = null, - sign, - ret, - diffRes; - - if (isDuration(input)) { - duration = { - ms: input._milliseconds, - d: input._days, - M: input._months, - }; - } else if (isNumber(input) || !isNaN(+input)) { - duration = {}; - if (key) { - duration[key] = +input; - } else { - duration.milliseconds = +input; - } - } else if ((match = aspNetRegex.exec(input))) { - sign = match[1] === '-' ? -1 : 1; - duration = { - y: 0, - d: toInt(match[DATE]) * sign, - h: toInt(match[HOUR]) * sign, - m: toInt(match[MINUTE]) * sign, - s: toInt(match[SECOND]) * sign, - ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match - }; - } else if ((match = isoRegex.exec(input))) { - sign = match[1] === '-' ? -1 : 1; - duration = { - y: parseIso(match[2], sign), - M: parseIso(match[3], sign), - w: parseIso(match[4], sign), - d: parseIso(match[5], sign), - h: parseIso(match[6], sign), - m: parseIso(match[7], sign), - s: parseIso(match[8], sign), - }; - } else if (duration == null) { - // checks for null or undefined - duration = {}; - } else if ( - typeof duration === 'object' && - ('from' in duration || 'to' in duration) - ) { - diffRes = momentsDifference( - createLocal(duration.from), - createLocal(duration.to) - ); - - duration = {}; - duration.ms = diffRes.milliseconds; - duration.M = diffRes.months; - } - - ret = new Duration(duration); - - if (isDuration(input) && hasOwnProp(input, '_locale')) { - ret._locale = input._locale; - } - - if (isDuration(input) && hasOwnProp(input, '_isValid')) { - ret._isValid = input._isValid; - } - - return ret; - } - - createDuration.fn = Duration.prototype; - createDuration.invalid = createInvalid$1; - - function parseIso(inp, sign) { - // We'd normally use ~~inp for this, but unfortunately it also - // converts floats to ints. - // inp may be undefined, so careful calling replace on it. - var res = inp && parseFloat(inp.replace(',', '.')); - // apply sign while we're at it - return (isNaN(res) ? 0 : res) * sign; - } - - function positiveMomentsDifference(base, other) { - var res = {}; - - res.months = - other.month() - base.month() + (other.year() - base.year()) * 12; - if (base.clone().add(res.months, 'M').isAfter(other)) { - --res.months; - } - - res.milliseconds = +other - +base.clone().add(res.months, 'M'); - - return res; - } - - function momentsDifference(base, other) { - var res; - if (!(base.isValid() && other.isValid())) { - return { milliseconds: 0, months: 0 }; - } - - other = cloneWithOffset(other, base); - if (base.isBefore(other)) { - res = positiveMomentsDifference(base, other); - } else { - res = positiveMomentsDifference(other, base); - res.milliseconds = -res.milliseconds; - res.months = -res.months; - } - - return res; - } - - // TODO: remove 'name' arg after deprecation is removed - function createAdder(direction, name) { - return function (val, period) { - var dur, tmp; - //invert the arguments, but complain about it - if (period !== null && !isNaN(+period)) { - deprecateSimple( - name, - 'moment().' + - name + - '(period, number) is deprecated. Please use moment().' + - name + - '(number, period). ' + - 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' - ); - tmp = val; - val = period; - period = tmp; - } - - dur = createDuration(val, period); - addSubtract(this, dur, direction); - return this; - }; - } - - function addSubtract(mom, duration, isAdding, updateOffset) { - var milliseconds = duration._milliseconds, - days = absRound(duration._days), - months = absRound(duration._months); - - if (!mom.isValid()) { - // No op - return; - } - - updateOffset = updateOffset == null ? true : updateOffset; - - if (months) { - setMonth(mom, get(mom, 'Month') + months * isAdding); - } - if (days) { - set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); - } - if (milliseconds) { - mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); - } - if (updateOffset) { - hooks.updateOffset(mom, days || months); - } - } - - var add = createAdder(1, 'add'), - subtract = createAdder(-1, 'subtract'); - - function isString(input) { - return typeof input === 'string' || input instanceof String; - } - - // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined - function isMomentInput(input) { - return ( - isMoment(input) || - isDate(input) || - isString(input) || - isNumber(input) || - isNumberOrStringArray(input) || - isMomentInputObject(input) || - input === null || - input === undefined - ); - } - - function isMomentInputObject(input) { - var objectTest = isObject(input) && !isObjectEmpty(input), - propertyTest = false, - properties = [ - 'years', - 'year', - 'y', - 'months', - 'month', - 'M', - 'days', - 'day', - 'd', - 'dates', - 'date', - 'D', - 'hours', - 'hour', - 'h', - 'minutes', - 'minute', - 'm', - 'seconds', - 'second', - 's', - 'milliseconds', - 'millisecond', - 'ms', - ], - i, - property, - propertyLen = properties.length; - - for (i = 0; i < propertyLen; i += 1) { - property = properties[i]; - propertyTest = propertyTest || hasOwnProp(input, property); - } - - return objectTest && propertyTest; - } - - function isNumberOrStringArray(input) { - var arrayTest = isArray(input), - dataTypeTest = false; - if (arrayTest) { - dataTypeTest = - input.filter(function (item) { - return !isNumber(item) && isString(input); - }).length === 0; - } - return arrayTest && dataTypeTest; - } - - function isCalendarSpec(input) { - var objectTest = isObject(input) && !isObjectEmpty(input), - propertyTest = false, - properties = [ - 'sameDay', - 'nextDay', - 'lastDay', - 'nextWeek', - 'lastWeek', - 'sameElse', - ], - i, - property; - - for (i = 0; i < properties.length; i += 1) { - property = properties[i]; - propertyTest = propertyTest || hasOwnProp(input, property); - } - - return objectTest && propertyTest; - } - - function getCalendarFormat(myMoment, now) { - var diff = myMoment.diff(now, 'days', true); - return diff < -6 - ? 'sameElse' - : diff < -1 - ? 'lastWeek' - : diff < 0 - ? 'lastDay' - : diff < 1 - ? 'sameDay' - : diff < 2 - ? 'nextDay' - : diff < 7 - ? 'nextWeek' - : 'sameElse'; - } - - function calendar$1(time, formats) { - // Support for single parameter, formats only overload to the calendar function - if (arguments.length === 1) { - if (!arguments[0]) { - time = undefined; - formats = undefined; - } else if (isMomentInput(arguments[0])) { - time = arguments[0]; - formats = undefined; - } else if (isCalendarSpec(arguments[0])) { - formats = arguments[0]; - time = undefined; - } - } - // We want to compare the start of today, vs this. - // Getting start-of-today depends on whether we're local/utc/offset or not. - var now = time || createLocal(), - sod = cloneWithOffset(now, this).startOf('day'), - format = hooks.calendarFormat(this, sod) || 'sameElse', - output = - formats && - (isFunction(formats[format]) - ? formats[format].call(this, now) - : formats[format]); - - return this.format( - output || this.localeData().calendar(format, this, createLocal(now)) - ); - } - - function clone() { - return new Moment(this); - } - - function isAfter(input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() > localInput.valueOf(); - } else { - return localInput.valueOf() < this.clone().startOf(units).valueOf(); - } - } - - function isBefore(input, units) { - var localInput = isMoment(input) ? input : createLocal(input); - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() < localInput.valueOf(); - } else { - return this.clone().endOf(units).valueOf() < localInput.valueOf(); - } - } - - function isBetween(from, to, units, inclusivity) { - var localFrom = isMoment(from) ? from : createLocal(from), - localTo = isMoment(to) ? to : createLocal(to); - if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { - return false; - } - inclusivity = inclusivity || '()'; - return ( - (inclusivity[0] === '(' - ? this.isAfter(localFrom, units) - : !this.isBefore(localFrom, units)) && - (inclusivity[1] === ')' - ? this.isBefore(localTo, units) - : !this.isAfter(localTo, units)) - ); - } - - function isSame(input, units) { - var localInput = isMoment(input) ? input : createLocal(input), - inputMs; - if (!(this.isValid() && localInput.isValid())) { - return false; - } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() === localInput.valueOf(); - } else { - inputMs = localInput.valueOf(); - return ( - this.clone().startOf(units).valueOf() <= inputMs && - inputMs <= this.clone().endOf(units).valueOf() - ); - } - } - - function isSameOrAfter(input, units) { - return this.isSame(input, units) || this.isAfter(input, units); - } - - function isSameOrBefore(input, units) { - return this.isSame(input, units) || this.isBefore(input, units); - } - - function diff(input, units, asFloat) { - var that, zoneDelta, output; - - if (!this.isValid()) { - return NaN; - } - - that = cloneWithOffset(input, this); - - if (!that.isValid()) { - return NaN; - } - - zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; - - units = normalizeUnits(units); - - switch (units) { - case 'year': - output = monthDiff(this, that) / 12; - break; - case 'month': - output = monthDiff(this, that); - break; - case 'quarter': - output = monthDiff(this, that) / 3; - break; - case 'second': - output = (this - that) / 1e3; - break; // 1000 - case 'minute': - output = (this - that) / 6e4; - break; // 1000 * 60 - case 'hour': - output = (this - that) / 36e5; - break; // 1000 * 60 * 60 - case 'day': - output = (this - that - zoneDelta) / 864e5; - break; // 1000 * 60 * 60 * 24, negate dst - case 'week': - output = (this - that - zoneDelta) / 6048e5; - break; // 1000 * 60 * 60 * 24 * 7, negate dst - default: - output = this - that; - } - - return asFloat ? output : absFloor(output); - } - - function monthDiff(a, b) { - if (a.date() < b.date()) { - // end-of-month calculations work correct when the start month has more - // days than the end month. - return -monthDiff(b, a); - } - // difference in months - var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), - // b is in (anchor - 1 month, anchor + 1 month) - anchor = a.clone().add(wholeMonthDiff, 'months'), - anchor2, - adjust; - - if (b - anchor < 0) { - anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor - anchor2); - } else { - anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor2 - anchor); - } - - //check for negative zero, return zero if negative zero - return -(wholeMonthDiff + adjust) || 0; - } - - hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; - hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; - - function toString() { - return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); - } - - function toISOString(keepOffset) { - if (!this.isValid()) { - return null; - } - var utc = keepOffset !== true, - m = utc ? this.clone().utc() : this; - if (m.year() < 0 || m.year() > 9999) { - return formatMoment( - m, - utc - ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' - : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' - ); - } - if (isFunction(Date.prototype.toISOString)) { - // native implementation is ~50x faster, use it when we can - if (utc) { - return this.toDate().toISOString(); - } else { - return new Date(this.valueOf() + this.utcOffset() * 60 * 1000) - .toISOString() - .replace('Z', formatMoment(m, 'Z')); - } - } - return formatMoment( - m, - utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' - ); - } - - /** - * Return a human readable representation of a moment that can - * also be evaluated to get a new moment which is the same - * - * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects - */ - function inspect() { - if (!this.isValid()) { - return 'moment.invalid(/* ' + this._i + ' */)'; - } - var func = 'moment', - zone = '', - prefix, - year, - datetime, - suffix; - if (!this.isLocal()) { - func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; - zone = 'Z'; - } - prefix = '[' + func + '("]'; - year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY'; - datetime = '-MM-DD[T]HH:mm:ss.SSS'; - suffix = zone + '[")]'; - - return this.format(prefix + year + datetime + suffix); - } - - function format(inputString) { - if (!inputString) { - inputString = this.isUtc() - ? hooks.defaultFormatUtc - : hooks.defaultFormat; - } - var output = formatMoment(this, inputString); - return this.localeData().postformat(output); - } - - function from(time, withoutSuffix) { - if ( - this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ) { - return createDuration({ to: this, from: time }) - .locale(this.locale()) - .humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } - } - - function fromNow(withoutSuffix) { - return this.from(createLocal(), withoutSuffix); - } - - function to(time, withoutSuffix) { - if ( - this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ) { - return createDuration({ from: this, to: time }) - .locale(this.locale()) - .humanize(!withoutSuffix); - } else { - return this.localeData().invalidDate(); - } - } - - function toNow(withoutSuffix) { - return this.to(createLocal(), withoutSuffix); - } - - // If passed a locale key, it will set the locale for this - // instance. Otherwise, it will return the locale configuration - // variables for this instance. - function locale(key) { - var newLocaleData; - - if (key === undefined) { - return this._locale._abbr; - } else { - newLocaleData = getLocale(key); - if (newLocaleData != null) { - this._locale = newLocaleData; - } - return this; - } - } - - var lang = deprecate( - 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', - function (key) { - if (key === undefined) { - return this.localeData(); - } else { - return this.locale(key); - } - } - ); - - function localeData() { - return this._locale; - } - - var MS_PER_SECOND = 1000, - MS_PER_MINUTE = 60 * MS_PER_SECOND, - MS_PER_HOUR = 60 * MS_PER_MINUTE, - MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; - - // actual modulo - handles negative numbers (for dates before 1970): - function mod$1(dividend, divisor) { - return ((dividend % divisor) + divisor) % divisor; - } - - function localStartOfDate(y, m, d) { - // the date constructor remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - return new Date(y + 400, m, d) - MS_PER_400_YEARS; - } else { - return new Date(y, m, d).valueOf(); - } - } - - function utcStartOfDate(y, m, d) { - // Date.UTC remaps years 0-99 to 1900-1999 - if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS; - } else { - return Date.UTC(y, m, d); - } - } - - function startOf(units) { - var time, startOfDate; - units = normalizeUnits(units); - if (units === undefined || units === 'millisecond' || !this.isValid()) { - return this; - } - - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - - switch (units) { - case 'year': - time = startOfDate(this.year(), 0, 1); - break; - case 'quarter': - time = startOfDate( - this.year(), - this.month() - (this.month() % 3), - 1 - ); - break; - case 'month': - time = startOfDate(this.year(), this.month(), 1); - break; - case 'week': - time = startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() - ); - break; - case 'isoWeek': - time = startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) - ); - break; - case 'day': - case 'date': - time = startOfDate(this.year(), this.month(), this.date()); - break; - case 'hour': - time = this._d.valueOf(); - time -= mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ); - break; - case 'minute': - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_MINUTE); - break; - case 'second': - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_SECOND); - break; - } - - this._d.setTime(time); - hooks.updateOffset(this, true); - return this; - } - - function endOf(units) { - var time, startOfDate; - units = normalizeUnits(units); - if (units === undefined || units === 'millisecond' || !this.isValid()) { - return this; - } - - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - - switch (units) { - case 'year': - time = startOfDate(this.year() + 1, 0, 1) - 1; - break; - case 'quarter': - time = - startOfDate( - this.year(), - this.month() - (this.month() % 3) + 3, - 1 - ) - 1; - break; - case 'month': - time = startOfDate(this.year(), this.month() + 1, 1) - 1; - break; - case 'week': - time = - startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() + 7 - ) - 1; - break; - case 'isoWeek': - time = - startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) + 7 - ) - 1; - break; - case 'day': - case 'date': - time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; - break; - case 'hour': - time = this._d.valueOf(); - time += - MS_PER_HOUR - - mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ) - - 1; - break; - case 'minute': - time = this._d.valueOf(); - time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; - break; - case 'second': - time = this._d.valueOf(); - time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; - break; - } - - this._d.setTime(time); - hooks.updateOffset(this, true); - return this; - } - - function valueOf() { - return this._d.valueOf() - (this._offset || 0) * 60000; - } - - function unix() { - return Math.floor(this.valueOf() / 1000); - } - - function toDate() { - return new Date(this.valueOf()); - } - - function toArray() { - var m = this; - return [ - m.year(), - m.month(), - m.date(), - m.hour(), - m.minute(), - m.second(), - m.millisecond(), - ]; - } - - function toObject() { - var m = this; - return { - years: m.year(), - months: m.month(), - date: m.date(), - hours: m.hours(), - minutes: m.minutes(), - seconds: m.seconds(), - milliseconds: m.milliseconds(), - }; - } - - function toJSON() { - // new Date(NaN).toJSON() === null - return this.isValid() ? this.toISOString() : null; - } - - function isValid$2() { - return isValid(this); - } - - function parsingFlags() { - return extend({}, getParsingFlags(this)); - } - - function invalidAt() { - return getParsingFlags(this).overflow; - } - - function creationData() { - return { - input: this._i, - format: this._f, - locale: this._locale, - isUTC: this._isUTC, - strict: this._strict, - }; - } - - addFormatToken('N', 0, 0, 'eraAbbr'); - addFormatToken('NN', 0, 0, 'eraAbbr'); - addFormatToken('NNN', 0, 0, 'eraAbbr'); - addFormatToken('NNNN', 0, 0, 'eraName'); - addFormatToken('NNNNN', 0, 0, 'eraNarrow'); - - addFormatToken('y', ['y', 1], 'yo', 'eraYear'); - addFormatToken('y', ['yy', 2], 0, 'eraYear'); - addFormatToken('y', ['yyy', 3], 0, 'eraYear'); - addFormatToken('y', ['yyyy', 4], 0, 'eraYear'); - - addRegexToken('N', matchEraAbbr); - addRegexToken('NN', matchEraAbbr); - addRegexToken('NNN', matchEraAbbr); - addRegexToken('NNNN', matchEraName); - addRegexToken('NNNNN', matchEraNarrow); - - addParseToken( - ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], - function (input, array, config, token) { - var era = config._locale.erasParse(input, token, config._strict); - if (era) { - getParsingFlags(config).era = era; - } else { - getParsingFlags(config).invalidEra = input; - } - } - ); - - addRegexToken('y', matchUnsigned); - addRegexToken('yy', matchUnsigned); - addRegexToken('yyy', matchUnsigned); - addRegexToken('yyyy', matchUnsigned); - addRegexToken('yo', matchEraYearOrdinal); - - addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR); - addParseToken(['yo'], function (input, array, config, token) { - var match; - if (config._locale._eraYearOrdinalRegex) { - match = input.match(config._locale._eraYearOrdinalRegex); - } - - if (config._locale.eraYearOrdinalParse) { - array[YEAR] = config._locale.eraYearOrdinalParse(input, match); - } else { - array[YEAR] = parseInt(input, 10); - } - }); - - function localeEras(m, format) { - var i, - l, - date, - eras = this._eras || getLocale('en')._eras; - for (i = 0, l = eras.length; i < l; ++i) { - switch (typeof eras[i].since) { - case 'string': - // truncate time - date = hooks(eras[i].since).startOf('day'); - eras[i].since = date.valueOf(); - break; - } - - switch (typeof eras[i].until) { - case 'undefined': - eras[i].until = +Infinity; - break; - case 'string': - // truncate time - date = hooks(eras[i].until).startOf('day').valueOf(); - eras[i].until = date.valueOf(); - break; - } - } - return eras; - } - - function localeErasParse(eraName, format, strict) { - var i, - l, - eras = this.eras(), - name, - abbr, - narrow; - eraName = eraName.toUpperCase(); - - for (i = 0, l = eras.length; i < l; ++i) { - name = eras[i].name.toUpperCase(); - abbr = eras[i].abbr.toUpperCase(); - narrow = eras[i].narrow.toUpperCase(); - - if (strict) { - switch (format) { - case 'N': - case 'NN': - case 'NNN': - if (abbr === eraName) { - return eras[i]; - } - break; - - case 'NNNN': - if (name === eraName) { - return eras[i]; - } - break; - - case 'NNNNN': - if (narrow === eraName) { - return eras[i]; - } - break; - } - } else if ([name, abbr, narrow].indexOf(eraName) >= 0) { - return eras[i]; - } - } - } - - function localeErasConvertYear(era, year) { - var dir = era.since <= era.until ? +1 : -1; - if (year === undefined) { - return hooks(era.since).year(); - } else { - return hooks(era.since).year() + (year - era.offset) * dir; - } - } - - function getEraName() { - var i, - l, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.clone().startOf('day').valueOf(); - - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].name; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].name; - } - } - - return ''; - } - - function getEraNarrow() { - var i, - l, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.clone().startOf('day').valueOf(); - - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].narrow; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].narrow; - } - } - - return ''; - } - - function getEraAbbr() { - var i, - l, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.clone().startOf('day').valueOf(); - - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].abbr; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].abbr; - } - } - - return ''; - } - - function getEraYear() { - var i, - l, - dir, - val, - eras = this.localeData().eras(); - for (i = 0, l = eras.length; i < l; ++i) { - dir = eras[i].since <= eras[i].until ? +1 : -1; - - // truncate time - val = this.clone().startOf('day').valueOf(); - - if ( - (eras[i].since <= val && val <= eras[i].until) || - (eras[i].until <= val && val <= eras[i].since) - ) { - return ( - (this.year() - hooks(eras[i].since).year()) * dir + - eras[i].offset - ); - } - } - - return this.year(); - } - - function erasNameRegex(isStrict) { - if (!hasOwnProp(this, '_erasNameRegex')) { - computeErasParse.call(this); - } - return isStrict ? this._erasNameRegex : this._erasRegex; - } - - function erasAbbrRegex(isStrict) { - if (!hasOwnProp(this, '_erasAbbrRegex')) { - computeErasParse.call(this); - } - return isStrict ? this._erasAbbrRegex : this._erasRegex; - } - - function erasNarrowRegex(isStrict) { - if (!hasOwnProp(this, '_erasNarrowRegex')) { - computeErasParse.call(this); - } - return isStrict ? this._erasNarrowRegex : this._erasRegex; - } - - function matchEraAbbr(isStrict, locale) { - return locale.erasAbbrRegex(isStrict); - } - - function matchEraName(isStrict, locale) { - return locale.erasNameRegex(isStrict); - } - - function matchEraNarrow(isStrict, locale) { - return locale.erasNarrowRegex(isStrict); - } - - function matchEraYearOrdinal(isStrict, locale) { - return locale._eraYearOrdinalRegex || matchUnsigned; - } - - function computeErasParse() { - var abbrPieces = [], - namePieces = [], - narrowPieces = [], - mixedPieces = [], - i, - l, - erasName, - erasAbbr, - erasNarrow, - eras = this.eras(); - - for (i = 0, l = eras.length; i < l; ++i) { - erasName = regexEscape(eras[i].name); - erasAbbr = regexEscape(eras[i].abbr); - erasNarrow = regexEscape(eras[i].narrow); - - namePieces.push(erasName); - abbrPieces.push(erasAbbr); - narrowPieces.push(erasNarrow); - mixedPieces.push(erasName); - mixedPieces.push(erasAbbr); - mixedPieces.push(erasNarrow); - } - - this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i'); - this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i'); - this._erasNarrowRegex = new RegExp( - '^(' + narrowPieces.join('|') + ')', - 'i' - ); - } - - // FORMATTING - - addFormatToken(0, ['gg', 2], 0, function () { - return this.weekYear() % 100; - }); - - addFormatToken(0, ['GG', 2], 0, function () { - return this.isoWeekYear() % 100; - }); - - function addWeekYearFormatToken(token, getter) { - addFormatToken(0, [token, token.length], 0, getter); - } - - addWeekYearFormatToken('gggg', 'weekYear'); - addWeekYearFormatToken('ggggg', 'weekYear'); - addWeekYearFormatToken('GGGG', 'isoWeekYear'); - addWeekYearFormatToken('GGGGG', 'isoWeekYear'); - - // ALIASES - - // PARSING - - addRegexToken('G', matchSigned); - addRegexToken('g', matchSigned); - addRegexToken('GG', match1to2, match2); - addRegexToken('gg', match1to2, match2); - addRegexToken('GGGG', match1to4, match4); - addRegexToken('gggg', match1to4, match4); - addRegexToken('GGGGG', match1to6, match6); - addRegexToken('ggggg', match1to6, match6); - - addWeekParseToken( - ['gggg', 'ggggg', 'GGGG', 'GGGGG'], - function (input, week, config, token) { - week[token.substr(0, 2)] = toInt(input); - } - ); - - addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { - week[token] = hooks.parseTwoDigitYear(input); - }); - - // MOMENTS - - function getSetWeekYear(input) { - return getSetWeekYearHelper.call( - this, - input, - this.week(), - this.weekday() + this.localeData()._week.dow, - this.localeData()._week.dow, - this.localeData()._week.doy - ); - } - - function getSetISOWeekYear(input) { - return getSetWeekYearHelper.call( - this, - input, - this.isoWeek(), - this.isoWeekday(), - 1, - 4 - ); - } - - function getISOWeeksInYear() { - return weeksInYear(this.year(), 1, 4); - } - - function getISOWeeksInISOWeekYear() { - return weeksInYear(this.isoWeekYear(), 1, 4); - } - - function getWeeksInYear() { - var weekInfo = this.localeData()._week; - return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); - } - - function getWeeksInWeekYear() { - var weekInfo = this.localeData()._week; - return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); - } - - function getSetWeekYearHelper(input, week, weekday, dow, doy) { - var weeksTarget; - if (input == null) { - return weekOfYear(this, dow, doy).year; - } else { - weeksTarget = weeksInYear(input, dow, doy); - if (week > weeksTarget) { - week = weeksTarget; - } - return setWeekAll.call(this, input, week, weekday, dow, doy); - } - } - - function setWeekAll(weekYear, week, weekday, dow, doy) { - var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), - date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); - - this.year(date.getUTCFullYear()); - this.month(date.getUTCMonth()); - this.date(date.getUTCDate()); - return this; - } - - // FORMATTING - - addFormatToken('Q', 0, 'Qo', 'quarter'); - - // PARSING - - addRegexToken('Q', match1); - addParseToken('Q', function (input, array) { - array[MONTH] = (toInt(input) - 1) * 3; - }); - - // MOMENTS - - function getSetQuarter(input) { - return input == null - ? Math.ceil((this.month() + 1) / 3) - : this.month((input - 1) * 3 + (this.month() % 3)); - } - - // FORMATTING - - addFormatToken('D', ['DD', 2], 'Do', 'date'); - - // PARSING - - addRegexToken('D', match1to2, match1to2NoLeadingZero); - addRegexToken('DD', match1to2, match2); - addRegexToken('Do', function (isStrict, locale) { - // TODO: Remove "ordinalParse" fallback in next major release. - return isStrict - ? locale._dayOfMonthOrdinalParse || locale._ordinalParse - : locale._dayOfMonthOrdinalParseLenient; - }); - - addParseToken(['D', 'DD'], DATE); - addParseToken('Do', function (input, array) { - array[DATE] = toInt(input.match(match1to2)[0]); - }); - - // MOMENTS - - var getSetDayOfMonth = makeGetSet('Date', true); - - // FORMATTING - - addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); - - // PARSING - - addRegexToken('DDD', match1to3); - addRegexToken('DDDD', match3); - addParseToken(['DDD', 'DDDD'], function (input, array, config) { - config._dayOfYear = toInt(input); - }); - - // HELPERS - - // MOMENTS - - function getSetDayOfYear(input) { - var dayOfYear = - Math.round( - (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5 - ) + 1; - return input == null ? dayOfYear : this.add(input - dayOfYear, 'd'); - } - - // FORMATTING - - addFormatToken('m', ['mm', 2], 0, 'minute'); - - // PARSING - - addRegexToken('m', match1to2, match1to2HasZero); - addRegexToken('mm', match1to2, match2); - addParseToken(['m', 'mm'], MINUTE); - - // MOMENTS - - var getSetMinute = makeGetSet('Minutes', false); - - // FORMATTING - - addFormatToken('s', ['ss', 2], 0, 'second'); - - // PARSING - - addRegexToken('s', match1to2, match1to2HasZero); - addRegexToken('ss', match1to2, match2); - addParseToken(['s', 'ss'], SECOND); - - // MOMENTS - - var getSetSecond = makeGetSet('Seconds', false); - - // FORMATTING - - addFormatToken('S', 0, 0, function () { - return ~~(this.millisecond() / 100); - }); - - addFormatToken(0, ['SS', 2], 0, function () { - return ~~(this.millisecond() / 10); - }); - - addFormatToken(0, ['SSS', 3], 0, 'millisecond'); - addFormatToken(0, ['SSSS', 4], 0, function () { - return this.millisecond() * 10; - }); - addFormatToken(0, ['SSSSS', 5], 0, function () { - return this.millisecond() * 100; - }); - addFormatToken(0, ['SSSSSS', 6], 0, function () { - return this.millisecond() * 1000; - }); - addFormatToken(0, ['SSSSSSS', 7], 0, function () { - return this.millisecond() * 10000; - }); - addFormatToken(0, ['SSSSSSSS', 8], 0, function () { - return this.millisecond() * 100000; - }); - addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { - return this.millisecond() * 1000000; - }); - - // PARSING - - addRegexToken('S', match1to3, match1); - addRegexToken('SS', match1to3, match2); - addRegexToken('SSS', match1to3, match3); - - var token, getSetMillisecond; - for (token = 'SSSS'; token.length <= 9; token += 'S') { - addRegexToken(token, matchUnsigned); - } - - function parseMs(input, array) { - array[MILLISECOND] = toInt(('0.' + input) * 1000); - } - - for (token = 'S'; token.length <= 9; token += 'S') { - addParseToken(token, parseMs); - } - - getSetMillisecond = makeGetSet('Milliseconds', false); - - // FORMATTING - - addFormatToken('z', 0, 0, 'zoneAbbr'); - addFormatToken('zz', 0, 0, 'zoneName'); - - // MOMENTS - - function getZoneAbbr() { - return this._isUTC ? 'UTC' : ''; - } - - function getZoneName() { - return this._isUTC ? 'Coordinated Universal Time' : ''; - } - - var proto = Moment.prototype; - - proto.add = add; - proto.calendar = calendar$1; - proto.clone = clone; - proto.diff = diff; - proto.endOf = endOf; - proto.format = format; - proto.from = from; - proto.fromNow = fromNow; - proto.to = to; - proto.toNow = toNow; - proto.get = stringGet; - proto.invalidAt = invalidAt; - proto.isAfter = isAfter; - proto.isBefore = isBefore; - proto.isBetween = isBetween; - proto.isSame = isSame; - proto.isSameOrAfter = isSameOrAfter; - proto.isSameOrBefore = isSameOrBefore; - proto.isValid = isValid$2; - proto.lang = lang; - proto.locale = locale; - proto.localeData = localeData; - proto.max = prototypeMax; - proto.min = prototypeMin; - proto.parsingFlags = parsingFlags; - proto.set = stringSet; - proto.startOf = startOf; - proto.subtract = subtract; - proto.toArray = toArray; - proto.toObject = toObject; - proto.toDate = toDate; - proto.toISOString = toISOString; - proto.inspect = inspect; - if (typeof Symbol !== 'undefined' && Symbol.for != null) { - proto[Symbol.for('nodejs.util.inspect.custom')] = function () { - return 'Moment<' + this.format() + '>'; - }; - } - proto.toJSON = toJSON; - proto.toString = toString; - proto.unix = unix; - proto.valueOf = valueOf; - proto.creationData = creationData; - proto.eraName = getEraName; - proto.eraNarrow = getEraNarrow; - proto.eraAbbr = getEraAbbr; - proto.eraYear = getEraYear; - proto.year = getSetYear; - proto.isLeapYear = getIsLeapYear; - proto.weekYear = getSetWeekYear; - proto.isoWeekYear = getSetISOWeekYear; - proto.quarter = proto.quarters = getSetQuarter; - proto.month = getSetMonth; - proto.daysInMonth = getDaysInMonth; - proto.week = proto.weeks = getSetWeek; - proto.isoWeek = proto.isoWeeks = getSetISOWeek; - proto.weeksInYear = getWeeksInYear; - proto.weeksInWeekYear = getWeeksInWeekYear; - proto.isoWeeksInYear = getISOWeeksInYear; - proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; - proto.date = getSetDayOfMonth; - proto.day = proto.days = getSetDayOfWeek; - proto.weekday = getSetLocaleDayOfWeek; - proto.isoWeekday = getSetISODayOfWeek; - proto.dayOfYear = getSetDayOfYear; - proto.hour = proto.hours = getSetHour; - proto.minute = proto.minutes = getSetMinute; - proto.second = proto.seconds = getSetSecond; - proto.millisecond = proto.milliseconds = getSetMillisecond; - proto.utcOffset = getSetOffset; - proto.utc = setOffsetToUTC; - proto.local = setOffsetToLocal; - proto.parseZone = setOffsetToParsedOffset; - proto.hasAlignedHourOffset = hasAlignedHourOffset; - proto.isDST = isDaylightSavingTime; - proto.isLocal = isLocal; - proto.isUtcOffset = isUtcOffset; - proto.isUtc = isUtc; - proto.isUTC = isUtc; - proto.zoneAbbr = getZoneAbbr; - proto.zoneName = getZoneName; - proto.dates = deprecate( - 'dates accessor is deprecated. Use date instead.', - getSetDayOfMonth - ); - proto.months = deprecate( - 'months accessor is deprecated. Use month instead', - getSetMonth - ); - proto.years = deprecate( - 'years accessor is deprecated. Use year instead', - getSetYear - ); - proto.zone = deprecate( - 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', - getSetZone - ); - proto.isDSTShifted = deprecate( - 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', - isDaylightSavingTimeShifted - ); - - function createUnix(input) { - return createLocal(input * 1000); - } - - function createInZone() { - return createLocal.apply(null, arguments).parseZone(); - } - - function preParsePostFormat(string) { - return string; - } - - var proto$1 = Locale.prototype; - - proto$1.calendar = calendar; - proto$1.longDateFormat = longDateFormat; - proto$1.invalidDate = invalidDate; - proto$1.ordinal = ordinal; - proto$1.preparse = preParsePostFormat; - proto$1.postformat = preParsePostFormat; - proto$1.relativeTime = relativeTime; - proto$1.pastFuture = pastFuture; - proto$1.set = set; - proto$1.eras = localeEras; - proto$1.erasParse = localeErasParse; - proto$1.erasConvertYear = localeErasConvertYear; - proto$1.erasAbbrRegex = erasAbbrRegex; - proto$1.erasNameRegex = erasNameRegex; - proto$1.erasNarrowRegex = erasNarrowRegex; - - proto$1.months = localeMonths; - proto$1.monthsShort = localeMonthsShort; - proto$1.monthsParse = localeMonthsParse; - proto$1.monthsRegex = monthsRegex; - proto$1.monthsShortRegex = monthsShortRegex; - proto$1.week = localeWeek; - proto$1.firstDayOfYear = localeFirstDayOfYear; - proto$1.firstDayOfWeek = localeFirstDayOfWeek; - - proto$1.weekdays = localeWeekdays; - proto$1.weekdaysMin = localeWeekdaysMin; - proto$1.weekdaysShort = localeWeekdaysShort; - proto$1.weekdaysParse = localeWeekdaysParse; - - proto$1.weekdaysRegex = weekdaysRegex; - proto$1.weekdaysShortRegex = weekdaysShortRegex; - proto$1.weekdaysMinRegex = weekdaysMinRegex; - - proto$1.isPM = localeIsPM; - proto$1.meridiem = localeMeridiem; - - function get$1(format, index, field, setter) { - var locale = getLocale(), - utc = createUTC().set(setter, index); - return locale[field](utc, format); - } - - function listMonthsImpl(format, index, field) { - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - - if (index != null) { - return get$1(format, index, field, 'month'); - } - - var i, - out = []; - for (i = 0; i < 12; i++) { - out[i] = get$1(format, i, field, 'month'); - } - return out; - } - - // () - // (5) - // (fmt, 5) - // (fmt) - // (true) - // (true, 5) - // (true, fmt, 5) - // (true, fmt) - function listWeekdaysImpl(localeSorted, format, index, field) { - if (typeof localeSorted === 'boolean') { - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - } else { - format = localeSorted; - index = format; - localeSorted = false; - - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; - } - - var locale = getLocale(), - shift = localeSorted ? locale._week.dow : 0, - i, - out = []; - - if (index != null) { - return get$1(format, (index + shift) % 7, field, 'day'); - } - - for (i = 0; i < 7; i++) { - out[i] = get$1(format, (i + shift) % 7, field, 'day'); - } - return out; - } - - function listMonths(format, index) { - return listMonthsImpl(format, index, 'months'); - } - - function listMonthsShort(format, index) { - return listMonthsImpl(format, index, 'monthsShort'); - } - - function listWeekdays(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); - } - - function listWeekdaysShort(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); - } - - function listWeekdaysMin(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); - } - - getSetGlobalLocale('en', { - eras: [ - { - since: '0001-01-01', - until: +Infinity, - offset: 1, - name: 'Anno Domini', - narrow: 'AD', - abbr: 'AD', - }, - { - since: '0000-12-31', - until: -Infinity, - offset: 1, - name: 'Before Christ', - narrow: 'BC', - abbr: 'BC', - }, - ], - dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function (number) { - var b = number % 10, - output = - toInt((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); - - // Side effect imports - - hooks.lang = deprecate( - 'moment.lang is deprecated. Use moment.locale instead.', - getSetGlobalLocale - ); - hooks.langData = deprecate( - 'moment.langData is deprecated. Use moment.localeData instead.', - getLocale - ); - - var mathAbs = Math.abs; - - function abs() { - var data = this._data; - - this._milliseconds = mathAbs(this._milliseconds); - this._days = mathAbs(this._days); - this._months = mathAbs(this._months); - - data.milliseconds = mathAbs(data.milliseconds); - data.seconds = mathAbs(data.seconds); - data.minutes = mathAbs(data.minutes); - data.hours = mathAbs(data.hours); - data.months = mathAbs(data.months); - data.years = mathAbs(data.years); - - return this; - } - - function addSubtract$1(duration, input, value, direction) { - var other = createDuration(input, value); - - duration._milliseconds += direction * other._milliseconds; - duration._days += direction * other._days; - duration._months += direction * other._months; - - return duration._bubble(); - } - - // supports only 2.0-style add(1, 's') or add(duration) - function add$1(input, value) { - return addSubtract$1(this, input, value, 1); - } - - // supports only 2.0-style subtract(1, 's') or subtract(duration) - function subtract$1(input, value) { - return addSubtract$1(this, input, value, -1); - } - - function absCeil(number) { - if (number < 0) { - return Math.floor(number); - } else { - return Math.ceil(number); - } - } - - function bubble() { - var milliseconds = this._milliseconds, - days = this._days, - months = this._months, - data = this._data, - seconds, - minutes, - hours, - years, - monthsFromDays; - - // if we have a mix of positive and negative values, bubble down first - // check: https://github.com/moment/moment/issues/2166 - if ( - !( - (milliseconds >= 0 && days >= 0 && months >= 0) || - (milliseconds <= 0 && days <= 0 && months <= 0) - ) - ) { - milliseconds += absCeil(monthsToDays(months) + days) * 864e5; - days = 0; - months = 0; - } - - // The following code bubbles up values, see the tests for - // examples of what that means. - data.milliseconds = milliseconds % 1000; - - seconds = absFloor(milliseconds / 1000); - data.seconds = seconds % 60; - - minutes = absFloor(seconds / 60); - data.minutes = minutes % 60; - - hours = absFloor(minutes / 60); - data.hours = hours % 24; - - days += absFloor(hours / 24); - - // convert days to months - monthsFromDays = absFloor(daysToMonths(days)); - months += monthsFromDays; - days -= absCeil(monthsToDays(monthsFromDays)); - - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; - - data.days = days; - data.months = months; - data.years = years; - - return this; - } - - function daysToMonths(days) { - // 400 years have 146097 days (taking into account leap year rules) - // 400 years have 12 months === 4800 - return (days * 4800) / 146097; - } - - function monthsToDays(months) { - // the reverse of daysToMonths - return (months * 146097) / 4800; - } - - function as(units) { - if (!this.isValid()) { - return NaN; - } - var days, - months, - milliseconds = this._milliseconds; - - units = normalizeUnits(units); - - if (units === 'month' || units === 'quarter' || units === 'year') { - days = this._days + milliseconds / 864e5; - months = this._months + daysToMonths(days); - switch (units) { - case 'month': - return months; - case 'quarter': - return months / 3; - case 'year': - return months / 12; - } - } else { - // handle milliseconds separately because of floating point math errors (issue #1867) - days = this._days + Math.round(monthsToDays(this._months)); - switch (units) { - case 'week': - return days / 7 + milliseconds / 6048e5; - case 'day': - return days + milliseconds / 864e5; - case 'hour': - return days * 24 + milliseconds / 36e5; - case 'minute': - return days * 1440 + milliseconds / 6e4; - case 'second': - return days * 86400 + milliseconds / 1000; - // Math.floor prevents floating point math errors here - case 'millisecond': - return Math.floor(days * 864e5) + milliseconds; - default: - throw new Error('Unknown unit ' + units); - } - } - } - - function makeAs(alias) { - return function () { - return this.as(alias); - }; - } - - var asMilliseconds = makeAs('ms'), - asSeconds = makeAs('s'), - asMinutes = makeAs('m'), - asHours = makeAs('h'), - asDays = makeAs('d'), - asWeeks = makeAs('w'), - asMonths = makeAs('M'), - asQuarters = makeAs('Q'), - asYears = makeAs('y'), - valueOf$1 = asMilliseconds; - - function clone$1() { - return createDuration(this); - } - - function get$2(units) { - units = normalizeUnits(units); - return this.isValid() ? this[units + 's']() : NaN; - } - - function makeGetter(name) { - return function () { - return this.isValid() ? this._data[name] : NaN; - }; - } - - var milliseconds = makeGetter('milliseconds'), - seconds = makeGetter('seconds'), - minutes = makeGetter('minutes'), - hours = makeGetter('hours'), - days = makeGetter('days'), - months = makeGetter('months'), - years = makeGetter('years'); - - function weeks() { - return absFloor(this.days() / 7); - } - - var round = Math.round, - thresholds = { - ss: 44, // a few seconds to seconds - s: 45, // seconds to minute - m: 45, // minutes to hour - h: 22, // hours to day - d: 26, // days to month/week - w: null, // weeks to month - M: 11, // months to year - }; - - // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize - function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { - return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); - } - - function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) { - var duration = createDuration(posNegDuration).abs(), - seconds = round(duration.as('s')), - minutes = round(duration.as('m')), - hours = round(duration.as('h')), - days = round(duration.as('d')), - months = round(duration.as('M')), - weeks = round(duration.as('w')), - years = round(duration.as('y')), - a = - (seconds <= thresholds.ss && ['s', seconds]) || - (seconds < thresholds.s && ['ss', seconds]) || - (minutes <= 1 && ['m']) || - (minutes < thresholds.m && ['mm', minutes]) || - (hours <= 1 && ['h']) || - (hours < thresholds.h && ['hh', hours]) || - (days <= 1 && ['d']) || - (days < thresholds.d && ['dd', days]); - - if (thresholds.w != null) { - a = - a || - (weeks <= 1 && ['w']) || - (weeks < thresholds.w && ['ww', weeks]); - } - a = a || - (months <= 1 && ['M']) || - (months < thresholds.M && ['MM', months]) || - (years <= 1 && ['y']) || ['yy', years]; - - a[2] = withoutSuffix; - a[3] = +posNegDuration > 0; - a[4] = locale; - return substituteTimeAgo.apply(null, a); - } - - // This function allows you to set the rounding function for relative time strings - function getSetRelativeTimeRounding(roundingFunction) { - if (roundingFunction === undefined) { - return round; - } - if (typeof roundingFunction === 'function') { - round = roundingFunction; - return true; - } - return false; - } - - // This function allows you to set a threshold for relative time strings - function getSetRelativeTimeThreshold(threshold, limit) { - if (thresholds[threshold] === undefined) { - return false; - } - if (limit === undefined) { - return thresholds[threshold]; - } - thresholds[threshold] = limit; - if (threshold === 's') { - thresholds.ss = limit - 1; - } - return true; - } - - function humanize(argWithSuffix, argThresholds) { - if (!this.isValid()) { - return this.localeData().invalidDate(); - } - - var withSuffix = false, - th = thresholds, - locale, - output; - - if (typeof argWithSuffix === 'object') { - argThresholds = argWithSuffix; - argWithSuffix = false; - } - if (typeof argWithSuffix === 'boolean') { - withSuffix = argWithSuffix; - } - if (typeof argThresholds === 'object') { - th = Object.assign({}, thresholds, argThresholds); - if (argThresholds.s != null && argThresholds.ss == null) { - th.ss = argThresholds.s - 1; - } - } - - locale = this.localeData(); - output = relativeTime$1(this, !withSuffix, th, locale); - - if (withSuffix) { - output = locale.pastFuture(+this, output); - } - - return locale.postformat(output); - } - - var abs$1 = Math.abs; - - function sign(x) { - return (x > 0) - (x < 0) || +x; - } - - function toISOString$1() { - // for ISO strings we do not use the normal bubbling rules: - // * milliseconds bubble up until they become hours - // * days do not bubble at all - // * months bubble up until they become years - // This is because there is no context-free conversion between hours and days - // (think of clock changes) - // and also not between days and months (28-31 days per month) - if (!this.isValid()) { - return this.localeData().invalidDate(); - } - - var seconds = abs$1(this._milliseconds) / 1000, - days = abs$1(this._days), - months = abs$1(this._months), - minutes, - hours, - years, - s, - total = this.asSeconds(), - totalSign, - ymSign, - daysSign, - hmsSign; - - if (!total) { - // this is the same as C#'s (Noda) and python (isodate)... - // but not other JS (goog.date) - return 'P0D'; - } - - // 3600 seconds -> 60 minutes -> 1 hour - minutes = absFloor(seconds / 60); - hours = absFloor(minutes / 60); - seconds %= 60; - minutes %= 60; - - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; - - // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js - s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; - - totalSign = total < 0 ? '-' : ''; - ymSign = sign(this._months) !== sign(total) ? '-' : ''; - daysSign = sign(this._days) !== sign(total) ? '-' : ''; - hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; - - return ( - totalSign + - 'P' + - (years ? ymSign + years + 'Y' : '') + - (months ? ymSign + months + 'M' : '') + - (days ? daysSign + days + 'D' : '') + - (hours || minutes || seconds ? 'T' : '') + - (hours ? hmsSign + hours + 'H' : '') + - (minutes ? hmsSign + minutes + 'M' : '') + - (seconds ? hmsSign + s + 'S' : '') - ); - } - - var proto$2 = Duration.prototype; - - proto$2.isValid = isValid$1; - proto$2.abs = abs; - proto$2.add = add$1; - proto$2.subtract = subtract$1; - proto$2.as = as; - proto$2.asMilliseconds = asMilliseconds; - proto$2.asSeconds = asSeconds; - proto$2.asMinutes = asMinutes; - proto$2.asHours = asHours; - proto$2.asDays = asDays; - proto$2.asWeeks = asWeeks; - proto$2.asMonths = asMonths; - proto$2.asQuarters = asQuarters; - proto$2.asYears = asYears; - proto$2.valueOf = valueOf$1; - proto$2._bubble = bubble; - proto$2.clone = clone$1; - proto$2.get = get$2; - proto$2.milliseconds = milliseconds; - proto$2.seconds = seconds; - proto$2.minutes = minutes; - proto$2.hours = hours; - proto$2.days = days; - proto$2.weeks = weeks; - proto$2.months = months; - proto$2.years = years; - proto$2.humanize = humanize; - proto$2.toISOString = toISOString$1; - proto$2.toString = toISOString$1; - proto$2.toJSON = toISOString$1; - proto$2.locale = locale; - proto$2.localeData = localeData; - - proto$2.toIsoString = deprecate( - 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', - toISOString$1 - ); - proto$2.lang = lang; - - // FORMATTING - - addFormatToken('X', 0, 0, 'unix'); - addFormatToken('x', 0, 0, 'valueOf'); - - // PARSING - - addRegexToken('x', matchSigned); - addRegexToken('X', matchTimestamp); - addParseToken('X', function (input, array, config) { - config._d = new Date(parseFloat(input) * 1000); - }); - addParseToken('x', function (input, array, config) { - config._d = new Date(toInt(input)); - }); - - //! moment.js - - hooks.version = '2.30.1'; - - setHookCallback(createLocal); - - hooks.fn = proto; - hooks.min = min; - hooks.max = max; - hooks.now = now; - hooks.utc = createUTC; - hooks.unix = createUnix; - hooks.months = listMonths; - hooks.isDate = isDate; - hooks.locale = getSetGlobalLocale; - hooks.invalid = createInvalid; - hooks.duration = createDuration; - hooks.isMoment = isMoment; - hooks.weekdays = listWeekdays; - hooks.parseZone = createInZone; - hooks.localeData = getLocale; - hooks.isDuration = isDuration; - hooks.monthsShort = listMonthsShort; - hooks.weekdaysMin = listWeekdaysMin; - hooks.defineLocale = defineLocale; - hooks.updateLocale = updateLocale; - hooks.locales = listLocales; - hooks.weekdaysShort = listWeekdaysShort; - hooks.normalizeUnits = normalizeUnits; - hooks.relativeTimeRounding = getSetRelativeTimeRounding; - hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; - hooks.calendarFormat = getCalendarFormat; - hooks.prototype = proto; - - // currently HTML5 input type only supports 24-hour formats - hooks.HTML5_FMT = { - DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // - DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // - DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // - DATE: 'YYYY-MM-DD', // - TIME: 'HH:mm', // - TIME_SECONDS: 'HH:mm:ss', // - TIME_MS: 'HH:mm:ss.SSS', // - WEEK: 'GGGG-[W]WW', // - MONTH: 'YYYY-MM', // - }; - - return hooks; - -}))); - - -/***/ }), - -/***/ "./node_modules/object-assign/index.js": -/*!*********************************************!*\ - !*** ./node_modules/object-assign/index.js ***! - \*********************************************/ -/***/ ((module) => { - -"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ - - -/* eslint-disable no-unused-vars */ -var getOwnPropertySymbols = Object.getOwnPropertySymbols; -var hasOwnProperty = Object.prototype.hasOwnProperty; -var propIsEnumerable = Object.prototype.propertyIsEnumerable; - -function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); -} - -function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } -} - -module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; -}; - - -/***/ }), - -/***/ "./node_modules/process/browser.js": -/*!*****************************************!*\ - !*** ./node_modules/process/browser.js ***! - \*****************************************/ -/***/ ((module) => { - -// shim for using process in browser -var process = module.exports = {}; - -// cached from whatever global is present so that test runners that stub it -// don't break things. But we need to wrap it in a try catch in case it is -// wrapped in strict mode code which doesn't define any globals. It's inside a -// function because try/catches deoptimize in certain engines. - -var cachedSetTimeout; -var cachedClearTimeout; - -function defaultSetTimout() { - throw new Error('setTimeout has not been defined'); -} -function defaultClearTimeout () { - throw new Error('clearTimeout has not been defined'); -} -(function () { - try { - if (typeof setTimeout === 'function') { - cachedSetTimeout = setTimeout; - } else { - cachedSetTimeout = defaultSetTimout; - } - } catch (e) { - cachedSetTimeout = defaultSetTimout; - } - try { - if (typeof clearTimeout === 'function') { - cachedClearTimeout = clearTimeout; - } else { - cachedClearTimeout = defaultClearTimeout; - } - } catch (e) { - cachedClearTimeout = defaultClearTimeout; - } -} ()) -function runTimeout(fun) { - if (cachedSetTimeout === setTimeout) { - //normal enviroments in sane situations - return setTimeout(fun, 0); - } - // if setTimeout wasn't available but was latter defined - if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { - cachedSetTimeout = setTimeout; - return setTimeout(fun, 0); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedSetTimeout(fun, 0); - } catch(e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedSetTimeout.call(null, fun, 0); - } catch(e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error - return cachedSetTimeout.call(this, fun, 0); - } - } - - -} -function runClearTimeout(marker) { - if (cachedClearTimeout === clearTimeout) { - //normal enviroments in sane situations - return clearTimeout(marker); - } - // if clearTimeout wasn't available but was latter defined - if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { - cachedClearTimeout = clearTimeout; - return clearTimeout(marker); - } - try { - // when when somebody has screwed with setTimeout but no I.E. maddness - return cachedClearTimeout(marker); - } catch (e){ - try { - // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally - return cachedClearTimeout.call(null, marker); - } catch (e){ - // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error. - // Some versions of I.E. have different rules for clearTimeout vs setTimeout - return cachedClearTimeout.call(this, marker); - } - } - - - -} -var queue = []; -var draining = false; -var currentQueue; -var queueIndex = -1; - -function cleanUpNextTick() { - if (!draining || !currentQueue) { - return; - } - draining = false; - if (currentQueue.length) { - queue = currentQueue.concat(queue); - } else { - queueIndex = -1; - } - if (queue.length) { - drainQueue(); - } -} - -function drainQueue() { - if (draining) { - return; - } - var timeout = runTimeout(cleanUpNextTick); - draining = true; - - var len = queue.length; - while(len) { - currentQueue = queue; - queue = []; - while (++queueIndex < len) { - if (currentQueue) { - currentQueue[queueIndex].run(); - } - } - queueIndex = -1; - len = queue.length; - } - currentQueue = null; - draining = false; - runClearTimeout(timeout); -} - -process.nextTick = function (fun) { - var args = new Array(arguments.length - 1); - if (arguments.length > 1) { - for (var i = 1; i < arguments.length; i++) { - args[i - 1] = arguments[i]; - } - } - queue.push(new Item(fun, args)); - if (queue.length === 1 && !draining) { - runTimeout(drainQueue); - } -}; - -// v8 likes predictible objects -function Item(fun, array) { - this.fun = fun; - this.array = array; -} -Item.prototype.run = function () { - this.fun.apply(null, this.array); -}; -process.title = 'browser'; -process.browser = true; -process.env = {}; -process.argv = []; -process.version = ''; // empty string to avoid regexp issues -process.versions = {}; - -function noop() {} - -process.on = noop; -process.addListener = noop; -process.once = noop; -process.off = noop; -process.removeListener = noop; -process.removeAllListeners = noop; -process.emit = noop; -process.prependListener = noop; -process.prependOnceListener = noop; - -process.listeners = function (name) { return [] } - -process.binding = function (name) { - throw new Error('process.binding is not supported'); -}; - -process.cwd = function () { return '/' }; -process.chdir = function (dir) { - throw new Error('process.chdir is not supported'); -}; -process.umask = function() { return 0; }; - - -/***/ }), - -/***/ "./node_modules/prop-types/checkPropTypes.js": -/*!***************************************************!*\ - !*** ./node_modules/prop-types/checkPropTypes.js ***! - \***************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var printWarning = function() {}; - -if (true) { - var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js"); - var loggedTypeFailures = {}; - var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js"); - - printWarning = function(text) { - var message = 'Warning: ' + text; - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) { /**/ } - }; -} - -/** - * Assert that the values match with the type specs. - * Error messages are memorized and will only be shown once. - * - * @param {object} typeSpecs Map of name to a ReactPropType - * @param {object} values Runtime values that need to be type-checked - * @param {string} location e.g. "prop", "context", "child context" - * @param {string} componentName Name of the component for error messages. - * @param {?Function} getStack Returns the component stack. - * @private - */ -function checkPropTypes(typeSpecs, values, location, componentName, getStack) { - if (true) { - for (var typeSpecName in typeSpecs) { - if (has(typeSpecs, typeSpecName)) { - var error; - // Prop type validation may throw. In case they do, we don't want to - // fail the render phase where it didn't fail before. So we log it. - // After these have been cleaned up, we'll let them throw. - try { - // This is intentionally an invariant that gets caught. It's the same - // behavior as without this statement except with a better message. - if (typeof typeSpecs[typeSpecName] !== 'function') { - var err = Error( - (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + - 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + - 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.' - ); - err.name = 'Invariant Violation'; - throw err; - } - error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); - } catch (ex) { - error = ex; - } - if (error && !(error instanceof Error)) { - printWarning( - (componentName || 'React class') + ': type specification of ' + - location + ' `' + typeSpecName + '` is invalid; the type checker ' + - 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + - 'You may have forgotten to pass an argument to the type checker ' + - 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + - 'shape all require an argument).' - ); - } - if (error instanceof Error && !(error.message in loggedTypeFailures)) { - // Only monitor this failure once because there tends to be a lot of the - // same error. - loggedTypeFailures[error.message] = true; - - var stack = getStack ? getStack() : ''; - - printWarning( - 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '') - ); - } - } - } - } -} - -/** - * Resets warning cache when testing. - * - * @private - */ -checkPropTypes.resetWarningCache = function() { - if (true) { - loggedTypeFailures = {}; - } -} - -module.exports = checkPropTypes; - - -/***/ }), - -/***/ "./node_modules/prop-types/factoryWithTypeCheckers.js": -/*!************************************************************!*\ - !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***! - \************************************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js"); -var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js"); - -var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js"); -var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js"); -var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js"); - -var printWarning = function() {}; - -if (true) { - printWarning = function(text) { - var message = 'Warning: ' + text; - if (typeof console !== 'undefined') { - console.error(message); - } - try { - // --- Welcome to debugging React --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message); - } catch (x) {} - }; -} - -function emptyFunctionThatReturnsNull() { - return null; -} - -module.exports = function(isValidElement, throwOnDirectAccess) { - /* global Symbol */ - var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; - var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. - - /** - * Returns the iterator method function contained on the iterable object. - * - * Be sure to invoke the function with the iterable as context: - * - * var iteratorFn = getIteratorFn(myIterable); - * if (iteratorFn) { - * var iterator = iteratorFn.call(myIterable); - * ... - * } - * - * @param {?object} maybeIterable - * @return {?function} - */ - function getIteratorFn(maybeIterable) { - var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); - if (typeof iteratorFn === 'function') { - return iteratorFn; - } - } - - /** - * Collection of methods that allow declaration and validation of props that are - * supplied to React components. Example usage: - * - * var Props = require('ReactPropTypes'); - * var MyArticle = React.createClass({ - * propTypes: { - * // An optional string prop named "description". - * description: Props.string, - * - * // A required enum prop named "category". - * category: Props.oneOf(['News','Photos']).isRequired, - * - * // A prop named "dialog" that requires an instance of Dialog. - * dialog: Props.instanceOf(Dialog).isRequired - * }, - * render: function() { ... } - * }); - * - * A more formal specification of how these methods are used: - * - * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) - * decl := ReactPropTypes.{type}(.isRequired)? - * - * Each and every declaration produces a function with the same signature. This - * allows the creation of custom validation functions. For example: - * - * var MyLink = React.createClass({ - * propTypes: { - * // An optional string or URI prop named "href". - * href: function(props, propName, componentName) { - * var propValue = props[propName]; - * if (propValue != null && typeof propValue !== 'string' && - * !(propValue instanceof URI)) { - * return new Error( - * 'Expected a string or an URI for ' + propName + ' in ' + - * componentName - * ); - * } - * } - * }, - * render: function() {...} - * }); - * - * @internal - */ - - var ANONYMOUS = '<>'; - - // Important! - // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. - var ReactPropTypes = { - array: createPrimitiveTypeChecker('array'), - bigint: createPrimitiveTypeChecker('bigint'), - bool: createPrimitiveTypeChecker('boolean'), - func: createPrimitiveTypeChecker('function'), - number: createPrimitiveTypeChecker('number'), - object: createPrimitiveTypeChecker('object'), - string: createPrimitiveTypeChecker('string'), - symbol: createPrimitiveTypeChecker('symbol'), - - any: createAnyTypeChecker(), - arrayOf: createArrayOfTypeChecker, - element: createElementTypeChecker(), - elementType: createElementTypeTypeChecker(), - instanceOf: createInstanceTypeChecker, - node: createNodeChecker(), - objectOf: createObjectOfTypeChecker, - oneOf: createEnumTypeChecker, - oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker, - exact: createStrictShapeTypeChecker, - }; - - /** - * inlined Object.is polyfill to avoid requiring consumers ship their own - * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is - */ - /*eslint-disable no-self-compare*/ - function is(x, y) { - // SameValue algorithm - if (x === y) { - // Steps 1-5, 7-10 - // Steps 6.b-6.e: +0 != -0 - return x !== 0 || 1 / x === 1 / y; - } else { - // Step 6.a: NaN == NaN - return x !== x && y !== y; - } - } - /*eslint-enable no-self-compare*/ - - /** - * We use an Error-like object for backward compatibility as people may call - * PropTypes directly and inspect their output. However, we don't use real - * Errors anymore. We don't inspect their stack anyway, and creating them - * is prohibitively expensive if they are created too often, such as what - * happens in oneOfType() for any type before the one that matched. - */ - function PropTypeError(message, data) { - this.message = message; - this.data = data && typeof data === 'object' ? data: {}; - this.stack = ''; - } - // Make `instanceof Error` still work for returned errors. - PropTypeError.prototype = Error.prototype; - - function createChainableTypeChecker(validate) { - if (true) { - var manualPropTypeCallCache = {}; - var manualPropTypeWarningCount = 0; - } - function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { - componentName = componentName || ANONYMOUS; - propFullName = propFullName || propName; - - if (secret !== ReactPropTypesSecret) { - if (throwOnDirectAccess) { - // New behavior only for users of `prop-types` package - var err = new Error( - 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + - 'Use `PropTypes.checkPropTypes()` to call them. ' + - 'Read more at http://fb.me/use-check-prop-types' - ); - err.name = 'Invariant Violation'; - throw err; - } else if ( true && typeof console !== 'undefined') { - // Old behavior for people using React.PropTypes - var cacheKey = componentName + ':' + propName; - if ( - !manualPropTypeCallCache[cacheKey] && - // Avoid spamming the console because they are often not actionable except for lib authors - manualPropTypeWarningCount < 3 - ) { - printWarning( - 'You are manually calling a React.PropTypes validation ' + - 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + - 'and will throw in the standalone `prop-types` package. ' + - 'You may be seeing this warning due to a third-party PropTypes ' + - 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.' - ); - manualPropTypeCallCache[cacheKey] = true; - manualPropTypeWarningCount++; - } - } - } - if (props[propName] == null) { - if (isRequired) { - if (props[propName] === null) { - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); - } - return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); - } - return null; - } else { - return validate(props, propName, componentName, location, propFullName); - } - } - - var chainedCheckType = checkType.bind(null, false); - chainedCheckType.isRequired = checkType.bind(null, true); - - return chainedCheckType; - } - - function createPrimitiveTypeChecker(expectedType) { - function validate(props, propName, componentName, location, propFullName, secret) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== expectedType) { - // `propValue` being instance of, say, date/regexp, pass the 'object' - // check, but we can offer a more precise error message here rather than - // 'of type `object`'. - var preciseType = getPreciseType(propValue); - - return new PropTypeError( - 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), - {expectedType: expectedType} - ); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createAnyTypeChecker() { - return createChainableTypeChecker(emptyFunctionThatReturnsNull); - } - - function createArrayOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); - } - var propValue = props[propName]; - if (!Array.isArray(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); - } - for (var i = 0; i < propValue.length; i++) { - var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createElementTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!isValidElement(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createElementTypeTypeChecker() { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - if (!ReactIs.isValidElementType(propValue)) { - var propType = getPropType(propValue); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createInstanceTypeChecker(expectedClass) { - function validate(props, propName, componentName, location, propFullName) { - if (!(props[propName] instanceof expectedClass)) { - var expectedClassName = expectedClass.name || ANONYMOUS; - var actualClassName = getClassName(props[propName]); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createEnumTypeChecker(expectedValues) { - if (!Array.isArray(expectedValues)) { - if (true) { - if (arguments.length > 1) { - printWarning( - 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + - 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).' - ); - } else { - printWarning('Invalid argument supplied to oneOf, expected an array.'); - } - } - return emptyFunctionThatReturnsNull; - } - - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - for (var i = 0; i < expectedValues.length; i++) { - if (is(propValue, expectedValues[i])) { - return null; - } - } - - var valuesString = JSON.stringify(expectedValues, function replacer(key, value) { - var type = getPreciseType(value); - if (type === 'symbol') { - return String(value); - } - return value; - }); - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); - } - return createChainableTypeChecker(validate); - } - - function createObjectOfTypeChecker(typeChecker) { - function validate(props, propName, componentName, location, propFullName) { - if (typeof typeChecker !== 'function') { - return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); - } - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); - } - for (var key in propValue) { - if (has(propValue, key)) { - var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error instanceof Error) { - return error; - } - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createUnionTypeChecker(arrayOfTypeCheckers) { - if (!Array.isArray(arrayOfTypeCheckers)) { - true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : 0; - return emptyFunctionThatReturnsNull; - } - - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - if (typeof checker !== 'function') { - printWarning( - 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + - 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.' - ); - return emptyFunctionThatReturnsNull; - } - } - - function validate(props, propName, componentName, location, propFullName) { - var expectedTypes = []; - for (var i = 0; i < arrayOfTypeCheckers.length; i++) { - var checker = arrayOfTypeCheckers[i]; - var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret); - if (checkerResult == null) { - return null; - } - if (checkerResult.data && has(checkerResult.data, 'expectedType')) { - expectedTypes.push(checkerResult.data.expectedType); - } - } - var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': ''; - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.')); - } - return createChainableTypeChecker(validate); - } - - function createNodeChecker() { - function validate(props, propName, componentName, location, propFullName) { - if (!isNode(props[propName])) { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); - } - return null; - } - return createChainableTypeChecker(validate); - } - - function invalidValidatorError(componentName, location, propFullName, key, type) { - return new PropTypeError( - (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + - 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.' - ); - } - - function createShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - for (var key in shapeTypes) { - var checker = shapeTypes[key]; - if (typeof checker !== 'function') { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - return createChainableTypeChecker(validate); - } - - function createStrictShapeTypeChecker(shapeTypes) { - function validate(props, propName, componentName, location, propFullName) { - var propValue = props[propName]; - var propType = getPropType(propValue); - if (propType !== 'object') { - return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); - } - // We need to check all keys in case some are required but missing from props. - var allKeys = assign({}, props[propName], shapeTypes); - for (var key in allKeys) { - var checker = shapeTypes[key]; - if (has(shapeTypes, key) && typeof checker !== 'function') { - return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker)); - } - if (!checker) { - return new PropTypeError( - 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + - '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + - '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') - ); - } - var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); - if (error) { - return error; - } - } - return null; - } - - return createChainableTypeChecker(validate); - } - - function isNode(propValue) { - switch (typeof propValue) { - case 'number': - case 'string': - case 'undefined': - return true; - case 'boolean': - return !propValue; - case 'object': - if (Array.isArray(propValue)) { - return propValue.every(isNode); - } - if (propValue === null || isValidElement(propValue)) { - return true; - } - - var iteratorFn = getIteratorFn(propValue); - if (iteratorFn) { - var iterator = iteratorFn.call(propValue); - var step; - if (iteratorFn !== propValue.entries) { - while (!(step = iterator.next()).done) { - if (!isNode(step.value)) { - return false; - } - } - } else { - // Iterator will provide entry [k,v] tuples rather than values. - while (!(step = iterator.next()).done) { - var entry = step.value; - if (entry) { - if (!isNode(entry[1])) { - return false; - } - } - } - } - } else { - return false; - } - - return true; - default: - return false; - } - } - - function isSymbol(propType, propValue) { - // Native Symbol. - if (propType === 'symbol') { - return true; - } - - // falsy value can't be a Symbol - if (!propValue) { - return false; - } - - // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' - if (propValue['@@toStringTag'] === 'Symbol') { - return true; - } - - // Fallback for non-spec compliant Symbols which are polyfilled. - if (typeof Symbol === 'function' && propValue instanceof Symbol) { - return true; - } - - return false; - } - - // Equivalent of `typeof` but with special handling for array and regexp. - function getPropType(propValue) { - var propType = typeof propValue; - if (Array.isArray(propValue)) { - return 'array'; - } - if (propValue instanceof RegExp) { - // Old webkits (at least until Android 4.0) return 'function' rather than - // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ - // passes PropTypes.object. - return 'object'; - } - if (isSymbol(propType, propValue)) { - return 'symbol'; - } - return propType; - } - - // This handles more types than `getPropType`. Only used for error messages. - // See `createPrimitiveTypeChecker`. - function getPreciseType(propValue) { - if (typeof propValue === 'undefined' || propValue === null) { - return '' + propValue; - } - var propType = getPropType(propValue); - if (propType === 'object') { - if (propValue instanceof Date) { - return 'date'; - } else if (propValue instanceof RegExp) { - return 'regexp'; - } - } - return propType; - } - - // Returns a string that is postfixed to a warning about an invalid type. - // For example, "undefined" or "of type array" - function getPostfixForTypeWarning(value) { - var type = getPreciseType(value); - switch (type) { - case 'array': - case 'object': - return 'an ' + type; - case 'boolean': - case 'date': - case 'regexp': - return 'a ' + type; - default: - return type; - } - } - - // Returns class name of the object, if any. - function getClassName(propValue) { - if (!propValue.constructor || !propValue.constructor.name) { - return ANONYMOUS; - } - return propValue.constructor.name; - } - - ReactPropTypes.checkPropTypes = checkPropTypes; - ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache; - ReactPropTypes.PropTypes = ReactPropTypes; - - return ReactPropTypes; -}; - - -/***/ }), - -/***/ "./node_modules/prop-types/index.js": -/*!******************************************!*\ - !*** ./node_modules/prop-types/index.js ***! - \******************************************/ -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -if (true) { - var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js"); - - // By explicitly using `prop-types` you are opting into new development behavior. - // http://fb.me/prop-types-in-prod - var throwOnDirectAccess = true; - module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess); -} else {} - - -/***/ }), - -/***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js": -/*!*************************************************************!*\ - !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***! - \*************************************************************/ -/***/ ((module) => { - -"use strict"; -/** - * Copyright (c) 2013-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; - -module.exports = ReactPropTypesSecret; - - -/***/ }), - -/***/ "./node_modules/prop-types/lib/has.js": -/*!********************************************!*\ - !*** ./node_modules/prop-types/lib/has.js ***! - \********************************************/ -/***/ ((module) => { - -module.exports = Function.call.bind(Object.prototype.hasOwnProperty); - - -/***/ }), - -/***/ "./node_modules/react-dom/cjs/react-dom.development.js": -/*!*************************************************************!*\ - !*** ./node_modules/react-dom/cjs/react-dom.development.js ***! - \*************************************************************/ -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -/** - * @license React - * react-dom.development.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - - - -if (true) { - (function() { - - 'use strict'; - -/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ -if ( - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' && - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === - 'function' -) { - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); -} - var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); -var Scheduler = __webpack_require__(/*! scheduler */ "./node_modules/scheduler/index.js"); - -var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - -var suppressWarning = false; -function setSuppressWarning(newSuppressWarning) { - { - suppressWarning = newSuppressWarning; - } -} // In DEV, calls to console.warn and console.error get replaced -// by calls to these methods by a Babel plugin. -// -// In PROD (or in packages without access to React internals), -// they are left as they are instead. - -function warn(format) { - { - if (!suppressWarning) { - for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - args[_key - 1] = arguments[_key]; - } - - printWarning('warn', format, args); - } - } -} -function error(format) { - { - if (!suppressWarning) { - for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { - args[_key2 - 1] = arguments[_key2]; - } - - printWarning('error', format, args); - } - } -} - -function printWarning(level, format, args) { - // When changing this logic, you might want to also - // update consoleWithStackDev.www.js as well. - { - var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; - var stack = ReactDebugCurrentFrame.getStackAddendum(); - - if (stack !== '') { - format += '%s'; - args = args.concat([stack]); - } // eslint-disable-next-line react-internal/safe-string-coercion - - - var argsWithFormat = args.map(function (item) { - return String(item); - }); // Careful: RN currently depends on this prefix - - argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it - // breaks IE9: https://github.com/facebook/react/issues/13610 - // eslint-disable-next-line react-internal/no-production-logging - - Function.prototype.apply.call(console[level], console, argsWithFormat); - } -} - -var FunctionComponent = 0; -var ClassComponent = 1; -var IndeterminateComponent = 2; // Before we know whether it is function or class - -var HostRoot = 3; // Root of a host tree. Could be nested inside another node. - -var HostPortal = 4; // A subtree. Could be an entry point to a different renderer. - -var HostComponent = 5; -var HostText = 6; -var Fragment = 7; -var Mode = 8; -var ContextConsumer = 9; -var ContextProvider = 10; -var ForwardRef = 11; -var Profiler = 12; -var SuspenseComponent = 13; -var MemoComponent = 14; -var SimpleMemoComponent = 15; -var LazyComponent = 16; -var IncompleteClassComponent = 17; -var DehydratedFragment = 18; -var SuspenseListComponent = 19; -var ScopeComponent = 21; -var OffscreenComponent = 22; -var LegacyHiddenComponent = 23; -var CacheComponent = 24; -var TracingMarkerComponent = 25; - -// ----------------------------------------------------------------------------- - -var enableClientRenderFallbackOnTextMismatch = true; // TODO: Need to review this code one more time before landing -// the react-reconciler package. - -var enableNewReconciler = false; // Support legacy Primer support on internal FB www - -var enableLazyContextPropagation = false; // FB-only usage. The new API has different semantics. - -var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber - -var enableSuspenseAvoidThisFallback = false; // Enables unstable_avoidThisFallback feature in Fizz -// React DOM Chopping Block -// -// Similar to main Chopping Block but only flags related to React DOM. These are -// grouped because we will likely batch all of them into a single major release. -// ----------------------------------------------------------------------------- -// Disable support for comment nodes as React DOM containers. Already disabled -// in open source, but www codebase still relies on it. Need to remove. - -var disableCommentsAsDOMContainers = true; // Disable javascript: URL strings in href for XSS protection. -// and client rendering, mostly to allow JSX attributes to apply to the custom -// element's object properties instead of only HTML attributes. -// https://github.com/facebook/react/issues/11347 - -var enableCustomElementPropertySupport = false; // Disables children for