| @@ -1,1548 +1,578 @@ | ||
| 1 | -/******/ (() => { // webpackBootstrap | |
| 2 | -/******/ var __webpack_modules__ = ({ | |
| 1 | +/*! elementor - v3.0.2 - 26-08-2020 */ | |
| 2 | +/******/ (function(modules) { // webpackBootstrap | |
| 3 | +/******/ // The module cache | |
| 4 | +/******/ var installedModules = {}; | |
| 5 | +/******/ | |
| 6 | +/******/ // The require function | |
| 7 | +/******/ function __webpack_require__(moduleId) { | |
| 8 | +/******/ | |
| 9 | +/******/ // Check if module is in cache | |
| 10 | +/******/ if(installedModules[moduleId]) { | |
| 11 | +/******/ return installedModules[moduleId].exports; | |
| 12 | +/******/ } | |
| 13 | +/******/ // Create a new module (and put it into the cache) | |
| 14 | +/******/ var module = installedModules[moduleId] = { | |
| 15 | +/******/ i: moduleId, | |
| 16 | +/******/ l: false, | |
| 17 | +/******/ exports: {} | |
| 18 | +/******/ }; | |
| 19 | +/******/ | |
| 20 | +/******/ // Execute the module function | |
| 21 | +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | |
| 22 | +/******/ | |
| 23 | +/******/ // Flag the module as loaded | |
| 24 | +/******/ module.l = true; | |
| 25 | +/******/ | |
| 26 | +/******/ // Return the exports of the module | |
| 27 | +/******/ return module.exports; | |
| 28 | +/******/ } | |
| 29 | +/******/ | |
| 30 | +/******/ | |
| 31 | +/******/ // expose the modules object (__webpack_modules__) | |
| 32 | +/******/ __webpack_require__.m = modules; | |
| 33 | +/******/ | |
| 34 | +/******/ // expose the module cache | |
| 35 | +/******/ __webpack_require__.c = installedModules; | |
| 36 | +/******/ | |
| 37 | +/******/ // define getter function for harmony exports | |
| 38 | +/******/ __webpack_require__.d = function(exports, name, getter) { | |
| 39 | +/******/ if(!__webpack_require__.o(exports, name)) { | |
| 40 | +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | |
| 41 | +/******/ } | |
| 42 | +/******/ }; | |
| 43 | +/******/ | |
| 44 | +/******/ // define __esModule on exports | |
| 45 | +/******/ __webpack_require__.r = function(exports) { | |
| 46 | +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 47 | +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| 48 | +/******/ } | |
| 49 | +/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| 50 | +/******/ }; | |
| 51 | +/******/ | |
| 52 | +/******/ // create a fake namespace object | |
| 53 | +/******/ // mode & 1: value is a module id, require it | |
| 54 | +/******/ // mode & 2: merge all properties of value into the ns | |
| 55 | +/******/ // mode & 4: return value when already ns object | |
| 56 | +/******/ // mode & 8|1: behave like require | |
| 57 | +/******/ __webpack_require__.t = function(value, mode) { | |
| 58 | +/******/ if(mode & 1) value = __webpack_require__(value); | |
| 59 | +/******/ if(mode & 8) return value; | |
| 60 | +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | |
| 61 | +/******/ var ns = Object.create(null); | |
| 62 | +/******/ __webpack_require__.r(ns); | |
| 63 | +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | |
| 64 | +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | |
| 65 | +/******/ return ns; | |
| 66 | +/******/ }; | |
| 67 | +/******/ | |
| 68 | +/******/ // getDefaultExport function for compatibility with non-harmony modules | |
| 69 | +/******/ __webpack_require__.n = function(module) { | |
| 70 | +/******/ var getter = module && module.__esModule ? | |
| 71 | +/******/ function getDefault() { return module['default']; } : | |
| 72 | +/******/ function getModuleExports() { return module; }; | |
| 73 | +/******/ __webpack_require__.d(getter, 'a', getter); | |
| 74 | +/******/ return getter; | |
| 75 | +/******/ }; | |
| 76 | +/******/ | |
| 77 | +/******/ // Object.prototype.hasOwnProperty.call | |
| 78 | +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; | |
| 79 | +/******/ | |
| 80 | +/******/ // __webpack_public_path__ | |
| 81 | +/******/ __webpack_require__.p = ""; | |
| 82 | +/******/ | |
| 83 | +/******/ | |
| 84 | +/******/ // Load entry module and return exports | |
| 85 | +/******/ return __webpack_require__(__webpack_require__.s = 811); | |
| 86 | +/******/ }) | |
| 87 | +/************************************************************************/ | |
| 88 | +/******/ ([ | |
| 89 | +/* 0 */ | |
| 90 | +/***/ (function(module, exports) { | |
| 3 | 91 | |
| 4 | -/***/ "../app/modules/import-export-customization/assets/js/shared/registry/base.js": | |
| 5 | -/*!************************************************************************************!*\ | |
| 6 | - !*** ../app/modules/import-export-customization/assets/js/shared/registry/base.js ***! | |
| 7 | - \************************************************************************************/ | |
| 8 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 92 | +function _interopRequireDefault(obj) { | |
| 93 | + return obj && obj.__esModule ? obj : { | |
| 94 | + "default": obj | |
| 95 | + }; | |
| 96 | +} | |
| 9 | 97 | |
| 10 | -"use strict"; | |
| 98 | +module.exports = _interopRequireDefault; | |
| 11 | 99 | |
| 100 | +/***/ }), | |
| 101 | +/* 1 */ | |
| 102 | +/***/ (function(module, exports, __webpack_require__) { | |
| 12 | 103 | |
| 13 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 14 | -Object.defineProperty(exports, "__esModule", ({ | |
| 15 | - value: true | |
| 16 | -})); | |
| 17 | -exports.BaseRegistry = void 0; | |
| 18 | -var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); | |
| 19 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 20 | -var _objectWithoutProperties2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "../node_modules/@babel/runtime/helpers/objectWithoutProperties.js")); | |
| 21 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 22 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 23 | -var _excluded = ["children"]; | |
| 24 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 25 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 26 | -var BaseRegistry = exports.BaseRegistry = /*#__PURE__*/function () { | |
| 27 | - function BaseRegistry() { | |
| 28 | - (0, _classCallCheck2.default)(this, BaseRegistry); | |
| 29 | - this.sections = new Map(); | |
| 30 | - } | |
| 31 | - return (0, _createClass2.default)(BaseRegistry, [{ | |
| 32 | - key: "register", | |
| 33 | - value: function register(section) { | |
| 34 | - var _this = this; | |
| 35 | - if (!section.key || !section.title) { | |
| 36 | - throw new Error('Template type must have key and title'); | |
| 37 | - } | |
| 38 | - var existingSection = this.get(section.key); | |
| 39 | - var formattedSection = existingSection || this.formatSection(section); | |
| 40 | - if (section.children) { | |
| 41 | - // If existing section has children, merge them with new children | |
| 42 | - if (formattedSection.children) { | |
| 43 | - var existingChildrenMap = new Map(formattedSection.children.map(function (child) { | |
| 44 | - return [child.key, child]; | |
| 45 | - })); | |
| 104 | +module.exports = __webpack_require__(155); | |
| 46 | 105 | |
| 47 | - // Override existing children with new ones and add new children | |
| 48 | - section.children.forEach(function (childSection) { | |
| 49 | - var formattedChild = _this.formatSection(childSection); | |
| 50 | - existingChildrenMap.set(childSection.key, formattedChild); | |
| 51 | - }); | |
| 52 | - formattedSection.children = Array.from(existingChildrenMap.values()); | |
| 53 | - } else { | |
| 54 | - formattedSection.children = section.children.map(function (childSection) { | |
| 55 | - return _this.formatSection(childSection); | |
| 56 | - }); | |
| 57 | - } | |
| 58 | - } | |
| 59 | - this.sections.set(section.key, formattedSection); | |
| 60 | - } | |
| 61 | - }, { | |
| 62 | - key: "formatSection", | |
| 63 | - value: function formatSection(_ref) { | |
| 64 | - var children = _ref.children, | |
| 65 | - section = (0, _objectWithoutProperties2.default)(_ref, _excluded); | |
| 66 | - return _objectSpread({ | |
| 67 | - key: section.key, | |
| 68 | - title: section.title, | |
| 69 | - description: section.description || '', | |
| 70 | - useParentDefault: section.useParentDefault !== false, | |
| 71 | - getInitialState: section.getInitialState || null, | |
| 72 | - component: section.component || null, | |
| 73 | - order: section.order || 10, | |
| 74 | - isAvailable: section.isAvailable || function () { | |
| 75 | - return true; | |
| 76 | - } | |
| 77 | - }, section); | |
| 78 | - } | |
| 79 | - }, { | |
| 80 | - key: "getAll", | |
| 81 | - value: function getAll() { | |
| 82 | - return Array.from(this.sections.values()).filter(function (type) { | |
| 83 | - return type.isAvailable(); | |
| 84 | - }).map(function (type) { | |
| 85 | - if (type.children) { | |
| 86 | - return _objectSpread(_objectSpread({}, type), {}, { | |
| 87 | - children: (0, _toConsumableArray2.default)(type.children).sort(function (a, b) { | |
| 88 | - return a.order - b.order; | |
| 89 | - }) | |
| 90 | - }); | |
| 91 | - } | |
| 92 | - return type; | |
| 93 | - }).sort(function (a, b) { | |
| 94 | - return a.order - b.order; | |
| 95 | - }); | |
| 96 | - } | |
| 97 | - }, { | |
| 98 | - key: "get", | |
| 99 | - value: function get(key) { | |
| 100 | - return this.sections.get(key); | |
| 101 | - } | |
| 102 | - }]); | |
| 103 | -}(); | |
| 104 | - | |
| 105 | 106 | /***/ }), |
| 107 | +/* 2 */ | |
| 108 | +/***/ (function(module, exports) { | |
| 106 | 109 | |
| 107 | -/***/ "../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js": | |
| 108 | -/*!*****************************************************************************************************!*\ | |
| 109 | - !*** ../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js ***! | |
| 110 | - \*****************************************************************************************************/ | |
| 111 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 110 | +function _classCallCheck(instance, Constructor) { | |
| 111 | + if (!(instance instanceof Constructor)) { | |
| 112 | + throw new TypeError("Cannot call a class as a function"); | |
| 113 | + } | |
| 114 | +} | |
| 112 | 115 | |
| 113 | -"use strict"; | |
| 116 | +module.exports = _classCallCheck; | |
| 114 | 117 | |
| 115 | - | |
| 116 | -Object.defineProperty(exports, "__esModule", ({ | |
| 117 | - value: true | |
| 118 | -})); | |
| 119 | -exports.customizationDialogsRegistry = void 0; | |
| 120 | -var _base = __webpack_require__(/*! ./base */ "../app/modules/import-export-customization/assets/js/shared/registry/base.js"); | |
| 121 | -var customizationDialogsRegistry = exports.customizationDialogsRegistry = new _base.BaseRegistry(); | |
| 122 | - | |
| 123 | 118 | /***/ }), |
| 119 | +/* 3 */ | |
| 120 | +/***/ (function(module, exports, __webpack_require__) { | |
| 124 | 121 | |
| 125 | -/***/ "../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js": | |
| 126 | -/*!******************************************************************************************************!*\ | |
| 127 | - !*** ../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js ***! | |
| 128 | - \******************************************************************************************************/ | |
| 129 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 122 | +var _Object$defineProperty = __webpack_require__(1); | |
| 130 | 123 | |
| 131 | -"use strict"; | |
| 124 | +function _defineProperties(target, props) { | |
| 125 | + for (var i = 0; i < props.length; i++) { | |
| 126 | + var descriptor = props[i]; | |
| 127 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 128 | + descriptor.configurable = true; | |
| 129 | + if ("value" in descriptor) descriptor.writable = true; | |
| 132 | 130 | |
| 131 | + _Object$defineProperty(target, descriptor.key, descriptor); | |
| 132 | + } | |
| 133 | +} | |
| 133 | 134 | |
| 134 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 135 | -Object.defineProperty(exports, "__esModule", ({ | |
| 136 | - value: true | |
| 137 | -})); | |
| 138 | -exports.createGetInitialState = createGetInitialState; | |
| 139 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 140 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 141 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 142 | -function createGetInitialState(exportGroup) { | |
| 143 | - var additionalProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 144 | - return function (data, parentInitialState) { | |
| 145 | - var isEnabled = parentInitialState; | |
| 146 | - var isImport = data.hasOwnProperty('uploadedData'); | |
| 147 | - if (isImport) { | |
| 148 | - var _elementorAppConfig; | |
| 149 | - isEnabled = false; | |
| 150 | - var templates = data.uploadedData.manifest.templates; | |
| 151 | - var exportGroups = ((_elementorAppConfig = elementorAppConfig) === null || _elementorAppConfig === void 0 || (_elementorAppConfig = _elementorAppConfig['import-export-customization']) === null || _elementorAppConfig === void 0 ? void 0 : _elementorAppConfig.exportGroups) || {}; | |
| 152 | - for (var templateId in templates) { | |
| 153 | - var template = templates[templateId]; | |
| 154 | - var templateExportGroup = exportGroups[template.doc_type]; | |
| 155 | - if (templateExportGroup === exportGroup) { | |
| 156 | - isEnabled = true; | |
| 157 | - break; | |
| 158 | - } | |
| 159 | - } | |
| 160 | - } | |
| 161 | - return _objectSpread({ | |
| 162 | - enabled: isEnabled | |
| 163 | - }, additionalProps); | |
| 164 | - }; | |
| 135 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 136 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 137 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 138 | + return Constructor; | |
| 165 | 139 | } |
| 166 | 140 | |
| 141 | +module.exports = _createClass; | |
| 142 | + | |
| 167 | 143 | /***/ }), |
| 144 | +/* 4 */ | |
| 145 | +/***/ (function(module, exports, __webpack_require__) { | |
| 168 | 146 | |
| 169 | -/***/ "../assets/dev/js/editor/utils/is-instanceof.js": | |
| 170 | -/*!******************************************************!*\ | |
| 171 | - !*** ../assets/dev/js/editor/utils/is-instanceof.js ***! | |
| 172 | - \******************************************************/ | |
| 173 | -/***/ ((__unused_webpack_module, exports) => { | |
| 147 | +var _Object$create = __webpack_require__(137); | |
| 174 | 148 | |
| 175 | -"use strict"; | |
| 149 | +var setPrototypeOf = __webpack_require__(135); | |
| 176 | 150 | |
| 151 | +function _inherits(subClass, superClass) { | |
| 152 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 153 | + throw new TypeError("Super expression must either be null or a function"); | |
| 154 | + } | |
| 177 | 155 | |
| 178 | -Object.defineProperty(exports, "__esModule", ({ | |
| 179 | - value: true | |
| 180 | -})); | |
| 181 | -exports["default"] = void 0; | |
| 182 | -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } | |
| 183 | -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } } | |
| 184 | -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } | |
| 185 | -/** | |
| 186 | - * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved | |
| 187 | - * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can | |
| 188 | - * check whether it's instanceof by using the objects constructor and prototype names. | |
| 189 | - * | |
| 190 | - * @param object | |
| 191 | - * @param constructors | |
| 192 | - * @return {boolean} | |
| 193 | - */ | |
| 194 | -var _default = exports["default"] = function _default(object, constructors) { | |
| 195 | - constructors = Array.isArray(constructors) ? constructors : [constructors]; | |
| 196 | - var _iterator = _createForOfIteratorHelper(constructors), | |
| 197 | - _step; | |
| 198 | - try { | |
| 199 | - for (_iterator.s(); !(_step = _iterator.n()).done;) { | |
| 200 | - var constructor = _step.value; | |
| 201 | - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) { | |
| 202 | - return true; | |
| 203 | - } | |
| 156 | + subClass.prototype = _Object$create(superClass && superClass.prototype, { | |
| 157 | + constructor: { | |
| 158 | + value: subClass, | |
| 159 | + writable: true, | |
| 160 | + configurable: true | |
| 204 | 161 | } |
| 205 | - } catch (err) { | |
| 206 | - _iterator.e(err); | |
| 207 | - } finally { | |
| 208 | - _iterator.f(); | |
| 209 | - } | |
| 210 | - return false; | |
| 211 | -}; | |
| 162 | + }); | |
| 163 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 164 | +} | |
| 212 | 165 | |
| 166 | +module.exports = _inherits; | |
| 167 | + | |
| 213 | 168 | /***/ }), |
| 169 | +/* 5 */ | |
| 170 | +/***/ (function(module, exports, __webpack_require__) { | |
| 214 | 171 | |
| 215 | -/***/ "../assets/dev/js/modules/imports/args-object.js": | |
| 216 | -/*!*******************************************************!*\ | |
| 217 | - !*** ../assets/dev/js/modules/imports/args-object.js ***! | |
| 218 | - \*******************************************************/ | |
| 219 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 172 | +var _Reflect$construct = __webpack_require__(107); | |
| 220 | 173 | |
| 221 | -"use strict"; | |
| 174 | +var getPrototypeOf = __webpack_require__(16); | |
| 222 | 175 | |
| 176 | +var isNativeReflectConstruct = __webpack_require__(148); | |
| 223 | 177 | |
| 224 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 225 | -Object.defineProperty(exports, "__esModule", ({ | |
| 226 | - value: true | |
| 227 | -})); | |
| 228 | -exports["default"] = void 0; | |
| 229 | -var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); | |
| 230 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 231 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 232 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 233 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 234 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 235 | -var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); | |
| 236 | -var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js")); | |
| 237 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 238 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 239 | -var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) { | |
| 240 | - /** | |
| 241 | - * Function constructor(). | |
| 242 | - * | |
| 243 | - * Create ArgsObject. | |
| 244 | - * | |
| 245 | - * @param {{}} args | |
| 246 | - */ | |
| 247 | - function ArgsObject(args) { | |
| 248 | - var _this; | |
| 249 | - (0, _classCallCheck2.default)(this, ArgsObject); | |
| 250 | - _this = _callSuper(this, ArgsObject); | |
| 251 | - _this.args = args; | |
| 252 | - return _this; | |
| 253 | - } | |
| 178 | +var possibleConstructorReturn = __webpack_require__(170); | |
| 254 | 179 | |
| 255 | - /** | |
| 256 | - * Function requireArgument(). | |
| 257 | - * | |
| 258 | - * Validate property in args. | |
| 259 | - * | |
| 260 | - * @param {string} property | |
| 261 | - * @param {{}} args | |
| 262 | - * | |
| 263 | - * @throws {Error} | |
| 264 | - */ | |
| 265 | - (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 266 | - return (0, _createClass2.default)(ArgsObject, [{ | |
| 267 | - key: "requireArgument", | |
| 268 | - value: function requireArgument(property) { | |
| 269 | - var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; | |
| 270 | - if (!Object.prototype.hasOwnProperty.call(args, property)) { | |
| 271 | - throw Error("".concat(property, " is required.")); | |
| 272 | - } | |
| 273 | - } | |
| 180 | +function _createSuper(Derived) { | |
| 181 | + var hasNativeReflectConstruct = isNativeReflectConstruct(); | |
| 182 | + return function _createSuperInternal() { | |
| 183 | + var Super = getPrototypeOf(Derived), | |
| 184 | + result; | |
| 274 | 185 | |
| 275 | - /** | |
| 276 | - * Function requireArgumentType(). | |
| 277 | - * | |
| 278 | - * Validate property in args using `type === typeof(args.whatever)`. | |
| 279 | - * | |
| 280 | - * @param {string} property | |
| 281 | - * @param {string} type | |
| 282 | - * @param {{}} args | |
| 283 | - * | |
| 284 | - * @throws {Error} | |
| 285 | - */ | |
| 286 | - }, { | |
| 287 | - key: "requireArgumentType", | |
| 288 | - value: function requireArgumentType(property, type) { | |
| 289 | - var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 290 | - this.requireArgument(property, args); | |
| 291 | - if ((0, _typeof2.default)(args[property]) !== type) { | |
| 292 | - throw Error("".concat(property, " invalid type: ").concat(type, ".")); | |
| 293 | - } | |
| 186 | + if (hasNativeReflectConstruct) { | |
| 187 | + var NewTarget = getPrototypeOf(this).constructor; | |
| 188 | + result = _Reflect$construct(Super, arguments, NewTarget); | |
| 189 | + } else { | |
| 190 | + result = Super.apply(this, arguments); | |
| 294 | 191 | } |
| 295 | 192 | |
| 296 | - /** | |
| 297 | - * Function requireArgumentInstance(). | |
| 298 | - * | |
| 299 | - * Validate property in args using `args.whatever instanceof instance`. | |
| 300 | - * | |
| 301 | - * @param {string} property | |
| 302 | - * @param {*} instance | |
| 303 | - * @param {{}} args | |
| 304 | - * | |
| 305 | - * @throws {Error} | |
| 306 | - */ | |
| 307 | - }, { | |
| 308 | - key: "requireArgumentInstance", | |
| 309 | - value: function requireArgumentInstance(property, instance) { | |
| 310 | - var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 311 | - this.requireArgument(property, args); | |
| 312 | - if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) { | |
| 313 | - throw Error("".concat(property, " invalid instance.")); | |
| 314 | - } | |
| 315 | - } | |
| 193 | + return possibleConstructorReturn(this, result); | |
| 194 | + }; | |
| 195 | +} | |
| 316 | 196 | |
| 317 | - /** | |
| 318 | - * Function requireArgumentConstructor(). | |
| 319 | - * | |
| 320 | - * Validate property in args using `type === args.whatever.constructor`. | |
| 321 | - * | |
| 322 | - * @param {string} property | |
| 323 | - * @param {*} type | |
| 324 | - * @param {{}} args | |
| 325 | - * | |
| 326 | - * @throws {Error} | |
| 327 | - */ | |
| 328 | - }, { | |
| 329 | - key: "requireArgumentConstructor", | |
| 330 | - value: function requireArgumentConstructor(property, type) { | |
| 331 | - var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 332 | - this.requireArgument(property, args); | |
| 197 | +module.exports = _createSuper; | |
| 333 | 198 | |
| 334 | - // Note: Converting the constructor to string in order to avoid equation issues | |
| 335 | - // due to different memory addresses between iframes (window.Object !== window.top.Object). | |
| 336 | - if (args[property].constructor.toString() !== type.prototype.constructor.toString()) { | |
| 337 | - throw Error("".concat(property, " invalid constructor type.")); | |
| 338 | - } | |
| 339 | - } | |
| 340 | - }], [{ | |
| 341 | - key: "getInstanceType", | |
| 342 | - value: function getInstanceType() { | |
| 343 | - return 'ArgsObject'; | |
| 344 | - } | |
| 345 | - }]); | |
| 346 | -}(_instanceType.default); | |
| 347 | - | |
| 348 | 199 | /***/ }), |
| 200 | +/* 6 */ | |
| 201 | +/***/ (function(module, exports) { | |
| 349 | 202 | |
| 350 | -/***/ "../assets/dev/js/modules/imports/force-method-implementation.js": | |
| 351 | -/*!***********************************************************************!*\ | |
| 352 | - !*** ../assets/dev/js/modules/imports/force-method-implementation.js ***! | |
| 353 | - \***********************************************************************/ | |
| 354 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 203 | +var core = module.exports = { version: '2.6.11' }; | |
| 204 | +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | |
| 355 | 205 | |
| 356 | -"use strict"; | |
| 357 | 206 | |
| 207 | +/***/ }), | |
| 208 | +/* 7 */ | |
| 209 | +/***/ (function(module, exports, __webpack_require__) { | |
| 358 | 210 | |
| 359 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 360 | -Object.defineProperty(exports, "__esModule", ({ | |
| 361 | - value: true | |
| 362 | -})); | |
| 363 | -exports["default"] = exports.ForceMethodImplementation = void 0; | |
| 364 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 365 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 366 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 367 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 368 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 369 | -var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); | |
| 370 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 371 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 372 | -// TODO: Wrong location used as `elementorModules.ForceMethodImplementation(); should be` `elementorUtils.forceMethodImplementation()`; | |
| 373 | -var ForceMethodImplementation = exports.ForceMethodImplementation = /*#__PURE__*/function (_Error) { | |
| 374 | - function ForceMethodImplementation() { | |
| 375 | - var _this; | |
| 376 | - var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 377 | - var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 378 | - (0, _classCallCheck2.default)(this, ForceMethodImplementation); | |
| 379 | - _this = _callSuper(this, ForceMethodImplementation, ["".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality."), args]); | |
| 211 | +var global = __webpack_require__(8); | |
| 212 | +var core = __webpack_require__(6); | |
| 213 | +var ctx = __webpack_require__(31); | |
| 214 | +var hide = __webpack_require__(24); | |
| 215 | +var has = __webpack_require__(19); | |
| 216 | +var PROTOTYPE = 'prototype'; | |
| 380 | 217 | |
| 381 | - // Allow to pass custom properties to the error. | |
| 382 | - if (Object.keys(args).length) { | |
| 383 | - // eslint-disable-next-line no-console | |
| 384 | - console.error(args); | |
| 218 | +var $export = function (type, name, source) { | |
| 219 | + var IS_FORCED = type & $export.F; | |
| 220 | + var IS_GLOBAL = type & $export.G; | |
| 221 | + var IS_STATIC = type & $export.S; | |
| 222 | + var IS_PROTO = type & $export.P; | |
| 223 | + var IS_BIND = type & $export.B; | |
| 224 | + var IS_WRAP = type & $export.W; | |
| 225 | + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); | |
| 226 | + var expProto = exports[PROTOTYPE]; | |
| 227 | + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; | |
| 228 | + var key, own, out; | |
| 229 | + if (IS_GLOBAL) source = name; | |
| 230 | + for (key in source) { | |
| 231 | + // contains in native | |
| 232 | + own = !IS_FORCED && target && target[key] !== undefined; | |
| 233 | + if (own && has(exports, key)) continue; | |
| 234 | + // export native or passed | |
| 235 | + out = own ? target[key] : source[key]; | |
| 236 | + // prevent global pollution for namespaces | |
| 237 | + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] | |
| 238 | + // bind timers to global for call from export context | |
| 239 | + : IS_BIND && own ? ctx(out, global) | |
| 240 | + // wrap global constructors for prevent change them in library | |
| 241 | + : IS_WRAP && target[key] == out ? (function (C) { | |
| 242 | + var F = function (a, b, c) { | |
| 243 | + if (this instanceof C) { | |
| 244 | + switch (arguments.length) { | |
| 245 | + case 0: return new C(); | |
| 246 | + case 1: return new C(a); | |
| 247 | + case 2: return new C(a, b); | |
| 248 | + } return new C(a, b, c); | |
| 249 | + } return C.apply(this, arguments); | |
| 250 | + }; | |
| 251 | + F[PROTOTYPE] = C[PROTOTYPE]; | |
| 252 | + return F; | |
| 253 | + // make static versions for prototype methods | |
| 254 | + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; | |
| 255 | + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% | |
| 256 | + if (IS_PROTO) { | |
| 257 | + (exports.virtual || (exports.virtual = {}))[key] = out; | |
| 258 | + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% | |
| 259 | + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); | |
| 385 | 260 | } |
| 386 | - Error.captureStackTrace(_this, ForceMethodImplementation); | |
| 387 | - return _this; | |
| 388 | 261 | } |
| 389 | - (0, _inherits2.default)(ForceMethodImplementation, _Error); | |
| 390 | - return (0, _createClass2.default)(ForceMethodImplementation); | |
| 391 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 392 | -var _default = exports["default"] = function _default(args) { | |
| 393 | - var stack = Error().stack, | |
| 394 | - caller = stack.split('\n')[2].trim(), | |
| 395 | - callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1], | |
| 396 | - info = {}; | |
| 397 | - info.functionName = callerName; | |
| 398 | - info.fullName = callerName; | |
| 399 | - if (info.functionName.includes('.')) { | |
| 400 | - var parts = info.functionName.split('.'); | |
| 401 | - info.className = parts[0]; | |
| 402 | - info.functionName = parts[1]; | |
| 403 | - } else { | |
| 404 | - info.isStatic = true; | |
| 405 | - } | |
| 406 | - throw new ForceMethodImplementation(info, args); | |
| 407 | 262 | }; |
| 263 | +// type bitmap | |
| 264 | +$export.F = 1; // forced | |
| 265 | +$export.G = 2; // global | |
| 266 | +$export.S = 4; // static | |
| 267 | +$export.P = 8; // proto | |
| 268 | +$export.B = 16; // bind | |
| 269 | +$export.W = 32; // wrap | |
| 270 | +$export.U = 64; // safe | |
| 271 | +$export.R = 128; // real proto method for `library` | |
| 272 | +module.exports = $export; | |
| 408 | 273 | |
| 274 | + | |
| 409 | 275 | /***/ }), |
| 276 | +/* 8 */ | |
| 277 | +/***/ (function(module, exports) { | |
| 410 | 278 | |
| 411 | -/***/ "../assets/dev/js/modules/imports/instance-type.js": | |
| 412 | -/*!*********************************************************!*\ | |
| 413 | - !*** ../assets/dev/js/modules/imports/instance-type.js ***! | |
| 414 | - \*********************************************************/ | |
| 415 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 279 | +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | |
| 280 | +var global = module.exports = typeof window != 'undefined' && window.Math == Math | |
| 281 | + ? window : typeof self != 'undefined' && self.Math == Math ? self | |
| 282 | + // eslint-disable-next-line no-new-func | |
| 283 | + : Function('return this')(); | |
| 284 | +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | |
| 416 | 285 | |
| 417 | -"use strict"; | |
| 418 | 286 | |
| 287 | +/***/ }), | |
| 288 | +/* 9 */ | |
| 289 | +/***/ (function(module, exports) { | |
| 419 | 290 | |
| 420 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 421 | -Object.defineProperty(exports, "__esModule", ({ | |
| 422 | - value: true | |
| 423 | -})); | |
| 424 | -exports["default"] = void 0; | |
| 425 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 426 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 427 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 428 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 429 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 430 | -var InstanceType = exports["default"] = /*#__PURE__*/function () { | |
| 431 | - function InstanceType() { | |
| 432 | - var _this = this; | |
| 433 | - (0, _classCallCheck2.default)(this, InstanceType); | |
| 434 | - // Since anonymous classes sometimes do not get validated by babel, do it manually. | |
| 435 | - var target = this instanceof InstanceType ? this.constructor : void 0; | |
| 436 | - var prototypes = []; | |
| 437 | - while (target.__proto__ && target.__proto__.name) { | |
| 438 | - prototypes.push(target.__proto__); | |
| 439 | - target = target.__proto__; | |
| 440 | - } | |
| 441 | - prototypes.reverse().forEach(function (proto) { | |
| 442 | - return _this instanceof proto; | |
| 443 | - }); | |
| 444 | - } | |
| 445 | - return (0, _createClass2.default)(InstanceType, null, [{ | |
| 446 | - key: Symbol.hasInstance, | |
| 447 | - value: function value(target) { | |
| 448 | - /** | |
| 449 | - * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class | |
| 450 | - * its give's opportunity to mange capabilities of instanceOf operator. | |
| 451 | - * saving current class each time will give option later to handle instanceOf manually. | |
| 452 | - */ | |
| 453 | - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]); | |
| 291 | +module.exports = function (it) { | |
| 292 | + return typeof it === 'object' ? it !== null : typeof it === 'function'; | |
| 293 | +}; | |
| 454 | 294 | |
| 455 | - // Act normal when validate a class, which does not have instance type. | |
| 456 | - if (target && !target.constructor.getInstanceType) { | |
| 457 | - return result; | |
| 458 | - } | |
| 459 | - if (target) { | |
| 460 | - if (!target.instanceTypes) { | |
| 461 | - target.instanceTypes = []; | |
| 462 | - } | |
| 463 | - if (!result) { | |
| 464 | - if (this.getInstanceType() === target.constructor.getInstanceType()) { | |
| 465 | - result = true; | |
| 466 | - } | |
| 467 | - } | |
| 468 | - if (result) { | |
| 469 | - var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType(); | |
| 470 | - if (-1 === target.instanceTypes.indexOf(name)) { | |
| 471 | - target.instanceTypes.push(name); | |
| 472 | - } | |
| 473 | - } | |
| 474 | - } | |
| 475 | - if (!result && target) { | |
| 476 | - // Check if the given 'target', is instance of known types. | |
| 477 | - result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType()); | |
| 478 | - } | |
| 479 | - return result; | |
| 480 | - } | |
| 481 | - }, { | |
| 482 | - key: "getInstanceType", | |
| 483 | - value: function getInstanceType() { | |
| 484 | - elementorModules.ForceMethodImplementation(); | |
| 485 | - } | |
| 486 | - }]); | |
| 487 | -}(); | |
| 488 | 295 | |
| 489 | 296 | /***/ }), |
| 297 | +/* 10 */ | |
| 298 | +/***/ (function(module, exports, __webpack_require__) { | |
| 490 | 299 | |
| 491 | -/***/ "../assets/dev/js/modules/imports/module.js": | |
| 492 | -/*!**************************************************!*\ | |
| 493 | - !*** ../assets/dev/js/modules/imports/module.js ***! | |
| 494 | - \**************************************************/ | |
| 495 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 300 | +var store = __webpack_require__(76)('wks'); | |
| 301 | +var uid = __webpack_require__(59); | |
| 302 | +var Symbol = __webpack_require__(8).Symbol; | |
| 303 | +var USE_SYMBOL = typeof Symbol == 'function'; | |
| 496 | 304 | |
| 497 | -"use strict"; | |
| 305 | +var $exports = module.exports = function (name) { | |
| 306 | + return store[name] || (store[name] = | |
| 307 | + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | |
| 308 | +}; | |
| 498 | 309 | |
| 310 | +$exports.store = store; | |
| 499 | 311 | |
| 500 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 501 | -var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); | |
| 502 | -var Module = function Module() { | |
| 503 | - var $ = jQuery, | |
| 504 | - instanceParams = arguments, | |
| 505 | - self = this, | |
| 506 | - events = {}; | |
| 507 | - var settings; | |
| 508 | - var ensureClosureMethods = function ensureClosureMethods() { | |
| 509 | - $.each(self, function (methodName) { | |
| 510 | - var oldMethod = self[methodName]; | |
| 511 | - if ('function' !== typeof oldMethod) { | |
| 512 | - return; | |
| 513 | - } | |
| 514 | - self[methodName] = function () { | |
| 515 | - return oldMethod.apply(self, arguments); | |
| 516 | - }; | |
| 517 | - }); | |
| 518 | - }; | |
| 519 | - var initSettings = function initSettings() { | |
| 520 | - settings = self.getDefaultSettings(); | |
| 521 | - var instanceSettings = instanceParams[0]; | |
| 522 | - if (instanceSettings) { | |
| 523 | - $.extend(true, settings, instanceSettings); | |
| 524 | - } | |
| 525 | - }; | |
| 526 | - var init = function init() { | |
| 527 | - self.__construct.apply(self, instanceParams); | |
| 528 | - ensureClosureMethods(); | |
| 529 | - initSettings(); | |
| 530 | - self.trigger('init'); | |
| 531 | - }; | |
| 532 | - this.getItems = function (items, itemKey) { | |
| 533 | - if (itemKey) { | |
| 534 | - var keyStack = itemKey.split('.'), | |
| 535 | - currentKey = keyStack.splice(0, 1); | |
| 536 | - if (!keyStack.length) { | |
| 537 | - return items[currentKey]; | |
| 538 | - } | |
| 539 | - if (!items[currentKey]) { | |
| 540 | - return; | |
| 541 | - } | |
| 542 | - return this.getItems(items[currentKey], keyStack.join('.')); | |
| 543 | - } | |
| 544 | - return items; | |
| 545 | - }; | |
| 546 | - this.getSettings = function (setting) { | |
| 547 | - return this.getItems(settings, setting); | |
| 548 | - }; | |
| 549 | - this.setSettings = function (settingKey, value, settingsContainer) { | |
| 550 | - if (!settingsContainer) { | |
| 551 | - settingsContainer = settings; | |
| 552 | - } | |
| 553 | - if ('object' === (0, _typeof2.default)(settingKey)) { | |
| 554 | - $.extend(settingsContainer, settingKey); | |
| 555 | - return self; | |
| 556 | - } | |
| 557 | - var keyStack = settingKey.split('.'), | |
| 558 | - currentKey = keyStack.splice(0, 1); | |
| 559 | - if (!keyStack.length) { | |
| 560 | - settingsContainer[currentKey] = value; | |
| 561 | - return self; | |
| 562 | - } | |
| 563 | - if (!settingsContainer[currentKey]) { | |
| 564 | - settingsContainer[currentKey] = {}; | |
| 565 | - } | |
| 566 | - return self.setSettings(keyStack.join('.'), value, settingsContainer[currentKey]); | |
| 567 | - }; | |
| 568 | - this.getErrorMessage = function (type, functionName) { | |
| 569 | - var message; | |
| 570 | - switch (type) { | |
| 571 | - case 'forceMethodImplementation': | |
| 572 | - message = "The method '".concat(functionName, "' must to be implemented in the inheritor child."); | |
| 573 | - break; | |
| 574 | - default: | |
| 575 | - message = 'An error occurs'; | |
| 576 | - } | |
| 577 | - return message; | |
| 578 | - }; | |
| 579 | 312 | |
| 580 | - // TODO: This function should be deleted ?. | |
| 581 | - this.forceMethodImplementation = function (functionName) { | |
| 582 | - throw new Error(this.getErrorMessage('forceMethodImplementation', functionName)); | |
| 583 | - }; | |
| 584 | - this.on = function (eventName, callback) { | |
| 585 | - if ('object' === (0, _typeof2.default)(eventName)) { | |
| 586 | - $.each(eventName, function (singleEventName) { | |
| 587 | - self.on(singleEventName, this); | |
| 588 | - }); | |
| 589 | - return self; | |
| 590 | - } | |
| 591 | - var eventNames = eventName.split(' '); | |
| 592 | - eventNames.forEach(function (singleEventName) { | |
| 593 | - if (!events[singleEventName]) { | |
| 594 | - events[singleEventName] = []; | |
| 595 | - } | |
| 596 | - events[singleEventName].push(callback); | |
| 597 | - }); | |
| 598 | - return self; | |
| 599 | - }; | |
| 600 | - this.off = function (eventName, callback) { | |
| 601 | - if (!events[eventName]) { | |
| 602 | - return self; | |
| 603 | - } | |
| 604 | - if (!callback) { | |
| 605 | - delete events[eventName]; | |
| 606 | - return self; | |
| 607 | - } | |
| 608 | - var callbackIndex = events[eventName].indexOf(callback); | |
| 609 | - if (-1 !== callbackIndex) { | |
| 610 | - delete events[eventName][callbackIndex]; | |
| 313 | +/***/ }), | |
| 314 | +/* 11 */, | |
| 315 | +/* 12 */ | |
| 316 | +/***/ (function(module, exports, __webpack_require__) { | |
| 611 | 317 | |
| 612 | - // Reset array index (for next off on same event). | |
| 613 | - events[eventName] = events[eventName].filter(function (val) { | |
| 614 | - return val; | |
| 615 | - }); | |
| 616 | - } | |
| 617 | - return self; | |
| 618 | - }; | |
| 619 | - this.trigger = function (eventName) { | |
| 620 | - var methodName = 'on' + eventName[0].toUpperCase() + eventName.slice(1), | |
| 621 | - params = Array.prototype.slice.call(arguments, 1); | |
| 622 | - if (self[methodName]) { | |
| 623 | - self[methodName].apply(self, params); | |
| 624 | - } | |
| 625 | - var callbacks = events[eventName]; | |
| 626 | - if (!callbacks) { | |
| 627 | - return self; | |
| 628 | - } | |
| 629 | - $.each(callbacks, function (index, callback) { | |
| 630 | - callback.apply(self, params); | |
| 631 | - }); | |
| 632 | - return self; | |
| 633 | - }; | |
| 634 | - init(); | |
| 318 | +var store = __webpack_require__(66)('wks'); | |
| 319 | +var uid = __webpack_require__(67); | |
| 320 | +var Symbol = __webpack_require__(17).Symbol; | |
| 321 | +var USE_SYMBOL = typeof Symbol == 'function'; | |
| 322 | + | |
| 323 | +var $exports = module.exports = function (name) { | |
| 324 | + return store[name] || (store[name] = | |
| 325 | + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | |
| 635 | 326 | }; |
| 636 | -Module.prototype.__construct = function () {}; | |
| 637 | -Module.prototype.getDefaultSettings = function () { | |
| 638 | - return {}; | |
| 639 | -}; | |
| 640 | -Module.prototype.getConstructorID = function () { | |
| 641 | - return this.constructor.name; | |
| 642 | -}; | |
| 643 | -Module.extend = function (properties) { | |
| 644 | - var $ = jQuery, | |
| 645 | - parent = this; | |
| 646 | - var child = function child() { | |
| 647 | - return parent.apply(this, arguments); | |
| 648 | - }; | |
| 649 | - $.extend(child, parent); | |
| 650 | - child.prototype = Object.create($.extend({}, parent.prototype, properties)); | |
| 651 | - child.prototype.constructor = child; | |
| 652 | - child.__super__ = parent.prototype; | |
| 653 | - return child; | |
| 654 | -}; | |
| 655 | -module.exports = Module; | |
| 656 | 327 | |
| 657 | -/***/ }), | |
| 328 | +$exports.store = store; | |
| 658 | 329 | |
| 659 | -/***/ "../assets/dev/js/modules/imports/utils/masonry.js": | |
| 660 | -/*!*********************************************************!*\ | |
| 661 | - !*** ../assets/dev/js/modules/imports/utils/masonry.js ***! | |
| 662 | - \*********************************************************/ | |
| 663 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 664 | 330 | |
| 665 | -"use strict"; | |
| 331 | +/***/ }), | |
| 332 | +/* 13 */ | |
| 333 | +/***/ (function(module, exports, __webpack_require__) { | |
| 666 | 334 | |
| 335 | +var isObject = __webpack_require__(9); | |
| 336 | +module.exports = function (it) { | |
| 337 | + if (!isObject(it)) throw TypeError(it + ' is not an object!'); | |
| 338 | + return it; | |
| 339 | +}; | |
| 667 | 340 | |
| 668 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 669 | -Object.defineProperty(exports, "__esModule", ({ | |
| 670 | - value: true | |
| 671 | -})); | |
| 672 | -exports["default"] = void 0; | |
| 673 | -var _viewModule = _interopRequireDefault(__webpack_require__(/*! ../view-module */ "../assets/dev/js/modules/imports/view-module.js")); | |
| 674 | -var _default = exports["default"] = _viewModule.default.extend({ | |
| 675 | - getDefaultSettings: function getDefaultSettings() { | |
| 676 | - return { | |
| 677 | - container: null, | |
| 678 | - items: null, | |
| 679 | - columnsCount: 3, | |
| 680 | - verticalSpaceBetween: 30 | |
| 681 | - }; | |
| 682 | - }, | |
| 683 | - getDefaultElements: function getDefaultElements() { | |
| 684 | - return { | |
| 685 | - $container: jQuery(this.getSettings('container')), | |
| 686 | - $items: jQuery(this.getSettings('items')) | |
| 687 | - }; | |
| 688 | - }, | |
| 689 | - run: function run() { | |
| 690 | - var heights = [], | |
| 691 | - distanceFromTop = this.elements.$container.position().top, | |
| 692 | - settings = this.getSettings(), | |
| 693 | - columnsCount = settings.columnsCount; | |
| 694 | - distanceFromTop += parseInt(this.elements.$container.css('margin-top'), 10); | |
| 695 | - this.elements.$items.each(function (index) { | |
| 696 | - var row = Math.floor(index / columnsCount), | |
| 697 | - $item = jQuery(this), | |
| 698 | - itemHeight = $item[0].getBoundingClientRect().height + settings.verticalSpaceBetween; | |
| 699 | - if (row) { | |
| 700 | - var itemPosition = $item.position(), | |
| 701 | - indexAtRow = index % columnsCount, | |
| 702 | - pullHeight = itemPosition.top - distanceFromTop - heights[indexAtRow]; | |
| 703 | - pullHeight -= parseInt($item.css('margin-top'), 10); | |
| 704 | - pullHeight *= -1; | |
| 705 | - $item.css('margin-top', pullHeight + 'px'); | |
| 706 | - heights[indexAtRow] += itemHeight; | |
| 707 | - } else { | |
| 708 | - heights.push(itemHeight); | |
| 709 | - } | |
| 710 | - }); | |
| 711 | - } | |
| 712 | -}); | |
| 713 | 341 | |
| 714 | 342 | /***/ }), |
| 343 | +/* 14 */ | |
| 344 | +/***/ (function(module, exports, __webpack_require__) { | |
| 715 | 345 | |
| 716 | -/***/ "../assets/dev/js/modules/imports/utils/scroll.js": | |
| 717 | -/*!********************************************************!*\ | |
| 718 | - !*** ../assets/dev/js/modules/imports/utils/scroll.js ***! | |
| 719 | - \********************************************************/ | |
| 720 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 346 | +// Thank's IE8 for his funny defineProperty | |
| 347 | +module.exports = !__webpack_require__(22)(function () { | |
| 348 | + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | |
| 349 | +}); | |
| 721 | 350 | |
| 722 | -"use strict"; | |
| 723 | 351 | |
| 352 | +/***/ }), | |
| 353 | +/* 15 */ | |
| 354 | +/***/ (function(module, exports, __webpack_require__) { | |
| 724 | 355 | |
| 725 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 726 | -Object.defineProperty(exports, "__esModule", ({ | |
| 727 | - value: true | |
| 728 | -})); | |
| 729 | -exports["default"] = void 0; | |
| 730 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 731 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 732 | -// Moved from elementor pro: 'assets/dev/js/frontend/utils' | |
| 733 | -var Scroll = exports["default"] = /*#__PURE__*/function () { | |
| 734 | - function Scroll() { | |
| 735 | - (0, _classCallCheck2.default)(this, Scroll); | |
| 736 | - } | |
| 737 | - return (0, _createClass2.default)(Scroll, null, [{ | |
| 738 | - key: "scrollObserver", | |
| 739 | - value: | |
| 740 | - /** | |
| 741 | - * @param {Object} obj | |
| 742 | - * @param {number} obj.sensitivity - Value between 0-100 - Will determine the intersection trigger points on the element | |
| 743 | - * @param {Function} obj.callback - Will be triggered on each intersection point between the element and the viewport top/bottom | |
| 744 | - * @param {string} obj.offset - Offset between the element intersection points and the viewport, written like in CSS: '-50% 0 -25%' | |
| 745 | - * @param {HTMLElement} obj.root - The element that the events will be relative to, if 'null' will be relative to the viewport | |
| 746 | - */ | |
| 747 | - function scrollObserver(obj) { | |
| 748 | - var lastScrollY = 0; | |
| 356 | +var anObject = __webpack_require__(13); | |
| 357 | +var IE8_DOM_DEFINE = __webpack_require__(114); | |
| 358 | +var toPrimitive = __webpack_require__(74); | |
| 359 | +var dP = Object.defineProperty; | |
| 749 | 360 | |
| 750 | - // Generating thresholds points along the animation height | |
| 751 | - // More thresholds points = more trigger points of the callback | |
| 752 | - var buildThresholds = function buildThresholds() { | |
| 753 | - var sensitivityPercentage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; | |
| 754 | - var thresholds = []; | |
| 755 | - if (sensitivityPercentage > 0 && sensitivityPercentage <= 100) { | |
| 756 | - var increment = 100 / sensitivityPercentage; | |
| 757 | - for (var i = 0; i <= 100; i += increment) { | |
| 758 | - thresholds.push(i / 100); | |
| 759 | - } | |
| 760 | - } else { | |
| 761 | - thresholds.push(0); | |
| 762 | - } | |
| 763 | - return thresholds; | |
| 764 | - }; | |
| 765 | - var options = { | |
| 766 | - root: obj.root || null, | |
| 767 | - rootMargin: obj.offset || '0px', | |
| 768 | - threshold: buildThresholds(obj.sensitivity) | |
| 769 | - }; | |
| 770 | - function handleIntersect(entries) { | |
| 771 | - var currentScrollY = entries[0].boundingClientRect.y, | |
| 772 | - isInViewport = entries[0].isIntersecting, | |
| 773 | - intersectionScrollDirection = currentScrollY < lastScrollY ? 'down' : 'up', | |
| 774 | - scrollPercentage = Math.abs(parseFloat((entries[0].intersectionRatio * 100).toFixed(2))); | |
| 775 | - obj.callback({ | |
| 776 | - sensitivity: obj.sensitivity, | |
| 777 | - isInViewport: isInViewport, | |
| 778 | - scrollPercentage: scrollPercentage, | |
| 779 | - intersectionScrollDirection: intersectionScrollDirection | |
| 780 | - }); | |
| 781 | - lastScrollY = currentScrollY; | |
| 782 | - } | |
| 783 | - return new IntersectionObserver(handleIntersect, options); | |
| 784 | - } | |
| 361 | +exports.f = __webpack_require__(14) ? Object.defineProperty : function defineProperty(O, P, Attributes) { | |
| 362 | + anObject(O); | |
| 363 | + P = toPrimitive(P, true); | |
| 364 | + anObject(Attributes); | |
| 365 | + if (IE8_DOM_DEFINE) try { | |
| 366 | + return dP(O, P, Attributes); | |
| 367 | + } catch (e) { /* empty */ } | |
| 368 | + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | |
| 369 | + if ('value' in Attributes) O[P] = Attributes.value; | |
| 370 | + return O; | |
| 371 | +}; | |
| 785 | 372 | |
| 786 | - /** | |
| 787 | - * @param {jQuery.Element} $element | |
| 788 | - * @param {Object} offsetObj | |
| 789 | - * @param {number} offsetObj.start - Offset start value in percentages | |
| 790 | - * @param {number} offsetObj.end - Offset end value in percentages | |
| 791 | - */ | |
| 792 | - }, { | |
| 793 | - key: "getElementViewportPercentage", | |
| 794 | - value: function getElementViewportPercentage($element) { | |
| 795 | - var offsetObj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 796 | - var elementOffset = $element[0].getBoundingClientRect(), | |
| 797 | - offsetStart = offsetObj.start || 0, | |
| 798 | - offsetEnd = offsetObj.end || 0, | |
| 799 | - windowStartOffset = window.innerHeight * offsetStart / 100, | |
| 800 | - windowEndOffset = window.innerHeight * offsetEnd / 100, | |
| 801 | - y1 = elementOffset.top - window.innerHeight, | |
| 802 | - y2 = elementOffset.top + windowStartOffset + $element.height(), | |
| 803 | - startPosition = 0 - y1 + windowStartOffset, | |
| 804 | - endPosition = y2 - y1 + windowEndOffset, | |
| 805 | - percent = Math.max(0, Math.min(startPosition / endPosition, 1)); | |
| 806 | - return parseFloat((percent * 100).toFixed(2)); | |
| 807 | - } | |
| 808 | 373 | |
| 809 | - /** | |
| 810 | - * @param {Object} offsetObj | |
| 811 | - * @param {number} offsetObj.start - Offset start value in percentages | |
| 812 | - * @param {number} offsetObj.end - Offset end value in percentages | |
| 813 | - * @param {number} limitPageHeight - Will limit the page height calculation | |
| 814 | - */ | |
| 815 | - }, { | |
| 816 | - key: "getPageScrollPercentage", | |
| 817 | - value: function getPageScrollPercentage() { | |
| 818 | - var offsetObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 819 | - var limitPageHeight = arguments.length > 1 ? arguments[1] : undefined; | |
| 820 | - var offsetStart = offsetObj.start || 0, | |
| 821 | - offsetEnd = offsetObj.end || 0, | |
| 822 | - initialPageHeight = limitPageHeight || document.documentElement.scrollHeight - document.documentElement.clientHeight, | |
| 823 | - heightOffset = initialPageHeight * offsetStart / 100, | |
| 824 | - pageRange = initialPageHeight + heightOffset + initialPageHeight * offsetEnd / 100, | |
| 825 | - scrollPos = document.documentElement.scrollTop + document.body.scrollTop + heightOffset; | |
| 826 | - return scrollPos / pageRange * 100; | |
| 827 | - } | |
| 828 | - }]); | |
| 829 | -}(); | |
| 830 | - | |
| 831 | 374 | /***/ }), |
| 375 | +/* 16 */ | |
| 376 | +/***/ (function(module, exports, __webpack_require__) { | |
| 832 | 377 | |
| 833 | -/***/ "../assets/dev/js/modules/imports/view-module.js": | |
| 834 | -/*!*******************************************************!*\ | |
| 835 | - !*** ../assets/dev/js/modules/imports/view-module.js ***! | |
| 836 | - \*******************************************************/ | |
| 837 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 378 | +var _Object$getPrototypeOf = __webpack_require__(157); | |
| 838 | 379 | |
| 839 | -"use strict"; | |
| 380 | +var _Object$setPrototypeOf = __webpack_require__(115); | |
| 840 | 381 | |
| 382 | +function _getPrototypeOf(o) { | |
| 383 | + module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) { | |
| 384 | + return o.__proto__ || _Object$getPrototypeOf(o); | |
| 385 | + }; | |
| 386 | + return _getPrototypeOf(o); | |
| 387 | +} | |
| 841 | 388 | |
| 842 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 843 | -Object.defineProperty(exports, "__esModule", ({ | |
| 844 | - value: true | |
| 845 | -})); | |
| 846 | -exports["default"] = void 0; | |
| 847 | -var _module = _interopRequireDefault(__webpack_require__(/*! ./module */ "../assets/dev/js/modules/imports/module.js")); | |
| 848 | -var _default = exports["default"] = _module.default.extend({ | |
| 849 | - elements: null, | |
| 850 | - getDefaultElements: function getDefaultElements() { | |
| 851 | - return {}; | |
| 852 | - }, | |
| 853 | - bindEvents: function bindEvents() {}, | |
| 854 | - onInit: function onInit() { | |
| 855 | - this.initElements(); | |
| 856 | - this.bindEvents(); | |
| 857 | - }, | |
| 858 | - initElements: function initElements() { | |
| 859 | - this.elements = this.getDefaultElements(); | |
| 860 | - } | |
| 861 | -}); | |
| 389 | +module.exports = _getPrototypeOf; | |
| 862 | 390 | |
| 863 | 391 | /***/ }), |
| 392 | +/* 17 */ | |
| 393 | +/***/ (function(module, exports) { | |
| 864 | 394 | |
| 865 | -/***/ "../assets/dev/js/modules/modules.js": | |
| 866 | -/*!*******************************************!*\ | |
| 867 | - !*** ../assets/dev/js/modules/modules.js ***! | |
| 868 | - \*******************************************/ | |
| 869 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 395 | +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | |
| 396 | +var global = module.exports = typeof window != 'undefined' && window.Math == Math | |
| 397 | + ? window : typeof self != 'undefined' && self.Math == Math ? self | |
| 398 | + // eslint-disable-next-line no-new-func | |
| 399 | + : Function('return this')(); | |
| 400 | +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | |
| 870 | 401 | |
| 871 | -"use strict"; | |
| 872 | 402 | |
| 403 | +/***/ }), | |
| 404 | +/* 18 */ | |
| 405 | +/***/ (function(module, exports, __webpack_require__) { | |
| 873 | 406 | |
| 874 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 875 | -Object.defineProperty(exports, "__esModule", ({ | |
| 876 | - value: true | |
| 877 | -})); | |
| 878 | -exports["default"] = void 0; | |
| 879 | -var _module = _interopRequireDefault(__webpack_require__(/*! ./imports/module */ "../assets/dev/js/modules/imports/module.js")); | |
| 880 | -var _viewModule = _interopRequireDefault(__webpack_require__(/*! ./imports/view-module */ "../assets/dev/js/modules/imports/view-module.js")); | |
| 881 | -var _argsObject = _interopRequireDefault(__webpack_require__(/*! ./imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); | |
| 882 | -var _masonry = _interopRequireDefault(__webpack_require__(/*! ./imports/utils/masonry */ "../assets/dev/js/modules/imports/utils/masonry.js")); | |
| 883 | -var _scroll = _interopRequireDefault(__webpack_require__(/*! ./imports/utils/scroll */ "../assets/dev/js/modules/imports/utils/scroll.js")); | |
| 884 | -var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ./imports/force-method-implementation */ "../assets/dev/js/modules/imports/force-method-implementation.js")); | |
| 885 | -var _templateRegistryHelpers = __webpack_require__(/*! ../../../../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers */ "../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js"); | |
| 886 | -var _customizationDialogs = __webpack_require__(/*! ../../../../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs */ "../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js"); | |
| 887 | -var baseModules = { | |
| 888 | - Module: _module.default, | |
| 889 | - ViewModule: _viewModule.default, | |
| 890 | - ArgsObject: _argsObject.default, | |
| 891 | - ForceMethodImplementation: _forceMethodImplementation.default, | |
| 892 | - utils: { | |
| 893 | - Masonry: _masonry.default, | |
| 894 | - Scroll: _scroll.default | |
| 895 | - }, | |
| 896 | - importExport: { | |
| 897 | - createGetInitialState: _templateRegistryHelpers.createGetInitialState, | |
| 898 | - customizationDialogsRegistry: _customizationDialogs.customizationDialogsRegistry | |
| 899 | - } | |
| 407 | +var isObject = __webpack_require__(30); | |
| 408 | +module.exports = function (it) { | |
| 409 | + if (!isObject(it)) throw TypeError(it + ' is not an object!'); | |
| 410 | + return it; | |
| 900 | 411 | }; |
| 901 | -if (!window.elementorModules) { | |
| 902 | - window.elementorModules = baseModules; | |
| 903 | -} else { | |
| 904 | - Object.assign(window.elementorModules, baseModules); | |
| 905 | -} | |
| 906 | -var _default = exports["default"] = window.elementorModules; | |
| 907 | 412 | |
| 413 | + | |
| 908 | 414 | /***/ }), |
| 415 | +/* 19 */ | |
| 416 | +/***/ (function(module, exports) { | |
| 909 | 417 | |
| 910 | -/***/ "../core/common/assets/js/views/modal/header.js": | |
| 911 | -/*!******************************************************!*\ | |
| 912 | - !*** ../core/common/assets/js/views/modal/header.js ***! | |
| 913 | - \******************************************************/ | |
| 914 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 418 | +var hasOwnProperty = {}.hasOwnProperty; | |
| 419 | +module.exports = function (it, key) { | |
| 420 | + return hasOwnProperty.call(it, key); | |
| 421 | +}; | |
| 915 | 422 | |
| 916 | -"use strict"; | |
| 917 | 423 | |
| 424 | +/***/ }), | |
| 425 | +/* 20 */ | |
| 426 | +/***/ (function(module, exports, __webpack_require__) { | |
| 918 | 427 | |
| 919 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 920 | -Object.defineProperty(exports, "__esModule", ({ | |
| 921 | - value: true | |
| 922 | -})); | |
| 923 | -exports["default"] = void 0; | |
| 924 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 925 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 926 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 927 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 928 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 929 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 930 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 931 | -var _default = exports["default"] = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 932 | - function _default() { | |
| 933 | - (0, _classCallCheck2.default)(this, _default); | |
| 934 | - return _callSuper(this, _default, arguments); | |
| 935 | - } | |
| 936 | - (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 937 | - return (0, _createClass2.default)(_default, [{ | |
| 938 | - key: "tagName", | |
| 939 | - value: function tagName() { | |
| 940 | - return 'header'; | |
| 941 | - } | |
| 942 | - }, { | |
| 943 | - key: "className", | |
| 944 | - value: function className() { | |
| 945 | - return 'elementor-templates-modal__header'; | |
| 946 | - } | |
| 947 | - }, { | |
| 948 | - key: "getTemplate", | |
| 949 | - value: function getTemplate() { | |
| 950 | - return '#tmpl-elementor-templates-modal__header'; | |
| 951 | - } | |
| 952 | - }, { | |
| 953 | - key: "regions", | |
| 954 | - value: function regions() { | |
| 955 | - return { | |
| 956 | - logoArea: '.elementor-templates-modal__header__logo-area', | |
| 957 | - tools: '#elementor-template-library-header-tools', | |
| 958 | - menuArea: '.elementor-templates-modal__header__menu-area' | |
| 959 | - }; | |
| 960 | - } | |
| 961 | - }, { | |
| 962 | - key: "ui", | |
| 963 | - value: function ui() { | |
| 964 | - return { | |
| 965 | - closeModal: '.elementor-templates-modal__header__close' | |
| 966 | - }; | |
| 967 | - } | |
| 968 | - }, { | |
| 969 | - key: "events", | |
| 970 | - value: function events() { | |
| 971 | - return { | |
| 972 | - 'click @ui.closeModal': 'onCloseModalClick' | |
| 973 | - }; | |
| 974 | - } | |
| 975 | - }, { | |
| 976 | - key: "onRender", | |
| 977 | - value: function onRender() { | |
| 978 | - this.bindEscapeKey(); | |
| 979 | - } | |
| 980 | - }, { | |
| 981 | - key: "bindEscapeKey", | |
| 982 | - value: function bindEscapeKey() { | |
| 983 | - var _this = this; | |
| 984 | - this.onDocumentKeyDown = function (event) { | |
| 985 | - if ('Escape' === event.key) { | |
| 986 | - _this.onCloseModalClick(); | |
| 987 | - } | |
| 988 | - }; | |
| 989 | - document.addEventListener('keydown', this.onDocumentKeyDown); | |
| 990 | - } | |
| 991 | - }, { | |
| 992 | - key: "onDestroy", | |
| 993 | - value: function onDestroy() { | |
| 994 | - if (this.onDocumentKeyDown) { | |
| 995 | - document.removeEventListener('keydown', this.onDocumentKeyDown); | |
| 996 | - } | |
| 997 | - } | |
| 998 | - }, { | |
| 999 | - key: "templateHelpers", | |
| 1000 | - value: function templateHelpers() { | |
| 1001 | - return { | |
| 1002 | - closeType: this.getOption('closeType') | |
| 1003 | - }; | |
| 1004 | - } | |
| 1005 | - }, { | |
| 1006 | - key: "onCloseModalClick", | |
| 1007 | - value: function onCloseModalClick() { | |
| 1008 | - this._parent._parent._parent.hideModal(); | |
| 1009 | - var documentType = this.getDocumentType(); | |
| 1010 | - var customEvent = new CustomEvent("core/modal/close/".concat(documentType)); | |
| 1011 | - window.dispatchEvent(customEvent); | |
| 1012 | - if (this.isFloatingButtonLibraryClose()) { | |
| 1013 | - $e.internal('document/save/set-is-modified', { | |
| 1014 | - status: false | |
| 1015 | - }); | |
| 1016 | - window.location.href = elementor.config.admin_floating_button_admin_url; | |
| 1017 | - } | |
| 1018 | - } | |
| 1019 | - }, { | |
| 1020 | - key: "getDocumentType", | |
| 1021 | - value: function getDocumentType() { | |
| 1022 | - var _elementor$config$doc, _elementor; | |
| 1023 | - var DEFAULT_TYPE = 'default'; | |
| 1024 | - if ('undefined' === typeof window.elementor) { | |
| 1025 | - return DEFAULT_TYPE; | |
| 1026 | - } | |
| 1027 | - return (_elementor$config$doc = (_elementor = elementor) === null || _elementor === void 0 || (_elementor = _elementor.config) === null || _elementor === void 0 || (_elementor = _elementor.document) === null || _elementor === void 0 ? void 0 : _elementor.type) !== null && _elementor$config$doc !== void 0 ? _elementor$config$doc : DEFAULT_TYPE; | |
| 1028 | - } | |
| 1029 | - }, { | |
| 1030 | - key: "isFloatingButtonLibraryClose", | |
| 1031 | - value: function isFloatingButtonLibraryClose() { | |
| 1032 | - var _elementor$config, _elementor$config2; | |
| 1033 | - return window.elementor && ((_elementor$config = elementor.config) === null || _elementor$config === void 0 ? void 0 : _elementor$config.admin_floating_button_admin_url) && 'floating-buttons' === ((_elementor$config2 = elementor.config) === null || _elementor$config2 === void 0 || (_elementor$config2 = _elementor$config2.document) === null || _elementor$config2 === void 0 ? void 0 : _elementor$config2.type) && (this.$el.closest('.dialog-lightbox-widget-content').find('.elementor-template-library-template-floating_button').length || this.$el.closest('.dialog-lightbox-widget-content').find('#elementor-template-library-preview').length || this.$el.closest('.dialog-lightbox-widget-content').find('#elementor-template-library-templates-empty').length); | |
| 1034 | - } | |
| 1035 | - }]); | |
| 1036 | -}(Marionette.LayoutView); | |
| 428 | +// to indexed object, toObject with fallback for non-array-like ES3 strings | |
| 429 | +var IObject = __webpack_require__(103); | |
| 430 | +var defined = __webpack_require__(65); | |
| 431 | +module.exports = function (it) { | |
| 432 | + return IObject(defined(it)); | |
| 433 | +}; | |
| 1037 | 434 | |
| 435 | + | |
| 1038 | 436 | /***/ }), |
| 437 | +/* 21 */ | |
| 438 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1039 | 439 | |
| 1040 | -/***/ "../core/common/assets/js/views/modal/layout.js": | |
| 1041 | -/*!******************************************************!*\ | |
| 1042 | - !*** ../core/common/assets/js/views/modal/layout.js ***! | |
| 1043 | - \******************************************************/ | |
| 1044 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 440 | +"use strict"; | |
| 1045 | 441 | |
| 1046 | -"use strict"; | |
| 1047 | 442 | |
| 443 | +var _interopRequireDefault = __webpack_require__(0); | |
| 1048 | 444 | |
| 1049 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1050 | -Object.defineProperty(exports, "__esModule", ({ | |
| 445 | +var _Object$defineProperty = __webpack_require__(1); | |
| 446 | + | |
| 447 | +_Object$defineProperty(exports, "__esModule", { | |
| 1051 | 448 | value: true |
| 1052 | -})); | |
| 1053 | -exports["default"] = void 0; | |
| 1054 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1055 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1056 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1057 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1058 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1059 | -var _header = _interopRequireDefault(__webpack_require__(/*! ./header */ "../core/common/assets/js/views/modal/header.js")); | |
| 1060 | -var _logo = _interopRequireDefault(__webpack_require__(/*! ./logo */ "../core/common/assets/js/views/modal/logo.js")); | |
| 1061 | -var _loading = _interopRequireDefault(__webpack_require__(/*! ./loading */ "../core/common/assets/js/views/modal/loading.js")); | |
| 1062 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1063 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1064 | -var _default = exports["default"] = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 1065 | - function _default() { | |
| 1066 | - (0, _classCallCheck2.default)(this, _default); | |
| 1067 | - return _callSuper(this, _default, arguments); | |
| 1068 | - } | |
| 1069 | - (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 1070 | - return (0, _createClass2.default)(_default, [{ | |
| 1071 | - key: "el", | |
| 1072 | - value: function el() { | |
| 1073 | - return this.getModal().getElements('widget'); | |
| 1074 | - } | |
| 1075 | - }, { | |
| 1076 | - key: "regions", | |
| 1077 | - value: function regions() { | |
| 1078 | - return { | |
| 1079 | - modalHeader: '.dialog-header', | |
| 1080 | - modalContent: '.dialog-lightbox-content', | |
| 1081 | - modalLoading: '.dialog-lightbox-loading' | |
| 1082 | - }; | |
| 1083 | - } | |
| 1084 | - }, { | |
| 1085 | - key: "initialize", | |
| 1086 | - value: function initialize() { | |
| 1087 | - this.modalHeader.show(new _header.default(this.getHeaderOptions())); | |
| 1088 | - } | |
| 1089 | - }, { | |
| 1090 | - key: "getModal", | |
| 1091 | - value: function getModal() { | |
| 1092 | - if (!this.modal) { | |
| 1093 | - this.initModal(); | |
| 1094 | - } | |
| 1095 | - return this.modal; | |
| 1096 | - } | |
| 1097 | - }, { | |
| 1098 | - key: "initModal", | |
| 1099 | - value: function initModal() { | |
| 1100 | - var modalOptions = { | |
| 1101 | - className: 'elementor-templates-modal', | |
| 1102 | - closeButton: false, | |
| 1103 | - draggable: false, | |
| 1104 | - hide: { | |
| 1105 | - onOutsideClick: false, | |
| 1106 | - onEscKeyPress: false | |
| 1107 | - } | |
| 1108 | - }; | |
| 1109 | - jQuery.extend(true, modalOptions, this.getModalOptions()); | |
| 1110 | - this.modal = elementorCommon.dialogsManager.createWidget('lightbox', modalOptions); | |
| 1111 | - this.modal.getElements('message').append(this.modal.addElement('content'), this.modal.addElement('loading')); | |
| 1112 | - if (modalOptions.draggable) { | |
| 1113 | - this.draggableModal(); | |
| 1114 | - } | |
| 1115 | - } | |
| 1116 | - }, { | |
| 1117 | - key: "showModal", | |
| 1118 | - value: function showModal() { | |
| 1119 | - this.getModal().show(); | |
| 1120 | - } | |
| 1121 | - }, { | |
| 1122 | - key: "hideModal", | |
| 1123 | - value: function hideModal() { | |
| 1124 | - this.getModal().hide(); | |
| 1125 | - } | |
| 1126 | - }, { | |
| 1127 | - key: "draggableModal", | |
| 1128 | - value: function draggableModal() { | |
| 1129 | - var $modalWidgetContent = this.getModal().getElements('widgetContent'); | |
| 1130 | - $modalWidgetContent.draggable({ | |
| 1131 | - containment: 'parent', | |
| 1132 | - stop: function stop() { | |
| 1133 | - $modalWidgetContent.height(''); | |
| 1134 | - } | |
| 1135 | - }); | |
| 1136 | - $modalWidgetContent.css('position', 'absolute'); | |
| 1137 | - } | |
| 1138 | - }, { | |
| 1139 | - key: "getModalOptions", | |
| 1140 | - value: function getModalOptions() { | |
| 1141 | - return {}; | |
| 1142 | - } | |
| 1143 | - }, { | |
| 1144 | - key: "getLogoOptions", | |
| 1145 | - value: function getLogoOptions() { | |
| 1146 | - return {}; | |
| 1147 | - } | |
| 1148 | - }, { | |
| 1149 | - key: "getHeaderOptions", | |
| 1150 | - value: function getHeaderOptions() { | |
| 1151 | - return { | |
| 1152 | - closeType: 'normal' | |
| 1153 | - }; | |
| 1154 | - } | |
| 1155 | - }, { | |
| 1156 | - key: "getHeaderView", | |
| 1157 | - value: function getHeaderView() { | |
| 1158 | - return this.modalHeader.currentView; | |
| 1159 | - } | |
| 1160 | - }, { | |
| 1161 | - key: "showLoadingView", | |
| 1162 | - value: function showLoadingView() { | |
| 1163 | - this.modalLoading.show(new _loading.default()); | |
| 1164 | - this.modalLoading.$el.show(); | |
| 1165 | - this.modalContent.$el.hide(); | |
| 1166 | - } | |
| 1167 | - }, { | |
| 1168 | - key: "hideLoadingView", | |
| 1169 | - value: function hideLoadingView() { | |
| 1170 | - this.modalContent.$el.show(); | |
| 1171 | - this.modalLoading.$el.hide(); | |
| 1172 | - } | |
| 1173 | - }, { | |
| 1174 | - key: "showLogo", | |
| 1175 | - value: function showLogo() { | |
| 1176 | - this.getHeaderView().logoArea.show(new _logo.default(this.getLogoOptions())); | |
| 1177 | - } | |
| 1178 | - }]); | |
| 1179 | -}(Marionette.LayoutView); | |
| 449 | +}); | |
| 1180 | 450 | |
| 1181 | -/***/ }), | |
| 451 | +exports.default = void 0; | |
| 1182 | 452 | |
| 1183 | -/***/ "../core/common/assets/js/views/modal/loading.js": | |
| 1184 | -/*!*******************************************************!*\ | |
| 1185 | - !*** ../core/common/assets/js/views/modal/loading.js ***! | |
| 1186 | - \*******************************************************/ | |
| 1187 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 453 | +var _typeof2 = _interopRequireDefault(__webpack_require__(48)); | |
| 1188 | 454 | |
| 1189 | -"use strict"; | |
| 455 | +var _regenerator = _interopRequireDefault(__webpack_require__(89)); | |
| 1190 | 456 | |
| 457 | +__webpack_require__(145); | |
| 1191 | 458 | |
| 1192 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1193 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1194 | - value: true | |
| 1195 | -})); | |
| 1196 | -exports["default"] = void 0; | |
| 1197 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1198 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1199 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1200 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1201 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1202 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1203 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1204 | -var _default = exports["default"] = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 1205 | - function _default() { | |
| 1206 | - (0, _classCallCheck2.default)(this, _default); | |
| 1207 | - return _callSuper(this, _default, arguments); | |
| 1208 | - } | |
| 1209 | - (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 1210 | - return (0, _createClass2.default)(_default, [{ | |
| 1211 | - key: "id", | |
| 1212 | - value: function id() { | |
| 1213 | - return 'elementor-template-library-loading'; | |
| 1214 | - } | |
| 1215 | - }, { | |
| 1216 | - key: "getTemplate", | |
| 1217 | - value: function getTemplate() { | |
| 1218 | - return '#tmpl-elementor-template-library-loading'; | |
| 1219 | - } | |
| 1220 | - }]); | |
| 1221 | -}(Marionette.ItemView); | |
| 459 | +__webpack_require__(117); | |
| 1222 | 460 | |
| 1223 | -/***/ }), | |
| 461 | +__webpack_require__(72); | |
| 1224 | 462 | |
| 1225 | -/***/ "../core/common/assets/js/views/modal/logo.js": | |
| 1226 | -/*!****************************************************!*\ | |
| 1227 | - !*** ../core/common/assets/js/views/modal/logo.js ***! | |
| 1228 | - \****************************************************/ | |
| 1229 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 463 | +__webpack_require__(271); | |
| 1230 | 464 | |
| 1231 | -"use strict"; | |
| 465 | +var _promise = _interopRequireDefault(__webpack_require__(133)); | |
| 1232 | 466 | |
| 467 | +var _isArray = _interopRequireDefault(__webpack_require__(81)); | |
| 1233 | 468 | |
| 1234 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1235 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1236 | - value: true | |
| 1237 | -})); | |
| 1238 | -exports["default"] = void 0; | |
| 1239 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1240 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1241 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1242 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1243 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1244 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1245 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1246 | -var _default = exports["default"] = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 1247 | - function _default() { | |
| 1248 | - (0, _classCallCheck2.default)(this, _default); | |
| 1249 | - return _callSuper(this, _default, arguments); | |
| 1250 | - } | |
| 1251 | - (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 1252 | - return (0, _createClass2.default)(_default, [{ | |
| 1253 | - key: "getTemplate", | |
| 1254 | - value: function getTemplate() { | |
| 1255 | - return '#tmpl-elementor-templates-modal__header__logo'; | |
| 1256 | - } | |
| 1257 | - }, { | |
| 1258 | - key: "className", | |
| 1259 | - value: function className() { | |
| 1260 | - return 'elementor-templates-modal__header__logo'; | |
| 1261 | - } | |
| 1262 | - }, { | |
| 1263 | - key: "events", | |
| 1264 | - value: function events() { | |
| 1265 | - return { | |
| 1266 | - click: 'onClick' | |
| 1267 | - }; | |
| 1268 | - } | |
| 1269 | - }, { | |
| 1270 | - key: "templateHelpers", | |
| 1271 | - value: function templateHelpers() { | |
| 1272 | - return { | |
| 1273 | - title: this.getOption('title') | |
| 1274 | - }; | |
| 1275 | - } | |
| 1276 | - }, { | |
| 1277 | - key: "onClick", | |
| 1278 | - value: function onClick() { | |
| 1279 | - var clickCallback = this.getOption('click'); | |
| 1280 | - if (clickCallback) { | |
| 1281 | - clickCallback(); | |
| 1282 | - } | |
| 1283 | - } | |
| 1284 | - }]); | |
| 1285 | -}(Marionette.ItemView); | |
| 469 | +__webpack_require__(69); | |
| 1286 | 470 | |
| 1287 | -/***/ }), | |
| 471 | +var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(90)); | |
| 1288 | 472 | |
| 1289 | -/***/ "../modules/web-cli/assets/js/modules/command-base.js": | |
| 1290 | -/*!************************************************************!*\ | |
| 1291 | - !*** ../modules/web-cli/assets/js/modules/command-base.js ***! | |
| 1292 | - \************************************************************/ | |
| 1293 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 473 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 1294 | 474 | |
| 1295 | -"use strict"; | |
| 475 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49)); | |
| 1296 | 476 | |
| 477 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 1297 | 478 | |
| 1298 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1299 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1300 | - value: true | |
| 1301 | -})); | |
| 1302 | -exports["default"] = void 0; | |
| 1303 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1304 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1305 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1306 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1307 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1308 | -var _commandInfra = _interopRequireDefault(__webpack_require__(/*! ./command-infra */ "../modules/web-cli/assets/js/modules/command-infra.js")); | |
| 1309 | -var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); | |
| 1310 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1311 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1312 | -/** | |
| 1313 | - * @name $e.modules.CommandBase | |
| 1314 | - */ | |
| 1315 | -var CommandBase = exports["default"] = /*#__PURE__*/function (_CommandInfra) { | |
| 1316 | - function CommandBase() { | |
| 1317 | - (0, _classCallCheck2.default)(this, CommandBase); | |
| 1318 | - return _callSuper(this, CommandBase, arguments); | |
| 1319 | - } | |
| 1320 | - (0, _inherits2.default)(CommandBase, _CommandInfra); | |
| 1321 | - return (0, _createClass2.default)(CommandBase, [{ | |
| 1322 | - key: "onBeforeRun", | |
| 1323 | - value: function onBeforeRun() { | |
| 1324 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 1325 | - $e.hooks.runUIBefore(this.command, args); | |
| 1326 | - } | |
| 1327 | - }, { | |
| 1328 | - key: "onAfterRun", | |
| 1329 | - value: function onAfterRun() { | |
| 1330 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 1331 | - var result = arguments.length > 1 ? arguments[1] : undefined; | |
| 1332 | - $e.hooks.runUIAfter(this.command, args, result); | |
| 1333 | - } | |
| 1334 | - }, { | |
| 1335 | - key: "onBeforeApply", | |
| 1336 | - value: function onBeforeApply() { | |
| 1337 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 1338 | - $e.hooks.runDataDependency(this.command, args); | |
| 1339 | - } | |
| 1340 | - }, { | |
| 1341 | - key: "onAfterApply", | |
| 1342 | - value: function onAfterApply() { | |
| 1343 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 1344 | - var result = arguments.length > 1 ? arguments[1] : undefined; | |
| 1345 | - return $e.hooks.runDataAfter(this.command, args, result); | |
| 1346 | - } | |
| 1347 | - }, { | |
| 1348 | - key: "onCatchApply", | |
| 1349 | - value: function onCatchApply(e) { | |
| 1350 | - this.runCatchHooks(e); | |
| 1351 | - } | |
| 479 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 1352 | 480 | |
| 1353 | - /** | |
| 1354 | - * Run all the catch hooks. | |
| 1355 | - * | |
| 1356 | - * @param {Error} e | |
| 1357 | - */ | |
| 1358 | - }, { | |
| 1359 | - key: "runCatchHooks", | |
| 1360 | - value: function runCatchHooks(e) { | |
| 1361 | - $e.hooks.runDataCatch(this.command, this.args, e); | |
| 1362 | - $e.hooks.runUICatch(this.command, this.args, e); | |
| 1363 | - } | |
| 481 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 1364 | 482 | |
| 1365 | - /** | |
| 1366 | - * TODO - Remove - Backwards compatibility. | |
| 1367 | - * | |
| 1368 | - * Function requireContainer(). | |
| 1369 | - * | |
| 1370 | - * Validate `arg.container` & `arg.containers`. | |
| 1371 | - * | |
| 1372 | - * @param {{}} args | |
| 1373 | - * @deprecated since 3.7.0, extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase` instead. | |
| 1374 | - * | |
| 1375 | - * @throws {Error} | |
| 1376 | - */ | |
| 1377 | - }, { | |
| 1378 | - key: "requireContainer", | |
| 1379 | - value: function requireContainer() { | |
| 1380 | - var _this = this; | |
| 1381 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; | |
| 1382 | - _deprecation.default.deprecated('requireContainer()', '3.7.0', 'Extend `$e.modules.editor.CommandContainerBase` or `$e.modules.editor.CommandContainerInternalBase`'); | |
| 1383 | - if (!args.container && !args.containers) { | |
| 1384 | - throw Error('container or containers are required.'); | |
| 1385 | - } | |
| 1386 | - if (args.container && args.containers) { | |
| 1387 | - throw Error('container and containers cannot go together please select one of them.'); | |
| 1388 | - } | |
| 1389 | - var containers = args.containers || [args.container]; | |
| 1390 | - containers.forEach(function (container) { | |
| 1391 | - _this.requireArgumentInstance('container', elementorModules.editor.Container, { | |
| 1392 | - container: container | |
| 1393 | - }); | |
| 1394 | - }); | |
| 1395 | - } | |
| 1396 | - }], [{ | |
| 1397 | - key: "getInstanceType", | |
| 1398 | - value: function getInstanceType() { | |
| 1399 | - return 'CommandBase'; | |
| 1400 | - } | |
| 1401 | - }]); | |
| 1402 | -}(_commandInfra.default); | |
| 483 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 1403 | 484 | |
| 1404 | -/***/ }), | |
| 485 | +var _argsObject = _interopRequireDefault(__webpack_require__(223)); | |
| 1405 | 486 | |
| 1406 | -/***/ "../modules/web-cli/assets/js/modules/command-callback-base.js": | |
| 1407 | -/*!*********************************************************************!*\ | |
| 1408 | - !*** ../modules/web-cli/assets/js/modules/command-callback-base.js ***! | |
| 1409 | - \*********************************************************************/ | |
| 1410 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 487 | +var CommandBase = /*#__PURE__*/function (_ArgsObject) { | |
| 488 | + (0, _inherits2.default)(CommandBase, _ArgsObject); | |
| 1411 | 489 | |
| 1412 | -"use strict"; | |
| 490 | + var _super = (0, _createSuper2.default)(CommandBase); | |
| 1413 | 491 | |
| 1414 | - | |
| 1415 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1416 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1417 | - value: true | |
| 1418 | -})); | |
| 1419 | -exports["default"] = void 0; | |
| 1420 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1421 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1422 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1423 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1424 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1425 | -var _commandBase = _interopRequireDefault(__webpack_require__(/*! ./command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); | |
| 1426 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1427 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1428 | -/** | |
| 1429 | - * To support pure callbacks in the API(commands.js), to ensure they have registered with the proper context. | |
| 1430 | - */ | |
| 1431 | -var CommandCallbackBase = exports["default"] = /*#__PURE__*/function (_CommandBase) { | |
| 1432 | - function CommandCallbackBase() { | |
| 1433 | - (0, _classCallCheck2.default)(this, CommandCallbackBase); | |
| 1434 | - return _callSuper(this, CommandCallbackBase, arguments); | |
| 1435 | - } | |
| 1436 | - (0, _inherits2.default)(CommandCallbackBase, _CommandBase); | |
| 1437 | - return (0, _createClass2.default)(CommandCallbackBase, [{ | |
| 1438 | - key: "apply", | |
| 1439 | - value: function apply() { | |
| 1440 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 1441 | - return this.constructor.getCallback()(args); | |
| 1442 | - } | |
| 1443 | - }], [{ | |
| 492 | + (0, _createClass2.default)(CommandBase, null, [{ | |
| 1444 | 493 | key: "getInstanceType", |
| 1445 | 494 | value: function getInstanceType() { |
| 1446 | - return 'CommandCallbackBase'; | |
| 495 | + return 'CommandBase'; | |
| 1447 | 496 | } |
| 1448 | - | |
| 1449 | 497 | /** |
| 1450 | - * Get original callback of the command. | |
| 498 | + * Current component. | |
| 1451 | 499 | * |
| 1452 | - * Support pure callbacks ( Non command-base ). | |
| 1453 | - * | |
| 1454 | - * @return {()=>{}} Command Results. | |
| 500 | + * @type {Component} | |
| 1455 | 501 | */ |
| 1456 | - }, { | |
| 1457 | - key: "getCallback", | |
| 1458 | - value: function getCallback() { | |
| 1459 | - return this.registerConfig.callback; | |
| 1460 | - } | |
| 502 | + | |
| 1461 | 503 | }]); |
| 1462 | -}(_commandBase.default); | |
| 1463 | 504 | |
| 1464 | -/***/ }), | |
| 1465 | - | |
| 1466 | -/***/ "../modules/web-cli/assets/js/modules/command-infra.js": | |
| 1467 | -/*!*************************************************************!*\ | |
| 1468 | - !*** ../modules/web-cli/assets/js/modules/command-infra.js ***! | |
| 1469 | - \*************************************************************/ | |
| 1470 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1471 | - | |
| 1472 | -"use strict"; | |
| 1473 | - | |
| 1474 | - | |
| 1475 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1476 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1477 | - value: true | |
| 1478 | -})); | |
| 1479 | -exports["default"] = void 0; | |
| 1480 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1481 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1482 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1483 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1484 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1485 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1486 | -var _argsObject = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); | |
| 1487 | -var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); | |
| 1488 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1489 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1490 | -/** | |
| 1491 | - * @typedef {import('../modules/component-base')} ComponentBase | |
| 1492 | - */ | |
| 1493 | -var CommandInfra = exports["default"] = /*#__PURE__*/function (_ArgsObject) { | |
| 1494 | 505 | /** |
| 1495 | 506 | * Function constructor(). |
| 1496 | 507 | * |
| 1497 | 508 | * Create Commands Base. |
| 1498 | 509 | * |
| 1499 | - * @param {{}} args | |
| 510 | + * @param [args={}] | |
| 511 | + * @param [commandsAPI={}] | |
| 1500 | 512 | */ |
| 1501 | - function CommandInfra() { | |
| 513 | + function CommandBase(args) { | |
| 1502 | 514 | var _this; |
| 1503 | - var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 1504 | - (0, _classCallCheck2.default)(this, CommandInfra); | |
| 1505 | - _this = _callSuper(this, CommandInfra, [args]); | |
| 1506 | - if (!_this.constructor.registerConfig) { | |
| 1507 | - throw RangeError('Doing it wrong: Each command type should have `registerConfig`.'); | |
| 1508 | - } | |
| 1509 | 515 | |
| 1510 | - // Acknowledge self about which command it run. | |
| 1511 | - _this.command = _this.constructor.getCommand(); | |
| 516 | + var commandsAPI = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : $e.commands; | |
| 517 | + (0, _classCallCheck2.default)(this, CommandBase); | |
| 518 | + _this = _super.call(this, args); // Acknowledge self about which command it run. | |
| 1512 | 519 | |
| 1513 | - // Assign instance of current component. | |
| 1514 | - _this.component = _this.constructor.getComponent(); | |
| 520 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "component", void 0); | |
| 521 | + _this.currentCommand = commandsAPI.getCurrentLast(); // Assign instance of current component. | |
| 1515 | 522 | |
| 1516 | - // Who ever need do something before without `super` the constructor can use `initialize` method. | |
| 1517 | - _this.initialize(args); | |
| 523 | + _this.component = commandsAPI.getComponent(_this.currentCommand); // Who ever need do something before without `super` the constructor can use `initialize` method. | |
| 1518 | 524 | |
| 1519 | - // Refresh args, maybe the changed via `initialize`. | |
| 1520 | - args = _this.args; | |
| 525 | + _this.initialize(args); // Refresh args, maybe the changed via `initialize`. | |
| 1521 | 526 | |
| 1522 | - // Validate args before run. | |
| 527 | + | |
| 528 | + args = _this.args; // Validate args before run. | |
| 529 | + | |
| 1523 | 530 | _this.validateArgs(args); |
| 531 | + | |
| 1524 | 532 | return _this; |
| 1525 | 533 | } |
| 1526 | - | |
| 1527 | 534 | /** |
| 1528 | - * Function initialize(). | |
| 535 | + * Function requireContainer(). | |
| 1529 | 536 | * |
| 1530 | - * Initialize command, called after construction. | |
| 537 | + * Validate `arg.container` & `arg.containers`. | |
| 1531 | 538 | * |
| 1532 | 539 | * @param {{}} args |
| 540 | + * | |
| 541 | + * @throws {Error} | |
| 1533 | 542 | */ |
| 1534 | - (0, _inherits2.default)(CommandInfra, _ArgsObject); | |
| 1535 | - return (0, _createClass2.default)(CommandInfra, [{ | |
| 1536 | - key: "currentCommand", | |
| 1537 | - get: | |
| 543 | + | |
| 544 | + | |
| 545 | + (0, _createClass2.default)(CommandBase, [{ | |
| 546 | + key: "requireContainer", | |
| 547 | + value: function requireContainer() { | |
| 548 | + var _this2 = this; | |
| 549 | + | |
| 550 | + var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.args; | |
| 551 | + | |
| 552 | + if (!args.container && !args.containers) { | |
| 553 | + throw Error('container or containers are required.'); | |
| 554 | + } | |
| 555 | + | |
| 556 | + if (args.container && args.containers) { | |
| 557 | + throw Error('container and containers cannot go together please select one of them.'); | |
| 558 | + } | |
| 559 | + | |
| 560 | + var containers = args.containers || [args.container]; | |
| 561 | + containers.forEach(function (container) { | |
| 562 | + _this2.requireArgumentInstance('container', elementorModules.editor.Container, { | |
| 563 | + container: container | |
| 564 | + }); | |
| 565 | + }); | |
| 566 | + } | |
| 1538 | 567 | /** |
| 1539 | - * @deprecated since 3.7.0, use `this.command` instead. | |
| 568 | + * Function initialize(). | |
| 569 | + * | |
| 570 | + * Initialize command, called after construction. | |
| 571 | + * | |
| 572 | + * @param [args={}] | |
| 1540 | 573 | */ |
| 1541 | - function get() { | |
| 1542 | - _deprecation.default.deprecated('this.currentCommand', '3.7.0', 'this.command'); | |
| 1543 | - return this.command; | |
| 1544 | - } | |
| 574 | + | |
| 1545 | 575 | }, { |
| 1546 | 576 | key: "initialize", |
| 1547 | 577 | value: function initialize() { |
| 1548 | 578 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| @@ -1552,10 +582,11 @@ | ||
| 1552 | 582 | * Function validateArgs(). |
| 1553 | 583 | * |
| 1554 | 584 | * Validate command arguments. |
| 1555 | 585 | * |
| 1556 | - * @param {{}} args | |
| 586 | + * @param [args={}] | |
| 1557 | 587 | */ |
| 588 | + | |
| 1558 | 589 | }, { |
| 1559 | 590 | key: "validateArgs", |
| 1560 | 591 | value: function validateArgs() { |
| 1561 | 592 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| @@ -1560,18 +591,31 @@ | ||
| 1560 | 591 | value: function validateArgs() { |
| 1561 | 592 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1562 | 593 | } // eslint-disable-line no-unused-vars |
| 1563 | 594 | |
| 1564 | - // eslint-disable-next-line jsdoc/require-returns-check | |
| 1565 | 595 | /** |
| 596 | + * Function isDataChanged(). | |
| 597 | + * | |
| 598 | + * Whether the editor needs to set change flag on/off. | |
| 599 | + * | |
| 600 | + * @returns {boolean} | |
| 601 | + */ | |
| 602 | + | |
| 603 | + }, { | |
| 604 | + key: "isDataChanged", | |
| 605 | + value: function isDataChanged() { | |
| 606 | + return false; | |
| 607 | + } | |
| 608 | + /** | |
| 1566 | 609 | * Function apply(). |
| 1567 | 610 | * |
| 1568 | 611 | * Do the actual command. |
| 1569 | 612 | * |
| 1570 | - * @param {{}} args | |
| 613 | + * @param [args={}] | |
| 1571 | 614 | * |
| 1572 | - * @return {*} Command results. | |
| 615 | + * @returns {*} | |
| 1573 | 616 | */ |
| 617 | + | |
| 1574 | 618 | }, { |
| 1575 | 619 | key: "apply", |
| 1576 | 620 | value: function apply() { |
| 1577 | 621 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| @@ -1577,78 +621,197 @@ | ||
| 1577 | 621 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1578 | 622 | // eslint-disable-line no-unused-vars |
| 1579 | 623 | elementorModules.ForceMethodImplementation(); |
| 1580 | 624 | } |
| 1581 | - | |
| 1582 | 625 | /** |
| 1583 | 626 | * Function run(). |
| 1584 | 627 | * |
| 1585 | 628 | * Run command with history & hooks. |
| 1586 | 629 | * |
| 1587 | - * @return {*} Command results. | |
| 630 | + * @returns {*} | |
| 1588 | 631 | */ |
| 632 | + | |
| 1589 | 633 | }, { |
| 1590 | 634 | key: "run", |
| 1591 | 635 | value: function run() { |
| 1592 | - return this.apply(this.args); | |
| 636 | + var result; // For UI Hooks. | |
| 637 | + | |
| 638 | + this.onBeforeRun(this.args); | |
| 639 | + | |
| 640 | + try { | |
| 641 | + // For Data hooks. | |
| 642 | + this.onBeforeApply(this.args); | |
| 643 | + result = this.apply(this.args); | |
| 644 | + } catch (e) { | |
| 645 | + this.onCatchApply(e); // Catch 'Hook-Break' that comes from hooks base. | |
| 646 | + | |
| 647 | + if (e instanceof $e.modules.HookBreak) { | |
| 648 | + // Bypass. | |
| 649 | + return false; | |
| 650 | + } | |
| 651 | + } | |
| 652 | + | |
| 653 | + return this.runAfter(result); | |
| 1593 | 654 | } |
| 655 | + }, { | |
| 656 | + key: "runAfter", | |
| 657 | + value: function runAfter(result) { | |
| 658 | + var _this3 = this; | |
| 1594 | 659 | |
| 660 | + var onAfter = function onAfter(_result) { | |
| 661 | + // Run Data hooks. | |
| 662 | + _this3.onAfterApply(_this3.args, _result); // TODO: Create Command-Base for Command-Document and apply it on after. | |
| 663 | + | |
| 664 | + | |
| 665 | + if (_this3.isDataChanged()) { | |
| 666 | + $e.internal('document/save/set-is-modified', { | |
| 667 | + status: true | |
| 668 | + }); | |
| 669 | + } // For UI hooks. | |
| 670 | + | |
| 671 | + | |
| 672 | + _this3.onAfterRun(_this3.args, _result); | |
| 673 | + }, | |
| 674 | + asyncOnAfter = /*#__PURE__*/function () { | |
| 675 | + var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_result) { | |
| 676 | + var results, promises; | |
| 677 | + return _regenerator.default.wrap(function _callee$(_context) { | |
| 678 | + while (1) { | |
| 679 | + switch (_context.prev = _context.next) { | |
| 680 | + case 0: | |
| 681 | + // Run Data hooks. | |
| 682 | + results = _this3.onAfterApply(_this3.args, _result), promises = (0, _isArray.default)(results) ? results.flat().filter(function (filtered) { | |
| 683 | + return filtered instanceof _promise.default; | |
| 684 | + }) : []; | |
| 685 | + | |
| 686 | + if (!promises.length) { | |
| 687 | + _context.next = 4; | |
| 688 | + break; | |
| 689 | + } | |
| 690 | + | |
| 691 | + _context.next = 4; | |
| 692 | + return _promise.default.all(promises); | |
| 693 | + | |
| 694 | + case 4: | |
| 695 | + if (_this3.isDataChanged()) { | |
| 696 | + // TODO: Create Command-Base for Command-Document and apply it on after. | |
| 697 | + $e.internal('document/save/set-is-modified', { | |
| 698 | + status: true | |
| 699 | + }); | |
| 700 | + } // For UI hooks. | |
| 701 | + | |
| 702 | + | |
| 703 | + _this3.onAfterRun(_this3.args, _result); | |
| 704 | + | |
| 705 | + case 6: | |
| 706 | + case "end": | |
| 707 | + return _context.stop(); | |
| 708 | + } | |
| 709 | + } | |
| 710 | + }, _callee); | |
| 711 | + })); | |
| 712 | + | |
| 713 | + return function asyncOnAfter(_x) { | |
| 714 | + return _ref.apply(this, arguments); | |
| 715 | + }; | |
| 716 | + }(); // TODO: Temp code determine if it's a jQuery deferred object. | |
| 717 | + | |
| 718 | + | |
| 719 | + if (result && 'object' === (0, _typeof2.default)(result) && result.promise && result.then && result.fail) { | |
| 720 | + result.fail(this.onCatchApply.bind(this)); | |
| 721 | + result.done(onAfter); | |
| 722 | + } else if (result instanceof _promise.default) { | |
| 723 | + // Override initial result ( promise ) to await onAfter promises, first!. | |
| 724 | + return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() { | |
| 725 | + return _regenerator.default.wrap(function _callee2$(_context2) { | |
| 726 | + while (1) { | |
| 727 | + switch (_context2.prev = _context2.next) { | |
| 728 | + case 0: | |
| 729 | + _context2.next = 2; | |
| 730 | + return result.catch(_this3.onCatchApply.bind(_this3)); | |
| 731 | + | |
| 732 | + case 2: | |
| 733 | + _context2.next = 4; | |
| 734 | + return result.then(function (_result) { | |
| 735 | + return asyncOnAfter(_result); | |
| 736 | + }); | |
| 737 | + | |
| 738 | + case 4: | |
| 739 | + return _context2.abrupt("return", result); | |
| 740 | + | |
| 741 | + case 5: | |
| 742 | + case "end": | |
| 743 | + return _context2.stop(); | |
| 744 | + } | |
| 745 | + } | |
| 746 | + }, _callee2); | |
| 747 | + }))(); | |
| 748 | + } else { | |
| 749 | + onAfter(result); | |
| 750 | + } | |
| 751 | + | |
| 752 | + return result; | |
| 753 | + } | |
| 1595 | 754 | /** |
| 1596 | 755 | * Function onBeforeRun. |
| 1597 | 756 | * |
| 1598 | 757 | * Called before run(). |
| 1599 | 758 | * |
| 1600 | - * @param {{}} args | |
| 759 | + * @param [args={}] | |
| 1601 | 760 | */ |
| 761 | + | |
| 1602 | 762 | }, { |
| 1603 | 763 | key: "onBeforeRun", |
| 1604 | 764 | value: function onBeforeRun() { |
| 1605 | 765 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1606 | - } // eslint-disable-line no-unused-vars | |
| 1607 | - | |
| 766 | + $e.hooks.runUIBefore(this.currentCommand, args); | |
| 767 | + } | |
| 1608 | 768 | /** |
| 1609 | 769 | * Function onAfterRun. |
| 1610 | 770 | * |
| 1611 | 771 | * Called after run(). |
| 1612 | 772 | * |
| 1613 | - * @param {{}} args | |
| 1614 | - * @param {*} result | |
| 773 | + * @param [args={}] | |
| 774 | + * @param [result={*}] | |
| 1615 | 775 | */ |
| 776 | + | |
| 1616 | 777 | }, { |
| 1617 | 778 | key: "onAfterRun", |
| 1618 | 779 | value: function onAfterRun() { |
| 1619 | 780 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1620 | 781 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 1621 | - } // eslint-disable-line no-unused-vars | |
| 1622 | - | |
| 782 | + $e.hooks.runUIAfter(this.currentCommand, args, result); | |
| 783 | + } | |
| 1623 | 784 | /** |
| 1624 | 785 | * Function onBeforeApply. |
| 1625 | 786 | * |
| 1626 | 787 | * Called before apply(). |
| 1627 | 788 | * |
| 1628 | - * @param {{}} args | |
| 789 | + * @param [args={}] | |
| 1629 | 790 | */ |
| 791 | + | |
| 1630 | 792 | }, { |
| 1631 | 793 | key: "onBeforeApply", |
| 1632 | 794 | value: function onBeforeApply() { |
| 1633 | 795 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1634 | - } // eslint-disable-line no-unused-vars | |
| 1635 | - | |
| 796 | + $e.hooks.runDataDependency(this.currentCommand, args); | |
| 797 | + } | |
| 1636 | 798 | /** |
| 1637 | 799 | * Function onAfterApply. |
| 1638 | 800 | * |
| 1639 | 801 | * Called after apply(). |
| 1640 | 802 | * |
| 1641 | - * @param {{}} args | |
| 1642 | - * @param {*} result | |
| 803 | + * @param [args={}] | |
| 804 | + * @param [result={*}] | |
| 1643 | 805 | */ |
| 806 | + | |
| 1644 | 807 | }, { |
| 1645 | 808 | key: "onAfterApply", |
| 1646 | 809 | value: function onAfterApply() { |
| 1647 | 810 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 1648 | 811 | var result = arguments.length > 1 ? arguments[1] : undefined; |
| 1649 | - } // eslint-disable-line no-unused-vars | |
| 1650 | - | |
| 812 | + return $e.hooks.runDataAfter(this.currentCommand, args, result); | |
| 813 | + } | |
| 1651 | 814 | /** |
| 1652 | 815 | * Function onCatchApply. |
| 1653 | 816 | * |
| 1654 | 817 | * Called after apply() failed. |
| @@ -1654,264 +817,2066 @@ | ||
| 1654 | 817 | * Called after apply() failed. |
| 1655 | 818 | * |
| 1656 | 819 | * @param {Error} e |
| 1657 | 820 | */ |
| 821 | + | |
| 1658 | 822 | }, { |
| 1659 | 823 | key: "onCatchApply", |
| 1660 | - value: function onCatchApply(e) {} // eslint-disable-line no-unused-vars | |
| 1661 | - }], [{ | |
| 1662 | - key: "getInstanceType", | |
| 1663 | - value: function getInstanceType() { | |
| 1664 | - return 'CommandInfra'; | |
| 824 | + value: function onCatchApply(e) { | |
| 825 | + $e.hooks.runDataCatch(this.currentCommand, this.args, e); | |
| 826 | + elementorCommon.helpers.consoleError(e); | |
| 827 | + $e.hooks.runUICatch(this.currentCommand, this.args, e); | |
| 1665 | 828 | } |
| 829 | + }]); | |
| 830 | + return CommandBase; | |
| 831 | +}(_argsObject.default); | |
| 1666 | 832 | |
| 1667 | - /** | |
| 1668 | - * Get info of command. | |
| 1669 | - * | |
| 1670 | - * @return {Object} Extra information about the command. | |
| 1671 | - */ | |
| 1672 | - }, { | |
| 1673 | - key: "getInfo", | |
| 1674 | - value: function getInfo() { | |
| 1675 | - return {}; | |
| 833 | +exports.default = CommandBase; | |
| 834 | + | |
| 835 | +/***/ }), | |
| 836 | +/* 22 */ | |
| 837 | +/***/ (function(module, exports) { | |
| 838 | + | |
| 839 | +module.exports = function (exec) { | |
| 840 | + try { | |
| 841 | + return !!exec(); | |
| 842 | + } catch (e) { | |
| 843 | + return true; | |
| 844 | + } | |
| 845 | +}; | |
| 846 | + | |
| 847 | + | |
| 848 | +/***/ }), | |
| 849 | +/* 23 */ | |
| 850 | +/***/ (function(module, exports, __webpack_require__) { | |
| 851 | + | |
| 852 | +module.exports = __webpack_require__(201); | |
| 853 | + | |
| 854 | +/***/ }), | |
| 855 | +/* 24 */ | |
| 856 | +/***/ (function(module, exports, __webpack_require__) { | |
| 857 | + | |
| 858 | +var dP = __webpack_require__(15); | |
| 859 | +var createDesc = __webpack_require__(44); | |
| 860 | +module.exports = __webpack_require__(14) ? function (object, key, value) { | |
| 861 | + return dP.f(object, key, createDesc(1, value)); | |
| 862 | +} : function (object, key, value) { | |
| 863 | + object[key] = value; | |
| 864 | + return object; | |
| 865 | +}; | |
| 866 | + | |
| 867 | + | |
| 868 | +/***/ }), | |
| 869 | +/* 25 */ | |
| 870 | +/***/ (function(module, exports, __webpack_require__) { | |
| 871 | + | |
| 872 | +var _Object$getOwnPropertyDescriptor = __webpack_require__(124); | |
| 873 | + | |
| 874 | +var _Reflect$get = __webpack_require__(193); | |
| 875 | + | |
| 876 | +var superPropBase = __webpack_require__(196); | |
| 877 | + | |
| 878 | +function _get(target, property, receiver) { | |
| 879 | + if (typeof Reflect !== "undefined" && _Reflect$get) { | |
| 880 | + module.exports = _get = _Reflect$get; | |
| 881 | + } else { | |
| 882 | + module.exports = _get = function _get(target, property, receiver) { | |
| 883 | + var base = superPropBase(target, property); | |
| 884 | + if (!base) return; | |
| 885 | + | |
| 886 | + var desc = _Object$getOwnPropertyDescriptor(base, property); | |
| 887 | + | |
| 888 | + if (desc.get) { | |
| 889 | + return desc.get.call(receiver); | |
| 890 | + } | |
| 891 | + | |
| 892 | + return desc.value; | |
| 893 | + }; | |
| 894 | + } | |
| 895 | + | |
| 896 | + return _get(target, property, receiver || target); | |
| 897 | +} | |
| 898 | + | |
| 899 | +module.exports = _get; | |
| 900 | + | |
| 901 | +/***/ }), | |
| 902 | +/* 26 */, | |
| 903 | +/* 27 */ | |
| 904 | +/***/ (function(module, exports, __webpack_require__) { | |
| 905 | + | |
| 906 | +// Thank's IE8 for his funny defineProperty | |
| 907 | +module.exports = !__webpack_require__(33)(function () { | |
| 908 | + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | |
| 909 | +}); | |
| 910 | + | |
| 911 | + | |
| 912 | +/***/ }), | |
| 913 | +/* 28 */ | |
| 914 | +/***/ (function(module, exports, __webpack_require__) { | |
| 915 | + | |
| 916 | +var _Object$defineProperty = __webpack_require__(1); | |
| 917 | + | |
| 918 | +function _defineProperty(obj, key, value) { | |
| 919 | + if (key in obj) { | |
| 920 | + _Object$defineProperty(obj, key, { | |
| 921 | + value: value, | |
| 922 | + enumerable: true, | |
| 923 | + configurable: true, | |
| 924 | + writable: true | |
| 925 | + }); | |
| 926 | + } else { | |
| 927 | + obj[key] = value; | |
| 928 | + } | |
| 929 | + | |
| 930 | + return obj; | |
| 931 | +} | |
| 932 | + | |
| 933 | +module.exports = _defineProperty; | |
| 934 | + | |
| 935 | +/***/ }), | |
| 936 | +/* 29 */ | |
| 937 | +/***/ (function(module, exports, __webpack_require__) { | |
| 938 | + | |
| 939 | +var dP = __webpack_require__(45); | |
| 940 | +var createDesc = __webpack_require__(102); | |
| 941 | +module.exports = __webpack_require__(27) ? function (object, key, value) { | |
| 942 | + return dP.f(object, key, createDesc(1, value)); | |
| 943 | +} : function (object, key, value) { | |
| 944 | + object[key] = value; | |
| 945 | + return object; | |
| 946 | +}; | |
| 947 | + | |
| 948 | + | |
| 949 | +/***/ }), | |
| 950 | +/* 30 */ | |
| 951 | +/***/ (function(module, exports) { | |
| 952 | + | |
| 953 | +module.exports = function (it) { | |
| 954 | + return typeof it === 'object' ? it !== null : typeof it === 'function'; | |
| 955 | +}; | |
| 956 | + | |
| 957 | + | |
| 958 | +/***/ }), | |
| 959 | +/* 31 */ | |
| 960 | +/***/ (function(module, exports, __webpack_require__) { | |
| 961 | + | |
| 962 | +// optional / simple context binding | |
| 963 | +var aFunction = __webpack_require__(38); | |
| 964 | +module.exports = function (fn, that, length) { | |
| 965 | + aFunction(fn); | |
| 966 | + if (that === undefined) return fn; | |
| 967 | + switch (length) { | |
| 968 | + case 1: return function (a) { | |
| 969 | + return fn.call(that, a); | |
| 970 | + }; | |
| 971 | + case 2: return function (a, b) { | |
| 972 | + return fn.call(that, a, b); | |
| 973 | + }; | |
| 974 | + case 3: return function (a, b, c) { | |
| 975 | + return fn.call(that, a, b, c); | |
| 976 | + }; | |
| 977 | + } | |
| 978 | + return function (/* ...args */) { | |
| 979 | + return fn.apply(that, arguments); | |
| 980 | + }; | |
| 981 | +}; | |
| 982 | + | |
| 983 | + | |
| 984 | +/***/ }), | |
| 985 | +/* 32 */ | |
| 986 | +/***/ (function(module, exports, __webpack_require__) { | |
| 987 | + | |
| 988 | +// 7.1.13 ToObject(argument) | |
| 989 | +var defined = __webpack_require__(65); | |
| 990 | +module.exports = function (it) { | |
| 991 | + return Object(defined(it)); | |
| 992 | +}; | |
| 993 | + | |
| 994 | + | |
| 995 | +/***/ }), | |
| 996 | +/* 33 */ | |
| 997 | +/***/ (function(module, exports) { | |
| 998 | + | |
| 999 | +module.exports = function (exec) { | |
| 1000 | + try { | |
| 1001 | + return !!exec(); | |
| 1002 | + } catch (e) { | |
| 1003 | + return true; | |
| 1004 | + } | |
| 1005 | +}; | |
| 1006 | + | |
| 1007 | + | |
| 1008 | +/***/ }), | |
| 1009 | +/* 34 */ | |
| 1010 | +/***/ (function(module, exports) { | |
| 1011 | + | |
| 1012 | +module.exports = {}; | |
| 1013 | + | |
| 1014 | + | |
| 1015 | +/***/ }), | |
| 1016 | +/* 35 */ | |
| 1017 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1018 | + | |
| 1019 | +var global = __webpack_require__(17); | |
| 1020 | +var hide = __webpack_require__(29); | |
| 1021 | +var has = __webpack_require__(61); | |
| 1022 | +var SRC = __webpack_require__(67)('src'); | |
| 1023 | +var $toString = __webpack_require__(143); | |
| 1024 | +var TO_STRING = 'toString'; | |
| 1025 | +var TPL = ('' + $toString).split(TO_STRING); | |
| 1026 | + | |
| 1027 | +__webpack_require__(55).inspectSource = function (it) { | |
| 1028 | + return $toString.call(it); | |
| 1029 | +}; | |
| 1030 | + | |
| 1031 | +(module.exports = function (O, key, val, safe) { | |
| 1032 | + var isFunction = typeof val == 'function'; | |
| 1033 | + if (isFunction) has(val, 'name') || hide(val, 'name', key); | |
| 1034 | + if (O[key] === val) return; | |
| 1035 | + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); | |
| 1036 | + if (O === global) { | |
| 1037 | + O[key] = val; | |
| 1038 | + } else if (!safe) { | |
| 1039 | + delete O[key]; | |
| 1040 | + hide(O, key, val); | |
| 1041 | + } else if (O[key]) { | |
| 1042 | + O[key] = val; | |
| 1043 | + } else { | |
| 1044 | + hide(O, key, val); | |
| 1045 | + } | |
| 1046 | +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative | |
| 1047 | +})(Function.prototype, TO_STRING, function toString() { | |
| 1048 | + return typeof this == 'function' && this[SRC] || $toString.call(this); | |
| 1049 | +}); | |
| 1050 | + | |
| 1051 | + | |
| 1052 | +/***/ }), | |
| 1053 | +/* 36 */ | |
| 1054 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1055 | + | |
| 1056 | +var _Object$getOwnPropertyDescriptor = __webpack_require__(124); | |
| 1057 | + | |
| 1058 | +var _Object$defineProperty = __webpack_require__(1); | |
| 1059 | + | |
| 1060 | +var _typeof = __webpack_require__(48); | |
| 1061 | + | |
| 1062 | +var _WeakMap = __webpack_require__(263); | |
| 1063 | + | |
| 1064 | +function _getRequireWildcardCache() { | |
| 1065 | + if (typeof _WeakMap !== "function") return null; | |
| 1066 | + var cache = new _WeakMap(); | |
| 1067 | + | |
| 1068 | + _getRequireWildcardCache = function _getRequireWildcardCache() { | |
| 1069 | + return cache; | |
| 1070 | + }; | |
| 1071 | + | |
| 1072 | + return cache; | |
| 1073 | +} | |
| 1074 | + | |
| 1075 | +function _interopRequireWildcard(obj) { | |
| 1076 | + if (obj && obj.__esModule) { | |
| 1077 | + return obj; | |
| 1078 | + } | |
| 1079 | + | |
| 1080 | + if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { | |
| 1081 | + return { | |
| 1082 | + "default": obj | |
| 1083 | + }; | |
| 1084 | + } | |
| 1085 | + | |
| 1086 | + var cache = _getRequireWildcardCache(); | |
| 1087 | + | |
| 1088 | + if (cache && cache.has(obj)) { | |
| 1089 | + return cache.get(obj); | |
| 1090 | + } | |
| 1091 | + | |
| 1092 | + var newObj = {}; | |
| 1093 | + var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; | |
| 1094 | + | |
| 1095 | + for (var key in obj) { | |
| 1096 | + if (Object.prototype.hasOwnProperty.call(obj, key)) { | |
| 1097 | + var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; | |
| 1098 | + | |
| 1099 | + if (desc && (desc.get || desc.set)) { | |
| 1100 | + _Object$defineProperty(newObj, key, desc); | |
| 1101 | + } else { | |
| 1102 | + newObj[key] = obj[key]; | |
| 1103 | + } | |
| 1676 | 1104 | } |
| 1105 | + } | |
| 1677 | 1106 | |
| 1678 | - /** | |
| 1679 | - * @return {string} Self command name. | |
| 1680 | - */ | |
| 1681 | - }, { | |
| 1682 | - key: "getCommand", | |
| 1683 | - value: function getCommand() { | |
| 1684 | - return this.registerConfig.command; | |
| 1107 | + newObj["default"] = obj; | |
| 1108 | + | |
| 1109 | + if (cache) { | |
| 1110 | + cache.set(obj, newObj); | |
| 1111 | + } | |
| 1112 | + | |
| 1113 | + return newObj; | |
| 1114 | +} | |
| 1115 | + | |
| 1116 | +module.exports = _interopRequireWildcard; | |
| 1117 | + | |
| 1118 | +/***/ }), | |
| 1119 | +/* 37 */ | |
| 1120 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1121 | + | |
| 1122 | +var global = __webpack_require__(17); | |
| 1123 | +var core = __webpack_require__(55); | |
| 1124 | +var hide = __webpack_require__(29); | |
| 1125 | +var redefine = __webpack_require__(35); | |
| 1126 | +var ctx = __webpack_require__(73); | |
| 1127 | +var PROTOTYPE = 'prototype'; | |
| 1128 | + | |
| 1129 | +var $export = function (type, name, source) { | |
| 1130 | + var IS_FORCED = type & $export.F; | |
| 1131 | + var IS_GLOBAL = type & $export.G; | |
| 1132 | + var IS_STATIC = type & $export.S; | |
| 1133 | + var IS_PROTO = type & $export.P; | |
| 1134 | + var IS_BIND = type & $export.B; | |
| 1135 | + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; | |
| 1136 | + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); | |
| 1137 | + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); | |
| 1138 | + var key, own, out, exp; | |
| 1139 | + if (IS_GLOBAL) source = name; | |
| 1140 | + for (key in source) { | |
| 1141 | + // contains in native | |
| 1142 | + own = !IS_FORCED && target && target[key] !== undefined; | |
| 1143 | + // export native or passed | |
| 1144 | + out = (own ? target : source)[key]; | |
| 1145 | + // bind timers to global for call from export context | |
| 1146 | + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; | |
| 1147 | + // extend global | |
| 1148 | + if (target) redefine(target, key, out, type & $export.U); | |
| 1149 | + // export | |
| 1150 | + if (exports[key] != out) hide(exports, key, exp); | |
| 1151 | + if (IS_PROTO && expProto[key] != out) expProto[key] = out; | |
| 1152 | + } | |
| 1153 | +}; | |
| 1154 | +global.core = core; | |
| 1155 | +// type bitmap | |
| 1156 | +$export.F = 1; // forced | |
| 1157 | +$export.G = 2; // global | |
| 1158 | +$export.S = 4; // static | |
| 1159 | +$export.P = 8; // proto | |
| 1160 | +$export.B = 16; // bind | |
| 1161 | +$export.W = 32; // wrap | |
| 1162 | +$export.U = 64; // safe | |
| 1163 | +$export.R = 128; // real proto method for `library` | |
| 1164 | +module.exports = $export; | |
| 1165 | + | |
| 1166 | + | |
| 1167 | +/***/ }), | |
| 1168 | +/* 38 */ | |
| 1169 | +/***/ (function(module, exports) { | |
| 1170 | + | |
| 1171 | +module.exports = function (it) { | |
| 1172 | + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | |
| 1173 | + return it; | |
| 1174 | +}; | |
| 1175 | + | |
| 1176 | + | |
| 1177 | +/***/ }), | |
| 1178 | +/* 39 */ | |
| 1179 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1180 | + | |
| 1181 | +var dP = __webpack_require__(45).f; | |
| 1182 | +var FProto = Function.prototype; | |
| 1183 | +var nameRE = /^\s*function ([^ (]*)/; | |
| 1184 | +var NAME = 'name'; | |
| 1185 | + | |
| 1186 | +// 19.2.4.2 name | |
| 1187 | +NAME in FProto || __webpack_require__(27) && dP(FProto, NAME, { | |
| 1188 | + configurable: true, | |
| 1189 | + get: function () { | |
| 1190 | + try { | |
| 1191 | + return ('' + this).match(nameRE)[1]; | |
| 1192 | + } catch (e) { | |
| 1193 | + return ''; | |
| 1685 | 1194 | } |
| 1195 | + } | |
| 1196 | +}); | |
| 1686 | 1197 | |
| 1687 | - /** | |
| 1688 | - * @return {ComponentBase} Self component | |
| 1689 | - */ | |
| 1690 | - }, { | |
| 1691 | - key: "getComponent", | |
| 1692 | - value: function getComponent() { | |
| 1693 | - return this.registerConfig.component; | |
| 1198 | + | |
| 1199 | +/***/ }), | |
| 1200 | +/* 40 */ | |
| 1201 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1202 | + | |
| 1203 | +// 19.1.2.14 / 15.2.3.14 Object.keys(O) | |
| 1204 | +var $keys = __webpack_require__(116); | |
| 1205 | +var enumBugKeys = __webpack_require__(78); | |
| 1206 | + | |
| 1207 | +module.exports = Object.keys || function keys(O) { | |
| 1208 | + return $keys(O, enumBugKeys); | |
| 1209 | +}; | |
| 1210 | + | |
| 1211 | + | |
| 1212 | +/***/ }), | |
| 1213 | +/* 41 */, | |
| 1214 | +/* 42 */ | |
| 1215 | +/***/ (function(module, exports) { | |
| 1216 | + | |
| 1217 | +// 7.2.1 RequireObjectCoercible(argument) | |
| 1218 | +module.exports = function (it) { | |
| 1219 | + if (it == undefined) throw TypeError("Can't call method on " + it); | |
| 1220 | + return it; | |
| 1221 | +}; | |
| 1222 | + | |
| 1223 | + | |
| 1224 | +/***/ }), | |
| 1225 | +/* 43 */ | |
| 1226 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1227 | + | |
| 1228 | +// 7.1.15 ToLength | |
| 1229 | +var toInteger = __webpack_require__(57); | |
| 1230 | +var min = Math.min; | |
| 1231 | +module.exports = function (it) { | |
| 1232 | + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | |
| 1233 | +}; | |
| 1234 | + | |
| 1235 | + | |
| 1236 | +/***/ }), | |
| 1237 | +/* 44 */ | |
| 1238 | +/***/ (function(module, exports) { | |
| 1239 | + | |
| 1240 | +module.exports = function (bitmap, value) { | |
| 1241 | + return { | |
| 1242 | + enumerable: !(bitmap & 1), | |
| 1243 | + configurable: !(bitmap & 2), | |
| 1244 | + writable: !(bitmap & 4), | |
| 1245 | + value: value | |
| 1246 | + }; | |
| 1247 | +}; | |
| 1248 | + | |
| 1249 | + | |
| 1250 | +/***/ }), | |
| 1251 | +/* 45 */ | |
| 1252 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1253 | + | |
| 1254 | +var anObject = __webpack_require__(18); | |
| 1255 | +var IE8_DOM_DEFINE = __webpack_require__(129); | |
| 1256 | +var toPrimitive = __webpack_require__(123); | |
| 1257 | +var dP = Object.defineProperty; | |
| 1258 | + | |
| 1259 | +exports.f = __webpack_require__(27) ? Object.defineProperty : function defineProperty(O, P, Attributes) { | |
| 1260 | + anObject(O); | |
| 1261 | + P = toPrimitive(P, true); | |
| 1262 | + anObject(Attributes); | |
| 1263 | + if (IE8_DOM_DEFINE) try { | |
| 1264 | + return dP(O, P, Attributes); | |
| 1265 | + } catch (e) { /* empty */ } | |
| 1266 | + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | |
| 1267 | + if ('value' in Attributes) O[P] = Attributes.value; | |
| 1268 | + return O; | |
| 1269 | +}; | |
| 1270 | + | |
| 1271 | + | |
| 1272 | +/***/ }), | |
| 1273 | +/* 46 */ | |
| 1274 | +/***/ (function(module, exports) { | |
| 1275 | + | |
| 1276 | +var toString = {}.toString; | |
| 1277 | + | |
| 1278 | +module.exports = function (it) { | |
| 1279 | + return toString.call(it).slice(8, -1); | |
| 1280 | +}; | |
| 1281 | + | |
| 1282 | + | |
| 1283 | +/***/ }), | |
| 1284 | +/* 47 */ | |
| 1285 | +/***/ (function(module, exports) { | |
| 1286 | + | |
| 1287 | +module.exports = true; | |
| 1288 | + | |
| 1289 | + | |
| 1290 | +/***/ }), | |
| 1291 | +/* 48 */ | |
| 1292 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1293 | + | |
| 1294 | +var _Symbol$iterator = __webpack_require__(151); | |
| 1295 | + | |
| 1296 | +var _Symbol = __webpack_require__(111); | |
| 1297 | + | |
| 1298 | +function _typeof(obj) { | |
| 1299 | + "@babel/helpers - typeof"; | |
| 1300 | + | |
| 1301 | + if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") { | |
| 1302 | + module.exports = _typeof = function _typeof(obj) { | |
| 1303 | + return typeof obj; | |
| 1304 | + }; | |
| 1305 | + } else { | |
| 1306 | + module.exports = _typeof = function _typeof(obj) { | |
| 1307 | + return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; | |
| 1308 | + }; | |
| 1309 | + } | |
| 1310 | + | |
| 1311 | + return _typeof(obj); | |
| 1312 | +} | |
| 1313 | + | |
| 1314 | +module.exports = _typeof; | |
| 1315 | + | |
| 1316 | +/***/ }), | |
| 1317 | +/* 49 */ | |
| 1318 | +/***/ (function(module, exports) { | |
| 1319 | + | |
| 1320 | +function _assertThisInitialized(self) { | |
| 1321 | + if (self === void 0) { | |
| 1322 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 1323 | + } | |
| 1324 | + | |
| 1325 | + return self; | |
| 1326 | +} | |
| 1327 | + | |
| 1328 | +module.exports = _assertThisInitialized; | |
| 1329 | + | |
| 1330 | +/***/ }), | |
| 1331 | +/* 50 */ | |
| 1332 | +/***/ (function(module, exports) { | |
| 1333 | + | |
| 1334 | +exports.f = {}.propertyIsEnumerable; | |
| 1335 | + | |
| 1336 | + | |
| 1337 | +/***/ }), | |
| 1338 | +/* 51 */ | |
| 1339 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1340 | + | |
| 1341 | +var pIE = __webpack_require__(50); | |
| 1342 | +var createDesc = __webpack_require__(44); | |
| 1343 | +var toIObject = __webpack_require__(20); | |
| 1344 | +var toPrimitive = __webpack_require__(74); | |
| 1345 | +var has = __webpack_require__(19); | |
| 1346 | +var IE8_DOM_DEFINE = __webpack_require__(114); | |
| 1347 | +var gOPD = Object.getOwnPropertyDescriptor; | |
| 1348 | + | |
| 1349 | +exports.f = __webpack_require__(14) ? gOPD : function getOwnPropertyDescriptor(O, P) { | |
| 1350 | + O = toIObject(O); | |
| 1351 | + P = toPrimitive(P, true); | |
| 1352 | + if (IE8_DOM_DEFINE) try { | |
| 1353 | + return gOPD(O, P); | |
| 1354 | + } catch (e) { /* empty */ } | |
| 1355 | + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); | |
| 1356 | +}; | |
| 1357 | + | |
| 1358 | + | |
| 1359 | +/***/ }), | |
| 1360 | +/* 52 */ | |
| 1361 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1362 | + | |
| 1363 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 1364 | +var anObject = __webpack_require__(13); | |
| 1365 | +var dPs = __webpack_require__(134); | |
| 1366 | +var enumBugKeys = __webpack_require__(78); | |
| 1367 | +var IE_PROTO = __webpack_require__(75)('IE_PROTO'); | |
| 1368 | +var Empty = function () { /* empty */ }; | |
| 1369 | +var PROTOTYPE = 'prototype'; | |
| 1370 | + | |
| 1371 | +// Create object with fake `null` prototype: use iframe Object with cleared prototype | |
| 1372 | +var createDict = function () { | |
| 1373 | + // Thrash, waste and sodomy: IE GC bug | |
| 1374 | + var iframe = __webpack_require__(92)('iframe'); | |
| 1375 | + var i = enumBugKeys.length; | |
| 1376 | + var lt = '<'; | |
| 1377 | + var gt = '>'; | |
| 1378 | + var iframeDocument; | |
| 1379 | + iframe.style.display = 'none'; | |
| 1380 | + __webpack_require__(131).appendChild(iframe); | |
| 1381 | + iframe.src = 'javascript:'; // eslint-disable-line no-script-url | |
| 1382 | + // createDict = iframe.contentWindow.Object; | |
| 1383 | + // html.removeChild(iframe); | |
| 1384 | + iframeDocument = iframe.contentWindow.document; | |
| 1385 | + iframeDocument.open(); | |
| 1386 | + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); | |
| 1387 | + iframeDocument.close(); | |
| 1388 | + createDict = iframeDocument.F; | |
| 1389 | + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | |
| 1390 | + return createDict(); | |
| 1391 | +}; | |
| 1392 | + | |
| 1393 | +module.exports = Object.create || function create(O, Properties) { | |
| 1394 | + var result; | |
| 1395 | + if (O !== null) { | |
| 1396 | + Empty[PROTOTYPE] = anObject(O); | |
| 1397 | + result = new Empty(); | |
| 1398 | + Empty[PROTOTYPE] = null; | |
| 1399 | + // add "__proto__" for Object.getPrototypeOf polyfill | |
| 1400 | + result[IE_PROTO] = O; | |
| 1401 | + } else result = createDict(); | |
| 1402 | + return Properties === undefined ? result : dPs(result, Properties); | |
| 1403 | +}; | |
| 1404 | + | |
| 1405 | + | |
| 1406 | +/***/ }), | |
| 1407 | +/* 53 */ | |
| 1408 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1409 | + | |
| 1410 | +var def = __webpack_require__(15).f; | |
| 1411 | +var has = __webpack_require__(19); | |
| 1412 | +var TAG = __webpack_require__(10)('toStringTag'); | |
| 1413 | + | |
| 1414 | +module.exports = function (it, tag, stat) { | |
| 1415 | + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | |
| 1416 | +}; | |
| 1417 | + | |
| 1418 | + | |
| 1419 | +/***/ }), | |
| 1420 | +/* 54 */ | |
| 1421 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1422 | + | |
| 1423 | +module.exports = __webpack_require__(239); | |
| 1424 | + | |
| 1425 | +/***/ }), | |
| 1426 | +/* 55 */ | |
| 1427 | +/***/ (function(module, exports) { | |
| 1428 | + | |
| 1429 | +var core = module.exports = { version: '2.6.11' }; | |
| 1430 | +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | |
| 1431 | + | |
| 1432 | + | |
| 1433 | +/***/ }), | |
| 1434 | +/* 56 */ | |
| 1435 | +/***/ (function(module, exports) { | |
| 1436 | + | |
| 1437 | +var toString = {}.toString; | |
| 1438 | + | |
| 1439 | +module.exports = function (it) { | |
| 1440 | + return toString.call(it).slice(8, -1); | |
| 1441 | +}; | |
| 1442 | + | |
| 1443 | + | |
| 1444 | +/***/ }), | |
| 1445 | +/* 57 */ | |
| 1446 | +/***/ (function(module, exports) { | |
| 1447 | + | |
| 1448 | +// 7.1.4 ToInteger | |
| 1449 | +var ceil = Math.ceil; | |
| 1450 | +var floor = Math.floor; | |
| 1451 | +module.exports = function (it) { | |
| 1452 | + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | |
| 1453 | +}; | |
| 1454 | + | |
| 1455 | + | |
| 1456 | +/***/ }), | |
| 1457 | +/* 58 */ | |
| 1458 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1459 | + | |
| 1460 | +"use strict"; | |
| 1461 | + | |
| 1462 | + | |
| 1463 | +var anObject = __webpack_require__(18); | |
| 1464 | +var toObject = __webpack_require__(96); | |
| 1465 | +var toLength = __webpack_require__(43); | |
| 1466 | +var toInteger = __webpack_require__(57); | |
| 1467 | +var advanceStringIndex = __webpack_require__(105); | |
| 1468 | +var regExpExec = __webpack_require__(94); | |
| 1469 | +var max = Math.max; | |
| 1470 | +var min = Math.min; | |
| 1471 | +var floor = Math.floor; | |
| 1472 | +var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g; | |
| 1473 | +var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g; | |
| 1474 | + | |
| 1475 | +var maybeToString = function (it) { | |
| 1476 | + return it === undefined ? it : String(it); | |
| 1477 | +}; | |
| 1478 | + | |
| 1479 | +// @@replace logic | |
| 1480 | +__webpack_require__(95)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) { | |
| 1481 | + return [ | |
| 1482 | + // `String.prototype.replace` method | |
| 1483 | + // https://tc39.github.io/ecma262/#sec-string.prototype.replace | |
| 1484 | + function replace(searchValue, replaceValue) { | |
| 1485 | + var O = defined(this); | |
| 1486 | + var fn = searchValue == undefined ? undefined : searchValue[REPLACE]; | |
| 1487 | + return fn !== undefined | |
| 1488 | + ? fn.call(searchValue, O, replaceValue) | |
| 1489 | + : $replace.call(String(O), searchValue, replaceValue); | |
| 1490 | + }, | |
| 1491 | + // `RegExp.prototype[@@replace]` method | |
| 1492 | + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace | |
| 1493 | + function (regexp, replaceValue) { | |
| 1494 | + var res = maybeCallNative($replace, regexp, this, replaceValue); | |
| 1495 | + if (res.done) return res.value; | |
| 1496 | + | |
| 1497 | + var rx = anObject(regexp); | |
| 1498 | + var S = String(this); | |
| 1499 | + var functionalReplace = typeof replaceValue === 'function'; | |
| 1500 | + if (!functionalReplace) replaceValue = String(replaceValue); | |
| 1501 | + var global = rx.global; | |
| 1502 | + if (global) { | |
| 1503 | + var fullUnicode = rx.unicode; | |
| 1504 | + rx.lastIndex = 0; | |
| 1505 | + } | |
| 1506 | + var results = []; | |
| 1507 | + while (true) { | |
| 1508 | + var result = regExpExec(rx, S); | |
| 1509 | + if (result === null) break; | |
| 1510 | + results.push(result); | |
| 1511 | + if (!global) break; | |
| 1512 | + var matchStr = String(result[0]); | |
| 1513 | + if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode); | |
| 1514 | + } | |
| 1515 | + var accumulatedResult = ''; | |
| 1516 | + var nextSourcePosition = 0; | |
| 1517 | + for (var i = 0; i < results.length; i++) { | |
| 1518 | + result = results[i]; | |
| 1519 | + var matched = String(result[0]); | |
| 1520 | + var position = max(min(toInteger(result.index), S.length), 0); | |
| 1521 | + var captures = []; | |
| 1522 | + // NOTE: This is equivalent to | |
| 1523 | + // captures = result.slice(1).map(maybeToString) | |
| 1524 | + // but for some reason `nativeSlice.call(result, 1, result.length)` (called in | |
| 1525 | + // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and | |
| 1526 | + // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. | |
| 1527 | + for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j])); | |
| 1528 | + var namedCaptures = result.groups; | |
| 1529 | + if (functionalReplace) { | |
| 1530 | + var replacerArgs = [matched].concat(captures, position, S); | |
| 1531 | + if (namedCaptures !== undefined) replacerArgs.push(namedCaptures); | |
| 1532 | + var replacement = String(replaceValue.apply(undefined, replacerArgs)); | |
| 1533 | + } else { | |
| 1534 | + replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); | |
| 1535 | + } | |
| 1536 | + if (position >= nextSourcePosition) { | |
| 1537 | + accumulatedResult += S.slice(nextSourcePosition, position) + replacement; | |
| 1538 | + nextSourcePosition = position + matched.length; | |
| 1539 | + } | |
| 1540 | + } | |
| 1541 | + return accumulatedResult + S.slice(nextSourcePosition); | |
| 1694 | 1542 | } |
| 1695 | - }, { | |
| 1696 | - key: "setRegisterConfig", | |
| 1697 | - value: function setRegisterConfig(config) { | |
| 1698 | - this.registerConfig = Object.freeze(config); | |
| 1543 | + ]; | |
| 1544 | + | |
| 1545 | + // https://tc39.github.io/ecma262/#sec-getsubstitution | |
| 1546 | + function getSubstitution(matched, str, position, captures, namedCaptures, replacement) { | |
| 1547 | + var tailPos = position + matched.length; | |
| 1548 | + var m = captures.length; | |
| 1549 | + var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED; | |
| 1550 | + if (namedCaptures !== undefined) { | |
| 1551 | + namedCaptures = toObject(namedCaptures); | |
| 1552 | + symbols = SUBSTITUTION_SYMBOLS; | |
| 1699 | 1553 | } |
| 1700 | - }]); | |
| 1701 | -}(_argsObject.default); | |
| 1554 | + return $replace.call(replacement, symbols, function (match, ch) { | |
| 1555 | + var capture; | |
| 1556 | + switch (ch.charAt(0)) { | |
| 1557 | + case '$': return '$'; | |
| 1558 | + case '&': return matched; | |
| 1559 | + case '`': return str.slice(0, position); | |
| 1560 | + case "'": return str.slice(tailPos); | |
| 1561 | + case '<': | |
| 1562 | + capture = namedCaptures[ch.slice(1, -1)]; | |
| 1563 | + break; | |
| 1564 | + default: // \d\d? | |
| 1565 | + var n = +ch; | |
| 1566 | + if (n === 0) return match; | |
| 1567 | + if (n > m) { | |
| 1568 | + var f = floor(n / 10); | |
| 1569 | + if (f === 0) return match; | |
| 1570 | + if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1); | |
| 1571 | + return match; | |
| 1572 | + } | |
| 1573 | + capture = captures[n - 1]; | |
| 1574 | + } | |
| 1575 | + return capture === undefined ? '' : capture; | |
| 1576 | + }); | |
| 1577 | + } | |
| 1578 | +}); | |
| 1579 | + | |
| 1580 | + | |
| 1581 | +/***/ }), | |
| 1582 | +/* 59 */ | |
| 1583 | +/***/ (function(module, exports) { | |
| 1584 | + | |
| 1585 | +var id = 0; | |
| 1586 | +var px = Math.random(); | |
| 1587 | +module.exports = function (key) { | |
| 1588 | + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | |
| 1589 | +}; | |
| 1590 | + | |
| 1591 | + | |
| 1592 | +/***/ }), | |
| 1593 | +/* 60 */ | |
| 1594 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1595 | + | |
| 1596 | +"use strict"; | |
| 1597 | + | |
| 1598 | +var $at = __webpack_require__(172)(true); | |
| 1599 | + | |
| 1600 | +// 21.1.3.27 String.prototype[@@iterator]() | |
| 1601 | +__webpack_require__(108)(String, 'String', function (iterated) { | |
| 1602 | + this._t = String(iterated); // target | |
| 1603 | + this._i = 0; // next index | |
| 1604 | +// 21.1.5.2.1 %StringIteratorPrototype%.next() | |
| 1605 | +}, function () { | |
| 1606 | + var O = this._t; | |
| 1607 | + var index = this._i; | |
| 1608 | + var point; | |
| 1609 | + if (index >= O.length) return { value: undefined, done: true }; | |
| 1610 | + point = $at(O, index); | |
| 1611 | + this._i += point.length; | |
| 1612 | + return { value: point, done: false }; | |
| 1613 | +}); | |
| 1614 | + | |
| 1615 | + | |
| 1616 | +/***/ }), | |
| 1617 | +/* 61 */ | |
| 1618 | +/***/ (function(module, exports) { | |
| 1619 | + | |
| 1620 | +var hasOwnProperty = {}.hasOwnProperty; | |
| 1621 | +module.exports = function (it, key) { | |
| 1622 | + return hasOwnProperty.call(it, key); | |
| 1623 | +}; | |
| 1624 | + | |
| 1625 | + | |
| 1626 | +/***/ }), | |
| 1627 | +/* 62 */ | |
| 1628 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1629 | + | |
| 1630 | +__webpack_require__(174); | |
| 1631 | +var global = __webpack_require__(8); | |
| 1632 | +var hide = __webpack_require__(24); | |
| 1633 | +var Iterators = __webpack_require__(34); | |
| 1634 | +var TO_STRING_TAG = __webpack_require__(10)('toStringTag'); | |
| 1635 | + | |
| 1636 | +var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + | |
| 1637 | + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + | |
| 1638 | + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + | |
| 1639 | + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + | |
| 1640 | + 'TextTrackList,TouchList').split(','); | |
| 1641 | + | |
| 1642 | +for (var i = 0; i < DOMIterables.length; i++) { | |
| 1643 | + var NAME = DOMIterables[i]; | |
| 1644 | + var Collection = global[NAME]; | |
| 1645 | + var proto = Collection && Collection.prototype; | |
| 1646 | + if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); | |
| 1647 | + Iterators[NAME] = Iterators.Array; | |
| 1648 | +} | |
| 1649 | + | |
| 1650 | + | |
| 1651 | +/***/ }), | |
| 1652 | +/* 63 */ | |
| 1653 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1654 | + | |
| 1655 | +exports.f = __webpack_require__(10); | |
| 1656 | + | |
| 1657 | + | |
| 1658 | +/***/ }), | |
| 1659 | +/* 64 */ | |
| 1660 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1661 | + | |
| 1662 | +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | |
| 1663 | +var has = __webpack_require__(19); | |
| 1664 | +var toObject = __webpack_require__(32); | |
| 1665 | +var IE_PROTO = __webpack_require__(75)('IE_PROTO'); | |
| 1666 | +var ObjectProto = Object.prototype; | |
| 1667 | + | |
| 1668 | +module.exports = Object.getPrototypeOf || function (O) { | |
| 1669 | + O = toObject(O); | |
| 1670 | + if (has(O, IE_PROTO)) return O[IE_PROTO]; | |
| 1671 | + if (typeof O.constructor == 'function' && O instanceof O.constructor) { | |
| 1672 | + return O.constructor.prototype; | |
| 1673 | + } return O instanceof Object ? ObjectProto : null; | |
| 1674 | +}; | |
| 1675 | + | |
| 1676 | + | |
| 1677 | +/***/ }), | |
| 1678 | +/* 65 */ | |
| 1679 | +/***/ (function(module, exports) { | |
| 1680 | + | |
| 1681 | +// 7.2.1 RequireObjectCoercible(argument) | |
| 1682 | +module.exports = function (it) { | |
| 1683 | + if (it == undefined) throw TypeError("Can't call method on " + it); | |
| 1684 | + return it; | |
| 1685 | +}; | |
| 1686 | + | |
| 1687 | + | |
| 1688 | +/***/ }), | |
| 1689 | +/* 66 */ | |
| 1690 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1691 | + | |
| 1692 | +var core = __webpack_require__(55); | |
| 1693 | +var global = __webpack_require__(17); | |
| 1694 | +var SHARED = '__core-js_shared__'; | |
| 1695 | +var store = global[SHARED] || (global[SHARED] = {}); | |
| 1696 | + | |
| 1697 | +(module.exports = function (key, value) { | |
| 1698 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 1699 | +})('versions', []).push({ | |
| 1700 | + version: core.version, | |
| 1701 | + mode: __webpack_require__(110) ? 'pure' : 'global', | |
| 1702 | + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' | |
| 1703 | +}); | |
| 1704 | + | |
| 1705 | + | |
| 1706 | +/***/ }), | |
| 1707 | +/* 67 */ | |
| 1708 | +/***/ (function(module, exports) { | |
| 1709 | + | |
| 1710 | +var id = 0; | |
| 1711 | +var px = Math.random(); | |
| 1712 | +module.exports = function (key) { | |
| 1713 | + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | |
| 1714 | +}; | |
| 1715 | + | |
| 1716 | + | |
| 1717 | +/***/ }), | |
| 1718 | +/* 68 */ | |
| 1719 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1720 | + | |
| 1721 | +// 7.1.15 ToLength | |
| 1722 | +var toInteger = __webpack_require__(77); | |
| 1723 | +var min = Math.min; | |
| 1724 | +module.exports = function (it) { | |
| 1725 | + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | |
| 1726 | +}; | |
| 1727 | + | |
| 1728 | + | |
| 1729 | +/***/ }), | |
| 1730 | +/* 69 */ | |
| 1731 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1732 | + | |
| 1702 | 1733 | /** |
| 1703 | - * @type {Object} | |
| 1734 | + * Copyright (c) 2014-present, Facebook, Inc. | |
| 1735 | + * | |
| 1736 | + * This source code is licensed under the MIT license found in the | |
| 1737 | + * LICENSE file in the root directory of this source tree. | |
| 1704 | 1738 | */ |
| 1705 | -(0, _defineProperty2.default)(CommandInfra, "registerConfig", null); | |
| 1706 | 1739 | |
| 1707 | -/***/ }), | |
| 1740 | +var runtime = (function (exports) { | |
| 1741 | + "use strict"; | |
| 1708 | 1742 | |
| 1709 | -/***/ "../modules/web-cli/assets/js/modules/commands/close.js": | |
| 1710 | -/*!**************************************************************!*\ | |
| 1711 | - !*** ../modules/web-cli/assets/js/modules/commands/close.js ***! | |
| 1712 | - \**************************************************************/ | |
| 1713 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1743 | + var Op = Object.prototype; | |
| 1744 | + var hasOwn = Op.hasOwnProperty; | |
| 1745 | + var undefined; // More compressible than void 0. | |
| 1746 | + var $Symbol = typeof Symbol === "function" ? Symbol : {}; | |
| 1747 | + var iteratorSymbol = $Symbol.iterator || "@@iterator"; | |
| 1748 | + var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; | |
| 1749 | + var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; | |
| 1714 | 1750 | |
| 1715 | -"use strict"; | |
| 1751 | + function define(obj, key, value) { | |
| 1752 | + Object.defineProperty(obj, key, { | |
| 1753 | + value: value, | |
| 1754 | + enumerable: true, | |
| 1755 | + configurable: true, | |
| 1756 | + writable: true | |
| 1757 | + }); | |
| 1758 | + return obj[key]; | |
| 1759 | + } | |
| 1760 | + try { | |
| 1761 | + // IE 8 has a broken Object.defineProperty that only works on DOM objects. | |
| 1762 | + define({}, ""); | |
| 1763 | + } catch (err) { | |
| 1764 | + define = function(obj, key, value) { | |
| 1765 | + return obj[key] = value; | |
| 1766 | + }; | |
| 1767 | + } | |
| 1716 | 1768 | |
| 1769 | + function wrap(innerFn, outerFn, self, tryLocsList) { | |
| 1770 | + // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. | |
| 1771 | + var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; | |
| 1772 | + var generator = Object.create(protoGenerator.prototype); | |
| 1773 | + var context = new Context(tryLocsList || []); | |
| 1717 | 1774 | |
| 1718 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1719 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1720 | - value: true | |
| 1721 | -})); | |
| 1722 | -exports["default"] = exports.Close = void 0; | |
| 1723 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1724 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1725 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1726 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1727 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1728 | -var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); | |
| 1729 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1730 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1731 | -var Close = exports.Close = /*#__PURE__*/function (_CommandBase) { | |
| 1732 | - function Close() { | |
| 1733 | - (0, _classCallCheck2.default)(this, Close); | |
| 1734 | - return _callSuper(this, Close, arguments); | |
| 1775 | + // The ._invoke method unifies the implementations of the .next, | |
| 1776 | + // .throw, and .return methods. | |
| 1777 | + generator._invoke = makeInvokeMethod(innerFn, self, context); | |
| 1778 | + | |
| 1779 | + return generator; | |
| 1735 | 1780 | } |
| 1736 | - (0, _inherits2.default)(Close, _CommandBase); | |
| 1737 | - return (0, _createClass2.default)(Close, [{ | |
| 1738 | - key: "apply", | |
| 1739 | - value: function apply() { | |
| 1740 | - this.component.close(); | |
| 1781 | + exports.wrap = wrap; | |
| 1782 | + | |
| 1783 | + // Try/catch helper to minimize deoptimizations. Returns a completion | |
| 1784 | + // record like context.tryEntries[i].completion. This interface could | |
| 1785 | + // have been (and was previously) designed to take a closure to be | |
| 1786 | + // invoked without arguments, but in all the cases we care about we | |
| 1787 | + // already have an existing method we want to call, so there's no need | |
| 1788 | + // to create a new function object. We can even get away with assuming | |
| 1789 | + // the method takes exactly one argument, since that happens to be true | |
| 1790 | + // in every case, so we don't have to touch the arguments object. The | |
| 1791 | + // only additional allocation required is the completion record, which | |
| 1792 | + // has a stable shape and so hopefully should be cheap to allocate. | |
| 1793 | + function tryCatch(fn, obj, arg) { | |
| 1794 | + try { | |
| 1795 | + return { type: "normal", arg: fn.call(obj, arg) }; | |
| 1796 | + } catch (err) { | |
| 1797 | + return { type: "throw", arg: err }; | |
| 1741 | 1798 | } |
| 1742 | - }]); | |
| 1743 | -}(_commandBase.default); | |
| 1744 | -var _default = exports["default"] = Close; | |
| 1799 | + } | |
| 1745 | 1800 | |
| 1746 | -/***/ }), | |
| 1801 | + var GenStateSuspendedStart = "suspendedStart"; | |
| 1802 | + var GenStateSuspendedYield = "suspendedYield"; | |
| 1803 | + var GenStateExecuting = "executing"; | |
| 1804 | + var GenStateCompleted = "completed"; | |
| 1747 | 1805 | |
| 1748 | -/***/ "../modules/web-cli/assets/js/modules/commands/index.js": | |
| 1749 | -/*!**************************************************************!*\ | |
| 1750 | - !*** ../modules/web-cli/assets/js/modules/commands/index.js ***! | |
| 1751 | - \**************************************************************/ | |
| 1752 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1806 | + // Returning this object from the innerFn has the same effect as | |
| 1807 | + // breaking out of the dispatch switch statement. | |
| 1808 | + var ContinueSentinel = {}; | |
| 1753 | 1809 | |
| 1754 | -"use strict"; | |
| 1810 | + // Dummy constructor functions that we use as the .constructor and | |
| 1811 | + // .constructor.prototype properties for functions that return Generator | |
| 1812 | + // objects. For full spec compliance, you may wish to configure your | |
| 1813 | + // minifier not to mangle the names of these two functions. | |
| 1814 | + function Generator() {} | |
| 1815 | + function GeneratorFunction() {} | |
| 1816 | + function GeneratorFunctionPrototype() {} | |
| 1755 | 1817 | |
| 1818 | + // This is a polyfill for %IteratorPrototype% for environments that | |
| 1819 | + // don't natively support it. | |
| 1820 | + var IteratorPrototype = {}; | |
| 1821 | + IteratorPrototype[iteratorSymbol] = function () { | |
| 1822 | + return this; | |
| 1823 | + }; | |
| 1756 | 1824 | |
| 1757 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1758 | - value: true | |
| 1759 | -})); | |
| 1760 | -Object.defineProperty(exports, "Close", ({ | |
| 1761 | - enumerable: true, | |
| 1762 | - get: function get() { | |
| 1763 | - return _close.Close; | |
| 1825 | + var getProto = Object.getPrototypeOf; | |
| 1826 | + var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); | |
| 1827 | + if (NativeIteratorPrototype && | |
| 1828 | + NativeIteratorPrototype !== Op && | |
| 1829 | + hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { | |
| 1830 | + // This environment has a native %IteratorPrototype%; use it instead | |
| 1831 | + // of the polyfill. | |
| 1832 | + IteratorPrototype = NativeIteratorPrototype; | |
| 1764 | 1833 | } |
| 1765 | -})); | |
| 1766 | -Object.defineProperty(exports, "Open", ({ | |
| 1767 | - enumerable: true, | |
| 1768 | - get: function get() { | |
| 1769 | - return _open.Open; | |
| 1834 | + | |
| 1835 | + var Gp = GeneratorFunctionPrototype.prototype = | |
| 1836 | + Generator.prototype = Object.create(IteratorPrototype); | |
| 1837 | + GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype; | |
| 1838 | + GeneratorFunctionPrototype.constructor = GeneratorFunction; | |
| 1839 | + GeneratorFunction.displayName = define( | |
| 1840 | + GeneratorFunctionPrototype, | |
| 1841 | + toStringTagSymbol, | |
| 1842 | + "GeneratorFunction" | |
| 1843 | + ); | |
| 1844 | + | |
| 1845 | + // Helper for defining the .next, .throw, and .return methods of the | |
| 1846 | + // Iterator interface in terms of a single ._invoke method. | |
| 1847 | + function defineIteratorMethods(prototype) { | |
| 1848 | + ["next", "throw", "return"].forEach(function(method) { | |
| 1849 | + define(prototype, method, function(arg) { | |
| 1850 | + return this._invoke(method, arg); | |
| 1851 | + }); | |
| 1852 | + }); | |
| 1770 | 1853 | } |
| 1771 | -})); | |
| 1772 | -Object.defineProperty(exports, "Toggle", ({ | |
| 1773 | - enumerable: true, | |
| 1774 | - get: function get() { | |
| 1775 | - return _toggle.Toggle; | |
| 1854 | + | |
| 1855 | + exports.isGeneratorFunction = function(genFun) { | |
| 1856 | + var ctor = typeof genFun === "function" && genFun.constructor; | |
| 1857 | + return ctor | |
| 1858 | + ? ctor === GeneratorFunction || | |
| 1859 | + // For the native GeneratorFunction constructor, the best we can | |
| 1860 | + // do is to check its .name property. | |
| 1861 | + (ctor.displayName || ctor.name) === "GeneratorFunction" | |
| 1862 | + : false; | |
| 1863 | + }; | |
| 1864 | + | |
| 1865 | + exports.mark = function(genFun) { | |
| 1866 | + if (Object.setPrototypeOf) { | |
| 1867 | + Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); | |
| 1868 | + } else { | |
| 1869 | + genFun.__proto__ = GeneratorFunctionPrototype; | |
| 1870 | + define(genFun, toStringTagSymbol, "GeneratorFunction"); | |
| 1871 | + } | |
| 1872 | + genFun.prototype = Object.create(Gp); | |
| 1873 | + return genFun; | |
| 1874 | + }; | |
| 1875 | + | |
| 1876 | + // Within the body of any async function, `await x` is transformed to | |
| 1877 | + // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test | |
| 1878 | + // `hasOwn.call(value, "__await")` to determine if the yielded value is | |
| 1879 | + // meant to be awaited. | |
| 1880 | + exports.awrap = function(arg) { | |
| 1881 | + return { __await: arg }; | |
| 1882 | + }; | |
| 1883 | + | |
| 1884 | + function AsyncIterator(generator, PromiseImpl) { | |
| 1885 | + function invoke(method, arg, resolve, reject) { | |
| 1886 | + var record = tryCatch(generator[method], generator, arg); | |
| 1887 | + if (record.type === "throw") { | |
| 1888 | + reject(record.arg); | |
| 1889 | + } else { | |
| 1890 | + var result = record.arg; | |
| 1891 | + var value = result.value; | |
| 1892 | + if (value && | |
| 1893 | + typeof value === "object" && | |
| 1894 | + hasOwn.call(value, "__await")) { | |
| 1895 | + return PromiseImpl.resolve(value.__await).then(function(value) { | |
| 1896 | + invoke("next", value, resolve, reject); | |
| 1897 | + }, function(err) { | |
| 1898 | + invoke("throw", err, resolve, reject); | |
| 1899 | + }); | |
| 1900 | + } | |
| 1901 | + | |
| 1902 | + return PromiseImpl.resolve(value).then(function(unwrapped) { | |
| 1903 | + // When a yielded Promise is resolved, its final value becomes | |
| 1904 | + // the .value of the Promise<{value,done}> result for the | |
| 1905 | + // current iteration. | |
| 1906 | + result.value = unwrapped; | |
| 1907 | + resolve(result); | |
| 1908 | + }, function(error) { | |
| 1909 | + // If a rejected Promise was yielded, throw the rejection back | |
| 1910 | + // into the async generator function so it can be handled there. | |
| 1911 | + return invoke("throw", error, resolve, reject); | |
| 1912 | + }); | |
| 1913 | + } | |
| 1914 | + } | |
| 1915 | + | |
| 1916 | + var previousPromise; | |
| 1917 | + | |
| 1918 | + function enqueue(method, arg) { | |
| 1919 | + function callInvokeWithMethodAndArg() { | |
| 1920 | + return new PromiseImpl(function(resolve, reject) { | |
| 1921 | + invoke(method, arg, resolve, reject); | |
| 1922 | + }); | |
| 1923 | + } | |
| 1924 | + | |
| 1925 | + return previousPromise = | |
| 1926 | + // If enqueue has been called before, then we want to wait until | |
| 1927 | + // all previous Promises have been resolved before calling invoke, | |
| 1928 | + // so that results are always delivered in the correct order. If | |
| 1929 | + // enqueue has not been called before, then it is important to | |
| 1930 | + // call invoke immediately, without waiting on a callback to fire, | |
| 1931 | + // so that the async generator function has the opportunity to do | |
| 1932 | + // any necessary setup in a predictable way. This predictability | |
| 1933 | + // is why the Promise constructor synchronously invokes its | |
| 1934 | + // executor callback, and why async functions synchronously | |
| 1935 | + // execute code before the first await. Since we implement simple | |
| 1936 | + // async functions in terms of async generators, it is especially | |
| 1937 | + // important to get this right, even though it requires care. | |
| 1938 | + previousPromise ? previousPromise.then( | |
| 1939 | + callInvokeWithMethodAndArg, | |
| 1940 | + // Avoid propagating failures to Promises returned by later | |
| 1941 | + // invocations of the iterator. | |
| 1942 | + callInvokeWithMethodAndArg | |
| 1943 | + ) : callInvokeWithMethodAndArg(); | |
| 1944 | + } | |
| 1945 | + | |
| 1946 | + // Define the unified helper method that is used to implement .next, | |
| 1947 | + // .throw, and .return (see defineIteratorMethods). | |
| 1948 | + this._invoke = enqueue; | |
| 1776 | 1949 | } |
| 1777 | -})); | |
| 1778 | -var _close = __webpack_require__(/*! ./close */ "../modules/web-cli/assets/js/modules/commands/close.js"); | |
| 1779 | -var _open = __webpack_require__(/*! ./open */ "../modules/web-cli/assets/js/modules/commands/open.js"); | |
| 1780 | -var _toggle = __webpack_require__(/*! ./toggle */ "../modules/web-cli/assets/js/modules/commands/toggle.js"); | |
| 1781 | 1950 | |
| 1951 | + defineIteratorMethods(AsyncIterator.prototype); | |
| 1952 | + AsyncIterator.prototype[asyncIteratorSymbol] = function () { | |
| 1953 | + return this; | |
| 1954 | + }; | |
| 1955 | + exports.AsyncIterator = AsyncIterator; | |
| 1956 | + | |
| 1957 | + // Note that simple async functions are implemented on top of | |
| 1958 | + // AsyncIterator objects; they just return a Promise for the value of | |
| 1959 | + // the final result produced by the iterator. | |
| 1960 | + exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) { | |
| 1961 | + if (PromiseImpl === void 0) PromiseImpl = Promise; | |
| 1962 | + | |
| 1963 | + var iter = new AsyncIterator( | |
| 1964 | + wrap(innerFn, outerFn, self, tryLocsList), | |
| 1965 | + PromiseImpl | |
| 1966 | + ); | |
| 1967 | + | |
| 1968 | + return exports.isGeneratorFunction(outerFn) | |
| 1969 | + ? iter // If outerFn is a generator, return the full iterator. | |
| 1970 | + : iter.next().then(function(result) { | |
| 1971 | + return result.done ? result.value : iter.next(); | |
| 1972 | + }); | |
| 1973 | + }; | |
| 1974 | + | |
| 1975 | + function makeInvokeMethod(innerFn, self, context) { | |
| 1976 | + var state = GenStateSuspendedStart; | |
| 1977 | + | |
| 1978 | + return function invoke(method, arg) { | |
| 1979 | + if (state === GenStateExecuting) { | |
| 1980 | + throw new Error("Generator is already running"); | |
| 1981 | + } | |
| 1982 | + | |
| 1983 | + if (state === GenStateCompleted) { | |
| 1984 | + if (method === "throw") { | |
| 1985 | + throw arg; | |
| 1986 | + } | |
| 1987 | + | |
| 1988 | + // Be forgiving, per 25.3.3.3.3 of the spec: | |
| 1989 | + // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume | |
| 1990 | + return doneResult(); | |
| 1991 | + } | |
| 1992 | + | |
| 1993 | + context.method = method; | |
| 1994 | + context.arg = arg; | |
| 1995 | + | |
| 1996 | + while (true) { | |
| 1997 | + var delegate = context.delegate; | |
| 1998 | + if (delegate) { | |
| 1999 | + var delegateResult = maybeInvokeDelegate(delegate, context); | |
| 2000 | + if (delegateResult) { | |
| 2001 | + if (delegateResult === ContinueSentinel) continue; | |
| 2002 | + return delegateResult; | |
| 2003 | + } | |
| 2004 | + } | |
| 2005 | + | |
| 2006 | + if (context.method === "next") { | |
| 2007 | + // Setting context._sent for legacy support of Babel's | |
| 2008 | + // function.sent implementation. | |
| 2009 | + context.sent = context._sent = context.arg; | |
| 2010 | + | |
| 2011 | + } else if (context.method === "throw") { | |
| 2012 | + if (state === GenStateSuspendedStart) { | |
| 2013 | + state = GenStateCompleted; | |
| 2014 | + throw context.arg; | |
| 2015 | + } | |
| 2016 | + | |
| 2017 | + context.dispatchException(context.arg); | |
| 2018 | + | |
| 2019 | + } else if (context.method === "return") { | |
| 2020 | + context.abrupt("return", context.arg); | |
| 2021 | + } | |
| 2022 | + | |
| 2023 | + state = GenStateExecuting; | |
| 2024 | + | |
| 2025 | + var record = tryCatch(innerFn, self, context); | |
| 2026 | + if (record.type === "normal") { | |
| 2027 | + // If an exception is thrown from innerFn, we leave state === | |
| 2028 | + // GenStateExecuting and loop back for another invocation. | |
| 2029 | + state = context.done | |
| 2030 | + ? GenStateCompleted | |
| 2031 | + : GenStateSuspendedYield; | |
| 2032 | + | |
| 2033 | + if (record.arg === ContinueSentinel) { | |
| 2034 | + continue; | |
| 2035 | + } | |
| 2036 | + | |
| 2037 | + return { | |
| 2038 | + value: record.arg, | |
| 2039 | + done: context.done | |
| 2040 | + }; | |
| 2041 | + | |
| 2042 | + } else if (record.type === "throw") { | |
| 2043 | + state = GenStateCompleted; | |
| 2044 | + // Dispatch the exception by looping back around to the | |
| 2045 | + // context.dispatchException(context.arg) call above. | |
| 2046 | + context.method = "throw"; | |
| 2047 | + context.arg = record.arg; | |
| 2048 | + } | |
| 2049 | + } | |
| 2050 | + }; | |
| 2051 | + } | |
| 2052 | + | |
| 2053 | + // Call delegate.iterator[context.method](context.arg) and handle the | |
| 2054 | + // result, either by returning a { value, done } result from the | |
| 2055 | + // delegate iterator, or by modifying context.method and context.arg, | |
| 2056 | + // setting context.delegate to null, and returning the ContinueSentinel. | |
| 2057 | + function maybeInvokeDelegate(delegate, context) { | |
| 2058 | + var method = delegate.iterator[context.method]; | |
| 2059 | + if (method === undefined) { | |
| 2060 | + // A .throw or .return when the delegate iterator has no .throw | |
| 2061 | + // method always terminates the yield* loop. | |
| 2062 | + context.delegate = null; | |
| 2063 | + | |
| 2064 | + if (context.method === "throw") { | |
| 2065 | + // Note: ["return"] must be used for ES3 parsing compatibility. | |
| 2066 | + if (delegate.iterator["return"]) { | |
| 2067 | + // If the delegate iterator has a return method, give it a | |
| 2068 | + // chance to clean up. | |
| 2069 | + context.method = "return"; | |
| 2070 | + context.arg = undefined; | |
| 2071 | + maybeInvokeDelegate(delegate, context); | |
| 2072 | + | |
| 2073 | + if (context.method === "throw") { | |
| 2074 | + // If maybeInvokeDelegate(context) changed context.method from | |
| 2075 | + // "return" to "throw", let that override the TypeError below. | |
| 2076 | + return ContinueSentinel; | |
| 2077 | + } | |
| 2078 | + } | |
| 2079 | + | |
| 2080 | + context.method = "throw"; | |
| 2081 | + context.arg = new TypeError( | |
| 2082 | + "The iterator does not provide a 'throw' method"); | |
| 2083 | + } | |
| 2084 | + | |
| 2085 | + return ContinueSentinel; | |
| 2086 | + } | |
| 2087 | + | |
| 2088 | + var record = tryCatch(method, delegate.iterator, context.arg); | |
| 2089 | + | |
| 2090 | + if (record.type === "throw") { | |
| 2091 | + context.method = "throw"; | |
| 2092 | + context.arg = record.arg; | |
| 2093 | + context.delegate = null; | |
| 2094 | + return ContinueSentinel; | |
| 2095 | + } | |
| 2096 | + | |
| 2097 | + var info = record.arg; | |
| 2098 | + | |
| 2099 | + if (! info) { | |
| 2100 | + context.method = "throw"; | |
| 2101 | + context.arg = new TypeError("iterator result is not an object"); | |
| 2102 | + context.delegate = null; | |
| 2103 | + return ContinueSentinel; | |
| 2104 | + } | |
| 2105 | + | |
| 2106 | + if (info.done) { | |
| 2107 | + // Assign the result of the finished delegate to the temporary | |
| 2108 | + // variable specified by delegate.resultName (see delegateYield). | |
| 2109 | + context[delegate.resultName] = info.value; | |
| 2110 | + | |
| 2111 | + // Resume execution at the desired location (see delegateYield). | |
| 2112 | + context.next = delegate.nextLoc; | |
| 2113 | + | |
| 2114 | + // If context.method was "throw" but the delegate handled the | |
| 2115 | + // exception, let the outer generator proceed normally. If | |
| 2116 | + // context.method was "next", forget context.arg since it has been | |
| 2117 | + // "consumed" by the delegate iterator. If context.method was | |
| 2118 | + // "return", allow the original .return call to continue in the | |
| 2119 | + // outer generator. | |
| 2120 | + if (context.method !== "return") { | |
| 2121 | + context.method = "next"; | |
| 2122 | + context.arg = undefined; | |
| 2123 | + } | |
| 2124 | + | |
| 2125 | + } else { | |
| 2126 | + // Re-yield the result returned by the delegate method. | |
| 2127 | + return info; | |
| 2128 | + } | |
| 2129 | + | |
| 2130 | + // The delegate iterator is finished, so forget it and continue with | |
| 2131 | + // the outer generator. | |
| 2132 | + context.delegate = null; | |
| 2133 | + return ContinueSentinel; | |
| 2134 | + } | |
| 2135 | + | |
| 2136 | + // Define Generator.prototype.{next,throw,return} in terms of the | |
| 2137 | + // unified ._invoke helper method. | |
| 2138 | + defineIteratorMethods(Gp); | |
| 2139 | + | |
| 2140 | + define(Gp, toStringTagSymbol, "Generator"); | |
| 2141 | + | |
| 2142 | + // A Generator should always return itself as the iterator object when the | |
| 2143 | + // @@iterator function is called on it. Some browsers' implementations of the | |
| 2144 | + // iterator prototype chain incorrectly implement this, causing the Generator | |
| 2145 | + // object to not be returned from this call. This ensures that doesn't happen. | |
| 2146 | + // See https://github.com/facebook/regenerator/issues/274 for more details. | |
| 2147 | + Gp[iteratorSymbol] = function() { | |
| 2148 | + return this; | |
| 2149 | + }; | |
| 2150 | + | |
| 2151 | + Gp.toString = function() { | |
| 2152 | + return "[object Generator]"; | |
| 2153 | + }; | |
| 2154 | + | |
| 2155 | + function pushTryEntry(locs) { | |
| 2156 | + var entry = { tryLoc: locs[0] }; | |
| 2157 | + | |
| 2158 | + if (1 in locs) { | |
| 2159 | + entry.catchLoc = locs[1]; | |
| 2160 | + } | |
| 2161 | + | |
| 2162 | + if (2 in locs) { | |
| 2163 | + entry.finallyLoc = locs[2]; | |
| 2164 | + entry.afterLoc = locs[3]; | |
| 2165 | + } | |
| 2166 | + | |
| 2167 | + this.tryEntries.push(entry); | |
| 2168 | + } | |
| 2169 | + | |
| 2170 | + function resetTryEntry(entry) { | |
| 2171 | + var record = entry.completion || {}; | |
| 2172 | + record.type = "normal"; | |
| 2173 | + delete record.arg; | |
| 2174 | + entry.completion = record; | |
| 2175 | + } | |
| 2176 | + | |
| 2177 | + function Context(tryLocsList) { | |
| 2178 | + // The root entry object (effectively a try statement without a catch | |
| 2179 | + // or a finally block) gives us a place to store values thrown from | |
| 2180 | + // locations where there is no enclosing try statement. | |
| 2181 | + this.tryEntries = [{ tryLoc: "root" }]; | |
| 2182 | + tryLocsList.forEach(pushTryEntry, this); | |
| 2183 | + this.reset(true); | |
| 2184 | + } | |
| 2185 | + | |
| 2186 | + exports.keys = function(object) { | |
| 2187 | + var keys = []; | |
| 2188 | + for (var key in object) { | |
| 2189 | + keys.push(key); | |
| 2190 | + } | |
| 2191 | + keys.reverse(); | |
| 2192 | + | |
| 2193 | + // Rather than returning an object with a next method, we keep | |
| 2194 | + // things simple and return the next function itself. | |
| 2195 | + return function next() { | |
| 2196 | + while (keys.length) { | |
| 2197 | + var key = keys.pop(); | |
| 2198 | + if (key in object) { | |
| 2199 | + next.value = key; | |
| 2200 | + next.done = false; | |
| 2201 | + return next; | |
| 2202 | + } | |
| 2203 | + } | |
| 2204 | + | |
| 2205 | + // To avoid creating an additional object, we just hang the .value | |
| 2206 | + // and .done properties off the next function object itself. This | |
| 2207 | + // also ensures that the minifier will not anonymize the function. | |
| 2208 | + next.done = true; | |
| 2209 | + return next; | |
| 2210 | + }; | |
| 2211 | + }; | |
| 2212 | + | |
| 2213 | + function values(iterable) { | |
| 2214 | + if (iterable) { | |
| 2215 | + var iteratorMethod = iterable[iteratorSymbol]; | |
| 2216 | + if (iteratorMethod) { | |
| 2217 | + return iteratorMethod.call(iterable); | |
| 2218 | + } | |
| 2219 | + | |
| 2220 | + if (typeof iterable.next === "function") { | |
| 2221 | + return iterable; | |
| 2222 | + } | |
| 2223 | + | |
| 2224 | + if (!isNaN(iterable.length)) { | |
| 2225 | + var i = -1, next = function next() { | |
| 2226 | + while (++i < iterable.length) { | |
| 2227 | + if (hasOwn.call(iterable, i)) { | |
| 2228 | + next.value = iterable[i]; | |
| 2229 | + next.done = false; | |
| 2230 | + return next; | |
| 2231 | + } | |
| 2232 | + } | |
| 2233 | + | |
| 2234 | + next.value = undefined; | |
| 2235 | + next.done = true; | |
| 2236 | + | |
| 2237 | + return next; | |
| 2238 | + }; | |
| 2239 | + | |
| 2240 | + return next.next = next; | |
| 2241 | + } | |
| 2242 | + } | |
| 2243 | + | |
| 2244 | + // Return an iterator with no values. | |
| 2245 | + return { next: doneResult }; | |
| 2246 | + } | |
| 2247 | + exports.values = values; | |
| 2248 | + | |
| 2249 | + function doneResult() { | |
| 2250 | + return { value: undefined, done: true }; | |
| 2251 | + } | |
| 2252 | + | |
| 2253 | + Context.prototype = { | |
| 2254 | + constructor: Context, | |
| 2255 | + | |
| 2256 | + reset: function(skipTempReset) { | |
| 2257 | + this.prev = 0; | |
| 2258 | + this.next = 0; | |
| 2259 | + // Resetting context._sent for legacy support of Babel's | |
| 2260 | + // function.sent implementation. | |
| 2261 | + this.sent = this._sent = undefined; | |
| 2262 | + this.done = false; | |
| 2263 | + this.delegate = null; | |
| 2264 | + | |
| 2265 | + this.method = "next"; | |
| 2266 | + this.arg = undefined; | |
| 2267 | + | |
| 2268 | + this.tryEntries.forEach(resetTryEntry); | |
| 2269 | + | |
| 2270 | + if (!skipTempReset) { | |
| 2271 | + for (var name in this) { | |
| 2272 | + // Not sure about the optimal order of these conditions: | |
| 2273 | + if (name.charAt(0) === "t" && | |
| 2274 | + hasOwn.call(this, name) && | |
| 2275 | + !isNaN(+name.slice(1))) { | |
| 2276 | + this[name] = undefined; | |
| 2277 | + } | |
| 2278 | + } | |
| 2279 | + } | |
| 2280 | + }, | |
| 2281 | + | |
| 2282 | + stop: function() { | |
| 2283 | + this.done = true; | |
| 2284 | + | |
| 2285 | + var rootEntry = this.tryEntries[0]; | |
| 2286 | + var rootRecord = rootEntry.completion; | |
| 2287 | + if (rootRecord.type === "throw") { | |
| 2288 | + throw rootRecord.arg; | |
| 2289 | + } | |
| 2290 | + | |
| 2291 | + return this.rval; | |
| 2292 | + }, | |
| 2293 | + | |
| 2294 | + dispatchException: function(exception) { | |
| 2295 | + if (this.done) { | |
| 2296 | + throw exception; | |
| 2297 | + } | |
| 2298 | + | |
| 2299 | + var context = this; | |
| 2300 | + function handle(loc, caught) { | |
| 2301 | + record.type = "throw"; | |
| 2302 | + record.arg = exception; | |
| 2303 | + context.next = loc; | |
| 2304 | + | |
| 2305 | + if (caught) { | |
| 2306 | + // If the dispatched exception was caught by a catch block, | |
| 2307 | + // then let that catch block handle the exception normally. | |
| 2308 | + context.method = "next"; | |
| 2309 | + context.arg = undefined; | |
| 2310 | + } | |
| 2311 | + | |
| 2312 | + return !! caught; | |
| 2313 | + } | |
| 2314 | + | |
| 2315 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 2316 | + var entry = this.tryEntries[i]; | |
| 2317 | + var record = entry.completion; | |
| 2318 | + | |
| 2319 | + if (entry.tryLoc === "root") { | |
| 2320 | + // Exception thrown outside of any try block that could handle | |
| 2321 | + // it, so set the completion value of the entire function to | |
| 2322 | + // throw the exception. | |
| 2323 | + return handle("end"); | |
| 2324 | + } | |
| 2325 | + | |
| 2326 | + if (entry.tryLoc <= this.prev) { | |
| 2327 | + var hasCatch = hasOwn.call(entry, "catchLoc"); | |
| 2328 | + var hasFinally = hasOwn.call(entry, "finallyLoc"); | |
| 2329 | + | |
| 2330 | + if (hasCatch && hasFinally) { | |
| 2331 | + if (this.prev < entry.catchLoc) { | |
| 2332 | + return handle(entry.catchLoc, true); | |
| 2333 | + } else if (this.prev < entry.finallyLoc) { | |
| 2334 | + return handle(entry.finallyLoc); | |
| 2335 | + } | |
| 2336 | + | |
| 2337 | + } else if (hasCatch) { | |
| 2338 | + if (this.prev < entry.catchLoc) { | |
| 2339 | + return handle(entry.catchLoc, true); | |
| 2340 | + } | |
| 2341 | + | |
| 2342 | + } else if (hasFinally) { | |
| 2343 | + if (this.prev < entry.finallyLoc) { | |
| 2344 | + return handle(entry.finallyLoc); | |
| 2345 | + } | |
| 2346 | + | |
| 2347 | + } else { | |
| 2348 | + throw new Error("try statement without catch or finally"); | |
| 2349 | + } | |
| 2350 | + } | |
| 2351 | + } | |
| 2352 | + }, | |
| 2353 | + | |
| 2354 | + abrupt: function(type, arg) { | |
| 2355 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 2356 | + var entry = this.tryEntries[i]; | |
| 2357 | + if (entry.tryLoc <= this.prev && | |
| 2358 | + hasOwn.call(entry, "finallyLoc") && | |
| 2359 | + this.prev < entry.finallyLoc) { | |
| 2360 | + var finallyEntry = entry; | |
| 2361 | + break; | |
| 2362 | + } | |
| 2363 | + } | |
| 2364 | + | |
| 2365 | + if (finallyEntry && | |
| 2366 | + (type === "break" || | |
| 2367 | + type === "continue") && | |
| 2368 | + finallyEntry.tryLoc <= arg && | |
| 2369 | + arg <= finallyEntry.finallyLoc) { | |
| 2370 | + // Ignore the finally entry if control is not jumping to a | |
| 2371 | + // location outside the try/catch block. | |
| 2372 | + finallyEntry = null; | |
| 2373 | + } | |
| 2374 | + | |
| 2375 | + var record = finallyEntry ? finallyEntry.completion : {}; | |
| 2376 | + record.type = type; | |
| 2377 | + record.arg = arg; | |
| 2378 | + | |
| 2379 | + if (finallyEntry) { | |
| 2380 | + this.method = "next"; | |
| 2381 | + this.next = finallyEntry.finallyLoc; | |
| 2382 | + return ContinueSentinel; | |
| 2383 | + } | |
| 2384 | + | |
| 2385 | + return this.complete(record); | |
| 2386 | + }, | |
| 2387 | + | |
| 2388 | + complete: function(record, afterLoc) { | |
| 2389 | + if (record.type === "throw") { | |
| 2390 | + throw record.arg; | |
| 2391 | + } | |
| 2392 | + | |
| 2393 | + if (record.type === "break" || | |
| 2394 | + record.type === "continue") { | |
| 2395 | + this.next = record.arg; | |
| 2396 | + } else if (record.type === "return") { | |
| 2397 | + this.rval = this.arg = record.arg; | |
| 2398 | + this.method = "return"; | |
| 2399 | + this.next = "end"; | |
| 2400 | + } else if (record.type === "normal" && afterLoc) { | |
| 2401 | + this.next = afterLoc; | |
| 2402 | + } | |
| 2403 | + | |
| 2404 | + return ContinueSentinel; | |
| 2405 | + }, | |
| 2406 | + | |
| 2407 | + finish: function(finallyLoc) { | |
| 2408 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 2409 | + var entry = this.tryEntries[i]; | |
| 2410 | + if (entry.finallyLoc === finallyLoc) { | |
| 2411 | + this.complete(entry.completion, entry.afterLoc); | |
| 2412 | + resetTryEntry(entry); | |
| 2413 | + return ContinueSentinel; | |
| 2414 | + } | |
| 2415 | + } | |
| 2416 | + }, | |
| 2417 | + | |
| 2418 | + "catch": function(tryLoc) { | |
| 2419 | + for (var i = this.tryEntries.length - 1; i >= 0; --i) { | |
| 2420 | + var entry = this.tryEntries[i]; | |
| 2421 | + if (entry.tryLoc === tryLoc) { | |
| 2422 | + var record = entry.completion; | |
| 2423 | + if (record.type === "throw") { | |
| 2424 | + var thrown = record.arg; | |
| 2425 | + resetTryEntry(entry); | |
| 2426 | + } | |
| 2427 | + return thrown; | |
| 2428 | + } | |
| 2429 | + } | |
| 2430 | + | |
| 2431 | + // The context.catch method must only be called with a location | |
| 2432 | + // argument that corresponds to a known catch block. | |
| 2433 | + throw new Error("illegal catch attempt"); | |
| 2434 | + }, | |
| 2435 | + | |
| 2436 | + delegateYield: function(iterable, resultName, nextLoc) { | |
| 2437 | + this.delegate = { | |
| 2438 | + iterator: values(iterable), | |
| 2439 | + resultName: resultName, | |
| 2440 | + nextLoc: nextLoc | |
| 2441 | + }; | |
| 2442 | + | |
| 2443 | + if (this.method === "next") { | |
| 2444 | + // Deliberately forget the last sent value so that we don't | |
| 2445 | + // accidentally pass it on to the delegate. | |
| 2446 | + this.arg = undefined; | |
| 2447 | + } | |
| 2448 | + | |
| 2449 | + return ContinueSentinel; | |
| 2450 | + } | |
| 2451 | + }; | |
| 2452 | + | |
| 2453 | + // Regardless of whether this script is executing as a CommonJS module | |
| 2454 | + // or not, return the runtime object so that we can declare the variable | |
| 2455 | + // regeneratorRuntime in the outer scope, which allows this module to be | |
| 2456 | + // injected easily by `bin/regenerator --include-runtime script.js`. | |
| 2457 | + return exports; | |
| 2458 | + | |
| 2459 | +}( | |
| 2460 | + // If this script is executing as a CommonJS module, use module.exports | |
| 2461 | + // as the regeneratorRuntime namespace. Otherwise create a new empty | |
| 2462 | + // object. Either way, the resulting object will be used to initialize | |
| 2463 | + // the regeneratorRuntime variable at the top of this file. | |
| 2464 | + true ? module.exports : undefined | |
| 2465 | +)); | |
| 2466 | + | |
| 2467 | +try { | |
| 2468 | + regeneratorRuntime = runtime; | |
| 2469 | +} catch (accidentalStrictMode) { | |
| 2470 | + // This module should not be running in strict mode, so the above | |
| 2471 | + // assignment should always work unless something is misconfigured. Just | |
| 2472 | + // in case runtime.js accidentally runs in strict mode, we can escape | |
| 2473 | + // strict mode using a global Function call. This could conceivably fail | |
| 2474 | + // if a Content Security Policy forbids using Function, but in that case | |
| 2475 | + // the proper solution is to fix the accidental strict mode problem. If | |
| 2476 | + // you've misconfigured your bundler to force strict mode and applied a | |
| 2477 | + // CSP to forbid Function, and you're not willing to fix either of those | |
| 2478 | + // problems, please detail your unique predicament in a GitHub issue. | |
| 2479 | + Function("r", "regeneratorRuntime = r")(runtime); | |
| 2480 | +} | |
| 2481 | + | |
| 2482 | + | |
| 1782 | 2483 | /***/ }), |
| 2484 | +/* 70 */ | |
| 2485 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1783 | 2486 | |
| 1784 | -/***/ "../modules/web-cli/assets/js/modules/commands/open.js": | |
| 1785 | -/*!*************************************************************!*\ | |
| 1786 | - !*** ../modules/web-cli/assets/js/modules/commands/open.js ***! | |
| 1787 | - \*************************************************************/ | |
| 1788 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2487 | +var META = __webpack_require__(59)('meta'); | |
| 2488 | +var isObject = __webpack_require__(9); | |
| 2489 | +var has = __webpack_require__(19); | |
| 2490 | +var setDesc = __webpack_require__(15).f; | |
| 2491 | +var id = 0; | |
| 2492 | +var isExtensible = Object.isExtensible || function () { | |
| 2493 | + return true; | |
| 2494 | +}; | |
| 2495 | +var FREEZE = !__webpack_require__(22)(function () { | |
| 2496 | + return isExtensible(Object.preventExtensions({})); | |
| 2497 | +}); | |
| 2498 | +var setMeta = function (it) { | |
| 2499 | + setDesc(it, META, { value: { | |
| 2500 | + i: 'O' + ++id, // object ID | |
| 2501 | + w: {} // weak collections IDs | |
| 2502 | + } }); | |
| 2503 | +}; | |
| 2504 | +var fastKey = function (it, create) { | |
| 2505 | + // return primitive with prefix | |
| 2506 | + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; | |
| 2507 | + if (!has(it, META)) { | |
| 2508 | + // can't set metadata to uncaught frozen object | |
| 2509 | + if (!isExtensible(it)) return 'F'; | |
| 2510 | + // not necessary to add metadata | |
| 2511 | + if (!create) return 'E'; | |
| 2512 | + // add missing metadata | |
| 2513 | + setMeta(it); | |
| 2514 | + // return object ID | |
| 2515 | + } return it[META].i; | |
| 2516 | +}; | |
| 2517 | +var getWeak = function (it, create) { | |
| 2518 | + if (!has(it, META)) { | |
| 2519 | + // can't set metadata to uncaught frozen object | |
| 2520 | + if (!isExtensible(it)) return true; | |
| 2521 | + // not necessary to add metadata | |
| 2522 | + if (!create) return false; | |
| 2523 | + // add missing metadata | |
| 2524 | + setMeta(it); | |
| 2525 | + // return hash weak collections IDs | |
| 2526 | + } return it[META].w; | |
| 2527 | +}; | |
| 2528 | +// add metadata on freeze-family methods calling | |
| 2529 | +var onFreeze = function (it) { | |
| 2530 | + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); | |
| 2531 | + return it; | |
| 2532 | +}; | |
| 2533 | +var meta = module.exports = { | |
| 2534 | + KEY: META, | |
| 2535 | + NEED: false, | |
| 2536 | + fastKey: fastKey, | |
| 2537 | + getWeak: getWeak, | |
| 2538 | + onFreeze: onFreeze | |
| 2539 | +}; | |
| 1789 | 2540 | |
| 2541 | + | |
| 2542 | +/***/ }), | |
| 2543 | +/* 71 */ | |
| 2544 | +/***/ (function(module, exports) { | |
| 2545 | + | |
| 2546 | +exports.f = Object.getOwnPropertySymbols; | |
| 2547 | + | |
| 2548 | + | |
| 2549 | +/***/ }), | |
| 2550 | +/* 72 */ | |
| 2551 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2552 | + | |
| 1790 | 2553 | "use strict"; |
| 1791 | 2554 | |
| 2555 | +// 19.1.3.6 Object.prototype.toString() | |
| 2556 | +var classof = __webpack_require__(113); | |
| 2557 | +var test = {}; | |
| 2558 | +test[__webpack_require__(12)('toStringTag')] = 'z'; | |
| 2559 | +if (test + '' != '[object z]') { | |
| 2560 | + __webpack_require__(35)(Object.prototype, 'toString', function toString() { | |
| 2561 | + return '[object ' + classof(this) + ']'; | |
| 2562 | + }, true); | |
| 2563 | +} | |
| 1792 | 2564 | |
| 1793 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1794 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1795 | - value: true | |
| 1796 | -})); | |
| 1797 | -exports["default"] = exports.Open = void 0; | |
| 1798 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1799 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1800 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1801 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1802 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1803 | -var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); | |
| 1804 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1805 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1806 | -var Open = exports.Open = /*#__PURE__*/function (_CommandBase) { | |
| 1807 | - function Open() { | |
| 1808 | - (0, _classCallCheck2.default)(this, Open); | |
| 1809 | - return _callSuper(this, Open, arguments); | |
| 2565 | + | |
| 2566 | +/***/ }), | |
| 2567 | +/* 73 */ | |
| 2568 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2569 | + | |
| 2570 | +// optional / simple context binding | |
| 2571 | +var aFunction = __webpack_require__(91); | |
| 2572 | +module.exports = function (fn, that, length) { | |
| 2573 | + aFunction(fn); | |
| 2574 | + if (that === undefined) return fn; | |
| 2575 | + switch (length) { | |
| 2576 | + case 1: return function (a) { | |
| 2577 | + return fn.call(that, a); | |
| 2578 | + }; | |
| 2579 | + case 2: return function (a, b) { | |
| 2580 | + return fn.call(that, a, b); | |
| 2581 | + }; | |
| 2582 | + case 3: return function (a, b, c) { | |
| 2583 | + return fn.call(that, a, b, c); | |
| 2584 | + }; | |
| 1810 | 2585 | } |
| 1811 | - (0, _inherits2.default)(Open, _CommandBase); | |
| 1812 | - return (0, _createClass2.default)(Open, [{ | |
| 1813 | - key: "apply", | |
| 1814 | - value: function apply() { | |
| 1815 | - $e.route(this.component.getNamespace()); | |
| 1816 | - } | |
| 1817 | - }]); | |
| 1818 | -}(_commandBase.default); | |
| 1819 | -var _default = exports["default"] = Open; | |
| 2586 | + return function (/* ...args */) { | |
| 2587 | + return fn.apply(that, arguments); | |
| 2588 | + }; | |
| 2589 | +}; | |
| 1820 | 2590 | |
| 2591 | + | |
| 1821 | 2592 | /***/ }), |
| 2593 | +/* 74 */ | |
| 2594 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1822 | 2595 | |
| 1823 | -/***/ "../modules/web-cli/assets/js/modules/commands/toggle.js": | |
| 1824 | -/*!***************************************************************!*\ | |
| 1825 | - !*** ../modules/web-cli/assets/js/modules/commands/toggle.js ***! | |
| 1826 | - \***************************************************************/ | |
| 1827 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2596 | +// 7.1.1 ToPrimitive(input [, PreferredType]) | |
| 2597 | +var isObject = __webpack_require__(9); | |
| 2598 | +// instead of the ES6 spec version, we didn't implement @@toPrimitive case | |
| 2599 | +// and the second argument - flag - preferred type is a string | |
| 2600 | +module.exports = function (it, S) { | |
| 2601 | + if (!isObject(it)) return it; | |
| 2602 | + var fn, val; | |
| 2603 | + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 2604 | + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 2605 | + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 2606 | + throw TypeError("Can't convert object to primitive value"); | |
| 2607 | +}; | |
| 1828 | 2608 | |
| 2609 | + | |
| 2610 | +/***/ }), | |
| 2611 | +/* 75 */ | |
| 2612 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2613 | + | |
| 2614 | +var shared = __webpack_require__(76)('keys'); | |
| 2615 | +var uid = __webpack_require__(59); | |
| 2616 | +module.exports = function (key) { | |
| 2617 | + return shared[key] || (shared[key] = uid(key)); | |
| 2618 | +}; | |
| 2619 | + | |
| 2620 | + | |
| 2621 | +/***/ }), | |
| 2622 | +/* 76 */ | |
| 2623 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2624 | + | |
| 2625 | +var core = __webpack_require__(6); | |
| 2626 | +var global = __webpack_require__(8); | |
| 2627 | +var SHARED = '__core-js_shared__'; | |
| 2628 | +var store = global[SHARED] || (global[SHARED] = {}); | |
| 2629 | + | |
| 2630 | +(module.exports = function (key, value) { | |
| 2631 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 2632 | +})('versions', []).push({ | |
| 2633 | + version: core.version, | |
| 2634 | + mode: __webpack_require__(47) ? 'pure' : 'global', | |
| 2635 | + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' | |
| 2636 | +}); | |
| 2637 | + | |
| 2638 | + | |
| 2639 | +/***/ }), | |
| 2640 | +/* 77 */ | |
| 2641 | +/***/ (function(module, exports) { | |
| 2642 | + | |
| 2643 | +// 7.1.4 ToInteger | |
| 2644 | +var ceil = Math.ceil; | |
| 2645 | +var floor = Math.floor; | |
| 2646 | +module.exports = function (it) { | |
| 2647 | + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | |
| 2648 | +}; | |
| 2649 | + | |
| 2650 | + | |
| 2651 | +/***/ }), | |
| 2652 | +/* 78 */ | |
| 2653 | +/***/ (function(module, exports) { | |
| 2654 | + | |
| 2655 | +// IE 8- don't enum bug keys | |
| 2656 | +module.exports = ( | |
| 2657 | + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' | |
| 2658 | +).split(','); | |
| 2659 | + | |
| 2660 | + | |
| 2661 | +/***/ }), | |
| 2662 | +/* 79 */ | |
| 2663 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2664 | + | |
| 2665 | +var global = __webpack_require__(8); | |
| 2666 | +var core = __webpack_require__(6); | |
| 2667 | +var LIBRARY = __webpack_require__(47); | |
| 2668 | +var wksExt = __webpack_require__(63); | |
| 2669 | +var defineProperty = __webpack_require__(15).f; | |
| 2670 | +module.exports = function (name) { | |
| 2671 | + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); | |
| 2672 | + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); | |
| 2673 | +}; | |
| 2674 | + | |
| 2675 | + | |
| 2676 | +/***/ }), | |
| 2677 | +/* 80 */ | |
| 2678 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2679 | + | |
| 1829 | 2680 | "use strict"; |
| 1830 | 2681 | |
| 1831 | 2682 | |
| 1832 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1833 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1834 | - value: true | |
| 1835 | -})); | |
| 1836 | -exports["default"] = exports.Toggle = void 0; | |
| 1837 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1838 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1839 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1840 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1841 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1842 | -var _commandBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-base */ "../modules/web-cli/assets/js/modules/command-base.js")); | |
| 1843 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1844 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1845 | -var Toggle = exports.Toggle = /*#__PURE__*/function (_CommandBase) { | |
| 1846 | - function Toggle() { | |
| 1847 | - (0, _classCallCheck2.default)(this, Toggle); | |
| 1848 | - return _callSuper(this, Toggle, arguments); | |
| 2683 | +var isRegExp = __webpack_require__(122); | |
| 2684 | +var anObject = __webpack_require__(18); | |
| 2685 | +var speciesConstructor = __webpack_require__(154); | |
| 2686 | +var advanceStringIndex = __webpack_require__(105); | |
| 2687 | +var toLength = __webpack_require__(43); | |
| 2688 | +var callRegExpExec = __webpack_require__(94); | |
| 2689 | +var regexpExec = __webpack_require__(88); | |
| 2690 | +var fails = __webpack_require__(33); | |
| 2691 | +var $min = Math.min; | |
| 2692 | +var $push = [].push; | |
| 2693 | +var $SPLIT = 'split'; | |
| 2694 | +var LENGTH = 'length'; | |
| 2695 | +var LAST_INDEX = 'lastIndex'; | |
| 2696 | +var MAX_UINT32 = 0xffffffff; | |
| 2697 | + | |
| 2698 | +// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError | |
| 2699 | +var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); }); | |
| 2700 | + | |
| 2701 | +// @@split logic | |
| 2702 | +__webpack_require__(95)('split', 2, function (defined, SPLIT, $split, maybeCallNative) { | |
| 2703 | + var internalSplit; | |
| 2704 | + if ( | |
| 2705 | + 'abbc'[$SPLIT](/(b)*/)[1] == 'c' || | |
| 2706 | + 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 || | |
| 2707 | + 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 || | |
| 2708 | + '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 || | |
| 2709 | + '.'[$SPLIT](/()()/)[LENGTH] > 1 || | |
| 2710 | + ''[$SPLIT](/.?/)[LENGTH] | |
| 2711 | + ) { | |
| 2712 | + // based on es5-shim implementation, need to rework it | |
| 2713 | + internalSplit = function (separator, limit) { | |
| 2714 | + var string = String(this); | |
| 2715 | + if (separator === undefined && limit === 0) return []; | |
| 2716 | + // If `separator` is not a regex, use native split | |
| 2717 | + if (!isRegExp(separator)) return $split.call(string, separator, limit); | |
| 2718 | + var output = []; | |
| 2719 | + var flags = (separator.ignoreCase ? 'i' : '') + | |
| 2720 | + (separator.multiline ? 'm' : '') + | |
| 2721 | + (separator.unicode ? 'u' : '') + | |
| 2722 | + (separator.sticky ? 'y' : ''); | |
| 2723 | + var lastLastIndex = 0; | |
| 2724 | + var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0; | |
| 2725 | + // Make `global` and avoid `lastIndex` issues by working with a copy | |
| 2726 | + var separatorCopy = new RegExp(separator.source, flags + 'g'); | |
| 2727 | + var match, lastIndex, lastLength; | |
| 2728 | + while (match = regexpExec.call(separatorCopy, string)) { | |
| 2729 | + lastIndex = separatorCopy[LAST_INDEX]; | |
| 2730 | + if (lastIndex > lastLastIndex) { | |
| 2731 | + output.push(string.slice(lastLastIndex, match.index)); | |
| 2732 | + if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1)); | |
| 2733 | + lastLength = match[0][LENGTH]; | |
| 2734 | + lastLastIndex = lastIndex; | |
| 2735 | + if (output[LENGTH] >= splitLimit) break; | |
| 2736 | + } | |
| 2737 | + if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop | |
| 2738 | + } | |
| 2739 | + if (lastLastIndex === string[LENGTH]) { | |
| 2740 | + if (lastLength || !separatorCopy.test('')) output.push(''); | |
| 2741 | + } else output.push(string.slice(lastLastIndex)); | |
| 2742 | + return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output; | |
| 2743 | + }; | |
| 2744 | + // Chakra, V8 | |
| 2745 | + } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) { | |
| 2746 | + internalSplit = function (separator, limit) { | |
| 2747 | + return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit); | |
| 2748 | + }; | |
| 2749 | + } else { | |
| 2750 | + internalSplit = $split; | |
| 1849 | 2751 | } |
| 1850 | - (0, _inherits2.default)(Toggle, _CommandBase); | |
| 1851 | - return (0, _createClass2.default)(Toggle, [{ | |
| 1852 | - key: "apply", | |
| 1853 | - value: function apply() { | |
| 1854 | - if (this.component.isOpen) { | |
| 1855 | - this.component.close(); | |
| 1856 | - } else { | |
| 1857 | - $e.route(this.component.getNamespace()); | |
| 2752 | + | |
| 2753 | + return [ | |
| 2754 | + // `String.prototype.split` method | |
| 2755 | + // https://tc39.github.io/ecma262/#sec-string.prototype.split | |
| 2756 | + function split(separator, limit) { | |
| 2757 | + var O = defined(this); | |
| 2758 | + var splitter = separator == undefined ? undefined : separator[SPLIT]; | |
| 2759 | + return splitter !== undefined | |
| 2760 | + ? splitter.call(separator, O, limit) | |
| 2761 | + : internalSplit.call(String(O), separator, limit); | |
| 2762 | + }, | |
| 2763 | + // `RegExp.prototype[@@split]` method | |
| 2764 | + // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split | |
| 2765 | + // | |
| 2766 | + // NOTE: This cannot be properly polyfilled in engines that don't support | |
| 2767 | + // the 'y' flag. | |
| 2768 | + function (regexp, limit) { | |
| 2769 | + var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split); | |
| 2770 | + if (res.done) return res.value; | |
| 2771 | + | |
| 2772 | + var rx = anObject(regexp); | |
| 2773 | + var S = String(this); | |
| 2774 | + var C = speciesConstructor(rx, RegExp); | |
| 2775 | + | |
| 2776 | + var unicodeMatching = rx.unicode; | |
| 2777 | + var flags = (rx.ignoreCase ? 'i' : '') + | |
| 2778 | + (rx.multiline ? 'm' : '') + | |
| 2779 | + (rx.unicode ? 'u' : '') + | |
| 2780 | + (SUPPORTS_Y ? 'y' : 'g'); | |
| 2781 | + | |
| 2782 | + // ^(? + rx + ) is needed, in combination with some S slicing, to | |
| 2783 | + // simulate the 'y' flag. | |
| 2784 | + var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags); | |
| 2785 | + var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; | |
| 2786 | + if (lim === 0) return []; | |
| 2787 | + if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : []; | |
| 2788 | + var p = 0; | |
| 2789 | + var q = 0; | |
| 2790 | + var A = []; | |
| 2791 | + while (q < S.length) { | |
| 2792 | + splitter.lastIndex = SUPPORTS_Y ? q : 0; | |
| 2793 | + var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q)); | |
| 2794 | + var e; | |
| 2795 | + if ( | |
| 2796 | + z === null || | |
| 2797 | + (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p | |
| 2798 | + ) { | |
| 2799 | + q = advanceStringIndex(S, q, unicodeMatching); | |
| 2800 | + } else { | |
| 2801 | + A.push(S.slice(p, q)); | |
| 2802 | + if (A.length === lim) return A; | |
| 2803 | + for (var i = 1; i <= z.length - 1; i++) { | |
| 2804 | + A.push(z[i]); | |
| 2805 | + if (A.length === lim) return A; | |
| 2806 | + } | |
| 2807 | + q = p = e; | |
| 2808 | + } | |
| 1858 | 2809 | } |
| 2810 | + A.push(S.slice(p)); | |
| 2811 | + return A; | |
| 1859 | 2812 | } |
| 1860 | - }]); | |
| 1861 | -}(_commandBase.default); | |
| 1862 | -var _default = exports["default"] = Toggle; | |
| 2813 | + ]; | |
| 2814 | +}); | |
| 1863 | 2815 | |
| 2816 | + | |
| 1864 | 2817 | /***/ }), |
| 2818 | +/* 81 */ | |
| 2819 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1865 | 2820 | |
| 1866 | -/***/ "../modules/web-cli/assets/js/modules/component-base.js": | |
| 1867 | -/*!**************************************************************!*\ | |
| 1868 | - !*** ../modules/web-cli/assets/js/modules/component-base.js ***! | |
| 1869 | - \**************************************************************/ | |
| 1870 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2821 | +module.exports = __webpack_require__(220); | |
| 1871 | 2822 | |
| 2823 | +/***/ }), | |
| 2824 | +/* 82 */ | |
| 2825 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2826 | + | |
| 1872 | 2827 | "use strict"; |
| 1873 | 2828 | |
| 1874 | 2829 | |
| 1875 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1876 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2830 | +var _interopRequireDefault = __webpack_require__(0); | |
| 2831 | + | |
| 2832 | +var _Object$defineProperty = __webpack_require__(1); | |
| 2833 | + | |
| 2834 | +_Object$defineProperty(exports, "__esModule", { | |
| 1877 | 2835 | value: true |
| 1878 | -})); | |
| 1879 | -exports["default"] = void 0; | |
| 1880 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1881 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 1882 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1883 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1884 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1885 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1886 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1887 | -var _commandCallbackBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/command-callback-base */ "../modules/web-cli/assets/js/modules/command-callback-base.js")); | |
| 1888 | -var _toolkit = __webpack_require__(/*! @reduxjs/toolkit */ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js"); | |
| 1889 | -var _module = _interopRequireDefault(__webpack_require__(/*! elementor/assets/dev/js/modules/imports/module.js */ "../assets/dev/js/modules/imports/module.js")); | |
| 1890 | -var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js")); | |
| 1891 | -var _deprecation = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/deprecation */ "../modules/web-cli/assets/js/utils/deprecation.js")); | |
| 1892 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 1893 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 1894 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 1895 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1896 | -/** | |
| 1897 | - * @typedef {import('./command-infra')} CommandInfra | |
| 1898 | - * @typedef {import('./hook-base')} HookBase | |
| 1899 | - * @typedef {import('../core/states/ui-state-base')} UiStateBase | |
| 1900 | - */ | |
| 1901 | -var ComponentBase = exports["default"] = /*#__PURE__*/function (_Module) { | |
| 2836 | +}); | |
| 2837 | + | |
| 2838 | +exports.default = void 0; | |
| 2839 | + | |
| 2840 | +__webpack_require__(58); | |
| 2841 | + | |
| 2842 | +var _keys = _interopRequireDefault(__webpack_require__(23)); | |
| 2843 | + | |
| 2844 | +__webpack_require__(80); | |
| 2845 | + | |
| 2846 | +var _values = _interopRequireDefault(__webpack_require__(54)); | |
| 2847 | + | |
| 2848 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(104)); | |
| 2849 | + | |
| 2850 | +var _entries = _interopRequireDefault(__webpack_require__(87)); | |
| 2851 | + | |
| 2852 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 2853 | + | |
| 2854 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 2855 | + | |
| 2856 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 2857 | + | |
| 2858 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 2859 | + | |
| 2860 | +var ComponentBase = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 2861 | + (0, _inherits2.default)(ComponentBase, _elementorModules$Mod); | |
| 2862 | + | |
| 2863 | + var _super = (0, _createSuper2.default)(ComponentBase); | |
| 2864 | + | |
| 1902 | 2865 | function ComponentBase() { |
| 1903 | 2866 | (0, _classCallCheck2.default)(this, ComponentBase); |
| 1904 | - return _callSuper(this, ComponentBase, arguments); | |
| 2867 | + return _super.apply(this, arguments); | |
| 1905 | 2868 | } |
| 1906 | - (0, _inherits2.default)(ComponentBase, _Module); | |
| 1907 | - return (0, _createClass2.default)(ComponentBase, [{ | |
| 2869 | + | |
| 2870 | + (0, _createClass2.default)(ComponentBase, [{ | |
| 1908 | 2871 | key: "__construct", |
| 1909 | 2872 | value: function __construct() { |
| 1910 | 2873 | var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| 2874 | + | |
| 1911 | 2875 | if (args.manager) { |
| 1912 | 2876 | this.manager = args.manager; |
| 1913 | 2877 | } |
| 2878 | + | |
| 1914 | 2879 | this.commands = this.defaultCommands(); |
| 1915 | 2880 | this.commandsInternal = this.defaultCommandsInternal(); |
| 1916 | 2881 | this.hooks = this.defaultHooks(); |
| 1917 | 2882 | this.routes = this.defaultRoutes(); |
| @@ -1918,10 +2883,8 @@ | ||
| 1918 | 2883 | this.tabs = this.defaultTabs(); |
| 1919 | 2884 | this.shortcuts = this.defaultShortcuts(); |
| 1920 | 2885 | this.utils = this.defaultUtils(); |
| 1921 | 2886 | this.data = this.defaultData(); |
| 1922 | - this.uiStates = this.defaultUiStates(); | |
| 1923 | - this.states = this.defaultStates(); | |
| 1924 | 2887 | this.defaultRoute = ''; |
| 1925 | 2888 | this.currentTab = ''; |
| 1926 | 2889 | } |
| 1927 | 2890 | }, { |
| @@ -1927,79 +2890,60 @@ | ||
| 1927 | 2890 | }, { |
| 1928 | 2891 | key: "registerAPI", |
| 1929 | 2892 | value: function registerAPI() { |
| 1930 | 2893 | var _this = this; |
| 1931 | - Object.entries(this.getTabs()).forEach(function (tab) { | |
| 2894 | + | |
| 2895 | + (0, _entries.default)(this.getTabs()).forEach(function (tab) { | |
| 1932 | 2896 | return _this.registerTabRoute(tab[0]); |
| 1933 | 2897 | }); |
| 1934 | - Object.entries(this.getRoutes()).forEach(function (_ref) { | |
| 2898 | + (0, _entries.default)(this.getRoutes()).forEach(function (_ref) { | |
| 1935 | 2899 | var _ref2 = (0, _slicedToArray2.default)(_ref, 2), |
| 1936 | - route = _ref2[0], | |
| 1937 | - callback = _ref2[1]; | |
| 2900 | + route = _ref2[0], | |
| 2901 | + callback = _ref2[1]; | |
| 2902 | + | |
| 1938 | 2903 | return _this.registerRoute(route, callback); |
| 1939 | 2904 | }); |
| 1940 | - Object.entries(this.getCommands()).forEach(function (_ref3) { | |
| 2905 | + (0, _entries.default)(this.getCommands()).forEach(function (_ref3) { | |
| 1941 | 2906 | var _ref4 = (0, _slicedToArray2.default)(_ref3, 2), |
| 1942 | - command = _ref4[0], | |
| 1943 | - callback = _ref4[1]; | |
| 2907 | + command = _ref4[0], | |
| 2908 | + callback = _ref4[1]; | |
| 2909 | + | |
| 1944 | 2910 | return _this.registerCommand(command, callback); |
| 1945 | 2911 | }); |
| 1946 | - Object.entries(this.getCommandsInternal()).forEach(function (_ref5) { | |
| 2912 | + (0, _entries.default)(this.getCommandsInternal()).forEach(function (_ref5) { | |
| 1947 | 2913 | var _ref6 = (0, _slicedToArray2.default)(_ref5, 2), |
| 1948 | - command = _ref6[0], | |
| 1949 | - callback = _ref6[1]; | |
| 2914 | + command = _ref6[0], | |
| 2915 | + callback = _ref6[1]; | |
| 2916 | + | |
| 1950 | 2917 | return _this.registerCommandInternal(command, callback); |
| 1951 | 2918 | }); |
| 1952 | - Object.values(this.getHooks()).forEach(function (instance) { | |
| 2919 | + (0, _values.default)(this.getHooks()).forEach(function (instance) { | |
| 1953 | 2920 | return _this.registerHook(instance); |
| 1954 | 2921 | }); |
| 1955 | - Object.entries(this.getData()).forEach(function (_ref7) { | |
| 2922 | + (0, _entries.default)(this.getData()).forEach(function (_ref7) { | |
| 1956 | 2923 | var _ref8 = (0, _slicedToArray2.default)(_ref7, 2), |
| 1957 | - command = _ref8[0], | |
| 1958 | - callback = _ref8[1]; | |
| 2924 | + command = _ref8[0], | |
| 2925 | + callback = _ref8[1]; | |
| 2926 | + | |
| 1959 | 2927 | return _this.registerData(command, callback); |
| 1960 | 2928 | }); |
| 1961 | - Object.values(this.getUiStates()).forEach(function (instance) { | |
| 1962 | - return _this.registerUiState(instance); | |
| 1963 | - }); | |
| 1964 | - Object.entries(this.getStates()).forEach(function (_ref9) { | |
| 1965 | - var _ref0 = (0, _slicedToArray2.default)(_ref9, 2), | |
| 1966 | - id = _ref0[0], | |
| 1967 | - state = _ref0[1]; | |
| 1968 | - return _this.registerState(id, state); | |
| 1969 | - }); | |
| 1970 | 2929 | } |
| 1971 | - | |
| 1972 | - // eslint-disable-next-line jsdoc/require-returns-check | |
| 1973 | 2930 | /** |
| 1974 | - * @return {string} namespace | |
| 2931 | + * @returns {string} | |
| 1975 | 2932 | */ |
| 2933 | + | |
| 1976 | 2934 | }, { |
| 1977 | 2935 | key: "getNamespace", |
| 1978 | 2936 | value: function getNamespace() { |
| 1979 | - (0, _forceMethodImplementation.default)(); | |
| 2937 | + elementorModules.ForceMethodImplementation(); | |
| 1980 | 2938 | } |
| 1981 | - | |
| 1982 | - /** | |
| 1983 | - * @deprecated since 3.7.0, use `getServiceName()` instead. | |
| 1984 | - */ | |
| 1985 | 2939 | }, { |
| 1986 | 2940 | key: "getRootContainer", |
| 1987 | 2941 | value: function getRootContainer() { |
| 1988 | - _deprecation.default.deprecated('getRootContainer()', '3.7.0', 'getServiceName()'); | |
| 1989 | - return this.getServiceName(); | |
| 2942 | + var parts = this.getNamespace().split('/'); | |
| 2943 | + return parts[0]; | |
| 1990 | 2944 | } |
| 1991 | 2945 | }, { |
| 1992 | - key: "getServiceName", | |
| 1993 | - value: function getServiceName() { | |
| 1994 | - return this.getNamespace().split('/')[0]; | |
| 1995 | - } | |
| 1996 | - }, { | |
| 1997 | - key: "store", | |
| 1998 | - get: function get() { | |
| 1999 | - return $e.store.get(this.getNamespace()); | |
| 2000 | - } | |
| 2001 | - }, { | |
| 2002 | 2946 | key: "defaultTabs", |
| 2003 | 2947 | value: function defaultTabs() { |
| 2004 | 2948 | return {}; |
| 2005 | 2949 | } |
| @@ -2022,31 +2966,9 @@ | ||
| 2022 | 2966 | key: "defaultHooks", |
| 2023 | 2967 | value: function defaultHooks() { |
| 2024 | 2968 | return {}; |
| 2025 | 2969 | } |
| 2026 | - | |
| 2027 | - /** | |
| 2028 | - * Get the component's default UI states. | |
| 2029 | - * | |
| 2030 | - * @return {Object} default UI states | |
| 2031 | - */ | |
| 2032 | 2970 | }, { |
| 2033 | - key: "defaultUiStates", | |
| 2034 | - value: function defaultUiStates() { | |
| 2035 | - return {}; | |
| 2036 | - } | |
| 2037 | - | |
| 2038 | - /** | |
| 2039 | - * Get the component's Redux slice settings. | |
| 2040 | - * | |
| 2041 | - * @return {Object} Redux slice settings | |
| 2042 | - */ | |
| 2043 | - }, { | |
| 2044 | - key: "defaultStates", | |
| 2045 | - value: function defaultStates() { | |
| 2046 | - return {}; | |
| 2047 | - } | |
| 2048 | - }, { | |
| 2049 | 2971 | key: "defaultShortcuts", |
| 2050 | 2972 | value: function defaultShortcuts() { |
| 2051 | 2973 | return {}; |
| 2052 | 2974 | } |
| @@ -2074,31 +2996,9 @@ | ||
| 2074 | 2996 | key: "getHooks", |
| 2075 | 2997 | value: function getHooks() { |
| 2076 | 2998 | return this.hooks; |
| 2077 | 2999 | } |
| 2078 | - | |
| 2079 | - /** | |
| 2080 | - * Retrieve the component's UI states. | |
| 2081 | - * | |
| 2082 | - * @return {Object} UI states | |
| 2083 | - */ | |
| 2084 | 3000 | }, { |
| 2085 | - key: "getUiStates", | |
| 2086 | - value: function getUiStates() { | |
| 2087 | - return this.uiStates; | |
| 2088 | - } | |
| 2089 | - | |
| 2090 | - /** | |
| 2091 | - * Retrieve the component's Redux Slice. | |
| 2092 | - * | |
| 2093 | - * @return {Object} Redux Slice | |
| 2094 | - */ | |
| 2095 | - }, { | |
| 2096 | - key: "getStates", | |
| 2097 | - value: function getStates() { | |
| 2098 | - return this.states; | |
| 2099 | - } | |
| 2100 | - }, { | |
| 2101 | 3001 | key: "getRoutes", |
| 2102 | 3002 | value: function getRoutes() { |
| 2103 | 3003 | return this.routes; |
| 2104 | 3004 | } |
| @@ -2116,63 +3016,17 @@ | ||
| 2116 | 3016 | key: "getData", |
| 2117 | 3017 | value: function getData() { |
| 2118 | 3018 | return this.data; |
| 2119 | 3019 | } |
| 2120 | - | |
| 2121 | - /** | |
| 2122 | - * @param {string} command | |
| 2123 | - * @param {(()=>{}|CommandInfra)} context | |
| 2124 | - * @param {'default'|'internal'|'data'} commandsType | |
| 2125 | - */ | |
| 2126 | 3020 | }, { |
| 2127 | 3021 | key: "registerCommand", |
| 2128 | - value: function registerCommand(command, context) { | |
| 2129 | - var commandsType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'default'; | |
| 2130 | - var commandsManager; | |
| 2131 | - switch (commandsType) { | |
| 2132 | - case 'default': | |
| 2133 | - commandsManager = $e.commands; | |
| 2134 | - break; | |
| 2135 | - case 'internal': | |
| 2136 | - commandsManager = $e.commandsInternal; | |
| 2137 | - break; | |
| 2138 | - case 'data': | |
| 2139 | - commandsManager = $e.data; | |
| 2140 | - break; | |
| 2141 | - default: | |
| 2142 | - throw new Error("Invalid commands type: '".concat(command, "'")); | |
| 2143 | - } | |
| 2144 | - var fullCommand = this.getNamespace() + '/' + command, | |
| 2145 | - instanceType = context.getInstanceType ? context.getInstanceType() : false, | |
| 2146 | - registerConfig = { | |
| 2147 | - command: fullCommand, | |
| 2148 | - component: this | |
| 2149 | - }; | |
| 2150 | - | |
| 2151 | - // Support pure callback. | |
| 2152 | - if (!instanceType) { | |
| 2153 | - if ($e.devTools) { | |
| 2154 | - $e.devTools.log.warn("Attach command-callback-base, on command: '".concat(fullCommand, "', context is unknown type.")); | |
| 2155 | - } | |
| 2156 | - registerConfig.callback = context; | |
| 2157 | - | |
| 2158 | - // Unique class. | |
| 2159 | - context = /*#__PURE__*/function (_CommandCallbackBase) { | |
| 2160 | - function context() { | |
| 2161 | - (0, _classCallCheck2.default)(this, context); | |
| 2162 | - return _callSuper(this, context, arguments); | |
| 2163 | - } | |
| 2164 | - (0, _inherits2.default)(context, _CommandCallbackBase); | |
| 2165 | - return (0, _createClass2.default)(context); | |
| 2166 | - }(_commandCallbackBase.default); | |
| 2167 | - } | |
| 2168 | - context.setRegisterConfig(registerConfig); | |
| 2169 | - commandsManager.register(this, command, context); | |
| 3022 | + value: function registerCommand(command, callback) { | |
| 3023 | + $e.commands.register(this, command, callback); | |
| 2170 | 3024 | } |
| 2171 | - | |
| 2172 | 3025 | /** |
| 2173 | 3026 | * @param {HookBase} instance |
| 2174 | 3027 | */ |
| 3028 | + | |
| 2175 | 3029 | }, { |
| 2176 | 3030 | key: "registerHook", |
| 2177 | 3031 | value: function registerHook(instance) { |
| 2178 | 3032 | return instance.register(); |
| @@ -2178,43 +3032,12 @@ | ||
| 2178 | 3032 | return instance.register(); |
| 2179 | 3033 | } |
| 2180 | 3034 | }, { |
| 2181 | 3035 | key: "registerCommandInternal", |
| 2182 | - value: function registerCommandInternal(command, context) { | |
| 2183 | - this.registerCommand(command, context, 'internal'); | |
| 3036 | + value: function registerCommandInternal(command, callback) { | |
| 3037 | + $e.commandsInternal.register(this, command, callback); | |
| 2184 | 3038 | } |
| 2185 | - | |
| 2186 | - /** | |
| 2187 | - * Register a UI state. | |
| 2188 | - * | |
| 2189 | - * @param {UiStateBase} instance - UI state instance. | |
| 2190 | - * | |
| 2191 | - * @return {void} | |
| 2192 | - */ | |
| 2193 | 3039 | }, { |
| 2194 | - key: "registerUiState", | |
| 2195 | - value: function registerUiState(instance) { | |
| 2196 | - $e.uiStates.register(instance); | |
| 2197 | - } | |
| 2198 | - | |
| 2199 | - /** | |
| 2200 | - * Register a Redux Slice. | |
| 2201 | - * | |
| 2202 | - * @param {string} id - State id. | |
| 2203 | - * @param {Object} stateConfig - The state config. | |
| 2204 | - * | |
| 2205 | - * @return {void} | |
| 2206 | - */ | |
| 2207 | - }, { | |
| 2208 | - key: "registerState", | |
| 2209 | - value: function registerState(id, stateConfig) { | |
| 2210 | - id = this.getNamespace() + (id ? "/".concat(id) : ''); | |
| 2211 | - var slice = (0, _toolkit.createSlice)(_objectSpread(_objectSpread({}, stateConfig), {}, { | |
| 2212 | - name: id | |
| 2213 | - })); | |
| 2214 | - $e.store.register(id, slice); | |
| 2215 | - } | |
| 2216 | - }, { | |
| 2217 | 3040 | key: "registerRoute", |
| 2218 | 3041 | value: function registerRoute(route, callback) { |
| 2219 | 3042 | $e.routes.register(this, route, callback); |
| 2220 | 3043 | } |
| @@ -2219,10 +3042,10 @@ | ||
| 2219 | 3042 | $e.routes.register(this, route, callback); |
| 2220 | 3043 | } |
| 2221 | 3044 | }, { |
| 2222 | 3045 | key: "registerData", |
| 2223 | - value: function registerData(command, context) { | |
| 2224 | - this.registerCommand(command, context, 'data'); | |
| 3046 | + value: function registerData(command, callback) { | |
| 3047 | + $e.data.register(this, command, callback); | |
| 2225 | 3048 | } |
| 2226 | 3049 | }, { |
| 2227 | 3050 | key: "unregisterRoute", |
| 2228 | 3051 | value: function unregisterRoute(route) { |
| @@ -2231,8 +3054,9 @@ | ||
| 2231 | 3054 | }, { |
| 2232 | 3055 | key: "registerTabRoute", |
| 2233 | 3056 | value: function registerTabRoute(tab) { |
| 2234 | 3057 | var _this2 = this; |
| 3058 | + | |
| 2235 | 3059 | this.registerRoute(tab, function (args) { |
| 2236 | 3060 | return _this2.activateTab(tab, args); |
| 2237 | 3061 | }); |
| 2238 | 3062 | } |
| @@ -2251,12 +3075,13 @@ | ||
| 2251 | 3075 | value: function close() { |
| 2252 | 3076 | if (!this.isOpen) { |
| 2253 | 3077 | return false; |
| 2254 | 3078 | } |
| 3079 | + | |
| 2255 | 3080 | this.isOpen = false; |
| 2256 | 3081 | this.inactivate(); |
| 2257 | 3082 | $e.routes.clearCurrent(this.getNamespace()); |
| 2258 | - $e.routes.clearHistory(this.getServiceName()); | |
| 3083 | + $e.routes.clearHistory(this.getRootContainer()); | |
| 2259 | 3084 | return true; |
| 2260 | 3085 | } |
| 2261 | 3086 | }, { |
| 2262 | 3087 | key: "activate", |
| @@ -2312,17 +3137,17 @@ | ||
| 2312 | 3137 | }, { |
| 2313 | 3138 | key: "addTab", |
| 2314 | 3139 | value: function addTab(tab, args, position) { |
| 2315 | 3140 | var _this3 = this; |
| 2316 | - this.tabs[tab] = args; | |
| 2317 | - // It can be 0. | |
| 3141 | + | |
| 3142 | + this.tabs[tab] = args; // It can be 0. | |
| 3143 | + | |
| 2318 | 3144 | if ('undefined' !== typeof position) { |
| 2319 | 3145 | var newTabs = {}; |
| 2320 | - var ids = Object.keys(this.tabs); | |
| 2321 | - // Remove new tab | |
| 2322 | - ids.pop(); | |
| 3146 | + var ids = (0, _keys.default)(this.tabs); // Remove new tab | |
| 2323 | 3147 | |
| 2324 | - // Add it to position. | |
| 3148 | + ids.pop(); // Add it to position. | |
| 3149 | + | |
| 2325 | 3150 | ids.splice(position, 0, tab); |
| 2326 | 3151 | ids.forEach(function (id) { |
| 2327 | 3152 | newTabs[id] = _this3.tabs[id]; |
| 2328 | 3153 | }); |
| @@ -2327,8 +3152,9 @@ | ||
| 2327 | 3152 | newTabs[id] = _this3.tabs[id]; |
| 2328 | 3153 | }); |
| 2329 | 3154 | this.tabs = newTabs; |
| 2330 | 3155 | } |
| 3156 | + | |
| 2331 | 3157 | this.registerTabRoute(tab); |
| 2332 | 3158 | } |
| 2333 | 3159 | }, { |
| 2334 | 3160 | key: "getTabsWrapperSelector", |
| @@ -2342,12 +3168,15 @@ | ||
| 2342 | 3168 | } |
| 2343 | 3169 | }, { |
| 2344 | 3170 | key: "renderTab", |
| 2345 | 3171 | value: function renderTab(tab) {} // eslint-disable-line |
| 3172 | + | |
| 2346 | 3173 | }, { |
| 2347 | 3174 | key: "activateTab", |
| 2348 | 3175 | value: function activateTab(tab, args) { |
| 2349 | 3176 | var _this4 = this; |
| 3177 | + | |
| 3178 | + this.currentTab = tab; | |
| 2350 | 3179 | this.renderTab(tab, args); |
| 2351 | 3180 | jQuery(this.getTabsWrapperSelector() + ' .elementor-component-tab').off('click').on('click', function (event) { |
| 2352 | 3181 | $e.route(_this4.getTabRoute(event.currentTarget.dataset.tab), args); |
| 2353 | 3182 | }).removeClass('elementor-active').filter('[data-tab="' + tab + '"]').addClass('elementor-active'); |
| @@ -2361,15 +3190,13 @@ | ||
| 2361 | 3190 | key: "getBodyClass", |
| 2362 | 3191 | value: function getBodyClass(route) { |
| 2363 | 3192 | return 'e-route-' + route.replace(/\//g, '-'); |
| 2364 | 3193 | } |
| 2365 | - | |
| 2366 | 3194 | /** |
| 2367 | 3195 | * If command includes uppercase character convert it to lowercase and add `-`. |
| 2368 | 3196 | * e.g: `CopyAll` is converted to `copy-all`. |
| 2369 | - * | |
| 2370 | - * @param {string} commandName | |
| 2371 | 3197 | */ |
| 3198 | + | |
| 2372 | 3199 | }, { |
| 2373 | 3200 | key: "normalizeCommandName", |
| 2374 | 3201 | value: function normalizeCommandName(commandName) { |
| 2375 | 3202 | return commandName.replace(/[A-Z]/g, function (match, offset) { |
| @@ -2375,26 +3202,29 @@ | ||
| 2375 | 3202 | return commandName.replace(/[A-Z]/g, function (match, offset) { |
| 2376 | 3203 | return (offset > 0 ? '-' : '') + match.toLowerCase(); |
| 2377 | 3204 | }); |
| 2378 | 3205 | } |
| 2379 | - | |
| 2380 | - /** | |
| 2381 | - * @param {{}} commandsFromImport | |
| 2382 | - * @return {{}} imported commands | |
| 2383 | - */ | |
| 2384 | 3206 | }, { |
| 2385 | 3207 | key: "importCommands", |
| 2386 | 3208 | value: function importCommands(commandsFromImport) { |
| 2387 | 3209 | var _this5 = this; |
| 2388 | - var commands = {}; | |
| 2389 | 3210 | |
| 2390 | - // Convert `Commands` to `ComponentBase` workable format. | |
| 2391 | - Object.entries(commandsFromImport).forEach(function (_ref1) { | |
| 2392 | - var _ref10 = (0, _slicedToArray2.default)(_ref1, 2), | |
| 2393 | - className = _ref10[0], | |
| 2394 | - Class = _ref10[1]; | |
| 3211 | + var commands = {}; // Convert `Commands` to `ComponentBase` workable format. | |
| 3212 | + | |
| 3213 | + (0, _entries.default)(commandsFromImport).forEach(function (_ref9) { | |
| 3214 | + var _ref10 = (0, _slicedToArray2.default)(_ref9, 2), | |
| 3215 | + className = _ref10[0], | |
| 3216 | + Class = _ref10[1]; | |
| 3217 | + | |
| 2395 | 3218 | var command = _this5.normalizeCommandName(className); |
| 2396 | - commands[command] = Class; | |
| 3219 | + | |
| 3220 | + commands[command] = function (args) { | |
| 3221 | + return new Class(args).run(); | |
| 3222 | + }; // TODO: Temporary code, remove after merge with 'require-commands-base' branch. | |
| 3223 | + // should not return callback, but Class or Instance without run ( gain performance ). | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + $e.commands.classes[_this5.getNamespace() + '/' + command] = Class; | |
| 2397 | 3227 | }); |
| 2398 | 3228 | return commands; |
| 2399 | 3229 | } |
| 2400 | 3230 | }, { |
| @@ -2400,4461 +3230,6190 @@ | ||
| 2400 | 3230 | }, { |
| 2401 | 3231 | key: "importHooks", |
| 2402 | 3232 | value: function importHooks(hooksFromImport) { |
| 2403 | 3233 | var hooks = {}; |
| 3234 | + | |
| 2404 | 3235 | for (var key in hooksFromImport) { |
| 2405 | 3236 | var hook = new hooksFromImport[key](); |
| 2406 | 3237 | hooks[hook.getId()] = hook; |
| 2407 | 3238 | } |
| 3239 | + | |
| 2408 | 3240 | return hooks; |
| 2409 | 3241 | } |
| 2410 | - | |
| 2411 | - /** | |
| 2412 | - * Import & initialize the component's UI states. | |
| 2413 | - * Should be used inside `defaultUiState()`. | |
| 2414 | - * | |
| 2415 | - * @param {Object} statesFromImport - UI states from import. | |
| 2416 | - * | |
| 2417 | - * @return {Object} UI States | |
| 2418 | - */ | |
| 2419 | 3242 | }, { |
| 2420 | - key: "importUiStates", | |
| 2421 | - value: function importUiStates(statesFromImport) { | |
| 2422 | - var _this6 = this; | |
| 2423 | - var uiStates = {}; | |
| 2424 | - Object.values(statesFromImport).forEach(function (className) { | |
| 2425 | - var uiState = new className(_this6); | |
| 2426 | - uiStates[uiState.getId()] = uiState; | |
| 2427 | - }); | |
| 2428 | - return uiStates; | |
| 2429 | - } | |
| 2430 | - | |
| 2431 | - /** | |
| 2432 | - * Set a UI state value. | |
| 2433 | - * TODO: Should we provide such function? Maybe the developer should implicitly pass the full state ID? | |
| 2434 | - * | |
| 2435 | - * @param {string} state - Non-prefixed state ID. | |
| 2436 | - * @param {*} value - New state value. | |
| 2437 | - * | |
| 2438 | - * @return {void} | |
| 2439 | - */ | |
| 2440 | - }, { | |
| 2441 | - key: "setUiState", | |
| 2442 | - value: function setUiState(state, value) { | |
| 2443 | - $e.uiStates.set("".concat(this.getNamespace(), "/").concat(state), value); | |
| 2444 | - } | |
| 2445 | - }, { | |
| 2446 | 3243 | key: "toggleRouteClass", |
| 2447 | 3244 | value: function toggleRouteClass(route, state) { |
| 2448 | - document.body.classList.toggle(this.getBodyClass(route), state); | |
| 3245 | + elementorCommon.elements.$body.toggleClass(this.getBodyClass(route), state); | |
| 2449 | 3246 | } |
| 2450 | 3247 | }, { |
| 2451 | 3248 | key: "toggleHistoryClass", |
| 2452 | 3249 | value: function toggleHistoryClass() { |
| 2453 | - document.body.classList.toggle('e-routes-has-history', !!$e.routes.getHistory(this.getServiceName()).length); | |
| 3250 | + elementorCommon.elements.$body.toggleClass('e-routes-has-history', !!$e.routes.getHistory(this.getRootContainer()).length); | |
| 2454 | 3251 | } |
| 2455 | 3252 | }]); |
| 2456 | -}(_module.default); | |
| 3253 | + return ComponentBase; | |
| 3254 | +}(elementorModules.Module); | |
| 2457 | 3255 | |
| 3256 | +exports.default = ComponentBase; | |
| 3257 | + | |
| 2458 | 3258 | /***/ }), |
| 3259 | +/* 83 */ | |
| 3260 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2459 | 3261 | |
| 2460 | -/***/ "../modules/web-cli/assets/js/modules/component-modal-base.js": | |
| 2461 | -/*!********************************************************************!*\ | |
| 2462 | - !*** ../modules/web-cli/assets/js/modules/component-modal-base.js ***! | |
| 2463 | - \********************************************************************/ | |
| 2464 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3262 | +// most Object methods by ES6 should accept primitives | |
| 3263 | +var $export = __webpack_require__(7); | |
| 3264 | +var core = __webpack_require__(6); | |
| 3265 | +var fails = __webpack_require__(22); | |
| 3266 | +module.exports = function (KEY, exec) { | |
| 3267 | + var fn = (core.Object || {})[KEY] || Object[KEY]; | |
| 3268 | + var exp = {}; | |
| 3269 | + exp[KEY] = exec(fn); | |
| 3270 | + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); | |
| 3271 | +}; | |
| 2465 | 3272 | |
| 3273 | + | |
| 3274 | +/***/ }), | |
| 3275 | +/* 84 */, | |
| 3276 | +/* 85 */ | |
| 3277 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3278 | + | |
| 3279 | +// 22.1.3.31 Array.prototype[@@unscopables] | |
| 3280 | +var UNSCOPABLES = __webpack_require__(12)('unscopables'); | |
| 3281 | +var ArrayProto = Array.prototype; | |
| 3282 | +if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(29)(ArrayProto, UNSCOPABLES, {}); | |
| 3283 | +module.exports = function (key) { | |
| 3284 | + ArrayProto[UNSCOPABLES][key] = true; | |
| 3285 | +}; | |
| 3286 | + | |
| 3287 | + | |
| 3288 | +/***/ }), | |
| 3289 | +/* 86 */ | |
| 3290 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3291 | + | |
| 3292 | +var ctx = __webpack_require__(31); | |
| 3293 | +var call = __webpack_require__(139); | |
| 3294 | +var isArrayIter = __webpack_require__(140); | |
| 3295 | +var anObject = __webpack_require__(13); | |
| 3296 | +var toLength = __webpack_require__(68); | |
| 3297 | +var getIterFn = __webpack_require__(112); | |
| 3298 | +var BREAK = {}; | |
| 3299 | +var RETURN = {}; | |
| 3300 | +var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) { | |
| 3301 | + var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable); | |
| 3302 | + var f = ctx(fn, that, entries ? 2 : 1); | |
| 3303 | + var index = 0; | |
| 3304 | + var length, step, iterator, result; | |
| 3305 | + if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!'); | |
| 3306 | + // fast case for arrays with default iterator | |
| 3307 | + if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) { | |
| 3308 | + result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]); | |
| 3309 | + if (result === BREAK || result === RETURN) return result; | |
| 3310 | + } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) { | |
| 3311 | + result = call(iterator, f, step.value, entries); | |
| 3312 | + if (result === BREAK || result === RETURN) return result; | |
| 3313 | + } | |
| 3314 | +}; | |
| 3315 | +exports.BREAK = BREAK; | |
| 3316 | +exports.RETURN = RETURN; | |
| 3317 | + | |
| 3318 | + | |
| 3319 | +/***/ }), | |
| 3320 | +/* 87 */ | |
| 3321 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3322 | + | |
| 3323 | +module.exports = __webpack_require__(269); | |
| 3324 | + | |
| 3325 | +/***/ }), | |
| 3326 | +/* 88 */ | |
| 3327 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3328 | + | |
| 2466 | 3329 | "use strict"; |
| 2467 | 3330 | |
| 2468 | 3331 | |
| 2469 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2470 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 2471 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2472 | - value: true | |
| 2473 | -})); | |
| 2474 | -exports["default"] = void 0; | |
| 2475 | -var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js")); | |
| 2476 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 2477 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 2478 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 2479 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 2480 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2481 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2482 | -var _componentBase = _interopRequireDefault(__webpack_require__(/*! ./component-base */ "../modules/web-cli/assets/js/modules/component-base.js")); | |
| 2483 | -var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../modules/web-cli/assets/js/modules/commands/index.js")); | |
| 2484 | -var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ../utils/force-method-implementation */ "../modules/web-cli/assets/js/utils/force-method-implementation.js")); | |
| 2485 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 2486 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2487 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2488 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 2489 | -var ComponentModalBase = exports["default"] = /*#__PURE__*/function (_ComponentBase) { | |
| 2490 | - function ComponentModalBase() { | |
| 2491 | - (0, _classCallCheck2.default)(this, ComponentModalBase); | |
| 2492 | - return _callSuper(this, ComponentModalBase, arguments); | |
| 2493 | - } | |
| 2494 | - (0, _inherits2.default)(ComponentModalBase, _ComponentBase); | |
| 2495 | - return (0, _createClass2.default)(ComponentModalBase, [{ | |
| 2496 | - key: "registerAPI", | |
| 2497 | - value: function registerAPI() { | |
| 2498 | - var _this = this; | |
| 2499 | - _superPropGet(ComponentModalBase, "registerAPI", this, 3)([]); | |
| 2500 | - $e.shortcuts.register('esc', { | |
| 2501 | - scopes: [this.getNamespace()], | |
| 2502 | - callback: function callback() { | |
| 2503 | - return _this.close(); | |
| 3332 | +var regexpFlags = __webpack_require__(106); | |
| 3333 | + | |
| 3334 | +var nativeExec = RegExp.prototype.exec; | |
| 3335 | +// This always refers to the native implementation, because the | |
| 3336 | +// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js, | |
| 3337 | +// which loads this file before patching the method. | |
| 3338 | +var nativeReplace = String.prototype.replace; | |
| 3339 | + | |
| 3340 | +var patchedExec = nativeExec; | |
| 3341 | + | |
| 3342 | +var LAST_INDEX = 'lastIndex'; | |
| 3343 | + | |
| 3344 | +var UPDATES_LAST_INDEX_WRONG = (function () { | |
| 3345 | + var re1 = /a/, | |
| 3346 | + re2 = /b*/g; | |
| 3347 | + nativeExec.call(re1, 'a'); | |
| 3348 | + nativeExec.call(re2, 'a'); | |
| 3349 | + return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0; | |
| 3350 | +})(); | |
| 3351 | + | |
| 3352 | +// nonparticipating capturing group, copied from es5-shim's String#split patch. | |
| 3353 | +var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined; | |
| 3354 | + | |
| 3355 | +var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED; | |
| 3356 | + | |
| 3357 | +if (PATCH) { | |
| 3358 | + patchedExec = function exec(str) { | |
| 3359 | + var re = this; | |
| 3360 | + var lastIndex, reCopy, match, i; | |
| 3361 | + | |
| 3362 | + if (NPCG_INCLUDED) { | |
| 3363 | + reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re)); | |
| 3364 | + } | |
| 3365 | + if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX]; | |
| 3366 | + | |
| 3367 | + match = nativeExec.call(re, str); | |
| 3368 | + | |
| 3369 | + if (UPDATES_LAST_INDEX_WRONG && match) { | |
| 3370 | + re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex; | |
| 3371 | + } | |
| 3372 | + if (NPCG_INCLUDED && match && match.length > 1) { | |
| 3373 | + // Fix browsers whose `exec` methods don't consistently return `undefined` | |
| 3374 | + // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/ | |
| 3375 | + // eslint-disable-next-line no-loop-func | |
| 3376 | + nativeReplace.call(match[0], reCopy, function () { | |
| 3377 | + for (i = 1; i < arguments.length - 2; i++) { | |
| 3378 | + if (arguments[i] === undefined) match[i] = undefined; | |
| 2504 | 3379 | } |
| 2505 | 3380 | }); |
| 2506 | 3381 | } |
| 2507 | - }, { | |
| 2508 | - key: "defaultCommands", | |
| 2509 | - value: function defaultCommands() { | |
| 2510 | - return this.importCommands(commands); | |
| 2511 | - } | |
| 2512 | - }, { | |
| 2513 | - key: "defaultRoutes", | |
| 2514 | - value: function defaultRoutes() { | |
| 2515 | - return { | |
| 2516 | - '': function _() {/* Nothing to do, it's already rendered. */} | |
| 2517 | - }; | |
| 2518 | - } | |
| 2519 | - }, { | |
| 2520 | - key: "open", | |
| 2521 | - value: function open() { | |
| 2522 | - var _this2 = this; | |
| 2523 | - if (!this.layout) { | |
| 2524 | - var layout = this.getModalLayout(); | |
| 2525 | - this.layout = new layout({ | |
| 2526 | - component: this | |
| 2527 | - }); | |
| 2528 | - this.layout.getModal().on('hide', function () { | |
| 2529 | - return _this2.close(); | |
| 2530 | - }); | |
| 3382 | + | |
| 3383 | + return match; | |
| 3384 | + }; | |
| 3385 | +} | |
| 3386 | + | |
| 3387 | +module.exports = patchedExec; | |
| 3388 | + | |
| 3389 | + | |
| 3390 | +/***/ }), | |
| 3391 | +/* 89 */ | |
| 3392 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3393 | + | |
| 3394 | +module.exports = __webpack_require__(69); | |
| 3395 | + | |
| 3396 | + | |
| 3397 | +/***/ }), | |
| 3398 | +/* 90 */ | |
| 3399 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3400 | + | |
| 3401 | +var _Promise = __webpack_require__(133); | |
| 3402 | + | |
| 3403 | +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { | |
| 3404 | + try { | |
| 3405 | + var info = gen[key](arg); | |
| 3406 | + var value = info.value; | |
| 3407 | + } catch (error) { | |
| 3408 | + reject(error); | |
| 3409 | + return; | |
| 3410 | + } | |
| 3411 | + | |
| 3412 | + if (info.done) { | |
| 3413 | + resolve(value); | |
| 3414 | + } else { | |
| 3415 | + _Promise.resolve(value).then(_next, _throw); | |
| 3416 | + } | |
| 3417 | +} | |
| 3418 | + | |
| 3419 | +function _asyncToGenerator(fn) { | |
| 3420 | + return function () { | |
| 3421 | + var self = this, | |
| 3422 | + args = arguments; | |
| 3423 | + return new _Promise(function (resolve, reject) { | |
| 3424 | + var gen = fn.apply(self, args); | |
| 3425 | + | |
| 3426 | + function _next(value) { | |
| 3427 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); | |
| 2531 | 3428 | } |
| 2532 | - this.layout.showModal(); | |
| 2533 | - return true; | |
| 2534 | - } | |
| 2535 | - }, { | |
| 2536 | - key: "close", | |
| 2537 | - value: function close() { | |
| 2538 | - if (!_superPropGet(ComponentModalBase, "close", this, 3)([])) { | |
| 2539 | - return false; | |
| 3429 | + | |
| 3430 | + function _throw(err) { | |
| 3431 | + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); | |
| 2540 | 3432 | } |
| 2541 | - var close = elementor.hooks.applyFilters('component/modal/close', this.layout.getModal().hide.bind(this.layout.getModal()), this); | |
| 2542 | - close(); | |
| 2543 | - return true; | |
| 2544 | - } | |
| 2545 | - }, { | |
| 2546 | - key: "getModalLayout", | |
| 2547 | - value: function getModalLayout() { | |
| 2548 | - (0, _forceMethodImplementation.default)(); | |
| 2549 | - } | |
| 2550 | - }]); | |
| 2551 | -}(_componentBase.default); | |
| 2552 | 3433 | |
| 3434 | + _next(undefined); | |
| 3435 | + }); | |
| 3436 | + }; | |
| 3437 | +} | |
| 3438 | + | |
| 3439 | +module.exports = _asyncToGenerator; | |
| 3440 | + | |
| 2553 | 3441 | /***/ }), |
| 3442 | +/* 91 */ | |
| 3443 | +/***/ (function(module, exports) { | |
| 2554 | 3444 | |
| 2555 | -/***/ "../modules/web-cli/assets/js/modules/hook-break.js": | |
| 2556 | -/*!**********************************************************!*\ | |
| 2557 | - !*** ../modules/web-cli/assets/js/modules/hook-break.js ***! | |
| 2558 | - \**********************************************************/ | |
| 2559 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3445 | +module.exports = function (it) { | |
| 3446 | + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | |
| 3447 | + return it; | |
| 3448 | +}; | |
| 2560 | 3449 | |
| 3450 | + | |
| 3451 | +/***/ }), | |
| 3452 | +/* 92 */ | |
| 3453 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3454 | + | |
| 3455 | +var isObject = __webpack_require__(9); | |
| 3456 | +var document = __webpack_require__(8).document; | |
| 3457 | +// typeof document.createElement is 'object' in old IE | |
| 3458 | +var is = isObject(document) && isObject(document.createElement); | |
| 3459 | +module.exports = function (it) { | |
| 3460 | + return is ? document.createElement(it) : {}; | |
| 3461 | +}; | |
| 3462 | + | |
| 3463 | + | |
| 3464 | +/***/ }), | |
| 3465 | +/* 93 */ | |
| 3466 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3467 | + | |
| 3468 | +module.exports = __webpack_require__(24); | |
| 3469 | + | |
| 3470 | + | |
| 3471 | +/***/ }), | |
| 3472 | +/* 94 */ | |
| 3473 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3474 | + | |
| 2561 | 3475 | "use strict"; |
| 2562 | 3476 | |
| 2563 | 3477 | |
| 2564 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2565 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2566 | - value: true | |
| 2567 | -})); | |
| 2568 | -exports["default"] = void 0; | |
| 2569 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 2570 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 2571 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 2572 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 2573 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2574 | -var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); | |
| 2575 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2576 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2577 | -var HookBreak = exports["default"] = /*#__PURE__*/function (_Error) { | |
| 2578 | - function HookBreak() { | |
| 2579 | - (0, _classCallCheck2.default)(this, HookBreak); | |
| 2580 | - return _callSuper(this, HookBreak, ['HookBreak']); | |
| 3478 | +var classof = __webpack_require__(113); | |
| 3479 | +var builtinExec = RegExp.prototype.exec; | |
| 3480 | + | |
| 3481 | + // `RegExpExec` abstract operation | |
| 3482 | +// https://tc39.github.io/ecma262/#sec-regexpexec | |
| 3483 | +module.exports = function (R, S) { | |
| 3484 | + var exec = R.exec; | |
| 3485 | + if (typeof exec === 'function') { | |
| 3486 | + var result = exec.call(R, S); | |
| 3487 | + if (typeof result !== 'object') { | |
| 3488 | + throw new TypeError('RegExp exec method returned something other than an Object or null'); | |
| 3489 | + } | |
| 3490 | + return result; | |
| 2581 | 3491 | } |
| 2582 | - (0, _inherits2.default)(HookBreak, _Error); | |
| 2583 | - return (0, _createClass2.default)(HookBreak); | |
| 2584 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 3492 | + if (classof(R) !== 'RegExp') { | |
| 3493 | + throw new TypeError('RegExp#exec called on incompatible receiver'); | |
| 3494 | + } | |
| 3495 | + return builtinExec.call(R, S); | |
| 3496 | +}; | |
| 2585 | 3497 | |
| 3498 | + | |
| 2586 | 3499 | /***/ }), |
| 3500 | +/* 95 */ | |
| 3501 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2587 | 3502 | |
| 2588 | -/***/ "../modules/web-cli/assets/js/utils/console.js": | |
| 2589 | -/*!*****************************************************!*\ | |
| 2590 | - !*** ../modules/web-cli/assets/js/utils/console.js ***! | |
| 2591 | - \*****************************************************/ | |
| 2592 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3503 | +"use strict"; | |
| 2593 | 3504 | |
| 2594 | -"use strict"; | |
| 3505 | +__webpack_require__(190); | |
| 3506 | +var redefine = __webpack_require__(35); | |
| 3507 | +var hide = __webpack_require__(29); | |
| 3508 | +var fails = __webpack_require__(33); | |
| 3509 | +var defined = __webpack_require__(42); | |
| 3510 | +var wks = __webpack_require__(12); | |
| 3511 | +var regexpExec = __webpack_require__(88); | |
| 2595 | 3512 | |
| 3513 | +var SPECIES = wks('species'); | |
| 2596 | 3514 | |
| 2597 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2598 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2599 | - value: true | |
| 2600 | -})); | |
| 2601 | -exports["default"] = void 0; | |
| 2602 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 2603 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 2604 | -var Console = exports["default"] = /*#__PURE__*/function () { | |
| 2605 | - function Console() { | |
| 2606 | - (0, _classCallCheck2.default)(this, Console); | |
| 2607 | - } | |
| 2608 | - return (0, _createClass2.default)(Console, null, [{ | |
| 2609 | - key: "error", | |
| 2610 | - value: function error(message) { | |
| 2611 | - // Show an error if devTools is available. | |
| 2612 | - if ($e.devTools) { | |
| 2613 | - $e.devTools.log.error(message); | |
| 2614 | - } | |
| 3515 | +var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () { | |
| 3516 | + // #replace needs built-in support for named groups. | |
| 3517 | + // #match works fine because it just return the exec results, even if it has | |
| 3518 | + // a "grops" property. | |
| 3519 | + var re = /./; | |
| 3520 | + re.exec = function () { | |
| 3521 | + var result = []; | |
| 3522 | + result.groups = { a: '7' }; | |
| 3523 | + return result; | |
| 3524 | + }; | |
| 3525 | + return ''.replace(re, '$<a>') !== '7'; | |
| 3526 | +}); | |
| 2615 | 3527 | |
| 2616 | - // If not a 'Hook-Break' then show error. | |
| 2617 | - if (!(message instanceof $e.modules.HookBreak)) { | |
| 2618 | - // eslint-disable-next-line no-console | |
| 2619 | - console.error(message); | |
| 2620 | - } | |
| 3528 | +var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () { | |
| 3529 | + // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec | |
| 3530 | + var re = /(?:)/; | |
| 3531 | + var originalExec = re.exec; | |
| 3532 | + re.exec = function () { return originalExec.apply(this, arguments); }; | |
| 3533 | + var result = 'ab'.split(re); | |
| 3534 | + return result.length === 2 && result[0] === 'a' && result[1] === 'b'; | |
| 3535 | +})(); | |
| 3536 | + | |
| 3537 | +module.exports = function (KEY, length, exec) { | |
| 3538 | + var SYMBOL = wks(KEY); | |
| 3539 | + | |
| 3540 | + var DELEGATES_TO_SYMBOL = !fails(function () { | |
| 3541 | + // String methods call symbol-named RegEp methods | |
| 3542 | + var O = {}; | |
| 3543 | + O[SYMBOL] = function () { return 7; }; | |
| 3544 | + return ''[KEY](O) != 7; | |
| 3545 | + }); | |
| 3546 | + | |
| 3547 | + var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () { | |
| 3548 | + // Symbol-named RegExp methods call .exec | |
| 3549 | + var execCalled = false; | |
| 3550 | + var re = /a/; | |
| 3551 | + re.exec = function () { execCalled = true; return null; }; | |
| 3552 | + if (KEY === 'split') { | |
| 3553 | + // RegExp[@@split] doesn't call the regex's exec method, but first creates | |
| 3554 | + // a new one. We need to return the patched regex when creating the new one. | |
| 3555 | + re.constructor = {}; | |
| 3556 | + re.constructor[SPECIES] = function () { return re; }; | |
| 2621 | 3557 | } |
| 2622 | - }, { | |
| 2623 | - key: "warn", | |
| 2624 | - value: function warn() { | |
| 2625 | - var _console; | |
| 2626 | - var style = "font-size: 12px; background-image: url(\"".concat(elementorWebCliConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;"); | |
| 2627 | - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 2628 | - args[_key] = arguments[_key]; | |
| 3558 | + re[SYMBOL](''); | |
| 3559 | + return !execCalled; | |
| 3560 | + }) : undefined; | |
| 3561 | + | |
| 3562 | + if ( | |
| 3563 | + !DELEGATES_TO_SYMBOL || | |
| 3564 | + !DELEGATES_TO_EXEC || | |
| 3565 | + (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) || | |
| 3566 | + (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) | |
| 3567 | + ) { | |
| 3568 | + var nativeRegExpMethod = /./[SYMBOL]; | |
| 3569 | + var fns = exec( | |
| 3570 | + defined, | |
| 3571 | + SYMBOL, | |
| 3572 | + ''[KEY], | |
| 3573 | + function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) { | |
| 3574 | + if (regexp.exec === regexpExec) { | |
| 3575 | + if (DELEGATES_TO_SYMBOL && !forceStringMethod) { | |
| 3576 | + // The native String method already delegates to @@method (this | |
| 3577 | + // polyfilled function), leasing to infinite recursion. | |
| 3578 | + // We avoid it by directly calling the native @@method method. | |
| 3579 | + return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) }; | |
| 3580 | + } | |
| 3581 | + return { done: true, value: nativeMethod.call(str, regexp, arg2) }; | |
| 3582 | + } | |
| 3583 | + return { done: false }; | |
| 2629 | 3584 | } |
| 2630 | - args.unshift('%c %c', style, ''); | |
| 2631 | - (_console = console).warn.apply(_console, args); // eslint-disable-line no-console | |
| 2632 | - } | |
| 2633 | - }]); | |
| 2634 | -}(); | |
| 3585 | + ); | |
| 3586 | + var strfn = fns[0]; | |
| 3587 | + var rxfn = fns[1]; | |
| 2635 | 3588 | |
| 3589 | + redefine(String.prototype, KEY, strfn); | |
| 3590 | + hide(RegExp.prototype, SYMBOL, length == 2 | |
| 3591 | + // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue) | |
| 3592 | + // 21.2.5.11 RegExp.prototype[@@split](string, limit) | |
| 3593 | + ? function (string, arg) { return rxfn.call(string, this, arg); } | |
| 3594 | + // 21.2.5.6 RegExp.prototype[@@match](string) | |
| 3595 | + // 21.2.5.9 RegExp.prototype[@@search](string) | |
| 3596 | + : function (string) { return rxfn.call(string, this); } | |
| 3597 | + ); | |
| 3598 | + } | |
| 3599 | +}; | |
| 3600 | + | |
| 3601 | + | |
| 2636 | 3602 | /***/ }), |
| 3603 | +/* 96 */ | |
| 3604 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2637 | 3605 | |
| 2638 | -/***/ "../modules/web-cli/assets/js/utils/deprecation.js": | |
| 2639 | -/*!*********************************************************!*\ | |
| 2640 | - !*** ../modules/web-cli/assets/js/utils/deprecation.js ***! | |
| 2641 | - \*********************************************************/ | |
| 2642 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3606 | +// 7.1.13 ToObject(argument) | |
| 3607 | +var defined = __webpack_require__(42); | |
| 3608 | +module.exports = function (it) { | |
| 3609 | + return Object(defined(it)); | |
| 3610 | +}; | |
| 2643 | 3611 | |
| 3612 | + | |
| 3613 | +/***/ }), | |
| 3614 | +/* 97 */ | |
| 3615 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3616 | + | |
| 3617 | +// 7.2.2 IsArray(argument) | |
| 3618 | +var cof = __webpack_require__(56); | |
| 3619 | +module.exports = Array.isArray || function isArray(arg) { | |
| 3620 | + return cof(arg) == 'Array'; | |
| 3621 | +}; | |
| 3622 | + | |
| 3623 | + | |
| 3624 | +/***/ }), | |
| 3625 | +/* 98 */ | |
| 3626 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3627 | + | |
| 3628 | +// to indexed object, toObject with fallback for non-array-like ES3 strings | |
| 3629 | +var IObject = __webpack_require__(120); | |
| 3630 | +var defined = __webpack_require__(42); | |
| 3631 | +module.exports = function (it) { | |
| 3632 | + return IObject(defined(it)); | |
| 3633 | +}; | |
| 3634 | + | |
| 3635 | + | |
| 3636 | +/***/ }), | |
| 3637 | +/* 99 */ | |
| 3638 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3639 | + | |
| 3640 | +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) | |
| 3641 | +var $keys = __webpack_require__(116); | |
| 3642 | +var hiddenKeys = __webpack_require__(78).concat('length', 'prototype'); | |
| 3643 | + | |
| 3644 | +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | |
| 3645 | + return $keys(O, hiddenKeys); | |
| 3646 | +}; | |
| 3647 | + | |
| 3648 | + | |
| 3649 | +/***/ }), | |
| 3650 | +/* 100 */ | |
| 3651 | +/***/ (function(module, exports) { | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
| 3655 | +/***/ }), | |
| 3656 | +/* 101 */ | |
| 3657 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3658 | + | |
| 3659 | +// getting tag from 19.1.3.6 Object.prototype.toString() | |
| 3660 | +var cof = __webpack_require__(56); | |
| 3661 | +var TAG = __webpack_require__(10)('toStringTag'); | |
| 3662 | +// ES3 wrong here | |
| 3663 | +var ARG = cof(function () { return arguments; }()) == 'Arguments'; | |
| 3664 | + | |
| 3665 | +// fallback for IE11 Script Access Denied error | |
| 3666 | +var tryGet = function (it, key) { | |
| 3667 | + try { | |
| 3668 | + return it[key]; | |
| 3669 | + } catch (e) { /* empty */ } | |
| 3670 | +}; | |
| 3671 | + | |
| 3672 | +module.exports = function (it) { | |
| 3673 | + var O, T, B; | |
| 3674 | + return it === undefined ? 'Undefined' : it === null ? 'Null' | |
| 3675 | + // @@toStringTag case | |
| 3676 | + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T | |
| 3677 | + // builtinTag case | |
| 3678 | + : ARG ? cof(O) | |
| 3679 | + // ES3 arguments fallback | |
| 3680 | + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; | |
| 3681 | +}; | |
| 3682 | + | |
| 3683 | + | |
| 3684 | +/***/ }), | |
| 3685 | +/* 102 */ | |
| 3686 | +/***/ (function(module, exports) { | |
| 3687 | + | |
| 3688 | +module.exports = function (bitmap, value) { | |
| 3689 | + return { | |
| 3690 | + enumerable: !(bitmap & 1), | |
| 3691 | + configurable: !(bitmap & 2), | |
| 3692 | + writable: !(bitmap & 4), | |
| 3693 | + value: value | |
| 3694 | + }; | |
| 3695 | +}; | |
| 3696 | + | |
| 3697 | + | |
| 3698 | +/***/ }), | |
| 3699 | +/* 103 */ | |
| 3700 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3701 | + | |
| 3702 | +// fallback for non-array-like ES3 and non-enumerable old V8 strings | |
| 3703 | +var cof = __webpack_require__(56); | |
| 3704 | +// eslint-disable-next-line no-prototype-builtins | |
| 3705 | +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | |
| 3706 | + return cof(it) == 'String' ? it.split('') : Object(it); | |
| 3707 | +}; | |
| 3708 | + | |
| 3709 | + | |
| 3710 | +/***/ }), | |
| 3711 | +/* 104 */ | |
| 3712 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3713 | + | |
| 3714 | +var arrayWithHoles = __webpack_require__(247); | |
| 3715 | + | |
| 3716 | +var iterableToArrayLimit = __webpack_require__(248); | |
| 3717 | + | |
| 3718 | +var unsupportedIterableToArray = __webpack_require__(186); | |
| 3719 | + | |
| 3720 | +var nonIterableRest = __webpack_require__(251); | |
| 3721 | + | |
| 3722 | +function _slicedToArray(arr, i) { | |
| 3723 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 3724 | +} | |
| 3725 | + | |
| 3726 | +module.exports = _slicedToArray; | |
| 3727 | + | |
| 3728 | +/***/ }), | |
| 3729 | +/* 105 */ | |
| 3730 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3731 | + | |
| 2644 | 3732 | "use strict"; |
| 2645 | 3733 | |
| 3734 | +var at = __webpack_require__(142)(true); | |
| 2646 | 3735 | |
| 2647 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2648 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2649 | - value: true | |
| 2650 | -})); | |
| 2651 | -exports["default"] = void 0; | |
| 2652 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 2653 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 2654 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 2655 | -var _console = _interopRequireDefault(__webpack_require__(/*! elementor-api/utils/console */ "../modules/web-cli/assets/js/utils/console.js")); | |
| 2656 | -// Copied from `modules/dev-tools/assets/js/deprecation.js` | |
| 2657 | -/** | |
| 2658 | - * @typedef {Object} Version | |
| 2659 | - * @property {number} major1 The first number | |
| 2660 | - * @property {number} major2 The second number | |
| 2661 | - * @property {number} minor The third number | |
| 2662 | - * @property {string} build The fourth number | |
| 2663 | - */ | |
| 3736 | + // `AdvanceStringIndex` abstract operation | |
| 3737 | +// https://tc39.github.io/ecma262/#sec-advancestringindex | |
| 3738 | +module.exports = function (S, index, unicode) { | |
| 3739 | + return index + (unicode ? at(S, index).length : 1); | |
| 3740 | +}; | |
| 2664 | 3741 | |
| 2665 | -var softDeprecated = function softDeprecated(name, version, replacement) { | |
| 2666 | - if (elementorWebCliConfig.isDebug) { | |
| 2667 | - deprecatedMessage('soft', name, version, replacement); | |
| 3742 | + | |
| 3743 | +/***/ }), | |
| 3744 | +/* 106 */ | |
| 3745 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3746 | + | |
| 3747 | +"use strict"; | |
| 3748 | + | |
| 3749 | +// 21.2.5.3 get RegExp.prototype.flags | |
| 3750 | +var anObject = __webpack_require__(18); | |
| 3751 | +module.exports = function () { | |
| 3752 | + var that = anObject(this); | |
| 3753 | + var result = ''; | |
| 3754 | + if (that.global) result += 'g'; | |
| 3755 | + if (that.ignoreCase) result += 'i'; | |
| 3756 | + if (that.multiline) result += 'm'; | |
| 3757 | + if (that.unicode) result += 'u'; | |
| 3758 | + if (that.sticky) result += 'y'; | |
| 3759 | + return result; | |
| 3760 | +}; | |
| 3761 | + | |
| 3762 | + | |
| 3763 | +/***/ }), | |
| 3764 | +/* 107 */ | |
| 3765 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3766 | + | |
| 3767 | +module.exports = __webpack_require__(167); | |
| 3768 | + | |
| 3769 | +/***/ }), | |
| 3770 | +/* 108 */ | |
| 3771 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3772 | + | |
| 3773 | +"use strict"; | |
| 3774 | + | |
| 3775 | +var LIBRARY = __webpack_require__(47); | |
| 3776 | +var $export = __webpack_require__(7); | |
| 3777 | +var redefine = __webpack_require__(93); | |
| 3778 | +var hide = __webpack_require__(24); | |
| 3779 | +var Iterators = __webpack_require__(34); | |
| 3780 | +var $iterCreate = __webpack_require__(173); | |
| 3781 | +var setToStringTag = __webpack_require__(53); | |
| 3782 | +var getPrototypeOf = __webpack_require__(64); | |
| 3783 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 3784 | +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | |
| 3785 | +var FF_ITERATOR = '@@iterator'; | |
| 3786 | +var KEYS = 'keys'; | |
| 3787 | +var VALUES = 'values'; | |
| 3788 | + | |
| 3789 | +var returnThis = function () { return this; }; | |
| 3790 | + | |
| 3791 | +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | |
| 3792 | + $iterCreate(Constructor, NAME, next); | |
| 3793 | + var getMethod = function (kind) { | |
| 3794 | + if (!BUGGY && kind in proto) return proto[kind]; | |
| 3795 | + switch (kind) { | |
| 3796 | + case KEYS: return function keys() { return new Constructor(this, kind); }; | |
| 3797 | + case VALUES: return function values() { return new Constructor(this, kind); }; | |
| 3798 | + } return function entries() { return new Constructor(this, kind); }; | |
| 3799 | + }; | |
| 3800 | + var TAG = NAME + ' Iterator'; | |
| 3801 | + var DEF_VALUES = DEFAULT == VALUES; | |
| 3802 | + var VALUES_BUG = false; | |
| 3803 | + var proto = Base.prototype; | |
| 3804 | + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | |
| 3805 | + var $default = $native || getMethod(DEFAULT); | |
| 3806 | + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | |
| 3807 | + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | |
| 3808 | + var methods, key, IteratorPrototype; | |
| 3809 | + // Fix native | |
| 3810 | + if ($anyNative) { | |
| 3811 | + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | |
| 3812 | + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | |
| 3813 | + // Set @@toStringTag to native iterators | |
| 3814 | + setToStringTag(IteratorPrototype, TAG, true); | |
| 3815 | + // fix for some old engines | |
| 3816 | + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); | |
| 3817 | + } | |
| 2668 | 3818 | } |
| 3819 | + // fix Array#{values, @@iterator}.name in V8 / FF | |
| 3820 | + if (DEF_VALUES && $native && $native.name !== VALUES) { | |
| 3821 | + VALUES_BUG = true; | |
| 3822 | + $default = function values() { return $native.call(this); }; | |
| 3823 | + } | |
| 3824 | + // Define iterator | |
| 3825 | + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | |
| 3826 | + hide(proto, ITERATOR, $default); | |
| 3827 | + } | |
| 3828 | + // Plug for library | |
| 3829 | + Iterators[NAME] = $default; | |
| 3830 | + Iterators[TAG] = returnThis; | |
| 3831 | + if (DEFAULT) { | |
| 3832 | + methods = { | |
| 3833 | + values: DEF_VALUES ? $default : getMethod(VALUES), | |
| 3834 | + keys: IS_SET ? $default : getMethod(KEYS), | |
| 3835 | + entries: $entries | |
| 3836 | + }; | |
| 3837 | + if (FORCED) for (key in methods) { | |
| 3838 | + if (!(key in proto)) redefine(proto, key, methods[key]); | |
| 3839 | + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | |
| 3840 | + } | |
| 3841 | + return methods; | |
| 2669 | 3842 | }; |
| 2670 | -var hardDeprecated = function hardDeprecated(name, version, replacement) { | |
| 2671 | - deprecatedMessage('hard', name, version, replacement); | |
| 3843 | + | |
| 3844 | + | |
| 3845 | +/***/ }), | |
| 3846 | +/* 109 */ | |
| 3847 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3848 | + | |
| 3849 | +var isObject = __webpack_require__(30); | |
| 3850 | +var document = __webpack_require__(17).document; | |
| 3851 | +// typeof document.createElement is 'object' in old IE | |
| 3852 | +var is = isObject(document) && isObject(document.createElement); | |
| 3853 | +module.exports = function (it) { | |
| 3854 | + return is ? document.createElement(it) : {}; | |
| 2672 | 3855 | }; |
| 2673 | -var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) { | |
| 2674 | - var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version); | |
| 2675 | - if (replacement) { | |
| 2676 | - message += " - Use `".concat(replacement, "` instead"); | |
| 3856 | + | |
| 3857 | + | |
| 3858 | +/***/ }), | |
| 3859 | +/* 110 */ | |
| 3860 | +/***/ (function(module, exports) { | |
| 3861 | + | |
| 3862 | +module.exports = false; | |
| 3863 | + | |
| 3864 | + | |
| 3865 | +/***/ }), | |
| 3866 | +/* 111 */ | |
| 3867 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3868 | + | |
| 3869 | +module.exports = __webpack_require__(176); | |
| 3870 | + | |
| 3871 | +/***/ }), | |
| 3872 | +/* 112 */ | |
| 3873 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3874 | + | |
| 3875 | +var classof = __webpack_require__(101); | |
| 3876 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 3877 | +var Iterators = __webpack_require__(34); | |
| 3878 | +module.exports = __webpack_require__(6).getIteratorMethod = function (it) { | |
| 3879 | + if (it != undefined) return it[ITERATOR] | |
| 3880 | + || it['@@iterator'] | |
| 3881 | + || Iterators[classof(it)]; | |
| 3882 | +}; | |
| 3883 | + | |
| 3884 | + | |
| 3885 | +/***/ }), | |
| 3886 | +/* 113 */ | |
| 3887 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3888 | + | |
| 3889 | +// getting tag from 19.1.3.6 Object.prototype.toString() | |
| 3890 | +var cof = __webpack_require__(46); | |
| 3891 | +var TAG = __webpack_require__(12)('toStringTag'); | |
| 3892 | +// ES3 wrong here | |
| 3893 | +var ARG = cof(function () { return arguments; }()) == 'Arguments'; | |
| 3894 | + | |
| 3895 | +// fallback for IE11 Script Access Denied error | |
| 3896 | +var tryGet = function (it, key) { | |
| 3897 | + try { | |
| 3898 | + return it[key]; | |
| 3899 | + } catch (e) { /* empty */ } | |
| 3900 | +}; | |
| 3901 | + | |
| 3902 | +module.exports = function (it) { | |
| 3903 | + var O, T, B; | |
| 3904 | + return it === undefined ? 'Undefined' : it === null ? 'Null' | |
| 3905 | + // @@toStringTag case | |
| 3906 | + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T | |
| 3907 | + // builtinTag case | |
| 3908 | + : ARG ? cof(O) | |
| 3909 | + // ES3 arguments fallback | |
| 3910 | + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; | |
| 3911 | +}; | |
| 3912 | + | |
| 3913 | + | |
| 3914 | +/***/ }), | |
| 3915 | +/* 114 */ | |
| 3916 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3917 | + | |
| 3918 | +module.exports = !__webpack_require__(14) && !__webpack_require__(22)(function () { | |
| 3919 | + return Object.defineProperty(__webpack_require__(92)('div'), 'a', { get: function () { return 7; } }).a != 7; | |
| 3920 | +}); | |
| 3921 | + | |
| 3922 | + | |
| 3923 | +/***/ }), | |
| 3924 | +/* 115 */ | |
| 3925 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3926 | + | |
| 3927 | +module.exports = __webpack_require__(160); | |
| 3928 | + | |
| 3929 | +/***/ }), | |
| 3930 | +/* 116 */ | |
| 3931 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3932 | + | |
| 3933 | +var has = __webpack_require__(19); | |
| 3934 | +var toIObject = __webpack_require__(20); | |
| 3935 | +var arrayIndexOf = __webpack_require__(165)(false); | |
| 3936 | +var IE_PROTO = __webpack_require__(75)('IE_PROTO'); | |
| 3937 | + | |
| 3938 | +module.exports = function (object, names) { | |
| 3939 | + var O = toIObject(object); | |
| 3940 | + var i = 0; | |
| 3941 | + var result = []; | |
| 3942 | + var key; | |
| 3943 | + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | |
| 3944 | + // Don't enum bug & hidden keys | |
| 3945 | + while (names.length > i) if (has(O, key = names[i++])) { | |
| 3946 | + ~arrayIndexOf(result, key) || result.push(key); | |
| 2677 | 3947 | } |
| 2678 | - _console.default.warn(message); | |
| 3948 | + return result; | |
| 2679 | 3949 | }; |
| 2680 | -var Deprecation = exports["default"] = /*#__PURE__*/function () { | |
| 2681 | - function Deprecation() { | |
| 2682 | - (0, _classCallCheck2.default)(this, Deprecation); | |
| 3950 | + | |
| 3951 | + | |
| 3952 | +/***/ }), | |
| 3953 | +/* 117 */ | |
| 3954 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3955 | + | |
| 3956 | +"use strict"; | |
| 3957 | + | |
| 3958 | +var addToUnscopables = __webpack_require__(85); | |
| 3959 | +var step = __webpack_require__(241); | |
| 3960 | +var Iterators = __webpack_require__(118); | |
| 3961 | +var toIObject = __webpack_require__(98); | |
| 3962 | + | |
| 3963 | +// 22.1.3.4 Array.prototype.entries() | |
| 3964 | +// 22.1.3.13 Array.prototype.keys() | |
| 3965 | +// 22.1.3.29 Array.prototype.values() | |
| 3966 | +// 22.1.3.30 Array.prototype[@@iterator]() | |
| 3967 | +module.exports = __webpack_require__(197)(Array, 'Array', function (iterated, kind) { | |
| 3968 | + this._t = toIObject(iterated); // target | |
| 3969 | + this._i = 0; // next index | |
| 3970 | + this._k = kind; // kind | |
| 3971 | +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() | |
| 3972 | +}, function () { | |
| 3973 | + var O = this._t; | |
| 3974 | + var kind = this._k; | |
| 3975 | + var index = this._i++; | |
| 3976 | + if (!O || index >= O.length) { | |
| 3977 | + this._t = undefined; | |
| 3978 | + return step(1); | |
| 2683 | 3979 | } |
| 2684 | - return (0, _createClass2.default)(Deprecation, null, [{ | |
| 2685 | - key: "deprecated", | |
| 2686 | - value: function deprecated(name, version, replacement) { | |
| 2687 | - if (this.isHardDeprecated(version)) { | |
| 2688 | - hardDeprecated(name, version, replacement); | |
| 2689 | - } else { | |
| 2690 | - softDeprecated(name, version, replacement); | |
| 2691 | - } | |
| 2692 | - } | |
| 3980 | + if (kind == 'keys') return step(0, index); | |
| 3981 | + if (kind == 'values') return step(0, O[index]); | |
| 3982 | + return step(0, [index, O[index]]); | |
| 3983 | +}, 'values'); | |
| 2693 | 3984 | |
| 2694 | - /** | |
| 2695 | - * @param {string} version | |
| 2696 | - * | |
| 2697 | - * @return {Version} | |
| 2698 | - */ | |
| 2699 | - }, { | |
| 2700 | - key: "parseVersion", | |
| 2701 | - value: function parseVersion(version) { | |
| 2702 | - var versionParts = version.split('.'); | |
| 2703 | - if (versionParts.length < 3 || versionParts.length > 4) { | |
| 2704 | - throw new RangeError('Invalid Semantic Version string provided'); | |
| 2705 | - } | |
| 2706 | - var _versionParts = (0, _slicedToArray2.default)(versionParts, 4), | |
| 2707 | - major1 = _versionParts[0], | |
| 2708 | - major2 = _versionParts[1], | |
| 2709 | - minor = _versionParts[2], | |
| 2710 | - _versionParts$ = _versionParts[3], | |
| 2711 | - build = _versionParts$ === void 0 ? '' : _versionParts$; | |
| 2712 | - return { | |
| 2713 | - major1: parseInt(major1), | |
| 2714 | - major2: parseInt(major2), | |
| 2715 | - minor: parseInt(minor), | |
| 2716 | - build: build | |
| 2717 | - }; | |
| 2718 | - } | |
| 3985 | +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) | |
| 3986 | +Iterators.Arguments = Iterators.Array; | |
| 2719 | 3987 | |
| 2720 | - /** | |
| 2721 | - * Get total of major. | |
| 2722 | - * | |
| 2723 | - * 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, | |
| 2724 | - * versions with major2 more then 9 will be added to total. | |
| 2725 | - * | |
| 2726 | - * @param {Version} versionObj | |
| 2727 | - * | |
| 2728 | - * @return {number} | |
| 2729 | - */ | |
| 2730 | - }, { | |
| 2731 | - key: "getTotalMajor", | |
| 2732 | - value: function getTotalMajor(versionObj) { | |
| 2733 | - var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0")); | |
| 2734 | - total = Number((total / 10).toFixed(0)); | |
| 2735 | - if (versionObj.major2 > 9) { | |
| 2736 | - total = versionObj.major2 - 9; | |
| 2737 | - } | |
| 2738 | - return total; | |
| 2739 | - } | |
| 3988 | +addToUnscopables('keys'); | |
| 3989 | +addToUnscopables('values'); | |
| 3990 | +addToUnscopables('entries'); | |
| 2740 | 3991 | |
| 2741 | - /** | |
| 2742 | - * @param {string} version1 | |
| 2743 | - * @param {string} version2 | |
| 2744 | - * | |
| 2745 | - * @return {number} | |
| 2746 | - */ | |
| 2747 | - }, { | |
| 2748 | - key: "compareVersion", | |
| 2749 | - value: function compareVersion(version1, version2) { | |
| 2750 | - var _this = this; | |
| 2751 | - return [this.parseVersion(version1), this.parseVersion(version2)].map(function (versionObj) { | |
| 2752 | - return _this.getTotalMajor(versionObj); | |
| 2753 | - }).reduce(function (acc, major) { | |
| 2754 | - return acc - major; | |
| 2755 | - }); | |
| 2756 | - } | |
| 2757 | 3992 | |
| 2758 | - /** | |
| 2759 | - * @param {string} version | |
| 2760 | - * | |
| 2761 | - * @return {boolean} | |
| 2762 | - */ | |
| 2763 | - }, { | |
| 2764 | - key: "isSoftDeprecated", | |
| 2765 | - value: function isSoftDeprecated(version) { | |
| 2766 | - var total = this.compareVersion(version, elementorWebCliConfig.version); | |
| 2767 | - return total <= 4; | |
| 2768 | - } | |
| 3993 | +/***/ }), | |
| 3994 | +/* 118 */ | |
| 3995 | +/***/ (function(module, exports) { | |
| 2769 | 3996 | |
| 2770 | - /** | |
| 2771 | - * @param {string} version | |
| 2772 | - * @return {boolean} | |
| 2773 | - */ | |
| 2774 | - }, { | |
| 2775 | - key: "isHardDeprecated", | |
| 2776 | - value: function isHardDeprecated(version) { | |
| 2777 | - var total = this.compareVersion(version, elementorWebCliConfig.version); | |
| 2778 | - return total < 0 || total >= 8; | |
| 2779 | - } | |
| 2780 | - }]); | |
| 2781 | -}(); | |
| 3997 | +module.exports = {}; | |
| 2782 | 3998 | |
| 3999 | + | |
| 2783 | 4000 | /***/ }), |
| 4001 | +/* 119 */, | |
| 4002 | +/* 120 */ | |
| 4003 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2784 | 4004 | |
| 2785 | -/***/ "../modules/web-cli/assets/js/utils/force-method-implementation.js": | |
| 2786 | -/*!*************************************************************************!*\ | |
| 2787 | - !*** ../modules/web-cli/assets/js/utils/force-method-implementation.js ***! | |
| 2788 | - \*************************************************************************/ | |
| 2789 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 4005 | +// fallback for non-array-like ES3 and non-enumerable old V8 strings | |
| 4006 | +var cof = __webpack_require__(46); | |
| 4007 | +// eslint-disable-next-line no-prototype-builtins | |
| 4008 | +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | |
| 4009 | + return cof(it) == 'String' ? it.split('') : Object(it); | |
| 4010 | +}; | |
| 2790 | 4011 | |
| 2791 | -"use strict"; | |
| 2792 | 4012 | |
| 4013 | +/***/ }), | |
| 4014 | +/* 121 */ | |
| 4015 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2793 | 4016 | |
| 2794 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2795 | -Object.defineProperty(exports, "__esModule", ({ | |
| 2796 | - value: true | |
| 2797 | -})); | |
| 2798 | -exports["default"] = exports.ForceMethodImplementation = void 0; | |
| 2799 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 2800 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 2801 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 2802 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 2803 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2804 | -var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); | |
| 2805 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 2806 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 2807 | -// TODO: Copied from `assets/dev/js/modules/imports/force-method-implementation.js`; | |
| 2808 | -var ForceMethodImplementation = exports.ForceMethodImplementation = /*#__PURE__*/function (_Error) { | |
| 2809 | - function ForceMethodImplementation() { | |
| 2810 | - var _this; | |
| 2811 | - var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 2812 | - (0, _classCallCheck2.default)(this, ForceMethodImplementation); | |
| 2813 | - _this = _callSuper(this, ForceMethodImplementation, ["".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")]); | |
| 2814 | - Error.captureStackTrace(_this, ForceMethodImplementation); | |
| 2815 | - return _this; | |
| 2816 | - } | |
| 2817 | - (0, _inherits2.default)(ForceMethodImplementation, _Error); | |
| 2818 | - return (0, _createClass2.default)(ForceMethodImplementation); | |
| 2819 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 2820 | -var _default = exports["default"] = function _default() { | |
| 2821 | - var stack = Error().stack, | |
| 2822 | - caller = stack.split('\n')[2].trim(), | |
| 2823 | - callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1], | |
| 2824 | - info = {}; | |
| 2825 | - info.functionName = callerName; | |
| 2826 | - info.fullName = callerName; | |
| 2827 | - if (info.functionName.includes('.')) { | |
| 2828 | - var parts = info.functionName.split('.'); | |
| 2829 | - info.className = parts[0]; | |
| 2830 | - info.functionName = parts[1]; | |
| 2831 | - } else { | |
| 2832 | - info.isStatic = true; | |
| 2833 | - } | |
| 2834 | - throw new ForceMethodImplementation(info); | |
| 4017 | +var isObject = __webpack_require__(9); | |
| 4018 | +module.exports = function (it, TYPE) { | |
| 4019 | + if (!isObject(it) || it._t !== TYPE) throw TypeError('Incompatible receiver, ' + TYPE + ' required!'); | |
| 4020 | + return it; | |
| 2835 | 4021 | }; |
| 2836 | 4022 | |
| 4023 | + | |
| 2837 | 4024 | /***/ }), |
| 4025 | +/* 122 */ | |
| 4026 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2838 | 4027 | |
| 2839 | -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 2840 | -/*!******************************************************************!*\ | |
| 2841 | - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 2842 | - \******************************************************************/ | |
| 2843 | -/***/ ((module) => { | |
| 4028 | +// 7.2.8 IsRegExp(argument) | |
| 4029 | +var isObject = __webpack_require__(30); | |
| 4030 | +var cof = __webpack_require__(46); | |
| 4031 | +var MATCH = __webpack_require__(12)('match'); | |
| 4032 | +module.exports = function (it) { | |
| 4033 | + var isRegExp; | |
| 4034 | + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); | |
| 4035 | +}; | |
| 2844 | 4036 | |
| 2845 | -function _arrayLikeToArray(r, a) { | |
| 2846 | - (null == a || a > r.length) && (a = r.length); | |
| 2847 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 2848 | - return n; | |
| 2849 | -} | |
| 2850 | -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2851 | 4037 | |
| 2852 | 4038 | /***/ }), |
| 4039 | +/* 123 */ | |
| 4040 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2853 | 4041 | |
| 2854 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 2855 | -/*!****************************************************************!*\ | |
| 2856 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 2857 | - \****************************************************************/ | |
| 2858 | -/***/ ((module) => { | |
| 4042 | +// 7.1.1 ToPrimitive(input [, PreferredType]) | |
| 4043 | +var isObject = __webpack_require__(30); | |
| 4044 | +// instead of the ES6 spec version, we didn't implement @@toPrimitive case | |
| 4045 | +// and the second argument - flag - preferred type is a string | |
| 4046 | +module.exports = function (it, S) { | |
| 4047 | + if (!isObject(it)) return it; | |
| 4048 | + var fn, val; | |
| 4049 | + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 4050 | + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 4051 | + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 4052 | + throw TypeError("Can't convert object to primitive value"); | |
| 4053 | +}; | |
| 2859 | 4054 | |
| 2860 | -function _arrayWithHoles(r) { | |
| 2861 | - if (Array.isArray(r)) return r; | |
| 2862 | -} | |
| 2863 | -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2864 | 4055 | |
| 2865 | 4056 | /***/ }), |
| 4057 | +/* 124 */ | |
| 4058 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2866 | 4059 | |
| 2867 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": | |
| 2868 | -/*!*******************************************************************!*\ | |
| 2869 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! | |
| 2870 | - \*******************************************************************/ | |
| 2871 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4060 | +module.exports = __webpack_require__(191); | |
| 2872 | 4061 | |
| 2873 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 2874 | -function _arrayWithoutHoles(r) { | |
| 2875 | - if (Array.isArray(r)) return arrayLikeToArray(r); | |
| 2876 | -} | |
| 2877 | -module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4062 | +/***/ }), | |
| 4063 | +/* 125 */ | |
| 4064 | +/***/ (function(module, exports) { | |
| 2878 | 4065 | |
| 4066 | +module.exports = function (it, Constructor, name, forbiddenField) { | |
| 4067 | + if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) { | |
| 4068 | + throw TypeError(name + ': incorrect invocation!'); | |
| 4069 | + } return it; | |
| 4070 | +}; | |
| 4071 | + | |
| 4072 | + | |
| 2879 | 4073 | /***/ }), |
| 4074 | +/* 126 */ | |
| 4075 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2880 | 4076 | |
| 2881 | -/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 2882 | -/*!***********************************************************************!*\ | |
| 2883 | - !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 2884 | - \***********************************************************************/ | |
| 2885 | -/***/ ((module) => { | |
| 4077 | +var hide = __webpack_require__(24); | |
| 4078 | +module.exports = function (target, src, safe) { | |
| 4079 | + for (var key in src) { | |
| 4080 | + if (safe && target[key]) target[key] = src[key]; | |
| 4081 | + else hide(target, key, src[key]); | |
| 4082 | + } return target; | |
| 4083 | +}; | |
| 2886 | 4084 | |
| 2887 | -function _assertThisInitialized(e) { | |
| 2888 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 2889 | - return e; | |
| 2890 | -} | |
| 2891 | -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2892 | 4085 | |
| 2893 | 4086 | /***/ }), |
| 4087 | +/* 127 */, | |
| 4088 | +/* 128 */, | |
| 4089 | +/* 129 */ | |
| 4090 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2894 | 4091 | |
| 2895 | -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 2896 | -/*!****************************************************************!*\ | |
| 2897 | - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 2898 | - \****************************************************************/ | |
| 2899 | -/***/ ((module) => { | |
| 4092 | +module.exports = !__webpack_require__(27) && !__webpack_require__(33)(function () { | |
| 4093 | + return Object.defineProperty(__webpack_require__(109)('div'), 'a', { get: function () { return 7; } }).a != 7; | |
| 4094 | +}); | |
| 2900 | 4095 | |
| 2901 | -function _classCallCheck(a, n) { | |
| 2902 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 2903 | -} | |
| 2904 | -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2905 | 4096 | |
| 2906 | 4097 | /***/ }), |
| 4098 | +/* 130 */ | |
| 4099 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2907 | 4100 | |
| 2908 | -/***/ "../node_modules/@babel/runtime/helpers/construct.js": | |
| 2909 | -/*!***********************************************************!*\ | |
| 2910 | - !*** ../node_modules/@babel/runtime/helpers/construct.js ***! | |
| 2911 | - \***********************************************************/ | |
| 2912 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4101 | +var shared = __webpack_require__(66)('keys'); | |
| 4102 | +var uid = __webpack_require__(67); | |
| 4103 | +module.exports = function (key) { | |
| 4104 | + return shared[key] || (shared[key] = uid(key)); | |
| 4105 | +}; | |
| 2913 | 4106 | |
| 2914 | -var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); | |
| 2915 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 2916 | -function _construct(t, e, r) { | |
| 2917 | - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); | |
| 2918 | - var o = [null]; | |
| 2919 | - o.push.apply(o, e); | |
| 2920 | - var p = new (t.bind.apply(t, o))(); | |
| 2921 | - return r && setPrototypeOf(p, r.prototype), p; | |
| 2922 | -} | |
| 2923 | -module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2924 | 4107 | |
| 2925 | 4108 | /***/ }), |
| 4109 | +/* 131 */ | |
| 4110 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2926 | 4111 | |
| 2927 | -/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 2928 | -/*!*************************************************************!*\ | |
| 2929 | - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 2930 | - \*************************************************************/ | |
| 2931 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4112 | +var document = __webpack_require__(8).document; | |
| 4113 | +module.exports = document && document.documentElement; | |
| 2932 | 4114 | |
| 2933 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2934 | -function _defineProperties(e, r) { | |
| 2935 | - for (var t = 0; t < r.length; t++) { | |
| 2936 | - var o = r[t]; | |
| 2937 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 2938 | - } | |
| 2939 | -} | |
| 2940 | -function _createClass(e, r, t) { | |
| 2941 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 2942 | - writable: !1 | |
| 2943 | - }), e; | |
| 2944 | -} | |
| 2945 | -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2946 | 4115 | |
| 2947 | 4116 | /***/ }), |
| 4117 | +/* 132 */ | |
| 4118 | +/***/ (function(module, exports) { | |
| 2948 | 4119 | |
| 2949 | -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 2950 | -/*!****************************************************************!*\ | |
| 2951 | - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 2952 | - \****************************************************************/ | |
| 2953 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4120 | +// fast apply, http://jsperf.lnkit.com/fast-apply/5 | |
| 4121 | +module.exports = function (fn, args, that) { | |
| 4122 | + var un = that === undefined; | |
| 4123 | + switch (args.length) { | |
| 4124 | + case 0: return un ? fn() | |
| 4125 | + : fn.call(that); | |
| 4126 | + case 1: return un ? fn(args[0]) | |
| 4127 | + : fn.call(that, args[0]); | |
| 4128 | + case 2: return un ? fn(args[0], args[1]) | |
| 4129 | + : fn.call(that, args[0], args[1]); | |
| 4130 | + case 3: return un ? fn(args[0], args[1], args[2]) | |
| 4131 | + : fn.call(that, args[0], args[1], args[2]); | |
| 4132 | + case 4: return un ? fn(args[0], args[1], args[2], args[3]) | |
| 4133 | + : fn.call(that, args[0], args[1], args[2], args[3]); | |
| 4134 | + } return fn.apply(that, args); | |
| 4135 | +}; | |
| 2954 | 4136 | |
| 2955 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2956 | -function _defineProperty(e, r, t) { | |
| 2957 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 2958 | - value: t, | |
| 2959 | - enumerable: !0, | |
| 2960 | - configurable: !0, | |
| 2961 | - writable: !0 | |
| 2962 | - }) : e[r] = t, e; | |
| 2963 | -} | |
| 2964 | -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2965 | 4137 | |
| 2966 | 4138 | /***/ }), |
| 4139 | +/* 133 */ | |
| 4140 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2967 | 4141 | |
| 2968 | -/***/ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js": | |
| 2969 | -/*!********************************************************************!*\ | |
| 2970 | - !*** ../node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! | |
| 2971 | - \********************************************************************/ | |
| 2972 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 4142 | +module.exports = __webpack_require__(257); | |
| 2973 | 4143 | |
| 2974 | -"use strict"; | |
| 2975 | -__webpack_require__.r(__webpack_exports__); | |
| 2976 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 2977 | -/* harmony export */ "default": () => (/* binding */ _defineProperty) | |
| 2978 | -/* harmony export */ }); | |
| 2979 | -/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"); | |
| 4144 | +/***/ }), | |
| 4145 | +/* 134 */ | |
| 4146 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2980 | 4147 | |
| 2981 | -function _defineProperty(e, r, t) { | |
| 2982 | - return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, { | |
| 2983 | - value: t, | |
| 2984 | - enumerable: !0, | |
| 2985 | - configurable: !0, | |
| 2986 | - writable: !0 | |
| 2987 | - }) : e[r] = t, e; | |
| 4148 | +var dP = __webpack_require__(15); | |
| 4149 | +var anObject = __webpack_require__(13); | |
| 4150 | +var getKeys = __webpack_require__(40); | |
| 4151 | + | |
| 4152 | +module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) { | |
| 4153 | + anObject(O); | |
| 4154 | + var keys = getKeys(Properties); | |
| 4155 | + var length = keys.length; | |
| 4156 | + var i = 0; | |
| 4157 | + var P; | |
| 4158 | + while (length > i) dP.f(O, P = keys[i++], Properties[P]); | |
| 4159 | + return O; | |
| 4160 | +}; | |
| 4161 | + | |
| 4162 | + | |
| 4163 | +/***/ }), | |
| 4164 | +/* 135 */ | |
| 4165 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4166 | + | |
| 4167 | +var _Object$setPrototypeOf = __webpack_require__(115); | |
| 4168 | + | |
| 4169 | +function _setPrototypeOf(o, p) { | |
| 4170 | + module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) { | |
| 4171 | + o.__proto__ = p; | |
| 4172 | + return o; | |
| 4173 | + }; | |
| 4174 | + | |
| 4175 | + return _setPrototypeOf(o, p); | |
| 2988 | 4176 | } |
| 2989 | 4177 | |
| 4178 | +module.exports = _setPrototypeOf; | |
| 2990 | 4179 | |
| 2991 | 4180 | /***/ }), |
| 4181 | +/* 136 */ | |
| 4182 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2992 | 4183 | |
| 2993 | -/***/ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js": | |
| 2994 | -/*!*******************************************************************!*\ | |
| 2995 | - !*** ../node_modules/@babel/runtime/helpers/esm/objectSpread2.js ***! | |
| 2996 | - \*******************************************************************/ | |
| 2997 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 4184 | +// 0 -> Array#forEach | |
| 4185 | +// 1 -> Array#map | |
| 4186 | +// 2 -> Array#filter | |
| 4187 | +// 3 -> Array#some | |
| 4188 | +// 4 -> Array#every | |
| 4189 | +// 5 -> Array#find | |
| 4190 | +// 6 -> Array#findIndex | |
| 4191 | +var ctx = __webpack_require__(31); | |
| 4192 | +var IObject = __webpack_require__(103); | |
| 4193 | +var toObject = __webpack_require__(32); | |
| 4194 | +var toLength = __webpack_require__(68); | |
| 4195 | +var asc = __webpack_require__(245); | |
| 4196 | +module.exports = function (TYPE, $create) { | |
| 4197 | + var IS_MAP = TYPE == 1; | |
| 4198 | + var IS_FILTER = TYPE == 2; | |
| 4199 | + var IS_SOME = TYPE == 3; | |
| 4200 | + var IS_EVERY = TYPE == 4; | |
| 4201 | + var IS_FIND_INDEX = TYPE == 6; | |
| 4202 | + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; | |
| 4203 | + var create = $create || asc; | |
| 4204 | + return function ($this, callbackfn, that) { | |
| 4205 | + var O = toObject($this); | |
| 4206 | + var self = IObject(O); | |
| 4207 | + var f = ctx(callbackfn, that, 3); | |
| 4208 | + var length = toLength(self.length); | |
| 4209 | + var index = 0; | |
| 4210 | + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; | |
| 4211 | + var val, res; | |
| 4212 | + for (;length > index; index++) if (NO_HOLES || index in self) { | |
| 4213 | + val = self[index]; | |
| 4214 | + res = f(val, index, O); | |
| 4215 | + if (TYPE) { | |
| 4216 | + if (IS_MAP) result[index] = res; // map | |
| 4217 | + else if (res) switch (TYPE) { | |
| 4218 | + case 3: return true; // some | |
| 4219 | + case 5: return val; // find | |
| 4220 | + case 6: return index; // findIndex | |
| 4221 | + case 2: result.push(val); // filter | |
| 4222 | + } else if (IS_EVERY) return false; // every | |
| 4223 | + } | |
| 4224 | + } | |
| 4225 | + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; | |
| 4226 | + }; | |
| 4227 | +}; | |
| 2998 | 4228 | |
| 4229 | + | |
| 4230 | +/***/ }), | |
| 4231 | +/* 137 */ | |
| 4232 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4233 | + | |
| 4234 | +module.exports = __webpack_require__(163); | |
| 4235 | + | |
| 4236 | +/***/ }), | |
| 4237 | +/* 138 */ | |
| 4238 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4239 | + | |
| 2999 | 4240 | "use strict"; |
| 3000 | -__webpack_require__.r(__webpack_exports__); | |
| 3001 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3002 | -/* harmony export */ "default": () => (/* binding */ _objectSpread2) | |
| 3003 | -/* harmony export */ }); | |
| 3004 | -/* harmony import */ var _defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defineProperty.js */ "../node_modules/@babel/runtime/helpers/esm/defineProperty.js"); | |
| 3005 | 4241 | |
| 3006 | -function ownKeys(e, r) { | |
| 3007 | - var t = Object.keys(e); | |
| 3008 | - if (Object.getOwnPropertySymbols) { | |
| 3009 | - var o = Object.getOwnPropertySymbols(e); | |
| 3010 | - r && (o = o.filter(function (r) { | |
| 3011 | - return Object.getOwnPropertyDescriptor(e, r).enumerable; | |
| 3012 | - })), t.push.apply(t, o); | |
| 4242 | +// ECMAScript 6 symbols shim | |
| 4243 | +var global = __webpack_require__(8); | |
| 4244 | +var has = __webpack_require__(19); | |
| 4245 | +var DESCRIPTORS = __webpack_require__(14); | |
| 4246 | +var $export = __webpack_require__(7); | |
| 4247 | +var redefine = __webpack_require__(93); | |
| 4248 | +var META = __webpack_require__(70).KEY; | |
| 4249 | +var $fails = __webpack_require__(22); | |
| 4250 | +var shared = __webpack_require__(76); | |
| 4251 | +var setToStringTag = __webpack_require__(53); | |
| 4252 | +var uid = __webpack_require__(59); | |
| 4253 | +var wks = __webpack_require__(10); | |
| 4254 | +var wksExt = __webpack_require__(63); | |
| 4255 | +var wksDefine = __webpack_require__(79); | |
| 4256 | +var enumKeys = __webpack_require__(177); | |
| 4257 | +var isArray = __webpack_require__(97); | |
| 4258 | +var anObject = __webpack_require__(13); | |
| 4259 | +var isObject = __webpack_require__(9); | |
| 4260 | +var toObject = __webpack_require__(32); | |
| 4261 | +var toIObject = __webpack_require__(20); | |
| 4262 | +var toPrimitive = __webpack_require__(74); | |
| 4263 | +var createDesc = __webpack_require__(44); | |
| 4264 | +var _create = __webpack_require__(52); | |
| 4265 | +var gOPNExt = __webpack_require__(178); | |
| 4266 | +var $GOPD = __webpack_require__(51); | |
| 4267 | +var $GOPS = __webpack_require__(71); | |
| 4268 | +var $DP = __webpack_require__(15); | |
| 4269 | +var $keys = __webpack_require__(40); | |
| 4270 | +var gOPD = $GOPD.f; | |
| 4271 | +var dP = $DP.f; | |
| 4272 | +var gOPN = gOPNExt.f; | |
| 4273 | +var $Symbol = global.Symbol; | |
| 4274 | +var $JSON = global.JSON; | |
| 4275 | +var _stringify = $JSON && $JSON.stringify; | |
| 4276 | +var PROTOTYPE = 'prototype'; | |
| 4277 | +var HIDDEN = wks('_hidden'); | |
| 4278 | +var TO_PRIMITIVE = wks('toPrimitive'); | |
| 4279 | +var isEnum = {}.propertyIsEnumerable; | |
| 4280 | +var SymbolRegistry = shared('symbol-registry'); | |
| 4281 | +var AllSymbols = shared('symbols'); | |
| 4282 | +var OPSymbols = shared('op-symbols'); | |
| 4283 | +var ObjectProto = Object[PROTOTYPE]; | |
| 4284 | +var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; | |
| 4285 | +var QObject = global.QObject; | |
| 4286 | +// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 | |
| 4287 | +var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; | |
| 4288 | + | |
| 4289 | +// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 | |
| 4290 | +var setSymbolDesc = DESCRIPTORS && $fails(function () { | |
| 4291 | + return _create(dP({}, 'a', { | |
| 4292 | + get: function () { return dP(this, 'a', { value: 7 }).a; } | |
| 4293 | + })).a != 7; | |
| 4294 | +}) ? function (it, key, D) { | |
| 4295 | + var protoDesc = gOPD(ObjectProto, key); | |
| 4296 | + if (protoDesc) delete ObjectProto[key]; | |
| 4297 | + dP(it, key, D); | |
| 4298 | + if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); | |
| 4299 | +} : dP; | |
| 4300 | + | |
| 4301 | +var wrap = function (tag) { | |
| 4302 | + var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); | |
| 4303 | + sym._k = tag; | |
| 4304 | + return sym; | |
| 4305 | +}; | |
| 4306 | + | |
| 4307 | +var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { | |
| 4308 | + return typeof it == 'symbol'; | |
| 4309 | +} : function (it) { | |
| 4310 | + return it instanceof $Symbol; | |
| 4311 | +}; | |
| 4312 | + | |
| 4313 | +var $defineProperty = function defineProperty(it, key, D) { | |
| 4314 | + if (it === ObjectProto) $defineProperty(OPSymbols, key, D); | |
| 4315 | + anObject(it); | |
| 4316 | + key = toPrimitive(key, true); | |
| 4317 | + anObject(D); | |
| 4318 | + if (has(AllSymbols, key)) { | |
| 4319 | + if (!D.enumerable) { | |
| 4320 | + if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); | |
| 4321 | + it[HIDDEN][key] = true; | |
| 4322 | + } else { | |
| 4323 | + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; | |
| 4324 | + D = _create(D, { enumerable: createDesc(0, false) }); | |
| 4325 | + } return setSymbolDesc(it, key, D); | |
| 4326 | + } return dP(it, key, D); | |
| 4327 | +}; | |
| 4328 | +var $defineProperties = function defineProperties(it, P) { | |
| 4329 | + anObject(it); | |
| 4330 | + var keys = enumKeys(P = toIObject(P)); | |
| 4331 | + var i = 0; | |
| 4332 | + var l = keys.length; | |
| 4333 | + var key; | |
| 4334 | + while (l > i) $defineProperty(it, key = keys[i++], P[key]); | |
| 4335 | + return it; | |
| 4336 | +}; | |
| 4337 | +var $create = function create(it, P) { | |
| 4338 | + return P === undefined ? _create(it) : $defineProperties(_create(it), P); | |
| 4339 | +}; | |
| 4340 | +var $propertyIsEnumerable = function propertyIsEnumerable(key) { | |
| 4341 | + var E = isEnum.call(this, key = toPrimitive(key, true)); | |
| 4342 | + if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; | |
| 4343 | + return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; | |
| 4344 | +}; | |
| 4345 | +var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { | |
| 4346 | + it = toIObject(it); | |
| 4347 | + key = toPrimitive(key, true); | |
| 4348 | + if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; | |
| 4349 | + var D = gOPD(it, key); | |
| 4350 | + if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; | |
| 4351 | + return D; | |
| 4352 | +}; | |
| 4353 | +var $getOwnPropertyNames = function getOwnPropertyNames(it) { | |
| 4354 | + var names = gOPN(toIObject(it)); | |
| 4355 | + var result = []; | |
| 4356 | + var i = 0; | |
| 4357 | + var key; | |
| 4358 | + while (names.length > i) { | |
| 4359 | + if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); | |
| 4360 | + } return result; | |
| 4361 | +}; | |
| 4362 | +var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { | |
| 4363 | + var IS_OP = it === ObjectProto; | |
| 4364 | + var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); | |
| 4365 | + var result = []; | |
| 4366 | + var i = 0; | |
| 4367 | + var key; | |
| 4368 | + while (names.length > i) { | |
| 4369 | + if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); | |
| 4370 | + } return result; | |
| 4371 | +}; | |
| 4372 | + | |
| 4373 | +// 19.4.1.1 Symbol([description]) | |
| 4374 | +if (!USE_NATIVE) { | |
| 4375 | + $Symbol = function Symbol() { | |
| 4376 | + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); | |
| 4377 | + var tag = uid(arguments.length > 0 ? arguments[0] : undefined); | |
| 4378 | + var $set = function (value) { | |
| 4379 | + if (this === ObjectProto) $set.call(OPSymbols, value); | |
| 4380 | + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; | |
| 4381 | + setSymbolDesc(this, tag, createDesc(1, value)); | |
| 4382 | + }; | |
| 4383 | + if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); | |
| 4384 | + return wrap(tag); | |
| 4385 | + }; | |
| 4386 | + redefine($Symbol[PROTOTYPE], 'toString', function toString() { | |
| 4387 | + return this._k; | |
| 4388 | + }); | |
| 4389 | + | |
| 4390 | + $GOPD.f = $getOwnPropertyDescriptor; | |
| 4391 | + $DP.f = $defineProperty; | |
| 4392 | + __webpack_require__(99).f = gOPNExt.f = $getOwnPropertyNames; | |
| 4393 | + __webpack_require__(50).f = $propertyIsEnumerable; | |
| 4394 | + $GOPS.f = $getOwnPropertySymbols; | |
| 4395 | + | |
| 4396 | + if (DESCRIPTORS && !__webpack_require__(47)) { | |
| 4397 | + redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); | |
| 3013 | 4398 | } |
| 3014 | - return t; | |
| 4399 | + | |
| 4400 | + wksExt.f = function (name) { | |
| 4401 | + return wrap(wks(name)); | |
| 4402 | + }; | |
| 3015 | 4403 | } |
| 3016 | -function _objectSpread2(e) { | |
| 3017 | - for (var r = 1; r < arguments.length; r++) { | |
| 3018 | - var t = null != arguments[r] ? arguments[r] : {}; | |
| 3019 | - r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { | |
| 3020 | - (0,_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]); | |
| 3021 | - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { | |
| 3022 | - Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | |
| 3023 | - }); | |
| 4404 | + | |
| 4405 | +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); | |
| 4406 | + | |
| 4407 | +for (var es6Symbols = ( | |
| 4408 | + // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 | |
| 4409 | + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' | |
| 4410 | +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); | |
| 4411 | + | |
| 4412 | +for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); | |
| 4413 | + | |
| 4414 | +$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { | |
| 4415 | + // 19.4.2.1 Symbol.for(key) | |
| 4416 | + 'for': function (key) { | |
| 4417 | + return has(SymbolRegistry, key += '') | |
| 4418 | + ? SymbolRegistry[key] | |
| 4419 | + : SymbolRegistry[key] = $Symbol(key); | |
| 4420 | + }, | |
| 4421 | + // 19.4.2.5 Symbol.keyFor(sym) | |
| 4422 | + keyFor: function keyFor(sym) { | |
| 4423 | + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); | |
| 4424 | + for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; | |
| 4425 | + }, | |
| 4426 | + useSetter: function () { setter = true; }, | |
| 4427 | + useSimple: function () { setter = false; } | |
| 4428 | +}); | |
| 4429 | + | |
| 4430 | +$export($export.S + $export.F * !USE_NATIVE, 'Object', { | |
| 4431 | + // 19.1.2.2 Object.create(O [, Properties]) | |
| 4432 | + create: $create, | |
| 4433 | + // 19.1.2.4 Object.defineProperty(O, P, Attributes) | |
| 4434 | + defineProperty: $defineProperty, | |
| 4435 | + // 19.1.2.3 Object.defineProperties(O, Properties) | |
| 4436 | + defineProperties: $defineProperties, | |
| 4437 | + // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) | |
| 4438 | + getOwnPropertyDescriptor: $getOwnPropertyDescriptor, | |
| 4439 | + // 19.1.2.7 Object.getOwnPropertyNames(O) | |
| 4440 | + getOwnPropertyNames: $getOwnPropertyNames, | |
| 4441 | + // 19.1.2.8 Object.getOwnPropertySymbols(O) | |
| 4442 | + getOwnPropertySymbols: $getOwnPropertySymbols | |
| 4443 | +}); | |
| 4444 | + | |
| 4445 | +// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives | |
| 4446 | +// https://bugs.chromium.org/p/v8/issues/detail?id=3443 | |
| 4447 | +var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); }); | |
| 4448 | + | |
| 4449 | +$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { | |
| 4450 | + getOwnPropertySymbols: function getOwnPropertySymbols(it) { | |
| 4451 | + return $GOPS.f(toObject(it)); | |
| 3024 | 4452 | } |
| 3025 | - return e; | |
| 3026 | -} | |
| 4453 | +}); | |
| 3027 | 4454 | |
| 4455 | +// 24.3.2 JSON.stringify(value [, replacer [, space]]) | |
| 4456 | +$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { | |
| 4457 | + var S = $Symbol(); | |
| 4458 | + // MS Edge converts symbol values to JSON as {} | |
| 4459 | + // WebKit converts symbol values to JSON as null | |
| 4460 | + // V8 throws on boxed symbols | |
| 4461 | + return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; | |
| 4462 | +})), 'JSON', { | |
| 4463 | + stringify: function stringify(it) { | |
| 4464 | + var args = [it]; | |
| 4465 | + var i = 1; | |
| 4466 | + var replacer, $replacer; | |
| 4467 | + while (arguments.length > i) args.push(arguments[i++]); | |
| 4468 | + $replacer = replacer = args[1]; | |
| 4469 | + if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined | |
| 4470 | + if (!isArray(replacer)) replacer = function (key, value) { | |
| 4471 | + if (typeof $replacer == 'function') value = $replacer.call(this, key, value); | |
| 4472 | + if (!isSymbol(value)) return value; | |
| 4473 | + }; | |
| 4474 | + args[1] = replacer; | |
| 4475 | + return _stringify.apply($JSON, args); | |
| 4476 | + } | |
| 4477 | +}); | |
| 3028 | 4478 | |
| 4479 | +// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) | |
| 4480 | +$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(24)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); | |
| 4481 | +// 19.4.3.5 Symbol.prototype[@@toStringTag] | |
| 4482 | +setToStringTag($Symbol, 'Symbol'); | |
| 4483 | +// 20.2.1.9 Math[@@toStringTag] | |
| 4484 | +setToStringTag(Math, 'Math', true); | |
| 4485 | +// 24.3.3 JSON[@@toStringTag] | |
| 4486 | +setToStringTag(global.JSON, 'JSON', true); | |
| 4487 | + | |
| 4488 | + | |
| 3029 | 4489 | /***/ }), |
| 4490 | +/* 139 */ | |
| 4491 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3030 | 4492 | |
| 3031 | -/***/ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js": | |
| 3032 | -/*!*****************************************************************!*\ | |
| 3033 | - !*** ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***! | |
| 3034 | - \*****************************************************************/ | |
| 3035 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 4493 | +// call something on iterator step with safe closing on error | |
| 4494 | +var anObject = __webpack_require__(13); | |
| 4495 | +module.exports = function (iterator, fn, value, entries) { | |
| 4496 | + try { | |
| 4497 | + return entries ? fn(anObject(value)[0], value[1]) : fn(value); | |
| 4498 | + // 7.4.6 IteratorClose(iterator, completion) | |
| 4499 | + } catch (e) { | |
| 4500 | + var ret = iterator['return']; | |
| 4501 | + if (ret !== undefined) anObject(ret.call(iterator)); | |
| 4502 | + throw e; | |
| 4503 | + } | |
| 4504 | +}; | |
| 3036 | 4505 | |
| 4506 | + | |
| 4507 | +/***/ }), | |
| 4508 | +/* 140 */ | |
| 4509 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4510 | + | |
| 4511 | +// check on default Array iterator | |
| 4512 | +var Iterators = __webpack_require__(34); | |
| 4513 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 4514 | +var ArrayProto = Array.prototype; | |
| 4515 | + | |
| 4516 | +module.exports = function (it) { | |
| 4517 | + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); | |
| 4518 | +}; | |
| 4519 | + | |
| 4520 | + | |
| 4521 | +/***/ }), | |
| 4522 | +/* 141 */ | |
| 4523 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4524 | + | |
| 3037 | 4525 | "use strict"; |
| 3038 | -__webpack_require__.r(__webpack_exports__); | |
| 3039 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3040 | -/* harmony export */ "default": () => (/* binding */ toPrimitive) | |
| 3041 | -/* harmony export */ }); | |
| 3042 | -/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js"); | |
| 3043 | 4526 | |
| 3044 | -function toPrimitive(t, r) { | |
| 3045 | - if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t; | |
| 3046 | - var e = t[Symbol.toPrimitive]; | |
| 3047 | - if (void 0 !== e) { | |
| 3048 | - var i = e.call(t, r || "default"); | |
| 3049 | - if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i; | |
| 3050 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 4527 | +// https://github.com/tc39/Array.prototype.includes | |
| 4528 | +var $export = __webpack_require__(37); | |
| 4529 | +var $includes = __webpack_require__(146)(true); | |
| 4530 | + | |
| 4531 | +$export($export.P, 'Array', { | |
| 4532 | + includes: function includes(el /* , fromIndex = 0 */) { | |
| 4533 | + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); | |
| 3051 | 4534 | } |
| 3052 | - return ("string" === r ? String : Number)(t); | |
| 3053 | -} | |
| 4535 | +}); | |
| 3054 | 4536 | |
| 4537 | +__webpack_require__(85)('includes'); | |
| 3055 | 4538 | |
| 4539 | + | |
| 3056 | 4540 | /***/ }), |
| 4541 | +/* 142 */ | |
| 4542 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3057 | 4543 | |
| 3058 | -/***/ "../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js": | |
| 3059 | -/*!*******************************************************************!*\ | |
| 3060 | - !*** ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***! | |
| 3061 | - \*******************************************************************/ | |
| 3062 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 4544 | +var toInteger = __webpack_require__(57); | |
| 4545 | +var defined = __webpack_require__(42); | |
| 4546 | +// true -> String#at | |
| 4547 | +// false -> String#codePointAt | |
| 4548 | +module.exports = function (TO_STRING) { | |
| 4549 | + return function (that, pos) { | |
| 4550 | + var s = String(defined(that)); | |
| 4551 | + var i = toInteger(pos); | |
| 4552 | + var l = s.length; | |
| 4553 | + var a, b; | |
| 4554 | + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | |
| 4555 | + a = s.charCodeAt(i); | |
| 4556 | + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | |
| 4557 | + ? TO_STRING ? s.charAt(i) : a | |
| 4558 | + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; | |
| 4559 | + }; | |
| 4560 | +}; | |
| 3063 | 4561 | |
| 4562 | + | |
| 4563 | +/***/ }), | |
| 4564 | +/* 143 */ | |
| 4565 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4566 | + | |
| 4567 | +module.exports = __webpack_require__(66)('native-function-to-string', Function.toString); | |
| 4568 | + | |
| 4569 | + | |
| 4570 | +/***/ }), | |
| 4571 | +/* 144 */ | |
| 4572 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4573 | + | |
| 3064 | 4574 | "use strict"; |
| 3065 | -__webpack_require__.r(__webpack_exports__); | |
| 3066 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3067 | -/* harmony export */ "default": () => (/* binding */ toPropertyKey) | |
| 3068 | -/* harmony export */ }); | |
| 3069 | -/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/esm/typeof.js"); | |
| 3070 | -/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"); | |
| 3071 | 4575 | |
| 4576 | +// 25.4.1.5 NewPromiseCapability(C) | |
| 4577 | +var aFunction = __webpack_require__(38); | |
| 3072 | 4578 | |
| 3073 | -function toPropertyKey(t) { | |
| 3074 | - var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string"); | |
| 3075 | - return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + ""; | |
| 4579 | +function PromiseCapability(C) { | |
| 4580 | + var resolve, reject; | |
| 4581 | + this.promise = new C(function ($$resolve, $$reject) { | |
| 4582 | + if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); | |
| 4583 | + resolve = $$resolve; | |
| 4584 | + reject = $$reject; | |
| 4585 | + }); | |
| 4586 | + this.resolve = aFunction(resolve); | |
| 4587 | + this.reject = aFunction(reject); | |
| 3076 | 4588 | } |
| 3077 | 4589 | |
| 4590 | +module.exports.f = function (C) { | |
| 4591 | + return new PromiseCapability(C); | |
| 4592 | +}; | |
| 3078 | 4593 | |
| 4594 | + | |
| 3079 | 4595 | /***/ }), |
| 4596 | +/* 145 */ | |
| 4597 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3080 | 4598 | |
| 3081 | -/***/ "../node_modules/@babel/runtime/helpers/esm/typeof.js": | |
| 3082 | -/*!************************************************************!*\ | |
| 3083 | - !*** ../node_modules/@babel/runtime/helpers/esm/typeof.js ***! | |
| 3084 | - \************************************************************/ | |
| 3085 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 4599 | +var $iterators = __webpack_require__(117); | |
| 4600 | +var getKeys = __webpack_require__(183); | |
| 4601 | +var redefine = __webpack_require__(35); | |
| 4602 | +var global = __webpack_require__(17); | |
| 4603 | +var hide = __webpack_require__(29); | |
| 4604 | +var Iterators = __webpack_require__(118); | |
| 4605 | +var wks = __webpack_require__(12); | |
| 4606 | +var ITERATOR = wks('iterator'); | |
| 4607 | +var TO_STRING_TAG = wks('toStringTag'); | |
| 4608 | +var ArrayValues = Iterators.Array; | |
| 3086 | 4609 | |
| 3087 | -"use strict"; | |
| 3088 | -__webpack_require__.r(__webpack_exports__); | |
| 3089 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3090 | -/* harmony export */ "default": () => (/* binding */ _typeof) | |
| 3091 | -/* harmony export */ }); | |
| 3092 | -function _typeof(o) { | |
| 3093 | - "@babel/helpers - typeof"; | |
| 4610 | +var DOMIterables = { | |
| 4611 | + CSSRuleList: true, // TODO: Not spec compliant, should be false. | |
| 4612 | + CSSStyleDeclaration: false, | |
| 4613 | + CSSValueList: false, | |
| 4614 | + ClientRectList: false, | |
| 4615 | + DOMRectList: false, | |
| 4616 | + DOMStringList: false, | |
| 4617 | + DOMTokenList: true, | |
| 4618 | + DataTransferItemList: false, | |
| 4619 | + FileList: false, | |
| 4620 | + HTMLAllCollection: false, | |
| 4621 | + HTMLCollection: false, | |
| 4622 | + HTMLFormElement: false, | |
| 4623 | + HTMLSelectElement: false, | |
| 4624 | + MediaList: true, // TODO: Not spec compliant, should be false. | |
| 4625 | + MimeTypeArray: false, | |
| 4626 | + NamedNodeMap: false, | |
| 4627 | + NodeList: true, | |
| 4628 | + PaintRequestList: false, | |
| 4629 | + Plugin: false, | |
| 4630 | + PluginArray: false, | |
| 4631 | + SVGLengthList: false, | |
| 4632 | + SVGNumberList: false, | |
| 4633 | + SVGPathSegList: false, | |
| 4634 | + SVGPointList: false, | |
| 4635 | + SVGStringList: false, | |
| 4636 | + SVGTransformList: false, | |
| 4637 | + SourceBufferList: false, | |
| 4638 | + StyleSheetList: true, // TODO: Not spec compliant, should be false. | |
| 4639 | + TextTrackCueList: false, | |
| 4640 | + TextTrackList: false, | |
| 4641 | + TouchList: false | |
| 4642 | +}; | |
| 3094 | 4643 | |
| 3095 | - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 3096 | - return typeof o; | |
| 3097 | - } : function (o) { | |
| 3098 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 3099 | - }, _typeof(o); | |
| 4644 | +for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { | |
| 4645 | + var NAME = collections[i]; | |
| 4646 | + var explicit = DOMIterables[NAME]; | |
| 4647 | + var Collection = global[NAME]; | |
| 4648 | + var proto = Collection && Collection.prototype; | |
| 4649 | + var key; | |
| 4650 | + if (proto) { | |
| 4651 | + if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); | |
| 4652 | + if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); | |
| 4653 | + Iterators[NAME] = ArrayValues; | |
| 4654 | + if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); | |
| 4655 | + } | |
| 3100 | 4656 | } |
| 3101 | 4657 | |
| 3102 | 4658 | |
| 3103 | 4659 | /***/ }), |
| 4660 | +/* 146 */ | |
| 4661 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3104 | 4662 | |
| 3105 | -/***/ "../node_modules/@babel/runtime/helpers/get.js": | |
| 3106 | -/*!*****************************************************!*\ | |
| 3107 | - !*** ../node_modules/@babel/runtime/helpers/get.js ***! | |
| 3108 | - \*****************************************************/ | |
| 3109 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4663 | +// false -> Array#indexOf | |
| 4664 | +// true -> Array#includes | |
| 4665 | +var toIObject = __webpack_require__(98); | |
| 4666 | +var toLength = __webpack_require__(43); | |
| 4667 | +var toAbsoluteIndex = __webpack_require__(198); | |
| 4668 | +module.exports = function (IS_INCLUDES) { | |
| 4669 | + return function ($this, el, fromIndex) { | |
| 4670 | + var O = toIObject($this); | |
| 4671 | + var length = toLength(O.length); | |
| 4672 | + var index = toAbsoluteIndex(fromIndex, length); | |
| 4673 | + var value; | |
| 4674 | + // Array#includes uses SameValueZero equality algorithm | |
| 4675 | + // eslint-disable-next-line no-self-compare | |
| 4676 | + if (IS_INCLUDES && el != el) while (length > index) { | |
| 4677 | + value = O[index++]; | |
| 4678 | + // eslint-disable-next-line no-self-compare | |
| 4679 | + if (value != value) return true; | |
| 4680 | + // Array#indexOf ignores holes, Array#includes - not | |
| 4681 | + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { | |
| 4682 | + if (O[index] === el) return IS_INCLUDES || index || 0; | |
| 4683 | + } return !IS_INCLUDES && -1; | |
| 4684 | + }; | |
| 4685 | +}; | |
| 3110 | 4686 | |
| 3111 | -var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); | |
| 3112 | -function _get() { | |
| 3113 | - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 3114 | - var p = superPropBase(e, t); | |
| 3115 | - if (p) { | |
| 3116 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 3117 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 3118 | - } | |
| 3119 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 3120 | -} | |
| 3121 | -module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3122 | 4687 | |
| 3123 | 4688 | /***/ }), |
| 4689 | +/* 147 */ | |
| 4690 | +/***/ (function(module, exports) { | |
| 3124 | 4691 | |
| 3125 | -/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 3126 | -/*!****************************************************************!*\ | |
| 3127 | - !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 3128 | - \****************************************************************/ | |
| 3129 | -/***/ ((module) => { | |
| 4692 | +// IE 8- don't enum bug keys | |
| 4693 | +module.exports = ( | |
| 4694 | + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' | |
| 4695 | +).split(','); | |
| 3130 | 4696 | |
| 3131 | -function _getPrototypeOf(t) { | |
| 3132 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 3133 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 3134 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 3135 | -} | |
| 3136 | -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3137 | 4697 | |
| 3138 | 4698 | /***/ }), |
| 4699 | +/* 148 */ | |
| 4700 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3139 | 4701 | |
| 3140 | -/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 3141 | -/*!**********************************************************!*\ | |
| 3142 | - !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 3143 | - \**********************************************************/ | |
| 3144 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4702 | +var _Reflect$construct = __webpack_require__(107); | |
| 3145 | 4703 | |
| 3146 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 3147 | -function _inherits(t, e) { | |
| 3148 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 3149 | - t.prototype = Object.create(e && e.prototype, { | |
| 3150 | - constructor: { | |
| 3151 | - value: t, | |
| 3152 | - writable: !0, | |
| 3153 | - configurable: !0 | |
| 3154 | - } | |
| 3155 | - }), Object.defineProperty(t, "prototype", { | |
| 3156 | - writable: !1 | |
| 3157 | - }), e && setPrototypeOf(t, e); | |
| 4704 | +function _isNativeReflectConstruct() { | |
| 4705 | + if (typeof Reflect === "undefined" || !_Reflect$construct) return false; | |
| 4706 | + if (_Reflect$construct.sham) return false; | |
| 4707 | + if (typeof Proxy === "function") return true; | |
| 4708 | + | |
| 4709 | + try { | |
| 4710 | + Date.prototype.toString.call(_Reflect$construct(Date, [], function () {})); | |
| 4711 | + return true; | |
| 4712 | + } catch (e) { | |
| 4713 | + return false; | |
| 4714 | + } | |
| 3158 | 4715 | } |
| 3159 | -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3160 | 4716 | |
| 4717 | +module.exports = _isNativeReflectConstruct; | |
| 4718 | + | |
| 3161 | 4719 | /***/ }), |
| 4720 | +/* 149 */ | |
| 4721 | +/***/ (function(module, exports) { | |
| 3162 | 4722 | |
| 3163 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 3164 | -/*!***********************************************************************!*\ | |
| 3165 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 3166 | - \***********************************************************************/ | |
| 3167 | -/***/ ((module) => { | |
| 4723 | +module.exports = function (done, value) { | |
| 4724 | + return { value: value, done: !!done }; | |
| 4725 | +}; | |
| 3168 | 4726 | |
| 3169 | -function _interopRequireDefault(e) { | |
| 3170 | - return e && e.__esModule ? e : { | |
| 3171 | - "default": e | |
| 3172 | - }; | |
| 3173 | -} | |
| 3174 | -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3175 | 4727 | |
| 3176 | 4728 | /***/ }), |
| 4729 | +/* 150 */, | |
| 4730 | +/* 151 */ | |
| 4731 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3177 | 4732 | |
| 3178 | -/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js": | |
| 3179 | -/*!******************************************************************!*\ | |
| 3180 | - !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***! | |
| 3181 | - \******************************************************************/ | |
| 3182 | -/***/ ((module) => { | |
| 4733 | +module.exports = __webpack_require__(171); | |
| 3183 | 4734 | |
| 3184 | -function _isNativeFunction(t) { | |
| 4735 | +/***/ }), | |
| 4736 | +/* 152 */ | |
| 4737 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4738 | + | |
| 4739 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 4740 | +var SAFE_CLOSING = false; | |
| 4741 | + | |
| 4742 | +try { | |
| 4743 | + var riter = [7][ITERATOR](); | |
| 4744 | + riter['return'] = function () { SAFE_CLOSING = true; }; | |
| 4745 | + // eslint-disable-next-line no-throw-literal | |
| 4746 | + Array.from(riter, function () { throw 2; }); | |
| 4747 | +} catch (e) { /* empty */ } | |
| 4748 | + | |
| 4749 | +module.exports = function (exec, skipClosing) { | |
| 4750 | + if (!skipClosing && !SAFE_CLOSING) return false; | |
| 4751 | + var safe = false; | |
| 3185 | 4752 | try { |
| 3186 | - return -1 !== Function.toString.call(t).indexOf("[native code]"); | |
| 3187 | - } catch (n) { | |
| 3188 | - return "function" == typeof t; | |
| 3189 | - } | |
| 3190 | -} | |
| 3191 | -module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4753 | + var arr = [7]; | |
| 4754 | + var iter = arr[ITERATOR](); | |
| 4755 | + iter.next = function () { return { done: safe = true }; }; | |
| 4756 | + arr[ITERATOR] = function () { return iter; }; | |
| 4757 | + exec(arr); | |
| 4758 | + } catch (e) { /* empty */ } | |
| 4759 | + return safe; | |
| 4760 | +}; | |
| 3192 | 4761 | |
| 4762 | + | |
| 3193 | 4763 | /***/ }), |
| 4764 | +/* 153 */ | |
| 4765 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3194 | 4766 | |
| 3195 | -/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js": | |
| 3196 | -/*!**************************************************************************!*\ | |
| 3197 | - !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***! | |
| 3198 | - \**************************************************************************/ | |
| 3199 | -/***/ ((module) => { | |
| 4767 | +var def = __webpack_require__(45).f; | |
| 4768 | +var has = __webpack_require__(61); | |
| 4769 | +var TAG = __webpack_require__(12)('toStringTag'); | |
| 3200 | 4770 | |
| 3201 | -function _isNativeReflectConstruct() { | |
| 3202 | - try { | |
| 3203 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
| 3204 | - } catch (t) {} | |
| 3205 | - return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 3206 | - return !!t; | |
| 3207 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 3208 | -} | |
| 3209 | -module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4771 | +module.exports = function (it, tag, stat) { | |
| 4772 | + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | |
| 4773 | +}; | |
| 3210 | 4774 | |
| 4775 | + | |
| 3211 | 4776 | /***/ }), |
| 4777 | +/* 154 */ | |
| 4778 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3212 | 4779 | |
| 3213 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": | |
| 3214 | -/*!*****************************************************************!*\ | |
| 3215 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! | |
| 3216 | - \*****************************************************************/ | |
| 3217 | -/***/ ((module) => { | |
| 4780 | +// 7.3.20 SpeciesConstructor(O, defaultConstructor) | |
| 4781 | +var anObject = __webpack_require__(18); | |
| 4782 | +var aFunction = __webpack_require__(91); | |
| 4783 | +var SPECIES = __webpack_require__(12)('species'); | |
| 4784 | +module.exports = function (O, D) { | |
| 4785 | + var C = anObject(O).constructor; | |
| 4786 | + var S; | |
| 4787 | + return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); | |
| 4788 | +}; | |
| 3218 | 4789 | |
| 3219 | -function _iterableToArray(r) { | |
| 3220 | - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 3221 | -} | |
| 3222 | -module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3223 | 4790 | |
| 3224 | 4791 | /***/ }), |
| 4792 | +/* 155 */ | |
| 4793 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3225 | 4794 | |
| 3226 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 3227 | -/*!**********************************************************************!*\ | |
| 3228 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 3229 | - \**********************************************************************/ | |
| 3230 | -/***/ ((module) => { | |
| 4795 | +__webpack_require__(156); | |
| 4796 | +var $Object = __webpack_require__(6).Object; | |
| 4797 | +module.exports = function defineProperty(it, key, desc) { | |
| 4798 | + return $Object.defineProperty(it, key, desc); | |
| 4799 | +}; | |
| 3231 | 4800 | |
| 3232 | -function _iterableToArrayLimit(r, l) { | |
| 3233 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 3234 | - if (null != t) { | |
| 3235 | - var e, | |
| 3236 | - n, | |
| 3237 | - i, | |
| 3238 | - u, | |
| 3239 | - a = [], | |
| 3240 | - f = !0, | |
| 3241 | - o = !1; | |
| 3242 | - try { | |
| 3243 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 3244 | - if (Object(t) !== t) return; | |
| 3245 | - f = !1; | |
| 3246 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 3247 | - } catch (r) { | |
| 3248 | - o = !0, n = r; | |
| 3249 | - } finally { | |
| 4801 | + | |
| 4802 | +/***/ }), | |
| 4803 | +/* 156 */ | |
| 4804 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4805 | + | |
| 4806 | +var $export = __webpack_require__(7); | |
| 4807 | +// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) | |
| 4808 | +$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(15).f }); | |
| 4809 | + | |
| 4810 | + | |
| 4811 | +/***/ }), | |
| 4812 | +/* 157 */ | |
| 4813 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4814 | + | |
| 4815 | +module.exports = __webpack_require__(158); | |
| 4816 | + | |
| 4817 | +/***/ }), | |
| 4818 | +/* 158 */ | |
| 4819 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4820 | + | |
| 4821 | +__webpack_require__(159); | |
| 4822 | +module.exports = __webpack_require__(6).Object.getPrototypeOf; | |
| 4823 | + | |
| 4824 | + | |
| 4825 | +/***/ }), | |
| 4826 | +/* 159 */ | |
| 4827 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4828 | + | |
| 4829 | +// 19.1.2.9 Object.getPrototypeOf(O) | |
| 4830 | +var toObject = __webpack_require__(32); | |
| 4831 | +var $getPrototypeOf = __webpack_require__(64); | |
| 4832 | + | |
| 4833 | +__webpack_require__(83)('getPrototypeOf', function () { | |
| 4834 | + return function getPrototypeOf(it) { | |
| 4835 | + return $getPrototypeOf(toObject(it)); | |
| 4836 | + }; | |
| 4837 | +}); | |
| 4838 | + | |
| 4839 | + | |
| 4840 | +/***/ }), | |
| 4841 | +/* 160 */ | |
| 4842 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4843 | + | |
| 4844 | +__webpack_require__(161); | |
| 4845 | +module.exports = __webpack_require__(6).Object.setPrototypeOf; | |
| 4846 | + | |
| 4847 | + | |
| 4848 | +/***/ }), | |
| 4849 | +/* 161 */ | |
| 4850 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4851 | + | |
| 4852 | +// 19.1.3.19 Object.setPrototypeOf(O, proto) | |
| 4853 | +var $export = __webpack_require__(7); | |
| 4854 | +$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(162).set }); | |
| 4855 | + | |
| 4856 | + | |
| 4857 | +/***/ }), | |
| 4858 | +/* 162 */ | |
| 4859 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4860 | + | |
| 4861 | +// Works with __proto__ only. Old v8 can't work with null proto objects. | |
| 4862 | +/* eslint-disable no-proto */ | |
| 4863 | +var isObject = __webpack_require__(9); | |
| 4864 | +var anObject = __webpack_require__(13); | |
| 4865 | +var check = function (O, proto) { | |
| 4866 | + anObject(O); | |
| 4867 | + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); | |
| 4868 | +}; | |
| 4869 | +module.exports = { | |
| 4870 | + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line | |
| 4871 | + function (test, buggy, set) { | |
| 3250 | 4872 | try { |
| 3251 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 3252 | - } finally { | |
| 3253 | - if (o) throw n; | |
| 4873 | + set = __webpack_require__(31)(Function.call, __webpack_require__(51).f(Object.prototype, '__proto__').set, 2); | |
| 4874 | + set(test, []); | |
| 4875 | + buggy = !(test instanceof Array); | |
| 4876 | + } catch (e) { buggy = true; } | |
| 4877 | + return function setPrototypeOf(O, proto) { | |
| 4878 | + check(O, proto); | |
| 4879 | + if (buggy) O.__proto__ = proto; | |
| 4880 | + else set(O, proto); | |
| 4881 | + return O; | |
| 4882 | + }; | |
| 4883 | + }({}, false) : undefined), | |
| 4884 | + check: check | |
| 4885 | +}; | |
| 4886 | + | |
| 4887 | + | |
| 4888 | +/***/ }), | |
| 4889 | +/* 163 */ | |
| 4890 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4891 | + | |
| 4892 | +__webpack_require__(164); | |
| 4893 | +var $Object = __webpack_require__(6).Object; | |
| 4894 | +module.exports = function create(P, D) { | |
| 4895 | + return $Object.create(P, D); | |
| 4896 | +}; | |
| 4897 | + | |
| 4898 | + | |
| 4899 | +/***/ }), | |
| 4900 | +/* 164 */ | |
| 4901 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4902 | + | |
| 4903 | +var $export = __webpack_require__(7); | |
| 4904 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 4905 | +$export($export.S, 'Object', { create: __webpack_require__(52) }); | |
| 4906 | + | |
| 4907 | + | |
| 4908 | +/***/ }), | |
| 4909 | +/* 165 */ | |
| 4910 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4911 | + | |
| 4912 | +// false -> Array#indexOf | |
| 4913 | +// true -> Array#includes | |
| 4914 | +var toIObject = __webpack_require__(20); | |
| 4915 | +var toLength = __webpack_require__(68); | |
| 4916 | +var toAbsoluteIndex = __webpack_require__(166); | |
| 4917 | +module.exports = function (IS_INCLUDES) { | |
| 4918 | + return function ($this, el, fromIndex) { | |
| 4919 | + var O = toIObject($this); | |
| 4920 | + var length = toLength(O.length); | |
| 4921 | + var index = toAbsoluteIndex(fromIndex, length); | |
| 4922 | + var value; | |
| 4923 | + // Array#includes uses SameValueZero equality algorithm | |
| 4924 | + // eslint-disable-next-line no-self-compare | |
| 4925 | + if (IS_INCLUDES && el != el) while (length > index) { | |
| 4926 | + value = O[index++]; | |
| 4927 | + // eslint-disable-next-line no-self-compare | |
| 4928 | + if (value != value) return true; | |
| 4929 | + // Array#indexOf ignores holes, Array#includes - not | |
| 4930 | + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { | |
| 4931 | + if (O[index] === el) return IS_INCLUDES || index || 0; | |
| 4932 | + } return !IS_INCLUDES && -1; | |
| 4933 | + }; | |
| 4934 | +}; | |
| 4935 | + | |
| 4936 | + | |
| 4937 | +/***/ }), | |
| 4938 | +/* 166 */ | |
| 4939 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4940 | + | |
| 4941 | +var toInteger = __webpack_require__(77); | |
| 4942 | +var max = Math.max; | |
| 4943 | +var min = Math.min; | |
| 4944 | +module.exports = function (index, length) { | |
| 4945 | + index = toInteger(index); | |
| 4946 | + return index < 0 ? max(index + length, 0) : min(index, length); | |
| 4947 | +}; | |
| 4948 | + | |
| 4949 | + | |
| 4950 | +/***/ }), | |
| 4951 | +/* 167 */ | |
| 4952 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4953 | + | |
| 4954 | +__webpack_require__(168); | |
| 4955 | +module.exports = __webpack_require__(6).Reflect.construct; | |
| 4956 | + | |
| 4957 | + | |
| 4958 | +/***/ }), | |
| 4959 | +/* 168 */ | |
| 4960 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4961 | + | |
| 4962 | +// 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) | |
| 4963 | +var $export = __webpack_require__(7); | |
| 4964 | +var create = __webpack_require__(52); | |
| 4965 | +var aFunction = __webpack_require__(38); | |
| 4966 | +var anObject = __webpack_require__(13); | |
| 4967 | +var isObject = __webpack_require__(9); | |
| 4968 | +var fails = __webpack_require__(22); | |
| 4969 | +var bind = __webpack_require__(169); | |
| 4970 | +var rConstruct = (__webpack_require__(8).Reflect || {}).construct; | |
| 4971 | + | |
| 4972 | +// MS Edge supports only 2 arguments and argumentsList argument is optional | |
| 4973 | +// FF Nightly sets third argument as `new.target`, but does not create `this` from it | |
| 4974 | +var NEW_TARGET_BUG = fails(function () { | |
| 4975 | + function F() { /* empty */ } | |
| 4976 | + return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); | |
| 4977 | +}); | |
| 4978 | +var ARGS_BUG = !fails(function () { | |
| 4979 | + rConstruct(function () { /* empty */ }); | |
| 4980 | +}); | |
| 4981 | + | |
| 4982 | +$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { | |
| 4983 | + construct: function construct(Target, args /* , newTarget */) { | |
| 4984 | + aFunction(Target); | |
| 4985 | + anObject(args); | |
| 4986 | + var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]); | |
| 4987 | + if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget); | |
| 4988 | + if (Target == newTarget) { | |
| 4989 | + // w/o altered newTarget, optimization for 0-4 arguments | |
| 4990 | + switch (args.length) { | |
| 4991 | + case 0: return new Target(); | |
| 4992 | + case 1: return new Target(args[0]); | |
| 4993 | + case 2: return new Target(args[0], args[1]); | |
| 4994 | + case 3: return new Target(args[0], args[1], args[2]); | |
| 4995 | + case 4: return new Target(args[0], args[1], args[2], args[3]); | |
| 3254 | 4996 | } |
| 4997 | + // w/o altered newTarget, lot of arguments case | |
| 4998 | + var $args = [null]; | |
| 4999 | + $args.push.apply($args, args); | |
| 5000 | + return new (bind.apply(Target, $args))(); | |
| 3255 | 5001 | } |
| 3256 | - return a; | |
| 5002 | + // with altered newTarget, not support built-in constructors | |
| 5003 | + var proto = newTarget.prototype; | |
| 5004 | + var instance = create(isObject(proto) ? proto : Object.prototype); | |
| 5005 | + var result = Function.apply.call(Target, instance, args); | |
| 5006 | + return isObject(result) ? result : instance; | |
| 3257 | 5007 | } |
| 5008 | +}); | |
| 5009 | + | |
| 5010 | + | |
| 5011 | +/***/ }), | |
| 5012 | +/* 169 */ | |
| 5013 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5014 | + | |
| 5015 | +"use strict"; | |
| 5016 | + | |
| 5017 | +var aFunction = __webpack_require__(38); | |
| 5018 | +var isObject = __webpack_require__(9); | |
| 5019 | +var invoke = __webpack_require__(132); | |
| 5020 | +var arraySlice = [].slice; | |
| 5021 | +var factories = {}; | |
| 5022 | + | |
| 5023 | +var construct = function (F, len, args) { | |
| 5024 | + if (!(len in factories)) { | |
| 5025 | + for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; | |
| 5026 | + // eslint-disable-next-line no-new-func | |
| 5027 | + factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); | |
| 5028 | + } return factories[len](F, args); | |
| 5029 | +}; | |
| 5030 | + | |
| 5031 | +module.exports = Function.bind || function bind(that /* , ...args */) { | |
| 5032 | + var fn = aFunction(this); | |
| 5033 | + var partArgs = arraySlice.call(arguments, 1); | |
| 5034 | + var bound = function (/* args... */) { | |
| 5035 | + var args = partArgs.concat(arraySlice.call(arguments)); | |
| 5036 | + return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); | |
| 5037 | + }; | |
| 5038 | + if (isObject(fn.prototype)) bound.prototype = fn.prototype; | |
| 5039 | + return bound; | |
| 5040 | +}; | |
| 5041 | + | |
| 5042 | + | |
| 5043 | +/***/ }), | |
| 5044 | +/* 170 */ | |
| 5045 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5046 | + | |
| 5047 | +var _typeof = __webpack_require__(48); | |
| 5048 | + | |
| 5049 | +var assertThisInitialized = __webpack_require__(49); | |
| 5050 | + | |
| 5051 | +function _possibleConstructorReturn(self, call) { | |
| 5052 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 5053 | + return call; | |
| 5054 | + } | |
| 5055 | + | |
| 5056 | + return assertThisInitialized(self); | |
| 3258 | 5057 | } |
| 3259 | -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3260 | 5058 | |
| 5059 | +module.exports = _possibleConstructorReturn; | |
| 5060 | + | |
| 3261 | 5061 | /***/ }), |
| 5062 | +/* 171 */ | |
| 5063 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3262 | 5064 | |
| 3263 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 3264 | -/*!*****************************************************************!*\ | |
| 3265 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 3266 | - \*****************************************************************/ | |
| 3267 | -/***/ ((module) => { | |
| 5065 | +__webpack_require__(60); | |
| 5066 | +__webpack_require__(62); | |
| 5067 | +module.exports = __webpack_require__(63).f('iterator'); | |
| 3268 | 5068 | |
| 3269 | -function _nonIterableRest() { | |
| 3270 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 3271 | -} | |
| 3272 | -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3273 | 5069 | |
| 3274 | 5070 | /***/ }), |
| 5071 | +/* 172 */ | |
| 5072 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3275 | 5073 | |
| 3276 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": | |
| 3277 | -/*!*******************************************************************!*\ | |
| 3278 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! | |
| 3279 | - \*******************************************************************/ | |
| 3280 | -/***/ ((module) => { | |
| 5074 | +var toInteger = __webpack_require__(77); | |
| 5075 | +var defined = __webpack_require__(65); | |
| 5076 | +// true -> String#at | |
| 5077 | +// false -> String#codePointAt | |
| 5078 | +module.exports = function (TO_STRING) { | |
| 5079 | + return function (that, pos) { | |
| 5080 | + var s = String(defined(that)); | |
| 5081 | + var i = toInteger(pos); | |
| 5082 | + var l = s.length; | |
| 5083 | + var a, b; | |
| 5084 | + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | |
| 5085 | + a = s.charCodeAt(i); | |
| 5086 | + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | |
| 5087 | + ? TO_STRING ? s.charAt(i) : a | |
| 5088 | + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; | |
| 5089 | + }; | |
| 5090 | +}; | |
| 3281 | 5091 | |
| 3282 | -function _nonIterableSpread() { | |
| 3283 | - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 3284 | -} | |
| 3285 | -module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3286 | 5092 | |
| 3287 | 5093 | /***/ }), |
| 5094 | +/* 173 */ | |
| 5095 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3288 | 5096 | |
| 3289 | -/***/ "../node_modules/@babel/runtime/helpers/objectWithoutProperties.js": | |
| 3290 | -/*!*************************************************************************!*\ | |
| 3291 | - !*** ../node_modules/@babel/runtime/helpers/objectWithoutProperties.js ***! | |
| 3292 | - \*************************************************************************/ | |
| 3293 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5097 | +"use strict"; | |
| 3294 | 5098 | |
| 3295 | -var objectWithoutPropertiesLoose = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"); | |
| 3296 | -function _objectWithoutProperties(e, t) { | |
| 3297 | - if (null == e) return {}; | |
| 3298 | - var o, | |
| 3299 | - r, | |
| 3300 | - i = objectWithoutPropertiesLoose(e, t); | |
| 3301 | - if (Object.getOwnPropertySymbols) { | |
| 3302 | - var n = Object.getOwnPropertySymbols(e); | |
| 3303 | - for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); | |
| 5099 | +var create = __webpack_require__(52); | |
| 5100 | +var descriptor = __webpack_require__(44); | |
| 5101 | +var setToStringTag = __webpack_require__(53); | |
| 5102 | +var IteratorPrototype = {}; | |
| 5103 | + | |
| 5104 | +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | |
| 5105 | +__webpack_require__(24)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; }); | |
| 5106 | + | |
| 5107 | +module.exports = function (Constructor, NAME, next) { | |
| 5108 | + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | |
| 5109 | + setToStringTag(Constructor, NAME + ' Iterator'); | |
| 5110 | +}; | |
| 5111 | + | |
| 5112 | + | |
| 5113 | +/***/ }), | |
| 5114 | +/* 174 */ | |
| 5115 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5116 | + | |
| 5117 | +"use strict"; | |
| 5118 | + | |
| 5119 | +var addToUnscopables = __webpack_require__(175); | |
| 5120 | +var step = __webpack_require__(149); | |
| 5121 | +var Iterators = __webpack_require__(34); | |
| 5122 | +var toIObject = __webpack_require__(20); | |
| 5123 | + | |
| 5124 | +// 22.1.3.4 Array.prototype.entries() | |
| 5125 | +// 22.1.3.13 Array.prototype.keys() | |
| 5126 | +// 22.1.3.29 Array.prototype.values() | |
| 5127 | +// 22.1.3.30 Array.prototype[@@iterator]() | |
| 5128 | +module.exports = __webpack_require__(108)(Array, 'Array', function (iterated, kind) { | |
| 5129 | + this._t = toIObject(iterated); // target | |
| 5130 | + this._i = 0; // next index | |
| 5131 | + this._k = kind; // kind | |
| 5132 | +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() | |
| 5133 | +}, function () { | |
| 5134 | + var O = this._t; | |
| 5135 | + var kind = this._k; | |
| 5136 | + var index = this._i++; | |
| 5137 | + if (!O || index >= O.length) { | |
| 5138 | + this._t = undefined; | |
| 5139 | + return step(1); | |
| 3304 | 5140 | } |
| 3305 | - return i; | |
| 3306 | -} | |
| 3307 | -module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5141 | + if (kind == 'keys') return step(0, index); | |
| 5142 | + if (kind == 'values') return step(0, O[index]); | |
| 5143 | + return step(0, [index, O[index]]); | |
| 5144 | +}, 'values'); | |
| 3308 | 5145 | |
| 5146 | +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) | |
| 5147 | +Iterators.Arguments = Iterators.Array; | |
| 5148 | + | |
| 5149 | +addToUnscopables('keys'); | |
| 5150 | +addToUnscopables('values'); | |
| 5151 | +addToUnscopables('entries'); | |
| 5152 | + | |
| 5153 | + | |
| 3309 | 5154 | /***/ }), |
| 5155 | +/* 175 */ | |
| 5156 | +/***/ (function(module, exports) { | |
| 3310 | 5157 | |
| 3311 | -/***/ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js": | |
| 3312 | -/*!******************************************************************************!*\ | |
| 3313 | - !*** ../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js ***! | |
| 3314 | - \******************************************************************************/ | |
| 3315 | -/***/ ((module) => { | |
| 5158 | +module.exports = function () { /* empty */ }; | |
| 3316 | 5159 | |
| 3317 | -function _objectWithoutPropertiesLoose(r, e) { | |
| 3318 | - if (null == r) return {}; | |
| 3319 | - var t = {}; | |
| 3320 | - for (var n in r) if ({}.hasOwnProperty.call(r, n)) { | |
| 3321 | - if (-1 !== e.indexOf(n)) continue; | |
| 3322 | - t[n] = r[n]; | |
| 5160 | + | |
| 5161 | +/***/ }), | |
| 5162 | +/* 176 */ | |
| 5163 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5164 | + | |
| 5165 | +__webpack_require__(138); | |
| 5166 | +__webpack_require__(100); | |
| 5167 | +__webpack_require__(179); | |
| 5168 | +__webpack_require__(180); | |
| 5169 | +module.exports = __webpack_require__(6).Symbol; | |
| 5170 | + | |
| 5171 | + | |
| 5172 | +/***/ }), | |
| 5173 | +/* 177 */ | |
| 5174 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5175 | + | |
| 5176 | +// all enumerable object keys, includes symbols | |
| 5177 | +var getKeys = __webpack_require__(40); | |
| 5178 | +var gOPS = __webpack_require__(71); | |
| 5179 | +var pIE = __webpack_require__(50); | |
| 5180 | +module.exports = function (it) { | |
| 5181 | + var result = getKeys(it); | |
| 5182 | + var getSymbols = gOPS.f; | |
| 5183 | + if (getSymbols) { | |
| 5184 | + var symbols = getSymbols(it); | |
| 5185 | + var isEnum = pIE.f; | |
| 5186 | + var i = 0; | |
| 5187 | + var key; | |
| 5188 | + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); | |
| 5189 | + } return result; | |
| 5190 | +}; | |
| 5191 | + | |
| 5192 | + | |
| 5193 | +/***/ }), | |
| 5194 | +/* 178 */ | |
| 5195 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5196 | + | |
| 5197 | +// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window | |
| 5198 | +var toIObject = __webpack_require__(20); | |
| 5199 | +var gOPN = __webpack_require__(99).f; | |
| 5200 | +var toString = {}.toString; | |
| 5201 | + | |
| 5202 | +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames | |
| 5203 | + ? Object.getOwnPropertyNames(window) : []; | |
| 5204 | + | |
| 5205 | +var getWindowNames = function (it) { | |
| 5206 | + try { | |
| 5207 | + return gOPN(it); | |
| 5208 | + } catch (e) { | |
| 5209 | + return windowNames.slice(); | |
| 3323 | 5210 | } |
| 3324 | - return t; | |
| 3325 | -} | |
| 3326 | -module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5211 | +}; | |
| 3327 | 5212 | |
| 5213 | +module.exports.f = function getOwnPropertyNames(it) { | |
| 5214 | + return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); | |
| 5215 | +}; | |
| 5216 | + | |
| 5217 | + | |
| 3328 | 5218 | /***/ }), |
| 5219 | +/* 179 */ | |
| 5220 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3329 | 5221 | |
| 3330 | -/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 3331 | -/*!***************************************************************************!*\ | |
| 3332 | - !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 3333 | - \***************************************************************************/ | |
| 3334 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5222 | +__webpack_require__(79)('asyncIterator'); | |
| 3335 | 5223 | |
| 3336 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3337 | -var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 3338 | -function _possibleConstructorReturn(t, e) { | |
| 3339 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 3340 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 3341 | - return assertThisInitialized(t); | |
| 3342 | -} | |
| 3343 | -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3344 | 5224 | |
| 3345 | 5225 | /***/ }), |
| 5226 | +/* 180 */ | |
| 5227 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3346 | 5228 | |
| 3347 | -/***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js": | |
| 3348 | -/*!***************************************************************!*\ | |
| 3349 | - !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***! | |
| 3350 | - \***************************************************************/ | |
| 3351 | -/***/ ((module) => { | |
| 5229 | +__webpack_require__(79)('observable'); | |
| 3352 | 5230 | |
| 3353 | -function _readOnlyError(r) { | |
| 3354 | - throw new TypeError('"' + r + '" is read-only'); | |
| 3355 | -} | |
| 3356 | -module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3357 | 5231 | |
| 3358 | 5232 | /***/ }), |
| 5233 | +/* 181 */, | |
| 5234 | +/* 182 */, | |
| 5235 | +/* 183 */ | |
| 5236 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3359 | 5237 | |
| 3360 | -/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 3361 | -/*!****************************************************************!*\ | |
| 3362 | - !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 3363 | - \****************************************************************/ | |
| 3364 | -/***/ ((module) => { | |
| 5238 | +// 19.1.2.14 / 15.2.3.14 Object.keys(O) | |
| 5239 | +var $keys = __webpack_require__(219); | |
| 5240 | +var enumBugKeys = __webpack_require__(147); | |
| 3365 | 5241 | |
| 3366 | -function _setPrototypeOf(t, e) { | |
| 3367 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 3368 | - return t.__proto__ = e, t; | |
| 3369 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 3370 | -} | |
| 3371 | -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5242 | +module.exports = Object.keys || function keys(O) { | |
| 5243 | + return $keys(O, enumBugKeys); | |
| 5244 | +}; | |
| 3372 | 5245 | |
| 5246 | + | |
| 3373 | 5247 | /***/ }), |
| 5248 | +/* 184 */ | |
| 5249 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3374 | 5250 | |
| 3375 | -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 3376 | -/*!***************************************************************!*\ | |
| 3377 | - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 3378 | - \***************************************************************/ | |
| 3379 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5251 | +var DESCRIPTORS = __webpack_require__(14); | |
| 5252 | +var getKeys = __webpack_require__(40); | |
| 5253 | +var toIObject = __webpack_require__(20); | |
| 5254 | +var isEnum = __webpack_require__(50).f; | |
| 5255 | +module.exports = function (isEntries) { | |
| 5256 | + return function (it) { | |
| 5257 | + var O = toIObject(it); | |
| 5258 | + var keys = getKeys(O); | |
| 5259 | + var length = keys.length; | |
| 5260 | + var i = 0; | |
| 5261 | + var result = []; | |
| 5262 | + var key; | |
| 5263 | + while (length > i) { | |
| 5264 | + key = keys[i++]; | |
| 5265 | + if (!DESCRIPTORS || isEnum.call(O, key)) { | |
| 5266 | + result.push(isEntries ? [key, O[key]] : O[key]); | |
| 5267 | + } | |
| 5268 | + } | |
| 5269 | + return result; | |
| 5270 | + }; | |
| 5271 | +}; | |
| 3380 | 5272 | |
| 3381 | -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 3382 | -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 3383 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 3384 | -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 3385 | -function _slicedToArray(r, e) { | |
| 3386 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 3387 | -} | |
| 3388 | -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3389 | 5273 | |
| 3390 | 5274 | /***/ }), |
| 5275 | +/* 185 */ | |
| 5276 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3391 | 5277 | |
| 3392 | -/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": | |
| 3393 | -/*!***************************************************************!*\ | |
| 3394 | - !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! | |
| 3395 | - \***************************************************************/ | |
| 3396 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5278 | +"use strict"; | |
| 3397 | 5279 | |
| 3398 | -var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 3399 | -function _superPropBase(t, o) { | |
| 3400 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 3401 | - return t; | |
| 3402 | -} | |
| 3403 | -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5280 | +var $defineProperty = __webpack_require__(15); | |
| 5281 | +var createDesc = __webpack_require__(44); | |
| 3404 | 5282 | |
| 5283 | +module.exports = function (object, index, value) { | |
| 5284 | + if (index in object) $defineProperty.f(object, index, createDesc(0, value)); | |
| 5285 | + else object[index] = value; | |
| 5286 | +}; | |
| 5287 | + | |
| 5288 | + | |
| 3405 | 5289 | /***/ }), |
| 5290 | +/* 186 */ | |
| 5291 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3406 | 5292 | |
| 3407 | -/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js": | |
| 3408 | -/*!*******************************************************************!*\ | |
| 3409 | - !*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***! | |
| 3410 | - \*******************************************************************/ | |
| 3411 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5293 | +var _Array$from = __webpack_require__(200); | |
| 3412 | 5294 | |
| 3413 | -var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); | |
| 3414 | -var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); | |
| 3415 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 3416 | -var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); | |
| 3417 | -function _toConsumableArray(r) { | |
| 3418 | - return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); | |
| 5295 | +var arrayLikeToArray = __webpack_require__(199); | |
| 5296 | + | |
| 5297 | +function _unsupportedIterableToArray(o, minLen) { | |
| 5298 | + if (!o) return; | |
| 5299 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 5300 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 5301 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 5302 | + if (n === "Map" || n === "Set") return _Array$from(o); | |
| 5303 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 3419 | 5304 | } |
| 3420 | -module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3421 | 5305 | |
| 5306 | +module.exports = _unsupportedIterableToArray; | |
| 5307 | + | |
| 3422 | 5308 | /***/ }), |
| 5309 | +/* 187 */, | |
| 5310 | +/* 188 */ | |
| 5311 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3423 | 5312 | |
| 3424 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 3425 | -/*!*************************************************************!*\ | |
| 3426 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 3427 | - \*************************************************************/ | |
| 3428 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5313 | +"use strict"; | |
| 5314 | +// 21.1.3.7 String.prototype.includes(searchString, position = 0) | |
| 3429 | 5315 | |
| 3430 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3431 | -function toPrimitive(t, r) { | |
| 3432 | - if ("object" != _typeof(t) || !t) return t; | |
| 3433 | - var e = t[Symbol.toPrimitive]; | |
| 3434 | - if (void 0 !== e) { | |
| 3435 | - var i = e.call(t, r || "default"); | |
| 3436 | - if ("object" != _typeof(i)) return i; | |
| 3437 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 5316 | +var $export = __webpack_require__(37); | |
| 5317 | +var context = __webpack_require__(213); | |
| 5318 | +var INCLUDES = 'includes'; | |
| 5319 | + | |
| 5320 | +$export($export.P + $export.F * __webpack_require__(214)(INCLUDES), 'String', { | |
| 5321 | + includes: function includes(searchString /* , position = 0 */) { | |
| 5322 | + return !!~context(this, searchString, INCLUDES) | |
| 5323 | + .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); | |
| 3438 | 5324 | } |
| 3439 | - return ("string" === r ? String : Number)(t); | |
| 3440 | -} | |
| 3441 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5325 | +}); | |
| 3442 | 5326 | |
| 5327 | + | |
| 3443 | 5328 | /***/ }), |
| 5329 | +/* 189 */, | |
| 5330 | +/* 190 */ | |
| 5331 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3444 | 5332 | |
| 3445 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 3446 | -/*!***************************************************************!*\ | |
| 3447 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 3448 | - \***************************************************************/ | |
| 3449 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5333 | +"use strict"; | |
| 3450 | 5334 | |
| 3451 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 3452 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 3453 | -function toPropertyKey(t) { | |
| 3454 | - var i = toPrimitive(t, "string"); | |
| 3455 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 3456 | -} | |
| 3457 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5335 | +var regexpExec = __webpack_require__(88); | |
| 5336 | +__webpack_require__(37)({ | |
| 5337 | + target: 'RegExp', | |
| 5338 | + proto: true, | |
| 5339 | + forced: regexpExec !== /./.exec | |
| 5340 | +}, { | |
| 5341 | + exec: regexpExec | |
| 5342 | +}); | |
| 3458 | 5343 | |
| 5344 | + | |
| 3459 | 5345 | /***/ }), |
| 5346 | +/* 191 */ | |
| 5347 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3460 | 5348 | |
| 3461 | -/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 3462 | -/*!********************************************************!*\ | |
| 3463 | - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 3464 | - \********************************************************/ | |
| 3465 | -/***/ ((module) => { | |
| 5349 | +__webpack_require__(192); | |
| 5350 | +var $Object = __webpack_require__(6).Object; | |
| 5351 | +module.exports = function getOwnPropertyDescriptor(it, key) { | |
| 5352 | + return $Object.getOwnPropertyDescriptor(it, key); | |
| 5353 | +}; | |
| 3466 | 5354 | |
| 3467 | -function _typeof(o) { | |
| 3468 | - "@babel/helpers - typeof"; | |
| 3469 | 5355 | |
| 3470 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 3471 | - return typeof o; | |
| 3472 | - } : function (o) { | |
| 3473 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 3474 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 5356 | +/***/ }), | |
| 5357 | +/* 192 */ | |
| 5358 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5359 | + | |
| 5360 | +// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) | |
| 5361 | +var toIObject = __webpack_require__(20); | |
| 5362 | +var $getOwnPropertyDescriptor = __webpack_require__(51).f; | |
| 5363 | + | |
| 5364 | +__webpack_require__(83)('getOwnPropertyDescriptor', function () { | |
| 5365 | + return function getOwnPropertyDescriptor(it, key) { | |
| 5366 | + return $getOwnPropertyDescriptor(toIObject(it), key); | |
| 5367 | + }; | |
| 5368 | +}); | |
| 5369 | + | |
| 5370 | + | |
| 5371 | +/***/ }), | |
| 5372 | +/* 193 */ | |
| 5373 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5374 | + | |
| 5375 | +module.exports = __webpack_require__(194); | |
| 5376 | + | |
| 5377 | +/***/ }), | |
| 5378 | +/* 194 */ | |
| 5379 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5380 | + | |
| 5381 | +__webpack_require__(195); | |
| 5382 | +module.exports = __webpack_require__(6).Reflect.get; | |
| 5383 | + | |
| 5384 | + | |
| 5385 | +/***/ }), | |
| 5386 | +/* 195 */ | |
| 5387 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5388 | + | |
| 5389 | +// 26.1.6 Reflect.get(target, propertyKey [, receiver]) | |
| 5390 | +var gOPD = __webpack_require__(51); | |
| 5391 | +var getPrototypeOf = __webpack_require__(64); | |
| 5392 | +var has = __webpack_require__(19); | |
| 5393 | +var $export = __webpack_require__(7); | |
| 5394 | +var isObject = __webpack_require__(9); | |
| 5395 | +var anObject = __webpack_require__(13); | |
| 5396 | + | |
| 5397 | +function get(target, propertyKey /* , receiver */) { | |
| 5398 | + var receiver = arguments.length < 3 ? target : arguments[2]; | |
| 5399 | + var desc, proto; | |
| 5400 | + if (anObject(target) === receiver) return target[propertyKey]; | |
| 5401 | + if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') | |
| 5402 | + ? desc.value | |
| 5403 | + : desc.get !== undefined | |
| 5404 | + ? desc.get.call(receiver) | |
| 5405 | + : undefined; | |
| 5406 | + if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver); | |
| 3475 | 5407 | } |
| 3476 | -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3477 | 5408 | |
| 5409 | +$export($export.S, 'Reflect', { get: get }); | |
| 5410 | + | |
| 5411 | + | |
| 3478 | 5412 | /***/ }), |
| 5413 | +/* 196 */ | |
| 5414 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3479 | 5415 | |
| 3480 | -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 3481 | -/*!****************************************************************************!*\ | |
| 3482 | - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 3483 | - \****************************************************************************/ | |
| 3484 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5416 | +var getPrototypeOf = __webpack_require__(16); | |
| 3485 | 5417 | |
| 3486 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 3487 | -function _unsupportedIterableToArray(r, a) { | |
| 3488 | - if (r) { | |
| 3489 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 3490 | - var t = {}.toString.call(r).slice(8, -1); | |
| 3491 | - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0; | |
| 5418 | +function _superPropBase(object, property) { | |
| 5419 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 5420 | + object = getPrototypeOf(object); | |
| 5421 | + if (object === null) break; | |
| 3492 | 5422 | } |
| 5423 | + | |
| 5424 | + return object; | |
| 3493 | 5425 | } |
| 3494 | -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3495 | 5426 | |
| 5427 | +module.exports = _superPropBase; | |
| 5428 | + | |
| 3496 | 5429 | /***/ }), |
| 5430 | +/* 197 */ | |
| 5431 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3497 | 5432 | |
| 3498 | -/***/ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js": | |
| 3499 | -/*!*****************************************************************!*\ | |
| 3500 | - !*** ../node_modules/@babel/runtime/helpers/wrapNativeSuper.js ***! | |
| 3501 | - \*****************************************************************/ | |
| 3502 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5433 | +"use strict"; | |
| 3503 | 5434 | |
| 3504 | -var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 3505 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 3506 | -var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js"); | |
| 3507 | -var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js"); | |
| 3508 | -function _wrapNativeSuper(t) { | |
| 3509 | - var r = "function" == typeof Map ? new Map() : void 0; | |
| 3510 | - return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) { | |
| 3511 | - if (null === t || !isNativeFunction(t)) return t; | |
| 3512 | - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); | |
| 3513 | - if (void 0 !== r) { | |
| 3514 | - if (r.has(t)) return r.get(t); | |
| 3515 | - r.set(t, Wrapper); | |
| 5435 | +var LIBRARY = __webpack_require__(110); | |
| 5436 | +var $export = __webpack_require__(37); | |
| 5437 | +var redefine = __webpack_require__(35); | |
| 5438 | +var hide = __webpack_require__(29); | |
| 5439 | +var Iterators = __webpack_require__(118); | |
| 5440 | +var $iterCreate = __webpack_require__(242); | |
| 5441 | +var setToStringTag = __webpack_require__(153); | |
| 5442 | +var getPrototypeOf = __webpack_require__(244); | |
| 5443 | +var ITERATOR = __webpack_require__(12)('iterator'); | |
| 5444 | +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | |
| 5445 | +var FF_ITERATOR = '@@iterator'; | |
| 5446 | +var KEYS = 'keys'; | |
| 5447 | +var VALUES = 'values'; | |
| 5448 | + | |
| 5449 | +var returnThis = function () { return this; }; | |
| 5450 | + | |
| 5451 | +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | |
| 5452 | + $iterCreate(Constructor, NAME, next); | |
| 5453 | + var getMethod = function (kind) { | |
| 5454 | + if (!BUGGY && kind in proto) return proto[kind]; | |
| 5455 | + switch (kind) { | |
| 5456 | + case KEYS: return function keys() { return new Constructor(this, kind); }; | |
| 5457 | + case VALUES: return function values() { return new Constructor(this, kind); }; | |
| 5458 | + } return function entries() { return new Constructor(this, kind); }; | |
| 5459 | + }; | |
| 5460 | + var TAG = NAME + ' Iterator'; | |
| 5461 | + var DEF_VALUES = DEFAULT == VALUES; | |
| 5462 | + var VALUES_BUG = false; | |
| 5463 | + var proto = Base.prototype; | |
| 5464 | + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | |
| 5465 | + var $default = $native || getMethod(DEFAULT); | |
| 5466 | + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | |
| 5467 | + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | |
| 5468 | + var methods, key, IteratorPrototype; | |
| 5469 | + // Fix native | |
| 5470 | + if ($anyNative) { | |
| 5471 | + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | |
| 5472 | + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | |
| 5473 | + // Set @@toStringTag to native iterators | |
| 5474 | + setToStringTag(IteratorPrototype, TAG, true); | |
| 5475 | + // fix for some old engines | |
| 5476 | + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); | |
| 3516 | 5477 | } |
| 3517 | - function Wrapper() { | |
| 3518 | - return construct(t, arguments, getPrototypeOf(this).constructor); | |
| 3519 | - } | |
| 3520 | - return Wrapper.prototype = Object.create(t.prototype, { | |
| 3521 | - constructor: { | |
| 3522 | - value: Wrapper, | |
| 3523 | - enumerable: !1, | |
| 3524 | - writable: !0, | |
| 3525 | - configurable: !0 | |
| 3526 | - } | |
| 3527 | - }), setPrototypeOf(Wrapper, t); | |
| 3528 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t); | |
| 5478 | + } | |
| 5479 | + // fix Array#{values, @@iterator}.name in V8 / FF | |
| 5480 | + if (DEF_VALUES && $native && $native.name !== VALUES) { | |
| 5481 | + VALUES_BUG = true; | |
| 5482 | + $default = function values() { return $native.call(this); }; | |
| 5483 | + } | |
| 5484 | + // Define iterator | |
| 5485 | + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | |
| 5486 | + hide(proto, ITERATOR, $default); | |
| 5487 | + } | |
| 5488 | + // Plug for library | |
| 5489 | + Iterators[NAME] = $default; | |
| 5490 | + Iterators[TAG] = returnThis; | |
| 5491 | + if (DEFAULT) { | |
| 5492 | + methods = { | |
| 5493 | + values: DEF_VALUES ? $default : getMethod(VALUES), | |
| 5494 | + keys: IS_SET ? $default : getMethod(KEYS), | |
| 5495 | + entries: $entries | |
| 5496 | + }; | |
| 5497 | + if (FORCED) for (key in methods) { | |
| 5498 | + if (!(key in proto)) redefine(proto, key, methods[key]); | |
| 5499 | + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | |
| 5500 | + } | |
| 5501 | + return methods; | |
| 5502 | +}; | |
| 5503 | + | |
| 5504 | + | |
| 5505 | +/***/ }), | |
| 5506 | +/* 198 */ | |
| 5507 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5508 | + | |
| 5509 | +var toInteger = __webpack_require__(57); | |
| 5510 | +var max = Math.max; | |
| 5511 | +var min = Math.min; | |
| 5512 | +module.exports = function (index, length) { | |
| 5513 | + index = toInteger(index); | |
| 5514 | + return index < 0 ? max(index + length, 0) : min(index, length); | |
| 5515 | +}; | |
| 5516 | + | |
| 5517 | + | |
| 5518 | +/***/ }), | |
| 5519 | +/* 199 */ | |
| 5520 | +/***/ (function(module, exports) { | |
| 5521 | + | |
| 5522 | +function _arrayLikeToArray(arr, len) { | |
| 5523 | + if (len == null || len > arr.length) len = arr.length; | |
| 5524 | + | |
| 5525 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 5526 | + arr2[i] = arr[i]; | |
| 5527 | + } | |
| 5528 | + | |
| 5529 | + return arr2; | |
| 3529 | 5530 | } |
| 3530 | -module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 3531 | 5531 | |
| 5532 | +module.exports = _arrayLikeToArray; | |
| 5533 | + | |
| 3532 | 5534 | /***/ }), |
| 5535 | +/* 200 */ | |
| 5536 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3533 | 5537 | |
| 3534 | -/***/ "../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js": | |
| 3535 | -/*!******************************************************************!*\ | |
| 3536 | - !*** ../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js ***! | |
| 3537 | - \******************************************************************/ | |
| 3538 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 5538 | +module.exports = __webpack_require__(228); | |
| 3539 | 5539 | |
| 3540 | -"use strict"; | |
| 3541 | -__webpack_require__.r(__webpack_exports__); | |
| 3542 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 3543 | -/* harmony export */ EnhancerArray: () => (/* binding */ EnhancerArray), | |
| 3544 | -/* harmony export */ MiddlewareArray: () => (/* binding */ MiddlewareArray), | |
| 3545 | -/* harmony export */ SHOULD_AUTOBATCH: () => (/* binding */ SHOULD_AUTOBATCH), | |
| 3546 | -/* harmony export */ TaskAbortError: () => (/* binding */ TaskAbortError), | |
| 3547 | -/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.__DO_NOT_USE__ActionTypes), | |
| 3548 | -/* harmony export */ addListener: () => (/* binding */ addListener), | |
| 3549 | -/* harmony export */ applyMiddleware: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.applyMiddleware), | |
| 3550 | -/* harmony export */ autoBatchEnhancer: () => (/* binding */ autoBatchEnhancer), | |
| 3551 | -/* harmony export */ bindActionCreators: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.bindActionCreators), | |
| 3552 | -/* harmony export */ clearAllListeners: () => (/* binding */ clearAllListeners), | |
| 3553 | -/* harmony export */ combineReducers: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.combineReducers), | |
| 3554 | -/* harmony export */ compose: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.compose), | |
| 3555 | -/* harmony export */ configureStore: () => (/* binding */ configureStore), | |
| 3556 | -/* harmony export */ createAction: () => (/* binding */ createAction), | |
| 3557 | -/* harmony export */ createActionCreatorInvariantMiddleware: () => (/* binding */ createActionCreatorInvariantMiddleware), | |
| 3558 | -/* harmony export */ createAsyncThunk: () => (/* binding */ createAsyncThunk), | |
| 3559 | -/* harmony export */ createDraftSafeSelector: () => (/* binding */ createDraftSafeSelector), | |
| 3560 | -/* harmony export */ createEntityAdapter: () => (/* binding */ createEntityAdapter), | |
| 3561 | -/* harmony export */ createImmutableStateInvariantMiddleware: () => (/* binding */ createImmutableStateInvariantMiddleware), | |
| 3562 | -/* harmony export */ createListenerMiddleware: () => (/* binding */ createListenerMiddleware), | |
| 3563 | -/* harmony export */ createNextState: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__["default"]), | |
| 3564 | -/* harmony export */ createReducer: () => (/* binding */ createReducer), | |
| 3565 | -/* harmony export */ createSelector: () => (/* reexport safe */ reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector), | |
| 3566 | -/* harmony export */ createSerializableStateInvariantMiddleware: () => (/* binding */ createSerializableStateInvariantMiddleware), | |
| 3567 | -/* harmony export */ createSlice: () => (/* binding */ createSlice), | |
| 3568 | -/* harmony export */ createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.createStore), | |
| 3569 | -/* harmony export */ current: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.current), | |
| 3570 | -/* harmony export */ findNonSerializableValue: () => (/* binding */ findNonSerializableValue), | |
| 3571 | -/* harmony export */ freeze: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.freeze), | |
| 3572 | -/* harmony export */ getDefaultMiddleware: () => (/* binding */ getDefaultMiddleware), | |
| 3573 | -/* harmony export */ getType: () => (/* binding */ getType), | |
| 3574 | -/* harmony export */ isAction: () => (/* binding */ isAction), | |
| 3575 | -/* harmony export */ isActionCreator: () => (/* binding */ isActionCreator), | |
| 3576 | -/* harmony export */ isAllOf: () => (/* binding */ isAllOf), | |
| 3577 | -/* harmony export */ isAnyOf: () => (/* binding */ isAnyOf), | |
| 3578 | -/* harmony export */ isAsyncThunkAction: () => (/* binding */ isAsyncThunkAction), | |
| 3579 | -/* harmony export */ isDraft: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.isDraft), | |
| 3580 | -/* harmony export */ isFluxStandardAction: () => (/* binding */ isFSA), | |
| 3581 | -/* harmony export */ isFulfilled: () => (/* binding */ isFulfilled), | |
| 3582 | -/* harmony export */ isImmutableDefault: () => (/* binding */ isImmutableDefault), | |
| 3583 | -/* harmony export */ isPending: () => (/* binding */ isPending), | |
| 3584 | -/* harmony export */ isPlain: () => (/* binding */ isPlain), | |
| 3585 | -/* harmony export */ isPlainObject: () => (/* binding */ isPlainObject), | |
| 3586 | -/* harmony export */ isRejected: () => (/* binding */ isRejected), | |
| 3587 | -/* harmony export */ isRejectedWithValue: () => (/* binding */ isRejectedWithValue), | |
| 3588 | -/* harmony export */ legacy_createStore: () => (/* reexport safe */ redux__WEBPACK_IMPORTED_MODULE_1__.legacy_createStore), | |
| 3589 | -/* harmony export */ miniSerializeError: () => (/* binding */ miniSerializeError), | |
| 3590 | -/* harmony export */ nanoid: () => (/* binding */ nanoid), | |
| 3591 | -/* harmony export */ original: () => (/* reexport safe */ immer__WEBPACK_IMPORTED_MODULE_0__.original), | |
| 3592 | -/* harmony export */ prepareAutoBatched: () => (/* binding */ prepareAutoBatched), | |
| 3593 | -/* harmony export */ removeListener: () => (/* binding */ removeListener), | |
| 3594 | -/* harmony export */ unwrapResult: () => (/* binding */ unwrapResult) | |
| 3595 | -/* harmony export */ }); | |
| 3596 | -/* harmony import */ var immer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! immer */ "../node_modules/immer/dist/immer.esm.mjs"); | |
| 3597 | -/* harmony import */ var redux__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! redux */ "../node_modules/redux/es/redux.js"); | |
| 3598 | -/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! reselect */ "../node_modules/reselect/es/index.js"); | |
| 3599 | -/* harmony import */ var redux_thunk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! redux-thunk */ "../node_modules/redux-thunk/es/index.js"); | |
| 3600 | -var __extends = (undefined && undefined.__extends) || (function () { | |
| 3601 | - var extendStatics = function (d, b) { | |
| 3602 | - extendStatics = Object.setPrototypeOf || | |
| 3603 | - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | |
| 3604 | - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | |
| 3605 | - return extendStatics(d, b); | |
| 3606 | - }; | |
| 3607 | - return function (d, b) { | |
| 3608 | - if (typeof b !== "function" && b !== null) | |
| 3609 | - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | |
| 3610 | - extendStatics(d, b); | |
| 3611 | - function __() { this.constructor = d; } | |
| 3612 | - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | |
| 3613 | - }; | |
| 3614 | -})(); | |
| 3615 | -var __generator = (undefined && undefined.__generator) || function (thisArg, body) { | |
| 3616 | - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | |
| 3617 | - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | |
| 3618 | - function verb(n) { return function (v) { return step([n, v]); }; } | |
| 3619 | - function step(op) { | |
| 3620 | - if (f) throw new TypeError("Generator is already executing."); | |
| 3621 | - while (_) try { | |
| 3622 | - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | |
| 3623 | - if (y = 0, t) op = [op[0] & 2, t.value]; | |
| 3624 | - switch (op[0]) { | |
| 3625 | - case 0: case 1: t = op; break; | |
| 3626 | - case 4: _.label++; return { value: op[1], done: false }; | |
| 3627 | - case 5: _.label++; y = op[1]; op = [0]; continue; | |
| 3628 | - case 7: op = _.ops.pop(); _.trys.pop(); continue; | |
| 3629 | - default: | |
| 3630 | - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } | |
| 3631 | - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } | |
| 3632 | - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } | |
| 3633 | - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } | |
| 3634 | - if (t[2]) _.ops.pop(); | |
| 3635 | - _.trys.pop(); continue; | |
| 3636 | - } | |
| 3637 | - op = body.call(thisArg, _); | |
| 3638 | - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } | |
| 3639 | - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; | |
| 3640 | - } | |
| 3641 | -}; | |
| 3642 | -var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from) { | |
| 3643 | - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | |
| 3644 | - to[j] = from[i]; | |
| 3645 | - return to; | |
| 3646 | -}; | |
| 3647 | -var __defProp = Object.defineProperty; | |
| 3648 | -var __defProps = Object.defineProperties; | |
| 3649 | -var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | |
| 3650 | -var __getOwnPropSymbols = Object.getOwnPropertySymbols; | |
| 3651 | -var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 3652 | -var __propIsEnum = Object.prototype.propertyIsEnumerable; | |
| 3653 | -var __defNormalProp = function (obj, key, value) { return key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value: value }) : obj[key] = value; }; | |
| 3654 | -var __spreadValues = function (a, b) { | |
| 3655 | - for (var prop in b || (b = {})) | |
| 3656 | - if (__hasOwnProp.call(b, prop)) | |
| 3657 | - __defNormalProp(a, prop, b[prop]); | |
| 3658 | - if (__getOwnPropSymbols) | |
| 3659 | - for (var _i = 0, _c = __getOwnPropSymbols(b); _i < _c.length; _i++) { | |
| 3660 | - var prop = _c[_i]; | |
| 3661 | - if (__propIsEnum.call(b, prop)) | |
| 3662 | - __defNormalProp(a, prop, b[prop]); | |
| 3663 | - } | |
| 3664 | - return a; | |
| 3665 | -}; | |
| 3666 | -var __spreadProps = function (a, b) { return __defProps(a, __getOwnPropDescs(b)); }; | |
| 3667 | -var __async = function (__this, __arguments, generator) { | |
| 3668 | - return new Promise(function (resolve, reject) { | |
| 3669 | - var fulfilled = function (value) { | |
| 3670 | - try { | |
| 3671 | - step(generator.next(value)); | |
| 3672 | - } | |
| 3673 | - catch (e) { | |
| 3674 | - reject(e); | |
| 3675 | - } | |
| 3676 | - }; | |
| 3677 | - var rejected = function (value) { | |
| 3678 | - try { | |
| 3679 | - step(generator.throw(value)); | |
| 3680 | - } | |
| 3681 | - catch (e) { | |
| 3682 | - reject(e); | |
| 3683 | - } | |
| 3684 | - }; | |
| 3685 | - var step = function (x) { return x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); }; | |
| 3686 | - step((generator = generator.apply(__this, __arguments)).next()); | |
| 3687 | - }); | |
| 3688 | -}; | |
| 3689 | -// src/index.ts | |
| 3690 | - | |
| 3691 | - | |
| 3692 | - | |
| 3693 | - | |
| 3694 | -// src/createDraftSafeSelector.ts | |
| 3695 | - | |
| 3696 | - | |
| 3697 | -var createDraftSafeSelector = function () { | |
| 3698 | - var args = []; | |
| 3699 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3700 | - args[_i] = arguments[_i]; | |
| 3701 | - } | |
| 3702 | - var selector = reselect__WEBPACK_IMPORTED_MODULE_2__.createSelector.apply(void 0, args); | |
| 3703 | - var wrappedSelector = function (value) { | |
| 3704 | - var rest = []; | |
| 3705 | - for (var _i = 1; _i < arguments.length; _i++) { | |
| 3706 | - rest[_i - 1] = arguments[_i]; | |
| 3707 | - } | |
| 3708 | - return selector.apply(void 0, __spreadArray([(0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(value) ? (0,immer__WEBPACK_IMPORTED_MODULE_0__.current)(value) : value], rest)); | |
| 3709 | - }; | |
| 3710 | - return wrappedSelector; | |
| 3711 | -}; | |
| 3712 | -// src/configureStore.ts | |
| 3713 | - | |
| 3714 | -// src/devtoolsExtension.ts | |
| 3715 | - | |
| 3716 | -var composeWithDevTools = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function () { | |
| 3717 | - if (arguments.length === 0) | |
| 3718 | - return void 0; | |
| 3719 | - if (typeof arguments[0] === "object") | |
| 3720 | - return redux__WEBPACK_IMPORTED_MODULE_1__.compose; | |
| 3721 | - return redux__WEBPACK_IMPORTED_MODULE_1__.compose.apply(null, arguments); | |
| 3722 | -}; | |
| 3723 | -var devToolsEnhancer = typeof window !== "undefined" && window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__ : function () { | |
| 3724 | - return function (noop2) { | |
| 3725 | - return noop2; | |
| 3726 | - }; | |
| 3727 | -}; | |
| 3728 | -// src/isPlainObject.ts | |
| 3729 | -function isPlainObject(value) { | |
| 3730 | - if (typeof value !== "object" || value === null) | |
| 3731 | - return false; | |
| 3732 | - var proto = Object.getPrototypeOf(value); | |
| 3733 | - if (proto === null) | |
| 3734 | - return true; | |
| 3735 | - var baseProto = proto; | |
| 3736 | - while (Object.getPrototypeOf(baseProto) !== null) { | |
| 3737 | - baseProto = Object.getPrototypeOf(baseProto); | |
| 3738 | - } | |
| 3739 | - return proto === baseProto; | |
| 3740 | -} | |
| 3741 | -// src/getDefaultMiddleware.ts | |
| 3742 | - | |
| 3743 | -// src/tsHelpers.ts | |
| 3744 | -var hasMatchFunction = function (v) { | |
| 3745 | - return v && typeof v.match === "function"; | |
| 3746 | -}; | |
| 3747 | -// src/createAction.ts | |
| 3748 | -function createAction(type, prepareAction) { | |
| 3749 | - function actionCreator() { | |
| 3750 | - var args = []; | |
| 3751 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3752 | - args[_i] = arguments[_i]; | |
| 3753 | - } | |
| 3754 | - if (prepareAction) { | |
| 3755 | - var prepared = prepareAction.apply(void 0, args); | |
| 3756 | - if (!prepared) { | |
| 3757 | - throw new Error("prepareAction did not return an object"); | |
| 3758 | - } | |
| 3759 | - return __spreadValues(__spreadValues({ | |
| 3760 | - type: type, | |
| 3761 | - payload: prepared.payload | |
| 3762 | - }, "meta" in prepared && { meta: prepared.meta }), "error" in prepared && { error: prepared.error }); | |
| 3763 | - } | |
| 3764 | - return { type: type, payload: args[0] }; | |
| 3765 | - } | |
| 3766 | - actionCreator.toString = function () { return "" + type; }; | |
| 3767 | - actionCreator.type = type; | |
| 3768 | - actionCreator.match = function (action) { return action.type === type; }; | |
| 3769 | - return actionCreator; | |
| 3770 | -} | |
| 3771 | -function isAction(action) { | |
| 3772 | - return isPlainObject(action) && "type" in action; | |
| 3773 | -} | |
| 3774 | -function isActionCreator(action) { | |
| 3775 | - return typeof action === "function" && "type" in action && hasMatchFunction(action); | |
| 3776 | -} | |
| 3777 | -function isFSA(action) { | |
| 3778 | - return isAction(action) && typeof action.type === "string" && Object.keys(action).every(isValidKey); | |
| 3779 | -} | |
| 3780 | -function isValidKey(key) { | |
| 3781 | - return ["type", "payload", "error", "meta"].indexOf(key) > -1; | |
| 3782 | -} | |
| 3783 | -function getType(actionCreator) { | |
| 3784 | - return "" + actionCreator; | |
| 3785 | -} | |
| 3786 | -// src/actionCreatorInvariantMiddleware.ts | |
| 3787 | -function getMessage(type) { | |
| 3788 | - var splitType = type ? ("" + type).split("/") : []; | |
| 3789 | - var actionName = splitType[splitType.length - 1] || "actionCreator"; | |
| 3790 | - return "Detected an action creator with type \"" + (type || "unknown") + "\" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. `dispatch(" + actionName + "())` instead of `dispatch(" + actionName + ")`. This is necessary even if the action has no payload."; | |
| 3791 | -} | |
| 3792 | -function createActionCreatorInvariantMiddleware(options) { | |
| 3793 | - if (options === void 0) { options = {}; } | |
| 3794 | - if (false) // removed by dead control flow | |
| 3795 | -{} | |
| 3796 | - var _c = options.isActionCreator, isActionCreator2 = _c === void 0 ? isActionCreator : _c; | |
| 3797 | - return function () { return function (next) { return function (action) { | |
| 3798 | - if (isActionCreator2(action)) { | |
| 3799 | - console.warn(getMessage(action.type)); | |
| 3800 | - } | |
| 3801 | - return next(action); | |
| 3802 | - }; }; }; | |
| 3803 | -} | |
| 3804 | -// src/utils.ts | |
| 3805 | - | |
| 3806 | -function getTimeMeasureUtils(maxDelay, fnName) { | |
| 3807 | - var elapsed = 0; | |
| 3808 | - return { | |
| 3809 | - measureTime: function (fn) { | |
| 3810 | - var started = Date.now(); | |
| 3811 | - try { | |
| 3812 | - return fn(); | |
| 3813 | - } | |
| 3814 | - finally { | |
| 3815 | - var finished = Date.now(); | |
| 3816 | - elapsed += finished - started; | |
| 3817 | - } | |
| 3818 | - }, | |
| 3819 | - warnIfExceeded: function () { | |
| 3820 | - if (elapsed > maxDelay) { | |
| 3821 | - console.warn(fnName + " took " + elapsed + "ms, which is more than the warning threshold of " + maxDelay + "ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that."); | |
| 3822 | - } | |
| 3823 | - } | |
| 3824 | - }; | |
| 3825 | -} | |
| 3826 | -var MiddlewareArray = /** @class */ (function (_super) { | |
| 3827 | - __extends(MiddlewareArray, _super); | |
| 3828 | - function MiddlewareArray() { | |
| 3829 | - var args = []; | |
| 3830 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3831 | - args[_i] = arguments[_i]; | |
| 3832 | - } | |
| 3833 | - var _this = _super.apply(this, args) || this; | |
| 3834 | - Object.setPrototypeOf(_this, MiddlewareArray.prototype); | |
| 3835 | - return _this; | |
| 3836 | - } | |
| 3837 | - Object.defineProperty(MiddlewareArray, Symbol.species, { | |
| 3838 | - get: function () { | |
| 3839 | - return MiddlewareArray; | |
| 3840 | - }, | |
| 3841 | - enumerable: false, | |
| 3842 | - configurable: true | |
| 3843 | - }); | |
| 3844 | - MiddlewareArray.prototype.concat = function () { | |
| 3845 | - var arr = []; | |
| 3846 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3847 | - arr[_i] = arguments[_i]; | |
| 3848 | - } | |
| 3849 | - return _super.prototype.concat.apply(this, arr); | |
| 3850 | - }; | |
| 3851 | - MiddlewareArray.prototype.prepend = function () { | |
| 3852 | - var arr = []; | |
| 3853 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3854 | - arr[_i] = arguments[_i]; | |
| 3855 | - } | |
| 3856 | - if (arr.length === 1 && Array.isArray(arr[0])) { | |
| 3857 | - return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr[0].concat(this))))(); | |
| 3858 | - } | |
| 3859 | - return new (MiddlewareArray.bind.apply(MiddlewareArray, __spreadArray([void 0], arr.concat(this))))(); | |
| 3860 | - }; | |
| 3861 | - return MiddlewareArray; | |
| 3862 | -}(Array)); | |
| 3863 | -var EnhancerArray = /** @class */ (function (_super) { | |
| 3864 | - __extends(EnhancerArray, _super); | |
| 3865 | - function EnhancerArray() { | |
| 3866 | - var args = []; | |
| 3867 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3868 | - args[_i] = arguments[_i]; | |
| 3869 | - } | |
| 3870 | - var _this = _super.apply(this, args) || this; | |
| 3871 | - Object.setPrototypeOf(_this, EnhancerArray.prototype); | |
| 3872 | - return _this; | |
| 3873 | - } | |
| 3874 | - Object.defineProperty(EnhancerArray, Symbol.species, { | |
| 3875 | - get: function () { | |
| 3876 | - return EnhancerArray; | |
| 3877 | - }, | |
| 3878 | - enumerable: false, | |
| 3879 | - configurable: true | |
| 3880 | - }); | |
| 3881 | - EnhancerArray.prototype.concat = function () { | |
| 3882 | - var arr = []; | |
| 3883 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3884 | - arr[_i] = arguments[_i]; | |
| 3885 | - } | |
| 3886 | - return _super.prototype.concat.apply(this, arr); | |
| 3887 | - }; | |
| 3888 | - EnhancerArray.prototype.prepend = function () { | |
| 3889 | - var arr = []; | |
| 3890 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 3891 | - arr[_i] = arguments[_i]; | |
| 3892 | - } | |
| 3893 | - if (arr.length === 1 && Array.isArray(arr[0])) { | |
| 3894 | - return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr[0].concat(this))))(); | |
| 3895 | - } | |
| 3896 | - return new (EnhancerArray.bind.apply(EnhancerArray, __spreadArray([void 0], arr.concat(this))))(); | |
| 3897 | - }; | |
| 3898 | - return EnhancerArray; | |
| 3899 | -}(Array)); | |
| 3900 | -function freezeDraftable(val) { | |
| 3901 | - return (0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraftable)(val) ? (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(val, function () { | |
| 3902 | - }) : val; | |
| 3903 | -} | |
| 3904 | -// src/immutableStateInvariantMiddleware.ts | |
| 3905 | -var isProduction = "development" === "production"; | |
| 3906 | -var prefix = "Invariant failed"; | |
| 3907 | -function invariant(condition, message) { | |
| 3908 | - if (condition) { | |
| 3909 | - return; | |
| 3910 | - } | |
| 3911 | - if (isProduction) { | |
| 3912 | - throw new Error(prefix); | |
| 3913 | - } | |
| 3914 | - throw new Error(prefix + ": " + (message || "")); | |
| 3915 | -} | |
| 3916 | -function stringify(obj, serializer, indent, decycler) { | |
| 3917 | - return JSON.stringify(obj, getSerialize(serializer, decycler), indent); | |
| 3918 | -} | |
| 3919 | -function getSerialize(serializer, decycler) { | |
| 3920 | - var stack = [], keys = []; | |
| 3921 | - if (!decycler) | |
| 3922 | - decycler = function (_, value) { | |
| 3923 | - if (stack[0] === value) | |
| 3924 | - return "[Circular ~]"; | |
| 3925 | - return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"; | |
| 3926 | - }; | |
| 3927 | - return function (key, value) { | |
| 3928 | - if (stack.length > 0) { | |
| 3929 | - var thisPos = stack.indexOf(this); | |
| 3930 | - ~thisPos ? stack.splice(thisPos + 1) : stack.push(this); | |
| 3931 | - ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key); | |
| 3932 | - if (~stack.indexOf(value)) | |
| 3933 | - value = decycler.call(this, key, value); | |
| 3934 | - } | |
| 3935 | - else | |
| 3936 | - stack.push(value); | |
| 3937 | - return serializer == null ? value : serializer.call(this, key, value); | |
| 3938 | - }; | |
| 3939 | -} | |
| 3940 | -function isImmutableDefault(value) { | |
| 3941 | - return typeof value !== "object" || value == null || Object.isFrozen(value); | |
| 3942 | -} | |
| 3943 | -function trackForMutations(isImmutable, ignorePaths, obj) { | |
| 3944 | - var trackedProperties = trackProperties(isImmutable, ignorePaths, obj); | |
| 3945 | - return { | |
| 3946 | - detectMutations: function () { | |
| 3947 | - return detectMutations(isImmutable, ignorePaths, trackedProperties, obj); | |
| 3948 | - } | |
| 3949 | - }; | |
| 3950 | -} | |
| 3951 | -function trackProperties(isImmutable, ignorePaths, obj, path, checkedObjects) { | |
| 3952 | - if (ignorePaths === void 0) { ignorePaths = []; } | |
| 3953 | - if (path === void 0) { path = ""; } | |
| 3954 | - if (checkedObjects === void 0) { checkedObjects = new Set(); } | |
| 3955 | - var tracked = { value: obj }; | |
| 3956 | - if (!isImmutable(obj) && !checkedObjects.has(obj)) { | |
| 3957 | - checkedObjects.add(obj); | |
| 3958 | - tracked.children = {}; | |
| 3959 | - for (var key in obj) { | |
| 3960 | - var childPath = path ? path + "." + key : key; | |
| 3961 | - if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -1) { | |
| 3962 | - continue; | |
| 3963 | - } | |
| 3964 | - tracked.children[key] = trackProperties(isImmutable, ignorePaths, obj[key], childPath); | |
| 3965 | - } | |
| 3966 | - } | |
| 3967 | - return tracked; | |
| 3968 | -} | |
| 3969 | -function detectMutations(isImmutable, ignoredPaths, trackedProperty, obj, sameParentRef, path) { | |
| 3970 | - if (ignoredPaths === void 0) { ignoredPaths = []; } | |
| 3971 | - if (sameParentRef === void 0) { sameParentRef = false; } | |
| 3972 | - if (path === void 0) { path = ""; } | |
| 3973 | - var prevObj = trackedProperty ? trackedProperty.value : void 0; | |
| 3974 | - var sameRef = prevObj === obj; | |
| 3975 | - if (sameParentRef && !sameRef && !Number.isNaN(obj)) { | |
| 3976 | - return { wasMutated: true, path: path }; | |
| 3977 | - } | |
| 3978 | - if (isImmutable(prevObj) || isImmutable(obj)) { | |
| 3979 | - return { wasMutated: false }; | |
| 3980 | - } | |
| 3981 | - var keysToDetect = {}; | |
| 3982 | - for (var key in trackedProperty.children) { | |
| 3983 | - keysToDetect[key] = true; | |
| 3984 | - } | |
| 3985 | - for (var key in obj) { | |
| 3986 | - keysToDetect[key] = true; | |
| 3987 | - } | |
| 3988 | - var hasIgnoredPaths = ignoredPaths.length > 0; | |
| 3989 | - var _loop_1 = function (key) { | |
| 3990 | - var nestedPath = path ? path + "." + key : key; | |
| 3991 | - if (hasIgnoredPaths) { | |
| 3992 | - var hasMatches = ignoredPaths.some(function (ignored) { | |
| 3993 | - if (ignored instanceof RegExp) { | |
| 3994 | - return ignored.test(nestedPath); | |
| 3995 | - } | |
| 3996 | - return nestedPath === ignored; | |
| 3997 | - }); | |
| 3998 | - if (hasMatches) { | |
| 3999 | - return "continue"; | |
| 4000 | - } | |
| 4001 | - } | |
| 4002 | - var result = detectMutations(isImmutable, ignoredPaths, trackedProperty.children[key], obj[key], sameRef, nestedPath); | |
| 4003 | - if (result.wasMutated) { | |
| 4004 | - return { value: result }; | |
| 4005 | - } | |
| 4006 | - }; | |
| 4007 | - for (var key in keysToDetect) { | |
| 4008 | - var state_1 = _loop_1(key); | |
| 4009 | - if (typeof state_1 === "object") | |
| 4010 | - return state_1.value; | |
| 4011 | - } | |
| 4012 | - return { wasMutated: false }; | |
| 4013 | -} | |
| 4014 | -function createImmutableStateInvariantMiddleware(options) { | |
| 4015 | - if (options === void 0) { options = {}; } | |
| 4016 | - if (false) // removed by dead control flow | |
| 4017 | -{} | |
| 4018 | - var _c = options.isImmutable, isImmutable = _c === void 0 ? isImmutableDefault : _c, ignoredPaths = options.ignoredPaths, _d = options.warnAfter, warnAfter = _d === void 0 ? 32 : _d, ignore = options.ignore; | |
| 4019 | - ignoredPaths = ignoredPaths || ignore; | |
| 4020 | - var track = trackForMutations.bind(null, isImmutable, ignoredPaths); | |
| 4021 | - return function (_c) { | |
| 4022 | - var getState = _c.getState; | |
| 4023 | - var state = getState(); | |
| 4024 | - var tracker = track(state); | |
| 4025 | - var result; | |
| 4026 | - return function (next) { return function (action) { | |
| 4027 | - var measureUtils = getTimeMeasureUtils(warnAfter, "ImmutableStateInvariantMiddleware"); | |
| 4028 | - measureUtils.measureTime(function () { | |
| 4029 | - state = getState(); | |
| 4030 | - result = tracker.detectMutations(); | |
| 4031 | - tracker = track(state); | |
| 4032 | - invariant(!result.wasMutated, "A state mutation was detected between dispatches, in the path '" + (result.path || "") + "'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)"); | |
| 4033 | - }); | |
| 4034 | - var dispatchedAction = next(action); | |
| 4035 | - measureUtils.measureTime(function () { | |
| 4036 | - state = getState(); | |
| 4037 | - result = tracker.detectMutations(); | |
| 4038 | - tracker = track(state); | |
| 4039 | - result.wasMutated && invariant(!result.wasMutated, "A state mutation was detected inside a dispatch, in the path: " + (result.path || "") + ". Take a look at the reducer(s) handling the action " + stringify(action) + ". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)"); | |
| 4040 | - }); | |
| 4041 | - measureUtils.warnIfExceeded(); | |
| 4042 | - return dispatchedAction; | |
| 4043 | - }; }; | |
| 4044 | - }; | |
| 4045 | -} | |
| 4046 | -// src/serializableStateInvariantMiddleware.ts | |
| 4047 | -function isPlain(val) { | |
| 4048 | - var type = typeof val; | |
| 4049 | - return val == null || type === "string" || type === "boolean" || type === "number" || Array.isArray(val) || isPlainObject(val); | |
| 4050 | -} | |
| 4051 | -function findNonSerializableValue(value, path, isSerializable, getEntries, ignoredPaths, cache) { | |
| 4052 | - if (path === void 0) { path = ""; } | |
| 4053 | - if (isSerializable === void 0) { isSerializable = isPlain; } | |
| 4054 | - if (ignoredPaths === void 0) { ignoredPaths = []; } | |
| 4055 | - var foundNestedSerializable; | |
| 4056 | - if (!isSerializable(value)) { | |
| 4057 | - return { | |
| 4058 | - keyPath: path || "<root>", | |
| 4059 | - value: value | |
| 4060 | - }; | |
| 4061 | - } | |
| 4062 | - if (typeof value !== "object" || value === null) { | |
| 4063 | - return false; | |
| 4064 | - } | |
| 4065 | - if (cache == null ? void 0 : cache.has(value)) | |
| 4066 | - return false; | |
| 4067 | - var entries = getEntries != null ? getEntries(value) : Object.entries(value); | |
| 4068 | - var hasIgnoredPaths = ignoredPaths.length > 0; | |
| 4069 | - var _loop_2 = function (key, nestedValue) { | |
| 4070 | - var nestedPath = path ? path + "." + key : key; | |
| 4071 | - if (hasIgnoredPaths) { | |
| 4072 | - var hasMatches = ignoredPaths.some(function (ignored) { | |
| 4073 | - if (ignored instanceof RegExp) { | |
| 4074 | - return ignored.test(nestedPath); | |
| 4075 | - } | |
| 4076 | - return nestedPath === ignored; | |
| 4077 | - }); | |
| 4078 | - if (hasMatches) { | |
| 4079 | - return "continue"; | |
| 4080 | - } | |
| 4081 | - } | |
| 4082 | - if (!isSerializable(nestedValue)) { | |
| 4083 | - return { value: { | |
| 4084 | - keyPath: nestedPath, | |
| 4085 | - value: nestedValue | |
| 4086 | - } }; | |
| 4087 | - } | |
| 4088 | - if (typeof nestedValue === "object") { | |
| 4089 | - foundNestedSerializable = findNonSerializableValue(nestedValue, nestedPath, isSerializable, getEntries, ignoredPaths, cache); | |
| 4090 | - if (foundNestedSerializable) { | |
| 4091 | - return { value: foundNestedSerializable }; | |
| 4092 | - } | |
| 4093 | - } | |
| 4094 | - }; | |
| 4095 | - for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) { | |
| 4096 | - var _c = entries_1[_i], key = _c[0], nestedValue = _c[1]; | |
| 4097 | - var state_2 = _loop_2(key, nestedValue); | |
| 4098 | - if (typeof state_2 === "object") | |
| 4099 | - return state_2.value; | |
| 4100 | - } | |
| 4101 | - if (cache && isNestedFrozen(value)) | |
| 4102 | - cache.add(value); | |
| 4103 | - return false; | |
| 4104 | -} | |
| 4105 | -function isNestedFrozen(value) { | |
| 4106 | - if (!Object.isFrozen(value)) | |
| 4107 | - return false; | |
| 4108 | - for (var _i = 0, _c = Object.values(value); _i < _c.length; _i++) { | |
| 4109 | - var nestedValue = _c[_i]; | |
| 4110 | - if (typeof nestedValue !== "object" || nestedValue === null) | |
| 4111 | - continue; | |
| 4112 | - if (!isNestedFrozen(nestedValue)) | |
| 4113 | - return false; | |
| 4114 | - } | |
| 4115 | - return true; | |
| 4116 | -} | |
| 4117 | -function createSerializableStateInvariantMiddleware(options) { | |
| 4118 | - if (options === void 0) { options = {}; } | |
| 4119 | - if (false) // removed by dead control flow | |
| 4120 | -{} | |
| 4121 | - var _c = options.isSerializable, isSerializable = _c === void 0 ? isPlain : _c, getEntries = options.getEntries, _d = options.ignoredActions, ignoredActions = _d === void 0 ? [] : _d, _e = options.ignoredActionPaths, ignoredActionPaths = _e === void 0 ? ["meta.arg", "meta.baseQueryMeta"] : _e, _f = options.ignoredPaths, ignoredPaths = _f === void 0 ? [] : _f, _g = options.warnAfter, warnAfter = _g === void 0 ? 32 : _g, _h = options.ignoreState, ignoreState = _h === void 0 ? false : _h, _j = options.ignoreActions, ignoreActions = _j === void 0 ? false : _j, _k = options.disableCache, disableCache = _k === void 0 ? false : _k; | |
| 4122 | - var cache = !disableCache && WeakSet ? new WeakSet() : void 0; | |
| 4123 | - return function (storeAPI) { return function (next) { return function (action) { | |
| 4124 | - var result = next(action); | |
| 4125 | - var measureUtils = getTimeMeasureUtils(warnAfter, "SerializableStateInvariantMiddleware"); | |
| 4126 | - if (!ignoreActions && !(ignoredActions.length && ignoredActions.indexOf(action.type) !== -1)) { | |
| 4127 | - measureUtils.measureTime(function () { | |
| 4128 | - var foundActionNonSerializableValue = findNonSerializableValue(action, "", isSerializable, getEntries, ignoredActionPaths, cache); | |
| 4129 | - if (foundActionNonSerializableValue) { | |
| 4130 | - var keyPath = foundActionNonSerializableValue.keyPath, value = foundActionNonSerializableValue.value; | |
| 4131 | - console.error("A non-serializable value was detected in an action, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the logic that dispatched this action: ", action, "\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)", "\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)"); | |
| 4132 | - } | |
| 4133 | - }); | |
| 4134 | - } | |
| 4135 | - if (!ignoreState) { | |
| 4136 | - measureUtils.measureTime(function () { | |
| 4137 | - var state = storeAPI.getState(); | |
| 4138 | - var foundStateNonSerializableValue = findNonSerializableValue(state, "", isSerializable, getEntries, ignoredPaths, cache); | |
| 4139 | - if (foundStateNonSerializableValue) { | |
| 4140 | - var keyPath = foundStateNonSerializableValue.keyPath, value = foundStateNonSerializableValue.value; | |
| 4141 | - console.error("A non-serializable value was detected in the state, in the path: `" + keyPath + "`. Value:", value, "\nTake a look at the reducer(s) handling this action type: " + action.type + ".\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)"); | |
| 4142 | - } | |
| 4143 | - }); | |
| 4144 | - measureUtils.warnIfExceeded(); | |
| 4145 | - } | |
| 4146 | - return result; | |
| 4147 | - }; }; }; | |
| 4148 | -} | |
| 4149 | -// src/getDefaultMiddleware.ts | |
| 4150 | -function isBoolean(x) { | |
| 4151 | - return typeof x === "boolean"; | |
| 4152 | -} | |
| 4153 | -function curryGetDefaultMiddleware() { | |
| 4154 | - return function curriedGetDefaultMiddleware(options) { | |
| 4155 | - return getDefaultMiddleware(options); | |
| 4156 | - }; | |
| 4157 | -} | |
| 4158 | -function getDefaultMiddleware(options) { | |
| 4159 | - if (options === void 0) { options = {}; } | |
| 4160 | - var _c = options.thunk, thunk = _c === void 0 ? true : _c, _d = options.immutableCheck, immutableCheck = _d === void 0 ? true : _d, _e = options.serializableCheck, serializableCheck = _e === void 0 ? true : _e, _f = options.actionCreatorCheck, actionCreatorCheck = _f === void 0 ? true : _f; | |
| 4161 | - var middlewareArray = new MiddlewareArray(); | |
| 4162 | - if (thunk) { | |
| 4163 | - if (isBoolean(thunk)) { | |
| 4164 | - middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"]); | |
| 4165 | - } | |
| 4166 | - else { | |
| 4167 | - middlewareArray.push(redux_thunk__WEBPACK_IMPORTED_MODULE_3__["default"].withExtraArgument(thunk.extraArgument)); | |
| 4168 | - } | |
| 4169 | - } | |
| 4170 | - if (true) { | |
| 4171 | - if (immutableCheck) { | |
| 4172 | - var immutableOptions = {}; | |
| 4173 | - if (!isBoolean(immutableCheck)) { | |
| 4174 | - immutableOptions = immutableCheck; | |
| 4175 | - } | |
| 4176 | - middlewareArray.unshift(createImmutableStateInvariantMiddleware(immutableOptions)); | |
| 4177 | - } | |
| 4178 | - if (serializableCheck) { | |
| 4179 | - var serializableOptions = {}; | |
| 4180 | - if (!isBoolean(serializableCheck)) { | |
| 4181 | - serializableOptions = serializableCheck; | |
| 4182 | - } | |
| 4183 | - middlewareArray.push(createSerializableStateInvariantMiddleware(serializableOptions)); | |
| 4184 | - } | |
| 4185 | - if (actionCreatorCheck) { | |
| 4186 | - var actionCreatorOptions = {}; | |
| 4187 | - if (!isBoolean(actionCreatorCheck)) { | |
| 4188 | - actionCreatorOptions = actionCreatorCheck; | |
| 4189 | - } | |
| 4190 | - middlewareArray.unshift(createActionCreatorInvariantMiddleware(actionCreatorOptions)); | |
| 4191 | - } | |
| 4192 | - } | |
| 4193 | - return middlewareArray; | |
| 4194 | -} | |
| 4195 | -// src/configureStore.ts | |
| 4196 | -var IS_PRODUCTION = "development" === "production"; | |
| 4197 | -function configureStore(options) { | |
| 4198 | - var curriedGetDefaultMiddleware = curryGetDefaultMiddleware(); | |
| 4199 | - var _c = options || {}, _d = _c.reducer, reducer = _d === void 0 ? void 0 : _d, _e = _c.middleware, middleware = _e === void 0 ? curriedGetDefaultMiddleware() : _e, _f = _c.devTools, devTools = _f === void 0 ? true : _f, _g = _c.preloadedState, preloadedState = _g === void 0 ? void 0 : _g, _h = _c.enhancers, enhancers = _h === void 0 ? void 0 : _h; | |
| 4200 | - var rootReducer; | |
| 4201 | - if (typeof reducer === "function") { | |
| 4202 | - rootReducer = reducer; | |
| 4203 | - } | |
| 4204 | - else if (isPlainObject(reducer)) { | |
| 4205 | - rootReducer = (0,redux__WEBPACK_IMPORTED_MODULE_1__.combineReducers)(reducer); | |
| 4206 | - } | |
| 4207 | - else { | |
| 4208 | - throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers'); | |
| 4209 | - } | |
| 4210 | - var finalMiddleware = middleware; | |
| 4211 | - if (typeof finalMiddleware === "function") { | |
| 4212 | - finalMiddleware = finalMiddleware(curriedGetDefaultMiddleware); | |
| 4213 | - if (!IS_PRODUCTION && !Array.isArray(finalMiddleware)) { | |
| 4214 | - throw new Error("when using a middleware builder function, an array of middleware must be returned"); | |
| 4215 | - } | |
| 4216 | - } | |
| 4217 | - if (!IS_PRODUCTION && finalMiddleware.some(function (item) { return typeof item !== "function"; })) { | |
| 4218 | - throw new Error("each middleware provided to configureStore must be a function"); | |
| 4219 | - } | |
| 4220 | - var middlewareEnhancer = redux__WEBPACK_IMPORTED_MODULE_1__.applyMiddleware.apply(void 0, finalMiddleware); | |
| 4221 | - var finalCompose = redux__WEBPACK_IMPORTED_MODULE_1__.compose; | |
| 4222 | - if (devTools) { | |
| 4223 | - finalCompose = composeWithDevTools(__spreadValues({ | |
| 4224 | - trace: !IS_PRODUCTION | |
| 4225 | - }, typeof devTools === "object" && devTools)); | |
| 4226 | - } | |
| 4227 | - var defaultEnhancers = new EnhancerArray(middlewareEnhancer); | |
| 4228 | - var storeEnhancers = defaultEnhancers; | |
| 4229 | - if (Array.isArray(enhancers)) { | |
| 4230 | - storeEnhancers = __spreadArray([middlewareEnhancer], enhancers); | |
| 4231 | - } | |
| 4232 | - else if (typeof enhancers === "function") { | |
| 4233 | - storeEnhancers = enhancers(defaultEnhancers); | |
| 4234 | - } | |
| 4235 | - var composedEnhancer = finalCompose.apply(void 0, storeEnhancers); | |
| 4236 | - return (0,redux__WEBPACK_IMPORTED_MODULE_1__.createStore)(rootReducer, preloadedState, composedEnhancer); | |
| 4237 | -} | |
| 4238 | -// src/createReducer.ts | |
| 4239 | - | |
| 4240 | -// src/mapBuilders.ts | |
| 4241 | -function executeReducerBuilderCallback(builderCallback) { | |
| 4242 | - var actionsMap = {}; | |
| 4243 | - var actionMatchers = []; | |
| 4244 | - var defaultCaseReducer; | |
| 4245 | - var builder = { | |
| 4246 | - addCase: function (typeOrActionCreator, reducer) { | |
| 4247 | - if (true) { | |
| 4248 | - if (actionMatchers.length > 0) { | |
| 4249 | - throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`"); | |
| 4250 | - } | |
| 4251 | - if (defaultCaseReducer) { | |
| 4252 | - throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`"); | |
| 4253 | - } | |
| 4254 | - } | |
| 4255 | - var type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type; | |
| 4256 | - if (!type) { | |
| 4257 | - throw new Error("`builder.addCase` cannot be called with an empty action type"); | |
| 4258 | - } | |
| 4259 | - if (type in actionsMap) { | |
| 4260 | - throw new Error("`builder.addCase` cannot be called with two reducers for the same action type"); | |
| 4261 | - } | |
| 4262 | - actionsMap[type] = reducer; | |
| 4263 | - return builder; | |
| 4264 | - }, | |
| 4265 | - addMatcher: function (matcher, reducer) { | |
| 4266 | - if (true) { | |
| 4267 | - if (defaultCaseReducer) { | |
| 4268 | - throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`"); | |
| 4269 | - } | |
| 4270 | - } | |
| 4271 | - actionMatchers.push({ matcher: matcher, reducer: reducer }); | |
| 4272 | - return builder; | |
| 4273 | - }, | |
| 4274 | - addDefaultCase: function (reducer) { | |
| 4275 | - if (true) { | |
| 4276 | - if (defaultCaseReducer) { | |
| 4277 | - throw new Error("`builder.addDefaultCase` can only be called once"); | |
| 4278 | - } | |
| 4279 | - } | |
| 4280 | - defaultCaseReducer = reducer; | |
| 4281 | - return builder; | |
| 4282 | - } | |
| 4283 | - }; | |
| 4284 | - builderCallback(builder); | |
| 4285 | - return [actionsMap, actionMatchers, defaultCaseReducer]; | |
| 4286 | -} | |
| 4287 | -// src/createReducer.ts | |
| 4288 | -function isStateFunction(x) { | |
| 4289 | - return typeof x === "function"; | |
| 4290 | -} | |
| 4291 | -var hasWarnedAboutObjectNotation = false; | |
| 4292 | -function createReducer(initialState, mapOrBuilderCallback, actionMatchers, defaultCaseReducer) { | |
| 4293 | - if (actionMatchers === void 0) { actionMatchers = []; } | |
| 4294 | - if (true) { | |
| 4295 | - if (typeof mapOrBuilderCallback === "object") { | |
| 4296 | - if (!hasWarnedAboutObjectNotation) { | |
| 4297 | - hasWarnedAboutObjectNotation = true; | |
| 4298 | - console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer"); | |
| 4299 | - } | |
| 4300 | - } | |
| 4301 | - } | |
| 4302 | - var _c = typeof mapOrBuilderCallback === "function" ? executeReducerBuilderCallback(mapOrBuilderCallback) : [mapOrBuilderCallback, actionMatchers, defaultCaseReducer], actionsMap = _c[0], finalActionMatchers = _c[1], finalDefaultCaseReducer = _c[2]; | |
| 4303 | - var getInitialState; | |
| 4304 | - if (isStateFunction(initialState)) { | |
| 4305 | - getInitialState = function () { return freezeDraftable(initialState()); }; | |
| 4306 | - } | |
| 4307 | - else { | |
| 4308 | - var frozenInitialState_1 = freezeDraftable(initialState); | |
| 4309 | - getInitialState = function () { return frozenInitialState_1; }; | |
| 4310 | - } | |
| 4311 | - function reducer(state, action) { | |
| 4312 | - if (state === void 0) { state = getInitialState(); } | |
| 4313 | - var caseReducers = __spreadArray([ | |
| 4314 | - actionsMap[action.type] | |
| 4315 | - ], finalActionMatchers.filter(function (_c) { | |
| 4316 | - var matcher = _c.matcher; | |
| 4317 | - return matcher(action); | |
| 4318 | - }).map(function (_c) { | |
| 4319 | - var reducer2 = _c.reducer; | |
| 4320 | - return reducer2; | |
| 4321 | - })); | |
| 4322 | - if (caseReducers.filter(function (cr) { return !!cr; }).length === 0) { | |
| 4323 | - caseReducers = [finalDefaultCaseReducer]; | |
| 4324 | - } | |
| 4325 | - return caseReducers.reduce(function (previousState, caseReducer) { | |
| 4326 | - if (caseReducer) { | |
| 4327 | - if ((0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(previousState)) { | |
| 4328 | - var draft = previousState; | |
| 4329 | - var result = caseReducer(draft, action); | |
| 4330 | - if (result === void 0) { | |
| 4331 | - return previousState; | |
| 4332 | - } | |
| 4333 | - return result; | |
| 4334 | - } | |
| 4335 | - else if (!(0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraftable)(previousState)) { | |
| 4336 | - var result = caseReducer(previousState, action); | |
| 4337 | - if (result === void 0) { | |
| 4338 | - if (previousState === null) { | |
| 4339 | - return previousState; | |
| 4340 | - } | |
| 4341 | - throw Error("A case reducer on a non-draftable value must not return undefined"); | |
| 4342 | - } | |
| 4343 | - return result; | |
| 4344 | - } | |
| 4345 | - else { | |
| 4346 | - return (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(previousState, function (draft) { | |
| 4347 | - return caseReducer(draft, action); | |
| 4348 | - }); | |
| 4349 | - } | |
| 4350 | - } | |
| 4351 | - return previousState; | |
| 4352 | - }, state); | |
| 4353 | - } | |
| 4354 | - reducer.getInitialState = getInitialState; | |
| 4355 | - return reducer; | |
| 4356 | -} | |
| 4357 | -// src/createSlice.ts | |
| 4358 | -var hasWarnedAboutObjectNotation2 = false; | |
| 4359 | -function getType2(slice, actionKey) { | |
| 4360 | - return slice + "/" + actionKey; | |
| 4361 | -} | |
| 4362 | -function createSlice(options) { | |
| 4363 | - var name = options.name; | |
| 4364 | - if (!name) { | |
| 4365 | - throw new Error("`name` is a required option for createSlice"); | |
| 4366 | - } | |
| 4367 | - if (typeof process !== "undefined" && "development" === "development") { | |
| 4368 | - if (options.initialState === void 0) { | |
| 4369 | - console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`"); | |
| 4370 | - } | |
| 4371 | - } | |
| 4372 | - var initialState = typeof options.initialState == "function" ? options.initialState : freezeDraftable(options.initialState); | |
| 4373 | - var reducers = options.reducers || {}; | |
| 4374 | - var reducerNames = Object.keys(reducers); | |
| 4375 | - var sliceCaseReducersByName = {}; | |
| 4376 | - var sliceCaseReducersByType = {}; | |
| 4377 | - var actionCreators = {}; | |
| 4378 | - reducerNames.forEach(function (reducerName) { | |
| 4379 | - var maybeReducerWithPrepare = reducers[reducerName]; | |
| 4380 | - var type = getType2(name, reducerName); | |
| 4381 | - var caseReducer; | |
| 4382 | - var prepareCallback; | |
| 4383 | - if ("reducer" in maybeReducerWithPrepare) { | |
| 4384 | - caseReducer = maybeReducerWithPrepare.reducer; | |
| 4385 | - prepareCallback = maybeReducerWithPrepare.prepare; | |
| 4386 | - } | |
| 4387 | - else { | |
| 4388 | - caseReducer = maybeReducerWithPrepare; | |
| 4389 | - } | |
| 4390 | - sliceCaseReducersByName[reducerName] = caseReducer; | |
| 4391 | - sliceCaseReducersByType[type] = caseReducer; | |
| 4392 | - actionCreators[reducerName] = prepareCallback ? createAction(type, prepareCallback) : createAction(type); | |
| 4393 | - }); | |
| 4394 | - function buildReducer() { | |
| 4395 | - if (true) { | |
| 4396 | - if (typeof options.extraReducers === "object") { | |
| 4397 | - if (!hasWarnedAboutObjectNotation2) { | |
| 4398 | - hasWarnedAboutObjectNotation2 = true; | |
| 4399 | - console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice"); | |
| 4400 | - } | |
| 4401 | - } | |
| 4402 | - } | |
| 4403 | - var _c = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers], _d = _c[0], extraReducers = _d === void 0 ? {} : _d, _e = _c[1], actionMatchers = _e === void 0 ? [] : _e, _f = _c[2], defaultCaseReducer = _f === void 0 ? void 0 : _f; | |
| 4404 | - var finalCaseReducers = __spreadValues(__spreadValues({}, extraReducers), sliceCaseReducersByType); | |
| 4405 | - return createReducer(initialState, function (builder) { | |
| 4406 | - for (var key in finalCaseReducers) { | |
| 4407 | - builder.addCase(key, finalCaseReducers[key]); | |
| 4408 | - } | |
| 4409 | - for (var _i = 0, actionMatchers_1 = actionMatchers; _i < actionMatchers_1.length; _i++) { | |
| 4410 | - var m = actionMatchers_1[_i]; | |
| 4411 | - builder.addMatcher(m.matcher, m.reducer); | |
| 4412 | - } | |
| 4413 | - if (defaultCaseReducer) { | |
| 4414 | - builder.addDefaultCase(defaultCaseReducer); | |
| 4415 | - } | |
| 4416 | - }); | |
| 4417 | - } | |
| 4418 | - var _reducer; | |
| 4419 | - return { | |
| 4420 | - name: name, | |
| 4421 | - reducer: function (state, action) { | |
| 4422 | - if (!_reducer) | |
| 4423 | - _reducer = buildReducer(); | |
| 4424 | - return _reducer(state, action); | |
| 4425 | - }, | |
| 4426 | - actions: actionCreators, | |
| 4427 | - caseReducers: sliceCaseReducersByName, | |
| 4428 | - getInitialState: function () { | |
| 4429 | - if (!_reducer) | |
| 4430 | - _reducer = buildReducer(); | |
| 4431 | - return _reducer.getInitialState(); | |
| 4432 | - } | |
| 4433 | - }; | |
| 4434 | -} | |
| 4435 | -// src/entities/entity_state.ts | |
| 4436 | -function getInitialEntityState() { | |
| 4437 | - return { | |
| 4438 | - ids: [], | |
| 4439 | - entities: {} | |
| 4440 | - }; | |
| 4441 | -} | |
| 4442 | -function createInitialStateFactory() { | |
| 4443 | - function getInitialState(additionalState) { | |
| 4444 | - if (additionalState === void 0) { additionalState = {}; } | |
| 4445 | - return Object.assign(getInitialEntityState(), additionalState); | |
| 4446 | - } | |
| 4447 | - return { getInitialState: getInitialState }; | |
| 4448 | -} | |
| 4449 | -// src/entities/state_selectors.ts | |
| 4450 | -function createSelectorsFactory() { | |
| 4451 | - function getSelectors(selectState) { | |
| 4452 | - var selectIds = function (state) { return state.ids; }; | |
| 4453 | - var selectEntities = function (state) { return state.entities; }; | |
| 4454 | - var selectAll = createDraftSafeSelector(selectIds, selectEntities, function (ids, entities) { return ids.map(function (id) { return entities[id]; }); }); | |
| 4455 | - var selectId = function (_, id) { return id; }; | |
| 4456 | - var selectById = function (entities, id) { return entities[id]; }; | |
| 4457 | - var selectTotal = createDraftSafeSelector(selectIds, function (ids) { return ids.length; }); | |
| 4458 | - if (!selectState) { | |
| 4459 | - return { | |
| 4460 | - selectIds: selectIds, | |
| 4461 | - selectEntities: selectEntities, | |
| 4462 | - selectAll: selectAll, | |
| 4463 | - selectTotal: selectTotal, | |
| 4464 | - selectById: createDraftSafeSelector(selectEntities, selectId, selectById) | |
| 4465 | - }; | |
| 4466 | - } | |
| 4467 | - var selectGlobalizedEntities = createDraftSafeSelector(selectState, selectEntities); | |
| 4468 | - return { | |
| 4469 | - selectIds: createDraftSafeSelector(selectState, selectIds), | |
| 4470 | - selectEntities: selectGlobalizedEntities, | |
| 4471 | - selectAll: createDraftSafeSelector(selectState, selectAll), | |
| 4472 | - selectTotal: createDraftSafeSelector(selectState, selectTotal), | |
| 4473 | - selectById: createDraftSafeSelector(selectGlobalizedEntities, selectId, selectById) | |
| 4474 | - }; | |
| 4475 | - } | |
| 4476 | - return { getSelectors: getSelectors }; | |
| 4477 | -} | |
| 4478 | -// src/entities/state_adapter.ts | |
| 4479 | - | |
| 4480 | -function createSingleArgumentStateOperator(mutator) { | |
| 4481 | - var operator = createStateOperator(function (_, state) { return mutator(state); }); | |
| 4482 | - return function operation(state) { | |
| 4483 | - return operator(state, void 0); | |
| 4484 | - }; | |
| 4485 | -} | |
| 4486 | -function createStateOperator(mutator) { | |
| 4487 | - return function operation(state, arg) { | |
| 4488 | - function isPayloadActionArgument(arg2) { | |
| 4489 | - return isFSA(arg2); | |
| 4490 | - } | |
| 4491 | - var runMutator = function (draft) { | |
| 4492 | - if (isPayloadActionArgument(arg)) { | |
| 4493 | - mutator(arg.payload, draft); | |
| 4494 | - } | |
| 4495 | - else { | |
| 4496 | - mutator(arg, draft); | |
| 4497 | - } | |
| 4498 | - }; | |
| 4499 | - if ((0,immer__WEBPACK_IMPORTED_MODULE_0__.isDraft)(state)) { | |
| 4500 | - runMutator(state); | |
| 4501 | - return state; | |
| 4502 | - } | |
| 4503 | - else { | |
| 4504 | - return (0,immer__WEBPACK_IMPORTED_MODULE_0__["default"])(state, runMutator); | |
| 4505 | - } | |
| 4506 | - }; | |
| 4507 | -} | |
| 4508 | -// src/entities/utils.ts | |
| 4509 | -function selectIdValue(entity, selectId) { | |
| 4510 | - var key = selectId(entity); | |
| 4511 | - if ( true && key === void 0) { | |
| 4512 | - console.warn("The entity passed to the `selectId` implementation returned undefined.", "You should probably provide your own `selectId` implementation.", "The entity that was passed:", entity, "The `selectId` implementation:", selectId.toString()); | |
| 4513 | - } | |
| 4514 | - return key; | |
| 4515 | -} | |
| 4516 | -function ensureEntitiesArray(entities) { | |
| 4517 | - if (!Array.isArray(entities)) { | |
| 4518 | - entities = Object.values(entities); | |
| 4519 | - } | |
| 4520 | - return entities; | |
| 4521 | -} | |
| 4522 | -function splitAddedUpdatedEntities(newEntities, selectId, state) { | |
| 4523 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4524 | - var added = []; | |
| 4525 | - var updated = []; | |
| 4526 | - for (var _i = 0, newEntities_1 = newEntities; _i < newEntities_1.length; _i++) { | |
| 4527 | - var entity = newEntities_1[_i]; | |
| 4528 | - var id = selectIdValue(entity, selectId); | |
| 4529 | - if (id in state.entities) { | |
| 4530 | - updated.push({ id: id, changes: entity }); | |
| 4531 | - } | |
| 4532 | - else { | |
| 4533 | - added.push(entity); | |
| 4534 | - } | |
| 4535 | - } | |
| 4536 | - return [added, updated]; | |
| 4537 | -} | |
| 4538 | -// src/entities/unsorted_state_adapter.ts | |
| 4539 | -function createUnsortedStateAdapter(selectId) { | |
| 4540 | - function addOneMutably(entity, state) { | |
| 4541 | - var key = selectIdValue(entity, selectId); | |
| 4542 | - if (key in state.entities) { | |
| 4543 | - return; | |
| 4544 | - } | |
| 4545 | - state.ids.push(key); | |
| 4546 | - state.entities[key] = entity; | |
| 4547 | - } | |
| 4548 | - function addManyMutably(newEntities, state) { | |
| 4549 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4550 | - for (var _i = 0, newEntities_2 = newEntities; _i < newEntities_2.length; _i++) { | |
| 4551 | - var entity = newEntities_2[_i]; | |
| 4552 | - addOneMutably(entity, state); | |
| 4553 | - } | |
| 4554 | - } | |
| 4555 | - function setOneMutably(entity, state) { | |
| 4556 | - var key = selectIdValue(entity, selectId); | |
| 4557 | - if (!(key in state.entities)) { | |
| 4558 | - state.ids.push(key); | |
| 4559 | - } | |
| 4560 | - state.entities[key] = entity; | |
| 4561 | - } | |
| 4562 | - function setManyMutably(newEntities, state) { | |
| 4563 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4564 | - for (var _i = 0, newEntities_3 = newEntities; _i < newEntities_3.length; _i++) { | |
| 4565 | - var entity = newEntities_3[_i]; | |
| 4566 | - setOneMutably(entity, state); | |
| 4567 | - } | |
| 4568 | - } | |
| 4569 | - function setAllMutably(newEntities, state) { | |
| 4570 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4571 | - state.ids = []; | |
| 4572 | - state.entities = {}; | |
| 4573 | - addManyMutably(newEntities, state); | |
| 4574 | - } | |
| 4575 | - function removeOneMutably(key, state) { | |
| 4576 | - return removeManyMutably([key], state); | |
| 4577 | - } | |
| 4578 | - function removeManyMutably(keys, state) { | |
| 4579 | - var didMutate = false; | |
| 4580 | - keys.forEach(function (key) { | |
| 4581 | - if (key in state.entities) { | |
| 4582 | - delete state.entities[key]; | |
| 4583 | - didMutate = true; | |
| 4584 | - } | |
| 4585 | - }); | |
| 4586 | - if (didMutate) { | |
| 4587 | - state.ids = state.ids.filter(function (id) { return id in state.entities; }); | |
| 4588 | - } | |
| 4589 | - } | |
| 4590 | - function removeAllMutably(state) { | |
| 4591 | - Object.assign(state, { | |
| 4592 | - ids: [], | |
| 4593 | - entities: {} | |
| 4594 | - }); | |
| 4595 | - } | |
| 4596 | - function takeNewKey(keys, update, state) { | |
| 4597 | - var original2 = state.entities[update.id]; | |
| 4598 | - var updated = Object.assign({}, original2, update.changes); | |
| 4599 | - var newKey = selectIdValue(updated, selectId); | |
| 4600 | - var hasNewKey = newKey !== update.id; | |
| 4601 | - if (hasNewKey) { | |
| 4602 | - keys[update.id] = newKey; | |
| 4603 | - delete state.entities[update.id]; | |
| 4604 | - } | |
| 4605 | - state.entities[newKey] = updated; | |
| 4606 | - return hasNewKey; | |
| 4607 | - } | |
| 4608 | - function updateOneMutably(update, state) { | |
| 4609 | - return updateManyMutably([update], state); | |
| 4610 | - } | |
| 4611 | - function updateManyMutably(updates, state) { | |
| 4612 | - var newKeys = {}; | |
| 4613 | - var updatesPerEntity = {}; | |
| 4614 | - updates.forEach(function (update) { | |
| 4615 | - if (update.id in state.entities) { | |
| 4616 | - updatesPerEntity[update.id] = { | |
| 4617 | - id: update.id, | |
| 4618 | - changes: __spreadValues(__spreadValues({}, updatesPerEntity[update.id] ? updatesPerEntity[update.id].changes : null), update.changes) | |
| 4619 | - }; | |
| 4620 | - } | |
| 4621 | - }); | |
| 4622 | - updates = Object.values(updatesPerEntity); | |
| 4623 | - var didMutateEntities = updates.length > 0; | |
| 4624 | - if (didMutateEntities) { | |
| 4625 | - var didMutateIds = updates.filter(function (update) { return takeNewKey(newKeys, update, state); }).length > 0; | |
| 4626 | - if (didMutateIds) { | |
| 4627 | - state.ids = Object.keys(state.entities); | |
| 4628 | - } | |
| 4629 | - } | |
| 4630 | - } | |
| 4631 | - function upsertOneMutably(entity, state) { | |
| 4632 | - return upsertManyMutably([entity], state); | |
| 4633 | - } | |
| 4634 | - function upsertManyMutably(newEntities, state) { | |
| 4635 | - var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1]; | |
| 4636 | - updateManyMutably(updated, state); | |
| 4637 | - addManyMutably(added, state); | |
| 4638 | - } | |
| 4639 | - return { | |
| 4640 | - removeAll: createSingleArgumentStateOperator(removeAllMutably), | |
| 4641 | - addOne: createStateOperator(addOneMutably), | |
| 4642 | - addMany: createStateOperator(addManyMutably), | |
| 4643 | - setOne: createStateOperator(setOneMutably), | |
| 4644 | - setMany: createStateOperator(setManyMutably), | |
| 4645 | - setAll: createStateOperator(setAllMutably), | |
| 4646 | - updateOne: createStateOperator(updateOneMutably), | |
| 4647 | - updateMany: createStateOperator(updateManyMutably), | |
| 4648 | - upsertOne: createStateOperator(upsertOneMutably), | |
| 4649 | - upsertMany: createStateOperator(upsertManyMutably), | |
| 4650 | - removeOne: createStateOperator(removeOneMutably), | |
| 4651 | - removeMany: createStateOperator(removeManyMutably) | |
| 4652 | - }; | |
| 4653 | -} | |
| 4654 | -// src/entities/sorted_state_adapter.ts | |
| 4655 | -function createSortedStateAdapter(selectId, sort) { | |
| 4656 | - var _c = createUnsortedStateAdapter(selectId), removeOne = _c.removeOne, removeMany = _c.removeMany, removeAll = _c.removeAll; | |
| 4657 | - function addOneMutably(entity, state) { | |
| 4658 | - return addManyMutably([entity], state); | |
| 4659 | - } | |
| 4660 | - function addManyMutably(newEntities, state) { | |
| 4661 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4662 | - var models = newEntities.filter(function (model) { return !(selectIdValue(model, selectId) in state.entities); }); | |
| 4663 | - if (models.length !== 0) { | |
| 4664 | - merge(models, state); | |
| 4665 | - } | |
| 4666 | - } | |
| 4667 | - function setOneMutably(entity, state) { | |
| 4668 | - return setManyMutably([entity], state); | |
| 4669 | - } | |
| 4670 | - function setManyMutably(newEntities, state) { | |
| 4671 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4672 | - if (newEntities.length !== 0) { | |
| 4673 | - merge(newEntities, state); | |
| 4674 | - } | |
| 4675 | - } | |
| 4676 | - function setAllMutably(newEntities, state) { | |
| 4677 | - newEntities = ensureEntitiesArray(newEntities); | |
| 4678 | - state.entities = {}; | |
| 4679 | - state.ids = []; | |
| 4680 | - addManyMutably(newEntities, state); | |
| 4681 | - } | |
| 4682 | - function updateOneMutably(update, state) { | |
| 4683 | - return updateManyMutably([update], state); | |
| 4684 | - } | |
| 4685 | - function updateManyMutably(updates, state) { | |
| 4686 | - var appliedUpdates = false; | |
| 4687 | - for (var _i = 0, updates_1 = updates; _i < updates_1.length; _i++) { | |
| 4688 | - var update = updates_1[_i]; | |
| 4689 | - var entity = state.entities[update.id]; | |
| 4690 | - if (!entity) { | |
| 4691 | - continue; | |
| 4692 | - } | |
| 4693 | - appliedUpdates = true; | |
| 4694 | - Object.assign(entity, update.changes); | |
| 4695 | - var newId = selectId(entity); | |
| 4696 | - if (update.id !== newId) { | |
| 4697 | - delete state.entities[update.id]; | |
| 4698 | - state.entities[newId] = entity; | |
| 4699 | - } | |
| 4700 | - } | |
| 4701 | - if (appliedUpdates) { | |
| 4702 | - resortEntities(state); | |
| 4703 | - } | |
| 4704 | - } | |
| 4705 | - function upsertOneMutably(entity, state) { | |
| 4706 | - return upsertManyMutably([entity], state); | |
| 4707 | - } | |
| 4708 | - function upsertManyMutably(newEntities, state) { | |
| 4709 | - var _c = splitAddedUpdatedEntities(newEntities, selectId, state), added = _c[0], updated = _c[1]; | |
| 4710 | - updateManyMutably(updated, state); | |
| 4711 | - addManyMutably(added, state); | |
| 4712 | - } | |
| 4713 | - function areArraysEqual(a, b) { | |
| 4714 | - if (a.length !== b.length) { | |
| 4715 | - return false; | |
| 4716 | - } | |
| 4717 | - for (var i = 0; i < a.length && i < b.length; i++) { | |
| 4718 | - if (a[i] === b[i]) { | |
| 4719 | - continue; | |
| 4720 | - } | |
| 4721 | - return false; | |
| 4722 | - } | |
| 4723 | - return true; | |
| 4724 | - } | |
| 4725 | - function merge(models, state) { | |
| 4726 | - models.forEach(function (model) { | |
| 4727 | - state.entities[selectId(model)] = model; | |
| 4728 | - }); | |
| 4729 | - resortEntities(state); | |
| 4730 | - } | |
| 4731 | - function resortEntities(state) { | |
| 4732 | - var allEntities = Object.values(state.entities); | |
| 4733 | - allEntities.sort(sort); | |
| 4734 | - var newSortedIds = allEntities.map(selectId); | |
| 4735 | - var ids = state.ids; | |
| 4736 | - if (!areArraysEqual(ids, newSortedIds)) { | |
| 4737 | - state.ids = newSortedIds; | |
| 4738 | - } | |
| 4739 | - } | |
| 4740 | - return { | |
| 4741 | - removeOne: removeOne, | |
| 4742 | - removeMany: removeMany, | |
| 4743 | - removeAll: removeAll, | |
| 4744 | - addOne: createStateOperator(addOneMutably), | |
| 4745 | - updateOne: createStateOperator(updateOneMutably), | |
| 4746 | - upsertOne: createStateOperator(upsertOneMutably), | |
| 4747 | - setOne: createStateOperator(setOneMutably), | |
| 4748 | - setMany: createStateOperator(setManyMutably), | |
| 4749 | - setAll: createStateOperator(setAllMutably), | |
| 4750 | - addMany: createStateOperator(addManyMutably), | |
| 4751 | - updateMany: createStateOperator(updateManyMutably), | |
| 4752 | - upsertMany: createStateOperator(upsertManyMutably) | |
| 4753 | - }; | |
| 4754 | -} | |
| 4755 | -// src/entities/create_adapter.ts | |
| 4756 | -function createEntityAdapter(options) { | |
| 4757 | - if (options === void 0) { options = {}; } | |
| 4758 | - var _c = __spreadValues({ | |
| 4759 | - sortComparer: false, | |
| 4760 | - selectId: function (instance) { return instance.id; } | |
| 4761 | - }, options), selectId = _c.selectId, sortComparer = _c.sortComparer; | |
| 4762 | - var stateFactory = createInitialStateFactory(); | |
| 4763 | - var selectorsFactory = createSelectorsFactory(); | |
| 4764 | - var stateAdapter = sortComparer ? createSortedStateAdapter(selectId, sortComparer) : createUnsortedStateAdapter(selectId); | |
| 4765 | - return __spreadValues(__spreadValues(__spreadValues({ | |
| 4766 | - selectId: selectId, | |
| 4767 | - sortComparer: sortComparer | |
| 4768 | - }, stateFactory), selectorsFactory), stateAdapter); | |
| 4769 | -} | |
| 4770 | -// src/nanoid.ts | |
| 4771 | -var urlAlphabet = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"; | |
| 4772 | -var nanoid = function (size) { | |
| 4773 | - if (size === void 0) { size = 21; } | |
| 4774 | - var id = ""; | |
| 4775 | - var i = size; | |
| 4776 | - while (i--) { | |
| 4777 | - id += urlAlphabet[Math.random() * 64 | 0]; | |
| 4778 | - } | |
| 4779 | - return id; | |
| 4780 | -}; | |
| 4781 | -// src/createAsyncThunk.ts | |
| 4782 | -var commonProperties = [ | |
| 4783 | - "name", | |
| 4784 | - "message", | |
| 4785 | - "stack", | |
| 4786 | - "code" | |
| 4787 | -]; | |
| 4788 | -var RejectWithValue = /** @class */ (function () { | |
| 4789 | - function RejectWithValue(payload, meta) { | |
| 4790 | - this.payload = payload; | |
| 4791 | - this.meta = meta; | |
| 4792 | - } | |
| 4793 | - return RejectWithValue; | |
| 4794 | -}()); | |
| 4795 | -var FulfillWithMeta = /** @class */ (function () { | |
| 4796 | - function FulfillWithMeta(payload, meta) { | |
| 4797 | - this.payload = payload; | |
| 4798 | - this.meta = meta; | |
| 4799 | - } | |
| 4800 | - return FulfillWithMeta; | |
| 4801 | -}()); | |
| 4802 | -var miniSerializeError = function (value) { | |
| 4803 | - if (typeof value === "object" && value !== null) { | |
| 4804 | - var simpleError = {}; | |
| 4805 | - for (var _i = 0, commonProperties_1 = commonProperties; _i < commonProperties_1.length; _i++) { | |
| 4806 | - var property = commonProperties_1[_i]; | |
| 4807 | - if (typeof value[property] === "string") { | |
| 4808 | - simpleError[property] = value[property]; | |
| 4809 | - } | |
| 4810 | - } | |
| 4811 | - return simpleError; | |
| 4812 | - } | |
| 4813 | - return { message: String(value) }; | |
| 4814 | -}; | |
| 4815 | -var createAsyncThunk = (function () { | |
| 4816 | - function createAsyncThunk2(typePrefix, payloadCreator, options) { | |
| 4817 | - var fulfilled = createAction(typePrefix + "/fulfilled", function (payload, requestId, arg, meta) { return ({ | |
| 4818 | - payload: payload, | |
| 4819 | - meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 4820 | - arg: arg, | |
| 4821 | - requestId: requestId, | |
| 4822 | - requestStatus: "fulfilled" | |
| 4823 | - }) | |
| 4824 | - }); }); | |
| 4825 | - var pending = createAction(typePrefix + "/pending", function (requestId, arg, meta) { return ({ | |
| 4826 | - payload: void 0, | |
| 4827 | - meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 4828 | - arg: arg, | |
| 4829 | - requestId: requestId, | |
| 4830 | - requestStatus: "pending" | |
| 4831 | - }) | |
| 4832 | - }); }); | |
| 4833 | - var rejected = createAction(typePrefix + "/rejected", function (error, requestId, arg, payload, meta) { return ({ | |
| 4834 | - payload: payload, | |
| 4835 | - error: (options && options.serializeError || miniSerializeError)(error || "Rejected"), | |
| 4836 | - meta: __spreadProps(__spreadValues({}, meta || {}), { | |
| 4837 | - arg: arg, | |
| 4838 | - requestId: requestId, | |
| 4839 | - rejectedWithValue: !!payload, | |
| 4840 | - requestStatus: "rejected", | |
| 4841 | - aborted: (error == null ? void 0 : error.name) === "AbortError", | |
| 4842 | - condition: (error == null ? void 0 : error.name) === "ConditionError" | |
| 4843 | - }) | |
| 4844 | - }); }); | |
| 4845 | - var displayedWarning = false; | |
| 4846 | - var AC = typeof AbortController !== "undefined" ? AbortController : /** @class */ (function () { | |
| 4847 | - function class_1() { | |
| 4848 | - this.signal = { | |
| 4849 | - aborted: false, | |
| 4850 | - addEventListener: function () { | |
| 4851 | - }, | |
| 4852 | - dispatchEvent: function () { | |
| 4853 | - return false; | |
| 4854 | - }, | |
| 4855 | - onabort: function () { | |
| 4856 | - }, | |
| 4857 | - removeEventListener: function () { | |
| 4858 | - }, | |
| 4859 | - reason: void 0, | |
| 4860 | - throwIfAborted: function () { | |
| 4861 | - } | |
| 4862 | - }; | |
| 4863 | - } | |
| 4864 | - class_1.prototype.abort = function () { | |
| 4865 | - if (true) { | |
| 4866 | - if (!displayedWarning) { | |
| 4867 | - displayedWarning = true; | |
| 4868 | - console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'."); | |
| 4869 | - } | |
| 4870 | - } | |
| 4871 | - }; | |
| 4872 | - return class_1; | |
| 4873 | - }()); | |
| 4874 | - function actionCreator(arg) { | |
| 4875 | - return function (dispatch, getState, extra) { | |
| 4876 | - var requestId = (options == null ? void 0 : options.idGenerator) ? options.idGenerator(arg) : nanoid(); | |
| 4877 | - var abortController = new AC(); | |
| 4878 | - var abortReason; | |
| 4879 | - var started = false; | |
| 4880 | - function abort(reason) { | |
| 4881 | - abortReason = reason; | |
| 4882 | - abortController.abort(); | |
| 4883 | - } | |
| 4884 | - var promise2 = function () { | |
| 4885 | - return __async(this, null, function () { | |
| 4886 | - var _a, _b, finalAction, conditionResult, abortedPromise, err_1, skipDispatch; | |
| 4887 | - return __generator(this, function (_c) { | |
| 4888 | - switch (_c.label) { | |
| 4889 | - case 0: | |
| 4890 | - _c.trys.push([0, 4, , 5]); | |
| 4891 | - conditionResult = (_a = options == null ? void 0 : options.condition) == null ? void 0 : _a.call(options, arg, { getState: getState, extra: extra }); | |
| 4892 | - if (!isThenable(conditionResult)) return [3 /*break*/, 2]; | |
| 4893 | - return [4 /*yield*/, conditionResult]; | |
| 4894 | - case 1: | |
| 4895 | - conditionResult = _c.sent(); | |
| 4896 | - _c.label = 2; | |
| 4897 | - case 2: | |
| 4898 | - if (conditionResult === false || abortController.signal.aborted) { | |
| 4899 | - throw { | |
| 4900 | - name: "ConditionError", | |
| 4901 | - message: "Aborted due to condition callback returning false." | |
| 4902 | - }; | |
| 4903 | - } | |
| 4904 | - started = true; | |
| 4905 | - abortedPromise = new Promise(function (_, reject) { return abortController.signal.addEventListener("abort", function () { return reject({ | |
| 4906 | - name: "AbortError", | |
| 4907 | - message: abortReason || "Aborted" | |
| 4908 | - }); }); }); | |
| 4909 | - dispatch(pending(requestId, arg, (_b = options == null ? void 0 : options.getPendingMeta) == null ? void 0 : _b.call(options, { requestId: requestId, arg: arg }, { getState: getState, extra: extra }))); | |
| 4910 | - return [4 /*yield*/, Promise.race([ | |
| 4911 | - abortedPromise, | |
| 4912 | - Promise.resolve(payloadCreator(arg, { | |
| 4913 | - dispatch: dispatch, | |
| 4914 | - getState: getState, | |
| 4915 | - extra: extra, | |
| 4916 | - requestId: requestId, | |
| 4917 | - signal: abortController.signal, | |
| 4918 | - abort: abort, | |
| 4919 | - rejectWithValue: function (value, meta) { | |
| 4920 | - return new RejectWithValue(value, meta); | |
| 4921 | - }, | |
| 4922 | - fulfillWithValue: function (value, meta) { | |
| 4923 | - return new FulfillWithMeta(value, meta); | |
| 4924 | - } | |
| 4925 | - })).then(function (result) { | |
| 4926 | - if (result instanceof RejectWithValue) { | |
| 4927 | - throw result; | |
| 4928 | - } | |
| 4929 | - if (result instanceof FulfillWithMeta) { | |
| 4930 | - return fulfilled(result.payload, requestId, arg, result.meta); | |
| 4931 | - } | |
| 4932 | - return fulfilled(result, requestId, arg); | |
| 4933 | - }) | |
| 4934 | - ])]; | |
| 4935 | - case 3: | |
| 4936 | - finalAction = _c.sent(); | |
| 4937 | - return [3 /*break*/, 5]; | |
| 4938 | - case 4: | |
| 4939 | - err_1 = _c.sent(); | |
| 4940 | - finalAction = err_1 instanceof RejectWithValue ? rejected(null, requestId, arg, err_1.payload, err_1.meta) : rejected(err_1, requestId, arg); | |
| 4941 | - return [3 /*break*/, 5]; | |
| 4942 | - case 5: | |
| 4943 | - skipDispatch = options && !options.dispatchConditionRejection && rejected.match(finalAction) && finalAction.meta.condition; | |
| 4944 | - if (!skipDispatch) { | |
| 4945 | - dispatch(finalAction); | |
| 4946 | - } | |
| 4947 | - return [2 /*return*/, finalAction]; | |
| 4948 | - } | |
| 4949 | - }); | |
| 4950 | - }); | |
| 4951 | - }(); | |
| 4952 | - return Object.assign(promise2, { | |
| 4953 | - abort: abort, | |
| 4954 | - requestId: requestId, | |
| 4955 | - arg: arg, | |
| 4956 | - unwrap: function () { | |
| 4957 | - return promise2.then(unwrapResult); | |
| 4958 | - } | |
| 4959 | - }); | |
| 4960 | - }; | |
| 4961 | - } | |
| 4962 | - return Object.assign(actionCreator, { | |
| 4963 | - pending: pending, | |
| 4964 | - rejected: rejected, | |
| 4965 | - fulfilled: fulfilled, | |
| 4966 | - typePrefix: typePrefix | |
| 4967 | - }); | |
| 4968 | - } | |
| 4969 | - createAsyncThunk2.withTypes = function () { return createAsyncThunk2; }; | |
| 4970 | - return createAsyncThunk2; | |
| 4971 | -})(); | |
| 4972 | -function unwrapResult(action) { | |
| 4973 | - if (action.meta && action.meta.rejectedWithValue) { | |
| 4974 | - throw action.payload; | |
| 4975 | - } | |
| 4976 | - if (action.error) { | |
| 4977 | - throw action.error; | |
| 4978 | - } | |
| 4979 | - return action.payload; | |
| 4980 | -} | |
| 4981 | -function isThenable(value) { | |
| 4982 | - return value !== null && typeof value === "object" && typeof value.then === "function"; | |
| 4983 | -} | |
| 4984 | -// src/matchers.ts | |
| 4985 | -var matches = function (matcher, action) { | |
| 4986 | - if (hasMatchFunction(matcher)) { | |
| 4987 | - return matcher.match(action); | |
| 4988 | - } | |
| 4989 | - else { | |
| 4990 | - return matcher(action); | |
| 4991 | - } | |
| 4992 | -}; | |
| 4993 | -function isAnyOf() { | |
| 4994 | - var matchers = []; | |
| 4995 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 4996 | - matchers[_i] = arguments[_i]; | |
| 4997 | - } | |
| 4998 | - return function (action) { | |
| 4999 | - return matchers.some(function (matcher) { return matches(matcher, action); }); | |
| 5000 | - }; | |
| 5001 | -} | |
| 5002 | -function isAllOf() { | |
| 5003 | - var matchers = []; | |
| 5004 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5005 | - matchers[_i] = arguments[_i]; | |
| 5006 | - } | |
| 5007 | - return function (action) { | |
| 5008 | - return matchers.every(function (matcher) { return matches(matcher, action); }); | |
| 5009 | - }; | |
| 5010 | -} | |
| 5011 | -function hasExpectedRequestMetadata(action, validStatus) { | |
| 5012 | - if (!action || !action.meta) | |
| 5013 | - return false; | |
| 5014 | - var hasValidRequestId = typeof action.meta.requestId === "string"; | |
| 5015 | - var hasValidRequestStatus = validStatus.indexOf(action.meta.requestStatus) > -1; | |
| 5016 | - return hasValidRequestId && hasValidRequestStatus; | |
| 5017 | -} | |
| 5018 | -function isAsyncThunkArray(a) { | |
| 5019 | - return typeof a[0] === "function" && "pending" in a[0] && "fulfilled" in a[0] && "rejected" in a[0]; | |
| 5020 | -} | |
| 5021 | -function isPending() { | |
| 5022 | - var asyncThunks = []; | |
| 5023 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5024 | - asyncThunks[_i] = arguments[_i]; | |
| 5025 | - } | |
| 5026 | - if (asyncThunks.length === 0) { | |
| 5027 | - return function (action) { return hasExpectedRequestMetadata(action, ["pending"]); }; | |
| 5028 | - } | |
| 5029 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5030 | - return isPending()(asyncThunks[0]); | |
| 5031 | - } | |
| 5032 | - return function (action) { | |
| 5033 | - var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.pending; }); | |
| 5034 | - var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 5035 | - return combinedMatcher(action); | |
| 5036 | - }; | |
| 5037 | -} | |
| 5038 | -function isRejected() { | |
| 5039 | - var asyncThunks = []; | |
| 5040 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5041 | - asyncThunks[_i] = arguments[_i]; | |
| 5042 | - } | |
| 5043 | - if (asyncThunks.length === 0) { | |
| 5044 | - return function (action) { return hasExpectedRequestMetadata(action, ["rejected"]); }; | |
| 5045 | - } | |
| 5046 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5047 | - return isRejected()(asyncThunks[0]); | |
| 5048 | - } | |
| 5049 | - return function (action) { | |
| 5050 | - var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.rejected; }); | |
| 5051 | - var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 5052 | - return combinedMatcher(action); | |
| 5053 | - }; | |
| 5054 | -} | |
| 5055 | -function isRejectedWithValue() { | |
| 5056 | - var asyncThunks = []; | |
| 5057 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5058 | - asyncThunks[_i] = arguments[_i]; | |
| 5059 | - } | |
| 5060 | - var hasFlag = function (action) { | |
| 5061 | - return action && action.meta && action.meta.rejectedWithValue; | |
| 5062 | - }; | |
| 5063 | - if (asyncThunks.length === 0) { | |
| 5064 | - return function (action) { | |
| 5065 | - var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 5066 | - return combinedMatcher(action); | |
| 5067 | - }; | |
| 5068 | - } | |
| 5069 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5070 | - return isRejectedWithValue()(asyncThunks[0]); | |
| 5071 | - } | |
| 5072 | - return function (action) { | |
| 5073 | - var combinedMatcher = isAllOf(isRejected.apply(void 0, asyncThunks), hasFlag); | |
| 5074 | - return combinedMatcher(action); | |
| 5075 | - }; | |
| 5076 | -} | |
| 5077 | -function isFulfilled() { | |
| 5078 | - var asyncThunks = []; | |
| 5079 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5080 | - asyncThunks[_i] = arguments[_i]; | |
| 5081 | - } | |
| 5082 | - if (asyncThunks.length === 0) { | |
| 5083 | - return function (action) { return hasExpectedRequestMetadata(action, ["fulfilled"]); }; | |
| 5084 | - } | |
| 5085 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5086 | - return isFulfilled()(asyncThunks[0]); | |
| 5087 | - } | |
| 5088 | - return function (action) { | |
| 5089 | - var matchers = asyncThunks.map(function (asyncThunk) { return asyncThunk.fulfilled; }); | |
| 5090 | - var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 5091 | - return combinedMatcher(action); | |
| 5092 | - }; | |
| 5093 | -} | |
| 5094 | -function isAsyncThunkAction() { | |
| 5095 | - var asyncThunks = []; | |
| 5096 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5097 | - asyncThunks[_i] = arguments[_i]; | |
| 5098 | - } | |
| 5099 | - if (asyncThunks.length === 0) { | |
| 5100 | - return function (action) { return hasExpectedRequestMetadata(action, ["pending", "fulfilled", "rejected"]); }; | |
| 5101 | - } | |
| 5102 | - if (!isAsyncThunkArray(asyncThunks)) { | |
| 5103 | - return isAsyncThunkAction()(asyncThunks[0]); | |
| 5104 | - } | |
| 5105 | - return function (action) { | |
| 5106 | - var matchers = []; | |
| 5107 | - for (var _i = 0, asyncThunks_1 = asyncThunks; _i < asyncThunks_1.length; _i++) { | |
| 5108 | - var asyncThunk = asyncThunks_1[_i]; | |
| 5109 | - matchers.push(asyncThunk.pending, asyncThunk.rejected, asyncThunk.fulfilled); | |
| 5110 | - } | |
| 5111 | - var combinedMatcher = isAnyOf.apply(void 0, matchers); | |
| 5112 | - return combinedMatcher(action); | |
| 5113 | - }; | |
| 5114 | -} | |
| 5115 | -// src/listenerMiddleware/utils.ts | |
| 5116 | -var assertFunction = function (func, expected) { | |
| 5117 | - if (typeof func !== "function") { | |
| 5118 | - throw new TypeError(expected + " is not a function"); | |
| 5119 | - } | |
| 5120 | -}; | |
| 5121 | -var noop = function () { | |
| 5122 | -}; | |
| 5123 | -var catchRejection = function (promise2, onError) { | |
| 5124 | - if (onError === void 0) { onError = noop; } | |
| 5125 | - promise2.catch(onError); | |
| 5126 | - return promise2; | |
| 5127 | -}; | |
| 5128 | -var addAbortSignalListener = function (abortSignal, callback) { | |
| 5129 | - abortSignal.addEventListener("abort", callback, { once: true }); | |
| 5130 | - return function () { return abortSignal.removeEventListener("abort", callback); }; | |
| 5131 | -}; | |
| 5132 | -var abortControllerWithReason = function (abortController, reason) { | |
| 5133 | - var signal = abortController.signal; | |
| 5134 | - if (signal.aborted) { | |
| 5135 | - return; | |
| 5136 | - } | |
| 5137 | - if (!("reason" in signal)) { | |
| 5138 | - Object.defineProperty(signal, "reason", { | |
| 5139 | - enumerable: true, | |
| 5140 | - value: reason, | |
| 5141 | - configurable: true, | |
| 5142 | - writable: true | |
| 5143 | - }); | |
| 5144 | - } | |
| 5145 | - ; | |
| 5146 | - abortController.abort(reason); | |
| 5147 | -}; | |
| 5148 | -// src/listenerMiddleware/exceptions.ts | |
| 5149 | -var task = "task"; | |
| 5150 | -var listener = "listener"; | |
| 5151 | -var completed = "completed"; | |
| 5152 | -var cancelled = "cancelled"; | |
| 5153 | -var taskCancelled = "task-" + cancelled; | |
| 5154 | -var taskCompleted = "task-" + completed; | |
| 5155 | -var listenerCancelled = listener + "-" + cancelled; | |
| 5156 | -var listenerCompleted = listener + "-" + completed; | |
| 5157 | -var TaskAbortError = /** @class */ (function () { | |
| 5158 | - function TaskAbortError(code) { | |
| 5159 | - this.code = code; | |
| 5160 | - this.name = "TaskAbortError"; | |
| 5161 | - this.message = task + " " + cancelled + " (reason: " + code + ")"; | |
| 5162 | - } | |
| 5163 | - return TaskAbortError; | |
| 5164 | -}()); | |
| 5165 | -// src/listenerMiddleware/task.ts | |
| 5166 | -var validateActive = function (signal) { | |
| 5167 | - if (signal.aborted) { | |
| 5168 | - throw new TaskAbortError(signal.reason); | |
| 5169 | - } | |
| 5170 | -}; | |
| 5171 | -function raceWithSignal(signal, promise2) { | |
| 5172 | - var cleanup = noop; | |
| 5173 | - return new Promise(function (resolve, reject) { | |
| 5174 | - var notifyRejection = function () { return reject(new TaskAbortError(signal.reason)); }; | |
| 5175 | - if (signal.aborted) { | |
| 5176 | - notifyRejection(); | |
| 5177 | - return; | |
| 5178 | - } | |
| 5179 | - cleanup = addAbortSignalListener(signal, notifyRejection); | |
| 5180 | - promise2.finally(function () { return cleanup(); }).then(resolve, reject); | |
| 5181 | - }).finally(function () { | |
| 5182 | - cleanup = noop; | |
| 5183 | - }); | |
| 5184 | -} | |
| 5185 | -var runTask = function (task2, cleanUp) { return __async(void 0, null, function () { | |
| 5186 | - var value, error_1; | |
| 5187 | - return __generator(this, function (_c) { | |
| 5188 | - switch (_c.label) { | |
| 5189 | - case 0: | |
| 5190 | - _c.trys.push([0, 3, 4, 5]); | |
| 5191 | - return [4 /*yield*/, Promise.resolve()]; | |
| 5192 | - case 1: | |
| 5193 | - _c.sent(); | |
| 5194 | - return [4 /*yield*/, task2()]; | |
| 5195 | - case 2: | |
| 5196 | - value = _c.sent(); | |
| 5197 | - return [2 /*return*/, { | |
| 5198 | - status: "ok", | |
| 5199 | - value: value | |
| 5200 | - }]; | |
| 5201 | - case 3: | |
| 5202 | - error_1 = _c.sent(); | |
| 5203 | - return [2 /*return*/, { | |
| 5204 | - status: error_1 instanceof TaskAbortError ? "cancelled" : "rejected", | |
| 5205 | - error: error_1 | |
| 5206 | - }]; | |
| 5207 | - case 4: | |
| 5208 | - cleanUp == null ? void 0 : cleanUp(); | |
| 5209 | - return [7 /*endfinally*/]; | |
| 5210 | - case 5: return [2 /*return*/]; | |
| 5211 | - } | |
| 5212 | - }); | |
| 5213 | -}); }; | |
| 5214 | -var createPause = function (signal) { | |
| 5215 | - return function (promise2) { | |
| 5216 | - return catchRejection(raceWithSignal(signal, promise2).then(function (output) { | |
| 5217 | - validateActive(signal); | |
| 5218 | - return output; | |
| 5219 | - })); | |
| 5220 | - }; | |
| 5221 | -}; | |
| 5222 | -var createDelay = function (signal) { | |
| 5223 | - var pause = createPause(signal); | |
| 5224 | - return function (timeoutMs) { | |
| 5225 | - return pause(new Promise(function (resolve) { return setTimeout(resolve, timeoutMs); })); | |
| 5226 | - }; | |
| 5227 | -}; | |
| 5228 | -// src/listenerMiddleware/index.ts | |
| 5229 | -var assign = Object.assign; | |
| 5230 | -var INTERNAL_NIL_TOKEN = {}; | |
| 5231 | -var alm = "listenerMiddleware"; | |
| 5232 | -var createFork = function (parentAbortSignal, parentBlockingPromises) { | |
| 5233 | - var linkControllers = function (controller) { return addAbortSignalListener(parentAbortSignal, function () { return abortControllerWithReason(controller, parentAbortSignal.reason); }); }; | |
| 5234 | - return function (taskExecutor, opts) { | |
| 5235 | - assertFunction(taskExecutor, "taskExecutor"); | |
| 5236 | - var childAbortController = new AbortController(); | |
| 5237 | - linkControllers(childAbortController); | |
| 5238 | - var result = runTask(function () { return __async(void 0, null, function () { | |
| 5239 | - var result2; | |
| 5240 | - return __generator(this, function (_c) { | |
| 5241 | - switch (_c.label) { | |
| 5242 | - case 0: | |
| 5243 | - validateActive(parentAbortSignal); | |
| 5244 | - validateActive(childAbortController.signal); | |
| 5245 | - return [4 /*yield*/, taskExecutor({ | |
| 5246 | - pause: createPause(childAbortController.signal), | |
| 5247 | - delay: createDelay(childAbortController.signal), | |
| 5248 | - signal: childAbortController.signal | |
| 5249 | - })]; | |
| 5250 | - case 1: | |
| 5251 | - result2 = _c.sent(); | |
| 5252 | - validateActive(childAbortController.signal); | |
| 5253 | - return [2 /*return*/, result2]; | |
| 5254 | - } | |
| 5255 | - }); | |
| 5256 | - }); }, function () { return abortControllerWithReason(childAbortController, taskCompleted); }); | |
| 5257 | - if (opts == null ? void 0 : opts.autoJoin) { | |
| 5258 | - parentBlockingPromises.push(result); | |
| 5259 | - } | |
| 5260 | - return { | |
| 5261 | - result: createPause(parentAbortSignal)(result), | |
| 5262 | - cancel: function () { | |
| 5263 | - abortControllerWithReason(childAbortController, taskCancelled); | |
| 5264 | - } | |
| 5265 | - }; | |
| 5266 | - }; | |
| 5267 | -}; | |
| 5268 | -var createTakePattern = function (startListening, signal) { | |
| 5269 | - var take = function (predicate, timeout) { return __async(void 0, null, function () { | |
| 5270 | - var unsubscribe, tuplePromise, promises, output; | |
| 5271 | - return __generator(this, function (_c) { | |
| 5272 | - switch (_c.label) { | |
| 5273 | - case 0: | |
| 5274 | - validateActive(signal); | |
| 5275 | - unsubscribe = function () { | |
| 5276 | - }; | |
| 5277 | - tuplePromise = new Promise(function (resolve, reject) { | |
| 5278 | - var stopListening = startListening({ | |
| 5279 | - predicate: predicate, | |
| 5280 | - effect: function (action, listenerApi) { | |
| 5281 | - listenerApi.unsubscribe(); | |
| 5282 | - resolve([ | |
| 5283 | - action, | |
| 5284 | - listenerApi.getState(), | |
| 5285 | - listenerApi.getOriginalState() | |
| 5286 | - ]); | |
| 5287 | - } | |
| 5288 | - }); | |
| 5289 | - unsubscribe = function () { | |
| 5290 | - stopListening(); | |
| 5291 | - reject(); | |
| 5292 | - }; | |
| 5293 | - }); | |
| 5294 | - promises = [ | |
| 5295 | - tuplePromise | |
| 5296 | - ]; | |
| 5297 | - if (timeout != null) { | |
| 5298 | - promises.push(new Promise(function (resolve) { return setTimeout(resolve, timeout, null); })); | |
| 5299 | - } | |
| 5300 | - _c.label = 1; | |
| 5301 | - case 1: | |
| 5302 | - _c.trys.push([1, , 3, 4]); | |
| 5303 | - return [4 /*yield*/, raceWithSignal(signal, Promise.race(promises))]; | |
| 5304 | - case 2: | |
| 5305 | - output = _c.sent(); | |
| 5306 | - validateActive(signal); | |
| 5307 | - return [2 /*return*/, output]; | |
| 5308 | - case 3: | |
| 5309 | - unsubscribe(); | |
| 5310 | - return [7 /*endfinally*/]; | |
| 5311 | - case 4: return [2 /*return*/]; | |
| 5312 | - } | |
| 5313 | - }); | |
| 5314 | - }); }; | |
| 5315 | - return function (predicate, timeout) { return catchRejection(take(predicate, timeout)); }; | |
| 5316 | -}; | |
| 5317 | -var getListenerEntryPropsFrom = function (options) { | |
| 5318 | - var type = options.type, actionCreator = options.actionCreator, matcher = options.matcher, predicate = options.predicate, effect = options.effect; | |
| 5319 | - if (type) { | |
| 5320 | - predicate = createAction(type).match; | |
| 5321 | - } | |
| 5322 | - else if (actionCreator) { | |
| 5323 | - type = actionCreator.type; | |
| 5324 | - predicate = actionCreator.match; | |
| 5325 | - } | |
| 5326 | - else if (matcher) { | |
| 5327 | - predicate = matcher; | |
| 5328 | - } | |
| 5329 | - else if (predicate) { | |
| 5330 | - } | |
| 5331 | - else { | |
| 5332 | - throw new Error("Creating or removing a listener requires one of the known fields for matching an action"); | |
| 5333 | - } | |
| 5334 | - assertFunction(effect, "options.listener"); | |
| 5335 | - return { predicate: predicate, type: type, effect: effect }; | |
| 5336 | -}; | |
| 5337 | -var createListenerEntry = function (options) { | |
| 5338 | - var _c = getListenerEntryPropsFrom(options), type = _c.type, predicate = _c.predicate, effect = _c.effect; | |
| 5339 | - var id = nanoid(); | |
| 5340 | - var entry = { | |
| 5341 | - id: id, | |
| 5342 | - effect: effect, | |
| 5343 | - type: type, | |
| 5344 | - predicate: predicate, | |
| 5345 | - pending: new Set(), | |
| 5346 | - unsubscribe: function () { | |
| 5347 | - throw new Error("Unsubscribe not initialized"); | |
| 5348 | - } | |
| 5349 | - }; | |
| 5350 | - return entry; | |
| 5351 | -}; | |
| 5352 | -var cancelActiveListeners = function (entry) { | |
| 5353 | - entry.pending.forEach(function (controller) { | |
| 5354 | - abortControllerWithReason(controller, listenerCancelled); | |
| 5355 | - }); | |
| 5356 | -}; | |
| 5357 | -var createClearListenerMiddleware = function (listenerMap) { | |
| 5358 | - return function () { | |
| 5359 | - listenerMap.forEach(cancelActiveListeners); | |
| 5360 | - listenerMap.clear(); | |
| 5361 | - }; | |
| 5362 | -}; | |
| 5363 | -var safelyNotifyError = function (errorHandler, errorToNotify, errorInfo) { | |
| 5364 | - try { | |
| 5365 | - errorHandler(errorToNotify, errorInfo); | |
| 5366 | - } | |
| 5367 | - catch (errorHandlerError) { | |
| 5368 | - setTimeout(function () { | |
| 5369 | - throw errorHandlerError; | |
| 5370 | - }, 0); | |
| 5371 | - } | |
| 5372 | -}; | |
| 5373 | -var addListener = createAction(alm + "/add"); | |
| 5374 | -var clearAllListeners = createAction(alm + "/removeAll"); | |
| 5375 | -var removeListener = createAction(alm + "/remove"); | |
| 5376 | -var defaultErrorHandler = function () { | |
| 5377 | - var args = []; | |
| 5378 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5379 | - args[_i] = arguments[_i]; | |
| 5380 | - } | |
| 5381 | - console.error.apply(console, __spreadArray([alm + "/error"], args)); | |
| 5382 | -}; | |
| 5383 | -function createListenerMiddleware(middlewareOptions) { | |
| 5384 | - var _this = this; | |
| 5385 | - if (middlewareOptions === void 0) { middlewareOptions = {}; } | |
| 5386 | - var listenerMap = new Map(); | |
| 5387 | - var extra = middlewareOptions.extra, _c = middlewareOptions.onError, onError = _c === void 0 ? defaultErrorHandler : _c; | |
| 5388 | - assertFunction(onError, "onError"); | |
| 5389 | - var insertEntry = function (entry) { | |
| 5390 | - entry.unsubscribe = function () { return listenerMap.delete(entry.id); }; | |
| 5391 | - listenerMap.set(entry.id, entry); | |
| 5392 | - return function (cancelOptions) { | |
| 5393 | - entry.unsubscribe(); | |
| 5394 | - if (cancelOptions == null ? void 0 : cancelOptions.cancelActive) { | |
| 5395 | - cancelActiveListeners(entry); | |
| 5396 | - } | |
| 5397 | - }; | |
| 5398 | - }; | |
| 5399 | - var findListenerEntry = function (comparator) { | |
| 5400 | - for (var _i = 0, _c = Array.from(listenerMap.values()); _i < _c.length; _i++) { | |
| 5401 | - var entry = _c[_i]; | |
| 5402 | - if (comparator(entry)) { | |
| 5403 | - return entry; | |
| 5404 | - } | |
| 5405 | - } | |
| 5406 | - return void 0; | |
| 5407 | - }; | |
| 5408 | - var startListening = function (options) { | |
| 5409 | - var entry = findListenerEntry(function (existingEntry) { return existingEntry.effect === options.effect; }); | |
| 5410 | - if (!entry) { | |
| 5411 | - entry = createListenerEntry(options); | |
| 5412 | - } | |
| 5413 | - return insertEntry(entry); | |
| 5414 | - }; | |
| 5415 | - var stopListening = function (options) { | |
| 5416 | - var _c = getListenerEntryPropsFrom(options), type = _c.type, effect = _c.effect, predicate = _c.predicate; | |
| 5417 | - var entry = findListenerEntry(function (entry2) { | |
| 5418 | - var matchPredicateOrType = typeof type === "string" ? entry2.type === type : entry2.predicate === predicate; | |
| 5419 | - return matchPredicateOrType && entry2.effect === effect; | |
| 5420 | - }); | |
| 5421 | - if (entry) { | |
| 5422 | - entry.unsubscribe(); | |
| 5423 | - if (options.cancelActive) { | |
| 5424 | - cancelActiveListeners(entry); | |
| 5425 | - } | |
| 5426 | - } | |
| 5427 | - return !!entry; | |
| 5428 | - }; | |
| 5429 | - var notifyListener = function (entry, action, api, getOriginalState) { return __async(_this, null, function () { | |
| 5430 | - var internalTaskController, take, autoJoinPromises, listenerError_1; | |
| 5431 | - return __generator(this, function (_c) { | |
| 5432 | - switch (_c.label) { | |
| 5433 | - case 0: | |
| 5434 | - internalTaskController = new AbortController(); | |
| 5435 | - take = createTakePattern(startListening, internalTaskController.signal); | |
| 5436 | - autoJoinPromises = []; | |
| 5437 | - _c.label = 1; | |
| 5438 | - case 1: | |
| 5439 | - _c.trys.push([1, 3, 4, 6]); | |
| 5440 | - entry.pending.add(internalTaskController); | |
| 5441 | - return [4 /*yield*/, Promise.resolve(entry.effect(action, assign({}, api, { | |
| 5442 | - getOriginalState: getOriginalState, | |
| 5443 | - condition: function (predicate, timeout) { return take(predicate, timeout).then(Boolean); }, | |
| 5444 | - take: take, | |
| 5445 | - delay: createDelay(internalTaskController.signal), | |
| 5446 | - pause: createPause(internalTaskController.signal), | |
| 5447 | - extra: extra, | |
| 5448 | - signal: internalTaskController.signal, | |
| 5449 | - fork: createFork(internalTaskController.signal, autoJoinPromises), | |
| 5450 | - unsubscribe: entry.unsubscribe, | |
| 5451 | - subscribe: function () { | |
| 5452 | - listenerMap.set(entry.id, entry); | |
| 5453 | - }, | |
| 5454 | - cancelActiveListeners: function () { | |
| 5455 | - entry.pending.forEach(function (controller, _, set) { | |
| 5456 | - if (controller !== internalTaskController) { | |
| 5457 | - abortControllerWithReason(controller, listenerCancelled); | |
| 5458 | - set.delete(controller); | |
| 5459 | - } | |
| 5460 | - }); | |
| 5461 | - } | |
| 5462 | - })))]; | |
| 5463 | - case 2: | |
| 5464 | - _c.sent(); | |
| 5465 | - return [3 /*break*/, 6]; | |
| 5466 | - case 3: | |
| 5467 | - listenerError_1 = _c.sent(); | |
| 5468 | - if (!(listenerError_1 instanceof TaskAbortError)) { | |
| 5469 | - safelyNotifyError(onError, listenerError_1, { | |
| 5470 | - raisedBy: "effect" | |
| 5471 | - }); | |
| 5472 | - } | |
| 5473 | - return [3 /*break*/, 6]; | |
| 5474 | - case 4: return [4 /*yield*/, Promise.allSettled(autoJoinPromises)]; | |
| 5475 | - case 5: | |
| 5476 | - _c.sent(); | |
| 5477 | - abortControllerWithReason(internalTaskController, listenerCompleted); | |
| 5478 | - entry.pending.delete(internalTaskController); | |
| 5479 | - return [7 /*endfinally*/]; | |
| 5480 | - case 6: return [2 /*return*/]; | |
| 5481 | - } | |
| 5482 | - }); | |
| 5483 | - }); }; | |
| 5484 | - var clearListenerMiddleware = createClearListenerMiddleware(listenerMap); | |
| 5485 | - var middleware = function (api) { return function (next) { return function (action) { | |
| 5486 | - if (!isAction(action)) { | |
| 5487 | - return next(action); | |
| 5488 | - } | |
| 5489 | - if (addListener.match(action)) { | |
| 5490 | - return startListening(action.payload); | |
| 5491 | - } | |
| 5492 | - if (clearAllListeners.match(action)) { | |
| 5493 | - clearListenerMiddleware(); | |
| 5494 | - return; | |
| 5495 | - } | |
| 5496 | - if (removeListener.match(action)) { | |
| 5497 | - return stopListening(action.payload); | |
| 5498 | - } | |
| 5499 | - var originalState = api.getState(); | |
| 5500 | - var getOriginalState = function () { | |
| 5501 | - if (originalState === INTERNAL_NIL_TOKEN) { | |
| 5502 | - throw new Error(alm + ": getOriginalState can only be called synchronously"); | |
| 5503 | - } | |
| 5504 | - return originalState; | |
| 5505 | - }; | |
| 5506 | - var result; | |
| 5507 | - try { | |
| 5508 | - result = next(action); | |
| 5509 | - if (listenerMap.size > 0) { | |
| 5510 | - var currentState = api.getState(); | |
| 5511 | - var listenerEntries = Array.from(listenerMap.values()); | |
| 5512 | - for (var _i = 0, listenerEntries_1 = listenerEntries; _i < listenerEntries_1.length; _i++) { | |
| 5513 | - var entry = listenerEntries_1[_i]; | |
| 5514 | - var runListener = false; | |
| 5515 | - try { | |
| 5516 | - runListener = entry.predicate(action, currentState, originalState); | |
| 5517 | - } | |
| 5518 | - catch (predicateError) { | |
| 5519 | - runListener = false; | |
| 5520 | - safelyNotifyError(onError, predicateError, { | |
| 5521 | - raisedBy: "predicate" | |
| 5522 | - }); | |
| 5523 | - } | |
| 5524 | - if (!runListener) { | |
| 5525 | - continue; | |
| 5526 | - } | |
| 5527 | - notifyListener(entry, action, api, getOriginalState); | |
| 5528 | - } | |
| 5529 | - } | |
| 5530 | - } | |
| 5531 | - finally { | |
| 5532 | - originalState = INTERNAL_NIL_TOKEN; | |
| 5533 | - } | |
| 5534 | - return result; | |
| 5535 | - }; }; }; | |
| 5536 | - return { | |
| 5537 | - middleware: middleware, | |
| 5538 | - startListening: startListening, | |
| 5539 | - stopListening: stopListening, | |
| 5540 | - clearListeners: clearListenerMiddleware | |
| 5541 | - }; | |
| 5542 | -} | |
| 5543 | -// src/autoBatchEnhancer.ts | |
| 5544 | -var SHOULD_AUTOBATCH = "RTK_autoBatch"; | |
| 5545 | -var prepareAutoBatched = function () { return function (payload) { | |
| 5546 | - var _c; | |
| 5547 | - return ({ | |
| 5548 | - payload: payload, | |
| 5549 | - meta: (_c = {}, _c[SHOULD_AUTOBATCH] = true, _c) | |
| 5550 | - }); | |
| 5551 | -}; }; | |
| 5552 | -var promise; | |
| 5553 | -var queueMicrotaskShim = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : typeof __webpack_require__.g !== "undefined" ? __webpack_require__.g : globalThis) : function (cb) { return (promise || (promise = Promise.resolve())).then(cb).catch(function (err) { return setTimeout(function () { | |
| 5554 | - throw err; | |
| 5555 | -}, 0); }); }; | |
| 5556 | -var createQueueWithTimer = function (timeout) { | |
| 5557 | - return function (notify) { | |
| 5558 | - setTimeout(notify, timeout); | |
| 5559 | - }; | |
| 5560 | -}; | |
| 5561 | -var rAF = typeof window !== "undefined" && window.requestAnimationFrame ? window.requestAnimationFrame : createQueueWithTimer(10); | |
| 5562 | -var autoBatchEnhancer = function (options) { | |
| 5563 | - if (options === void 0) { options = { type: "raf" }; } | |
| 5564 | - return function (next) { return function () { | |
| 5565 | - var args = []; | |
| 5566 | - for (var _i = 0; _i < arguments.length; _i++) { | |
| 5567 | - args[_i] = arguments[_i]; | |
| 5568 | - } | |
| 5569 | - var store = next.apply(void 0, args); | |
| 5570 | - var notifying = true; | |
| 5571 | - var shouldNotifyAtEndOfTick = false; | |
| 5572 | - var notificationQueued = false; | |
| 5573 | - var listeners = new Set(); | |
| 5574 | - var queueCallback = options.type === "tick" ? queueMicrotaskShim : options.type === "raf" ? rAF : options.type === "callback" ? options.queueNotification : createQueueWithTimer(options.timeout); | |
| 5575 | - var notifyListeners = function () { | |
| 5576 | - notificationQueued = false; | |
| 5577 | - if (shouldNotifyAtEndOfTick) { | |
| 5578 | - shouldNotifyAtEndOfTick = false; | |
| 5579 | - listeners.forEach(function (l) { return l(); }); | |
| 5580 | - } | |
| 5581 | - }; | |
| 5582 | - return Object.assign({}, store, { | |
| 5583 | - subscribe: function (listener2) { | |
| 5584 | - var wrappedListener = function () { return notifying && listener2(); }; | |
| 5585 | - var unsubscribe = store.subscribe(wrappedListener); | |
| 5586 | - listeners.add(listener2); | |
| 5587 | - return function () { | |
| 5588 | - unsubscribe(); | |
| 5589 | - listeners.delete(listener2); | |
| 5590 | - }; | |
| 5591 | - }, | |
| 5592 | - dispatch: function (action) { | |
| 5593 | - var _a; | |
| 5594 | - try { | |
| 5595 | - notifying = !((_a = action == null ? void 0 : action.meta) == null ? void 0 : _a[SHOULD_AUTOBATCH]); | |
| 5596 | - shouldNotifyAtEndOfTick = !notifying; | |
| 5597 | - if (shouldNotifyAtEndOfTick) { | |
| 5598 | - if (!notificationQueued) { | |
| 5599 | - notificationQueued = true; | |
| 5600 | - queueCallback(notifyListeners); | |
| 5601 | - } | |
| 5602 | - } | |
| 5603 | - return store.dispatch(action); | |
| 5604 | - } | |
| 5605 | - finally { | |
| 5606 | - notifying = true; | |
| 5607 | - } | |
| 5608 | - } | |
| 5609 | - }); | |
| 5610 | - }; }; | |
| 5611 | -}; | |
| 5612 | -// src/index.ts | |
| 5613 | -(0,immer__WEBPACK_IMPORTED_MODULE_0__.enableES5)(); | |
| 5614 | - | |
| 5615 | -//# sourceMappingURL=redux-toolkit.esm.js.map | |
| 5540 | +/***/ }), | |
| 5541 | +/* 201 */ | |
| 5542 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5616 | 5543 | |
| 5544 | +__webpack_require__(202); | |
| 5545 | +module.exports = __webpack_require__(6).Object.keys; | |
| 5546 | + | |
| 5547 | + | |
| 5617 | 5548 | /***/ }), |
| 5549 | +/* 202 */ | |
| 5550 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5618 | 5551 | |
| 5619 | -/***/ "../node_modules/immer/dist/immer.esm.mjs": | |
| 5620 | -/*!************************************************!*\ | |
| 5621 | - !*** ../node_modules/immer/dist/immer.esm.mjs ***! | |
| 5622 | - \************************************************/ | |
| 5623 | -/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { | |
| 5552 | +// 19.1.2.14 Object.keys(O) | |
| 5553 | +var toObject = __webpack_require__(32); | |
| 5554 | +var $keys = __webpack_require__(40); | |
| 5624 | 5555 | |
| 5625 | -"use strict"; | |
| 5626 | -__webpack_require__.r(__webpack_exports__); | |
| 5627 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 5628 | -/* harmony export */ Immer: () => (/* binding */ un), | |
| 5629 | -/* harmony export */ applyPatches: () => (/* binding */ pn), | |
| 5630 | -/* harmony export */ castDraft: () => (/* binding */ K), | |
| 5631 | -/* harmony export */ castImmutable: () => (/* binding */ $), | |
| 5632 | -/* harmony export */ createDraft: () => (/* binding */ ln), | |
| 5633 | -/* harmony export */ current: () => (/* binding */ R), | |
| 5634 | -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__), | |
| 5635 | -/* harmony export */ enableAllPlugins: () => (/* binding */ J), | |
| 5636 | -/* harmony export */ enableES5: () => (/* binding */ F), | |
| 5637 | -/* harmony export */ enableMapSet: () => (/* binding */ C), | |
| 5638 | -/* harmony export */ enablePatches: () => (/* binding */ T), | |
| 5639 | -/* harmony export */ finishDraft: () => (/* binding */ dn), | |
| 5640 | -/* harmony export */ freeze: () => (/* binding */ d), | |
| 5641 | -/* harmony export */ immerable: () => (/* binding */ L), | |
| 5642 | -/* harmony export */ isDraft: () => (/* binding */ r), | |
| 5643 | -/* harmony export */ isDraftable: () => (/* binding */ t), | |
| 5644 | -/* harmony export */ nothing: () => (/* binding */ H), | |
| 5645 | -/* harmony export */ original: () => (/* binding */ e), | |
| 5646 | -/* harmony export */ produce: () => (/* binding */ fn), | |
| 5647 | -/* harmony export */ produceWithPatches: () => (/* binding */ cn), | |
| 5648 | -/* harmony export */ setAutoFreeze: () => (/* binding */ sn), | |
| 5649 | -/* harmony export */ setUseProxies: () => (/* binding */ vn) | |
| 5650 | -/* harmony export */ }); | |
| 5651 | -function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if(true){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}// removed by dead control flow | |
| 5652 | -}function r(n){return!!n&&!!n[Q]}function t(n){var r;return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var r=Object.getPrototypeOf(n);if(null===r)return!0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function e(t){return r(t)||n(23,t),t[Q].t}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n)})):n.forEach((function(t,e){return r(e,t,n)}))}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return false||U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b("Patches").N(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s,v){if( true&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function N(n,r,t){var e=s(r)?b("MapSet").F(r,t):v(r)?b("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return(t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return true&&f(r),en.get(r,n)},set:function(r){var t=this[Q]; true&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e<r.length;e++)if(!r.hasOwnProperty(e))return!0;return!1}function f(r){r.g&&n(3,JSON.stringify(p(r)))}var s={};m("ES5",{J:function(n,r){var e=Array.isArray(n),i=function(n,r){if(n){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,t(i,!0));return e}var o=rn(r);delete o[Q];for(var u=nn(o),a=0;a<u.length;a++){var f=u[a];o[f]=t(f,n||!!o[f].enumerable)}return Object.create(Object.getPrototypeOf(r),o)}(e,n),o={i:e?5:4,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Q,{value:o,writable:!0}),i},S:function(n,t,o){o?r(t)&&t[Q].A===n&&e(n.p):(n.u&&function n(r){if(r&&"object"==typeof r){var t=r[Q];if(t){var e=t.t,o=t.k,f=t.R,c=t.i;if(4===c)i(o,(function(r){r!==Q&&(void 0!==e[r]||u(e,r)?f[r]||n(o[r]):(f[r]=!0,k(t)))})),i(e,(function(n){void 0!==o[n]||u(o,n)||(f[n]=!1,k(t))}));else if(5===c){if(a(t)&&(k(t),f.length=!0),o.length<e.length)for(var s=o.length;s<e.length;s++)f[s]=!1;else for(var v=e.length;v<o.length;v++)f[v]=!0;for(var p=Math.min(o.length,e.length),l=0;l<p;l++)o.hasOwnProperty(l)||(f[l]=!0),void 0===f[l]&&n(o[l])}}}}(n.p[0]),e(n.p))},K:function(n){return 4===n.i?o(n):a(n)}})}function T(){function e(n){if(!t(n))return n;if(Array.isArray(n))return n.map(e);if(s(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],e(n[1])]})));if(v(n))return new Set(Array.from(n).map(e));var r=Object.create(Object.getPrototypeOf(n));for(var i in n)r[i]=e(n[i]);return u(n,L)&&(r[L]=n[L]),r}function f(n){return r(n)?e(n):n}var c="add";m("Patches",{$:function(r,t){return t.forEach((function(t){for(var i=t.path,u=t.op,f=r,s=0;s<i.length-1;s++){var v=o(f),p=i[s];"string"!=typeof p&&"number"!=typeof p&&(p=""+p),0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof f&&"prototype"===p&&n(24),"object"!=typeof(f=a(f,p))&&n(15,i.join("/"))}var l=o(f),d=e(t.value),h=i[i.length-1];switch(u){case"replace":switch(l){case 2:return f.set(h,d);case 3:n(16);default:return f[h]=d}case c:switch(l){case 1:return"-"===h?f.push(d):f.splice(h,0,d);case 2:return f.set(h,d);case 3:return f.add(d);default:return f[h]=d}case"remove":switch(l){case 1:return f.splice(h,1);case 2:return f.delete(h);case 3:return f.delete(t.value);default:return delete f[h]}default:n(17,u)}})),r},N:function(n,r,t,e){switch(n.i){case 0:case 4:case 2:return function(n,r,t,e){var o=n.t,s=n.o;i(n.R,(function(n,i){var v=a(o,n),p=a(s,n),l=i?u(o,n)?"replace":c:"remove";if(v!==p||"replace"!==l){var d=r.concat(n);t.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),e.push(l===c?{op:"remove",path:d}:"remove"===l?{op:c,path:d,value:f(v)}:{op:"replace",path:d,value:f(v)})}}))}(n,r,t,e);case 5:case 1:return function(n,r,t,e){var i=n.t,o=n.R,u=n.o;if(u.length<i.length){var a=[u,i];i=a[0],u=a[1];var s=[e,t];t=s[0],e=s[1]}for(var v=0;v<i.length;v++)if(o[v]&&u[v]!==i[v]){var p=r.concat([v]);t.push({op:"replace",path:p,value:f(u[v])}),e.push({op:"replace",path:p,value:f(i[v])})}for(var l=i.length;l<u.length;l++){var d=r.concat([l]);t.push({op:c,path:d,value:f(u[l])})}i.length<u.length&&e.push({op:"replace",path:r.concat(["length"]),value:i.length})}(n,r,t,e);case 3:return function(n,r,t,e){var i=n.t,o=n.o,u=0;i.forEach((function(n){if(!o.has(n)){var i=r.concat([u]);t.push({op:"remove",path:i,value:n}),e.unshift({op:c,path:i,value:n})}u++})),u=0,o.forEach((function(n){if(!i.has(n)){var o=r.concat([u]);t.push({op:c,path:o,value:n}),e.unshift({op:"remove",path:o,value:n})}u++}))}(n,r,t,e)}},M:function(n,r,t,e){t.push({op:"replace",path:[],value:r===H?void 0:r}),e.push({op:"replace",path:[],value:n})}})}function C(){function r(n,r){function t(){this.constructor=n}a(n,r),n.prototype=(t.prototype=r.prototype,new t)}function e(n){n.o||(n.R=new Map,n.o=new Map(n.t))}function o(n){n.o||(n.o=new Set,n.t.forEach((function(r){if(t(r)){var e=N(n.A.h,r,n);n.p.set(r,e),n.o.add(e)}else n.o.add(r)})))}function u(r){r.g&&n(3,JSON.stringify(p(r)))}var a=function(n,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)r.hasOwnProperty(t)&&(n[t]=r[t])})(n,r)},f=function(){function n(n,r){return this[Q]={i:2,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,R:void 0,t:n,k:this,C:!1,g:!1},this}r(n,Map);var o=n.prototype;return Object.defineProperty(o,"size",{get:function(){return p(this[Q]).size}}),o.has=function(n){return p(this[Q]).has(n)},o.set=function(n,r){var t=this[Q];return u(t),p(t).has(n)&&p(t).get(n)===r||(e(t),k(t),t.R.set(n,!0),t.o.set(n,r),t.R.set(n,!0)),this},o.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),e(r),k(r),r.t.has(n)?r.R.set(n,!1):r.R.delete(n),r.o.delete(n),!0},o.clear=function(){var n=this[Q];u(n),p(n).size&&(e(n),k(n),n.R=new Map,i(n.t,(function(r){n.R.set(r,!1)})),n.o.clear())},o.forEach=function(n,r){var t=this;p(this[Q]).forEach((function(e,i){n.call(r,t.get(i),i,t)}))},o.get=function(n){var r=this[Q];u(r);var i=p(r).get(n);if(r.I||!t(i))return i;if(i!==r.t.get(n))return i;var o=N(r.A.h,i,r);return e(r),r.o.set(n,o),o},o.keys=function(){return p(this[Q]).keys()},o.values=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.values()},n.next=function(){var n=t.next();return n.done?n:{done:!1,value:r.get(n.value)}},n},o.entries=function(){var n,r=this,t=this.keys();return(n={})[V]=function(){return r.entries()},n.next=function(){var n=t.next();if(n.done)return n;var e=r.get(n.value);return{done:!1,value:[n.value,e]}},n},o[V]=function(){return this.entries()},n}(),c=function(){function n(n,r){return this[Q]={i:3,l:r,A:r?r.A:_(),P:!1,I:!1,o:void 0,t:n,k:this,p:new Map,g:!1,C:!1},this}r(n,Set);var t=n.prototype;return Object.defineProperty(t,"size",{get:function(){return p(this[Q]).size}}),t.has=function(n){var r=this[Q];return u(r),r.o?!!r.o.has(n)||!(!r.p.has(n)||!r.o.has(r.p.get(n))):r.t.has(n)},t.add=function(n){var r=this[Q];return u(r),this.has(n)||(o(r),k(r),r.o.add(n)),this},t.delete=function(n){if(!this.has(n))return!1;var r=this[Q];return u(r),o(r),k(r),r.o.delete(n)||!!r.p.has(n)&&r.o.delete(r.p.get(n))},t.clear=function(){var n=this[Q];u(n),p(n).size&&(o(n),k(n),n.o.clear())},t.values=function(){var n=this[Q];return u(n),o(n),n.o.values()},t.entries=function(){var n=this[Q];return u(n),o(n),n.o.entries()},t.keys=function(){return this.values()},t[V]=function(){return this.values()},t.forEach=function(n,r){for(var t=this.values(),e=t.next();!e.done;)n.call(r,e.value,e.value,this),e=t.next()},n}();m("MapSet",{F:function(n,r){return new f(n,r)},T:function(n,r){return new c(n,r)}})}function J(){F(),C(),T()}function K(n){return n}function $(n){return n}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",V="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t)})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=N(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.R[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return!0;E(n),k(n)}return n.o[r]===t&&(void 0!==t||r in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[r])||(n.o[r]=t,n.R[r]=!0),!0},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.R[r]=!1,E(n),k(n)):delete n.R[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12)}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}})),on.deleteProperty=function(r,t){return true&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return true&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.D=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return(t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=N(e,r,void 0),v=!0;try{f=i(s),v=!1}finally{v?g(c):O(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.D&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l)}return f}n(21,r)},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r}));return"undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return[n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=R(e));var i=w(this),o=N(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q]; true&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.D=n},i.setUseProxies=function(r){r&&!B&&n(20),this.O=r},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (fn); | |
| 5653 | -//# sourceMappingURL=immer.esm.js.map | |
| 5556 | +__webpack_require__(83)('keys', function () { | |
| 5557 | + return function keys(it) { | |
| 5558 | + return $keys(toObject(it)); | |
| 5559 | + }; | |
| 5560 | +}); | |
| 5654 | 5561 | |
| 5655 | 5562 | |
| 5656 | 5563 | /***/ }), |
| 5564 | +/* 203 */, | |
| 5565 | +/* 204 */, | |
| 5566 | +/* 205 */ | |
| 5567 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5657 | 5568 | |
| 5658 | -/***/ "../node_modules/redux-thunk/es/index.js": | |
| 5659 | -/*!***********************************************!*\ | |
| 5660 | - !*** ../node_modules/redux-thunk/es/index.js ***! | |
| 5661 | - \***********************************************/ | |
| 5662 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 5569 | +// 7.3.20 SpeciesConstructor(O, defaultConstructor) | |
| 5570 | +var anObject = __webpack_require__(13); | |
| 5571 | +var aFunction = __webpack_require__(38); | |
| 5572 | +var SPECIES = __webpack_require__(10)('species'); | |
| 5573 | +module.exports = function (O, D) { | |
| 5574 | + var C = anObject(O).constructor; | |
| 5575 | + var S; | |
| 5576 | + return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S); | |
| 5577 | +}; | |
| 5663 | 5578 | |
| 5664 | -"use strict"; | |
| 5665 | -__webpack_require__.r(__webpack_exports__); | |
| 5666 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 5667 | -/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) | |
| 5668 | -/* harmony export */ }); | |
| 5669 | -/** A function that accepts a potential "extra argument" value to be injected later, | |
| 5670 | - * and returns an instance of the thunk middleware that uses that value | |
| 5671 | - */ | |
| 5672 | -function createThunkMiddleware(extraArgument) { | |
| 5673 | - // Standard Redux middleware definition pattern: | |
| 5674 | - // See: https://redux.js.org/tutorials/fundamentals/part-4-store#writing-custom-middleware | |
| 5675 | - var middleware = function middleware(_ref) { | |
| 5676 | - var dispatch = _ref.dispatch, | |
| 5677 | - getState = _ref.getState; | |
| 5678 | - return function (next) { | |
| 5679 | - return function (action) { | |
| 5680 | - // The thunk middleware looks for any functions that were passed to `store.dispatch`. | |
| 5681 | - // If this "action" is really a function, call it and return the result. | |
| 5682 | - if (typeof action === 'function') { | |
| 5683 | - // Inject the store's `dispatch` and `getState` methods, as well as any "extra arg" | |
| 5684 | - return action(dispatch, getState, extraArgument); | |
| 5685 | - } // Otherwise, pass the action down the middleware chain as usual | |
| 5686 | 5579 | |
| 5580 | +/***/ }), | |
| 5581 | +/* 206 */ | |
| 5582 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5687 | 5583 | |
| 5688 | - return next(action); | |
| 5584 | +var ctx = __webpack_require__(31); | |
| 5585 | +var invoke = __webpack_require__(132); | |
| 5586 | +var html = __webpack_require__(131); | |
| 5587 | +var cel = __webpack_require__(92); | |
| 5588 | +var global = __webpack_require__(8); | |
| 5589 | +var process = global.process; | |
| 5590 | +var setTask = global.setImmediate; | |
| 5591 | +var clearTask = global.clearImmediate; | |
| 5592 | +var MessageChannel = global.MessageChannel; | |
| 5593 | +var Dispatch = global.Dispatch; | |
| 5594 | +var counter = 0; | |
| 5595 | +var queue = {}; | |
| 5596 | +var ONREADYSTATECHANGE = 'onreadystatechange'; | |
| 5597 | +var defer, channel, port; | |
| 5598 | +var run = function () { | |
| 5599 | + var id = +this; | |
| 5600 | + // eslint-disable-next-line no-prototype-builtins | |
| 5601 | + if (queue.hasOwnProperty(id)) { | |
| 5602 | + var fn = queue[id]; | |
| 5603 | + delete queue[id]; | |
| 5604 | + fn(); | |
| 5605 | + } | |
| 5606 | +}; | |
| 5607 | +var listener = function (event) { | |
| 5608 | + run.call(event.data); | |
| 5609 | +}; | |
| 5610 | +// Node.js 0.9+ & IE10+ has setImmediate, otherwise: | |
| 5611 | +if (!setTask || !clearTask) { | |
| 5612 | + setTask = function setImmediate(fn) { | |
| 5613 | + var args = []; | |
| 5614 | + var i = 1; | |
| 5615 | + while (arguments.length > i) args.push(arguments[i++]); | |
| 5616 | + queue[++counter] = function () { | |
| 5617 | + // eslint-disable-next-line no-new-func | |
| 5618 | + invoke(typeof fn == 'function' ? fn : Function(fn), args); | |
| 5619 | + }; | |
| 5620 | + defer(counter); | |
| 5621 | + return counter; | |
| 5622 | + }; | |
| 5623 | + clearTask = function clearImmediate(id) { | |
| 5624 | + delete queue[id]; | |
| 5625 | + }; | |
| 5626 | + // Node.js 0.8- | |
| 5627 | + if (__webpack_require__(56)(process) == 'process') { | |
| 5628 | + defer = function (id) { | |
| 5629 | + process.nextTick(ctx(run, id, 1)); | |
| 5630 | + }; | |
| 5631 | + // Sphere (JS game engine) Dispatch API | |
| 5632 | + } else if (Dispatch && Dispatch.now) { | |
| 5633 | + defer = function (id) { | |
| 5634 | + Dispatch.now(ctx(run, id, 1)); | |
| 5635 | + }; | |
| 5636 | + // Browsers with MessageChannel, includes WebWorkers | |
| 5637 | + } else if (MessageChannel) { | |
| 5638 | + channel = new MessageChannel(); | |
| 5639 | + port = channel.port2; | |
| 5640 | + channel.port1.onmessage = listener; | |
| 5641 | + defer = ctx(port.postMessage, port, 1); | |
| 5642 | + // Browsers with postMessage, skip WebWorkers | |
| 5643 | + // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' | |
| 5644 | + } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) { | |
| 5645 | + defer = function (id) { | |
| 5646 | + global.postMessage(id + '', '*'); | |
| 5647 | + }; | |
| 5648 | + global.addEventListener('message', listener, false); | |
| 5649 | + // IE8- | |
| 5650 | + } else if (ONREADYSTATECHANGE in cel('script')) { | |
| 5651 | + defer = function (id) { | |
| 5652 | + html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () { | |
| 5653 | + html.removeChild(this); | |
| 5654 | + run.call(id); | |
| 5689 | 5655 | }; |
| 5690 | 5656 | }; |
| 5691 | - }; | |
| 5657 | + // Rest old browsers | |
| 5658 | + } else { | |
| 5659 | + defer = function (id) { | |
| 5660 | + setTimeout(ctx(run, id, 1), 0); | |
| 5661 | + }; | |
| 5662 | + } | |
| 5663 | +} | |
| 5664 | +module.exports = { | |
| 5665 | + set: setTask, | |
| 5666 | + clear: clearTask | |
| 5667 | +}; | |
| 5692 | 5668 | |
| 5693 | - return middleware; | |
| 5694 | -} | |
| 5695 | 5669 | |
| 5696 | -var thunk = createThunkMiddleware(); // Attach the factory function so users can create a customized version | |
| 5697 | -// with whatever "extra arg" they want to inject into their thunks | |
| 5670 | +/***/ }), | |
| 5671 | +/* 207 */ | |
| 5672 | +/***/ (function(module, exports) { | |
| 5698 | 5673 | |
| 5699 | -thunk.withExtraArgument = createThunkMiddleware; | |
| 5700 | -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (thunk); | |
| 5674 | +module.exports = function (exec) { | |
| 5675 | + try { | |
| 5676 | + return { e: false, v: exec() }; | |
| 5677 | + } catch (e) { | |
| 5678 | + return { e: true, v: e }; | |
| 5679 | + } | |
| 5680 | +}; | |
| 5701 | 5681 | |
| 5682 | + | |
| 5702 | 5683 | /***/ }), |
| 5684 | +/* 208 */ | |
| 5685 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5703 | 5686 | |
| 5704 | -/***/ "../node_modules/redux/es/redux.js": | |
| 5705 | -/*!*****************************************!*\ | |
| 5706 | - !*** ../node_modules/redux/es/redux.js ***! | |
| 5707 | - \*****************************************/ | |
| 5708 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 5687 | +var anObject = __webpack_require__(13); | |
| 5688 | +var isObject = __webpack_require__(9); | |
| 5689 | +var newPromiseCapability = __webpack_require__(144); | |
| 5709 | 5690 | |
| 5691 | +module.exports = function (C, x) { | |
| 5692 | + anObject(C); | |
| 5693 | + if (isObject(x) && x.constructor === C) return x; | |
| 5694 | + var promiseCapability = newPromiseCapability.f(C); | |
| 5695 | + var resolve = promiseCapability.resolve; | |
| 5696 | + resolve(x); | |
| 5697 | + return promiseCapability.promise; | |
| 5698 | +}; | |
| 5699 | + | |
| 5700 | + | |
| 5701 | +/***/ }), | |
| 5702 | +/* 209 */ | |
| 5703 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5704 | + | |
| 5705 | +module.exports = __webpack_require__(230); | |
| 5706 | + | |
| 5707 | +/***/ }), | |
| 5708 | +/* 210 */ | |
| 5709 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5710 | + | |
| 5710 | 5711 | "use strict"; |
| 5711 | -__webpack_require__.r(__webpack_exports__); | |
| 5712 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 5713 | -/* harmony export */ __DO_NOT_USE__ActionTypes: () => (/* binding */ ActionTypes), | |
| 5714 | -/* harmony export */ applyMiddleware: () => (/* binding */ applyMiddleware), | |
| 5715 | -/* harmony export */ bindActionCreators: () => (/* binding */ bindActionCreators), | |
| 5716 | -/* harmony export */ combineReducers: () => (/* binding */ combineReducers), | |
| 5717 | -/* harmony export */ compose: () => (/* binding */ compose), | |
| 5718 | -/* harmony export */ createStore: () => (/* binding */ createStore), | |
| 5719 | -/* harmony export */ legacy_createStore: () => (/* binding */ legacy_createStore) | |
| 5720 | -/* harmony export */ }); | |
| 5721 | -/* harmony import */ var _babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectSpread2 */ "../node_modules/@babel/runtime/helpers/esm/objectSpread2.js"); | |
| 5722 | 5712 | |
| 5713 | +// 19.1.2.1 Object.assign(target, source, ...) | |
| 5714 | +var DESCRIPTORS = __webpack_require__(14); | |
| 5715 | +var getKeys = __webpack_require__(40); | |
| 5716 | +var gOPS = __webpack_require__(71); | |
| 5717 | +var pIE = __webpack_require__(50); | |
| 5718 | +var toObject = __webpack_require__(32); | |
| 5719 | +var IObject = __webpack_require__(103); | |
| 5720 | +var $assign = Object.assign; | |
| 5723 | 5721 | |
| 5724 | -/** | |
| 5725 | - * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js | |
| 5726 | - * | |
| 5727 | - * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes | |
| 5728 | - * during build. | |
| 5729 | - * @param {number} code | |
| 5730 | - */ | |
| 5731 | -function formatProdErrorMessage(code) { | |
| 5732 | - 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. '; | |
| 5733 | -} | |
| 5722 | +// should work with symbols and should have deterministic property order (V8 bug) | |
| 5723 | +module.exports = !$assign || __webpack_require__(22)(function () { | |
| 5724 | + var A = {}; | |
| 5725 | + var B = {}; | |
| 5726 | + // eslint-disable-next-line no-undef | |
| 5727 | + var S = Symbol(); | |
| 5728 | + var K = 'abcdefghijklmnopqrst'; | |
| 5729 | + A[S] = 7; | |
| 5730 | + K.split('').forEach(function (k) { B[k] = k; }); | |
| 5731 | + return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K; | |
| 5732 | +}) ? function assign(target, source) { // eslint-disable-line no-unused-vars | |
| 5733 | + var T = toObject(target); | |
| 5734 | + var aLen = arguments.length; | |
| 5735 | + var index = 1; | |
| 5736 | + var getSymbols = gOPS.f; | |
| 5737 | + var isEnum = pIE.f; | |
| 5738 | + while (aLen > index) { | |
| 5739 | + var S = IObject(arguments[index++]); | |
| 5740 | + var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S); | |
| 5741 | + var length = keys.length; | |
| 5742 | + var j = 0; | |
| 5743 | + var key; | |
| 5744 | + while (length > j) { | |
| 5745 | + key = keys[j++]; | |
| 5746 | + if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key]; | |
| 5747 | + } | |
| 5748 | + } return T; | |
| 5749 | +} : $assign; | |
| 5734 | 5750 | |
| 5735 | -// Inlined version of the `symbol-observable` polyfill | |
| 5736 | -var $$observable = (function () { | |
| 5737 | - return typeof Symbol === 'function' && Symbol.observable || '@@observable'; | |
| 5738 | -})(); | |
| 5739 | 5751 | |
| 5740 | -/** | |
| 5741 | - * These are private action types reserved by Redux. | |
| 5742 | - * For any unknown actions, you must return the current state. | |
| 5743 | - * If the current state is undefined, you must return the initial state. | |
| 5744 | - * Do not reference these action types directly in your code. | |
| 5745 | - */ | |
| 5746 | -var randomString = function randomString() { | |
| 5747 | - return Math.random().toString(36).substring(7).split('').join('.'); | |
| 5752 | +/***/ }), | |
| 5753 | +/* 211 */ | |
| 5754 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5755 | + | |
| 5756 | +module.exports = __webpack_require__(281); | |
| 5757 | + | |
| 5758 | +/***/ }), | |
| 5759 | +/* 212 */, | |
| 5760 | +/* 213 */ | |
| 5761 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5762 | + | |
| 5763 | +// helper for String#{startsWith, endsWith, includes} | |
| 5764 | +var isRegExp = __webpack_require__(122); | |
| 5765 | +var defined = __webpack_require__(42); | |
| 5766 | + | |
| 5767 | +module.exports = function (that, searchString, NAME) { | |
| 5768 | + if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); | |
| 5769 | + return String(defined(that)); | |
| 5748 | 5770 | }; |
| 5749 | 5771 | |
| 5750 | -var ActionTypes = { | |
| 5751 | - INIT: "@@redux/INIT" + randomString(), | |
| 5752 | - REPLACE: "@@redux/REPLACE" + randomString(), | |
| 5753 | - PROBE_UNKNOWN_ACTION: function PROBE_UNKNOWN_ACTION() { | |
| 5754 | - return "@@redux/PROBE_UNKNOWN_ACTION" + randomString(); | |
| 5772 | + | |
| 5773 | +/***/ }), | |
| 5774 | +/* 214 */ | |
| 5775 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5776 | + | |
| 5777 | +var MATCH = __webpack_require__(12)('match'); | |
| 5778 | +module.exports = function (KEY) { | |
| 5779 | + var re = /./; | |
| 5780 | + try { | |
| 5781 | + '/./'[KEY](re); | |
| 5782 | + } catch (e) { | |
| 5783 | + try { | |
| 5784 | + re[MATCH] = false; | |
| 5785 | + return !'/./'[KEY](re); | |
| 5786 | + } catch (f) { /* empty */ } | |
| 5787 | + } return true; | |
| 5788 | +}; | |
| 5789 | + | |
| 5790 | + | |
| 5791 | +/***/ }), | |
| 5792 | +/* 215 */, | |
| 5793 | +/* 216 */, | |
| 5794 | +/* 217 */, | |
| 5795 | +/* 218 */, | |
| 5796 | +/* 219 */ | |
| 5797 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5798 | + | |
| 5799 | +var has = __webpack_require__(61); | |
| 5800 | +var toIObject = __webpack_require__(98); | |
| 5801 | +var arrayIndexOf = __webpack_require__(146)(false); | |
| 5802 | +var IE_PROTO = __webpack_require__(130)('IE_PROTO'); | |
| 5803 | + | |
| 5804 | +module.exports = function (object, names) { | |
| 5805 | + var O = toIObject(object); | |
| 5806 | + var i = 0; | |
| 5807 | + var result = []; | |
| 5808 | + var key; | |
| 5809 | + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | |
| 5810 | + // Don't enum bug & hidden keys | |
| 5811 | + while (names.length > i) if (has(O, key = names[i++])) { | |
| 5812 | + ~arrayIndexOf(result, key) || result.push(key); | |
| 5755 | 5813 | } |
| 5814 | + return result; | |
| 5756 | 5815 | }; |
| 5757 | 5816 | |
| 5758 | -/** | |
| 5759 | - * @param {any} obj The object to inspect. | |
| 5760 | - * @returns {boolean} True if the argument appears to be a plain object. | |
| 5761 | - */ | |
| 5762 | -function isPlainObject(obj) { | |
| 5763 | - if (typeof obj !== 'object' || obj === null) return false; | |
| 5764 | - var proto = obj; | |
| 5765 | 5817 | |
| 5766 | - while (Object.getPrototypeOf(proto) !== null) { | |
| 5767 | - proto = Object.getPrototypeOf(proto); | |
| 5768 | - } | |
| 5818 | +/***/ }), | |
| 5819 | +/* 220 */ | |
| 5820 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5769 | 5821 | |
| 5770 | - return Object.getPrototypeOf(obj) === proto; | |
| 5771 | -} | |
| 5822 | +__webpack_require__(221); | |
| 5823 | +module.exports = __webpack_require__(6).Array.isArray; | |
| 5772 | 5824 | |
| 5773 | -// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of | |
| 5774 | -function miniKindOf(val) { | |
| 5775 | - if (val === void 0) return 'undefined'; | |
| 5776 | - if (val === null) return 'null'; | |
| 5777 | - var type = typeof val; | |
| 5778 | 5825 | |
| 5779 | - switch (type) { | |
| 5780 | - case 'boolean': | |
| 5781 | - case 'string': | |
| 5782 | - case 'number': | |
| 5783 | - case 'symbol': | |
| 5784 | - case 'function': | |
| 5785 | - { | |
| 5786 | - return type; | |
| 5787 | - } | |
| 5788 | - } | |
| 5826 | +/***/ }), | |
| 5827 | +/* 221 */ | |
| 5828 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5789 | 5829 | |
| 5790 | - if (Array.isArray(val)) return 'array'; | |
| 5791 | - if (isDate(val)) return 'date'; | |
| 5792 | - if (isError(val)) return 'error'; | |
| 5793 | - var constructorName = ctorName(val); | |
| 5830 | +// 22.1.2.2 / 15.4.3.2 Array.isArray(arg) | |
| 5831 | +var $export = __webpack_require__(7); | |
| 5794 | 5832 | |
| 5795 | - switch (constructorName) { | |
| 5796 | - case 'Symbol': | |
| 5797 | - case 'Promise': | |
| 5798 | - case 'WeakMap': | |
| 5799 | - case 'WeakSet': | |
| 5800 | - case 'Map': | |
| 5801 | - case 'Set': | |
| 5802 | - return constructorName; | |
| 5803 | - } // other | |
| 5833 | +$export($export.S, 'Array', { isArray: __webpack_require__(97) }); | |
| 5804 | 5834 | |
| 5805 | 5835 | |
| 5806 | - return type.slice(8, -1).toLowerCase().replace(/\s/g, ''); | |
| 5807 | -} | |
| 5836 | +/***/ }), | |
| 5837 | +/* 222 */, | |
| 5838 | +/* 223 */ | |
| 5839 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5808 | 5840 | |
| 5809 | -function ctorName(val) { | |
| 5810 | - return typeof val.constructor === 'function' ? val.constructor.name : null; | |
| 5811 | -} | |
| 5841 | +"use strict"; | |
| 5812 | 5842 | |
| 5813 | -function isError(val) { | |
| 5814 | - return val instanceof Error || typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number'; | |
| 5815 | -} | |
| 5816 | 5843 | |
| 5817 | -function isDate(val) { | |
| 5818 | - if (val instanceof Date) return true; | |
| 5819 | - return typeof val.toDateString === 'function' && typeof val.getDate === 'function' && typeof val.setDate === 'function'; | |
| 5820 | -} | |
| 5844 | +var _interopRequireDefault = __webpack_require__(0); | |
| 5821 | 5845 | |
| 5822 | -function kindOf(val) { | |
| 5823 | - var typeOfVal = typeof val; | |
| 5846 | +var _Object$defineProperty = __webpack_require__(1); | |
| 5824 | 5847 | |
| 5825 | - if (true) { | |
| 5826 | - typeOfVal = miniKindOf(val); | |
| 5827 | - } | |
| 5848 | +_Object$defineProperty(exports, "__esModule", { | |
| 5849 | + value: true | |
| 5850 | +}); | |
| 5828 | 5851 | |
| 5829 | - return typeOfVal; | |
| 5830 | -} | |
| 5852 | +exports.default = void 0; | |
| 5831 | 5853 | |
| 5832 | -/** | |
| 5833 | - * @deprecated | |
| 5834 | - * | |
| 5835 | - * **We recommend using the `configureStore` method | |
| 5836 | - * of the `@reduxjs/toolkit` package**, which replaces `createStore`. | |
| 5837 | - * | |
| 5838 | - * Redux Toolkit is our recommended approach for writing Redux logic today, | |
| 5839 | - * including store setup, reducers, data fetching, and more. | |
| 5840 | - * | |
| 5841 | - * **For more details, please read this Redux docs page:** | |
| 5842 | - * **https://redux.js.org/introduction/why-rtk-is-redux-today** | |
| 5843 | - * | |
| 5844 | - * `configureStore` from Redux Toolkit is an improved version of `createStore` that | |
| 5845 | - * simplifies setup and helps avoid common bugs. | |
| 5846 | - * | |
| 5847 | - * You should not be using the `redux` core package by itself today, except for learning purposes. | |
| 5848 | - * The `createStore` method from the core `redux` package will not be removed, but we encourage | |
| 5849 | - * all users to migrate to using Redux Toolkit for all Redux code. | |
| 5850 | - * | |
| 5851 | - * If you want to use `createStore` without this visual deprecation warning, use | |
| 5852 | - * the `legacy_createStore` import instead: | |
| 5853 | - * | |
| 5854 | - * `import { legacy_createStore as createStore} from 'redux'` | |
| 5855 | - * | |
| 5856 | - */ | |
| 5854 | +var _typeof2 = _interopRequireDefault(__webpack_require__(48)); | |
| 5857 | 5855 | |
| 5858 | -function createStore(reducer, preloadedState, enhancer) { | |
| 5859 | - var _ref2; | |
| 5856 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 5860 | 5857 | |
| 5861 | - if (typeof preloadedState === 'function' && typeof enhancer === 'function' || typeof enhancer === 'function' && typeof arguments[3] === 'function') { | |
| 5862 | - 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.'); | |
| 5863 | - } | |
| 5858 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 5864 | 5859 | |
| 5865 | - if (typeof preloadedState === 'function' && typeof enhancer === 'undefined') { | |
| 5866 | - enhancer = preloadedState; | |
| 5867 | - preloadedState = undefined; | |
| 5868 | - } | |
| 5860 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 5869 | 5861 | |
| 5870 | - if (typeof enhancer !== 'undefined') { | |
| 5871 | - if (typeof enhancer !== 'function') { | |
| 5872 | - throw new Error( false ? 0 : "Expected the enhancer to be a function. Instead, received: '" + kindOf(enhancer) + "'"); | |
| 5873 | - } | |
| 5862 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 5874 | 5863 | |
| 5875 | - return enhancer(createStore)(reducer, preloadedState); | |
| 5876 | - } | |
| 5864 | +var _instanceType = _interopRequireDefault(__webpack_require__(252)); | |
| 5877 | 5865 | |
| 5878 | - if (typeof reducer !== 'function') { | |
| 5879 | - throw new Error( false ? 0 : "Expected the root reducer to be a function. Instead, received: '" + kindOf(reducer) + "'"); | |
| 5880 | - } | |
| 5866 | +var ArgsObject = /*#__PURE__*/function (_InstanceType) { | |
| 5867 | + (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 5881 | 5868 | |
| 5882 | - var currentReducer = reducer; | |
| 5883 | - var currentState = preloadedState; | |
| 5884 | - var currentListeners = []; | |
| 5885 | - var nextListeners = currentListeners; | |
| 5886 | - var isDispatching = false; | |
| 5887 | - /** | |
| 5888 | - * This makes a shallow copy of currentListeners so we can use | |
| 5889 | - * nextListeners as a temporary list while dispatching. | |
| 5890 | - * | |
| 5891 | - * This prevents any bugs around consumers calling | |
| 5892 | - * subscribe/unsubscribe in the middle of a dispatch. | |
| 5893 | - */ | |
| 5869 | + var _super = (0, _createSuper2.default)(ArgsObject); | |
| 5894 | 5870 | |
| 5895 | - function ensureCanMutateNextListeners() { | |
| 5896 | - if (nextListeners === currentListeners) { | |
| 5897 | - nextListeners = currentListeners.slice(); | |
| 5871 | + (0, _createClass2.default)(ArgsObject, null, [{ | |
| 5872 | + key: "getInstanceType", | |
| 5873 | + value: function getInstanceType() { | |
| 5874 | + return 'ArgsObject'; | |
| 5898 | 5875 | } |
| 5899 | - } | |
| 5900 | - /** | |
| 5901 | - * Reads the state tree managed by the store. | |
| 5902 | - * | |
| 5903 | - * @returns {any} The current state tree of your application. | |
| 5904 | - */ | |
| 5876 | + /** | |
| 5877 | + * Function constructor(). | |
| 5878 | + * | |
| 5879 | + * Create ArgsObject. | |
| 5880 | + * | |
| 5881 | + * @param {{}} args | |
| 5882 | + */ | |
| 5905 | 5883 | |
| 5884 | + }]); | |
| 5906 | 5885 | |
| 5907 | - function getState() { | |
| 5908 | - if (isDispatching) { | |
| 5909 | - 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.'); | |
| 5910 | - } | |
| 5886 | + function ArgsObject(args) { | |
| 5887 | + var _this; | |
| 5911 | 5888 | |
| 5912 | - return currentState; | |
| 5889 | + (0, _classCallCheck2.default)(this, ArgsObject); | |
| 5890 | + _this = _super.call(this); | |
| 5891 | + _this.args = args; | |
| 5892 | + return _this; | |
| 5913 | 5893 | } |
| 5914 | 5894 | /** |
| 5915 | - * Adds a change listener. It will be called any time an action is dispatched, | |
| 5916 | - * and some part of the state tree may potentially have changed. You may then | |
| 5917 | - * call `getState()` to read the current state tree inside the callback. | |
| 5895 | + * Function requireArgument(). | |
| 5918 | 5896 | * |
| 5919 | - * You may call `dispatch()` from a change listener, with the following | |
| 5920 | - * caveats: | |
| 5897 | + * Validate property in args. | |
| 5921 | 5898 | * |
| 5922 | - * 1. The subscriptions are snapshotted just before every `dispatch()` call. | |
| 5923 | - * If you subscribe or unsubscribe while the listeners are being invoked, this | |
| 5924 | - * will not have any effect on the `dispatch()` that is currently in progress. | |
| 5925 | - * However, the next `dispatch()` call, whether nested or not, will use a more | |
| 5926 | - * recent snapshot of the subscription list. | |
| 5899 | + * @param {string} property | |
| 5900 | + * @param {{}} args | |
| 5927 | 5901 | * |
| 5928 | - * 2. The listener should not expect to see all state changes, as the state | |
| 5929 | - * might have been updated multiple times during a nested `dispatch()` before | |
| 5930 | - * the listener is called. It is, however, guaranteed that all subscribers | |
| 5931 | - * registered before the `dispatch()` started will be called with the latest | |
| 5932 | - * state by the time it exits. | |
| 5902 | + * @throws {Error} | |
| 5933 | 5903 | * |
| 5934 | - * @param {Function} listener A callback to be invoked on every dispatch. | |
| 5935 | - * @returns {Function} A function to remove this change listener. | |
| 5936 | 5904 | */ |
| 5937 | 5905 | |
| 5938 | 5906 | |
| 5939 | - function subscribe(listener) { | |
| 5940 | - if (typeof listener !== 'function') { | |
| 5941 | - throw new Error( false ? 0 : "Expected the listener to be a function. Instead, received: '" + kindOf(listener) + "'"); | |
| 5907 | + (0, _createClass2.default)(ArgsObject, [{ | |
| 5908 | + key: "requireArgument", | |
| 5909 | + value: function requireArgument(property) { | |
| 5910 | + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; | |
| 5911 | + | |
| 5912 | + if (!args.hasOwnProperty(property)) { | |
| 5913 | + throw Error("".concat(property, " is required.")); | |
| 5914 | + } | |
| 5942 | 5915 | } |
| 5916 | + /** | |
| 5917 | + * Function requireArgumentType(). | |
| 5918 | + * | |
| 5919 | + * Validate property in args using `type === typeof(args.whatever)`. | |
| 5920 | + * | |
| 5921 | + * @param {string} property | |
| 5922 | + * @param {string} type | |
| 5923 | + * @param {{}} args | |
| 5924 | + * | |
| 5925 | + * @throws {Error} | |
| 5926 | + * | |
| 5927 | + */ | |
| 5943 | 5928 | |
| 5944 | - if (isDispatching) { | |
| 5945 | - 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.'); | |
| 5929 | + }, { | |
| 5930 | + key: "requireArgumentType", | |
| 5931 | + value: function requireArgumentType(property, type) { | |
| 5932 | + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 5933 | + this.requireArgument(property, args); | |
| 5934 | + | |
| 5935 | + if ((0, _typeof2.default)(args[property]) !== type) { | |
| 5936 | + throw Error("".concat(property, " invalid type: ").concat(type, ".")); | |
| 5937 | + } | |
| 5946 | 5938 | } |
| 5939 | + /** | |
| 5940 | + * Function requireArgumentInstance(). | |
| 5941 | + * | |
| 5942 | + * Validate property in args using `args.whatever instanceof instance`. | |
| 5943 | + * | |
| 5944 | + * @param {string} property | |
| 5945 | + * @param {instanceof} instance | |
| 5946 | + * @param {{}} args | |
| 5947 | + * | |
| 5948 | + * @throws {Error} | |
| 5949 | + * | |
| 5950 | + */ | |
| 5947 | 5951 | |
| 5948 | - var isSubscribed = true; | |
| 5949 | - ensureCanMutateNextListeners(); | |
| 5950 | - nextListeners.push(listener); | |
| 5951 | - return function unsubscribe() { | |
| 5952 | - if (!isSubscribed) { | |
| 5953 | - return; | |
| 5952 | + }, { | |
| 5953 | + key: "requireArgumentInstance", | |
| 5954 | + value: function requireArgumentInstance(property, instance) { | |
| 5955 | + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 5956 | + this.requireArgument(property, args); | |
| 5957 | + | |
| 5958 | + if (!(args[property] instanceof instance)) { | |
| 5959 | + throw Error("".concat(property, " invalid instance.")); | |
| 5954 | 5960 | } |
| 5961 | + } | |
| 5962 | + /** | |
| 5963 | + * Function requireArgumentConstructor(). | |
| 5964 | + * | |
| 5965 | + * Validate property in args using `type === args.whatever.constructor`. | |
| 5966 | + * | |
| 5967 | + * @param {string} property | |
| 5968 | + * @param {*} type | |
| 5969 | + * @param {{}} args | |
| 5970 | + * | |
| 5971 | + * @throws {Error} | |
| 5972 | + * | |
| 5973 | + */ | |
| 5955 | 5974 | |
| 5956 | - if (isDispatching) { | |
| 5957 | - 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.'); | |
| 5975 | + }, { | |
| 5976 | + key: "requireArgumentConstructor", | |
| 5977 | + value: function requireArgumentConstructor(property, type) { | |
| 5978 | + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 5979 | + this.requireArgument(property, args); | |
| 5980 | + | |
| 5981 | + if (args[property].constructor !== type) { | |
| 5982 | + throw Error("".concat(property, " invalid constructor type.")); | |
| 5958 | 5983 | } |
| 5984 | + } | |
| 5985 | + }]); | |
| 5986 | + return ArgsObject; | |
| 5987 | +}(_instanceType.default); | |
| 5959 | 5988 | |
| 5960 | - isSubscribed = false; | |
| 5961 | - ensureCanMutateNextListeners(); | |
| 5962 | - var index = nextListeners.indexOf(listener); | |
| 5963 | - nextListeners.splice(index, 1); | |
| 5964 | - currentListeners = null; | |
| 5965 | - }; | |
| 5989 | +exports.default = ArgsObject; | |
| 5990 | + | |
| 5991 | +/***/ }), | |
| 5992 | +/* 224 */, | |
| 5993 | +/* 225 */ | |
| 5994 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5995 | + | |
| 5996 | +"use strict"; | |
| 5997 | + | |
| 5998 | +var global = __webpack_require__(8); | |
| 5999 | +var core = __webpack_require__(6); | |
| 6000 | +var dP = __webpack_require__(15); | |
| 6001 | +var DESCRIPTORS = __webpack_require__(14); | |
| 6002 | +var SPECIES = __webpack_require__(10)('species'); | |
| 6003 | + | |
| 6004 | +module.exports = function (KEY) { | |
| 6005 | + var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY]; | |
| 6006 | + if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, { | |
| 6007 | + configurable: true, | |
| 6008 | + get: function () { return this; } | |
| 6009 | + }); | |
| 6010 | +}; | |
| 6011 | + | |
| 6012 | + | |
| 6013 | +/***/ }), | |
| 6014 | +/* 226 */ | |
| 6015 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6016 | + | |
| 6017 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 6018 | +var anObject = __webpack_require__(18); | |
| 6019 | +var dPs = __webpack_require__(243); | |
| 6020 | +var enumBugKeys = __webpack_require__(147); | |
| 6021 | +var IE_PROTO = __webpack_require__(130)('IE_PROTO'); | |
| 6022 | +var Empty = function () { /* empty */ }; | |
| 6023 | +var PROTOTYPE = 'prototype'; | |
| 6024 | + | |
| 6025 | +// Create object with fake `null` prototype: use iframe Object with cleared prototype | |
| 6026 | +var createDict = function () { | |
| 6027 | + // Thrash, waste and sodomy: IE GC bug | |
| 6028 | + var iframe = __webpack_require__(109)('iframe'); | |
| 6029 | + var i = enumBugKeys.length; | |
| 6030 | + var lt = '<'; | |
| 6031 | + var gt = '>'; | |
| 6032 | + var iframeDocument; | |
| 6033 | + iframe.style.display = 'none'; | |
| 6034 | + __webpack_require__(227).appendChild(iframe); | |
| 6035 | + iframe.src = 'javascript:'; // eslint-disable-line no-script-url | |
| 6036 | + // createDict = iframe.contentWindow.Object; | |
| 6037 | + // html.removeChild(iframe); | |
| 6038 | + iframeDocument = iframe.contentWindow.document; | |
| 6039 | + iframeDocument.open(); | |
| 6040 | + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); | |
| 6041 | + iframeDocument.close(); | |
| 6042 | + createDict = iframeDocument.F; | |
| 6043 | + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | |
| 6044 | + return createDict(); | |
| 6045 | +}; | |
| 6046 | + | |
| 6047 | +module.exports = Object.create || function create(O, Properties) { | |
| 6048 | + var result; | |
| 6049 | + if (O !== null) { | |
| 6050 | + Empty[PROTOTYPE] = anObject(O); | |
| 6051 | + result = new Empty(); | |
| 6052 | + Empty[PROTOTYPE] = null; | |
| 6053 | + // add "__proto__" for Object.getPrototypeOf polyfill | |
| 6054 | + result[IE_PROTO] = O; | |
| 6055 | + } else result = createDict(); | |
| 6056 | + return Properties === undefined ? result : dPs(result, Properties); | |
| 6057 | +}; | |
| 6058 | + | |
| 6059 | + | |
| 6060 | +/***/ }), | |
| 6061 | +/* 227 */ | |
| 6062 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6063 | + | |
| 6064 | +var document = __webpack_require__(17).document; | |
| 6065 | +module.exports = document && document.documentElement; | |
| 6066 | + | |
| 6067 | + | |
| 6068 | +/***/ }), | |
| 6069 | +/* 228 */ | |
| 6070 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6071 | + | |
| 6072 | +__webpack_require__(60); | |
| 6073 | +__webpack_require__(229); | |
| 6074 | +module.exports = __webpack_require__(6).Array.from; | |
| 6075 | + | |
| 6076 | + | |
| 6077 | +/***/ }), | |
| 6078 | +/* 229 */ | |
| 6079 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6080 | + | |
| 6081 | +"use strict"; | |
| 6082 | + | |
| 6083 | +var ctx = __webpack_require__(31); | |
| 6084 | +var $export = __webpack_require__(7); | |
| 6085 | +var toObject = __webpack_require__(32); | |
| 6086 | +var call = __webpack_require__(139); | |
| 6087 | +var isArrayIter = __webpack_require__(140); | |
| 6088 | +var toLength = __webpack_require__(68); | |
| 6089 | +var createProperty = __webpack_require__(185); | |
| 6090 | +var getIterFn = __webpack_require__(112); | |
| 6091 | + | |
| 6092 | +$export($export.S + $export.F * !__webpack_require__(152)(function (iter) { Array.from(iter); }), 'Array', { | |
| 6093 | + // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) | |
| 6094 | + from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { | |
| 6095 | + var O = toObject(arrayLike); | |
| 6096 | + var C = typeof this == 'function' ? this : Array; | |
| 6097 | + var aLen = arguments.length; | |
| 6098 | + var mapfn = aLen > 1 ? arguments[1] : undefined; | |
| 6099 | + var mapping = mapfn !== undefined; | |
| 6100 | + var index = 0; | |
| 6101 | + var iterFn = getIterFn(O); | |
| 6102 | + var length, result, step, iterator; | |
| 6103 | + if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); | |
| 6104 | + // if object isn't iterable or it's array with default iterator - use simple case | |
| 6105 | + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { | |
| 6106 | + for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { | |
| 6107 | + createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); | |
| 6108 | + } | |
| 6109 | + } else { | |
| 6110 | + length = toLength(O.length); | |
| 6111 | + for (result = new C(length); length > index; index++) { | |
| 6112 | + createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); | |
| 6113 | + } | |
| 6114 | + } | |
| 6115 | + result.length = index; | |
| 6116 | + return result; | |
| 5966 | 6117 | } |
| 5967 | - /** | |
| 5968 | - * Dispatches an action. It is the only way to trigger a state change. | |
| 5969 | - * | |
| 5970 | - * The `reducer` function, used to create the store, will be called with the | |
| 5971 | - * current state tree and the given `action`. Its return value will | |
| 5972 | - * be considered the **next** state of the tree, and the change listeners | |
| 5973 | - * will be notified. | |
| 5974 | - * | |
| 5975 | - * The base implementation only supports plain object actions. If you want to | |
| 5976 | - * dispatch a Promise, an Observable, a thunk, or something else, you need to | |
| 5977 | - * wrap your store creating function into the corresponding middleware. For | |
| 5978 | - * example, see the documentation for the `redux-thunk` package. Even the | |
| 5979 | - * middleware will eventually dispatch plain object actions using this method. | |
| 5980 | - * | |
| 5981 | - * @param {Object} action A plain object representing “what changed”. It is | |
| 5982 | - * a good idea to keep actions serializable so you can record and replay user | |
| 5983 | - * sessions, or use the time travelling `redux-devtools`. An action must have | |
| 5984 | - * a `type` property which may not be `undefined`. It is a good idea to use | |
| 5985 | - * string constants for action types. | |
| 5986 | - * | |
| 5987 | - * @returns {Object} For convenience, the same action object you dispatched. | |
| 5988 | - * | |
| 5989 | - * Note that, if you use a custom middleware, it may wrap `dispatch()` to | |
| 5990 | - * return something else (for example, a Promise you can await). | |
| 5991 | - */ | |
| 6118 | +}); | |
| 5992 | 6119 | |
| 5993 | 6120 | |
| 5994 | - function dispatch(action) { | |
| 5995 | - if (!isPlainObject(action)) { | |
| 5996 | - 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."); | |
| 6121 | +/***/ }), | |
| 6122 | +/* 230 */ | |
| 6123 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6124 | + | |
| 6125 | +__webpack_require__(62); | |
| 6126 | +__webpack_require__(60); | |
| 6127 | +module.exports = __webpack_require__(231); | |
| 6128 | + | |
| 6129 | + | |
| 6130 | +/***/ }), | |
| 6131 | +/* 231 */ | |
| 6132 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6133 | + | |
| 6134 | +var classof = __webpack_require__(101); | |
| 6135 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 6136 | +var Iterators = __webpack_require__(34); | |
| 6137 | +module.exports = __webpack_require__(6).isIterable = function (it) { | |
| 6138 | + var O = Object(it); | |
| 6139 | + return O[ITERATOR] !== undefined | |
| 6140 | + || '@@iterator' in O | |
| 6141 | + // eslint-disable-next-line no-prototype-builtins | |
| 6142 | + || Iterators.hasOwnProperty(classof(O)); | |
| 6143 | +}; | |
| 6144 | + | |
| 6145 | + | |
| 6146 | +/***/ }), | |
| 6147 | +/* 232 */ | |
| 6148 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6149 | + | |
| 6150 | +"use strict"; | |
| 6151 | + | |
| 6152 | +var global = __webpack_require__(8); | |
| 6153 | +var $export = __webpack_require__(7); | |
| 6154 | +var meta = __webpack_require__(70); | |
| 6155 | +var fails = __webpack_require__(22); | |
| 6156 | +var hide = __webpack_require__(24); | |
| 6157 | +var redefineAll = __webpack_require__(126); | |
| 6158 | +var forOf = __webpack_require__(86); | |
| 6159 | +var anInstance = __webpack_require__(125); | |
| 6160 | +var isObject = __webpack_require__(9); | |
| 6161 | +var setToStringTag = __webpack_require__(53); | |
| 6162 | +var dP = __webpack_require__(15).f; | |
| 6163 | +var each = __webpack_require__(136)(0); | |
| 6164 | +var DESCRIPTORS = __webpack_require__(14); | |
| 6165 | + | |
| 6166 | +module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) { | |
| 6167 | + var Base = global[NAME]; | |
| 6168 | + var C = Base; | |
| 6169 | + var ADDER = IS_MAP ? 'set' : 'add'; | |
| 6170 | + var proto = C && C.prototype; | |
| 6171 | + var O = {}; | |
| 6172 | + if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function () { | |
| 6173 | + new C().entries().next(); | |
| 6174 | + }))) { | |
| 6175 | + // create collection constructor | |
| 6176 | + C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER); | |
| 6177 | + redefineAll(C.prototype, methods); | |
| 6178 | + meta.NEED = true; | |
| 6179 | + } else { | |
| 6180 | + C = wrapper(function (target, iterable) { | |
| 6181 | + anInstance(target, C, NAME, '_c'); | |
| 6182 | + target._c = new Base(); | |
| 6183 | + if (iterable != undefined) forOf(iterable, IS_MAP, target[ADDER], target); | |
| 6184 | + }); | |
| 6185 | + each('add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON'.split(','), function (KEY) { | |
| 6186 | + var IS_ADDER = KEY == 'add' || KEY == 'set'; | |
| 6187 | + if (KEY in proto && !(IS_WEAK && KEY == 'clear')) hide(C.prototype, KEY, function (a, b) { | |
| 6188 | + anInstance(this, C, KEY); | |
| 6189 | + if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false; | |
| 6190 | + var result = this._c[KEY](a === 0 ? 0 : a, b); | |
| 6191 | + return IS_ADDER ? this : result; | |
| 6192 | + }); | |
| 6193 | + }); | |
| 6194 | + IS_WEAK || dP(C.prototype, 'size', { | |
| 6195 | + get: function () { | |
| 6196 | + return this._c.size; | |
| 6197 | + } | |
| 6198 | + }); | |
| 6199 | + } | |
| 6200 | + | |
| 6201 | + setToStringTag(C, NAME); | |
| 6202 | + | |
| 6203 | + O[NAME] = C; | |
| 6204 | + $export($export.G + $export.W + $export.F, O); | |
| 6205 | + | |
| 6206 | + if (!IS_WEAK) common.setStrong(C, NAME, IS_MAP); | |
| 6207 | + | |
| 6208 | + return C; | |
| 6209 | +}; | |
| 6210 | + | |
| 6211 | + | |
| 6212 | +/***/ }), | |
| 6213 | +/* 233 */ | |
| 6214 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6215 | + | |
| 6216 | +"use strict"; | |
| 6217 | + | |
| 6218 | +// https://tc39.github.io/proposal-setmap-offrom/ | |
| 6219 | +var $export = __webpack_require__(7); | |
| 6220 | + | |
| 6221 | +module.exports = function (COLLECTION) { | |
| 6222 | + $export($export.S, COLLECTION, { of: function of() { | |
| 6223 | + var length = arguments.length; | |
| 6224 | + var A = new Array(length); | |
| 6225 | + while (length--) A[length] = arguments[length]; | |
| 6226 | + return new this(A); | |
| 6227 | + } }); | |
| 6228 | +}; | |
| 6229 | + | |
| 6230 | + | |
| 6231 | +/***/ }), | |
| 6232 | +/* 234 */ | |
| 6233 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6234 | + | |
| 6235 | +"use strict"; | |
| 6236 | + | |
| 6237 | +// https://tc39.github.io/proposal-setmap-offrom/ | |
| 6238 | +var $export = __webpack_require__(7); | |
| 6239 | +var aFunction = __webpack_require__(38); | |
| 6240 | +var ctx = __webpack_require__(31); | |
| 6241 | +var forOf = __webpack_require__(86); | |
| 6242 | + | |
| 6243 | +module.exports = function (COLLECTION) { | |
| 6244 | + $export($export.S, COLLECTION, { from: function from(source /* , mapFn, thisArg */) { | |
| 6245 | + var mapFn = arguments[1]; | |
| 6246 | + var mapping, A, n, cb; | |
| 6247 | + aFunction(this); | |
| 6248 | + mapping = mapFn !== undefined; | |
| 6249 | + if (mapping) aFunction(mapFn); | |
| 6250 | + if (source == undefined) return new this(); | |
| 6251 | + A = []; | |
| 6252 | + if (mapping) { | |
| 6253 | + n = 0; | |
| 6254 | + cb = ctx(mapFn, arguments[2], 2); | |
| 6255 | + forOf(source, false, function (nextItem) { | |
| 6256 | + A.push(cb(nextItem, n++)); | |
| 6257 | + }); | |
| 6258 | + } else { | |
| 6259 | + forOf(source, false, A.push, A); | |
| 5997 | 6260 | } |
| 6261 | + return new this(A); | |
| 6262 | + } }); | |
| 6263 | +}; | |
| 5998 | 6264 | |
| 5999 | - if (typeof action.type === 'undefined') { | |
| 6000 | - throw new Error( false ? 0 : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.'); | |
| 6265 | + | |
| 6266 | +/***/ }), | |
| 6267 | +/* 235 */ | |
| 6268 | +/***/ (function(module, exports) { | |
| 6269 | + | |
| 6270 | +module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' + | |
| 6271 | + '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'; | |
| 6272 | + | |
| 6273 | + | |
| 6274 | +/***/ }), | |
| 6275 | +/* 236 */ | |
| 6276 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6277 | + | |
| 6278 | +module.exports = __webpack_require__(249); | |
| 6279 | + | |
| 6280 | +/***/ }), | |
| 6281 | +/* 237 */, | |
| 6282 | +/* 238 */, | |
| 6283 | +/* 239 */ | |
| 6284 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6285 | + | |
| 6286 | +__webpack_require__(240); | |
| 6287 | +module.exports = __webpack_require__(6).Object.values; | |
| 6288 | + | |
| 6289 | + | |
| 6290 | +/***/ }), | |
| 6291 | +/* 240 */ | |
| 6292 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6293 | + | |
| 6294 | +// https://github.com/tc39/proposal-object-values-entries | |
| 6295 | +var $export = __webpack_require__(7); | |
| 6296 | +var $values = __webpack_require__(184)(false); | |
| 6297 | + | |
| 6298 | +$export($export.S, 'Object', { | |
| 6299 | + values: function values(it) { | |
| 6300 | + return $values(it); | |
| 6301 | + } | |
| 6302 | +}); | |
| 6303 | + | |
| 6304 | + | |
| 6305 | +/***/ }), | |
| 6306 | +/* 241 */ | |
| 6307 | +/***/ (function(module, exports) { | |
| 6308 | + | |
| 6309 | +module.exports = function (done, value) { | |
| 6310 | + return { value: value, done: !!done }; | |
| 6311 | +}; | |
| 6312 | + | |
| 6313 | + | |
| 6314 | +/***/ }), | |
| 6315 | +/* 242 */ | |
| 6316 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6317 | + | |
| 6318 | +"use strict"; | |
| 6319 | + | |
| 6320 | +var create = __webpack_require__(226); | |
| 6321 | +var descriptor = __webpack_require__(102); | |
| 6322 | +var setToStringTag = __webpack_require__(153); | |
| 6323 | +var IteratorPrototype = {}; | |
| 6324 | + | |
| 6325 | +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | |
| 6326 | +__webpack_require__(29)(IteratorPrototype, __webpack_require__(12)('iterator'), function () { return this; }); | |
| 6327 | + | |
| 6328 | +module.exports = function (Constructor, NAME, next) { | |
| 6329 | + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | |
| 6330 | + setToStringTag(Constructor, NAME + ' Iterator'); | |
| 6331 | +}; | |
| 6332 | + | |
| 6333 | + | |
| 6334 | +/***/ }), | |
| 6335 | +/* 243 */ | |
| 6336 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6337 | + | |
| 6338 | +var dP = __webpack_require__(45); | |
| 6339 | +var anObject = __webpack_require__(18); | |
| 6340 | +var getKeys = __webpack_require__(183); | |
| 6341 | + | |
| 6342 | +module.exports = __webpack_require__(27) ? Object.defineProperties : function defineProperties(O, Properties) { | |
| 6343 | + anObject(O); | |
| 6344 | + var keys = getKeys(Properties); | |
| 6345 | + var length = keys.length; | |
| 6346 | + var i = 0; | |
| 6347 | + var P; | |
| 6348 | + while (length > i) dP.f(O, P = keys[i++], Properties[P]); | |
| 6349 | + return O; | |
| 6350 | +}; | |
| 6351 | + | |
| 6352 | + | |
| 6353 | +/***/ }), | |
| 6354 | +/* 244 */ | |
| 6355 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6356 | + | |
| 6357 | +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | |
| 6358 | +var has = __webpack_require__(61); | |
| 6359 | +var toObject = __webpack_require__(96); | |
| 6360 | +var IE_PROTO = __webpack_require__(130)('IE_PROTO'); | |
| 6361 | +var ObjectProto = Object.prototype; | |
| 6362 | + | |
| 6363 | +module.exports = Object.getPrototypeOf || function (O) { | |
| 6364 | + O = toObject(O); | |
| 6365 | + if (has(O, IE_PROTO)) return O[IE_PROTO]; | |
| 6366 | + if (typeof O.constructor == 'function' && O instanceof O.constructor) { | |
| 6367 | + return O.constructor.prototype; | |
| 6368 | + } return O instanceof Object ? ObjectProto : null; | |
| 6369 | +}; | |
| 6370 | + | |
| 6371 | + | |
| 6372 | +/***/ }), | |
| 6373 | +/* 245 */ | |
| 6374 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6375 | + | |
| 6376 | +// 9.4.2.3 ArraySpeciesCreate(originalArray, length) | |
| 6377 | +var speciesConstructor = __webpack_require__(246); | |
| 6378 | + | |
| 6379 | +module.exports = function (original, length) { | |
| 6380 | + return new (speciesConstructor(original))(length); | |
| 6381 | +}; | |
| 6382 | + | |
| 6383 | + | |
| 6384 | +/***/ }), | |
| 6385 | +/* 246 */ | |
| 6386 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6387 | + | |
| 6388 | +var isObject = __webpack_require__(9); | |
| 6389 | +var isArray = __webpack_require__(97); | |
| 6390 | +var SPECIES = __webpack_require__(10)('species'); | |
| 6391 | + | |
| 6392 | +module.exports = function (original) { | |
| 6393 | + var C; | |
| 6394 | + if (isArray(original)) { | |
| 6395 | + C = original.constructor; | |
| 6396 | + // cross-realm fallback | |
| 6397 | + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; | |
| 6398 | + if (isObject(C)) { | |
| 6399 | + C = C[SPECIES]; | |
| 6400 | + if (C === null) C = undefined; | |
| 6001 | 6401 | } |
| 6402 | + } return C === undefined ? Array : C; | |
| 6403 | +}; | |
| 6002 | 6404 | |
| 6003 | - if (isDispatching) { | |
| 6004 | - throw new Error( false ? 0 : 'Reducers may not dispatch actions.'); | |
| 6405 | + | |
| 6406 | +/***/ }), | |
| 6407 | +/* 247 */ | |
| 6408 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6409 | + | |
| 6410 | +var _Array$isArray = __webpack_require__(81); | |
| 6411 | + | |
| 6412 | +function _arrayWithHoles(arr) { | |
| 6413 | + if (_Array$isArray(arr)) return arr; | |
| 6414 | +} | |
| 6415 | + | |
| 6416 | +module.exports = _arrayWithHoles; | |
| 6417 | + | |
| 6418 | +/***/ }), | |
| 6419 | +/* 248 */ | |
| 6420 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6421 | + | |
| 6422 | +var _getIterator = __webpack_require__(236); | |
| 6423 | + | |
| 6424 | +var _isIterable = __webpack_require__(209); | |
| 6425 | + | |
| 6426 | +var _Symbol = __webpack_require__(111); | |
| 6427 | + | |
| 6428 | +function _iterableToArrayLimit(arr, i) { | |
| 6429 | + if (typeof _Symbol === "undefined" || !_isIterable(Object(arr))) return; | |
| 6430 | + var _arr = []; | |
| 6431 | + var _n = true; | |
| 6432 | + var _d = false; | |
| 6433 | + var _e = undefined; | |
| 6434 | + | |
| 6435 | + try { | |
| 6436 | + for (var _i = _getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) { | |
| 6437 | + _arr.push(_s.value); | |
| 6438 | + | |
| 6439 | + if (i && _arr.length === i) break; | |
| 6005 | 6440 | } |
| 6006 | - | |
| 6441 | + } catch (err) { | |
| 6442 | + _d = true; | |
| 6443 | + _e = err; | |
| 6444 | + } finally { | |
| 6007 | 6445 | try { |
| 6008 | - isDispatching = true; | |
| 6009 | - currentState = currentReducer(currentState, action); | |
| 6446 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 6010 | 6447 | } finally { |
| 6011 | - isDispatching = false; | |
| 6448 | + if (_d) throw _e; | |
| 6012 | 6449 | } |
| 6450 | + } | |
| 6013 | 6451 | |
| 6014 | - var listeners = currentListeners = nextListeners; | |
| 6452 | + return _arr; | |
| 6453 | +} | |
| 6015 | 6454 | |
| 6016 | - for (var i = 0; i < listeners.length; i++) { | |
| 6017 | - var listener = listeners[i]; | |
| 6018 | - listener(); | |
| 6019 | - } | |
| 6455 | +module.exports = _iterableToArrayLimit; | |
| 6020 | 6456 | |
| 6021 | - return action; | |
| 6022 | - } | |
| 6023 | - /** | |
| 6024 | - * Replaces the reducer currently used by the store to calculate the state. | |
| 6025 | - * | |
| 6026 | - * You might need this if your app implements code splitting and you want to | |
| 6027 | - * load some of the reducers dynamically. You might also need this if you | |
| 6028 | - * implement a hot reloading mechanism for Redux. | |
| 6029 | - * | |
| 6030 | - * @param {Function} nextReducer The reducer for the store to use instead. | |
| 6031 | - * @returns {void} | |
| 6032 | - */ | |
| 6457 | +/***/ }), | |
| 6458 | +/* 249 */ | |
| 6459 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6033 | 6460 | |
| 6461 | +__webpack_require__(62); | |
| 6462 | +__webpack_require__(60); | |
| 6463 | +module.exports = __webpack_require__(250); | |
| 6034 | 6464 | |
| 6035 | - function replaceReducer(nextReducer) { | |
| 6036 | - if (typeof nextReducer !== 'function') { | |
| 6037 | - throw new Error( false ? 0 : "Expected the nextReducer to be a function. Instead, received: '" + kindOf(nextReducer)); | |
| 6038 | - } | |
| 6039 | 6465 | |
| 6040 | - currentReducer = nextReducer; // This action has a similiar effect to ActionTypes.INIT. | |
| 6041 | - // Any reducers that existed in both the new and old rootReducer | |
| 6042 | - // will receive the previous state. This effectively populates | |
| 6043 | - // the new state tree with any relevant data from the old one. | |
| 6466 | +/***/ }), | |
| 6467 | +/* 250 */ | |
| 6468 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6044 | 6469 | |
| 6045 | - dispatch({ | |
| 6046 | - type: ActionTypes.REPLACE | |
| 6047 | - }); | |
| 6048 | - } | |
| 6049 | - /** | |
| 6050 | - * Interoperability point for observable/reactive libraries. | |
| 6051 | - * @returns {observable} A minimal observable of state changes. | |
| 6052 | - * For more information, see the observable proposal: | |
| 6053 | - * https://github.com/tc39/proposal-observable | |
| 6054 | - */ | |
| 6470 | +var anObject = __webpack_require__(13); | |
| 6471 | +var get = __webpack_require__(112); | |
| 6472 | +module.exports = __webpack_require__(6).getIterator = function (it) { | |
| 6473 | + var iterFn = get(it); | |
| 6474 | + if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!'); | |
| 6475 | + return anObject(iterFn.call(it)); | |
| 6476 | +}; | |
| 6055 | 6477 | |
| 6056 | 6478 | |
| 6057 | - function observable() { | |
| 6058 | - var _ref; | |
| 6479 | +/***/ }), | |
| 6480 | +/* 251 */ | |
| 6481 | +/***/ (function(module, exports) { | |
| 6059 | 6482 | |
| 6060 | - var outerSubscribe = subscribe; | |
| 6061 | - return _ref = { | |
| 6483 | +function _nonIterableRest() { | |
| 6484 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 6485 | +} | |
| 6486 | + | |
| 6487 | +module.exports = _nonIterableRest; | |
| 6488 | + | |
| 6489 | +/***/ }), | |
| 6490 | +/* 252 */ | |
| 6491 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6492 | + | |
| 6493 | +"use strict"; | |
| 6494 | + | |
| 6495 | + | |
| 6496 | +var _interopRequireDefault = __webpack_require__(0); | |
| 6497 | + | |
| 6498 | +var _Object$defineProperty = __webpack_require__(1); | |
| 6499 | + | |
| 6500 | +_Object$defineProperty(exports, "__esModule", { | |
| 6501 | + value: true | |
| 6502 | +}); | |
| 6503 | + | |
| 6504 | +exports.default = void 0; | |
| 6505 | + | |
| 6506 | +__webpack_require__(39); | |
| 6507 | + | |
| 6508 | +var _isArray = _interopRequireDefault(__webpack_require__(81)); | |
| 6509 | + | |
| 6510 | +var _hasInstance = _interopRequireDefault(__webpack_require__(253)); | |
| 6511 | + | |
| 6512 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 6513 | + | |
| 6514 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 6515 | + | |
| 6516 | +var _get2 = _interopRequireDefault(__webpack_require__(25)); | |
| 6517 | + | |
| 6518 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16)); | |
| 6519 | + | |
| 6520 | +var InstanceType = /*#__PURE__*/function () { | |
| 6521 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 6522 | + key: _hasInstance.default, | |
| 6523 | + value: function value(target) { | |
| 6062 | 6524 | /** |
| 6063 | - * The minimal observable subscription method. | |
| 6064 | - * @param {Object} observer Any object that can be used as an observer. | |
| 6065 | - * The observer object should have a `next` method. | |
| 6066 | - * @returns {subscription} An object with an `unsubscribe` method that can | |
| 6067 | - * be used to unsubscribe the observable from the store, and prevent further | |
| 6068 | - * emission of values from the observable. | |
| 6525 | + * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class | |
| 6526 | + * its give's opportunity to mange capabilities of instanceOf operator. | |
| 6527 | + * saving current class each time will give option later to handle instanceOf manually. | |
| 6069 | 6528 | */ |
| 6070 | - subscribe: function subscribe(observer) { | |
| 6071 | - if (typeof observer !== 'object' || observer === null) { | |
| 6072 | - throw new Error( false ? 0 : "Expected the observer to be an object. Instead, received: '" + kindOf(observer) + "'"); | |
| 6529 | + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), _hasInstance.default, this).call(this, target); // Act normal when validate a class, which does not have instance type. | |
| 6530 | + | |
| 6531 | + if (target && !target.constructor.getInstanceType) { | |
| 6532 | + return result; | |
| 6533 | + } | |
| 6534 | + | |
| 6535 | + if (target) { | |
| 6536 | + if (!target.instanceTypes) { | |
| 6537 | + target.instanceTypes = []; | |
| 6073 | 6538 | } |
| 6074 | 6539 | |
| 6075 | - function observeState() { | |
| 6076 | - if (observer.next) { | |
| 6077 | - observer.next(getState()); | |
| 6540 | + if (!result) { | |
| 6541 | + if (this.getInstanceType() === target.constructor.getInstanceType()) { | |
| 6542 | + result = true; | |
| 6078 | 6543 | } |
| 6079 | 6544 | } |
| 6080 | 6545 | |
| 6081 | - observeState(); | |
| 6082 | - var unsubscribe = outerSubscribe(observeState); | |
| 6083 | - return { | |
| 6084 | - unsubscribe: unsubscribe | |
| 6085 | - }; | |
| 6546 | + if (result) { | |
| 6547 | + var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType(); | |
| 6548 | + | |
| 6549 | + if (-1 === target.instanceTypes.indexOf(name)) { | |
| 6550 | + target.instanceTypes.push(name); | |
| 6551 | + } | |
| 6552 | + } | |
| 6086 | 6553 | } |
| 6087 | - }, _ref[$$observable] = function () { | |
| 6088 | - return this; | |
| 6089 | - }, _ref; | |
| 6090 | - } // When a store is created, an "INIT" action is dispatched so that every | |
| 6091 | - // reducer returns their initial state. This effectively populates | |
| 6092 | - // the initial state tree. | |
| 6093 | 6554 | |
| 6555 | + if (!result && target) { | |
| 6556 | + // Check if the given 'target', is instance of known types. | |
| 6557 | + result = target.instanceTypes && (0, _isArray.default)(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType()); | |
| 6558 | + } | |
| 6094 | 6559 | |
| 6095 | - dispatch({ | |
| 6096 | - type: ActionTypes.INIT | |
| 6560 | + return result; | |
| 6561 | + } | |
| 6562 | + }]); | |
| 6563 | + | |
| 6564 | + function InstanceType() { | |
| 6565 | + var _this = this; | |
| 6566 | + | |
| 6567 | + (0, _classCallCheck2.default)(this, InstanceType); | |
| 6568 | + // Since anonymous classes sometimes do not get validated by babel, do it manually. | |
| 6569 | + var target = this instanceof InstanceType ? this.constructor : void 0; | |
| 6570 | + var prototypes = []; | |
| 6571 | + | |
| 6572 | + while (target.__proto__ && target.__proto__.name) { | |
| 6573 | + prototypes.push(target.__proto__); | |
| 6574 | + target = target.__proto__; | |
| 6575 | + } | |
| 6576 | + | |
| 6577 | + prototypes.reverse().forEach(function (proto) { | |
| 6578 | + return _this instanceof proto; | |
| 6579 | + }); | |
| 6580 | + } | |
| 6581 | + | |
| 6582 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 6583 | + key: "getInstanceType", | |
| 6584 | + value: function getInstanceType() { | |
| 6585 | + elementorModules.ForceMethodImplementation(); | |
| 6586 | + } | |
| 6587 | + }]); | |
| 6588 | + return InstanceType; | |
| 6589 | +}(); | |
| 6590 | + | |
| 6591 | +exports.default = InstanceType; | |
| 6592 | + | |
| 6593 | +/***/ }), | |
| 6594 | +/* 253 */ | |
| 6595 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6596 | + | |
| 6597 | +module.exports = __webpack_require__(254); | |
| 6598 | + | |
| 6599 | +/***/ }), | |
| 6600 | +/* 254 */ | |
| 6601 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6602 | + | |
| 6603 | +__webpack_require__(255); | |
| 6604 | +module.exports = __webpack_require__(63).f('hasInstance'); | |
| 6605 | + | |
| 6606 | + | |
| 6607 | +/***/ }), | |
| 6608 | +/* 255 */ | |
| 6609 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6610 | + | |
| 6611 | +"use strict"; | |
| 6612 | + | |
| 6613 | +var isObject = __webpack_require__(9); | |
| 6614 | +var getPrototypeOf = __webpack_require__(64); | |
| 6615 | +var HAS_INSTANCE = __webpack_require__(10)('hasInstance'); | |
| 6616 | +var FunctionProto = Function.prototype; | |
| 6617 | +// 19.2.3.6 Function.prototype[@@hasInstance](V) | |
| 6618 | +if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(15).f(FunctionProto, HAS_INSTANCE, { value: function (O) { | |
| 6619 | + if (typeof this != 'function' || !isObject(O)) return false; | |
| 6620 | + if (!isObject(this.prototype)) return O instanceof this; | |
| 6621 | + // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: | |
| 6622 | + while (O = getPrototypeOf(O)) if (this.prototype === O) return true; | |
| 6623 | + return false; | |
| 6624 | +} }); | |
| 6625 | + | |
| 6626 | + | |
| 6627 | +/***/ }), | |
| 6628 | +/* 256 */, | |
| 6629 | +/* 257 */ | |
| 6630 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6631 | + | |
| 6632 | +__webpack_require__(100); | |
| 6633 | +__webpack_require__(60); | |
| 6634 | +__webpack_require__(62); | |
| 6635 | +__webpack_require__(258); | |
| 6636 | +__webpack_require__(261); | |
| 6637 | +__webpack_require__(262); | |
| 6638 | +module.exports = __webpack_require__(6).Promise; | |
| 6639 | + | |
| 6640 | + | |
| 6641 | +/***/ }), | |
| 6642 | +/* 258 */ | |
| 6643 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6644 | + | |
| 6645 | +"use strict"; | |
| 6646 | + | |
| 6647 | +var LIBRARY = __webpack_require__(47); | |
| 6648 | +var global = __webpack_require__(8); | |
| 6649 | +var ctx = __webpack_require__(31); | |
| 6650 | +var classof = __webpack_require__(101); | |
| 6651 | +var $export = __webpack_require__(7); | |
| 6652 | +var isObject = __webpack_require__(9); | |
| 6653 | +var aFunction = __webpack_require__(38); | |
| 6654 | +var anInstance = __webpack_require__(125); | |
| 6655 | +var forOf = __webpack_require__(86); | |
| 6656 | +var speciesConstructor = __webpack_require__(205); | |
| 6657 | +var task = __webpack_require__(206).set; | |
| 6658 | +var microtask = __webpack_require__(259)(); | |
| 6659 | +var newPromiseCapabilityModule = __webpack_require__(144); | |
| 6660 | +var perform = __webpack_require__(207); | |
| 6661 | +var userAgent = __webpack_require__(260); | |
| 6662 | +var promiseResolve = __webpack_require__(208); | |
| 6663 | +var PROMISE = 'Promise'; | |
| 6664 | +var TypeError = global.TypeError; | |
| 6665 | +var process = global.process; | |
| 6666 | +var versions = process && process.versions; | |
| 6667 | +var v8 = versions && versions.v8 || ''; | |
| 6668 | +var $Promise = global[PROMISE]; | |
| 6669 | +var isNode = classof(process) == 'process'; | |
| 6670 | +var empty = function () { /* empty */ }; | |
| 6671 | +var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper; | |
| 6672 | +var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f; | |
| 6673 | + | |
| 6674 | +var USE_NATIVE = !!function () { | |
| 6675 | + try { | |
| 6676 | + // correct subclassing with @@species support | |
| 6677 | + var promise = $Promise.resolve(1); | |
| 6678 | + var FakePromise = (promise.constructor = {})[__webpack_require__(10)('species')] = function (exec) { | |
| 6679 | + exec(empty, empty); | |
| 6680 | + }; | |
| 6681 | + // unhandled rejections tracking support, NodeJS Promise without it fails @@species test | |
| 6682 | + return (isNode || typeof PromiseRejectionEvent == 'function') | |
| 6683 | + && promise.then(empty) instanceof FakePromise | |
| 6684 | + // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables | |
| 6685 | + // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 | |
| 6686 | + // we can't detect it synchronously, so just check versions | |
| 6687 | + && v8.indexOf('6.6') !== 0 | |
| 6688 | + && userAgent.indexOf('Chrome/66') === -1; | |
| 6689 | + } catch (e) { /* empty */ } | |
| 6690 | +}(); | |
| 6691 | + | |
| 6692 | +// helpers | |
| 6693 | +var isThenable = function (it) { | |
| 6694 | + var then; | |
| 6695 | + return isObject(it) && typeof (then = it.then) == 'function' ? then : false; | |
| 6696 | +}; | |
| 6697 | +var notify = function (promise, isReject) { | |
| 6698 | + if (promise._n) return; | |
| 6699 | + promise._n = true; | |
| 6700 | + var chain = promise._c; | |
| 6701 | + microtask(function () { | |
| 6702 | + var value = promise._v; | |
| 6703 | + var ok = promise._s == 1; | |
| 6704 | + var i = 0; | |
| 6705 | + var run = function (reaction) { | |
| 6706 | + var handler = ok ? reaction.ok : reaction.fail; | |
| 6707 | + var resolve = reaction.resolve; | |
| 6708 | + var reject = reaction.reject; | |
| 6709 | + var domain = reaction.domain; | |
| 6710 | + var result, then, exited; | |
| 6711 | + try { | |
| 6712 | + if (handler) { | |
| 6713 | + if (!ok) { | |
| 6714 | + if (promise._h == 2) onHandleUnhandled(promise); | |
| 6715 | + promise._h = 1; | |
| 6716 | + } | |
| 6717 | + if (handler === true) result = value; | |
| 6718 | + else { | |
| 6719 | + if (domain) domain.enter(); | |
| 6720 | + result = handler(value); // may throw | |
| 6721 | + if (domain) { | |
| 6722 | + domain.exit(); | |
| 6723 | + exited = true; | |
| 6724 | + } | |
| 6725 | + } | |
| 6726 | + if (result === reaction.promise) { | |
| 6727 | + reject(TypeError('Promise-chain cycle')); | |
| 6728 | + } else if (then = isThenable(result)) { | |
| 6729 | + then.call(result, resolve, reject); | |
| 6730 | + } else resolve(result); | |
| 6731 | + } else reject(value); | |
| 6732 | + } catch (e) { | |
| 6733 | + if (domain && !exited) domain.exit(); | |
| 6734 | + reject(e); | |
| 6735 | + } | |
| 6736 | + }; | |
| 6737 | + while (chain.length > i) run(chain[i++]); // variable length - can't use forEach | |
| 6738 | + promise._c = []; | |
| 6739 | + promise._n = false; | |
| 6740 | + if (isReject && !promise._h) onUnhandled(promise); | |
| 6097 | 6741 | }); |
| 6098 | - return _ref2 = { | |
| 6099 | - dispatch: dispatch, | |
| 6100 | - subscribe: subscribe, | |
| 6101 | - getState: getState, | |
| 6102 | - replaceReducer: replaceReducer | |
| 6103 | - }, _ref2[$$observable] = observable, _ref2; | |
| 6742 | +}; | |
| 6743 | +var onUnhandled = function (promise) { | |
| 6744 | + task.call(global, function () { | |
| 6745 | + var value = promise._v; | |
| 6746 | + var unhandled = isUnhandled(promise); | |
| 6747 | + var result, handler, console; | |
| 6748 | + if (unhandled) { | |
| 6749 | + result = perform(function () { | |
| 6750 | + if (isNode) { | |
| 6751 | + process.emit('unhandledRejection', value, promise); | |
| 6752 | + } else if (handler = global.onunhandledrejection) { | |
| 6753 | + handler({ promise: promise, reason: value }); | |
| 6754 | + } else if ((console = global.console) && console.error) { | |
| 6755 | + console.error('Unhandled promise rejection', value); | |
| 6756 | + } | |
| 6757 | + }); | |
| 6758 | + // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should | |
| 6759 | + promise._h = isNode || isUnhandled(promise) ? 2 : 1; | |
| 6760 | + } promise._a = undefined; | |
| 6761 | + if (unhandled && result.e) throw result.v; | |
| 6762 | + }); | |
| 6763 | +}; | |
| 6764 | +var isUnhandled = function (promise) { | |
| 6765 | + return promise._h !== 1 && (promise._a || promise._c).length === 0; | |
| 6766 | +}; | |
| 6767 | +var onHandleUnhandled = function (promise) { | |
| 6768 | + task.call(global, function () { | |
| 6769 | + var handler; | |
| 6770 | + if (isNode) { | |
| 6771 | + process.emit('rejectionHandled', promise); | |
| 6772 | + } else if (handler = global.onrejectionhandled) { | |
| 6773 | + handler({ promise: promise, reason: promise._v }); | |
| 6774 | + } | |
| 6775 | + }); | |
| 6776 | +}; | |
| 6777 | +var $reject = function (value) { | |
| 6778 | + var promise = this; | |
| 6779 | + if (promise._d) return; | |
| 6780 | + promise._d = true; | |
| 6781 | + promise = promise._w || promise; // unwrap | |
| 6782 | + promise._v = value; | |
| 6783 | + promise._s = 2; | |
| 6784 | + if (!promise._a) promise._a = promise._c.slice(); | |
| 6785 | + notify(promise, true); | |
| 6786 | +}; | |
| 6787 | +var $resolve = function (value) { | |
| 6788 | + var promise = this; | |
| 6789 | + var then; | |
| 6790 | + if (promise._d) return; | |
| 6791 | + promise._d = true; | |
| 6792 | + promise = promise._w || promise; // unwrap | |
| 6793 | + try { | |
| 6794 | + if (promise === value) throw TypeError("Promise can't be resolved itself"); | |
| 6795 | + if (then = isThenable(value)) { | |
| 6796 | + microtask(function () { | |
| 6797 | + var wrapper = { _w: promise, _d: false }; // wrap | |
| 6798 | + try { | |
| 6799 | + then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1)); | |
| 6800 | + } catch (e) { | |
| 6801 | + $reject.call(wrapper, e); | |
| 6802 | + } | |
| 6803 | + }); | |
| 6804 | + } else { | |
| 6805 | + promise._v = value; | |
| 6806 | + promise._s = 1; | |
| 6807 | + notify(promise, false); | |
| 6808 | + } | |
| 6809 | + } catch (e) { | |
| 6810 | + $reject.call({ _w: promise, _d: false }, e); // wrap | |
| 6811 | + } | |
| 6812 | +}; | |
| 6813 | + | |
| 6814 | +// constructor polyfill | |
| 6815 | +if (!USE_NATIVE) { | |
| 6816 | + // 25.4.3.1 Promise(executor) | |
| 6817 | + $Promise = function Promise(executor) { | |
| 6818 | + anInstance(this, $Promise, PROMISE, '_h'); | |
| 6819 | + aFunction(executor); | |
| 6820 | + Internal.call(this); | |
| 6821 | + try { | |
| 6822 | + executor(ctx($resolve, this, 1), ctx($reject, this, 1)); | |
| 6823 | + } catch (err) { | |
| 6824 | + $reject.call(this, err); | |
| 6825 | + } | |
| 6826 | + }; | |
| 6827 | + // eslint-disable-next-line no-unused-vars | |
| 6828 | + Internal = function Promise(executor) { | |
| 6829 | + this._c = []; // <- awaiting reactions | |
| 6830 | + this._a = undefined; // <- checked in isUnhandled reactions | |
| 6831 | + this._s = 0; // <- state | |
| 6832 | + this._d = false; // <- done | |
| 6833 | + this._v = undefined; // <- value | |
| 6834 | + this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled | |
| 6835 | + this._n = false; // <- notify | |
| 6836 | + }; | |
| 6837 | + Internal.prototype = __webpack_require__(126)($Promise.prototype, { | |
| 6838 | + // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected) | |
| 6839 | + then: function then(onFulfilled, onRejected) { | |
| 6840 | + var reaction = newPromiseCapability(speciesConstructor(this, $Promise)); | |
| 6841 | + reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true; | |
| 6842 | + reaction.fail = typeof onRejected == 'function' && onRejected; | |
| 6843 | + reaction.domain = isNode ? process.domain : undefined; | |
| 6844 | + this._c.push(reaction); | |
| 6845 | + if (this._a) this._a.push(reaction); | |
| 6846 | + if (this._s) notify(this, false); | |
| 6847 | + return reaction.promise; | |
| 6848 | + }, | |
| 6849 | + // 25.4.5.1 Promise.prototype.catch(onRejected) | |
| 6850 | + 'catch': function (onRejected) { | |
| 6851 | + return this.then(undefined, onRejected); | |
| 6852 | + } | |
| 6853 | + }); | |
| 6854 | + OwnPromiseCapability = function () { | |
| 6855 | + var promise = new Internal(); | |
| 6856 | + this.promise = promise; | |
| 6857 | + this.resolve = ctx($resolve, promise, 1); | |
| 6858 | + this.reject = ctx($reject, promise, 1); | |
| 6859 | + }; | |
| 6860 | + newPromiseCapabilityModule.f = newPromiseCapability = function (C) { | |
| 6861 | + return C === $Promise || C === Wrapper | |
| 6862 | + ? new OwnPromiseCapability(C) | |
| 6863 | + : newGenericPromiseCapability(C); | |
| 6864 | + }; | |
| 6104 | 6865 | } |
| 6105 | -/** | |
| 6106 | - * Creates a Redux store that holds the state tree. | |
| 6107 | - * | |
| 6108 | - * **We recommend using `configureStore` from the | |
| 6109 | - * `@reduxjs/toolkit` package**, which replaces `createStore`: | |
| 6110 | - * **https://redux.js.org/introduction/why-rtk-is-redux-today** | |
| 6111 | - * | |
| 6112 | - * The only way to change the data in the store is to call `dispatch()` on it. | |
| 6113 | - * | |
| 6114 | - * There should only be a single store in your app. To specify how different | |
| 6115 | - * parts of the state tree respond to actions, you may combine several reducers | |
| 6116 | - * into a single reducer function by using `combineReducers`. | |
| 6117 | - * | |
| 6118 | - * @param {Function} reducer A function that returns the next state tree, given | |
| 6119 | - * the current state tree and the action to handle. | |
| 6120 | - * | |
| 6121 | - * @param {any} [preloadedState] The initial state. You may optionally specify it | |
| 6122 | - * to hydrate the state from the server in universal apps, or to restore a | |
| 6123 | - * previously serialized user session. | |
| 6124 | - * If you use `combineReducers` to produce the root reducer function, this must be | |
| 6125 | - * an object with the same shape as `combineReducers` keys. | |
| 6126 | - * | |
| 6127 | - * @param {Function} [enhancer] The store enhancer. You may optionally specify it | |
| 6128 | - * to enhance the store with third-party capabilities such as middleware, | |
| 6129 | - * time travel, persistence, etc. The only store enhancer that ships with Redux | |
| 6130 | - * is `applyMiddleware()`. | |
| 6131 | - * | |
| 6132 | - * @returns {Store} A Redux store that lets you read the state, dispatch actions | |
| 6133 | - * and subscribe to changes. | |
| 6134 | - */ | |
| 6135 | 6866 | |
| 6136 | -var legacy_createStore = createStore; | |
| 6867 | +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise }); | |
| 6868 | +__webpack_require__(53)($Promise, PROMISE); | |
| 6869 | +__webpack_require__(225)(PROMISE); | |
| 6870 | +Wrapper = __webpack_require__(6)[PROMISE]; | |
| 6137 | 6871 | |
| 6138 | -/** | |
| 6139 | - * Prints a warning in the console if it exists. | |
| 6140 | - * | |
| 6141 | - * @param {String} message The warning message. | |
| 6142 | - * @returns {void} | |
| 6143 | - */ | |
| 6144 | -function warning(message) { | |
| 6145 | - /* eslint-disable no-console */ | |
| 6146 | - if (typeof console !== 'undefined' && typeof console.error === 'function') { | |
| 6147 | - console.error(message); | |
| 6872 | +// statics | |
| 6873 | +$export($export.S + $export.F * !USE_NATIVE, PROMISE, { | |
| 6874 | + // 25.4.4.5 Promise.reject(r) | |
| 6875 | + reject: function reject(r) { | |
| 6876 | + var capability = newPromiseCapability(this); | |
| 6877 | + var $$reject = capability.reject; | |
| 6878 | + $$reject(r); | |
| 6879 | + return capability.promise; | |
| 6148 | 6880 | } |
| 6149 | - /* eslint-enable no-console */ | |
| 6881 | +}); | |
| 6882 | +$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, { | |
| 6883 | + // 25.4.4.6 Promise.resolve(x) | |
| 6884 | + resolve: function resolve(x) { | |
| 6885 | + return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x); | |
| 6886 | + } | |
| 6887 | +}); | |
| 6888 | +$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(152)(function (iter) { | |
| 6889 | + $Promise.all(iter)['catch'](empty); | |
| 6890 | +})), PROMISE, { | |
| 6891 | + // 25.4.4.1 Promise.all(iterable) | |
| 6892 | + all: function all(iterable) { | |
| 6893 | + var C = this; | |
| 6894 | + var capability = newPromiseCapability(C); | |
| 6895 | + var resolve = capability.resolve; | |
| 6896 | + var reject = capability.reject; | |
| 6897 | + var result = perform(function () { | |
| 6898 | + var values = []; | |
| 6899 | + var index = 0; | |
| 6900 | + var remaining = 1; | |
| 6901 | + forOf(iterable, false, function (promise) { | |
| 6902 | + var $index = index++; | |
| 6903 | + var alreadyCalled = false; | |
| 6904 | + values.push(undefined); | |
| 6905 | + remaining++; | |
| 6906 | + C.resolve(promise).then(function (value) { | |
| 6907 | + if (alreadyCalled) return; | |
| 6908 | + alreadyCalled = true; | |
| 6909 | + values[$index] = value; | |
| 6910 | + --remaining || resolve(values); | |
| 6911 | + }, reject); | |
| 6912 | + }); | |
| 6913 | + --remaining || resolve(values); | |
| 6914 | + }); | |
| 6915 | + if (result.e) reject(result.v); | |
| 6916 | + return capability.promise; | |
| 6917 | + }, | |
| 6918 | + // 25.4.4.4 Promise.race(iterable) | |
| 6919 | + race: function race(iterable) { | |
| 6920 | + var C = this; | |
| 6921 | + var capability = newPromiseCapability(C); | |
| 6922 | + var reject = capability.reject; | |
| 6923 | + var result = perform(function () { | |
| 6924 | + forOf(iterable, false, function (promise) { | |
| 6925 | + C.resolve(promise).then(capability.resolve, reject); | |
| 6926 | + }); | |
| 6927 | + }); | |
| 6928 | + if (result.e) reject(result.v); | |
| 6929 | + return capability.promise; | |
| 6930 | + } | |
| 6931 | +}); | |
| 6150 | 6932 | |
| 6151 | 6933 | |
| 6152 | - try { | |
| 6153 | - // This error was thrown as a convenience so that if you enable | |
| 6154 | - // "break on all exceptions" in your console, | |
| 6155 | - // it would pause the execution at this line. | |
| 6156 | - throw new Error(message); | |
| 6157 | - } catch (e) {} // eslint-disable-line no-empty | |
| 6934 | +/***/ }), | |
| 6935 | +/* 259 */ | |
| 6936 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6158 | 6937 | |
| 6159 | -} | |
| 6938 | +var global = __webpack_require__(8); | |
| 6939 | +var macrotask = __webpack_require__(206).set; | |
| 6940 | +var Observer = global.MutationObserver || global.WebKitMutationObserver; | |
| 6941 | +var process = global.process; | |
| 6942 | +var Promise = global.Promise; | |
| 6943 | +var isNode = __webpack_require__(56)(process) == 'process'; | |
| 6160 | 6944 | |
| 6161 | -function getUnexpectedStateShapeWarningMessage(inputState, reducers, action, unexpectedKeyCache) { | |
| 6162 | - var reducerKeys = Object.keys(reducers); | |
| 6163 | - var argumentName = action && action.type === ActionTypes.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer'; | |
| 6945 | +module.exports = function () { | |
| 6946 | + var head, last, notify; | |
| 6164 | 6947 | |
| 6165 | - if (reducerKeys.length === 0) { | |
| 6166 | - return 'Store does not have a valid reducer. Make sure the argument passed ' + 'to combineReducers is an object whose values are reducers.'; | |
| 6948 | + var flush = function () { | |
| 6949 | + var parent, fn; | |
| 6950 | + if (isNode && (parent = process.domain)) parent.exit(); | |
| 6951 | + while (head) { | |
| 6952 | + fn = head.fn; | |
| 6953 | + head = head.next; | |
| 6954 | + try { | |
| 6955 | + fn(); | |
| 6956 | + } catch (e) { | |
| 6957 | + if (head) notify(); | |
| 6958 | + else last = undefined; | |
| 6959 | + throw e; | |
| 6960 | + } | |
| 6961 | + } last = undefined; | |
| 6962 | + if (parent) parent.enter(); | |
| 6963 | + }; | |
| 6964 | + | |
| 6965 | + // Node.js | |
| 6966 | + if (isNode) { | |
| 6967 | + notify = function () { | |
| 6968 | + process.nextTick(flush); | |
| 6969 | + }; | |
| 6970 | + // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339 | |
| 6971 | + } else if (Observer && !(global.navigator && global.navigator.standalone)) { | |
| 6972 | + var toggle = true; | |
| 6973 | + var node = document.createTextNode(''); | |
| 6974 | + new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new | |
| 6975 | + notify = function () { | |
| 6976 | + node.data = toggle = !toggle; | |
| 6977 | + }; | |
| 6978 | + // environments with maybe non-completely correct, but existent Promise | |
| 6979 | + } else if (Promise && Promise.resolve) { | |
| 6980 | + // Promise.resolve without an argument throws an error in LG WebOS 2 | |
| 6981 | + var promise = Promise.resolve(undefined); | |
| 6982 | + notify = function () { | |
| 6983 | + promise.then(flush); | |
| 6984 | + }; | |
| 6985 | + // for other environments - macrotask based on: | |
| 6986 | + // - setImmediate | |
| 6987 | + // - MessageChannel | |
| 6988 | + // - window.postMessag | |
| 6989 | + // - onreadystatechange | |
| 6990 | + // - setTimeout | |
| 6991 | + } else { | |
| 6992 | + notify = function () { | |
| 6993 | + // strange IE + webpack dev server bug - use .call(global) | |
| 6994 | + macrotask.call(global, flush); | |
| 6995 | + }; | |
| 6167 | 6996 | } |
| 6168 | 6997 | |
| 6169 | - if (!isPlainObject(inputState)) { | |
| 6170 | - return "The " + argumentName + " has unexpected type of \"" + kindOf(inputState) + "\". Expected argument to be an object with the following " + ("keys: \"" + reducerKeys.join('", "') + "\""); | |
| 6998 | + return function (fn) { | |
| 6999 | + var task = { fn: fn, next: undefined }; | |
| 7000 | + if (last) last.next = task; | |
| 7001 | + if (!head) { | |
| 7002 | + head = task; | |
| 7003 | + notify(); | |
| 7004 | + } last = task; | |
| 7005 | + }; | |
| 7006 | +}; | |
| 7007 | + | |
| 7008 | + | |
| 7009 | +/***/ }), | |
| 7010 | +/* 260 */ | |
| 7011 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7012 | + | |
| 7013 | +var global = __webpack_require__(8); | |
| 7014 | +var navigator = global.navigator; | |
| 7015 | + | |
| 7016 | +module.exports = navigator && navigator.userAgent || ''; | |
| 7017 | + | |
| 7018 | + | |
| 7019 | +/***/ }), | |
| 7020 | +/* 261 */ | |
| 7021 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7022 | + | |
| 7023 | +"use strict"; | |
| 7024 | +// https://github.com/tc39/proposal-promise-finally | |
| 7025 | + | |
| 7026 | +var $export = __webpack_require__(7); | |
| 7027 | +var core = __webpack_require__(6); | |
| 7028 | +var global = __webpack_require__(8); | |
| 7029 | +var speciesConstructor = __webpack_require__(205); | |
| 7030 | +var promiseResolve = __webpack_require__(208); | |
| 7031 | + | |
| 7032 | +$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) { | |
| 7033 | + var C = speciesConstructor(this, core.Promise || global.Promise); | |
| 7034 | + var isFunction = typeof onFinally == 'function'; | |
| 7035 | + return this.then( | |
| 7036 | + isFunction ? function (x) { | |
| 7037 | + return promiseResolve(C, onFinally()).then(function () { return x; }); | |
| 7038 | + } : onFinally, | |
| 7039 | + isFunction ? function (e) { | |
| 7040 | + return promiseResolve(C, onFinally()).then(function () { throw e; }); | |
| 7041 | + } : onFinally | |
| 7042 | + ); | |
| 7043 | +} }); | |
| 7044 | + | |
| 7045 | + | |
| 7046 | +/***/ }), | |
| 7047 | +/* 262 */ | |
| 7048 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7049 | + | |
| 7050 | +"use strict"; | |
| 7051 | + | |
| 7052 | +// https://github.com/tc39/proposal-promise-try | |
| 7053 | +var $export = __webpack_require__(7); | |
| 7054 | +var newPromiseCapability = __webpack_require__(144); | |
| 7055 | +var perform = __webpack_require__(207); | |
| 7056 | + | |
| 7057 | +$export($export.S, 'Promise', { 'try': function (callbackfn) { | |
| 7058 | + var promiseCapability = newPromiseCapability.f(this); | |
| 7059 | + var result = perform(callbackfn); | |
| 7060 | + (result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v); | |
| 7061 | + return promiseCapability.promise; | |
| 7062 | +} }); | |
| 7063 | + | |
| 7064 | + | |
| 7065 | +/***/ }), | |
| 7066 | +/* 263 */ | |
| 7067 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7068 | + | |
| 7069 | +module.exports = __webpack_require__(264); | |
| 7070 | + | |
| 7071 | +/***/ }), | |
| 7072 | +/* 264 */ | |
| 7073 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7074 | + | |
| 7075 | +__webpack_require__(100); | |
| 7076 | +__webpack_require__(62); | |
| 7077 | +__webpack_require__(265); | |
| 7078 | +__webpack_require__(267); | |
| 7079 | +__webpack_require__(268); | |
| 7080 | +module.exports = __webpack_require__(6).WeakMap; | |
| 7081 | + | |
| 7082 | + | |
| 7083 | +/***/ }), | |
| 7084 | +/* 265 */ | |
| 7085 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7086 | + | |
| 7087 | +"use strict"; | |
| 7088 | + | |
| 7089 | +var global = __webpack_require__(8); | |
| 7090 | +var each = __webpack_require__(136)(0); | |
| 7091 | +var redefine = __webpack_require__(93); | |
| 7092 | +var meta = __webpack_require__(70); | |
| 7093 | +var assign = __webpack_require__(210); | |
| 7094 | +var weak = __webpack_require__(266); | |
| 7095 | +var isObject = __webpack_require__(9); | |
| 7096 | +var validate = __webpack_require__(121); | |
| 7097 | +var NATIVE_WEAK_MAP = __webpack_require__(121); | |
| 7098 | +var IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global; | |
| 7099 | +var WEAK_MAP = 'WeakMap'; | |
| 7100 | +var getWeak = meta.getWeak; | |
| 7101 | +var isExtensible = Object.isExtensible; | |
| 7102 | +var uncaughtFrozenStore = weak.ufstore; | |
| 7103 | +var InternalMap; | |
| 7104 | + | |
| 7105 | +var wrapper = function (get) { | |
| 7106 | + return function WeakMap() { | |
| 7107 | + return get(this, arguments.length > 0 ? arguments[0] : undefined); | |
| 7108 | + }; | |
| 7109 | +}; | |
| 7110 | + | |
| 7111 | +var methods = { | |
| 7112 | + // 23.3.3.3 WeakMap.prototype.get(key) | |
| 7113 | + get: function get(key) { | |
| 7114 | + if (isObject(key)) { | |
| 7115 | + var data = getWeak(key); | |
| 7116 | + if (data === true) return uncaughtFrozenStore(validate(this, WEAK_MAP)).get(key); | |
| 7117 | + return data ? data[this._i] : undefined; | |
| 7118 | + } | |
| 7119 | + }, | |
| 7120 | + // 23.3.3.5 WeakMap.prototype.set(key, value) | |
| 7121 | + set: function set(key, value) { | |
| 7122 | + return weak.def(validate(this, WEAK_MAP), key, value); | |
| 6171 | 7123 | } |
| 7124 | +}; | |
| 6172 | 7125 | |
| 6173 | - var unexpectedKeys = Object.keys(inputState).filter(function (key) { | |
| 6174 | - return !reducers.hasOwnProperty(key) && !unexpectedKeyCache[key]; | |
| 7126 | +// 23.3 WeakMap Objects | |
| 7127 | +var $WeakMap = module.exports = __webpack_require__(232)(WEAK_MAP, wrapper, methods, weak, true, true); | |
| 7128 | + | |
| 7129 | +// IE11 WeakMap frozen keys fix | |
| 7130 | +if (NATIVE_WEAK_MAP && IS_IE11) { | |
| 7131 | + InternalMap = weak.getConstructor(wrapper, WEAK_MAP); | |
| 7132 | + assign(InternalMap.prototype, methods); | |
| 7133 | + meta.NEED = true; | |
| 7134 | + each(['delete', 'has', 'get', 'set'], function (key) { | |
| 7135 | + var proto = $WeakMap.prototype; | |
| 7136 | + var method = proto[key]; | |
| 7137 | + redefine(proto, key, function (a, b) { | |
| 7138 | + // store frozen objects on internal weakmap shim | |
| 7139 | + if (isObject(a) && !isExtensible(a)) { | |
| 7140 | + if (!this._f) this._f = new InternalMap(); | |
| 7141 | + var result = this._f[key](a, b); | |
| 7142 | + return key == 'set' ? this : result; | |
| 7143 | + // store all the rest on native weakmap | |
| 7144 | + } return method.call(this, a, b); | |
| 7145 | + }); | |
| 6175 | 7146 | }); |
| 6176 | - unexpectedKeys.forEach(function (key) { | |
| 6177 | - unexpectedKeyCache[key] = true; | |
| 7147 | +} | |
| 7148 | + | |
| 7149 | + | |
| 7150 | +/***/ }), | |
| 7151 | +/* 266 */ | |
| 7152 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7153 | + | |
| 7154 | +"use strict"; | |
| 7155 | + | |
| 7156 | +var redefineAll = __webpack_require__(126); | |
| 7157 | +var getWeak = __webpack_require__(70).getWeak; | |
| 7158 | +var anObject = __webpack_require__(13); | |
| 7159 | +var isObject = __webpack_require__(9); | |
| 7160 | +var anInstance = __webpack_require__(125); | |
| 7161 | +var forOf = __webpack_require__(86); | |
| 7162 | +var createArrayMethod = __webpack_require__(136); | |
| 7163 | +var $has = __webpack_require__(19); | |
| 7164 | +var validate = __webpack_require__(121); | |
| 7165 | +var arrayFind = createArrayMethod(5); | |
| 7166 | +var arrayFindIndex = createArrayMethod(6); | |
| 7167 | +var id = 0; | |
| 7168 | + | |
| 7169 | +// fallback for uncaught frozen keys | |
| 7170 | +var uncaughtFrozenStore = function (that) { | |
| 7171 | + return that._l || (that._l = new UncaughtFrozenStore()); | |
| 7172 | +}; | |
| 7173 | +var UncaughtFrozenStore = function () { | |
| 7174 | + this.a = []; | |
| 7175 | +}; | |
| 7176 | +var findUncaughtFrozen = function (store, key) { | |
| 7177 | + return arrayFind(store.a, function (it) { | |
| 7178 | + return it[0] === key; | |
| 6178 | 7179 | }); |
| 6179 | - if (action && action.type === ActionTypes.REPLACE) return; | |
| 7180 | +}; | |
| 7181 | +UncaughtFrozenStore.prototype = { | |
| 7182 | + get: function (key) { | |
| 7183 | + var entry = findUncaughtFrozen(this, key); | |
| 7184 | + if (entry) return entry[1]; | |
| 7185 | + }, | |
| 7186 | + has: function (key) { | |
| 7187 | + return !!findUncaughtFrozen(this, key); | |
| 7188 | + }, | |
| 7189 | + set: function (key, value) { | |
| 7190 | + var entry = findUncaughtFrozen(this, key); | |
| 7191 | + if (entry) entry[1] = value; | |
| 7192 | + else this.a.push([key, value]); | |
| 7193 | + }, | |
| 7194 | + 'delete': function (key) { | |
| 7195 | + var index = arrayFindIndex(this.a, function (it) { | |
| 7196 | + return it[0] === key; | |
| 7197 | + }); | |
| 7198 | + if (~index) this.a.splice(index, 1); | |
| 7199 | + return !!~index; | |
| 7200 | + } | |
| 7201 | +}; | |
| 6180 | 7202 | |
| 6181 | - if (unexpectedKeys.length > 0) { | |
| 6182 | - 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."); | |
| 7203 | +module.exports = { | |
| 7204 | + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { | |
| 7205 | + var C = wrapper(function (that, iterable) { | |
| 7206 | + anInstance(that, C, NAME, '_i'); | |
| 7207 | + that._t = NAME; // collection type | |
| 7208 | + that._i = id++; // collection id | |
| 7209 | + that._l = undefined; // leak store for uncaught frozen objects | |
| 7210 | + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); | |
| 7211 | + }); | |
| 7212 | + redefineAll(C.prototype, { | |
| 7213 | + // 23.3.3.2 WeakMap.prototype.delete(key) | |
| 7214 | + // 23.4.3.3 WeakSet.prototype.delete(value) | |
| 7215 | + 'delete': function (key) { | |
| 7216 | + if (!isObject(key)) return false; | |
| 7217 | + var data = getWeak(key); | |
| 7218 | + if (data === true) return uncaughtFrozenStore(validate(this, NAME))['delete'](key); | |
| 7219 | + return data && $has(data, this._i) && delete data[this._i]; | |
| 7220 | + }, | |
| 7221 | + // 23.3.3.4 WeakMap.prototype.has(key) | |
| 7222 | + // 23.4.3.4 WeakSet.prototype.has(value) | |
| 7223 | + has: function has(key) { | |
| 7224 | + if (!isObject(key)) return false; | |
| 7225 | + var data = getWeak(key); | |
| 7226 | + if (data === true) return uncaughtFrozenStore(validate(this, NAME)).has(key); | |
| 7227 | + return data && $has(data, this._i); | |
| 7228 | + } | |
| 7229 | + }); | |
| 7230 | + return C; | |
| 7231 | + }, | |
| 7232 | + def: function (that, key, value) { | |
| 7233 | + var data = getWeak(anObject(key), true); | |
| 7234 | + if (data === true) uncaughtFrozenStore(that).set(key, value); | |
| 7235 | + else data[that._i] = value; | |
| 7236 | + return that; | |
| 7237 | + }, | |
| 7238 | + ufstore: uncaughtFrozenStore | |
| 7239 | +}; | |
| 7240 | + | |
| 7241 | + | |
| 7242 | +/***/ }), | |
| 7243 | +/* 267 */ | |
| 7244 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7245 | + | |
| 7246 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of | |
| 7247 | +__webpack_require__(233)('WeakMap'); | |
| 7248 | + | |
| 7249 | + | |
| 7250 | +/***/ }), | |
| 7251 | +/* 268 */ | |
| 7252 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7253 | + | |
| 7254 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from | |
| 7255 | +__webpack_require__(234)('WeakMap'); | |
| 7256 | + | |
| 7257 | + | |
| 7258 | +/***/ }), | |
| 7259 | +/* 269 */ | |
| 7260 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7261 | + | |
| 7262 | +__webpack_require__(270); | |
| 7263 | +module.exports = __webpack_require__(6).Object.entries; | |
| 7264 | + | |
| 7265 | + | |
| 7266 | +/***/ }), | |
| 7267 | +/* 270 */ | |
| 7268 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7269 | + | |
| 7270 | +// https://github.com/tc39/proposal-object-values-entries | |
| 7271 | +var $export = __webpack_require__(7); | |
| 7272 | +var $entries = __webpack_require__(184)(true); | |
| 7273 | + | |
| 7274 | +$export($export.S, 'Object', { | |
| 7275 | + entries: function entries(it) { | |
| 7276 | + return $entries(it); | |
| 6183 | 7277 | } |
| 6184 | -} | |
| 7278 | +}); | |
| 6185 | 7279 | |
| 6186 | -function assertReducerShape(reducers) { | |
| 6187 | - Object.keys(reducers).forEach(function (key) { | |
| 6188 | - var reducer = reducers[key]; | |
| 6189 | - var initialState = reducer(undefined, { | |
| 6190 | - type: ActionTypes.INIT | |
| 6191 | - }); | |
| 6192 | 7280 | |
| 6193 | - if (typeof initialState === 'undefined') { | |
| 6194 | - 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."); | |
| 6195 | - } | |
| 7281 | +/***/ }), | |
| 7282 | +/* 271 */ | |
| 7283 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6196 | 7284 | |
| 6197 | - if (typeof reducer(undefined, { | |
| 6198 | - type: ActionTypes.PROBE_UNKNOWN_ACTION() | |
| 6199 | - }) === 'undefined') { | |
| 6200 | - 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."); | |
| 6201 | - } | |
| 7285 | +"use strict"; | |
| 7286 | + | |
| 7287 | +var $at = __webpack_require__(142)(true); | |
| 7288 | + | |
| 7289 | +// 21.1.3.27 String.prototype[@@iterator]() | |
| 7290 | +__webpack_require__(197)(String, 'String', function (iterated) { | |
| 7291 | + this._t = String(iterated); // target | |
| 7292 | + this._i = 0; // next index | |
| 7293 | +// 21.1.5.2.1 %StringIteratorPrototype%.next() | |
| 7294 | +}, function () { | |
| 7295 | + var O = this._t; | |
| 7296 | + var index = this._i; | |
| 7297 | + var point; | |
| 7298 | + if (index >= O.length) return { value: undefined, done: true }; | |
| 7299 | + point = $at(O, index); | |
| 7300 | + this._i += point.length; | |
| 7301 | + return { value: point, done: false }; | |
| 7302 | +}); | |
| 7303 | + | |
| 7304 | + | |
| 7305 | +/***/ }), | |
| 7306 | +/* 272 */, | |
| 7307 | +/* 273 */, | |
| 7308 | +/* 274 */, | |
| 7309 | +/* 275 */, | |
| 7310 | +/* 276 */ | |
| 7311 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7312 | + | |
| 7313 | +"use strict"; | |
| 7314 | +// 21.1.3.18 String.prototype.startsWith(searchString [, position ]) | |
| 7315 | + | |
| 7316 | +var $export = __webpack_require__(37); | |
| 7317 | +var toLength = __webpack_require__(43); | |
| 7318 | +var context = __webpack_require__(213); | |
| 7319 | +var STARTS_WITH = 'startsWith'; | |
| 7320 | +var $startsWith = ''[STARTS_WITH]; | |
| 7321 | + | |
| 7322 | +$export($export.P + $export.F * __webpack_require__(214)(STARTS_WITH), 'String', { | |
| 7323 | + startsWith: function startsWith(searchString /* , position = 0 */) { | |
| 7324 | + var that = context(this, searchString, STARTS_WITH); | |
| 7325 | + var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); | |
| 7326 | + var search = String(searchString); | |
| 7327 | + return $startsWith | |
| 7328 | + ? $startsWith.call(that, search, index) | |
| 7329 | + : that.slice(index, index + search.length) === search; | |
| 7330 | + } | |
| 7331 | +}); | |
| 7332 | + | |
| 7333 | + | |
| 7334 | +/***/ }), | |
| 7335 | +/* 277 */, | |
| 7336 | +/* 278 */, | |
| 7337 | +/* 279 */, | |
| 7338 | +/* 280 */, | |
| 7339 | +/* 281 */ | |
| 7340 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7341 | + | |
| 7342 | +__webpack_require__(282); | |
| 7343 | +module.exports = __webpack_require__(6).parseInt; | |
| 7344 | + | |
| 7345 | + | |
| 7346 | +/***/ }), | |
| 7347 | +/* 282 */ | |
| 7348 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7349 | + | |
| 7350 | +var $export = __webpack_require__(7); | |
| 7351 | +var $parseInt = __webpack_require__(283); | |
| 7352 | +// 18.2.5 parseInt(string, radix) | |
| 7353 | +$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt }); | |
| 7354 | + | |
| 7355 | + | |
| 7356 | +/***/ }), | |
| 7357 | +/* 283 */ | |
| 7358 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7359 | + | |
| 7360 | +var $parseInt = __webpack_require__(8).parseInt; | |
| 7361 | +var $trim = __webpack_require__(284).trim; | |
| 7362 | +var ws = __webpack_require__(235); | |
| 7363 | +var hex = /^[-+]?0[xX]/; | |
| 7364 | + | |
| 7365 | +module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) { | |
| 7366 | + var string = $trim(String(str), 3); | |
| 7367 | + return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10)); | |
| 7368 | +} : $parseInt; | |
| 7369 | + | |
| 7370 | + | |
| 7371 | +/***/ }), | |
| 7372 | +/* 284 */ | |
| 7373 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7374 | + | |
| 7375 | +var $export = __webpack_require__(7); | |
| 7376 | +var defined = __webpack_require__(65); | |
| 7377 | +var fails = __webpack_require__(22); | |
| 7378 | +var spaces = __webpack_require__(235); | |
| 7379 | +var space = '[' + spaces + ']'; | |
| 7380 | +var non = '\u200b\u0085'; | |
| 7381 | +var ltrim = RegExp('^' + space + space + '*'); | |
| 7382 | +var rtrim = RegExp(space + space + '*$'); | |
| 7383 | + | |
| 7384 | +var exporter = function (KEY, exec, ALIAS) { | |
| 7385 | + var exp = {}; | |
| 7386 | + var FORCE = fails(function () { | |
| 7387 | + return !!spaces[KEY]() || non[KEY]() != non; | |
| 6202 | 7388 | }); |
| 6203 | -} | |
| 6204 | -/** | |
| 6205 | - * Turns an object whose values are different reducer functions, into a single | |
| 6206 | - * reducer function. It will call every child reducer, and gather their results | |
| 6207 | - * into a single state object, whose keys correspond to the keys of the passed | |
| 6208 | - * reducer functions. | |
| 6209 | - * | |
| 6210 | - * @param {Object} reducers An object whose values correspond to different | |
| 6211 | - * reducer functions that need to be combined into one. One handy way to obtain | |
| 6212 | - * it is to use ES6 `import * as reducers` syntax. The reducers may never return | |
| 6213 | - * undefined for any action. Instead, they should return their initial state | |
| 6214 | - * if the state passed to them was undefined, and the current state for any | |
| 6215 | - * unrecognized action. | |
| 6216 | - * | |
| 6217 | - * @returns {Function} A reducer function that invokes every reducer inside the | |
| 6218 | - * passed object, and builds a state object with the same shape. | |
| 6219 | - */ | |
| 7389 | + var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY]; | |
| 7390 | + if (ALIAS) exp[ALIAS] = fn; | |
| 7391 | + $export($export.P + $export.F * FORCE, 'String', exp); | |
| 7392 | +}; | |
| 6220 | 7393 | |
| 7394 | +// 1 -> String#trimLeft | |
| 7395 | +// 2 -> String#trimRight | |
| 7396 | +// 3 -> String#trim | |
| 7397 | +var trim = exporter.trim = function (string, TYPE) { | |
| 7398 | + string = String(defined(string)); | |
| 7399 | + if (TYPE & 1) string = string.replace(ltrim, ''); | |
| 7400 | + if (TYPE & 2) string = string.replace(rtrim, ''); | |
| 7401 | + return string; | |
| 7402 | +}; | |
| 6221 | 7403 | |
| 6222 | -function combineReducers(reducers) { | |
| 6223 | - var reducerKeys = Object.keys(reducers); | |
| 6224 | - var finalReducers = {}; | |
| 7404 | +module.exports = exporter; | |
| 6225 | 7405 | |
| 6226 | - for (var i = 0; i < reducerKeys.length; i++) { | |
| 6227 | - var key = reducerKeys[i]; | |
| 6228 | 7406 | |
| 6229 | - if (true) { | |
| 6230 | - if (typeof reducers[key] === 'undefined') { | |
| 6231 | - warning("No reducer provided for key \"" + key + "\""); | |
| 7407 | +/***/ }), | |
| 7408 | +/* 285 */, | |
| 7409 | +/* 286 */ | |
| 7410 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7411 | + | |
| 7412 | +"use strict"; | |
| 7413 | + | |
| 7414 | + | |
| 7415 | +var _interopRequireWildcard = __webpack_require__(36); | |
| 7416 | + | |
| 7417 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7418 | + | |
| 7419 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7420 | + | |
| 7421 | +_Object$defineProperty(exports, "__esModule", { | |
| 7422 | + value: true | |
| 7423 | +}); | |
| 7424 | + | |
| 7425 | +exports.default = void 0; | |
| 7426 | + | |
| 7427 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 7428 | + | |
| 7429 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 7430 | + | |
| 7431 | +var _get2 = _interopRequireDefault(__webpack_require__(25)); | |
| 7432 | + | |
| 7433 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16)); | |
| 7434 | + | |
| 7435 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 7436 | + | |
| 7437 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 7438 | + | |
| 7439 | +var _componentBase = _interopRequireDefault(__webpack_require__(82)); | |
| 7440 | + | |
| 7441 | +var commands = _interopRequireWildcard(__webpack_require__(321)); | |
| 7442 | + | |
| 7443 | +var ComponentModalBase = /*#__PURE__*/function (_ComponentBase) { | |
| 7444 | + (0, _inherits2.default)(ComponentModalBase, _ComponentBase); | |
| 7445 | + | |
| 7446 | + var _super = (0, _createSuper2.default)(ComponentModalBase); | |
| 7447 | + | |
| 7448 | + function ComponentModalBase() { | |
| 7449 | + (0, _classCallCheck2.default)(this, ComponentModalBase); | |
| 7450 | + return _super.apply(this, arguments); | |
| 7451 | + } | |
| 7452 | + | |
| 7453 | + (0, _createClass2.default)(ComponentModalBase, [{ | |
| 7454 | + key: "registerAPI", | |
| 7455 | + value: function registerAPI() { | |
| 7456 | + var _this = this; | |
| 7457 | + | |
| 7458 | + (0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "registerAPI", this).call(this); | |
| 7459 | + $e.shortcuts.register('esc', { | |
| 7460 | + scopes: [this.getNamespace()], | |
| 7461 | + callback: function callback() { | |
| 7462 | + return _this.close(); | |
| 7463 | + } | |
| 7464 | + }); | |
| 7465 | + } | |
| 7466 | + }, { | |
| 7467 | + key: "defaultCommands", | |
| 7468 | + value: function defaultCommands() { | |
| 7469 | + return this.importCommands(commands); | |
| 7470 | + } | |
| 7471 | + }, { | |
| 7472 | + key: "defaultRoutes", | |
| 7473 | + value: function defaultRoutes() { | |
| 7474 | + return { | |
| 7475 | + '': function _() { | |
| 7476 | + /* Nothing to do, it's already rendered. */ | |
| 7477 | + } | |
| 7478 | + }; | |
| 7479 | + } | |
| 7480 | + }, { | |
| 7481 | + key: "open", | |
| 7482 | + value: function open() { | |
| 7483 | + var _this2 = this; | |
| 7484 | + | |
| 7485 | + if (!this.layout) { | |
| 7486 | + var layout = this.getModalLayout(); | |
| 7487 | + this.layout = new layout({ | |
| 7488 | + component: this | |
| 7489 | + }); | |
| 7490 | + this.layout.getModal().on('hide', function () { | |
| 7491 | + return _this2.close(); | |
| 7492 | + }); | |
| 6232 | 7493 | } |
| 7494 | + | |
| 7495 | + this.layout.showModal(); | |
| 7496 | + return true; | |
| 6233 | 7497 | } |
| 7498 | + }, { | |
| 7499 | + key: "close", | |
| 7500 | + value: function close() { | |
| 7501 | + if (!(0, _get2.default)((0, _getPrototypeOf2.default)(ComponentModalBase.prototype), "close", this).call(this)) { | |
| 7502 | + return false; | |
| 7503 | + } | |
| 6234 | 7504 | |
| 6235 | - if (typeof reducers[key] === 'function') { | |
| 6236 | - finalReducers[key] = reducers[key]; | |
| 7505 | + this.layout.getModal().hide(); | |
| 7506 | + return true; | |
| 6237 | 7507 | } |
| 7508 | + }, { | |
| 7509 | + key: "getModalLayout", | |
| 7510 | + value: function getModalLayout() { | |
| 7511 | + elementorModules.ForceMethodImplementation(); | |
| 7512 | + } | |
| 7513 | + }]); | |
| 7514 | + return ComponentModalBase; | |
| 7515 | +}(_componentBase.default); | |
| 7516 | + | |
| 7517 | +exports.default = ComponentModalBase; | |
| 7518 | + | |
| 7519 | +/***/ }), | |
| 7520 | +/* 287 */, | |
| 7521 | +/* 288 */, | |
| 7522 | +/* 289 */, | |
| 7523 | +/* 290 */, | |
| 7524 | +/* 291 */, | |
| 7525 | +/* 292 */, | |
| 7526 | +/* 293 */, | |
| 7527 | +/* 294 */, | |
| 7528 | +/* 295 */, | |
| 7529 | +/* 296 */, | |
| 7530 | +/* 297 */, | |
| 7531 | +/* 298 */, | |
| 7532 | +/* 299 */, | |
| 7533 | +/* 300 */, | |
| 7534 | +/* 301 */, | |
| 7535 | +/* 302 */, | |
| 7536 | +/* 303 */, | |
| 7537 | +/* 304 */, | |
| 7538 | +/* 305 */, | |
| 7539 | +/* 306 */, | |
| 7540 | +/* 307 */, | |
| 7541 | +/* 308 */, | |
| 7542 | +/* 309 */, | |
| 7543 | +/* 310 */, | |
| 7544 | +/* 311 */, | |
| 7545 | +/* 312 */, | |
| 7546 | +/* 313 */, | |
| 7547 | +/* 314 */, | |
| 7548 | +/* 315 */, | |
| 7549 | +/* 316 */, | |
| 7550 | +/* 317 */, | |
| 7551 | +/* 318 */, | |
| 7552 | +/* 319 */, | |
| 7553 | +/* 320 */, | |
| 7554 | +/* 321 */ | |
| 7555 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7556 | + | |
| 7557 | +"use strict"; | |
| 7558 | + | |
| 7559 | + | |
| 7560 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7561 | + | |
| 7562 | +_Object$defineProperty(exports, "__esModule", { | |
| 7563 | + value: true | |
| 7564 | +}); | |
| 7565 | + | |
| 7566 | +_Object$defineProperty(exports, "Close", { | |
| 7567 | + enumerable: true, | |
| 7568 | + get: function get() { | |
| 7569 | + return _close.Close; | |
| 6238 | 7570 | } |
| 7571 | +}); | |
| 6239 | 7572 | |
| 6240 | - var finalReducerKeys = Object.keys(finalReducers); // This is used to make sure we don't warn about the same | |
| 6241 | - // keys multiple times. | |
| 7573 | +_Object$defineProperty(exports, "Open", { | |
| 7574 | + enumerable: true, | |
| 7575 | + get: function get() { | |
| 7576 | + return _open.Open; | |
| 7577 | + } | |
| 7578 | +}); | |
| 6242 | 7579 | |
| 6243 | - var unexpectedKeyCache; | |
| 7580 | +_Object$defineProperty(exports, "Toggle", { | |
| 7581 | + enumerable: true, | |
| 7582 | + get: function get() { | |
| 7583 | + return _toggle.Toggle; | |
| 7584 | + } | |
| 7585 | +}); | |
| 6244 | 7586 | |
| 6245 | - if (true) { | |
| 6246 | - unexpectedKeyCache = {}; | |
| 7587 | +var _close = __webpack_require__(322); | |
| 7588 | + | |
| 7589 | +var _open = __webpack_require__(323); | |
| 7590 | + | |
| 7591 | +var _toggle = __webpack_require__(324); | |
| 7592 | + | |
| 7593 | +/***/ }), | |
| 7594 | +/* 322 */ | |
| 7595 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7596 | + | |
| 7597 | +"use strict"; | |
| 7598 | + | |
| 7599 | + | |
| 7600 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7601 | + | |
| 7602 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7603 | + | |
| 7604 | +_Object$defineProperty(exports, "__esModule", { | |
| 7605 | + value: true | |
| 7606 | +}); | |
| 7607 | + | |
| 7608 | +exports.default = exports.Close = void 0; | |
| 7609 | + | |
| 7610 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 7611 | + | |
| 7612 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 7613 | + | |
| 7614 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 7615 | + | |
| 7616 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 7617 | + | |
| 7618 | +var _commandBase = _interopRequireDefault(__webpack_require__(21)); | |
| 7619 | + | |
| 7620 | +var Close = /*#__PURE__*/function (_CommandBase) { | |
| 7621 | + (0, _inherits2.default)(Close, _CommandBase); | |
| 7622 | + | |
| 7623 | + var _super = (0, _createSuper2.default)(Close); | |
| 7624 | + | |
| 7625 | + function Close() { | |
| 7626 | + (0, _classCallCheck2.default)(this, Close); | |
| 7627 | + return _super.apply(this, arguments); | |
| 6247 | 7628 | } |
| 6248 | 7629 | |
| 6249 | - var shapeAssertionError; | |
| 7630 | + (0, _createClass2.default)(Close, [{ | |
| 7631 | + key: "apply", | |
| 7632 | + value: function apply() { | |
| 7633 | + this.component.close(); | |
| 7634 | + } | |
| 7635 | + }]); | |
| 7636 | + return Close; | |
| 7637 | +}(_commandBase.default); | |
| 6250 | 7638 | |
| 6251 | - try { | |
| 6252 | - assertReducerShape(finalReducers); | |
| 6253 | - } catch (e) { | |
| 6254 | - shapeAssertionError = e; | |
| 7639 | +exports.Close = Close; | |
| 7640 | +var _default = Close; | |
| 7641 | +exports.default = _default; | |
| 7642 | + | |
| 7643 | +/***/ }), | |
| 7644 | +/* 323 */ | |
| 7645 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7646 | + | |
| 7647 | +"use strict"; | |
| 7648 | + | |
| 7649 | + | |
| 7650 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7651 | + | |
| 7652 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7653 | + | |
| 7654 | +_Object$defineProperty(exports, "__esModule", { | |
| 7655 | + value: true | |
| 7656 | +}); | |
| 7657 | + | |
| 7658 | +exports.default = exports.Open = void 0; | |
| 7659 | + | |
| 7660 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 7661 | + | |
| 7662 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 7663 | + | |
| 7664 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 7665 | + | |
| 7666 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 7667 | + | |
| 7668 | +var _commandBase = _interopRequireDefault(__webpack_require__(21)); | |
| 7669 | + | |
| 7670 | +var Open = /*#__PURE__*/function (_CommandBase) { | |
| 7671 | + (0, _inherits2.default)(Open, _CommandBase); | |
| 7672 | + | |
| 7673 | + var _super = (0, _createSuper2.default)(Open); | |
| 7674 | + | |
| 7675 | + function Open() { | |
| 7676 | + (0, _classCallCheck2.default)(this, Open); | |
| 7677 | + return _super.apply(this, arguments); | |
| 6255 | 7678 | } |
| 6256 | 7679 | |
| 6257 | - return function combination(state, action) { | |
| 6258 | - if (state === void 0) { | |
| 6259 | - state = {}; | |
| 7680 | + (0, _createClass2.default)(Open, [{ | |
| 7681 | + key: "apply", | |
| 7682 | + value: function apply() { | |
| 7683 | + $e.route(this.component.getNamespace()); | |
| 6260 | 7684 | } |
| 7685 | + }]); | |
| 7686 | + return Open; | |
| 7687 | +}(_commandBase.default); | |
| 6261 | 7688 | |
| 6262 | - if (shapeAssertionError) { | |
| 6263 | - throw shapeAssertionError; | |
| 6264 | - } | |
| 7689 | +exports.Open = Open; | |
| 7690 | +var _default = Open; | |
| 7691 | +exports.default = _default; | |
| 6265 | 7692 | |
| 6266 | - if (true) { | |
| 6267 | - var warningMessage = getUnexpectedStateShapeWarningMessage(state, finalReducers, action, unexpectedKeyCache); | |
| 7693 | +/***/ }), | |
| 7694 | +/* 324 */ | |
| 7695 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6268 | 7696 | |
| 6269 | - if (warningMessage) { | |
| 6270 | - warning(warningMessage); | |
| 7697 | +"use strict"; | |
| 7698 | + | |
| 7699 | + | |
| 7700 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7701 | + | |
| 7702 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7703 | + | |
| 7704 | +_Object$defineProperty(exports, "__esModule", { | |
| 7705 | + value: true | |
| 7706 | +}); | |
| 7707 | + | |
| 7708 | +exports.default = exports.Toggle = void 0; | |
| 7709 | + | |
| 7710 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 7711 | + | |
| 7712 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 7713 | + | |
| 7714 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 7715 | + | |
| 7716 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 7717 | + | |
| 7718 | +var _commandBase = _interopRequireDefault(__webpack_require__(21)); | |
| 7719 | + | |
| 7720 | +var Toggle = /*#__PURE__*/function (_CommandBase) { | |
| 7721 | + (0, _inherits2.default)(Toggle, _CommandBase); | |
| 7722 | + | |
| 7723 | + var _super = (0, _createSuper2.default)(Toggle); | |
| 7724 | + | |
| 7725 | + function Toggle() { | |
| 7726 | + (0, _classCallCheck2.default)(this, Toggle); | |
| 7727 | + return _super.apply(this, arguments); | |
| 7728 | + } | |
| 7729 | + | |
| 7730 | + (0, _createClass2.default)(Toggle, [{ | |
| 7731 | + key: "apply", | |
| 7732 | + value: function apply() { | |
| 7733 | + if (this.component.isOpen) { | |
| 7734 | + this.component.close(); | |
| 7735 | + } else { | |
| 7736 | + $e.route(this.component.getNamespace()); | |
| 6271 | 7737 | } |
| 6272 | 7738 | } |
| 7739 | + }]); | |
| 7740 | + return Toggle; | |
| 7741 | +}(_commandBase.default); | |
| 6273 | 7742 | |
| 6274 | - var hasChanged = false; | |
| 6275 | - var nextState = {}; | |
| 7743 | +exports.Toggle = Toggle; | |
| 7744 | +var _default = Toggle; | |
| 7745 | +exports.default = _default; | |
| 6276 | 7746 | |
| 6277 | - for (var _i = 0; _i < finalReducerKeys.length; _i++) { | |
| 6278 | - var _key = finalReducerKeys[_i]; | |
| 6279 | - var reducer = finalReducers[_key]; | |
| 6280 | - var previousStateForKey = state[_key]; | |
| 6281 | - var nextStateForKey = reducer(previousStateForKey, action); | |
| 7747 | +/***/ }), | |
| 7748 | +/* 325 */, | |
| 7749 | +/* 326 */, | |
| 7750 | +/* 327 */, | |
| 7751 | +/* 328 */, | |
| 7752 | +/* 329 */, | |
| 7753 | +/* 330 */, | |
| 7754 | +/* 331 */, | |
| 7755 | +/* 332 */, | |
| 7756 | +/* 333 */, | |
| 7757 | +/* 334 */, | |
| 7758 | +/* 335 */, | |
| 7759 | +/* 336 */, | |
| 7760 | +/* 337 */, | |
| 7761 | +/* 338 */, | |
| 7762 | +/* 339 */, | |
| 7763 | +/* 340 */, | |
| 7764 | +/* 341 */, | |
| 7765 | +/* 342 */ | |
| 7766 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6282 | 7767 | |
| 6283 | - if (typeof nextStateForKey === 'undefined') { | |
| 6284 | - var actionType = action && action.type; | |
| 6285 | - 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."); | |
| 6286 | - } | |
| 7768 | +var _Object$create = __webpack_require__(137); | |
| 6287 | 7769 | |
| 6288 | - nextState[_key] = nextStateForKey; | |
| 6289 | - hasChanged = hasChanged || nextStateForKey !== previousStateForKey; | |
| 7770 | +var _Map = __webpack_require__(392); | |
| 7771 | + | |
| 7772 | +var getPrototypeOf = __webpack_require__(16); | |
| 7773 | + | |
| 7774 | +var setPrototypeOf = __webpack_require__(135); | |
| 7775 | + | |
| 7776 | +var isNativeFunction = __webpack_require__(401); | |
| 7777 | + | |
| 7778 | +var construct = __webpack_require__(402); | |
| 7779 | + | |
| 7780 | +function _wrapNativeSuper(Class) { | |
| 7781 | + var _cache = typeof _Map === "function" ? new _Map() : undefined; | |
| 7782 | + | |
| 7783 | + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | |
| 7784 | + if (Class === null || !isNativeFunction(Class)) return Class; | |
| 7785 | + | |
| 7786 | + if (typeof Class !== "function") { | |
| 7787 | + throw new TypeError("Super expression must either be null or a function"); | |
| 6290 | 7788 | } |
| 6291 | 7789 | |
| 6292 | - hasChanged = hasChanged || finalReducerKeys.length !== Object.keys(state).length; | |
| 6293 | - return hasChanged ? nextState : state; | |
| 7790 | + if (typeof _cache !== "undefined") { | |
| 7791 | + if (_cache.has(Class)) return _cache.get(Class); | |
| 7792 | + | |
| 7793 | + _cache.set(Class, Wrapper); | |
| 7794 | + } | |
| 7795 | + | |
| 7796 | + function Wrapper() { | |
| 7797 | + return construct(Class, arguments, getPrototypeOf(this).constructor); | |
| 7798 | + } | |
| 7799 | + | |
| 7800 | + Wrapper.prototype = _Object$create(Class.prototype, { | |
| 7801 | + constructor: { | |
| 7802 | + value: Wrapper, | |
| 7803 | + enumerable: false, | |
| 7804 | + writable: true, | |
| 7805 | + configurable: true | |
| 7806 | + } | |
| 7807 | + }); | |
| 7808 | + return setPrototypeOf(Wrapper, Class); | |
| 6294 | 7809 | }; |
| 7810 | + | |
| 7811 | + return _wrapNativeSuper(Class); | |
| 6295 | 7812 | } |
| 6296 | 7813 | |
| 6297 | -function bindActionCreator(actionCreator, dispatch) { | |
| 6298 | - return function () { | |
| 6299 | - return dispatch(actionCreator.apply(this, arguments)); | |
| 6300 | - }; | |
| 6301 | -} | |
| 6302 | -/** | |
| 6303 | - * Turns an object whose values are action creators, into an object with the | |
| 6304 | - * same keys, but with every function wrapped into a `dispatch` call so they | |
| 6305 | - * may be invoked directly. This is just a convenience method, as you can call | |
| 6306 | - * `store.dispatch(MyActionCreators.doSomething())` yourself just fine. | |
| 6307 | - * | |
| 6308 | - * For convenience, you can also pass an action creator as the first argument, | |
| 6309 | - * and get a dispatch wrapped function in return. | |
| 6310 | - * | |
| 6311 | - * @param {Function|Object} actionCreators An object whose values are action | |
| 6312 | - * creator functions. One handy way to obtain it is to use ES6 `import * as` | |
| 6313 | - * syntax. You may also pass a single function. | |
| 6314 | - * | |
| 6315 | - * @param {Function} dispatch The `dispatch` function available on your Redux | |
| 6316 | - * store. | |
| 6317 | - * | |
| 6318 | - * @returns {Function|Object} The object mimicking the original object, but with | |
| 6319 | - * every action creator wrapped into the `dispatch` call. If you passed a | |
| 6320 | - * function as `actionCreators`, the return value will also be a single | |
| 6321 | - * function. | |
| 6322 | - */ | |
| 7814 | +module.exports = _wrapNativeSuper; | |
| 6323 | 7815 | |
| 7816 | +/***/ }), | |
| 7817 | +/* 343 */, | |
| 7818 | +/* 344 */, | |
| 7819 | +/* 345 */, | |
| 7820 | +/* 346 */, | |
| 7821 | +/* 347 */, | |
| 7822 | +/* 348 */, | |
| 7823 | +/* 349 */, | |
| 7824 | +/* 350 */, | |
| 7825 | +/* 351 */, | |
| 7826 | +/* 352 */, | |
| 7827 | +/* 353 */, | |
| 7828 | +/* 354 */, | |
| 7829 | +/* 355 */ | |
| 7830 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6324 | 7831 | |
| 6325 | -function bindActionCreators(actionCreators, dispatch) { | |
| 6326 | - if (typeof actionCreators === 'function') { | |
| 6327 | - return bindActionCreator(actionCreators, dispatch); | |
| 6328 | - } | |
| 7832 | +"use strict"; | |
| 6329 | 7833 | |
| 6330 | - if (typeof actionCreators !== 'object' || actionCreators === null) { | |
| 6331 | - 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\"?"); | |
| 7834 | + | |
| 7835 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7836 | + | |
| 7837 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7838 | + | |
| 7839 | +_Object$defineProperty(exports, "__esModule", { | |
| 7840 | + value: true | |
| 7841 | +}); | |
| 7842 | + | |
| 7843 | +exports.default = void 0; | |
| 7844 | + | |
| 7845 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 7846 | + | |
| 7847 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 7848 | + | |
| 7849 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 7850 | + | |
| 7851 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 7852 | + | |
| 7853 | +var _header = _interopRequireDefault(__webpack_require__(356)); | |
| 7854 | + | |
| 7855 | +var _logo = _interopRequireDefault(__webpack_require__(357)); | |
| 7856 | + | |
| 7857 | +var _loading = _interopRequireDefault(__webpack_require__(358)); | |
| 7858 | + | |
| 7859 | +var _default = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 7860 | + (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 7861 | + | |
| 7862 | + var _super = (0, _createSuper2.default)(_default); | |
| 7863 | + | |
| 7864 | + function _default() { | |
| 7865 | + (0, _classCallCheck2.default)(this, _default); | |
| 7866 | + return _super.apply(this, arguments); | |
| 6332 | 7867 | } |
| 6333 | 7868 | |
| 6334 | - var boundActionCreators = {}; | |
| 7869 | + (0, _createClass2.default)(_default, [{ | |
| 7870 | + key: "el", | |
| 7871 | + value: function el() { | |
| 7872 | + return this.getModal().getElements('widget'); | |
| 7873 | + } | |
| 7874 | + }, { | |
| 7875 | + key: "regions", | |
| 7876 | + value: function regions() { | |
| 7877 | + return { | |
| 7878 | + modalHeader: '.dialog-header', | |
| 7879 | + modalContent: '.dialog-lightbox-content', | |
| 7880 | + modalLoading: '.dialog-lightbox-loading' | |
| 7881 | + }; | |
| 7882 | + } | |
| 7883 | + }, { | |
| 7884 | + key: "initialize", | |
| 7885 | + value: function initialize() { | |
| 7886 | + this.modalHeader.show(new _header.default(this.getHeaderOptions())); | |
| 7887 | + } | |
| 7888 | + }, { | |
| 7889 | + key: "getModal", | |
| 7890 | + value: function getModal() { | |
| 7891 | + if (!this.modal) { | |
| 7892 | + this.initModal(); | |
| 7893 | + } | |
| 6335 | 7894 | |
| 6336 | - for (var key in actionCreators) { | |
| 6337 | - var actionCreator = actionCreators[key]; | |
| 7895 | + return this.modal; | |
| 7896 | + } | |
| 7897 | + }, { | |
| 7898 | + key: "initModal", | |
| 7899 | + value: function initModal() { | |
| 7900 | + var modalOptions = { | |
| 7901 | + className: 'elementor-templates-modal', | |
| 7902 | + closeButton: false, | |
| 7903 | + draggable: false, | |
| 7904 | + hide: { | |
| 7905 | + onOutsideClick: false, | |
| 7906 | + onEscKeyPress: false | |
| 7907 | + } | |
| 7908 | + }; | |
| 7909 | + jQuery.extend(true, modalOptions, this.getModalOptions()); | |
| 7910 | + this.modal = elementorCommon.dialogsManager.createWidget('lightbox', modalOptions); | |
| 7911 | + this.modal.getElements('message').append(this.modal.addElement('content'), this.modal.addElement('loading')); | |
| 6338 | 7912 | |
| 6339 | - if (typeof actionCreator === 'function') { | |
| 6340 | - boundActionCreators[key] = bindActionCreator(actionCreator, dispatch); | |
| 7913 | + if (modalOptions.draggable) { | |
| 7914 | + this.draggableModal(); | |
| 7915 | + } | |
| 6341 | 7916 | } |
| 7917 | + }, { | |
| 7918 | + key: "showModal", | |
| 7919 | + value: function showModal() { | |
| 7920 | + this.getModal().show(); | |
| 7921 | + } | |
| 7922 | + }, { | |
| 7923 | + key: "hideModal", | |
| 7924 | + value: function hideModal() { | |
| 7925 | + this.getModal().hide(); | |
| 7926 | + } | |
| 7927 | + }, { | |
| 7928 | + key: "draggableModal", | |
| 7929 | + value: function draggableModal() { | |
| 7930 | + var $modalWidgetContent = this.getModal().getElements('widgetContent'); | |
| 7931 | + $modalWidgetContent.draggable({ | |
| 7932 | + containment: 'parent', | |
| 7933 | + stop: function stop() { | |
| 7934 | + $modalWidgetContent.height(''); | |
| 7935 | + } | |
| 7936 | + }); | |
| 7937 | + $modalWidgetContent.css('position', 'absolute'); | |
| 7938 | + } | |
| 7939 | + }, { | |
| 7940 | + key: "getModalOptions", | |
| 7941 | + value: function getModalOptions() { | |
| 7942 | + return {}; | |
| 7943 | + } | |
| 7944 | + }, { | |
| 7945 | + key: "getLogoOptions", | |
| 7946 | + value: function getLogoOptions() { | |
| 7947 | + return {}; | |
| 7948 | + } | |
| 7949 | + }, { | |
| 7950 | + key: "getHeaderOptions", | |
| 7951 | + value: function getHeaderOptions() { | |
| 7952 | + return { | |
| 7953 | + closeType: 'normal' | |
| 7954 | + }; | |
| 7955 | + } | |
| 7956 | + }, { | |
| 7957 | + key: "getHeaderView", | |
| 7958 | + value: function getHeaderView() { | |
| 7959 | + return this.modalHeader.currentView; | |
| 7960 | + } | |
| 7961 | + }, { | |
| 7962 | + key: "showLoadingView", | |
| 7963 | + value: function showLoadingView() { | |
| 7964 | + this.modalLoading.show(new _loading.default()); | |
| 7965 | + this.modalLoading.$el.show(); | |
| 7966 | + this.modalContent.$el.hide(); | |
| 7967 | + } | |
| 7968 | + }, { | |
| 7969 | + key: "hideLoadingView", | |
| 7970 | + value: function hideLoadingView() { | |
| 7971 | + this.modalContent.$el.show(); | |
| 7972 | + this.modalLoading.$el.hide(); | |
| 7973 | + } | |
| 7974 | + }, { | |
| 7975 | + key: "showLogo", | |
| 7976 | + value: function showLogo() { | |
| 7977 | + this.getHeaderView().logoArea.show(new _logo.default(this.getLogoOptions())); | |
| 7978 | + } | |
| 7979 | + }]); | |
| 7980 | + return _default; | |
| 7981 | +}(Marionette.LayoutView); | |
| 7982 | + | |
| 7983 | +exports.default = _default; | |
| 7984 | + | |
| 7985 | +/***/ }), | |
| 7986 | +/* 356 */ | |
| 7987 | +/***/ (function(module, exports, __webpack_require__) { | |
| 7988 | + | |
| 7989 | +"use strict"; | |
| 7990 | + | |
| 7991 | + | |
| 7992 | +var _interopRequireDefault = __webpack_require__(0); | |
| 7993 | + | |
| 7994 | +var _Object$defineProperty = __webpack_require__(1); | |
| 7995 | + | |
| 7996 | +_Object$defineProperty(exports, "__esModule", { | |
| 7997 | + value: true | |
| 7998 | +}); | |
| 7999 | + | |
| 8000 | +exports.default = void 0; | |
| 8001 | + | |
| 8002 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 8003 | + | |
| 8004 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 8005 | + | |
| 8006 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 8007 | + | |
| 8008 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 8009 | + | |
| 8010 | +var _default = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 8011 | + (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 8012 | + | |
| 8013 | + var _super = (0, _createSuper2.default)(_default); | |
| 8014 | + | |
| 8015 | + function _default() { | |
| 8016 | + (0, _classCallCheck2.default)(this, _default); | |
| 8017 | + return _super.apply(this, arguments); | |
| 6342 | 8018 | } |
| 6343 | 8019 | |
| 6344 | - return boundActionCreators; | |
| 6345 | -} | |
| 8020 | + (0, _createClass2.default)(_default, [{ | |
| 8021 | + key: "className", | |
| 8022 | + value: function className() { | |
| 8023 | + return 'elementor-templates-modal__header'; | |
| 8024 | + } | |
| 8025 | + }, { | |
| 8026 | + key: "getTemplate", | |
| 8027 | + value: function getTemplate() { | |
| 8028 | + return '#tmpl-elementor-templates-modal__header'; | |
| 8029 | + } | |
| 8030 | + }, { | |
| 8031 | + key: "regions", | |
| 8032 | + value: function regions() { | |
| 8033 | + return { | |
| 8034 | + logoArea: '.elementor-templates-modal__header__logo-area', | |
| 8035 | + tools: '#elementor-template-library-header-tools', | |
| 8036 | + menuArea: '.elementor-templates-modal__header__menu-area' | |
| 8037 | + }; | |
| 8038 | + } | |
| 8039 | + }, { | |
| 8040 | + key: "ui", | |
| 8041 | + value: function ui() { | |
| 8042 | + return { | |
| 8043 | + closeModal: '.elementor-templates-modal__header__close' | |
| 8044 | + }; | |
| 8045 | + } | |
| 8046 | + }, { | |
| 8047 | + key: "events", | |
| 8048 | + value: function events() { | |
| 8049 | + return { | |
| 8050 | + 'click @ui.closeModal': 'onCloseModalClick' | |
| 8051 | + }; | |
| 8052 | + } | |
| 8053 | + }, { | |
| 8054 | + key: "templateHelpers", | |
| 8055 | + value: function templateHelpers() { | |
| 8056 | + return { | |
| 8057 | + closeType: this.getOption('closeType') | |
| 8058 | + }; | |
| 8059 | + } | |
| 8060 | + }, { | |
| 8061 | + key: "onCloseModalClick", | |
| 8062 | + value: function onCloseModalClick() { | |
| 8063 | + this._parent._parent._parent.hideModal(); | |
| 8064 | + } | |
| 8065 | + }]); | |
| 8066 | + return _default; | |
| 8067 | +}(Marionette.LayoutView); | |
| 6346 | 8068 | |
| 6347 | -/** | |
| 6348 | - * Composes single-argument functions from right to left. The rightmost | |
| 6349 | - * function can take multiple arguments as it provides the signature for | |
| 6350 | - * the resulting composite function. | |
| 6351 | - * | |
| 6352 | - * @param {...Function} funcs The functions to compose. | |
| 6353 | - * @returns {Function} A function obtained by composing the argument functions | |
| 6354 | - * from right to left. For example, compose(f, g, h) is identical to doing | |
| 6355 | - * (...args) => f(g(h(...args))). | |
| 6356 | - */ | |
| 6357 | -function compose() { | |
| 6358 | - for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 6359 | - funcs[_key] = arguments[_key]; | |
| 8069 | +exports.default = _default; | |
| 8070 | + | |
| 8071 | +/***/ }), | |
| 8072 | +/* 357 */ | |
| 8073 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8074 | + | |
| 8075 | +"use strict"; | |
| 8076 | + | |
| 8077 | + | |
| 8078 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8079 | + | |
| 8080 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8081 | + | |
| 8082 | +_Object$defineProperty(exports, "__esModule", { | |
| 8083 | + value: true | |
| 8084 | +}); | |
| 8085 | + | |
| 8086 | +exports.default = void 0; | |
| 8087 | + | |
| 8088 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 8089 | + | |
| 8090 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 8091 | + | |
| 8092 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 8093 | + | |
| 8094 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 8095 | + | |
| 8096 | +var _default = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 8097 | + (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 8098 | + | |
| 8099 | + var _super = (0, _createSuper2.default)(_default); | |
| 8100 | + | |
| 8101 | + function _default() { | |
| 8102 | + (0, _classCallCheck2.default)(this, _default); | |
| 8103 | + return _super.apply(this, arguments); | |
| 6360 | 8104 | } |
| 6361 | 8105 | |
| 6362 | - if (funcs.length === 0) { | |
| 6363 | - return function (arg) { | |
| 6364 | - return arg; | |
| 6365 | - }; | |
| 8106 | + (0, _createClass2.default)(_default, [{ | |
| 8107 | + key: "getTemplate", | |
| 8108 | + value: function getTemplate() { | |
| 8109 | + return '#tmpl-elementor-templates-modal__header__logo'; | |
| 8110 | + } | |
| 8111 | + }, { | |
| 8112 | + key: "className", | |
| 8113 | + value: function className() { | |
| 8114 | + return 'elementor-templates-modal__header__logo'; | |
| 8115 | + } | |
| 8116 | + }, { | |
| 8117 | + key: "events", | |
| 8118 | + value: function events() { | |
| 8119 | + return { | |
| 8120 | + click: 'onClick' | |
| 8121 | + }; | |
| 8122 | + } | |
| 8123 | + }, { | |
| 8124 | + key: "templateHelpers", | |
| 8125 | + value: function templateHelpers() { | |
| 8126 | + return { | |
| 8127 | + title: this.getOption('title') | |
| 8128 | + }; | |
| 8129 | + } | |
| 8130 | + }, { | |
| 8131 | + key: "onClick", | |
| 8132 | + value: function onClick() { | |
| 8133 | + var clickCallback = this.getOption('click'); | |
| 8134 | + | |
| 8135 | + if (clickCallback) { | |
| 8136 | + clickCallback(); | |
| 8137 | + } | |
| 8138 | + } | |
| 8139 | + }]); | |
| 8140 | + return _default; | |
| 8141 | +}(Marionette.ItemView); | |
| 8142 | + | |
| 8143 | +exports.default = _default; | |
| 8144 | + | |
| 8145 | +/***/ }), | |
| 8146 | +/* 358 */ | |
| 8147 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8148 | + | |
| 8149 | +"use strict"; | |
| 8150 | + | |
| 8151 | + | |
| 8152 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8153 | + | |
| 8154 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8155 | + | |
| 8156 | +_Object$defineProperty(exports, "__esModule", { | |
| 8157 | + value: true | |
| 8158 | +}); | |
| 8159 | + | |
| 8160 | +exports.default = void 0; | |
| 8161 | + | |
| 8162 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 8163 | + | |
| 8164 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 8165 | + | |
| 8166 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 8167 | + | |
| 8168 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 8169 | + | |
| 8170 | +var _default = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 8171 | + (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 8172 | + | |
| 8173 | + var _super = (0, _createSuper2.default)(_default); | |
| 8174 | + | |
| 8175 | + function _default() { | |
| 8176 | + (0, _classCallCheck2.default)(this, _default); | |
| 8177 | + return _super.apply(this, arguments); | |
| 6366 | 8178 | } |
| 6367 | 8179 | |
| 6368 | - if (funcs.length === 1) { | |
| 6369 | - return funcs[0]; | |
| 8180 | + (0, _createClass2.default)(_default, [{ | |
| 8181 | + key: "id", | |
| 8182 | + value: function id() { | |
| 8183 | + return 'elementor-template-library-loading'; | |
| 8184 | + } | |
| 8185 | + }, { | |
| 8186 | + key: "getTemplate", | |
| 8187 | + value: function getTemplate() { | |
| 8188 | + return '#tmpl-elementor-template-library-loading'; | |
| 8189 | + } | |
| 8190 | + }]); | |
| 8191 | + return _default; | |
| 8192 | +}(Marionette.ItemView); | |
| 8193 | + | |
| 8194 | +exports.default = _default; | |
| 8195 | + | |
| 8196 | +/***/ }), | |
| 8197 | +/* 359 */, | |
| 8198 | +/* 360 */, | |
| 8199 | +/* 361 */, | |
| 8200 | +/* 362 */, | |
| 8201 | +/* 363 */, | |
| 8202 | +/* 364 */, | |
| 8203 | +/* 365 */, | |
| 8204 | +/* 366 */, | |
| 8205 | +/* 367 */, | |
| 8206 | +/* 368 */, | |
| 8207 | +/* 369 */, | |
| 8208 | +/* 370 */, | |
| 8209 | +/* 371 */, | |
| 8210 | +/* 372 */, | |
| 8211 | +/* 373 */, | |
| 8212 | +/* 374 */, | |
| 8213 | +/* 375 */, | |
| 8214 | +/* 376 */, | |
| 8215 | +/* 377 */, | |
| 8216 | +/* 378 */, | |
| 8217 | +/* 379 */, | |
| 8218 | +/* 380 */, | |
| 8219 | +/* 381 */, | |
| 8220 | +/* 382 */, | |
| 8221 | +/* 383 */, | |
| 8222 | +/* 384 */, | |
| 8223 | +/* 385 */, | |
| 8224 | +/* 386 */, | |
| 8225 | +/* 387 */, | |
| 8226 | +/* 388 */, | |
| 8227 | +/* 389 */, | |
| 8228 | +/* 390 */, | |
| 8229 | +/* 391 */, | |
| 8230 | +/* 392 */ | |
| 8231 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8232 | + | |
| 8233 | +module.exports = __webpack_require__(393); | |
| 8234 | + | |
| 8235 | +/***/ }), | |
| 8236 | +/* 393 */ | |
| 8237 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8238 | + | |
| 8239 | +__webpack_require__(100); | |
| 8240 | +__webpack_require__(60); | |
| 8241 | +__webpack_require__(62); | |
| 8242 | +__webpack_require__(394); | |
| 8243 | +__webpack_require__(396); | |
| 8244 | +__webpack_require__(399); | |
| 8245 | +__webpack_require__(400); | |
| 8246 | +module.exports = __webpack_require__(6).Map; | |
| 8247 | + | |
| 8248 | + | |
| 8249 | +/***/ }), | |
| 8250 | +/* 394 */ | |
| 8251 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8252 | + | |
| 8253 | +"use strict"; | |
| 8254 | + | |
| 8255 | +var strong = __webpack_require__(395); | |
| 8256 | +var validate = __webpack_require__(121); | |
| 8257 | +var MAP = 'Map'; | |
| 8258 | + | |
| 8259 | +// 23.1 Map Objects | |
| 8260 | +module.exports = __webpack_require__(232)(MAP, function (get) { | |
| 8261 | + return function Map() { return get(this, arguments.length > 0 ? arguments[0] : undefined); }; | |
| 8262 | +}, { | |
| 8263 | + // 23.1.3.6 Map.prototype.get(key) | |
| 8264 | + get: function get(key) { | |
| 8265 | + var entry = strong.getEntry(validate(this, MAP), key); | |
| 8266 | + return entry && entry.v; | |
| 8267 | + }, | |
| 8268 | + // 23.1.3.9 Map.prototype.set(key, value) | |
| 8269 | + set: function set(key, value) { | |
| 8270 | + return strong.def(validate(this, MAP), key === 0 ? 0 : key, value); | |
| 6370 | 8271 | } |
| 8272 | +}, strong, true); | |
| 6371 | 8273 | |
| 6372 | - return funcs.reduce(function (a, b) { | |
| 6373 | - return function () { | |
| 6374 | - return a(b.apply(void 0, arguments)); | |
| 6375 | - }; | |
| 6376 | - }); | |
| 6377 | -} | |
| 6378 | 8274 | |
| 6379 | -/** | |
| 6380 | - * Creates a store enhancer that applies middleware to the dispatch method | |
| 6381 | - * of the Redux store. This is handy for a variety of tasks, such as expressing | |
| 6382 | - * asynchronous actions in a concise manner, or logging every action payload. | |
| 6383 | - * | |
| 6384 | - * See `redux-thunk` package as an example of the Redux middleware. | |
| 6385 | - * | |
| 6386 | - * Because middleware is potentially asynchronous, this should be the first | |
| 6387 | - * store enhancer in the composition chain. | |
| 6388 | - * | |
| 6389 | - * Note that each middleware will be given the `dispatch` and `getState` functions | |
| 6390 | - * as named arguments. | |
| 6391 | - * | |
| 6392 | - * @param {...Function} middlewares The middleware chain to be applied. | |
| 6393 | - * @returns {Function} A store enhancer applying the middleware. | |
| 6394 | - */ | |
| 8275 | +/***/ }), | |
| 8276 | +/* 395 */ | |
| 8277 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6395 | 8278 | |
| 6396 | -function applyMiddleware() { | |
| 6397 | - for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 6398 | - middlewares[_key] = arguments[_key]; | |
| 6399 | - } | |
| 8279 | +"use strict"; | |
| 6400 | 8280 | |
| 6401 | - return function (createStore) { | |
| 6402 | - return function () { | |
| 6403 | - var store = createStore.apply(void 0, arguments); | |
| 8281 | +var dP = __webpack_require__(15).f; | |
| 8282 | +var create = __webpack_require__(52); | |
| 8283 | +var redefineAll = __webpack_require__(126); | |
| 8284 | +var ctx = __webpack_require__(31); | |
| 8285 | +var anInstance = __webpack_require__(125); | |
| 8286 | +var forOf = __webpack_require__(86); | |
| 8287 | +var $iterDefine = __webpack_require__(108); | |
| 8288 | +var step = __webpack_require__(149); | |
| 8289 | +var setSpecies = __webpack_require__(225); | |
| 8290 | +var DESCRIPTORS = __webpack_require__(14); | |
| 8291 | +var fastKey = __webpack_require__(70).fastKey; | |
| 8292 | +var validate = __webpack_require__(121); | |
| 8293 | +var SIZE = DESCRIPTORS ? '_s' : 'size'; | |
| 6404 | 8294 | |
| 6405 | - var _dispatch = function dispatch() { | |
| 6406 | - throw new Error( false ? 0 : 'Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.'); | |
| 6407 | - }; | |
| 8295 | +var getEntry = function (that, key) { | |
| 8296 | + // fast case | |
| 8297 | + var index = fastKey(key); | |
| 8298 | + var entry; | |
| 8299 | + if (index !== 'F') return that._i[index]; | |
| 8300 | + // frozen object case | |
| 8301 | + for (entry = that._f; entry; entry = entry.n) { | |
| 8302 | + if (entry.k == key) return entry; | |
| 8303 | + } | |
| 8304 | +}; | |
| 6408 | 8305 | |
| 6409 | - var middlewareAPI = { | |
| 6410 | - getState: store.getState, | |
| 6411 | - dispatch: function dispatch() { | |
| 6412 | - return _dispatch.apply(void 0, arguments); | |
| 8306 | +module.exports = { | |
| 8307 | + getConstructor: function (wrapper, NAME, IS_MAP, ADDER) { | |
| 8308 | + var C = wrapper(function (that, iterable) { | |
| 8309 | + anInstance(that, C, NAME, '_i'); | |
| 8310 | + that._t = NAME; // collection type | |
| 8311 | + that._i = create(null); // index | |
| 8312 | + that._f = undefined; // first entry | |
| 8313 | + that._l = undefined; // last entry | |
| 8314 | + that[SIZE] = 0; // size | |
| 8315 | + if (iterable != undefined) forOf(iterable, IS_MAP, that[ADDER], that); | |
| 8316 | + }); | |
| 8317 | + redefineAll(C.prototype, { | |
| 8318 | + // 23.1.3.1 Map.prototype.clear() | |
| 8319 | + // 23.2.3.2 Set.prototype.clear() | |
| 8320 | + clear: function clear() { | |
| 8321 | + for (var that = validate(this, NAME), data = that._i, entry = that._f; entry; entry = entry.n) { | |
| 8322 | + entry.r = true; | |
| 8323 | + if (entry.p) entry.p = entry.p.n = undefined; | |
| 8324 | + delete data[entry.i]; | |
| 6413 | 8325 | } |
| 8326 | + that._f = that._l = undefined; | |
| 8327 | + that[SIZE] = 0; | |
| 8328 | + }, | |
| 8329 | + // 23.1.3.3 Map.prototype.delete(key) | |
| 8330 | + // 23.2.3.4 Set.prototype.delete(value) | |
| 8331 | + 'delete': function (key) { | |
| 8332 | + var that = validate(this, NAME); | |
| 8333 | + var entry = getEntry(that, key); | |
| 8334 | + if (entry) { | |
| 8335 | + var next = entry.n; | |
| 8336 | + var prev = entry.p; | |
| 8337 | + delete that._i[entry.i]; | |
| 8338 | + entry.r = true; | |
| 8339 | + if (prev) prev.n = next; | |
| 8340 | + if (next) next.p = prev; | |
| 8341 | + if (that._f == entry) that._f = next; | |
| 8342 | + if (that._l == entry) that._l = prev; | |
| 8343 | + that[SIZE]--; | |
| 8344 | + } return !!entry; | |
| 8345 | + }, | |
| 8346 | + // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined) | |
| 8347 | + // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined) | |
| 8348 | + forEach: function forEach(callbackfn /* , that = undefined */) { | |
| 8349 | + validate(this, NAME); | |
| 8350 | + var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3); | |
| 8351 | + var entry; | |
| 8352 | + while (entry = entry ? entry.n : this._f) { | |
| 8353 | + f(entry.v, entry.k, this); | |
| 8354 | + // revert to the last existing entry | |
| 8355 | + while (entry && entry.r) entry = entry.p; | |
| 8356 | + } | |
| 8357 | + }, | |
| 8358 | + // 23.1.3.7 Map.prototype.has(key) | |
| 8359 | + // 23.2.3.7 Set.prototype.has(value) | |
| 8360 | + has: function has(key) { | |
| 8361 | + return !!getEntry(validate(this, NAME), key); | |
| 8362 | + } | |
| 8363 | + }); | |
| 8364 | + if (DESCRIPTORS) dP(C.prototype, 'size', { | |
| 8365 | + get: function () { | |
| 8366 | + return validate(this, NAME)[SIZE]; | |
| 8367 | + } | |
| 8368 | + }); | |
| 8369 | + return C; | |
| 8370 | + }, | |
| 8371 | + def: function (that, key, value) { | |
| 8372 | + var entry = getEntry(that, key); | |
| 8373 | + var prev, index; | |
| 8374 | + // change existing entry | |
| 8375 | + if (entry) { | |
| 8376 | + entry.v = value; | |
| 8377 | + // create new entry | |
| 8378 | + } else { | |
| 8379 | + that._l = entry = { | |
| 8380 | + i: index = fastKey(key, true), // <- index | |
| 8381 | + k: key, // <- key | |
| 8382 | + v: value, // <- value | |
| 8383 | + p: prev = that._l, // <- previous entry | |
| 8384 | + n: undefined, // <- next entry | |
| 8385 | + r: false // <- removed | |
| 6414 | 8386 | }; |
| 6415 | - var chain = middlewares.map(function (middleware) { | |
| 6416 | - return middleware(middlewareAPI); | |
| 6417 | - }); | |
| 6418 | - _dispatch = compose.apply(void 0, chain)(store.dispatch); | |
| 6419 | - return (0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_0__["default"])({}, store), {}, { | |
| 6420 | - dispatch: _dispatch | |
| 6421 | - }); | |
| 6422 | - }; | |
| 8387 | + if (!that._f) that._f = entry; | |
| 8388 | + if (prev) prev.n = entry; | |
| 8389 | + that[SIZE]++; | |
| 8390 | + // add to index | |
| 8391 | + if (index !== 'F') that._i[index] = entry; | |
| 8392 | + } return that; | |
| 8393 | + }, | |
| 8394 | + getEntry: getEntry, | |
| 8395 | + setStrong: function (C, NAME, IS_MAP) { | |
| 8396 | + // add .keys, .values, .entries, [@@iterator] | |
| 8397 | + // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11 | |
| 8398 | + $iterDefine(C, NAME, function (iterated, kind) { | |
| 8399 | + this._t = validate(iterated, NAME); // target | |
| 8400 | + this._k = kind; // kind | |
| 8401 | + this._l = undefined; // previous | |
| 8402 | + }, function () { | |
| 8403 | + var that = this; | |
| 8404 | + var kind = that._k; | |
| 8405 | + var entry = that._l; | |
| 8406 | + // revert to the last existing entry | |
| 8407 | + while (entry && entry.r) entry = entry.p; | |
| 8408 | + // get next entry | |
| 8409 | + if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) { | |
| 8410 | + // or finish the iteration | |
| 8411 | + that._t = undefined; | |
| 8412 | + return step(1); | |
| 8413 | + } | |
| 8414 | + // return step by kind | |
| 8415 | + if (kind == 'keys') return step(0, entry.k); | |
| 8416 | + if (kind == 'values') return step(0, entry.v); | |
| 8417 | + return step(0, [entry.k, entry.v]); | |
| 8418 | + }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); | |
| 8419 | + | |
| 8420 | + // add [@@species], 23.1.2.2, 23.2.2.2 | |
| 8421 | + setSpecies(NAME); | |
| 8422 | + } | |
| 8423 | +}; | |
| 8424 | + | |
| 8425 | + | |
| 8426 | +/***/ }), | |
| 8427 | +/* 396 */ | |
| 8428 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8429 | + | |
| 8430 | +// https://github.com/DavidBruant/Map-Set.prototype.toJSON | |
| 8431 | +var $export = __webpack_require__(7); | |
| 8432 | + | |
| 8433 | +$export($export.P + $export.R, 'Map', { toJSON: __webpack_require__(397)('Map') }); | |
| 8434 | + | |
| 8435 | + | |
| 8436 | +/***/ }), | |
| 8437 | +/* 397 */ | |
| 8438 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8439 | + | |
| 8440 | +// https://github.com/DavidBruant/Map-Set.prototype.toJSON | |
| 8441 | +var classof = __webpack_require__(101); | |
| 8442 | +var from = __webpack_require__(398); | |
| 8443 | +module.exports = function (NAME) { | |
| 8444 | + return function toJSON() { | |
| 8445 | + if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); | |
| 8446 | + return from(this); | |
| 6423 | 8447 | }; |
| 8448 | +}; | |
| 8449 | + | |
| 8450 | + | |
| 8451 | +/***/ }), | |
| 8452 | +/* 398 */ | |
| 8453 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8454 | + | |
| 8455 | +var forOf = __webpack_require__(86); | |
| 8456 | + | |
| 8457 | +module.exports = function (iter, ITERATOR) { | |
| 8458 | + var result = []; | |
| 8459 | + forOf(iter, false, result.push, result, ITERATOR); | |
| 8460 | + return result; | |
| 8461 | +}; | |
| 8462 | + | |
| 8463 | + | |
| 8464 | +/***/ }), | |
| 8465 | +/* 399 */ | |
| 8466 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8467 | + | |
| 8468 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of | |
| 8469 | +__webpack_require__(233)('Map'); | |
| 8470 | + | |
| 8471 | + | |
| 8472 | +/***/ }), | |
| 8473 | +/* 400 */ | |
| 8474 | +/***/ (function(module, exports, __webpack_require__) { | |
| 8475 | + | |
| 8476 | +// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from | |
| 8477 | +__webpack_require__(234)('Map'); | |
| 8478 | + | |
| 8479 | + | |
| 8480 | +/***/ }), | |
| 8481 | +/* 401 */ | |
| 8482 | +/***/ (function(module, exports) { | |
| 8483 | + | |
| 8484 | +function _isNativeFunction(fn) { | |
| 8485 | + return Function.toString.call(fn).indexOf("[native code]") !== -1; | |
| 6424 | 8486 | } |
| 6425 | 8487 | |
| 8488 | +module.exports = _isNativeFunction; | |
| 6426 | 8489 | |
| 8490 | +/***/ }), | |
| 8491 | +/* 402 */ | |
| 8492 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6427 | 8493 | |
| 8494 | +var _Reflect$construct = __webpack_require__(107); | |
| 6428 | 8495 | |
| 8496 | +var setPrototypeOf = __webpack_require__(135); | |
| 8497 | + | |
| 8498 | +var isNativeReflectConstruct = __webpack_require__(148); | |
| 8499 | + | |
| 8500 | +function _construct(Parent, args, Class) { | |
| 8501 | + if (isNativeReflectConstruct()) { | |
| 8502 | + module.exports = _construct = _Reflect$construct; | |
| 8503 | + } else { | |
| 8504 | + module.exports = _construct = function _construct(Parent, args, Class) { | |
| 8505 | + var a = [null]; | |
| 8506 | + a.push.apply(a, args); | |
| 8507 | + var Constructor = Function.bind.apply(Parent, a); | |
| 8508 | + var instance = new Constructor(); | |
| 8509 | + if (Class) setPrototypeOf(instance, Class.prototype); | |
| 8510 | + return instance; | |
| 8511 | + }; | |
| 8512 | + } | |
| 8513 | + | |
| 8514 | + return _construct.apply(null, arguments); | |
| 8515 | +} | |
| 8516 | + | |
| 8517 | +module.exports = _construct; | |
| 8518 | + | |
| 6429 | 8519 | /***/ }), |
| 8520 | +/* 403 */, | |
| 8521 | +/* 404 */, | |
| 8522 | +/* 405 */ | |
| 8523 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6430 | 8524 | |
| 6431 | -/***/ "../node_modules/reselect/es/defaultMemoize.js": | |
| 6432 | -/*!*****************************************************!*\ | |
| 6433 | - !*** ../node_modules/reselect/es/defaultMemoize.js ***! | |
| 6434 | - \*****************************************************/ | |
| 6435 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 8525 | +"use strict"; | |
| 6436 | 8526 | |
| 6437 | -"use strict"; | |
| 6438 | -__webpack_require__.r(__webpack_exports__); | |
| 6439 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6440 | -/* harmony export */ createCacheKeyComparator: () => (/* binding */ createCacheKeyComparator), | |
| 6441 | -/* harmony export */ defaultEqualityCheck: () => (/* binding */ defaultEqualityCheck), | |
| 6442 | -/* harmony export */ defaultMemoize: () => (/* binding */ defaultMemoize) | |
| 6443 | -/* harmony export */ }); | |
| 6444 | -// Cache implementation based on Erik Rasmussen's `lru-memoize`: | |
| 6445 | -// https://github.com/erikras/lru-memoize | |
| 6446 | -var NOT_FOUND = 'NOT_FOUND'; | |
| 6447 | 8527 | |
| 6448 | -function createSingletonCache(equals) { | |
| 6449 | - var entry; | |
| 6450 | - return { | |
| 6451 | - get: function get(key) { | |
| 6452 | - if (entry && equals(entry.key, key)) { | |
| 6453 | - return entry.value; | |
| 8528 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8529 | + | |
| 8530 | +var _create = _interopRequireDefault(__webpack_require__(137)); | |
| 8531 | + | |
| 8532 | +__webpack_require__(39); | |
| 8533 | + | |
| 8534 | +var _typeof2 = _interopRequireDefault(__webpack_require__(48)); | |
| 8535 | + | |
| 8536 | +__webpack_require__(80); | |
| 8537 | + | |
| 8538 | +var Module = function Module() { | |
| 8539 | + var $ = jQuery, | |
| 8540 | + instanceParams = arguments, | |
| 8541 | + self = this, | |
| 8542 | + events = {}; | |
| 8543 | + var settings; | |
| 8544 | + | |
| 8545 | + var ensureClosureMethods = function ensureClosureMethods() { | |
| 8546 | + $.each(self, function (methodName) { | |
| 8547 | + var oldMethod = self[methodName]; | |
| 8548 | + | |
| 8549 | + if ('function' !== typeof oldMethod) { | |
| 8550 | + return; | |
| 6454 | 8551 | } |
| 6455 | 8552 | |
| 6456 | - return NOT_FOUND; | |
| 6457 | - }, | |
| 6458 | - put: function put(key, value) { | |
| 6459 | - entry = { | |
| 6460 | - key: key, | |
| 6461 | - value: value | |
| 8553 | + self[methodName] = function () { | |
| 8554 | + return oldMethod.apply(self, arguments); | |
| 6462 | 8555 | }; |
| 6463 | - }, | |
| 6464 | - getEntries: function getEntries() { | |
| 6465 | - return entry ? [entry] : []; | |
| 6466 | - }, | |
| 6467 | - clear: function clear() { | |
| 6468 | - entry = undefined; | |
| 8556 | + }); | |
| 8557 | + }; | |
| 8558 | + | |
| 8559 | + var initSettings = function initSettings() { | |
| 8560 | + settings = self.getDefaultSettings(); | |
| 8561 | + var instanceSettings = instanceParams[0]; | |
| 8562 | + | |
| 8563 | + if (instanceSettings) { | |
| 8564 | + $.extend(true, settings, instanceSettings); | |
| 6469 | 8565 | } |
| 6470 | 8566 | }; |
| 6471 | -} | |
| 6472 | 8567 | |
| 6473 | -function createLruCache(maxSize, equals) { | |
| 6474 | - var entries = []; | |
| 8568 | + var init = function init() { | |
| 8569 | + self.__construct.apply(self, instanceParams); | |
| 6475 | 8570 | |
| 6476 | - function get(key) { | |
| 6477 | - var cacheIndex = entries.findIndex(function (entry) { | |
| 6478 | - return equals(key, entry.key); | |
| 6479 | - }); // We found a cached entry | |
| 8571 | + ensureClosureMethods(); | |
| 8572 | + initSettings(); | |
| 8573 | + self.trigger('init'); | |
| 8574 | + }; | |
| 6480 | 8575 | |
| 6481 | - if (cacheIndex > -1) { | |
| 6482 | - var entry = entries[cacheIndex]; // Cached entry not at top of cache, move it to the top | |
| 8576 | + this.getItems = function (items, itemKey) { | |
| 8577 | + if (itemKey) { | |
| 8578 | + var keyStack = itemKey.split('.'), | |
| 8579 | + currentKey = keyStack.splice(0, 1); | |
| 6483 | 8580 | |
| 6484 | - if (cacheIndex > 0) { | |
| 6485 | - entries.splice(cacheIndex, 1); | |
| 6486 | - entries.unshift(entry); | |
| 8581 | + if (!keyStack.length) { | |
| 8582 | + return items[currentKey]; | |
| 6487 | 8583 | } |
| 6488 | 8584 | |
| 6489 | - return entry.value; | |
| 6490 | - } // No entry found in cache, return sentinel | |
| 8585 | + if (!items[currentKey]) { | |
| 8586 | + return; | |
| 8587 | + } | |
| 6491 | 8588 | |
| 8589 | + return this.getItems(items[currentKey], keyStack.join('.')); | |
| 8590 | + } | |
| 6492 | 8591 | |
| 6493 | - return NOT_FOUND; | |
| 6494 | - } | |
| 8592 | + return items; | |
| 8593 | + }; | |
| 6495 | 8594 | |
| 6496 | - function put(key, value) { | |
| 6497 | - if (get(key) === NOT_FOUND) { | |
| 6498 | - // TODO Is unshift slow? | |
| 6499 | - entries.unshift({ | |
| 6500 | - key: key, | |
| 6501 | - value: value | |
| 8595 | + this.getSettings = function (setting) { | |
| 8596 | + return this.getItems(settings, setting); | |
| 8597 | + }; | |
| 8598 | + | |
| 8599 | + this.setSettings = function (settingKey, value, settingsContainer) { | |
| 8600 | + if (!settingsContainer) { | |
| 8601 | + settingsContainer = settings; | |
| 8602 | + } | |
| 8603 | + | |
| 8604 | + if ('object' === (0, _typeof2.default)(settingKey)) { | |
| 8605 | + $.extend(settingsContainer, settingKey); | |
| 8606 | + return self; | |
| 8607 | + } | |
| 8608 | + | |
| 8609 | + var keyStack = settingKey.split('.'), | |
| 8610 | + currentKey = keyStack.splice(0, 1); | |
| 8611 | + | |
| 8612 | + if (!keyStack.length) { | |
| 8613 | + settingsContainer[currentKey] = value; | |
| 8614 | + return self; | |
| 8615 | + } | |
| 8616 | + | |
| 8617 | + if (!settingsContainer[currentKey]) { | |
| 8618 | + settingsContainer[currentKey] = {}; | |
| 8619 | + } | |
| 8620 | + | |
| 8621 | + return self.setSettings(keyStack.join('.'), value, settingsContainer[currentKey]); | |
| 8622 | + }; | |
| 8623 | + | |
| 8624 | + this.getErrorMessage = function (type, functionName) { | |
| 8625 | + var message; | |
| 8626 | + | |
| 8627 | + switch (type) { | |
| 8628 | + case 'forceMethodImplementation': | |
| 8629 | + message = "The method '".concat(functionName, "' must to be implemented in the inheritor child."); | |
| 8630 | + break; | |
| 8631 | + | |
| 8632 | + default: | |
| 8633 | + message = 'An error occurs'; | |
| 8634 | + } | |
| 8635 | + | |
| 8636 | + return message; | |
| 8637 | + }; // TODO: This function should be deleted ?. | |
| 8638 | + | |
| 8639 | + | |
| 8640 | + this.forceMethodImplementation = function (functionName) { | |
| 8641 | + throw new Error(this.getErrorMessage('forceMethodImplementation', functionName)); | |
| 8642 | + }; | |
| 8643 | + | |
| 8644 | + this.on = function (eventName, callback) { | |
| 8645 | + if ('object' === (0, _typeof2.default)(eventName)) { | |
| 8646 | + $.each(eventName, function (singleEventName) { | |
| 8647 | + self.on(singleEventName, this); | |
| 6502 | 8648 | }); |
| 8649 | + return self; | |
| 8650 | + } | |
| 6503 | 8651 | |
| 6504 | - if (entries.length > maxSize) { | |
| 6505 | - entries.pop(); | |
| 8652 | + var eventNames = eventName.split(' '); | |
| 8653 | + eventNames.forEach(function (singleEventName) { | |
| 8654 | + if (!events[singleEventName]) { | |
| 8655 | + events[singleEventName] = []; | |
| 6506 | 8656 | } |
| 8657 | + | |
| 8658 | + events[singleEventName].push(callback); | |
| 8659 | + }); | |
| 8660 | + return self; | |
| 8661 | + }; | |
| 8662 | + | |
| 8663 | + this.off = function (eventName, callback) { | |
| 8664 | + if (!events[eventName]) { | |
| 8665 | + return self; | |
| 6507 | 8666 | } |
| 6508 | - } | |
| 6509 | 8667 | |
| 6510 | - function getEntries() { | |
| 6511 | - return entries; | |
| 6512 | - } | |
| 8668 | + if (!callback) { | |
| 8669 | + delete events[eventName]; | |
| 8670 | + return self; | |
| 8671 | + } | |
| 6513 | 8672 | |
| 6514 | - function clear() { | |
| 6515 | - entries = []; | |
| 6516 | - } | |
| 8673 | + var callbackIndex = events[eventName].indexOf(callback); | |
| 6517 | 8674 | |
| 6518 | - return { | |
| 6519 | - get: get, | |
| 6520 | - put: put, | |
| 6521 | - getEntries: getEntries, | |
| 6522 | - clear: clear | |
| 8675 | + if (-1 !== callbackIndex) { | |
| 8676 | + delete events[eventName][callbackIndex]; // Reset array index (for next off on same event). | |
| 8677 | + | |
| 8678 | + events[eventName] = events[eventName].filter(function (val) { | |
| 8679 | + return val; | |
| 8680 | + }); | |
| 8681 | + } | |
| 8682 | + | |
| 8683 | + return self; | |
| 6523 | 8684 | }; |
| 6524 | -} | |
| 6525 | 8685 | |
| 6526 | -var defaultEqualityCheck = function defaultEqualityCheck(a, b) { | |
| 6527 | - return a === b; | |
| 6528 | -}; | |
| 6529 | -function createCacheKeyComparator(equalityCheck) { | |
| 6530 | - return function areArgumentsShallowlyEqual(prev, next) { | |
| 6531 | - if (prev === null || next === null || prev.length !== next.length) { | |
| 6532 | - return false; | |
| 6533 | - } // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible. | |
| 8686 | + this.trigger = function (eventName) { | |
| 8687 | + var methodName = 'on' + eventName[0].toUpperCase() + eventName.slice(1), | |
| 8688 | + params = Array.prototype.slice.call(arguments, 1); | |
| 6534 | 8689 | |
| 8690 | + if (self[methodName]) { | |
| 8691 | + self[methodName].apply(self, params); | |
| 8692 | + } | |
| 6535 | 8693 | |
| 6536 | - var length = prev.length; | |
| 8694 | + var callbacks = events[eventName]; | |
| 6537 | 8695 | |
| 6538 | - for (var i = 0; i < length; i++) { | |
| 6539 | - if (!equalityCheck(prev[i], next[i])) { | |
| 6540 | - return false; | |
| 6541 | - } | |
| 8696 | + if (!callbacks) { | |
| 8697 | + return self; | |
| 6542 | 8698 | } |
| 6543 | 8699 | |
| 6544 | - return true; | |
| 8700 | + $.each(callbacks, function (index, callback) { | |
| 8701 | + callback.apply(self, params); | |
| 8702 | + }); | |
| 8703 | + return self; | |
| 6545 | 8704 | }; |
| 6546 | -} | |
| 6547 | -// defaultMemoize now supports a configurable cache size with LRU behavior, | |
| 6548 | -// and optional comparison of the result value with existing values | |
| 6549 | -function defaultMemoize(func, equalityCheckOrOptions) { | |
| 6550 | - var providedOptions = typeof equalityCheckOrOptions === 'object' ? equalityCheckOrOptions : { | |
| 6551 | - equalityCheck: equalityCheckOrOptions | |
| 8705 | + | |
| 8706 | + init(); | |
| 8707 | +}; | |
| 8708 | + | |
| 8709 | +Module.prototype.__construct = function () {}; | |
| 8710 | + | |
| 8711 | +Module.prototype.getDefaultSettings = function () { | |
| 8712 | + return {}; | |
| 8713 | +}; | |
| 8714 | + | |
| 8715 | +Module.prototype.getConstructorID = function () { | |
| 8716 | + return this.constructor.name; | |
| 8717 | +}; | |
| 8718 | + | |
| 8719 | +Module.extend = function (properties) { | |
| 8720 | + var $ = jQuery, | |
| 8721 | + parent = this; | |
| 8722 | + | |
| 8723 | + var child = function child() { | |
| 8724 | + return parent.apply(this, arguments); | |
| 6552 | 8725 | }; |
| 6553 | - var _providedOptions$equa = providedOptions.equalityCheck, | |
| 6554 | - equalityCheck = _providedOptions$equa === void 0 ? defaultEqualityCheck : _providedOptions$equa, | |
| 6555 | - _providedOptions$maxS = providedOptions.maxSize, | |
| 6556 | - maxSize = _providedOptions$maxS === void 0 ? 1 : _providedOptions$maxS, | |
| 6557 | - resultEqualityCheck = providedOptions.resultEqualityCheck; | |
| 6558 | - var comparator = createCacheKeyComparator(equalityCheck); | |
| 6559 | - var cache = maxSize === 1 ? createSingletonCache(comparator) : createLruCache(maxSize, comparator); // we reference arguments instead of spreading them for performance reasons | |
| 6560 | 8726 | |
| 6561 | - function memoized() { | |
| 6562 | - var value = cache.get(arguments); | |
| 8727 | + $.extend(child, parent); | |
| 8728 | + child.prototype = (0, _create.default)($.extend({}, parent.prototype, properties)); | |
| 8729 | + child.prototype.constructor = child; | |
| 8730 | + child.__super__ = parent.prototype; | |
| 8731 | + return child; | |
| 8732 | +}; | |
| 6563 | 8733 | |
| 6564 | - if (value === NOT_FOUND) { | |
| 6565 | - // @ts-ignore | |
| 6566 | - value = func.apply(null, arguments); | |
| 8734 | +module.exports = Module; | |
| 6567 | 8735 | |
| 6568 | - if (resultEqualityCheck) { | |
| 6569 | - var entries = cache.getEntries(); | |
| 6570 | - var matchingEntry = entries.find(function (entry) { | |
| 6571 | - return resultEqualityCheck(entry.value, value); | |
| 6572 | - }); | |
| 8736 | +/***/ }), | |
| 8737 | +/* 406 */ | |
| 8738 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6573 | 8739 | |
| 6574 | - if (matchingEntry) { | |
| 6575 | - value = matchingEntry.value; | |
| 6576 | - } | |
| 6577 | - } | |
| 8740 | +"use strict"; | |
| 6578 | 8741 | |
| 6579 | - cache.put(arguments, value); | |
| 6580 | - } | |
| 6581 | 8742 | |
| 6582 | - return value; | |
| 8743 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8744 | + | |
| 8745 | +var _module = _interopRequireDefault(__webpack_require__(405)); | |
| 8746 | + | |
| 8747 | +module.exports = _module.default.extend({ | |
| 8748 | + elements: null, | |
| 8749 | + getDefaultElements: function getDefaultElements() { | |
| 8750 | + return {}; | |
| 8751 | + }, | |
| 8752 | + bindEvents: function bindEvents() {}, | |
| 8753 | + onInit: function onInit() { | |
| 8754 | + this.initElements(); | |
| 8755 | + this.bindEvents(); | |
| 8756 | + }, | |
| 8757 | + initElements: function initElements() { | |
| 8758 | + this.elements = this.getDefaultElements(); | |
| 6583 | 8759 | } |
| 8760 | +}); | |
| 6584 | 8761 | |
| 6585 | - memoized.clearCache = function () { | |
| 6586 | - return cache.clear(); | |
| 6587 | - }; | |
| 8762 | +/***/ }), | |
| 8763 | +/* 407 */, | |
| 8764 | +/* 408 */, | |
| 8765 | +/* 409 */, | |
| 8766 | +/* 410 */, | |
| 8767 | +/* 411 */, | |
| 8768 | +/* 412 */, | |
| 8769 | +/* 413 */, | |
| 8770 | +/* 414 */, | |
| 8771 | +/* 415 */, | |
| 8772 | +/* 416 */, | |
| 8773 | +/* 417 */, | |
| 8774 | +/* 418 */, | |
| 8775 | +/* 419 */, | |
| 8776 | +/* 420 */, | |
| 8777 | +/* 421 */, | |
| 8778 | +/* 422 */, | |
| 8779 | +/* 423 */, | |
| 8780 | +/* 424 */, | |
| 8781 | +/* 425 */, | |
| 8782 | +/* 426 */, | |
| 8783 | +/* 427 */, | |
| 8784 | +/* 428 */, | |
| 8785 | +/* 429 */, | |
| 8786 | +/* 430 */, | |
| 8787 | +/* 431 */, | |
| 8788 | +/* 432 */, | |
| 8789 | +/* 433 */, | |
| 8790 | +/* 434 */, | |
| 8791 | +/* 435 */, | |
| 8792 | +/* 436 */, | |
| 8793 | +/* 437 */, | |
| 8794 | +/* 438 */, | |
| 8795 | +/* 439 */, | |
| 8796 | +/* 440 */, | |
| 8797 | +/* 441 */, | |
| 8798 | +/* 442 */, | |
| 8799 | +/* 443 */, | |
| 8800 | +/* 444 */, | |
| 8801 | +/* 445 */, | |
| 8802 | +/* 446 */, | |
| 8803 | +/* 447 */, | |
| 8804 | +/* 448 */, | |
| 8805 | +/* 449 */, | |
| 8806 | +/* 450 */, | |
| 8807 | +/* 451 */, | |
| 8808 | +/* 452 */, | |
| 8809 | +/* 453 */, | |
| 8810 | +/* 454 */, | |
| 8811 | +/* 455 */, | |
| 8812 | +/* 456 */, | |
| 8813 | +/* 457 */, | |
| 8814 | +/* 458 */, | |
| 8815 | +/* 459 */, | |
| 8816 | +/* 460 */, | |
| 8817 | +/* 461 */, | |
| 8818 | +/* 462 */, | |
| 8819 | +/* 463 */, | |
| 8820 | +/* 464 */, | |
| 8821 | +/* 465 */, | |
| 8822 | +/* 466 */, | |
| 8823 | +/* 467 */, | |
| 8824 | +/* 468 */, | |
| 8825 | +/* 469 */, | |
| 8826 | +/* 470 */, | |
| 8827 | +/* 471 */, | |
| 8828 | +/* 472 */, | |
| 8829 | +/* 473 */, | |
| 8830 | +/* 474 */, | |
| 8831 | +/* 475 */, | |
| 8832 | +/* 476 */, | |
| 8833 | +/* 477 */, | |
| 8834 | +/* 478 */, | |
| 8835 | +/* 479 */, | |
| 8836 | +/* 480 */, | |
| 8837 | +/* 481 */, | |
| 8838 | +/* 482 */, | |
| 8839 | +/* 483 */, | |
| 8840 | +/* 484 */, | |
| 8841 | +/* 485 */, | |
| 8842 | +/* 486 */, | |
| 8843 | +/* 487 */, | |
| 8844 | +/* 488 */, | |
| 8845 | +/* 489 */, | |
| 8846 | +/* 490 */, | |
| 8847 | +/* 491 */, | |
| 8848 | +/* 492 */, | |
| 8849 | +/* 493 */, | |
| 8850 | +/* 494 */, | |
| 8851 | +/* 495 */, | |
| 8852 | +/* 496 */, | |
| 8853 | +/* 497 */, | |
| 8854 | +/* 498 */, | |
| 8855 | +/* 499 */, | |
| 8856 | +/* 500 */, | |
| 8857 | +/* 501 */, | |
| 8858 | +/* 502 */, | |
| 8859 | +/* 503 */, | |
| 8860 | +/* 504 */, | |
| 8861 | +/* 505 */, | |
| 8862 | +/* 506 */, | |
| 8863 | +/* 507 */, | |
| 8864 | +/* 508 */, | |
| 8865 | +/* 509 */, | |
| 8866 | +/* 510 */, | |
| 8867 | +/* 511 */, | |
| 8868 | +/* 512 */, | |
| 8869 | +/* 513 */, | |
| 8870 | +/* 514 */, | |
| 8871 | +/* 515 */, | |
| 8872 | +/* 516 */, | |
| 8873 | +/* 517 */, | |
| 8874 | +/* 518 */, | |
| 8875 | +/* 519 */, | |
| 8876 | +/* 520 */, | |
| 8877 | +/* 521 */, | |
| 8878 | +/* 522 */, | |
| 8879 | +/* 523 */, | |
| 8880 | +/* 524 */, | |
| 8881 | +/* 525 */, | |
| 8882 | +/* 526 */, | |
| 8883 | +/* 527 */, | |
| 8884 | +/* 528 */, | |
| 8885 | +/* 529 */, | |
| 8886 | +/* 530 */, | |
| 8887 | +/* 531 */, | |
| 8888 | +/* 532 */, | |
| 8889 | +/* 533 */, | |
| 8890 | +/* 534 */, | |
| 8891 | +/* 535 */, | |
| 8892 | +/* 536 */, | |
| 8893 | +/* 537 */, | |
| 8894 | +/* 538 */, | |
| 8895 | +/* 539 */, | |
| 8896 | +/* 540 */, | |
| 8897 | +/* 541 */, | |
| 8898 | +/* 542 */, | |
| 8899 | +/* 543 */, | |
| 8900 | +/* 544 */, | |
| 8901 | +/* 545 */, | |
| 8902 | +/* 546 */, | |
| 8903 | +/* 547 */, | |
| 8904 | +/* 548 */, | |
| 8905 | +/* 549 */, | |
| 8906 | +/* 550 */, | |
| 8907 | +/* 551 */, | |
| 8908 | +/* 552 */, | |
| 8909 | +/* 553 */, | |
| 8910 | +/* 554 */, | |
| 8911 | +/* 555 */, | |
| 8912 | +/* 556 */, | |
| 8913 | +/* 557 */, | |
| 8914 | +/* 558 */, | |
| 8915 | +/* 559 */, | |
| 8916 | +/* 560 */, | |
| 8917 | +/* 561 */, | |
| 8918 | +/* 562 */, | |
| 8919 | +/* 563 */, | |
| 8920 | +/* 564 */, | |
| 8921 | +/* 565 */, | |
| 8922 | +/* 566 */, | |
| 8923 | +/* 567 */, | |
| 8924 | +/* 568 */, | |
| 8925 | +/* 569 */, | |
| 8926 | +/* 570 */, | |
| 8927 | +/* 571 */, | |
| 8928 | +/* 572 */, | |
| 8929 | +/* 573 */, | |
| 8930 | +/* 574 */, | |
| 8931 | +/* 575 */, | |
| 8932 | +/* 576 */, | |
| 8933 | +/* 577 */, | |
| 8934 | +/* 578 */, | |
| 8935 | +/* 579 */, | |
| 8936 | +/* 580 */, | |
| 8937 | +/* 581 */, | |
| 8938 | +/* 582 */, | |
| 8939 | +/* 583 */, | |
| 8940 | +/* 584 */, | |
| 8941 | +/* 585 */, | |
| 8942 | +/* 586 */, | |
| 8943 | +/* 587 */, | |
| 8944 | +/* 588 */, | |
| 8945 | +/* 589 */, | |
| 8946 | +/* 590 */, | |
| 8947 | +/* 591 */, | |
| 8948 | +/* 592 */, | |
| 8949 | +/* 593 */, | |
| 8950 | +/* 594 */, | |
| 8951 | +/* 595 */, | |
| 8952 | +/* 596 */, | |
| 8953 | +/* 597 */, | |
| 8954 | +/* 598 */, | |
| 8955 | +/* 599 */, | |
| 8956 | +/* 600 */, | |
| 8957 | +/* 601 */, | |
| 8958 | +/* 602 */, | |
| 8959 | +/* 603 */, | |
| 8960 | +/* 604 */, | |
| 8961 | +/* 605 */, | |
| 8962 | +/* 606 */, | |
| 8963 | +/* 607 */, | |
| 8964 | +/* 608 */, | |
| 8965 | +/* 609 */, | |
| 8966 | +/* 610 */, | |
| 8967 | +/* 611 */, | |
| 8968 | +/* 612 */, | |
| 8969 | +/* 613 */, | |
| 8970 | +/* 614 */, | |
| 8971 | +/* 615 */, | |
| 8972 | +/* 616 */, | |
| 8973 | +/* 617 */, | |
| 8974 | +/* 618 */, | |
| 8975 | +/* 619 */, | |
| 8976 | +/* 620 */, | |
| 8977 | +/* 621 */, | |
| 8978 | +/* 622 */, | |
| 8979 | +/* 623 */, | |
| 8980 | +/* 624 */, | |
| 8981 | +/* 625 */, | |
| 8982 | +/* 626 */, | |
| 8983 | +/* 627 */, | |
| 8984 | +/* 628 */, | |
| 8985 | +/* 629 */, | |
| 8986 | +/* 630 */, | |
| 8987 | +/* 631 */, | |
| 8988 | +/* 632 */, | |
| 8989 | +/* 633 */ | |
| 8990 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6588 | 8991 | |
| 6589 | - return memoized; | |
| 6590 | -} | |
| 8992 | +"use strict"; | |
| 6591 | 8993 | |
| 8994 | + | |
| 8995 | +var _interopRequireDefault = __webpack_require__(0); | |
| 8996 | + | |
| 8997 | +var _Object$defineProperty = __webpack_require__(1); | |
| 8998 | + | |
| 8999 | +_Object$defineProperty(exports, "__esModule", { | |
| 9000 | + value: true | |
| 9001 | +}); | |
| 9002 | + | |
| 9003 | +exports.default = void 0; | |
| 9004 | + | |
| 9005 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 9006 | + | |
| 9007 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 9008 | + | |
| 9009 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 9010 | + | |
| 9011 | +var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(342)); | |
| 9012 | + | |
| 9013 | +var HookBreak = /*#__PURE__*/function (_Error) { | |
| 9014 | + (0, _inherits2.default)(HookBreak, _Error); | |
| 9015 | + | |
| 9016 | + var _super = (0, _createSuper2.default)(HookBreak); | |
| 9017 | + | |
| 9018 | + function HookBreak() { | |
| 9019 | + (0, _classCallCheck2.default)(this, HookBreak); | |
| 9020 | + return _super.call(this, 'HookBreak'); | |
| 9021 | + } | |
| 9022 | + | |
| 9023 | + return HookBreak; | |
| 9024 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 9025 | + | |
| 9026 | +exports.default = HookBreak; | |
| 9027 | + | |
| 6592 | 9028 | /***/ }), |
| 9029 | +/* 634 */, | |
| 9030 | +/* 635 */, | |
| 9031 | +/* 636 */, | |
| 9032 | +/* 637 */, | |
| 9033 | +/* 638 */, | |
| 9034 | +/* 639 */, | |
| 9035 | +/* 640 */, | |
| 9036 | +/* 641 */, | |
| 9037 | +/* 642 */, | |
| 9038 | +/* 643 */, | |
| 9039 | +/* 644 */, | |
| 9040 | +/* 645 */, | |
| 9041 | +/* 646 */, | |
| 9042 | +/* 647 */, | |
| 9043 | +/* 648 */, | |
| 9044 | +/* 649 */, | |
| 9045 | +/* 650 */, | |
| 9046 | +/* 651 */, | |
| 9047 | +/* 652 */, | |
| 9048 | +/* 653 */, | |
| 9049 | +/* 654 */, | |
| 9050 | +/* 655 */, | |
| 9051 | +/* 656 */, | |
| 9052 | +/* 657 */, | |
| 9053 | +/* 658 */, | |
| 9054 | +/* 659 */ | |
| 9055 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6593 | 9056 | |
| 6594 | -/***/ "../node_modules/reselect/es/index.js": | |
| 6595 | -/*!********************************************!*\ | |
| 6596 | - !*** ../node_modules/reselect/es/index.js ***! | |
| 6597 | - \********************************************/ | |
| 6598 | -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |
| 9057 | +"use strict"; | |
| 6599 | 9058 | |
| 9059 | + | |
| 9060 | +var _interopRequireDefault = __webpack_require__(0); | |
| 9061 | + | |
| 9062 | +var _Object$defineProperty = __webpack_require__(1); | |
| 9063 | + | |
| 9064 | +_Object$defineProperty(exports, "__esModule", { | |
| 9065 | + value: true | |
| 9066 | +}); | |
| 9067 | + | |
| 9068 | +exports.default = void 0; | |
| 9069 | + | |
| 9070 | +var _module = _interopRequireDefault(__webpack_require__(405)); | |
| 9071 | + | |
| 9072 | +var _viewModule = _interopRequireDefault(__webpack_require__(406)); | |
| 9073 | + | |
| 9074 | +var _argsObject = _interopRequireDefault(__webpack_require__(223)); | |
| 9075 | + | |
| 9076 | +var _masonry = _interopRequireDefault(__webpack_require__(660)); | |
| 9077 | + | |
| 9078 | +var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(661)); | |
| 9079 | + | |
| 9080 | +var _default = window.elementorModules = { | |
| 9081 | + Module: _module.default, | |
| 9082 | + ViewModule: _viewModule.default, | |
| 9083 | + ArgsObject: _argsObject.default, | |
| 9084 | + ForceMethodImplementation: _forceMethodImplementation.default, | |
| 9085 | + utils: { | |
| 9086 | + Masonry: _masonry.default | |
| 9087 | + } | |
| 9088 | +}; | |
| 9089 | + | |
| 9090 | +exports.default = _default; | |
| 9091 | + | |
| 9092 | +/***/ }), | |
| 9093 | +/* 660 */ | |
| 9094 | +/***/ (function(module, exports, __webpack_require__) { | |
| 9095 | + | |
| 6600 | 9096 | "use strict"; |
| 6601 | -__webpack_require__.r(__webpack_exports__); | |
| 6602 | -/* harmony export */ __webpack_require__.d(__webpack_exports__, { | |
| 6603 | -/* harmony export */ createSelector: () => (/* binding */ createSelector), | |
| 6604 | -/* harmony export */ createSelectorCreator: () => (/* binding */ createSelectorCreator), | |
| 6605 | -/* harmony export */ createStructuredSelector: () => (/* binding */ createStructuredSelector), | |
| 6606 | -/* harmony export */ defaultEqualityCheck: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultEqualityCheck), | |
| 6607 | -/* harmony export */ defaultMemoize: () => (/* reexport safe */ _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize) | |
| 6608 | -/* harmony export */ }); | |
| 6609 | -/* harmony import */ var _defaultMemoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defaultMemoize */ "../node_modules/reselect/es/defaultMemoize.js"); | |
| 6610 | 9097 | |
| 6611 | 9098 | |
| 9099 | +var _interopRequireDefault = __webpack_require__(0); | |
| 6612 | 9100 | |
| 6613 | -function getDependencies(funcs) { | |
| 6614 | - var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs; | |
| 9101 | +var _parseInt2 = _interopRequireDefault(__webpack_require__(211)); | |
| 6615 | 9102 | |
| 6616 | - if (!dependencies.every(function (dep) { | |
| 6617 | - return typeof dep === 'function'; | |
| 6618 | - })) { | |
| 6619 | - var dependencyTypes = dependencies.map(function (dep) { | |
| 6620 | - return typeof dep === 'function' ? "function " + (dep.name || 'unnamed') + "()" : typeof dep; | |
| 6621 | - }).join(', '); | |
| 6622 | - throw new Error("createSelector expects all input-selectors to be functions, but received the following types: [" + dependencyTypes + "]"); | |
| 6623 | - } | |
| 9103 | +var _viewModule = _interopRequireDefault(__webpack_require__(406)); | |
| 6624 | 9104 | |
| 6625 | - return dependencies; | |
| 6626 | -} | |
| 9105 | +module.exports = _viewModule.default.extend({ | |
| 9106 | + getDefaultSettings: function getDefaultSettings() { | |
| 9107 | + return { | |
| 9108 | + container: null, | |
| 9109 | + items: null, | |
| 9110 | + columnsCount: 3, | |
| 9111 | + verticalSpaceBetween: 30 | |
| 9112 | + }; | |
| 9113 | + }, | |
| 9114 | + getDefaultElements: function getDefaultElements() { | |
| 9115 | + return { | |
| 9116 | + $container: jQuery(this.getSettings('container')), | |
| 9117 | + $items: jQuery(this.getSettings('items')) | |
| 9118 | + }; | |
| 9119 | + }, | |
| 9120 | + run: function run() { | |
| 9121 | + var heights = [], | |
| 9122 | + distanceFromTop = this.elements.$container.position().top, | |
| 9123 | + settings = this.getSettings(), | |
| 9124 | + columnsCount = settings.columnsCount; | |
| 9125 | + distanceFromTop += (0, _parseInt2.default)(this.elements.$container.css('margin-top'), 10); | |
| 9126 | + this.elements.$items.each(function (index) { | |
| 9127 | + var row = Math.floor(index / columnsCount), | |
| 9128 | + $item = jQuery(this), | |
| 9129 | + itemHeight = $item[0].getBoundingClientRect().height + settings.verticalSpaceBetween; | |
| 6627 | 9130 | |
| 6628 | -function createSelectorCreator(memoize) { | |
| 6629 | - for (var _len = arguments.length, memoizeOptionsFromArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | |
| 6630 | - memoizeOptionsFromArgs[_key - 1] = arguments[_key]; | |
| 9131 | + if (row) { | |
| 9132 | + var itemPosition = $item.position(), | |
| 9133 | + indexAtRow = index % columnsCount, | |
| 9134 | + pullHeight = itemPosition.top - distanceFromTop - heights[indexAtRow]; | |
| 9135 | + pullHeight -= (0, _parseInt2.default)($item.css('margin-top'), 10); | |
| 9136 | + pullHeight *= -1; | |
| 9137 | + $item.css('margin-top', pullHeight + 'px'); | |
| 9138 | + heights[indexAtRow] += itemHeight; | |
| 9139 | + } else { | |
| 9140 | + heights.push(itemHeight); | |
| 9141 | + } | |
| 9142 | + }); | |
| 6631 | 9143 | } |
| 9144 | +}); | |
| 6632 | 9145 | |
| 6633 | - var createSelector = function createSelector() { | |
| 6634 | - for (var _len2 = arguments.length, funcs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { | |
| 6635 | - funcs[_key2] = arguments[_key2]; | |
| 6636 | - } | |
| 9146 | +/***/ }), | |
| 9147 | +/* 661 */ | |
| 9148 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6637 | 9149 | |
| 6638 | - var _recomputations = 0; | |
| 9150 | +"use strict"; | |
| 6639 | 9151 | |
| 6640 | - var _lastResult; // Due to the intricacies of rest params, we can't do an optional arg after `...funcs`. | |
| 6641 | - // So, start by declaring the default value here. | |
| 6642 | - // (And yes, the words 'memoize' and 'options' appear too many times in this next sequence.) | |
| 6643 | 9152 | |
| 9153 | +var _interopRequireDefault = __webpack_require__(0); | |
| 6644 | 9154 | |
| 6645 | - var directlyPassedOptions = { | |
| 6646 | - memoizeOptions: undefined | |
| 6647 | - }; // Normally, the result func or "output selector" is the last arg | |
| 9155 | +var _Object$defineProperty = __webpack_require__(1); | |
| 6648 | 9156 | |
| 6649 | - var resultFunc = funcs.pop(); // If the result func is actually an _object_, assume it's our options object | |
| 9157 | +_Object$defineProperty(exports, "__esModule", { | |
| 9158 | + value: true | |
| 9159 | +}); | |
| 6650 | 9160 | |
| 6651 | - if (typeof resultFunc === 'object') { | |
| 6652 | - directlyPassedOptions = resultFunc; // and pop the real result func off | |
| 9161 | +exports.default = exports.ForceMethodImplementation = void 0; | |
| 6653 | 9162 | |
| 6654 | - resultFunc = funcs.pop(); | |
| 6655 | - } | |
| 9163 | +__webpack_require__(141); | |
| 6656 | 9164 | |
| 6657 | - if (typeof resultFunc !== 'function') { | |
| 6658 | - throw new Error("createSelector expects an output function after the inputs, but received: [" + typeof resultFunc + "]"); | |
| 6659 | - } // Determine which set of options we're using. Prefer options passed directly, | |
| 6660 | - // but fall back to options given to createSelectorCreator. | |
| 9165 | +__webpack_require__(188); | |
| 6661 | 9166 | |
| 9167 | +__webpack_require__(276); | |
| 6662 | 9168 | |
| 6663 | - var _directlyPassedOption = directlyPassedOptions, | |
| 6664 | - _directlyPassedOption2 = _directlyPassedOption.memoizeOptions, | |
| 6665 | - memoizeOptions = _directlyPassedOption2 === void 0 ? memoizeOptionsFromArgs : _directlyPassedOption2; // Simplifying assumption: it's unlikely that the first options arg of the provided memoizer | |
| 6666 | - // is an array. In most libs I've looked at, it's an equality function or options object. | |
| 6667 | - // Based on that, if `memoizeOptions` _is_ an array, we assume it's a full | |
| 6668 | - // user-provided array of options. Otherwise, it must be just the _first_ arg, and so | |
| 6669 | - // we wrap it in an array so we can apply it. | |
| 9169 | +__webpack_require__(80); | |
| 6670 | 9170 | |
| 6671 | - var finalMemoizeOptions = Array.isArray(memoizeOptions) ? memoizeOptions : [memoizeOptions]; | |
| 6672 | - var dependencies = getDependencies(funcs); | |
| 6673 | - var memoizedResultFunc = memoize.apply(void 0, [function recomputationWrapper() { | |
| 6674 | - _recomputations++; // apply arguments instead of spreading for performance. | |
| 9171 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 6675 | 9172 | |
| 6676 | - return resultFunc.apply(null, arguments); | |
| 6677 | - }].concat(finalMemoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again. | |
| 9173 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49)); | |
| 6678 | 9174 | |
| 6679 | - var selector = memoize(function dependenciesChecker() { | |
| 6680 | - var params = []; | |
| 6681 | - var length = dependencies.length; | |
| 9175 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 6682 | 9176 | |
| 6683 | - for (var i = 0; i < length; i++) { | |
| 6684 | - // apply arguments instead of spreading and mutate a local list of params for performance. | |
| 6685 | - // @ts-ignore | |
| 6686 | - params.push(dependencies[i].apply(null, arguments)); | |
| 6687 | - } // apply arguments instead of spreading for performance. | |
| 9177 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 6688 | 9178 | |
| 9179 | +var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(342)); | |
| 6689 | 9180 | |
| 6690 | - _lastResult = memoizedResultFunc.apply(null, params); | |
| 6691 | - return _lastResult; | |
| 6692 | - }); | |
| 6693 | - Object.assign(selector, { | |
| 6694 | - resultFunc: resultFunc, | |
| 6695 | - memoizedResultFunc: memoizedResultFunc, | |
| 6696 | - dependencies: dependencies, | |
| 6697 | - lastResult: function lastResult() { | |
| 6698 | - return _lastResult; | |
| 6699 | - }, | |
| 6700 | - recomputations: function recomputations() { | |
| 6701 | - return _recomputations; | |
| 6702 | - }, | |
| 6703 | - resetRecomputations: function resetRecomputations() { | |
| 6704 | - return _recomputations = 0; | |
| 6705 | - } | |
| 6706 | - }); | |
| 6707 | - return selector; | |
| 6708 | - }; // @ts-ignore | |
| 9181 | +// TODO: Wrong location used as `elementorModules.ForceMethodImplementation(); should be` `elementorUtils.forceMethodImplementation()`; | |
| 9182 | +var ForceMethodImplementation = /*#__PURE__*/function (_Error) { | |
| 9183 | + (0, _inherits2.default)(ForceMethodImplementation, _Error); | |
| 6709 | 9184 | |
| 9185 | + var _super = (0, _createSuper2.default)(ForceMethodImplementation); | |
| 6710 | 9186 | |
| 6711 | - return createSelector; | |
| 6712 | -} | |
| 6713 | -var createSelector = /* #__PURE__ */createSelectorCreator(_defaultMemoize__WEBPACK_IMPORTED_MODULE_0__.defaultMemoize); | |
| 6714 | -// Manual definition of state and output arguments | |
| 6715 | -var createStructuredSelector = function createStructuredSelector(selectors, selectorCreator) { | |
| 6716 | - if (selectorCreator === void 0) { | |
| 6717 | - selectorCreator = createSelector; | |
| 9187 | + function ForceMethodImplementation() { | |
| 9188 | + var _this; | |
| 9189 | + | |
| 9190 | + var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 9191 | + (0, _classCallCheck2.default)(this, ForceMethodImplementation); | |
| 9192 | + _this = _super.call(this, "".concat(info.isStatic ? 'static ' : '').concat(info.fullName, "() should be implemented, please provide '").concat(info.functionName || info.fullName, "' functionality.")); | |
| 9193 | + Error.captureStackTrace((0, _assertThisInitialized2.default)(_this), ForceMethodImplementation); | |
| 9194 | + return _this; | |
| 6718 | 9195 | } |
| 6719 | 9196 | |
| 6720 | - if (typeof selectors !== 'object') { | |
| 6721 | - throw new Error('createStructuredSelector expects first argument to be an object ' + ("where each property is a selector, instead received a " + typeof selectors)); | |
| 9197 | + return ForceMethodImplementation; | |
| 9198 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error)); | |
| 9199 | + | |
| 9200 | +exports.ForceMethodImplementation = ForceMethodImplementation; | |
| 9201 | + | |
| 9202 | +var _default = function _default() { | |
| 9203 | + var stack = Error().stack, | |
| 9204 | + caller = stack.split('\n')[2].trim(), | |
| 9205 | + callerName = caller.startsWith('at new') ? 'constructor' : caller.split(' ')[1], | |
| 9206 | + info = {}; | |
| 9207 | + info.functionName = callerName; | |
| 9208 | + info.fullName = callerName; | |
| 9209 | + | |
| 9210 | + if (info.functionName.includes('.')) { | |
| 9211 | + var parts = info.functionName.split('.'); | |
| 9212 | + info.className = parts[0]; | |
| 9213 | + info.functionName = parts[1]; | |
| 9214 | + } else { | |
| 9215 | + info.isStatic = true; | |
| 6722 | 9216 | } |
| 6723 | 9217 | |
| 6724 | - var objectKeys = Object.keys(selectors); | |
| 6725 | - var resultSelector = selectorCreator( // @ts-ignore | |
| 6726 | - objectKeys.map(function (key) { | |
| 6727 | - return selectors[key]; | |
| 6728 | - }), function () { | |
| 6729 | - for (var _len3 = arguments.length, values = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { | |
| 6730 | - values[_key3] = arguments[_key3]; | |
| 6731 | - } | |
| 9218 | + throw new ForceMethodImplementation(info); | |
| 9219 | +}; | |
| 6732 | 9220 | |
| 6733 | - return values.reduce(function (composition, value, index) { | |
| 6734 | - composition[objectKeys[index]] = value; | |
| 6735 | - return composition; | |
| 6736 | - }, {}); | |
| 6737 | - }); | |
| 6738 | - return resultSelector; | |
| 6739 | -}; | |
| 9221 | +exports.default = _default; | |
| 6740 | 9222 | |
| 6741 | -/***/ }) | |
| 9223 | +/***/ }), | |
| 9224 | +/* 662 */, | |
| 9225 | +/* 663 */, | |
| 9226 | +/* 664 */, | |
| 9227 | +/* 665 */, | |
| 9228 | +/* 666 */, | |
| 9229 | +/* 667 */, | |
| 9230 | +/* 668 */, | |
| 9231 | +/* 669 */, | |
| 9232 | +/* 670 */, | |
| 9233 | +/* 671 */, | |
| 9234 | +/* 672 */, | |
| 9235 | +/* 673 */, | |
| 9236 | +/* 674 */, | |
| 9237 | +/* 675 */, | |
| 9238 | +/* 676 */, | |
| 9239 | +/* 677 */, | |
| 9240 | +/* 678 */, | |
| 9241 | +/* 679 */, | |
| 9242 | +/* 680 */, | |
| 9243 | +/* 681 */, | |
| 9244 | +/* 682 */, | |
| 9245 | +/* 683 */, | |
| 9246 | +/* 684 */, | |
| 9247 | +/* 685 */, | |
| 9248 | +/* 686 */, | |
| 9249 | +/* 687 */, | |
| 9250 | +/* 688 */, | |
| 9251 | +/* 689 */, | |
| 9252 | +/* 690 */, | |
| 9253 | +/* 691 */, | |
| 9254 | +/* 692 */, | |
| 9255 | +/* 693 */, | |
| 9256 | +/* 694 */, | |
| 9257 | +/* 695 */, | |
| 9258 | +/* 696 */, | |
| 9259 | +/* 697 */, | |
| 9260 | +/* 698 */, | |
| 9261 | +/* 699 */, | |
| 9262 | +/* 700 */, | |
| 9263 | +/* 701 */, | |
| 9264 | +/* 702 */, | |
| 9265 | +/* 703 */, | |
| 9266 | +/* 704 */, | |
| 9267 | +/* 705 */, | |
| 9268 | +/* 706 */, | |
| 9269 | +/* 707 */, | |
| 9270 | +/* 708 */, | |
| 9271 | +/* 709 */, | |
| 9272 | +/* 710 */, | |
| 9273 | +/* 711 */, | |
| 9274 | +/* 712 */, | |
| 9275 | +/* 713 */, | |
| 9276 | +/* 714 */, | |
| 9277 | +/* 715 */, | |
| 9278 | +/* 716 */, | |
| 9279 | +/* 717 */, | |
| 9280 | +/* 718 */, | |
| 9281 | +/* 719 */, | |
| 9282 | +/* 720 */, | |
| 9283 | +/* 721 */, | |
| 9284 | +/* 722 */, | |
| 9285 | +/* 723 */, | |
| 9286 | +/* 724 */, | |
| 9287 | +/* 725 */, | |
| 9288 | +/* 726 */, | |
| 9289 | +/* 727 */, | |
| 9290 | +/* 728 */, | |
| 9291 | +/* 729 */, | |
| 9292 | +/* 730 */, | |
| 9293 | +/* 731 */, | |
| 9294 | +/* 732 */, | |
| 9295 | +/* 733 */, | |
| 9296 | +/* 734 */, | |
| 9297 | +/* 735 */, | |
| 9298 | +/* 736 */, | |
| 9299 | +/* 737 */, | |
| 9300 | +/* 738 */, | |
| 9301 | +/* 739 */, | |
| 9302 | +/* 740 */, | |
| 9303 | +/* 741 */, | |
| 9304 | +/* 742 */, | |
| 9305 | +/* 743 */, | |
| 9306 | +/* 744 */, | |
| 9307 | +/* 745 */, | |
| 9308 | +/* 746 */, | |
| 9309 | +/* 747 */, | |
| 9310 | +/* 748 */, | |
| 9311 | +/* 749 */, | |
| 9312 | +/* 750 */, | |
| 9313 | +/* 751 */, | |
| 9314 | +/* 752 */, | |
| 9315 | +/* 753 */, | |
| 9316 | +/* 754 */, | |
| 9317 | +/* 755 */, | |
| 9318 | +/* 756 */, | |
| 9319 | +/* 757 */, | |
| 9320 | +/* 758 */, | |
| 9321 | +/* 759 */, | |
| 9322 | +/* 760 */, | |
| 9323 | +/* 761 */, | |
| 9324 | +/* 762 */, | |
| 9325 | +/* 763 */, | |
| 9326 | +/* 764 */, | |
| 9327 | +/* 765 */, | |
| 9328 | +/* 766 */, | |
| 9329 | +/* 767 */, | |
| 9330 | +/* 768 */, | |
| 9331 | +/* 769 */, | |
| 9332 | +/* 770 */, | |
| 9333 | +/* 771 */, | |
| 9334 | +/* 772 */, | |
| 9335 | +/* 773 */, | |
| 9336 | +/* 774 */, | |
| 9337 | +/* 775 */, | |
| 9338 | +/* 776 */, | |
| 9339 | +/* 777 */, | |
| 9340 | +/* 778 */, | |
| 9341 | +/* 779 */, | |
| 9342 | +/* 780 */, | |
| 9343 | +/* 781 */, | |
| 9344 | +/* 782 */, | |
| 9345 | +/* 783 */, | |
| 9346 | +/* 784 */, | |
| 9347 | +/* 785 */, | |
| 9348 | +/* 786 */, | |
| 9349 | +/* 787 */, | |
| 9350 | +/* 788 */, | |
| 9351 | +/* 789 */, | |
| 9352 | +/* 790 */, | |
| 9353 | +/* 791 */, | |
| 9354 | +/* 792 */, | |
| 9355 | +/* 793 */, | |
| 9356 | +/* 794 */, | |
| 9357 | +/* 795 */, | |
| 9358 | +/* 796 */, | |
| 9359 | +/* 797 */, | |
| 9360 | +/* 798 */, | |
| 9361 | +/* 799 */, | |
| 9362 | +/* 800 */, | |
| 9363 | +/* 801 */, | |
| 9364 | +/* 802 */, | |
| 9365 | +/* 803 */, | |
| 9366 | +/* 804 */, | |
| 9367 | +/* 805 */, | |
| 9368 | +/* 806 */, | |
| 9369 | +/* 807 */, | |
| 9370 | +/* 808 */, | |
| 9371 | +/* 809 */, | |
| 9372 | +/* 810 */, | |
| 9373 | +/* 811 */ | |
| 9374 | +/***/ (function(module, exports, __webpack_require__) { | |
| 6742 | 9375 | |
| 6743 | -/******/ }); | |
| 6744 | -/************************************************************************/ | |
| 6745 | -/******/ // The module cache | |
| 6746 | -/******/ var __webpack_module_cache__ = {}; | |
| 6747 | -/******/ | |
| 6748 | -/******/ // The require function | |
| 6749 | -/******/ function __webpack_require__(moduleId) { | |
| 6750 | -/******/ // Check if module is in cache | |
| 6751 | -/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 6752 | -/******/ if (cachedModule !== undefined) { | |
| 6753 | -/******/ return cachedModule.exports; | |
| 6754 | -/******/ } | |
| 6755 | -/******/ // Create a new module (and put it into the cache) | |
| 6756 | -/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 6757 | -/******/ // no module.id needed | |
| 6758 | -/******/ // no module.loaded needed | |
| 6759 | -/******/ exports: {} | |
| 6760 | -/******/ }; | |
| 6761 | -/******/ | |
| 6762 | -/******/ // Execute the module function | |
| 6763 | -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 6764 | -/******/ | |
| 6765 | -/******/ // Return the exports of the module | |
| 6766 | -/******/ return module.exports; | |
| 6767 | -/******/ } | |
| 6768 | -/******/ | |
| 6769 | -/************************************************************************/ | |
| 6770 | -/******/ /* webpack/runtime/define property getters */ | |
| 6771 | -/******/ (() => { | |
| 6772 | -/******/ // define getter functions for harmony exports | |
| 6773 | -/******/ __webpack_require__.d = (exports, definition) => { | |
| 6774 | -/******/ for(var key in definition) { | |
| 6775 | -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { | |
| 6776 | -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); | |
| 6777 | -/******/ } | |
| 6778 | -/******/ } | |
| 6779 | -/******/ }; | |
| 6780 | -/******/ })(); | |
| 6781 | -/******/ | |
| 6782 | -/******/ /* webpack/runtime/global */ | |
| 6783 | -/******/ (() => { | |
| 6784 | -/******/ __webpack_require__.g = (function() { | |
| 6785 | -/******/ if (typeof globalThis === 'object') return globalThis; | |
| 6786 | -/******/ try { | |
| 6787 | -/******/ return this || new Function('return this')(); | |
| 6788 | -/******/ } catch (e) { | |
| 6789 | -/******/ if (typeof window === 'object') return window; | |
| 6790 | -/******/ } | |
| 6791 | -/******/ })(); | |
| 6792 | -/******/ })(); | |
| 6793 | -/******/ | |
| 6794 | -/******/ /* webpack/runtime/hasOwnProperty shorthand */ | |
| 6795 | -/******/ (() => { | |
| 6796 | -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) | |
| 6797 | -/******/ })(); | |
| 6798 | -/******/ | |
| 6799 | -/******/ /* webpack/runtime/make namespace object */ | |
| 6800 | -/******/ (() => { | |
| 6801 | -/******/ // define __esModule on exports | |
| 6802 | -/******/ __webpack_require__.r = (exports) => { | |
| 6803 | -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 6804 | -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| 6805 | -/******/ } | |
| 6806 | -/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| 6807 | -/******/ }; | |
| 6808 | -/******/ })(); | |
| 6809 | -/******/ | |
| 6810 | -/************************************************************************/ | |
| 6811 | -var __webpack_exports__ = {}; | |
| 6812 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 6813 | -(() => { | |
| 6814 | 9376 | "use strict"; |
| 6815 | -/*!*******************************************!*\ | |
| 6816 | - !*** ../core/common/assets/js/modules.js ***! | |
| 6817 | - \*******************************************/ | |
| 6818 | 9377 | |
| 6819 | 9378 | |
| 6820 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 6821 | -var _modules = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/modules/modules */ "../assets/dev/js/modules/modules.js")); | |
| 6822 | -var _layout = _interopRequireDefault(__webpack_require__(/*! ./views/modal/layout */ "../core/common/assets/js/views/modal/layout.js")); | |
| 6823 | -var _componentBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-base */ "../modules/web-cli/assets/js/modules/component-base.js")); | |
| 6824 | -var _componentModalBase = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/component-modal-base */ "../modules/web-cli/assets/js/modules/component-modal-base.js")); | |
| 6825 | -var _hookBreak = _interopRequireDefault(__webpack_require__(/*! elementor-api/modules/hook-break */ "../modules/web-cli/assets/js/modules/hook-break.js")); | |
| 9379 | +var _interopRequireDefault = __webpack_require__(0); | |
| 9380 | + | |
| 9381 | +var _modules = _interopRequireDefault(__webpack_require__(659)); | |
| 9382 | + | |
| 9383 | +var _layout = _interopRequireDefault(__webpack_require__(355)); | |
| 9384 | + | |
| 9385 | +var _componentBase = _interopRequireDefault(__webpack_require__(82)); | |
| 9386 | + | |
| 9387 | +var _componentModalBase = _interopRequireDefault(__webpack_require__(286)); | |
| 9388 | + | |
| 9389 | +var _hookBreak = _interopRequireDefault(__webpack_require__(633)); | |
| 9390 | + | |
| 6826 | 9391 | _modules.default.common = { |
| 6827 | - /** | |
| 6828 | - * @deprecated since 2.9.0, use `$e.modules.ComponentBase` instead. | |
| 6829 | - */ | |
| 6830 | 9392 | get Component() { |
| 6831 | 9393 | // `elementorCommon` isn't available during it self initialize. |
| 6832 | 9394 | setTimeout(function () { |
| 6833 | - elementorDevTools.deprecation.deprecated('elementorModules.common.Component', '2.9.0', '$e.modules.ComponentBase'); | |
| 9395 | + elementorCommon.helpers.softDeprecated('elementorModules.common.Component', '2.9.0', '$e.modules.ComponentBase'); | |
| 6834 | 9396 | }, 2000); |
| 6835 | 9397 | return _componentBase.default; |
| 6836 | 9398 | }, |
| 6837 | - /** | |
| 6838 | - * @deprecated since 2.9.0, use `$e.modules.ComponentModalBase` instead. | |
| 6839 | - */ | |
| 9399 | + | |
| 6840 | 9400 | get ComponentModal() { |
| 6841 | 9401 | // `elementorCommon` isn't available during it self initialize. |
| 6842 | 9402 | setTimeout(function () { |
| 6843 | - elementorDevTools.deprecation.deprecated('elementorModules.common.ComponentModal', '2.9.0', '$e.modules.ComponentModalBase'); | |
| 9403 | + elementorCommon.helpers.softDeprecated('elementorModules.common.ComponentModal', '2.9.0', '$e.modules.ComponentModalBase'); | |
| 6844 | 9404 | }, 2000); |
| 6845 | 9405 | return _componentModalBase.default; |
| 6846 | 9406 | }, |
| 6847 | - /** | |
| 6848 | - * @deprecated since 2.9.0, use `$e.modules.HookBreak` instead. | |
| 6849 | - */ | |
| 9407 | + | |
| 6850 | 9408 | get HookBreak() { |
| 6851 | 9409 | // `elementorCommon` isn't available during it self initialize. |
| 6852 | 9410 | setTimeout(function () { |
| 6853 | - elementorDevTools.deprecation.deprecated('elementorModules.common.HookBreak', '2.9.0', '$e.modules.HookBreak'); | |
| 9411 | + elementorCommon.helpers.softDeprecated('elementorModules.common.HookBreak', '2.9.0', '$e.modules.HookBreak'); | |
| 6854 | 9412 | }, 2000); |
| 6855 | 9413 | return _hookBreak.default; |
| 6856 | 9414 | }, |
| 9415 | + | |
| 6857 | 9416 | views: { |
| 6858 | 9417 | modal: { |
| 6859 | 9418 | Layout: _layout.default |
| 6860 | 9419 | } |
| @@ -6859,9 +9418,8 @@ | ||
| 6859 | 9418 | Layout: _layout.default |
| 6860 | 9419 | } |
| 6861 | 9420 | } |
| 6862 | 9421 | }; |
| 6863 | -})(); | |
| 6864 | 9422 | |
| 6865 | -/******/ })() | |
| 6866 | -; | |
| 9423 | +/***/ }) | |
| 9424 | +/******/ ]); | |
| 6867 | 9425 | //# sourceMappingURL=common-modules.js.map |