PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.0-dev2
Elementor Website Builder – more than just a page builder v3.32.0-dev2
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | assets/js/app-loader.js +5802 -1807 4.3.0-beta3 → 3.32.0-dev2 View file →
@@ -1,1852 +1,5847 @@
1 -(function(_reduxjs_toolkit) {
1 +/*! elementor - v3.32.0 - 03-09-2025 */
2 +/******/ (() => { // webpackBootstrap
3 +/******/ var __webpack_modules__ = ({
2 4
3 -//#region \0rolldown/runtime.js
4 - var __create = Object.create;
5 - var __defProp = Object.defineProperty;
6 - var __name = (target, value) => __defProp(target, "name", {
7 - value,
8 - configurable: true
9 - });
10 - var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11 - var __getOwnPropNames = Object.getOwnPropertyNames;
12 - var __getProtoOf = Object.getPrototypeOf;
13 - var __hasOwnProp = Object.prototype.hasOwnProperty;
14 - var __esmMin = (fn, res, err) => () => {
15 - if (err) throw err[0];
16 - try {
17 - return fn && (res = fn(fn = 0)), res;
18 - } catch (e) {
19 - throw err = [e], e;
20 - }
21 - };
22 - var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
23 - var __exportAll = (all, no_symbols) => {
24 - let target = {};
25 - for (var name in all) {
26 - __defProp(target, name, {
27 - get: all[name],
28 - enumerable: true
29 - });
30 - }
31 - if (!no_symbols) {
32 - __defProp(target, Symbol.toStringTag, { value: "Module" });
33 - }
34 - return target;
35 - };
36 - var __copyProps = (to, from, except, desc) => {
37 - if (from && typeof from === "object" || typeof from === "function") {
38 - for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
39 - key = keys[i];
40 - if (!__hasOwnProp.call(to, key) && key !== except) {
41 - __defProp(to, key, {
42 - get: ((k) => from[k]).bind(null, key),
43 - enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
44 - });
45 - }
46 - }
47 - }
48 - return to;
49 - };
50 - var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
51 - value: mod,
52 - enumerable: true
53 - }) : target, mod));
5 +/***/ "../app/assets/js/loader/commands/close.js":
6 +/*!*************************************************!*\
7 + !*** ../app/assets/js/loader/commands/close.js ***!
8 + \*************************************************/
9 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
54 10
55 -//#endregion
11 +"use strict";
56 12
57 -//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js
58 - function _classCallCheck(a, n) {
59 - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
60 - }
61 13
62 -//#endregion
63 -//#region node_modules/@babel/runtime/helpers/esm/typeof.js
64 - function _typeof(o) {
65 - "@babel/helpers - typeof";
66 - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
67 - return typeof o;
68 - } : function(o) {
69 - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
70 - }, _typeof(o);
71 - }
72 - var init_typeof = __esmMin((() => {}));
14 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
15 +Object.defineProperty(exports, "__esModule", ({
16 + value: true
17 +}));
18 +exports["default"] = exports.Close = void 0;
19 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
20 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
21 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
22 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
23 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
24 +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)); }
25 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26 +var Close = exports.Close = /*#__PURE__*/function (_$e$modules$CommandBa) {
27 + function Close() {
28 + (0, _classCallCheck2.default)(this, Close);
29 + return _callSuper(this, Close, arguments);
30 + }
31 + (0, _inherits2.default)(Close, _$e$modules$CommandBa);
32 + return (0, _createClass2.default)(Close, [{
33 + key: "apply",
34 + value: function apply() {
35 + if (!this.component.close()) {
36 + return false;
37 + }
38 + this.component.iframe.remove();
39 + this.component.iframe = null;
40 + return true;
41 + }
42 + }]);
43 +}($e.modules.CommandBase);
44 +var _default = exports["default"] = Close;
73 45
74 -//#endregion
75 -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
76 - init_typeof();
77 - function toPrimitive(t, r) {
78 - if ("object" != _typeof(t) || !t) return t;
79 - var e = t[Symbol.toPrimitive];
80 - if (void 0 !== e) {
81 - var i = e.call(t, r || "default");
82 - if ("object" != _typeof(i)) return i;
83 - throw new TypeError("@@toPrimitive must return a primitive value.");
84 - }
85 - return ("string" === r ? String : Number)(t);
86 - }
46 +/***/ }),
87 47
88 -//#endregion
89 -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
90 - init_typeof();
91 - function toPropertyKey(t) {
92 - var i = toPrimitive(t, "string");
93 - return "symbol" == _typeof(i) ? i : i + "";
94 - }
48 +/***/ "../app/assets/js/loader/commands/index.js":
49 +/*!*************************************************!*\
50 + !*** ../app/assets/js/loader/commands/index.js ***!
51 + \*************************************************/
52 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
95 53
96 -//#endregion
97 -//#region node_modules/@babel/runtime/helpers/esm/createClass.js
98 - function _defineProperties(e, r) {
99 - for (var t = 0; t < r.length; t++) {
100 - var o = r[t];
101 - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
102 - }
103 - }
104 - function _createClass(e, r, t) {
105 - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
106 - }
54 +"use strict";
107 55
108 -//#endregion
109 -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
110 - function _defineProperty(e, r, t) {
111 - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
112 - value: t,
113 - enumerable: !0,
114 - configurable: !0,
115 - writable: !0
116 - }) : e[r] = t, e;
117 - }
118 56
119 -//#endregion
120 -//#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
121 - function _assertThisInitialized(e) {
122 - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
123 - return e;
124 - }
57 +Object.defineProperty(exports, "__esModule", ({
58 + value: true
59 +}));
60 +Object.defineProperty(exports, "Close", ({
61 + enumerable: true,
62 + get: function get() {
63 + return _close.Close;
64 + }
65 +}));
66 +Object.defineProperty(exports, "Load", ({
67 + enumerable: true,
68 + get: function get() {
69 + return _load.Load;
70 + }
71 +}));
72 +Object.defineProperty(exports, "Open", ({
73 + enumerable: true,
74 + get: function get() {
75 + return _open.Open;
76 + }
77 +}));
78 +var _close = __webpack_require__(/*! ./close */ "../app/assets/js/loader/commands/close.js");
79 +var _load = __webpack_require__(/*! ./load */ "../app/assets/js/loader/commands/load.js");
80 +var _open = __webpack_require__(/*! ./open */ "../app/assets/js/loader/commands/open.js");
125 81
126 -//#endregion
127 -//#region node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
128 - init_typeof();
129 - function _possibleConstructorReturn(t, e) {
130 - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
131 - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
132 - return _assertThisInitialized(t);
133 - }
82 +/***/ }),
134 83
135 -//#endregion
136 -//#region node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
137 - function _getPrototypeOf(t) {
138 - return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
139 - return t.__proto__ || Object.getPrototypeOf(t);
140 - }, _getPrototypeOf(t);
141 - }
84 +/***/ "../app/assets/js/loader/commands/load.js":
85 +/*!************************************************!*\
86 + !*** ../app/assets/js/loader/commands/load.js ***!
87 + \************************************************/
88 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
142 89
143 -//#endregion
144 -//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
145 - function _setPrototypeOf(t, e) {
146 - return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
147 - return t.__proto__ = e, t;
148 - }, _setPrototypeOf(t, e);
149 - }
90 +"use strict";
150 91
151 -//#endregion
152 -//#region node_modules/@babel/runtime/helpers/esm/inherits.js
153 - function _inherits(t, e) {
154 - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
155 - t.prototype = Object.create(e && e.prototype, { constructor: {
156 - value: t,
157 - writable: !0,
158 - configurable: !0
159 - } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e);
160 - }
161 92
162 -//#endregion
163 -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
164 - function _arrayWithHoles(r) {
165 - if (Array.isArray(r)) return r;
166 - }
93 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
94 +Object.defineProperty(exports, "__esModule", ({
95 + value: true
96 +}));
97 +exports["default"] = exports.Load = void 0;
98 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
99 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
100 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
101 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
102 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
103 +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)); }
104 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
105 +var Load = exports.Load = /*#__PURE__*/function (_$e$modules$CommandBa) {
106 + function Load() {
107 + (0, _classCallCheck2.default)(this, Load);
108 + return _callSuper(this, Load, arguments);
109 + }
110 + (0, _inherits2.default)(Load, _$e$modules$CommandBa);
111 + return (0, _createClass2.default)(Load, [{
112 + key: "apply",
113 + value: function apply(args) {
114 + var component = this.component;
115 + if (!component.iframe) {
116 + component.iframe = document.createElement('iframe');
117 + component.iframe.className = 'elementor-app-iframe';
118 + component.iframe.style.cssText = '' + 'display: none;' + 'width: 100%;' + 'height: 100%;' + 'position: fixed;' + 'top: 0;' + 'left: 0;' + 'z-index: 99999; /* Over WP Admin Bar */' + 'background-color: rgba(0, 0, 0, 0.8);';
119 + document.body.appendChild(component.iframe);
120 + }
121 + if (args.url === component.iframe.src) {
122 + return;
123 + }
124 + component.iframe.src = args.url;
125 + }
126 + }]);
127 +}($e.modules.CommandBase);
128 +var _default = exports["default"] = Load;
167 129
168 -//#endregion
169 -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
170 - function _iterableToArrayLimit(r, l) {
171 - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
172 - if (null != t) {
173 - var e;
174 - var n;
175 - var i;
176 - var u;
177 - var a = [];
178 - var f = !0;
179 - var o = !1;
180 - try {
181 - if (i = (t = t.call(r)).next, 0 === l) {
182 - if (Object(t) !== t) return;
183 - f = !1;
184 - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
185 - } catch (r) {
186 - o = !0, n = r;
187 - } finally {
188 - try {
189 - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
190 - } finally {
191 - if (o) throw n;
192 - }
193 - }
194 - return a;
195 - }
196 - }
130 +/***/ }),
197 131
198 -//#endregion
199 -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
200 - function _arrayLikeToArray$1(r, a) {
201 - (null == a || a > r.length) && (a = r.length);
202 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
203 - return n;
204 - }
205 - __name(_arrayLikeToArray$1, "_arrayLikeToArray");
132 +/***/ "../app/assets/js/loader/commands/open.js":
133 +/*!************************************************!*\
134 + !*** ../app/assets/js/loader/commands/open.js ***!
135 + \************************************************/
136 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
206 137
207 -//#endregion
208 -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
209 - function _unsupportedIterableToArray$1(r, a) {
210 - if (r) {
211 - if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
212 - var t = {}.toString.call(r).slice(8, -1);
213 - 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$1(r, a) : void 0;
214 - }
215 - }
216 - __name(_unsupportedIterableToArray$1, "_unsupportedIterableToArray");
138 +"use strict";
217 139
218 -//#endregion
219 -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
220 - function _nonIterableRest() {
221 - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
222 - }
223 140
224 -//#endregion
225 -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js
226 - function _slicedToArray(r, e) {
227 - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
228 - }
141 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
142 +Object.defineProperty(exports, "__esModule", ({
143 + value: true
144 +}));
145 +exports["default"] = exports.Open = void 0;
146 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
147 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
148 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
149 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
150 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
151 +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)); }
152 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
153 +var Open = exports.Open = /*#__PURE__*/function (_$e$modules$CommandBa) {
154 + function Open() {
155 + (0, _classCallCheck2.default)(this, Open);
156 + return _callSuper(this, Open, arguments);
157 + }
158 + (0, _inherits2.default)(Open, _$e$modules$CommandBa);
159 + return (0, _createClass2.default)(Open, [{
160 + key: "apply",
161 + value: function apply(args) {
162 + $e.route('app', args);
163 + return true;
164 + }
165 + }]);
166 +}($e.modules.CommandBase);
167 +var _default = exports["default"] = Open;
229 168
230 -//#endregion
231 -//#region node_modules/@babel/runtime/helpers/esm/superPropBase.js
232 - function _superPropBase(t, o) {
233 - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
234 - return t;
235 - }
169 +/***/ }),
236 170
237 -//#endregion
238 -//#region node_modules/@babel/runtime/helpers/esm/get.js
239 - function _get() {
240 - return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) {
241 - var p = _superPropBase(e, t);
242 - if (p) {
243 - var n = Object.getOwnPropertyDescriptor(p, t);
244 - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
245 - }
246 - }, _get.apply(null, arguments);
247 - }
171 +/***/ "../app/assets/js/loader/component.js":
172 +/*!********************************************!*\
173 + !*** ../app/assets/js/loader/component.js ***!
174 + \********************************************/
175 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
248 176
249 -//#endregion
250 -//#region assets/dev/js/modules/imports/instance-type.js
251 - function _superPropGet(t, o, e, r) {
252 - var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
253 - return 2 & r && "function" == typeof p ? function(t) {
254 - return p.apply(e, t);
255 - } : p;
256 - }
257 - var InstanceType = /*#__PURE__*/ function() {
258 - function InstanceType() {
259 - var _this = this;
260 - _classCallCheck(this, InstanceType);
261 - var target = this instanceof InstanceType ? this.constructor : void 0;
262 - var prototypes = [];
263 - while (target.__proto__ && target.__proto__.name) {
264 - prototypes.push(target.__proto__);
265 - target = target.__proto__;
266 - }
267 - prototypes.reverse().forEach(function(proto) {
268 - return _this instanceof proto;
269 - });
270 - }
271 - return _createClass(InstanceType, null, [{
272 - key: Symbol.hasInstance,
273 - value: function value(target) {
274 - /**
275 - * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
276 - * its give's opportunity to mange capabilities of instanceOf operator.
277 - * saving current class each time will give option later to handle instanceOf manually.
278 - */
279 - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]);
280 - if (target && !target.constructor.getInstanceType) return result;
281 - if (target) {
282 - if (!target.instanceTypes) target.instanceTypes = [];
283 - if (!result) {
284 - if (this.getInstanceType() === target.constructor.getInstanceType()) result = true;
285 - }
286 - if (result) {
287 - var name = this.getInstanceType === InstanceType.getInstanceType ? "BaseInstanceType" : this.getInstanceType();
288 - if (-1 === target.instanceTypes.indexOf(name)) target.instanceTypes.push(name);
289 - }
290 - }
291 - if (!result && target) result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
292 - return result;
293 - }
294 - }, {
295 - key: "getInstanceType",
296 - value: function getInstanceType() {
297 - elementorModules.ForceMethodImplementation();
298 - }
299 - }]);
300 - }();
177 +"use strict";
301 178
302 -//#endregion
303 -//#region assets/dev/js/editor/utils/is-instanceof.js
304 - function _createForOfIteratorHelper(r, e) {
305 - var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
306 - if (!t) {
307 - if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
308 - t && (r = t);
309 - var _n = 0;
310 - var F = function F() {};
311 - return {
312 - s: F,
313 - n: function n() {
314 - return _n >= r.length ? { done: !0 } : {
315 - done: !1,
316 - value: r[_n++]
317 - };
318 - },
319 - e: function e(r) {
320 - throw r;
321 - },
322 - f: F
323 - };
324 - }
325 - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
326 - }
327 - var o;
328 - var a = !0;
329 - var u = !1;
330 - return {
331 - s: function s() {
332 - t = t.call(r);
333 - },
334 - n: function n() {
335 - var r = t.next();
336 - return a = r.done, r;
337 - },
338 - e: function e(r) {
339 - u = !0, o = r;
340 - },
341 - f: function f() {
342 - try {
343 - a || null == t.return || t.return();
344 - } finally {
345 - if (u) throw o;
346 - }
347 - }
348 - };
349 - }
350 - function _unsupportedIterableToArray(r, a) {
351 - if (r) {
352 - if ("string" == typeof r) return _arrayLikeToArray(r, a);
353 - var t = {}.toString.call(r).slice(8, -1);
354 - 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;
355 - }
356 - }
357 - function _arrayLikeToArray(r, a) {
358 - (null == a || a > r.length) && (a = r.length);
359 - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
360 - return n;
361 - }
362 - /**
363 - * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
364 - * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
365 - * check whether it's instanceof by using the objects constructor and prototype names.
366 - *
367 - * @param object
368 - * @param constructors
369 - * @return {boolean}
370 - */
371 - var is_instanceof_default = /* @__PURE__ */ __name((function(object, constructors) {
372 - constructors = Array.isArray(constructors) ? constructors : [constructors];
373 - var _iterator = _createForOfIteratorHelper(constructors);
374 - var _step;
375 - try {
376 - for (_iterator.s(); !(_step = _iterator.n()).done;) {
377 - var constructor = _step.value;
378 - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) return true;
379 - }
380 - } catch (err) {
381 - _iterator.e(err);
382 - } finally {
383 - _iterator.f();
384 - }
385 - return false;
386 - }), "default");
387 179
388 -//#endregion
389 -//#region assets/dev/js/modules/imports/args-object.js
390 - init_typeof();
391 - function _callSuper$9(t, o, e) {
392 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$10() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
393 - }
394 - __name(_callSuper$9, "_callSuper");
395 - function _isNativeReflectConstruct$10() {
396 - try {
397 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
398 - } catch (t) {}
399 - return (_isNativeReflectConstruct$10 = function _isNativeReflectConstruct() {
400 - return !!t;
401 - })();
402 - }
403 - __name(_isNativeReflectConstruct$10, "_isNativeReflectConstruct");
404 - var ArgsObject = /*#__PURE__*/ function(_InstanceType) {
405 - /**
406 - * Function constructor().
407 - *
408 - * Create ArgsObject.
409 - *
410 - * @param {{}} args
411 - */
412 - function ArgsObject(args) {
413 - var _this;
414 - _classCallCheck(this, ArgsObject);
415 - _this = _callSuper$9(this, ArgsObject);
416 - _this.args = args;
417 - return _this;
418 - }
419 - /**
420 - * Function requireArgument().
421 - *
422 - * Validate property in args.
423 - *
424 - * @param {string} property
425 - * @param {{}} args
426 - *
427 - * @throws {Error}
428 - */
429 - _inherits(ArgsObject, _InstanceType);
430 - return _createClass(ArgsObject, [
431 - {
432 - key: "requireArgument",
433 - value: function requireArgument(property) {
434 - var args = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.args;
435 - if (!Object.prototype.hasOwnProperty.call(args, property)) throw Error("".concat(property, " is required."));
436 - }
437 - },
438 - {
439 - key: "requireArgumentType",
440 - value: function requireArgumentType(property, type) {
441 - var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.args;
442 - this.requireArgument(property, args);
443 - if (_typeof(args[property]) !== type) throw Error("".concat(property, " invalid type: ").concat(type, "."));
444 - }
445 - },
446 - {
447 - key: "requireArgumentInstance",
448 - value: function requireArgumentInstance(property, instance) {
449 - var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.args;
450 - this.requireArgument(property, args);
451 - if (!(args[property] instanceof instance) && !is_instanceof_default(args[property], instance)) throw Error("".concat(property, " invalid instance."));
452 - }
453 - },
454 - {
455 - key: "requireArgumentConstructor",
456 - value: function requireArgumentConstructor(property, type) {
457 - var args = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : this.args;
458 - this.requireArgument(property, args);
459 - if (args[property].constructor.toString() !== type.prototype.constructor.toString()) throw Error("".concat(property, " invalid constructor type."));
460 - }
461 - }
462 - ], [{
463 - key: "getInstanceType",
464 - value: function getInstanceType() {
465 - return "ArgsObject";
466 - }
467 - }]);
468 - }(InstanceType);
180 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
181 +var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
182 +Object.defineProperty(exports, "__esModule", ({
183 + value: true
184 +}));
185 +exports["default"] = void 0;
186 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
187 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
188 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
189 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
190 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
191 +var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../modules/web-cli/assets/js/modules/component-base.js"));
192 +var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../app/assets/js/loader/commands/index.js"));
193 +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); }
194 +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)); }
195 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
196 +var Component = exports["default"] = /*#__PURE__*/function (_ComponentModalBase) {
197 + function Component() {
198 + (0, _classCallCheck2.default)(this, Component);
199 + return _callSuper(this, Component, arguments);
200 + }
201 + (0, _inherits2.default)(Component, _ComponentModalBase);
202 + return (0, _createClass2.default)(Component, [{
203 + key: "getNamespace",
204 + value: function getNamespace() {
205 + return 'app';
206 + }
207 + }, {
208 + key: "defaultRoutes",
209 + value: function defaultRoutes() {
210 + var _this = this;
211 + return {
212 + '': function _(args) {
213 + args.url = args.url || elementorAppConfig.menu_url;
214 + $e.run('app/load', args);
215 + _this.iframe.style.display = '';
216 + document.body.style.overflow = 'hidden';
217 + }
218 + };
219 + }
220 + }, {
221 + key: "defaultCommands",
222 + value: function defaultCommands() {
223 + return this.importCommands(commands);
224 + }
225 + }, {
226 + key: "defaultShortcuts",
227 + value: function defaultShortcuts() {
228 + return {
229 + '': {
230 + keys: 'ctrl+shift+e'
231 + },
232 + close: {
233 + keys: 'esc',
234 + scopes: [this.getNamespace()]
235 + }
236 + };
237 + }
238 + }]);
239 +}(_componentBase.default);
469 240
470 -//#endregion
471 -//#region modules/web-cli/assets/js/utils/console.js
472 - var Console = /*#__PURE__*/ function() {
473 - function Console() {
474 - _classCallCheck(this, Console);
475 - }
476 - return _createClass(Console, null, [{
477 - key: "error",
478 - value: function error(message) {
479 - if ($e.devTools) $e.devTools.log.error(message);
480 - if (!(message instanceof $e.modules.HookBreak)) console.error(message);
481 - }
482 - }, {
483 - key: "warn",
484 - value: function warn() {
485 - var _console;
486 - var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
487 - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
488 - args.unshift("%c %c", style, "");
489 - (_console = console).warn.apply(_console, args);
490 - }
491 - }]);
492 - }();
241 +/***/ }),
493 242
494 -//#endregion
495 -//#region modules/web-cli/assets/js/utils/deprecation.js
243 +/***/ "../assets/dev/js/editor/utils/is-instanceof.js":
244 +/*!******************************************************!*\
245 + !*** ../assets/dev/js/editor/utils/is-instanceof.js ***!
246 + \******************************************************/
247 +/***/ ((__unused_webpack_module, exports) => {
248 +
249 +"use strict";
250 +
251 +
252 +Object.defineProperty(exports, "__esModule", ({
253 + value: true
254 +}));
255 +exports["default"] = void 0;
256 +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; } } }; }
257 +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; } }
258 +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; }
496 259 /**
497 - * @typedef {Object} Version
498 - * @property {number} major1 The first number
499 - * @property {number} major2 The second number
500 - * @property {number} minor The third number
501 - * @property {string} build The fourth number
502 - */
503 - var softDeprecated = function softDeprecated(name, version, replacement) {
504 - if (elementorWebCliConfig.isDebug) deprecatedMessage("soft", name, version, replacement);
505 - };
506 - var hardDeprecated = function hardDeprecated(name, version, replacement) {
507 - deprecatedMessage("hard", name, version, replacement);
508 - };
509 - var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) {
510 - var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
511 - if (replacement) message += " - Use `".concat(replacement, "` instead");
512 - Console.warn(message);
513 - };
514 - var Deprecation = /*#__PURE__*/ function() {
515 - function Deprecation() {
516 - _classCallCheck(this, Deprecation);
517 - }
518 - return _createClass(Deprecation, null, [
519 - {
520 - key: "deprecated",
521 - value: function deprecated(name, version, replacement) {
522 - if (this.isHardDeprecated(version)) hardDeprecated(name, version, replacement);
523 - else softDeprecated(name, version, replacement);
524 - }
525 - },
526 - {
527 - key: "parseVersion",
528 - value: function parseVersion(version) {
529 - var versionParts = version.split(".");
530 - if (versionParts.length < 3 || versionParts.length > 4) throw new RangeError("Invalid Semantic Version string provided");
531 - var _versionParts = _slicedToArray(versionParts, 4);
532 - var major1 = _versionParts[0];
533 - var major2 = _versionParts[1];
534 - var minor = _versionParts[2];
535 - var _versionParts$ = _versionParts[3];
536 - return {
537 - major1: parseInt(major1),
538 - major2: parseInt(major2),
539 - minor: parseInt(minor),
540 - build: _versionParts$ === void 0 ? "" : _versionParts$
541 - };
542 - }
543 - },
544 - {
545 - key: "getTotalMajor",
546 - value: function getTotalMajor(versionObj) {
547 - var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0"));
548 - total = Number((total / 10).toFixed(0));
549 - if (versionObj.major2 > 9) total = versionObj.major2 - 9;
550 - return total;
551 - }
552 - },
553 - {
554 - key: "compareVersion",
555 - value: function compareVersion(version1, version2) {
556 - var _this = this;
557 - return [this.parseVersion(version1), this.parseVersion(version2)].map(function(versionObj) {
558 - return _this.getTotalMajor(versionObj);
559 - }).reduce(function(acc, major) {
560 - return acc - major;
561 - });
562 - }
563 - },
564 - {
565 - key: "isSoftDeprecated",
566 - value: function isSoftDeprecated(version) {
567 - return this.compareVersion(version, elementorWebCliConfig.version) <= 4;
568 - }
569 - },
570 - {
571 - key: "isHardDeprecated",
572 - value: function isHardDeprecated(version) {
573 - var total = this.compareVersion(version, elementorWebCliConfig.version);
574 - return total < 0 || total >= 8;
575 - }
576 - }
577 - ]);
578 - }();
260 + * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved
261 + * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can
262 + * check whether it's instanceof by using the objects constructor and prototype names.
263 + *
264 + * @param object
265 + * @param constructors
266 + * @return {boolean}
267 + */
268 +var _default = exports["default"] = function _default(object, constructors) {
269 + constructors = Array.isArray(constructors) ? constructors : [constructors];
270 + var _iterator = _createForOfIteratorHelper(constructors),
271 + _step;
272 + try {
273 + for (_iterator.s(); !(_step = _iterator.n()).done;) {
274 + var _constructor = _step.value;
275 + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) {
276 + return true;
277 + }
278 + }
279 + } catch (err) {
280 + _iterator.e(err);
281 + } finally {
282 + _iterator.f();
283 + }
284 + return false;
285 +};
579 286
580 -//#endregion
581 -//#region modules/web-cli/assets/js/modules/command-infra.js
582 - function _callSuper$8(t, o, e) {
583 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$9() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
584 - }
585 - __name(_callSuper$8, "_callSuper");
586 - function _isNativeReflectConstruct$9() {
587 - try {
588 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
589 - } catch (t) {}
590 - return (_isNativeReflectConstruct$9 = function _isNativeReflectConstruct() {
591 - return !!t;
592 - })();
593 - }
594 - __name(_isNativeReflectConstruct$9, "_isNativeReflectConstruct");
595 - /**
596 - * @typedef {import('../modules/component-base')} ComponentBase
597 - */
598 - var CommandInfra = /*#__PURE__*/ function(_ArgsObject) {
599 - /**
600 - * Function constructor().
601 - *
602 - * Create Commands Base.
603 - *
604 - * @param {{}} args
605 - */
606 - function CommandInfra() {
607 - var _this;
608 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
609 - _classCallCheck(this, CommandInfra);
610 - _this = _callSuper$8(this, CommandInfra, [args]);
611 - if (!_this.constructor.registerConfig) throw RangeError("Doing it wrong: Each command type should have `registerConfig`.");
612 - _this.command = _this.constructor.getCommand();
613 - _this.component = _this.constructor.getComponent();
614 - _this.initialize(args);
615 - args = _this.args;
616 - _this.validateArgs(args);
617 - return _this;
618 - }
619 - /**
620 - * Function initialize().
621 - *
622 - * Initialize command, called after construction.
623 - *
624 - * @param {{}} args
625 - */
626 - _inherits(CommandInfra, _ArgsObject);
627 - return _createClass(CommandInfra, [
628 - {
629 - key: "currentCommand",
630 - get: function get() {
631 - Deprecation.deprecated("this.currentCommand", "3.7.0", "this.command");
632 - return this.command;
633 - }
634 - },
635 - {
636 - key: "initialize",
637 - value: function initialize() {
638 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
639 - }
640 - },
641 - {
642 - key: "validateArgs",
643 - value: function validateArgs() {
644 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
645 - }
646 - },
647 - {
648 - key: "apply",
649 - value: function apply() {
650 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
651 - elementorModules.ForceMethodImplementation();
652 - }
653 - },
654 - {
655 - key: "run",
656 - value: function run() {
657 - return this.apply(this.args);
658 - }
659 - },
660 - {
661 - key: "onBeforeRun",
662 - value: function onBeforeRun() {
663 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
664 - }
665 - },
666 - {
667 - key: "onAfterRun",
668 - value: function onAfterRun() {
669 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
670 - arguments.length > 1 && arguments[1];
671 - }
672 - },
673 - {
674 - key: "onBeforeApply",
675 - value: function onBeforeApply() {
676 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
677 - }
678 - },
679 - {
680 - key: "onAfterApply",
681 - value: function onAfterApply() {
682 - arguments.length > 0 && arguments[0] !== void 0 && arguments[0];
683 - arguments.length > 1 && arguments[1];
684 - }
685 - },
686 - {
687 - key: "onCatchApply",
688 - value: function onCatchApply(e) {}
689 - }
690 - ], [
691 - {
692 - key: "getInstanceType",
693 - value: function getInstanceType() {
694 - return "CommandInfra";
695 - }
696 - },
697 - {
698 - key: "getInfo",
699 - value: function getInfo() {
700 - return {};
701 - }
702 - },
703 - {
704 - key: "getCommand",
705 - value: function getCommand() {
706 - return this.registerConfig.command;
707 - }
708 - },
709 - {
710 - key: "getComponent",
711 - value: function getComponent() {
712 - return this.registerConfig.component;
713 - }
714 - },
715 - {
716 - key: "setRegisterConfig",
717 - value: function setRegisterConfig(config) {
718 - this.registerConfig = Object.freeze(config);
719 - }
720 - }
721 - ]);
722 - }(ArgsObject);
723 - /**
724 - * @type {Object}
725 - */
726 - _defineProperty(CommandInfra, "registerConfig", null);
287 +/***/ }),
727 288
728 -//#endregion
729 -//#region modules/web-cli/assets/js/modules/command-base.js
730 - function _callSuper$7(t, o, e) {
731 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$8() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
732 - }
733 - __name(_callSuper$7, "_callSuper");
734 - function _isNativeReflectConstruct$8() {
735 - try {
736 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
737 - } catch (t) {}
738 - return (_isNativeReflectConstruct$8 = function _isNativeReflectConstruct() {
739 - return !!t;
740 - })();
741 - }
742 - __name(_isNativeReflectConstruct$8, "_isNativeReflectConstruct");
743 - /**
744 - * @name $e.modules.CommandBase
745 - */
746 - var CommandBase = /*#__PURE__*/ function(_CommandInfra) {
747 - function CommandBase() {
748 - _classCallCheck(this, CommandBase);
749 - return _callSuper$7(this, CommandBase, arguments);
750 - }
751 - _inherits(CommandBase, _CommandInfra);
752 - return _createClass(CommandBase, [
753 - {
754 - key: "onBeforeRun",
755 - value: function onBeforeRun() {
756 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
757 - $e.hooks.runUIBefore(this.command, args);
758 - }
759 - },
760 - {
761 - key: "onAfterRun",
762 - value: function onAfterRun() {
763 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
764 - var result = arguments.length > 1 ? arguments[1] : void 0;
765 - $e.hooks.runUIAfter(this.command, args, result);
766 - }
767 - },
768 - {
769 - key: "onBeforeApply",
770 - value: function onBeforeApply() {
771 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
772 - $e.hooks.runDataDependency(this.command, args);
773 - }
774 - },
775 - {
776 - key: "onAfterApply",
777 - value: function onAfterApply() {
778 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
779 - var result = arguments.length > 1 ? arguments[1] : void 0;
780 - return $e.hooks.runDataAfter(this.command, args, result);
781 - }
782 - },
783 - {
784 - key: "onCatchApply",
785 - value: function onCatchApply(e) {
786 - this.runCatchHooks(e);
787 - }
788 - },
789 - {
790 - key: "runCatchHooks",
791 - value: function runCatchHooks(e) {
792 - $e.hooks.runDataCatch(this.command, this.args, e);
793 - $e.hooks.runUICatch(this.command, this.args, e);
794 - }
795 - },
796 - {
797 - key: "requireContainer",
798 - value: function requireContainer() {
799 - var _this = this;
800 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.args;
801 - Deprecation.deprecated("requireContainer()", "3.7.0", "Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`");
802 - if (!args.container && !args.containers) throw Error("container or containers are required.");
803 - if (args.container && args.containers) throw Error("container and containers cannot go together please select one of them.");
804 - (args.containers || [args.container]).forEach(function(container) {
805 - _this.requireArgumentInstance("container", elementorModules.editor.Container, { container });
806 - });
807 - }
808 - }
809 - ], [{
810 - key: "getInstanceType",
811 - value: function getInstanceType() {
812 - return "CommandBase";
813 - }
814 - }]);
815 - }(CommandInfra);
289 +/***/ "../assets/dev/js/modules/imports/args-object.js":
290 +/*!*******************************************************!*\
291 + !*** ../assets/dev/js/modules/imports/args-object.js ***!
292 + \*******************************************************/
293 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
816 294
817 -//#endregion
818 -//#region modules/web-cli/assets/js/modules/command-callback-base.js
819 - function _callSuper$6(t, o, e) {
820 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
821 - }
822 - __name(_callSuper$6, "_callSuper");
823 - function _isNativeReflectConstruct$7() {
824 - try {
825 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
826 - } catch (t) {}
827 - return (_isNativeReflectConstruct$7 = function _isNativeReflectConstruct() {
828 - return !!t;
829 - })();
830 - }
831 - __name(_isNativeReflectConstruct$7, "_isNativeReflectConstruct");
832 - /**
833 - * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context.
834 - */
835 - var CommandCallbackBase = /*#__PURE__*/ function(_CommandBase) {
836 - function CommandCallbackBase() {
837 - _classCallCheck(this, CommandCallbackBase);
838 - return _callSuper$6(this, CommandCallbackBase, arguments);
839 - }
840 - _inherits(CommandCallbackBase, _CommandBase);
841 - return _createClass(CommandCallbackBase, [{
842 - key: "apply",
843 - value: function apply() {
844 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
845 - return this.constructor.getCallback()(args);
846 - }
847 - }], [{
848 - key: "getInstanceType",
849 - value: function getInstanceType() {
850 - return "CommandCallbackBase";
851 - }
852 - }, {
853 - key: "getCallback",
854 - value: function getCallback() {
855 - return this.registerConfig.callback;
856 - }
857 - }]);
858 - }(CommandBase);
295 +"use strict";
859 296
860 -//#endregion
861 -//#region assets/dev/js/modules/imports/module.js
862 - var require_module = /* @__PURE__ */ __commonJSMin(((exports, module) => {
863 - init_typeof();
864 - var Module = function Module() {
865 - var $ = jQuery;
866 - var instanceParams = arguments;
867 - var self = this;
868 - var events = {};
869 - var settings;
870 - var ensureClosureMethods = function ensureClosureMethods() {
871 - $.each(self, function(methodName) {
872 - var oldMethod = self[methodName];
873 - if ("function" !== typeof oldMethod) return;
874 - self[methodName] = function() {
875 - return oldMethod.apply(self, arguments);
876 - };
877 - });
878 - };
879 - var initSettings = function initSettings() {
880 - settings = self.getDefaultSettings();
881 - var instanceSettings = instanceParams[0];
882 - if (instanceSettings) $.extend(true, settings, instanceSettings);
883 - };
884 - var init = function init() {
885 - self.__construct.apply(self, instanceParams);
886 - ensureClosureMethods();
887 - initSettings();
888 - self.trigger("init");
889 - };
890 - this.getItems = function(items, itemKey) {
891 - if (itemKey) {
892 - var keyStack = itemKey.split(".");
893 - var currentKey = keyStack.splice(0, 1);
894 - if (!keyStack.length) return items[currentKey];
895 - if (!items[currentKey]) return;
896 - return this.getItems(items[currentKey], keyStack.join("."));
897 - }
898 - return items;
899 - };
900 - this.getSettings = function(setting) {
901 - return this.getItems(settings, setting);
902 - };
903 - this.setSettings = function(settingKey, value, settingsContainer) {
904 - if (!settingsContainer) settingsContainer = settings;
905 - if ("object" === _typeof(settingKey)) {
906 - $.extend(settingsContainer, settingKey);
907 - return self;
908 - }
909 - var keyStack = settingKey.split(".");
910 - var currentKey = keyStack.splice(0, 1);
911 - if (!keyStack.length) {
912 - settingsContainer[currentKey] = value;
913 - return self;
914 - }
915 - if (!settingsContainer[currentKey]) settingsContainer[currentKey] = {};
916 - return self.setSettings(keyStack.join("."), value, settingsContainer[currentKey]);
917 - };
918 - this.getErrorMessage = function(type, functionName) {
919 - var message;
920 - switch (type) {
921 - case "forceMethodImplementation":
922 - message = "The method '".concat(functionName, "' must to be implemented in the inheritor child.");
923 - break;
924 - default: message = "An error occurs";
925 - }
926 - return message;
927 - };
928 - this.forceMethodImplementation = function(functionName) {
929 - throw new Error(this.getErrorMessage("forceMethodImplementation", functionName));
930 - };
931 - this.on = function(eventName, callback) {
932 - if ("object" === _typeof(eventName)) {
933 - $.each(eventName, function(singleEventName) {
934 - self.on(singleEventName, this);
935 - });
936 - return self;
937 - }
938 - eventName.split(" ").forEach(function(singleEventName) {
939 - if (!events[singleEventName]) events[singleEventName] = [];
940 - events[singleEventName].push(callback);
941 - });
942 - return self;
943 - };
944 - this.off = function(eventName, callback) {
945 - if (!events[eventName]) return self;
946 - if (!callback) {
947 - delete events[eventName];
948 - return self;
949 - }
950 - var callbackIndex = events[eventName].indexOf(callback);
951 - if (-1 !== callbackIndex) {
952 - delete events[eventName][callbackIndex];
953 - events[eventName] = events[eventName].filter(function(val) {
954 - return val;
955 - });
956 - }
957 - return self;
958 - };
959 - this.trigger = function(eventName) {
960 - var methodName = "on" + eventName[0].toUpperCase() + eventName.slice(1);
961 - var params = Array.prototype.slice.call(arguments, 1);
962 - if (self[methodName]) self[methodName].apply(self, params);
963 - var callbacks = events[eventName];
964 - if (!callbacks) return self;
965 - $.each(callbacks, function(index, callback) {
966 - callback.apply(self, params);
967 - });
968 - return self;
969 - };
970 - init();
971 - };
972 - Module.prototype.__construct = function() {};
973 - Module.prototype.getDefaultSettings = function() {
974 - return {};
975 - };
976 - Module.prototype.getConstructorID = function() {
977 - return this.constructor.name;
978 - };
979 - Module.extend = function(properties) {
980 - var $ = jQuery;
981 - var parent = this;
982 - var child = function child() {
983 - return parent.apply(this, arguments);
984 - };
985 - $.extend(child, parent);
986 - child.prototype = Object.create($.extend({}, parent.prototype, properties));
987 - child.prototype.constructor = child;
988 - child.__super__ = parent.prototype;
989 - return child;
990 - };
991 - module.exports = Module;
992 - }));
993 297
994 -//#endregion
995 -//#region node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
996 -var import_module = /* @__PURE__ */ __toESM(require_module());
997 - function _isNativeFunction(t) {
998 - try {
999 - return -1 !== Function.toString.call(t).indexOf("[native code]");
1000 - } catch (n) {
1001 - return "function" == typeof t;
1002 - }
1003 - }
298 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
299 +Object.defineProperty(exports, "__esModule", ({
300 + value: true
301 +}));
302 +exports["default"] = void 0;
303 +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
304 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
305 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
306 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
307 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
308 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
309 +var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js"));
310 +var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js"));
311 +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)); }
312 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
313 +var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) {
314 + /**
315 + * Function constructor().
316 + *
317 + * Create ArgsObject.
318 + *
319 + * @param {{}} args
320 + */
321 + function ArgsObject(args) {
322 + var _this;
323 + (0, _classCallCheck2.default)(this, ArgsObject);
324 + _this = _callSuper(this, ArgsObject);
325 + _this.args = args;
326 + return _this;
327 + }
1004 328
1005 -//#endregion
1006 -//#region node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js
1007 - function _isNativeReflectConstruct$6() {
1008 - try {
1009 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1010 - } catch (t) {}
1011 - return (_isNativeReflectConstruct$6 = function _isNativeReflectConstruct() {
1012 - return !!t;
1013 - })();
1014 - }
1015 - __name(_isNativeReflectConstruct$6, "_isNativeReflectConstruct");
329 + /**
330 + * Function requireArgument().
331 + *
332 + * Validate property in args.
333 + *
334 + * @param {string} property
335 + * @param {{}} args
336 + *
337 + * @throws {Error}
338 + */
339 + (0, _inherits2.default)(ArgsObject, _InstanceType);
340 + return (0, _createClass2.default)(ArgsObject, [{
341 + key: "requireArgument",
342 + value: function requireArgument(property) {
343 + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args;
344 + if (!Object.prototype.hasOwnProperty.call(args, property)) {
345 + throw Error("".concat(property, " is required."));
346 + }
347 + }
1016 348
1017 -//#endregion
1018 -//#region node_modules/@babel/runtime/helpers/esm/construct.js
1019 - function _construct(t, e, r) {
1020 - if (_isNativeReflectConstruct$6()) return Reflect.construct.apply(null, arguments);
1021 - var o = [null];
1022 - o.push.apply(o, e);
1023 - var p = new (t.bind.apply(t, o))();
1024 - return r && _setPrototypeOf(p, r.prototype), p;
1025 - }
349 + /**
350 + * Function requireArgumentType().
351 + *
352 + * Validate property in args using `type === typeof(args.whatever)`.
353 + *
354 + * @param {string} property
355 + * @param {string} type
356 + * @param {{}} args
357 + *
358 + * @throws {Error}
359 + */
360 + }, {
361 + key: "requireArgumentType",
362 + value: function requireArgumentType(property, type) {
363 + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
364 + this.requireArgument(property, args);
365 + if ((0, _typeof2.default)(args[property]) !== type) {
366 + throw Error("".concat(property, " invalid type: ").concat(type, "."));
367 + }
368 + }
1026 369
1027 -//#endregion
1028 -//#region node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
1029 - function _wrapNativeSuper(t) {
1030 - var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
1031 - return _wrapNativeSuper = function _wrapNativeSuper(t) {
1032 - if (null === t || !_isNativeFunction(t)) return t;
1033 - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
1034 - if (void 0 !== r) {
1035 - if (r.has(t)) return r.get(t);
1036 - r.set(t, Wrapper);
1037 - }
1038 - function Wrapper() {
1039 - return _construct(t, arguments, _getPrototypeOf(this).constructor);
1040 - }
1041 - return Wrapper.prototype = Object.create(t.prototype, { constructor: {
1042 - value: Wrapper,
1043 - enumerable: !1,
1044 - writable: !0,
1045 - configurable: !0
1046 - } }), _setPrototypeOf(Wrapper, t);
1047 - }, _wrapNativeSuper(t);
1048 - }
370 + /**
371 + * Function requireArgumentInstance().
372 + *
373 + * Validate property in args using `args.whatever instanceof instance`.
374 + *
375 + * @param {string} property
376 + * @param {*} instance
377 + * @param {{}} args
378 + *
379 + * @throws {Error}
380 + */
381 + }, {
382 + key: "requireArgumentInstance",
383 + value: function requireArgumentInstance(property, instance) {
384 + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
385 + this.requireArgument(property, args);
386 + if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) {
387 + throw Error("".concat(property, " invalid instance."));
388 + }
389 + }
1049 390
1050 -//#endregion
1051 -//#region modules/web-cli/assets/js/utils/force-method-implementation.js
1052 - function _callSuper$5(t, o, e) {
1053 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1054 - }
1055 - __name(_callSuper$5, "_callSuper");
1056 - function _isNativeReflectConstruct$5() {
1057 - try {
1058 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1059 - } catch (t) {}
1060 - return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() {
1061 - return !!t;
1062 - })();
1063 - }
1064 - __name(_isNativeReflectConstruct$5, "_isNativeReflectConstruct");
1065 - var ForceMethodImplementation = /*#__PURE__*/ function(_Error) {
1066 - function ForceMethodImplementation() {
1067 - var _this;
1068 - var info = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1069 - _classCallCheck(this, ForceMethodImplementation);
1070 - _this = _callSuper$5(this, ForceMethodImplementation, ["".concat(info.isStatic ? "static " : "").concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")]);
1071 - Error.captureStackTrace(_this, ForceMethodImplementation);
1072 - return _this;
1073 - }
1074 - _inherits(ForceMethodImplementation, _Error);
1075 - return _createClass(ForceMethodImplementation);
1076 - }(/*#__PURE__*/ _wrapNativeSuper(Error));
1077 - var force_method_implementation_default = /* @__PURE__ */ __name((function() {
1078 - var caller = Error().stack.split("\n")[2].trim();
1079 - var callerName = caller.startsWith("at new") ? "constructor" : caller.split(" ")[1];
1080 - var info = {};
1081 - info.functionName = callerName;
1082 - info.fullName = callerName;
1083 - if (info.functionName.includes(".")) {
1084 - var parts = info.functionName.split(".");
1085 - info.className = parts[0];
1086 - info.functionName = parts[1];
1087 - } else info.isStatic = true;
1088 - throw new ForceMethodImplementation(info);
1089 - }), "default");
391 + /**
392 + * Function requireArgumentConstructor().
393 + *
394 + * Validate property in args using `type === args.whatever.constructor`.
395 + *
396 + * @param {string} property
397 + * @param {*} type
398 + * @param {{}} args
399 + *
400 + * @throws {Error}
401 + */
402 + }, {
403 + key: "requireArgumentConstructor",
404 + value: function requireArgumentConstructor(property, type) {
405 + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args;
406 + this.requireArgument(property, args);
1090 407
1091 -//#endregion
1092 -//#region modules/web-cli/assets/js/modules/component-base.js
1093 - function ownKeys(e, r) {
1094 - var t = Object.keys(e);
1095 - if (Object.getOwnPropertySymbols) {
1096 - var o = Object.getOwnPropertySymbols(e);
1097 - r && (o = o.filter(function(r) {
1098 - return Object.getOwnPropertyDescriptor(e, r).enumerable;
1099 - })), t.push.apply(t, o);
1100 - }
1101 - return t;
1102 - }
1103 - function _objectSpread(e) {
1104 - for (var r = 1; r < arguments.length; r++) {
1105 - var t = null != arguments[r] ? arguments[r] : {};
1106 - r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
1107 - _defineProperty(e, r, t[r]);
1108 - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
1109 - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
1110 - });
1111 - }
1112 - return e;
1113 - }
1114 - function _callSuper$4(t, o, e) {
1115 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1116 - }
1117 - __name(_callSuper$4, "_callSuper");
1118 - function _isNativeReflectConstruct$4() {
1119 - try {
1120 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1121 - } catch (t) {}
1122 - return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() {
1123 - return !!t;
1124 - })();
1125 - }
1126 - __name(_isNativeReflectConstruct$4, "_isNativeReflectConstruct");
1127 - /**
1128 - * @typedef {import('./command-infra')} CommandInfra
1129 - * @typedef {import('./hook-base')} HookBase
1130 - * @typedef {import('../core/states/ui-state-base')} UiStateBase
1131 - */
1132 - var ComponentBase = /*#__PURE__*/ function(_Module) {
1133 - function ComponentBase() {
1134 - _classCallCheck(this, ComponentBase);
1135 - return _callSuper$4(this, ComponentBase, arguments);
1136 - }
1137 - _inherits(ComponentBase, _Module);
1138 - return _createClass(ComponentBase, [
1139 - {
1140 - key: "__construct",
1141 - value: function __construct() {
1142 - var args = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1143 - if (args.manager) this.manager = args.manager;
1144 - this.commands = this.defaultCommands();
1145 - this.commandsInternal = this.defaultCommandsInternal();
1146 - this.hooks = this.defaultHooks();
1147 - this.routes = this.defaultRoutes();
1148 - this.tabs = this.defaultTabs();
1149 - this.shortcuts = this.defaultShortcuts();
1150 - this.utils = this.defaultUtils();
1151 - this.data = this.defaultData();
1152 - this.uiStates = this.defaultUiStates();
1153 - this.states = this.defaultStates();
1154 - this.defaultRoute = "";
1155 - this.currentTab = "";
1156 - }
1157 - },
1158 - {
1159 - key: "registerAPI",
1160 - value: function registerAPI() {
1161 - var _this = this;
1162 - Object.entries(this.getTabs()).forEach(function(tab) {
1163 - return _this.registerTabRoute(tab[0]);
1164 - });
1165 - Object.entries(this.getRoutes()).forEach(function(_ref) {
1166 - var _ref2 = _slicedToArray(_ref, 2);
1167 - var route = _ref2[0];
1168 - var callback = _ref2[1];
1169 - return _this.registerRoute(route, callback);
1170 - });
1171 - Object.entries(this.getCommands()).forEach(function(_ref3) {
1172 - var _ref4 = _slicedToArray(_ref3, 2);
1173 - var command = _ref4[0];
1174 - var callback = _ref4[1];
1175 - return _this.registerCommand(command, callback);
1176 - });
1177 - Object.entries(this.getCommandsInternal()).forEach(function(_ref5) {
1178 - var _ref6 = _slicedToArray(_ref5, 2);
1179 - var command = _ref6[0];
1180 - var callback = _ref6[1];
1181 - return _this.registerCommandInternal(command, callback);
1182 - });
1183 - Object.values(this.getHooks()).forEach(function(instance) {
1184 - return _this.registerHook(instance);
1185 - });
1186 - Object.entries(this.getData()).forEach(function(_ref7) {
1187 - var _ref8 = _slicedToArray(_ref7, 2);
1188 - var command = _ref8[0];
1189 - var callback = _ref8[1];
1190 - return _this.registerData(command, callback);
1191 - });
1192 - Object.values(this.getUiStates()).forEach(function(instance) {
1193 - return _this.registerUiState(instance);
1194 - });
1195 - Object.entries(this.getStates()).forEach(function(_ref9) {
1196 - var _ref0 = _slicedToArray(_ref9, 2);
1197 - var id = _ref0[0];
1198 - var state = _ref0[1];
1199 - return _this.registerState(id, state);
1200 - });
1201 - }
1202 - },
1203 - {
1204 - key: "getNamespace",
1205 - value: function getNamespace() {
1206 - force_method_implementation_default();
1207 - }
1208 - },
1209 - {
1210 - key: "getRootContainer",
1211 - value: function getRootContainer() {
1212 - Deprecation.deprecated("getRootContainer()", "3.7.0", "getServiceName()");
1213 - return this.getServiceName();
1214 - }
1215 - },
1216 - {
1217 - key: "getServiceName",
1218 - value: function getServiceName() {
1219 - return this.getNamespace().split("/")[0];
1220 - }
1221 - },
1222 - {
1223 - key: "store",
1224 - get: function get() {
1225 - return $e.store.get(this.getNamespace());
1226 - }
1227 - },
1228 - {
1229 - key: "defaultTabs",
1230 - value: function defaultTabs() {
1231 - return {};
1232 - }
1233 - },
1234 - {
1235 - key: "defaultRoutes",
1236 - value: function defaultRoutes() {
1237 - return {};
1238 - }
1239 - },
1240 - {
1241 - key: "defaultCommands",
1242 - value: function defaultCommands() {
1243 - return {};
1244 - }
1245 - },
1246 - {
1247 - key: "defaultCommandsInternal",
1248 - value: function defaultCommandsInternal() {
1249 - return {};
1250 - }
1251 - },
1252 - {
1253 - key: "defaultHooks",
1254 - value: function defaultHooks() {
1255 - return {};
1256 - }
1257 - },
1258 - {
1259 - key: "defaultUiStates",
1260 - value: function defaultUiStates() {
1261 - return {};
1262 - }
1263 - },
1264 - {
1265 - key: "defaultStates",
1266 - value: function defaultStates() {
1267 - return {};
1268 - }
1269 - },
1270 - {
1271 - key: "defaultShortcuts",
1272 - value: function defaultShortcuts() {
1273 - return {};
1274 - }
1275 - },
1276 - {
1277 - key: "defaultUtils",
1278 - value: function defaultUtils() {
1279 - return {};
1280 - }
1281 - },
1282 - {
1283 - key: "defaultData",
1284 - value: function defaultData() {
1285 - return {};
1286 - }
1287 - },
1288 - {
1289 - key: "getCommands",
1290 - value: function getCommands() {
1291 - return this.commands;
1292 - }
1293 - },
1294 - {
1295 - key: "getCommandsInternal",
1296 - value: function getCommandsInternal() {
1297 - return this.commandsInternal;
1298 - }
1299 - },
1300 - {
1301 - key: "getHooks",
1302 - value: function getHooks() {
1303 - return this.hooks;
1304 - }
1305 - },
1306 - {
1307 - key: "getUiStates",
1308 - value: function getUiStates() {
1309 - return this.uiStates;
1310 - }
1311 - },
1312 - {
1313 - key: "getStates",
1314 - value: function getStates() {
1315 - return this.states;
1316 - }
1317 - },
1318 - {
1319 - key: "getRoutes",
1320 - value: function getRoutes() {
1321 - return this.routes;
1322 - }
1323 - },
1324 - {
1325 - key: "getTabs",
1326 - value: function getTabs() {
1327 - return this.tabs;
1328 - }
1329 - },
1330 - {
1331 - key: "getShortcuts",
1332 - value: function getShortcuts() {
1333 - return this.shortcuts;
1334 - }
1335 - },
1336 - {
1337 - key: "getData",
1338 - value: function getData() {
1339 - return this.data;
1340 - }
1341 - },
1342 - {
1343 - key: "registerCommand",
1344 - value: function registerCommand(command, context) {
1345 - var commandsType = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "default";
1346 - var commandsManager;
1347 - switch (commandsType) {
1348 - case "default":
1349 - commandsManager = $e.commands;
1350 - break;
1351 - case "internal":
1352 - commandsManager = $e.commandsInternal;
1353 - break;
1354 - case "data":
1355 - commandsManager = $e.data;
1356 - break;
1357 - default: throw new Error("Invalid commands type: '".concat(command, "'"));
1358 - }
1359 - var fullCommand = this.getNamespace() + "/" + command;
1360 - var instanceType = context.getInstanceType ? context.getInstanceType() : false;
1361 - var registerConfig = {
1362 - command: fullCommand,
1363 - component: this
1364 - };
1365 - if (!instanceType) {
1366 - if ($e.devTools) $e.devTools.log.warn("Attach command-callback-base, on command: '".concat(fullCommand, "', context is unknown type."));
1367 - registerConfig.callback = context;
1368 - context = /*#__PURE__*/ function(_CommandCallbackBase) {
1369 - function context() {
1370 - _classCallCheck(this, context);
1371 - return _callSuper$4(this, context, arguments);
1372 - }
1373 - _inherits(context, _CommandCallbackBase);
1374 - return _createClass(context);
1375 - }(CommandCallbackBase);
1376 - }
1377 - context.setRegisterConfig(registerConfig);
1378 - commandsManager.register(this, command, context);
1379 - }
1380 - },
1381 - {
1382 - key: "registerHook",
1383 - value: function registerHook(instance) {
1384 - return instance.register();
1385 - }
1386 - },
1387 - {
1388 - key: "registerCommandInternal",
1389 - value: function registerCommandInternal(command, context) {
1390 - this.registerCommand(command, context, "internal");
1391 - }
1392 - },
1393 - {
1394 - key: "registerUiState",
1395 - value: function registerUiState(instance) {
1396 - $e.uiStates.register(instance);
1397 - }
1398 - },
1399 - {
1400 - key: "registerState",
1401 - value: function registerState(id, stateConfig) {
1402 - id = this.getNamespace() + (id ? "/".concat(id) : "");
1403 - var slice = (0, _reduxjs_toolkit.createSlice)(_objectSpread(_objectSpread({}, stateConfig), {}, { name: id }));
1404 - $e.store.register(id, slice);
1405 - }
1406 - },
1407 - {
1408 - key: "registerRoute",
1409 - value: function registerRoute(route, callback) {
1410 - $e.routes.register(this, route, callback);
1411 - }
1412 - },
1413 - {
1414 - key: "registerData",
1415 - value: function registerData(command, context) {
1416 - this.registerCommand(command, context, "data");
1417 - }
1418 - },
1419 - {
1420 - key: "unregisterRoute",
1421 - value: function unregisterRoute(route) {
1422 - $e.routes.unregister(this, route);
1423 - }
1424 - },
1425 - {
1426 - key: "registerTabRoute",
1427 - value: function registerTabRoute(tab) {
1428 - var _this2 = this;
1429 - this.registerRoute(tab, function(args) {
1430 - return _this2.activateTab(tab, args);
1431 - });
1432 - }
1433 - },
1434 - {
1435 - key: "dependency",
1436 - value: function dependency() {
1437 - return true;
1438 - }
1439 - },
1440 - {
1441 - key: "open",
1442 - value: function open() {
1443 - return true;
1444 - }
1445 - },
1446 - {
1447 - key: "close",
1448 - value: function close() {
1449 - if (!this.isOpen) return false;
1450 - this.isOpen = false;
1451 - this.inactivate();
1452 - $e.routes.clearCurrent(this.getNamespace());
1453 - $e.routes.clearHistory(this.getServiceName());
1454 - return true;
1455 - }
1456 - },
1457 - {
1458 - key: "activate",
1459 - value: function activate() {
1460 - $e.components.activate(this.getNamespace());
1461 - }
1462 - },
1463 - {
1464 - key: "inactivate",
1465 - value: function inactivate() {
1466 - $e.components.inactivate(this.getNamespace());
1467 - }
1468 - },
1469 - {
1470 - key: "isActive",
1471 - value: function isActive() {
1472 - return $e.components.isActive(this.getNamespace());
1473 - }
1474 - },
1475 - {
1476 - key: "onRoute",
1477 - value: function onRoute(route) {
1478 - this.toggleRouteClass(route, true);
1479 - this.toggleHistoryClass();
1480 - this.activate();
1481 - this.trigger("route/open", route);
1482 - }
1483 - },
1484 - {
1485 - key: "onCloseRoute",
1486 - value: function onCloseRoute(route) {
1487 - this.toggleRouteClass(route, false);
1488 - this.inactivate();
1489 - this.trigger("route/close", route);
1490 - }
1491 - },
1492 - {
1493 - key: "setDefaultRoute",
1494 - value: function setDefaultRoute(route) {
1495 - this.defaultRoute = this.getNamespace() + "/" + route;
1496 - }
1497 - },
1498 - {
1499 - key: "getDefaultRoute",
1500 - value: function getDefaultRoute() {
1501 - return this.defaultRoute;
1502 - }
1503 - },
1504 - {
1505 - key: "removeTab",
1506 - value: function removeTab(tab) {
1507 - delete this.tabs[tab];
1508 - this.unregisterRoute(tab);
1509 - }
1510 - },
1511 - {
1512 - key: "hasTab",
1513 - value: function hasTab(tab) {
1514 - return !!this.tabs[tab];
1515 - }
1516 - },
1517 - {
1518 - key: "addTab",
1519 - value: function addTab(tab, args, position) {
1520 - var _this3 = this;
1521 - this.tabs[tab] = args;
1522 - if ("undefined" !== typeof position) {
1523 - var newTabs = {};
1524 - var ids = Object.keys(this.tabs);
1525 - ids.pop();
1526 - ids.splice(position, 0, tab);
1527 - ids.forEach(function(id) {
1528 - newTabs[id] = _this3.tabs[id];
1529 - });
1530 - this.tabs = newTabs;
1531 - }
1532 - this.registerTabRoute(tab);
1533 - }
1534 - },
1535 - {
1536 - key: "getTabsWrapperSelector",
1537 - value: function getTabsWrapperSelector() {
1538 - return "";
1539 - }
1540 - },
1541 - {
1542 - key: "getTabRoute",
1543 - value: function getTabRoute(tab) {
1544 - return this.getNamespace() + "/" + tab;
1545 - }
1546 - },
1547 - {
1548 - key: "renderTab",
1549 - value: function renderTab(tab) {}
1550 - },
1551 - {
1552 - key: "activateTab",
1553 - value: function activateTab(tab, args) {
1554 - var _this4 = this;
1555 - this.renderTab(tab, args);
1556 - jQuery(this.getTabsWrapperSelector() + " .elementor-component-tab").off("click").on("click", function(event) {
1557 - $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
1558 - }).removeClass("elementor-active").filter("[data-tab=\"" + tab + "\"]").addClass("elementor-active");
1559 - }
1560 - },
1561 - {
1562 - key: "getActiveTabConfig",
1563 - value: function getActiveTabConfig() {
1564 - return this.tabs[this.currentTab] || {};
1565 - }
1566 - },
1567 - {
1568 - key: "getBodyClass",
1569 - value: function getBodyClass(route) {
1570 - return "e-route-" + route.replace(/\//g, "-");
1571 - }
1572 - },
1573 - {
1574 - key: "normalizeCommandName",
1575 - value: function normalizeCommandName(commandName) {
1576 - return commandName.replace(/[A-Z]/g, function(match, offset) {
1577 - return (offset > 0 ? "-" : "") + match.toLowerCase();
1578 - });
1579 - }
1580 - },
1581 - {
1582 - key: "importCommands",
1583 - value: function importCommands(commandsFromImport) {
1584 - var _this5 = this;
1585 - var commands = {};
1586 - Object.entries(commandsFromImport).forEach(function(_ref1) {
1587 - var _ref10 = _slicedToArray(_ref1, 2);
1588 - var className = _ref10[0];
1589 - var Class = _ref10[1];
1590 - var command = _this5.normalizeCommandName(className);
1591 - commands[command] = Class;
1592 - });
1593 - return commands;
1594 - }
1595 - },
1596 - {
1597 - key: "importHooks",
1598 - value: function importHooks(hooksFromImport) {
1599 - var hooks = {};
1600 - for (var key in hooksFromImport) {
1601 - var hook = new hooksFromImport[key]();
1602 - hooks[hook.getId()] = hook;
1603 - }
1604 - return hooks;
1605 - }
1606 - },
1607 - {
1608 - key: "importUiStates",
1609 - value: function importUiStates(statesFromImport) {
1610 - var _this6 = this;
1611 - var uiStates = {};
1612 - Object.values(statesFromImport).forEach(function(className) {
1613 - var uiState = new className(_this6);
1614 - uiStates[uiState.getId()] = uiState;
1615 - });
1616 - return uiStates;
1617 - }
1618 - },
1619 - {
1620 - key: "setUiState",
1621 - value: function setUiState(state, value) {
1622 - $e.uiStates.set("".concat(this.getNamespace(), "/").concat(state), value);
1623 - }
1624 - },
1625 - {
1626 - key: "toggleRouteClass",
1627 - value: function toggleRouteClass(route, state) {
1628 - document.body.classList.toggle(this.getBodyClass(route), state);
1629 - }
1630 - },
1631 - {
1632 - key: "toggleHistoryClass",
1633 - value: function toggleHistoryClass() {
1634 - document.body.classList.toggle("e-routes-has-history", !!$e.routes.getHistory(this.getServiceName()).length);
1635 - }
1636 - }
1637 - ]);
1638 - }(import_module.default);
408 + // Note: Converting the constructor to string in order to avoid equation issues
409 + // due to different memory addresses between iframes (window.Object !== window.top.Object).
410 + if (args[property].constructor.toString() !== type.prototype.constructor.toString()) {
411 + throw Error("".concat(property, " invalid constructor type."));
412 + }
413 + }
414 + }], [{
415 + key: "getInstanceType",
416 + value: function getInstanceType() {
417 + return 'ArgsObject';
418 + }
419 + }]);
420 +}(_instanceType.default);
1639 421
1640 -//#endregion
1641 -//#region app/assets/js/loader/commands/close.js
1642 - function _callSuper$3(t, o, e) {
1643 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1644 - }
1645 - __name(_callSuper$3, "_callSuper");
1646 - function _isNativeReflectConstruct$3() {
1647 - try {
1648 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1649 - } catch (t) {}
1650 - return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() {
1651 - return !!t;
1652 - })();
1653 - }
1654 - __name(_isNativeReflectConstruct$3, "_isNativeReflectConstruct");
1655 - var Close = /*#__PURE__*/ function(_$e$modules$CommandBa) {
1656 - function Close() {
1657 - _classCallCheck(this, Close);
1658 - return _callSuper$3(this, Close, arguments);
1659 - }
1660 - _inherits(Close, _$e$modules$CommandBa);
1661 - return _createClass(Close, [{
1662 - key: "apply",
1663 - value: function apply() {
1664 - if (!this.component.close()) return false;
1665 - this.component.iframe.remove();
1666 - this.component.iframe = null;
1667 - if (this.component.backdrop) {
1668 - this.component.backdrop.remove();
1669 - this.component.backdrop = null;
1670 - }
1671 - document.body.style.overflow = "";
1672 - return true;
1673 - }
1674 - }]);
1675 - }($e.modules.CommandBase);
422 +/***/ }),
1676 423
1677 -//#endregion
1678 -//#region app/assets/js/loader/commands/load.js
1679 - function _callSuper$2(t, o, e) {
1680 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1681 - }
1682 - __name(_callSuper$2, "_callSuper");
1683 - function _isNativeReflectConstruct$2() {
1684 - try {
1685 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1686 - } catch (t) {}
1687 - return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() {
1688 - return !!t;
1689 - })();
1690 - }
1691 - __name(_isNativeReflectConstruct$2, "_isNativeReflectConstruct");
1692 - var Load = /*#__PURE__*/ function(_$e$modules$CommandBa) {
1693 - function Load() {
1694 - _classCallCheck(this, Load);
1695 - return _callSuper$2(this, Load, arguments);
1696 - }
1697 - _inherits(Load, _$e$modules$CommandBa);
1698 - return _createClass(Load, [{
1699 - key: "apply",
1700 - value: function apply(args) {
1701 - var component = this.component;
1702 - if (!component.iframe) {
1703 - component.backdrop = document.createElement("div");
1704 - component.backdrop.className = "elementor-app-backdrop";
1705 - component.backdrop.style.display = "none";
1706 - component.backdrop.addEventListener("click", function() {
1707 - $e.run("app/close");
1708 - });
1709 - document.body.appendChild(component.backdrop);
1710 - component.iframe = document.createElement("iframe");
1711 - component.iframe.className = "elementor-app-iframe";
1712 - component.iframe.style.display = "none";
1713 - component.iframe.addEventListener("load", function() {
1714 - if (component.iframe) component.iframe.classList.add("elementor-app-iframe--visible");
1715 - if (component.backdrop) component.backdrop.classList.add("elementor-app-backdrop--visible");
1716 - });
1717 - document.body.appendChild(component.iframe);
1718 - }
1719 - if (args.url === component.iframe.src) return;
1720 - component.iframe.src = args.url;
1721 - }
1722 - }]);
1723 - }($e.modules.CommandBase);
424 +/***/ "../assets/dev/js/modules/imports/instance-type.js":
425 +/*!*********************************************************!*\
426 + !*** ../assets/dev/js/modules/imports/instance-type.js ***!
427 + \*********************************************************/
428 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1724 429
1725 -//#endregion
1726 -//#region app/assets/js/loader/commands/open.js
1727 - function _callSuper$1(t, o, e) {
1728 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1729 - }
1730 - __name(_callSuper$1, "_callSuper");
1731 - function _isNativeReflectConstruct$1() {
1732 - try {
1733 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1734 - } catch (t) {}
1735 - return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() {
1736 - return !!t;
1737 - })();
1738 - }
1739 - __name(_isNativeReflectConstruct$1, "_isNativeReflectConstruct");
1740 - var Open = /*#__PURE__*/ function(_$e$modules$CommandBa) {
1741 - function Open() {
1742 - _classCallCheck(this, Open);
1743 - return _callSuper$1(this, Open, arguments);
1744 - }
1745 - _inherits(Open, _$e$modules$CommandBa);
1746 - return _createClass(Open, [{
1747 - key: "apply",
1748 - value: function apply(args) {
1749 - $e.route("app", args);
1750 - return true;
1751 - }
1752 - }]);
1753 - }($e.modules.CommandBase);
430 +"use strict";
1754 431
1755 -//#endregion
1756 -//#region app/assets/js/loader/commands/index.js
1757 - var commands_exports = /* @__PURE__ */ __exportAll({
1758 - Close: () => Close,
1759 - Load: () => Load,
1760 - Open: () => Open
1761 - });
1762 432
1763 -//#endregion
1764 -//#region app/assets/js/loader/component.js
1765 - function _callSuper(t, o, e) {
1766 - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
1767 - }
1768 - function _isNativeReflectConstruct() {
1769 - try {
1770 - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
1771 - } catch (t) {}
1772 - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
1773 - return !!t;
1774 - })();
1775 - }
1776 - var Component = /*#__PURE__*/ function(_ComponentModalBase) {
1777 - function Component() {
1778 - _classCallCheck(this, Component);
1779 - return _callSuper(this, Component, arguments);
1780 - }
1781 - _inherits(Component, _ComponentModalBase);
1782 - return _createClass(Component, [
1783 - {
1784 - key: "getNamespace",
1785 - value: function getNamespace() {
1786 - return "app";
1787 - }
1788 - },
1789 - {
1790 - key: "defaultRoutes",
1791 - value: function defaultRoutes() {
1792 - var _this = this;
1793 - return { "": function _(args) {
1794 - args.url = args.url || elementorAppConfig.menu_url;
1795 - $e.run("app/load", args);
1796 - _this.iframe.style.display = "";
1797 - if (_this.backdrop) _this.backdrop.style.display = "";
1798 - document.body.style.overflow = "hidden";
1799 - } };
1800 - }
1801 - },
1802 - {
1803 - key: "defaultCommands",
1804 - value: function defaultCommands() {
1805 - return this.importCommands(commands_exports);
1806 - }
1807 - },
1808 - {
1809 - key: "defaultShortcuts",
1810 - value: function defaultShortcuts() {
1811 - return {
1812 - "": { keys: "ctrl+shift+e" },
1813 - close: {
1814 - keys: "esc",
1815 - scopes: [this.getNamespace()]
1816 - }
1817 - };
1818 - }
1819 - }
1820 - ]);
1821 - }(ComponentBase);
433 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
434 +Object.defineProperty(exports, "__esModule", ({
435 + value: true
436 +}));
437 +exports["default"] = void 0;
438 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
439 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
440 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
441 +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js"));
442 +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; }
443 +var InstanceType = exports["default"] = /*#__PURE__*/function () {
444 + function InstanceType() {
445 + var _this = this;
446 + (0, _classCallCheck2.default)(this, InstanceType);
447 + // Since anonymous classes sometimes do not get validated by babel, do it manually.
448 + var target = this instanceof InstanceType ? this.constructor : void 0;
449 + var prototypes = [];
450 + while (target.__proto__ && target.__proto__.name) {
451 + prototypes.push(target.__proto__);
452 + target = target.__proto__;
453 + }
454 + prototypes.reverse().forEach(function (proto) {
455 + return _this instanceof proto;
456 + });
457 + }
458 + return (0, _createClass2.default)(InstanceType, null, [{
459 + key: Symbol.hasInstance,
460 + value: function value(target) {
461 + /**
462 + * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class
463 + * its give's opportunity to mange capabilities of instanceOf operator.
464 + * saving current class each time will give option later to handle instanceOf manually.
465 + */
466 + var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]);
1822 467
1823 -//#endregion
1824 -//#region app/assets/js/app-loader.js
1825 - window.elementorAppLoader = new (/* @__PURE__ */ function() {
1826 - function AppLoader() {
1827 - _classCallCheck(this, AppLoader);
1828 - _defineProperty(this, "selector", "a.elementor-app-link, .elementor-app-link .ab-item");
1829 - $e.components.register(new Component());
1830 - window.addEventListener("DOMContentLoaded", this.onLoad.bind(this));
1831 - }
1832 - return _createClass(AppLoader, [{
1833 - key: "onLoad",
1834 - value: function onLoad() {
1835 - var links = document.querySelectorAll(this.selector);
1836 - if (!links.length) return;
1837 - links.forEach(function(link) {
1838 - link.addEventListener("click", function(event) {
1839 - event.preventDefault();
1840 - $e.run("app/open", { url: link.href });
1841 - });
1842 - link.addEventListener("mouseenter", function() {
1843 - $e.run("app/load", { url: link.href });
1844 - });
1845 - });
1846 - }
1847 - }]);
1848 - }())();
468 + // Act normal when validate a class, which does not have instance type.
469 + if (target && !target.constructor.getInstanceType) {
470 + return result;
471 + }
472 + if (target) {
473 + if (!target.instanceTypes) {
474 + target.instanceTypes = [];
475 + }
476 + if (!result) {
477 + if (this.getInstanceType() === target.constructor.getInstanceType()) {
478 + result = true;
479 + }
480 + }
481 + if (result) {
482 + var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType();
483 + if (-1 === target.instanceTypes.indexOf(name)) {
484 + target.instanceTypes.push(name);
485 + }
486 + }
487 + }
488 + if (!result && target) {
489 + // Check if the given 'target', is instance of known types.
490 + result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType());
491 + }
492 + return result;
493 + }
494 + }, {
495 + key: "getInstanceType",
496 + value: function getInstanceType() {
497 + elementorModules.ForceMethodImplementation();
498 + }
499 + }]);
500 +}();
1849 501
1850 -//#endregion
1851 -})(elementorVendors.reduxToolkit);
502 +/***/ }),
503 +
504 +/***/ "../assets/dev/js/modules/imports/module.js":
505 +/*!**************************************************!*\
506 + !*** ../assets/dev/js/modules/imports/module.js ***!
507 + \**************************************************/
508 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
509 +
510 +"use strict";
511 +
512 +
513 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
514 +var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"));
515 +var Module = function Module() {
516 + var $ = jQuery,
517 + instanceParams = arguments,
518 + self = this,
519 + events = {};
520 + var settings;
521 + var ensureClosureMethods = function ensureClosureMethods() {
522 + $.each(self, function (methodName) {
523 + var oldMethod = self[methodName];
524 + if ('function' !== typeof oldMethod) {
525 + return;
526 + }
527 + self[methodName] = function () {
528 + return oldMethod.apply(self, arguments);
529 + };
530 + });
531 + };
532 + var initSettings = function initSettings() {
533 + settings = self.getDefaultSettings();
534 + var instanceSettings = instanceParams[0];
535 + if (instanceSettings) {
536 + $.extend(true, settings, instanceSettings);
537 + }
538 + };
539 + var init = function init() {
540 + self.__construct.apply(self, instanceParams);
541 + ensureClosureMethods();
542 + initSettings();
543 + self.trigger('init');
544 + };
545 + this.getItems = function (items, itemKey) {
546 + if (itemKey) {
547 + var keyStack = itemKey.split('.'),
548 + currentKey = keyStack.splice(0, 1);
549 + if (!keyStack.length) {
550 + return items[currentKey];
551 + }
552 + if (!items[currentKey]) {
553 + return;
554 + }
555 + return this.getItems(items[currentKey], keyStack.join('.'));
556 + }
557 + return items;
558 + };
559 + this.getSettings = function (setting) {
560 + return this.getItems(settings, setting);
561 + };
562 + this.setSettings = function (settingKey, value, settingsContainer) {
563 + if (!settingsContainer) {
564 + settingsContainer = settings;
565 + }
566 + if ('object' === (0, _typeof2.default)(settingKey)) {
567 + $.extend(settingsContainer, settingKey);
568 + return self;
569 + }
570 + var keyStack = settingKey.split('.'),
571 + currentKey = keyStack.splice(0, 1);
572 + if (!keyStack.length) {
573 + settingsContainer[currentKey] = value;
574 + return self;
575 + }
576 + if (!settingsContainer[currentKey]) {
577 + settingsContainer[currentKey] = {};
578 + }
579 + return self.setSettings(keyStack.join('.'), value, settingsContainer[currentKey]);
580 + };
581 + this.getErrorMessage = function (type, functionName) {
582 + var message;
583 + switch (type) {
584 + case 'forceMethodImplementation':
585 + message = "The method '".concat(functionName, "' must to be implemented in the inheritor child.");
586 + break;
587 + default:
588 + message = 'An error occurs';
589 + }
590 + return message;
591 + };
592 +
593 + // TODO: This function should be deleted ?.
594 + this.forceMethodImplementation = function (functionName) {
595 + throw new Error(this.getErrorMessage('forceMethodImplementation', functionName));
596 + };
597 + this.on = function (eventName, callback) {
598 + if ('object' === (0, _typeof2.default)(eventName)) {
599 + $.each(eventName, function (singleEventName) {
600 + self.on(singleEventName, this);
601 + });
602 + return self;
603 + }
604 + var eventNames = eventName.split(' ');
605 + eventNames.forEach(function (singleEventName) {
606 + if (!events[singleEventName]) {
607 + events[singleEventName] = [];
608 + }
609 + events[singleEventName].push(callback);
610 + });
611 + return self;
612 + };
613 + this.off = function (eventName, callback) {
614 + if (!events[eventName]) {
615 + return self;
616 + }
617 + if (!callback) {
618 + delete events[eventName];
619 + return self;
620 + }
621 + var callbackIndex = events[eventName].indexOf(callback);
622 + if (-1 !== callbackIndex) {
623 + delete events[eventName][callbackIndex];
624 +
625 + // Reset array index (for next off on same event).
626 + events[eventName] = events[eventName].filter(function (val) {
627 + return val;
628 + });
629 + }
630 + return self;
631 + };
632 + this.trigger = function (eventName) {
633 + var methodName = 'on' + eventName[0].toUpperCase() + eventName.slice(1),
634 + params = Array.prototype.slice.call(arguments, 1);
635 + if (self[methodName]) {
636 + self[methodName].apply(self, params);
637 + }
638 + var callbacks = events[eventName];
639 + if (!callbacks) {
640 + return self;
641 + }
642 + $.each(callbacks, function (index, callback) {
643 + callback.apply(self, params);
644 + });
645 + return self;
646 + };
647 + init();
648 +};
649 +Module.prototype.__construct = function () {};
650 +Module.prototype.getDefaultSettings = function () {
651 + return {};
652 +};
653 +Module.prototype.getConstructorID = function () {
654 + return this.constructor.name;
655 +};
656 +Module.extend = function (properties) {
657 + var $ = jQuery,
658 + parent = this;
659 + var child = function child() {
660 + return parent.apply(this, arguments);
661 + };
662 + $.extend(child, parent);
663 + child.prototype = Object.create($.extend({}, parent.prototype, properties));
664 + child.prototype.constructor = child;
665 + child.__super__ = parent.prototype;
666 + return child;
667 +};
668 +module.exports = Module;
669 +
670 +/***/ }),
671 +
672 +/***/ "../modules/web-cli/assets/js/modules/command-base.js":
673 +/*!************************************************************!*\
674 + !*** ../modules/web-cli/assets/js/modules/command-base.js ***!
675 + \************************************************************/
676 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
677 +
678 +"use strict";
679 +
680 +
681 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
682 +Object.defineProperty(exports, "__esModule", ({
683 + value: true
684 +}));
685 +exports["default"] = void 0;
686 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
687 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
688 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
689 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
690 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
691 +var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js"));
692 +var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
693 +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)); }
694 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
695 +/**
696 + * @name $e.modules.CommandBase
697 + */
698 +var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) {
699 + function CommandBase() {
700 + (0, _classCallCheck2.default)(this, CommandBase);
701 + return _callSuper(this, CommandBase, arguments);
702 + }
703 + (0, _inherits2.default)(CommandBase, _CommandInfra);
704 + return (0, _createClass2.default)(CommandBase, [{
705 + key: "onBeforeRun",
706 + value: function onBeforeRun() {
707 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
708 + $e.hooks.runUIBefore(this.command, args);
709 + }
710 + }, {
711 + key: "onAfterRun",
712 + value: function onAfterRun() {
713 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
714 + var result = arguments.length > 1 ? arguments[1] : undefined;
715 + $e.hooks.runUIAfter(this.command, args, result);
716 + }
717 + }, {
718 + key: "onBeforeApply",
719 + value: function onBeforeApply() {
720 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
721 + $e.hooks.runDataDependency(this.command, args);
722 + }
723 + }, {
724 + key: "onAfterApply",
725 + value: function onAfterApply() {
726 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
727 + var result = arguments.length > 1 ? arguments[1] : undefined;
728 + return $e.hooks.runDataAfter(this.command, args, result);
729 + }
730 + }, {
731 + key: "onCatchApply",
732 + value: function onCatchApply(e) {
733 + this.runCatchHooks(e);
734 + }
735 +
736 + /**
737 + * Run all the catch hooks.
738 + *
739 + * @param {Error} e
740 + */
741 + }, {
742 + key: "runCatchHooks",
743 + value: function runCatchHooks(e) {
744 + $e.hooks.runDataCatch(this.command, this.args, e);
745 + $e.hooks.runUICatch(this.command, this.args, e);
746 + }
747 +
748 + /**
749 + * TODO - Remove - Backwards compatibility.
750 + *
751 + * Function requireContainer().
752 + *
753 + * Validate `arg.container` & `arg.containers`.
754 + *
755 + * @param {{}} args
756 + * @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead.
757 + *
758 + * @throws {Error}
759 + */
760 + }, {
761 + key: "requireContainer",
762 + value: function requireContainer() {
763 + var _this = this;
764 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args;
765 + _deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`');
766 + if (!args.container && !args.containers) {
767 + throw Error('container or containers are required.');
768 + }
769 + if (args.container && args.containers) {
770 + throw Error('container and containers cannot go together please select one of them.');
771 + }
772 + var containers = args.containers || [args.container];
773 + containers.forEach(function (container) {
774 + _this.requireArgumentInstance('container', elementorModules.editor.Container, {
775 + container: container
776 + });
777 + });
778 + }
779 + }], [{
780 + key: "getInstanceType",
781 + value: function getInstanceType() {
782 + return 'CommandBase';
783 + }
784 + }]);
785 +}(_commandInfra.default);
786 +
787 +/***/ }),
788 +
789 +/***/ "../modules/web-cli/assets/js/modules/command-callback-base.js":
790 +/*!*********************************************************************!*\
791 + !*** ../modules/web-cli/assets/js/modules/command-callback-base.js ***!
792 + \*********************************************************************/
793 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
794 +
795 +"use strict";
796 +
797 +
798 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
799 +Object.defineProperty(exports, "__esModule", ({
800 + value: true
801 +}));
802 +exports["default"] = void 0;
803 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
804 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
805 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
806 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
807 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
808 +var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../modules/web-cli/assets/js/modules/command-base.js"));
809 +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)); }
810 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
811 +/**
812 + * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context.
813 + */
814 +var CommandCallbackBase = exports["default"] = /*#__PURE__*/function (_CommandBase) {
815 + function CommandCallbackBase() {
816 + (0, _classCallCheck2.default)(this, CommandCallbackBase);
817 + return _callSuper(this, CommandCallbackBase, arguments);
818 + }
819 + (0, _inherits2.default)(CommandCallbackBase, _CommandBase);
820 + return (0, _createClass2.default)(CommandCallbackBase, [{
821 + key: "apply",
822 + value: function apply() {
823 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
824 + return this.constructor.getCallback()(args);
825 + }
826 + }], [{
827 + key: "getInstanceType",
828 + value: function getInstanceType() {
829 + return 'CommandCallbackBase';
830 + }
831 +
832 + /**
833 + * Get original callback of the command.
834 + *
835 + * Support pure callbacks ( Non command-base ).
836 + *
837 + * @return {()=>{}} Command Results.
838 + */
839 + }, {
840 + key: "getCallback",
841 + value: function getCallback() {
842 + return this.registerConfig.callback;
843 + }
844 + }]);
845 +}(_commandBase.default);
846 +
847 +/***/ }),
848 +
849 +/***/ "../modules/web-cli/assets/js/modules/command-infra.js":
850 +/*!*************************************************************!*\
851 + !*** ../modules/web-cli/assets/js/modules/command-infra.js ***!
852 + \*************************************************************/
853 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
854 +
855 +"use strict";
856 +
857 +
858 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
859 +Object.defineProperty(exports, "__esModule", ({
860 + value: true
861 +}));
862 +exports["default"] = void 0;
863 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
864 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
865 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
866 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
867 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
868 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
869 +var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js"));
870 +var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
871 +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)); }
872 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
873 +/**
874 + * @typedef {import('../modules/component-base')} ComponentBase
875 + */
876 +var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) {
877 + /**
878 + * Function constructor().
879 + *
880 + * Create Commands Base.
881 + *
882 + * @param {{}} args
883 + */
884 + function CommandInfra() {
885 + var _this;
886 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
887 + (0, _classCallCheck2.default)(this, CommandInfra);
888 + _this = _callSuper(this, CommandInfra, [args]);
889 + if (!_this.constructor.registerConfig) {
890 + throw RangeError('Doing it wrong: Each command type should have `registerConfig`.');
891 + }
892 +
893 + // Acknowledge self about which command it run.
894 + _this.command = _this.constructor.getCommand();
895 +
896 + // Assign instance of current component.
897 + _this.component = _this.constructor.getComponent();
898 +
899 + // Who ever need do something before without `super` the constructor can use `initialize` method.
900 + _this.initialize(args);
901 +
902 + // Refresh args, maybe the changed via `initialize`.
903 + args = _this.args;
904 +
905 + // Validate args before run.
906 + _this.validateArgs(args);
907 + return _this;
908 + }
909 +
910 + /**
911 + * Function initialize().
912 + *
913 + * Initialize command, called after construction.
914 + *
915 + * @param {{}} args
916 + */
917 + (0, _inherits2.default)(CommandInfra, _ArgsObject);
918 + return (0, _createClass2.default)(CommandInfra, [{
919 + key: "currentCommand",
920 + get:
921 + /**
922 + * @deprecated since 3.7.0, use `this.command` instead.
923 + */
924 + function get() {
925 + _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command');
926 + return this.command;
927 + }
928 + }, {
929 + key: "initialize",
930 + value: function initialize() {
931 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
932 + } // eslint-disable-line no-unused-vars
933 +
934 + /**
935 + * Function validateArgs().
936 + *
937 + * Validate command arguments.
938 + *
939 + * @param {{}} args
940 + */
941 + }, {
942 + key: "validateArgs",
943 + value: function validateArgs() {
944 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
945 + } // eslint-disable-line no-unused-vars
946 +
947 + // eslint-disable-next-line jsdoc/require-returns-check
948 + /**
949 + * Function apply().
950 + *
951 + * Do the actual command.
952 + *
953 + * @param {{}} args
954 + *
955 + * @return {*} Command results.
956 + */
957 + }, {
958 + key: "apply",
959 + value: function apply() {
960 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
961 + // eslint-disable-line no-unused-vars
962 + elementorModules.ForceMethodImplementation();
963 + }
964 +
965 + /**
966 + * Function run().
967 + *
968 + * Run command with history & hooks.
969 + *
970 + * @return {*} Command results.
971 + */
972 + }, {
973 + key: "run",
974 + value: function run() {
975 + return this.apply(this.args);
976 + }
977 +
978 + /**
979 + * Function onBeforeRun.
980 + *
981 + * Called before run().
982 + *
983 + * @param {{}} args
984 + */
985 + }, {
986 + key: "onBeforeRun",
987 + value: function onBeforeRun() {
988 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
989 + } // eslint-disable-line no-unused-vars
990 +
991 + /**
992 + * Function onAfterRun.
993 + *
994 + * Called after run().
995 + *
996 + * @param {{}} args
997 + * @param {*} result
998 + */
999 + }, {
1000 + key: "onAfterRun",
1001 + value: function onAfterRun() {
1002 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1003 + var result = arguments.length > 1 ? arguments[1] : undefined;
1004 + } // eslint-disable-line no-unused-vars
1005 +
1006 + /**
1007 + * Function onBeforeApply.
1008 + *
1009 + * Called before apply().
1010 + *
1011 + * @param {{}} args
1012 + */
1013 + }, {
1014 + key: "onBeforeApply",
1015 + value: function onBeforeApply() {
1016 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1017 + } // eslint-disable-line no-unused-vars
1018 +
1019 + /**
1020 + * Function onAfterApply.
1021 + *
1022 + * Called after apply().
1023 + *
1024 + * @param {{}} args
1025 + * @param {*} result
1026 + */
1027 + }, {
1028 + key: "onAfterApply",
1029 + value: function onAfterApply() {
1030 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1031 + var result = arguments.length > 1 ? arguments[1] : undefined;
1032 + } // eslint-disable-line no-unused-vars
1033 +
1034 + /**
1035 + * Function onCatchApply.
1036 + *
1037 + * Called after apply() failed.
1038 + *
1039 + * @param {Error} e
1040 + */
1041 + }, {
1042 + key: "onCatchApply",
1043 + value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars
1044 + }], [{
1045 + key: "getInstanceType",
1046 + value: function getInstanceType() {
1047 + return 'CommandInfra';
1048 + }
1049 +
1050 + /**
1051 + * Get info of command.
1052 + *
1053 + * @return {Object} Extra information about the command.
1054 + */
1055 + }, {
1056 + key: "getInfo",
1057 + value: function getInfo() {
1058 + return {};
1059 + }
1060 +
1061 + /**
1062 + * @return {string} Self command name.
1063 + */
1064 + }, {
1065 + key: "getCommand",
1066 + value: function getCommand() {
1067 + return this.registerConfig.command;
1068 + }
1069 +
1070 + /**
1071 + * @return {ComponentBase} Self component
1072 + */
1073 + }, {
1074 + key: "getComponent",
1075 + value: function getComponent() {
1076 + return this.registerConfig.component;
1077 + }
1078 + }, {
1079 + key: "setRegisterConfig",
1080 + value: function setRegisterConfig(config) {
1081 + this.registerConfig = Object.freeze(config);
1082 + }
1083 + }]);
1084 +}(_argsObject.default);
1085 +/**
1086 + * @type {Object}
1087 + */
1088 +(0, _defineProperty2.default)(CommandInfra, "registerConfig", null);
1089 +
1090 +/***/ }),
1091 +
1092 +/***/ "../modules/web-cli/assets/js/modules/component-base.js":
1093 +/*!**************************************************************!*\
1094 + !*** ../modules/web-cli/assets/js/modules/component-base.js ***!
1095 + \**************************************************************/
1096 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1097 +
1098 +"use strict";
1099 +
1100 +
1101 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1102 +Object.defineProperty(exports, "__esModule", ({
1103 + value: true
1104 +}));
1105 +exports["default"] = void 0;
1106 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1107 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1108 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1109 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1110 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1111 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1112 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1113 +var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js"));
1114 +var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
1115 +var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js"));
1116 +var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js"));
1117 +var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js"));
1118 +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; }
1119 +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; }
1120 +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)); }
1121 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1122 +/**
1123 + * @typedef {import('./command-infra')} CommandInfra
1124 + * @typedef {import('./hook-base')} HookBase
1125 + * @typedef {import('../core/states/ui-state-base')} UiStateBase
1126 + */
1127 +var ComponentBase = exports["default"] = /*#__PURE__*/function (_Module) {
1128 + function ComponentBase() {
1129 + (0, _classCallCheck2.default)(this, ComponentBase);
1130 + return _callSuper(this, ComponentBase, arguments);
1131 + }
1132 + (0, _inherits2.default)(ComponentBase, _Module);
1133 + return (0, _createClass2.default)(ComponentBase, [{
1134 + key: "__construct",
1135 + value: function __construct() {
1136 + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1137 + if (args.manager) {
1138 + this.manager = args.manager;
1139 + }
1140 + this.commands = this.defaultCommands();
1141 + this.commandsInternal = this.defaultCommandsInternal();
1142 + this.hooks = this.defaultHooks();
1143 + this.routes = this.defaultRoutes();
1144 + this.tabs = this.defaultTabs();
1145 + this.shortcuts = this.defaultShortcuts();
1146 + this.utils = this.defaultUtils();
1147 + this.data = this.defaultData();
1148 + this.uiStates = this.defaultUiStates();
1149 + this.states = this.defaultStates();
1150 + this.defaultRoute = '';
1151 + this.currentTab = '';
1152 + }
1153 + }, {
1154 + key: "registerAPI",
1155 + value: function registerAPI() {
1156 + var _this = this;
1157 + Object.entries(this.getTabs()).forEach(function (tab) {
1158 + return _this.registerTabRoute(tab[0]);
1159 + });
1160 + Object.entries(this.getRoutes()).forEach(function (_ref) {
1161 + var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
1162 + route = _ref2[0],
1163 + callback = _ref2[1];
1164 + return _this.registerRoute(route, callback);
1165 + });
1166 + Object.entries(this.getCommands()).forEach(function (_ref3) {
1167 + var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
1168 + command = _ref4[0],
1169 + callback = _ref4[1];
1170 + return _this.registerCommand(command, callback);
1171 + });
1172 + Object.entries(this.getCommandsInternal()).forEach(function (_ref5) {
1173 + var _ref6 = (0, _slicedToArray2.default)(_ref5, 2),
1174 + command = _ref6[0],
1175 + callback = _ref6[1];
1176 + return _this.registerCommandInternal(command, callback);
1177 + });
1178 + Object.values(this.getHooks()).forEach(function (instance) {
1179 + return _this.registerHook(instance);
1180 + });
1181 + Object.entries(this.getData()).forEach(function (_ref7) {
1182 + var _ref8 = (0, _slicedToArray2.default)(_ref7, 2),
1183 + command = _ref8[0],
1184 + callback = _ref8[1];
1185 + return _this.registerData(command, callback);
1186 + });
1187 + Object.values(this.getUiStates()).forEach(function (instance) {
1188 + return _this.registerUiState(instance);
1189 + });
1190 + Object.entries(this.getStates()).forEach(function (_ref9) {
1191 + var _ref0 = (0, _slicedToArray2.default)(_ref9, 2),
1192 + id = _ref0[0],
1193 + state = _ref0[1];
1194 + return _this.registerState(id, state);
1195 + });
1196 + }
1197 +
1198 + // eslint-disable-next-line jsdoc/require-returns-check
1199 + /**
1200 + * @return {string} namespace
1201 + */
1202 + }, {
1203 + key: "getNamespace",
1204 + value: function getNamespace() {
1205 + (0, _forceMethodImplementation.default)();
1206 + }
1207 +
1208 + /**
1209 + * @deprecated since 3.7.0, use `getServiceName()` instead.
1210 + */
1211 + }, {
1212 + key: "getRootContainer",
1213 + value: function getRootContainer() {
1214 + _deprecation.default.deprecated('getRootContainer()', '3.7.0', 'getServiceName()');
1215 + return this.getServiceName();
1216 + }
1217 + }, {
1218 + key: "getServiceName",
1219 + value: function getServiceName() {
1220 + return this.getNamespace().split('/')[0];
1221 + }
1222 + }, {
1223 + key: "store",
1224 + get: function get() {
1225 + return $e.store.get(this.getNamespace());
1226 + }
1227 + }, {
1228 + key: "defaultTabs",
1229 + value: function defaultTabs() {
1230 + return {};
1231 + }
1232 + }, {
1233 + key: "defaultRoutes",
1234 + value: function defaultRoutes() {
1235 + return {};
1236 + }
1237 + }, {
1238 + key: "defaultCommands",
1239 + value: function defaultCommands() {
1240 + return {};
1241 + }
1242 + }, {
1243 + key: "defaultCommandsInternal",
1244 + value: function defaultCommandsInternal() {
1245 + return {};
1246 + }
1247 + }, {
1248 + key: "defaultHooks",
1249 + value: function defaultHooks() {
1250 + return {};
1251 + }
1252 +
1253 + /**
1254 + * Get the component's default UI states.
1255 + *
1256 + * @return {Object} default UI states
1257 + */
1258 + }, {
1259 + key: "defaultUiStates",
1260 + value: function defaultUiStates() {
1261 + return {};
1262 + }
1263 +
1264 + /**
1265 + * Get the component's Redux slice settings.
1266 + *
1267 + * @return {Object} Redux slice settings
1268 + */
1269 + }, {
1270 + key: "defaultStates",
1271 + value: function defaultStates() {
1272 + return {};
1273 + }
1274 + }, {
1275 + key: "defaultShortcuts",
1276 + value: function defaultShortcuts() {
1277 + return {};
1278 + }
1279 + }, {
1280 + key: "defaultUtils",
1281 + value: function defaultUtils() {
1282 + return {};
1283 + }
1284 + }, {
1285 + key: "defaultData",
1286 + value: function defaultData() {
1287 + return {};
1288 + }
1289 + }, {
1290 + key: "getCommands",
1291 + value: function getCommands() {
1292 + return this.commands;
1293 + }
1294 + }, {
1295 + key: "getCommandsInternal",
1296 + value: function getCommandsInternal() {
1297 + return this.commandsInternal;
1298 + }
1299 + }, {
1300 + key: "getHooks",
1301 + value: function getHooks() {
1302 + return this.hooks;
1303 + }
1304 +
1305 + /**
1306 + * Retrieve the component's UI states.
1307 + *
1308 + * @return {Object} UI states
1309 + */
1310 + }, {
1311 + key: "getUiStates",
1312 + value: function getUiStates() {
1313 + return this.uiStates;
1314 + }
1315 +
1316 + /**
1317 + * Retrieve the component's Redux Slice.
1318 + *
1319 + * @return {Object} Redux Slice
1320 + */
1321 + }, {
1322 + key: "getStates",
1323 + value: function getStates() {
1324 + return this.states;
1325 + }
1326 + }, {
1327 + key: "getRoutes",
1328 + value: function getRoutes() {
1329 + return this.routes;
1330 + }
1331 + }, {
1332 + key: "getTabs",
1333 + value: function getTabs() {
1334 + return this.tabs;
1335 + }
1336 + }, {
1337 + key: "getShortcuts",
1338 + value: function getShortcuts() {
1339 + return this.shortcuts;
1340 + }
1341 + }, {
1342 + key: "getData",
1343 + value: function getData() {
1344 + return this.data;
1345 + }
1346 +
1347 + /**
1348 + * @param {string} command
1349 + * @param {(()=>{}|CommandInfra)} context
1350 + * @param {'default'|'internal'|'data'} commandsType
1351 + */
1352 + }, {
1353 + key: "registerCommand",
1354 + value: function registerCommand(command, context) {
1355 + var commandsType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'default';
1356 + var commandsManager;
1357 + switch (commandsType) {
1358 + case 'default':
1359 + commandsManager = $e.commands;
1360 + break;
1361 + case 'internal':
1362 + commandsManager = $e.commandsInternal;
1363 + break;
1364 + case 'data':
1365 + commandsManager = $e.data;
1366 + break;
1367 + default:
1368 + throw new Error("Invalid commands type: '".concat(command, "'"));
1369 + }
1370 + var fullCommand = this.getNamespace() + '/' + command,
1371 + instanceType = context.getInstanceType ? context.getInstanceType() : false,
1372 + registerConfig = {
1373 + command: fullCommand,
1374 + component: this
1375 + };
1376 +
1377 + // Support pure callback.
1378 + if (!instanceType) {
1379 + if ($e.devTools) {
1380 + $e.devTools.log.warn("Attach command-callback-base, on command: '".concat(fullCommand, "', context is unknown type."));
1381 + }
1382 + registerConfig.callback = context;
1383 +
1384 + // Unique class.
1385 + context = /*#__PURE__*/function (_CommandCallbackBase) {
1386 + function context() {
1387 + (0, _classCallCheck2.default)(this, context);
1388 + return _callSuper(this, context, arguments);
1389 + }
1390 + (0, _inherits2.default)(context, _CommandCallbackBase);
1391 + return (0, _createClass2.default)(context);
1392 + }(_commandCallbackBase.default);
1393 + }
1394 + context.setRegisterConfig(registerConfig);
1395 + commandsManager.register(this, command, context);
1396 + }
1397 +
1398 + /**
1399 + * @param {HookBase} instance
1400 + */
1401 + }, {
1402 + key: "registerHook",
1403 + value: function registerHook(instance) {
1404 + return instance.register();
1405 + }
1406 + }, {
1407 + key: "registerCommandInternal",
1408 + value: function registerCommandInternal(command, context) {
1409 + this.registerCommand(command, context, 'internal');
1410 + }
1411 +
1412 + /**
1413 + * Register a UI state.
1414 + *
1415 + * @param {UiStateBase} instance - UI state instance.
1416 + *
1417 + * @return {void}
1418 + */
1419 + }, {
1420 + key: "registerUiState",
1421 + value: function registerUiState(instance) {
1422 + $e.uiStates.register(instance);
1423 + }
1424 +
1425 + /**
1426 + * Register a Redux Slice.
1427 + *
1428 + * @param {string} id - State id.
1429 + * @param {Object} stateConfig - The state config.
1430 + *
1431 + * @return {void}
1432 + */
1433 + }, {
1434 + key: "registerState",
1435 + value: function registerState(id, stateConfig) {
1436 + id = this.getNamespace() + (id ? "/".concat(id) : '');
1437 + var slice = (0, _toolkit.createSlice)(_objectSpread(_objectSpread({}, stateConfig), {}, {
1438 + name: id
1439 + }));
1440 + $e.store.register(id, slice);
1441 + }
1442 + }, {
1443 + key: "registerRoute",
1444 + value: function registerRoute(route, callback) {
1445 + $e.routes.register(this, route, callback);
1446 + }
1447 + }, {
1448 + key: "registerData",
1449 + value: function registerData(command, context) {
1450 + this.registerCommand(command, context, 'data');
1451 + }
1452 + }, {
1453 + key: "unregisterRoute",
1454 + value: function unregisterRoute(route) {
1455 + $e.routes.unregister(this, route);
1456 + }
1457 + }, {
1458 + key: "registerTabRoute",
1459 + value: function registerTabRoute(tab) {
1460 + var _this2 = this;
1461 + this.registerRoute(tab, function (args) {
1462 + return _this2.activateTab(tab, args);
1463 + });
1464 + }
1465 + }, {
1466 + key: "dependency",
1467 + value: function dependency() {
1468 + return true;
1469 + }
1470 + }, {
1471 + key: "open",
1472 + value: function open() {
1473 + return true;
1474 + }
1475 + }, {
1476 + key: "close",
1477 + value: function close() {
1478 + if (!this.isOpen) {
1479 + return false;
1480 + }
1481 + this.isOpen = false;
1482 + this.inactivate();
1483 + $e.routes.clearCurrent(this.getNamespace());
1484 + $e.routes.clearHistory(this.getServiceName());
1485 + return true;
1486 + }
1487 + }, {
1488 + key: "activate",
1489 + value: function activate() {
1490 + $e.components.activate(this.getNamespace());
1491 + }
1492 + }, {
1493 + key: "inactivate",
1494 + value: function inactivate() {
1495 + $e.components.inactivate(this.getNamespace());
1496 + }
1497 + }, {
1498 + key: "isActive",
1499 + value: function isActive() {
1500 + return $e.components.isActive(this.getNamespace());
1501 + }
1502 + }, {
1503 + key: "onRoute",
1504 + value: function onRoute(route) {
1505 + this.toggleRouteClass(route, true);
1506 + this.toggleHistoryClass();
1507 + this.activate();
1508 + this.trigger('route/open', route);
1509 + }
1510 + }, {
1511 + key: "onCloseRoute",
1512 + value: function onCloseRoute(route) {
1513 + this.toggleRouteClass(route, false);
1514 + this.inactivate();
1515 + this.trigger('route/close', route);
1516 + }
1517 + }, {
1518 + key: "setDefaultRoute",
1519 + value: function setDefaultRoute(route) {
1520 + this.defaultRoute = this.getNamespace() + '/' + route;
1521 + }
1522 + }, {
1523 + key: "getDefaultRoute",
1524 + value: function getDefaultRoute() {
1525 + return this.defaultRoute;
1526 + }
1527 + }, {
1528 + key: "removeTab",
1529 + value: function removeTab(tab) {
1530 + delete this.tabs[tab];
1531 + this.unregisterRoute(tab);
1532 + }
1533 + }, {
1534 + key: "hasTab",
1535 + value: function hasTab(tab) {
1536 + return !!this.tabs[tab];
1537 + }
1538 + }, {
1539 + key: "addTab",
1540 + value: function addTab(tab, args, position) {
1541 + var _this3 = this;
1542 + this.tabs[tab] = args;
1543 + // It can be 0.
1544 + if ('undefined' !== typeof position) {
1545 + var newTabs = {};
1546 + var ids = Object.keys(this.tabs);
1547 + // Remove new tab
1548 + ids.pop();
1549 +
1550 + // Add it to position.
1551 + ids.splice(position, 0, tab);
1552 + ids.forEach(function (id) {
1553 + newTabs[id] = _this3.tabs[id];
1554 + });
1555 + this.tabs = newTabs;
1556 + }
1557 + this.registerTabRoute(tab);
1558 + }
1559 + }, {
1560 + key: "getTabsWrapperSelector",
1561 + value: function getTabsWrapperSelector() {
1562 + return '';
1563 + }
1564 + }, {
1565 + key: "getTabRoute",
1566 + value: function getTabRoute(tab) {
1567 + return this.getNamespace() + '/' + tab;
1568 + }
1569 + }, {
1570 + key: "renderTab",
1571 + value: function renderTab(tab) {} // eslint-disable-line
1572 + }, {
1573 + key: "activateTab",
1574 + value: function activateTab(tab, args) {
1575 + var _this4 = this;
1576 + this.renderTab(tab, args);
1577 + jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) {
1578 + $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args);
1579 + }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active');
1580 + }
1581 + }, {
1582 + key: "getActiveTabConfig",
1583 + value: function getActiveTabConfig() {
1584 + return this.tabs[this.currentTab] || {};
1585 + }
1586 + }, {
1587 + key: "getBodyClass",
1588 + value: function getBodyClass(route) {
1589 + return 'e-route-' + route.replace(/\//g, '-');
1590 + }
1591 +
1592 + /**
1593 + * If command includes uppercase character convert it to lowercase and add `-`.
1594 + * e.g: `CopyAll` is converted to `copy-all`.
1595 + *
1596 + * @param {string} commandName
1597 + */
1598 + }, {
1599 + key: "normalizeCommandName",
1600 + value: function normalizeCommandName(commandName) {
1601 + return commandName.replace(/[A-Z]/g, function (match, offset) {
1602 + return (offset > 0 ? '-' : '') + match.toLowerCase();
1603 + });
1604 + }
1605 +
1606 + /**
1607 + * @param {{}} commandsFromImport
1608 + * @return {{}} imported commands
1609 + */
1610 + }, {
1611 + key: "importCommands",
1612 + value: function importCommands(commandsFromImport) {
1613 + var _this5 = this;
1614 + var commands = {};
1615 +
1616 + // Convert `Commands` to `ComponentBase` workable format.
1617 + Object.entries(commandsFromImport).forEach(function (_ref1) {
1618 + var _ref10 = (0, _slicedToArray2.default)(_ref1, 2),
1619 + className = _ref10[0],
1620 + Class = _ref10[1];
1621 + var command = _this5.normalizeCommandName(className);
1622 + commands[command] = Class;
1623 + });
1624 + return commands;
1625 + }
1626 + }, {
1627 + key: "importHooks",
1628 + value: function importHooks(hooksFromImport) {
1629 + var hooks = {};
1630 + for (var key in hooksFromImport) {
1631 + var hook = new hooksFromImport[key]();
1632 + hooks[hook.getId()] = hook;
1633 + }
1634 + return hooks;
1635 + }
1636 +
1637 + /**
1638 + * Import & initialize the component's UI states.
1639 + * Should be used inside `defaultUiState()`.
1640 + *
1641 + * @param {Object} statesFromImport - UI states from import.
1642 + *
1643 + * @return {Object} UI States
1644 + */
1645 + }, {
1646 + key: "importUiStates",
1647 + value: function importUiStates(statesFromImport) {
1648 + var _this6 = this;
1649 + var uiStates = {};
1650 + Object.values(statesFromImport).forEach(function (className) {
1651 + var uiState = new className(_this6);
1652 + uiStates[uiState.getId()] = uiState;
1653 + });
1654 + return uiStates;
1655 + }
1656 +
1657 + /**
1658 + * Set a UI state value.
1659 + * TODO: Should we provide such function? Maybe the developer should implicitly pass the full state ID?
1660 + *
1661 + * @param {string} state - Non-prefixed state ID.
1662 + * @param {*} value - New state value.
1663 + *
1664 + * @return {void}
1665 + */
1666 + }, {
1667 + key: "setUiState",
1668 + value: function setUiState(state, value) {
1669 + $e.uiStates.set("".concat(this.getNamespace(), "/").concat(state), value);
1670 + }
1671 + }, {
1672 + key: "toggleRouteClass",
1673 + value: function toggleRouteClass(route, state) {
1674 + document.body.classList.toggle(this.getBodyClass(route), state);
1675 + }
1676 + }, {
1677 + key: "toggleHistoryClass",
1678 + value: function toggleHistoryClass() {
1679 + document.body.classList.toggle('e-routes-has-history', !!$e.routes.getHistory(this.getServiceName()).length);
1680 + }
1681 + }]);
1682 +}(_module.default);
1683 +
1684 +/***/ }),
1685 +
1686 +/***/ "../modules/web-cli/assets/js/utils/console.js":
1687 +/*!*****************************************************!*\
1688 + !*** ../modules/web-cli/assets/js/utils/console.js ***!
1689 + \*****************************************************/
1690 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1691 +
1692 +"use strict";
1693 +
1694 +
1695 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1696 +Object.defineProperty(exports, "__esModule", ({
1697 + value: true
1698 +}));
1699 +exports["default"] = void 0;
1700 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1701 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1702 +var Console = exports["default"] = /*#__PURE__*/function () {
1703 + function Console() {
1704 + (0, _classCallCheck2.default)(this, Console);
1705 + }
1706 + return (0, _createClass2.default)(Console, null, [{
1707 + key: "error",
1708 + value: function error(message) {
1709 + // Show an error if devTools is available.
1710 + if ($e.devTools) {
1711 + $e.devTools.log.error(message);
1712 + }
1713 +
1714 + // If not a 'Hook-Break' then show error.
1715 + if (!(message instanceof $e.modules.HookBreak)) {
1716 + // eslint-disable-next-line no-console
1717 + console.error(message);
1718 + }
1719 + }
1720 + }, {
1721 + key: "warn",
1722 + value: function warn() {
1723 + var _console;
1724 + var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;");
1725 + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1726 + args[_key] = arguments[_key];
1727 + }
1728 + args.unshift('%c %c', style, '');
1729 + (_console = console).warn.apply(_console, args); // eslint-disable-line no-console
1730 + }
1731 + }]);
1732 +}();
1733 +
1734 +/***/ }),
1735 +
1736 +/***/ "../modules/web-cli/assets/js/utils/deprecation.js":
1737 +/*!*********************************************************!*\
1738 + !*** ../modules/web-cli/assets/js/utils/deprecation.js ***!
1739 + \*********************************************************/
1740 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1741 +
1742 +"use strict";
1743 +
1744 +
1745 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1746 +Object.defineProperty(exports, "__esModule", ({
1747 + value: true
1748 +}));
1749 +exports["default"] = void 0;
1750 +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1751 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1752 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1753 +var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js"));
1754 +// Copied from `modules/dev-tools/assets/js/deprecation.js`
1755 +/**
1756 + * @typedef {Object} Version
1757 + * @property {number} major1 The first number
1758 + * @property {number} major2 The second number
1759 + * @property {number} minor The third number
1760 + * @property {string} build The fourth number
1761 + */
1762 +
1763 +var softDeprecated = function softDeprecated(name, version, replacement) {
1764 + if (elementorWebCliConfig.isDebug) {
1765 + deprecatedMessage('soft', name, version, replacement);
1766 + }
1767 +};
1768 +var hardDeprecated = function hardDeprecated(name, version, replacement) {
1769 + deprecatedMessage('hard', name, version, replacement);
1770 +};
1771 +var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) {
1772 + var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version);
1773 + if (replacement) {
1774 + message += " - Use `".concat(replacement, "` instead");
1775 + }
1776 + _console.default.warn(message);
1777 +};
1778 +var Deprecation = exports["default"] = /*#__PURE__*/function () {
1779 + function Deprecation() {
1780 + (0, _classCallCheck2.default)(this, Deprecation);
1781 + }
1782 + return (0, _createClass2.default)(Deprecation, null, [{
1783 + key: "deprecated",
1784 + value: function deprecated(name, version, replacement) {
1785 + if (this.isHardDeprecated(version)) {
1786 + hardDeprecated(name, version, replacement);
1787 + } else {
1788 + softDeprecated(name, version, replacement);
1789 + }
1790 + }
1791 +
1792 + /**
1793 + * @param {string} version
1794 + *
1795 + * @return {Version}
1796 + */
1797 + }, {
1798 + key: "parseVersion",
1799 + value: function parseVersion(version) {
1800 + var versionParts = version.split('.');
1801 + if (versionParts.length < 3 || versionParts.length > 4) {
1802 + throw new RangeError('Invalid Semantic Version string provided');
1803 + }
1804 + var _versionParts = (0, _slicedToArray2.default)(versionParts, 4),
1805 + major1 = _versionParts[0],
1806 + major2 = _versionParts[1],
1807 + minor = _versionParts[2],
1808 + _versionParts$ = _versionParts[3],
1809 + build = _versionParts$ === void 0 ? '' : _versionParts$;
1810 + return {
1811 + major1: parseInt(major1),
1812 + major2: parseInt(major2),
1813 + minor: parseInt(minor),
1814 + build: build
1815 + };
1816 + }
1817 +
1818 + /**
1819 + * Get total of major.
1820 + *
1821 + * Since `get_total_major` cannot determine how much really versions between 2.9.0 and 3.3.0 if there is 2.10.0 version for example,
1822 + * versions with major2 more then 9 will be added to total.
1823 + *
1824 + * @param {Version} versionObj
1825 + *
1826 + * @return {number}
1827 + */
1828 + }, {
1829 + key: "getTotalMajor",
1830 + value: function getTotalMajor(versionObj) {
1831 + var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0"));
1832 + total = Number((total / 10).toFixed(0));
1833 + if (versionObj.major2 > 9) {
1834 + total = versionObj.major2 - 9;
1835 + }
1836 + return total;
1837 + }
1838 +
1839 + /**
1840 + * @param {string} version1
1841 + * @param {string} version2
1842 + *
1843 + * @return {number}
1844 + */
1845 + }, {
1846 + key: "compareVersion",
1847 + value: function compareVersion(version1, version2) {
1848 + var _this = this;
1849 + return [this.parseVersion(version1), this.parseVersion(version2)].map(function (versionObj) {
1850 + return _this.getTotalMajor(versionObj);
1851 + }).reduce(function (acc, major) {
1852 + return acc - major;
1853 + });
1854 + }
1855 +
1856 + /**
1857 + * @param {string} version
1858 + *
1859 + * @return {boolean}
1860 + */
1861 + }, {
1862 + key: "isSoftDeprecated",
1863 + value: function isSoftDeprecated(version) {
1864 + var total = this.compareVersion(version, elementorWebCliConfig.version);
1865 + return total <= 4;
1866 + }
1867 +
1868 + /**
1869 + * @param {string} version
1870 + * @return {boolean}
1871 + */
1872 + }, {
1873 + key: "isHardDeprecated",
1874 + value: function isHardDeprecated(version) {
1875 + var total = this.compareVersion(version, elementorWebCliConfig.version);
1876 + return total < 0 || total >= 8;
1877 + }
1878 + }]);
1879 +}();
1880 +
1881 +/***/ }),
1882 +
1883 +/***/ "../modules/web-cli/assets/js/utils/force-method-implementation.js":
1884 +/*!*************************************************************************!*\
1885 + !*** ../modules/web-cli/assets/js/utils/force-method-implementation.js ***!
1886 + \*************************************************************************/
1887 +/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1888 +
1889 +"use strict";
1890 +
1891 +
1892 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1893 +Object.defineProperty(exports, "__esModule", ({
1894 + value: true
1895 +}));
1896 +exports["default"] = exports.ForceMethodImplementation = void 0;
1897 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
1898 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
1899 +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
1900 +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
1901 +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
1902 +var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js"));
1903 +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)); }
1904 +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
1905 +// TODO: Copied from `assets/dev/js/modules/imports/force-method-implementation.js`;
1906 +var ForceMethodImplementation = exports.ForceMethodImplementation = /*#__PURE__*/function (_Error) {
1907 + function ForceMethodImplementation() {
1908 + var _this;
1909 + var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1910 + (0, _classCallCheck2.default)(this, ForceMethodImplementation);
1911 + _this = _callSuper(this, ForceMethodImplementation, ["".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")]);
1912 + Error.captureStackTrace(_this, ForceMethodImplementation);
1913 + return _this;
1914 + }
1915 + (0, _inherits2.default)(ForceMethodImplementation, _Error);
1916 + return (0, _createClass2.default)(ForceMethodImplementation);
1917 +}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
1918 +var _default = exports["default"] = function _default() {
1919 + var stack = Error().stack,
1920 + caller = stack.split('\n')[2].trim(),
1921 + callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1],
1922 + info = {};
1923 + info.functionName = callerName;
1924 + info.fullName = callerName;
1925 + if (info.functionName.includes('.')) {
1926 + var parts = info.functionName.split('.');
1927 + info.className = parts[0];
1928 + info.functionName = parts[1];
1929 + } else {
1930 + info.isStatic = true;
1931 + }
1932 + throw new ForceMethodImplementation(info);
1933 +};
1934 +
1935 +/***/ }),
1936 +
1937 +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
1938 +/*!******************************************************************!*\
1939 + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
1940 + \******************************************************************/
1941 +/***/ ((module) => {
1942 +
1943 +function _arrayLikeToArray(r, a) {
1944 + (null == a || a > r.length) && (a = r.length);
1945 + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
1946 + return n;
1947 +}
1948 +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
1949 +
1950 +/***/ }),
1951 +
1952 +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
1953 +/*!****************************************************************!*\
1954 + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
1955 + \****************************************************************/
1956 +/***/ ((module) => {
1957 +
1958 +function _arrayWithHoles(r) {
1959 + if (Array.isArray(r)) return r;
1960 +}
1961 +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
1962 +
1963 +/***/ }),
1964 +
1965 +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
1966 +/*!***********************************************************************!*\
1967 + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
1968 + \***********************************************************************/
1969 +/***/ ((module) => {
1970 +
1971 +function _assertThisInitialized(e) {
1972 + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1973 + return e;
1974 +}
1975 +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
1976 +
1977 +/***/ }),
1978 +
1979 +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
1980 +/*!****************************************************************!*\
1981 + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
1982 + \****************************************************************/
1983 +/***/ ((module) => {
1984 +
1985 +function _classCallCheck(a, n) {
1986 + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
1987 +}
1988 +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
1989 +
1990 +/***/ }),
1991 +
1992 +/***/ "../node_modules/@babel/runtime/helpers/construct.js":
1993 +/*!***********************************************************!*\
1994 + !*** ../node_modules/@babel/runtime/helpers/construct.js ***!
1995 + \***********************************************************/
1996 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1997 +
1998 +var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js");
1999 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2000 +function _construct(t, e, r) {
2001 + if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
2002 + var o = [null];
2003 + o.push.apply(o, e);
2004 + var p = new (t.bind.apply(t, o))();
2005 + return r && setPrototypeOf(p, r.prototype), p;
2006 +}
2007 +module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2008 +
2009 +/***/ }),
2010 +
2011 +/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
2012 +/*!*************************************************************!*\
2013 + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
2014 + \*************************************************************/
2015 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2016 +
2017 +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2018 +function _defineProperties(e, r) {
2019 + for (var t = 0; t < r.length; t++) {
2020 + var o = r[t];
2021 + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
2022 + }
2023 +}
2024 +function _createClass(e, r, t) {
2025 + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2026 + writable: !1
2027 + }), e;
2028 +}
2029 +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
2030 +
2031 +/***/ }),
2032 +
2033 +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2034 +/*!****************************************************************!*\
2035 + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2036 + \****************************************************************/
2037 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2038 +
2039 +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2040 +function _defineProperty(e, r, t) {
2041 + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2042 + value: t,
2043 + enumerable: !0,
2044 + configurable: !0,
2045 + writable: !0
2046 + }) : e[r] = t, e;
2047 +}
2048 +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2049 +
2050 +/***/ }),
2051 +
2052 +/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js":
2053 +/*!********************************************************************!*\
2054 + !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
2055 + \********************************************************************/
2056 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2057 +
2058 +"use strict";
2059 +__webpack_require__.r(__webpack_exports__);
2060 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2061 +/* harmony export */ "default": () => (/* binding */ _defineProperty)
2062 +/* harmony export */ });
2063 +/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
2064 +
2065 +function _defineProperty(e, r, t) {
2066 + return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
2067 + value: t,
2068 + enumerable: !0,
2069 + configurable: !0,
2070 + writable: !0
2071 + }) : e[r] = t, e;
2072 +}
2073 +
2074 +
2075 +/***/ }),
2076 +
2077 +/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js":
2078 +/*!*******************************************************************!*\
2079 + !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***!
2080 + \*******************************************************************/
2081 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2082 +
2083 +"use strict";
2084 +__webpack_require__.r(__webpack_exports__);
2085 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2086 +/* harmony export */ "default": () => (/* binding */ _objectSpread2)
2087 +/* harmony export */ });
2088 +/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js");
2089 +
2090 +function ownKeys(e, r) {
2091 + var t = Object.keys(e);
2092 + if (Object.getOwnPropertySymbols) {
2093 + var o = Object.getOwnPropertySymbols(e);
2094 + r && (o = o.filter(function (r) {
2095 + return Object.getOwnPropertyDescriptor(e, r).enumerable;
2096 + })), t.push.apply(t, o);
2097 + }
2098 + return t;
2099 +}
2100 +function _objectSpread2(e) {
2101 + for (var r = 1; r < arguments.length; r++) {
2102 + var t = null != arguments[r] ? arguments[r] : {};
2103 + r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
2104 + (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]);
2105 + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
2106 + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
2107 + });
2108 + }
2109 + return e;
2110 +}
2111 +
2112 +
2113 +/***/ }),
2114 +
2115 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
2116 +/*!*****************************************************************!*\
2117 + !*** ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***!
2118 + \*****************************************************************/
2119 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2120 +
2121 +"use strict";
2122 +__webpack_require__.r(__webpack_exports__);
2123 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2124 +/* harmony export */ "default": () => (/* binding */ toPrimitive)
2125 +/* harmony export */ });
2126 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
2127 +
2128 +function toPrimitive(t, r) {
2129 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t;
2130 + var e = t[Symbol.toPrimitive];
2131 + if (void 0 !== e) {
2132 + var i = e.call(t, r || "default");
2133 + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i;
2134 + throw new TypeError("@@toPrimitive must return a primitive value.");
2135 + }
2136 + return ("string" === r ? String : Number)(t);
2137 +}
2138 +
2139 +
2140 +/***/ }),
2141 +
2142 +/***/ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
2143 +/*!*******************************************************************!*\
2144 + !*** ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***!
2145 + \*******************************************************************/
2146 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2147 +
2148 +"use strict";
2149 +__webpack_require__.r(__webpack_exports__);
2150 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2151 +/* harmony export */ "default": () => (/* binding */ toPropertyKey)
2152 +/* harmony export */ });
2153 +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js");
2154 +/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js");
2155 +
2156 +
2157 +function toPropertyKey(t) {
2158 + var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string");
2159 + return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + "";
2160 +}
2161 +
2162 +
2163 +/***/ }),
2164 +
2165 +/***/ "../node_modules/@babel/runtime/helpers/esm/typeof.js":
2166 +/*!************************************************************!*\
2167 + !*** ../node_modules/@babel/runtime/helpers/esm/typeof.js ***!
2168 + \************************************************************/
2169 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
2170 +
2171 +"use strict";
2172 +__webpack_require__.r(__webpack_exports__);
2173 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2174 +/* harmony export */ "default": () => (/* binding */ _typeof)
2175 +/* harmony export */ });
2176 +function _typeof(o) {
2177 + "@babel/helpers - typeof";
2178 +
2179 + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2180 + return typeof o;
2181 + } : function (o) {
2182 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2183 + }, _typeof(o);
2184 +}
2185 +
2186 +
2187 +/***/ }),
2188 +
2189 +/***/ "../node_modules/@babel/runtime/helpers/get.js":
2190 +/*!*****************************************************!*\
2191 + !*** ../node_modules/@babel/runtime/helpers/get.js ***!
2192 + \*****************************************************/
2193 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2194 +
2195 +var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js");
2196 +function _get() {
2197 + return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
2198 + var p = superPropBase(e, t);
2199 + if (p) {
2200 + var n = Object.getOwnPropertyDescriptor(p, t);
2201 + return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
2202 + }
2203 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments);
2204 +}
2205 +module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports;
2206 +
2207 +/***/ }),
2208 +
2209 +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
2210 +/*!****************************************************************!*\
2211 + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
2212 + \****************************************************************/
2213 +/***/ ((module) => {
2214 +
2215 +function _getPrototypeOf(t) {
2216 + return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
2217 + return t.__proto__ || Object.getPrototypeOf(t);
2218 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t);
2219 +}
2220 +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2221 +
2222 +/***/ }),
2223 +
2224 +/***/ "../node_modules/@babel/runtime/helpers/inherits.js":
2225 +/*!**********************************************************!*\
2226 + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
2227 + \**********************************************************/
2228 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2229 +
2230 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2231 +function _inherits(t, e) {
2232 + if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
2233 + t.prototype = Object.create(e && e.prototype, {
2234 + constructor: {
2235 + value: t,
2236 + writable: !0,
2237 + configurable: !0
2238 + }
2239 + }), Object.defineProperty(t, "prototype", {
2240 + writable: !1
2241 + }), e && setPrototypeOf(t, e);
2242 +}
2243 +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
2244 +
2245 +/***/ }),
2246 +
2247 +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2248 +/*!***********************************************************************!*\
2249 + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2250 + \***********************************************************************/
2251 +/***/ ((module) => {
2252 +
2253 +function _interopRequireDefault(e) {
2254 + return e && e.__esModule ? e : {
2255 + "default": e
2256 + };
2257 +}
2258 +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2259 +
2260 +/***/ }),
2261 +
2262 +/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js":
2263 +/*!******************************************************************!*\
2264 + !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***!
2265 + \******************************************************************/
2266 +/***/ ((module) => {
2267 +
2268 +function _isNativeFunction(t) {
2269 + try {
2270 + return -1 !== Function.toString.call(t).indexOf("[native code]");
2271 + } catch (n) {
2272 + return "function" == typeof t;
2273 + }
2274 +}
2275 +module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports;
2276 +
2277 +/***/ }),
2278 +
2279 +/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js":
2280 +/*!**************************************************************************!*\
2281 + !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***!
2282 + \**************************************************************************/
2283 +/***/ ((module) => {
2284 +
2285 +function _isNativeReflectConstruct() {
2286 + try {
2287 + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
2288 + } catch (t) {}
2289 + return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {
2290 + return !!t;
2291 + }, module.exports.__esModule = true, module.exports["default"] = module.exports)();
2292 +}
2293 +module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports;
2294 +
2295 +/***/ }),
2296 +
2297 +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2298 +/*!**********************************************************************!*\
2299 + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2300 + \**********************************************************************/
2301 +/***/ ((module) => {
2302 +
2303 +function _iterableToArrayLimit(r, l) {
2304 + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2305 + if (null != t) {
2306 + var e,
2307 + n,
2308 + i,
2309 + u,
2310 + a = [],
2311 + f = !0,
2312 + o = !1;
2313 + try {
2314 + if (i = (t = t.call(r)).next, 0 === l) {
2315 + if (Object(t) !== t) return;
2316 + f = !1;
2317 + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2318 + } catch (r) {
2319 + o = !0, n = r;
2320 + } finally {
2321 + try {
2322 + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2323 + } finally {
2324 + if (o) throw n;
2325 + }
2326 + }
2327 + return a;
2328 + }
2329 +}
2330 +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2331 +
2332 +/***/ }),
2333 +
2334 +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2335 +/*!*****************************************************************!*\
2336 + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2337 + \*****************************************************************/
2338 +/***/ ((module) => {
2339 +
2340 +function _nonIterableRest() {
2341 + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2342 +}
2343 +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2344 +
2345 +/***/ }),
2346 +
2347 +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
2348 +/*!***************************************************************************!*\
2349 + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
2350 + \***************************************************************************/
2351 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2352 +
2353 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2354 +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
2355 +function _possibleConstructorReturn(t, e) {
2356 + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
2357 + if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
2358 + return assertThisInitialized(t);
2359 +}
2360 +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
2361 +
2362 +/***/ }),
2363 +
2364 +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
2365 +/*!****************************************************************!*\
2366 + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
2367 + \****************************************************************/
2368 +/***/ ((module) => {
2369 +
2370 +function _setPrototypeOf(t, e) {
2371 + return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
2372 + return t.__proto__ = e, t;
2373 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e);
2374 +}
2375 +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
2376 +
2377 +/***/ }),
2378 +
2379 +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
2380 +/*!***************************************************************!*\
2381 + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
2382 + \***************************************************************/
2383 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2384 +
2385 +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
2386 +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
2387 +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
2388 +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
2389 +function _slicedToArray(r, e) {
2390 + return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
2391 +}
2392 +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2393 +
2394 +/***/ }),
2395 +
2396 +/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js":
2397 +/*!***************************************************************!*\
2398 + !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***!
2399 + \***************************************************************/
2400 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2401 +
2402 +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2403 +function _superPropBase(t, o) {
2404 + for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t)););
2405 + return t;
2406 +}
2407 +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports;
2408 +
2409 +/***/ }),
2410 +
2411 +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
2412 +/*!*************************************************************!*\
2413 + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
2414 + \*************************************************************/
2415 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2416 +
2417 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2418 +function toPrimitive(t, r) {
2419 + if ("object" != _typeof(t) || !t) return t;
2420 + var e = t[Symbol.toPrimitive];
2421 + if (void 0 !== e) {
2422 + var i = e.call(t, r || "default");
2423 + if ("object" != _typeof(i)) return i;
2424 + throw new TypeError("@@toPrimitive must return a primitive value.");
2425 + }
2426 + return ("string" === r ? String : Number)(t);
2427 +}
2428 +module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
2429 +
2430 +/***/ }),
2431 +
2432 +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
2433 +/*!***************************************************************!*\
2434 + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
2435 + \***************************************************************/
2436 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2437 +
2438 +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2439 +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
2440 +function toPropertyKey(t) {
2441 + var i = toPrimitive(t, "string");
2442 + return "symbol" == _typeof(i) ? i : i + "";
2443 +}
2444 +module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
2445 +
2446 +/***/ }),
2447 +
2448 +/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
2449 +/*!********************************************************!*\
2450 + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
2451 + \********************************************************/
2452 +/***/ ((module) => {
2453 +
2454 +function _typeof(o) {
2455 + "@babel/helpers - typeof";
2456 +
2457 + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
2458 + return typeof o;
2459 + } : function (o) {
2460 + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
2461 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
2462 +}
2463 +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
2464 +
2465 +/***/ }),
2466 +
2467 +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
2468 +/*!****************************************************************************!*\
2469 + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
2470 + \****************************************************************************/
2471 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2472 +
2473 +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2474 +function _unsupportedIterableToArray(r, a) {
2475 + if (r) {
2476 + if ("string" == typeof r) return arrayLikeToArray(r, a);
2477 + var t = {}.toString.call(r).slice(8, -1);
2478 + 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;
2479 + }
2480 +}
2481 +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2482 +
2483 +/***/ }),
2484 +
2485 +/***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js":
2486 +/*!*****************************************************************!*\
2487 + !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***!
2488 + \*****************************************************************/
2489 +/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2490 +
2491 +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js");
2492 +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
2493 +var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js");
2494 +var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js");
2495 +function _wrapNativeSuper(t) {
2496 + var r = "function" == typeof Map ? new Map() : void 0;
2497 + return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {
2498 + if (null === t || !isNativeFunction(t)) return t;
2499 + if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
2500 + if (void 0 !== r) {
2501 + if (r.has(t)) return r.get(t);
2502 + r.set(t, Wrapper);
2503 + }
2504 + function Wrapper() {
2505 + return construct(t, arguments, getPrototypeOf(this).constructor);
2506 + }
2507 + return Wrapper.prototype = Object.create(t.prototype, {
2508 + constructor: {
2509 + value: Wrapper,
2510 + enumerable: !1,
2511 + writable: !0,
2512 + configurable: !0
2513 + }
2514 + }), setPrototypeOf(Wrapper, t);
2515 + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t);
2516 +}
2517 +module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports;
2518 +
2519 +/***/ }),
2520 +
2521 +/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js":
2522 +/*!******************************************************************!*\
2523 + !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***!
2524 + \******************************************************************/
2525 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2526 +
2527 +"use strict";
2528 +__webpack_require__.r(__webpack_exports__);
2529 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
2530 +/* harmony export */ EnhancerArray: () => (/* binding */ EnhancerArray),
2531 +/* harmony export */ MiddlewareArray: () => (/* binding */ MiddlewareArray),
2532 +/* harmony export */ SHOULD_AUTOBATCH: () => (/* binding */ SHOULD_AUTOBATCH),
2533 +/* harmony export */ TaskAbortError: () => (/* binding */ TaskAbortError),
2534 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.__DO_NOT_USE__ActionTypes),
2535 +/* harmony export */ addListener: () => (/* binding */ addListener),
2536 +/* harmony export */ applyMiddleware: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware),
2537 +/* harmony export */ autoBatchEnhancer: () => (/* binding */ autoBatchEnhancer),
2538 +/* harmony export */ bindActionCreators: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.bindActionCreators),
2539 +/* harmony export */ clearAllListeners: () => (/* binding */ clearAllListeners),
2540 +/* harmony export */ combineReducers: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers),
2541 +/* harmony export */ compose: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.compose),
2542 +/* harmony export */ configureStore: () => (/* binding */ configureStore),
2543 +/* harmony export */ createAction: () => (/* binding */ createAction),
2544 +/* harmony export */ createActionCreatorInvariantMiddleware: () => (/* binding */ createActionCreatorInvariantMiddleware),
2545 +/* harmony export */ createAsyncThunk: () => (/* binding */ createAsyncThunk),
2546 +/* harmony export */ createDraftSafeSelector: () => (/* binding */ createDraftSafeSelector),
2547 +/* harmony export */ createEntityAdapter: () => (/* binding */ createEntityAdapter),
2548 +/* harmony export */ createImmutableStateInvariantMiddleware: () => (/* binding */ createImmutableStateInvariantMiddleware),
2549 +/* harmony export */ createListenerMiddleware: () => (/* binding */ createListenerMiddleware),
2550 +/* harmony export */ createNextState: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__["default"]),
2551 +/* harmony export */ createReducer: () => (/* binding */ createReducer),
2552 +/* harmony export */ createSelector: () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector),
2553 +/* harmony export */ createSerializableStateInvariantMiddleware: () => (/* binding */ createSerializableStateInvariantMiddleware),
2554 +/* harmony export */ createSlice: () => (/* binding */ createSlice),
2555 +/* harmony export */ createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.createStore),
2556 +/* harmony export */ current: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.current),
2557 +/* harmony export */ findNonSerializableValue: () => (/* binding */ findNonSerializableValue),
2558 +/* harmony export */ freeze: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.freeze),
2559 +/* harmony export */ getDefaultMiddleware: () => (/* binding */ getDefaultMiddleware),
2560 +/* harmony export */ getType: () => (/* binding */ getType),
2561 +/* harmony export */ isAction: () => (/* binding */ isAction),
2562 +/* harmony export */ isActionCreator: () => (/* binding */ isActionCreator),
2563 +/* harmony export */ isAllOf: () => (/* binding */ isAllOf),
2564 +/* harmony export */ isAnyOf: () => (/* binding */ isAnyOf),
2565 +/* harmony export */ isAsyncThunkAction: () => (/* binding */ isAsyncThunkAction),
2566 +/* harmony export */ isDraft: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.isDraft),
2567 +/* harmony export */ isFluxStandardAction: () => (/* binding */ isFSA),
2568 +/* harmony export */ isFulfilled: () => (/* binding */ isFulfilled),
2569 +/* harmony export */ isImmutableDefault: () => (/* binding */ isImmutableDefault),
2570 +/* harmony export */ isPending: () => (/* binding */ isPending),
2571 +/* harmony export */ isPlain: () => (/* binding */ isPlain),
2572 +/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject),
2573 +/* harmony export */ isRejected: () => (/* binding */ isRejected),
2574 +/* harmony export */ isRejectedWithValue: () => (/* binding */ isRejectedWithValue),
2575 +/* harmony export */ legacy_createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_0__.legacy_createStore),
2576 +/* harmony export */ miniSerializeError: () => (/* binding */ miniSerializeError),
2577 +/* harmony export */ nanoid: () => (/* binding */ nanoid),
2578 +/* harmony export */ original: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_2__.original),
2579 +/* harmony export */ prepareAutoBatched: () => (/* binding */ prepareAutoBatched),
2580 +/* harmony export */ removeListener: () => (/* binding */ removeListener),
2581 +/* harmony export */ unwrapResult: () => (/* binding */ unwrapResult)
2582 +/* harmony export */ });
2583 +/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs");
2584 +/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js");
2585 +/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js");
2586 +/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js");
2587 +var __extends = (undefined && undefined.__extends) || (function () {
2588 + var extendStatics = function (d, b) {
2589 + extendStatics = Object.setPrototypeOf ||
2590 + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2591 + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
2592 + return extendStatics(d, b);
2593 + };
2594 + return function (d, b) {
2595 + if (typeof b !== "function" && b !== null)
2596 + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2597 + extendStatics(d, b);
2598 + function __() { this.constructor = d; }
2599 + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2600 + };
2601 +})();
2602 +var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
2603 + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
2604 + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
2605 + function verb(n) { return function (v) { return step([n, v]); }; }
2606 + function step(op) {
2607 + if (f) throw new TypeError("Generator is already executing.");
2608 + while (_) try {
2609 + 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;
2610 + if (y = 0, t) op = [op[0] & 2, t.value];
2611 + switch (op[0]) {
2612 + case 0: case 1: t = op; break;
2613 + case 4: _.label++; return { value: op[1], done: false };
2614 + case 5: _.label++; y = op[1]; op = [0]; continue;
2615 + case 7: op = _.ops.pop(); _.trys.pop(); continue;
2616 + default:
2617 + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
2618 + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
2619 + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
2620 + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
2621 + if (t[2]) _.ops.pop();
2622 + _.trys.pop(); continue;
2623 + }
2624 + op = body.call(thisArg, _);
2625 + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
2626 + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
2627 + }
2628 +};
2629 +var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) {
2630 + for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
2631 + to[j] = from[i];
2632 + return to;
2633 +};
2634 +var __defProp = Object.defineProperty;
2635 +var __defProps = Object.defineProperties;
2636 +var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2637 +var __getOwnPropSymbols = Object.getOwnPropertySymbols;
2638 +var __hasOwnProp = Object.prototype.hasOwnProperty;
2639 +var __propIsEnum = Object.prototype.propertyIsEnumerable;
2640 +var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; };
2641 +var __spreadValues = function (a, b) {
2642 + for (var prop in b || (b = {}))
2643 + if (__hasOwnProp.call(b, prop))
2644 + __defNormalProp(a, prop, b[prop]);
2645 + if (__getOwnPropSymbols)
2646 + for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) {
2647 + var prop = _c[_i];
2648 + if (__propIsEnum.call(b, prop))
2649 + __defNormalProp(a, prop, b[prop]);
2650 + }
2651 + return a;
2652 +};
2653 +var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); };
2654 +var __async = function (__this, __arguments, generator) {
2655 + return new Promise(function (resolve, reject) {
2656 + var fulfilled = function (value) {
2657 + try {
2658 + step(generator.next(value));
2659 + }
2660 + catch (e) {
2661 + reject(e);
2662 + }
2663 + };
2664 + var rejected = function (value) {
2665 + try {
2666 + step(generator.throw(value));
2667 + }
2668 + catch (e) {
2669 + reject(e);
2670 + }
2671 + };
2672 + var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); };
2673 + step((generator = generator.apply(__this, __arguments)).next());
2674 + });
2675 +};
2676 +// src/index.ts
2677 +
2678 +
2679 +
2680 +
2681 +// src/createDraftSafeSelector.ts
2682 +
2683 +
2684 +var createDraftSafeSelector = function () {
2685 + var args = [];
2686 + for (var _i = 0; _i < arguments.length; _i++) {
2687 + args[_i] = arguments[_i];
2688 + }
2689 + var selector = reselect__WEBPACK_IMPORTED_MODULE_1__.createSelector.apply(void 0, args);
2690 + var wrappedSelector = function (value) {
2691 + var rest = [];
2692 + for (var _i = 1; _i < arguments.length; _i++) {
2693 + rest[_i - 1] = arguments[_i];
2694 + }
2695 + return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__.current)(value) : value], rest));
2696 + };
2697 + return wrappedSelector;
2698 +};
2699 +// src/configureStore.ts
2700 +
2701 +// src/devtoolsExtension.ts
2702 +
2703 +var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () {
2704 + if (arguments.length === 0)
2705 + return void 0;
2706 + if (typeof arguments[0] === "object")
2707 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose;
2708 + return redux__WEBPACK_IMPORTED_MODULE_0__.compose.apply(null, arguments);
2709 +};
2710 +var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () {
2711 + return function (noop2) {
2712 + return noop2;
2713 + };
2714 +};
2715 +// src/isPlainObject.ts
2716 +function isPlainObject(value) {
2717 + if (typeof value !== "object" || value === null)
2718 + return false;
2719 + var proto = Object.getPrototypeOf(value);
2720 + if (proto === null)
2721 + return true;
2722 + var baseProto = proto;
2723 + while (Object.getPrototypeOf(baseProto) !== null) {
2724 + baseProto = Object.getPrototypeOf(baseProto);
2725 + }
2726 + return proto === baseProto;
2727 +}
2728 +// src/getDefaultMiddleware.ts
2729 +
2730 +// src/tsHelpers.ts
2731 +var hasMatchFunction = function (v) {
2732 + return v && typeof v.match === "function";
2733 +};
2734 +// src/createAction.ts
2735 +function createAction(type, prepareAction) {
2736 + function actionCreator() {
2737 + var args = [];
2738 + for (var _i = 0; _i < arguments.length; _i++) {
2739 + args[_i] = arguments[_i];
2740 + }
2741 + if (prepareAction) {
2742 + var prepared = prepareAction.apply(void 0, args);
2743 + if (!prepared) {
2744 + throw new Error("prepareAction did not return an object");
2745 + }
2746 + return __spreadValues(__spreadValues({
2747 + type: type,
2748 + payload: prepared.payload
2749 + }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error });
2750 + }
2751 + return { type: type, payload: args[0] };
2752 + }
2753 + actionCreator.toString = function () { return "" + type; };
2754 + actionCreator.type = type;
2755 + actionCreator.match = function (action) { return action.type === type; };
2756 + return actionCreator;
2757 +}
2758 +function isAction(action) {
2759 + return isPlainObject(action) && "type" in action;
2760 +}
2761 +function isActionCreator(action) {
2762 + return typeof action === "function" && "type" in action && hasMatchFunction(action);
2763 +}
2764 +function isFSA(action) {
2765 + return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey);
2766 +}
2767 +function isValidKey(key) {
2768 + return ["type", "payload", "error", "meta"].indexOf(key) > -1;
2769 +}
2770 +function getType(actionCreator) {
2771 + return "" + actionCreator;
2772 +}
2773 +// src/actionCreatorInvariantMiddleware.ts
2774 +function getMessage(type) {
2775 + var splitType = type ? ("" + type).split("/") : [];
2776 + var actionName = splitType[splitType.length - 1] || "actionCreator";
2777 + 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.";
2778 +}
2779 +function createActionCreatorInvariantMiddleware(options) {
2780 + if (options === void 0) { options = {}; }
2781 + if (false) // removed by dead control flow
2782 +{}
2783 + var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c;
2784 + return function () { return function (next) { return function (action) {
2785 + if (isActionCreator2(action)) {
2786 + console.warn(getMessage(action.type));
2787 + }
2788 + return next(action);
2789 + }; }; };
2790 +}
2791 +// src/utils.ts
2792 +
2793 +function getTimeMeasureUtils(maxDelay, fnName) {
2794 + var elapsed = 0;
2795 + return {
2796 + measureTime: function (fn) {
2797 + var started = Date.now();
2798 + try {
2799 + return fn();
2800 + }
2801 + finally {
2802 + var finished = Date.now();
2803 + elapsed += finished - started;
2804 + }
2805 + },
2806 + warnIfExceeded: function () {
2807 + if (elapsed > maxDelay) {
2808 + 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.");
2809 + }
2810 + }
2811 + };
2812 +}
2813 +var MiddlewareArray = /** @class */ (function (_super) {
2814 + __extends(MiddlewareArray, _super);
2815 + function MiddlewareArray() {
2816 + var args = [];
2817 + for (var _i = 0; _i < arguments.length; _i++) {
2818 + args[_i] = arguments[_i];
2819 + }
2820 + var _this = _super.apply(this, args) || this;
2821 + Object.setPrototypeOf(_this, MiddlewareArray.prototype);
2822 + return _this;
2823 + }
2824 + Object.defineProperty(MiddlewareArray, Symbol.species, {
2825 + get: function () {
2826 + return MiddlewareArray;
2827 + },
2828 + enumerable: false,
2829 + configurable: true
2830 + });
2831 + MiddlewareArray.prototype.concat = function () {
2832 + var arr = [];
2833 + for (var _i = 0; _i < arguments.length; _i++) {
2834 + arr[_i] = arguments[_i];
2835 + }
2836 + return _super.prototype.concat.apply(this, arr);
2837 + };
2838 + MiddlewareArray.prototype.prepend = function () {
2839 + var arr = [];
2840 + for (var _i = 0; _i < arguments.length; _i++) {
2841 + arr[_i] = arguments[_i];
2842 + }
2843 + if (arr.length === 1 && Array.isArray(arr[0])) {
2844 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))();
2845 + }
2846 + return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))();
2847 + };
2848 + return MiddlewareArray;
2849 +}(Array));
2850 +var EnhancerArray = /** @class */ (function (_super) {
2851 + __extends(EnhancerArray, _super);
2852 + function EnhancerArray() {
2853 + var args = [];
2854 + for (var _i = 0; _i < arguments.length; _i++) {
2855 + args[_i] = arguments[_i];
2856 + }
2857 + var _this = _super.apply(this, args) || this;
2858 + Object.setPrototypeOf(_this, EnhancerArray.prototype);
2859 + return _this;
2860 + }
2861 + Object.defineProperty(EnhancerArray, Symbol.species, {
2862 + get: function () {
2863 + return EnhancerArray;
2864 + },
2865 + enumerable: false,
2866 + configurable: true
2867 + });
2868 + EnhancerArray.prototype.concat = function () {
2869 + var arr = [];
2870 + for (var _i = 0; _i < arguments.length; _i++) {
2871 + arr[_i] = arguments[_i];
2872 + }
2873 + return _super.prototype.concat.apply(this, arr);
2874 + };
2875 + EnhancerArray.prototype.prepend = function () {
2876 + var arr = [];
2877 + for (var _i = 0; _i < arguments.length; _i++) {
2878 + arr[_i] = arguments[_i];
2879 + }
2880 + if (arr.length === 1 && Array.isArray(arr[0])) {
2881 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))();
2882 + }
2883 + return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))();
2884 + };
2885 + return EnhancerArray;
2886 +}(Array));
2887 +function freezeDraftable(val) {
2888 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(val, function () {
2889 + }) : val;
2890 +}
2891 +// src/immutableStateInvariantMiddleware.ts
2892 +var isProduction = "development" === "production";
2893 +var prefix = "Invariant failed";
2894 +function invariant(condition, message) {
2895 + if (condition) {
2896 + return;
2897 + }
2898 + if (isProduction) {
2899 + throw new Error(prefix);
2900 + }
2901 + throw new Error(prefix + ": " + (message || ""));
2902 +}
2903 +function stringify(obj, serializer, indent, decycler) {
2904 + return JSON.stringify(obj, getSerialize(serializer, decycler), indent);
2905 +}
2906 +function getSerialize(serializer, decycler) {
2907 + var stack = [], keys = [];
2908 + if (!decycler)
2909 + decycler = function (_, value) {
2910 + if (stack[0] === value)
2911 + return "[Circular ~]";
2912 + return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
2913 + };
2914 + return function (key, value) {
2915 + if (stack.length > 0) {
2916 + var thisPos = stack.indexOf(this);
2917 + ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
2918 + ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
2919 + if (~stack.indexOf(value))
2920 + value = decycler.call(this, key, value);
2921 + }
2922 + else
2923 + stack.push(value);
2924 + return serializer == null ? value : serializer.call(this, key, value);
2925 + };
2926 +}
2927 +function isImmutableDefault(value) {
2928 + return typeof value !== "object" || value == null || Object.isFrozen(value);
2929 +}
2930 +function trackForMutations(isImmutable, ignorePaths, obj) {
2931 + var trackedProperties = trackProperties(isImmutable, ignorePaths, obj);
2932 + return {
2933 + detectMutations: function () {
2934 + return detectMutations(isImmutable, ignorePaths, trackedProperties, obj);
2935 + }
2936 + };
2937 +}
2938 +function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) {
2939 + if (ignorePaths === void 0) { ignorePaths = []; }
2940 + if (path === void 0) { path = ""; }
2941 + if (checkedObjects === void 0) { checkedObjects = new Set(); }
2942 + var tracked = { value: obj };
2943 + if (!isImmutable(obj) && !checkedObjects.has(obj)) {
2944 + checkedObjects.add(obj);
2945 + tracked.children = {};
2946 + for (var key in obj) {
2947 + var childPath = path ? path + "." + key : key;
2948 + if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) {
2949 + continue;
2950 + }
2951 + tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath);
2952 + }
2953 + }
2954 + return tracked;
2955 +}
2956 +function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) {
2957 + if (ignoredPaths === void 0) { ignoredPaths = []; }
2958 + if (sameParentRef === void 0) { sameParentRef = false; }
2959 + if (path === void 0) { path = ""; }
2960 + var prevObj = trackedProperty ? trackedProperty.value : void 0;
2961 + var sameRef = prevObj === obj;
2962 + if (sameParentRef && !sameRef && !Number.isNaN(obj)) {
2963 + return { wasMutated: true, path: path };
2964 + }
2965 + if (isImmutable(prevObj) || isImmutable(obj)) {
2966 + return { wasMutated: false };
2967 + }
2968 + var keysToDetect = {};
2969 + for (var key in trackedProperty.children) {
2970 + keysToDetect[key] = true;
2971 + }
2972 + for (var key in obj) {
2973 + keysToDetect[key] = true;
2974 + }
2975 + var hasIgnoredPaths = ignoredPaths.length > 0;
2976 + var _loop_1 = function (key) {
2977 + var nestedPath = path ? path + "." + key : key;
2978 + if (hasIgnoredPaths) {
2979 + var hasMatches = ignoredPaths.some(function (ignored) {
2980 + if (ignored instanceof RegExp) {
2981 + return ignored.test(nestedPath);
2982 + }
2983 + return nestedPath === ignored;
2984 + });
2985 + if (hasMatches) {
2986 + return "continue";
2987 + }
2988 + }
2989 + var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath);
2990 + if (result.wasMutated) {
2991 + return { value: result };
2992 + }
2993 + };
2994 + for (var key in keysToDetect) {
2995 + var state_1 = _loop_1(key);
2996 + if (typeof state_1 === "object")
2997 + return state_1.value;
2998 + }
2999 + return { wasMutated: false };
3000 +}
3001 +function createImmutableStateInvariantMiddleware(options) {
3002 + if (options === void 0) { options = {}; }
3003 + if (false) // removed by dead control flow
3004 +{}
3005 + 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;
3006 + ignoredPaths = ignoredPaths || ignore;
3007 + var track = trackForMutations.bind(null, isImmutable, ignoredPaths);
3008 + return function (_c) {
3009 + var getState = _c.getState;
3010 + var state = getState();
3011 + var tracker = track(state);
3012 + var result;
3013 + return function (next) { return function (action) {
3014 + var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware");
3015 + measureUtils.measureTime(function () {
3016 + state = getState();
3017 + result = tracker.detectMutations();
3018 + tracker = track(state);
3019 + 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)");
3020 + });
3021 + var dispatchedAction = next(action);
3022 + measureUtils.measureTime(function () {
3023 + state = getState();
3024 + result = tracker.detectMutations();
3025 + tracker = track(state);
3026 + 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)");
3027 + });
3028 + measureUtils.warnIfExceeded();
3029 + return dispatchedAction;
3030 + }; };
3031 + };
3032 +}
3033 +// src/serializableStateInvariantMiddleware.ts
3034 +function isPlain(val) {
3035 + var type = typeof val;
3036 + return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val);
3037 +}
3038 +function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) {
3039 + if (path === void 0) { path = ""; }
3040 + if (isSerializable === void 0) { isSerializable = isPlain; }
3041 + if (ignoredPaths === void 0) { ignoredPaths = []; }
3042 + var foundNestedSerializable;
3043 + if (!isSerializable(value)) {
3044 + return {
3045 + keyPath: path || "<root>",
3046 + value: value
3047 + };
3048 + }
3049 + if (typeof value !== "object" || value === null) {
3050 + return false;
3051 + }
3052 + if (cache == null ? void 0 : cache.has(value))
3053 + return false;
3054 + var entries = getEntries != null ? getEntries(value) : Object.entries(value);
3055 + var hasIgnoredPaths = ignoredPaths.length > 0;
3056 + var _loop_2 = function (key, nestedValue) {
3057 + var nestedPath = path ? path + "." + key : key;
3058 + if (hasIgnoredPaths) {
3059 + var hasMatches = ignoredPaths.some(function (ignored) {
3060 + if (ignored instanceof RegExp) {
3061 + return ignored.test(nestedPath);
3062 + }
3063 + return nestedPath === ignored;
3064 + });
3065 + if (hasMatches) {
3066 + return "continue";
3067 + }
3068 + }
3069 + if (!isSerializable(nestedValue)) {
3070 + return { value: {
3071 + keyPath: nestedPath,
3072 + value: nestedValue
3073 + } };
3074 + }
3075 + if (typeof nestedValue === "object") {
3076 + foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache);
3077 + if (foundNestedSerializable) {
3078 + return { value: foundNestedSerializable };
3079 + }
3080 + }
3081 + };
3082 + for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
3083 + var _c = entries_1[_i], key = _c[0], nestedValue = _c[1];
3084 + var state_2 = _loop_2(key, nestedValue);
3085 + if (typeof state_2 === "object")
3086 + return state_2.value;
3087 + }
3088 + if (cache && isNestedFrozen(value))
3089 + cache.add(value);
3090 + return false;
3091 +}
3092 +function isNestedFrozen(value) {
3093 + if (!Object.isFrozen(value))
3094 + return false;
3095 + for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) {
3096 + var nestedValue = _c[_i];
3097 + if (typeof nestedValue !== "object" || nestedValue === null)
3098 + continue;
3099 + if (!isNestedFrozen(nestedValue))
3100 + return false;
3101 + }
3102 + return true;
3103 +}
3104 +function createSerializableStateInvariantMiddleware(options) {
3105 + if (options === void 0) { options = {}; }
3106 + if (false) // removed by dead control flow
3107 +{}
3108 + 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;
3109 + var cache = !disableCache && WeakSet ? new WeakSet() : void 0;
3110 + return function (storeAPI) { return function (next) { return function (action) {
3111 + var result = next(action);
3112 + var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware");
3113 + if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) {
3114 + measureUtils.measureTime(function () {
3115 + var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache);
3116 + if (foundActionNonSerializableValue) {
3117 + var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value;
3118 + 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)");
3119 + }
3120 + });
3121 + }
3122 + if (!ignoreState) {
3123 + measureUtils.measureTime(function () {
3124 + var state = storeAPI.getState();
3125 + var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache);
3126 + if (foundStateNonSerializableValue) {
3127 + var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value;
3128 + 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)");
3129 + }
3130 + });
3131 + measureUtils.warnIfExceeded();
3132 + }
3133 + return result;
3134 + }; }; };
3135 +}
3136 +// src/getDefaultMiddleware.ts
3137 +function isBoolean(x) {
3138 + return typeof x === "boolean";
3139 +}
3140 +function curryGetDefaultMiddleware() {
3141 + return function curriedGetDefaultMiddleware(options) {
3142 + return getDefaultMiddleware(options);
3143 + };
3144 +}
3145 +function getDefaultMiddleware(options) {
3146 + if (options === void 0) { options = {}; }
3147 + 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;
3148 + var middlewareArray = new MiddlewareArray();
3149 + if (thunk) {
3150 + if (isBoolean(thunk)) {
3151 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]);
3152 + }
3153 + else {
3154 + middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument));
3155 + }
3156 + }
3157 + if (true) {
3158 + if (immutableCheck) {
3159 + var immutableOptions = {};
3160 + if (!isBoolean(immutableCheck)) {
3161 + immutableOptions = immutableCheck;
3162 + }
3163 + middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions));
3164 + }
3165 + if (serializableCheck) {
3166 + var serializableOptions = {};
3167 + if (!isBoolean(serializableCheck)) {
3168 + serializableOptions = serializableCheck;
3169 + }
3170 + middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions));
3171 + }
3172 + if (actionCreatorCheck) {
3173 + var actionCreatorOptions = {};
3174 + if (!isBoolean(actionCreatorCheck)) {
3175 + actionCreatorOptions = actionCreatorCheck;
3176 + }
3177 + middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions));
3178 + }
3179 + }
3180 + return middlewareArray;
3181 +}
3182 +// src/configureStore.ts
3183 +var IS_PRODUCTION = "development" === "production";
3184 +function configureStore(options) {
3185 + var curriedGetDefaultMiddleware = curryGetDefaultMiddleware();
3186 + 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;
3187 + var rootReducer;
3188 + if (typeof reducer === "function") {
3189 + rootReducer = reducer;
3190 + }
3191 + else if (isPlainObject(reducer)) {
3192 + rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_0__.combineReducers)(reducer);
3193 + }
3194 + else {
3195 + throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');
3196 + }
3197 + var finalMiddleware = middleware;
3198 + if (typeof finalMiddleware === "function") {
3199 + finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware);
3200 + if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) {
3201 + throw new Error("when using a middleware builder function, an array of middleware must be returned");
3202 + }
3203 + }
3204 + if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) {
3205 + throw new Error("each middleware provided to configureStore must be a function");
3206 + }
3207 + var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_0__.applyMiddleware.apply(void 0, finalMiddleware);
3208 + var finalCompose = redux__WEBPACK_IMPORTED_MODULE_0__.compose;
3209 + if (devTools) {
3210 + finalCompose = composeWithDevTools(__spreadValues({
3211 + trace: !IS_PRODUCTION
3212 + }, typeof devTools === "object" && devTools));
3213 + }
3214 + var defaultEnhancers = new EnhancerArray(middlewareEnhancer);
3215 + var storeEnhancers = defaultEnhancers;
3216 + if (Array.isArray(enhancers)) {
3217 + storeEnhancers = __spreadArray([middlewareEnhancer], enhancers);
3218 + }
3219 + else if (typeof enhancers === "function") {
3220 + storeEnhancers = enhancers(defaultEnhancers);
3221 + }
3222 + var composedEnhancer = finalCompose.apply(void 0, storeEnhancers);
3223 + return (0,redux__WEBPACK_IMPORTED_MODULE_0__.createStore)(rootReducer, preloadedState, composedEnhancer);
3224 +}
3225 +// src/createReducer.ts
3226 +
3227 +// src/mapBuilders.ts
3228 +function executeReducerBuilderCallback(builderCallback) {
3229 + var actionsMap = {};
3230 + var actionMatchers = [];
3231 + var defaultCaseReducer;
3232 + var builder = {
3233 + addCase: function (typeOrActionCreator, reducer) {
3234 + if (true) {
3235 + if (actionMatchers.length > 0) {
3236 + throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
3237 + }
3238 + if (defaultCaseReducer) {
3239 + throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
3240 + }
3241 + }
3242 + var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
3243 + if (!type) {
3244 + throw new Error("`builder.addCase` cannot be called with an empty action type");
3245 + }
3246 + if (type in actionsMap) {
3247 + throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");
3248 + }
3249 + actionsMap[type] = reducer;
3250 + return builder;
3251 + },
3252 + addMatcher: function (matcher, reducer) {
3253 + if (true) {
3254 + if (defaultCaseReducer) {
3255 + throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
3256 + }
3257 + }
3258 + actionMatchers.push({ matcher: matcher, reducer: reducer });
3259 + return builder;
3260 + },
3261 + addDefaultCase: function (reducer) {
3262 + if (true) {
3263 + if (defaultCaseReducer) {
3264 + throw new Error("`builder.addDefaultCase` can only be called once");
3265 + }
3266 + }
3267 + defaultCaseReducer = reducer;
3268 + return builder;
3269 + }
3270 + };
3271 + builderCallback(builder);
3272 + return [actionsMap, actionMatchers, defaultCaseReducer];
3273 +}
3274 +// src/createReducer.ts
3275 +function isStateFunction(x) {
3276 + return typeof x === "function";
3277 +}
3278 +var hasWarnedAboutObjectNotation = false;
3279 +function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) {
3280 + if (actionMatchers === void 0) { actionMatchers = []; }
3281 + if (true) {
3282 + if (typeof mapOrBuilderCallback === "object") {
3283 + if (!hasWarnedAboutObjectNotation) {
3284 + hasWarnedAboutObjectNotation = true;
3285 + 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");
3286 + }
3287 + }
3288 + }
3289 + var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2];
3290 + var getInitialState;
3291 + if (isStateFunction(initialState)) {
3292 + getInitialState = function () { return freezeDraftable(initialState()); };
3293 + }
3294 + else {
3295 + var frozenInitialState_1 = freezeDraftable(initialState);
3296 + getInitialState = function () { return frozenInitialState_1; };
3297 + }
3298 + function reducer(state, action) {
3299 + if (state === void 0) { state = getInitialState(); }
3300 + var caseReducers = __spreadArray([
3301 + actionsMap[action.type]
3302 + ], finalActionMatchers.filter(function (_c) {
3303 + var matcher = _c.matcher;
3304 + return matcher(action);
3305 + }).map(function (_c) {
3306 + var reducer2 = _c.reducer;
3307 + return reducer2;
3308 + }));
3309 + if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) {
3310 + caseReducers = [finalDefaultCaseReducer];
3311 + }
3312 + return caseReducers.reduce(function (previousState, caseReducer) {
3313 + if (caseReducer) {
3314 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(previousState)) {
3315 + var draft = previousState;
3316 + var result = caseReducer(draft, action);
3317 + if (result === void 0) {
3318 + return previousState;
3319 + }
3320 + return result;
3321 + }
3322 + else if (!(0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraftable)(previousState)) {
3323 + var result = caseReducer(previousState, action);
3324 + if (result === void 0) {
3325 + if (previousState === null) {
3326 + return previousState;
3327 + }
3328 + throw Error("A case reducer on a non-draftable value must not return undefined");
3329 + }
3330 + return result;
3331 + }
3332 + else {
3333 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(previousState, function (draft) {
3334 + return caseReducer(draft, action);
3335 + });
3336 + }
3337 + }
3338 + return previousState;
3339 + }, state);
3340 + }
3341 + reducer.getInitialState = getInitialState;
3342 + return reducer;
3343 +}
3344 +// src/createSlice.ts
3345 +var hasWarnedAboutObjectNotation2 = false;
3346 +function getType2(slice, actionKey) {
3347 + return slice + "/" + actionKey;
3348 +}
3349 +function createSlice(options) {
3350 + var name = options.name;
3351 + if (!name) {
3352 + throw new Error("`name` is a required option for createSlice");
3353 + }
3354 + if (typeof process !== "undefined" && "development" === "development") {
3355 + if (options.initialState === void 0) {
3356 + console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
3357 + }
3358 + }
3359 + var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState);
3360 + var reducers = options.reducers || {};
3361 + var reducerNames = Object.keys(reducers);
3362 + var sliceCaseReducersByName = {};
3363 + var sliceCaseReducersByType = {};
3364 + var actionCreators = {};
3365 + reducerNames.forEach(function (reducerName) {
3366 + var maybeReducerWithPrepare = reducers[reducerName];
3367 + var type = getType2(name, reducerName);
3368 + var caseReducer;
3369 + var prepareCallback;
3370 + if ("reducer" in maybeReducerWithPrepare) {
3371 + caseReducer = maybeReducerWithPrepare.reducer;
3372 + prepareCallback = maybeReducerWithPrepare.prepare;
3373 + }
3374 + else {
3375 + caseReducer = maybeReducerWithPrepare;
3376 + }
3377 + sliceCaseReducersByName[reducerName] = caseReducer;
3378 + sliceCaseReducersByType[type] = caseReducer;
3379 + actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type);
3380 + });
3381 + function buildReducer() {
3382 + if (true) {
3383 + if (typeof options.extraReducers === "object") {
3384 + if (!hasWarnedAboutObjectNotation2) {
3385 + hasWarnedAboutObjectNotation2 = true;
3386 + 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");
3387 + }
3388 + }
3389 + }
3390 + 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;
3391 + var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType);
3392 + return createReducer(initialState, function (builder) {
3393 + for (var key in finalCaseReducers) {
3394 + builder.addCase(key, finalCaseReducers[key]);
3395 + }
3396 + for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) {
3397 + var m = actionMatchers_1[_i];
3398 + builder.addMatcher(m.matcher, m.reducer);
3399 + }
3400 + if (defaultCaseReducer) {
3401 + builder.addDefaultCase(defaultCaseReducer);
3402 + }
3403 + });
3404 + }
3405 + var _reducer;
3406 + return {
3407 + name: name,
3408 + reducer: function (state, action) {
3409 + if (!_reducer)
3410 + _reducer = buildReducer();
3411 + return _reducer(state, action);
3412 + },
3413 + actions: actionCreators,
3414 + caseReducers: sliceCaseReducersByName,
3415 + getInitialState: function () {
3416 + if (!_reducer)
3417 + _reducer = buildReducer();
3418 + return _reducer.getInitialState();
3419 + }
3420 + };
3421 +}
3422 +// src/entities/entity_state.ts
3423 +function getInitialEntityState() {
3424 + return {
3425 + ids: [],
3426 + entities: {}
3427 + };
3428 +}
3429 +function createInitialStateFactory() {
3430 + function getInitialState(additionalState) {
3431 + if (additionalState === void 0) { additionalState = {}; }
3432 + return Object.assign(getInitialEntityState(), additionalState);
3433 + }
3434 + return { getInitialState: getInitialState };
3435 +}
3436 +// src/entities/state_selectors.ts
3437 +function createSelectorsFactory() {
3438 + function getSelectors(selectState) {
3439 + var selectIds = function (state) { return state.ids; };
3440 + var selectEntities = function (state) { return state.entities; };
3441 + var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); });
3442 + var selectId = function (_, id) { return id; };
3443 + var selectById = function (entities, id) { return entities[id]; };
3444 + var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; });
3445 + if (!selectState) {
3446 + return {
3447 + selectIds: selectIds,
3448 + selectEntities: selectEntities,
3449 + selectAll: selectAll,
3450 + selectTotal: selectTotal,
3451 + selectById: createDraftSafeSelector(selectEntities, selectId, selectById)
3452 + };
3453 + }
3454 + var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities);
3455 + return {
3456 + selectIds: createDraftSafeSelector(selectState, selectIds),
3457 + selectEntities: selectGlobalizedEntities,
3458 + selectAll: createDraftSafeSelector(selectState, selectAll),
3459 + selectTotal: createDraftSafeSelector(selectState, selectTotal),
3460 + selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById)
3461 + };
3462 + }
3463 + return { getSelectors: getSelectors };
3464 +}
3465 +// src/entities/state_adapter.ts
3466 +
3467 +function createSingleArgumentStateOperator(mutator) {
3468 + var operator = createStateOperator(function (_, state) { return mutator(state); });
3469 + return function operation(state) {
3470 + return operator(state, void 0);
3471 + };
3472 +}
3473 +function createStateOperator(mutator) {
3474 + return function operation(state, arg) {
3475 + function isPayloadActionArgument(arg2) {
3476 + return isFSA(arg2);
3477 + }
3478 + var runMutator = function (draft) {
3479 + if (isPayloadActionArgument(arg)) {
3480 + mutator(arg.payload, draft);
3481 + }
3482 + else {
3483 + mutator(arg, draft);
3484 + }
3485 + };
3486 + if ((0,immer__WEBPACK_IMPORTED_MODULE_2__.isDraft)(state)) {
3487 + runMutator(state);
3488 + return state;
3489 + }
3490 + else {
3491 + return (0,immer__WEBPACK_IMPORTED_MODULE_2__["default"])(state, runMutator);
3492 + }
3493 + };
3494 +}
3495 +// src/entities/utils.ts
3496 +function selectIdValue(entity, selectId) {
3497 + var key = selectId(entity);
3498 + if ( true && key === void 0) {
3499 + 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());
3500 + }
3501 + return key;
3502 +}
3503 +function ensureEntitiesArray(entities) {
3504 + if (!Array.isArray(entities)) {
3505 + entities = Object.values(entities);
3506 + }
3507 + return entities;
3508 +}
3509 +function splitAddedUpdatedEntities(newEntities, selectId, state) {
3510 + newEntities = ensureEntitiesArray(newEntities);
3511 + var added = [];
3512 + var updated = [];
3513 + for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) {
3514 + var entity = newEntities_1[_i];
3515 + var id = selectIdValue(entity, selectId);
3516 + if (id in state.entities) {
3517 + updated.push({ id: id, changes: entity });
3518 + }
3519 + else {
3520 + added.push(entity);
3521 + }
3522 + }
3523 + return [added, updated];
3524 +}
3525 +// src/entities/unsorted_state_adapter.ts
3526 +function createUnsortedStateAdapter(selectId) {
3527 + function addOneMutably(entity, state) {
3528 + var key = selectIdValue(entity, selectId);
3529 + if (key in state.entities) {
3530 + return;
3531 + }
3532 + state.ids.push(key);
3533 + state.entities[key] = entity;
3534 + }
3535 + function addManyMutably(newEntities, state) {
3536 + newEntities = ensureEntitiesArray(newEntities);
3537 + for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) {
3538 + var entity = newEntities_2[_i];
3539 + addOneMutably(entity, state);
3540 + }
3541 + }
3542 + function setOneMutably(entity, state) {
3543 + var key = selectIdValue(entity, selectId);
3544 + if (!(key in state.entities)) {
3545 + state.ids.push(key);
3546 + }
3547 + state.entities[key] = entity;
3548 + }
3549 + function setManyMutably(newEntities, state) {
3550 + newEntities = ensureEntitiesArray(newEntities);
3551 + for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) {
3552 + var entity = newEntities_3[_i];
3553 + setOneMutably(entity, state);
3554 + }
3555 + }
3556 + function setAllMutably(newEntities, state) {
3557 + newEntities = ensureEntitiesArray(newEntities);
3558 + state.ids = [];
3559 + state.entities = {};
3560 + addManyMutably(newEntities, state);
3561 + }
3562 + function removeOneMutably(key, state) {
3563 + return removeManyMutably([key], state);
3564 + }
3565 + function removeManyMutably(keys, state) {
3566 + var didMutate = false;
3567 + keys.forEach(function (key) {
3568 + if (key in state.entities) {
3569 + delete state.entities[key];
3570 + didMutate = true;
3571 + }
3572 + });
3573 + if (didMutate) {
3574 + state.ids = state.ids.filter(function (id) { return id in state.entities; });
3575 + }
3576 + }
3577 + function removeAllMutably(state) {
3578 + Object.assign(state, {
3579 + ids: [],
3580 + entities: {}
3581 + });
3582 + }
3583 + function takeNewKey(keys, update, state) {
3584 + var original2 = state.entities[update.id];
3585 + var updated = Object.assign({}, original2, update.changes);
3586 + var newKey = selectIdValue(updated, selectId);
3587 + var hasNewKey = newKey !== update.id;
3588 + if (hasNewKey) {
3589 + keys[update.id] = newKey;
3590 + delete state.entities[update.id];
3591 + }
3592 + state.entities[newKey] = updated;
3593 + return hasNewKey;
3594 + }
3595 + function updateOneMutably(update, state) {
3596 + return updateManyMutably([update], state);
3597 + }
3598 + function updateManyMutably(updates, state) {
3599 + var newKeys = {};
3600 + var updatesPerEntity = {};
3601 + updates.forEach(function (update) {
3602 + if (update.id in state.entities) {
3603 + updatesPerEntity[update.id] = {
3604 + id: update.id,
3605 + changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes)
3606 + };
3607 + }
3608 + });
3609 + updates = Object.values(updatesPerEntity);
3610 + var didMutateEntities = updates.length > 0;
3611 + if (didMutateEntities) {
3612 + var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0;
3613 + if (didMutateIds) {
3614 + state.ids = Object.keys(state.entities);
3615 + }
3616 + }
3617 + }
3618 + function upsertOneMutably(entity, state) {
3619 + return upsertManyMutably([entity], state);
3620 + }
3621 + function upsertManyMutably(newEntities, state) {
3622 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
3623 + updateManyMutably(updated, state);
3624 + addManyMutably(added, state);
3625 + }
3626 + return {
3627 + removeAll: createSingleArgumentStateOperator(removeAllMutably),
3628 + addOne: createStateOperator(addOneMutably),
3629 + addMany: createStateOperator(addManyMutably),
3630 + setOne: createStateOperator(setOneMutably),
3631 + setMany: createStateOperator(setManyMutably),
3632 + setAll: createStateOperator(setAllMutably),
3633 + updateOne: createStateOperator(updateOneMutably),
3634 + updateMany: createStateOperator(updateManyMutably),
3635 + upsertOne: createStateOperator(upsertOneMutably),
3636 + upsertMany: createStateOperator(upsertManyMutably),
3637 + removeOne: createStateOperator(removeOneMutably),
3638 + removeMany: createStateOperator(removeManyMutably)
3639 + };
3640 +}
3641 +// src/entities/sorted_state_adapter.ts
3642 +function createSortedStateAdapter(selectId, sort) {
3643 + var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll;
3644 + function addOneMutably(entity, state) {
3645 + return addManyMutably([entity], state);
3646 + }
3647 + function addManyMutably(newEntities, state) {
3648 + newEntities = ensureEntitiesArray(newEntities);
3649 + var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); });
3650 + if (models.length !== 0) {
3651 + merge(models, state);
3652 + }
3653 + }
3654 + function setOneMutably(entity, state) {
3655 + return setManyMutably([entity], state);
3656 + }
3657 + function setManyMutably(newEntities, state) {
3658 + newEntities = ensureEntitiesArray(newEntities);
3659 + if (newEntities.length !== 0) {
3660 + merge(newEntities, state);
3661 + }
3662 + }
3663 + function setAllMutably(newEntities, state) {
3664 + newEntities = ensureEntitiesArray(newEntities);
3665 + state.entities = {};
3666 + state.ids = [];
3667 + addManyMutably(newEntities, state);
3668 + }
3669 + function updateOneMutably(update, state) {
3670 + return updateManyMutably([update], state);
3671 + }
3672 + function updateManyMutably(updates, state) {
3673 + var appliedUpdates = false;
3674 + for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) {
3675 + var update = updates_1[_i];
3676 + var entity = state.entities[update.id];
3677 + if (!entity) {
3678 + continue;
3679 + }
3680 + appliedUpdates = true;
3681 + Object.assign(entity, update.changes);
3682 + var newId = selectId(entity);
3683 + if (update.id !== newId) {
3684 + delete state.entities[update.id];
3685 + state.entities[newId] = entity;
3686 + }
3687 + }
3688 + if (appliedUpdates) {
3689 + resortEntities(state);
3690 + }
3691 + }
3692 + function upsertOneMutably(entity, state) {
3693 + return upsertManyMutably([entity], state);
3694 + }
3695 + function upsertManyMutably(newEntities, state) {
3696 + var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1];
3697 + updateManyMutably(updated, state);
3698 + addManyMutably(added, state);
3699 + }
3700 + function areArraysEqual(a, b) {
3701 + if (a.length !== b.length) {
3702 + return false;
3703 + }
3704 + for (var i = 0; i < a.length && i < b.length; i++) {
3705 + if (a[i] === b[i]) {
3706 + continue;
3707 + }
3708 + return false;
3709 + }
3710 + return true;
3711 + }
3712 + function merge(models, state) {
3713 + models.forEach(function (model) {
3714 + state.entities[selectId(model)] = model;
3715 + });
3716 + resortEntities(state);
3717 + }
3718 + function resortEntities(state) {
3719 + var allEntities = Object.values(state.entities);
3720 + allEntities.sort(sort);
3721 + var newSortedIds = allEntities.map(selectId);
3722 + var ids = state.ids;
3723 + if (!areArraysEqual(ids, newSortedIds)) {
3724 + state.ids = newSortedIds;
3725 + }
3726 + }
3727 + return {
3728 + removeOne: removeOne,
3729 + removeMany: removeMany,
3730 + removeAll: removeAll,
3731 + addOne: createStateOperator(addOneMutably),
3732 + updateOne: createStateOperator(updateOneMutably),
3733 + upsertOne: createStateOperator(upsertOneMutably),
3734 + setOne: createStateOperator(setOneMutably),
3735 + setMany: createStateOperator(setManyMutably),
3736 + setAll: createStateOperator(setAllMutably),
3737 + addMany: createStateOperator(addManyMutably),
3738 + updateMany: createStateOperator(updateManyMutably),
3739 + upsertMany: createStateOperator(upsertManyMutably)
3740 + };
3741 +}
3742 +// src/entities/create_adapter.ts
3743 +function createEntityAdapter(options) {
3744 + if (options === void 0) { options = {}; }
3745 + var _c = __spreadValues({
3746 + sortComparer: false,
3747 + selectId: function (instance) { return instance.id; }
3748 + }, options), selectId = _c.selectId, sortComparer = _c.sortComparer;
3749 + var stateFactory = createInitialStateFactory();
3750 + var selectorsFactory = createSelectorsFactory();
3751 + var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId);
3752 + return __spreadValues(__spreadValues(__spreadValues({
3753 + selectId: selectId,
3754 + sortComparer: sortComparer
3755 + }, stateFactory), selectorsFactory), stateAdapter);
3756 +}
3757 +// src/nanoid.ts
3758 +var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW";
3759 +var nanoid = function (size) {
3760 + if (size === void 0) { size = 21; }
3761 + var id = "";
3762 + var i = size;
3763 + while (i--) {
3764 + id += urlAlphabet[Math.random() * 64 | 0];
3765 + }
3766 + return id;
3767 +};
3768 +// src/createAsyncThunk.ts
3769 +var commonProperties = [
3770 + "name",
3771 + "message",
3772 + "stack",
3773 + "code"
3774 +];
3775 +var RejectWithValue = /** @class */ (function () {
3776 + function RejectWithValue(payload, meta) {
3777 + this.payload = payload;
3778 + this.meta = meta;
3779 + }
3780 + return RejectWithValue;
3781 +}());
3782 +var FulfillWithMeta = /** @class */ (function () {
3783 + function FulfillWithMeta(payload, meta) {
3784 + this.payload = payload;
3785 + this.meta = meta;
3786 + }
3787 + return FulfillWithMeta;
3788 +}());
3789 +var miniSerializeError = function (value) {
3790 + if (typeof value === "object" && value !== null) {
3791 + var simpleError = {};
3792 + for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) {
3793 + var property = commonProperties_1[_i];
3794 + if (typeof value[property] === "string") {
3795 + simpleError[property] = value[property];
3796 + }
3797 + }
3798 + return simpleError;
3799 + }
3800 + return { message: String(value) };
3801 +};
3802 +var createAsyncThunk = (function () {
3803 + function createAsyncThunk2(typePrefix, payloadCreator, options) {
3804 + var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({
3805 + payload: payload,
3806 + meta: __spreadProps(__spreadValues({}, meta || {}), {
3807 + arg: arg,
3808 + requestId: requestId,
3809 + requestStatus: "fulfilled"
3810 + })
3811 + }); });
3812 + var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({
3813 + payload: void 0,
3814 + meta: __spreadProps(__spreadValues({}, meta || {}), {
3815 + arg: arg,
3816 + requestId: requestId,
3817 + requestStatus: "pending"
3818 + })
3819 + }); });
3820 + var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({
3821 + payload: payload,
3822 + error: (options && options.serializeError || miniSerializeError)(error || "Rejected"),
3823 + meta: __spreadProps(__spreadValues({}, meta || {}), {
3824 + arg: arg,
3825 + requestId: requestId,
3826 + rejectedWithValue: !!payload,
3827 + requestStatus: "rejected",
3828 + aborted: (error == null ? void 0 : error.name) === "AbortError",
3829 + condition: (error == null ? void 0 : error.name) === "ConditionError"
3830 + })
3831 + }); });
3832 + var displayedWarning = false;
3833 + var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () {
3834 + function class_1() {
3835 + this.signal = {
3836 + aborted: false,
3837 + addEventListener: function () {
3838 + },
3839 + dispatchEvent: function () {
3840 + return false;
3841 + },
3842 + onabort: function () {
3843 + },
3844 + removeEventListener: function () {
3845 + },
3846 + reason: void 0,
3847 + throwIfAborted: function () {
3848 + }
3849 + };
3850 + }
3851 + class_1.prototype.abort = function () {
3852 + if (true) {
3853 + if (!displayedWarning) {
3854 + displayedWarning = true;
3855 + 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'.");
3856 + }
3857 + }
3858 + };
3859 + return class_1;
3860 + }());
3861 + function actionCreator(arg) {
3862 + return function (dispatch, getState, extra) {
3863 + var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid();
3864 + var abortController = new AC();
3865 + var abortReason;
3866 + var started = false;
3867 + function abort(reason) {
3868 + abortReason = reason;
3869 + abortController.abort();
3870 + }
3871 + var promise2 = function () {
3872 + return __async(this, null, function () {
3873 + var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch;
3874 + return __generator(this, function (_c) {
3875 + switch (_c.label) {
3876 + case 0:
3877 + _c.trys.push([0, 4, , 5]);
3878 + conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra });
3879 + if (!isThenable(conditionResult)) return [3 /*break*/, 2];
3880 + return [4 /*yield*/, conditionResult];
3881 + case 1:
3882 + conditionResult = _c.sent();
3883 + _c.label = 2;
3884 + case 2:
3885 + if (conditionResult === false || abortController.signal.aborted) {
3886 + throw {
3887 + name: "ConditionError",
3888 + message: "Aborted due to condition callback returning false."
3889 + };
3890 + }
3891 + started = true;
3892 + abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({
3893 + name: "AbortError",
3894 + message: abortReason || "Aborted"
3895 + }); }); });
3896 + 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 })));
3897 + return [4 /*yield*/, Promise.race([
3898 + abortedPromise,
3899 + Promise.resolve(payloadCreator(arg, {
3900 + dispatch: dispatch,
3901 + getState: getState,
3902 + extra: extra,
3903 + requestId: requestId,
3904 + signal: abortController.signal,
3905 + abort: abort,
3906 + rejectWithValue: function (value, meta) {
3907 + return new RejectWithValue(value, meta);
3908 + },
3909 + fulfillWithValue: function (value, meta) {
3910 + return new FulfillWithMeta(value, meta);
3911 + }
3912 + })).then(function (result) {
3913 + if (result instanceof RejectWithValue) {
3914 + throw result;
3915 + }
3916 + if (result instanceof FulfillWithMeta) {
3917 + return fulfilled(result.payload, requestId, arg, result.meta);
3918 + }
3919 + return fulfilled(result, requestId, arg);
3920 + })
3921 + ])];
3922 + case 3:
3923 + finalAction = _c.sent();
3924 + return [3 /*break*/, 5];
3925 + case 4:
3926 + err_1 = _c.sent();
3927 + finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg);
3928 + return [3 /*break*/, 5];
3929 + case 5:
3930 + skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition;
3931 + if (!skipDispatch) {
3932 + dispatch(finalAction);
3933 + }
3934 + return [2 /*return*/, finalAction];
3935 + }
3936 + });
3937 + });
3938 + }();
3939 + return Object.assign(promise2, {
3940 + abort: abort,
3941 + requestId: requestId,
3942 + arg: arg,
3943 + unwrap: function () {
3944 + return promise2.then(unwrapResult);
3945 + }
3946 + });
3947 + };
3948 + }
3949 + return Object.assign(actionCreator, {
3950 + pending: pending,
3951 + rejected: rejected,
3952 + fulfilled: fulfilled,
3953 + typePrefix: typePrefix
3954 + });
3955 + }
3956 + createAsyncThunk2.withTypes = function () { return createAsyncThunk2; };
3957 + return createAsyncThunk2;
3958 +})();
3959 +function unwrapResult(action) {
3960 + if (action.meta && action.meta.rejectedWithValue) {
3961 + throw action.payload;
3962 + }
3963 + if (action.error) {
3964 + throw action.error;
3965 + }
3966 + return action.payload;
3967 +}
3968 +function isThenable(value) {
3969 + return value !== null && typeof value === "object" && typeof value.then === "function";
3970 +}
3971 +// src/matchers.ts
3972 +var matches = function (matcher, action) {
3973 + if (hasMatchFunction(matcher)) {
3974 + return matcher.match(action);
3975 + }
3976 + else {
3977 + return matcher(action);
3978 + }
3979 +};
3980 +function isAnyOf() {
3981 + var matchers = [];
3982 + for (var _i = 0; _i < arguments.length; _i++) {
3983 + matchers[_i] = arguments[_i];
3984 + }
3985 + return function (action) {
3986 + return matchers.some(function (matcher) { return matches(matcher, action); });
3987 + };
3988 +}
3989 +function isAllOf() {
3990 + var matchers = [];
3991 + for (var _i = 0; _i < arguments.length; _i++) {
3992 + matchers[_i] = arguments[_i];
3993 + }
3994 + return function (action) {
3995 + return matchers.every(function (matcher) { return matches(matcher, action); });
3996 + };
3997 +}
3998 +function hasExpectedRequestMetadata(action, validStatus) {
3999 + if (!action || !action.meta)
4000 + return false;
4001 + var hasValidRequestId = typeof action.meta.requestId === "string";
4002 + var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1;
4003 + return hasValidRequestId && hasValidRequestStatus;
4004 +}
4005 +function isAsyncThunkArray(a) {
4006 + return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0];
4007 +}
4008 +function isPending() {
4009 + var asyncThunks = [];
4010 + for (var _i = 0; _i < arguments.length; _i++) {
4011 + asyncThunks[_i] = arguments[_i];
4012 + }
4013 + if (asyncThunks.length === 0) {
4014 + return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); };
4015 + }
4016 + if (!isAsyncThunkArray(asyncThunks)) {
4017 + return isPending()(asyncThunks[0]);
4018 + }
4019 + return function (action) {
4020 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; });
4021 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
4022 + return combinedMatcher(action);
4023 + };
4024 +}
4025 +function isRejected() {
4026 + var asyncThunks = [];
4027 + for (var _i = 0; _i < arguments.length; _i++) {
4028 + asyncThunks[_i] = arguments[_i];
4029 + }
4030 + if (asyncThunks.length === 0) {
4031 + return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); };
4032 + }
4033 + if (!isAsyncThunkArray(asyncThunks)) {
4034 + return isRejected()(asyncThunks[0]);
4035 + }
4036 + return function (action) {
4037 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; });
4038 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
4039 + return combinedMatcher(action);
4040 + };
4041 +}
4042 +function isRejectedWithValue() {
4043 + var asyncThunks = [];
4044 + for (var _i = 0; _i < arguments.length; _i++) {
4045 + asyncThunks[_i] = arguments[_i];
4046 + }
4047 + var hasFlag = function (action) {
4048 + return action && action.meta && action.meta.rejectedWithValue;
4049 + };
4050 + if (asyncThunks.length === 0) {
4051 + return function (action) {
4052 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
4053 + return combinedMatcher(action);
4054 + };
4055 + }
4056 + if (!isAsyncThunkArray(asyncThunks)) {
4057 + return isRejectedWithValue()(asyncThunks[0]);
4058 + }
4059 + return function (action) {
4060 + var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag);
4061 + return combinedMatcher(action);
4062 + };
4063 +}
4064 +function isFulfilled() {
4065 + var asyncThunks = [];
4066 + for (var _i = 0; _i < arguments.length; _i++) {
4067 + asyncThunks[_i] = arguments[_i];
4068 + }
4069 + if (asyncThunks.length === 0) {
4070 + return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); };
4071 + }
4072 + if (!isAsyncThunkArray(asyncThunks)) {
4073 + return isFulfilled()(asyncThunks[0]);
4074 + }
4075 + return function (action) {
4076 + var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; });
4077 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
4078 + return combinedMatcher(action);
4079 + };
4080 +}
4081 +function isAsyncThunkAction() {
4082 + var asyncThunks = [];
4083 + for (var _i = 0; _i < arguments.length; _i++) {
4084 + asyncThunks[_i] = arguments[_i];
4085 + }
4086 + if (asyncThunks.length === 0) {
4087 + return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); };
4088 + }
4089 + if (!isAsyncThunkArray(asyncThunks)) {
4090 + return isAsyncThunkAction()(asyncThunks[0]);
4091 + }
4092 + return function (action) {
4093 + var matchers = [];
4094 + for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) {
4095 + var asyncThunk = asyncThunks_1[_i];
4096 + matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled);
4097 + }
4098 + var combinedMatcher = isAnyOf.apply(void 0, matchers);
4099 + return combinedMatcher(action);
4100 + };
4101 +}
4102 +// src/listenerMiddleware/utils.ts
4103 +var assertFunction = function (func, expected) {
4104 + if (typeof func !== "function") {
4105 + throw new TypeError(expected + " is not a function");
4106 + }
4107 +};
4108 +var noop = function () {
4109 +};
4110 +var catchRejection = function (promise2, onError) {
4111 + if (onError === void 0) { onError = noop; }
4112 + promise2.catch(onError);
4113 + return promise2;
4114 +};
4115 +var addAbortSignalListener = function (abortSignal, callback) {
4116 + abortSignal.addEventListener("abort", callback, { once: true });
4117 + return function () { return abortSignal.removeEventListener("abort", callback); };
4118 +};
4119 +var abortControllerWithReason = function (abortController, reason) {
4120 + var signal = abortController.signal;
4121 + if (signal.aborted) {
4122 + return;
4123 + }
4124 + if (!("reason" in signal)) {
4125 + Object.defineProperty(signal, "reason", {
4126 + enumerable: true,
4127 + value: reason,
4128 + configurable: true,
4129 + writable: true
4130 + });
4131 + }
4132 + ;
4133 + abortController.abort(reason);
4134 +};
4135 +// src/listenerMiddleware/exceptions.ts
4136 +var task = "task";
4137 +var listener = "listener";
4138 +var completed = "completed";
4139 +var cancelled = "cancelled";
4140 +var taskCancelled = "task-" + cancelled;
4141 +var taskCompleted = "task-" + completed;
4142 +var listenerCancelled = listener + "-" + cancelled;
4143 +var listenerCompleted = listener + "-" + completed;
4144 +var TaskAbortError = /** @class */ (function () {
4145 + function TaskAbortError(code) {
4146 + this.code = code;
4147 + this.name = "TaskAbortError";
4148 + this.message = task + " " + cancelled + " (reason: " + code + ")";
4149 + }
4150 + return TaskAbortError;
4151 +}());
4152 +// src/listenerMiddleware/task.ts
4153 +var validateActive = function (signal) {
4154 + if (signal.aborted) {
4155 + throw new TaskAbortError(signal.reason);
4156 + }
4157 +};
4158 +function raceWithSignal(signal, promise2) {
4159 + var cleanup = noop;
4160 + return new Promise(function (resolve, reject) {
4161 + var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); };
4162 + if (signal.aborted) {
4163 + notifyRejection();
4164 + return;
4165 + }
4166 + cleanup = addAbortSignalListener(signal, notifyRejection);
4167 + promise2.finally(function () { return cleanup(); }).then(resolve, reject);
4168 + }).finally(function () {
4169 + cleanup = noop;
4170 + });
4171 +}
4172 +var runTask = function (task2, cleanUp) { return __async(void 0, null, function () {
4173 + var value, error_1;
4174 + return __generator(this, function (_c) {
4175 + switch (_c.label) {
4176 + case 0:
4177 + _c.trys.push([0, 3, 4, 5]);
4178 + return [4 /*yield*/, Promise.resolve()];
4179 + case 1:
4180 + _c.sent();
4181 + return [4 /*yield*/, task2()];
4182 + case 2:
4183 + value = _c.sent();
4184 + return [2 /*return*/, {
4185 + status: "ok",
4186 + value: value
4187 + }];
4188 + case 3:
4189 + error_1 = _c.sent();
4190 + return [2 /*return*/, {
4191 + status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected",
4192 + error: error_1
4193 + }];
4194 + case 4:
4195 + cleanUp == null ? void 0 : cleanUp();
4196 + return [7 /*endfinally*/];
4197 + case 5: return [2 /*return*/];
4198 + }
4199 + });
4200 +}); };
4201 +var createPause = function (signal) {
4202 + return function (promise2) {
4203 + return catchRejection(raceWithSignal(signal, promise2).then(function (output) {
4204 + validateActive(signal);
4205 + return output;
4206 + }));
4207 + };
4208 +};
4209 +var createDelay = function (signal) {
4210 + var pause = createPause(signal);
4211 + return function (timeoutMs) {
4212 + return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); }));
4213 + };
4214 +};
4215 +// src/listenerMiddleware/index.ts
4216 +var assign = Object.assign;
4217 +var INTERNAL_NIL_TOKEN = {};
4218 +var alm = "listenerMiddleware";
4219 +var createFork = function (parentAbortSignal, parentBlockingPromises) {
4220 + var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); };
4221 + return function (taskExecutor, opts) {
4222 + assertFunction(taskExecutor, "taskExecutor");
4223 + var childAbortController = new AbortController();
4224 + linkControllers(childAbortController);
4225 + var result = runTask(function () { return __async(void 0, null, function () {
4226 + var result2;
4227 + return __generator(this, function (_c) {
4228 + switch (_c.label) {
4229 + case 0:
4230 + validateActive(parentAbortSignal);
4231 + validateActive(childAbortController.signal);
4232 + return [4 /*yield*/, taskExecutor({
4233 + pause: createPause(childAbortController.signal),
4234 + delay: createDelay(childAbortController.signal),
4235 + signal: childAbortController.signal
4236 + })];
4237 + case 1:
4238 + result2 = _c.sent();
4239 + validateActive(childAbortController.signal);
4240 + return [2 /*return*/, result2];
4241 + }
4242 + });
4243 + }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); });
4244 + if (opts == null ? void 0 : opts.autoJoin) {
4245 + parentBlockingPromises.push(result);
4246 + }
4247 + return {
4248 + result: createPause(parentAbortSignal)(result),
4249 + cancel: function () {
4250 + abortControllerWithReason(childAbortController, taskCancelled);
4251 + }
4252 + };
4253 + };
4254 +};
4255 +var createTakePattern = function (startListening, signal) {
4256 + var take = function (predicate, timeout) { return __async(void 0, null, function () {
4257 + var unsubscribe, tuplePromise, promises, output;
4258 + return __generator(this, function (_c) {
4259 + switch (_c.label) {
4260 + case 0:
4261 + validateActive(signal);
4262 + unsubscribe = function () {
4263 + };
4264 + tuplePromise = new Promise(function (resolve, reject) {
4265 + var stopListening = startListening({
4266 + predicate: predicate,
4267 + effect: function (action, listenerApi) {
4268 + listenerApi.unsubscribe();
4269 + resolve([
4270 + action,
4271 + listenerApi.getState(),
4272 + listenerApi.getOriginalState()
4273 + ]);
4274 + }
4275 + });
4276 + unsubscribe = function () {
4277 + stopListening();
4278 + reject();
4279 + };
4280 + });
4281 + promises = [
4282 + tuplePromise
4283 + ];
4284 + if (timeout != null) {
4285 + promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); }));
4286 + }
4287 + _c.label = 1;
4288 + case 1:
4289 + _c.trys.push([1, , 3, 4]);
4290 + return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))];
4291 + case 2:
4292 + output = _c.sent();
4293 + validateActive(signal);
4294 + return [2 /*return*/, output];
4295 + case 3:
4296 + unsubscribe();
4297 + return [7 /*endfinally*/];
4298 + case 4: return [2 /*return*/];
4299 + }
4300 + });
4301 + }); };
4302 + return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); };
4303 +};
4304 +var getListenerEntryPropsFrom = function (options) {
4305 + var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect;
4306 + if (type) {
4307 + predicate = createAction(type).match;
4308 + }
4309 + else if (actionCreator) {
4310 + type = actionCreator.type;
4311 + predicate = actionCreator.match;
4312 + }
4313 + else if (matcher) {
4314 + predicate = matcher;
4315 + }
4316 + else if (predicate) {
4317 + }
4318 + else {
4319 + throw new Error("Creating or removing a listener requires one of the known fields for matching an action");
4320 + }
4321 + assertFunction(effect, "options.listener");
4322 + return { predicate: predicate, type: type, effect: effect };
4323 +};
4324 +var createListenerEntry = function (options) {
4325 + var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect;
4326 + var id = nanoid();
4327 + var entry = {
4328 + id: id,
4329 + effect: effect,
4330 + type: type,
4331 + predicate: predicate,
4332 + pending: new Set(),
4333 + unsubscribe: function () {
4334 + throw new Error("Unsubscribe not initialized");
4335 + }
4336 + };
4337 + return entry;
4338 +};
4339 +var cancelActiveListeners = function (entry) {
4340 + entry.pending.forEach(function (controller) {
4341 + abortControllerWithReason(controller, listenerCancelled);
4342 + });
4343 +};
4344 +var createClearListenerMiddleware = function (listenerMap) {
4345 + return function () {
4346 + listenerMap.forEach(cancelActiveListeners);
4347 + listenerMap.clear();
4348 + };
4349 +};
4350 +var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) {
4351 + try {
4352 + errorHandler(errorToNotify, errorInfo);
4353 + }
4354 + catch (errorHandlerError) {
4355 + setTimeout(function () {
4356 + throw errorHandlerError;
4357 + }, 0);
4358 + }
4359 +};
4360 +var addListener = createAction(alm + "/add");
4361 +var clearAllListeners = createAction(alm + "/removeAll");
4362 +var removeListener = createAction(alm + "/remove");
4363 +var defaultErrorHandler = function () {
4364 + var args = [];
4365 + for (var _i = 0; _i < arguments.length; _i++) {
4366 + args[_i] = arguments[_i];
4367 + }
4368 + console.error.apply(console, __spreadArray([alm + "/error"], args));
4369 +};
4370 +function createListenerMiddleware(middlewareOptions) {
4371 + var _this = this;
4372 + if (middlewareOptions === void 0) { middlewareOptions = {}; }
4373 + var listenerMap = new Map();
4374 + var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c;
4375 + assertFunction(onError, "onError");
4376 + var insertEntry = function (entry) {
4377 + entry.unsubscribe = function () { return listenerMap.delete(entry.id); };
4378 + listenerMap.set(entry.id, entry);
4379 + return function (cancelOptions) {
4380 + entry.unsubscribe();
4381 + if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) {
4382 + cancelActiveListeners(entry);
4383 + }
4384 + };
4385 + };
4386 + var findListenerEntry = function (comparator) {
4387 + for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) {
4388 + var entry = _c[_i];
4389 + if (comparator(entry)) {
4390 + return entry;
4391 + }
4392 + }
4393 + return void 0;
4394 + };
4395 + var startListening = function (options) {
4396 + var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; });
4397 + if (!entry) {
4398 + entry = createListenerEntry(options);
4399 + }
4400 + return insertEntry(entry);
4401 + };
4402 + var stopListening = function (options) {
4403 + var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate;
4404 + var entry = findListenerEntry(function (entry2) {
4405 + var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate;
4406 + return matchPredicateOrType && entry2.effect === effect;
4407 + });
4408 + if (entry) {
4409 + entry.unsubscribe();
4410 + if (options.cancelActive) {
4411 + cancelActiveListeners(entry);
4412 + }
4413 + }
4414 + return !!entry;
4415 + };
4416 + var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () {
4417 + var internalTaskController, take, autoJoinPromises, listenerError_1;
4418 + return __generator(this, function (_c) {
4419 + switch (_c.label) {
4420 + case 0:
4421 + internalTaskController = new AbortController();
4422 + take = createTakePattern(startListening, internalTaskController.signal);
4423 + autoJoinPromises = [];
4424 + _c.label = 1;
4425 + case 1:
4426 + _c.trys.push([1, 3, 4, 6]);
4427 + entry.pending.add(internalTaskController);
4428 + return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, {
4429 + getOriginalState: getOriginalState,
4430 + condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); },
4431 + take: take,
4432 + delay: createDelay(internalTaskController.signal),
4433 + pause: createPause(internalTaskController.signal),
4434 + extra: extra,
4435 + signal: internalTaskController.signal,
4436 + fork: createFork(internalTaskController.signal, autoJoinPromises),
4437 + unsubscribe: entry.unsubscribe,
4438 + subscribe: function () {
4439 + listenerMap.set(entry.id, entry);
4440 + },
4441 + cancelActiveListeners: function () {
4442 + entry.pending.forEach(function (controller, _, set) {
4443 + if (controller !== internalTaskController) {
4444 + abortControllerWithReason(controller, listenerCancelled);
4445 + set.delete(controller);
4446 + }
4447 + });
4448 + }
4449 + })))];
4450 + case 2:
4451 + _c.sent();
4452 + return [3 /*break*/, 6];
4453 + case 3:
4454 + listenerError_1 = _c.sent();
4455 + if (!(listenerError_1 instanceof TaskAbortError)) {
4456 + safelyNotifyError(onError, listenerError_1, {
4457 + raisedBy: "effect"
4458 + });
4459 + }
4460 + return [3 /*break*/, 6];
4461 + case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)];
4462 + case 5:
4463 + _c.sent();
4464 + abortControllerWithReason(internalTaskController, listenerCompleted);
4465 + entry.pending.delete(internalTaskController);
4466 + return [7 /*endfinally*/];
4467 + case 6: return [2 /*return*/];
4468 + }
4469 + });
4470 + }); };
4471 + var clearListenerMiddleware = createClearListenerMiddleware(listenerMap);
4472 + var middleware = function (api) { return function (next) { return function (action) {
4473 + if (!isAction(action)) {
4474 + return next(action);
4475 + }
4476 + if (addListener.match(action)) {
4477 + return startListening(action.payload);
4478 + }
4479 + if (clearAllListeners.match(action)) {
4480 + clearListenerMiddleware();
4481 + return;
4482 + }
4483 + if (removeListener.match(action)) {
4484 + return stopListening(action.payload);
4485 + }
4486 + var originalState = api.getState();
4487 + var getOriginalState = function () {
4488 + if (originalState === INTERNAL_NIL_TOKEN) {
4489 + throw new Error(alm + ": getOriginalState can only be called synchronously");
4490 + }
4491 + return originalState;
4492 + };
4493 + var result;
4494 + try {
4495 + result = next(action);
4496 + if (listenerMap.size > 0) {
4497 + var currentState = api.getState();
4498 + var listenerEntries = Array.from(listenerMap.values());
4499 + for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) {
4500 + var entry = listenerEntries_1[_i];
4501 + var runListener = false;
4502 + try {
4503 + runListener = entry.predicate(action, currentState, originalState);
4504 + }
4505 + catch (predicateError) {
4506 + runListener = false;
4507 + safelyNotifyError(onError, predicateError, {
4508 + raisedBy: "predicate"
4509 + });
4510 + }
4511 + if (!runListener) {
4512 + continue;
4513 + }
4514 + notifyListener(entry, action, api, getOriginalState);
4515 + }
4516 + }
4517 + }
4518 + finally {
4519 + originalState = INTERNAL_NIL_TOKEN;
4520 + }
4521 + return result;
4522 + }; }; };
4523 + return {
4524 + middleware: middleware,
4525 + startListening: startListening,
4526 + stopListening: stopListening,
4527 + clearListeners: clearListenerMiddleware
4528 + };
4529 +}
4530 +// src/autoBatchEnhancer.ts
4531 +var SHOULD_AUTOBATCH = "RTK_autoBatch";
4532 +var prepareAutoBatched = function () { return function (payload) {
4533 + var _c;
4534 + return ({
4535 + payload: payload,
4536 + meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c)
4537 + });
4538 +}; };
4539 +var promise;
4540 +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 () {
4541 + throw err;
4542 +}, 0); }); };
4543 +var createQueueWithTimer = function (timeout) {
4544 + return function (notify) {
4545 + setTimeout(notify, timeout);
4546 + };
4547 +};
4548 +var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10);
4549 +var autoBatchEnhancer = function (options) {
4550 + if (options === void 0) { options = { type: "raf" }; }
4551 + return function (next) { return function () {
4552 + var args = [];
4553 + for (var _i = 0; _i < arguments.length; _i++) {
4554 + args[_i] = arguments[_i];
4555 + }
4556 + var store = next.apply(void 0, args);
4557 + var notifying = true;
4558 + var shouldNotifyAtEndOfTick = false;
4559 + var notificationQueued = false;
4560 + var listeners = new Set();
4561 + var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout);
4562 + var notifyListeners = function () {
4563 + notificationQueued = false;
4564 + if (shouldNotifyAtEndOfTick) {
4565 + shouldNotifyAtEndOfTick = false;
4566 + listeners.forEach(function (l) { return l(); });
4567 + }
4568 + };
4569 + return Object.assign({}, store, {
4570 + subscribe: function (listener2) {
4571 + var wrappedListener = function () { return notifying && listener2(); };
4572 + var unsubscribe = store.subscribe(wrappedListener);
4573 + listeners.add(listener2);
4574 + return function () {
4575 + unsubscribe();
4576 + listeners.delete(listener2);
4577 + };
4578 + },
4579 + dispatch: function (action) {
4580 + var _a;
4581 + try {
4582 + notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]);
4583 + shouldNotifyAtEndOfTick = !notifying;
4584 + if (shouldNotifyAtEndOfTick) {
4585 + if (!notificationQueued) {
4586 + notificationQueued = true;
4587 + queueCallback(notifyListeners);
4588 + }
4589 + }
4590 + return store.dispatch(action);
4591 + }
4592 + finally {
4593 + notifying = true;
4594 + }
4595 + }
4596 + });
4597 + }; };
4598 +};
4599 +// src/index.ts
4600 +(0,immer__WEBPACK_IMPORTED_MODULE_2__.enableES5)();
4601 +
4602 +//# sourceMappingURL=redux-toolkit.esm.js.map
4603 +
4604 +/***/ }),
4605 +
4606 +/***/ "../node_modules/immer/dist/immer.esm.mjs":
4607 +/*!************************************************!*\
4608 + !*** ../node_modules/immer/dist/immer.esm.mjs ***!
4609 + \************************************************/
4610 +/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
4611 +
4612 +"use strict";
4613 +__webpack_require__.r(__webpack_exports__);
4614 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4615 +/* harmony export */ Immer: () => (/* binding */ un),
4616 +/* harmony export */ applyPatches: () => (/* binding */ pn),
4617 +/* harmony export */ castDraft: () => (/* binding */ K),
4618 +/* harmony export */ castImmutable: () => (/* binding */ $),
4619 +/* harmony export */ createDraft: () => (/* binding */ ln),
4620 +/* harmony export */ current: () => (/* binding */ R),
4621 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
4622 +/* harmony export */ enableAllPlugins: () => (/* binding */ J),
4623 +/* harmony export */ enableES5: () => (/* binding */ F),
4624 +/* harmony export */ enableMapSet: () => (/* binding */ C),
4625 +/* harmony export */ enablePatches: () => (/* binding */ T),
4626 +/* harmony export */ finishDraft: () => (/* binding */ dn),
4627 +/* harmony export */ freeze: () => (/* binding */ d),
4628 +/* harmony export */ immerable: () => (/* binding */ L),
4629 +/* harmony export */ isDraft: () => (/* binding */ r),
4630 +/* harmony export */ isDraftable: () => (/* binding */ t),
4631 +/* harmony export */ nothing: () => (/* binding */ H),
4632 +/* harmony export */ original: () => (/* binding */ e),
4633 +/* harmony export */ produce: () => (/* binding */ fn),
4634 +/* harmony export */ produceWithPatches: () => (/* binding */ cn),
4635 +/* harmony export */ setAutoFreeze: () => (/* binding */ sn),
4636 +/* harmony export */ setUseProxies: () => (/* binding */ vn)
4637 +/* harmony export */ });
4638 +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
4639 +{}}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);
4640 +//# sourceMappingURL=immer.esm.js.map
4641 +
4642 +
4643 +/***/ }),
4644 +
4645 +/***/ "../node_modules/redux-thunk/es/index.js":
4646 +/*!***********************************************!*\
4647 + !*** ../node_modules/redux-thunk/es/index.js ***!
4648 + \***********************************************/
4649 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4650 +
4651 +"use strict";
4652 +__webpack_require__.r(__webpack_exports__);
4653 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4654 +/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
4655 +/* harmony export */ });
4656 +/** A function that accepts a potential "extra argument" value to be injected later,
4657 + * and returns an instance of the thunk middleware that uses that value
4658 + */
4659 +function createThunkMiddleware(extraArgument) {
4660 + // Standard Redux middleware definition pattern:
4661 + // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware
4662 + var middleware = function middleware(_ref) {
4663 + var dispatch = _ref.dispatch,
4664 + getState = _ref.getState;
4665 + return function (next) {
4666 + return function (action) {
4667 + // The thunk middleware looks for any functions that were passed to `store.dispatch`.
4668 + // If this "action" is really a function, call it and return the result.
4669 + if (typeof action === 'function') {
4670 + // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg"
4671 + return action(dispatch, getState, extraArgument);
4672 + } // Otherwise, pass the action down the middleware chain as usual
4673 +
4674 +
4675 + return next(action);
4676 + };
4677 + };
4678 + };
4679 +
4680 + return middleware;
4681 +}
4682 +
4683 +var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version
4684 +// with whatever "extra arg" they want to inject into their thunks
4685 +
4686 +thunk.withExtraArgument = createThunkMiddleware;
4687 +/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk);
4688 +
4689 +/***/ }),
4690 +
4691 +/***/ "../node_modules/redux/es/redux.js":
4692 +/*!*****************************************!*\
4693 + !*** ../node_modules/redux/es/redux.js ***!
4694 + \*****************************************/
4695 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
4696 +
4697 +"use strict";
4698 +__webpack_require__.r(__webpack_exports__);
4699 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
4700 +/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* binding */ ActionTypes),
4701 +/* harmony export */ applyMiddleware: () => (/* binding */ applyMiddleware),
4702 +/* harmony export */ bindActionCreators: () => (/* binding */ bindActionCreators),
4703 +/* harmony export */ combineReducers: () => (/* binding */ combineReducers),
4704 +/* harmony export */ compose: () => (/* binding */ compose),
4705 +/* harmony export */ createStore: () => (/* binding */ createStore),
4706 +/* harmony export */ legacy_createStore: () => (/* binding */ legacy_createStore)
4707 +/* harmony export */ });
4708 +/* 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");
4709 +
4710 +
4711 +/**
4712 + * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
4713 + *
4714 + * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
4715 + * during build.
4716 + * @param {number} code
4717 + */
4718 +function formatProdErrorMessage(code) {
4719 + return "Minified Redux error #" + code + "; visit https://redux.js.org/Errors?code=" + code + " for the full message or " + 'use the non-minified dev environment for full errors. ';
4720 +}
4721 +
4722 +// Inlined version of the `symbol-observable` polyfill
4723 +var $$observable = (function () {
4724 + return typeof Symbol === 'function' && Symbol.observable || '@@observable';
4725 +})();
4726 +
4727 +/**
4728 + * These are private action types reserved by Redux.
4729 + * For any unknown actions, you must return the current state.
4730 + * If the current state is undefined, you must return the initial state.
4731 + * Do not reference these action types directly in your code.
4732 + */
4733 +var randomString = function randomString() {
4734 + return Math.random().toString(36).substring(7).split('').join('.');
4735 +};
4736 +
4737 +var ActionTypes = {
4738 + INIT: "@@redux/INIT" + randomString(),
4739 + REPLACE: "@@redux/REPLACE" + randomString(),
4740 + PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() {
4741 + return "@@redux/PROBE_UNKNOWN_ACTION" + randomString();
4742 + }
4743 +};
4744 +
4745 +/**
4746 + * @param {any} obj The object to inspect.
4747 + * @returns {boolean} True if the argument appears to be a plain object.
4748 + */
4749 +function isPlainObject(obj) {
4750 + if (typeof obj !== 'object' || obj === null) return false;
4751 + var proto = obj;
4752 +
4753 + while (Object.getPrototypeOf(proto) !== null) {
4754 + proto = Object.getPrototypeOf(proto);
4755 + }
4756 +
4757 + return Object.getPrototypeOf(obj) === proto;
4758 +}
4759 +
4760 +// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of
4761 +function miniKindOf(val) {
4762 + if (val === void 0) return 'undefined';
4763 + if (val === null) return 'null';
4764 + var type = typeof val;
4765 +
4766 + switch (type) {
4767 + case 'boolean':
4768 + case 'string':
4769 + case 'number':
4770 + case 'symbol':
4771 + case 'function':
4772 + {
4773 + return type;
4774 + }
4775 + }
4776 +
4777 + if (Array.isArray(val)) return 'array';
4778 + if (isDate(val)) return 'date';
4779 + if (isError(val)) return 'error';
4780 + var constructorName = ctorName(val);
4781 +
4782 + switch (constructorName) {
4783 + case 'Symbol':
4784 + case 'Promise':
4785 + case 'WeakMap':
4786 + case 'WeakSet':
4787 + case 'Map':
4788 + case 'Set':
4789 + return constructorName;
4790 + } // other
4791 +
4792 +
4793 + return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
4794 +}
4795 +
4796 +function ctorName(val) {
4797 + return typeof val.constructor === 'function' ? val.constructor.name : null;
4798 +}
4799 +
4800 +function isError(val) {
4801 + return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number';
4802 +}
4803 +
4804 +function isDate(val) {
4805 + if (val instanceof Date) return true;
4806 + return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function';
4807 +}
4808 +
4809 +function kindOf(val) {
4810 + var typeOfVal = typeof val;
4811 +
4812 + if (true) {
4813 + typeOfVal = miniKindOf(val);
4814 + }
4815 +
4816 + return typeOfVal;
4817 +}
4818 +
4819 +/**
4820 + * @deprecated
4821 + *
4822 + * **We recommend using the `configureStore` method
4823 + * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
4824 + *
4825 + * Redux Toolkit is our recommended approach for writing Redux logic today,
4826 + * including store setup, reducers, data fetching, and more.
4827 + *
4828 + * **For more details, please read this Redux docs page:**
4829 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
4830 + *
4831 + * `configureStore` from Redux Toolkit is an improved version of `createStore` that
4832 + * simplifies setup and helps avoid common bugs.
4833 + *
4834 + * You should not be using the `redux` core package by itself today, except for learning purposes.
4835 + * The `createStore` method from the core `redux` package will not be removed, but we encourage
4836 + * all users to migrate to using Redux Toolkit for all Redux code.
4837 + *
4838 + * If you want to use `createStore` without this visual deprecation warning, use
4839 + * the `legacy_createStore` import instead:
4840 + *
4841 + * `import { legacy_createStore as createStore} from 'redux'`
4842 + *
4843 + */
4844 +
4845 +function createStore(reducer, preloadedState, enhancer) {
4846 + var _ref2;
4847 +
4848 + if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') {
4849 + throw new Error( false ? 0 : 'It looks like you are passing several store enhancers to ' + 'createStore(). This is not supported. Instead, compose them ' + 'together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.');
4850 + }
4851 +
4852 + if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') {
4853 + enhancer = preloadedState;
4854 + preloadedState = undefined;
4855 + }
4856 +
4857 + if (typeof enhancer !== 'undefined') {
4858 + if (typeof enhancer !== 'function') {
4859 + throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'");
4860 + }
4861 +
4862 + return enhancer(createStore)(reducer, preloadedState);
4863 + }
4864 +
4865 + if (typeof reducer !== 'function') {
4866 + throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'");
4867 + }
4868 +
4869 + var currentReducer = reducer;
4870 + var currentState = preloadedState;
4871 + var currentListeners = [];
4872 + var nextListeners = currentListeners;
4873 + var isDispatching = false;
4874 + /**
4875 + * This makes a shallow copy of currentListeners so we can use
4876 + * nextListeners as a temporary list while dispatching.
4877 + *
4878 + * This prevents any bugs around consumers calling
4879 + * subscribe/unsubscribe in the middle of a dispatch.
4880 + */
4881 +
4882 + function ensureCanMutateNextListeners() {
4883 + if (nextListeners === currentListeners) {
4884 + nextListeners = currentListeners.slice();
4885 + }
4886 + }
4887 + /**
4888 + * Reads the state tree managed by the store.
4889 + *
4890 + * @returns {any} The current state tree of your application.
4891 + */
4892 +
4893 +
4894 + function getState() {
4895 + if (isDispatching) {
4896 + throw new Error( false ? 0 : 'You may not call store.getState() while the reducer is executing. ' + 'The reducer has already received the state as an argument. ' + 'Pass it down from the top reducer instead of reading it from the store.');
4897 + }
4898 +
4899 + return currentState;
4900 + }
4901 + /**
4902 + * Adds a change listener. It will be called any time an action is dispatched,
4903 + * and some part of the state tree may potentially have changed. You may then
4904 + * call `getState()` to read the current state tree inside the callback.
4905 + *
4906 + * You may call `dispatch()` from a change listener, with the following
4907 + * caveats:
4908 + *
4909 + * 1. The subscriptions are snapshotted just before every `dispatch()` call.
4910 + * If you subscribe or unsubscribe while the listeners are being invoked, this
4911 + * will not have any effect on the `dispatch()` that is currently in progress.
4912 + * However, the next `dispatch()` call, whether nested or not, will use a more
4913 + * recent snapshot of the subscription list.
4914 + *
4915 + * 2. The listener should not expect to see all state changes, as the state
4916 + * might have been updated multiple times during a nested `dispatch()` before
4917 + * the listener is called. It is, however, guaranteed that all subscribers
4918 + * registered before the `dispatch()` started will be called with the latest
4919 + * state by the time it exits.
4920 + *
4921 + * @param {Function} listener A callback to be invoked on every dispatch.
4922 + * @returns {Function} A function to remove this change listener.
4923 + */
4924 +
4925 +
4926 + function subscribe(listener) {
4927 + if (typeof listener !== 'function') {
4928 + throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'");
4929 + }
4930 +
4931 + if (isDispatching) {
4932 + throw new Error( false ? 0 : 'You may not call store.subscribe() while the reducer is executing. ' + 'If you would like to be notified after the store has been updated, subscribe from a ' + 'component and invoke store.getState() in the callback to access the latest state. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
4933 + }
4934 +
4935 + var isSubscribed = true;
4936 + ensureCanMutateNextListeners();
4937 + nextListeners.push(listener);
4938 + return function unsubscribe() {
4939 + if (!isSubscribed) {
4940 + return;
4941 + }
4942 +
4943 + if (isDispatching) {
4944 + throw new Error( false ? 0 : 'You may not unsubscribe from a store listener while the reducer is executing. ' + 'See https://redux.js.org/api/store#subscribelistener for more details.');
4945 + }
4946 +
4947 + isSubscribed = false;
4948 + ensureCanMutateNextListeners();
4949 + var index = nextListeners.indexOf(listener);
4950 + nextListeners.splice(index, 1);
4951 + currentListeners = null;
4952 + };
4953 + }
4954 + /**
4955 + * Dispatches an action. It is the only way to trigger a state change.
4956 + *
4957 + * The `reducer` function, used to create the store, will be called with the
4958 + * current state tree and the given `action`. Its return value will
4959 + * be considered the **next** state of the tree, and the change listeners
4960 + * will be notified.
4961 + *
4962 + * The base implementation only supports plain object actions. If you want to
4963 + * dispatch a Promise, an Observable, a thunk, or something else, you need to
4964 + * wrap your store creating function into the corresponding middleware. For
4965 + * example, see the documentation for the `redux-thunk` package. Even the
4966 + * middleware will eventually dispatch plain object actions using this method.
4967 + *
4968 + * @param {Object} action A plain object representing “what changed”. It is
4969 + * a good idea to keep actions serializable so you can record and replay user
4970 + * sessions, or use the time travelling `redux-devtools`. An action must have
4971 + * a `type` property which may not be `undefined`. It is a good idea to use
4972 + * string constants for action types.
4973 + *
4974 + * @returns {Object} For convenience, the same action object you dispatched.
4975 + *
4976 + * Note that, if you use a custom middleware, it may wrap `dispatch()` to
4977 + * return something else (for example, a Promise you can await).
4978 + */
4979 +
4980 +
4981 + function dispatch(action) {
4982 + if (!isPlainObject(action)) {
4983 + throw new Error( false ? 0 : "Actions must be plain objects. Instead, the actual type was: '" + kindOf(action) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
4984 + }
4985 +
4986 + if (typeof action.type === 'undefined') {
4987 + throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
4988 + }
4989 +
4990 + if (isDispatching) {
4991 + throw new Error( false ? 0 : 'Reducers may not dispatch actions.');
4992 + }
4993 +
4994 + try {
4995 + isDispatching = true;
4996 + currentState = currentReducer(currentState, action);
4997 + } finally {
4998 + isDispatching = false;
4999 + }
5000 +
5001 + var listeners = currentListeners = nextListeners;
5002 +
5003 + for (var i = 0; i < listeners.length; i++) {
5004 + var listener = listeners[i];
5005 + listener();
5006 + }
5007 +
5008 + return action;
5009 + }
5010 + /**
5011 + * Replaces the reducer currently used by the store to calculate the state.
5012 + *
5013 + * You might need this if your app implements code splitting and you want to
5014 + * load some of the reducers dynamically. You might also need this if you
5015 + * implement a hot reloading mechanism for Redux.
5016 + *
5017 + * @param {Function} nextReducer The reducer for the store to use instead.
5018 + * @returns {void}
5019 + */
5020 +
5021 +
5022 + function replaceReducer(nextReducer) {
5023 + if (typeof nextReducer !== 'function') {
5024 + throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer));
5025 + }
5026 +
5027 + currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT.
5028 + // Any reducers that existed in both the new and old rootReducer
5029 + // will receive the previous state. This effectively populates
5030 + // the new state tree with any relevant data from the old one.
5031 +
5032 + dispatch({
5033 + type: ActionTypes.REPLACE
5034 + });
5035 + }
5036 + /**
5037 + * Interoperability point for observable/reactive libraries.
5038 + * @returns {observable} A minimal observable of state changes.
5039 + * For more information, see the observable proposal:
5040 + * https://github.com/tc39/proposal-observable
5041 + */
5042 +
5043 +
5044 + function observable() {
5045 + var _ref;
5046 +
5047 + var outerSubscribe = subscribe;
5048 + return _ref = {
5049 + /**
5050 + * The minimal observable subscription method.
5051 + * @param {Object} observer Any object that can be used as an observer.
5052 + * The observer object should have a `next` method.
5053 + * @returns {subscription} An object with an `unsubscribe` method that can
5054 + * be used to unsubscribe the observable from the store, and prevent further
5055 + * emission of values from the observable.
5056 + */
5057 + subscribe: function subscribe(observer) {
5058 + if (typeof observer !== 'object' || observer === null) {
5059 + throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'");
5060 + }
5061 +
5062 + function observeState() {
5063 + if (observer.next) {
5064 + observer.next(getState());
5065 + }
5066 + }
5067 +
5068 + observeState();
5069 + var unsubscribe = outerSubscribe(observeState);
5070 + return {
5071 + unsubscribe: unsubscribe
5072 + };
5073 + }
5074 + }, _ref[$$observable] = function () {
5075 + return this;
5076 + }, _ref;
5077 + } // When a store is created, an "INIT" action is dispatched so that every
5078 + // reducer returns their initial state. This effectively populates
5079 + // the initial state tree.
5080 +
5081 +
5082 + dispatch({
5083 + type: ActionTypes.INIT
5084 + });
5085 + return _ref2 = {
5086 + dispatch: dispatch,
5087 + subscribe: subscribe,
5088 + getState: getState,
5089 + replaceReducer: replaceReducer
5090 + }, _ref2[$$observable] = observable, _ref2;
5091 +}
5092 +/**
5093 + * Creates a Redux store that holds the state tree.
5094 + *
5095 + * **We recommend using `configureStore` from the
5096 + * `@reduxjs/toolkit` package**, which replaces `createStore`:
5097 + * **https://redux.js.org/introduction/why-rtk-is-redux-today**
5098 + *
5099 + * The only way to change the data in the store is to call `dispatch()` on it.
5100 + *
5101 + * There should only be a single store in your app. To specify how different
5102 + * parts of the state tree respond to actions, you may combine several reducers
5103 + * into a single reducer function by using `combineReducers`.
5104 + *
5105 + * @param {Function} reducer A function that returns the next state tree, given
5106 + * the current state tree and the action to handle.
5107 + *
5108 + * @param {any} [preloadedState] The initial state. You may optionally specify it
5109 + * to hydrate the state from the server in universal apps, or to restore a
5110 + * previously serialized user session.
5111 + * If you use `combineReducers` to produce the root reducer function, this must be
5112 + * an object with the same shape as `combineReducers` keys.
5113 + *
5114 + * @param {Function} [enhancer] The store enhancer. You may optionally specify it
5115 + * to enhance the store with third-party capabilities such as middleware,
5116 + * time travel, persistence, etc. The only store enhancer that ships with Redux
5117 + * is `applyMiddleware()`.
5118 + *
5119 + * @returns {Store} A Redux store that lets you read the state, dispatch actions
5120 + * and subscribe to changes.
5121 + */
5122 +
5123 +var legacy_createStore = createStore;
5124 +
5125 +/**
5126 + * Prints a warning in the console if it exists.
5127 + *
5128 + * @param {String} message The warning message.
5129 + * @returns {void}
5130 + */
5131 +function warning(message) {
5132 + /* eslint-disable no-console */
5133 + if (typeof console !== 'undefined' && typeof console.error === 'function') {
5134 + console.error(message);
5135 + }
5136 + /* eslint-enable no-console */
5137 +
5138 +
5139 + try {
5140 + // This error was thrown as a convenience so that if you enable
5141 + // "break on all exceptions" in your console,
5142 + // it would pause the execution at this line.
5143 + throw new Error(message);
5144 + } catch (e) {} // eslint-disable-line no-empty
5145 +
5146 +}
5147 +
5148 +function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) {
5149 + var reducerKeys = Object.keys(reducers);
5150 + var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer';
5151 +
5152 + if (reducerKeys.length === 0) {
5153 + return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.';
5154 + }
5155 +
5156 + if (!isPlainObject(inputState)) {
5157 + return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\"");
5158 + }
5159 +
5160 + var unexpectedKeys = Object.keys(inputState).filter(function (key) {
5161 + return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key];
5162 + });
5163 + unexpectedKeys.forEach(function (key) {
5164 + unexpectedKeyCache[key] = true;
5165 + });
5166 + if (action && action.type === ActionTypes.REPLACE) return;
5167 +
5168 + if (unexpectedKeys.length > 0) {
5169 + return "Unexpected " + (unexpectedKeys.length > 1 ? 'keys' : 'key') + " " + ("\"" + unexpectedKeys.join('", "') + "\" found in " + argumentName + ". ") + "Expected to find one of the known reducer keys instead: " + ("\"" + reducerKeys.join('", "') + "\". Unexpected keys will be ignored.");
5170 + }
5171 +}
5172 +
5173 +function assertReducerShape(reducers) {
5174 + Object.keys(reducers).forEach(function (key) {
5175 + var reducer = reducers[key];
5176 + var initialState = reducer(undefined, {
5177 + type: ActionTypes.INIT
5178 + });
5179 +
5180 + if (typeof initialState === 'undefined') {
5181 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined during initialization. " + "If the state passed to the reducer is undefined, you must " + "explicitly return the initial state. The initial state may " + "not be undefined. If you don't want to set a value for this reducer, " + "you can use null instead of undefined.");
5182 + }
5183 +
5184 + if (typeof reducer(undefined, {
5185 + type: ActionTypes.PROBE_UNKNOWN_ACTION()
5186 + }) === 'undefined') {
5187 + throw new Error( false ? 0 : "The slice reducer for key \"" + key + "\" returned undefined when probed with a random type. " + ("Don't try to handle '" + ActionTypes.INIT + "' or other actions in \"redux/*\" ") + "namespace. They are considered private. Instead, you must return the " + "current state for any unknown actions, unless it is undefined, " + "in which case you must return the initial state, regardless of the " + "action type. The initial state may not be undefined, but can be null.");
5188 + }
5189 + });
5190 +}
5191 +/**
5192 + * Turns an object whose values are different reducer functions, into a single
5193 + * reducer function. It will call every child reducer, and gather their results
5194 + * into a single state object, whose keys correspond to the keys of the passed
5195 + * reducer functions.
5196 + *
5197 + * @param {Object} reducers An object whose values correspond to different
5198 + * reducer functions that need to be combined into one. One handy way to obtain
5199 + * it is to use ES6 `import * as reducers` syntax. The reducers may never return
5200 + * undefined for any action. Instead, they should return their initial state
5201 + * if the state passed to them was undefined, and the current state for any
5202 + * unrecognized action.
5203 + *
5204 + * @returns {Function} A reducer function that invokes every reducer inside the
5205 + * passed object, and builds a state object with the same shape.
5206 + */
5207 +
5208 +
5209 +function combineReducers(reducers) {
5210 + var reducerKeys = Object.keys(reducers);
5211 + var finalReducers = {};
5212 +
5213 + for (var i = 0; i < reducerKeys.length; i++) {
5214 + var key = reducerKeys[i];
5215 +
5216 + if (true) {
5217 + if (typeof reducers[key] === 'undefined') {
5218 + warning("No reducer provided for key \"" + key + "\"");
5219 + }
5220 + }
5221 +
5222 + if (typeof reducers[key] === 'function') {
5223 + finalReducers[key] = reducers[key];
5224 + }
5225 + }
5226 +
5227 + var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same
5228 + // keys multiple times.
5229 +
5230 + var unexpectedKeyCache;
5231 +
5232 + if (true) {
5233 + unexpectedKeyCache = {};
5234 + }
5235 +
5236 + var shapeAssertionError;
5237 +
5238 + try {
5239 + assertReducerShape(finalReducers);
5240 + } catch (e) {
5241 + shapeAssertionError = e;
5242 + }
5243 +
5244 + return function combination(state, action) {
5245 + if (state === void 0) {
5246 + state = {};
5247 + }
5248 +
5249 + if (shapeAssertionError) {
5250 + throw shapeAssertionError;
5251 + }
5252 +
5253 + if (true) {
5254 + var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache);
5255 +
5256 + if (warningMessage) {
5257 + warning(warningMessage);
5258 + }
5259 + }
5260 +
5261 + var hasChanged = false;
5262 + var nextState = {};
5263 +
5264 + for (var _i = 0; _i < finalReducerKeys.length; _i++) {
5265 + var _key = finalReducerKeys[_i];
5266 + var reducer = finalReducers[_key];
5267 + var previousStateForKey = state[_key];
5268 + var nextStateForKey = reducer(previousStateForKey, action);
5269 +
5270 + if (typeof nextStateForKey === 'undefined') {
5271 + var actionType = action && action.type;
5272 + throw new Error( false ? 0 : "When called with an action of type " + (actionType ? "\"" + String(actionType) + "\"" : '(unknown type)') + ", the slice reducer for key \"" + _key + "\" returned undefined. " + "To ignore an action, you must explicitly return the previous state. " + "If you want this reducer to hold no value, you can return null instead of undefined.");
5273 + }
5274 +
5275 + nextState[_key] = nextStateForKey;
5276 + hasChanged = hasChanged || nextStateForKey !== previousStateForKey;
5277 + }
5278 +
5279 + hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length;
5280 + return hasChanged ? nextState : state;
5281 + };
5282 +}
5283 +
5284 +function bindActionCreator(actionCreator, dispatch) {
5285 + return function () {
5286 + return dispatch(actionCreator.apply(this, arguments));
5287 + };
5288 +}
5289 +/**
5290 + * Turns an object whose values are action creators, into an object with the
5291 + * same keys, but with every function wrapped into a `dispatch` call so they
5292 + * may be invoked directly. This is just a convenience method, as you can call
5293 + * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
5294 + *
5295 + * For convenience, you can also pass an action creator as the first argument,
5296 + * and get a dispatch wrapped function in return.
5297 + *
5298 + * @param {Function|Object} actionCreators An object whose values are action
5299 + * creator functions. One handy way to obtain it is to use ES6 `import * as`
5300 + * syntax. You may also pass a single function.
5301 + *
5302 + * @param {Function} dispatch The `dispatch` function available on your Redux
5303 + * store.
5304 + *
5305 + * @returns {Function|Object} The object mimicking the original object, but with
5306 + * every action creator wrapped into the `dispatch` call. If you passed a
5307 + * function as `actionCreators`, the return value will also be a single
5308 + * function.
5309 + */
5310 +
5311 +
5312 +function bindActionCreators(actionCreators, dispatch) {
5313 + if (typeof actionCreators === 'function') {
5314 + return bindActionCreator(actionCreators, dispatch);
5315 + }
5316 +
5317 + if (typeof actionCreators !== 'object' || actionCreators === null) {
5318 + throw new Error( false ? 0 : "bindActionCreators expected an object or a function, but instead received: '" + kindOf(actionCreators) + "'. " + "Did you write \"import ActionCreators from\" instead of \"import * as ActionCreators from\"?");
5319 + }
5320 +
5321 + var boundActionCreators = {};
5322 +
5323 + for (var key in actionCreators) {
5324 + var actionCreator = actionCreators[key];
5325 +
5326 + if (typeof actionCreator === 'function') {
5327 + boundActionCreators[key] = bindActionCreator(actionCreator, dispatch);
5328 + }
5329 + }
5330 +
5331 + return boundActionCreators;
5332 +}
5333 +
5334 +/**
5335 + * Composes single-argument functions from right to left. The rightmost
5336 + * function can take multiple arguments as it provides the signature for
5337 + * the resulting composite function.
5338 + *
5339 + * @param {...Function} funcs The functions to compose.
5340 + * @returns {Function} A function obtained by composing the argument functions
5341 + * from right to left. For example, compose(f, g, h) is identical to doing
5342 + * (...args) => f(g(h(...args))).
5343 + */
5344 +function compose() {
5345 + for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
5346 + funcs[_key] = arguments[_key];
5347 + }
5348 +
5349 + if (funcs.length === 0) {
5350 + return function (arg) {
5351 + return arg;
5352 + };
5353 + }
5354 +
5355 + if (funcs.length === 1) {
5356 + return funcs[0];
5357 + }
5358 +
5359 + return funcs.reduce(function (a, b) {
5360 + return function () {
5361 + return a(b.apply(void 0, arguments));
5362 + };
5363 + });
5364 +}
5365 +
5366 +/**
5367 + * Creates a store enhancer that applies middleware to the dispatch method
5368 + * of the Redux store. This is handy for a variety of tasks, such as expressing
5369 + * asynchronous actions in a concise manner, or logging every action payload.
5370 + *
5371 + * See `redux-thunk` package as an example of the Redux middleware.
5372 + *
5373 + * Because middleware is potentially asynchronous, this should be the first
5374 + * store enhancer in the composition chain.
5375 + *
5376 + * Note that each middleware will be given the `dispatch` and `getState` functions
5377 + * as named arguments.
5378 + *
5379 + * @param {...Function} middlewares The middleware chain to be applied.
5380 + * @returns {Function} A store enhancer applying the middleware.
5381 + */
5382 +
5383 +function applyMiddleware() {
5384 + for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
5385 + middlewares[_key] = arguments[_key];
5386 + }
5387 +
5388 + return function (createStore) {
5389 + return function () {
5390 + var store = createStore.apply(void 0, arguments);
5391 +
5392 + var _dispatch = function dispatch() {
5393 + throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
5394 + };
5395 +
5396 + var middlewareAPI = {
5397 + getState: store.getState,
5398 + dispatch: function dispatch() {
5399 + return _dispatch.apply(void 0, arguments);
5400 + }
5401 + };
5402 + var chain = middlewares.map(function (middleware) {
5403 + return middleware(middlewareAPI);
5404 + });
5405 + _dispatch = compose.apply(void 0, chain)(store.dispatch);
5406 + return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, {
5407 + dispatch: _dispatch
5408 + });
5409 + };
5410 + };
5411 +}
5412 +
5413 +
5414 +
5415 +
5416 +/***/ }),
5417 +
5418 +/***/ "../node_modules/reselect/es/defaultMemoize.js":
5419 +/*!*****************************************************!*\
5420 + !*** ../node_modules/reselect/es/defaultMemoize.js ***!
5421 + \*****************************************************/
5422 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5423 +
5424 +"use strict";
5425 +__webpack_require__.r(__webpack_exports__);
5426 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5427 +/* harmony export */ createCacheKeyComparator: () => (/* binding */ createCacheKeyComparator),
5428 +/* harmony export */ defaultEqualityCheck: () => (/* binding */ defaultEqualityCheck),
5429 +/* harmony export */ defaultMemoize: () => (/* binding */ defaultMemoize)
5430 +/* harmony export */ });
5431 +// Cache implementation based on Erik Rasmussen's `lru-memoize`:
5432 +// https://github.com/erikras/lru-memoize
5433 +var NOT_FOUND = 'NOT_FOUND';
5434 +
5435 +function createSingletonCache(equals) {
5436 + var entry;
5437 + return {
5438 + get: function get(key) {
5439 + if (entry && equals(entry.key, key)) {
5440 + return entry.value;
5441 + }
5442 +
5443 + return NOT_FOUND;
5444 + },
5445 + put: function put(key, value) {
5446 + entry = {
5447 + key: key,
5448 + value: value
5449 + };
5450 + },
5451 + getEntries: function getEntries() {
5452 + return entry ? [entry] : [];
5453 + },
5454 + clear: function clear() {
5455 + entry = undefined;
5456 + }
5457 + };
5458 +}
5459 +
5460 +function createLruCache(maxSize, equals) {
5461 + var entries = [];
5462 +
5463 + function get(key) {
5464 + var cacheIndex = entries.findIndex(function (entry) {
5465 + return equals(key, entry.key);
5466 + }); // We found a cached entry
5467 +
5468 + if (cacheIndex > -1) {
5469 + var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top
5470 +
5471 + if (cacheIndex > 0) {
5472 + entries.splice(cacheIndex, 1);
5473 + entries.unshift(entry);
5474 + }
5475 +
5476 + return entry.value;
5477 + } // No entry found in cache, return sentinel
5478 +
5479 +
5480 + return NOT_FOUND;
5481 + }
5482 +
5483 + function put(key, value) {
5484 + if (get(key) === NOT_FOUND) {
5485 + // TODO Is unshift slow?
5486 + entries.unshift({
5487 + key: key,
5488 + value: value
5489 + });
5490 +
5491 + if (entries.length > maxSize) {
5492 + entries.pop();
5493 + }
5494 + }
5495 + }
5496 +
5497 + function getEntries() {
5498 + return entries;
5499 + }
5500 +
5501 + function clear() {
5502 + entries = [];
5503 + }
5504 +
5505 + return {
5506 + get: get,
5507 + put: put,
5508 + getEntries: getEntries,
5509 + clear: clear
5510 + };
5511 +}
5512 +
5513 +var defaultEqualityCheck = function defaultEqualityCheck(a, b) {
5514 + return a === b;
5515 +};
5516 +function createCacheKeyComparator(equalityCheck) {
5517 + return function areArgumentsShallowlyEqual(prev, next) {
5518 + if (prev === null || next === null || prev.length !== next.length) {
5519 + return false;
5520 + } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
5521 +
5522 +
5523 + var length = prev.length;
5524 +
5525 + for (var i = 0; i < length; i++) {
5526 + if (!equalityCheck(prev[i], next[i])) {
5527 + return false;
5528 + }
5529 + }
5530 +
5531 + return true;
5532 + };
5533 +}
5534 +// defaultMemoize now supports a configurable cache size with LRU behavior,
5535 +// and optional comparison of the result value with existing values
5536 +function defaultMemoize(func, equalityCheckOrOptions) {
5537 + var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : {
5538 + equalityCheck: equalityCheckOrOptions
5539 + };
5540 + var _providedOptions$equa = providedOptions.equalityCheck,
5541 + equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa,
5542 + _providedOptions$maxS = providedOptions.maxSize,
5543 + maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS,
5544 + resultEqualityCheck = providedOptions.resultEqualityCheck;
5545 + var comparator = createCacheKeyComparator(equalityCheck);
5546 + var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons
5547 +
5548 + function memoized() {
5549 + var value = cache.get(arguments);
5550 +
5551 + if (value === NOT_FOUND) {
5552 + // @ts-ignore
5553 + value = func.apply(null, arguments);
5554 +
5555 + if (resultEqualityCheck) {
5556 + var entries = cache.getEntries();
5557 + var matchingEntry = entries.find(function (entry) {
5558 + return resultEqualityCheck(entry.value, value);
5559 + });
5560 +
5561 + if (matchingEntry) {
5562 + value = matchingEntry.value;
5563 + }
5564 + }
5565 +
5566 + cache.put(arguments, value);
5567 + }
5568 +
5569 + return value;
5570 + }
5571 +
5572 + memoized.clearCache = function () {
5573 + return cache.clear();
5574 + };
5575 +
5576 + return memoized;
5577 +}
5578 +
5579 +/***/ }),
5580 +
5581 +/***/ "../node_modules/reselect/es/index.js":
5582 +/*!********************************************!*\
5583 + !*** ../node_modules/reselect/es/index.js ***!
5584 + \********************************************/
5585 +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5586 +
5587 +"use strict";
5588 +__webpack_require__.r(__webpack_exports__);
5589 +/* harmony export */ __webpack_require__.d(__webpack_exports__, {
5590 +/* harmony export */ createSelector: () => (/* binding */ createSelector),
5591 +/* harmony export */ createSelectorCreator: () => (/* binding */ createSelectorCreator),
5592 +/* harmony export */ createStructuredSelector: () => (/* binding */ createStructuredSelector),
5593 +/* harmony export */ defaultEqualityCheck: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck),
5594 +/* harmony export */ defaultMemoize: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize)
5595 +/* harmony export */ });
5596 +/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js");
5597 +
5598 +
5599 +
5600 +function getDependencies(funcs) {
5601 + var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
5602 +
5603 + if (!dependencies.every(function (dep) {
5604 + return typeof dep === 'function';
5605 + })) {
5606 + var dependencyTypes = dependencies.map(function (dep) {
5607 + return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep;
5608 + }).join(', ');
5609 + throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]");
5610 + }
5611 +
5612 + return dependencies;
5613 +}
5614 +
5615 +function createSelectorCreator(memoize) {
5616 + for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
5617 + memoizeOptionsFromArgs[_key - 1] = arguments[_key];
5618 + }
5619 +
5620 + var createSelector = function createSelector() {
5621 + for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
5622 + funcs[_key2] = arguments[_key2];
5623 + }
5624 +
5625 + var _recomputations = 0;
5626 +
5627 + var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`.
5628 + // So, start by declaring the default value here.
5629 + // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.)
5630 +
5631 +
5632 + var directlyPassedOptions = {
5633 + memoizeOptions: undefined
5634 + }; // Normally, the result func or "output selector" is the last arg
5635 +
5636 + var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object
5637 +
5638 + if (typeof resultFunc === 'object') {
5639 + directlyPassedOptions = resultFunc; // and pop the real result func off
5640 +
5641 + resultFunc = funcs.pop();
5642 + }
5643 +
5644 + if (typeof resultFunc !== 'function') {
5645 + throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]");
5646 + } // Determine which set of options we're using. Prefer options passed directly,
5647 + // but fall back to options given to createSelectorCreator.
5648 +
5649 +
5650 + var _directlyPassedOption = directlyPassedOptions,
5651 + _directlyPassedOption2 = _directlyPassedOption.memoizeOptions,
5652 + memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer
5653 + // is an array. In most libs I've looked at, it's an equality function or options object.
5654 + // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full
5655 + // user-provided array of options. Otherwise, it must be just the _first_ arg, and so
5656 + // we wrap it in an array so we can apply it.
5657 +
5658 + var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions];
5659 + var dependencies = getDependencies(funcs);
5660 + var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() {
5661 + _recomputations++; // apply arguments instead of spreading for performance.
5662 +
5663 + return resultFunc.apply(null, arguments);
5664 + }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
5665 +
5666 + var selector = memoize(function dependenciesChecker() {
5667 + var params = [];
5668 + var length = dependencies.length;
5669 +
5670 + for (var i = 0; i < length; i++) {
5671 + // apply arguments instead of spreading and mutate a local list of params for performance.
5672 + // @ts-ignore
5673 + params.push(dependencies[i].apply(null, arguments));
5674 + } // apply arguments instead of spreading for performance.
5675 +
5676 +
5677 + _lastResult = memoizedResultFunc.apply(null, params);
5678 + return _lastResult;
5679 + });
5680 + Object.assign(selector, {
5681 + resultFunc: resultFunc,
5682 + memoizedResultFunc: memoizedResultFunc,
5683 + dependencies: dependencies,
5684 + lastResult: function lastResult() {
5685 + return _lastResult;
5686 + },
5687 + recomputations: function recomputations() {
5688 + return _recomputations;
5689 + },
5690 + resetRecomputations: function resetRecomputations() {
5691 + return _recomputations = 0;
5692 + }
5693 + });
5694 + return selector;
5695 + }; // @ts-ignore
5696 +
5697 +
5698 + return createSelector;
5699 +}
5700 +var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize);
5701 +// Manual definition of state and output arguments
5702 +var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) {
5703 + if (selectorCreator === void 0) {
5704 + selectorCreator = createSelector;
5705 + }
5706 +
5707 + if (typeof selectors !== 'object') {
5708 + throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors));
5709 + }
5710 +
5711 + var objectKeys = Object.keys(selectors);
5712 + var resultSelector = selectorCreator( // @ts-ignore
5713 + objectKeys.map(function (key) {
5714 + return selectors[key];
5715 + }), function () {
5716 + for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
5717 + values[_key3] = arguments[_key3];
5718 + }
5719 +
5720 + return values.reduce(function (composition, value, index) {
5721 + composition[objectKeys[index]] = value;
5722 + return composition;
5723 + }, {});
5724 + });
5725 + return resultSelector;
5726 +};
5727 +
5728 +/***/ })
5729 +
5730 +/******/ });
5731 +/************************************************************************/
5732 +/******/ // The module cache
5733 +/******/ var __webpack_module_cache__ = {};
5734 +/******/
5735 +/******/ // The require function
5736 +/******/ function __webpack_require__(moduleId) {
5737 +/******/ // Check if module is in cache
5738 +/******/ var cachedModule = __webpack_module_cache__[moduleId];
5739 +/******/ if (cachedModule !== undefined) {
5740 +/******/ return cachedModule.exports;
5741 +/******/ }
5742 +/******/ // Create a new module (and put it into the cache)
5743 +/******/ var module = __webpack_module_cache__[moduleId] = {
5744 +/******/ // no module.id needed
5745 +/******/ // no module.loaded needed
5746 +/******/ exports: {}
5747 +/******/ };
5748 +/******/
5749 +/******/ // Execute the module function
5750 +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
5751 +/******/
5752 +/******/ // Return the exports of the module
5753 +/******/ return module.exports;
5754 +/******/ }
5755 +/******/
5756 +/************************************************************************/
5757 +/******/ /* webpack/runtime/define property getters */
5758 +/******/ (() => {
5759 +/******/ // define getter functions for harmony exports
5760 +/******/ __webpack_require__.d = (exports, definition) => {
5761 +/******/ for(var key in definition) {
5762 +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
5763 +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
5764 +/******/ }
5765 +/******/ }
5766 +/******/ };
5767 +/******/ })();
5768 +/******/
5769 +/******/ /* webpack/runtime/global */
5770 +/******/ (() => {
5771 +/******/ __webpack_require__.g = (function() {
5772 +/******/ if (typeof globalThis === 'object') return globalThis;
5773 +/******/ try {
5774 +/******/ return this || new Function('return this')();
5775 +/******/ } catch (e) {
5776 +/******/ if (typeof window === 'object') return window;
5777 +/******/ }
5778 +/******/ })();
5779 +/******/ })();
5780 +/******/
5781 +/******/ /* webpack/runtime/hasOwnProperty shorthand */
5782 +/******/ (() => {
5783 +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
5784 +/******/ })();
5785 +/******/
5786 +/******/ /* webpack/runtime/make namespace object */
5787 +/******/ (() => {
5788 +/******/ // define __esModule on exports
5789 +/******/ __webpack_require__.r = (exports) => {
5790 +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
5791 +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
5792 +/******/ }
5793 +/******/ Object.defineProperty(exports, '__esModule', { value: true });
5794 +/******/ };
5795 +/******/ })();
5796 +/******/
5797 +/************************************************************************/
5798 +var __webpack_exports__ = {};
5799 +// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
5800 +(() => {
5801 +"use strict";
5802 +/*!**************************************!*\
5803 + !*** ../app/assets/js/app-loader.js ***!
5804 + \**************************************/
5805 +
5806 +
5807 +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
5808 +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
5809 +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
5810 +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
5811 +var _component = _interopRequireDefault(__webpack_require__(/*! ./loader/component */ "../app/assets/js/loader/component.js"));
5812 +var AppLoader = /*#__PURE__*/function () {
5813 + function AppLoader() {
5814 + (0, _classCallCheck2.default)(this, AppLoader);
5815 + (0, _defineProperty2.default)(this, "selector", 'a.elementor-app-link, .elementor-app-link .ab-item');
5816 + $e.components.register(new _component.default());
5817 + window.addEventListener('DOMContentLoaded', this.onLoad.bind(this));
5818 + }
5819 + return (0, _createClass2.default)(AppLoader, [{
5820 + key: "onLoad",
5821 + value: function onLoad() {
5822 + var links = document.querySelectorAll(this.selector);
5823 + if (!links.length) {
5824 + return;
5825 + }
5826 + links.forEach(function (link) {
5827 + link.addEventListener('click', function (event) {
5828 + event.preventDefault();
5829 + $e.run('app/open', {
5830 + url: link.href
5831 + });
5832 + });
5833 + link.addEventListener('mouseenter', function () {
5834 + $e.run('app/load', {
5835 + url: link.href
5836 + });
5837 + });
5838 + });
5839 + }
5840 + }]);
5841 +}();
5842 +window.elementorAppLoader = new AppLoader();
5843 +})();
5844 +
5845 +/******/ })()
5846 +;
1852 5847 //# sourceMappingURL=app-loader.js.map