| @@ -1,172 +1,2050 @@ | ||
| 1 | +/*! elementor - v3.13.2 - 11-05-2023 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 4 | -/***/ "../app/modules/import-export-customization/assets/js/shared/registry/base.js": | |
| 5 | -/*!************************************************************************************!*\ | |
| 6 | - !*** ../app/modules/import-export-customization/assets/js/shared/registry/base.js ***! | |
| 7 | - \************************************************************************************/ | |
| 8 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5 | +/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js": | |
| 6 | +/*!******************************************************************!*\ | |
| 7 | + !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***! | |
| 8 | + \******************************************************************/ | |
| 9 | +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 9 | 10 | |
| 10 | 11 | "use strict"; |
| 12 | +__webpack_require__.r(__webpack_exports__); | |
| 13 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 14 | +/* harmony export */ "EnhancerArray": () => (/* binding */ EnhancerArray), | |
| 15 | +/* harmony export */ "MiddlewareArray": () => (/* binding */ MiddlewareArray), | |
| 16 | +/* harmony export */ "SHOULD_AUTOBATCH": () => (/* binding */ SHOULD_AUTOBATCH), | |
| 17 | +/* harmony export */ "TaskAbortError": () => (/* binding */ TaskAbortError), | |
| 18 | +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes), | |
| 19 | +/* harmony export */ "addListener": () => (/* binding */ addListener), | |
| 20 | +/* harmony export */ "applyMiddleware": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware), | |
| 21 | +/* harmony export */ "autoBatchEnhancer": () => (/* binding */ autoBatchEnhancer), | |
| 22 | +/* harmony export */ "bindActionCreators": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators), | |
| 23 | +/* harmony export */ "clearAllListeners": () => (/* binding */ clearAllListeners), | |
| 24 | +/* harmony export */ "combineReducers": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers), | |
| 25 | +/* harmony export */ "compose": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose), | |
| 26 | +/* harmony export */ "configureStore": () => (/* binding */ configureStore), | |
| 27 | +/* harmony export */ "createAction": () => (/* binding */ createAction), | |
| 28 | +/* harmony export */ "createAsyncThunk": () => (/* binding */ createAsyncThunk), | |
| 29 | +/* harmony export */ "createDraftSafeSelector": () => (/* binding */ createDraftSafeSelector), | |
| 30 | +/* harmony export */ "createEntityAdapter": () => (/* binding */ createEntityAdapter), | |
| 31 | +/* harmony export */ "createImmutableStateInvariantMiddleware": () => (/* binding */ createImmutableStateInvariantMiddleware), | |
| 32 | +/* harmony export */ "createListenerMiddleware": () => (/* binding */ createListenerMiddleware), | |
| 33 | +/* harmony export */ "createNextState": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]), | |
| 34 | +/* harmony export */ "createReducer": () => (/* binding */ createReducer), | |
| 35 | +/* harmony export */ "createSelector": () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector), | |
| 36 | +/* harmony export */ "createSerializableStateInvariantMiddleware": () => (/* binding */ createSerializableStateInvariantMiddleware), | |
| 37 | +/* harmony export */ "createSlice": () => (/* binding */ createSlice), | |
| 38 | +/* harmony export */ "createStore": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore), | |
| 39 | +/* harmony export */ "current": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current), | |
| 40 | +/* harmony export */ "findNonSerializableValue": () => (/* binding */ findNonSerializableValue), | |
| 41 | +/* harmony export */ "freeze": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze), | |
| 42 | +/* harmony export */ "getDefaultMiddleware": () => (/* binding */ getDefaultMiddleware), | |
| 43 | +/* harmony export */ "getType": () => (/* binding */ getType), | |
| 44 | +/* harmony export */ "isAction": () => (/* binding */ isAction), | |
| 45 | +/* harmony export */ "isAllOf": () => (/* binding */ isAllOf), | |
| 46 | +/* harmony export */ "isAnyOf": () => (/* binding */ isAnyOf), | |
| 47 | +/* harmony export */ "isAsyncThunkAction": () => (/* binding */ isAsyncThunkAction), | |
| 48 | +/* harmony export */ "isDraft": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft), | |
| 49 | +/* harmony export */ "isFluxStandardAction": () => (/* binding */ isFSA), | |
| 50 | +/* harmony export */ "isFulfilled": () => (/* binding */ isFulfilled), | |
| 51 | +/* harmony export */ "isImmutableDefault": () => (/* binding */ isImmutableDefault), | |
| 52 | +/* harmony export */ "isPending": () => (/* binding */ isPending), | |
| 53 | +/* harmony export */ "isPlain": () => (/* binding */ isPlain), | |
| 54 | +/* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject), | |
| 55 | +/* harmony export */ "isRejected": () => (/* binding */ isRejected), | |
| 56 | +/* harmony export */ "isRejectedWithValue": () => (/* binding */ isRejectedWithValue), | |
| 57 | +/* harmony export */ "legacy_createStore": () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.legacy_createStore), | |
| 58 | +/* harmony export */ "miniSerializeError": () => (/* binding */ miniSerializeError), | |
| 59 | +/* harmony export */ "nanoid": () => (/* binding */ nanoid), | |
| 60 | +/* harmony export */ "original": () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original), | |
| 61 | +/* harmony export */ "prepareAutoBatched": () => (/* binding */ prepareAutoBatched), | |
| 62 | +/* harmony export */ "removeListener": () => (/* binding */ removeListener), | |
| 63 | +/* harmony export */ "unwrapResult": () => (/* binding */ unwrapResult) | |
| 64 | +/* harmony export */ }); | |
| 65 | +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs"); | |
| 66 | +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js"); | |
| 67 | +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js"); | |
| 68 | +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js"); | |
| 69 | +var __extends = (undefined && undefined.__extends) || (function () { | |
| 70 | + var extendStatics = function (d, b) { | |
| 71 | + extendStatics = Object.setPrototypeOf || | |
| 72 | + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | |
| 73 | + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | |
| 74 | + return extendStatics(d, b); | |
| 75 | + }; | |
| 76 | + return function (d, b) { | |
| 77 | + if (typeof b !== "function" && b !== null) | |
| 78 | + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | |
| 79 | + extendStatics(d, b); | |
| 80 | + function __() { this.constructor = d; } | |
| 81 | + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | |
| 82 | + }; | |
| 83 | +})(); | |
| 84 | +var __generator = (undefined && undefined.__generator) || function (thisArg, body) { | |
| 85 | + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | |
| 86 | + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | |
| 87 | + function verb(n) { return function (v) { return step([n, v]); }; } | |
| 88 | + function step(op) { | |
| 89 | + if (f) throw new TypeError("Generator is already executing."); | |
| 90 | + while (_) try { | |
| 91 | + 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; | |
| 92 | + if (y = 0, t) op = [op[0] & 2, t.value]; | |
| 93 | + switch (op[0]) { | |
| 94 | + case 0: case 1: t = op; break; | |
| 95 | + case 4: _.label++; return { value: op[1], done: false }; | |
| 96 | + case 5: _.label++; y = op[1]; op = [0]; continue; | |
| 97 | + case 7: op = _.ops.pop(); _.trys.pop(); continue; | |
| 98 | + default: | |
| 99 | + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | |
| 100 | + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | |
| 101 | + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | |
| 102 | + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | |
| 103 | + if (t[2]) _.ops.pop(); | |
| 104 | + _.trys.pop(); continue; | |
| 105 | + } | |
| 106 | + op = body.call(thisArg, _); | |
| 107 | + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
| 108 | + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | |
| 109 | + } | |
| 110 | +}; | |
| 111 | +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) { | |
| 112 | + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | |
| 113 | + to[j] = from[i]; | |
| 114 | + return to; | |
| 115 | +}; | |
| 116 | +var __defProp = Object.defineProperty; | |
| 117 | +var __defProps = Object.defineProperties; | |
| 118 | +var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | |
| 119 | +var __getOwnPropSymbols = Object.getOwnPropertySymbols; | |
| 120 | +var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 121 | +var __propIsEnum = Object.prototype.propertyIsEnumerable; | |
| 122 | +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; }; | |
| 123 | +var __spreadValues = function (a, b) { | |
| 124 | + for (var prop in b || (b = {})) | |
| 125 | + if (__hasOwnProp.call(b, prop)) | |
| 126 | + __defNormalProp(a, prop, b[prop]); | |
| 127 | + if (__getOwnPropSymbols) | |
| 128 | + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) { | |
| 129 | + var prop = _c[_i]; | |
| 130 | + if (__propIsEnum.call(b, prop)) | |
| 131 | + __defNormalProp(a, prop, b[prop]); | |
| 132 | + } | |
| 133 | + return a; | |
| 134 | +}; | |
| 135 | +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); }; | |
| 136 | +var __async = function (__this, __arguments, generator) { | |
| 137 | + return new Promise(function (resolve, reject) { | |
| 138 | + var fulfilled = function (value) { | |
| 139 | + try { | |
| 140 | + step(generator.next(value)); | |
| 141 | + } | |
| 142 | + catch (e) { | |
| 143 | + reject(e); | |
| 144 | + } | |
| 145 | + }; | |
| 146 | + var rejected = function (value) { | |
| 147 | + try { | |
| 148 | + step(generator.throw(value)); | |
| 149 | + } | |
| 150 | + catch (e) { | |
| 151 | + reject(e); | |
| 152 | + } | |
| 153 | + }; | |
| 154 | + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); }; | |
| 155 | + step((generator = generator.apply(__this, __arguments)).next()); | |
| 156 | + }); | |
| 157 | +}; | |
| 158 | +// src/index.ts | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | +// src/createDraftSafeSelector.ts | |
| 164 | + | |
| 165 | + | |
| 166 | +var createDraftSafeSelector = function () { | |
| 167 | + var args = []; | |
| 168 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 169 | + args[_i] = arguments[_i]; | |
| 170 | + } | |
| 171 | + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args); | |
| 172 | + var wrappedSelector = function (value) { | |
| 173 | + var rest = []; | |
| 174 | + for (var _i = 1; _i < arguments.length; _i++) { | |
| 175 | + rest[_i - 1] = arguments[_i]; | |
| 176 | + } | |
| 177 | + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest)); | |
| 178 | + }; | |
| 179 | + return wrappedSelector; | |
| 180 | +}; | |
| 181 | +// src/configureStore.ts | |
| 182 | + | |
| 183 | +// src/devtoolsExtension.ts | |
| 184 | + | |
| 185 | +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () { | |
| 186 | + if (arguments.length === 0) | |
| 187 | + return void 0; | |
| 188 | + if (typeof arguments[0] === "object") | |
| 189 | + return redux__WEBPACK_IMPORTED_MODULE_0__.compose; | |
| 190 | + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments); | |
| 191 | +}; | |
| 192 | +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () { | |
| 193 | + return function (noop2) { | |
| 194 | + return noop2; | |
| 195 | + }; | |
| 196 | +}; | |
| 197 | +// src/isPlainObject.ts | |
| 198 | +function isPlainObject(value) { | |
| 199 | + if (typeof value !== "object" || value === null) | |
| 200 | + return false; | |
| 201 | + var proto = Object.getPrototypeOf(value); | |
| 202 | + if (proto === null) | |
| 203 | + return true; | |
| 204 | + var baseProto = proto; | |
| 205 | + while (Object.getPrototypeOf(baseProto) !== null) { | |
| 206 | + baseProto = Object.getPrototypeOf(baseProto); | |
| 207 | + } | |
| 208 | + return proto === baseProto; | |
| 209 | +} | |
| 210 | +// src/getDefaultMiddleware.ts | |
| 211 | + | |
| 212 | +// src/utils.ts | |
| 213 | + | |
| 214 | +function getTimeMeasureUtils(maxDelay, fnName) { | |
| 215 | + var elapsed = 0; | |
| 216 | + return { | |
| 217 | + measureTime: function (fn) { | |
| 218 | + var started = Date.now(); | |
| 219 | + try { | |
| 220 | + return fn(); | |
| 221 | + } | |
| 222 | + finally { | |
| 223 | + var finished = Date.now(); | |
| 224 | + elapsed += finished - started; | |
| 225 | + } | |
| 226 | + }, | |
| 227 | + warnIfExceeded: function () { | |
| 228 | + if (elapsed > maxDelay) { | |
| 229 | + 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."); | |
| 230 | + } | |
| 231 | + } | |
| 232 | + }; | |
| 233 | +} | |
| 234 | +var MiddlewareArray = /** @class */ (function (_super) { | |
| 235 | + __extends(MiddlewareArray, _super); | |
| 236 | + function MiddlewareArray() { | |
| 237 | + var args = []; | |
| 238 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 239 | + args[_i] = arguments[_i]; | |
| 240 | + } | |
| 241 | + var _this = _super.apply(this, args) || this; | |
| 242 | + Object.setPrototypeOf(_this, MiddlewareArray.prototype); | |
| 243 | + return _this; | |
| 244 | + } | |
| 245 | + Object.defineProperty(MiddlewareArray, Symbol.species, { | |
| 246 | + get: function () { | |
| 247 | + return MiddlewareArray; | |
| 248 | + }, | |
| 249 | + enumerable: false, | |
| 250 | + configurable: true | |
| 251 | + }); | |
| 252 | + MiddlewareArray.prototype.concat = function () { | |
| 253 | + var arr = []; | |
| 254 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 255 | + arr[_i] = arguments[_i]; | |
| 256 | + } | |
| 257 | + return _super.prototype.concat.apply(this, arr); | |
| 258 | + }; | |
| 259 | + MiddlewareArray.prototype.prepend = function () { | |
| 260 | + var arr = []; | |
| 261 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 262 | + arr[_i] = arguments[_i]; | |
| 263 | + } | |
| 264 | + if (arr.length === 1 && Array.isArray(arr[0])) { | |
| 265 | + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))(); | |
| 266 | + } | |
| 267 | + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))(); | |
| 268 | + }; | |
| 269 | + return MiddlewareArray; | |
| 270 | +}(Array)); | |
| 271 | +var EnhancerArray = /** @class */ (function (_super) { | |
| 272 | + __extends(EnhancerArray, _super); | |
| 273 | + function EnhancerArray() { | |
| 274 | + var args = []; | |
| 275 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 276 | + args[_i] = arguments[_i]; | |
| 277 | + } | |
| 278 | + var _this = _super.apply(this, args) || this; | |
| 279 | + Object.setPrototypeOf(_this, EnhancerArray.prototype); | |
| 280 | + return _this; | |
| 281 | + } | |
| 282 | + Object.defineProperty(EnhancerArray, Symbol.species, { | |
| 283 | + get: function () { | |
| 284 | + return EnhancerArray; | |
| 285 | + }, | |
| 286 | + enumerable: false, | |
| 287 | + configurable: true | |
| 288 | + }); | |
| 289 | + EnhancerArray.prototype.concat = function () { | |
| 290 | + var arr = []; | |
| 291 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 292 | + arr[_i] = arguments[_i]; | |
| 293 | + } | |
| 294 | + return _super.prototype.concat.apply(this, arr); | |
| 295 | + }; | |
| 296 | + EnhancerArray.prototype.prepend = function () { | |
| 297 | + var arr = []; | |
| 298 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 299 | + arr[_i] = arguments[_i]; | |
| 300 | + } | |
| 301 | + if (arr.length === 1 && Array.isArray(arr[0])) { | |
| 302 | + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))(); | |
| 303 | + } | |
| 304 | + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))(); | |
| 305 | + }; | |
| 306 | + return EnhancerArray; | |
| 307 | +}(Array)); | |
| 308 | +function freezeDraftable(val) { | |
| 309 | + return (0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(val, function () { | |
| 310 | + }) : val; | |
| 311 | +} | |
| 312 | +// src/immutableStateInvariantMiddleware.ts | |
| 313 | +var isProduction = "development" === "production"; | |
| 314 | +var prefix = "Invariant failed"; | |
| 315 | +function invariant(condition, message) { | |
| 316 | + if (condition) { | |
| 317 | + return; | |
| 318 | + } | |
| 319 | + if (isProduction) { | |
| 320 | + throw new Error(prefix); | |
| 321 | + } | |
| 322 | + throw new Error(prefix + ": " + (message || "")); | |
| 323 | +} | |
| 324 | +function stringify(obj, serializer, indent, decycler) { | |
| 325 | + return JSON.stringify(obj, getSerialize(serializer, decycler), indent); | |
| 326 | +} | |
| 327 | +function getSerialize(serializer, decycler) { | |
| 328 | + var stack = [], keys = []; | |
| 329 | + if (!decycler) | |
| 330 | + decycler = function (_, value) { | |
| 331 | + if (stack[0] === value) | |
| 332 | + return "[Circular ~]"; | |
| 333 | + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"; | |
| 334 | + }; | |
| 335 | + return function (key, value) { | |
| 336 | + if (stack.length > 0) { | |
| 337 | + var thisPos = stack.indexOf(this); | |
| 338 | + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this); | |
| 339 | + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key); | |
| 340 | + if (~stack.indexOf(value)) | |
| 341 | + value = decycler.call(this, key, value); | |
| 342 | + } | |
| 343 | + else | |
| 344 | + stack.push(value); | |
| 345 | + return serializer == null ? value : serializer.call(this, key, value); | |
| 346 | + }; | |
| 347 | +} | |
| 348 | +function isImmutableDefault(value) { | |
| 349 | + return typeof value !== "object" || value == null || Object.isFrozen(value); | |
| 350 | +} | |
| 351 | +function trackForMutations(isImmutable, ignorePaths, obj) { | |
| 352 | + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj); | |
| 353 | + return { | |
| 354 | + detectMutations: function () { | |
| 355 | + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj); | |
| 356 | + } | |
| 357 | + }; | |
| 358 | +} | |
| 359 | +function trackProperties(isImmutable, ignorePaths, obj, path) { | |
| 360 | + if (ignorePaths === void 0) { ignorePaths = []; } | |
| 361 | + if (path === void 0) { path = ""; } | |
| 362 | + var tracked = { value: obj }; | |
| 363 | + if (!isImmutable(obj)) { | |
| 364 | + tracked.children = {}; | |
| 365 | + for (var key in obj) { | |
| 366 | + var childPath = path ? path + "." + key : key; | |
| 367 | + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) { | |
| 368 | + continue; | |
| 369 | + } | |
| 370 | + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath); | |
| 371 | + } | |
| 372 | + } | |
| 373 | + return tracked; | |
| 374 | +} | |
| 375 | +function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) { | |
| 376 | + if (ignoredPaths === void 0) { ignoredPaths = []; } | |
| 377 | + if (sameParentRef === void 0) { sameParentRef = false; } | |
| 378 | + if (path === void 0) { path = ""; } | |
| 379 | + var prevObj = trackedProperty ? trackedProperty.value : void 0; | |
| 380 | + var sameRef = prevObj === obj; | |
| 381 | + if (sameParentRef && !sameRef && !Number.isNaN(obj)) { | |
| 382 | + return { wasMutated: true, path: path }; | |
| 383 | + } | |
| 384 | + if (isImmutable(prevObj) || isImmutable(obj)) { | |
| 385 | + return { wasMutated: false }; | |
| 386 | + } | |
| 387 | + var keysToDetect = {}; | |
| 388 | + for (var key in trackedProperty.children) { | |
| 389 | + keysToDetect[key] = true; | |
| 390 | + } | |
| 391 | + for (var key in obj) { | |
| 392 | + keysToDetect[key] = true; | |
| 393 | + } | |
| 394 | + var hasIgnoredPaths = ignoredPaths.length > 0; | |
| 395 | + var _loop_1 = function (key) { | |
| 396 | + var nestedPath = path ? path + "." + key : key; | |
| 397 | + if (hasIgnoredPaths) { | |
| 398 | + var hasMatches = ignoredPaths.some(function (ignored) { | |
| 399 | + if (ignored instanceof RegExp) { | |
| 400 | + return ignored.test(nestedPath); | |
| 401 | + } | |
| 402 | + return nestedPath === ignored; | |
| 403 | + }); | |
| 404 | + if (hasMatches) { | |
| 405 | + return "continue"; | |
| 406 | + } | |
| 407 | + } | |
| 408 | + var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath); | |
| 409 | + if (result.wasMutated) { | |
| 410 | + return { value: result }; | |
| 411 | + } | |
| 412 | + }; | |
| 413 | + for (var key in keysToDetect) { | |
| 414 | + var state_1 = _loop_1(key); | |
| 415 | + if (typeof state_1 === "object") | |
| 416 | + return state_1.value; | |
| 417 | + } | |
| 418 | + return { wasMutated: false }; | |
| 419 | +} | |
| 420 | +function createImmutableStateInvariantMiddleware(options) { | |
| 421 | + if (options === void 0) { options = {}; } | |
| 422 | + if (false) {} | |
| 423 | + 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; | |
| 424 | + ignoredPaths = ignoredPaths || ignore; | |
| 425 | + var track = trackForMutations.bind(null, isImmutable, ignoredPaths); | |
| 426 | + return function (_c) { | |
| 427 | + var getState = _c.getState; | |
| 428 | + var state = getState(); | |
| 429 | + var tracker = track(state); | |
| 430 | + var result; | |
| 431 | + return function (next) { return function (action) { | |
| 432 | + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware"); | |
| 433 | + measureUtils.measureTime(function () { | |
| 434 | + state = getState(); | |
| 435 | + result = tracker.detectMutations(); | |
| 436 | + tracker = track(state); | |
| 437 | + 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)"); | |
| 438 | + }); | |
| 439 | + var dispatchedAction = next(action); | |
| 440 | + measureUtils.measureTime(function () { | |
| 441 | + state = getState(); | |
| 442 | + result = tracker.detectMutations(); | |
| 443 | + tracker = track(state); | |
| 444 | + 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)"); | |
| 445 | + }); | |
| 446 | + measureUtils.warnIfExceeded(); | |
| 447 | + return dispatchedAction; | |
| 448 | + }; }; | |
| 449 | + }; | |
| 450 | +} | |
| 451 | +// src/serializableStateInvariantMiddleware.ts | |
| 452 | +function isPlain(val) { | |
| 453 | + var type = typeof val; | |
| 454 | + return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val); | |
| 455 | +} | |
| 456 | +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) { | |
| 457 | + if (path === void 0) { path = ""; } | |
| 458 | + if (isSerializable === void 0) { isSerializable = isPlain; } | |
| 459 | + if (ignoredPaths === void 0) { ignoredPaths = []; } | |
| 460 | + var foundNestedSerializable; | |
| 461 | + if (!isSerializable(value)) { | |
| 462 | + return { | |
| 463 | + keyPath: path || "<root>", | |
| 464 | + value: value | |
| 465 | + }; | |
| 466 | + } | |
| 467 | + if (typeof value !== "object" || value === null) { | |
| 468 | + return false; | |
| 469 | + } | |
| 470 | + if (cache == null ? void 0 : cache.has(value)) | |
| 471 | + return false; | |
| 472 | + var entries = getEntries != null ? getEntries(value) : Object.entries(value); | |
| 473 | + var hasIgnoredPaths = ignoredPaths.length > 0; | |
| 474 | + var _loop_2 = function (key, nestedValue) { | |
| 475 | + var nestedPath = path ? path + "." + key : key; | |
| 476 | + if (hasIgnoredPaths) { | |
| 477 | + var hasMatches = ignoredPaths.some(function (ignored) { | |
| 478 | + if (ignored instanceof RegExp) { | |
| 479 | + return ignored.test(nestedPath); | |
| 480 | + } | |
| 481 | + return nestedPath === ignored; | |
| 482 | + }); | |
| 483 | + if (hasMatches) { | |
| 484 | + return "continue"; | |
| 485 | + } | |
| 486 | + } | |
| 487 | + if (!isSerializable(nestedValue)) { | |
| 488 | + return { value: { | |
| 489 | + keyPath: nestedPath, | |
| 490 | + value: nestedValue | |
| 491 | + } }; | |
| 492 | + } | |
| 493 | + if (typeof nestedValue === "object") { | |
| 494 | + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache); | |
| 495 | + if (foundNestedSerializable) { | |
| 496 | + return { value: foundNestedSerializable }; | |
| 497 | + } | |
| 498 | + } | |
| 499 | + }; | |
| 500 | + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) { | |
| 501 | + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1]; | |
| 502 | + var state_2 = _loop_2(key, nestedValue); | |
| 503 | + if (typeof state_2 === "object") | |
| 504 | + return state_2.value; | |
| 505 | + } | |
| 506 | + if (cache && isNestedFrozen(value)) | |
| 507 | + cache.add(value); | |
| 508 | + return false; | |
| 509 | +} | |
| 510 | +function isNestedFrozen(value) { | |
| 511 | + if (!Object.isFrozen(value)) | |
| 512 | + return false; | |
| 513 | + for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) { | |
| 514 | + var nestedValue = _c[_i]; | |
| 515 | + if (typeof nestedValue !== "object" || nestedValue === null) | |
| 516 | + continue; | |
| 517 | + if (!isNestedFrozen(nestedValue)) | |
| 518 | + return false; | |
| 519 | + } | |
| 520 | + return true; | |
| 521 | +} | |
| 522 | +function createSerializableStateInvariantMiddleware(options) { | |
| 523 | + if (options === void 0) { options = {}; } | |
| 524 | + if (false) {} | |
| 525 | + 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; | |
| 526 | + var cache = !disableCache && WeakSet ? new WeakSet() : void 0; | |
| 527 | + return function (storeAPI) { return function (next) { return function (action) { | |
| 528 | + var result = next(action); | |
| 529 | + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware"); | |
| 530 | + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) { | |
| 531 | + measureUtils.measureTime(function () { | |
| 532 | + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache); | |
| 533 | + if (foundActionNonSerializableValue) { | |
| 534 | + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value; | |
| 535 | + 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)"); | |
| 536 | + } | |
| 537 | + }); | |
| 538 | + } | |
| 539 | + if (!ignoreState) { | |
| 540 | + measureUtils.measureTime(function () { | |
| 541 | + var state = storeAPI.getState(); | |
| 542 | + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache); | |
| 543 | + if (foundStateNonSerializableValue) { | |
| 544 | + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value; | |
| 545 | + 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)"); | |
| 546 | + } | |
| 547 | + }); | |
| 548 | + measureUtils.warnIfExceeded(); | |
| 549 | + } | |
| 550 | + return result; | |
| 551 | + }; }; }; | |
| 552 | +} | |
| 553 | +// src/getDefaultMiddleware.ts | |
| 554 | +function isBoolean(x) { | |
| 555 | + return typeof x === "boolean"; | |
| 556 | +} | |
| 557 | +function curryGetDefaultMiddleware() { | |
| 558 | + return function curriedGetDefaultMiddleware(options) { | |
| 559 | + return getDefaultMiddleware(options); | |
| 560 | + }; | |
| 561 | +} | |
| 562 | +function getDefaultMiddleware(options) { | |
| 563 | + if (options === void 0) { options = {}; } | |
| 564 | + 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; | |
| 565 | + var middlewareArray = new MiddlewareArray(); | |
| 566 | + if (thunk) { | |
| 567 | + if (isBoolean(thunk)) { | |
| 568 | + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]); | |
| 569 | + } | |
| 570 | + else { | |
| 571 | + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument)); | |
| 572 | + } | |
| 573 | + } | |
| 574 | + if (true) { | |
| 575 | + if (immutableCheck) { | |
| 576 | + var immutableOptions = {}; | |
| 577 | + if (!isBoolean(immutableCheck)) { | |
| 578 | + immutableOptions = immutableCheck; | |
| 579 | + } | |
| 580 | + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions)); | |
| 581 | + } | |
| 582 | + if (serializableCheck) { | |
| 583 | + var serializableOptions = {}; | |
| 584 | + if (!isBoolean(serializableCheck)) { | |
| 585 | + serializableOptions = serializableCheck; | |
| 586 | + } | |
| 587 | + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions)); | |
| 588 | + } | |
| 589 | + } | |
| 590 | + return middlewareArray; | |
| 591 | +} | |
| 592 | +// src/configureStore.ts | |
| 593 | +var IS_PRODUCTION = "development" === "production"; | |
| 594 | +function configureStore(options) { | |
| 595 | + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware(); | |
| 596 | + 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; | |
| 597 | + var rootReducer; | |
| 598 | + if (typeof reducer === "function") { | |
| 599 | + rootReducer = reducer; | |
| 600 | + } | |
| 601 | + else if (isPlainObject(reducer)) { | |
| 602 | + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer); | |
| 603 | + } | |
| 604 | + else { | |
| 605 | + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers'); | |
| 606 | + } | |
| 607 | + var finalMiddleware = middleware; | |
| 608 | + if (typeof finalMiddleware === "function") { | |
| 609 | + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware); | |
| 610 | + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) { | |
| 611 | + throw new Error("when using a middleware builder function, an array of middleware must be returned"); | |
| 612 | + } | |
| 613 | + } | |
| 614 | + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) { | |
| 615 | + throw new Error("each middleware provided to configureStore must be a function"); | |
| 616 | + } | |
| 617 | + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware); | |
| 618 | + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose; | |
| 619 | + if (devTools) { | |
| 620 | + finalCompose = composeWithDevTools(__spreadValues({ | |
| 621 | + trace: !IS_PRODUCTION | |
| 622 | + }, typeof devTools === "object" && devTools)); | |
| 623 | + } | |
| 624 | + var defaultEnhancers = new EnhancerArray(middlewareEnhancer); | |
| 625 | + var storeEnhancers = defaultEnhancers; | |
| 626 | + if (Array.isArray(enhancers)) { | |
| 627 | + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers); | |
| 628 | + } | |
| 629 | + else if (typeof enhancers === "function") { | |
| 630 | + storeEnhancers = enhancers(defaultEnhancers); | |
| 631 | + } | |
| 632 | + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers); | |
| 633 | + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer); | |
| 634 | +} | |
| 635 | +// src/createAction.ts | |
| 636 | +function createAction(type, prepareAction) { | |
| 637 | + function actionCreator() { | |
| 638 | + var args = []; | |
| 639 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 640 | + args[_i] = arguments[_i]; | |
| 641 | + } | |
| 642 | + if (prepareAction) { | |
| 643 | + var prepared = prepareAction.apply(void 0, args); | |
| 644 | + if (!prepared) { | |
| 645 | + throw new Error("prepareAction did not return an object"); | |
| 646 | + } | |
| 647 | + return __spreadValues(__spreadValues({ | |
| 648 | + type: type, | |
| 649 | + payload: prepared.payload | |
| 650 | + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error }); | |
| 651 | + } | |
| 652 | + return { type: type, payload: args[0] }; | |
| 653 | + } | |
| 654 | + actionCreator.toString = function () { return "" + type; }; | |
| 655 | + actionCreator.type = type; | |
| 656 | + actionCreator.match = function (action) { return action.type === type; }; | |
| 657 | + return actionCreator; | |
| 658 | +} | |
| 659 | +function isAction(action) { | |
| 660 | + return isPlainObject(action) && "type" in action; | |
| 661 | +} | |
| 662 | +function isFSA(action) { | |
| 663 | + return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey); | |
| 664 | +} | |
| 665 | +function isValidKey(key) { | |
| 666 | + return ["type", "payload", "error", "meta"].indexOf(key) > -1; | |
| 667 | +} | |
| 668 | +function getType(actionCreator) { | |
| 669 | + return "" + actionCreator; | |
| 670 | +} | |
| 671 | +// src/createReducer.ts | |
| 672 | + | |
| 673 | +// src/mapBuilders.ts | |
| 674 | +function executeReducerBuilderCallback(builderCallback) { | |
| 675 | + var actionsMap = {}; | |
| 676 | + var actionMatchers = []; | |
| 677 | + var defaultCaseReducer; | |
| 678 | + var builder = { | |
| 679 | + addCase: function (typeOrActionCreator, reducer) { | |
| 680 | + if (true) { | |
| 681 | + if (actionMatchers.length > 0) { | |
| 682 | + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`"); | |
| 683 | + } | |
| 684 | + if (defaultCaseReducer) { | |
| 685 | + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`"); | |
| 686 | + } | |
| 687 | + } | |
| 688 | + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type; | |
| 689 | + if (type in actionsMap) { | |
| 690 | + throw new Error("addCase cannot be called with two reducers for the same action type"); | |
| 691 | + } | |
| 692 | + actionsMap[type] = reducer; | |
| 693 | + return builder; | |
| 694 | + }, | |
| 695 | + addMatcher: function (matcher, reducer) { | |
| 696 | + if (true) { | |
| 697 | + if (defaultCaseReducer) { | |
| 698 | + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`"); | |
| 699 | + } | |
| 700 | + } | |
| 701 | + actionMatchers.push({ matcher: matcher, reducer: reducer }); | |
| 702 | + return builder; | |
| 703 | + }, | |
| 704 | + addDefaultCase: function (reducer) { | |
| 705 | + if (true) { | |
| 706 | + if (defaultCaseReducer) { | |
| 707 | + throw new Error("`builder.addDefaultCase` can only be called once"); | |
| 708 | + } | |
| 709 | + } | |
| 710 | + defaultCaseReducer = reducer; | |
| 711 | + return builder; | |
| 712 | + } | |
| 713 | + }; | |
| 714 | + builderCallback(builder); | |
| 715 | + return [actionsMap, actionMatchers, defaultCaseReducer]; | |
| 716 | +} | |
| 717 | +// src/createReducer.ts | |
| 718 | +function isStateFunction(x) { | |
| 719 | + return typeof x === "function"; | |
| 720 | +} | |
| 721 | +var hasWarnedAboutObjectNotation = false; | |
| 722 | +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) { | |
| 723 | + if (actionMatchers === void 0) { actionMatchers = []; } | |
| 724 | + if (true) { | |
| 725 | + if (typeof mapOrBuilderCallback === "object") { | |
| 726 | + if (!hasWarnedAboutObjectNotation) { | |
| 727 | + hasWarnedAboutObjectNotation = true; | |
| 728 | + 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"); | |
| 729 | + } | |
| 730 | + } | |
| 731 | + } | |
| 732 | + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2]; | |
| 733 | + var getInitialState; | |
| 734 | + if (isStateFunction(initialState)) { | |
| 735 | + getInitialState = function () { return freezeDraftable(initialState()); }; | |
| 736 | + } | |
| 737 | + else { | |
| 738 | + var frozenInitialState_1 = freezeDraftable(initialState); | |
| 739 | + getInitialState = function () { return frozenInitialState_1; }; | |
| 740 | + } | |
| 741 | + function reducer(state, action) { | |
| 742 | + if (state === void 0) { state = getInitialState(); } | |
| 743 | + var caseReducers = __spreadArray([ | |
| 744 | + actionsMap[action.type] | |
| 745 | + ], finalActionMatchers.filter(function (_c) { | |
| 746 | + var matcher = _c.matcher; | |
| 747 | + return matcher(action); | |
| 748 | + }).map(function (_c) { | |
| 749 | + var reducer2 = _c.reducer; | |
| 750 | + return reducer2; | |
| 751 | + })); | |
| 752 | + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) { | |
| 753 | + caseReducers = [finalDefaultCaseReducer]; | |
| 754 | + } | |
| 755 | + return caseReducers.reduce(function (previousState, caseReducer) { | |
| 756 | + if (caseReducer) { | |
| 757 | + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) { | |
| 758 | + var draft = previousState; | |
| 759 | + var result = caseReducer(draft, action); | |
| 760 | + if (result === void 0) { | |
| 761 | + return previousState; | |
| 762 | + } | |
| 763 | + return result; | |
| 764 | + } | |
| 765 | + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) { | |
| 766 | + var result = caseReducer(previousState, action); | |
| 767 | + if (result === void 0) { | |
| 768 | + if (previousState === null) { | |
| 769 | + return previousState; | |
| 770 | + } | |
| 771 | + throw Error("A case reducer on a non-draftable value must not return undefined"); | |
| 772 | + } | |
| 773 | + return result; | |
| 774 | + } | |
| 775 | + else { | |
| 776 | + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) { | |
| 777 | + return caseReducer(draft, action); | |
| 778 | + }); | |
| 779 | + } | |
| 780 | + } | |
| 781 | + return previousState; | |
| 782 | + }, state); | |
| 783 | + } | |
| 784 | + reducer.getInitialState = getInitialState; | |
| 785 | + return reducer; | |
| 786 | +} | |
| 787 | +// src/createSlice.ts | |
| 788 | +var hasWarnedAboutObjectNotation2 = false; | |
| 789 | +function getType2(slice, actionKey) { | |
| 790 | + return slice + "/" + actionKey; | |
| 791 | +} | |
| 792 | +function createSlice(options) { | |
| 793 | + var name = options.name; | |
| 794 | + if (!name) { | |
| 795 | + throw new Error("`name` is a required option for createSlice"); | |
| 796 | + } | |
| 797 | + if (typeof process !== "undefined" && "development" === "development") { | |
| 798 | + if (options.initialState === void 0) { | |
| 799 | + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`"); | |
| 800 | + } | |
| 801 | + } | |
| 802 | + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState); | |
| 803 | + var reducers = options.reducers || {}; | |
| 804 | + var reducerNames = Object.keys(reducers); | |
| 805 | + var sliceCaseReducersByName = {}; | |
| 806 | + var sliceCaseReducersByType = {}; | |
| 807 | + var actionCreators = {}; | |
| 808 | + reducerNames.forEach(function (reducerName) { | |
| 809 | + var maybeReducerWithPrepare = reducers[reducerName]; | |
| 810 | + var type = getType2(name, reducerName); | |
| 811 | + var caseReducer; | |
| 812 | + var prepareCallback; | |
| 813 | + if ("reducer" in maybeReducerWithPrepare) { | |
| 814 | + caseReducer = maybeReducerWithPrepare.reducer; | |
| 815 | + prepareCallback = maybeReducerWithPrepare.prepare; | |
| 816 | + } | |
| 817 | + else { | |
| 818 | + caseReducer = maybeReducerWithPrepare; | |
| 819 | + } | |
| 820 | + sliceCaseReducersByName[reducerName] = caseReducer; | |
| 821 | + sliceCaseReducersByType[type] = caseReducer; | |
| 822 | + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type); | |
| 823 | + }); | |
| 824 | + function buildReducer() { | |
| 825 | + if (true) { | |
| 826 | + if (typeof options.extraReducers === "object") { | |
| 827 | + if (!hasWarnedAboutObjectNotation2) { | |
| 828 | + hasWarnedAboutObjectNotation2 = true; | |
| 829 | + 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"); | |
| 830 | + } | |
| 831 | + } | |
| 832 | + } | |
| 833 | + 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; | |
| 834 | + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType); | |
| 835 | + return createReducer(initialState, function (builder) { | |
| 836 | + for (var key in finalCaseReducers) { | |
| 837 | + builder.addCase(key, finalCaseReducers[key]); | |
| 838 | + } | |
| 839 | + for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) { | |
| 840 | + var m = actionMatchers_1[_i]; | |
| 841 | + builder.addMatcher(m.matcher, m.reducer); | |
| 842 | + } | |
| 843 | + if (defaultCaseReducer) { | |
| 844 | + builder.addDefaultCase(defaultCaseReducer); | |
| 845 | + } | |
| 846 | + }); | |
| 847 | + } | |
| 848 | + var _reducer; | |
| 849 | + return { | |
| 850 | + name: name, | |
| 851 | + reducer: function (state, action) { | |
| 852 | + if (!_reducer) | |
| 853 | + _reducer = buildReducer(); | |
| 854 | + return _reducer(state, action); | |
| 855 | + }, | |
| 856 | + actions: actionCreators, | |
| 857 | + caseReducers: sliceCaseReducersByName, | |
| 858 | + getInitialState: function () { | |
| 859 | + if (!_reducer) | |
| 860 | + _reducer = buildReducer(); | |
| 861 | + return _reducer.getInitialState(); | |
| 862 | + } | |
| 863 | + }; | |
| 864 | +} | |
| 865 | +// src/entities/entity_state.ts | |
| 866 | +function getInitialEntityState() { | |
| 867 | + return { | |
| 868 | + ids: [], | |
| 869 | + entities: {} | |
| 870 | + }; | |
| 871 | +} | |
| 872 | +function createInitialStateFactory() { | |
| 873 | + function getInitialState(additionalState) { | |
| 874 | + if (additionalState === void 0) { additionalState = {}; } | |
| 875 | + return Object.assign(getInitialEntityState(), additionalState); | |
| 876 | + } | |
| 877 | + return { getInitialState: getInitialState }; | |
| 878 | +} | |
| 879 | +// src/entities/state_selectors.ts | |
| 880 | +function createSelectorsFactory() { | |
| 881 | + function getSelectors(selectState) { | |
| 882 | + var selectIds = function (state) { return state.ids; }; | |
| 883 | + var selectEntities = function (state) { return state.entities; }; | |
| 884 | + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); }); | |
| 885 | + var selectId = function (_, id) { return id; }; | |
| 886 | + var selectById = function (entities, id) { return entities[id]; }; | |
| 887 | + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; }); | |
| 888 | + if (!selectState) { | |
| 889 | + return { | |
| 890 | + selectIds: selectIds, | |
| 891 | + selectEntities: selectEntities, | |
| 892 | + selectAll: selectAll, | |
| 893 | + selectTotal: selectTotal, | |
| 894 | + selectById: createDraftSafeSelector(selectEntities, selectId, selectById) | |
| 895 | + }; | |
| 896 | + } | |
| 897 | + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities); | |
| 898 | + return { | |
| 899 | + selectIds: createDraftSafeSelector(selectState, selectIds), | |
| 900 | + selectEntities: selectGlobalizedEntities, | |
| 901 | + selectAll: createDraftSafeSelector(selectState, selectAll), | |
| 902 | + selectTotal: createDraftSafeSelector(selectState, selectTotal), | |
| 903 | + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById) | |
| 904 | + }; | |
| 905 | + } | |
| 906 | + return { getSelectors: getSelectors }; | |
| 907 | +} | |
| 908 | +// src/entities/state_adapter.ts | |
| 909 | + | |
| 910 | +function createSingleArgumentStateOperator(mutator) { | |
| 911 | + var operator = createStateOperator(function (_, state) { return mutator(state); }); | |
| 912 | + return function operation(state) { | |
| 913 | + return operator(state, void 0); | |
| 914 | + }; | |
| 915 | +} | |
| 916 | +function createStateOperator(mutator) { | |
| 917 | + return function operation(state, arg) { | |
| 918 | + function isPayloadActionArgument(arg2) { | |
| 919 | + return isFSA(arg2); | |
| 920 | + } | |
| 921 | + var runMutator = function (draft) { | |
| 922 | + if (isPayloadActionArgument(arg)) { | |
| 923 | + mutator(arg.payload, draft); | |
| 924 | + } | |
| 925 | + else { | |
| 926 | + mutator(arg, draft); | |
| 927 | + } | |
| 928 | + }; | |
| 929 | + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) { | |
| 930 | + runMutator(state); | |
| 931 | + return state; | |
| 932 | + } | |
| 933 | + else { | |
| 934 | + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator); | |
| 935 | + } | |
| 936 | + }; | |
| 937 | +} | |
| 938 | +// src/entities/utils.ts | |
| 939 | +function selectIdValue(entity, selectId) { | |
| 940 | + var key = selectId(entity); | |
| 941 | + if ( true && key === void 0) { | |
| 942 | + 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()); | |
| 943 | + } | |
| 944 | + return key; | |
| 945 | +} | |
| 946 | +function ensureEntitiesArray(entities) { | |
| 947 | + if (!Array.isArray(entities)) { | |
| 948 | + entities = Object.values(entities); | |
| 949 | + } | |
| 950 | + return entities; | |
| 951 | +} | |
| 952 | +function splitAddedUpdatedEntities(newEntities, selectId, state) { | |
| 953 | + newEntities = ensureEntitiesArray(newEntities); | |
| 954 | + var added = []; | |
| 955 | + var updated = []; | |
| 956 | + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) { | |
| 957 | + var entity = newEntities_1[_i]; | |
| 958 | + var id = selectIdValue(entity, selectId); | |
| 959 | + if (id in state.entities) { | |
| 960 | + updated.push({ id: id, changes: entity }); | |
| 961 | + } | |
| 962 | + else { | |
| 963 | + added.push(entity); | |
| 964 | + } | |
| 965 | + } | |
| 966 | + return [added, updated]; | |
| 967 | +} | |
| 968 | +// src/entities/unsorted_state_adapter.ts | |
| 969 | +function createUnsortedStateAdapter(selectId) { | |
| 970 | + function addOneMutably(entity, state) { | |
| 971 | + var key = selectIdValue(entity, selectId); | |
| 972 | + if (key in state.entities) { | |
| 973 | + return; | |
| 974 | + } | |
| 975 | + state.ids.push(key); | |
| 976 | + state.entities[key] = entity; | |
| 977 | + } | |
| 978 | + function addManyMutably(newEntities, state) { | |
| 979 | + newEntities = ensureEntitiesArray(newEntities); | |
| 980 | + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) { | |
| 981 | + var entity = newEntities_2[_i]; | |
| 982 | + addOneMutably(entity, state); | |
| 983 | + } | |
| 984 | + } | |
| 985 | + function setOneMutably(entity, state) { | |
| 986 | + var key = selectIdValue(entity, selectId); | |
| 987 | + if (!(key in state.entities)) { | |
| 988 | + state.ids.push(key); | |
| 989 | + } | |
| 990 | + state.entities[key] = entity; | |
| 991 | + } | |
| 992 | + function setManyMutably(newEntities, state) { | |
| 993 | + newEntities = ensureEntitiesArray(newEntities); | |
| 994 | + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) { | |
| 995 | + var entity = newEntities_3[_i]; | |
| 996 | + setOneMutably(entity, state); | |
| 997 | + } | |
| 998 | + } | |
| 999 | + function setAllMutably(newEntities, state) { | |
| 1000 | + newEntities = ensureEntitiesArray(newEntities); | |
| 1001 | + state.ids = []; | |
| 1002 | + state.entities = {}; | |
| 1003 | + addManyMutably(newEntities, state); | |
| 1004 | + } | |
| 1005 | + function removeOneMutably(key, state) { | |
| 1006 | + return removeManyMutably([key], state); | |
| 1007 | + } | |
| 1008 | + function removeManyMutably(keys, state) { | |
| 1009 | + var didMutate = false; | |
| 1010 | + keys.forEach(function (key) { | |
| 1011 | + if (key in state.entities) { | |
| 1012 | + delete state.entities[key]; | |
| 1013 | + didMutate = true; | |
| 1014 | + } | |
| 1015 | + }); | |
| 1016 | + if (didMutate) { | |
| 1017 | + state.ids = state.ids.filter(function (id) { return id in state.entities; }); | |
| 1018 | + } | |
| 1019 | + } | |
| 1020 | + function removeAllMutably(state) { | |
| 1021 | + Object.assign(state, { | |
| 1022 | + ids: [], | |
| 1023 | + entities: {} | |
| 1024 | + }); | |
| 1025 | + } | |
| 1026 | + function takeNewKey(keys, update, state) { | |
| 1027 | + var original2 = state.entities[update.id]; | |
| 1028 | + var updated = Object.assign({}, original2, update.changes); | |
| 1029 | + var newKey = selectIdValue(updated, selectId); | |
| 1030 | + var hasNewKey = newKey !== update.id; | |
| 1031 | + if (hasNewKey) { | |
| 1032 | + keys[update.id] = newKey; | |
| 1033 | + delete state.entities[update.id]; | |
| 1034 | + } | |
| 1035 | + state.entities[newKey] = updated; | |
| 1036 | + return hasNewKey; | |
| 1037 | + } | |
| 1038 | + function updateOneMutably(update, state) { | |
| 1039 | + return updateManyMutably([update], state); | |
| 1040 | + } | |
| 1041 | + function updateManyMutably(updates, state) { | |
| 1042 | + var newKeys = {}; | |
| 1043 | + var updatesPerEntity = {}; | |
| 1044 | + updates.forEach(function (update) { | |
| 1045 | + if (update.id in state.entities) { | |
| 1046 | + updatesPerEntity[update.id] = { | |
| 1047 | + id: update.id, | |
| 1048 | + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes) | |
| 1049 | + }; | |
| 1050 | + } | |
| 1051 | + }); | |
| 1052 | + updates = Object.values(updatesPerEntity); | |
| 1053 | + var didMutateEntities = updates.length > 0; | |
| 1054 | + if (didMutateEntities) { | |
| 1055 | + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0; | |
| 1056 | + if (didMutateIds) { | |
| 1057 | + state.ids = Object.keys(state.entities); | |
| 1058 | + } | |
| 1059 | + } | |
| 1060 | + } | |
| 1061 | + function upsertOneMutably(entity, state) { | |
| 1062 | + return upsertManyMutably([entity], state); | |
| 1063 | + } | |
| 1064 | + function upsertManyMutably(newEntities, state) { | |
| 1065 | + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1]; | |
| 1066 | + updateManyMutably(updated, state); | |
| 1067 | + addManyMutably(added, state); | |
| 1068 | + } | |
| 1069 | + return { | |
| 1070 | + removeAll: createSingleArgumentStateOperator(removeAllMutably), | |
| 1071 | + addOne: createStateOperator(addOneMutably), | |
| 1072 | + addMany: createStateOperator(addManyMutably), | |
| 1073 | + setOne: createStateOperator(setOneMutably), | |
| 1074 | + setMany: createStateOperator(setManyMutably), | |
| 1075 | + setAll: createStateOperator(setAllMutably), | |
| 1076 | + updateOne: createStateOperator(updateOneMutably), | |
| 1077 | + updateMany: createStateOperator(updateManyMutably), | |
| 1078 | + upsertOne: createStateOperator(upsertOneMutably), | |
| 1079 | + upsertMany: createStateOperator(upsertManyMutably), | |
| 1080 | + removeOne: createStateOperator(removeOneMutably), | |
| 1081 | + removeMany: createStateOperator(removeManyMutably) | |
| 1082 | + }; | |
| 1083 | +} | |
| 1084 | +// src/entities/sorted_state_adapter.ts | |
| 1085 | +function createSortedStateAdapter(selectId, sort) { | |
| 1086 | + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll; | |
| 1087 | + function addOneMutably(entity, state) { | |
| 1088 | + return addManyMutably([entity], state); | |
| 1089 | + } | |
| 1090 | + function addManyMutably(newEntities, state) { | |
| 1091 | + newEntities = ensureEntitiesArray(newEntities); | |
| 1092 | + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); }); | |
| 1093 | + if (models.length !== 0) { | |
| 1094 | + merge(models, state); | |
| 1095 | + } | |
| 1096 | + } | |
| 1097 | + function setOneMutably(entity, state) { | |
| 1098 | + return setManyMutably([entity], state); | |
| 1099 | + } | |
| 1100 | + function setManyMutably(newEntities, state) { | |
| 1101 | + newEntities = ensureEntitiesArray(newEntities); | |
| 1102 | + if (newEntities.length !== 0) { | |
| 1103 | + merge(newEntities, state); | |
| 1104 | + } | |
| 1105 | + } | |
| 1106 | + function setAllMutably(newEntities, state) { | |
| 1107 | + newEntities = ensureEntitiesArray(newEntities); | |
| 1108 | + state.entities = {}; | |
| 1109 | + state.ids = []; | |
| 1110 | + addManyMutably(newEntities, state); | |
| 1111 | + } | |
| 1112 | + function updateOneMutably(update, state) { | |
| 1113 | + return updateManyMutably([update], state); | |
| 1114 | + } | |
| 1115 | + function updateManyMutably(updates, state) { | |
| 1116 | + var appliedUpdates = false; | |
| 1117 | + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) { | |
| 1118 | + var update = updates_1[_i]; | |
| 1119 | + var entity = state.entities[update.id]; | |
| 1120 | + if (!entity) { | |
| 1121 | + continue; | |
| 1122 | + } | |
| 1123 | + appliedUpdates = true; | |
| 1124 | + Object.assign(entity, update.changes); | |
| 1125 | + var newId = selectId(entity); | |
| 1126 | + if (update.id !== newId) { | |
| 1127 | + delete state.entities[update.id]; | |
| 1128 | + state.entities[newId] = entity; | |
| 1129 | + } | |
| 1130 | + } | |
| 1131 | + if (appliedUpdates) { | |
| 1132 | + resortEntities(state); | |
| 1133 | + } | |
| 1134 | + } | |
| 1135 | + function upsertOneMutably(entity, state) { | |
| 1136 | + return upsertManyMutably([entity], state); | |
| 1137 | + } | |
| 1138 | + function upsertManyMutably(newEntities, state) { | |
| 1139 | + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1]; | |
| 1140 | + updateManyMutably(updated, state); | |
| 1141 | + addManyMutably(added, state); | |
| 1142 | + } | |
| 1143 | + function areArraysEqual(a, b) { | |
| 1144 | + if (a.length !== b.length) { | |
| 1145 | + return false; | |
| 1146 | + } | |
| 1147 | + for (var i = 0; i < a.length && i < b.length; i++) { | |
| 1148 | + if (a[i] === b[i]) { | |
| 1149 | + continue; | |
| 1150 | + } | |
| 1151 | + return false; | |
| 1152 | + } | |
| 1153 | + return true; | |
| 1154 | + } | |
| 1155 | + function merge(models, state) { | |
| 1156 | + models.forEach(function (model) { | |
| 1157 | + state.entities[selectId(model)] = model; | |
| 1158 | + }); | |
| 1159 | + resortEntities(state); | |
| 1160 | + } | |
| 1161 | + function resortEntities(state) { | |
| 1162 | + var allEntities = Object.values(state.entities); | |
| 1163 | + allEntities.sort(sort); | |
| 1164 | + var newSortedIds = allEntities.map(selectId); | |
| 1165 | + var ids = state.ids; | |
| 1166 | + if (!areArraysEqual(ids, newSortedIds)) { | |
| 1167 | + state.ids = newSortedIds; | |
| 1168 | + } | |
| 1169 | + } | |
| 1170 | + return { | |
| 1171 | + removeOne: removeOne, | |
| 1172 | + removeMany: removeMany, | |
| 1173 | + removeAll: removeAll, | |
| 1174 | + addOne: createStateOperator(addOneMutably), | |
| 1175 | + updateOne: createStateOperator(updateOneMutably), | |
| 1176 | + upsertOne: createStateOperator(upsertOneMutably), | |
| 1177 | + setOne: createStateOperator(setOneMutably), | |
| 1178 | + setMany: createStateOperator(setManyMutably), | |
| 1179 | + setAll: createStateOperator(setAllMutably), | |
| 1180 | + addMany: createStateOperator(addManyMutably), | |
| 1181 | + updateMany: createStateOperator(updateManyMutably), | |
| 1182 | + upsertMany: createStateOperator(upsertManyMutably) | |
| 1183 | + }; | |
| 1184 | +} | |
| 1185 | +// src/entities/create_adapter.ts | |
| 1186 | +function createEntityAdapter(options) { | |
| 1187 | + if (options === void 0) { options = {}; } | |
| 1188 | + var _c = __spreadValues({ | |
| 1189 | + sortComparer: false, | |
| 1190 | + selectId: function (instance) { return instance.id; } | |
| 1191 | + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer; | |
| 1192 | + var stateFactory = createInitialStateFactory(); | |
| 1193 | + var selectorsFactory = createSelectorsFactory(); | |
| 1194 | + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId); | |
| 1195 | + return __spreadValues(__spreadValues(__spreadValues({ | |
| 1196 | + selectId: selectId, | |
| 1197 | + sortComparer: sortComparer | |
| 1198 | + }, stateFactory), selectorsFactory), stateAdapter); | |
| 1199 | +} | |
| 1200 | +// src/nanoid.ts | |
| 1201 | +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"; | |
| 1202 | +var nanoid = function (size) { | |
| 1203 | + if (size === void 0) { size = 21; } | |
| 1204 | + var id = ""; | |
| 1205 | + var i = size; | |
| 1206 | + while (i--) { | |
| 1207 | + id += urlAlphabet[Math.random() * 64 | 0]; | |
| 1208 | + } | |
| 1209 | + return id; | |
| 1210 | +}; | |
| 1211 | +// src/createAsyncThunk.ts | |
| 1212 | +var commonProperties = [ | |
| 1213 | + "name", | |
| 1214 | + "message", | |
| 1215 | + "stack", | |
| 1216 | + "code" | |
| 1217 | +]; | |
| 1218 | +var RejectWithValue = /** @class */ (function () { | |
| 1219 | + function RejectWithValue(payload, meta) { | |
| 1220 | + this.payload = payload; | |
| 1221 | + this.meta = meta; | |
| 1222 | + } | |
| 1223 | + return RejectWithValue; | |
| 1224 | +}()); | |
| 1225 | +var FulfillWithMeta = /** @class */ (function () { | |
| 1226 | + function FulfillWithMeta(payload, meta) { | |
| 1227 | + this.payload = payload; | |
| 1228 | + this.meta = meta; | |
| 1229 | + } | |
| 1230 | + return FulfillWithMeta; | |
| 1231 | +}()); | |
| 1232 | +var miniSerializeError = function (value) { | |
| 1233 | + if (typeof value === "object" && value !== null) { | |
| 1234 | + var simpleError = {}; | |
| 1235 | + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) { | |
| 1236 | + var property = commonProperties_1[_i]; | |
| 1237 | + if (typeof value[property] === "string") { | |
| 1238 | + simpleError[property] = value[property]; | |
| 1239 | + } | |
| 1240 | + } | |
| 1241 | + return simpleError; | |
| 1242 | + } | |
| 1243 | + return { message: String(value) }; | |
| 1244 | +}; | |
| 1245 | +var createAsyncThunk = (function () { | |
| 1246 | + function createAsyncThunk2(typePrefix, payloadCreator, options) { | |
| 1247 | + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({ | |
| 1248 | + payload: payload, | |
| 1249 | + meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 1250 | + arg: arg, | |
| 1251 | + requestId: requestId, | |
| 1252 | + requestStatus: "fulfilled" | |
| 1253 | + }) | |
| 1254 | + }); }); | |
| 1255 | + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({ | |
| 1256 | + payload: void 0, | |
| 1257 | + meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 1258 | + arg: arg, | |
| 1259 | + requestId: requestId, | |
| 1260 | + requestStatus: "pending" | |
| 1261 | + }) | |
| 1262 | + }); }); | |
| 1263 | + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({ | |
| 1264 | + payload: payload, | |
| 1265 | + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"), | |
| 1266 | + meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 1267 | + arg: arg, | |
| 1268 | + requestId: requestId, | |
| 1269 | + rejectedWithValue: !!payload, | |
| 1270 | + requestStatus: "rejected", | |
| 1271 | + aborted: (error == null ? void 0 : error.name) === "AbortError", | |
| 1272 | + condition: (error == null ? void 0 : error.name) === "ConditionError" | |
| 1273 | + }) | |
| 1274 | + }); }); | |
| 1275 | + var displayedWarning = false; | |
| 1276 | + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () { | |
| 1277 | + function class_1() { | |
| 1278 | + this.signal = { | |
| 1279 | + aborted: false, | |
| 1280 | + addEventListener: function () { | |
| 1281 | + }, | |
| 1282 | + dispatchEvent: function () { | |
| 1283 | + return false; | |
| 1284 | + }, | |
| 1285 | + onabort: function () { | |
| 1286 | + }, | |
| 1287 | + removeEventListener: function () { | |
| 1288 | + }, | |
| 1289 | + reason: void 0, | |
| 1290 | + throwIfAborted: function () { | |
| 1291 | + } | |
| 1292 | + }; | |
| 1293 | + } | |
| 1294 | + class_1.prototype.abort = function () { | |
| 1295 | + if (true) { | |
| 1296 | + if (!displayedWarning) { | |
| 1297 | + displayedWarning = true; | |
| 1298 | + 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'."); | |
| 1299 | + } | |
| 1300 | + } | |
| 1301 | + }; | |
| 1302 | + return class_1; | |
| 1303 | + }()); | |
| 1304 | + function actionCreator(arg) { | |
| 1305 | + return function (dispatch, getState, extra) { | |
| 1306 | + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid(); | |
| 1307 | + var abortController = new AC(); | |
| 1308 | + var abortReason; | |
| 1309 | + var started = false; | |
| 1310 | + function abort(reason) { | |
| 1311 | + abortReason = reason; | |
| 1312 | + abortController.abort(); | |
| 1313 | + } | |
| 1314 | + var promise2 = function () { | |
| 1315 | + return __async(this, null, function () { | |
| 1316 | + var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch; | |
| 1317 | + return __generator(this, function (_c) { | |
| 1318 | + switch (_c.label) { | |
| 1319 | + case 0: | |
| 1320 | + _c.trys.push([0, 4, , 5]); | |
| 1321 | + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra }); | |
| 1322 | + if (!isThenable(conditionResult)) return [3 /*break*/, 2]; | |
| 1323 | + return [4 /*yield*/, conditionResult]; | |
| 1324 | + case 1: | |
| 1325 | + conditionResult = _c.sent(); | |
| 1326 | + _c.label = 2; | |
| 1327 | + case 2: | |
| 1328 | + if (conditionResult === false || abortController.signal.aborted) { | |
| 1329 | + throw { | |
| 1330 | + name: "ConditionError", | |
| 1331 | + message: "Aborted due to condition callback returning false." | |
| 1332 | + }; | |
| 1333 | + } | |
| 1334 | + started = true; | |
| 1335 | + abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({ | |
| 1336 | + name: "AbortError", | |
| 1337 | + message: abortReason || "Aborted" | |
| 1338 | + }); }); }); | |
| 1339 | + 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 }))); | |
| 1340 | + return [4 /*yield*/, Promise.race([ | |
| 1341 | + abortedPromise, | |
| 1342 | + Promise.resolve(payloadCreator(arg, { | |
| 1343 | + dispatch: dispatch, | |
| 1344 | + getState: getState, | |
| 1345 | + extra: extra, | |
| 1346 | + requestId: requestId, | |
| 1347 | + signal: abortController.signal, | |
| 1348 | + abort: abort, | |
| 1349 | + rejectWithValue: function (value, meta) { | |
| 1350 | + return new RejectWithValue(value, meta); | |
| 1351 | + }, | |
| 1352 | + fulfillWithValue: function (value, meta) { | |
| 1353 | + return new FulfillWithMeta(value, meta); | |
| 1354 | + } | |
| 1355 | + })).then(function (result) { | |
| 1356 | + if (result instanceof RejectWithValue) { | |
| 1357 | + throw result; | |
| 1358 | + } | |
| 1359 | + if (result instanceof FulfillWithMeta) { | |
| 1360 | + return fulfilled(result.payload, requestId, arg, result.meta); | |
| 1361 | + } | |
| 1362 | + return fulfilled(result, requestId, arg); | |
| 1363 | + }) | |
| 1364 | + ])]; | |
| 1365 | + case 3: | |
| 1366 | + finalAction = _c.sent(); | |
| 1367 | + return [3 /*break*/, 5]; | |
| 1368 | + case 4: | |
| 1369 | + err_1 = _c.sent(); | |
| 1370 | + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg); | |
| 1371 | + return [3 /*break*/, 5]; | |
| 1372 | + case 5: | |
| 1373 | + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition; | |
| 1374 | + if (!skipDispatch) { | |
| 1375 | + dispatch(finalAction); | |
| 1376 | + } | |
| 1377 | + return [2 /*return*/, finalAction]; | |
| 1378 | + } | |
| 1379 | + }); | |
| 1380 | + }); | |
| 1381 | + }(); | |
| 1382 | + return Object.assign(promise2, { | |
| 1383 | + abort: abort, | |
| 1384 | + requestId: requestId, | |
| 1385 | + arg: arg, | |
| 1386 | + unwrap: function () { | |
| 1387 | + return promise2.then(unwrapResult); | |
| 1388 | + } | |
| 1389 | + }); | |
| 1390 | + }; | |
| 1391 | + } | |
| 1392 | + return Object.assign(actionCreator, { | |
| 1393 | + pending: pending, | |
| 1394 | + rejected: rejected, | |
| 1395 | + fulfilled: fulfilled, | |
| 1396 | + typePrefix: typePrefix | |
| 1397 | + }); | |
| 1398 | + } | |
| 1399 | + createAsyncThunk2.withTypes = function () { return createAsyncThunk2; }; | |
| 1400 | + return createAsyncThunk2; | |
| 1401 | +})(); | |
| 1402 | +function unwrapResult(action) { | |
| 1403 | + if (action.meta && action.meta.rejectedWithValue) { | |
| 1404 | + throw action.payload; | |
| 1405 | + } | |
| 1406 | + if (action.error) { | |
| 1407 | + throw action.error; | |
| 1408 | + } | |
| 1409 | + return action.payload; | |
| 1410 | +} | |
| 1411 | +function isThenable(value) { | |
| 1412 | + return value !== null && typeof value === "object" && typeof value.then === "function"; | |
| 1413 | +} | |
| 1414 | +// src/tsHelpers.ts | |
| 1415 | +var hasMatchFunction = function (v) { | |
| 1416 | + return v && typeof v.match === "function"; | |
| 1417 | +}; | |
| 1418 | +// src/matchers.ts | |
| 1419 | +var matches = function (matcher, action) { | |
| 1420 | + if (hasMatchFunction(matcher)) { | |
| 1421 | + return matcher.match(action); | |
| 1422 | + } | |
| 1423 | + else { | |
| 1424 | + return matcher(action); | |
| 1425 | + } | |
| 1426 | +}; | |
| 1427 | +function isAnyOf() { | |
| 1428 | + var matchers = []; | |
| 1429 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1430 | + matchers[_i] = arguments[_i]; | |
| 1431 | + } | |
| 1432 | + return function (action) { | |
| 1433 | + return matchers.some(function (matcher) { return matches(matcher, action); }); | |
| 1434 | + }; | |
| 1435 | +} | |
| 1436 | +function isAllOf() { | |
| 1437 | + var matchers = []; | |
| 1438 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1439 | + matchers[_i] = arguments[_i]; | |
| 1440 | + } | |
| 1441 | + return function (action) { | |
| 1442 | + return matchers.every(function (matcher) { return matches(matcher, action); }); | |
| 1443 | + }; | |
| 1444 | +} | |
| 1445 | +function hasExpectedRequestMetadata(action, validStatus) { | |
| 1446 | + if (!action || !action.meta) | |
| 1447 | + return false; | |
| 1448 | + var hasValidRequestId = typeof action.meta.requestId === "string"; | |
| 1449 | + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1; | |
| 1450 | + return hasValidRequestId && hasValidRequestStatus; | |
| 1451 | +} | |
| 1452 | +function isAsyncThunkArray(a) { | |
| 1453 | + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0]; | |
| 1454 | +} | |
| 1455 | +function isPending() { | |
| 1456 | + var asyncThunks = []; | |
| 1457 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1458 | + asyncThunks[_i] = arguments[_i]; | |
| 1459 | + } | |
| 1460 | + if (asyncThunks.length === 0) { | |
| 1461 | + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); }; | |
| 1462 | + } | |
| 1463 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1464 | + return isPending()(asyncThunks[0]); | |
| 1465 | + } | |
| 1466 | + return function (action) { | |
| 1467 | + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; }); | |
| 1468 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 1469 | + return combinedMatcher(action); | |
| 1470 | + }; | |
| 1471 | +} | |
| 1472 | +function isRejected() { | |
| 1473 | + var asyncThunks = []; | |
| 1474 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1475 | + asyncThunks[_i] = arguments[_i]; | |
| 1476 | + } | |
| 1477 | + if (asyncThunks.length === 0) { | |
| 1478 | + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); }; | |
| 1479 | + } | |
| 1480 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1481 | + return isRejected()(asyncThunks[0]); | |
| 1482 | + } | |
| 1483 | + return function (action) { | |
| 1484 | + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; }); | |
| 1485 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 1486 | + return combinedMatcher(action); | |
| 1487 | + }; | |
| 1488 | +} | |
| 1489 | +function isRejectedWithValue() { | |
| 1490 | + var asyncThunks = []; | |
| 1491 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1492 | + asyncThunks[_i] = arguments[_i]; | |
| 1493 | + } | |
| 1494 | + var hasFlag = function (action) { | |
| 1495 | + return action && action.meta && action.meta.rejectedWithValue; | |
| 1496 | + }; | |
| 1497 | + if (asyncThunks.length === 0) { | |
| 1498 | + return function (action) { | |
| 1499 | + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 1500 | + return combinedMatcher(action); | |
| 1501 | + }; | |
| 1502 | + } | |
| 1503 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1504 | + return isRejectedWithValue()(asyncThunks[0]); | |
| 1505 | + } | |
| 1506 | + return function (action) { | |
| 1507 | + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 1508 | + return combinedMatcher(action); | |
| 1509 | + }; | |
| 1510 | +} | |
| 1511 | +function isFulfilled() { | |
| 1512 | + var asyncThunks = []; | |
| 1513 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1514 | + asyncThunks[_i] = arguments[_i]; | |
| 1515 | + } | |
| 1516 | + if (asyncThunks.length === 0) { | |
| 1517 | + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); }; | |
| 1518 | + } | |
| 1519 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1520 | + return isFulfilled()(asyncThunks[0]); | |
| 1521 | + } | |
| 1522 | + return function (action) { | |
| 1523 | + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; }); | |
| 1524 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 1525 | + return combinedMatcher(action); | |
| 1526 | + }; | |
| 1527 | +} | |
| 1528 | +function isAsyncThunkAction() { | |
| 1529 | + var asyncThunks = []; | |
| 1530 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1531 | + asyncThunks[_i] = arguments[_i]; | |
| 1532 | + } | |
| 1533 | + if (asyncThunks.length === 0) { | |
| 1534 | + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); }; | |
| 1535 | + } | |
| 1536 | + if (!isAsyncThunkArray(asyncThunks)) { | |
| 1537 | + return isAsyncThunkAction()(asyncThunks[0]); | |
| 1538 | + } | |
| 1539 | + return function (action) { | |
| 1540 | + var matchers = []; | |
| 1541 | + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) { | |
| 1542 | + var asyncThunk = asyncThunks_1[_i]; | |
| 1543 | + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled); | |
| 1544 | + } | |
| 1545 | + var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 1546 | + return combinedMatcher(action); | |
| 1547 | + }; | |
| 1548 | +} | |
| 1549 | +// src/listenerMiddleware/utils.ts | |
| 1550 | +var assertFunction = function (func, expected) { | |
| 1551 | + if (typeof func !== "function") { | |
| 1552 | + throw new TypeError(expected + " is not a function"); | |
| 1553 | + } | |
| 1554 | +}; | |
| 1555 | +var noop = function () { | |
| 1556 | +}; | |
| 1557 | +var catchRejection = function (promise2, onError) { | |
| 1558 | + if (onError === void 0) { onError = noop; } | |
| 1559 | + promise2.catch(onError); | |
| 1560 | + return promise2; | |
| 1561 | +}; | |
| 1562 | +var addAbortSignalListener = function (abortSignal, callback) { | |
| 1563 | + abortSignal.addEventListener("abort", callback, { once: true }); | |
| 1564 | + return function () { return abortSignal.removeEventListener("abort", callback); }; | |
| 1565 | +}; | |
| 1566 | +var abortControllerWithReason = function (abortController, reason) { | |
| 1567 | + var signal = abortController.signal; | |
| 1568 | + if (signal.aborted) { | |
| 1569 | + return; | |
| 1570 | + } | |
| 1571 | + if (!("reason" in signal)) { | |
| 1572 | + Object.defineProperty(signal, "reason", { | |
| 1573 | + enumerable: true, | |
| 1574 | + value: reason, | |
| 1575 | + configurable: true, | |
| 1576 | + writable: true | |
| 1577 | + }); | |
| 1578 | + } | |
| 1579 | + ; | |
| 1580 | + abortController.abort(reason); | |
| 1581 | +}; | |
| 1582 | +// src/listenerMiddleware/exceptions.ts | |
| 1583 | +var task = "task"; | |
| 1584 | +var listener = "listener"; | |
| 1585 | +var completed = "completed"; | |
| 1586 | +var cancelled = "cancelled"; | |
| 1587 | +var taskCancelled = "task-" + cancelled; | |
| 1588 | +var taskCompleted = "task-" + completed; | |
| 1589 | +var listenerCancelled = listener + "-" + cancelled; | |
| 1590 | +var listenerCompleted = listener + "-" + completed; | |
| 1591 | +var TaskAbortError = /** @class */ (function () { | |
| 1592 | + function TaskAbortError(code) { | |
| 1593 | + this.code = code; | |
| 1594 | + this.name = "TaskAbortError"; | |
| 1595 | + this.message = task + " " + cancelled + " (reason: " + code + ")"; | |
| 1596 | + } | |
| 1597 | + return TaskAbortError; | |
| 1598 | +}()); | |
| 1599 | +// src/listenerMiddleware/task.ts | |
| 1600 | +var validateActive = function (signal) { | |
| 1601 | + if (signal.aborted) { | |
| 1602 | + throw new TaskAbortError(signal.reason); | |
| 1603 | + } | |
| 1604 | +}; | |
| 1605 | +function raceWithSignal(signal, promise2) { | |
| 1606 | + var cleanup = noop; | |
| 1607 | + return new Promise(function (resolve, reject) { | |
| 1608 | + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); }; | |
| 1609 | + if (signal.aborted) { | |
| 1610 | + notifyRejection(); | |
| 1611 | + return; | |
| 1612 | + } | |
| 1613 | + cleanup = addAbortSignalListener(signal, notifyRejection); | |
| 1614 | + promise2.finally(function () { return cleanup(); }).then(resolve, reject); | |
| 1615 | + }).finally(function () { | |
| 1616 | + cleanup = noop; | |
| 1617 | + }); | |
| 1618 | +} | |
| 1619 | +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () { | |
| 1620 | + var value, error_1; | |
| 1621 | + return __generator(this, function (_c) { | |
| 1622 | + switch (_c.label) { | |
| 1623 | + case 0: | |
| 1624 | + _c.trys.push([0, 3, 4, 5]); | |
| 1625 | + return [4 /*yield*/, Promise.resolve()]; | |
| 1626 | + case 1: | |
| 1627 | + _c.sent(); | |
| 1628 | + return [4 /*yield*/, task2()]; | |
| 1629 | + case 2: | |
| 1630 | + value = _c.sent(); | |
| 1631 | + return [2 /*return*/, { | |
| 1632 | + status: "ok", | |
| 1633 | + value: value | |
| 1634 | + }]; | |
| 1635 | + case 3: | |
| 1636 | + error_1 = _c.sent(); | |
| 1637 | + return [2 /*return*/, { | |
| 1638 | + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected", | |
| 1639 | + error: error_1 | |
| 1640 | + }]; | |
| 1641 | + case 4: | |
| 1642 | + cleanUp == null ? void 0 : cleanUp(); | |
| 1643 | + return [7 /*endfinally*/]; | |
| 1644 | + case 5: return [2 /*return*/]; | |
| 1645 | + } | |
| 1646 | + }); | |
| 1647 | +}); }; | |
| 1648 | +var createPause = function (signal) { | |
| 1649 | + return function (promise2) { | |
| 1650 | + return catchRejection(raceWithSignal(signal, promise2).then(function (output) { | |
| 1651 | + validateActive(signal); | |
| 1652 | + return output; | |
| 1653 | + })); | |
| 1654 | + }; | |
| 1655 | +}; | |
| 1656 | +var createDelay = function (signal) { | |
| 1657 | + var pause = createPause(signal); | |
| 1658 | + return function (timeoutMs) { | |
| 1659 | + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); })); | |
| 1660 | + }; | |
| 1661 | +}; | |
| 1662 | +// src/listenerMiddleware/index.ts | |
| 1663 | +var assign = Object.assign; | |
| 1664 | +var INTERNAL_NIL_TOKEN = {}; | |
| 1665 | +var alm = "listenerMiddleware"; | |
| 1666 | +var createFork = function (parentAbortSignal) { | |
| 1667 | + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); }; | |
| 1668 | + return function (taskExecutor) { | |
| 1669 | + assertFunction(taskExecutor, "taskExecutor"); | |
| 1670 | + var childAbortController = new AbortController(); | |
| 1671 | + linkControllers(childAbortController); | |
| 1672 | + var result = runTask(function () { return __async(void 0, null, function () { | |
| 1673 | + var result2; | |
| 1674 | + return __generator(this, function (_c) { | |
| 1675 | + switch (_c.label) { | |
| 1676 | + case 0: | |
| 1677 | + validateActive(parentAbortSignal); | |
| 1678 | + validateActive(childAbortController.signal); | |
| 1679 | + return [4 /*yield*/, taskExecutor({ | |
| 1680 | + pause: createPause(childAbortController.signal), | |
| 1681 | + delay: createDelay(childAbortController.signal), | |
| 1682 | + signal: childAbortController.signal | |
| 1683 | + })]; | |
| 1684 | + case 1: | |
| 1685 | + result2 = _c.sent(); | |
| 1686 | + validateActive(childAbortController.signal); | |
| 1687 | + return [2 /*return*/, result2]; | |
| 1688 | + } | |
| 1689 | + }); | |
| 1690 | + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); }); | |
| 1691 | + return { | |
| 1692 | + result: createPause(parentAbortSignal)(result), | |
| 1693 | + cancel: function () { | |
| 1694 | + abortControllerWithReason(childAbortController, taskCancelled); | |
| 1695 | + } | |
| 1696 | + }; | |
| 1697 | + }; | |
| 1698 | +}; | |
| 1699 | +var createTakePattern = function (startListening, signal) { | |
| 1700 | + var take = function (predicate, timeout) { return __async(void 0, null, function () { | |
| 1701 | + var unsubscribe, tuplePromise, promises, output; | |
| 1702 | + return __generator(this, function (_c) { | |
| 1703 | + switch (_c.label) { | |
| 1704 | + case 0: | |
| 1705 | + validateActive(signal); | |
| 1706 | + unsubscribe = function () { | |
| 1707 | + }; | |
| 1708 | + tuplePromise = new Promise(function (resolve, reject) { | |
| 1709 | + var stopListening = startListening({ | |
| 1710 | + predicate: predicate, | |
| 1711 | + effect: function (action, listenerApi) { | |
| 1712 | + listenerApi.unsubscribe(); | |
| 1713 | + resolve([ | |
| 1714 | + action, | |
| 1715 | + listenerApi.getState(), | |
| 1716 | + listenerApi.getOriginalState() | |
| 1717 | + ]); | |
| 1718 | + } | |
| 1719 | + }); | |
| 1720 | + unsubscribe = function () { | |
| 1721 | + stopListening(); | |
| 1722 | + reject(); | |
| 1723 | + }; | |
| 1724 | + }); | |
| 1725 | + promises = [ | |
| 1726 | + tuplePromise | |
| 1727 | + ]; | |
| 1728 | + if (timeout != null) { | |
| 1729 | + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); })); | |
| 1730 | + } | |
| 1731 | + _c.label = 1; | |
| 1732 | + case 1: | |
| 1733 | + _c.trys.push([1, , 3, 4]); | |
| 1734 | + return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))]; | |
| 1735 | + case 2: | |
| 1736 | + output = _c.sent(); | |
| 1737 | + validateActive(signal); | |
| 1738 | + return [2 /*return*/, output]; | |
| 1739 | + case 3: | |
| 1740 | + unsubscribe(); | |
| 1741 | + return [7 /*endfinally*/]; | |
| 1742 | + case 4: return [2 /*return*/]; | |
| 1743 | + } | |
| 1744 | + }); | |
| 1745 | + }); }; | |
| 1746 | + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); }; | |
| 1747 | +}; | |
| 1748 | +var getListenerEntryPropsFrom = function (options) { | |
| 1749 | + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect; | |
| 1750 | + if (type) { | |
| 1751 | + predicate = createAction(type).match; | |
| 1752 | + } | |
| 1753 | + else if (actionCreator) { | |
| 1754 | + type = actionCreator.type; | |
| 1755 | + predicate = actionCreator.match; | |
| 1756 | + } | |
| 1757 | + else if (matcher) { | |
| 1758 | + predicate = matcher; | |
| 1759 | + } | |
| 1760 | + else if (predicate) { | |
| 1761 | + } | |
| 1762 | + else { | |
| 1763 | + throw new Error("Creating or removing a listener requires one of the known fields for matching an action"); | |
| 1764 | + } | |
| 1765 | + assertFunction(effect, "options.listener"); | |
| 1766 | + return { predicate: predicate, type: type, effect: effect }; | |
| 1767 | +}; | |
| 1768 | +var createListenerEntry = function (options) { | |
| 1769 | + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect; | |
| 1770 | + var id = nanoid(); | |
| 1771 | + var entry = { | |
| 1772 | + id: id, | |
| 1773 | + effect: effect, | |
| 1774 | + type: type, | |
| 1775 | + predicate: predicate, | |
| 1776 | + pending: new Set(), | |
| 1777 | + unsubscribe: function () { | |
| 1778 | + throw new Error("Unsubscribe not initialized"); | |
| 1779 | + } | |
| 1780 | + }; | |
| 1781 | + return entry; | |
| 1782 | +}; | |
| 1783 | +var cancelActiveListeners = function (entry) { | |
| 1784 | + entry.pending.forEach(function (controller) { | |
| 1785 | + abortControllerWithReason(controller, listenerCancelled); | |
| 1786 | + }); | |
| 1787 | +}; | |
| 1788 | +var createClearListenerMiddleware = function (listenerMap) { | |
| 1789 | + return function () { | |
| 1790 | + listenerMap.forEach(cancelActiveListeners); | |
| 1791 | + listenerMap.clear(); | |
| 1792 | + }; | |
| 1793 | +}; | |
| 1794 | +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) { | |
| 1795 | + try { | |
| 1796 | + errorHandler(errorToNotify, errorInfo); | |
| 1797 | + } | |
| 1798 | + catch (errorHandlerError) { | |
| 1799 | + setTimeout(function () { | |
| 1800 | + throw errorHandlerError; | |
| 1801 | + }, 0); | |
| 1802 | + } | |
| 1803 | +}; | |
| 1804 | +var addListener = createAction(alm + "/add"); | |
| 1805 | +var clearAllListeners = createAction(alm + "/removeAll"); | |
| 1806 | +var removeListener = createAction(alm + "/remove"); | |
| 1807 | +var defaultErrorHandler = function () { | |
| 1808 | + var args = []; | |
| 1809 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1810 | + args[_i] = arguments[_i]; | |
| 1811 | + } | |
| 1812 | + console.error.apply(console, __spreadArray([alm + "/error"], args)); | |
| 1813 | +}; | |
| 1814 | +function createListenerMiddleware(middlewareOptions) { | |
| 1815 | + var _this = this; | |
| 1816 | + if (middlewareOptions === void 0) { middlewareOptions = {}; } | |
| 1817 | + var listenerMap = new Map(); | |
| 1818 | + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c; | |
| 1819 | + assertFunction(onError, "onError"); | |
| 1820 | + var insertEntry = function (entry) { | |
| 1821 | + entry.unsubscribe = function () { return listenerMap.delete(entry.id); }; | |
| 1822 | + listenerMap.set(entry.id, entry); | |
| 1823 | + return function (cancelOptions) { | |
| 1824 | + entry.unsubscribe(); | |
| 1825 | + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) { | |
| 1826 | + cancelActiveListeners(entry); | |
| 1827 | + } | |
| 1828 | + }; | |
| 1829 | + }; | |
| 1830 | + var findListenerEntry = function (comparator) { | |
| 1831 | + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) { | |
| 1832 | + var entry = _c[_i]; | |
| 1833 | + if (comparator(entry)) { | |
| 1834 | + return entry; | |
| 1835 | + } | |
| 1836 | + } | |
| 1837 | + return void 0; | |
| 1838 | + }; | |
| 1839 | + var startListening = function (options) { | |
| 1840 | + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; }); | |
| 1841 | + if (!entry) { | |
| 1842 | + entry = createListenerEntry(options); | |
| 1843 | + } | |
| 1844 | + return insertEntry(entry); | |
| 1845 | + }; | |
| 1846 | + var stopListening = function (options) { | |
| 1847 | + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate; | |
| 1848 | + var entry = findListenerEntry(function (entry2) { | |
| 1849 | + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate; | |
| 1850 | + return matchPredicateOrType && entry2.effect === effect; | |
| 1851 | + }); | |
| 1852 | + if (entry) { | |
| 1853 | + entry.unsubscribe(); | |
| 1854 | + if (options.cancelActive) { | |
| 1855 | + cancelActiveListeners(entry); | |
| 1856 | + } | |
| 1857 | + } | |
| 1858 | + return !!entry; | |
| 1859 | + }; | |
| 1860 | + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () { | |
| 1861 | + var internalTaskController, take, listenerError_1; | |
| 1862 | + return __generator(this, function (_c) { | |
| 1863 | + switch (_c.label) { | |
| 1864 | + case 0: | |
| 1865 | + internalTaskController = new AbortController(); | |
| 1866 | + take = createTakePattern(startListening, internalTaskController.signal); | |
| 1867 | + _c.label = 1; | |
| 1868 | + case 1: | |
| 1869 | + _c.trys.push([1, 3, 4, 5]); | |
| 1870 | + entry.pending.add(internalTaskController); | |
| 1871 | + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, { | |
| 1872 | + getOriginalState: getOriginalState, | |
| 1873 | + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); }, | |
| 1874 | + take: take, | |
| 1875 | + delay: createDelay(internalTaskController.signal), | |
| 1876 | + pause: createPause(internalTaskController.signal), | |
| 1877 | + extra: extra, | |
| 1878 | + signal: internalTaskController.signal, | |
| 1879 | + fork: createFork(internalTaskController.signal), | |
| 1880 | + unsubscribe: entry.unsubscribe, | |
| 1881 | + subscribe: function () { | |
| 1882 | + listenerMap.set(entry.id, entry); | |
| 1883 | + }, | |
| 1884 | + cancelActiveListeners: function () { | |
| 1885 | + entry.pending.forEach(function (controller, _, set) { | |
| 1886 | + if (controller !== internalTaskController) { | |
| 1887 | + abortControllerWithReason(controller, listenerCancelled); | |
| 1888 | + set.delete(controller); | |
| 1889 | + } | |
| 1890 | + }); | |
| 1891 | + } | |
| 1892 | + })))]; | |
| 1893 | + case 2: | |
| 1894 | + _c.sent(); | |
| 1895 | + return [3 /*break*/, 5]; | |
| 1896 | + case 3: | |
| 1897 | + listenerError_1 = _c.sent(); | |
| 1898 | + if (!(listenerError_1 instanceof TaskAbortError)) { | |
| 1899 | + safelyNotifyError(onError, listenerError_1, { | |
| 1900 | + raisedBy: "effect" | |
| 1901 | + }); | |
| 1902 | + } | |
| 1903 | + return [3 /*break*/, 5]; | |
| 1904 | + case 4: | |
| 1905 | + abortControllerWithReason(internalTaskController, listenerCompleted); | |
| 1906 | + entry.pending.delete(internalTaskController); | |
| 1907 | + return [7 /*endfinally*/]; | |
| 1908 | + case 5: return [2 /*return*/]; | |
| 1909 | + } | |
| 1910 | + }); | |
| 1911 | + }); }; | |
| 1912 | + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap); | |
| 1913 | + var middleware = function (api) { return function (next) { return function (action) { | |
| 1914 | + if (!isAction(action)) { | |
| 1915 | + return next(action); | |
| 1916 | + } | |
| 1917 | + if (addListener.match(action)) { | |
| 1918 | + return startListening(action.payload); | |
| 1919 | + } | |
| 1920 | + if (clearAllListeners.match(action)) { | |
| 1921 | + clearListenerMiddleware(); | |
| 1922 | + return; | |
| 1923 | + } | |
| 1924 | + if (removeListener.match(action)) { | |
| 1925 | + return stopListening(action.payload); | |
| 1926 | + } | |
| 1927 | + var originalState = api.getState(); | |
| 1928 | + var getOriginalState = function () { | |
| 1929 | + if (originalState === INTERNAL_NIL_TOKEN) { | |
| 1930 | + throw new Error(alm + ": getOriginalState can only be called synchronously"); | |
| 1931 | + } | |
| 1932 | + return originalState; | |
| 1933 | + }; | |
| 1934 | + var result; | |
| 1935 | + try { | |
| 1936 | + result = next(action); | |
| 1937 | + if (listenerMap.size > 0) { | |
| 1938 | + var currentState = api.getState(); | |
| 1939 | + var listenerEntries = Array.from(listenerMap.values()); | |
| 1940 | + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) { | |
| 1941 | + var entry = listenerEntries_1[_i]; | |
| 1942 | + var runListener = false; | |
| 1943 | + try { | |
| 1944 | + runListener = entry.predicate(action, currentState, originalState); | |
| 1945 | + } | |
| 1946 | + catch (predicateError) { | |
| 1947 | + runListener = false; | |
| 1948 | + safelyNotifyError(onError, predicateError, { | |
| 1949 | + raisedBy: "predicate" | |
| 1950 | + }); | |
| 1951 | + } | |
| 1952 | + if (!runListener) { | |
| 1953 | + continue; | |
| 1954 | + } | |
| 1955 | + notifyListener(entry, action, api, getOriginalState); | |
| 1956 | + } | |
| 1957 | + } | |
| 1958 | + } | |
| 1959 | + finally { | |
| 1960 | + originalState = INTERNAL_NIL_TOKEN; | |
| 1961 | + } | |
| 1962 | + return result; | |
| 1963 | + }; }; }; | |
| 1964 | + return { | |
| 1965 | + middleware: middleware, | |
| 1966 | + startListening: startListening, | |
| 1967 | + stopListening: stopListening, | |
| 1968 | + clearListeners: clearListenerMiddleware | |
| 1969 | + }; | |
| 1970 | +} | |
| 1971 | +// src/autoBatchEnhancer.ts | |
| 1972 | +var SHOULD_AUTOBATCH = "RTK_autoBatch"; | |
| 1973 | +var prepareAutoBatched = function () { return function (payload) { | |
| 1974 | + var _c; | |
| 1975 | + return ({ | |
| 1976 | + payload: payload, | |
| 1977 | + meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c) | |
| 1978 | + }); | |
| 1979 | +}; }; | |
| 1980 | +var promise; | |
| 1981 | +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 () { | |
| 1982 | + throw err; | |
| 1983 | +}, 0); }); }; | |
| 1984 | +var createQueueWithTimer = function (timeout) { | |
| 1985 | + return function (notify) { | |
| 1986 | + setTimeout(notify, timeout); | |
| 1987 | + }; | |
| 1988 | +}; | |
| 1989 | +var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10); | |
| 1990 | +var autoBatchEnhancer = function (options) { | |
| 1991 | + if (options === void 0) { options = { type: "raf" }; } | |
| 1992 | + return function (next) { return function () { | |
| 1993 | + var args = []; | |
| 1994 | + for (var _i = 0; _i < arguments.length; _i++) { | |
| 1995 | + args[_i] = arguments[_i]; | |
| 1996 | + } | |
| 1997 | + var store = next.apply(void 0, args); | |
| 1998 | + var notifying = true; | |
| 1999 | + var shouldNotifyAtEndOfTick = false; | |
| 2000 | + var notificationQueued = false; | |
| 2001 | + var listeners = new Set(); | |
| 2002 | + var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout); | |
| 2003 | + var notifyListeners = function () { | |
| 2004 | + notificationQueued = false; | |
| 2005 | + if (shouldNotifyAtEndOfTick) { | |
| 2006 | + shouldNotifyAtEndOfTick = false; | |
| 2007 | + listeners.forEach(function (l) { return l(); }); | |
| 2008 | + } | |
| 2009 | + }; | |
| 2010 | + return Object.assign({}, store, { | |
| 2011 | + subscribe: function (listener2) { | |
| 2012 | + var wrappedListener = function () { return notifying && listener2(); }; | |
| 2013 | + var unsubscribe = store.subscribe(wrappedListener); | |
| 2014 | + listeners.add(listener2); | |
| 2015 | + return function () { | |
| 2016 | + unsubscribe(); | |
| 2017 | + listeners.delete(listener2); | |
| 2018 | + }; | |
| 2019 | + }, | |
| 2020 | + dispatch: function (action) { | |
| 2021 | + var _a; | |
| 2022 | + try { | |
| 2023 | + notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]); | |
| 2024 | + shouldNotifyAtEndOfTick = !notifying; | |
| 2025 | + if (shouldNotifyAtEndOfTick) { | |
| 2026 | + if (!notificationQueued) { | |
| 2027 | + notificationQueued = true; | |
| 2028 | + queueCallback(notifyListeners); | |
| 2029 | + } | |
| 2030 | + } | |
| 2031 | + return store.dispatch(action); | |
| 2032 | + } | |
| 2033 | + finally { | |
| 2034 | + notifying = true; | |
| 2035 | + } | |
| 2036 | + } | |
| 2037 | + }); | |
| 2038 | + }; }; | |
| 2039 | +}; | |
| 2040 | +// src/index.ts | |
| 2041 | +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)(); | |
| 2042 | + | |
| 2043 | +//# sourceMappingURL=redux-toolkit.esm.js.map | |
| 11 | 2044 | |
| 12 | - | |
| 13 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 14 | -Object.defineProperty(exports, "__esModule", ({ | |
| 15 | - value: true | |
| 16 | -})); | |
| 17 | -exports.BaseRegistry = void 0; | |
| 18 | -var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); | |
| 19 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 20 | -var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "../node_modules/@babel/runtime/helpers/objectWithoutProperties.js")); | |
| 21 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 22 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 23 | -var _excluded = ["children"]; | |
| 24 | -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; } | |
| 25 | -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; } | |
| 26 | -var BaseRegistry = exports.BaseRegistry = /*#__PURE__*/function () { | |
| 27 | - function BaseRegistry() { | |
| 28 | - (0, _classCallCheck2.default)(this, BaseRegistry); | |
| 29 | - this.sections = new Map(); | |
| 30 | - } | |
| 31 | - return (0, _createClass2.default)(BaseRegistry, [{ | |
| 32 | - key: "register", | |
| 33 | - value: function register(section) { | |
| 34 | - var _this = this; | |
| 35 | - if (!section.key || !section.title) { | |
| 36 | - throw new Error('Template type must have key and title'); | |
| 37 | - } | |
| 38 | - var existingSection = this.get(section.key); | |
| 39 | - var formattedSection = existingSection || this.formatSection(section); | |
| 40 | - if (section.children) { | |
| 41 | - // If existing section has children, merge them with new children | |
| 42 | - if (formattedSection.children) { | |
| 43 | - var existingChildrenMap = new Map(formattedSection.children.map(function (child) { | |
| 44 | - return [child.key, child]; | |
| 45 | - })); | |
| 46 | - | |
| 47 | - // Override existing children with new ones and add new children | |
| 48 | - section.children.forEach(function (childSection) { | |
| 49 | - var formattedChild = _this.formatSection(childSection); | |
| 50 | - existingChildrenMap.set(childSection.key, formattedChild); | |
| 51 | - }); | |
| 52 | - formattedSection.children = Array.from(existingChildrenMap.values()); | |
| 53 | - } else { | |
| 54 | - formattedSection.children = section.children.map(function (childSection) { | |
| 55 | - return _this.formatSection(childSection); | |
| 56 | - }); | |
| 57 | - } | |
| 58 | - } | |
| 59 | - this.sections.set(section.key, formattedSection); | |
| 60 | - } | |
| 61 | - }, { | |
| 62 | - key: "formatSection", | |
| 63 | - value: function formatSection(_ref) { | |
| 64 | - var children = _ref.children, | |
| 65 | - section = (0, _objectWithoutProperties2.default)(_ref, _excluded); | |
| 66 | - return _objectSpread({ | |
| 67 | - key: section.key, | |
| 68 | - title: section.title, | |
| 69 | - description: section.description || '', | |
| 70 | - useParentDefault: section.useParentDefault !== false, | |
| 71 | - getInitialState: section.getInitialState || null, | |
| 72 | - component: section.component || null, | |
| 73 | - order: section.order || 10, | |
| 74 | - isAvailable: section.isAvailable || function () { | |
| 75 | - return true; | |
| 76 | - } | |
| 77 | - }, section); | |
| 78 | - } | |
| 79 | - }, { | |
| 80 | - key: "getAll", | |
| 81 | - value: function getAll() { | |
| 82 | - return Array.from(this.sections.values()).filter(function (type) { | |
| 83 | - return type.isAvailable(); | |
| 84 | - }).map(function (type) { | |
| 85 | - if (type.children) { | |
| 86 | - return _objectSpread(_objectSpread({}, type), {}, { | |
| 87 | - children: (0, _toConsumableArray2.default)(type.children).sort(function (a, b) { | |
| 88 | - return a.order - b.order; | |
| 89 | - }) | |
| 90 | - }); | |
| 91 | - } | |
| 92 | - return type; | |
| 93 | - }).sort(function (a, b) { | |
| 94 | - return a.order - b.order; | |
| 95 | - }); | |
| 96 | - } | |
| 97 | - }, { | |
| 98 | - key: "get", | |
| 99 | - value: function get(key) { | |
| 100 | - return this.sections.get(key); | |
| 101 | - } | |
| 102 | - }]); | |
| 103 | -}(); | |
| 104 | - | |
| 105 | 2045 | /***/ }), |
| 106 | 2046 | |
| 107 | -/***/ "../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js": | |
| 108 | -/*!*****************************************************************************************************!*\ | |
| 109 | - !*** ../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js ***! | |
| 110 | - \*****************************************************************************************************/ | |
| 111 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 112 | - | |
| 113 | -"use strict"; | |
| 114 | - | |
| 115 | - | |
| 116 | -Object.defineProperty(exports, "__esModule", ({ | |
| 117 | - value: true | |
| 118 | -})); | |
| 119 | -exports.customizationDialogsRegistry = void 0; | |
| 120 | -var _base = __webpack_require__(/*! ./base */ "../app/modules/import-export-customization/assets/js/shared/registry/base.js"); | |
| 121 | -var customizationDialogsRegistry = exports.customizationDialogsRegistry = new _base.BaseRegistry(); | |
| 122 | - | |
| 123 | -/***/ }), | |
| 124 | - | |
| 125 | -/***/ "../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js": | |
| 126 | -/*!******************************************************************************************************!*\ | |
| 127 | - !*** ../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js ***! | |
| 128 | - \******************************************************************************************************/ | |
| 129 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 130 | - | |
| 131 | -"use strict"; | |
| 132 | - | |
| 133 | - | |
| 134 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 135 | -Object.defineProperty(exports, "__esModule", ({ | |
| 136 | - value: true | |
| 137 | -})); | |
| 138 | -exports.createGetInitialState = createGetInitialState; | |
| 139 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 140 | -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; } | |
| 141 | -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; } | |
| 142 | -function createGetInitialState(exportGroup) { | |
| 143 | - var additionalProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 144 | - return function (data, parentInitialState) { | |
| 145 | - var isEnabled = parentInitialState; | |
| 146 | - var isImport = data.hasOwnProperty('uploadedData'); | |
| 147 | - if (isImport) { | |
| 148 | - var _elementorAppConfig; | |
| 149 | - isEnabled = false; | |
| 150 | - var templates = data.uploadedData.manifest.templates; | |
| 151 | - var exportGroups = ((_elementorAppConfig = elementorAppConfig) === null || _elementorAppConfig === void 0 || (_elementorAppConfig = _elementorAppConfig['import-export-customization']) === null || _elementorAppConfig === void 0 ? void 0 : _elementorAppConfig.exportGroups) || {}; | |
| 152 | - for (var templateId in templates) { | |
| 153 | - var template = templates[templateId]; | |
| 154 | - var templateExportGroup = exportGroups[template.doc_type]; | |
| 155 | - if (templateExportGroup === exportGroup) { | |
| 156 | - isEnabled = true; | |
| 157 | - break; | |
| 158 | - } | |
| 159 | - } | |
| 160 | - } | |
| 161 | - return _objectSpread({ | |
| 162 | - enabled: isEnabled | |
| 163 | - }, additionalProps); | |
| 164 | - }; | |
| 165 | -} | |
| 166 | - | |
| 167 | -/***/ }), | |
| 168 | - | |
| 169 | 2047 | /***/ "../assets/dev/js/editor/utils/is-instanceof.js": |
| 170 | 2048 | /*!******************************************************!*\ |
| 171 | 2049 | !*** ../assets/dev/js/editor/utils/is-instanceof.js ***! |
| 172 | 2050 | \******************************************************/ |
| @@ -178,11 +2056,11 @@ | ||
| 178 | 2056 | Object.defineProperty(exports, "__esModule", ({ |
| 179 | 2057 | value: true |
| 180 | 2058 | })); |
| 181 | 2059 | exports["default"] = void 0; |
| 182 | -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } | |
| 183 | -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } | |
| 184 | -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } | |
| 2060 | +function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } | |
| 2061 | +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | |
| 2062 | +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } | |
| 185 | 2063 | /** |
| 186 | 2064 | * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved |
| 187 | 2065 | * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can |
| 188 | 2066 | * check whether it's instanceof by using the objects constructor and prototype names. |
| @@ -190,16 +2068,16 @@ | ||
| 190 | 2068 | * @param object |
| 191 | 2069 | * @param constructors |
| 192 | 2070 | * @return {boolean} |
| 193 | 2071 | */ |
| 194 | -var _default = exports["default"] = function _default(object, constructors) { | |
| 2072 | +var _default = function _default(object, constructors) { | |
| 195 | 2073 | constructors = Array.isArray(constructors) ? constructors : [constructors]; |
| 196 | 2074 | var _iterator = _createForOfIteratorHelper(constructors), |
| 197 | 2075 | _step; |
| 198 | 2076 | try { |
| 199 | 2077 | for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 200 | - var constructor = _step.value; | |
| 201 | - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) { | |
| 2078 | + var _constructor = _step.value; | |
| 2079 | + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) { | |
| 202 | 2080 | return true; |
| 203 | 2081 | } |
| 204 | 2082 | } |
| 205 | 2083 | } catch (err) { |
| @@ -208,8 +2086,9 @@ | ||
| 208 | 2086 | _iterator.f(); |
| 209 | 2087 | } |
| 210 | 2088 | return false; |
| 211 | 2089 | }; |
| 2090 | +exports["default"] = _default; | |
| 212 | 2091 | |
| 213 | 2092 | /***/ }), |
| 214 | 2093 | |
| 215 | 2094 | /***/ "../assets/dev/js/modules/imports/args-object.js": |
| @@ -228,16 +2107,18 @@ | ||
| 228 | 2107 | exports["default"] = void 0; |
| 229 | 2108 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 230 | 2109 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 231 | 2110 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2111 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 232 | 2112 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 233 | 2113 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 234 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 235 | 2114 | var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); |
| 236 | 2115 | var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js")); |
| 237 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 238 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 239 | -var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) { | |
| 2116 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2117 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2118 | +var ArgsObject = /*#__PURE__*/function (_InstanceType) { | |
| 2119 | + (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 2120 | + var _super = _createSuper(ArgsObject); | |
| 240 | 2121 | /** |
| 241 | 2122 | * Function constructor(). |
| 242 | 2123 | * |
| 243 | 2124 | * Create ArgsObject. |
| @@ -246,9 +2127,9 @@ | ||
| 246 | 2127 | */ |
| 247 | 2128 | function ArgsObject(args) { |
| 248 | 2129 | var _this; |
| 249 | 2130 | (0, _classCallCheck2.default)(this, ArgsObject); |
| 250 | - _this = _callSuper(this, ArgsObject); | |
| 2131 | + _this = _super.call(this); | |
| 251 | 2132 | _this.args = args; |
| 252 | 2133 | return _this; |
| 253 | 2134 | } |
| 254 | 2135 | |
| @@ -260,11 +2141,11 @@ | ||
| 260 | 2141 | * @param {string} property |
| 261 | 2142 | * @param {{}} args |
| 262 | 2143 | * |
| 263 | 2144 | * @throws {Error} |
| 2145 | + * | |
| 264 | 2146 | */ |
| 265 | - (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 266 | - return (0, _createClass2.default)(ArgsObject, [{ | |
| 2147 | + (0, _createClass2.default)(ArgsObject, [{ | |
| 267 | 2148 | key: "requireArgument", |
| 268 | 2149 | value: function requireArgument(property) { |
| 269 | 2150 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; |
| 270 | 2151 | if (!Object.prototype.hasOwnProperty.call(args, property)) { |
| @@ -281,8 +2162,9 @@ | ||
| 281 | 2162 | * @param {string} type |
| 282 | 2163 | * @param {{}} args |
| 283 | 2164 | * |
| 284 | 2165 | * @throws {Error} |
| 2166 | + * | |
| 285 | 2167 | */ |
| 286 | 2168 | }, { |
| 287 | 2169 | key: "requireArgumentType", |
| 288 | 2170 | value: function requireArgumentType(property, type) { |
| @@ -302,8 +2184,9 @@ | ||
| 302 | 2184 | * @param {*} instance |
| 303 | 2185 | * @param {{}} args |
| 304 | 2186 | * |
| 305 | 2187 | * @throws {Error} |
| 2188 | + * | |
| 306 | 2189 | */ |
| 307 | 2190 | }, { |
| 308 | 2191 | key: "requireArgumentInstance", |
| 309 | 2192 | value: function requireArgumentInstance(property, instance) { |
| @@ -323,8 +2206,9 @@ | ||
| 323 | 2206 | * @param {*} type |
| 324 | 2207 | * @param {{}} args |
| 325 | 2208 | * |
| 326 | 2209 | * @throws {Error} |
| 2210 | + * | |
| 327 | 2211 | */ |
| 328 | 2212 | }, { |
| 329 | 2213 | key: "requireArgumentConstructor", |
| 330 | 2214 | value: function requireArgumentConstructor(property, type) { |
| @@ -342,9 +2226,11 @@ | ||
| 342 | 2226 | value: function getInstanceType() { |
| 343 | 2227 | return 'ArgsObject'; |
| 344 | 2228 | } |
| 345 | 2229 | }]); |
| 2230 | + return ArgsObject; | |
| 346 | 2231 | }(_instanceType.default); |
| 2232 | +exports["default"] = ArgsObject; | |
| 347 | 2233 | |
| 348 | 2234 | /***/ }), |
| 349 | 2235 | |
| 350 | 2236 | /***/ "../assets/dev/js/modules/imports/force-method-implementation.js": |
| @@ -362,22 +2248,25 @@ | ||
| 362 | 2248 | })); |
| 363 | 2249 | exports["default"] = exports.ForceMethodImplementation = void 0; |
| 364 | 2250 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 365 | 2251 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2252 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 2253 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 366 | 2254 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 367 | 2255 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 368 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 369 | 2256 | var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); |
| 370 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 371 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2257 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2258 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 372 | 2259 | // TODO: Wrong location used as `elementorModules.ForceMethodImplementation(); should be` `elementorUtils.forceMethodImplementation()`; |
| 373 | -var ForceMethodImplementation = exports.ForceMethodImplementation = /*#__PURE__*/function (_Error) { | |
| 2260 | +var ForceMethodImplementation = /*#__PURE__*/function (_Error) { | |
| 2261 | + (0, _inherits2.default)(ForceMethodImplementation, _Error); | |
| 2262 | + var _super = _createSuper(ForceMethodImplementation); | |
| 374 | 2263 | function ForceMethodImplementation() { |
| 375 | 2264 | var _this; |
| 376 | 2265 | var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 377 | 2266 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; |
| 378 | 2267 | (0, _classCallCheck2.default)(this, ForceMethodImplementation); |
| 379 | - _this = _callSuper(this, ForceMethodImplementation, ["".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality."), args]); | |
| 2268 | + _this = _super.call(this, "".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality."), args); | |
| 380 | 2269 | |
| 381 | 2270 | // Allow to pass custom properties to the error. |
| 382 | 2271 | if (Object.keys(args).length) { |
| 383 | 2272 | // eslint-disable-next-line no-console |
| @@ -382,15 +2271,15 @@ | ||
| 382 | 2271 | if (Object.keys(args).length) { |
| 383 | 2272 | // eslint-disable-next-line no-console |
| 384 | 2273 | console.error(args); |
| 385 | 2274 | } |
| 386 | - Error.captureStackTrace(_this, ForceMethodImplementation); | |
| 2275 | + Error.captureStackTrace((0, _assertThisInitialized2.default)(_this), ForceMethodImplementation); | |
| 387 | 2276 | return _this; |
| 388 | 2277 | } |
| 389 | - (0, _inherits2.default)(ForceMethodImplementation, _Error); | |
| 390 | 2278 | return (0, _createClass2.default)(ForceMethodImplementation); |
| 391 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 392 | -var _default = exports["default"] = function _default(args) { | |
| 2279 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 2280 | +exports.ForceMethodImplementation = ForceMethodImplementation; | |
| 2281 | +var _default = function _default(args) { | |
| 393 | 2282 | var stack = Error().stack, |
| 394 | 2283 | caller = stack.split('\n')[2].trim(), |
| 395 | 2284 | callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1], |
| 396 | 2285 | info = {}; |
| @@ -404,8 +2293,9 @@ | ||
| 404 | 2293 | info.isStatic = true; |
| 405 | 2294 | } |
| 406 | 2295 | throw new ForceMethodImplementation(info, args); |
| 407 | 2296 | }; |
| 2297 | +exports["default"] = _default; | |
| 408 | 2298 | |
| 409 | 2299 | /***/ }), |
| 410 | 2300 | |
| 411 | 2301 | /***/ "../assets/dev/js/modules/imports/instance-type.js": |
| @@ -423,12 +2313,11 @@ | ||
| 423 | 2313 | })); |
| 424 | 2314 | exports["default"] = void 0; |
| 425 | 2315 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 426 | 2316 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2317 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 427 | 2318 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 428 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 429 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 430 | -var InstanceType = exports["default"] = /*#__PURE__*/function () { | |
| 2319 | +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) { | |
| 431 | 2320 | function InstanceType() { |
| 432 | 2321 | var _this = this; |
| 433 | 2322 | (0, _classCallCheck2.default)(this, InstanceType); |
| 434 | 2323 | // Since anonymous classes sometimes do not get validated by babel, do it manually. |
| @@ -441,10 +2330,10 @@ | ||
| 441 | 2330 | prototypes.reverse().forEach(function (proto) { |
| 442 | 2331 | return _this instanceof proto; |
| 443 | 2332 | }); |
| 444 | 2333 | } |
| 445 | - return (0, _createClass2.default)(InstanceType, null, [{ | |
| 446 | - key: Symbol.hasInstance, | |
| 2334 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 2335 | + key: _Symbol$hasInstance, | |
| 447 | 2336 | value: function value(target) { |
| 448 | 2337 | /** |
| 449 | 2338 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 450 | 2339 | * its give's opportunity to mange capabilities of instanceOf operator. |
| @@ -449,9 +2338,9 @@ | ||
| 449 | 2338 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 450 | 2339 | * its give's opportunity to mange capabilities of instanceOf operator. |
| 451 | 2340 | * saving current class each time will give option later to handle instanceOf manually. |
| 452 | 2341 | */ |
| 453 | - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]); | |
| 2342 | + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), Symbol.hasInstance, this).call(this, target); | |
| 454 | 2343 | |
| 455 | 2344 | // Act normal when validate a class, which does not have instance type. |
| 456 | 2345 | if (target && !target.constructor.getInstanceType) { |
| 457 | 2346 | return result; |
| @@ -483,9 +2372,11 @@ | ||
| 483 | 2372 | value: function getInstanceType() { |
| 484 | 2373 | elementorModules.ForceMethodImplementation(); |
| 485 | 2374 | } |
| 486 | 2375 | }]); |
| 487 | -}(); | |
| 2376 | + return InstanceType; | |
| 2377 | +}(Symbol.hasInstance); | |
| 2378 | +exports["default"] = InstanceType; | |
| 488 | 2379 | |
| 489 | 2380 | /***/ }), |
| 490 | 2381 | |
| 491 | 2382 | /***/ "../assets/dev/js/modules/imports/module.js": |
| @@ -670,9 +2561,9 @@ | ||
| 670 | 2561 | value: true |
| 671 | 2562 | })); |
| 672 | 2563 | exports["default"] = void 0; |
| 673 | 2564 | var _viewModule = _interopRequireDefault(__webpack_require__(/*! ../view-module */ "../assets/dev/js/modules/imports/view-module.js")); |
| 674 | -var _default = exports["default"] = _viewModule.default.extend({ | |
| 2565 | +var _default = _viewModule.default.extend({ | |
| 675 | 2566 | getDefaultSettings: function getDefaultSettings() { |
| 676 | 2567 | return { |
| 677 | 2568 | container: null, |
| 678 | 2569 | items: null, |
| @@ -709,8 +2600,9 @@ | ||
| 709 | 2600 | } |
| 710 | 2601 | }); |
| 711 | 2602 | } |
| 712 | 2603 | }); |
| 2604 | +exports["default"] = _default; | |
| 713 | 2605 | |
| 714 | 2606 | /***/ }), |
| 715 | 2607 | |
| 716 | 2608 | /***/ "../assets/dev/js/modules/imports/utils/scroll.js": |
| @@ -729,13 +2621,13 @@ | ||
| 729 | 2621 | exports["default"] = void 0; |
| 730 | 2622 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 731 | 2623 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 732 | 2624 | // Moved from elementor pro: 'assets/dev/js/frontend/utils' |
| 733 | -var Scroll = exports["default"] = /*#__PURE__*/function () { | |
| 2625 | +var Scroll = /*#__PURE__*/function () { | |
| 734 | 2626 | function Scroll() { |
| 735 | 2627 | (0, _classCallCheck2.default)(this, Scroll); |
| 736 | 2628 | } |
| 737 | - return (0, _createClass2.default)(Scroll, null, [{ | |
| 2629 | + (0, _createClass2.default)(Scroll, null, [{ | |
| 738 | 2630 | key: "scrollObserver", |
| 739 | 2631 | value: |
| 740 | 2632 | /** |
| 741 | 2633 | * @param {Object} obj |
| @@ -746,27 +2638,27 @@ | ||
| 746 | 2638 | */ |
| 747 | 2639 | function scrollObserver(obj) { |
| 748 | 2640 | var lastScrollY = 0; |
| 749 | 2641 | |
| 750 | - // Generating thresholds points along the animation height | |
| 751 | - // More thresholds points = more trigger points of the callback | |
| 752 | - var buildThresholds = function buildThresholds() { | |
| 2642 | + // Generating threshholds points along the animation height | |
| 2643 | + // More threshholds points = more trigger points of the callback | |
| 2644 | + var buildThreshholds = function buildThreshholds() { | |
| 753 | 2645 | var sensitivityPercentage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; |
| 754 | - var thresholds = []; | |
| 2646 | + var threshholds = []; | |
| 755 | 2647 | if (sensitivityPercentage > 0 && sensitivityPercentage <= 100) { |
| 756 | 2648 | var increment = 100 / sensitivityPercentage; |
| 757 | 2649 | for (var i = 0; i <= 100; i += increment) { |
| 758 | - thresholds.push(i / 100); | |
| 2650 | + threshholds.push(i / 100); | |
| 759 | 2651 | } |
| 760 | 2652 | } else { |
| 761 | - thresholds.push(0); | |
| 2653 | + threshholds.push(0); | |
| 762 | 2654 | } |
| 763 | - return thresholds; | |
| 2655 | + return threshholds; | |
| 764 | 2656 | }; |
| 765 | 2657 | var options = { |
| 766 | 2658 | root: obj.root || null, |
| 767 | 2659 | rootMargin: obj.offset || '0px', |
| 768 | - threshold: buildThresholds(obj.sensitivity) | |
| 2660 | + threshold: buildThreshholds(obj.sensitivity) | |
| 769 | 2661 | }; |
| 770 | 2662 | function handleIntersect(entries) { |
| 771 | 2663 | var currentScrollY = entries[0].boundingClientRect.y, |
| 772 | 2664 | isInViewport = entries[0].isIntersecting, |
| @@ -825,9 +2717,11 @@ | ||
| 825 | 2717 | scrollPos = document.documentElement.scrollTop + document.body.scrollTop + heightOffset; |
| 826 | 2718 | return scrollPos / pageRange * 100; |
| 827 | 2719 | } |
| 828 | 2720 | }]); |
| 2721 | + return Scroll; | |
| 829 | 2722 | }(); |
| 2723 | +exports["default"] = Scroll; | |
| 830 | 2724 | |
| 831 | 2725 | /***/ }), |
| 832 | 2726 | |
| 833 | 2727 | /***/ "../assets/dev/js/modules/imports/view-module.js": |
| @@ -844,9 +2738,9 @@ | ||
| 844 | 2738 | value: true |
| 845 | 2739 | })); |
| 846 | 2740 | exports["default"] = void 0; |
| 847 | 2741 | var _module = _interopRequireDefault(__webpack_require__(/*! ./module */ "../assets/dev/js/modules/imports/module.js")); |
| 848 | -var _default = exports["default"] = _module.default.extend({ | |
| 2742 | +var _default = _module.default.extend({ | |
| 849 | 2743 | elements: null, |
| 850 | 2744 | getDefaultElements: function getDefaultElements() { |
| 851 | 2745 | return {}; |
| 852 | 2746 | }, |
| @@ -858,8 +2752,9 @@ | ||
| 858 | 2752 | initElements: function initElements() { |
| 859 | 2753 | this.elements = this.getDefaultElements(); |
| 860 | 2754 | } |
| 861 | 2755 | }); |
| 2756 | +exports["default"] = _default; | |
| 862 | 2757 | |
| 863 | 2758 | /***/ }), |
| 864 | 2759 | |
| 865 | 2760 | /***/ "../assets/dev/js/modules/modules.js": |
| @@ -881,11 +2776,9 @@ | ||
| 881 | 2776 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! ./imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 882 | 2777 | var _masonry = _interopRequireDefault(__webpack_require__(/*! ./imports/utils/masonry */ "../assets/dev/js/modules/imports/utils/masonry.js")); |
| 883 | 2778 | var _scroll = _interopRequireDefault(__webpack_require__(/*! ./imports/utils/scroll */ "../assets/dev/js/modules/imports/utils/scroll.js")); |
| 884 | 2779 | var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ./imports/force-method-implementation */ "../assets/dev/js/modules/imports/force-method-implementation.js")); |
| 885 | -var _templateRegistryHelpers = __webpack_require__(/*! ../../../../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers */ "../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js"); | |
| 886 | -var _customizationDialogs = __webpack_require__(/*! ../../../../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs */ "../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js"); | |
| 887 | -var baseModules = { | |
| 2780 | +var _default = window.elementorModules = { | |
| 888 | 2781 | Module: _module.default, |
| 889 | 2782 | ViewModule: _viewModule.default, |
| 890 | 2783 | ArgsObject: _argsObject.default, |
| 891 | 2784 | ForceMethodImplementation: _forceMethodImplementation.default, |
| @@ -891,20 +2784,11 @@ | ||
| 891 | 2784 | ForceMethodImplementation: _forceMethodImplementation.default, |
| 892 | 2785 | utils: { |
| 893 | 2786 | Masonry: _masonry.default, |
| 894 | 2787 | Scroll: _scroll.default |
| 895 | - }, | |
| 896 | - importExport: { | |
| 897 | - createGetInitialState: _templateRegistryHelpers.createGetInitialState, | |
| 898 | - customizationDialogsRegistry: _customizationDialogs.customizationDialogsRegistry | |
| 899 | 2788 | } |
| 900 | 2789 | }; |
| 901 | -if (!window.elementorModules) { | |
| 902 | - window.elementorModules = baseModules; | |
| 903 | -} else { | |
| 904 | - Object.assign(window.elementorModules, baseModules); | |
| 905 | -} | |
| 906 | -var _default = exports["default"] = window.elementorModules; | |
| 2790 | +exports["default"] = _default; | |
| 907 | 2791 | |
| 908 | 2792 | /***/ }), |
| 909 | 2793 | |
| 910 | 2794 | /***/ "../core/common/assets/js/views/modal/header.js": |
| @@ -922,25 +2806,21 @@ | ||
| 922 | 2806 | })); |
| 923 | 2807 | exports["default"] = void 0; |
| 924 | 2808 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 925 | 2809 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2810 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 926 | 2811 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 927 | 2812 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 928 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 929 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 930 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 931 | -var _default = exports["default"] = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 2813 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2814 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2815 | +var _default = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 2816 | + (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 2817 | + var _super = _createSuper(_default); | |
| 932 | 2818 | function _default() { |
| 933 | 2819 | (0, _classCallCheck2.default)(this, _default); |
| 934 | - return _callSuper(this, _default, arguments); | |
| 2820 | + return _super.apply(this, arguments); | |
| 935 | 2821 | } |
| 936 | - (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 937 | - return (0, _createClass2.default)(_default, [{ | |
| 938 | - key: "tagName", | |
| 939 | - value: function tagName() { | |
| 940 | - return 'header'; | |
| 941 | - } | |
| 942 | - }, { | |
| 2822 | + (0, _createClass2.default)(_default, [{ | |
| 943 | 2823 | key: "className", |
| 944 | 2824 | value: function className() { |
| 945 | 2825 | return 'elementor-templates-modal__header'; |
| 946 | 2826 | } |
| @@ -972,31 +2852,8 @@ | ||
| 972 | 2852 | 'click @ui.closeModal': 'onCloseModalClick' |
| 973 | 2853 | }; |
| 974 | 2854 | } |
| 975 | 2855 | }, { |
| 976 | - key: "onRender", | |
| 977 | - value: function onRender() { | |
| 978 | - this.bindEscapeKey(); | |
| 979 | - } | |
| 980 | - }, { | |
| 981 | - key: "bindEscapeKey", | |
| 982 | - value: function bindEscapeKey() { | |
| 983 | - var _this = this; | |
| 984 | - this.onDocumentKeyDown = function (event) { | |
| 985 | - if ('Escape' === event.key) { | |
| 986 | - _this.onCloseModalClick(); | |
| 987 | - } | |
| 988 | - }; | |
| 989 | - document.addEventListener('keydown', this.onDocumentKeyDown); | |
| 990 | - } | |
| 991 | - }, { | |
| 992 | - key: "onDestroy", | |
| 993 | - value: function onDestroy() { | |
| 994 | - if (this.onDocumentKeyDown) { | |
| 995 | - document.removeEventListener('keydown', this.onDocumentKeyDown); | |
| 996 | - } | |
| 997 | - } | |
| 998 | - }, { | |
| 999 | 2856 | key: "templateHelpers", |
| 1000 | 2857 | value: function templateHelpers() { |
| 1001 | 2858 | return { |
| 1002 | 2859 | closeType: this.getOption('closeType') |
| @@ -1005,36 +2862,13 @@ | ||
| 1005 | 2862 | }, { |
| 1006 | 2863 | key: "onCloseModalClick", |
| 1007 | 2864 | value: function onCloseModalClick() { |
| 1008 | 2865 | this._parent._parent._parent.hideModal(); |
| 1009 | - var documentType = this.getDocumentType(); | |
| 1010 | - var customEvent = new CustomEvent("core/modal/close/".concat(documentType)); | |
| 1011 | - window.dispatchEvent(customEvent); | |
| 1012 | - if (this.isFloatingButtonLibraryClose()) { | |
| 1013 | - $e.internal('document/save/set-is-modified', { | |
| 1014 | - status: false | |
| 1015 | - }); | |
| 1016 | - window.location.href = elementor.config.admin_floating_button_admin_url; | |
| 1017 | - } | |
| 1018 | 2866 | } |
| 1019 | - }, { | |
| 1020 | - key: "getDocumentType", | |
| 1021 | - value: function getDocumentType() { | |
| 1022 | - var _elementor$config$doc, _elementor; | |
| 1023 | - var DEFAULT_TYPE = 'default'; | |
| 1024 | - if ('undefined' === typeof window.elementor) { | |
| 1025 | - return DEFAULT_TYPE; | |
| 1026 | - } | |
| 1027 | - return (_elementor$config$doc = (_elementor = elementor) === null || _elementor === void 0 || (_elementor = _elementor.config) === null || _elementor === void 0 || (_elementor = _elementor.document) === null || _elementor === void 0 ? void 0 : _elementor.type) !== null && _elementor$config$doc !== void 0 ? _elementor$config$doc : DEFAULT_TYPE; | |
| 1028 | - } | |
| 1029 | - }, { | |
| 1030 | - key: "isFloatingButtonLibraryClose", | |
| 1031 | - value: function isFloatingButtonLibraryClose() { | |
| 1032 | - var _elementor$config, _elementor$config2; | |
| 1033 | - return window.elementor && ((_elementor$config = elementor.config) === null || _elementor$config === void 0 ? void 0 : _elementor$config.admin_floating_button_admin_url) && 'floating-buttons' === ((_elementor$config2 = elementor.config) === null || _elementor$config2 === void 0 || (_elementor$config2 = _elementor$config2.document) === null || _elementor$config2 === void 0 ? void 0 : _elementor$config2.type) && (this.$el.closest('.dialog-lightbox-widget-content').find('.elementor-template-library-template-floating_button').length || this.$el.closest('.dialog-lightbox-widget-content').find('#elementor-template-library-preview').length || this.$el.closest('.dialog-lightbox-widget-content').find('#elementor-template-library-templates-empty').length); | |
| 1034 | - } | |
| 1035 | 2867 | }]); |
| 2868 | + return _default; | |
| 1036 | 2869 | }(Marionette.LayoutView); |
| 2870 | +exports["default"] = _default; | |
| 1037 | 2871 | |
| 1038 | 2872 | /***/ }), |
| 1039 | 2873 | |
| 1040 | 2874 | /***/ "../core/common/assets/js/views/modal/layout.js": |
| @@ -1052,23 +2886,24 @@ | ||
| 1052 | 2886 | })); |
| 1053 | 2887 | exports["default"] = void 0; |
| 1054 | 2888 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1055 | 2889 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2890 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1056 | 2891 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1057 | 2892 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1058 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1059 | 2893 | var _header = _interopRequireDefault(__webpack_require__(/*! ./header */ "../core/common/assets/js/views/modal/header.js")); |
| 1060 | 2894 | var _logo = _interopRequireDefault(__webpack_require__(/*! ./logo */ "../core/common/assets/js/views/modal/logo.js")); |
| 1061 | 2895 | var _loading = _interopRequireDefault(__webpack_require__(/*! ./loading */ "../core/common/assets/js/views/modal/loading.js")); |
| 1062 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1063 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1064 | -var _default = exports["default"] = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 2896 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2897 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2898 | +var _default = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 2899 | + (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 2900 | + var _super = _createSuper(_default); | |
| 1065 | 2901 | function _default() { |
| 1066 | 2902 | (0, _classCallCheck2.default)(this, _default); |
| 1067 | - return _callSuper(this, _default, arguments); | |
| 2903 | + return _super.apply(this, arguments); | |
| 1068 | 2904 | } |
| 1069 | - (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 1070 | - return (0, _createClass2.default)(_default, [{ | |
| 2905 | + (0, _createClass2.default)(_default, [{ | |
| 1071 | 2906 | key: "el", |
| 1072 | 2907 | value: function el() { |
| 1073 | 2908 | return this.getModal().getElements('widget'); |
| 1074 | 2909 | } |
| @@ -1175,9 +3010,11 @@ | ||
| 1175 | 3010 | value: function showLogo() { |
| 1176 | 3011 | this.getHeaderView().logoArea.show(new _logo.default(this.getLogoOptions())); |
| 1177 | 3012 | } |
| 1178 | 3013 | }]); |
| 3014 | + return _default; | |
| 1179 | 3015 | }(Marionette.LayoutView); |
| 3016 | +exports["default"] = _default; | |
| 1180 | 3017 | |
| 1181 | 3018 | /***/ }), |
| 1182 | 3019 | |
| 1183 | 3020 | /***/ "../core/common/assets/js/views/modal/loading.js": |
| @@ -1195,20 +3032,21 @@ | ||
| 1195 | 3032 | })); |
| 1196 | 3033 | exports["default"] = void 0; |
| 1197 | 3034 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1198 | 3035 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3036 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1199 | 3037 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1200 | 3038 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1201 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1202 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1203 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1204 | -var _default = exports["default"] = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 3039 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3040 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 3041 | +var _default = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 3042 | + (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 3043 | + var _super = _createSuper(_default); | |
| 1205 | 3044 | function _default() { |
| 1206 | 3045 | (0, _classCallCheck2.default)(this, _default); |
| 1207 | - return _callSuper(this, _default, arguments); | |
| 3046 | + return _super.apply(this, arguments); | |
| 1208 | 3047 | } |
| 1209 | - (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 1210 | - return (0, _createClass2.default)(_default, [{ | |
| 3048 | + (0, _createClass2.default)(_default, [{ | |
| 1211 | 3049 | key: "id", |
| 1212 | 3050 | value: function id() { |
| 1213 | 3051 | return 'elementor-template-library-loading'; |
| 1214 | 3052 | } |
| @@ -1217,9 +3055,11 @@ | ||
| 1217 | 3055 | value: function getTemplate() { |
| 1218 | 3056 | return '#tmpl-elementor-template-library-loading'; |
| 1219 | 3057 | } |
| 1220 | 3058 | }]); |
| 3059 | + return _default; | |
| 1221 | 3060 | }(Marionette.ItemView); |
| 3061 | +exports["default"] = _default; | |
| 1222 | 3062 | |
| 1223 | 3063 | /***/ }), |
| 1224 | 3064 | |
| 1225 | 3065 | /***/ "../core/common/assets/js/views/modal/logo.js": |
| @@ -1237,20 +3077,21 @@ | ||
| 1237 | 3077 | })); |
| 1238 | 3078 | exports["default"] = void 0; |
| 1239 | 3079 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1240 | 3080 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3081 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1241 | 3082 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1242 | 3083 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1243 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1244 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1245 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1246 | -var _default = exports["default"] = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 3084 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3085 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 3086 | +var _default = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 3087 | + (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 3088 | + var _super = _createSuper(_default); | |
| 1247 | 3089 | function _default() { |
| 1248 | 3090 | (0, _classCallCheck2.default)(this, _default); |
| 1249 | - return _callSuper(this, _default, arguments); | |
| 3091 | + return _super.apply(this, arguments); | |
| 1250 | 3092 | } |
| 1251 | - (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 1252 | - return (0, _createClass2.default)(_default, [{ | |
| 3093 | + (0, _createClass2.default)(_default, [{ | |
| 1253 | 3094 | key: "getTemplate", |
| 1254 | 3095 | value: function getTemplate() { |
| 1255 | 3096 | return '#tmpl-elementor-templates-modal__header__logo'; |
| 1256 | 3097 | } |
| @@ -1281,9 +3122,11 @@ | ||
| 1281 | 3122 | clickCallback(); |
| 1282 | 3123 | } |
| 1283 | 3124 | } |
| 1284 | 3125 | }]); |
| 3126 | + return _default; | |
| 1285 | 3127 | }(Marionette.ItemView); |
| 3128 | +exports["default"] = _default; | |
| 1286 | 3129 | |
| 1287 | 3130 | /***/ }), |
| 1288 | 3131 | |
| 1289 | 3132 | /***/ "../modules/web-cli/assets/js/modules/command-base.js": |
| @@ -1301,25 +3144,26 @@ | ||
| 1301 | 3144 | })); |
| 1302 | 3145 | exports["default"] = void 0; |
| 1303 | 3146 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1304 | 3147 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3148 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1305 | 3149 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1306 | 3150 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1307 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1308 | 3151 | var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js")); |
| 1309 | 3152 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 1310 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1311 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3153 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3154 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1312 | 3155 | /** |
| 1313 | 3156 | * @name $e.modules.CommandBase |
| 1314 | 3157 | */ |
| 1315 | -var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) { | |
| 3158 | +var CommandBase = /*#__PURE__*/function (_CommandInfra) { | |
| 3159 | + (0, _inherits2.default)(CommandBase, _CommandInfra); | |
| 3160 | + var _super = _createSuper(CommandBase); | |
| 1316 | 3161 | function CommandBase() { |
| 1317 | 3162 | (0, _classCallCheck2.default)(this, CommandBase); |
| 1318 | - return _callSuper(this, CommandBase, arguments); | |
| 3163 | + return _super.apply(this, arguments); | |
| 1319 | 3164 | } |
| 1320 | - (0, _inherits2.default)(CommandBase, _CommandInfra); | |
| 1321 | - return (0, _createClass2.default)(CommandBase, [{ | |
| 3165 | + (0, _createClass2.default)(CommandBase, [{ | |
| 1322 | 3166 | key: "onBeforeRun", |
| 1323 | 3167 | value: function onBeforeRun() { |
| 1324 | 3168 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1325 | 3169 | $e.hooks.runUIBefore(this.command, args); |
| @@ -1341,9 +3185,9 @@ | ||
| 1341 | 3185 | key: "onAfterApply", |
| 1342 | 3186 | value: function onAfterApply() { |
| 1343 | 3187 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1344 | 3188 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 1345 | - return $e.hooks.runDataAfter(this.command, args, result); | |
| 3189 | + $e.hooks.runDataAfter(this.command, args, result); | |
| 1346 | 3190 | } |
| 1347 | 3191 | }, { |
| 1348 | 3192 | key: "onCatchApply", |
| 1349 | 3193 | value: function onCatchApply(e) { |
| @@ -1369,9 +3213,8 @@ | ||
| 1369 | 3213 | * |
| 1370 | 3214 | * Validate `arg.container` & `arg.containers`. |
| 1371 | 3215 | * |
| 1372 | 3216 | * @param {{}} args |
| 1373 | - * @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead. | |
| 1374 | 3217 | * |
| 1375 | 3218 | * @throws {Error} |
| 1376 | 3219 | */ |
| 1377 | 3220 | }, { |
| @@ -1378,9 +3221,9 @@ | ||
| 1378 | 3221 | key: "requireContainer", |
| 1379 | 3222 | value: function requireContainer() { |
| 1380 | 3223 | var _this = this; |
| 1381 | 3224 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; |
| 1382 | - _deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); | |
| 3225 | + _deprecation.default.deprecated('requireContainer', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); | |
| 1383 | 3226 | if (!args.container && !args.containers) { |
| 1384 | 3227 | throw Error('container or containers are required.'); |
| 1385 | 3228 | } |
| 1386 | 3229 | if (args.container && args.containers) { |
| @@ -1398,9 +3241,11 @@ | ||
| 1398 | 3241 | value: function getInstanceType() { |
| 1399 | 3242 | return 'CommandBase'; |
| 1400 | 3243 | } |
| 1401 | 3244 | }]); |
| 3245 | + return CommandBase; | |
| 1402 | 3246 | }(_commandInfra.default); |
| 3247 | +exports["default"] = CommandBase; | |
| 1403 | 3248 | |
| 1404 | 3249 | /***/ }), |
| 1405 | 3250 | |
| 1406 | 3251 | /***/ "../modules/web-cli/assets/js/modules/command-callback-base.js": |
| @@ -1418,24 +3263,25 @@ | ||
| 1418 | 3263 | })); |
| 1419 | 3264 | exports["default"] = void 0; |
| 1420 | 3265 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1421 | 3266 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3267 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1422 | 3268 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1423 | 3269 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1424 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1425 | 3270 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 1426 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1427 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3271 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3272 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1428 | 3273 | /** |
| 1429 | 3274 | * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context. |
| 1430 | 3275 | */ |
| 1431 | -var CommandCallbackBase = exports["default"] = /*#__PURE__*/function (_CommandBase) { | |
| 3276 | +var CommandCallbackBase = /*#__PURE__*/function (_CommandBase) { | |
| 3277 | + (0, _inherits2.default)(CommandCallbackBase, _CommandBase); | |
| 3278 | + var _super = _createSuper(CommandCallbackBase); | |
| 1432 | 3279 | function CommandCallbackBase() { |
| 1433 | 3280 | (0, _classCallCheck2.default)(this, CommandCallbackBase); |
| 1434 | - return _callSuper(this, CommandCallbackBase, arguments); | |
| 3281 | + return _super.apply(this, arguments); | |
| 1435 | 3282 | } |
| 1436 | - (0, _inherits2.default)(CommandCallbackBase, _CommandBase); | |
| 1437 | - return (0, _createClass2.default)(CommandCallbackBase, [{ | |
| 3283 | + (0, _createClass2.default)(CommandCallbackBase, [{ | |
| 1438 | 3284 | key: "apply", |
| 1439 | 3285 | value: function apply() { |
| 1440 | 3286 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1441 | 3287 | return this.constructor.getCallback()(args); |
| @@ -1458,9 +3304,11 @@ | ||
| 1458 | 3304 | value: function getCallback() { |
| 1459 | 3305 | return this.registerConfig.callback; |
| 1460 | 3306 | } |
| 1461 | 3307 | }]); |
| 3308 | + return CommandCallbackBase; | |
| 1462 | 3309 | }(_commandBase.default); |
| 3310 | +exports["default"] = CommandCallbackBase; | |
| 1463 | 3311 | |
| 1464 | 3312 | /***/ }), |
| 1465 | 3313 | |
| 1466 | 3314 | /***/ "../modules/web-cli/assets/js/modules/command-infra.js": |
| @@ -1478,20 +3326,22 @@ | ||
| 1478 | 3326 | })); |
| 1479 | 3327 | exports["default"] = void 0; |
| 1480 | 3328 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1481 | 3329 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3330 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1482 | 3331 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1483 | 3332 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1484 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1485 | 3333 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 1486 | 3334 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 1487 | 3335 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 1488 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1489 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3336 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3337 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1490 | 3338 | /** |
| 1491 | 3339 | * @typedef {import('../modules/component-base')} ComponentBase |
| 1492 | 3340 | */ |
| 1493 | -var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) { | |
| 3341 | +var CommandInfra = /*#__PURE__*/function (_ArgsObject) { | |
| 3342 | + (0, _inherits2.default)(CommandInfra, _ArgsObject); | |
| 3343 | + var _super = _createSuper(CommandInfra); | |
| 1494 | 3344 | /** |
| 1495 | 3345 | * Function constructor(). |
| 1496 | 3346 | * |
| 1497 | 3347 | * Create Commands Base. |
| @@ -1501,9 +3351,9 @@ | ||
| 1501 | 3351 | function CommandInfra() { |
| 1502 | 3352 | var _this; |
| 1503 | 3353 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1504 | 3354 | (0, _classCallCheck2.default)(this, CommandInfra); |
| 1505 | - _this = _callSuper(this, CommandInfra, [args]); | |
| 3355 | + _this = _super.call(this, args); | |
| 1506 | 3356 | if (!_this.constructor.registerConfig) { |
| 1507 | 3357 | throw RangeError('Doing it wrong: Each command type should have `registerConfig`.'); |
| 1508 | 3358 | } |
| 1509 | 3359 | |
| @@ -1530,15 +3380,12 @@ | ||
| 1530 | 3380 | * Initialize command, called after construction. |
| 1531 | 3381 | * |
| 1532 | 3382 | * @param {{}} args |
| 1533 | 3383 | */ |
| 1534 | - (0, _inherits2.default)(CommandInfra, _ArgsObject); | |
| 1535 | - return (0, _createClass2.default)(CommandInfra, [{ | |
| 3384 | + (0, _createClass2.default)(CommandInfra, [{ | |
| 1536 | 3385 | key: "currentCommand", |
| 1537 | 3386 | get: |
| 1538 | - /** | |
| 1539 | - * @deprecated since 3.7.0, use `this.command` instead. | |
| 1540 | - */ | |
| 3387 | + // TODO - Remove backwards compatibility. | |
| 1541 | 3388 | function get() { |
| 1542 | 3389 | _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command'); |
| 1543 | 3390 | return this.command; |
| 1544 | 3391 | } |
| @@ -1697,9 +3544,11 @@ | ||
| 1697 | 3544 | value: function setRegisterConfig(config) { |
| 1698 | 3545 | this.registerConfig = Object.freeze(config); |
| 1699 | 3546 | } |
| 1700 | 3547 | }]); |
| 3548 | + return CommandInfra; | |
| 1701 | 3549 | }(_argsObject.default); |
| 3550 | +exports["default"] = CommandInfra; | |
| 1702 | 3551 | /** |
| 1703 | 3552 | * @type {Object} |
| 1704 | 3553 | */ |
| 1705 | 3554 | (0, _defineProperty2.default)(CommandInfra, "registerConfig", null); |
| @@ -1721,28 +3570,32 @@ | ||
| 1721 | 3570 | })); |
| 1722 | 3571 | exports["default"] = exports.Close = void 0; |
| 1723 | 3572 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1724 | 3573 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3574 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1725 | 3575 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1726 | 3576 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1727 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1728 | 3577 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 1729 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1730 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1731 | -var Close = exports.Close = /*#__PURE__*/function (_CommandBase) { | |
| 3578 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3579 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 3580 | +var Close = /*#__PURE__*/function (_CommandBase) { | |
| 3581 | + (0, _inherits2.default)(Close, _CommandBase); | |
| 3582 | + var _super = _createSuper(Close); | |
| 1732 | 3583 | function Close() { |
| 1733 | 3584 | (0, _classCallCheck2.default)(this, Close); |
| 1734 | - return _callSuper(this, Close, arguments); | |
| 3585 | + return _super.apply(this, arguments); | |
| 1735 | 3586 | } |
| 1736 | - (0, _inherits2.default)(Close, _CommandBase); | |
| 1737 | - return (0, _createClass2.default)(Close, [{ | |
| 3587 | + (0, _createClass2.default)(Close, [{ | |
| 1738 | 3588 | key: "apply", |
| 1739 | 3589 | value: function apply() { |
| 1740 | 3590 | this.component.close(); |
| 1741 | 3591 | } |
| 1742 | 3592 | }]); |
| 3593 | + return Close; | |
| 1743 | 3594 | }(_commandBase.default); |
| 1744 | -var _default = exports["default"] = Close; | |
| 3595 | +exports.Close = Close; | |
| 3596 | +var _default = Close; | |
| 3597 | +exports["default"] = _default; | |
| 1745 | 3598 | |
| 1746 | 3599 | /***/ }), |
| 1747 | 3600 | |
| 1748 | 3601 | /***/ "../modules/web-cli/assets/js/modules/commands/index.js": |
| @@ -1796,28 +3649,32 @@ | ||
| 1796 | 3649 | })); |
| 1797 | 3650 | exports["default"] = exports.Open = void 0; |
| 1798 | 3651 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1799 | 3652 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3653 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1800 | 3654 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1801 | 3655 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1802 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1803 | 3656 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 1804 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1805 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1806 | -var Open = exports.Open = /*#__PURE__*/function (_CommandBase) { | |
| 3657 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3658 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 3659 | +var Open = /*#__PURE__*/function (_CommandBase) { | |
| 3660 | + (0, _inherits2.default)(Open, _CommandBase); | |
| 3661 | + var _super = _createSuper(Open); | |
| 1807 | 3662 | function Open() { |
| 1808 | 3663 | (0, _classCallCheck2.default)(this, Open); |
| 1809 | - return _callSuper(this, Open, arguments); | |
| 3664 | + return _super.apply(this, arguments); | |
| 1810 | 3665 | } |
| 1811 | - (0, _inherits2.default)(Open, _CommandBase); | |
| 1812 | - return (0, _createClass2.default)(Open, [{ | |
| 3666 | + (0, _createClass2.default)(Open, [{ | |
| 1813 | 3667 | key: "apply", |
| 1814 | 3668 | value: function apply() { |
| 1815 | 3669 | $e.route(this.component.getNamespace()); |
| 1816 | 3670 | } |
| 1817 | 3671 | }]); |
| 3672 | + return Open; | |
| 1818 | 3673 | }(_commandBase.default); |
| 1819 | -var _default = exports["default"] = Open; | |
| 3674 | +exports.Open = Open; | |
| 3675 | +var _default = Open; | |
| 3676 | +exports["default"] = _default; | |
| 1820 | 3677 | |
| 1821 | 3678 | /***/ }), |
| 1822 | 3679 | |
| 1823 | 3680 | /***/ "../modules/web-cli/assets/js/modules/commands/toggle.js": |
| @@ -1835,21 +3692,22 @@ | ||
| 1835 | 3692 | })); |
| 1836 | 3693 | exports["default"] = exports.Toggle = void 0; |
| 1837 | 3694 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1838 | 3695 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3696 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1839 | 3697 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1840 | 3698 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1841 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1842 | 3699 | var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); |
| 1843 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1844 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1845 | -var Toggle = exports.Toggle = /*#__PURE__*/function (_CommandBase) { | |
| 3700 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3701 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 3702 | +var Toggle = /*#__PURE__*/function (_CommandBase) { | |
| 3703 | + (0, _inherits2.default)(Toggle, _CommandBase); | |
| 3704 | + var _super = _createSuper(Toggle); | |
| 1846 | 3705 | function Toggle() { |
| 1847 | 3706 | (0, _classCallCheck2.default)(this, Toggle); |
| 1848 | - return _callSuper(this, Toggle, arguments); | |
| 3707 | + return _super.apply(this, arguments); | |
| 1849 | 3708 | } |
| 1850 | - (0, _inherits2.default)(Toggle, _CommandBase); | |
| 1851 | - return (0, _createClass2.default)(Toggle, [{ | |
| 3709 | + (0, _createClass2.default)(Toggle, [{ | |
| 1852 | 3710 | key: "apply", |
| 1853 | 3711 | value: function apply() { |
| 1854 | 3712 | if (this.component.isOpen) { |
| 1855 | 3713 | this.component.close(); |
| @@ -1857,10 +3715,13 @@ | ||
| 1857 | 3715 | $e.route(this.component.getNamespace()); |
| 1858 | 3716 | } |
| 1859 | 3717 | } |
| 1860 | 3718 | }]); |
| 3719 | + return Toggle; | |
| 1861 | 3720 | }(_commandBase.default); |
| 1862 | -var _default = exports["default"] = Toggle; | |
| 3721 | +exports.Toggle = Toggle; | |
| 3722 | +var _default = Toggle; | |
| 3723 | +exports["default"] = _default; | |
| 1863 | 3724 | |
| 1864 | 3725 | /***/ }), |
| 1865 | 3726 | |
| 1866 | 3727 | /***/ "../modules/web-cli/assets/js/modules/component-base.js": |
| @@ -1880,32 +3741,33 @@ | ||
| 1880 | 3741 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 1881 | 3742 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 1882 | 3743 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1883 | 3744 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 3745 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1884 | 3746 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 1885 | 3747 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1886 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1887 | 3748 | var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js")); |
| 1888 | 3749 | var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"); |
| 1889 | 3750 | var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js")); |
| 1890 | 3751 | var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js")); |
| 1891 | 3752 | var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); |
| 1892 | -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; } | |
| 1893 | -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; } | |
| 1894 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1895 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 3753 | +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } | |
| 3754 | +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } | |
| 3755 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 3756 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1896 | 3757 | /** |
| 1897 | 3758 | * @typedef {import('./command-infra')} CommandInfra |
| 1898 | 3759 | * @typedef {import('./hook-base')} HookBase |
| 1899 | 3760 | * @typedef {import('../core/states/ui-state-base')} UiStateBase |
| 1900 | 3761 | */ |
| 1901 | -var ComponentBase = exports["default"] = /*#__PURE__*/function (_Module) { | |
| 3762 | +var ComponentBase = /*#__PURE__*/function (_Module) { | |
| 3763 | + (0, _inherits2.default)(ComponentBase, _Module); | |
| 3764 | + var _super = _createSuper(ComponentBase); | |
| 1902 | 3765 | function ComponentBase() { |
| 1903 | 3766 | (0, _classCallCheck2.default)(this, ComponentBase); |
| 1904 | - return _callSuper(this, ComponentBase, arguments); | |
| 3767 | + return _super.apply(this, arguments); | |
| 1905 | 3768 | } |
| 1906 | - (0, _inherits2.default)(ComponentBase, _Module); | |
| 1907 | - return (0, _createClass2.default)(ComponentBase, [{ | |
| 3769 | + (0, _createClass2.default)(ComponentBase, [{ | |
| 1908 | 3770 | key: "__construct", |
| 1909 | 3771 | value: function __construct() { |
| 1910 | 3772 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1911 | 3773 | if (args.manager) { |
| @@ -1961,11 +3823,11 @@ | ||
| 1961 | 3823 | Object.values(this.getUiStates()).forEach(function (instance) { |
| 1962 | 3824 | return _this.registerUiState(instance); |
| 1963 | 3825 | }); |
| 1964 | 3826 | Object.entries(this.getStates()).forEach(function (_ref9) { |
| 1965 | - var _ref0 = (0, _slicedToArray2.default)(_ref9, 2), | |
| 1966 | - id = _ref0[0], | |
| 1967 | - state = _ref0[1]; | |
| 3827 | + var _ref10 = (0, _slicedToArray2.default)(_ref9, 2), | |
| 3828 | + id = _ref10[0], | |
| 3829 | + state = _ref10[1]; | |
| 1968 | 3830 | return _this.registerState(id, state); |
| 1969 | 3831 | }); |
| 1970 | 3832 | } |
| 1971 | 3833 | |
| @@ -1977,12 +3839,8 @@ | ||
| 1977 | 3839 | key: "getNamespace", |
| 1978 | 3840 | value: function getNamespace() { |
| 1979 | 3841 | (0, _forceMethodImplementation.default)(); |
| 1980 | 3842 | } |
| 1981 | - | |
| 1982 | - /** | |
| 1983 | - * @deprecated since 3.7.0, use `getServiceName()` instead. | |
| 1984 | - */ | |
| 1985 | 3843 | }, { |
| 1986 | 3844 | key: "getRootContainer", |
| 1987 | 3845 | value: function getRootContainer() { |
| 1988 | 3846 | _deprecation.default.deprecated('getRootContainer()', '3.7.0', 'getServiceName()'); |
| @@ -2156,13 +4014,14 @@ | ||
| 2156 | 4014 | registerConfig.callback = context; |
| 2157 | 4015 | |
| 2158 | 4016 | // Unique class. |
| 2159 | 4017 | context = /*#__PURE__*/function (_CommandCallbackBase) { |
| 4018 | + (0, _inherits2.default)(context, _CommandCallbackBase); | |
| 4019 | + var _super2 = _createSuper(context); | |
| 2160 | 4020 | function context() { |
| 2161 | 4021 | (0, _classCallCheck2.default)(this, context); |
| 2162 | - return _callSuper(this, context, arguments); | |
| 4022 | + return _super2.apply(this, arguments); | |
| 2163 | 4023 | } |
| 2164 | - (0, _inherits2.default)(context, _CommandCallbackBase); | |
| 2165 | 4024 | return (0, _createClass2.default)(context); |
| 2166 | 4025 | }(_commandCallbackBase.default); |
| 2167 | 4026 | } |
| 2168 | 4027 | context.setRegisterConfig(registerConfig); |
| @@ -2346,8 +4205,9 @@ | ||
| 2346 | 4205 | }, { |
| 2347 | 4206 | key: "activateTab", |
| 2348 | 4207 | value: function activateTab(tab, args) { |
| 2349 | 4208 | var _this4 = this; |
| 4209 | + this.currentTab = tab; | |
| 2350 | 4210 | this.renderTab(tab, args); |
| 2351 | 4211 | jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) { |
| 2352 | 4212 | $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args); |
| 2353 | 4213 | }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active'); |
| @@ -2387,12 +4247,12 @@ | ||
| 2387 | 4247 | var _this5 = this; |
| 2388 | 4248 | var commands = {}; |
| 2389 | 4249 | |
| 2390 | 4250 | // Convert `Commands` to `ComponentBase` workable format. |
| 2391 | - Object.entries(commandsFromImport).forEach(function (_ref1) { | |
| 2392 | - var _ref10 = (0, _slicedToArray2.default)(_ref1, 2), | |
| 2393 | - className = _ref10[0], | |
| 2394 | - Class = _ref10[1]; | |
| 4251 | + Object.entries(commandsFromImport).forEach(function (_ref11) { | |
| 4252 | + var _ref12 = (0, _slicedToArray2.default)(_ref11, 2), | |
| 4253 | + className = _ref12[0], | |
| 4254 | + Class = _ref12[1]; | |
| 2395 | 4255 | var command = _this5.normalizeCommandName(className); |
| 2396 | 4256 | commands[command] = Class; |
| 2397 | 4257 | }); |
| 2398 | 4258 | return commands; |
| @@ -2452,9 +4312,11 @@ | ||
| 2452 | 4312 | value: function toggleHistoryClass() { |
| 2453 | 4313 | document.body.classList.toggle('e-routes-has-history', !!$e.routes.getHistory(this.getServiceName()).length); |
| 2454 | 4314 | } |
| 2455 | 4315 | }]); |
| 4316 | + return ComponentBase; | |
| 2456 | 4317 | }(_module.default); |
| 4318 | +exports["default"] = ComponentBase; | |
| 2457 | 4319 | |
| 2458 | 4320 | /***/ }), |
| 2459 | 4321 | |
| 2460 | 4322 | /***/ "../modules/web-cli/assets/js/modules/component-modal-base.js": |
| @@ -2471,33 +4333,33 @@ | ||
| 2471 | 4333 | Object.defineProperty(exports, "__esModule", ({ |
| 2472 | 4334 | value: true |
| 2473 | 4335 | })); |
| 2474 | 4336 | exports["default"] = void 0; |
| 2475 | -var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js")); | |
| 2476 | 4337 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2477 | 4338 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 4339 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 4340 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2478 | 4341 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2479 | 4342 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2480 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2481 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2482 | 4343 | var _componentBase = _interopRequireDefault(__webpack_require__(/*! ./component-base */ "../modules/web-cli/assets/js/modules/component-base.js")); |
| 2483 | 4344 | var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../modules/web-cli/assets/js/modules/commands/index.js")); |
| 2484 | 4345 | var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js")); |
| 2485 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 2486 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2487 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2488 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 2489 | -var ComponentModalBase = exports["default"] = /*#__PURE__*/function (_ComponentBase) { | |
| 4346 | +function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | |
| 4347 | +function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | |
| 4348 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4349 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4350 | +var ComponentModalBase = /*#__PURE__*/function (_ComponentBase) { | |
| 4351 | + (0, _inherits2.default)(ComponentModalBase, _ComponentBase); | |
| 4352 | + var _super = _createSuper(ComponentModalBase); | |
| 2490 | 4353 | function ComponentModalBase() { |
| 2491 | 4354 | (0, _classCallCheck2.default)(this, ComponentModalBase); |
| 2492 | - return _callSuper(this, ComponentModalBase, arguments); | |
| 4355 | + return _super.apply(this, arguments); | |
| 2493 | 4356 | } |
| 2494 | - (0, _inherits2.default)(ComponentModalBase, _ComponentBase); | |
| 2495 | - return (0, _createClass2.default)(ComponentModalBase, [{ | |
| 4357 | + (0, _createClass2.default)(ComponentModalBase, [{ | |
| 2496 | 4358 | key: "registerAPI", |
| 2497 | 4359 | value: function registerAPI() { |
| 2498 | 4360 | var _this = this; |
| 2499 | - _superPropGet(ComponentModalBase, "registerAPI", this, 3)([]); | |
| 4361 | + (0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "registerAPI", this).call(this); | |
| 2500 | 4362 | $e.shortcuts.register('esc', { |
| 2501 | 4363 | scopes: [this.getNamespace()], |
| 2502 | 4364 | callback: function callback() { |
| 2503 | 4365 | return _this.close(); |
| @@ -2534,13 +4396,12 @@ | ||
| 2534 | 4396 | } |
| 2535 | 4397 | }, { |
| 2536 | 4398 | key: "close", |
| 2537 | 4399 | value: function close() { |
| 2538 | - if (!_superPropGet(ComponentModalBase, "close", this, 3)([])) { | |
| 4400 | + if (!(0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "close", this).call(this)) { | |
| 2539 | 4401 | return false; |
| 2540 | 4402 | } |
| 2541 | - var close = elementor.hooks.applyFilters('component/modal/close', this.layout.getModal().hide.bind(this.layout.getModal()), this); | |
| 2542 | - close(); | |
| 4403 | + this.layout.getModal().hide(); | |
| 2543 | 4404 | return true; |
| 2544 | 4405 | } |
| 2545 | 4406 | }, { |
| 2546 | 4407 | key: "getModalLayout", |
| @@ -2547,9 +4408,11 @@ | ||
| 2547 | 4408 | value: function getModalLayout() { |
| 2548 | 4409 | (0, _forceMethodImplementation.default)(); |
| 2549 | 4410 | } |
| 2550 | 4411 | }]); |
| 4412 | + return ComponentModalBase; | |
| 2551 | 4413 | }(_componentBase.default); |
| 4414 | +exports["default"] = ComponentModalBase; | |
| 2552 | 4415 | |
| 2553 | 4416 | /***/ }), |
| 2554 | 4417 | |
| 2555 | 4418 | /***/ "../modules/web-cli/assets/js/modules/hook-break.js": |
| @@ -2567,22 +4430,24 @@ | ||
| 2567 | 4430 | })); |
| 2568 | 4431 | exports["default"] = void 0; |
| 2569 | 4432 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2570 | 4433 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 4434 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2571 | 4435 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2572 | 4436 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2573 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2574 | 4437 | var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); |
| 2575 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2576 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2577 | -var HookBreak = exports["default"] = /*#__PURE__*/function (_Error) { | |
| 4438 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4439 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 4440 | +var HookBreak = /*#__PURE__*/function (_Error) { | |
| 4441 | + (0, _inherits2.default)(HookBreak, _Error); | |
| 4442 | + var _super = _createSuper(HookBreak); | |
| 2578 | 4443 | function HookBreak() { |
| 2579 | 4444 | (0, _classCallCheck2.default)(this, HookBreak); |
| 2580 | - return _callSuper(this, HookBreak, ['HookBreak']); | |
| 4445 | + return _super.call(this, 'HookBreak'); | |
| 2581 | 4446 | } |
| 2582 | - (0, _inherits2.default)(HookBreak, _Error); | |
| 2583 | 4447 | return (0, _createClass2.default)(HookBreak); |
| 2584 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 4448 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 4449 | +exports["default"] = HookBreak; | |
| 2585 | 4450 | |
| 2586 | 4451 | /***/ }), |
| 2587 | 4452 | |
| 2588 | 4453 | /***/ "../modules/web-cli/assets/js/utils/console.js": |
| @@ -2600,13 +4465,13 @@ | ||
| 2600 | 4465 | })); |
| 2601 | 4466 | exports["default"] = void 0; |
| 2602 | 4467 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2603 | 4468 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2604 | -var Console = exports["default"] = /*#__PURE__*/function () { | |
| 4469 | +var Console = /*#__PURE__*/function () { | |
| 2605 | 4470 | function Console() { |
| 2606 | 4471 | (0, _classCallCheck2.default)(this, Console); |
| 2607 | 4472 | } |
| 2608 | - return (0, _createClass2.default)(Console, null, [{ | |
| 4473 | + (0, _createClass2.default)(Console, null, [{ | |
| 2609 | 4474 | key: "error", |
| 2610 | 4475 | value: function error(message) { |
| 2611 | 4476 | // Show an error if devTools is available. |
| 2612 | 4477 | if ($e.devTools) { |
| @@ -2630,9 +4495,11 @@ | ||
| 2630 | 4495 | args.unshift('%c %c', style, ''); |
| 2631 | 4496 | (_console = console).warn.apply(_console, args); // eslint-disable-line no-console |
| 2632 | 4497 | } |
| 2633 | 4498 | }]); |
| 4499 | + return Console; | |
| 2634 | 4500 | }(); |
| 4501 | +exports["default"] = Console; | |
| 2635 | 4502 | |
| 2636 | 4503 | /***/ }), |
| 2637 | 4504 | |
| 2638 | 4505 | /***/ "../modules/web-cli/assets/js/utils/deprecation.js": |
| @@ -2660,9 +4527,8 @@ | ||
| 2660 | 4527 | * @property {number} major2 The second number |
| 2661 | 4528 | * @property {number} minor The third number |
| 2662 | 4529 | * @property {string} build The fourth number |
| 2663 | 4530 | */ |
| 2664 | - | |
| 2665 | 4531 | var softDeprecated = function softDeprecated(name, version, replacement) { |
| 2666 | 4532 | if (elementorWebCliConfig.isDebug) { |
| 2667 | 4533 | deprecatedMessage('soft', name, version, replacement); |
| 2668 | 4534 | } |
| @@ -2676,13 +4542,13 @@ | ||
| 2676 | 4542 | message += " - Use `".concat(replacement, "` instead"); |
| 2677 | 4543 | } |
| 2678 | 4544 | _console.default.warn(message); |
| 2679 | 4545 | }; |
| 2680 | -var Deprecation = exports["default"] = /*#__PURE__*/function () { | |
| 4546 | +var Deprecation = /*#__PURE__*/function () { | |
| 2681 | 4547 | function Deprecation() { |
| 2682 | 4548 | (0, _classCallCheck2.default)(this, Deprecation); |
| 2683 | 4549 | } |
| 2684 | - return (0, _createClass2.default)(Deprecation, null, [{ | |
| 4550 | + (0, _createClass2.default)(Deprecation, null, [{ | |
| 2685 | 4551 | key: "deprecated", |
| 2686 | 4552 | value: function deprecated(name, version, replacement) { |
| 2687 | 4553 | if (this.isHardDeprecated(version)) { |
| 2688 | 4554 | hardDeprecated(name, version, replacement); |
| @@ -2777,9 +4643,11 @@ | ||
| 2777 | 4643 | var total = this.compareVersion(version, elementorWebCliConfig.version); |
| 2778 | 4644 | return total < 0 || total >= 8; |
| 2779 | 4645 | } |
| 2780 | 4646 | }]); |
| 4647 | + return Deprecation; | |
| 2781 | 4648 | }(); |
| 4649 | +exports["default"] = Deprecation; | |
| 2782 | 4650 | |
| 2783 | 4651 | /***/ }), |
| 2784 | 4652 | |
| 2785 | 4653 | /***/ "../modules/web-cli/assets/js/utils/force-method-implementation.js": |
| @@ -2797,28 +4665,31 @@ | ||
| 2797 | 4665 | })); |
| 2798 | 4666 | exports["default"] = exports.ForceMethodImplementation = void 0; |
| 2799 | 4667 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2800 | 4668 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 4669 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 4670 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2801 | 4671 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2802 | 4672 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 2803 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2804 | 4673 | var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); |
| 2805 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2806 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 4674 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 4675 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2807 | 4676 | // TODO: Copied from `assets/dev/js/modules/imports/force-method-implementation.js`; |
| 2808 | -var ForceMethodImplementation = exports.ForceMethodImplementation = /*#__PURE__*/function (_Error) { | |
| 4677 | +var ForceMethodImplementation = /*#__PURE__*/function (_Error) { | |
| 4678 | + (0, _inherits2.default)(ForceMethodImplementation, _Error); | |
| 4679 | + var _super = _createSuper(ForceMethodImplementation); | |
| 2809 | 4680 | function ForceMethodImplementation() { |
| 2810 | 4681 | var _this; |
| 2811 | 4682 | var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 2812 | 4683 | (0, _classCallCheck2.default)(this, ForceMethodImplementation); |
| 2813 | - _this = _callSuper(this, ForceMethodImplementation, ["".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")]); | |
| 2814 | - Error.captureStackTrace(_this, ForceMethodImplementation); | |
| 4684 | + _this = _super.call(this, "".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")); | |
| 4685 | + Error.captureStackTrace((0, _assertThisInitialized2.default)(_this), ForceMethodImplementation); | |
| 2815 | 4686 | return _this; |
| 2816 | 4687 | } |
| 2817 | - (0, _inherits2.default)(ForceMethodImplementation, _Error); | |
| 2818 | 4688 | return (0, _createClass2.default)(ForceMethodImplementation); |
| 2819 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 2820 | -var _default = exports["default"] = function _default() { | |
| 4689 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 4690 | +exports.ForceMethodImplementation = ForceMethodImplementation; | |
| 4691 | +var _default = function _default() { | |
| 2821 | 4692 | var stack = Error().stack, |
| 2822 | 4693 | caller = stack.split('\n')[2].trim(), |
| 2823 | 4694 | callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1], |
| 2824 | 4695 | info = {}; |
| @@ -2832,2830 +4703,12 @@ | ||
| 2832 | 4703 | info.isStatic = true; |
| 2833 | 4704 | } |
| 2834 | 4705 | throw new ForceMethodImplementation(info); |
| 2835 | 4706 | }; |
| 4707 | +exports["default"] = _default; | |
| 2836 | 4708 | |
| 2837 | 4709 | /***/ }), |
| 2838 | 4710 | |
| 2839 | -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 2840 | -/*!******************************************************************!*\ | |
| 2841 | - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 2842 | - \******************************************************************/ | |
| 2843 | -/***/ ((module) => { | |
| 2844 | - | |
| 2845 | -function _arrayLikeToArray(r, a) { | |
| 2846 | - (null == a || a > r.length) && (a = r.length); | |
| 2847 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 2848 | - return n; | |
| 2849 | -} | |
| 2850 | -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2851 | - | |
| 2852 | -/***/ }), | |
| 2853 | - | |
| 2854 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 2855 | -/*!****************************************************************!*\ | |
| 2856 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 2857 | - \****************************************************************/ | |
| 2858 | -/***/ ((module) => { | |
| 2859 | - | |
| 2860 | -function _arrayWithHoles(r) { | |
| 2861 | - if (Array.isArray(r)) return r; | |
| 2862 | -} | |
| 2863 | -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2864 | - | |
| 2865 | -/***/ }), | |
| 2866 | - | |
| 2867 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": | |
| 2868 | -/*!*******************************************************************!*\ | |
| 2869 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! | |
| 2870 | - \*******************************************************************/ | |
| 2871 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2872 | - | |
| 2873 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 2874 | -function _arrayWithoutHoles(r) { | |
| 2875 | - if (Array.isArray(r)) return arrayLikeToArray(r); | |
| 2876 | -} | |
| 2877 | -module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2878 | - | |
| 2879 | -/***/ }), | |
| 2880 | - | |
| 2881 | -/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 2882 | -/*!***********************************************************************!*\ | |
| 2883 | - !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 2884 | - \***********************************************************************/ | |
| 2885 | -/***/ ((module) => { | |
| 2886 | - | |
| 2887 | -function _assertThisInitialized(e) { | |
| 2888 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 2889 | - return e; | |
| 2890 | -} | |
| 2891 | -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2892 | - | |
| 2893 | -/***/ }), | |
| 2894 | - | |
| 2895 | -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 2896 | -/*!****************************************************************!*\ | |
| 2897 | - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 2898 | - \****************************************************************/ | |
| 2899 | -/***/ ((module) => { | |
| 2900 | - | |
| 2901 | -function _classCallCheck(a, n) { | |
| 2902 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 2903 | -} | |
| 2904 | -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2905 | - | |
| 2906 | -/***/ }), | |
| 2907 | - | |
| 2908 | -/***/ "../node_modules/@babel/runtime/helpers/construct.js": | |
| 2909 | -/*!***********************************************************!*\ | |
| 2910 | - !*** ../node_modules/@babel/runtime/helpers/construct.js ***! | |
| 2911 | - \***********************************************************/ | |
| 2912 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2913 | - | |
| 2914 | -var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); | |
| 2915 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 2916 | -function _construct(t, e, r) { | |
| 2917 | - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); | |
| 2918 | - var o = [null]; | |
| 2919 | - o.push.apply(o, e); | |
| 2920 | - var p = new (t.bind.apply(t, o))(); | |
| 2921 | - return r && setPrototypeOf(p, r.prototype), p; | |
| 2922 | -} | |
| 2923 | -module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2924 | - | |
| 2925 | -/***/ }), | |
| 2926 | - | |
| 2927 | -/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 2928 | -/*!*************************************************************!*\ | |
| 2929 | - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 2930 | - \*************************************************************/ | |
| 2931 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2932 | - | |
| 2933 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2934 | -function _defineProperties(e, r) { | |
| 2935 | - for (var t = 0; t < r.length; t++) { | |
| 2936 | - var o = r[t]; | |
| 2937 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 2938 | - } | |
| 2939 | -} | |
| 2940 | -function _createClass(e, r, t) { | |
| 2941 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 2942 | - writable: !1 | |
| 2943 | - }), e; | |
| 2944 | -} | |
| 2945 | -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2946 | - | |
| 2947 | -/***/ }), | |
| 2948 | - | |
| 2949 | -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 2950 | -/*!****************************************************************!*\ | |
| 2951 | - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 2952 | - \****************************************************************/ | |
| 2953 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2954 | - | |
| 2955 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2956 | -function _defineProperty(e, r, t) { | |
| 2957 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 2958 | - value: t, | |
| 2959 | - enumerable: !0, | |
| 2960 | - configurable: !0, | |
| 2961 | - writable: !0 | |
| 2962 | - }) : e[r] = t, e; | |
| 2963 | -} | |
| 2964 | -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2965 | - | |
| 2966 | -/***/ }), | |
| 2967 | - | |
| 2968 | -/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js": | |
| 2969 | -/*!********************************************************************!*\ | |
| 2970 | - !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! | |
| 2971 | - \********************************************************************/ | |
| 2972 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 2973 | - | |
| 2974 | -"use strict"; | |
| 2975 | -__webpack_require__.r(__webpack_exports__); | |
| 2976 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 2977 | -/* harmony export */ "default": () => (/* binding */ _defineProperty) | |
| 2978 | -/* harmony export */ }); | |
| 2979 | -/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"); | |
| 2980 | - | |
| 2981 | -function _defineProperty(e, r, t) { | |
| 2982 | - return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, { | |
| 2983 | - value: t, | |
| 2984 | - enumerable: !0, | |
| 2985 | - configurable: !0, | |
| 2986 | - writable: !0 | |
| 2987 | - }) : e[r] = t, e; | |
| 2988 | -} | |
| 2989 | - | |
| 2990 | - | |
| 2991 | -/***/ }), | |
| 2992 | - | |
| 2993 | -/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js": | |
| 2994 | -/*!*******************************************************************!*\ | |
| 2995 | - !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! | |
| 2996 | - \*******************************************************************/ | |
| 2997 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 2998 | - | |
| 2999 | -"use strict"; | |
| 3000 | -__webpack_require__.r(__webpack_exports__); | |
| 3001 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3002 | -/* harmony export */ "default": () => (/* binding */ _objectSpread2) | |
| 3003 | -/* harmony export */ }); | |
| 3004 | -/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js"); | |
| 3005 | - | |
| 3006 | -function ownKeys(e, r) { | |
| 3007 | - var t = Object.keys(e); | |
| 3008 | - if (Object.getOwnPropertySymbols) { | |
| 3009 | - var o = Object.getOwnPropertySymbols(e); | |
| 3010 | - r && (o = o.filter(function (r) { | |
| 3011 | - return Object.getOwnPropertyDescriptor(e, r).enumerable; | |
| 3012 | - })), t.push.apply(t, o); | |
| 3013 | - } | |
| 3014 | - return t; | |
| 3015 | -} | |
| 3016 | -function _objectSpread2(e) { | |
| 3017 | - for (var r = 1; r < arguments.length; r++) { | |
| 3018 | - var t = null != arguments[r] ? arguments[r] : {}; | |
| 3019 | - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { | |
| 3020 | - (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]); | |
| 3021 | - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { | |
| 3022 | - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | |
| 3023 | - }); | |
| 3024 | - } | |
| 3025 | - return e; | |
| 3026 | -} | |
| 3027 | - | |
| 3028 | - | |
| 3029 | -/***/ }), | |
| 3030 | - | |
| 3031 | -/***/ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js": | |
| 3032 | -/*!*****************************************************************!*\ | |
| 3033 | - !*** ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***! | |
| 3034 | - \*****************************************************************/ | |
| 3035 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 3036 | - | |
| 3037 | -"use strict"; | |
| 3038 | -__webpack_require__.r(__webpack_exports__); | |
| 3039 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3040 | -/* harmony export */ "default": () => (/* binding */ toPrimitive) | |
| 3041 | -/* harmony export */ }); | |
| 3042 | -/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js"); | |
| 3043 | - | |
| 3044 | -function toPrimitive(t, r) { | |
| 3045 | - if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t; | |
| 3046 | - var e = t[Symbol.toPrimitive]; | |
| 3047 | - if (void 0 !== e) { | |
| 3048 | - var i = e.call(t, r || "default"); | |
| 3049 | - if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i; | |
| 3050 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 3051 | - } | |
| 3052 | - return ("string" === r ? String : Number)(t); | |
| 3053 | -} | |
| 3054 | - | |
| 3055 | - | |
| 3056 | -/***/ }), | |
| 3057 | - | |
| 3058 | -/***/ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js": | |
| 3059 | -/*!*******************************************************************!*\ | |
| 3060 | - !*** ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***! | |
| 3061 | - \*******************************************************************/ | |
| 3062 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 3063 | - | |
| 3064 | -"use strict"; | |
| 3065 | -__webpack_require__.r(__webpack_exports__); | |
| 3066 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3067 | -/* harmony export */ "default": () => (/* binding */ toPropertyKey) | |
| 3068 | -/* harmony export */ }); | |
| 3069 | -/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js"); | |
| 3070 | -/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"); | |
| 3071 | - | |
| 3072 | - | |
| 3073 | -function toPropertyKey(t) { | |
| 3074 | - var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string"); | |
| 3075 | - return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + ""; | |
| 3076 | -} | |
| 3077 | - | |
| 3078 | - | |
| 3079 | -/***/ }), | |
| 3080 | - | |
| 3081 | -/***/ "../node_modules/@babel/runtime/helpers/esm/typeof.js": | |
| 3082 | -/*!************************************************************!*\ | |
| 3083 | - !*** ../node_modules/@babel/runtime/helpers/esm/typeof.js ***! | |
| 3084 | - \************************************************************/ | |
| 3085 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 3086 | - | |
| 3087 | -"use strict"; | |
| 3088 | -__webpack_require__.r(__webpack_exports__); | |
| 3089 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3090 | -/* harmony export */ "default": () => (/* binding */ _typeof) | |
| 3091 | -/* harmony export */ }); | |
| 3092 | -function _typeof(o) { | |
| 3093 | - "@babel/helpers - typeof"; | |
| 3094 | - | |
| 3095 | - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 3096 | - return typeof o; | |
| 3097 | - } : function (o) { | |
| 3098 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 3099 | - }, _typeof(o); | |
| 3100 | -} | |
| 3101 | - | |
| 3102 | - | |
| 3103 | -/***/ }), | |
| 3104 | - | |
| 3105 | -/***/ "../node_modules/@babel/runtime/helpers/get.js": | |
| 3106 | -/*!*****************************************************!*\ | |
| 3107 | - !*** ../node_modules/@babel/runtime/helpers/get.js ***! | |
| 3108 | - \*****************************************************/ | |
| 3109 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3110 | - | |
| 3111 | -var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); | |
| 3112 | -function _get() { | |
| 3113 | - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 3114 | - var p = superPropBase(e, t); | |
| 3115 | - if (p) { | |
| 3116 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 3117 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 3118 | - } | |
| 3119 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 3120 | -} | |
| 3121 | -module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3122 | - | |
| 3123 | -/***/ }), | |
| 3124 | - | |
| 3125 | -/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 3126 | -/*!****************************************************************!*\ | |
| 3127 | - !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 3128 | - \****************************************************************/ | |
| 3129 | -/***/ ((module) => { | |
| 3130 | - | |
| 3131 | -function _getPrototypeOf(t) { | |
| 3132 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 3133 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 3134 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 3135 | -} | |
| 3136 | -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3137 | - | |
| 3138 | -/***/ }), | |
| 3139 | - | |
| 3140 | -/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 3141 | -/*!**********************************************************!*\ | |
| 3142 | - !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 3143 | - \**********************************************************/ | |
| 3144 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3145 | - | |
| 3146 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 3147 | -function _inherits(t, e) { | |
| 3148 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 3149 | - t.prototype = Object.create(e && e.prototype, { | |
| 3150 | - constructor: { | |
| 3151 | - value: t, | |
| 3152 | - writable: !0, | |
| 3153 | - configurable: !0 | |
| 3154 | - } | |
| 3155 | - }), Object.defineProperty(t, "prototype", { | |
| 3156 | - writable: !1 | |
| 3157 | - }), e && setPrototypeOf(t, e); | |
| 3158 | -} | |
| 3159 | -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3160 | - | |
| 3161 | -/***/ }), | |
| 3162 | - | |
| 3163 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 3164 | -/*!***********************************************************************!*\ | |
| 3165 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 3166 | - \***********************************************************************/ | |
| 3167 | -/***/ ((module) => { | |
| 3168 | - | |
| 3169 | -function _interopRequireDefault(e) { | |
| 3170 | - return e && e.__esModule ? e : { | |
| 3171 | - "default": e | |
| 3172 | - }; | |
| 3173 | -} | |
| 3174 | -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3175 | - | |
| 3176 | -/***/ }), | |
| 3177 | - | |
| 3178 | -/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js": | |
| 3179 | -/*!******************************************************************!*\ | |
| 3180 | - !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***! | |
| 3181 | - \******************************************************************/ | |
| 3182 | -/***/ ((module) => { | |
| 3183 | - | |
| 3184 | -function _isNativeFunction(t) { | |
| 3185 | - try { | |
| 3186 | - return -1 !== Function.toString.call(t).indexOf("[native code]"); | |
| 3187 | - } catch (n) { | |
| 3188 | - return "function" == typeof t; | |
| 3189 | - } | |
| 3190 | -} | |
| 3191 | -module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3192 | - | |
| 3193 | -/***/ }), | |
| 3194 | - | |
| 3195 | -/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js": | |
| 3196 | -/*!**************************************************************************!*\ | |
| 3197 | - !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***! | |
| 3198 | - \**************************************************************************/ | |
| 3199 | -/***/ ((module) => { | |
| 3200 | - | |
| 3201 | -function _isNativeReflectConstruct() { | |
| 3202 | - try { | |
| 3203 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
| 3204 | - } catch (t) {} | |
| 3205 | - return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 3206 | - return !!t; | |
| 3207 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 3208 | -} | |
| 3209 | -module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3210 | - | |
| 3211 | -/***/ }), | |
| 3212 | - | |
| 3213 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": | |
| 3214 | -/*!*****************************************************************!*\ | |
| 3215 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! | |
| 3216 | - \*****************************************************************/ | |
| 3217 | -/***/ ((module) => { | |
| 3218 | - | |
| 3219 | -function _iterableToArray(r) { | |
| 3220 | - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 3221 | -} | |
| 3222 | -module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3223 | - | |
| 3224 | -/***/ }), | |
| 3225 | - | |
| 3226 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 3227 | -/*!**********************************************************************!*\ | |
| 3228 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 3229 | - \**********************************************************************/ | |
| 3230 | -/***/ ((module) => { | |
| 3231 | - | |
| 3232 | -function _iterableToArrayLimit(r, l) { | |
| 3233 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 3234 | - if (null != t) { | |
| 3235 | - var e, | |
| 3236 | - n, | |
| 3237 | - i, | |
| 3238 | - u, | |
| 3239 | - a = [], | |
| 3240 | - f = !0, | |
| 3241 | - o = !1; | |
| 3242 | - try { | |
| 3243 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 3244 | - if (Object(t) !== t) return; | |
| 3245 | - f = !1; | |
| 3246 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 3247 | - } catch (r) { | |
| 3248 | - o = !0, n = r; | |
| 3249 | - } finally { | |
| 3250 | - try { | |
| 3251 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 3252 | - } finally { | |
| 3253 | - if (o) throw n; | |
| 3254 | - } | |
| 3255 | - } | |
| 3256 | - return a; | |
| 3257 | - } | |
| 3258 | -} | |
| 3259 | -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3260 | - | |
| 3261 | -/***/ }), | |
| 3262 | - | |
| 3263 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 3264 | -/*!*****************************************************************!*\ | |
| 3265 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 3266 | - \*****************************************************************/ | |
| 3267 | -/***/ ((module) => { | |
| 3268 | - | |
| 3269 | -function _nonIterableRest() { | |
| 3270 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 3271 | -} | |
| 3272 | -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3273 | - | |
| 3274 | -/***/ }), | |
| 3275 | - | |
| 3276 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": | |
| 3277 | -/*!*******************************************************************!*\ | |
| 3278 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! | |
| 3279 | - \*******************************************************************/ | |
| 3280 | -/***/ ((module) => { | |
| 3281 | - | |
| 3282 | -function _nonIterableSpread() { | |
| 3283 | - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 3284 | -} | |
| 3285 | -module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3286 | - | |
| 3287 | -/***/ }), | |
| 3288 | - | |
| 3289 | -/***/ "../node_modules/@babel/runtime/helpers/objectWithoutProperties.js": | |
| 3290 | -/*!*************************************************************************!*\ | |
| 3291 | - !*** ../node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***! | |
| 3292 | - \*************************************************************************/ | |
| 3293 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3294 | - | |
| 3295 | -var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"); | |
| 3296 | -function _objectWithoutProperties(e, t) { | |
| 3297 | - if (null == e) return {}; | |
| 3298 | - var o, | |
| 3299 | - r, | |
| 3300 | - i = objectWithoutPropertiesLoose(e, t); | |
| 3301 | - if (Object.getOwnPropertySymbols) { | |
| 3302 | - var n = Object.getOwnPropertySymbols(e); | |
| 3303 | - for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); | |
| 3304 | - } | |
| 3305 | - return i; | |
| 3306 | -} | |
| 3307 | -module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3308 | - | |
| 3309 | -/***/ }), | |
| 3310 | - | |
| 3311 | -/***/ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js": | |
| 3312 | -/*!******************************************************************************!*\ | |
| 3313 | - !*** ../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***! | |
| 3314 | - \******************************************************************************/ | |
| 3315 | -/***/ ((module) => { | |
| 3316 | - | |
| 3317 | -function _objectWithoutPropertiesLoose(r, e) { | |
| 3318 | - if (null == r) return {}; | |
| 3319 | - var t = {}; | |
| 3320 | - for (var n in r) if ({}.hasOwnProperty.call(r, n)) { | |
| 3321 | - if (-1 !== e.indexOf(n)) continue; | |
| 3322 | - t[n] = r[n]; | |
| 3323 | - } | |
| 3324 | - return t; | |
| 3325 | -} | |
| 3326 | -module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3327 | - | |
| 3328 | -/***/ }), | |
| 3329 | - | |
| 3330 | -/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 3331 | -/*!***************************************************************************!*\ | |
| 3332 | - !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 3333 | - \***************************************************************************/ | |
| 3334 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3335 | - | |
| 3336 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3337 | -var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 3338 | -function _possibleConstructorReturn(t, e) { | |
| 3339 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 3340 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 3341 | - return assertThisInitialized(t); | |
| 3342 | -} | |
| 3343 | -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3344 | - | |
| 3345 | -/***/ }), | |
| 3346 | - | |
| 3347 | -/***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js": | |
| 3348 | -/*!***************************************************************!*\ | |
| 3349 | - !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***! | |
| 3350 | - \***************************************************************/ | |
| 3351 | -/***/ ((module) => { | |
| 3352 | - | |
| 3353 | -function _readOnlyError(r) { | |
| 3354 | - throw new TypeError('"' + r + '" is read-only'); | |
| 3355 | -} | |
| 3356 | -module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3357 | - | |
| 3358 | -/***/ }), | |
| 3359 | - | |
| 3360 | -/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 3361 | -/*!****************************************************************!*\ | |
| 3362 | - !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 3363 | - \****************************************************************/ | |
| 3364 | -/***/ ((module) => { | |
| 3365 | - | |
| 3366 | -function _setPrototypeOf(t, e) { | |
| 3367 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 3368 | - return t.__proto__ = e, t; | |
| 3369 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 3370 | -} | |
| 3371 | -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3372 | - | |
| 3373 | -/***/ }), | |
| 3374 | - | |
| 3375 | -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 3376 | -/*!***************************************************************!*\ | |
| 3377 | - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 3378 | - \***************************************************************/ | |
| 3379 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3380 | - | |
| 3381 | -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 3382 | -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 3383 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 3384 | -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 3385 | -function _slicedToArray(r, e) { | |
| 3386 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 3387 | -} | |
| 3388 | -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3389 | - | |
| 3390 | -/***/ }), | |
| 3391 | - | |
| 3392 | -/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": | |
| 3393 | -/*!***************************************************************!*\ | |
| 3394 | - !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! | |
| 3395 | - \***************************************************************/ | |
| 3396 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3397 | - | |
| 3398 | -var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 3399 | -function _superPropBase(t, o) { | |
| 3400 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 3401 | - return t; | |
| 3402 | -} | |
| 3403 | -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3404 | - | |
| 3405 | -/***/ }), | |
| 3406 | - | |
| 3407 | -/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js": | |
| 3408 | -/*!*******************************************************************!*\ | |
| 3409 | - !*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***! | |
| 3410 | - \*******************************************************************/ | |
| 3411 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3412 | - | |
| 3413 | -var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); | |
| 3414 | -var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); | |
| 3415 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 3416 | -var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); | |
| 3417 | -function _toConsumableArray(r) { | |
| 3418 | - return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); | |
| 3419 | -} | |
| 3420 | -module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3421 | - | |
| 3422 | -/***/ }), | |
| 3423 | - | |
| 3424 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 3425 | -/*!*************************************************************!*\ | |
| 3426 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 3427 | - \*************************************************************/ | |
| 3428 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3429 | - | |
| 3430 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3431 | -function toPrimitive(t, r) { | |
| 3432 | - if ("object" != _typeof(t) || !t) return t; | |
| 3433 | - var e = t[Symbol.toPrimitive]; | |
| 3434 | - if (void 0 !== e) { | |
| 3435 | - var i = e.call(t, r || "default"); | |
| 3436 | - if ("object" != _typeof(i)) return i; | |
| 3437 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 3438 | - } | |
| 3439 | - return ("string" === r ? String : Number)(t); | |
| 3440 | -} | |
| 3441 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3442 | - | |
| 3443 | -/***/ }), | |
| 3444 | - | |
| 3445 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 3446 | -/*!***************************************************************!*\ | |
| 3447 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 3448 | - \***************************************************************/ | |
| 3449 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3450 | - | |
| 3451 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3452 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 3453 | -function toPropertyKey(t) { | |
| 3454 | - var i = toPrimitive(t, "string"); | |
| 3455 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 3456 | -} | |
| 3457 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3458 | - | |
| 3459 | -/***/ }), | |
| 3460 | - | |
| 3461 | -/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 3462 | -/*!********************************************************!*\ | |
| 3463 | - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 3464 | - \********************************************************/ | |
| 3465 | -/***/ ((module) => { | |
| 3466 | - | |
| 3467 | -function _typeof(o) { | |
| 3468 | - "@babel/helpers - typeof"; | |
| 3469 | - | |
| 3470 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 3471 | - return typeof o; | |
| 3472 | - } : function (o) { | |
| 3473 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 3474 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 3475 | -} | |
| 3476 | -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3477 | - | |
| 3478 | -/***/ }), | |
| 3479 | - | |
| 3480 | -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 3481 | -/*!****************************************************************************!*\ | |
| 3482 | - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 3483 | - \****************************************************************************/ | |
| 3484 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3485 | - | |
| 3486 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 3487 | -function _unsupportedIterableToArray(r, a) { | |
| 3488 | - if (r) { | |
| 3489 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 3490 | - var t = {}.toString.call(r).slice(8, -1); | |
| 3491 | - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; | |
| 3492 | - } | |
| 3493 | -} | |
| 3494 | -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3495 | - | |
| 3496 | -/***/ }), | |
| 3497 | - | |
| 3498 | -/***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js": | |
| 3499 | -/*!*****************************************************************!*\ | |
| 3500 | - !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***! | |
| 3501 | - \*****************************************************************/ | |
| 3502 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3503 | - | |
| 3504 | -var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 3505 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 3506 | -var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js"); | |
| 3507 | -var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js"); | |
| 3508 | -function _wrapNativeSuper(t) { | |
| 3509 | - var r = "function" == typeof Map ? new Map() : void 0; | |
| 3510 | - return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) { | |
| 3511 | - if (null === t || !isNativeFunction(t)) return t; | |
| 3512 | - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); | |
| 3513 | - if (void 0 !== r) { | |
| 3514 | - if (r.has(t)) return r.get(t); | |
| 3515 | - r.set(t, Wrapper); | |
| 3516 | - } | |
| 3517 | - function Wrapper() { | |
| 3518 | - return construct(t, arguments, getPrototypeOf(this).constructor); | |
| 3519 | - } | |
| 3520 | - return Wrapper.prototype = Object.create(t.prototype, { | |
| 3521 | - constructor: { | |
| 3522 | - value: Wrapper, | |
| 3523 | - enumerable: !1, | |
| 3524 | - writable: !0, | |
| 3525 | - configurable: !0 | |
| 3526 | - } | |
| 3527 | - }), setPrototypeOf(Wrapper, t); | |
| 3528 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t); | |
| 3529 | -} | |
| 3530 | -module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3531 | - | |
| 3532 | -/***/ }), | |
| 3533 | - | |
| 3534 | -/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js": | |
| 3535 | -/*!******************************************************************!*\ | |
| 3536 | - !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***! | |
| 3537 | - \******************************************************************/ | |
| 3538 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 3539 | - | |
| 3540 | -"use strict"; | |
| 3541 | -__webpack_require__.r(__webpack_exports__); | |
| 3542 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3543 | -/* harmony export */ EnhancerArray: () => (/* binding */ EnhancerArray), | |
| 3544 | -/* harmony export */ MiddlewareArray: () => (/* binding */ MiddlewareArray), | |
| 3545 | -/* harmony export */ SHOULD_AUTOBATCH: () => (/* binding */ SHOULD_AUTOBATCH), | |
| 3546 | -/* harmony export */ TaskAbortError: () => (/* binding */ TaskAbortError), | |
| 3547 | -/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.__DO_NOT_USE__ActionTypes), | |
| 3548 | -/* harmony export */ addListener: () => (/* binding */ addListener), | |
| 3549 | -/* harmony export */ applyMiddleware: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.applyMiddleware), | |
| 3550 | -/* harmony export */ autoBatchEnhancer: () => (/* binding */ autoBatchEnhancer), | |
| 3551 | -/* harmony export */ bindActionCreators: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.bindActionCreators), | |
| 3552 | -/* harmony export */ clearAllListeners: () => (/* binding */ clearAllListeners), | |
| 3553 | -/* harmony export */ combineReducers: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.combineReducers), | |
| 3554 | -/* harmony export */ compose: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.compose), | |
| 3555 | -/* harmony export */ configureStore: () => (/* binding */ configureStore), | |
| 3556 | -/* harmony export */ createAction: () => (/* binding */ createAction), | |
| 3557 | -/* harmony export */ createActionCreatorInvariantMiddleware: () => (/* binding */ createActionCreatorInvariantMiddleware), | |
| 3558 | -/* harmony export */ createAsyncThunk: () => (/* binding */ createAsyncThunk), | |
| 3559 | -/* harmony export */ createDraftSafeSelector: () => (/* binding */ createDraftSafeSelector), | |
| 3560 | -/* harmony export */ createEntityAdapter: () => (/* binding */ createEntityAdapter), | |
| 3561 | -/* harmony export */ createImmutableStateInvariantMiddleware: () => (/* binding */ createImmutableStateInvariantMiddleware), | |
| 3562 | -/* harmony export */ createListenerMiddleware: () => (/* binding */ createListenerMiddleware), | |
| 3563 | -/* harmony export */ createNextState: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__["default"]), | |
| 3564 | -/* harmony export */ createReducer: () => (/* binding */ createReducer), | |
| 3565 | -/* harmony export */ createSelector: () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector), | |
| 3566 | -/* harmony export */ createSerializableStateInvariantMiddleware: () => (/* binding */ createSerializableStateInvariantMiddleware), | |
| 3567 | -/* harmony export */ createSlice: () => (/* binding */ createSlice), | |
| 3568 | -/* harmony export */ createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.createStore), | |
| 3569 | -/* harmony export */ current: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.current), | |
| 3570 | -/* harmony export */ findNonSerializableValue: () => (/* binding */ findNonSerializableValue), | |
| 3571 | -/* harmony export */ freeze: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.freeze), | |
| 3572 | -/* harmony export */ getDefaultMiddleware: () => (/* binding */ getDefaultMiddleware), | |
| 3573 | -/* harmony export */ getType: () => (/* binding */ getType), | |
| 3574 | -/* harmony export */ isAction: () => (/* binding */ isAction), | |
| 3575 | -/* harmony export */ isActionCreator: () => (/* binding */ isActionCreator), | |
| 3576 | -/* harmony export */ isAllOf: () => (/* binding */ isAllOf), | |
| 3577 | -/* harmony export */ isAnyOf: () => (/* binding */ isAnyOf), | |
| 3578 | -/* harmony export */ isAsyncThunkAction: () => (/* binding */ isAsyncThunkAction), | |
| 3579 | -/* harmony export */ isDraft: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.isDraft), | |
| 3580 | -/* harmony export */ isFluxStandardAction: () => (/* binding */ isFSA), | |
| 3581 | -/* harmony export */ isFulfilled: () => (/* binding */ isFulfilled), | |
| 3582 | -/* harmony export */ isImmutableDefault: () => (/* binding */ isImmutableDefault), | |
| 3583 | -/* harmony export */ isPending: () => (/* binding */ isPending), | |
| 3584 | -/* harmony export */ isPlain: () => (/* binding */ isPlain), | |
| 3585 | -/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject), | |
| 3586 | -/* harmony export */ isRejected: () => (/* binding */ isRejected), | |
| 3587 | -/* harmony export */ isRejectedWithValue: () => (/* binding */ isRejectedWithValue), | |
| 3588 | -/* harmony export */ legacy_createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.legacy_createStore), | |
| 3589 | -/* harmony export */ miniSerializeError: () => (/* binding */ miniSerializeError), | |
| 3590 | -/* harmony export */ nanoid: () => (/* binding */ nanoid), | |
| 3591 | -/* harmony export */ original: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.original), | |
| 3592 | -/* harmony export */ prepareAutoBatched: () => (/* binding */ prepareAutoBatched), | |
| 3593 | -/* harmony export */ removeListener: () => (/* binding */ removeListener), | |
| 3594 | -/* harmony export */ unwrapResult: () => (/* binding */ unwrapResult) | |
| 3595 | -/* harmony export */ }); | |
| 3596 | -/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs"); | |
| 3597 | -/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js"); | |
| 3598 | -/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js"); | |
| 3599 | -/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js"); | |
| 3600 | -var __extends = (undefined && undefined.__extends) || (function () { | |
| 3601 | - var extendStatics = function (d, b) { | |
| 3602 | - extendStatics = Object.setPrototypeOf || | |
| 3603 | - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | |
| 3604 | - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | |
| 3605 | - return extendStatics(d, b); | |
| 3606 | - }; | |
| 3607 | - return function (d, b) { | |
| 3608 | - if (typeof b !== "function" && b !== null) | |
| 3609 | - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | |
| 3610 | - extendStatics(d, b); | |
| 3611 | - function __() { this.constructor = d; } | |
| 3612 | - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | |
| 3613 | - }; | |
| 3614 | -})(); | |
| 3615 | -var __generator = (undefined && undefined.__generator) || function (thisArg, body) { | |
| 3616 | - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | |
| 3617 | - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | |
| 3618 | - function verb(n) { return function (v) { return step([n, v]); }; } | |
| 3619 | - function step(op) { | |
| 3620 | - if (f) throw new TypeError("Generator is already executing."); | |
| 3621 | - while (_) try { | |
| 3622 | - 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; | |
| 3623 | - if (y = 0, t) op = [op[0] & 2, t.value]; | |
| 3624 | - switch (op[0]) { | |
| 3625 | - case 0: case 1: t = op; break; | |
| 3626 | - case 4: _.label++; return { value: op[1], done: false }; | |
| 3627 | - case 5: _.label++; y = op[1]; op = [0]; continue; | |
| 3628 | - case 7: op = _.ops.pop(); _.trys.pop(); continue; | |
| 3629 | - default: | |
| 3630 | - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | |
| 3631 | - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | |
| 3632 | - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | |
| 3633 | - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | |
| 3634 | - if (t[2]) _.ops.pop(); | |
| 3635 | - _.trys.pop(); continue; | |
| 3636 | - } | |
| 3637 | - op = body.call(thisArg, _); | |
| 3638 | - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
| 3639 | - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | |
| 3640 | - } | |
| 3641 | -}; | |
| 3642 | -var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) { | |
| 3643 | - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | |
| 3644 | - to[j] = from[i]; | |
| 3645 | - return to; | |
| 3646 | -}; | |
| 3647 | -var __defProp = Object.defineProperty; | |
| 3648 | -var __defProps = Object.defineProperties; | |
| 3649 | -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | |
| 3650 | -var __getOwnPropSymbols = Object.getOwnPropertySymbols; | |
| 3651 | -var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 3652 | -var __propIsEnum = Object.prototype.propertyIsEnumerable; | |
| 3653 | -var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; }; | |
| 3654 | -var __spreadValues = function (a, b) { | |
| 3655 | - for (var prop in b || (b = {})) | |
| 3656 | - if (__hasOwnProp.call(b, prop)) | |
| 3657 | - __defNormalProp(a, prop, b[prop]); | |
| 3658 | - if (__getOwnPropSymbols) | |
| 3659 | - for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) { | |
| 3660 | - var prop = _c[_i]; | |
| 3661 | - if (__propIsEnum.call(b, prop)) | |
| 3662 | - __defNormalProp(a, prop, b[prop]); | |
| 3663 | - } | |
| 3664 | - return a; | |
| 3665 | -}; | |
| 3666 | -var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); }; | |
| 3667 | -var __async = function (__this, __arguments, generator) { | |
| 3668 | - return new Promise(function (resolve, reject) { | |
| 3669 | - var fulfilled = function (value) { | |
| 3670 | - try { | |
| 3671 | - step(generator.next(value)); | |
| 3672 | - } | |
| 3673 | - catch (e) { | |
| 3674 | - reject(e); | |
| 3675 | - } | |
| 3676 | - }; | |
| 3677 | - var rejected = function (value) { | |
| 3678 | - try { | |
| 3679 | - step(generator.throw(value)); | |
| 3680 | - } | |
| 3681 | - catch (e) { | |
| 3682 | - reject(e); | |
| 3683 | - } | |
| 3684 | - }; | |
| 3685 | - var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); }; | |
| 3686 | - step((generator = generator.apply(__this, __arguments)).next()); | |
| 3687 | - }); | |
| 3688 | -}; | |
| 3689 | -// src/index.ts | |
| 3690 | - | |
| 3691 | - | |
| 3692 | - | |
| 3693 | - | |
| 3694 | -// src/createDraftSafeSelector.ts | |
| 3695 | - | |
| 3696 | - | |
| 3697 | -var createDraftSafeSelector = function () { | |
| 3698 | - var args = []; | |
| 3699 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3700 | - args[_i] = arguments[_i]; | |
| 3701 | - } | |
| 3702 | - var selector = reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector.apply(void 0, args); | |
| 3703 | - var wrappedSelector = function (value) { | |
| 3704 | - var rest = []; | |
| 3705 | - for (var _i = 1; _i < arguments.length; _i++) { | |
| 3706 | - rest[_i - 1] = arguments[_i]; | |
| 3707 | - } | |
| 3708 | - return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_0__.current)(value) : value], rest)); | |
| 3709 | - }; | |
| 3710 | - return wrappedSelector; | |
| 3711 | -}; | |
| 3712 | -// src/configureStore.ts | |
| 3713 | - | |
| 3714 | -// src/devtoolsExtension.ts | |
| 3715 | - | |
| 3716 | -var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () { | |
| 3717 | - if (arguments.length === 0) | |
| 3718 | - return void 0; | |
| 3719 | - if (typeof arguments[0] === "object") | |
| 3720 | - return redux__WEBPACK_IMPORTED_MODULE_1__.compose; | |
| 3721 | - return redux__WEBPACK_IMPORTED_MODULE_1__.compose.apply(null, arguments); | |
| 3722 | -}; | |
| 3723 | -var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () { | |
| 3724 | - return function (noop2) { | |
| 3725 | - return noop2; | |
| 3726 | - }; | |
| 3727 | -}; | |
| 3728 | -// src/isPlainObject.ts | |
| 3729 | -function isPlainObject(value) { | |
| 3730 | - if (typeof value !== "object" || value === null) | |
| 3731 | - return false; | |
| 3732 | - var proto = Object.getPrototypeOf(value); | |
| 3733 | - if (proto === null) | |
| 3734 | - return true; | |
| 3735 | - var baseProto = proto; | |
| 3736 | - while (Object.getPrototypeOf(baseProto) !== null) { | |
| 3737 | - baseProto = Object.getPrototypeOf(baseProto); | |
| 3738 | - } | |
| 3739 | - return proto === baseProto; | |
| 3740 | -} | |
| 3741 | -// src/getDefaultMiddleware.ts | |
| 3742 | - | |
| 3743 | -// src/tsHelpers.ts | |
| 3744 | -var hasMatchFunction = function (v) { | |
| 3745 | - return v && typeof v.match === "function"; | |
| 3746 | -}; | |
| 3747 | -// src/createAction.ts | |
| 3748 | -function createAction(type, prepareAction) { | |
| 3749 | - function actionCreator() { | |
| 3750 | - var args = []; | |
| 3751 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3752 | - args[_i] = arguments[_i]; | |
| 3753 | - } | |
| 3754 | - if (prepareAction) { | |
| 3755 | - var prepared = prepareAction.apply(void 0, args); | |
| 3756 | - if (!prepared) { | |
| 3757 | - throw new Error("prepareAction did not return an object"); | |
| 3758 | - } | |
| 3759 | - return __spreadValues(__spreadValues({ | |
| 3760 | - type: type, | |
| 3761 | - payload: prepared.payload | |
| 3762 | - }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error }); | |
| 3763 | - } | |
| 3764 | - return { type: type, payload: args[0] }; | |
| 3765 | - } | |
| 3766 | - actionCreator.toString = function () { return "" + type; }; | |
| 3767 | - actionCreator.type = type; | |
| 3768 | - actionCreator.match = function (action) { return action.type === type; }; | |
| 3769 | - return actionCreator; | |
| 3770 | -} | |
| 3771 | -function isAction(action) { | |
| 3772 | - return isPlainObject(action) && "type" in action; | |
| 3773 | -} | |
| 3774 | -function isActionCreator(action) { | |
| 3775 | - return typeof action === "function" && "type" in action && hasMatchFunction(action); | |
| 3776 | -} | |
| 3777 | -function isFSA(action) { | |
| 3778 | - return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey); | |
| 3779 | -} | |
| 3780 | -function isValidKey(key) { | |
| 3781 | - return ["type", "payload", "error", "meta"].indexOf(key) > -1; | |
| 3782 | -} | |
| 3783 | -function getType(actionCreator) { | |
| 3784 | - return "" + actionCreator; | |
| 3785 | -} | |
| 3786 | -// src/actionCreatorInvariantMiddleware.ts | |
| 3787 | -function getMessage(type) { | |
| 3788 | - var splitType = type ? ("" + type).split("/") : []; | |
| 3789 | - var actionName = splitType[splitType.length - 1] || "actionCreator"; | |
| 3790 | - 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."; | |
| 3791 | -} | |
| 3792 | -function createActionCreatorInvariantMiddleware(options) { | |
| 3793 | - if (options === void 0) { options = {}; } | |
| 3794 | - if (false) // removed by dead control flow | |
| 3795 | -{} | |
| 3796 | - var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c; | |
| 3797 | - return function () { return function (next) { return function (action) { | |
| 3798 | - if (isActionCreator2(action)) { | |
| 3799 | - console.warn(getMessage(action.type)); | |
| 3800 | - } | |
| 3801 | - return next(action); | |
| 3802 | - }; }; }; | |
| 3803 | -} | |
| 3804 | -// src/utils.ts | |
| 3805 | - | |
| 3806 | -function getTimeMeasureUtils(maxDelay, fnName) { | |
| 3807 | - var elapsed = 0; | |
| 3808 | - return { | |
| 3809 | - measureTime: function (fn) { | |
| 3810 | - var started = Date.now(); | |
| 3811 | - try { | |
| 3812 | - return fn(); | |
| 3813 | - } | |
| 3814 | - finally { | |
| 3815 | - var finished = Date.now(); | |
| 3816 | - elapsed += finished - started; | |
| 3817 | - } | |
| 3818 | - }, | |
| 3819 | - warnIfExceeded: function () { | |
| 3820 | - if (elapsed > maxDelay) { | |
| 3821 | - 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."); | |
| 3822 | - } | |
| 3823 | - } | |
| 3824 | - }; | |
| 3825 | -} | |
| 3826 | -var MiddlewareArray = /** @class */ (function (_super) { | |
| 3827 | - __extends(MiddlewareArray, _super); | |
| 3828 | - function MiddlewareArray() { | |
| 3829 | - var args = []; | |
| 3830 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3831 | - args[_i] = arguments[_i]; | |
| 3832 | - } | |
| 3833 | - var _this = _super.apply(this, args) || this; | |
| 3834 | - Object.setPrototypeOf(_this, MiddlewareArray.prototype); | |
| 3835 | - return _this; | |
| 3836 | - } | |
| 3837 | - Object.defineProperty(MiddlewareArray, Symbol.species, { | |
| 3838 | - get: function () { | |
| 3839 | - return MiddlewareArray; | |
| 3840 | - }, | |
| 3841 | - enumerable: false, | |
| 3842 | - configurable: true | |
| 3843 | - }); | |
| 3844 | - MiddlewareArray.prototype.concat = function () { | |
| 3845 | - var arr = []; | |
| 3846 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3847 | - arr[_i] = arguments[_i]; | |
| 3848 | - } | |
| 3849 | - return _super.prototype.concat.apply(this, arr); | |
| 3850 | - }; | |
| 3851 | - MiddlewareArray.prototype.prepend = function () { | |
| 3852 | - var arr = []; | |
| 3853 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3854 | - arr[_i] = arguments[_i]; | |
| 3855 | - } | |
| 3856 | - if (arr.length === 1 && Array.isArray(arr[0])) { | |
| 3857 | - return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))(); | |
| 3858 | - } | |
| 3859 | - return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))(); | |
| 3860 | - }; | |
| 3861 | - return MiddlewareArray; | |
| 3862 | -}(Array)); | |
| 3863 | -var EnhancerArray = /** @class */ (function (_super) { | |
| 3864 | - __extends(EnhancerArray, _super); | |
| 3865 | - function EnhancerArray() { | |
| 3866 | - var args = []; | |
| 3867 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3868 | - args[_i] = arguments[_i]; | |
| 3869 | - } | |
| 3870 | - var _this = _super.apply(this, args) || this; | |
| 3871 | - Object.setPrototypeOf(_this, EnhancerArray.prototype); | |
| 3872 | - return _this; | |
| 3873 | - } | |
| 3874 | - Object.defineProperty(EnhancerArray, Symbol.species, { | |
| 3875 | - get: function () { | |
| 3876 | - return EnhancerArray; | |
| 3877 | - }, | |
| 3878 | - enumerable: false, | |
| 3879 | - configurable: true | |
| 3880 | - }); | |
| 3881 | - EnhancerArray.prototype.concat = function () { | |
| 3882 | - var arr = []; | |
| 3883 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3884 | - arr[_i] = arguments[_i]; | |
| 3885 | - } | |
| 3886 | - return _super.prototype.concat.apply(this, arr); | |
| 3887 | - }; | |
| 3888 | - EnhancerArray.prototype.prepend = function () { | |
| 3889 | - var arr = []; | |
| 3890 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3891 | - arr[_i] = arguments[_i]; | |
| 3892 | - } | |
| 3893 | - if (arr.length === 1 && Array.isArray(arr[0])) { | |
| 3894 | - return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))(); | |
| 3895 | - } | |
| 3896 | - return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))(); | |
| 3897 | - }; | |
| 3898 | - return EnhancerArray; | |
| 3899 | -}(Array)); | |
| 3900 | -function freezeDraftable(val) { | |
| 3901 | - return (0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(val, function () { | |
| 3902 | - }) : val; | |
| 3903 | -} | |
| 3904 | -// src/immutableStateInvariantMiddleware.ts | |
| 3905 | -var isProduction = "development" === "production"; | |
| 3906 | -var prefix = "Invariant failed"; | |
| 3907 | -function invariant(condition, message) { | |
| 3908 | - if (condition) { | |
| 3909 | - return; | |
| 3910 | - } | |
| 3911 | - if (isProduction) { | |
| 3912 | - throw new Error(prefix); | |
| 3913 | - } | |
| 3914 | - throw new Error(prefix + ": " + (message || "")); | |
| 3915 | -} | |
| 3916 | -function stringify(obj, serializer, indent, decycler) { | |
| 3917 | - return JSON.stringify(obj, getSerialize(serializer, decycler), indent); | |
| 3918 | -} | |
| 3919 | -function getSerialize(serializer, decycler) { | |
| 3920 | - var stack = [], keys = []; | |
| 3921 | - if (!decycler) | |
| 3922 | - decycler = function (_, value) { | |
| 3923 | - if (stack[0] === value) | |
| 3924 | - return "[Circular ~]"; | |
| 3925 | - return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"; | |
| 3926 | - }; | |
| 3927 | - return function (key, value) { | |
| 3928 | - if (stack.length > 0) { | |
| 3929 | - var thisPos = stack.indexOf(this); | |
| 3930 | - ~thisPos ? stack.splice(thisPos + 1) : stack.push(this); | |
| 3931 | - ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key); | |
| 3932 | - if (~stack.indexOf(value)) | |
| 3933 | - value = decycler.call(this, key, value); | |
| 3934 | - } | |
| 3935 | - else | |
| 3936 | - stack.push(value); | |
| 3937 | - return serializer == null ? value : serializer.call(this, key, value); | |
| 3938 | - }; | |
| 3939 | -} | |
| 3940 | -function isImmutableDefault(value) { | |
| 3941 | - return typeof value !== "object" || value == null || Object.isFrozen(value); | |
| 3942 | -} | |
| 3943 | -function trackForMutations(isImmutable, ignorePaths, obj) { | |
| 3944 | - var trackedProperties = trackProperties(isImmutable, ignorePaths, obj); | |
| 3945 | - return { | |
| 3946 | - detectMutations: function () { | |
| 3947 | - return detectMutations(isImmutable, ignorePaths, trackedProperties, obj); | |
| 3948 | - } | |
| 3949 | - }; | |
| 3950 | -} | |
| 3951 | -function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) { | |
| 3952 | - if (ignorePaths === void 0) { ignorePaths = []; } | |
| 3953 | - if (path === void 0) { path = ""; } | |
| 3954 | - if (checkedObjects === void 0) { checkedObjects = new Set(); } | |
| 3955 | - var tracked = { value: obj }; | |
| 3956 | - if (!isImmutable(obj) && !checkedObjects.has(obj)) { | |
| 3957 | - checkedObjects.add(obj); | |
| 3958 | - tracked.children = {}; | |
| 3959 | - for (var key in obj) { | |
| 3960 | - var childPath = path ? path + "." + key : key; | |
| 3961 | - if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) { | |
| 3962 | - continue; | |
| 3963 | - } | |
| 3964 | - tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath); | |
| 3965 | - } | |
| 3966 | - } | |
| 3967 | - return tracked; | |
| 3968 | -} | |
| 3969 | -function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) { | |
| 3970 | - if (ignoredPaths === void 0) { ignoredPaths = []; } | |
| 3971 | - if (sameParentRef === void 0) { sameParentRef = false; } | |
| 3972 | - if (path === void 0) { path = ""; } | |
| 3973 | - var prevObj = trackedProperty ? trackedProperty.value : void 0; | |
| 3974 | - var sameRef = prevObj === obj; | |
| 3975 | - if (sameParentRef && !sameRef && !Number.isNaN(obj)) { | |
| 3976 | - return { wasMutated: true, path: path }; | |
| 3977 | - } | |
| 3978 | - if (isImmutable(prevObj) || isImmutable(obj)) { | |
| 3979 | - return { wasMutated: false }; | |
| 3980 | - } | |
| 3981 | - var keysToDetect = {}; | |
| 3982 | - for (var key in trackedProperty.children) { | |
| 3983 | - keysToDetect[key] = true; | |
| 3984 | - } | |
| 3985 | - for (var key in obj) { | |
| 3986 | - keysToDetect[key] = true; | |
| 3987 | - } | |
| 3988 | - var hasIgnoredPaths = ignoredPaths.length > 0; | |
| 3989 | - var _loop_1 = function (key) { | |
| 3990 | - var nestedPath = path ? path + "." + key : key; | |
| 3991 | - if (hasIgnoredPaths) { | |
| 3992 | - var hasMatches = ignoredPaths.some(function (ignored) { | |
| 3993 | - if (ignored instanceof RegExp) { | |
| 3994 | - return ignored.test(nestedPath); | |
| 3995 | - } | |
| 3996 | - return nestedPath === ignored; | |
| 3997 | - }); | |
| 3998 | - if (hasMatches) { | |
| 3999 | - return "continue"; | |
| 4000 | - } | |
| 4001 | - } | |
| 4002 | - var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath); | |
| 4003 | - if (result.wasMutated) { | |
| 4004 | - return { value: result }; | |
| 4005 | - } | |
| 4006 | - }; | |
| 4007 | - for (var key in keysToDetect) { | |
| 4008 | - var state_1 = _loop_1(key); | |
| 4009 | - if (typeof state_1 === "object") | |
| 4010 | - return state_1.value; | |
| 4011 | - } | |
| 4012 | - return { wasMutated: false }; | |
| 4013 | -} | |
| 4014 | -function createImmutableStateInvariantMiddleware(options) { | |
| 4015 | - if (options === void 0) { options = {}; } | |
| 4016 | - if (false) // removed by dead control flow | |
| 4017 | -{} | |
| 4018 | - 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; | |
| 4019 | - ignoredPaths = ignoredPaths || ignore; | |
| 4020 | - var track = trackForMutations.bind(null, isImmutable, ignoredPaths); | |
| 4021 | - return function (_c) { | |
| 4022 | - var getState = _c.getState; | |
| 4023 | - var state = getState(); | |
| 4024 | - var tracker = track(state); | |
| 4025 | - var result; | |
| 4026 | - return function (next) { return function (action) { | |
| 4027 | - var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware"); | |
| 4028 | - measureUtils.measureTime(function () { | |
| 4029 | - state = getState(); | |
| 4030 | - result = tracker.detectMutations(); | |
| 4031 | - tracker = track(state); | |
| 4032 | - 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)"); | |
| 4033 | - }); | |
| 4034 | - var dispatchedAction = next(action); | |
| 4035 | - measureUtils.measureTime(function () { | |
| 4036 | - state = getState(); | |
| 4037 | - result = tracker.detectMutations(); | |
| 4038 | - tracker = track(state); | |
| 4039 | - 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)"); | |
| 4040 | - }); | |
| 4041 | - measureUtils.warnIfExceeded(); | |
| 4042 | - return dispatchedAction; | |
| 4043 | - }; }; | |
| 4044 | - }; | |
| 4045 | -} | |
| 4046 | -// src/serializableStateInvariantMiddleware.ts | |
| 4047 | -function isPlain(val) { | |
| 4048 | - var type = typeof val; | |
| 4049 | - return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val); | |
| 4050 | -} | |
| 4051 | -function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) { | |
| 4052 | - if (path === void 0) { path = ""; } | |
| 4053 | - if (isSerializable === void 0) { isSerializable = isPlain; } | |
| 4054 | - if (ignoredPaths === void 0) { ignoredPaths = []; } | |
| 4055 | - var foundNestedSerializable; | |
| 4056 | - if (!isSerializable(value)) { | |
| 4057 | - return { | |
| 4058 | - keyPath: path || "<root>", | |
| 4059 | - value: value | |
| 4060 | - }; | |
| 4061 | - } | |
| 4062 | - if (typeof value !== "object" || value === null) { | |
| 4063 | - return false; | |
| 4064 | - } | |
| 4065 | - if (cache == null ? void 0 : cache.has(value)) | |
| 4066 | - return false; | |
| 4067 | - var entries = getEntries != null ? getEntries(value) : Object.entries(value); | |
| 4068 | - var hasIgnoredPaths = ignoredPaths.length > 0; | |
| 4069 | - var _loop_2 = function (key, nestedValue) { | |
| 4070 | - var nestedPath = path ? path + "." + key : key; | |
| 4071 | - if (hasIgnoredPaths) { | |
| 4072 | - var hasMatches = ignoredPaths.some(function (ignored) { | |
| 4073 | - if (ignored instanceof RegExp) { | |
| 4074 | - return ignored.test(nestedPath); | |
| 4075 | - } | |
| 4076 | - return nestedPath === ignored; | |
| 4077 | - }); | |
| 4078 | - if (hasMatches) { | |
| 4079 | - return "continue"; | |
| 4080 | - } | |
| 4081 | - } | |
| 4082 | - if (!isSerializable(nestedValue)) { | |
| 4083 | - return { value: { | |
| 4084 | - keyPath: nestedPath, | |
| 4085 | - value: nestedValue | |
| 4086 | - } }; | |
| 4087 | - } | |
| 4088 | - if (typeof nestedValue === "object") { | |
| 4089 | - foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache); | |
| 4090 | - if (foundNestedSerializable) { | |
| 4091 | - return { value: foundNestedSerializable }; | |
| 4092 | - } | |
| 4093 | - } | |
| 4094 | - }; | |
| 4095 | - for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) { | |
| 4096 | - var _c = entries_1[_i], key = _c[0], nestedValue = _c[1]; | |
| 4097 | - var state_2 = _loop_2(key, nestedValue); | |
| 4098 | - if (typeof state_2 === "object") | |
| 4099 | - return state_2.value; | |
| 4100 | - } | |
| 4101 | - if (cache && isNestedFrozen(value)) | |
| 4102 | - cache.add(value); | |
| 4103 | - return false; | |
| 4104 | -} | |
| 4105 | -function isNestedFrozen(value) { | |
| 4106 | - if (!Object.isFrozen(value)) | |
| 4107 | - return false; | |
| 4108 | - for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) { | |
| 4109 | - var nestedValue = _c[_i]; | |
| 4110 | - if (typeof nestedValue !== "object" || nestedValue === null) | |
| 4111 | - continue; | |
| 4112 | - if (!isNestedFrozen(nestedValue)) | |
| 4113 | - return false; | |
| 4114 | - } | |
| 4115 | - return true; | |
| 4116 | -} | |
| 4117 | -function createSerializableStateInvariantMiddleware(options) { | |
| 4118 | - if (options === void 0) { options = {}; } | |
| 4119 | - if (false) // removed by dead control flow | |
| 4120 | -{} | |
| 4121 | - 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; | |
| 4122 | - var cache = !disableCache && WeakSet ? new WeakSet() : void 0; | |
| 4123 | - return function (storeAPI) { return function (next) { return function (action) { | |
| 4124 | - var result = next(action); | |
| 4125 | - var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware"); | |
| 4126 | - if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) { | |
| 4127 | - measureUtils.measureTime(function () { | |
| 4128 | - var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache); | |
| 4129 | - if (foundActionNonSerializableValue) { | |
| 4130 | - var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value; | |
| 4131 | - 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)"); | |
| 4132 | - } | |
| 4133 | - }); | |
| 4134 | - } | |
| 4135 | - if (!ignoreState) { | |
| 4136 | - measureUtils.measureTime(function () { | |
| 4137 | - var state = storeAPI.getState(); | |
| 4138 | - var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache); | |
| 4139 | - if (foundStateNonSerializableValue) { | |
| 4140 | - var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value; | |
| 4141 | - 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)"); | |
| 4142 | - } | |
| 4143 | - }); | |
| 4144 | - measureUtils.warnIfExceeded(); | |
| 4145 | - } | |
| 4146 | - return result; | |
| 4147 | - }; }; }; | |
| 4148 | -} | |
| 4149 | -// src/getDefaultMiddleware.ts | |
| 4150 | -function isBoolean(x) { | |
| 4151 | - return typeof x === "boolean"; | |
| 4152 | -} | |
| 4153 | -function curryGetDefaultMiddleware() { | |
| 4154 | - return function curriedGetDefaultMiddleware(options) { | |
| 4155 | - return getDefaultMiddleware(options); | |
| 4156 | - }; | |
| 4157 | -} | |
| 4158 | -function getDefaultMiddleware(options) { | |
| 4159 | - if (options === void 0) { options = {}; } | |
| 4160 | - 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; | |
| 4161 | - var middlewareArray = new MiddlewareArray(); | |
| 4162 | - if (thunk) { | |
| 4163 | - if (isBoolean(thunk)) { | |
| 4164 | - middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]); | |
| 4165 | - } | |
| 4166 | - else { | |
| 4167 | - middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument)); | |
| 4168 | - } | |
| 4169 | - } | |
| 4170 | - if (true) { | |
| 4171 | - if (immutableCheck) { | |
| 4172 | - var immutableOptions = {}; | |
| 4173 | - if (!isBoolean(immutableCheck)) { | |
| 4174 | - immutableOptions = immutableCheck; | |
| 4175 | - } | |
| 4176 | - middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions)); | |
| 4177 | - } | |
| 4178 | - if (serializableCheck) { | |
| 4179 | - var serializableOptions = {}; | |
| 4180 | - if (!isBoolean(serializableCheck)) { | |
| 4181 | - serializableOptions = serializableCheck; | |
| 4182 | - } | |
| 4183 | - middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions)); | |
| 4184 | - } | |
| 4185 | - if (actionCreatorCheck) { | |
| 4186 | - var actionCreatorOptions = {}; | |
| 4187 | - if (!isBoolean(actionCreatorCheck)) { | |
| 4188 | - actionCreatorOptions = actionCreatorCheck; | |
| 4189 | - } | |
| 4190 | - middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions)); | |
| 4191 | - } | |
| 4192 | - } | |
| 4193 | - return middlewareArray; | |
| 4194 | -} | |
| 4195 | -// src/configureStore.ts | |
| 4196 | -var IS_PRODUCTION = "development" === "production"; | |
| 4197 | -function configureStore(options) { | |
| 4198 | - var curriedGetDefaultMiddleware = curryGetDefaultMiddleware(); | |
| 4199 | - 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; | |
| 4200 | - var rootReducer; | |
| 4201 | - if (typeof reducer === "function") { | |
| 4202 | - rootReducer = reducer; | |
| 4203 | - } | |
| 4204 | - else if (isPlainObject(reducer)) { | |
| 4205 | - rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_1__.combineReducers)(reducer); | |
| 4206 | - } | |
| 4207 | - else { | |
| 4208 | - throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers'); | |
| 4209 | - } | |
| 4210 | - var finalMiddleware = middleware; | |
| 4211 | - if (typeof finalMiddleware === "function") { | |
| 4212 | - finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware); | |
| 4213 | - if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) { | |
| 4214 | - throw new Error("when using a middleware builder function, an array of middleware must be returned"); | |
| 4215 | - } | |
| 4216 | - } | |
| 4217 | - if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) { | |
| 4218 | - throw new Error("each middleware provided to configureStore must be a function"); | |
| 4219 | - } | |
| 4220 | - var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_1__.applyMiddleware.apply(void 0, finalMiddleware); | |
| 4221 | - var finalCompose = redux__WEBPACK_IMPORTED_MODULE_1__.compose; | |
| 4222 | - if (devTools) { | |
| 4223 | - finalCompose = composeWithDevTools(__spreadValues({ | |
| 4224 | - trace: !IS_PRODUCTION | |
| 4225 | - }, typeof devTools === "object" && devTools)); | |
| 4226 | - } | |
| 4227 | - var defaultEnhancers = new EnhancerArray(middlewareEnhancer); | |
| 4228 | - var storeEnhancers = defaultEnhancers; | |
| 4229 | - if (Array.isArray(enhancers)) { | |
| 4230 | - storeEnhancers = __spreadArray([middlewareEnhancer], enhancers); | |
| 4231 | - } | |
| 4232 | - else if (typeof enhancers === "function") { | |
| 4233 | - storeEnhancers = enhancers(defaultEnhancers); | |
| 4234 | - } | |
| 4235 | - var composedEnhancer = finalCompose.apply(void 0, storeEnhancers); | |
| 4236 | - return (0,redux__WEBPACK_IMPORTED_MODULE_1__.createStore)(rootReducer, preloadedState, composedEnhancer); | |
| 4237 | -} | |
| 4238 | -// src/createReducer.ts | |
| 4239 | - | |
| 4240 | -// src/mapBuilders.ts | |
| 4241 | -function executeReducerBuilderCallback(builderCallback) { | |
| 4242 | - var actionsMap = {}; | |
| 4243 | - var actionMatchers = []; | |
| 4244 | - var defaultCaseReducer; | |
| 4245 | - var builder = { | |
| 4246 | - addCase: function (typeOrActionCreator, reducer) { | |
| 4247 | - if (true) { | |
| 4248 | - if (actionMatchers.length > 0) { | |
| 4249 | - throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`"); | |
| 4250 | - } | |
| 4251 | - if (defaultCaseReducer) { | |
| 4252 | - throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`"); | |
| 4253 | - } | |
| 4254 | - } | |
| 4255 | - var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type; | |
| 4256 | - if (!type) { | |
| 4257 | - throw new Error("`builder.addCase` cannot be called with an empty action type"); | |
| 4258 | - } | |
| 4259 | - if (type in actionsMap) { | |
| 4260 | - throw new Error("`builder.addCase` cannot be called with two reducers for the same action type"); | |
| 4261 | - } | |
| 4262 | - actionsMap[type] = reducer; | |
| 4263 | - return builder; | |
| 4264 | - }, | |
| 4265 | - addMatcher: function (matcher, reducer) { | |
| 4266 | - if (true) { | |
| 4267 | - if (defaultCaseReducer) { | |
| 4268 | - throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`"); | |
| 4269 | - } | |
| 4270 | - } | |
| 4271 | - actionMatchers.push({ matcher: matcher, reducer: reducer }); | |
| 4272 | - return builder; | |
| 4273 | - }, | |
| 4274 | - addDefaultCase: function (reducer) { | |
| 4275 | - if (true) { | |
| 4276 | - if (defaultCaseReducer) { | |
| 4277 | - throw new Error("`builder.addDefaultCase` can only be called once"); | |
| 4278 | - } | |
| 4279 | - } | |
| 4280 | - defaultCaseReducer = reducer; | |
| 4281 | - return builder; | |
| 4282 | - } | |
| 4283 | - }; | |
| 4284 | - builderCallback(builder); | |
| 4285 | - return [actionsMap, actionMatchers, defaultCaseReducer]; | |
| 4286 | -} | |
| 4287 | -// src/createReducer.ts | |
| 4288 | -function isStateFunction(x) { | |
| 4289 | - return typeof x === "function"; | |
| 4290 | -} | |
| 4291 | -var hasWarnedAboutObjectNotation = false; | |
| 4292 | -function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) { | |
| 4293 | - if (actionMatchers === void 0) { actionMatchers = []; } | |
| 4294 | - if (true) { | |
| 4295 | - if (typeof mapOrBuilderCallback === "object") { | |
| 4296 | - if (!hasWarnedAboutObjectNotation) { | |
| 4297 | - hasWarnedAboutObjectNotation = true; | |
| 4298 | - 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"); | |
| 4299 | - } | |
| 4300 | - } | |
| 4301 | - } | |
| 4302 | - var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2]; | |
| 4303 | - var getInitialState; | |
| 4304 | - if (isStateFunction(initialState)) { | |
| 4305 | - getInitialState = function () { return freezeDraftable(initialState()); }; | |
| 4306 | - } | |
| 4307 | - else { | |
| 4308 | - var frozenInitialState_1 = freezeDraftable(initialState); | |
| 4309 | - getInitialState = function () { return frozenInitialState_1; }; | |
| 4310 | - } | |
| 4311 | - function reducer(state, action) { | |
| 4312 | - if (state === void 0) { state = getInitialState(); } | |
| 4313 | - var caseReducers = __spreadArray([ | |
| 4314 | - actionsMap[action.type] | |
| 4315 | - ], finalActionMatchers.filter(function (_c) { | |
| 4316 | - var matcher = _c.matcher; | |
| 4317 | - return matcher(action); | |
| 4318 | - }).map(function (_c) { | |
| 4319 | - var reducer2 = _c.reducer; | |
| 4320 | - return reducer2; | |
| 4321 | - })); | |
| 4322 | - if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) { | |
| 4323 | - caseReducers = [finalDefaultCaseReducer]; | |
| 4324 | - } | |
| 4325 | - return caseReducers.reduce(function (previousState, caseReducer) { | |
| 4326 | - if (caseReducer) { | |
| 4327 | - if ((0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(previousState)) { | |
| 4328 | - var draft = previousState; | |
| 4329 | - var result = caseReducer(draft, action); | |
| 4330 | - if (result === void 0) { | |
| 4331 | - return previousState; | |
| 4332 | - } | |
| 4333 | - return result; | |
| 4334 | - } | |
| 4335 | - else if (!(0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraftable)(previousState)) { | |
| 4336 | - var result = caseReducer(previousState, action); | |
| 4337 | - if (result === void 0) { | |
| 4338 | - if (previousState === null) { | |
| 4339 | - return previousState; | |
| 4340 | - } | |
| 4341 | - throw Error("A case reducer on a non-draftable value must not return undefined"); | |
| 4342 | - } | |
| 4343 | - return result; | |
| 4344 | - } | |
| 4345 | - else { | |
| 4346 | - return (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(previousState, function (draft) { | |
| 4347 | - return caseReducer(draft, action); | |
| 4348 | - }); | |
| 4349 | - } | |
| 4350 | - } | |
| 4351 | - return previousState; | |
| 4352 | - }, state); | |
| 4353 | - } | |
| 4354 | - reducer.getInitialState = getInitialState; | |
| 4355 | - return reducer; | |
| 4356 | -} | |
| 4357 | -// src/createSlice.ts | |
| 4358 | -var hasWarnedAboutObjectNotation2 = false; | |
| 4359 | -function getType2(slice, actionKey) { | |
| 4360 | - return slice + "/" + actionKey; | |
| 4361 | -} | |
| 4362 | -function createSlice(options) { | |
| 4363 | - var name = options.name; | |
| 4364 | - if (!name) { | |
| 4365 | - throw new Error("`name` is a required option for createSlice"); | |
| 4366 | - } | |
| 4367 | - if (typeof process !== "undefined" && "development" === "development") { | |
| 4368 | - if (options.initialState === void 0) { | |
| 4369 | - console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`"); | |
| 4370 | - } | |
| 4371 | - } | |
| 4372 | - var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState); | |
| 4373 | - var reducers = options.reducers || {}; | |
| 4374 | - var reducerNames = Object.keys(reducers); | |
| 4375 | - var sliceCaseReducersByName = {}; | |
| 4376 | - var sliceCaseReducersByType = {}; | |
| 4377 | - var actionCreators = {}; | |
| 4378 | - reducerNames.forEach(function (reducerName) { | |
| 4379 | - var maybeReducerWithPrepare = reducers[reducerName]; | |
| 4380 | - var type = getType2(name, reducerName); | |
| 4381 | - var caseReducer; | |
| 4382 | - var prepareCallback; | |
| 4383 | - if ("reducer" in maybeReducerWithPrepare) { | |
| 4384 | - caseReducer = maybeReducerWithPrepare.reducer; | |
| 4385 | - prepareCallback = maybeReducerWithPrepare.prepare; | |
| 4386 | - } | |
| 4387 | - else { | |
| 4388 | - caseReducer = maybeReducerWithPrepare; | |
| 4389 | - } | |
| 4390 | - sliceCaseReducersByName[reducerName] = caseReducer; | |
| 4391 | - sliceCaseReducersByType[type] = caseReducer; | |
| 4392 | - actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type); | |
| 4393 | - }); | |
| 4394 | - function buildReducer() { | |
| 4395 | - if (true) { | |
| 4396 | - if (typeof options.extraReducers === "object") { | |
| 4397 | - if (!hasWarnedAboutObjectNotation2) { | |
| 4398 | - hasWarnedAboutObjectNotation2 = true; | |
| 4399 | - 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"); | |
| 4400 | - } | |
| 4401 | - } | |
| 4402 | - } | |
| 4403 | - 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; | |
| 4404 | - var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType); | |
| 4405 | - return createReducer(initialState, function (builder) { | |
| 4406 | - for (var key in finalCaseReducers) { | |
| 4407 | - builder.addCase(key, finalCaseReducers[key]); | |
| 4408 | - } | |
| 4409 | - for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) { | |
| 4410 | - var m = actionMatchers_1[_i]; | |
| 4411 | - builder.addMatcher(m.matcher, m.reducer); | |
| 4412 | - } | |
| 4413 | - if (defaultCaseReducer) { | |
| 4414 | - builder.addDefaultCase(defaultCaseReducer); | |
| 4415 | - } | |
| 4416 | - }); | |
| 4417 | - } | |
| 4418 | - var _reducer; | |
| 4419 | - return { | |
| 4420 | - name: name, | |
| 4421 | - reducer: function (state, action) { | |
| 4422 | - if (!_reducer) | |
| 4423 | - _reducer = buildReducer(); | |
| 4424 | - return _reducer(state, action); | |
| 4425 | - }, | |
| 4426 | - actions: actionCreators, | |
| 4427 | - caseReducers: sliceCaseReducersByName, | |
| 4428 | - getInitialState: function () { | |
| 4429 | - if (!_reducer) | |
| 4430 | - _reducer = buildReducer(); | |
| 4431 | - return _reducer.getInitialState(); | |
| 4432 | - } | |
| 4433 | - }; | |
| 4434 | -} | |
| 4435 | -// src/entities/entity_state.ts | |
| 4436 | -function getInitialEntityState() { | |
| 4437 | - return { | |
| 4438 | - ids: [], | |
| 4439 | - entities: {} | |
| 4440 | - }; | |
| 4441 | -} | |
| 4442 | -function createInitialStateFactory() { | |
| 4443 | - function getInitialState(additionalState) { | |
| 4444 | - if (additionalState === void 0) { additionalState = {}; } | |
| 4445 | - return Object.assign(getInitialEntityState(), additionalState); | |
| 4446 | - } | |
| 4447 | - return { getInitialState: getInitialState }; | |
| 4448 | -} | |
| 4449 | -// src/entities/state_selectors.ts | |
| 4450 | -function createSelectorsFactory() { | |
| 4451 | - function getSelectors(selectState) { | |
| 4452 | - var selectIds = function (state) { return state.ids; }; | |
| 4453 | - var selectEntities = function (state) { return state.entities; }; | |
| 4454 | - var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); }); | |
| 4455 | - var selectId = function (_, id) { return id; }; | |
| 4456 | - var selectById = function (entities, id) { return entities[id]; }; | |
| 4457 | - var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; }); | |
| 4458 | - if (!selectState) { | |
| 4459 | - return { | |
| 4460 | - selectIds: selectIds, | |
| 4461 | - selectEntities: selectEntities, | |
| 4462 | - selectAll: selectAll, | |
| 4463 | - selectTotal: selectTotal, | |
| 4464 | - selectById: createDraftSafeSelector(selectEntities, selectId, selectById) | |
| 4465 | - }; | |
| 4466 | - } | |
| 4467 | - var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities); | |
| 4468 | - return { | |
| 4469 | - selectIds: createDraftSafeSelector(selectState, selectIds), | |
| 4470 | - selectEntities: selectGlobalizedEntities, | |
| 4471 | - selectAll: createDraftSafeSelector(selectState, selectAll), | |
| 4472 | - selectTotal: createDraftSafeSelector(selectState, selectTotal), | |
| 4473 | - selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById) | |
| 4474 | - }; | |
| 4475 | - } | |
| 4476 | - return { getSelectors: getSelectors }; | |
| 4477 | -} | |
| 4478 | -// src/entities/state_adapter.ts | |
| 4479 | - | |
| 4480 | -function createSingleArgumentStateOperator(mutator) { | |
| 4481 | - var operator = createStateOperator(function (_, state) { return mutator(state); }); | |
| 4482 | - return function operation(state) { | |
| 4483 | - return operator(state, void 0); | |
| 4484 | - }; | |
| 4485 | -} | |
| 4486 | -function createStateOperator(mutator) { | |
| 4487 | - return function operation(state, arg) { | |
| 4488 | - function isPayloadActionArgument(arg2) { | |
| 4489 | - return isFSA(arg2); | |
| 4490 | - } | |
| 4491 | - var runMutator = function (draft) { | |
| 4492 | - if (isPayloadActionArgument(arg)) { | |
| 4493 | - mutator(arg.payload, draft); | |
| 4494 | - } | |
| 4495 | - else { | |
| 4496 | - mutator(arg, draft); | |
| 4497 | - } | |
| 4498 | - }; | |
| 4499 | - if ((0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(state)) { | |
| 4500 | - runMutator(state); | |
| 4501 | - return state; | |
| 4502 | - } | |
| 4503 | - else { | |
| 4504 | - return (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(state, runMutator); | |
| 4505 | - } | |
| 4506 | - }; | |
| 4507 | -} | |
| 4508 | -// src/entities/utils.ts | |
| 4509 | -function selectIdValue(entity, selectId) { | |
| 4510 | - var key = selectId(entity); | |
| 4511 | - if ( true && key === void 0) { | |
| 4512 | - 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()); | |
| 4513 | - } | |
| 4514 | - return key; | |
| 4515 | -} | |
| 4516 | -function ensureEntitiesArray(entities) { | |
| 4517 | - if (!Array.isArray(entities)) { | |
| 4518 | - entities = Object.values(entities); | |
| 4519 | - } | |
| 4520 | - return entities; | |
| 4521 | -} | |
| 4522 | -function splitAddedUpdatedEntities(newEntities, selectId, state) { | |
| 4523 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4524 | - var added = []; | |
| 4525 | - var updated = []; | |
| 4526 | - for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) { | |
| 4527 | - var entity = newEntities_1[_i]; | |
| 4528 | - var id = selectIdValue(entity, selectId); | |
| 4529 | - if (id in state.entities) { | |
| 4530 | - updated.push({ id: id, changes: entity }); | |
| 4531 | - } | |
| 4532 | - else { | |
| 4533 | - added.push(entity); | |
| 4534 | - } | |
| 4535 | - } | |
| 4536 | - return [added, updated]; | |
| 4537 | -} | |
| 4538 | -// src/entities/unsorted_state_adapter.ts | |
| 4539 | -function createUnsortedStateAdapter(selectId) { | |
| 4540 | - function addOneMutably(entity, state) { | |
| 4541 | - var key = selectIdValue(entity, selectId); | |
| 4542 | - if (key in state.entities) { | |
| 4543 | - return; | |
| 4544 | - } | |
| 4545 | - state.ids.push(key); | |
| 4546 | - state.entities[key] = entity; | |
| 4547 | - } | |
| 4548 | - function addManyMutably(newEntities, state) { | |
| 4549 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4550 | - for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) { | |
| 4551 | - var entity = newEntities_2[_i]; | |
| 4552 | - addOneMutably(entity, state); | |
| 4553 | - } | |
| 4554 | - } | |
| 4555 | - function setOneMutably(entity, state) { | |
| 4556 | - var key = selectIdValue(entity, selectId); | |
| 4557 | - if (!(key in state.entities)) { | |
| 4558 | - state.ids.push(key); | |
| 4559 | - } | |
| 4560 | - state.entities[key] = entity; | |
| 4561 | - } | |
| 4562 | - function setManyMutably(newEntities, state) { | |
| 4563 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4564 | - for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) { | |
| 4565 | - var entity = newEntities_3[_i]; | |
| 4566 | - setOneMutably(entity, state); | |
| 4567 | - } | |
| 4568 | - } | |
| 4569 | - function setAllMutably(newEntities, state) { | |
| 4570 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4571 | - state.ids = []; | |
| 4572 | - state.entities = {}; | |
| 4573 | - addManyMutably(newEntities, state); | |
| 4574 | - } | |
| 4575 | - function removeOneMutably(key, state) { | |
| 4576 | - return removeManyMutably([key], state); | |
| 4577 | - } | |
| 4578 | - function removeManyMutably(keys, state) { | |
| 4579 | - var didMutate = false; | |
| 4580 | - keys.forEach(function (key) { | |
| 4581 | - if (key in state.entities) { | |
| 4582 | - delete state.entities[key]; | |
| 4583 | - didMutate = true; | |
| 4584 | - } | |
| 4585 | - }); | |
| 4586 | - if (didMutate) { | |
| 4587 | - state.ids = state.ids.filter(function (id) { return id in state.entities; }); | |
| 4588 | - } | |
| 4589 | - } | |
| 4590 | - function removeAllMutably(state) { | |
| 4591 | - Object.assign(state, { | |
| 4592 | - ids: [], | |
| 4593 | - entities: {} | |
| 4594 | - }); | |
| 4595 | - } | |
| 4596 | - function takeNewKey(keys, update, state) { | |
| 4597 | - var original2 = state.entities[update.id]; | |
| 4598 | - var updated = Object.assign({}, original2, update.changes); | |
| 4599 | - var newKey = selectIdValue(updated, selectId); | |
| 4600 | - var hasNewKey = newKey !== update.id; | |
| 4601 | - if (hasNewKey) { | |
| 4602 | - keys[update.id] = newKey; | |
| 4603 | - delete state.entities[update.id]; | |
| 4604 | - } | |
| 4605 | - state.entities[newKey] = updated; | |
| 4606 | - return hasNewKey; | |
| 4607 | - } | |
| 4608 | - function updateOneMutably(update, state) { | |
| 4609 | - return updateManyMutably([update], state); | |
| 4610 | - } | |
| 4611 | - function updateManyMutably(updates, state) { | |
| 4612 | - var newKeys = {}; | |
| 4613 | - var updatesPerEntity = {}; | |
| 4614 | - updates.forEach(function (update) { | |
| 4615 | - if (update.id in state.entities) { | |
| 4616 | - updatesPerEntity[update.id] = { | |
| 4617 | - id: update.id, | |
| 4618 | - changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes) | |
| 4619 | - }; | |
| 4620 | - } | |
| 4621 | - }); | |
| 4622 | - updates = Object.values(updatesPerEntity); | |
| 4623 | - var didMutateEntities = updates.length > 0; | |
| 4624 | - if (didMutateEntities) { | |
| 4625 | - var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0; | |
| 4626 | - if (didMutateIds) { | |
| 4627 | - state.ids = Object.keys(state.entities); | |
| 4628 | - } | |
| 4629 | - } | |
| 4630 | - } | |
| 4631 | - function upsertOneMutably(entity, state) { | |
| 4632 | - return upsertManyMutably([entity], state); | |
| 4633 | - } | |
| 4634 | - function upsertManyMutably(newEntities, state) { | |
| 4635 | - var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1]; | |
| 4636 | - updateManyMutably(updated, state); | |
| 4637 | - addManyMutably(added, state); | |
| 4638 | - } | |
| 4639 | - return { | |
| 4640 | - removeAll: createSingleArgumentStateOperator(removeAllMutably), | |
| 4641 | - addOne: createStateOperator(addOneMutably), | |
| 4642 | - addMany: createStateOperator(addManyMutably), | |
| 4643 | - setOne: createStateOperator(setOneMutably), | |
| 4644 | - setMany: createStateOperator(setManyMutably), | |
| 4645 | - setAll: createStateOperator(setAllMutably), | |
| 4646 | - updateOne: createStateOperator(updateOneMutably), | |
| 4647 | - updateMany: createStateOperator(updateManyMutably), | |
| 4648 | - upsertOne: createStateOperator(upsertOneMutably), | |
| 4649 | - upsertMany: createStateOperator(upsertManyMutably), | |
| 4650 | - removeOne: createStateOperator(removeOneMutably), | |
| 4651 | - removeMany: createStateOperator(removeManyMutably) | |
| 4652 | - }; | |
| 4653 | -} | |
| 4654 | -// src/entities/sorted_state_adapter.ts | |
| 4655 | -function createSortedStateAdapter(selectId, sort) { | |
| 4656 | - var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll; | |
| 4657 | - function addOneMutably(entity, state) { | |
| 4658 | - return addManyMutably([entity], state); | |
| 4659 | - } | |
| 4660 | - function addManyMutably(newEntities, state) { | |
| 4661 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4662 | - var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); }); | |
| 4663 | - if (models.length !== 0) { | |
| 4664 | - merge(models, state); | |
| 4665 | - } | |
| 4666 | - } | |
| 4667 | - function setOneMutably(entity, state) { | |
| 4668 | - return setManyMutably([entity], state); | |
| 4669 | - } | |
| 4670 | - function setManyMutably(newEntities, state) { | |
| 4671 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4672 | - if (newEntities.length !== 0) { | |
| 4673 | - merge(newEntities, state); | |
| 4674 | - } | |
| 4675 | - } | |
| 4676 | - function setAllMutably(newEntities, state) { | |
| 4677 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4678 | - state.entities = {}; | |
| 4679 | - state.ids = []; | |
| 4680 | - addManyMutably(newEntities, state); | |
| 4681 | - } | |
| 4682 | - function updateOneMutably(update, state) { | |
| 4683 | - return updateManyMutably([update], state); | |
| 4684 | - } | |
| 4685 | - function updateManyMutably(updates, state) { | |
| 4686 | - var appliedUpdates = false; | |
| 4687 | - for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) { | |
| 4688 | - var update = updates_1[_i]; | |
| 4689 | - var entity = state.entities[update.id]; | |
| 4690 | - if (!entity) { | |
| 4691 | - continue; | |
| 4692 | - } | |
| 4693 | - appliedUpdates = true; | |
| 4694 | - Object.assign(entity, update.changes); | |
| 4695 | - var newId = selectId(entity); | |
| 4696 | - if (update.id !== newId) { | |
| 4697 | - delete state.entities[update.id]; | |
| 4698 | - state.entities[newId] = entity; | |
| 4699 | - } | |
| 4700 | - } | |
| 4701 | - if (appliedUpdates) { | |
| 4702 | - resortEntities(state); | |
| 4703 | - } | |
| 4704 | - } | |
| 4705 | - function upsertOneMutably(entity, state) { | |
| 4706 | - return upsertManyMutably([entity], state); | |
| 4707 | - } | |
| 4708 | - function upsertManyMutably(newEntities, state) { | |
| 4709 | - var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1]; | |
| 4710 | - updateManyMutably(updated, state); | |
| 4711 | - addManyMutably(added, state); | |
| 4712 | - } | |
| 4713 | - function areArraysEqual(a, b) { | |
| 4714 | - if (a.length !== b.length) { | |
| 4715 | - return false; | |
| 4716 | - } | |
| 4717 | - for (var i = 0; i < a.length && i < b.length; i++) { | |
| 4718 | - if (a[i] === b[i]) { | |
| 4719 | - continue; | |
| 4720 | - } | |
| 4721 | - return false; | |
| 4722 | - } | |
| 4723 | - return true; | |
| 4724 | - } | |
| 4725 | - function merge(models, state) { | |
| 4726 | - models.forEach(function (model) { | |
| 4727 | - state.entities[selectId(model)] = model; | |
| 4728 | - }); | |
| 4729 | - resortEntities(state); | |
| 4730 | - } | |
| 4731 | - function resortEntities(state) { | |
| 4732 | - var allEntities = Object.values(state.entities); | |
| 4733 | - allEntities.sort(sort); | |
| 4734 | - var newSortedIds = allEntities.map(selectId); | |
| 4735 | - var ids = state.ids; | |
| 4736 | - if (!areArraysEqual(ids, newSortedIds)) { | |
| 4737 | - state.ids = newSortedIds; | |
| 4738 | - } | |
| 4739 | - } | |
| 4740 | - return { | |
| 4741 | - removeOne: removeOne, | |
| 4742 | - removeMany: removeMany, | |
| 4743 | - removeAll: removeAll, | |
| 4744 | - addOne: createStateOperator(addOneMutably), | |
| 4745 | - updateOne: createStateOperator(updateOneMutably), | |
| 4746 | - upsertOne: createStateOperator(upsertOneMutably), | |
| 4747 | - setOne: createStateOperator(setOneMutably), | |
| 4748 | - setMany: createStateOperator(setManyMutably), | |
| 4749 | - setAll: createStateOperator(setAllMutably), | |
| 4750 | - addMany: createStateOperator(addManyMutably), | |
| 4751 | - updateMany: createStateOperator(updateManyMutably), | |
| 4752 | - upsertMany: createStateOperator(upsertManyMutably) | |
| 4753 | - }; | |
| 4754 | -} | |
| 4755 | -// src/entities/create_adapter.ts | |
| 4756 | -function createEntityAdapter(options) { | |
| 4757 | - if (options === void 0) { options = {}; } | |
| 4758 | - var _c = __spreadValues({ | |
| 4759 | - sortComparer: false, | |
| 4760 | - selectId: function (instance) { return instance.id; } | |
| 4761 | - }, options), selectId = _c.selectId, sortComparer = _c.sortComparer; | |
| 4762 | - var stateFactory = createInitialStateFactory(); | |
| 4763 | - var selectorsFactory = createSelectorsFactory(); | |
| 4764 | - var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId); | |
| 4765 | - return __spreadValues(__spreadValues(__spreadValues({ | |
| 4766 | - selectId: selectId, | |
| 4767 | - sortComparer: sortComparer | |
| 4768 | - }, stateFactory), selectorsFactory), stateAdapter); | |
| 4769 | -} | |
| 4770 | -// src/nanoid.ts | |
| 4771 | -var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"; | |
| 4772 | -var nanoid = function (size) { | |
| 4773 | - if (size === void 0) { size = 21; } | |
| 4774 | - var id = ""; | |
| 4775 | - var i = size; | |
| 4776 | - while (i--) { | |
| 4777 | - id += urlAlphabet[Math.random() * 64 | 0]; | |
| 4778 | - } | |
| 4779 | - return id; | |
| 4780 | -}; | |
| 4781 | -// src/createAsyncThunk.ts | |
| 4782 | -var commonProperties = [ | |
| 4783 | - "name", | |
| 4784 | - "message", | |
| 4785 | - "stack", | |
| 4786 | - "code" | |
| 4787 | -]; | |
| 4788 | -var RejectWithValue = /** @class */ (function () { | |
| 4789 | - function RejectWithValue(payload, meta) { | |
| 4790 | - this.payload = payload; | |
| 4791 | - this.meta = meta; | |
| 4792 | - } | |
| 4793 | - return RejectWithValue; | |
| 4794 | -}()); | |
| 4795 | -var FulfillWithMeta = /** @class */ (function () { | |
| 4796 | - function FulfillWithMeta(payload, meta) { | |
| 4797 | - this.payload = payload; | |
| 4798 | - this.meta = meta; | |
| 4799 | - } | |
| 4800 | - return FulfillWithMeta; | |
| 4801 | -}()); | |
| 4802 | -var miniSerializeError = function (value) { | |
| 4803 | - if (typeof value === "object" && value !== null) { | |
| 4804 | - var simpleError = {}; | |
| 4805 | - for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) { | |
| 4806 | - var property = commonProperties_1[_i]; | |
| 4807 | - if (typeof value[property] === "string") { | |
| 4808 | - simpleError[property] = value[property]; | |
| 4809 | - } | |
| 4810 | - } | |
| 4811 | - return simpleError; | |
| 4812 | - } | |
| 4813 | - return { message: String(value) }; | |
| 4814 | -}; | |
| 4815 | -var createAsyncThunk = (function () { | |
| 4816 | - function createAsyncThunk2(typePrefix, payloadCreator, options) { | |
| 4817 | - var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({ | |
| 4818 | - payload: payload, | |
| 4819 | - meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 4820 | - arg: arg, | |
| 4821 | - requestId: requestId, | |
| 4822 | - requestStatus: "fulfilled" | |
| 4823 | - }) | |
| 4824 | - }); }); | |
| 4825 | - var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({ | |
| 4826 | - payload: void 0, | |
| 4827 | - meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 4828 | - arg: arg, | |
| 4829 | - requestId: requestId, | |
| 4830 | - requestStatus: "pending" | |
| 4831 | - }) | |
| 4832 | - }); }); | |
| 4833 | - var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({ | |
| 4834 | - payload: payload, | |
| 4835 | - error: (options && options.serializeError || miniSerializeError)(error || "Rejected"), | |
| 4836 | - meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 4837 | - arg: arg, | |
| 4838 | - requestId: requestId, | |
| 4839 | - rejectedWithValue: !!payload, | |
| 4840 | - requestStatus: "rejected", | |
| 4841 | - aborted: (error == null ? void 0 : error.name) === "AbortError", | |
| 4842 | - condition: (error == null ? void 0 : error.name) === "ConditionError" | |
| 4843 | - }) | |
| 4844 | - }); }); | |
| 4845 | - var displayedWarning = false; | |
| 4846 | - var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () { | |
| 4847 | - function class_1() { | |
| 4848 | - this.signal = { | |
| 4849 | - aborted: false, | |
| 4850 | - addEventListener: function () { | |
| 4851 | - }, | |
| 4852 | - dispatchEvent: function () { | |
| 4853 | - return false; | |
| 4854 | - }, | |
| 4855 | - onabort: function () { | |
| 4856 | - }, | |
| 4857 | - removeEventListener: function () { | |
| 4858 | - }, | |
| 4859 | - reason: void 0, | |
| 4860 | - throwIfAborted: function () { | |
| 4861 | - } | |
| 4862 | - }; | |
| 4863 | - } | |
| 4864 | - class_1.prototype.abort = function () { | |
| 4865 | - if (true) { | |
| 4866 | - if (!displayedWarning) { | |
| 4867 | - displayedWarning = true; | |
| 4868 | - 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'."); | |
| 4869 | - } | |
| 4870 | - } | |
| 4871 | - }; | |
| 4872 | - return class_1; | |
| 4873 | - }()); | |
| 4874 | - function actionCreator(arg) { | |
| 4875 | - return function (dispatch, getState, extra) { | |
| 4876 | - var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid(); | |
| 4877 | - var abortController = new AC(); | |
| 4878 | - var abortReason; | |
| 4879 | - var started = false; | |
| 4880 | - function abort(reason) { | |
| 4881 | - abortReason = reason; | |
| 4882 | - abortController.abort(); | |
| 4883 | - } | |
| 4884 | - var promise2 = function () { | |
| 4885 | - return __async(this, null, function () { | |
| 4886 | - var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch; | |
| 4887 | - return __generator(this, function (_c) { | |
| 4888 | - switch (_c.label) { | |
| 4889 | - case 0: | |
| 4890 | - _c.trys.push([0, 4, , 5]); | |
| 4891 | - conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra }); | |
| 4892 | - if (!isThenable(conditionResult)) return [3 /*break*/, 2]; | |
| 4893 | - return [4 /*yield*/, conditionResult]; | |
| 4894 | - case 1: | |
| 4895 | - conditionResult = _c.sent(); | |
| 4896 | - _c.label = 2; | |
| 4897 | - case 2: | |
| 4898 | - if (conditionResult === false || abortController.signal.aborted) { | |
| 4899 | - throw { | |
| 4900 | - name: "ConditionError", | |
| 4901 | - message: "Aborted due to condition callback returning false." | |
| 4902 | - }; | |
| 4903 | - } | |
| 4904 | - started = true; | |
| 4905 | - abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({ | |
| 4906 | - name: "AbortError", | |
| 4907 | - message: abortReason || "Aborted" | |
| 4908 | - }); }); }); | |
| 4909 | - 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 }))); | |
| 4910 | - return [4 /*yield*/, Promise.race([ | |
| 4911 | - abortedPromise, | |
| 4912 | - Promise.resolve(payloadCreator(arg, { | |
| 4913 | - dispatch: dispatch, | |
| 4914 | - getState: getState, | |
| 4915 | - extra: extra, | |
| 4916 | - requestId: requestId, | |
| 4917 | - signal: abortController.signal, | |
| 4918 | - abort: abort, | |
| 4919 | - rejectWithValue: function (value, meta) { | |
| 4920 | - return new RejectWithValue(value, meta); | |
| 4921 | - }, | |
| 4922 | - fulfillWithValue: function (value, meta) { | |
| 4923 | - return new FulfillWithMeta(value, meta); | |
| 4924 | - } | |
| 4925 | - })).then(function (result) { | |
| 4926 | - if (result instanceof RejectWithValue) { | |
| 4927 | - throw result; | |
| 4928 | - } | |
| 4929 | - if (result instanceof FulfillWithMeta) { | |
| 4930 | - return fulfilled(result.payload, requestId, arg, result.meta); | |
| 4931 | - } | |
| 4932 | - return fulfilled(result, requestId, arg); | |
| 4933 | - }) | |
| 4934 | - ])]; | |
| 4935 | - case 3: | |
| 4936 | - finalAction = _c.sent(); | |
| 4937 | - return [3 /*break*/, 5]; | |
| 4938 | - case 4: | |
| 4939 | - err_1 = _c.sent(); | |
| 4940 | - finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg); | |
| 4941 | - return [3 /*break*/, 5]; | |
| 4942 | - case 5: | |
| 4943 | - skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition; | |
| 4944 | - if (!skipDispatch) { | |
| 4945 | - dispatch(finalAction); | |
| 4946 | - } | |
| 4947 | - return [2 /*return*/, finalAction]; | |
| 4948 | - } | |
| 4949 | - }); | |
| 4950 | - }); | |
| 4951 | - }(); | |
| 4952 | - return Object.assign(promise2, { | |
| 4953 | - abort: abort, | |
| 4954 | - requestId: requestId, | |
| 4955 | - arg: arg, | |
| 4956 | - unwrap: function () { | |
| 4957 | - return promise2.then(unwrapResult); | |
| 4958 | - } | |
| 4959 | - }); | |
| 4960 | - }; | |
| 4961 | - } | |
| 4962 | - return Object.assign(actionCreator, { | |
| 4963 | - pending: pending, | |
| 4964 | - rejected: rejected, | |
| 4965 | - fulfilled: fulfilled, | |
| 4966 | - typePrefix: typePrefix | |
| 4967 | - }); | |
| 4968 | - } | |
| 4969 | - createAsyncThunk2.withTypes = function () { return createAsyncThunk2; }; | |
| 4970 | - return createAsyncThunk2; | |
| 4971 | -})(); | |
| 4972 | -function unwrapResult(action) { | |
| 4973 | - if (action.meta && action.meta.rejectedWithValue) { | |
| 4974 | - throw action.payload; | |
| 4975 | - } | |
| 4976 | - if (action.error) { | |
| 4977 | - throw action.error; | |
| 4978 | - } | |
| 4979 | - return action.payload; | |
| 4980 | -} | |
| 4981 | -function isThenable(value) { | |
| 4982 | - return value !== null && typeof value === "object" && typeof value.then === "function"; | |
| 4983 | -} | |
| 4984 | -// src/matchers.ts | |
| 4985 | -var matches = function (matcher, action) { | |
| 4986 | - if (hasMatchFunction(matcher)) { | |
| 4987 | - return matcher.match(action); | |
| 4988 | - } | |
| 4989 | - else { | |
| 4990 | - return matcher(action); | |
| 4991 | - } | |
| 4992 | -}; | |
| 4993 | -function isAnyOf() { | |
| 4994 | - var matchers = []; | |
| 4995 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 4996 | - matchers[_i] = arguments[_i]; | |
| 4997 | - } | |
| 4998 | - return function (action) { | |
| 4999 | - return matchers.some(function (matcher) { return matches(matcher, action); }); | |
| 5000 | - }; | |
| 5001 | -} | |
| 5002 | -function isAllOf() { | |
| 5003 | - var matchers = []; | |
| 5004 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5005 | - matchers[_i] = arguments[_i]; | |
| 5006 | - } | |
| 5007 | - return function (action) { | |
| 5008 | - return matchers.every(function (matcher) { return matches(matcher, action); }); | |
| 5009 | - }; | |
| 5010 | -} | |
| 5011 | -function hasExpectedRequestMetadata(action, validStatus) { | |
| 5012 | - if (!action || !action.meta) | |
| 5013 | - return false; | |
| 5014 | - var hasValidRequestId = typeof action.meta.requestId === "string"; | |
| 5015 | - var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1; | |
| 5016 | - return hasValidRequestId && hasValidRequestStatus; | |
| 5017 | -} | |
| 5018 | -function isAsyncThunkArray(a) { | |
| 5019 | - return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0]; | |
| 5020 | -} | |
| 5021 | -function isPending() { | |
| 5022 | - var asyncThunks = []; | |
| 5023 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5024 | - asyncThunks[_i] = arguments[_i]; | |
| 5025 | - } | |
| 5026 | - if (asyncThunks.length === 0) { | |
| 5027 | - return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); }; | |
| 5028 | - } | |
| 5029 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5030 | - return isPending()(asyncThunks[0]); | |
| 5031 | - } | |
| 5032 | - return function (action) { | |
| 5033 | - var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; }); | |
| 5034 | - var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 5035 | - return combinedMatcher(action); | |
| 5036 | - }; | |
| 5037 | -} | |
| 5038 | -function isRejected() { | |
| 5039 | - var asyncThunks = []; | |
| 5040 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5041 | - asyncThunks[_i] = arguments[_i]; | |
| 5042 | - } | |
| 5043 | - if (asyncThunks.length === 0) { | |
| 5044 | - return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); }; | |
| 5045 | - } | |
| 5046 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5047 | - return isRejected()(asyncThunks[0]); | |
| 5048 | - } | |
| 5049 | - return function (action) { | |
| 5050 | - var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; }); | |
| 5051 | - var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 5052 | - return combinedMatcher(action); | |
| 5053 | - }; | |
| 5054 | -} | |
| 5055 | -function isRejectedWithValue() { | |
| 5056 | - var asyncThunks = []; | |
| 5057 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5058 | - asyncThunks[_i] = arguments[_i]; | |
| 5059 | - } | |
| 5060 | - var hasFlag = function (action) { | |
| 5061 | - return action && action.meta && action.meta.rejectedWithValue; | |
| 5062 | - }; | |
| 5063 | - if (asyncThunks.length === 0) { | |
| 5064 | - return function (action) { | |
| 5065 | - var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 5066 | - return combinedMatcher(action); | |
| 5067 | - }; | |
| 5068 | - } | |
| 5069 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5070 | - return isRejectedWithValue()(asyncThunks[0]); | |
| 5071 | - } | |
| 5072 | - return function (action) { | |
| 5073 | - var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 5074 | - return combinedMatcher(action); | |
| 5075 | - }; | |
| 5076 | -} | |
| 5077 | -function isFulfilled() { | |
| 5078 | - var asyncThunks = []; | |
| 5079 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5080 | - asyncThunks[_i] = arguments[_i]; | |
| 5081 | - } | |
| 5082 | - if (asyncThunks.length === 0) { | |
| 5083 | - return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); }; | |
| 5084 | - } | |
| 5085 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5086 | - return isFulfilled()(asyncThunks[0]); | |
| 5087 | - } | |
| 5088 | - return function (action) { | |
| 5089 | - var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; }); | |
| 5090 | - var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 5091 | - return combinedMatcher(action); | |
| 5092 | - }; | |
| 5093 | -} | |
| 5094 | -function isAsyncThunkAction() { | |
| 5095 | - var asyncThunks = []; | |
| 5096 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5097 | - asyncThunks[_i] = arguments[_i]; | |
| 5098 | - } | |
| 5099 | - if (asyncThunks.length === 0) { | |
| 5100 | - return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); }; | |
| 5101 | - } | |
| 5102 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5103 | - return isAsyncThunkAction()(asyncThunks[0]); | |
| 5104 | - } | |
| 5105 | - return function (action) { | |
| 5106 | - var matchers = []; | |
| 5107 | - for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) { | |
| 5108 | - var asyncThunk = asyncThunks_1[_i]; | |
| 5109 | - matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled); | |
| 5110 | - } | |
| 5111 | - var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 5112 | - return combinedMatcher(action); | |
| 5113 | - }; | |
| 5114 | -} | |
| 5115 | -// src/listenerMiddleware/utils.ts | |
| 5116 | -var assertFunction = function (func, expected) { | |
| 5117 | - if (typeof func !== "function") { | |
| 5118 | - throw new TypeError(expected + " is not a function"); | |
| 5119 | - } | |
| 5120 | -}; | |
| 5121 | -var noop = function () { | |
| 5122 | -}; | |
| 5123 | -var catchRejection = function (promise2, onError) { | |
| 5124 | - if (onError === void 0) { onError = noop; } | |
| 5125 | - promise2.catch(onError); | |
| 5126 | - return promise2; | |
| 5127 | -}; | |
| 5128 | -var addAbortSignalListener = function (abortSignal, callback) { | |
| 5129 | - abortSignal.addEventListener("abort", callback, { once: true }); | |
| 5130 | - return function () { return abortSignal.removeEventListener("abort", callback); }; | |
| 5131 | -}; | |
| 5132 | -var abortControllerWithReason = function (abortController, reason) { | |
| 5133 | - var signal = abortController.signal; | |
| 5134 | - if (signal.aborted) { | |
| 5135 | - return; | |
| 5136 | - } | |
| 5137 | - if (!("reason" in signal)) { | |
| 5138 | - Object.defineProperty(signal, "reason", { | |
| 5139 | - enumerable: true, | |
| 5140 | - value: reason, | |
| 5141 | - configurable: true, | |
| 5142 | - writable: true | |
| 5143 | - }); | |
| 5144 | - } | |
| 5145 | - ; | |
| 5146 | - abortController.abort(reason); | |
| 5147 | -}; | |
| 5148 | -// src/listenerMiddleware/exceptions.ts | |
| 5149 | -var task = "task"; | |
| 5150 | -var listener = "listener"; | |
| 5151 | -var completed = "completed"; | |
| 5152 | -var cancelled = "cancelled"; | |
| 5153 | -var taskCancelled = "task-" + cancelled; | |
| 5154 | -var taskCompleted = "task-" + completed; | |
| 5155 | -var listenerCancelled = listener + "-" + cancelled; | |
| 5156 | -var listenerCompleted = listener + "-" + completed; | |
| 5157 | -var TaskAbortError = /** @class */ (function () { | |
| 5158 | - function TaskAbortError(code) { | |
| 5159 | - this.code = code; | |
| 5160 | - this.name = "TaskAbortError"; | |
| 5161 | - this.message = task + " " + cancelled + " (reason: " + code + ")"; | |
| 5162 | - } | |
| 5163 | - return TaskAbortError; | |
| 5164 | -}()); | |
| 5165 | -// src/listenerMiddleware/task.ts | |
| 5166 | -var validateActive = function (signal) { | |
| 5167 | - if (signal.aborted) { | |
| 5168 | - throw new TaskAbortError(signal.reason); | |
| 5169 | - } | |
| 5170 | -}; | |
| 5171 | -function raceWithSignal(signal, promise2) { | |
| 5172 | - var cleanup = noop; | |
| 5173 | - return new Promise(function (resolve, reject) { | |
| 5174 | - var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); }; | |
| 5175 | - if (signal.aborted) { | |
| 5176 | - notifyRejection(); | |
| 5177 | - return; | |
| 5178 | - } | |
| 5179 | - cleanup = addAbortSignalListener(signal, notifyRejection); | |
| 5180 | - promise2.finally(function () { return cleanup(); }).then(resolve, reject); | |
| 5181 | - }).finally(function () { | |
| 5182 | - cleanup = noop; | |
| 5183 | - }); | |
| 5184 | -} | |
| 5185 | -var runTask = function (task2, cleanUp) { return __async(void 0, null, function () { | |
| 5186 | - var value, error_1; | |
| 5187 | - return __generator(this, function (_c) { | |
| 5188 | - switch (_c.label) { | |
| 5189 | - case 0: | |
| 5190 | - _c.trys.push([0, 3, 4, 5]); | |
| 5191 | - return [4 /*yield*/, Promise.resolve()]; | |
| 5192 | - case 1: | |
| 5193 | - _c.sent(); | |
| 5194 | - return [4 /*yield*/, task2()]; | |
| 5195 | - case 2: | |
| 5196 | - value = _c.sent(); | |
| 5197 | - return [2 /*return*/, { | |
| 5198 | - status: "ok", | |
| 5199 | - value: value | |
| 5200 | - }]; | |
| 5201 | - case 3: | |
| 5202 | - error_1 = _c.sent(); | |
| 5203 | - return [2 /*return*/, { | |
| 5204 | - status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected", | |
| 5205 | - error: error_1 | |
| 5206 | - }]; | |
| 5207 | - case 4: | |
| 5208 | - cleanUp == null ? void 0 : cleanUp(); | |
| 5209 | - return [7 /*endfinally*/]; | |
| 5210 | - case 5: return [2 /*return*/]; | |
| 5211 | - } | |
| 5212 | - }); | |
| 5213 | -}); }; | |
| 5214 | -var createPause = function (signal) { | |
| 5215 | - return function (promise2) { | |
| 5216 | - return catchRejection(raceWithSignal(signal, promise2).then(function (output) { | |
| 5217 | - validateActive(signal); | |
| 5218 | - return output; | |
| 5219 | - })); | |
| 5220 | - }; | |
| 5221 | -}; | |
| 5222 | -var createDelay = function (signal) { | |
| 5223 | - var pause = createPause(signal); | |
| 5224 | - return function (timeoutMs) { | |
| 5225 | - return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); })); | |
| 5226 | - }; | |
| 5227 | -}; | |
| 5228 | -// src/listenerMiddleware/index.ts | |
| 5229 | -var assign = Object.assign; | |
| 5230 | -var INTERNAL_NIL_TOKEN = {}; | |
| 5231 | -var alm = "listenerMiddleware"; | |
| 5232 | -var createFork = function (parentAbortSignal, parentBlockingPromises) { | |
| 5233 | - var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); }; | |
| 5234 | - return function (taskExecutor, opts) { | |
| 5235 | - assertFunction(taskExecutor, "taskExecutor"); | |
| 5236 | - var childAbortController = new AbortController(); | |
| 5237 | - linkControllers(childAbortController); | |
| 5238 | - var result = runTask(function () { return __async(void 0, null, function () { | |
| 5239 | - var result2; | |
| 5240 | - return __generator(this, function (_c) { | |
| 5241 | - switch (_c.label) { | |
| 5242 | - case 0: | |
| 5243 | - validateActive(parentAbortSignal); | |
| 5244 | - validateActive(childAbortController.signal); | |
| 5245 | - return [4 /*yield*/, taskExecutor({ | |
| 5246 | - pause: createPause(childAbortController.signal), | |
| 5247 | - delay: createDelay(childAbortController.signal), | |
| 5248 | - signal: childAbortController.signal | |
| 5249 | - })]; | |
| 5250 | - case 1: | |
| 5251 | - result2 = _c.sent(); | |
| 5252 | - validateActive(childAbortController.signal); | |
| 5253 | - return [2 /*return*/, result2]; | |
| 5254 | - } | |
| 5255 | - }); | |
| 5256 | - }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); }); | |
| 5257 | - if (opts == null ? void 0 : opts.autoJoin) { | |
| 5258 | - parentBlockingPromises.push(result); | |
| 5259 | - } | |
| 5260 | - return { | |
| 5261 | - result: createPause(parentAbortSignal)(result), | |
| 5262 | - cancel: function () { | |
| 5263 | - abortControllerWithReason(childAbortController, taskCancelled); | |
| 5264 | - } | |
| 5265 | - }; | |
| 5266 | - }; | |
| 5267 | -}; | |
| 5268 | -var createTakePattern = function (startListening, signal) { | |
| 5269 | - var take = function (predicate, timeout) { return __async(void 0, null, function () { | |
| 5270 | - var unsubscribe, tuplePromise, promises, output; | |
| 5271 | - return __generator(this, function (_c) { | |
| 5272 | - switch (_c.label) { | |
| 5273 | - case 0: | |
| 5274 | - validateActive(signal); | |
| 5275 | - unsubscribe = function () { | |
| 5276 | - }; | |
| 5277 | - tuplePromise = new Promise(function (resolve, reject) { | |
| 5278 | - var stopListening = startListening({ | |
| 5279 | - predicate: predicate, | |
| 5280 | - effect: function (action, listenerApi) { | |
| 5281 | - listenerApi.unsubscribe(); | |
| 5282 | - resolve([ | |
| 5283 | - action, | |
| 5284 | - listenerApi.getState(), | |
| 5285 | - listenerApi.getOriginalState() | |
| 5286 | - ]); | |
| 5287 | - } | |
| 5288 | - }); | |
| 5289 | - unsubscribe = function () { | |
| 5290 | - stopListening(); | |
| 5291 | - reject(); | |
| 5292 | - }; | |
| 5293 | - }); | |
| 5294 | - promises = [ | |
| 5295 | - tuplePromise | |
| 5296 | - ]; | |
| 5297 | - if (timeout != null) { | |
| 5298 | - promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); })); | |
| 5299 | - } | |
| 5300 | - _c.label = 1; | |
| 5301 | - case 1: | |
| 5302 | - _c.trys.push([1, , 3, 4]); | |
| 5303 | - return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))]; | |
| 5304 | - case 2: | |
| 5305 | - output = _c.sent(); | |
| 5306 | - validateActive(signal); | |
| 5307 | - return [2 /*return*/, output]; | |
| 5308 | - case 3: | |
| 5309 | - unsubscribe(); | |
| 5310 | - return [7 /*endfinally*/]; | |
| 5311 | - case 4: return [2 /*return*/]; | |
| 5312 | - } | |
| 5313 | - }); | |
| 5314 | - }); }; | |
| 5315 | - return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); }; | |
| 5316 | -}; | |
| 5317 | -var getListenerEntryPropsFrom = function (options) { | |
| 5318 | - var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect; | |
| 5319 | - if (type) { | |
| 5320 | - predicate = createAction(type).match; | |
| 5321 | - } | |
| 5322 | - else if (actionCreator) { | |
| 5323 | - type = actionCreator.type; | |
| 5324 | - predicate = actionCreator.match; | |
| 5325 | - } | |
| 5326 | - else if (matcher) { | |
| 5327 | - predicate = matcher; | |
| 5328 | - } | |
| 5329 | - else if (predicate) { | |
| 5330 | - } | |
| 5331 | - else { | |
| 5332 | - throw new Error("Creating or removing a listener requires one of the known fields for matching an action"); | |
| 5333 | - } | |
| 5334 | - assertFunction(effect, "options.listener"); | |
| 5335 | - return { predicate: predicate, type: type, effect: effect }; | |
| 5336 | -}; | |
| 5337 | -var createListenerEntry = function (options) { | |
| 5338 | - var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect; | |
| 5339 | - var id = nanoid(); | |
| 5340 | - var entry = { | |
| 5341 | - id: id, | |
| 5342 | - effect: effect, | |
| 5343 | - type: type, | |
| 5344 | - predicate: predicate, | |
| 5345 | - pending: new Set(), | |
| 5346 | - unsubscribe: function () { | |
| 5347 | - throw new Error("Unsubscribe not initialized"); | |
| 5348 | - } | |
| 5349 | - }; | |
| 5350 | - return entry; | |
| 5351 | -}; | |
| 5352 | -var cancelActiveListeners = function (entry) { | |
| 5353 | - entry.pending.forEach(function (controller) { | |
| 5354 | - abortControllerWithReason(controller, listenerCancelled); | |
| 5355 | - }); | |
| 5356 | -}; | |
| 5357 | -var createClearListenerMiddleware = function (listenerMap) { | |
| 5358 | - return function () { | |
| 5359 | - listenerMap.forEach(cancelActiveListeners); | |
| 5360 | - listenerMap.clear(); | |
| 5361 | - }; | |
| 5362 | -}; | |
| 5363 | -var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) { | |
| 5364 | - try { | |
| 5365 | - errorHandler(errorToNotify, errorInfo); | |
| 5366 | - } | |
| 5367 | - catch (errorHandlerError) { | |
| 5368 | - setTimeout(function () { | |
| 5369 | - throw errorHandlerError; | |
| 5370 | - }, 0); | |
| 5371 | - } | |
| 5372 | -}; | |
| 5373 | -var addListener = createAction(alm + "/add"); | |
| 5374 | -var clearAllListeners = createAction(alm + "/removeAll"); | |
| 5375 | -var removeListener = createAction(alm + "/remove"); | |
| 5376 | -var defaultErrorHandler = function () { | |
| 5377 | - var args = []; | |
| 5378 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5379 | - args[_i] = arguments[_i]; | |
| 5380 | - } | |
| 5381 | - console.error.apply(console, __spreadArray([alm + "/error"], args)); | |
| 5382 | -}; | |
| 5383 | -function createListenerMiddleware(middlewareOptions) { | |
| 5384 | - var _this = this; | |
| 5385 | - if (middlewareOptions === void 0) { middlewareOptions = {}; } | |
| 5386 | - var listenerMap = new Map(); | |
| 5387 | - var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c; | |
| 5388 | - assertFunction(onError, "onError"); | |
| 5389 | - var insertEntry = function (entry) { | |
| 5390 | - entry.unsubscribe = function () { return listenerMap.delete(entry.id); }; | |
| 5391 | - listenerMap.set(entry.id, entry); | |
| 5392 | - return function (cancelOptions) { | |
| 5393 | - entry.unsubscribe(); | |
| 5394 | - if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) { | |
| 5395 | - cancelActiveListeners(entry); | |
| 5396 | - } | |
| 5397 | - }; | |
| 5398 | - }; | |
| 5399 | - var findListenerEntry = function (comparator) { | |
| 5400 | - for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) { | |
| 5401 | - var entry = _c[_i]; | |
| 5402 | - if (comparator(entry)) { | |
| 5403 | - return entry; | |
| 5404 | - } | |
| 5405 | - } | |
| 5406 | - return void 0; | |
| 5407 | - }; | |
| 5408 | - var startListening = function (options) { | |
| 5409 | - var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; }); | |
| 5410 | - if (!entry) { | |
| 5411 | - entry = createListenerEntry(options); | |
| 5412 | - } | |
| 5413 | - return insertEntry(entry); | |
| 5414 | - }; | |
| 5415 | - var stopListening = function (options) { | |
| 5416 | - var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate; | |
| 5417 | - var entry = findListenerEntry(function (entry2) { | |
| 5418 | - var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate; | |
| 5419 | - return matchPredicateOrType && entry2.effect === effect; | |
| 5420 | - }); | |
| 5421 | - if (entry) { | |
| 5422 | - entry.unsubscribe(); | |
| 5423 | - if (options.cancelActive) { | |
| 5424 | - cancelActiveListeners(entry); | |
| 5425 | - } | |
| 5426 | - } | |
| 5427 | - return !!entry; | |
| 5428 | - }; | |
| 5429 | - var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () { | |
| 5430 | - var internalTaskController, take, autoJoinPromises, listenerError_1; | |
| 5431 | - return __generator(this, function (_c) { | |
| 5432 | - switch (_c.label) { | |
| 5433 | - case 0: | |
| 5434 | - internalTaskController = new AbortController(); | |
| 5435 | - take = createTakePattern(startListening, internalTaskController.signal); | |
| 5436 | - autoJoinPromises = []; | |
| 5437 | - _c.label = 1; | |
| 5438 | - case 1: | |
| 5439 | - _c.trys.push([1, 3, 4, 6]); | |
| 5440 | - entry.pending.add(internalTaskController); | |
| 5441 | - return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, { | |
| 5442 | - getOriginalState: getOriginalState, | |
| 5443 | - condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); }, | |
| 5444 | - take: take, | |
| 5445 | - delay: createDelay(internalTaskController.signal), | |
| 5446 | - pause: createPause(internalTaskController.signal), | |
| 5447 | - extra: extra, | |
| 5448 | - signal: internalTaskController.signal, | |
| 5449 | - fork: createFork(internalTaskController.signal, autoJoinPromises), | |
| 5450 | - unsubscribe: entry.unsubscribe, | |
| 5451 | - subscribe: function () { | |
| 5452 | - listenerMap.set(entry.id, entry); | |
| 5453 | - }, | |
| 5454 | - cancelActiveListeners: function () { | |
| 5455 | - entry.pending.forEach(function (controller, _, set) { | |
| 5456 | - if (controller !== internalTaskController) { | |
| 5457 | - abortControllerWithReason(controller, listenerCancelled); | |
| 5458 | - set.delete(controller); | |
| 5459 | - } | |
| 5460 | - }); | |
| 5461 | - } | |
| 5462 | - })))]; | |
| 5463 | - case 2: | |
| 5464 | - _c.sent(); | |
| 5465 | - return [3 /*break*/, 6]; | |
| 5466 | - case 3: | |
| 5467 | - listenerError_1 = _c.sent(); | |
| 5468 | - if (!(listenerError_1 instanceof TaskAbortError)) { | |
| 5469 | - safelyNotifyError(onError, listenerError_1, { | |
| 5470 | - raisedBy: "effect" | |
| 5471 | - }); | |
| 5472 | - } | |
| 5473 | - return [3 /*break*/, 6]; | |
| 5474 | - case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)]; | |
| 5475 | - case 5: | |
| 5476 | - _c.sent(); | |
| 5477 | - abortControllerWithReason(internalTaskController, listenerCompleted); | |
| 5478 | - entry.pending.delete(internalTaskController); | |
| 5479 | - return [7 /*endfinally*/]; | |
| 5480 | - case 6: return [2 /*return*/]; | |
| 5481 | - } | |
| 5482 | - }); | |
| 5483 | - }); }; | |
| 5484 | - var clearListenerMiddleware = createClearListenerMiddleware(listenerMap); | |
| 5485 | - var middleware = function (api) { return function (next) { return function (action) { | |
| 5486 | - if (!isAction(action)) { | |
| 5487 | - return next(action); | |
| 5488 | - } | |
| 5489 | - if (addListener.match(action)) { | |
| 5490 | - return startListening(action.payload); | |
| 5491 | - } | |
| 5492 | - if (clearAllListeners.match(action)) { | |
| 5493 | - clearListenerMiddleware(); | |
| 5494 | - return; | |
| 5495 | - } | |
| 5496 | - if (removeListener.match(action)) { | |
| 5497 | - return stopListening(action.payload); | |
| 5498 | - } | |
| 5499 | - var originalState = api.getState(); | |
| 5500 | - var getOriginalState = function () { | |
| 5501 | - if (originalState === INTERNAL_NIL_TOKEN) { | |
| 5502 | - throw new Error(alm + ": getOriginalState can only be called synchronously"); | |
| 5503 | - } | |
| 5504 | - return originalState; | |
| 5505 | - }; | |
| 5506 | - var result; | |
| 5507 | - try { | |
| 5508 | - result = next(action); | |
| 5509 | - if (listenerMap.size > 0) { | |
| 5510 | - var currentState = api.getState(); | |
| 5511 | - var listenerEntries = Array.from(listenerMap.values()); | |
| 5512 | - for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) { | |
| 5513 | - var entry = listenerEntries_1[_i]; | |
| 5514 | - var runListener = false; | |
| 5515 | - try { | |
| 5516 | - runListener = entry.predicate(action, currentState, originalState); | |
| 5517 | - } | |
| 5518 | - catch (predicateError) { | |
| 5519 | - runListener = false; | |
| 5520 | - safelyNotifyError(onError, predicateError, { | |
| 5521 | - raisedBy: "predicate" | |
| 5522 | - }); | |
| 5523 | - } | |
| 5524 | - if (!runListener) { | |
| 5525 | - continue; | |
| 5526 | - } | |
| 5527 | - notifyListener(entry, action, api, getOriginalState); | |
| 5528 | - } | |
| 5529 | - } | |
| 5530 | - } | |
| 5531 | - finally { | |
| 5532 | - originalState = INTERNAL_NIL_TOKEN; | |
| 5533 | - } | |
| 5534 | - return result; | |
| 5535 | - }; }; }; | |
| 5536 | - return { | |
| 5537 | - middleware: middleware, | |
| 5538 | - startListening: startListening, | |
| 5539 | - stopListening: stopListening, | |
| 5540 | - clearListeners: clearListenerMiddleware | |
| 5541 | - }; | |
| 5542 | -} | |
| 5543 | -// src/autoBatchEnhancer.ts | |
| 5544 | -var SHOULD_AUTOBATCH = "RTK_autoBatch"; | |
| 5545 | -var prepareAutoBatched = function () { return function (payload) { | |
| 5546 | - var _c; | |
| 5547 | - return ({ | |
| 5548 | - payload: payload, | |
| 5549 | - meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c) | |
| 5550 | - }); | |
| 5551 | -}; }; | |
| 5552 | -var promise; | |
| 5553 | -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 () { | |
| 5554 | - throw err; | |
| 5555 | -}, 0); }); }; | |
| 5556 | -var createQueueWithTimer = function (timeout) { | |
| 5557 | - return function (notify) { | |
| 5558 | - setTimeout(notify, timeout); | |
| 5559 | - }; | |
| 5560 | -}; | |
| 5561 | -var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10); | |
| 5562 | -var autoBatchEnhancer = function (options) { | |
| 5563 | - if (options === void 0) { options = { type: "raf" }; } | |
| 5564 | - return function (next) { return function () { | |
| 5565 | - var args = []; | |
| 5566 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5567 | - args[_i] = arguments[_i]; | |
| 5568 | - } | |
| 5569 | - var store = next.apply(void 0, args); | |
| 5570 | - var notifying = true; | |
| 5571 | - var shouldNotifyAtEndOfTick = false; | |
| 5572 | - var notificationQueued = false; | |
| 5573 | - var listeners = new Set(); | |
| 5574 | - var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout); | |
| 5575 | - var notifyListeners = function () { | |
| 5576 | - notificationQueued = false; | |
| 5577 | - if (shouldNotifyAtEndOfTick) { | |
| 5578 | - shouldNotifyAtEndOfTick = false; | |
| 5579 | - listeners.forEach(function (l) { return l(); }); | |
| 5580 | - } | |
| 5581 | - }; | |
| 5582 | - return Object.assign({}, store, { | |
| 5583 | - subscribe: function (listener2) { | |
| 5584 | - var wrappedListener = function () { return notifying && listener2(); }; | |
| 5585 | - var unsubscribe = store.subscribe(wrappedListener); | |
| 5586 | - listeners.add(listener2); | |
| 5587 | - return function () { | |
| 5588 | - unsubscribe(); | |
| 5589 | - listeners.delete(listener2); | |
| 5590 | - }; | |
| 5591 | - }, | |
| 5592 | - dispatch: function (action) { | |
| 5593 | - var _a; | |
| 5594 | - try { | |
| 5595 | - notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]); | |
| 5596 | - shouldNotifyAtEndOfTick = !notifying; | |
| 5597 | - if (shouldNotifyAtEndOfTick) { | |
| 5598 | - if (!notificationQueued) { | |
| 5599 | - notificationQueued = true; | |
| 5600 | - queueCallback(notifyListeners); | |
| 5601 | - } | |
| 5602 | - } | |
| 5603 | - return store.dispatch(action); | |
| 5604 | - } | |
| 5605 | - finally { | |
| 5606 | - notifying = true; | |
| 5607 | - } | |
| 5608 | - } | |
| 5609 | - }); | |
| 5610 | - }; }; | |
| 5611 | -}; | |
| 5612 | -// src/index.ts | |
| 5613 | -(0,immer__WEBPACK_IMPORTED_MODULE_0__.enableES5)(); | |
| 5614 | - | |
| 5615 | -//# sourceMappingURL=redux-toolkit.esm.js.map | |
| 5616 | - | |
| 5617 | -/***/ }), | |
| 5618 | - | |
| 5619 | -/***/ "../node_modules/immer/dist/immer.esm.mjs": | |
| 5620 | -/*!************************************************!*\ | |
| 5621 | - !*** ../node_modules/immer/dist/immer.esm.mjs ***! | |
| 5622 | - \************************************************/ | |
| 5623 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 5624 | - | |
| 5625 | -"use strict"; | |
| 5626 | -__webpack_require__.r(__webpack_exports__); | |
| 5627 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 5628 | -/* harmony export */ Immer: () => (/* binding */ un), | |
| 5629 | -/* harmony export */ applyPatches: () => (/* binding */ pn), | |
| 5630 | -/* harmony export */ castDraft: () => (/* binding */ K), | |
| 5631 | -/* harmony export */ castImmutable: () => (/* binding */ $), | |
| 5632 | -/* harmony export */ createDraft: () => (/* binding */ ln), | |
| 5633 | -/* harmony export */ current: () => (/* binding */ R), | |
| 5634 | -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), | |
| 5635 | -/* harmony export */ enableAllPlugins: () => (/* binding */ J), | |
| 5636 | -/* harmony export */ enableES5: () => (/* binding */ F), | |
| 5637 | -/* harmony export */ enableMapSet: () => (/* binding */ C), | |
| 5638 | -/* harmony export */ enablePatches: () => (/* binding */ T), | |
| 5639 | -/* harmony export */ finishDraft: () => (/* binding */ dn), | |
| 5640 | -/* harmony export */ freeze: () => (/* binding */ d), | |
| 5641 | -/* harmony export */ immerable: () => (/* binding */ L), | |
| 5642 | -/* harmony export */ isDraft: () => (/* binding */ r), | |
| 5643 | -/* harmony export */ isDraftable: () => (/* binding */ t), | |
| 5644 | -/* harmony export */ nothing: () => (/* binding */ H), | |
| 5645 | -/* harmony export */ original: () => (/* binding */ e), | |
| 5646 | -/* harmony export */ produce: () => (/* binding */ fn), | |
| 5647 | -/* harmony export */ produceWithPatches: () => (/* binding */ cn), | |
| 5648 | -/* harmony export */ setAutoFreeze: () => (/* binding */ sn), | |
| 5649 | -/* harmony export */ setUseProxies: () => (/* binding */ vn) | |
| 5650 | -/* harmony export */ }); | |
| 5651 | -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 | |
| 5652 | -}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); | |
| 5653 | -//# sourceMappingURL=immer.esm.js.map | |
| 5654 | - | |
| 5655 | - | |
| 5656 | -/***/ }), | |
| 5657 | - | |
| 5658 | 4711 | /***/ "../node_modules/redux-thunk/es/index.js": |
| 5659 | 4712 | /*!***********************************************!*\ |
| 5660 | 4713 | !*** ../node_modules/redux-thunk/es/index.js ***! |
| 5661 | 4714 | \***********************************************/ |
| @@ -5709,15 +4762,15 @@ | ||
| 5709 | 4762 | |
| 5710 | 4763 | "use strict"; |
| 5711 | 4764 | __webpack_require__.r(__webpack_exports__); |
| 5712 | 4765 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 5713 | -/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* binding */ ActionTypes), | |
| 5714 | -/* harmony export */ applyMiddleware: () => (/* binding */ applyMiddleware), | |
| 5715 | -/* harmony export */ bindActionCreators: () => (/* binding */ bindActionCreators), | |
| 5716 | -/* harmony export */ combineReducers: () => (/* binding */ combineReducers), | |
| 5717 | -/* harmony export */ compose: () => (/* binding */ compose), | |
| 5718 | -/* harmony export */ createStore: () => (/* binding */ createStore), | |
| 5719 | -/* harmony export */ legacy_createStore: () => (/* binding */ legacy_createStore) | |
| 4766 | +/* harmony export */ "__DO_NOT_USE__ActionTypes": () => (/* binding */ ActionTypes), | |
| 4767 | +/* harmony export */ "applyMiddleware": () => (/* binding */ applyMiddleware), | |
| 4768 | +/* harmony export */ "bindActionCreators": () => (/* binding */ bindActionCreators), | |
| 4769 | +/* harmony export */ "combineReducers": () => (/* binding */ combineReducers), | |
| 4770 | +/* harmony export */ "compose": () => (/* binding */ compose), | |
| 4771 | +/* harmony export */ "createStore": () => (/* binding */ createStore), | |
| 4772 | +/* harmony export */ "legacy_createStore": () => (/* binding */ legacy_createStore) | |
| 5720 | 4773 | /* harmony export */ }); |
| 5721 | 4774 | /* 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"); |
| 5722 | 4775 | |
| 5723 | 4776 | |
| @@ -6436,11 +5489,11 @@ | ||
| 6436 | 5489 | |
| 6437 | 5490 | "use strict"; |
| 6438 | 5491 | __webpack_require__.r(__webpack_exports__); |
| 6439 | 5492 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 6440 | -/* harmony export */ createCacheKeyComparator: () => (/* binding */ createCacheKeyComparator), | |
| 6441 | -/* harmony export */ defaultEqualityCheck: () => (/* binding */ defaultEqualityCheck), | |
| 6442 | -/* harmony export */ defaultMemoize: () => (/* binding */ defaultMemoize) | |
| 5493 | +/* harmony export */ "createCacheKeyComparator": () => (/* binding */ createCacheKeyComparator), | |
| 5494 | +/* harmony export */ "defaultEqualityCheck": () => (/* binding */ defaultEqualityCheck), | |
| 5495 | +/* harmony export */ "defaultMemoize": () => (/* binding */ defaultMemoize) | |
| 6443 | 5496 | /* harmony export */ }); |
| 6444 | 5497 | // Cache implementation based on Erik Rasmussen's `lru-memoize`: |
| 6445 | 5498 | // https://github.com/erikras/lru-memoize |
| 6446 | 5499 | var NOT_FOUND = 'NOT_FOUND'; |
| @@ -6599,13 +5652,13 @@ | ||
| 6599 | 5652 | |
| 6600 | 5653 | "use strict"; |
| 6601 | 5654 | __webpack_require__.r(__webpack_exports__); |
| 6602 | 5655 | /* harmony export */ __webpack_require__.d(__webpack_exports__, { |
| 6603 | -/* harmony export */ createSelector: () => (/* binding */ createSelector), | |
| 6604 | -/* harmony export */ createSelectorCreator: () => (/* binding */ createSelectorCreator), | |
| 6605 | -/* harmony export */ createStructuredSelector: () => (/* binding */ createStructuredSelector), | |
| 6606 | -/* harmony export */ defaultEqualityCheck: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck), | |
| 6607 | -/* harmony export */ defaultMemoize: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize) | |
| 5656 | +/* harmony export */ "createSelector": () => (/* binding */ createSelector), | |
| 5657 | +/* harmony export */ "createSelectorCreator": () => (/* binding */ createSelectorCreator), | |
| 5658 | +/* harmony export */ "createStructuredSelector": () => (/* binding */ createStructuredSelector), | |
| 5659 | +/* harmony export */ "defaultEqualityCheck": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck), | |
| 5660 | +/* harmony export */ "defaultMemoize": () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize) | |
| 6608 | 5661 | /* harmony export */ }); |
| 6609 | 5662 | /* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js"); |
| 6610 | 5663 | |
| 6611 | 5664 | |
| @@ -6737,8 +5790,679 @@ | ||
| 6737 | 5790 | }); |
| 6738 | 5791 | return resultSelector; |
| 6739 | 5792 | }; |
| 6740 | 5793 | |
| 5794 | +/***/ }), | |
| 5795 | + | |
| 5796 | +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 5797 | +/*!******************************************************************!*\ | |
| 5798 | + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 5799 | + \******************************************************************/ | |
| 5800 | +/***/ ((module) => { | |
| 5801 | + | |
| 5802 | +function _arrayLikeToArray(arr, len) { | |
| 5803 | + if (len == null || len > arr.length) len = arr.length; | |
| 5804 | + for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; | |
| 5805 | + return arr2; | |
| 5806 | +} | |
| 5807 | +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5808 | + | |
| 5809 | +/***/ }), | |
| 5810 | + | |
| 5811 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 5812 | +/*!****************************************************************!*\ | |
| 5813 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 5814 | + \****************************************************************/ | |
| 5815 | +/***/ ((module) => { | |
| 5816 | + | |
| 5817 | +function _arrayWithHoles(arr) { | |
| 5818 | + if (Array.isArray(arr)) return arr; | |
| 5819 | +} | |
| 5820 | +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5821 | + | |
| 5822 | +/***/ }), | |
| 5823 | + | |
| 5824 | +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 5825 | +/*!***********************************************************************!*\ | |
| 5826 | + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 5827 | + \***********************************************************************/ | |
| 5828 | +/***/ ((module) => { | |
| 5829 | + | |
| 5830 | +function _assertThisInitialized(self) { | |
| 5831 | + if (self === void 0) { | |
| 5832 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 5833 | + } | |
| 5834 | + return self; | |
| 5835 | +} | |
| 5836 | +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5837 | + | |
| 5838 | +/***/ }), | |
| 5839 | + | |
| 5840 | +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 5841 | +/*!****************************************************************!*\ | |
| 5842 | + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 5843 | + \****************************************************************/ | |
| 5844 | +/***/ ((module) => { | |
| 5845 | + | |
| 5846 | +function _classCallCheck(instance, Constructor) { | |
| 5847 | + if (!(instance instanceof Constructor)) { | |
| 5848 | + throw new TypeError("Cannot call a class as a function"); | |
| 5849 | + } | |
| 5850 | +} | |
| 5851 | +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5852 | + | |
| 5853 | +/***/ }), | |
| 5854 | + | |
| 5855 | +/***/ "../node_modules/@babel/runtime/helpers/construct.js": | |
| 5856 | +/*!***********************************************************!*\ | |
| 5857 | + !*** ../node_modules/@babel/runtime/helpers/construct.js ***! | |
| 5858 | + \***********************************************************/ | |
| 5859 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5860 | + | |
| 5861 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 5862 | +var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); | |
| 5863 | +function _construct(Parent, args, Class) { | |
| 5864 | + if (isNativeReflectConstruct()) { | |
| 5865 | + module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5866 | + } else { | |
| 5867 | + module.exports = _construct = function _construct(Parent, args, Class) { | |
| 5868 | + var a = [null]; | |
| 5869 | + a.push.apply(a, args); | |
| 5870 | + var Constructor = Function.bind.apply(Parent, a); | |
| 5871 | + var instance = new Constructor(); | |
| 5872 | + if (Class) setPrototypeOf(instance, Class.prototype); | |
| 5873 | + return instance; | |
| 5874 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5875 | + } | |
| 5876 | + return _construct.apply(null, arguments); | |
| 5877 | +} | |
| 5878 | +module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5879 | + | |
| 5880 | +/***/ }), | |
| 5881 | + | |
| 5882 | +/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 5883 | +/*!*************************************************************!*\ | |
| 5884 | + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 5885 | + \*************************************************************/ | |
| 5886 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5887 | + | |
| 5888 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 5889 | +function _defineProperties(target, props) { | |
| 5890 | + for (var i = 0; i < props.length; i++) { | |
| 5891 | + var descriptor = props[i]; | |
| 5892 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 5893 | + descriptor.configurable = true; | |
| 5894 | + if ("value" in descriptor) descriptor.writable = true; | |
| 5895 | + Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); | |
| 5896 | + } | |
| 5897 | +} | |
| 5898 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 5899 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 5900 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 5901 | + Object.defineProperty(Constructor, "prototype", { | |
| 5902 | + writable: false | |
| 5903 | + }); | |
| 5904 | + return Constructor; | |
| 5905 | +} | |
| 5906 | +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5907 | + | |
| 5908 | +/***/ }), | |
| 5909 | + | |
| 5910 | +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 5911 | +/*!****************************************************************!*\ | |
| 5912 | + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 5913 | + \****************************************************************/ | |
| 5914 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5915 | + | |
| 5916 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 5917 | +function _defineProperty(obj, key, value) { | |
| 5918 | + key = toPropertyKey(key); | |
| 5919 | + if (key in obj) { | |
| 5920 | + Object.defineProperty(obj, key, { | |
| 5921 | + value: value, | |
| 5922 | + enumerable: true, | |
| 5923 | + configurable: true, | |
| 5924 | + writable: true | |
| 5925 | + }); | |
| 5926 | + } else { | |
| 5927 | + obj[key] = value; | |
| 5928 | + } | |
| 5929 | + return obj; | |
| 5930 | +} | |
| 5931 | +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5932 | + | |
| 5933 | +/***/ }), | |
| 5934 | + | |
| 5935 | +/***/ "../node_modules/@babel/runtime/helpers/get.js": | |
| 5936 | +/*!*****************************************************!*\ | |
| 5937 | + !*** ../node_modules/@babel/runtime/helpers/get.js ***! | |
| 5938 | + \*****************************************************/ | |
| 5939 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5940 | + | |
| 5941 | +var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); | |
| 5942 | +function _get() { | |
| 5943 | + if (typeof Reflect !== "undefined" && Reflect.get) { | |
| 5944 | + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5945 | + } else { | |
| 5946 | + module.exports = _get = function _get(target, property, receiver) { | |
| 5947 | + var base = superPropBase(target, property); | |
| 5948 | + if (!base) return; | |
| 5949 | + var desc = Object.getOwnPropertyDescriptor(base, property); | |
| 5950 | + if (desc.get) { | |
| 5951 | + return desc.get.call(arguments.length < 3 ? target : receiver); | |
| 5952 | + } | |
| 5953 | + return desc.value; | |
| 5954 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5955 | + } | |
| 5956 | + return _get.apply(this, arguments); | |
| 5957 | +} | |
| 5958 | +module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5959 | + | |
| 5960 | +/***/ }), | |
| 5961 | + | |
| 5962 | +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 5963 | +/*!****************************************************************!*\ | |
| 5964 | + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 5965 | + \****************************************************************/ | |
| 5966 | +/***/ ((module) => { | |
| 5967 | + | |
| 5968 | +function _getPrototypeOf(o) { | |
| 5969 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 5970 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 5971 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5972 | + return _getPrototypeOf(o); | |
| 5973 | +} | |
| 5974 | +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5975 | + | |
| 5976 | +/***/ }), | |
| 5977 | + | |
| 5978 | +/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 5979 | +/*!**********************************************************!*\ | |
| 5980 | + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 5981 | + \**********************************************************/ | |
| 5982 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5983 | + | |
| 5984 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 5985 | +function _inherits(subClass, superClass) { | |
| 5986 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 5987 | + throw new TypeError("Super expression must either be null or a function"); | |
| 5988 | + } | |
| 5989 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 5990 | + constructor: { | |
| 5991 | + value: subClass, | |
| 5992 | + writable: true, | |
| 5993 | + configurable: true | |
| 5994 | + } | |
| 5995 | + }); | |
| 5996 | + Object.defineProperty(subClass, "prototype", { | |
| 5997 | + writable: false | |
| 5998 | + }); | |
| 5999 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 6000 | +} | |
| 6001 | +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6002 | + | |
| 6003 | +/***/ }), | |
| 6004 | + | |
| 6005 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 6006 | +/*!***********************************************************************!*\ | |
| 6007 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 6008 | + \***********************************************************************/ | |
| 6009 | +/***/ ((module) => { | |
| 6010 | + | |
| 6011 | +function _interopRequireDefault(obj) { | |
| 6012 | + return obj && obj.__esModule ? obj : { | |
| 6013 | + "default": obj | |
| 6014 | + }; | |
| 6015 | +} | |
| 6016 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6017 | + | |
| 6018 | +/***/ }), | |
| 6019 | + | |
| 6020 | +/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js": | |
| 6021 | +/*!******************************************************************!*\ | |
| 6022 | + !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***! | |
| 6023 | + \******************************************************************/ | |
| 6024 | +/***/ ((module) => { | |
| 6025 | + | |
| 6026 | +function _isNativeFunction(fn) { | |
| 6027 | + return Function.toString.call(fn).indexOf("[native code]") !== -1; | |
| 6028 | +} | |
| 6029 | +module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6030 | + | |
| 6031 | +/***/ }), | |
| 6032 | + | |
| 6033 | +/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js": | |
| 6034 | +/*!**************************************************************************!*\ | |
| 6035 | + !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***! | |
| 6036 | + \**************************************************************************/ | |
| 6037 | +/***/ ((module) => { | |
| 6038 | + | |
| 6039 | +function _isNativeReflectConstruct() { | |
| 6040 | + if (typeof Reflect === "undefined" || !Reflect.construct) return false; | |
| 6041 | + if (Reflect.construct.sham) return false; | |
| 6042 | + if (typeof Proxy === "function") return true; | |
| 6043 | + try { | |
| 6044 | + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
| 6045 | + return true; | |
| 6046 | + } catch (e) { | |
| 6047 | + return false; | |
| 6048 | + } | |
| 6049 | +} | |
| 6050 | +module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6051 | + | |
| 6052 | +/***/ }), | |
| 6053 | + | |
| 6054 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 6055 | +/*!**********************************************************************!*\ | |
| 6056 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 6057 | + \**********************************************************************/ | |
| 6058 | +/***/ ((module) => { | |
| 6059 | + | |
| 6060 | +function _iterableToArrayLimit(arr, i) { | |
| 6061 | + var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; | |
| 6062 | + if (null != _i) { | |
| 6063 | + var _s, | |
| 6064 | + _e, | |
| 6065 | + _x, | |
| 6066 | + _r, | |
| 6067 | + _arr = [], | |
| 6068 | + _n = !0, | |
| 6069 | + _d = !1; | |
| 6070 | + try { | |
| 6071 | + if (_x = (_i = _i.call(arr)).next, 0 === i) { | |
| 6072 | + if (Object(_i) !== _i) return; | |
| 6073 | + _n = !1; | |
| 6074 | + } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); | |
| 6075 | + } catch (err) { | |
| 6076 | + _d = !0, _e = err; | |
| 6077 | + } finally { | |
| 6078 | + try { | |
| 6079 | + if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; | |
| 6080 | + } finally { | |
| 6081 | + if (_d) throw _e; | |
| 6082 | + } | |
| 6083 | + } | |
| 6084 | + return _arr; | |
| 6085 | + } | |
| 6086 | +} | |
| 6087 | +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6088 | + | |
| 6089 | +/***/ }), | |
| 6090 | + | |
| 6091 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 6092 | +/*!*****************************************************************!*\ | |
| 6093 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 6094 | + \*****************************************************************/ | |
| 6095 | +/***/ ((module) => { | |
| 6096 | + | |
| 6097 | +function _nonIterableRest() { | |
| 6098 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 6099 | +} | |
| 6100 | +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6101 | + | |
| 6102 | +/***/ }), | |
| 6103 | + | |
| 6104 | +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 6105 | +/*!***************************************************************************!*\ | |
| 6106 | + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 6107 | + \***************************************************************************/ | |
| 6108 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 6109 | + | |
| 6110 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 6111 | +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 6112 | +function _possibleConstructorReturn(self, call) { | |
| 6113 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 6114 | + return call; | |
| 6115 | + } else if (call !== void 0) { | |
| 6116 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 6117 | + } | |
| 6118 | + return assertThisInitialized(self); | |
| 6119 | +} | |
| 6120 | +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6121 | + | |
| 6122 | +/***/ }), | |
| 6123 | + | |
| 6124 | +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 6125 | +/*!****************************************************************!*\ | |
| 6126 | + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 6127 | + \****************************************************************/ | |
| 6128 | +/***/ ((module) => { | |
| 6129 | + | |
| 6130 | +function _setPrototypeOf(o, p) { | |
| 6131 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 6132 | + o.__proto__ = p; | |
| 6133 | + return o; | |
| 6134 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6135 | + return _setPrototypeOf(o, p); | |
| 6136 | +} | |
| 6137 | +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6138 | + | |
| 6139 | +/***/ }), | |
| 6140 | + | |
| 6141 | +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 6142 | +/*!***************************************************************!*\ | |
| 6143 | + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 6144 | + \***************************************************************/ | |
| 6145 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 6146 | + | |
| 6147 | +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 6148 | +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 6149 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 6150 | +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 6151 | +function _slicedToArray(arr, i) { | |
| 6152 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 6153 | +} | |
| 6154 | +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6155 | + | |
| 6156 | +/***/ }), | |
| 6157 | + | |
| 6158 | +/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": | |
| 6159 | +/*!***************************************************************!*\ | |
| 6160 | + !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! | |
| 6161 | + \***************************************************************/ | |
| 6162 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 6163 | + | |
| 6164 | +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 6165 | +function _superPropBase(object, property) { | |
| 6166 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 6167 | + object = getPrototypeOf(object); | |
| 6168 | + if (object === null) break; | |
| 6169 | + } | |
| 6170 | + return object; | |
| 6171 | +} | |
| 6172 | +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6173 | + | |
| 6174 | +/***/ }), | |
| 6175 | + | |
| 6176 | +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 6177 | +/*!*************************************************************!*\ | |
| 6178 | + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 6179 | + \*************************************************************/ | |
| 6180 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 6181 | + | |
| 6182 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 6183 | +function _toPrimitive(input, hint) { | |
| 6184 | + if (_typeof(input) !== "object" || input === null) return input; | |
| 6185 | + var prim = input[Symbol.toPrimitive]; | |
| 6186 | + if (prim !== undefined) { | |
| 6187 | + var res = prim.call(input, hint || "default"); | |
| 6188 | + if (_typeof(res) !== "object") return res; | |
| 6189 | + throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 6190 | + } | |
| 6191 | + return (hint === "string" ? String : Number)(input); | |
| 6192 | +} | |
| 6193 | +module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6194 | + | |
| 6195 | +/***/ }), | |
| 6196 | + | |
| 6197 | +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 6198 | +/*!***************************************************************!*\ | |
| 6199 | + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 6200 | + \***************************************************************/ | |
| 6201 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 6202 | + | |
| 6203 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 6204 | +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 6205 | +function _toPropertyKey(arg) { | |
| 6206 | + var key = toPrimitive(arg, "string"); | |
| 6207 | + return _typeof(key) === "symbol" ? key : String(key); | |
| 6208 | +} | |
| 6209 | +module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6210 | + | |
| 6211 | +/***/ }), | |
| 6212 | + | |
| 6213 | +/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 6214 | +/*!********************************************************!*\ | |
| 6215 | + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 6216 | + \********************************************************/ | |
| 6217 | +/***/ ((module) => { | |
| 6218 | + | |
| 6219 | +function _typeof(obj) { | |
| 6220 | + "@babel/helpers - typeof"; | |
| 6221 | + | |
| 6222 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | |
| 6223 | + return typeof obj; | |
| 6224 | + } : function (obj) { | |
| 6225 | + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | |
| 6226 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); | |
| 6227 | +} | |
| 6228 | +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6229 | + | |
| 6230 | +/***/ }), | |
| 6231 | + | |
| 6232 | +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 6233 | +/*!****************************************************************************!*\ | |
| 6234 | + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 6235 | + \****************************************************************************/ | |
| 6236 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 6237 | + | |
| 6238 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 6239 | +function _unsupportedIterableToArray(o, minLen) { | |
| 6240 | + if (!o) return; | |
| 6241 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 6242 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 6243 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 6244 | + if (n === "Map" || n === "Set") return Array.from(o); | |
| 6245 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 6246 | +} | |
| 6247 | +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6248 | + | |
| 6249 | +/***/ }), | |
| 6250 | + | |
| 6251 | +/***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js": | |
| 6252 | +/*!*****************************************************************!*\ | |
| 6253 | + !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***! | |
| 6254 | + \*****************************************************************/ | |
| 6255 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 6256 | + | |
| 6257 | +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 6258 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 6259 | +var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js"); | |
| 6260 | +var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js"); | |
| 6261 | +function _wrapNativeSuper(Class) { | |
| 6262 | + var _cache = typeof Map === "function" ? new Map() : undefined; | |
| 6263 | + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | |
| 6264 | + if (Class === null || !isNativeFunction(Class)) return Class; | |
| 6265 | + if (typeof Class !== "function") { | |
| 6266 | + throw new TypeError("Super expression must either be null or a function"); | |
| 6267 | + } | |
| 6268 | + if (typeof _cache !== "undefined") { | |
| 6269 | + if (_cache.has(Class)) return _cache.get(Class); | |
| 6270 | + _cache.set(Class, Wrapper); | |
| 6271 | + } | |
| 6272 | + function Wrapper() { | |
| 6273 | + return construct(Class, arguments, getPrototypeOf(this).constructor); | |
| 6274 | + } | |
| 6275 | + Wrapper.prototype = Object.create(Class.prototype, { | |
| 6276 | + constructor: { | |
| 6277 | + value: Wrapper, | |
| 6278 | + enumerable: false, | |
| 6279 | + writable: true, | |
| 6280 | + configurable: true | |
| 6281 | + } | |
| 6282 | + }); | |
| 6283 | + return setPrototypeOf(Wrapper, Class); | |
| 6284 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6285 | + return _wrapNativeSuper(Class); | |
| 6286 | +} | |
| 6287 | +module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 6288 | + | |
| 6289 | +/***/ }), | |
| 6290 | + | |
| 6291 | +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js": | |
| 6292 | +/*!********************************************************************!*\ | |
| 6293 | + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! | |
| 6294 | + \********************************************************************/ | |
| 6295 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 6296 | + | |
| 6297 | +"use strict"; | |
| 6298 | +__webpack_require__.r(__webpack_exports__); | |
| 6299 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6300 | +/* harmony export */ "default": () => (/* binding */ _defineProperty) | |
| 6301 | +/* harmony export */ }); | |
| 6302 | +/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"); | |
| 6303 | + | |
| 6304 | +function _defineProperty(obj, key, value) { | |
| 6305 | + key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key); | |
| 6306 | + if (key in obj) { | |
| 6307 | + Object.defineProperty(obj, key, { | |
| 6308 | + value: value, | |
| 6309 | + enumerable: true, | |
| 6310 | + configurable: true, | |
| 6311 | + writable: true | |
| 6312 | + }); | |
| 6313 | + } else { | |
| 6314 | + obj[key] = value; | |
| 6315 | + } | |
| 6316 | + return obj; | |
| 6317 | +} | |
| 6318 | + | |
| 6319 | +/***/ }), | |
| 6320 | + | |
| 6321 | +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js": | |
| 6322 | +/*!*******************************************************************!*\ | |
| 6323 | + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! | |
| 6324 | + \*******************************************************************/ | |
| 6325 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 6326 | + | |
| 6327 | +"use strict"; | |
| 6328 | +__webpack_require__.r(__webpack_exports__); | |
| 6329 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6330 | +/* harmony export */ "default": () => (/* binding */ _objectSpread2) | |
| 6331 | +/* harmony export */ }); | |
| 6332 | +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js"); | |
| 6333 | + | |
| 6334 | +function ownKeys(object, enumerableOnly) { | |
| 6335 | + var keys = Object.keys(object); | |
| 6336 | + if (Object.getOwnPropertySymbols) { | |
| 6337 | + var symbols = Object.getOwnPropertySymbols(object); | |
| 6338 | + enumerableOnly && (symbols = symbols.filter(function (sym) { | |
| 6339 | + return Object.getOwnPropertyDescriptor(object, sym).enumerable; | |
| 6340 | + })), keys.push.apply(keys, symbols); | |
| 6341 | + } | |
| 6342 | + return keys; | |
| 6343 | +} | |
| 6344 | +function _objectSpread2(target) { | |
| 6345 | + for (var i = 1; i < arguments.length; i++) { | |
| 6346 | + var source = null != arguments[i] ? arguments[i] : {}; | |
| 6347 | + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { | |
| 6348 | + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); | |
| 6349 | + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { | |
| 6350 | + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | |
| 6351 | + }); | |
| 6352 | + } | |
| 6353 | + return target; | |
| 6354 | +} | |
| 6355 | + | |
| 6356 | +/***/ }), | |
| 6357 | + | |
| 6358 | +/***/ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js": | |
| 6359 | +/*!*****************************************************************!*\ | |
| 6360 | + !*** ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***! | |
| 6361 | + \*****************************************************************/ | |
| 6362 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 6363 | + | |
| 6364 | +"use strict"; | |
| 6365 | +__webpack_require__.r(__webpack_exports__); | |
| 6366 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6367 | +/* harmony export */ "default": () => (/* binding */ _toPrimitive) | |
| 6368 | +/* harmony export */ }); | |
| 6369 | +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js"); | |
| 6370 | + | |
| 6371 | +function _toPrimitive(input, hint) { | |
| 6372 | + if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(input) !== "object" || input === null) return input; | |
| 6373 | + var prim = input[Symbol.toPrimitive]; | |
| 6374 | + if (prim !== undefined) { | |
| 6375 | + var res = prim.call(input, hint || "default"); | |
| 6376 | + if ((0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(res) !== "object") return res; | |
| 6377 | + throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 6378 | + } | |
| 6379 | + return (hint === "string" ? String : Number)(input); | |
| 6380 | +} | |
| 6381 | + | |
| 6382 | +/***/ }), | |
| 6383 | + | |
| 6384 | +/***/ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js": | |
| 6385 | +/*!*******************************************************************!*\ | |
| 6386 | + !*** ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***! | |
| 6387 | + \*******************************************************************/ | |
| 6388 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 6389 | + | |
| 6390 | +"use strict"; | |
| 6391 | +__webpack_require__.r(__webpack_exports__); | |
| 6392 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6393 | +/* harmony export */ "default": () => (/* binding */ _toPropertyKey) | |
| 6394 | +/* harmony export */ }); | |
| 6395 | +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js"); | |
| 6396 | +/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"); | |
| 6397 | + | |
| 6398 | + | |
| 6399 | +function _toPropertyKey(arg) { | |
| 6400 | + var key = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arg, "string"); | |
| 6401 | + return (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key) === "symbol" ? key : String(key); | |
| 6402 | +} | |
| 6403 | + | |
| 6404 | +/***/ }), | |
| 6405 | + | |
| 6406 | +/***/ "../node_modules/@babel/runtime/helpers/esm/typeof.js": | |
| 6407 | +/*!************************************************************!*\ | |
| 6408 | + !*** ../node_modules/@babel/runtime/helpers/esm/typeof.js ***! | |
| 6409 | + \************************************************************/ | |
| 6410 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 6411 | + | |
| 6412 | +"use strict"; | |
| 6413 | +__webpack_require__.r(__webpack_exports__); | |
| 6414 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6415 | +/* harmony export */ "default": () => (/* binding */ _typeof) | |
| 6416 | +/* harmony export */ }); | |
| 6417 | +function _typeof(obj) { | |
| 6418 | + "@babel/helpers - typeof"; | |
| 6419 | + | |
| 6420 | + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | |
| 6421 | + return typeof obj; | |
| 6422 | + } : function (obj) { | |
| 6423 | + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | |
| 6424 | + }, _typeof(obj); | |
| 6425 | +} | |
| 6426 | + | |
| 6427 | +/***/ }), | |
| 6428 | + | |
| 6429 | +/***/ "../node_modules/immer/dist/immer.esm.mjs": | |
| 6430 | +/*!************************************************!*\ | |
| 6431 | + !*** ../node_modules/immer/dist/immer.esm.mjs ***! | |
| 6432 | + \************************************************/ | |
| 6433 | +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 6434 | + | |
| 6435 | +"use strict"; | |
| 6436 | +__webpack_require__.r(__webpack_exports__); | |
| 6437 | +/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6438 | +/* harmony export */ "Immer": () => (/* binding */ un), | |
| 6439 | +/* harmony export */ "applyPatches": () => (/* binding */ pn), | |
| 6440 | +/* harmony export */ "castDraft": () => (/* binding */ K), | |
| 6441 | +/* harmony export */ "castImmutable": () => (/* binding */ $), | |
| 6442 | +/* harmony export */ "createDraft": () => (/* binding */ ln), | |
| 6443 | +/* harmony export */ "current": () => (/* binding */ R), | |
| 6444 | +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), | |
| 6445 | +/* harmony export */ "enableAllPlugins": () => (/* binding */ J), | |
| 6446 | +/* harmony export */ "enableES5": () => (/* binding */ F), | |
| 6447 | +/* harmony export */ "enableMapSet": () => (/* binding */ C), | |
| 6448 | +/* harmony export */ "enablePatches": () => (/* binding */ T), | |
| 6449 | +/* harmony export */ "finishDraft": () => (/* binding */ dn), | |
| 6450 | +/* harmony export */ "freeze": () => (/* binding */ d), | |
| 6451 | +/* harmony export */ "immerable": () => (/* binding */ L), | |
| 6452 | +/* harmony export */ "isDraft": () => (/* binding */ r), | |
| 6453 | +/* harmony export */ "isDraftable": () => (/* binding */ t), | |
| 6454 | +/* harmony export */ "nothing": () => (/* binding */ H), | |
| 6455 | +/* harmony export */ "original": () => (/* binding */ e), | |
| 6456 | +/* harmony export */ "produce": () => (/* binding */ fn), | |
| 6457 | +/* harmony export */ "produceWithPatches": () => (/* binding */ cn), | |
| 6458 | +/* harmony export */ "setAutoFreeze": () => (/* binding */ sn), | |
| 6459 | +/* harmony export */ "setUseProxies": () => (/* binding */ vn) | |
| 6460 | +/* harmony export */ }); | |
| 6461 | +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)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}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); | |
| 6462 | +//# sourceMappingURL=immer.esm.js.map | |
| 6463 | + | |
| 6464 | + | |
| 6741 | 6465 | /***/ }) |
| 6742 | 6466 | |
| 6743 | 6467 | /******/ }); |
| 6744 | 6468 | /************************************************************************/ |
| @@ -6808,9 +6532,9 @@ | ||
| 6808 | 6532 | /******/ })(); |
| 6809 | 6533 | /******/ |
| 6810 | 6534 | /************************************************************************/ |
| 6811 | 6535 | var __webpack_exports__ = {}; |
| 6812 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 6536 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 6813 | 6537 | (() => { |
| 6814 | 6538 | "use strict"; |
| 6815 | 6539 | /*!*******************************************!*\ |
| 6816 | 6540 | !*** ../core/common/assets/js/modules.js ***! |
| @@ -6823,11 +6547,8 @@ | ||
| 6823 | 6547 | var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../modules/web-cli/assets/js/modules/component-base.js")); |
| 6824 | 6548 | var _componentModalBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-modal-base */ "../modules/web-cli/assets/js/modules/component-modal-base.js")); |
| 6825 | 6549 | var _hookBreak = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hook-break */ "../modules/web-cli/assets/js/modules/hook-break.js")); |
| 6826 | 6550 | _modules.default.common = { |
| 6827 | - /** | |
| 6828 | - * @deprecated since 2.9.0, use `$e.modules.ComponentBase` instead. | |
| 6829 | - */ | |
| 6830 | 6551 | get Component() { |
| 6831 | 6552 | // `elementorCommon` isn't available during it self initialize. |
| 6832 | 6553 | setTimeout(function () { |
| 6833 | 6554 | elementorDevTools.deprecation.deprecated('elementorModules.common.Component', '2.9.0', '$e.modules.ComponentBase'); |
| @@ -6833,11 +6554,8 @@ | ||
| 6833 | 6554 | elementorDevTools.deprecation.deprecated('elementorModules.common.Component', '2.9.0', '$e.modules.ComponentBase'); |
| 6834 | 6555 | }, 2000); |
| 6835 | 6556 | return _componentBase.default; |
| 6836 | 6557 | }, |
| 6837 | - /** | |
| 6838 | - * @deprecated since 2.9.0, use `$e.modules.ComponentModalBase` instead. | |
| 6839 | - */ | |
| 6840 | 6558 | get ComponentModal() { |
| 6841 | 6559 | // `elementorCommon` isn't available during it self initialize. |
| 6842 | 6560 | setTimeout(function () { |
| 6843 | 6561 | elementorDevTools.deprecation.deprecated('elementorModules.common.ComponentModal', '2.9.0', '$e.modules.ComponentModalBase'); |
| @@ -6843,11 +6561,8 @@ | ||
| 6843 | 6561 | elementorDevTools.deprecation.deprecated('elementorModules.common.ComponentModal', '2.9.0', '$e.modules.ComponentModalBase'); |
| 6844 | 6562 | }, 2000); |
| 6845 | 6563 | return _componentModalBase.default; |
| 6846 | 6564 | }, |
| 6847 | - /** | |
| 6848 | - * @deprecated since 2.9.0, use `$e.modules.HookBreak` instead. | |
| 6849 | - */ | |
| 6850 | 6565 | get HookBreak() { |
| 6851 | 6566 | // `elementorCommon` isn't available during it self initialize. |
| 6852 | 6567 | setTimeout(function () { |
| 6853 | 6568 | elementorDevTools.deprecation.deprecated('elementorModules.common.HookBreak', '2.9.0', '$e.modules.HookBreak'); |