PluginProbe
Elementor Website Builder – more than just a page builder / 3.33.0-beta1
Elementor Website Builder – more than just a page builder v3.33.0-beta1
4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 All 457 releases
← All changes | assets/js/web-cli.js +3393 -15 4.2.0 → 3.33.0-beta1 View file →
@@ -1,4 +1,4 @@
1 1 /******/ (() => { // webpackBootstrap
2 2 /******/ var __webpack_modules__ = ({
3 3
4 4 /***/ "../assets/dev/js/editor/utils/is-instanceof.js":
@@ -31,10 +31,10 @@
31 31 var _iterator = _createForOfIteratorHelper(constructors),
32 32 _step;
33 33 try {
34 34 for (_iterator.s(); !(_step = _iterator.n()).done;) {
35 - var constructor = _step.value;
36 - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) {
35 + var _constructor = _step.value;
36 + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
37 37 return true;
38 38 }
39 39 }
40 40 } catch (err) {
@@ -4329,9 +4329,9 @@
4329 4329 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
4330 4330 var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
4331 4331 var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
4332 4332 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
4333 -var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "@reduxjs/toolkit");
4333 +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
4334 4334 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4335 4335 function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4336 4336 /**
4337 4337 * @typedef {import('@reduxjs/toolkit').Slice} Slice
@@ -5903,9 +5903,9 @@
5903 5903 var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
5904 5904 var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
5905 5905 var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
5906 5906 var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js"));
5907 -var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "@reduxjs/toolkit");
5907 +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
5908 5908 var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js"));
5909 5909 var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js"));
5910 5910 var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
5911 5911 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -7675,8 +7675,145 @@
7675 7675 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
7676 7676
7677 7677 /***/ }),
7678 7678
7679 +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js":
7680 +/*!********************************************************************!*\
7681 + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
7682 + \********************************************************************/
7683 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7684 +
7685 +"use strict";
7686 +__webpack_require__.r(__webpack_exports__);
7687 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
7688 +/* harmony export */ "default": () => (/* binding */ _defineProperty)
7689 +/* harmony export */ });
7690 +/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
7691 +
7692 +function _defineProperty(e, r, t) {
7693 + return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
7694 + value: t,
7695 + enumerable: !0,
7696 + configurable: !0,
7697 + writable: !0
7698 + }) : e[r] = t, e;
7699 +}
7700 +
7701 +
7702 +/***/ }),
7703 +
7704 +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
7705 +/*!*******************************************************************!*\
7706 + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
7707 + \*******************************************************************/
7708 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7709 +
7710 +"use strict";
7711 +__webpack_require__.r(__webpack_exports__);
7712 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
7713 +/* harmony export */ "default": () => (/* binding */ _objectSpread2)
7714 +/* harmony export */ });
7715 +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
7716 +
7717 +function ownKeys(e, r) {
7718 + var t = Object.keys(e);
7719 + if (Object.getOwnPropertySymbols) {
7720 + var o = Object.getOwnPropertySymbols(e);
7721 + r && (o = o.filter(function (r) {
7722 + return Object.getOwnPropertyDescriptor(e, r).enumerable;
7723 + })), t.push.apply(t, o);
7724 + }
7725 + return t;
7726 +}
7727 +function _objectSpread2(e) {
7728 + for (var r = 1; r < arguments.length; r++) {
7729 + var t = null != arguments[r] ? arguments[r] : {};
7730 + r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
7731 + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
7732 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
7733 + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
7734 + });
7735 + }
7736 + return e;
7737 +}
7738 +
7739 +
7740 +/***/ }),
7741 +
7742 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
7743 +/*!*****************************************************************!*\
7744 + !*** ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
7745 + \*****************************************************************/
7746 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7747 +
7748 +"use strict";
7749 +__webpack_require__.r(__webpack_exports__);
7750 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
7751 +/* harmony export */ "default": () => (/* binding */ toPrimitive)
7752 +/* harmony export */ });
7753 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
7754 +
7755 +function toPrimitive(t, r) {
7756 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
7757 + var e = t[Symbol.toPrimitive];
7758 + if (void 0 !== e) {
7759 + var i = e.call(t, r || "default");
7760 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
7761 + throw new TypeError("@@toPrimitive must return a primitive value.");
7762 + }
7763 + return ("string" === r ? String : Number)(t);
7764 +}
7765 +
7766 +
7767 +/***/ }),
7768 +
7769 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
7770 +/*!*******************************************************************!*\
7771 + !*** ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
7772 + \*******************************************************************/
7773 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7774 +
7775 +"use strict";
7776 +__webpack_require__.r(__webpack_exports__);
7777 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
7778 +/* harmony export */ "default": () => (/* binding */ toPropertyKey)
7779 +/* harmony export */ });
7780 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
7781 +/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
7782 +
7783 +
7784 +function toPropertyKey(t) {
7785 + var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
7786 + return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + "";
7787 +}
7788 +
7789 +
7790 +/***/ }),
7791 +
7792 +/***/ "../node_modules/@babel/runtime/helpers/esm/typeof.js":
7793 +/*!************************************************************!*\
7794 + !*** ../node_modules/@babel/runtime/helpers/esm/typeof.js ***!
7795 + \************************************************************/
7796 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7797 +
7798 +"use strict";
7799 +__webpack_require__.r(__webpack_exports__);
7800 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
7801 +/* harmony export */ "default": () => (/* binding */ _typeof)
7802 +/* harmony export */ });
7803 +function _typeof(o) {
7804 + "@babel/helpers - typeof";
7805 +
7806 + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7807 + return typeof o;
7808 + } : function (o) {
7809 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
7810 + }, _typeof(o);
7811 +}
7812 +
7813 +
7814 +/***/ }),
7815 +
7679 7816 /***/ "../node_modules/@babel/runtime/helpers/get.js":
7680 7817 /*!*****************************************************!*\
7681 7818 !*** ../node_modules/@babel/runtime/helpers/get.js ***!
7682 7819 \*****************************************************/
@@ -8049,19 +8186,21 @@
8049 8186 } catch (e) {
8050 8187 i = 0;
8051 8188 }
8052 8189 module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) {
8053 - function o(r, n) {
8054 - _regeneratorDefine(e, r, function (e) {
8055 - return this._invoke(r, n, e);
8056 - });
8057 - }
8058 - r ? i ? i(e, r, {
8190 + if (r) i ? i(e, r, {
8059 8191 value: n,
8060 8192 enumerable: !t,
8061 8193 configurable: !t,
8062 8194 writable: !t
8063 - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
8195 + }) : e[r] = n;else {
8196 + var o = function o(r, n) {
8197 + _regeneratorDefine(e, r, function (e) {
8198 + return this._invoke(r, n, e);
8199 + });
8200 + };
8201 + o("next", 0), o("throw", 1), o("return", 2);
8202 + }
8064 8203 }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t);
8065 8204 }
8066 8205 module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports;
8067 8206
@@ -8381,17 +8520,3215 @@
8381 8520
8382 8521
8383 8522 /***/ }),
8384 8523
8385 -/***/ "@reduxjs/toolkit":
8524 +/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":
8525 +/*!******************************************************************!*\
8526 + !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***!
8527 + \******************************************************************/
8528 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8529 +
8530 +"use strict";
8531 +__webpack_require__.r(__webpack_exports__);
8532 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
8533 +/* harmony export */ EnhancerArray: () => (/* binding */ EnhancerArray),
8534 +/* harmony export */ MiddlewareArray: () => (/* binding */ MiddlewareArray),
8535 +/* harmony export */ SHOULD_AUTOBATCH: () => (/* binding */ SHOULD_AUTOBATCH),
8536 +/* harmony export */ TaskAbortError: () => (/* binding */ TaskAbortError),
8537 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes),
8538 +/* harmony export */ addListener: () => (/* binding */ addListener),
8539 +/* harmony export */ applyMiddleware: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware),
8540 +/* harmony export */ autoBatchEnhancer: () => (/* binding */ autoBatchEnhancer),
8541 +/* harmony export */ bindActionCreators: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators),
8542 +/* harmony export */ clearAllListeners: () => (/* binding */ clearAllListeners),
8543 +/* harmony export */ combineReducers: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers),
8544 +/* harmony export */ compose: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose),
8545 +/* harmony export */ configureStore: () => (/* binding */ configureStore),
8546 +/* harmony export */ createAction: () => (/* binding */ createAction),
8547 +/* harmony export */ createActionCreatorInvariantMiddleware: () => (/* binding */ createActionCreatorInvariantMiddleware),
8548 +/* harmony export */ createAsyncThunk: () => (/* binding */ createAsyncThunk),
8549 +/* harmony export */ createDraftSafeSelector: () => (/* binding */ createDraftSafeSelector),
8550 +/* harmony export */ createEntityAdapter: () => (/* binding */ createEntityAdapter),
8551 +/* harmony export */ createImmutableStateInvariantMiddleware: () => (/* binding */ createImmutableStateInvariantMiddleware),
8552 +/* harmony export */ createListenerMiddleware: () => (/* binding */ createListenerMiddleware),
8553 +/* harmony export */ createNextState: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]),
8554 +/* harmony export */ createReducer: () => (/* binding */ createReducer),
8555 +/* harmony export */ createSelector: () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector),
8556 +/* harmony export */ createSerializableStateInvariantMiddleware: () => (/* binding */ createSerializableStateInvariantMiddleware),
8557 +/* harmony export */ createSlice: () => (/* binding */ createSlice),
8558 +/* harmony export */ createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore),
8559 +/* harmony export */ current: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current),
8560 +/* harmony export */ findNonSerializableValue: () => (/* binding */ findNonSerializableValue),
8561 +/* harmony export */ freeze: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze),
8562 +/* harmony export */ getDefaultMiddleware: () => (/* binding */ getDefaultMiddleware),
8563 +/* harmony export */ getType: () => (/* binding */ getType),
8564 +/* harmony export */ isAction: () => (/* binding */ isAction),
8565 +/* harmony export */ isActionCreator: () => (/* binding */ isActionCreator),
8566 +/* harmony export */ isAllOf: () => (/* binding */ isAllOf),
8567 +/* harmony export */ isAnyOf: () => (/* binding */ isAnyOf),
8568 +/* harmony export */ isAsyncThunkAction: () => (/* binding */ isAsyncThunkAction),
8569 +/* harmony export */ isDraft: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft),
8570 +/* harmony export */ isFluxStandardAction: () => (/* binding */ isFSA),
8571 +/* harmony export */ isFulfilled: () => (/* binding */ isFulfilled),
8572 +/* harmony export */ isImmutableDefault: () => (/* binding */ isImmutableDefault),
8573 +/* harmony export */ isPending: () => (/* binding */ isPending),
8574 +/* harmony export */ isPlain: () => (/* binding */ isPlain),
8575 +/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject),
8576 +/* harmony export */ isRejected: () => (/* binding */ isRejected),
8577 +/* harmony export */ isRejectedWithValue: () => (/* binding */ isRejectedWithValue),
8578 +/* harmony export */ legacy_createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.legacy_createStore),
8579 +/* harmony export */ miniSerializeError: () => (/* binding */ miniSerializeError),
8580 +/* harmony export */ nanoid: () => (/* binding */ nanoid),
8581 +/* harmony export */ original: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original),
8582 +/* harmony export */ prepareAutoBatched: () => (/* binding */ prepareAutoBatched),
8583 +/* harmony export */ removeListener: () => (/* binding */ removeListener),
8584 +/* harmony export */ unwrapResult: () => (/* binding */ unwrapResult)
8585 +/* harmony export */ });
8586 +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs");
8587 +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js");
8588 +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js");
8589 +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js");
8590 +var __extends = (undefined && undefined.__extends) || (function () {
8591 + var extendStatics = function (d, b) {
8592 + extendStatics = Object.setPrototypeOf ||
8593 + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
8594 + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8595 + return extendStatics(d, b);
8596 + };
8597 + return function (d, b) {
8598 + if (typeof b !== "function" && b !== null)
8599 + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
8600 + extendStatics(d, b);
8601 + function __() { this.constructor = d; }
8602 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
8603 + };
8604 +})();
8605 +var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
8606 + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
8607 + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
8608 + function verb(n) { return function (v) { return step([n, v]); }; }
8609 + function step(op) {
8610 + if (f) throw new TypeError("Generator is already executing.");
8611 + while (_) try {
8612 + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
8613 + if (y = 0, t) op = [op[0] & 2, t.value];
8614 + switch (op[0]) {
8615 + case 0: case 1: t = op; break;
8616 + case 4: _.label++; return { value: op[1], done: false };
8617 + case 5: _.label++; y = op[1]; op = [0]; continue;
8618 + case 7: op = _.ops.pop(); _.trys.pop(); continue;
8619 + default:
8620 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
8621 + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
8622 + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
8623 + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
8624 + if (t[2]) _.ops.pop();
8625 + _.trys.pop(); continue;
8626 + }
8627 + op = body.call(thisArg, _);
8628 + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
8629 + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
8630 + }
8631 +};
8632 +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
8633 + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
8634 + to[j] = from[i];
8635 + return to;
8636 +};
8637 +var __defProp = Object.defineProperty;
8638 +var __defProps = Object.defineProperties;
8639 +var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8640 +var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8641 +var __hasOwnProp = Object.prototype.hasOwnProperty;
8642 +var __propIsEnum = Object.prototype.propertyIsEnumerable;
8643 +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
8644 +var __spreadValues = function (a, b) {
8645 + for (var prop in b || (b = {}))
8646 + if (__hasOwnProp.call(b, prop))
8647 + __defNormalProp(a, prop, b[prop]);
8648 + if (__getOwnPropSymbols)
8649 + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
8650 + var prop = _c[_i];
8651 + if (__propIsEnum.call(b, prop))
8652 + __defNormalProp(a, prop, b[prop]);
8653 + }
8654 + return a;
8655 +};
8656 +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
8657 +var __async = function (__this, __arguments, generator) {
8658 + return new Promise(function (resolve, reject) {
8659 + var fulfilled = function (value) {
8660 + try {
8661 + step(generator.next(value));
8662 + }
8663 + catch (e) {
8664 + reject(e);
8665 + }
8666 + };
8667 + var rejected = function (value) {
8668 + try {
8669 + step(generator.throw(value));
8670 + }
8671 + catch (e) {
8672 + reject(e);
8673 + }
8674 + };
8675 + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
8676 + step((generator = generator.apply(__this, __arguments)).next());
8677 + });
8678 +};
8679 +// src/index.ts
8680 +
8681 +
8682 +
8683 +
8684 +// src/createDraftSafeSelector.ts
8685 +
8686 +
8687 +var createDraftSafeSelector = function () {
8688 + var args = [];
8689 + for (var _i = 0; _i < arguments.length; _i++) {
8690 + args[_i] = arguments[_i];
8691 + }
8692 + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args);
8693 + var wrappedSelector = function (value) {
8694 + var rest = [];
8695 + for (var _i = 1; _i < arguments.length; _i++) {
8696 + rest[_i - 1] = arguments[_i];
8697 + }
8698 + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest));
8699 + };
8700 + return wrappedSelector;
8701 +};
8702 +// src/configureStore.ts
8703 +
8704 +// src/devtoolsExtension.ts
8705 +
8706 +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
8707 + if (arguments.length === 0)
8708 + return void 0;
8709 + if (typeof arguments[0] === "object")
8710 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose;
8711 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments);
8712 +};
8713 +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
8714 + return function (noop2) {
8715 + return noop2;
8716 + };
8717 +};
8718 +// src/isPlainObject.ts
8719 +function isPlainObject(value) {
8720 + if (typeof value !== "object" || value === null)
8721 + return false;
8722 + var proto = Object.getPrototypeOf(value);
8723 + if (proto === null)
8724 + return true;
8725 + var baseProto = proto;
8726 + while (Object.getPrototypeOf(baseProto) !== null) {
8727 + baseProto = Object.getPrototypeOf(baseProto);
8728 + }
8729 + return proto === baseProto;
8730 +}
8731 +// src/getDefaultMiddleware.ts
8732 +
8733 +// src/tsHelpers.ts
8734 +var hasMatchFunction = function (v) {
8735 + return v && typeof v.match === "function";
8736 +};
8737 +// src/createAction.ts
8738 +function createAction(type, prepareAction) {
8739 + function actionCreator() {
8740 + var args = [];
8741 + for (var _i = 0; _i < arguments.length; _i++) {
8742 + args[_i] = arguments[_i];
8743 + }
8744 + if (prepareAction) {
8745 + var prepared = prepareAction.apply(void 0, args);
8746 + if (!prepared) {
8747 + throw new Error("prepareAction did not return an object");
8748 + }
8749 + return __spreadValues(__spreadValues({
8750 + type: type,
8751 + payload: prepared.payload
8752 + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
8753 + }
8754 + return { type: type, payload: args[0] };
8755 + }
8756 + actionCreator.toString = function () { return "" + type; };
8757 + actionCreator.type = type;
8758 + actionCreator.match = function (action) { return action.type === type; };
8759 + return actionCreator;
8760 +}
8761 +function isAction(action) {
8762 + return isPlainObject(action) && "type" in action;
8763 +}
8764 +function isActionCreator(action) {
8765 + return typeof action === "function" && "type" in action && hasMatchFunction(action);
8766 +}
8767 +function isFSA(action) {
8768 + return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
8769 +}
8770 +function isValidKey(key) {
8771 + return ["type", "payload", "error", "meta"].indexOf(key) > -1;
8772 +}
8773 +function getType(actionCreator) {
8774 + return "" + actionCreator;
8775 +}
8776 +// src/actionCreatorInvariantMiddleware.ts
8777 +function getMessage(type) {
8778 + var splitType = type ? ("" + type).split("/") : [];
8779 + var actionName = splitType[splitType.length - 1] || "actionCreator";
8780 + return "Detected an action creator with type \"" + (type || "unknown") + "\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. `dispatch(" + actionName + "())` instead of `dispatch(" + actionName + ")`. This is necessary even if the action has no payload.";
8781 +}
8782 +function createActionCreatorInvariantMiddleware(options) {
8783 + if (options === void 0) { options = {}; }
8784 + if (false) // removed by dead control flow
8785 +{}
8786 + var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c;
8787 + return function () { return function (next) { return function (action) {
8788 + if (isActionCreator2(action)) {
8789 + console.warn(getMessage(action.type));
8790 + }
8791 + return next(action);
8792 + }; }; };
8793 +}
8794 +// src/utils.ts
8795 +
8796 +function getTimeMeasureUtils(maxDelay, fnName) {
8797 + var elapsed = 0;
8798 + return {
8799 + measureTime: function (fn) {
8800 + var started = Date.now();
8801 + try {
8802 + return fn();
8803 + }
8804 + finally {
8805 + var finished = Date.now();
8806 + elapsed += finished - started;
8807 + }
8808 + },
8809 + warnIfExceeded: function () {
8810 + if (elapsed > maxDelay) {
8811 + console.warn(fnName + " took " + elapsed + "ms, which is more than the warning threshold of " + maxDelay + "ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.");
8812 + }
8813 + }
8814 + };
8815 +}
8816 +var MiddlewareArray = /** @class */ (function (_super) {
8817 + __extends(MiddlewareArray, _super);
8818 + function MiddlewareArray() {
8819 + var args = [];
8820 + for (var _i = 0; _i < arguments.length; _i++) {
8821 + args[_i] = arguments[_i];
8822 + }
8823 + var _this = _super.apply(this, args) || this;
8824 + Object.setPrototypeOf(_this, MiddlewareArray.prototype);
8825 + return _this;
8826 + }
8827 + Object.defineProperty(MiddlewareArray, Symbol.species, {
8828 + get: function () {
8829 + return MiddlewareArray;
8830 + },
8831 + enumerable: false,
8832 + configurable: true
8833 + });
8834 + MiddlewareArray.prototype.concat = function () {
8835 + var arr = [];
8836 + for (var _i = 0; _i < arguments.length; _i++) {
8837 + arr[_i] = arguments[_i];
8838 + }
8839 + return _super.prototype.concat.apply(this, arr);
8840 + };
8841 + MiddlewareArray.prototype.prepend = function () {
8842 + var arr = [];
8843 + for (var _i = 0; _i < arguments.length; _i++) {
8844 + arr[_i] = arguments[_i];
8845 + }
8846 + if (arr.length === 1 && Array.isArray(arr[0])) {
8847 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
8848 + }
8849 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
8850 + };
8851 + return MiddlewareArray;
8852 +}(Array));
8853 +var EnhancerArray = /** @class */ (function (_super) {
8854 + __extends(EnhancerArray, _super);
8855 + function EnhancerArray() {
8856 + var args = [];
8857 + for (var _i = 0; _i < arguments.length; _i++) {
8858 + args[_i] = arguments[_i];
8859 + }
8860 + var _this = _super.apply(this, args) || this;
8861 + Object.setPrototypeOf(_this, EnhancerArray.prototype);
8862 + return _this;
8863 + }
8864 + Object.defineProperty(EnhancerArray, Symbol.species, {
8865 + get: function () {
8866 + return EnhancerArray;
8867 + },
8868 + enumerable: false,
8869 + configurable: true
8870 + });
8871 + EnhancerArray.prototype.concat = function () {
8872 + var arr = [];
8873 + for (var _i = 0; _i < arguments.length; _i++) {
8874 + arr[_i] = arguments[_i];
8875 + }
8876 + return _super.prototype.concat.apply(this, arr);
8877 + };
8878 + EnhancerArray.prototype.prepend = function () {
8879 + var arr = [];
8880 + for (var _i = 0; _i < arguments.length; _i++) {
8881 + arr[_i] = arguments[_i];
8882 + }
8883 + if (arr.length === 1 && Array.isArray(arr[0])) {
8884 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
8885 + }
8886 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
8887 + };
8888 + return EnhancerArray;
8889 +}(Array));
8890 +function freezeDraftable(val) {
8891 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(val, function () {
8892 + }) : val;
8893 +}
8894 +// src/immutableStateInvariantMiddleware.ts
8895 +var isProduction = "development" === "production";
8896 +var prefix = "Invariant failed";
8897 +function invariant(condition, message) {
8898 + if (condition) {
8899 + return;
8900 + }
8901 + if (isProduction) {
8902 + throw new Error(prefix);
8903 + }
8904 + throw new Error(prefix + ": " + (message || ""));
8905 +}
8906 +function stringify(obj, serializer, indent, decycler) {
8907 + return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
8908 +}
8909 +function getSerialize(serializer, decycler) {
8910 + var stack = [], keys = [];
8911 + if (!decycler)
8912 + decycler = function (_, value) {
8913 + if (stack[0] === value)
8914 + return "[Circular ~]";
8915 + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
8916 + };
8917 + return function (key, value) {
8918 + if (stack.length > 0) {
8919 + var thisPos = stack.indexOf(this);
8920 + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
8921 + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
8922 + if (~stack.indexOf(value))
8923 + value = decycler.call(this, key, value);
8924 + }
8925 + else
8926 + stack.push(value);
8927 + return serializer == null ? value : serializer.call(this, key, value);
8928 + };
8929 +}
8930 +function isImmutableDefault(value) {
8931 + return typeof value !== "object" || value == null || Object.isFrozen(value);
8932 +}
8933 +function trackForMutations(isImmutable, ignorePaths, obj) {
8934 + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
8935 + return {
8936 + detectMutations: function () {
8937 + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
8938 + }
8939 + };
8940 +}
8941 +function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) {
8942 + if (ignorePaths === void 0) { ignorePaths = []; }
8943 + if (path === void 0) { path = ""; }
8944 + if (checkedObjects === void 0) { checkedObjects = new Set(); }
8945 + var tracked = { value: obj };
8946 + if (!isImmutable(obj) && !checkedObjects.has(obj)) {
8947 + checkedObjects.add(obj);
8948 + tracked.children = {};
8949 + for (var key in obj) {
8950 + var childPath = path ? path + "." + key : key;
8951 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
8952 + continue;
8953 + }
8954 + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
8955 + }
8956 + }
8957 + return tracked;
8958 +}
8959 +function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {
8960 + if (ignoredPaths === void 0) { ignoredPaths = []; }
8961 + if (sameParentRef === void 0) { sameParentRef = false; }
8962 + if (path === void 0) { path = ""; }
8963 + var prevObj = trackedProperty ? trackedProperty.value : void 0;
8964 + var sameRef = prevObj === obj;
8965 + if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
8966 + return { wasMutated: true, path: path };
8967 + }
8968 + if (isImmutable(prevObj) || isImmutable(obj)) {
8969 + return { wasMutated: false };
8970 + }
8971 + var keysToDetect = {};
8972 + for (var key in trackedProperty.children) {
8973 + keysToDetect[key] = true;
8974 + }
8975 + for (var key in obj) {
8976 + keysToDetect[key] = true;
8977 + }
8978 + var hasIgnoredPaths = ignoredPaths.length > 0;
8979 + var _loop_1 = function (key) {
8980 + var nestedPath = path ? path + "." + key : key;
8981 + if (hasIgnoredPaths) {
8982 + var hasMatches = ignoredPaths.some(function (ignored) {
8983 + if (ignored instanceof RegExp) {
8984 + return ignored.test(nestedPath);
8985 + }
8986 + return nestedPath === ignored;
8987 + });
8988 + if (hasMatches) {
8989 + return "continue";
8990 + }
8991 + }
8992 + var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
8993 + if (result.wasMutated) {
8994 + return { value: result };
8995 + }
8996 + };
8997 + for (var key in keysToDetect) {
8998 + var state_1 = _loop_1(key);
8999 + if (typeof state_1 === "object")
9000 + return state_1.value;
9001 + }
9002 + return { wasMutated: false };
9003 +}
9004 +function createImmutableStateInvariantMiddleware(options) {
9005 + if (options === void 0) { options = {}; }
9006 + if (false) // removed by dead control flow
9007 +{}
9008 + var _c = options.isImmutable, isImmutable = _c === void 0 ? isImmutableDefault : _c, ignoredPaths = options.ignoredPaths, _d = options.warnAfter, warnAfter = _d === void 0 ? 32 : _d, ignore = options.ignore;
9009 + ignoredPaths = ignoredPaths || ignore;
9010 + var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
9011 + return function (_c) {
9012 + var getState = _c.getState;
9013 + var state = getState();
9014 + var tracker = track(state);
9015 + var result;
9016 + return function (next) { return function (action) {
9017 + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
9018 + measureUtils.measureTime(function () {
9019 + state = getState();
9020 + result = tracker.detectMutations();
9021 + tracker = track(state);
9022 + invariant(!result.wasMutated, "A state mutation was detected between dispatches, in the path '" + (result.path || "") + "'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)");
9023 + });
9024 + var dispatchedAction = next(action);
9025 + measureUtils.measureTime(function () {
9026 + state = getState();
9027 + result = tracker.detectMutations();
9028 + tracker = track(state);
9029 + result.wasMutated && invariant(!result.wasMutated, "A state mutation was detected inside a dispatch, in the path: " + (result.path || "") + ". Take a look at the reducer(s) handling the action " + stringify(action) + ". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)");
9030 + });
9031 + measureUtils.warnIfExceeded();
9032 + return dispatchedAction;
9033 + }; };
9034 + };
9035 +}
9036 +// src/serializableStateInvariantMiddleware.ts
9037 +function isPlain(val) {
9038 + var type = typeof val;
9039 + return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
9040 +}
9041 +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {
9042 + if (path === void 0) { path = ""; }
9043 + if (isSerializable === void 0) { isSerializable = isPlain; }
9044 + if (ignoredPaths === void 0) { ignoredPaths = []; }
9045 + var foundNestedSerializable;
9046 + if (!isSerializable(value)) {
9047 + return {
9048 + keyPath: path || "<root>",
9049 + value: value
9050 + };
9051 + }
9052 + if (typeof value !== "object" || value === null) {
9053 + return false;
9054 + }
9055 + if (cache == null ? void 0 : cache.has(value))
9056 + return false;
9057 + var entries = getEntries != null ? getEntries(value) : Object.entries(value);
9058 + var hasIgnoredPaths = ignoredPaths.length > 0;
9059 + var _loop_2 = function (key, nestedValue) {
9060 + var nestedPath = path ? path + "." + key : key;
9061 + if (hasIgnoredPaths) {
9062 + var hasMatches = ignoredPaths.some(function (ignored) {
9063 + if (ignored instanceof RegExp) {
9064 + return ignored.test(nestedPath);
9065 + }
9066 + return nestedPath === ignored;
9067 + });
9068 + if (hasMatches) {
9069 + return "continue";
9070 + }
9071 + }
9072 + if (!isSerializable(nestedValue)) {
9073 + return { value: {
9074 + keyPath: nestedPath,
9075 + value: nestedValue
9076 + } };
9077 + }
9078 + if (typeof nestedValue === "object") {
9079 + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
9080 + if (foundNestedSerializable) {
9081 + return { value: foundNestedSerializable };
9082 + }
9083 + }
9084 + };
9085 + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
9086 + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
9087 + var state_2 = _loop_2(key, nestedValue);
9088 + if (typeof state_2 === "object")
9089 + return state_2.value;
9090 + }
9091 + if (cache && isNestedFrozen(value))
9092 + cache.add(value);
9093 + return false;
9094 +}
9095 +function isNestedFrozen(value) {
9096 + if (!Object.isFrozen(value))
9097 + return false;
9098 + for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {
9099 + var nestedValue = _c[_i];
9100 + if (typeof nestedValue !== "object" || nestedValue === null)
9101 + continue;
9102 + if (!isNestedFrozen(nestedValue))
9103 + return false;
9104 + }
9105 + return true;
9106 +}
9107 +function createSerializableStateInvariantMiddleware(options) {
9108 + if (options === void 0) { options = {}; }
9109 + if (false) // removed by dead control flow
9110 +{}
9111 + var _c = options.isSerializable, isSerializable = _c === void 0 ? isPlain : _c, getEntries = options.getEntries, _d = options.ignoredActions, ignoredActions = _d === void 0 ? [] : _d, _e = options.ignoredActionPaths, ignoredActionPaths = _e === void 0 ? ["meta.arg", "meta.baseQueryMeta"] : _e, _f = options.ignoredPaths, ignoredPaths = _f === void 0 ? [] : _f, _g = options.warnAfter, warnAfter = _g === void 0 ? 32 : _g, _h = options.ignoreState, ignoreState = _h === void 0 ? false : _h, _j = options.ignoreActions, ignoreActions = _j === void 0 ? false : _j, _k = options.disableCache, disableCache = _k === void 0 ? false : _k;
9112 + var cache = !disableCache && WeakSet ? new WeakSet() : void 0;
9113 + return function (storeAPI) { return function (next) { return function (action) {
9114 + var result = next(action);
9115 + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
9116 + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
9117 + measureUtils.measureTime(function () {
9118 + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
9119 + if (foundActionNonSerializableValue) {
9120 + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
9121 + console.error("A non-serializable value was detected in an action, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the logic that dispatched this action: ", action, "\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)", "\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)");
9122 + }
9123 + });
9124 + }
9125 + if (!ignoreState) {
9126 + measureUtils.measureTime(function () {
9127 + var state = storeAPI.getState();
9128 + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache);
9129 + if (foundStateNonSerializableValue) {
9130 + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
9131 + console.error("A non-serializable value was detected in the state, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the reducer(s) handling this action type: " + action.type + ".\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)");
9132 + }
9133 + });
9134 + measureUtils.warnIfExceeded();
9135 + }
9136 + return result;
9137 + }; }; };
9138 +}
9139 +// src/getDefaultMiddleware.ts
9140 +function isBoolean(x) {
9141 + return typeof x === "boolean";
9142 +}
9143 +function curryGetDefaultMiddleware() {
9144 + return function curriedGetDefaultMiddleware(options) {
9145 + return getDefaultMiddleware(options);
9146 + };
9147 +}
9148 +function getDefaultMiddleware(options) {
9149 + if (options === void 0) { options = {}; }
9150 + var _c = options.thunk, thunk = _c === void 0 ? true : _c, _d = options.immutableCheck, immutableCheck = _d === void 0 ? true : _d, _e = options.serializableCheck, serializableCheck = _e === void 0 ? true : _e, _f = options.actionCreatorCheck, actionCreatorCheck = _f === void 0 ? true : _f;
9151 + var middlewareArray = new MiddlewareArray();
9152 + if (thunk) {
9153 + if (isBoolean(thunk)) {
9154 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]);
9155 + }
9156 + else {
9157 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument));
9158 + }
9159 + }
9160 + if (true) {
9161 + if (immutableCheck) {
9162 + var immutableOptions = {};
9163 + if (!isBoolean(immutableCheck)) {
9164 + immutableOptions = immutableCheck;
9165 + }
9166 + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
9167 + }
9168 + if (serializableCheck) {
9169 + var serializableOptions = {};
9170 + if (!isBoolean(serializableCheck)) {
9171 + serializableOptions = serializableCheck;
9172 + }
9173 + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
9174 + }
9175 + if (actionCreatorCheck) {
9176 + var actionCreatorOptions = {};
9177 + if (!isBoolean(actionCreatorCheck)) {
9178 + actionCreatorOptions = actionCreatorCheck;
9179 + }
9180 + middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));
9181 + }
9182 + }
9183 + return middlewareArray;
9184 +}
9185 +// src/configureStore.ts
9186 +var IS_PRODUCTION = "development" === "production";
9187 +function configureStore(options) {
9188 + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
9189 + var _c = options || {}, _d = _c.reducer, reducer = _d === void 0 ? void 0 : _d, _e = _c.middleware, middleware = _e === void 0 ? curriedGetDefaultMiddleware() : _e, _f = _c.devTools, devTools = _f === void 0 ? true : _f, _g = _c.preloadedState, preloadedState = _g === void 0 ? void 0 : _g, _h = _c.enhancers, enhancers = _h === void 0 ? void 0 : _h;
9190 + var rootReducer;
9191 + if (typeof reducer === "function") {
9192 + rootReducer = reducer;
9193 + }
9194 + else if (isPlainObject(reducer)) {
9195 + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer);
9196 + }
9197 + else {
9198 + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
9199 + }
9200 + var finalMiddleware = middleware;
9201 + if (typeof finalMiddleware === "function") {
9202 + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
9203 + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
9204 + throw new Error("when using a middleware builder function, an array of middleware must be returned");
9205 + }
9206 + }
9207 + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
9208 + throw new Error("each middleware provided to configureStore must be a function");
9209 + }
9210 + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware);
9211 + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose;
9212 + if (devTools) {
9213 + finalCompose = composeWithDevTools(__spreadValues({
9214 + trace: !IS_PRODUCTION
9215 + }, typeof devTools === "object" && devTools));
9216 + }
9217 + var defaultEnhancers = new EnhancerArray(middlewareEnhancer);
9218 + var storeEnhancers = defaultEnhancers;
9219 + if (Array.isArray(enhancers)) {
9220 + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
9221 + }
9222 + else if (typeof enhancers === "function") {
9223 + storeEnhancers = enhancers(defaultEnhancers);
9224 + }
9225 + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
9226 + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer);
9227 +}
9228 +// src/createReducer.ts
9229 +
9230 +// src/mapBuilders.ts
9231 +function executeReducerBuilderCallback(builderCallback) {
9232 + var actionsMap = {};
9233 + var actionMatchers = [];
9234 + var defaultCaseReducer;
9235 + var builder = {
9236 + addCase: function (typeOrActionCreator, reducer) {
9237 + if (true) {
9238 + if (actionMatchers.length > 0) {
9239 + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
9240 + }
9241 + if (defaultCaseReducer) {
9242 + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
9243 + }
9244 + }
9245 + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
9246 + if (!type) {
9247 + throw new Error("`builder.addCase` cannot be called with an empty action type");
9248 + }
9249 + if (type in actionsMap) {
9250 + throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
9251 + }
9252 + actionsMap[type] = reducer;
9253 + return builder;
9254 + },
9255 + addMatcher: function (matcher, reducer) {
9256 + if (true) {
9257 + if (defaultCaseReducer) {
9258 + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
9259 + }
9260 + }
9261 + actionMatchers.push({ matcher: matcher, reducer: reducer });
9262 + return builder;
9263 + },
9264 + addDefaultCase: function (reducer) {
9265 + if (true) {
9266 + if (defaultCaseReducer) {
9267 + throw new Error("`builder.addDefaultCase` can only be called once");
9268 + }
9269 + }
9270 + defaultCaseReducer = reducer;
9271 + return builder;
9272 + }
9273 + };
9274 + builderCallback(builder);
9275 + return [actionsMap, actionMatchers, defaultCaseReducer];
9276 +}
9277 +// src/createReducer.ts
9278 +function isStateFunction(x) {
9279 + return typeof x === "function";
9280 +}
9281 +var hasWarnedAboutObjectNotation = false;
9282 +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
9283 + if (actionMatchers === void 0) { actionMatchers = []; }
9284 + if (true) {
9285 + if (typeof mapOrBuilderCallback === "object") {
9286 + if (!hasWarnedAboutObjectNotation) {
9287 + hasWarnedAboutObjectNotation = true;
9288 + console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
9289 + }
9290 + }
9291 + }
9292 + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
9293 + var getInitialState;
9294 + if (isStateFunction(initialState)) {
9295 + getInitialState = function () { return freezeDraftable(initialState()); };
9296 + }
9297 + else {
9298 + var frozenInitialState_1 = freezeDraftable(initialState);
9299 + getInitialState = function () { return frozenInitialState_1; };
9300 + }
9301 + function reducer(state, action) {
9302 + if (state === void 0) { state = getInitialState(); }
9303 + var caseReducers = __spreadArray([
9304 + actionsMap[action.type]
9305 + ], finalActionMatchers.filter(function (_c) {
9306 + var matcher = _c.matcher;
9307 + return matcher(action);
9308 + }).map(function (_c) {
9309 + var reducer2 = _c.reducer;
9310 + return reducer2;
9311 + }));
9312 + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
9313 + caseReducers = [finalDefaultCaseReducer];
9314 + }
9315 + return caseReducers.reduce(function (previousState, caseReducer) {
9316 + if (caseReducer) {
9317 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) {
9318 + var draft = previousState;
9319 + var result = caseReducer(draft, action);
9320 + if (result === void 0) {
9321 + return previousState;
9322 + }
9323 + return result;
9324 + }
9325 + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) {
9326 + var result = caseReducer(previousState, action);
9327 + if (result === void 0) {
9328 + if (previousState === null) {
9329 + return previousState;
9330 + }
9331 + throw Error("A case reducer on a non-draftable value must not return undefined");
9332 + }
9333 + return result;
9334 + }
9335 + else {
9336 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) {
9337 + return caseReducer(draft, action);
9338 + });
9339 + }
9340 + }
9341 + return previousState;
9342 + }, state);
9343 + }
9344 + reducer.getInitialState = getInitialState;
9345 + return reducer;
9346 +}
9347 +// src/createSlice.ts
9348 +var hasWarnedAboutObjectNotation2 = false;
9349 +function getType2(slice, actionKey) {
9350 + return slice + "/" + actionKey;
9351 +}
9352 +function createSlice(options) {
9353 + var name = options.name;
9354 + if (!name) {
9355 + throw new Error("`name` is a required option for createSlice");
9356 + }
9357 + if (typeof process !== "undefined" && "development" === "development") {
9358 + if (options.initialState === void 0) {
9359 + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
9360 + }
9361 + }
9362 + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
9363 + var reducers = options.reducers || {};
9364 + var reducerNames = Object.keys(reducers);
9365 + var sliceCaseReducersByName = {};
9366 + var sliceCaseReducersByType = {};
9367 + var actionCreators = {};
9368 + reducerNames.forEach(function (reducerName) {
9369 + var maybeReducerWithPrepare = reducers[reducerName];
9370 + var type = getType2(name, reducerName);
9371 + var caseReducer;
9372 + var prepareCallback;
9373 + if ("reducer" in maybeReducerWithPrepare) {
9374 + caseReducer = maybeReducerWithPrepare.reducer;
9375 + prepareCallback = maybeReducerWithPrepare.prepare;
9376 + }
9377 + else {
9378 + caseReducer = maybeReducerWithPrepare;
9379 + }
9380 + sliceCaseReducersByName[reducerName] = caseReducer;
9381 + sliceCaseReducersByType[type] = caseReducer;
9382 + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
9383 + });
9384 + function buildReducer() {
9385 + if (true) {
9386 + if (typeof options.extraReducers === "object") {
9387 + if (!hasWarnedAboutObjectNotation2) {
9388 + hasWarnedAboutObjectNotation2 = true;
9389 + console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
9390 + }
9391 + }
9392 + }
9393 + var _c = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers], _d = _c[0], extraReducers = _d === void 0 ? {} : _d, _e = _c[1], actionMatchers = _e === void 0 ? [] : _e, _f = _c[2], defaultCaseReducer = _f === void 0 ? void 0 : _f;
9394 + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
9395 + return createReducer(initialState, function (builder) {
9396 + for (var key in finalCaseReducers) {
9397 + builder.addCase(key, finalCaseReducers[key]);
9398 + }
9399 + for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {
9400 + var m = actionMatchers_1[_i];
9401 + builder.addMatcher(m.matcher, m.reducer);
9402 + }
9403 + if (defaultCaseReducer) {
9404 + builder.addDefaultCase(defaultCaseReducer);
9405 + }
9406 + });
9407 + }
9408 + var _reducer;
9409 + return {
9410 + name: name,
9411 + reducer: function (state, action) {
9412 + if (!_reducer)
9413 + _reducer = buildReducer();
9414 + return _reducer(state, action);
9415 + },
9416 + actions: actionCreators,
9417 + caseReducers: sliceCaseReducersByName,
9418 + getInitialState: function () {
9419 + if (!_reducer)
9420 + _reducer = buildReducer();
9421 + return _reducer.getInitialState();
9422 + }
9423 + };
9424 +}
9425 +// src/entities/entity_state.ts
9426 +function getInitialEntityState() {
9427 + return {
9428 + ids: [],
9429 + entities: {}
9430 + };
9431 +}
9432 +function createInitialStateFactory() {
9433 + function getInitialState(additionalState) {
9434 + if (additionalState === void 0) { additionalState = {}; }
9435 + return Object.assign(getInitialEntityState(), additionalState);
9436 + }
9437 + return { getInitialState: getInitialState };
9438 +}
9439 +// src/entities/state_selectors.ts
9440 +function createSelectorsFactory() {
9441 + function getSelectors(selectState) {
9442 + var selectIds = function (state) { return state.ids; };
9443 + var selectEntities = function (state) { return state.entities; };
9444 + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
9445 + var selectId = function (_, id) { return id; };
9446 + var selectById = function (entities, id) { return entities[id]; };
9447 + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
9448 + if (!selectState) {
9449 + return {
9450 + selectIds: selectIds,
9451 + selectEntities: selectEntities,
9452 + selectAll: selectAll,
9453 + selectTotal: selectTotal,
9454 + selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
9455 + };
9456 + }
9457 + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
9458 + return {
9459 + selectIds: createDraftSafeSelector(selectState, selectIds),
9460 + selectEntities: selectGlobalizedEntities,
9461 + selectAll: createDraftSafeSelector(selectState, selectAll),
9462 + selectTotal: createDraftSafeSelector(selectState, selectTotal),
9463 + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
9464 + };
9465 + }
9466 + return { getSelectors: getSelectors };
9467 +}
9468 +// src/entities/state_adapter.ts
9469 +
9470 +function createSingleArgumentStateOperator(mutator) {
9471 + var operator = createStateOperator(function (_, state) { return mutator(state); });
9472 + return function operation(state) {
9473 + return operator(state, void 0);
9474 + };
9475 +}
9476 +function createStateOperator(mutator) {
9477 + return function operation(state, arg) {
9478 + function isPayloadActionArgument(arg2) {
9479 + return isFSA(arg2);
9480 + }
9481 + var runMutator = function (draft) {
9482 + if (isPayloadActionArgument(arg)) {
9483 + mutator(arg.payload, draft);
9484 + }
9485 + else {
9486 + mutator(arg, draft);
9487 + }
9488 + };
9489 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) {
9490 + runMutator(state);
9491 + return state;
9492 + }
9493 + else {
9494 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator);
9495 + }
9496 + };
9497 +}
9498 +// src/entities/utils.ts
9499 +function selectIdValue(entity, selectId) {
9500 + var key = selectId(entity);
9501 + if ( true && key === void 0) {
9502 + console.warn("The entity passed to the `selectId` implementation returned undefined.", "You should probably provide your own `selectId` implementation.", "The entity that was passed:", entity, "The `selectId` implementation:", selectId.toString());
9503 + }
9504 + return key;
9505 +}
9506 +function ensureEntitiesArray(entities) {
9507 + if (!Array.isArray(entities)) {
9508 + entities = Object.values(entities);
9509 + }
9510 + return entities;
9511 +}
9512 +function splitAddedUpdatedEntities(newEntities, selectId, state) {
9513 + newEntities = ensureEntitiesArray(newEntities);
9514 + var added = [];
9515 + var updated = [];
9516 + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
9517 + var entity = newEntities_1[_i];
9518 + var id = selectIdValue(entity, selectId);
9519 + if (id in state.entities) {
9520 + updated.push({ id: id, changes: entity });
9521 + }
9522 + else {
9523 + added.push(entity);
9524 + }
9525 + }
9526 + return [added, updated];
9527 +}
9528 +// src/entities/unsorted_state_adapter.ts
9529 +function createUnsortedStateAdapter(selectId) {
9530 + function addOneMutably(entity, state) {
9531 + var key = selectIdValue(entity, selectId);
9532 + if (key in state.entities) {
9533 + return;
9534 + }
9535 + state.ids.push(key);
9536 + state.entities[key] = entity;
9537 + }
9538 + function addManyMutably(newEntities, state) {
9539 + newEntities = ensureEntitiesArray(newEntities);
9540 + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
9541 + var entity = newEntities_2[_i];
9542 + addOneMutably(entity, state);
9543 + }
9544 + }
9545 + function setOneMutably(entity, state) {
9546 + var key = selectIdValue(entity, selectId);
9547 + if (!(key in state.entities)) {
9548 + state.ids.push(key);
9549 + }
9550 + state.entities[key] = entity;
9551 + }
9552 + function setManyMutably(newEntities, state) {
9553 + newEntities = ensureEntitiesArray(newEntities);
9554 + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
9555 + var entity = newEntities_3[_i];
9556 + setOneMutably(entity, state);
9557 + }
9558 + }
9559 + function setAllMutably(newEntities, state) {
9560 + newEntities = ensureEntitiesArray(newEntities);
9561 + state.ids = [];
9562 + state.entities = {};
9563 + addManyMutably(newEntities, state);
9564 + }
9565 + function removeOneMutably(key, state) {
9566 + return removeManyMutably([key], state);
9567 + }
9568 + function removeManyMutably(keys, state) {
9569 + var didMutate = false;
9570 + keys.forEach(function (key) {
9571 + if (key in state.entities) {
9572 + delete state.entities[key];
9573 + didMutate = true;
9574 + }
9575 + });
9576 + if (didMutate) {
9577 + state.ids = state.ids.filter(function (id) { return id in state.entities; });
9578 + }
9579 + }
9580 + function removeAllMutably(state) {
9581 + Object.assign(state, {
9582 + ids: [],
9583 + entities: {}
9584 + });
9585 + }
9586 + function takeNewKey(keys, update, state) {
9587 + var original2 = state.entities[update.id];
9588 + var updated = Object.assign({}, original2, update.changes);
9589 + var newKey = selectIdValue(updated, selectId);
9590 + var hasNewKey = newKey !== update.id;
9591 + if (hasNewKey) {
9592 + keys[update.id] = newKey;
9593 + delete state.entities[update.id];
9594 + }
9595 + state.entities[newKey] = updated;
9596 + return hasNewKey;
9597 + }
9598 + function updateOneMutably(update, state) {
9599 + return updateManyMutably([update], state);
9600 + }
9601 + function updateManyMutably(updates, state) {
9602 + var newKeys = {};
9603 + var updatesPerEntity = {};
9604 + updates.forEach(function (update) {
9605 + if (update.id in state.entities) {
9606 + updatesPerEntity[update.id] = {
9607 + id: update.id,
9608 + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
9609 + };
9610 + }
9611 + });
9612 + updates = Object.values(updatesPerEntity);
9613 + var didMutateEntities = updates.length > 0;
9614 + if (didMutateEntities) {
9615 + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
9616 + if (didMutateIds) {
9617 + state.ids = Object.keys(state.entities);
9618 + }
9619 + }
9620 + }
9621 + function upsertOneMutably(entity, state) {
9622 + return upsertManyMutably([entity], state);
9623 + }
9624 + function upsertManyMutably(newEntities, state) {
9625 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
9626 + updateManyMutably(updated, state);
9627 + addManyMutably(added, state);
9628 + }
9629 + return {
9630 + removeAll: createSingleArgumentStateOperator(removeAllMutably),
9631 + addOne: createStateOperator(addOneMutably),
9632 + addMany: createStateOperator(addManyMutably),
9633 + setOne: createStateOperator(setOneMutably),
9634 + setMany: createStateOperator(setManyMutably),
9635 + setAll: createStateOperator(setAllMutably),
9636 + updateOne: createStateOperator(updateOneMutably),
9637 + updateMany: createStateOperator(updateManyMutably),
9638 + upsertOne: createStateOperator(upsertOneMutably),
9639 + upsertMany: createStateOperator(upsertManyMutably),
9640 + removeOne: createStateOperator(removeOneMutably),
9641 + removeMany: createStateOperator(removeManyMutably)
9642 + };
9643 +}
9644 +// src/entities/sorted_state_adapter.ts
9645 +function createSortedStateAdapter(selectId, sort) {
9646 + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
9647 + function addOneMutably(entity, state) {
9648 + return addManyMutably([entity], state);
9649 + }
9650 + function addManyMutably(newEntities, state) {
9651 + newEntities = ensureEntitiesArray(newEntities);
9652 + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
9653 + if (models.length !== 0) {
9654 + merge(models, state);
9655 + }
9656 + }
9657 + function setOneMutably(entity, state) {
9658 + return setManyMutably([entity], state);
9659 + }
9660 + function setManyMutably(newEntities, state) {
9661 + newEntities = ensureEntitiesArray(newEntities);
9662 + if (newEntities.length !== 0) {
9663 + merge(newEntities, state);
9664 + }
9665 + }
9666 + function setAllMutably(newEntities, state) {
9667 + newEntities = ensureEntitiesArray(newEntities);
9668 + state.entities = {};
9669 + state.ids = [];
9670 + addManyMutably(newEntities, state);
9671 + }
9672 + function updateOneMutably(update, state) {
9673 + return updateManyMutably([update], state);
9674 + }
9675 + function updateManyMutably(updates, state) {
9676 + var appliedUpdates = false;
9677 + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
9678 + var update = updates_1[_i];
9679 + var entity = state.entities[update.id];
9680 + if (!entity) {
9681 + continue;
9682 + }
9683 + appliedUpdates = true;
9684 + Object.assign(entity, update.changes);
9685 + var newId = selectId(entity);
9686 + if (update.id !== newId) {
9687 + delete state.entities[update.id];
9688 + state.entities[newId] = entity;
9689 + }
9690 + }
9691 + if (appliedUpdates) {
9692 + resortEntities(state);
9693 + }
9694 + }
9695 + function upsertOneMutably(entity, state) {
9696 + return upsertManyMutably([entity], state);
9697 + }
9698 + function upsertManyMutably(newEntities, state) {
9699 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
9700 + updateManyMutably(updated, state);
9701 + addManyMutably(added, state);
9702 + }
9703 + function areArraysEqual(a, b) {
9704 + if (a.length !== b.length) {
9705 + return false;
9706 + }
9707 + for (var i = 0; i < a.length && i < b.length; i++) {
9708 + if (a[i] === b[i]) {
9709 + continue;
9710 + }
9711 + return false;
9712 + }
9713 + return true;
9714 + }
9715 + function merge(models, state) {
9716 + models.forEach(function (model) {
9717 + state.entities[selectId(model)] = model;
9718 + });
9719 + resortEntities(state);
9720 + }
9721 + function resortEntities(state) {
9722 + var allEntities = Object.values(state.entities);
9723 + allEntities.sort(sort);
9724 + var newSortedIds = allEntities.map(selectId);
9725 + var ids = state.ids;
9726 + if (!areArraysEqual(ids, newSortedIds)) {
9727 + state.ids = newSortedIds;
9728 + }
9729 + }
9730 + return {
9731 + removeOne: removeOne,
9732 + removeMany: removeMany,
9733 + removeAll: removeAll,
9734 + addOne: createStateOperator(addOneMutably),
9735 + updateOne: createStateOperator(updateOneMutably),
9736 + upsertOne: createStateOperator(upsertOneMutably),
9737 + setOne: createStateOperator(setOneMutably),
9738 + setMany: createStateOperator(setManyMutably),
9739 + setAll: createStateOperator(setAllMutably),
9740 + addMany: createStateOperator(addManyMutably),
9741 + updateMany: createStateOperator(updateManyMutably),
9742 + upsertMany: createStateOperator(upsertManyMutably)
9743 + };
9744 +}
9745 +// src/entities/create_adapter.ts
9746 +function createEntityAdapter(options) {
9747 + if (options === void 0) { options = {}; }
9748 + var _c = __spreadValues({
9749 + sortComparer: false,
9750 + selectId: function (instance) { return instance.id; }
9751 + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
9752 + var stateFactory = createInitialStateFactory();
9753 + var selectorsFactory = createSelectorsFactory();
9754 + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
9755 + return __spreadValues(__spreadValues(__spreadValues({
9756 + selectId: selectId,
9757 + sortComparer: sortComparer
9758 + }, stateFactory), selectorsFactory), stateAdapter);
9759 +}
9760 +// src/nanoid.ts
9761 +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
9762 +var nanoid = function (size) {
9763 + if (size === void 0) { size = 21; }
9764 + var id = "";
9765 + var i = size;
9766 + while (i--) {
9767 + id += urlAlphabet[Math.random() * 64 | 0];
9768 + }
9769 + return id;
9770 +};
9771 +// src/createAsyncThunk.ts
9772 +var commonProperties = [
9773 + "name",
9774 + "message",
9775 + "stack",
9776 + "code"
9777 +];
9778 +var RejectWithValue = /** @class */ (function () {
9779 + function RejectWithValue(payload, meta) {
9780 + this.payload = payload;
9781 + this.meta = meta;
9782 + }
9783 + return RejectWithValue;
9784 +}());
9785 +var FulfillWithMeta = /** @class */ (function () {
9786 + function FulfillWithMeta(payload, meta) {
9787 + this.payload = payload;
9788 + this.meta = meta;
9789 + }
9790 + return FulfillWithMeta;
9791 +}());
9792 +var miniSerializeError = function (value) {
9793 + if (typeof value === "object" && value !== null) {
9794 + var simpleError = {};
9795 + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
9796 + var property = commonProperties_1[_i];
9797 + if (typeof value[property] === "string") {
9798 + simpleError[property] = value[property];
9799 + }
9800 + }
9801 + return simpleError;
9802 + }
9803 + return { message: String(value) };
9804 +};
9805 +var createAsyncThunk = (function () {
9806 + function createAsyncThunk2(typePrefix, payloadCreator, options) {
9807 + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
9808 + payload: payload,
9809 + meta: __spreadProps(__spreadValues({}, meta || {}), {
9810 + arg: arg,
9811 + requestId: requestId,
9812 + requestStatus: "fulfilled"
9813 + })
9814 + }); });
9815 + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
9816 + payload: void 0,
9817 + meta: __spreadProps(__spreadValues({}, meta || {}), {
9818 + arg: arg,
9819 + requestId: requestId,
9820 + requestStatus: "pending"
9821 + })
9822 + }); });
9823 + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
9824 + payload: payload,
9825 + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
9826 + meta: __spreadProps(__spreadValues({}, meta || {}), {
9827 + arg: arg,
9828 + requestId: requestId,
9829 + rejectedWithValue: !!payload,
9830 + requestStatus: "rejected",
9831 + aborted: (error == null ? void 0 : error.name) === "AbortError",
9832 + condition: (error == null ? void 0 : error.name) === "ConditionError"
9833 + })
9834 + }); });
9835 + var displayedWarning = false;
9836 + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
9837 + function class_1() {
9838 + this.signal = {
9839 + aborted: false,
9840 + addEventListener: function () {
9841 + },
9842 + dispatchEvent: function () {
9843 + return false;
9844 + },
9845 + onabort: function () {
9846 + },
9847 + removeEventListener: function () {
9848 + },
9849 + reason: void 0,
9850 + throwIfAborted: function () {
9851 + }
9852 + };
9853 + }
9854 + class_1.prototype.abort = function () {
9855 + if (true) {
9856 + if (!displayedWarning) {
9857 + displayedWarning = true;
9858 + console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.");
9859 + }
9860 + }
9861 + };
9862 + return class_1;
9863 + }());
9864 + function actionCreator(arg) {
9865 + return function (dispatch, getState, extra) {
9866 + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
9867 + var abortController = new AC();
9868 + var abortReason;
9869 + var started = false;
9870 + function abort(reason) {
9871 + abortReason = reason;
9872 + abortController.abort();
9873 + }
9874 + var promise2 = function () {
9875 + return __async(this, null, function () {
9876 + var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
9877 + return __generator(this, function (_c) {
9878 + switch (_c.label) {
9879 + case 0:
9880 + _c.trys.push([0, 4, , 5]);
9881 + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
9882 + if (!isThenable(conditionResult)) return [3 /*break*/, 2];
9883 + return [4 /*yield*/, conditionResult];
9884 + case 1:
9885 + conditionResult = _c.sent();
9886 + _c.label = 2;
9887 + case 2:
9888 + if (conditionResult === false || abortController.signal.aborted) {
9889 + throw {
9890 + name: "ConditionError",
9891 + message: "Aborted due to condition callback returning false."
9892 + };
9893 + }
9894 + started = true;
9895 + abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({
9896 + name: "AbortError",
9897 + message: abortReason || "Aborted"
9898 + }); }); });
9899 + dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, { requestId: requestId, arg: arg }, { getState: getState, extra: extra })));
9900 + return [4 /*yield*/, Promise.race([
9901 + abortedPromise,
9902 + Promise.resolve(payloadCreator(arg, {
9903 + dispatch: dispatch,
9904 + getState: getState,
9905 + extra: extra,
9906 + requestId: requestId,
9907 + signal: abortController.signal,
9908 + abort: abort,
9909 + rejectWithValue: function (value, meta) {
9910 + return new RejectWithValue(value, meta);
9911 + },
9912 + fulfillWithValue: function (value, meta) {
9913 + return new FulfillWithMeta(value, meta);
9914 + }
9915 + })).then(function (result) {
9916 + if (result instanceof RejectWithValue) {
9917 + throw result;
9918 + }
9919 + if (result instanceof FulfillWithMeta) {
9920 + return fulfilled(result.payload, requestId, arg, result.meta);
9921 + }
9922 + return fulfilled(result, requestId, arg);
9923 + })
9924 + ])];
9925 + case 3:
9926 + finalAction = _c.sent();
9927 + return [3 /*break*/, 5];
9928 + case 4:
9929 + err_1 = _c.sent();
9930 + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
9931 + return [3 /*break*/, 5];
9932 + case 5:
9933 + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
9934 + if (!skipDispatch) {
9935 + dispatch(finalAction);
9936 + }
9937 + return [2 /*return*/, finalAction];
9938 + }
9939 + });
9940 + });
9941 + }();
9942 + return Object.assign(promise2, {
9943 + abort: abort,
9944 + requestId: requestId,
9945 + arg: arg,
9946 + unwrap: function () {
9947 + return promise2.then(unwrapResult);
9948 + }
9949 + });
9950 + };
9951 + }
9952 + return Object.assign(actionCreator, {
9953 + pending: pending,
9954 + rejected: rejected,
9955 + fulfilled: fulfilled,
9956 + typePrefix: typePrefix
9957 + });
9958 + }
9959 + createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };
9960 + return createAsyncThunk2;
9961 +})();
9962 +function unwrapResult(action) {
9963 + if (action.meta && action.meta.rejectedWithValue) {
9964 + throw action.payload;
9965 + }
9966 + if (action.error) {
9967 + throw action.error;
9968 + }
9969 + return action.payload;
9970 +}
9971 +function isThenable(value) {
9972 + return value !== null && typeof value === "object" && typeof value.then === "function";
9973 +}
9974 +// src/matchers.ts
9975 +var matches = function (matcher, action) {
9976 + if (hasMatchFunction(matcher)) {
9977 + return matcher.match(action);
9978 + }
9979 + else {
9980 + return matcher(action);
9981 + }
9982 +};
9983 +function isAnyOf() {
9984 + var matchers = [];
9985 + for (var _i = 0; _i < arguments.length; _i++) {
9986 + matchers[_i] = arguments[_i];
9987 + }
9988 + return function (action) {
9989 + return matchers.some(function (matcher) { return matches(matcher, action); });
9990 + };
9991 +}
9992 +function isAllOf() {
9993 + var matchers = [];
9994 + for (var _i = 0; _i < arguments.length; _i++) {
9995 + matchers[_i] = arguments[_i];
9996 + }
9997 + return function (action) {
9998 + return matchers.every(function (matcher) { return matches(matcher, action); });
9999 + };
10000 +}
10001 +function hasExpectedRequestMetadata(action, validStatus) {
10002 + if (!action || !action.meta)
10003 + return false;
10004 + var hasValidRequestId = typeof action.meta.requestId === "string";
10005 + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
10006 + return hasValidRequestId && hasValidRequestStatus;
10007 +}
10008 +function isAsyncThunkArray(a) {
10009 + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
10010 +}
10011 +function isPending() {
10012 + var asyncThunks = [];
10013 + for (var _i = 0; _i < arguments.length; _i++) {
10014 + asyncThunks[_i] = arguments[_i];
10015 + }
10016 + if (asyncThunks.length === 0) {
10017 + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
10018 + }
10019 + if (!isAsyncThunkArray(asyncThunks)) {
10020 + return isPending()(asyncThunks[0]);
10021 + }
10022 + return function (action) {
10023 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
10024 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
10025 + return combinedMatcher(action);
10026 + };
10027 +}
10028 +function isRejected() {
10029 + var asyncThunks = [];
10030 + for (var _i = 0; _i < arguments.length; _i++) {
10031 + asyncThunks[_i] = arguments[_i];
10032 + }
10033 + if (asyncThunks.length === 0) {
10034 + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
10035 + }
10036 + if (!isAsyncThunkArray(asyncThunks)) {
10037 + return isRejected()(asyncThunks[0]);
10038 + }
10039 + return function (action) {
10040 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
10041 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
10042 + return combinedMatcher(action);
10043 + };
10044 +}
10045 +function isRejectedWithValue() {
10046 + var asyncThunks = [];
10047 + for (var _i = 0; _i < arguments.length; _i++) {
10048 + asyncThunks[_i] = arguments[_i];
10049 + }
10050 + var hasFlag = function (action) {
10051 + return action && action.meta && action.meta.rejectedWithValue;
10052 + };
10053 + if (asyncThunks.length === 0) {
10054 + return function (action) {
10055 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
10056 + return combinedMatcher(action);
10057 + };
10058 + }
10059 + if (!isAsyncThunkArray(asyncThunks)) {
10060 + return isRejectedWithValue()(asyncThunks[0]);
10061 + }
10062 + return function (action) {
10063 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
10064 + return combinedMatcher(action);
10065 + };
10066 +}
10067 +function isFulfilled() {
10068 + var asyncThunks = [];
10069 + for (var _i = 0; _i < arguments.length; _i++) {
10070 + asyncThunks[_i] = arguments[_i];
10071 + }
10072 + if (asyncThunks.length === 0) {
10073 + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
10074 + }
10075 + if (!isAsyncThunkArray(asyncThunks)) {
10076 + return isFulfilled()(asyncThunks[0]);
10077 + }
10078 + return function (action) {
10079 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
10080 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
10081 + return combinedMatcher(action);
10082 + };
10083 +}
10084 +function isAsyncThunkAction() {
10085 + var asyncThunks = [];
10086 + for (var _i = 0; _i < arguments.length; _i++) {
10087 + asyncThunks[_i] = arguments[_i];
10088 + }
10089 + if (asyncThunks.length === 0) {
10090 + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
10091 + }
10092 + if (!isAsyncThunkArray(asyncThunks)) {
10093 + return isAsyncThunkAction()(asyncThunks[0]);
10094 + }
10095 + return function (action) {
10096 + var matchers = [];
10097 + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
10098 + var asyncThunk = asyncThunks_1[_i];
10099 + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
10100 + }
10101 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
10102 + return combinedMatcher(action);
10103 + };
10104 +}
10105 +// src/listenerMiddleware/utils.ts
10106 +var assertFunction = function (func, expected) {
10107 + if (typeof func !== "function") {
10108 + throw new TypeError(expected + " is not a function");
10109 + }
10110 +};
10111 +var noop = function () {
10112 +};
10113 +var catchRejection = function (promise2, onError) {
10114 + if (onError === void 0) { onError = noop; }
10115 + promise2.catch(onError);
10116 + return promise2;
10117 +};
10118 +var addAbortSignalListener = function (abortSignal, callback) {
10119 + abortSignal.addEventListener("abort", callback, { once: true });
10120 + return function () { return abortSignal.removeEventListener("abort", callback); };
10121 +};
10122 +var abortControllerWithReason = function (abortController, reason) {
10123 + var signal = abortController.signal;
10124 + if (signal.aborted) {
10125 + return;
10126 + }
10127 + if (!("reason" in signal)) {
10128 + Object.defineProperty(signal, "reason", {
10129 + enumerable: true,
10130 + value: reason,
10131 + configurable: true,
10132 + writable: true
10133 + });
10134 + }
10135 + ;
10136 + abortController.abort(reason);
10137 +};
10138 +// src/listenerMiddleware/exceptions.ts
10139 +var task = "task";
10140 +var listener = "listener";
10141 +var completed = "completed";
10142 +var cancelled = "cancelled";
10143 +var taskCancelled = "task-" + cancelled;
10144 +var taskCompleted = "task-" + completed;
10145 +var listenerCancelled = listener + "-" + cancelled;
10146 +var listenerCompleted = listener + "-" + completed;
10147 +var TaskAbortError = /** @class */ (function () {
10148 + function TaskAbortError(code) {
10149 + this.code = code;
10150 + this.name = "TaskAbortError";
10151 + this.message = task + " " + cancelled + " (reason: " + code + ")";
10152 + }
10153 + return TaskAbortError;
10154 +}());
10155 +// src/listenerMiddleware/task.ts
10156 +var validateActive = function (signal) {
10157 + if (signal.aborted) {
10158 + throw new TaskAbortError(signal.reason);
10159 + }
10160 +};
10161 +function raceWithSignal(signal, promise2) {
10162 + var cleanup = noop;
10163 + return new Promise(function (resolve, reject) {
10164 + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
10165 + if (signal.aborted) {
10166 + notifyRejection();
10167 + return;
10168 + }
10169 + cleanup = addAbortSignalListener(signal, notifyRejection);
10170 + promise2.finally(function () { return cleanup(); }).then(resolve, reject);
10171 + }).finally(function () {
10172 + cleanup = noop;
10173 + });
10174 +}
10175 +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
10176 + var value, error_1;
10177 + return __generator(this, function (_c) {
10178 + switch (_c.label) {
10179 + case 0:
10180 + _c.trys.push([0, 3, 4, 5]);
10181 + return [4 /*yield*/, Promise.resolve()];
10182 + case 1:
10183 + _c.sent();
10184 + return [4 /*yield*/, task2()];
10185 + case 2:
10186 + value = _c.sent();
10187 + return [2 /*return*/, {
10188 + status: "ok",
10189 + value: value
10190 + }];
10191 + case 3:
10192 + error_1 = _c.sent();
10193 + return [2 /*return*/, {
10194 + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
10195 + error: error_1
10196 + }];
10197 + case 4:
10198 + cleanUp == null ? void 0 : cleanUp();
10199 + return [7 /*endfinally*/];
10200 + case 5: return [2 /*return*/];
10201 + }
10202 + });
10203 +}); };
10204 +var createPause = function (signal) {
10205 + return function (promise2) {
10206 + return catchRejection(raceWithSignal(signal, promise2).then(function (output) {
10207 + validateActive(signal);
10208 + return output;
10209 + }));
10210 + };
10211 +};
10212 +var createDelay = function (signal) {
10213 + var pause = createPause(signal);
10214 + return function (timeoutMs) {
10215 + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
10216 + };
10217 +};
10218 +// src/listenerMiddleware/index.ts
10219 +var assign = Object.assign;
10220 +var INTERNAL_NIL_TOKEN = {};
10221 +var alm = "listenerMiddleware";
10222 +var createFork = function (parentAbortSignal, parentBlockingPromises) {
10223 + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
10224 + return function (taskExecutor, opts) {
10225 + assertFunction(taskExecutor, "taskExecutor");
10226 + var childAbortController = new AbortController();
10227 + linkControllers(childAbortController);
10228 + var result = runTask(function () { return __async(void 0, null, function () {
10229 + var result2;
10230 + return __generator(this, function (_c) {
10231 + switch (_c.label) {
10232 + case 0:
10233 + validateActive(parentAbortSignal);
10234 + validateActive(childAbortController.signal);
10235 + return [4 /*yield*/, taskExecutor({
10236 + pause: createPause(childAbortController.signal),
10237 + delay: createDelay(childAbortController.signal),
10238 + signal: childAbortController.signal
10239 + })];
10240 + case 1:
10241 + result2 = _c.sent();
10242 + validateActive(childAbortController.signal);
10243 + return [2 /*return*/, result2];
10244 + }
10245 + });
10246 + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
10247 + if (opts == null ? void 0 : opts.autoJoin) {
10248 + parentBlockingPromises.push(result);
10249 + }
10250 + return {
10251 + result: createPause(parentAbortSignal)(result),
10252 + cancel: function () {
10253 + abortControllerWithReason(childAbortController, taskCancelled);
10254 + }
10255 + };
10256 + };
10257 +};
10258 +var createTakePattern = function (startListening, signal) {
10259 + var take = function (predicate, timeout) { return __async(void 0, null, function () {
10260 + var unsubscribe, tuplePromise, promises, output;
10261 + return __generator(this, function (_c) {
10262 + switch (_c.label) {
10263 + case 0:
10264 + validateActive(signal);
10265 + unsubscribe = function () {
10266 + };
10267 + tuplePromise = new Promise(function (resolve, reject) {
10268 + var stopListening = startListening({
10269 + predicate: predicate,
10270 + effect: function (action, listenerApi) {
10271 + listenerApi.unsubscribe();
10272 + resolve([
10273 + action,
10274 + listenerApi.getState(),
10275 + listenerApi.getOriginalState()
10276 + ]);
10277 + }
10278 + });
10279 + unsubscribe = function () {
10280 + stopListening();
10281 + reject();
10282 + };
10283 + });
10284 + promises = [
10285 + tuplePromise
10286 + ];
10287 + if (timeout != null) {
10288 + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
10289 + }
10290 + _c.label = 1;
10291 + case 1:
10292 + _c.trys.push([1, , 3, 4]);
10293 + return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))];
10294 + case 2:
10295 + output = _c.sent();
10296 + validateActive(signal);
10297 + return [2 /*return*/, output];
10298 + case 3:
10299 + unsubscribe();
10300 + return [7 /*endfinally*/];
10301 + case 4: return [2 /*return*/];
10302 + }
10303 + });
10304 + }); };
10305 + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
10306 +};
10307 +var getListenerEntryPropsFrom = function (options) {
10308 + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
10309 + if (type) {
10310 + predicate = createAction(type).match;
10311 + }
10312 + else if (actionCreator) {
10313 + type = actionCreator.type;
10314 + predicate = actionCreator.match;
10315 + }
10316 + else if (matcher) {
10317 + predicate = matcher;
10318 + }
10319 + else if (predicate) {
10320 + }
10321 + else {
10322 + throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
10323 + }
10324 + assertFunction(effect, "options.listener");
10325 + return { predicate: predicate, type: type, effect: effect };
10326 +};
10327 +var createListenerEntry = function (options) {
10328 + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
10329 + var id = nanoid();
10330 + var entry = {
10331 + id: id,
10332 + effect: effect,
10333 + type: type,
10334 + predicate: predicate,
10335 + pending: new Set(),
10336 + unsubscribe: function () {
10337 + throw new Error("Unsubscribe not initialized");
10338 + }
10339 + };
10340 + return entry;
10341 +};
10342 +var cancelActiveListeners = function (entry) {
10343 + entry.pending.forEach(function (controller) {
10344 + abortControllerWithReason(controller, listenerCancelled);
10345 + });
10346 +};
10347 +var createClearListenerMiddleware = function (listenerMap) {
10348 + return function () {
10349 + listenerMap.forEach(cancelActiveListeners);
10350 + listenerMap.clear();
10351 + };
10352 +};
10353 +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
10354 + try {
10355 + errorHandler(errorToNotify, errorInfo);
10356 + }
10357 + catch (errorHandlerError) {
10358 + setTimeout(function () {
10359 + throw errorHandlerError;
10360 + }, 0);
10361 + }
10362 +};
10363 +var addListener = createAction(alm + "/add");
10364 +var clearAllListeners = createAction(alm + "/removeAll");
10365 +var removeListener = createAction(alm + "/remove");
10366 +var defaultErrorHandler = function () {
10367 + var args = [];
10368 + for (var _i = 0; _i < arguments.length; _i++) {
10369 + args[_i] = arguments[_i];
10370 + }
10371 + console.error.apply(console, __spreadArray([alm + "/error"], args));
10372 +};
10373 +function createListenerMiddleware(middlewareOptions) {
10374 + var _this = this;
10375 + if (middlewareOptions === void 0) { middlewareOptions = {}; }
10376 + var listenerMap = new Map();
10377 + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
10378 + assertFunction(onError, "onError");
10379 + var insertEntry = function (entry) {
10380 + entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
10381 + listenerMap.set(entry.id, entry);
10382 + return function (cancelOptions) {
10383 + entry.unsubscribe();
10384 + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
10385 + cancelActiveListeners(entry);
10386 + }
10387 + };
10388 + };
10389 + var findListenerEntry = function (comparator) {
10390 + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
10391 + var entry = _c[_i];
10392 + if (comparator(entry)) {
10393 + return entry;
10394 + }
10395 + }
10396 + return void 0;
10397 + };
10398 + var startListening = function (options) {
10399 + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
10400 + if (!entry) {
10401 + entry = createListenerEntry(options);
10402 + }
10403 + return insertEntry(entry);
10404 + };
10405 + var stopListening = function (options) {
10406 + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
10407 + var entry = findListenerEntry(function (entry2) {
10408 + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
10409 + return matchPredicateOrType && entry2.effect === effect;
10410 + });
10411 + if (entry) {
10412 + entry.unsubscribe();
10413 + if (options.cancelActive) {
10414 + cancelActiveListeners(entry);
10415 + }
10416 + }
10417 + return !!entry;
10418 + };
10419 + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
10420 + var internalTaskController, take, autoJoinPromises, listenerError_1;
10421 + return __generator(this, function (_c) {
10422 + switch (_c.label) {
10423 + case 0:
10424 + internalTaskController = new AbortController();
10425 + take = createTakePattern(startListening, internalTaskController.signal);
10426 + autoJoinPromises = [];
10427 + _c.label = 1;
10428 + case 1:
10429 + _c.trys.push([1, 3, 4, 6]);
10430 + entry.pending.add(internalTaskController);
10431 + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {
10432 + getOriginalState: getOriginalState,
10433 + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
10434 + take: take,
10435 + delay: createDelay(internalTaskController.signal),
10436 + pause: createPause(internalTaskController.signal),
10437 + extra: extra,
10438 + signal: internalTaskController.signal,
10439 + fork: createFork(internalTaskController.signal, autoJoinPromises),
10440 + unsubscribe: entry.unsubscribe,
10441 + subscribe: function () {
10442 + listenerMap.set(entry.id, entry);
10443 + },
10444 + cancelActiveListeners: function () {
10445 + entry.pending.forEach(function (controller, _, set) {
10446 + if (controller !== internalTaskController) {
10447 + abortControllerWithReason(controller, listenerCancelled);
10448 + set.delete(controller);
10449 + }
10450 + });
10451 + }
10452 + })))];
10453 + case 2:
10454 + _c.sent();
10455 + return [3 /*break*/, 6];
10456 + case 3:
10457 + listenerError_1 = _c.sent();
10458 + if (!(listenerError_1 instanceof TaskAbortError)) {
10459 + safelyNotifyError(onError, listenerError_1, {
10460 + raisedBy: "effect"
10461 + });
10462 + }
10463 + return [3 /*break*/, 6];
10464 + case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)];
10465 + case 5:
10466 + _c.sent();
10467 + abortControllerWithReason(internalTaskController, listenerCompleted);
10468 + entry.pending.delete(internalTaskController);
10469 + return [7 /*endfinally*/];
10470 + case 6: return [2 /*return*/];
10471 + }
10472 + });
10473 + }); };
10474 + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
10475 + var middleware = function (api) { return function (next) { return function (action) {
10476 + if (!isAction(action)) {
10477 + return next(action);
10478 + }
10479 + if (addListener.match(action)) {
10480 + return startListening(action.payload);
10481 + }
10482 + if (clearAllListeners.match(action)) {
10483 + clearListenerMiddleware();
10484 + return;
10485 + }
10486 + if (removeListener.match(action)) {
10487 + return stopListening(action.payload);
10488 + }
10489 + var originalState = api.getState();
10490 + var getOriginalState = function () {
10491 + if (originalState === INTERNAL_NIL_TOKEN) {
10492 + throw new Error(alm + ": getOriginalState can only be called synchronously");
10493 + }
10494 + return originalState;
10495 + };
10496 + var result;
10497 + try {
10498 + result = next(action);
10499 + if (listenerMap.size > 0) {
10500 + var currentState = api.getState();
10501 + var listenerEntries = Array.from(listenerMap.values());
10502 + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
10503 + var entry = listenerEntries_1[_i];
10504 + var runListener = false;
10505 + try {
10506 + runListener = entry.predicate(action, currentState, originalState);
10507 + }
10508 + catch (predicateError) {
10509 + runListener = false;
10510 + safelyNotifyError(onError, predicateError, {
10511 + raisedBy: "predicate"
10512 + });
10513 + }
10514 + if (!runListener) {
10515 + continue;
10516 + }
10517 + notifyListener(entry, action, api, getOriginalState);
10518 + }
10519 + }
10520 + }
10521 + finally {
10522 + originalState = INTERNAL_NIL_TOKEN;
10523 + }
10524 + return result;
10525 + }; }; };
10526 + return {
10527 + middleware: middleware,
10528 + startListening: startListening,
10529 + stopListening: stopListening,
10530 + clearListeners: clearListenerMiddleware
10531 + };
10532 +}
10533 +// src/autoBatchEnhancer.ts
10534 +var SHOULD_AUTOBATCH = "RTK_autoBatch";
10535 +var prepareAutoBatched = function () { return function (payload) {
10536 + var _c;
10537 + return ({
10538 + payload: payload,
10539 + meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)
10540 + });
10541 +}; };
10542 +var promise;
10543 +var queueMicrotaskShim = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : globalThis) : function (cb) { return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () {
10544 + throw err;
10545 +}, 0); }); };
10546 +var createQueueWithTimer = function (timeout) {
10547 + return function (notify) {
10548 + setTimeout(notify, timeout);
10549 + };
10550 +};
10551 +var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
10552 +var autoBatchEnhancer = function (options) {
10553 + if (options === void 0) { options = { type: "raf" }; }
10554 + return function (next) { return function () {
10555 + var args = [];
10556 + for (var _i = 0; _i < arguments.length; _i++) {
10557 + args[_i] = arguments[_i];
10558 + }
10559 + var store = next.apply(void 0, args);
10560 + var notifying = true;
10561 + var shouldNotifyAtEndOfTick = false;
10562 + var notificationQueued = false;
10563 + var listeners = new Set();
10564 + var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
10565 + var notifyListeners = function () {
10566 + notificationQueued = false;
10567 + if (shouldNotifyAtEndOfTick) {
10568 + shouldNotifyAtEndOfTick = false;
10569 + listeners.forEach(function (l) { return l(); });
10570 + }
10571 + };
10572 + return Object.assign({}, store, {
10573 + subscribe: function (listener2) {
10574 + var wrappedListener = function () { return notifying && listener2(); };
10575 + var unsubscribe = store.subscribe(wrappedListener);
10576 + listeners.add(listener2);
10577 + return function () {
10578 + unsubscribe();
10579 + listeners.delete(listener2);
10580 + };
10581 + },
10582 + dispatch: function (action) {
10583 + var _a;
10584 + try {
10585 + notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);
10586 + shouldNotifyAtEndOfTick = !notifying;
10587 + if (shouldNotifyAtEndOfTick) {
10588 + if (!notificationQueued) {
10589 + notificationQueued = true;
10590 + queueCallback(notifyListeners);
10591 + }
10592 + }
10593 + return store.dispatch(action);
10594 + }
10595 + finally {
10596 + notifying = true;
10597 + }
10598 + }
10599 + });
10600 + }; };
10601 +};
10602 +// src/index.ts
10603 +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)();
10604 +
10605 +//# sourceMappingURL=redux-toolkit.esm.js.map
10606 +
10607 +/***/ }),
10608 +
10609 +/***/ "../node_modules/immer/dist/immer.esm.mjs":
8386 10610 /*!************************************************!*\
8387 - !*** external "elementorVendors.reduxToolkit" ***!
10611 + !*** ../node_modules/immer/dist/immer.esm.mjs ***!
8388 10612 \************************************************/
8389 -/***/ ((module) => {
10613 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8390 10614
8391 10615 "use strict";
8392 -module.exports = elementorVendors.reduxToolkit;
10616 +__webpack_require__.r(__webpack_exports__);
10617 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
10618 +/* harmony export */ Immer: () => (/* binding */ un),
10619 +/* harmony export */ applyPatches: () => (/* binding */ pn),
10620 +/* harmony export */ castDraft: () => (/* binding */ K),
10621 +/* harmony export */ castImmutable: () => (/* binding */ $),
10622 +/* harmony export */ createDraft: () => (/* binding */ ln),
10623 +/* harmony export */ current: () => (/* binding */ R),
10624 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
10625 +/* harmony export */ enableAllPlugins: () => (/* binding */ J),
10626 +/* harmony export */ enableES5: () => (/* binding */ F),
10627 +/* harmony export */ enableMapSet: () => (/* binding */ C),
10628 +/* harmony export */ enablePatches: () => (/* binding */ T),
10629 +/* harmony export */ finishDraft: () => (/* binding */ dn),
10630 +/* harmony export */ freeze: () => (/* binding */ d),
10631 +/* harmony export */ immerable: () => (/* binding */ L),
10632 +/* harmony export */ isDraft: () => (/* binding */ r),
10633 +/* harmony export */ isDraftable: () => (/* binding */ t),
10634 +/* harmony export */ nothing: () => (/* binding */ H),
10635 +/* harmony export */ original: () => (/* binding */ e),
10636 +/* harmony export */ produce: () => (/* binding */ fn),
10637 +/* harmony export */ produceWithPatches: () => (/* binding */ cn),
10638 +/* harmony export */ setAutoFreeze: () => (/* binding */ sn),
10639 +/* harmony export */ setUseProxies: () => (/* binding */ vn)
10640 +/* harmony export */ });
10641 +function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if(true){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}// removed by dead control flow
10642 +{}}function r(n){return!!n&&!!n[Q]}function t(n){var r;return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function e(t){return r(t)||n(23,t),t[Q].t}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n)})):n.forEach((function(t,e){return r(e,t,n)}))}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return false||U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b("Patches").N(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s,v){if( true&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function N(n,r,t){var e=s(r)?b("MapSet").F(r,t):v(r)?b("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return(t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return true&&f(r),en.get(r,n)},set:function(r){var t=this[Q]; true&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return!0;return!1}function f(r){r.g&&n(3,JSON.stringify(p(r)))}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.R,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t))}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)o.hasOwnProperty(l)||(f[l]=!0),void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}function T(){function e(n){if(!t(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var r=Object.create(Object.getPrototypeOf(n));for(var i in n)r[i]=e(n[i]);return u(n,L)&&(r[L]=n[L]),r}function f(n){return r(n)?e(n):n}var c="add";m("Patches",{$:function(r,t){return t.forEach((function(t){for(var i=t.path,u=t.op,f=r,s=0;s<i.length-1;s++){var v=o(f),p=i[s];"string"!=typeof p&&"number"!=typeof p&&(p=""+p),0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=o(f),d=e(t.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return"-"===h?f.push(d):f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(t.value);default:return delete f[h]}default:n(17,u)}})),r},N:function(n,r,t,e){switch(n.i){case 0:case 4:case 2:return function(n,r,t,e){var o=n.t,s=n.o;i(n.R,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=r.concat(n);t.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,r,t,e);case 5:case 1:return function(n,r,t,e){var i=n.t,o=n.R,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,t];t=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=r.concat([v]);t.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=r.concat([l]);t.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:r.concat(["length"]),value:i.length})}(n,r,t,e);case 3:return function(n,r,t,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=r.concat([u]);t.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=r.concat([u]);t.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,r,t,e)}},M:function(n,r,t,e){t.push({op:"replace",path:[],value:r===H?void 0:r}),e.push({op:"replace",path:[],value:n})}})}function C(){function r(n,r){function t(){this.constructor=n}a(n,r),n.prototype=(t.prototype=r.prototype,new t)}function e(n){n.o||(n.R=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(r){if(t(r)){var e=N(n.A.h,r,n);n.p.set(r,e),n.o.add(e)}else n.o.add(r)})))}function u(r){r.g&&n(3,JSON.stringify(p(r)))}var a=function(n,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)},f=function(){function n(n,r){return this[Q]={i:2,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,R:void 0,t:n,k:this,C:!1,g:!1},this}r(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,r){var t=this[Q];return u(t),p(t).has(n)&&p(t).get(n)===r||(e(t),k(t),t.R.set(n,!0),t.o.set(n,r),t.R.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),e(r),k(r),r.t.has(n)?r.R.set(n,!1):r.R.delete(n),r.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.R=new Map,i(n.t,(function(r){n.R.set(r,!1)})),n.o.clear())},o.forEach=function(n,r){var t=this;p(this[Q]).forEach((function(e,i){n.call(r,t.get(i),i,t)}))},o.get=function(n){var r=this[Q];u(r);var i=p(r).get(n);if(r.I||!t(i))return i;if(i!==r.t.get(n))return i;var o=N(r.A.h,i,r);return e(r),r.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.values()},n.next=function(){var n=t.next();return n.done?n:{done:!1,value:r.get(n.value)}},n},o.entries=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.entries()},n.next=function(){var n=t.next();if(n.done)return n;var e=r.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,r){return this[Q]={i:3,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,g:!1,C:!1},this}r(n,Set);var t=n.prototype;return Object.defineProperty(t,"size",{get:function(){return p(this[Q]).size}}),t.has=function(n){var r=this[Q];return u(r),r.o?!!r.o.has(n)||!(!r.p.has(n)||!r.o.has(r.p.get(n))):r.t.has(n)},t.add=function(n){var r=this[Q];return u(r),this.has(n)||(o(r),k(r),r.o.add(n)),this},t.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),o(r),k(r),r.o.delete(n)||!!r.p.has(n)&&r.o.delete(r.p.get(n))},t.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},t.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},t.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},t.keys=function(){return this.values()},t[V]=function(){return this.values()},t.forEach=function(n,r){for(var t=this.values(),e=t.next();!e.done;)n.call(r,e.value,e.value,this),e=t.next()},n}();m("MapSet",{F:function(n,r){return new f(n,r)},T:function(n,r){return new c(n,r)}})}function J(){F(),C(),T()}function K(n){return n}function $(n){return n}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t)})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=N(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.R[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return!0;E(n),k(n)}return n.o[r]===t&&(void 0!==t||r in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[r])||(n.o[r]=t,n.R[r]=!0),!0},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.R[r]=!1,E(n),k(n)):delete n.R[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),on.deleteProperty=function(r,t){return true&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return true&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.D=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return(t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=N(e,r,void 0),v=!0;try{f=i(s),v=!1}finally{v?g(c):O(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.D&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l)}return f}n(21,r)},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return[n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=R(e));var i=w(this),o=N(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q]; true&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.D=n},i.setUseProxies=function(r){r&&!B&&n(20),this.O=r},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fn);
10643 +//# sourceMappingURL=immer.esm.js.map
8393 10644
10645 +
10646 +/***/ }),
10647 +
10648 +/***/ "../node_modules/redux-thunk/es/index.js":
10649 +/*!***********************************************!*\
10650 + !*** ../node_modules/redux-thunk/es/index.js ***!
10651 + \***********************************************/
10652 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10653 +
10654 +"use strict";
10655 +__webpack_require__.r(__webpack_exports__);
10656 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
10657 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
10658 +/* harmony export */ });
10659 +/** A function that accepts a potential "extra argument" value to be injected later,
10660 + * and returns an instance of the thunk middleware that uses that value
10661 + */
10662 +function createThunkMiddleware(extraArgument) {
10663 + // Standard Redux middleware definition pattern:
10664 + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
10665 + var middleware = function middleware(_ref) {
10666 + var dispatch = _ref.dispatch,
10667 + getState = _ref.getState;
10668 + return function (next) {
10669 + return function (action) {
10670 + // The thunk middleware looks for any functions that were passed to `store.dispatch`.
10671 + // If this "action" is really a function, call it and return the result.
10672 + if (typeof action === 'function') {
10673 + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
10674 + return action(dispatch, getState, extraArgument);
10675 + } // Otherwise, pass the action down the middleware chain as usual
10676 +
10677 +
10678 + return next(action);
10679 + };
10680 + };
10681 + };
10682 +
10683 + return middleware;
10684 +}
10685 +
10686 +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
10687 +// with whatever "extra arg" they want to inject into their thunks
10688 +
10689 +thunk.withExtraArgument = createThunkMiddleware;
10690 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk);
10691 +
10692 +/***/ }),
10693 +
10694 +/***/ "../node_modules/redux/es/redux.js":
10695 +/*!*****************************************!*\
10696 + !*** ../node_modules/redux/es/redux.js ***!
10697 + \*****************************************/
10698 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10699 +
10700 +"use strict";
10701 +__webpack_require__.r(__webpack_exports__);
10702 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
10703 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* binding */ ActionTypes),
10704 +/* harmony export */ applyMiddleware: () => (/* binding */ applyMiddleware),
10705 +/* harmony export */ bindActionCreators: () => (/* binding */ bindActionCreators),
10706 +/* harmony export */ combineReducers: () => (/* binding */ combineReducers),
10707 +/* harmony export */ compose: () => (/* binding */ compose),
10708 +/* harmony export */ createStore: () => (/* binding */ createStore),
10709 +/* harmony export */ legacy_createStore: () => (/* binding */ legacy_createStore)
10710 +/* harmony export */ });
10711 +/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js");
10712 +
10713 +
10714 +/**
10715 + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
10716 + *
10717 + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
10718 + * during build.
10719 + * @param {number} code
10720 + */
10721 +function formatProdErrorMessage(code) {
10722 + return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
10723 +}
10724 +
10725 +// Inlined version of the `symbol-observable` polyfill
10726 +var $$observable = (function () {
10727 + return typeof Symbol === 'function' && Symbol.observable || '@@observable';
10728 +})();
10729 +
10730 +/**
10731 + * These are private action types reserved by Redux.
10732 + * For any unknown actions, you must return the current state.
10733 + * If the current state is undefined, you must return the initial state.
10734 + * Do not reference these action types directly in your code.
10735 + */
10736 +var randomString = function randomString() {
10737 + return Math.random().toString(36).substring(7).split('').join('.');
10738 +};
10739 +
10740 +var ActionTypes = {
10741 + INIT: "@@redux/INIT" + randomString(),
10742 + REPLACE: "@@redux/REPLACE" + randomString(),
10743 + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
10744 + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
10745 + }
10746 +};
10747 +
10748 +/**
10749 + * @param {any} obj The object to inspect.
10750 + * @returns {boolean} True if the argument appears to be a plain object.
10751 + */
10752 +function isPlainObject(obj) {
10753 + if (typeof obj !== 'object' || obj === null) return false;
10754 + var proto = obj;
10755 +
10756 + while (Object.getPrototypeOf(proto) !== null) {
10757 + proto = Object.getPrototypeOf(proto);
10758 + }
10759 +
10760 + return Object.getPrototypeOf(obj) === proto;
10761 +}
10762 +
10763 +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
10764 +function miniKindOf(val) {
10765 + if (val === void 0) return 'undefined';
10766 + if (val === null) return 'null';
10767 + var type = typeof val;
10768 +
10769 + switch (type) {
10770 + case 'boolean':
10771 + case 'string':
10772 + case 'number':
10773 + case 'symbol':
10774 + case 'function':
10775 + {
10776 + return type;
10777 + }
10778 + }
10779 +
10780 + if (Array.isArray(val)) return 'array';
10781 + if (isDate(val)) return 'date';
10782 + if (isError(val)) return 'error';
10783 + var constructorName = ctorName(val);
10784 +
10785 + switch (constructorName) {
10786 + case 'Symbol':
10787 + case 'Promise':
10788 + case 'WeakMap':
10789 + case 'WeakSet':
10790 + case 'Map':
10791 + case 'Set':
10792 + return constructorName;
10793 + } // other
10794 +
10795 +
10796 + return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
10797 +}
10798 +
10799 +function ctorName(val) {
10800 + return typeof val.constructor === 'function' ? val.constructor.name : null;
10801 +}
10802 +
10803 +function isError(val) {
10804 + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
10805 +}
10806 +
10807 +function isDate(val) {
10808 + if (val instanceof Date) return true;
10809 + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
10810 +}
10811 +
10812 +function kindOf(val) {
10813 + var typeOfVal = typeof val;
10814 +
10815 + if (true) {
10816 + typeOfVal = miniKindOf(val);
10817 + }
10818 +
10819 + return typeOfVal;
10820 +}
10821 +
10822 +/**
10823 + * @deprecated
10824 + *
10825 + * **We recommend using the `configureStore` method
10826 + * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
10827 + *
10828 + * Redux Toolkit is our recommended approach for writing Redux logic today,
10829 + * including store setup, reducers, data fetching, and more.
10830 + *
10831 + * **For more details, please read this Redux docs page:**
10832 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
10833 + *
10834 + * `configureStore` from Redux Toolkit is an improved version of `createStore` that
10835 + * simplifies setup and helps avoid common bugs.
10836 + *
10837 + * You should not be using the `redux` core package by itself today, except for learning purposes.
10838 + * The `createStore` method from the core `redux` package will not be removed, but we encourage
10839 + * all users to migrate to using Redux Toolkit for all Redux code.
10840 + *
10841 + * If you want to use `createStore` without this visual deprecation warning, use
10842 + * the `legacy_createStore` import instead:
10843 + *
10844 + * `import { legacy_createStore as createStore} from 'redux'`
10845 + *
10846 + */
10847 +
10848 +function createStore(reducer, preloadedState, enhancer) {
10849 + var _ref2;
10850 +
10851 + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
10852 + throw new Error( false ? 0 : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');
10853 + }
10854 +
10855 + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
10856 + enhancer = preloadedState;
10857 + preloadedState = undefined;
10858 + }
10859 +
10860 + if (typeof enhancer !== 'undefined') {
10861 + if (typeof enhancer !== 'function') {
10862 + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
10863 + }
10864 +
10865 + return enhancer(createStore)(reducer, preloadedState);
10866 + }
10867 +
10868 + if (typeof reducer !== 'function') {
10869 + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
10870 + }
10871 +
10872 + var currentReducer = reducer;
10873 + var currentState = preloadedState;
10874 + var currentListeners = [];
10875 + var nextListeners = currentListeners;
10876 + var isDispatching = false;
10877 + /**
10878 + * This makes a shallow copy of currentListeners so we can use
10879 + * nextListeners as a temporary list while dispatching.
10880 + *
10881 + * This prevents any bugs around consumers calling
10882 + * subscribe/unsubscribe in the middle of a dispatch.
10883 + */
10884 +
10885 + function ensureCanMutateNextListeners() {
10886 + if (nextListeners === currentListeners) {
10887 + nextListeners = currentListeners.slice();
10888 + }
10889 + }
10890 + /**
10891 + * Reads the state tree managed by the store.
10892 + *
10893 + * @returns {any} The current state tree of your application.
10894 + */
10895 +
10896 +
10897 + function getState() {
10898 + if (isDispatching) {
10899 + throw new Error( false ? 0 : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
10900 + }
10901 +
10902 + return currentState;
10903 + }
10904 + /**
10905 + * Adds a change listener. It will be called any time an action is dispatched,
10906 + * and some part of the state tree may potentially have changed. You may then
10907 + * call `getState()` to read the current state tree inside the callback.
10908 + *
10909 + * You may call `dispatch()` from a change listener, with the following
10910 + * caveats:
10911 + *
10912 + * 1. The subscriptions are snapshotted just before every `dispatch()` call.
10913 + * If you subscribe or unsubscribe while the listeners are being invoked, this
10914 + * will not have any effect on the `dispatch()` that is currently in progress.
10915 + * However, the next `dispatch()` call, whether nested or not, will use a more
10916 + * recent snapshot of the subscription list.
10917 + *
10918 + * 2. The listener should not expect to see all state changes, as the state
10919 + * might have been updated multiple times during a nested `dispatch()` before
10920 + * the listener is called. It is, however, guaranteed that all subscribers
10921 + * registered before the `dispatch()` started will be called with the latest
10922 + * state by the time it exits.
10923 + *
10924 + * @param {Function} listener A callback to be invoked on every dispatch.
10925 + * @returns {Function} A function to remove this change listener.
10926 + */
10927 +
10928 +
10929 + function subscribe(listener) {
10930 + if (typeof listener !== 'function') {
10931 + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
10932 + }
10933 +
10934 + if (isDispatching) {
10935 + throw new Error( false ? 0 : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
10936 + }
10937 +
10938 + var isSubscribed = true;
10939 + ensureCanMutateNextListeners();
10940 + nextListeners.push(listener);
10941 + return function unsubscribe() {
10942 + if (!isSubscribed) {
10943 + return;
10944 + }
10945 +
10946 + if (isDispatching) {
10947 + throw new Error( false ? 0 : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
10948 + }
10949 +
10950 + isSubscribed = false;
10951 + ensureCanMutateNextListeners();
10952 + var index = nextListeners.indexOf(listener);
10953 + nextListeners.splice(index, 1);
10954 + currentListeners = null;
10955 + };
10956 + }
10957 + /**
10958 + * Dispatches an action. It is the only way to trigger a state change.
10959 + *
10960 + * The `reducer` function, used to create the store, will be called with the
10961 + * current state tree and the given `action`. Its return value will
10962 + * be considered the **next** state of the tree, and the change listeners
10963 + * will be notified.
10964 + *
10965 + * The base implementation only supports plain object actions. If you want to
10966 + * dispatch a Promise, an Observable, a thunk, or something else, you need to
10967 + * wrap your store creating function into the corresponding middleware. For
10968 + * example, see the documentation for the `redux-thunk` package. Even the
10969 + * middleware will eventually dispatch plain object actions using this method.
10970 + *
10971 + * @param {Object} action A plain object representing “what changed”. It is
10972 + * a good idea to keep actions serializable so you can record and replay user
10973 + * sessions, or use the time travelling `redux-devtools`. An action must have
10974 + * a `type` property which may not be `undefined`. It is a good idea to use
10975 + * string constants for action types.
10976 + *
10977 + * @returns {Object} For convenience, the same action object you dispatched.
10978 + *
10979 + * Note that, if you use a custom middleware, it may wrap `dispatch()` to
10980 + * return something else (for example, a Promise you can await).
10981 + */
10982 +
10983 +
10984 + function dispatch(action) {
10985 + if (!isPlainObject(action)) {
10986 + throw new Error( false ? 0 : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
10987 + }
10988 +
10989 + if (typeof action.type === 'undefined') {
10990 + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
10991 + }
10992 +
10993 + if (isDispatching) {
10994 + throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
10995 + }
10996 +
10997 + try {
10998 + isDispatching = true;
10999 + currentState = currentReducer(currentState, action);
11000 + } finally {
11001 + isDispatching = false;
11002 + }
11003 +
11004 + var listeners = currentListeners = nextListeners;
11005 +
11006 + for (var i = 0; i < listeners.length; i++) {
11007 + var listener = listeners[i];
11008 + listener();
11009 + }
11010 +
11011 + return action;
11012 + }
11013 + /**
11014 + * Replaces the reducer currently used by the store to calculate the state.
11015 + *
11016 + * You might need this if your app implements code splitting and you want to
11017 + * load some of the reducers dynamically. You might also need this if you
11018 + * implement a hot reloading mechanism for Redux.
11019 + *
11020 + * @param {Function} nextReducer The reducer for the store to use instead.
11021 + * @returns {void}
11022 + */
11023 +
11024 +
11025 + function replaceReducer(nextReducer) {
11026 + if (typeof nextReducer !== 'function') {
11027 + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
11028 + }
11029 +
11030 + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
11031 + // Any reducers that existed in both the new and old rootReducer
11032 + // will receive the previous state. This effectively populates
11033 + // the new state tree with any relevant data from the old one.
11034 +
11035 + dispatch({
11036 + type: ActionTypes.REPLACE
11037 + });
11038 + }
11039 + /**
11040 + * Interoperability point for observable/reactive libraries.
11041 + * @returns {observable} A minimal observable of state changes.
11042 + * For more information, see the observable proposal:
11043 + * https://github.com/tc39/proposal-observable
11044 + */
11045 +
11046 +
11047 + function observable() {
11048 + var _ref;
11049 +
11050 + var outerSubscribe = subscribe;
11051 + return _ref = {
11052 + /**
11053 + * The minimal observable subscription method.
11054 + * @param {Object} observer Any object that can be used as an observer.
11055 + * The observer object should have a `next` method.
11056 + * @returns {subscription} An object with an `unsubscribe` method that can
11057 + * be used to unsubscribe the observable from the store, and prevent further
11058 + * emission of values from the observable.
11059 + */
11060 + subscribe: function subscribe(observer) {
11061 + if (typeof observer !== 'object' || observer === null) {
11062 + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
11063 + }
11064 +
11065 + function observeState() {
11066 + if (observer.next) {
11067 + observer.next(getState());
11068 + }
11069 + }
11070 +
11071 + observeState();
11072 + var unsubscribe = outerSubscribe(observeState);
11073 + return {
11074 + unsubscribe: unsubscribe
11075 + };
11076 + }
11077 + }, _ref[$$observable] = function () {
11078 + return this;
11079 + }, _ref;
11080 + } // When a store is created, an "INIT" action is dispatched so that every
11081 + // reducer returns their initial state. This effectively populates
11082 + // the initial state tree.
11083 +
11084 +
11085 + dispatch({
11086 + type: ActionTypes.INIT
11087 + });
11088 + return _ref2 = {
11089 + dispatch: dispatch,
11090 + subscribe: subscribe,
11091 + getState: getState,
11092 + replaceReducer: replaceReducer
11093 + }, _ref2[$$observable] = observable, _ref2;
11094 +}
11095 +/**
11096 + * Creates a Redux store that holds the state tree.
11097 + *
11098 + * **We recommend using `configureStore` from the
11099 + * `@reduxjs/toolkit` package**, which replaces `createStore`:
11100 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
11101 + *
11102 + * The only way to change the data in the store is to call `dispatch()` on it.
11103 + *
11104 + * There should only be a single store in your app. To specify how different
11105 + * parts of the state tree respond to actions, you may combine several reducers
11106 + * into a single reducer function by using `combineReducers`.
11107 + *
11108 + * @param {Function} reducer A function that returns the next state tree, given
11109 + * the current state tree and the action to handle.
11110 + *
11111 + * @param {any} [preloadedState] The initial state. You may optionally specify it
11112 + * to hydrate the state from the server in universal apps, or to restore a
11113 + * previously serialized user session.
11114 + * If you use `combineReducers` to produce the root reducer function, this must be
11115 + * an object with the same shape as `combineReducers` keys.
11116 + *
11117 + * @param {Function} [enhancer] The store enhancer. You may optionally specify it
11118 + * to enhance the store with third-party capabilities such as middleware,
11119 + * time travel, persistence, etc. The only store enhancer that ships with Redux
11120 + * is `applyMiddleware()`.
11121 + *
11122 + * @returns {Store} A Redux store that lets you read the state, dispatch actions
11123 + * and subscribe to changes.
11124 + */
11125 +
11126 +var legacy_createStore = createStore;
11127 +
11128 +/**
11129 + * Prints a warning in the console if it exists.
11130 + *
11131 + * @param {String} message The warning message.
11132 + * @returns {void}
11133 + */
11134 +function warning(message) {
11135 + /* eslint-disable no-console */
11136 + if (typeof console !== 'undefined' && typeof console.error === 'function') {
11137 + console.error(message);
11138 + }
11139 + /* eslint-enable no-console */
11140 +
11141 +
11142 + try {
11143 + // This error was thrown as a convenience so that if you enable
11144 + // "break on all exceptions" in your console,
11145 + // it would pause the execution at this line.
11146 + throw new Error(message);
11147 + } catch (e) {} // eslint-disable-line no-empty
11148 +
11149 +}
11150 +
11151 +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
11152 + var reducerKeys = Object.keys(reducers);
11153 + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
11154 +
11155 + if (reducerKeys.length === 0) {
11156 + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
11157 + }
11158 +
11159 + if (!isPlainObject(inputState)) {
11160 + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
11161 + }
11162 +
11163 + var unexpectedKeys = Object.keys(inputState).filter(function (key) {
11164 + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
11165 + });
11166 + unexpectedKeys.forEach(function (key) {
11167 + unexpectedKeyCache[key] = true;
11168 + });
11169 + if (action && action.type === ActionTypes.REPLACE) return;
11170 +
11171 + if (unexpectedKeys.length > 0) {
11172 + return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
11173 + }
11174 +}
11175 +
11176 +function assertReducerShape(reducers) {
11177 + Object.keys(reducers).forEach(function (key) {
11178 + var reducer = reducers[key];
11179 + var initialState = reducer(undefined, {
11180 + type: ActionTypes.INIT
11181 + });
11182 +
11183 + if (typeof initialState === 'undefined') {
11184 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
11185 + }
11186 +
11187 + if (typeof reducer(undefined, {
11188 + type: ActionTypes.PROBE_UNKNOWN_ACTION()
11189 + }) === 'undefined') {
11190 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
11191 + }
11192 + });
11193 +}
11194 +/**
11195 + * Turns an object whose values are different reducer functions, into a single
11196 + * reducer function. It will call every child reducer, and gather their results
11197 + * into a single state object, whose keys correspond to the keys of the passed
11198 + * reducer functions.
11199 + *
11200 + * @param {Object} reducers An object whose values correspond to different
11201 + * reducer functions that need to be combined into one. One handy way to obtain
11202 + * it is to use ES6 `import * as reducers` syntax. The reducers may never return
11203 + * undefined for any action. Instead, they should return their initial state
11204 + * if the state passed to them was undefined, and the current state for any
11205 + * unrecognized action.
11206 + *
11207 + * @returns {Function} A reducer function that invokes every reducer inside the
11208 + * passed object, and builds a state object with the same shape.
11209 + */
11210 +
11211 +
11212 +function combineReducers(reducers) {
11213 + var reducerKeys = Object.keys(reducers);
11214 + var finalReducers = {};
11215 +
11216 + for (var i = 0; i < reducerKeys.length; i++) {
11217 + var key = reducerKeys[i];
11218 +
11219 + if (true) {
11220 + if (typeof reducers[key] === 'undefined') {
11221 + warning("No reducer provided for key \"" + key + "\"");
11222 + }
11223 + }
11224 +
11225 + if (typeof reducers[key] === 'function') {
11226 + finalReducers[key] = reducers[key];
11227 + }
11228 + }
11229 +
11230 + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
11231 + // keys multiple times.
11232 +
11233 + var unexpectedKeyCache;
11234 +
11235 + if (true) {
11236 + unexpectedKeyCache = {};
11237 + }
11238 +
11239 + var shapeAssertionError;
11240 +
11241 + try {
11242 + assertReducerShape(finalReducers);
11243 + } catch (e) {
11244 + shapeAssertionError = e;
11245 + }
11246 +
11247 + return function combination(state, action) {
11248 + if (state === void 0) {
11249 + state = {};
11250 + }
11251 +
11252 + if (shapeAssertionError) {
11253 + throw shapeAssertionError;
11254 + }
11255 +
11256 + if (true) {
11257 + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
11258 +
11259 + if (warningMessage) {
11260 + warning(warningMessage);
11261 + }
11262 + }
11263 +
11264 + var hasChanged = false;
11265 + var nextState = {};
11266 +
11267 + for (var _i = 0; _i < finalReducerKeys.length; _i++) {
11268 + var _key = finalReducerKeys[_i];
11269 + var reducer = finalReducers[_key];
11270 + var previousStateForKey = state[_key];
11271 + var nextStateForKey = reducer(previousStateForKey, action);
11272 +
11273 + if (typeof nextStateForKey === 'undefined') {
11274 + var actionType = action && action.type;
11275 + throw new Error( false ? 0 : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.");
11276 + }
11277 +
11278 + nextState[_key] = nextStateForKey;
11279 + hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
11280 + }
11281 +
11282 + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
11283 + return hasChanged ? nextState : state;
11284 + };
11285 +}
11286 +
11287 +function bindActionCreator(actionCreator, dispatch) {
11288 + return function () {
11289 + return dispatch(actionCreator.apply(this, arguments));
11290 + };
11291 +}
11292 +/**
11293 + * Turns an object whose values are action creators, into an object with the
11294 + * same keys, but with every function wrapped into a `dispatch` call so they
11295 + * may be invoked directly. This is just a convenience method, as you can call
11296 + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
11297 + *
11298 + * For convenience, you can also pass an action creator as the first argument,
11299 + * and get a dispatch wrapped function in return.
11300 + *
11301 + * @param {Function|Object} actionCreators An object whose values are action
11302 + * creator functions. One handy way to obtain it is to use ES6 `import * as`
11303 + * syntax. You may also pass a single function.
11304 + *
11305 + * @param {Function} dispatch The `dispatch` function available on your Redux
11306 + * store.
11307 + *
11308 + * @returns {Function|Object} The object mimicking the original object, but with
11309 + * every action creator wrapped into the `dispatch` call. If you passed a
11310 + * function as `actionCreators`, the return value will also be a single
11311 + * function.
11312 + */
11313 +
11314 +
11315 +function bindActionCreators(actionCreators, dispatch) {
11316 + if (typeof actionCreators === 'function') {
11317 + return bindActionCreator(actionCreators, dispatch);
11318 + }
11319 +
11320 + if (typeof actionCreators !== 'object' || actionCreators === null) {
11321 + throw new Error( false ? 0 : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
11322 + }
11323 +
11324 + var boundActionCreators = {};
11325 +
11326 + for (var key in actionCreators) {
11327 + var actionCreator = actionCreators[key];
11328 +
11329 + if (typeof actionCreator === 'function') {
11330 + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
11331 + }
11332 + }
11333 +
11334 + return boundActionCreators;
11335 +}
11336 +
11337 +/**
11338 + * Composes single-argument functions from right to left. The rightmost
11339 + * function can take multiple arguments as it provides the signature for
11340 + * the resulting composite function.
11341 + *
11342 + * @param {...Function} funcs The functions to compose.
11343 + * @returns {Function} A function obtained by composing the argument functions
11344 + * from right to left. For example, compose(f, g, h) is identical to doing
11345 + * (...args) => f(g(h(...args))).
11346 + */
11347 +function compose() {
11348 + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
11349 + funcs[_key] = arguments[_key];
11350 + }
11351 +
11352 + if (funcs.length === 0) {
11353 + return function (arg) {
11354 + return arg;
11355 + };
11356 + }
11357 +
11358 + if (funcs.length === 1) {
11359 + return funcs[0];
11360 + }
11361 +
11362 + return funcs.reduce(function (a, b) {
11363 + return function () {
11364 + return a(b.apply(void 0, arguments));
11365 + };
11366 + });
11367 +}
11368 +
11369 +/**
11370 + * Creates a store enhancer that applies middleware to the dispatch method
11371 + * of the Redux store. This is handy for a variety of tasks, such as expressing
11372 + * asynchronous actions in a concise manner, or logging every action payload.
11373 + *
11374 + * See `redux-thunk` package as an example of the Redux middleware.
11375 + *
11376 + * Because middleware is potentially asynchronous, this should be the first
11377 + * store enhancer in the composition chain.
11378 + *
11379 + * Note that each middleware will be given the `dispatch` and `getState` functions
11380 + * as named arguments.
11381 + *
11382 + * @param {...Function} middlewares The middleware chain to be applied.
11383 + * @returns {Function} A store enhancer applying the middleware.
11384 + */
11385 +
11386 +function applyMiddleware() {
11387 + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
11388 + middlewares[_key] = arguments[_key];
11389 + }
11390 +
11391 + return function (createStore) {
11392 + return function () {
11393 + var store = createStore.apply(void 0, arguments);
11394 +
11395 + var _dispatch = function dispatch() {
11396 + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
11397 + };
11398 +
11399 + var middlewareAPI = {
11400 + getState: store.getState,
11401 + dispatch: function dispatch() {
11402 + return _dispatch.apply(void 0, arguments);
11403 + }
11404 + };
11405 + var chain = middlewares.map(function (middleware) {
11406 + return middleware(middlewareAPI);
11407 + });
11408 + _dispatch = compose.apply(void 0, chain)(store.dispatch);
11409 + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, {
11410 + dispatch: _dispatch
11411 + });
11412 + };
11413 + };
11414 +}
11415 +
11416 +
11417 +
11418 +
11419 +/***/ }),
11420 +
11421 +/***/ "../node_modules/reselect/es/defaultMemoize.js":
11422 +/*!*****************************************************!*\
11423 + !*** ../node_modules/reselect/es/defaultMemoize.js ***!
11424 + \*****************************************************/
11425 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11426 +
11427 +"use strict";
11428 +__webpack_require__.r(__webpack_exports__);
11429 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
11430 +/* harmony export */ createCacheKeyComparator: () => (/* binding */ createCacheKeyComparator),
11431 +/* harmony export */ defaultEqualityCheck: () => (/* binding */ defaultEqualityCheck),
11432 +/* harmony export */ defaultMemoize: () => (/* binding */ defaultMemoize)
11433 +/* harmony export */ });
11434 +// Cache implementation based on Erik Rasmussen's `lru-memoize`:
11435 +// https://github.com/erikras/lru-memoize
11436 +var NOT_FOUND = 'NOT_FOUND';
11437 +
11438 +function createSingletonCache(equals) {
11439 + var entry;
11440 + return {
11441 + get: function get(key) {
11442 + if (entry && equals(entry.key, key)) {
11443 + return entry.value;
11444 + }
11445 +
11446 + return NOT_FOUND;
11447 + },
11448 + put: function put(key, value) {
11449 + entry = {
11450 + key: key,
11451 + value: value
11452 + };
11453 + },
11454 + getEntries: function getEntries() {
11455 + return entry ? [entry] : [];
11456 + },
11457 + clear: function clear() {
11458 + entry = undefined;
11459 + }
11460 + };
11461 +}
11462 +
11463 +function createLruCache(maxSize, equals) {
11464 + var entries = [];
11465 +
11466 + function get(key) {
11467 + var cacheIndex = entries.findIndex(function (entry) {
11468 + return equals(key, entry.key);
11469 + }); // We found a cached entry
11470 +
11471 + if (cacheIndex > -1) {
11472 + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
11473 +
11474 + if (cacheIndex > 0) {
11475 + entries.splice(cacheIndex, 1);
11476 + entries.unshift(entry);
11477 + }
11478 +
11479 + return entry.value;
11480 + } // No entry found in cache, return sentinel
11481 +
11482 +
11483 + return NOT_FOUND;
11484 + }
11485 +
11486 + function put(key, value) {
11487 + if (get(key) === NOT_FOUND) {
11488 + // TODO Is unshift slow?
11489 + entries.unshift({
11490 + key: key,
11491 + value: value
11492 + });
11493 +
11494 + if (entries.length > maxSize) {
11495 + entries.pop();
11496 + }
11497 + }
11498 + }
11499 +
11500 + function getEntries() {
11501 + return entries;
11502 + }
11503 +
11504 + function clear() {
11505 + entries = [];
11506 + }
11507 +
11508 + return {
11509 + get: get,
11510 + put: put,
11511 + getEntries: getEntries,
11512 + clear: clear
11513 + };
11514 +}
11515 +
11516 +var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
11517 + return a === b;
11518 +};
11519 +function createCacheKeyComparator(equalityCheck) {
11520 + return function areArgumentsShallowlyEqual(prev, next) {
11521 + if (prev === null || next === null || prev.length !== next.length) {
11522 + return false;
11523 + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
11524 +
11525 +
11526 + var length = prev.length;
11527 +
11528 + for (var i = 0; i < length; i++) {
11529 + if (!equalityCheck(prev[i], next[i])) {
11530 + return false;
11531 + }
11532 + }
11533 +
11534 + return true;
11535 + };
11536 +}
11537 +// defaultMemoize now supports a configurable cache size with LRU behavior,
11538 +// and optional comparison of the result value with existing values
11539 +function defaultMemoize(func, equalityCheckOrOptions) {
11540 + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
11541 + equalityCheck: equalityCheckOrOptions
11542 + };
11543 + var _providedOptions$equa = providedOptions.equalityCheck,
11544 + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
11545 + _providedOptions$maxS = providedOptions.maxSize,
11546 + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
11547 + resultEqualityCheck = providedOptions.resultEqualityCheck;
11548 + var comparator = createCacheKeyComparator(equalityCheck);
11549 + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
11550 +
11551 + function memoized() {
11552 + var value = cache.get(arguments);
11553 +
11554 + if (value === NOT_FOUND) {
11555 + // @ts-ignore
11556 + value = func.apply(null, arguments);
11557 +
11558 + if (resultEqualityCheck) {
11559 + var entries = cache.getEntries();
11560 + var matchingEntry = entries.find(function (entry) {
11561 + return resultEqualityCheck(entry.value, value);
11562 + });
11563 +
11564 + if (matchingEntry) {
11565 + value = matchingEntry.value;
11566 + }
11567 + }
11568 +
11569 + cache.put(arguments, value);
11570 + }
11571 +
11572 + return value;
11573 + }
11574 +
11575 + memoized.clearCache = function () {
11576 + return cache.clear();
11577 + };
11578 +
11579 + return memoized;
11580 +}
11581 +
11582 +/***/ }),
11583 +
11584 +/***/ "../node_modules/reselect/es/index.js":
11585 +/*!********************************************!*\
11586 + !*** ../node_modules/reselect/es/index.js ***!
11587 + \********************************************/
11588 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
11589 +
11590 +"use strict";
11591 +__webpack_require__.r(__webpack_exports__);
11592 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
11593 +/* harmony export */ createSelector: () => (/* binding */ createSelector),
11594 +/* harmony export */ createSelectorCreator: () => (/* binding */ createSelectorCreator),
11595 +/* harmony export */ createStructuredSelector: () => (/* binding */ createStructuredSelector),
11596 +/* harmony export */ defaultEqualityCheck: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck),
11597 +/* harmony export */ defaultMemoize: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize)
11598 +/* harmony export */ });
11599 +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js");
11600 +
11601 +
11602 +
11603 +function getDependencies(funcs) {
11604 + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
11605 +
11606 + if (!dependencies.every(function (dep) {
11607 + return typeof dep === 'function';
11608 + })) {
11609 + var dependencyTypes = dependencies.map(function (dep) {
11610 + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
11611 + }).join(', ');
11612 + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
11613 + }
11614 +
11615 + return dependencies;
11616 +}
11617 +
11618 +function createSelectorCreator(memoize) {
11619 + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
11620 + memoizeOptionsFromArgs[_key - 1] = arguments[_key];
11621 + }
11622 +
11623 + var createSelector = function createSelector() {
11624 + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
11625 + funcs[_key2] = arguments[_key2];
11626 + }
11627 +
11628 + var _recomputations = 0;
11629 +
11630 + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
11631 + // So, start by declaring the default value here.
11632 + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
11633 +
11634 +
11635 + var directlyPassedOptions = {
11636 + memoizeOptions: undefined
11637 + }; // Normally, the result func or "output selector" is the last arg
11638 +
11639 + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
11640 +
11641 + if (typeof resultFunc === 'object') {
11642 + directlyPassedOptions = resultFunc; // and pop the real result func off
11643 +
11644 + resultFunc = funcs.pop();
11645 + }
11646 +
11647 + if (typeof resultFunc !== 'function') {
11648 + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
11649 + } // Determine which set of options we're using. Prefer options passed directly,
11650 + // but fall back to options given to createSelectorCreator.
11651 +
11652 +
11653 + var _directlyPassedOption = directlyPassedOptions,
11654 + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
11655 + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
11656 + // is an array. In most libs I've looked at, it's an equality function or options object.
11657 + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
11658 + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
11659 + // we wrap it in an array so we can apply it.
11660 +
11661 + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
11662 + var dependencies = getDependencies(funcs);
11663 + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
11664 + _recomputations++; // apply arguments instead of spreading for performance.
11665 +
11666 + return resultFunc.apply(null, arguments);
11667 + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
11668 +
11669 + var selector = memoize(function dependenciesChecker() {
11670 + var params = [];
11671 + var length = dependencies.length;
11672 +
11673 + for (var i = 0; i < length; i++) {
11674 + // apply arguments instead of spreading and mutate a local list of params for performance.
11675 + // @ts-ignore
11676 + params.push(dependencies[i].apply(null, arguments));
11677 + } // apply arguments instead of spreading for performance.
11678 +
11679 +
11680 + _lastResult = memoizedResultFunc.apply(null, params);
11681 + return _lastResult;
11682 + });
11683 + Object.assign(selector, {
11684 + resultFunc: resultFunc,
11685 + memoizedResultFunc: memoizedResultFunc,
11686 + dependencies: dependencies,
11687 + lastResult: function lastResult() {
11688 + return _lastResult;
11689 + },
11690 + recomputations: function recomputations() {
11691 + return _recomputations;
11692 + },
11693 + resetRecomputations: function resetRecomputations() {
11694 + return _recomputations = 0;
11695 + }
11696 + });
11697 + return selector;
11698 + }; // @ts-ignore
11699 +
11700 +
11701 + return createSelector;
11702 +}
11703 +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize);
11704 +// Manual definition of state and output arguments
11705 +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {
11706 + if (selectorCreator === void 0) {
11707 + selectorCreator = createSelector;
11708 + }
11709 +
11710 + if (typeof selectors !== 'object') {
11711 + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors));
11712 + }
11713 +
11714 + var objectKeys = Object.keys(selectors);
11715 + var resultSelector = selectorCreator( // @ts-ignore
11716 + objectKeys.map(function (key) {
11717 + return selectors[key];
11718 + }), function () {
11719 + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
11720 + values[_key3] = arguments[_key3];
11721 + }
11722 +
11723 + return values.reduce(function (composition, value, index) {
11724 + composition[objectKeys[index]] = value;
11725 + return composition;
11726 + }, {});
11727 + });
11728 + return resultSelector;
11729 +};
11730 +
8394 11731 /***/ })
8395 11732
8396 11733 /******/ });
8397 11734 /************************************************************************/
@@ -8417,8 +11754,49 @@
8417 11754 /******/
8418 11755 /******/ // Return the exports of the module
8419 11756 /******/ return module.exports;
8420 11757 /******/ }
11758 +/******/
11759 +/************************************************************************/
11760 +/******/ /* webpack/runtime/define property getters */
11761 +/******/ (() => {
11762 +/******/ // define getter functions for harmony exports
11763 +/******/ __webpack_require__.d = (exports, definition) => {
11764 +/******/ for(var key in definition) {
11765 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
11766 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
11767 +/******/ }
11768 +/******/ }
11769 +/******/ };
11770 +/******/ })();
11771 +/******/
11772 +/******/ /* webpack/runtime/global */
11773 +/******/ (() => {
11774 +/******/ __webpack_require__.g = (function() {
11775 +/******/ if (typeof globalThis === 'object') return globalThis;
11776 +/******/ try {
11777 +/******/ return this || new Function('return this')();
11778 +/******/ } catch (e) {
11779 +/******/ if (typeof window === 'object') return window;
11780 +/******/ }
11781 +/******/ })();
11782 +/******/ })();
11783 +/******/
11784 +/******/ /* webpack/runtime/hasOwnProperty shorthand */
11785 +/******/ (() => {
11786 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
11787 +/******/ })();
11788 +/******/
11789 +/******/ /* webpack/runtime/make namespace object */
11790 +/******/ (() => {
11791 +/******/ // define __esModule on exports
11792 +/******/ __webpack_require__.r = (exports) => {
11793 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
11794 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
11795 +/******/ }
11796 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
11797 +/******/ };
11798 +/******/ })();
8421 11799 /******/
8422 11800 /************************************************************************/
8423 11801 var __webpack_exports__ = {};
8424 11802 // This entry needs to be wrapped in an IIFE because it needs to be in strict mode.