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