PluginProbe
Elementor Website Builder – more than just a page builder / 3.18.3
Elementor Website Builder – more than just a page builder v3.18.3
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / assets / js / element-manager-admin.js

element-manager-admin.js in Elementor Website Builder – more than just a page builder 3.18.3, at assets/js/element-manager-admin.js

4,202 lines 168.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*! elementor - v3.18.0 - 20-12-2023 */
2 /******/ (() => { // webpackBootstrap
3 /******/ var __webpack_modules__ = ({
4
5 /***/ "../node_modules/@wordpress/element/build-module/create-interpolate-element.js":
6 /*!*************************************************************************************!*\
7 !*** ../node_modules/@wordpress/element/build-module/create-interpolate-element.js ***!
8 \*************************************************************************************/
9 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10
11 "use strict";
12 __webpack_require__.r(__webpack_exports__);
13 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
14 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
15 /* harmony export */ });
16 /* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react");
17 /* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__);
18 /**
19 * Internal dependencies
20 */
21
22
23 /**
24 * Object containing a React element.
25 *
26 * @typedef {import('react').ReactElement} Element
27 */
28
29 let indoc, offset, output, stack;
30
31 /**
32 * Matches tags in the localized string
33 *
34 * This is used for extracting the tag pattern groups for parsing the localized
35 * string and along with the map converting it to a react element.
36 *
37 * There are four references extracted using this tokenizer:
38 *
39 * match: Full match of the tag (i.e. <strong>, </strong>, <br/>)
40 * isClosing: The closing slash, if it exists.
41 * name: The name portion of the tag (strong, br) (if )
42 * isSelfClosed: The slash on a self closing tag, if it exists.
43 *
44 * @type {RegExp}
45 */
46 const tokenizer = /<(\/)?(\w+)\s*(\/)?>/g;
47
48 /**
49 * The stack frame tracking parse progress.
50 *
51 * @typedef Frame
52 *
53 * @property {Element} element A parent element which may still have
54 * @property {number} tokenStart Offset at which parent element first
55 * appears.
56 * @property {number} tokenLength Length of string marking start of parent
57 * element.
58 * @property {number} [prevOffset] Running offset at which parsing should
59 * continue.
60 * @property {number} [leadingTextStart] Offset at which last closing element
61 * finished, used for finding text between
62 * elements.
63 * @property {Element[]} children Children.
64 */
65
66 /**
67 * Tracks recursive-descent parse state.
68 *
69 * This is a Stack frame holding parent elements until all children have been
70 * parsed.
71 *
72 * @private
73 * @param {Element} element A parent element which may still have
74 * nested children not yet parsed.
75 * @param {number} tokenStart Offset at which parent element first
76 * appears.
77 * @param {number} tokenLength Length of string marking start of parent
78 * element.
79 * @param {number} [prevOffset] Running offset at which parsing should
80 * continue.
81 * @param {number} [leadingTextStart] Offset at which last closing element
82 * finished, used for finding text between
83 * elements.
84 *
85 * @return {Frame} The stack frame tracking parse progress.
86 */
87 function createFrame(element, tokenStart, tokenLength, prevOffset, leadingTextStart) {
88 return {
89 element,
90 tokenStart,
91 tokenLength,
92 prevOffset,
93 leadingTextStart,
94 children: []
95 };
96 }
97
98 /**
99 * This function creates an interpolated element from a passed in string with
100 * specific tags matching how the string should be converted to an element via
101 * the conversion map value.
102 *
103 * @example
104 * For example, for the given string:
105 *
106 * "This is a <span>string</span> with <a>a link</a> and a self-closing
107 * <CustomComponentB/> tag"
108 *
109 * You would have something like this as the conversionMap value:
110 *
111 * ```js
112 * {
113 * span: <span />,
114 * a: <a href={ 'https://github.com' } />,
115 * CustomComponentB: <CustomComponent />,
116 * }
117 * ```
118 *
119 * @param {string} interpolatedString The interpolation string to be parsed.
120 * @param {Record<string, Element>} conversionMap The map used to convert the string to
121 * a react element.
122 * @throws {TypeError}
123 * @return {Element} A wp element.
124 */
125 const createInterpolateElement = (interpolatedString, conversionMap) => {
126 indoc = interpolatedString;
127 offset = 0;
128 output = [];
129 stack = [];
130 tokenizer.lastIndex = 0;
131 if (!isValidConversionMap(conversionMap)) {
132 throw new TypeError('The conversionMap provided is not valid. It must be an object with values that are React Elements');
133 }
134 do {
135 // twiddle our thumbs
136 } while (proceed(conversionMap));
137 return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, ...output);
138 };
139
140 /**
141 * Validate conversion map.
142 *
143 * A map is considered valid if it's an object and every value in the object
144 * is a React Element
145 *
146 * @private
147 *
148 * @param {Object} conversionMap The map being validated.
149 *
150 * @return {boolean} True means the map is valid.
151 */
152 const isValidConversionMap = conversionMap => {
153 const isObject = typeof conversionMap === 'object';
154 const values = isObject && Object.values(conversionMap);
155 return isObject && values.length && values.every(element => (0,_react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(element));
156 };
157
158 /**
159 * This is the iterator over the matches in the string.
160 *
161 * @private
162 *
163 * @param {Object} conversionMap The conversion map for the string.
164 *
165 * @return {boolean} true for continuing to iterate, false for finished.
166 */
167 function proceed(conversionMap) {
168 const next = nextToken();
169 const [tokenType, name, startOffset, tokenLength] = next;
170 const stackDepth = stack.length;
171 const leadingTextStart = startOffset > offset ? offset : null;
172 if (!conversionMap[name]) {
173 addText();
174 return false;
175 }
176 switch (tokenType) {
177 case 'no-more-tokens':
178 if (stackDepth !== 0) {
179 const {
180 leadingTextStart: stackLeadingText,
181 tokenStart
182 } = stack.pop();
183 output.push(indoc.substr(stackLeadingText, tokenStart));
184 }
185 addText();
186 return false;
187 case 'self-closed':
188 if (0 === stackDepth) {
189 if (null !== leadingTextStart) {
190 output.push(indoc.substr(leadingTextStart, startOffset - leadingTextStart));
191 }
192 output.push(conversionMap[name]);
193 offset = startOffset + tokenLength;
194 return true;
195 }
196
197 // Otherwise we found an inner element.
198 addChild(createFrame(conversionMap[name], startOffset, tokenLength));
199 offset = startOffset + tokenLength;
200 return true;
201 case 'opener':
202 stack.push(createFrame(conversionMap[name], startOffset, tokenLength, startOffset + tokenLength, leadingTextStart));
203 offset = startOffset + tokenLength;
204 return true;
205 case 'closer':
206 // If we're not nesting then this is easy - close the block.
207 if (1 === stackDepth) {
208 closeOuterElement(startOffset);
209 offset = startOffset + tokenLength;
210 return true;
211 }
212
213 // Otherwise we're nested and we have to close out the current
214 // block and add it as a innerBlock to the parent.
215 const stackTop = stack.pop();
216 const text = indoc.substr(stackTop.prevOffset, startOffset - stackTop.prevOffset);
217 stackTop.children.push(text);
218 stackTop.prevOffset = startOffset + tokenLength;
219 const frame = createFrame(stackTop.element, stackTop.tokenStart, stackTop.tokenLength, startOffset + tokenLength);
220 frame.children = stackTop.children;
221 addChild(frame);
222 offset = startOffset + tokenLength;
223 return true;
224 default:
225 addText();
226 return false;
227 }
228 }
229
230 /**
231 * Grabs the next token match in the string and returns it's details.
232 *
233 * @private
234 *
235 * @return {Array} An array of details for the token matched.
236 */
237 function nextToken() {
238 const matches = tokenizer.exec(indoc);
239 // We have no more tokens.
240 if (null === matches) {
241 return ['no-more-tokens'];
242 }
243 const startedAt = matches.index;
244 const [match, isClosing, name, isSelfClosed] = matches;
245 const length = match.length;
246 if (isSelfClosed) {
247 return ['self-closed', name, startedAt, length];
248 }
249 if (isClosing) {
250 return ['closer', name, startedAt, length];
251 }
252 return ['opener', name, startedAt, length];
253 }
254
255 /**
256 * Pushes text extracted from the indoc string to the output stack given the
257 * current rawLength value and offset (if rawLength is provided ) or the
258 * indoc.length and offset.
259 *
260 * @private
261 */
262 function addText() {
263 const length = indoc.length - offset;
264 if (0 === length) {
265 return;
266 }
267 output.push(indoc.substr(offset, length));
268 }
269
270 /**
271 * Pushes a child element to the associated parent element's children for the
272 * parent currently active in the stack.
273 *
274 * @private
275 *
276 * @param {Frame} frame The Frame containing the child element and it's
277 * token information.
278 */
279 function addChild(frame) {
280 const {
281 element,
282 tokenStart,
283 tokenLength,
284 prevOffset,
285 children
286 } = frame;
287 const parent = stack[stack.length - 1];
288 const text = indoc.substr(parent.prevOffset, tokenStart - parent.prevOffset);
289 if (text) {
290 parent.children.push(text);
291 }
292 parent.children.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children));
293 parent.prevOffset = prevOffset ? prevOffset : tokenStart + tokenLength;
294 }
295
296 /**
297 * This is called for closing tags. It creates the element currently active in
298 * the stack.
299 *
300 * @private
301 *
302 * @param {number} endOffset Offset at which the closing tag for the element
303 * begins in the string. If this is greater than the
304 * prevOffset attached to the element, then this
305 * helps capture any remaining nested text nodes in
306 * the element.
307 */
308 function closeOuterElement(endOffset) {
309 const {
310 element,
311 leadingTextStart,
312 prevOffset,
313 tokenStart,
314 children
315 } = stack.pop();
316 const text = endOffset ? indoc.substr(prevOffset, endOffset - prevOffset) : indoc.substr(prevOffset);
317 if (text) {
318 children.push(text);
319 }
320 if (null !== leadingTextStart) {
321 output.push(indoc.substr(leadingTextStart, tokenStart - leadingTextStart));
322 }
323 output.push((0,_react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(element, null, ...children));
324 }
325 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createInterpolateElement);
326 //# sourceMappingURL=create-interpolate-element.js.map
327
328 /***/ }),
329
330 /***/ "../node_modules/@wordpress/element/build-module/index.js":
331 /*!****************************************************************!*\
332 !*** ../node_modules/@wordpress/element/build-module/index.js ***!
333 \****************************************************************/
334 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
335
336 "use strict";
337 __webpack_require__.r(__webpack_exports__);
338 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
339 /* harmony export */ Children: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Children),
340 /* harmony export */ Component: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Component),
341 /* harmony export */ Fragment: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Fragment),
342 /* harmony export */ Platform: () => (/* reexport safe */ _platform__WEBPACK_IMPORTED_MODULE_4__["default"]),
343 /* harmony export */ RawHTML: () => (/* reexport safe */ _raw_html__WEBPACK_IMPORTED_MODULE_6__["default"]),
344 /* harmony export */ StrictMode: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.StrictMode),
345 /* harmony export */ Suspense: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.Suspense),
346 /* harmony export */ cloneElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.cloneElement),
347 /* harmony export */ concatChildren: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.concatChildren),
348 /* harmony export */ createContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createContext),
349 /* harmony export */ createElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createElement),
350 /* harmony export */ createInterpolateElement: () => (/* reexport safe */ _create_interpolate_element__WEBPACK_IMPORTED_MODULE_0__["default"]),
351 /* harmony export */ createPortal: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createPortal),
352 /* harmony export */ createRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.createRef),
353 /* harmony export */ createRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.createRoot),
354 /* harmony export */ findDOMNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.findDOMNode),
355 /* harmony export */ flushSync: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.flushSync),
356 /* harmony export */ forwardRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.forwardRef),
357 /* harmony export */ hydrate: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrate),
358 /* harmony export */ hydrateRoot: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.hydrateRoot),
359 /* harmony export */ isEmptyElement: () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_3__.isEmptyElement),
360 /* harmony export */ isValidElement: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.isValidElement),
361 /* harmony export */ lazy: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.lazy),
362 /* harmony export */ memo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.memo),
363 /* harmony export */ render: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.render),
364 /* harmony export */ renderToString: () => (/* reexport safe */ _serialize__WEBPACK_IMPORTED_MODULE_5__["default"]),
365 /* harmony export */ startTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.startTransition),
366 /* harmony export */ switchChildrenNodeName: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.switchChildrenNodeName),
367 /* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ _react_platform__WEBPACK_IMPORTED_MODULE_2__.unmountComponentAtNode),
368 /* harmony export */ useCallback: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useCallback),
369 /* harmony export */ useContext: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useContext),
370 /* harmony export */ useDebugValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDebugValue),
371 /* harmony export */ useDeferredValue: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useDeferredValue),
372 /* harmony export */ useEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useEffect),
373 /* harmony export */ useId: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useId),
374 /* harmony export */ useImperativeHandle: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle),
375 /* harmony export */ useInsertionEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect),
376 /* harmony export */ useLayoutEffect: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect),
377 /* harmony export */ useMemo: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useMemo),
378 /* harmony export */ useReducer: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useReducer),
379 /* harmony export */ useRef: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useRef),
380 /* harmony export */ useState: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useState),
381 /* harmony export */ useSyncExternalStore: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useSyncExternalStore),
382 /* harmony export */ useTransition: () => (/* reexport safe */ _react__WEBPACK_IMPORTED_MODULE_1__.useTransition)
383 /* harmony export */ });
384 /* harmony import */ var _create_interpolate_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./create-interpolate-element */ "../node_modules/@wordpress/element/build-module/create-interpolate-element.js");
385 /* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react */ "../node_modules/@wordpress/element/build-module/react.js");
386 /* harmony import */ var _react_platform__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./react-platform */ "../node_modules/@wordpress/element/build-module/react-platform.js");
387 /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "../node_modules/@wordpress/element/build-module/utils.js");
388 /* harmony import */ var _platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./platform */ "../node_modules/@wordpress/element/build-module/platform.js");
389 /* harmony import */ var _serialize__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serialize */ "../node_modules/@wordpress/element/build-module/serialize.js");
390 /* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js");
391
392
393
394
395
396
397
398 //# sourceMappingURL=index.js.map
399
400 /***/ }),
401
402 /***/ "../node_modules/@wordpress/element/build-module/platform.js":
403 /*!*******************************************************************!*\
404 !*** ../node_modules/@wordpress/element/build-module/platform.js ***!
405 \*******************************************************************/
406 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
407
408 "use strict";
409 __webpack_require__.r(__webpack_exports__);
410 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
411 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
412 /* harmony export */ });
413 /**
414 * Parts of this source were derived and modified from react-native-web,
415 * released under the MIT license.
416 *
417 * Copyright (c) 2016-present, Nicolas Gallagher.
418 * Copyright (c) 2015-present, Facebook, Inc.
419 *
420 */
421 const Platform = {
422 OS: 'web',
423 select: spec => 'web' in spec ? spec.web : spec.default,
424 isWeb: true
425 };
426 /**
427 * Component used to detect the current Platform being used.
428 * Use Platform.OS === 'web' to detect if running on web enviroment.
429 *
430 * This is the same concept as the React Native implementation.
431 *
432 * @see https://facebook.github.io/react-native/docs/platform-specific-code#platform-module
433 *
434 * Here is an example of how to use the select method:
435 * @example
436 * ```js
437 * import { Platform } from '@wordpress/element';
438 *
439 * const placeholderLabel = Platform.select( {
440 * native: __( 'Add media' ),
441 * web: __( 'Drag images, upload new ones or select files from your library.' ),
442 * } );
443 * ```
444 */
445 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Platform);
446 //# sourceMappingURL=platform.js.map
447
448 /***/ }),
449
450 /***/ "../node_modules/@wordpress/element/build-module/raw-html.js":
451 /*!*******************************************************************!*\
452 !*** ../node_modules/@wordpress/element/build-module/raw-html.js ***!
453 \*******************************************************************/
454 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
455
456 "use strict";
457 __webpack_require__.r(__webpack_exports__);
458 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
459 /* harmony export */ "default": () => (/* binding */ RawHTML)
460 /* harmony export */ });
461 /* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./react */ "react");
462 /* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_0__);
463 /**
464 * Internal dependencies
465 */
466
467
468 /** @typedef {{children: string} & import('react').ComponentPropsWithoutRef<'div'>} RawHTMLProps */
469
470 /**
471 * Component used as equivalent of Fragment with unescaped HTML, in cases where
472 * it is desirable to render dangerous HTML without needing a wrapper element.
473 * To preserve additional props, a `div` wrapper _will_ be created if any props
474 * aside from `children` are passed.
475 *
476 * @param {RawHTMLProps} props Children should be a string of HTML or an array
477 * of strings. Other props will be passed through
478 * to the div wrapper.
479 *
480 * @return {JSX.Element} Dangerously-rendering component.
481 */
482 function RawHTML({
483 children,
484 ...props
485 }) {
486 let rawHtml = '';
487
488 // Cast children as an array, and concatenate each element if it is a string.
489 _react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(children).forEach(child => {
490 if (typeof child === 'string' && child.trim() !== '') {
491 rawHtml += child;
492 }
493 });
494
495 // The `div` wrapper will be stripped by the `renderElement` serializer in
496 // `./serialize.js` unless there are non-children props present.
497 return (0,_react__WEBPACK_IMPORTED_MODULE_0__.createElement)('div', {
498 dangerouslySetInnerHTML: {
499 __html: rawHtml
500 },
501 ...props
502 });
503 }
504 //# sourceMappingURL=raw-html.js.map
505
506 /***/ }),
507
508 /***/ "../node_modules/@wordpress/element/build-module/react-platform.js":
509 /*!*************************************************************************!*\
510 !*** ../node_modules/@wordpress/element/build-module/react-platform.js ***!
511 \*************************************************************************/
512 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
513
514 "use strict";
515 __webpack_require__.r(__webpack_exports__);
516 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
517 /* harmony export */ createPortal: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.createPortal),
518 /* harmony export */ createRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.createRoot),
519 /* harmony export */ findDOMNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.findDOMNode),
520 /* harmony export */ flushSync: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.flushSync),
521 /* harmony export */ hydrate: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate),
522 /* harmony export */ hydrateRoot: () => (/* reexport safe */ react_dom_client__WEBPACK_IMPORTED_MODULE_1__.hydrateRoot),
523 /* harmony export */ render: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.render),
524 /* harmony export */ unmountComponentAtNode: () => (/* reexport safe */ react_dom__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode)
525 /* harmony export */ });
526 /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react-dom */ "react-dom");
527 /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__);
528 /* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom/client */ "../node_modules/react-dom/client.js");
529 /**
530 * External dependencies
531 */
532
533
534
535 /**
536 * Creates a portal into which a component can be rendered.
537 *
538 * @see https://github.com/facebook/react/issues/10309#issuecomment-318433235
539 *
540 * @param {import('react').ReactElement} child Any renderable child, such as an element,
541 * string, or fragment.
542 * @param {HTMLElement} container DOM node into which element should be rendered.
543 */
544
545
546 /**
547 * Finds the dom node of a React component.
548 *
549 * @param {import('react').ComponentType} component Component's instance.
550 */
551
552
553 /**
554 * Forces React to flush any updates inside the provided callback synchronously.
555 *
556 * @param {Function} callback Callback to run synchronously.
557 */
558
559
560 /**
561 * Renders a given element into the target DOM node.
562 *
563 * @deprecated since WordPress 6.2.0. Use `createRoot` instead.
564 * @see https://react.dev/reference/react-dom/render
565 */
566
567
568 /**
569 * Hydrates a given element into the target DOM node.
570 *
571 * @deprecated since WordPress 6.2.0. Use `hydrateRoot` instead.
572 * @see https://react.dev/reference/react-dom/hydrate
573 */
574
575
576 /**
577 * Creates a new React root for the target DOM node.
578 *
579 * @since 6.2.0 Introduced in WordPress core.
580 * @see https://react.dev/reference/react-dom/client/createRoot
581 */
582
583
584 /**
585 * Creates a new React root for the target DOM node and hydrates it with a pre-generated markup.
586 *
587 * @since 6.2.0 Introduced in WordPress core.
588 * @see https://react.dev/reference/react-dom/client/hydrateRoot
589 */
590
591
592 /**
593 * Removes any mounted element from the target DOM node.
594 *
595 * @deprecated since WordPress 6.2.0. Use `root.unmount()` instead.
596 * @see https://react.dev/reference/react-dom/unmountComponentAtNode
597 */
598
599 //# sourceMappingURL=react-platform.js.map
600
601 /***/ }),
602
603 /***/ "../node_modules/@wordpress/element/build-module/react.js":
604 /*!****************************************************************!*\
605 !*** ../node_modules/@wordpress/element/build-module/react.js ***!
606 \****************************************************************/
607 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
608
609 "use strict";
610 __webpack_require__.r(__webpack_exports__);
611 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
612 /* harmony export */ Children: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Children),
613 /* harmony export */ Component: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Component),
614 /* harmony export */ Fragment: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Fragment),
615 /* harmony export */ StrictMode: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.StrictMode),
616 /* harmony export */ Suspense: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.Suspense),
617 /* harmony export */ cloneElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.cloneElement),
618 /* harmony export */ concatChildren: () => (/* binding */ concatChildren),
619 /* harmony export */ createContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createContext),
620 /* harmony export */ createElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createElement),
621 /* harmony export */ createRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.createRef),
622 /* harmony export */ forwardRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.forwardRef),
623 /* harmony export */ isValidElement: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.isValidElement),
624 /* harmony export */ lazy: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.lazy),
625 /* harmony export */ memo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.memo),
626 /* harmony export */ startTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.startTransition),
627 /* harmony export */ switchChildrenNodeName: () => (/* binding */ switchChildrenNodeName),
628 /* harmony export */ useCallback: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useCallback),
629 /* harmony export */ useContext: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useContext),
630 /* harmony export */ useDebugValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDebugValue),
631 /* harmony export */ useDeferredValue: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useDeferredValue),
632 /* harmony export */ useEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useEffect),
633 /* harmony export */ useId: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useId),
634 /* harmony export */ useImperativeHandle: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useImperativeHandle),
635 /* harmony export */ useInsertionEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect),
636 /* harmony export */ useLayoutEffect: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect),
637 /* harmony export */ useMemo: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useMemo),
638 /* harmony export */ useReducer: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useReducer),
639 /* harmony export */ useRef: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useRef),
640 /* harmony export */ useState: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useState),
641 /* harmony export */ useSyncExternalStore: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore),
642 /* harmony export */ useTransition: () => (/* reexport safe */ react__WEBPACK_IMPORTED_MODULE_0__.useTransition)
643 /* harmony export */ });
644 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
645 /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
646 /**
647 * External dependencies
648 */
649 // eslint-disable-next-line @typescript-eslint/no-restricted-imports
650
651
652 /**
653 * Object containing a React element.
654 *
655 * @typedef {import('react').ReactElement} Element
656 */
657
658 /**
659 * Object containing a React component.
660 *
661 * @typedef {import('react').ComponentType} ComponentType
662 */
663
664 /**
665 * Object containing a React synthetic event.
666 *
667 * @typedef {import('react').SyntheticEvent} SyntheticEvent
668 */
669
670 /**
671 * Object containing a React synthetic event.
672 *
673 * @template T
674 * @typedef {import('react').RefObject<T>} RefObject<T>
675 */
676
677 /**
678 * Object that provides utilities for dealing with React children.
679 */
680
681
682 /**
683 * Creates a copy of an element with extended props.
684 *
685 * @param {Element} element Element
686 * @param {?Object} props Props to apply to cloned element
687 *
688 * @return {Element} Cloned element.
689 */
690
691
692 /**
693 * A base class to create WordPress Components (Refs, state and lifecycle hooks)
694 */
695
696
697 /**
698 * Creates a context object containing two components: a provider and consumer.
699 *
700 * @param {Object} defaultValue A default data stored in the context.
701 *
702 * @return {Object} Context object.
703 */
704
705
706 /**
707 * Returns a new element of given type. Type can be either a string tag name or
708 * another function which itself returns an element.
709 *
710 * @param {?(string|Function)} type Tag name or element creator
711 * @param {Object} props Element properties, either attribute
712 * set to apply to DOM node or values to
713 * pass through to element creator
714 * @param {...Element} children Descendant elements
715 *
716 * @return {Element} Element.
717 */
718
719
720 /**
721 * Returns an object tracking a reference to a rendered element via its
722 * `current` property as either a DOMElement or Element, dependent upon the
723 * type of element rendered with the ref attribute.
724 *
725 * @return {Object} Ref object.
726 */
727
728
729 /**
730 * Component enhancer used to enable passing a ref to its wrapped component.
731 * Pass a function argument which receives `props` and `ref` as its arguments,
732 * returning an element using the forwarded ref. The return value is a new
733 * component which forwards its ref.
734 *
735 * @param {Function} forwarder Function passed `props` and `ref`, expected to
736 * return an element.
737 *
738 * @return {Component} Enhanced component.
739 */
740
741
742 /**
743 * A component which renders its children without any wrapping element.
744 */
745
746
747 /**
748 * Checks if an object is a valid React Element.
749 *
750 * @param {Object} objectToCheck The object to be checked.
751 *
752 * @return {boolean} true if objectToTest is a valid React Element and false otherwise.
753 */
754
755
756 /**
757 * @see https://reactjs.org/docs/react-api.html#reactmemo
758 */
759
760
761 /**
762 * Component that activates additional checks and warnings for its descendants.
763 */
764
765
766 /**
767 * @see https://reactjs.org/docs/hooks-reference.html#usecallback
768 */
769
770
771 /**
772 * @see https://reactjs.org/docs/hooks-reference.html#usecontext
773 */
774
775
776 /**
777 * @see https://reactjs.org/docs/hooks-reference.html#usedebugvalue
778 */
779
780
781 /**
782 * @see https://reactjs.org/docs/hooks-reference.html#usedeferredvalue
783 */
784
785
786 /**
787 * @see https://reactjs.org/docs/hooks-reference.html#useeffect
788 */
789
790
791 /**
792 * @see https://reactjs.org/docs/hooks-reference.html#useid
793 */
794
795
796 /**
797 * @see https://reactjs.org/docs/hooks-reference.html#useimperativehandle
798 */
799
800
801 /**
802 * @see https://reactjs.org/docs/hooks-reference.html#useinsertioneffect
803 */
804
805
806 /**
807 * @see https://reactjs.org/docs/hooks-reference.html#uselayouteffect
808 */
809
810
811 /**
812 * @see https://reactjs.org/docs/hooks-reference.html#usememo
813 */
814
815
816 /**
817 * @see https://reactjs.org/docs/hooks-reference.html#usereducer
818 */
819
820
821 /**
822 * @see https://reactjs.org/docs/hooks-reference.html#useref
823 */
824
825
826 /**
827 * @see https://reactjs.org/docs/hooks-reference.html#usestate
828 */
829
830
831 /**
832 * @see https://reactjs.org/docs/hooks-reference.html#usesyncexternalstore
833 */
834
835
836 /**
837 * @see https://reactjs.org/docs/hooks-reference.html#usetransition
838 */
839
840
841 /**
842 * @see https://reactjs.org/docs/react-api.html#starttransition
843 */
844
845
846 /**
847 * @see https://reactjs.org/docs/react-api.html#reactlazy
848 */
849
850
851 /**
852 * @see https://reactjs.org/docs/react-api.html#reactsuspense
853 */
854
855
856 /**
857 * Concatenate two or more React children objects.
858 *
859 * @param {...?Object} childrenArguments Array of children arguments (array of arrays/strings/objects) to concatenate.
860 *
861 * @return {Array} The concatenated value.
862 */
863 function concatChildren(...childrenArguments) {
864 return childrenArguments.reduce((accumulator, children, i) => {
865 react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, (child, j) => {
866 if (child && 'string' !== typeof child) {
867 child = (0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(child, {
868 key: [i, j].join()
869 });
870 }
871 accumulator.push(child);
872 });
873 return accumulator;
874 }, []);
875 }
876
877 /**
878 * Switches the nodeName of all the elements in the children object.
879 *
880 * @param {?Object} children Children object.
881 * @param {string} nodeName Node name.
882 *
883 * @return {?Object} The updated children object.
884 */
885 function switchChildrenNodeName(children, nodeName) {
886 return children && react__WEBPACK_IMPORTED_MODULE_0__.Children.map(children, (elt, index) => {
887 if (typeof elt?.valueOf() === 'string') {
888 return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, {
889 key: index
890 }, elt);
891 }
892 const {
893 children: childrenProp,
894 ...props
895 } = elt.props;
896 return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(nodeName, {
897 key: index,
898 ...props
899 }, childrenProp);
900 });
901 }
902 //# sourceMappingURL=react.js.map
903
904 /***/ }),
905
906 /***/ "../node_modules/@wordpress/element/build-module/serialize.js":
907 /*!********************************************************************!*\
908 !*** ../node_modules/@wordpress/element/build-module/serialize.js ***!
909 \********************************************************************/
910 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
911
912 "use strict";
913 __webpack_require__.r(__webpack_exports__);
914 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
915 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
916 /* harmony export */ hasPrefix: () => (/* binding */ hasPrefix),
917 /* harmony export */ renderAttributes: () => (/* binding */ renderAttributes),
918 /* harmony export */ renderComponent: () => (/* binding */ renderComponent),
919 /* harmony export */ renderElement: () => (/* binding */ renderElement),
920 /* harmony export */ renderNativeComponent: () => (/* binding */ renderNativeComponent),
921 /* harmony export */ renderStyle: () => (/* binding */ renderStyle)
922 /* harmony export */ });
923 /* harmony import */ var is_plain_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! is-plain-object */ "../node_modules/@wordpress/element/node_modules/is-plain-object/dist/is-plain-object.mjs");
924 /* harmony import */ var change_case__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! change-case */ "../node_modules/param-case/dist.es2015/index.js");
925 /* harmony import */ var _wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/escape-html */ "../node_modules/@wordpress/escape-html/build-module/index.js");
926 /* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./react */ "react");
927 /* harmony import */ var _react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_react__WEBPACK_IMPORTED_MODULE_1__);
928 /* harmony import */ var _raw_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./raw-html */ "../node_modules/@wordpress/element/build-module/raw-html.js");
929 /**
930 * Parts of this source were derived and modified from fast-react-render,
931 * released under the MIT license.
932 *
933 * https://github.com/alt-j/fast-react-render
934 *
935 * Copyright (c) 2016 Andrey Morozov
936 *
937 * Permission is hereby granted, free of charge, to any person obtaining a copy
938 * of this software and associated documentation files (the "Software"), to deal
939 * in the Software without restriction, including without limitation the rights
940 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
941 * copies of the Software, and to permit persons to whom the Software is
942 * furnished to do so, subject to the following conditions:
943 *
944 * The above copyright notice and this permission notice shall be included in
945 * all copies or substantial portions of the Software.
946 *
947 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
948 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
949 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
950 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
951 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
952 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
953 * THE SOFTWARE.
954 */
955
956 /**
957 * External dependencies
958 */
959
960
961
962 /**
963 * WordPress dependencies
964 */
965
966
967 /**
968 * Internal dependencies
969 */
970
971
972
973 /** @typedef {import('react').ReactElement} ReactElement */
974
975 const {
976 Provider,
977 Consumer
978 } = (0,_react__WEBPACK_IMPORTED_MODULE_1__.createContext)(undefined);
979 const ForwardRef = (0,_react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(() => {
980 return null;
981 });
982
983 /**
984 * Valid attribute types.
985 *
986 * @type {Set<string>}
987 */
988 const ATTRIBUTES_TYPES = new Set(['string', 'boolean', 'number']);
989
990 /**
991 * Element tags which can be self-closing.
992 *
993 * @type {Set<string>}
994 */
995 const SELF_CLOSING_TAGS = new Set(['area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']);
996
997 /**
998 * Boolean attributes are attributes whose presence as being assigned is
999 * meaningful, even if only empty.
1000 *
1001 * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes
1002 * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3
1003 *
1004 * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ]
1005 * .filter( ( tr ) => tr.lastChild.textContent.indexOf( 'Boolean attribute' ) !== -1 )
1006 * .reduce( ( result, tr ) => Object.assign( result, {
1007 * [ tr.firstChild.textContent.trim() ]: true
1008 * } ), {} ) ).sort();
1009 *
1010 * @type {Set<string>}
1011 */
1012 const BOOLEAN_ATTRIBUTES = new Set(['allowfullscreen', 'allowpaymentrequest', 'allowusermedia', 'async', 'autofocus', 'autoplay', 'checked', 'controls', 'default', 'defer', 'disabled', 'download', 'formnovalidate', 'hidden', 'ismap', 'itemscope', 'loop', 'multiple', 'muted', 'nomodule', 'novalidate', 'open', 'playsinline', 'readonly', 'required', 'reversed', 'selected', 'typemustmatch']);
1013
1014 /**
1015 * Enumerated attributes are attributes which must be of a specific value form.
1016 * Like boolean attributes, these are meaningful if specified, even if not of a
1017 * valid enumerated value.
1018 *
1019 * See: https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#enumerated-attribute
1020 * Extracted from: https://html.spec.whatwg.org/multipage/indices.html#attributes-3
1021 *
1022 * Object.keys( [ ...document.querySelectorAll( '#attributes-1 > tbody > tr' ) ]
1023 * .filter( ( tr ) => /^("(.+?)";?\s*)+/.test( tr.lastChild.textContent.trim() ) )
1024 * .reduce( ( result, tr ) => Object.assign( result, {
1025 * [ tr.firstChild.textContent.trim() ]: true
1026 * } ), {} ) ).sort();
1027 *
1028 * Some notable omissions:
1029 *
1030 * - `alt`: https://blog.whatwg.org/omit-alt
1031 *
1032 * @type {Set<string>}
1033 */
1034 const ENUMERATED_ATTRIBUTES = new Set(['autocapitalize', 'autocomplete', 'charset', 'contenteditable', 'crossorigin', 'decoding', 'dir', 'draggable', 'enctype', 'formenctype', 'formmethod', 'http-equiv', 'inputmode', 'kind', 'method', 'preload', 'scope', 'shape', 'spellcheck', 'translate', 'type', 'wrap']);
1035
1036 /**
1037 * Set of CSS style properties which support assignment of unitless numbers.
1038 * Used in rendering of style properties, where `px` unit is assumed unless
1039 * property is included in this set or value is zero.
1040 *
1041 * Generated via:
1042 *
1043 * Object.entries( document.createElement( 'div' ).style )
1044 * .filter( ( [ key ] ) => (
1045 * ! /^(webkit|ms|moz)/.test( key ) &&
1046 * ( e.style[ key ] = 10 ) &&
1047 * e.style[ key ] === '10'
1048 * ) )
1049 * .map( ( [ key ] ) => key )
1050 * .sort();
1051 *
1052 * @type {Set<string>}
1053 */
1054 const CSS_PROPERTIES_SUPPORTS_UNITLESS = new Set(['animation', 'animationIterationCount', 'baselineShift', 'borderImageOutset', 'borderImageSlice', 'borderImageWidth', 'columnCount', 'cx', 'cy', 'fillOpacity', 'flexGrow', 'flexShrink', 'floodOpacity', 'fontWeight', 'gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart', 'lineHeight', 'opacity', 'order', 'orphans', 'r', 'rx', 'ry', 'shapeImageThreshold', 'stopOpacity', 'strokeDasharray', 'strokeDashoffset', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'tabSize', 'widows', 'x', 'y', 'zIndex', 'zoom']);
1055
1056 /**
1057 * Returns true if the specified string is prefixed by one of an array of
1058 * possible prefixes.
1059 *
1060 * @param {string} string String to check.
1061 * @param {string[]} prefixes Possible prefixes.
1062 *
1063 * @return {boolean} Whether string has prefix.
1064 */
1065 function hasPrefix(string, prefixes) {
1066 return prefixes.some(prefix => string.indexOf(prefix) === 0);
1067 }
1068
1069 /**
1070 * Returns true if the given prop name should be ignored in attributes
1071 * serialization, or false otherwise.
1072 *
1073 * @param {string} attribute Attribute to check.
1074 *
1075 * @return {boolean} Whether attribute should be ignored.
1076 */
1077 function isInternalAttribute(attribute) {
1078 return 'key' === attribute || 'children' === attribute;
1079 }
1080
1081 /**
1082 * Returns the normal form of the element's attribute value for HTML.
1083 *
1084 * @param {string} attribute Attribute name.
1085 * @param {*} value Non-normalized attribute value.
1086 *
1087 * @return {*} Normalized attribute value.
1088 */
1089 function getNormalAttributeValue(attribute, value) {
1090 switch (attribute) {
1091 case 'style':
1092 return renderStyle(value);
1093 }
1094 return value;
1095 }
1096 /**
1097 * This is a map of all SVG attributes that have dashes. Map(lower case prop => dashed lower case attribute).
1098 * We need this to render e.g strokeWidth as stroke-width.
1099 *
1100 * List from: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute.
1101 */
1102 const SVG_ATTRIBUTE_WITH_DASHES_LIST = ['accentHeight', 'alignmentBaseline', 'arabicForm', 'baselineShift', 'capHeight', 'clipPath', 'clipRule', 'colorInterpolation', 'colorInterpolationFilters', 'colorProfile', 'colorRendering', 'dominantBaseline', 'enableBackground', 'fillOpacity', 'fillRule', 'floodColor', 'floodOpacity', 'fontFamily', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontWeight', 'glyphName', 'glyphOrientationHorizontal', 'glyphOrientationVertical', 'horizAdvX', 'horizOriginX', 'imageRendering', 'letterSpacing', 'lightingColor', 'markerEnd', 'markerMid', 'markerStart', 'overlinePosition', 'overlineThickness', 'paintOrder', 'panose1', 'pointerEvents', 'renderingIntent', 'shapeRendering', 'stopColor', 'stopOpacity', 'strikethroughPosition', 'strikethroughThickness', 'strokeDasharray', 'strokeDashoffset', 'strokeLinecap', 'strokeLinejoin', 'strokeMiterlimit', 'strokeOpacity', 'strokeWidth', 'textAnchor', 'textDecoration', 'textRendering', 'underlinePosition', 'underlineThickness', 'unicodeBidi', 'unicodeRange', 'unitsPerEm', 'vAlphabetic', 'vHanging', 'vIdeographic', 'vMathematical', 'vectorEffect', 'vertAdvY', 'vertOriginX', 'vertOriginY', 'wordSpacing', 'writingMode', 'xmlnsXlink', 'xHeight'].reduce((map, attribute) => {
1103 // The keys are lower-cased for more robust lookup.
1104 map[attribute.toLowerCase()] = attribute;
1105 return map;
1106 }, {});
1107
1108 /**
1109 * This is a map of all case-sensitive SVG attributes. Map(lowercase key => proper case attribute).
1110 * The keys are lower-cased for more robust lookup.
1111 * Note that this list only contains attributes that contain at least one capital letter.
1112 * Lowercase attributes don't need mapping, since we lowercase all attributes by default.
1113 */
1114 const CASE_SENSITIVE_SVG_ATTRIBUTES = ['allowReorder', 'attributeName', 'attributeType', 'autoReverse', 'baseFrequency', 'baseProfile', 'calcMode', 'clipPathUnits', 'contentScriptType', 'contentStyleType', 'diffuseConstant', 'edgeMode', 'externalResourcesRequired', 'filterRes', 'filterUnits', 'glyphRef', 'gradientTransform', 'gradientUnits', 'kernelMatrix', 'kernelUnitLength', 'keyPoints', 'keySplines', 'keyTimes', 'lengthAdjust', 'limitingConeAngle', 'markerHeight', 'markerUnits', 'markerWidth', 'maskContentUnits', 'maskUnits', 'numOctaves', 'pathLength', 'patternContentUnits', 'patternTransform', 'patternUnits', 'pointsAtX', 'pointsAtY', 'pointsAtZ', 'preserveAlpha', 'preserveAspectRatio', 'primitiveUnits', 'refX', 'refY', 'repeatCount', 'repeatDur', 'requiredExtensions', 'requiredFeatures', 'specularConstant', 'specularExponent', 'spreadMethod', 'startOffset', 'stdDeviation', 'stitchTiles', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'surfaceScale', 'systemLanguage', 'tableValues', 'targetX', 'targetY', 'textLength', 'viewBox', 'viewTarget', 'xChannelSelector', 'yChannelSelector'].reduce((map, attribute) => {
1115 // The keys are lower-cased for more robust lookup.
1116 map[attribute.toLowerCase()] = attribute;
1117 return map;
1118 }, {});
1119
1120 /**
1121 * This is a map of all SVG attributes that have colons.
1122 * Keys are lower-cased and stripped of their colons for more robust lookup.
1123 */
1124 const SVG_ATTRIBUTES_WITH_COLONS = ['xlink:actuate', 'xlink:arcrole', 'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type', 'xml:base', 'xml:lang', 'xml:space', 'xmlns:xlink'].reduce((map, attribute) => {
1125 map[attribute.replace(':', '').toLowerCase()] = attribute;
1126 return map;
1127 }, {});
1128
1129 /**
1130 * Returns the normal form of the element's attribute name for HTML.
1131 *
1132 * @param {string} attribute Non-normalized attribute name.
1133 *
1134 * @return {string} Normalized attribute name.
1135 */
1136 function getNormalAttributeName(attribute) {
1137 switch (attribute) {
1138 case 'htmlFor':
1139 return 'for';
1140 case 'className':
1141 return 'class';
1142 }
1143 const attributeLowerCase = attribute.toLowerCase();
1144 if (CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase]) {
1145 return CASE_SENSITIVE_SVG_ATTRIBUTES[attributeLowerCase];
1146 } else if (SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]) {
1147 return (0,change_case__WEBPACK_IMPORTED_MODULE_2__.paramCase)(SVG_ATTRIBUTE_WITH_DASHES_LIST[attributeLowerCase]);
1148 } else if (SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase]) {
1149 return SVG_ATTRIBUTES_WITH_COLONS[attributeLowerCase];
1150 }
1151 return attributeLowerCase;
1152 }
1153
1154 /**
1155 * Returns the normal form of the style property name for HTML.
1156 *
1157 * - Converts property names to kebab-case, e.g. 'backgroundColor' → 'background-color'
1158 * - Leaves custom attributes alone, e.g. '--myBackgroundColor' → '--myBackgroundColor'
1159 * - Converts vendor-prefixed property names to -kebab-case, e.g. 'MozTransform' → '-moz-transform'
1160 *
1161 * @param {string} property Property name.
1162 *
1163 * @return {string} Normalized property name.
1164 */
1165 function getNormalStylePropertyName(property) {
1166 if (property.startsWith('--')) {
1167 return property;
1168 }
1169 if (hasPrefix(property, ['ms', 'O', 'Moz', 'Webkit'])) {
1170 return '-' + (0,change_case__WEBPACK_IMPORTED_MODULE_2__.paramCase)(property);
1171 }
1172 return (0,change_case__WEBPACK_IMPORTED_MODULE_2__.paramCase)(property);
1173 }
1174
1175 /**
1176 * Returns the normal form of the style property value for HTML. Appends a
1177 * default pixel unit if numeric, not a unitless property, and not zero.
1178 *
1179 * @param {string} property Property name.
1180 * @param {*} value Non-normalized property value.
1181 *
1182 * @return {*} Normalized property value.
1183 */
1184 function getNormalStylePropertyValue(property, value) {
1185 if (typeof value === 'number' && 0 !== value && !CSS_PROPERTIES_SUPPORTS_UNITLESS.has(property)) {
1186 return value + 'px';
1187 }
1188 return value;
1189 }
1190
1191 /**
1192 * Serializes a React element to string.
1193 *
1194 * @param {import('react').ReactNode} element Element to serialize.
1195 * @param {Object} [context] Context object.
1196 * @param {Object} [legacyContext] Legacy context object.
1197 *
1198 * @return {string} Serialized element.
1199 */
1200 function renderElement(element, context, legacyContext = {}) {
1201 if (null === element || undefined === element || false === element) {
1202 return '';
1203 }
1204 if (Array.isArray(element)) {
1205 return renderChildren(element, context, legacyContext);
1206 }
1207 switch (typeof element) {
1208 case 'string':
1209 return (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeHTML)(element);
1210 case 'number':
1211 return element.toString();
1212 }
1213 const {
1214 type,
1215 props
1216 } = /** @type {{type?: any, props?: any}} */
1217 element;
1218 switch (type) {
1219 case _react__WEBPACK_IMPORTED_MODULE_1__.StrictMode:
1220 case _react__WEBPACK_IMPORTED_MODULE_1__.Fragment:
1221 return renderChildren(props.children, context, legacyContext);
1222 case _raw_html__WEBPACK_IMPORTED_MODULE_4__["default"]:
1223 const {
1224 children,
1225 ...wrapperProps
1226 } = props;
1227 return renderNativeComponent(!Object.keys(wrapperProps).length ? null : 'div', {
1228 ...wrapperProps,
1229 dangerouslySetInnerHTML: {
1230 __html: children
1231 }
1232 }, context, legacyContext);
1233 }
1234 switch (typeof type) {
1235 case 'string':
1236 return renderNativeComponent(type, props, context, legacyContext);
1237 case 'function':
1238 if (type.prototype && typeof type.prototype.render === 'function') {
1239 return renderComponent(type, props, context, legacyContext);
1240 }
1241 return renderElement(type(props, legacyContext), context, legacyContext);
1242 }
1243 switch (type && type.$$typeof) {
1244 case Provider.$$typeof:
1245 return renderChildren(props.children, props.value, legacyContext);
1246 case Consumer.$$typeof:
1247 return renderElement(props.children(context || type._currentValue), context, legacyContext);
1248 case ForwardRef.$$typeof:
1249 return renderElement(type.render(props), context, legacyContext);
1250 }
1251 return '';
1252 }
1253
1254 /**
1255 * Serializes a native component type to string.
1256 *
1257 * @param {?string} type Native component type to serialize, or null if
1258 * rendering as fragment of children content.
1259 * @param {Object} props Props object.
1260 * @param {Object} [context] Context object.
1261 * @param {Object} [legacyContext] Legacy context object.
1262 *
1263 * @return {string} Serialized element.
1264 */
1265 function renderNativeComponent(type, props, context, legacyContext = {}) {
1266 let content = '';
1267 if (type === 'textarea' && props.hasOwnProperty('value')) {
1268 // Textarea children can be assigned as value prop. If it is, render in
1269 // place of children. Ensure to omit so it is not assigned as attribute
1270 // as well.
1271 content = renderChildren(props.value, context, legacyContext);
1272 const {
1273 value,
1274 ...restProps
1275 } = props;
1276 props = restProps;
1277 } else if (props.dangerouslySetInnerHTML && typeof props.dangerouslySetInnerHTML.__html === 'string') {
1278 // Dangerous content is left unescaped.
1279 content = props.dangerouslySetInnerHTML.__html;
1280 } else if (typeof props.children !== 'undefined') {
1281 content = renderChildren(props.children, context, legacyContext);
1282 }
1283 if (!type) {
1284 return content;
1285 }
1286 const attributes = renderAttributes(props);
1287 if (SELF_CLOSING_TAGS.has(type)) {
1288 return '<' + type + attributes + '/>';
1289 }
1290 return '<' + type + attributes + '>' + content + '</' + type + '>';
1291 }
1292
1293 /** @typedef {import('react').ComponentType} ComponentType */
1294
1295 /**
1296 * Serializes a non-native component type to string.
1297 *
1298 * @param {ComponentType} Component Component type to serialize.
1299 * @param {Object} props Props object.
1300 * @param {Object} [context] Context object.
1301 * @param {Object} [legacyContext] Legacy context object.
1302 *
1303 * @return {string} Serialized element
1304 */
1305 function renderComponent(Component, props, context, legacyContext = {}) {
1306 const instance = new /** @type {import('react').ComponentClass} */
1307 Component(props, legacyContext);
1308 if (typeof
1309 // Ignore reason: Current prettier reformats parens and mangles type assertion
1310 // prettier-ignore
1311 /** @type {{getChildContext?: () => unknown}} */
1312 instance.getChildContext === 'function') {
1313 Object.assign(legacyContext, /** @type {{getChildContext?: () => unknown}} */instance.getChildContext());
1314 }
1315 const html = renderElement(instance.render(), context, legacyContext);
1316 return html;
1317 }
1318
1319 /**
1320 * Serializes an array of children to string.
1321 *
1322 * @param {import('react').ReactNodeArray} children Children to serialize.
1323 * @param {Object} [context] Context object.
1324 * @param {Object} [legacyContext] Legacy context object.
1325 *
1326 * @return {string} Serialized children.
1327 */
1328 function renderChildren(children, context, legacyContext = {}) {
1329 let result = '';
1330 children = Array.isArray(children) ? children : [children];
1331 for (let i = 0; i < children.length; i++) {
1332 const child = children[i];
1333 result += renderElement(child, context, legacyContext);
1334 }
1335 return result;
1336 }
1337
1338 /**
1339 * Renders a props object as a string of HTML attributes.
1340 *
1341 * @param {Object} props Props object.
1342 *
1343 * @return {string} Attributes string.
1344 */
1345 function renderAttributes(props) {
1346 let result = '';
1347 for (const key in props) {
1348 const attribute = getNormalAttributeName(key);
1349 if (!(0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.isValidAttributeName)(attribute)) {
1350 continue;
1351 }
1352 let value = getNormalAttributeValue(key, props[key]);
1353
1354 // If value is not of serializeable type, skip.
1355 if (!ATTRIBUTES_TYPES.has(typeof value)) {
1356 continue;
1357 }
1358
1359 // Don't render internal attribute names.
1360 if (isInternalAttribute(key)) {
1361 continue;
1362 }
1363 const isBooleanAttribute = BOOLEAN_ATTRIBUTES.has(attribute);
1364
1365 // Boolean attribute should be omitted outright if its value is false.
1366 if (isBooleanAttribute && value === false) {
1367 continue;
1368 }
1369 const isMeaningfulAttribute = isBooleanAttribute || hasPrefix(key, ['data-', 'aria-']) || ENUMERATED_ATTRIBUTES.has(attribute);
1370
1371 // Only write boolean value as attribute if meaningful.
1372 if (typeof value === 'boolean' && !isMeaningfulAttribute) {
1373 continue;
1374 }
1375 result += ' ' + attribute;
1376
1377 // Boolean attributes should write attribute name, but without value.
1378 // Mere presence of attribute name is effective truthiness.
1379 if (isBooleanAttribute) {
1380 continue;
1381 }
1382 if (typeof value === 'string') {
1383 value = (0,_wordpress_escape_html__WEBPACK_IMPORTED_MODULE_3__.escapeAttribute)(value);
1384 }
1385 result += '="' + value + '"';
1386 }
1387 return result;
1388 }
1389
1390 /**
1391 * Renders a style object as a string attribute value.
1392 *
1393 * @param {Object} style Style object.
1394 *
1395 * @return {string} Style attribute value.
1396 */
1397 function renderStyle(style) {
1398 // Only generate from object, e.g. tolerate string value.
1399 if (!(0,is_plain_object__WEBPACK_IMPORTED_MODULE_0__.isPlainObject)(style)) {
1400 return style;
1401 }
1402 let result;
1403 for (const property in style) {
1404 const value = style[property];
1405 if (null === value || undefined === value) {
1406 continue;
1407 }
1408 if (result) {
1409 result += ';';
1410 } else {
1411 result = '';
1412 }
1413 const normalName = getNormalStylePropertyName(property);
1414 const normalValue = getNormalStylePropertyValue(property, value);
1415 result += normalName + ':' + normalValue;
1416 }
1417 return result;
1418 }
1419 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (renderElement);
1420 //# sourceMappingURL=serialize.js.map
1421
1422 /***/ }),
1423
1424 /***/ "../node_modules/@wordpress/element/build-module/utils.js":
1425 /*!****************************************************************!*\
1426 !*** ../node_modules/@wordpress/element/build-module/utils.js ***!
1427 \****************************************************************/
1428 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1429
1430 "use strict";
1431 __webpack_require__.r(__webpack_exports__);
1432 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1433 /* harmony export */ isEmptyElement: () => (/* binding */ isEmptyElement)
1434 /* harmony export */ });
1435 /**
1436 * Checks if the provided WP element is empty.
1437 *
1438 * @param {*} element WP element to check.
1439 * @return {boolean} True when an element is considered empty.
1440 */
1441 const isEmptyElement = element => {
1442 if (typeof element === 'number') {
1443 return false;
1444 }
1445 if (typeof element?.valueOf() === 'string' || Array.isArray(element)) {
1446 return !element.length;
1447 }
1448 return !element;
1449 };
1450 //# sourceMappingURL=utils.js.map
1451
1452 /***/ }),
1453
1454 /***/ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js":
1455 /*!*****************************************************************************!*\
1456 !*** ../node_modules/@wordpress/escape-html/build-module/escape-greater.js ***!
1457 \*****************************************************************************/
1458 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1459
1460 "use strict";
1461 __webpack_require__.r(__webpack_exports__);
1462 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1463 /* harmony export */ "default": () => (/* binding */ __unstableEscapeGreaterThan)
1464 /* harmony export */ });
1465 /**
1466 * Returns a string with greater-than sign replaced.
1467 *
1468 * Note that if a resolution for Trac#45387 comes to fruition, it is no longer
1469 * necessary for `__unstableEscapeGreaterThan` to exist.
1470 *
1471 * See: https://core.trac.wordpress.org/ticket/45387
1472 *
1473 * @param {string} value Original string.
1474 *
1475 * @return {string} Escaped string.
1476 */
1477 function __unstableEscapeGreaterThan(value) {
1478 return value.replace(/>/g, '&gt;');
1479 }
1480 //# sourceMappingURL=escape-greater.js.map
1481
1482 /***/ }),
1483
1484 /***/ "../node_modules/@wordpress/escape-html/build-module/index.js":
1485 /*!********************************************************************!*\
1486 !*** ../node_modules/@wordpress/escape-html/build-module/index.js ***!
1487 \********************************************************************/
1488 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1489
1490 "use strict";
1491 __webpack_require__.r(__webpack_exports__);
1492 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1493 /* harmony export */ escapeAmpersand: () => (/* binding */ escapeAmpersand),
1494 /* harmony export */ escapeAttribute: () => (/* binding */ escapeAttribute),
1495 /* harmony export */ escapeEditableHTML: () => (/* binding */ escapeEditableHTML),
1496 /* harmony export */ escapeHTML: () => (/* binding */ escapeHTML),
1497 /* harmony export */ escapeLessThan: () => (/* binding */ escapeLessThan),
1498 /* harmony export */ escapeQuotationMark: () => (/* binding */ escapeQuotationMark),
1499 /* harmony export */ isValidAttributeName: () => (/* binding */ isValidAttributeName)
1500 /* harmony export */ });
1501 /* harmony import */ var _escape_greater__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./escape-greater */ "../node_modules/@wordpress/escape-html/build-module/escape-greater.js");
1502 /**
1503 * Internal dependencies
1504 */
1505
1506
1507 /**
1508 * Regular expression matching invalid attribute names.
1509 *
1510 * "Attribute names must consist of one or more characters other than controls,
1511 * U+0020 SPACE, U+0022 ("), U+0027 ('), U+003E (>), U+002F (/), U+003D (=),
1512 * and noncharacters."
1513 *
1514 * @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
1515 *
1516 * @type {RegExp}
1517 */
1518 const REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;
1519
1520 /**
1521 * Returns a string with ampersands escaped. Note that this is an imperfect
1522 * implementation, where only ampersands which do not appear as a pattern of
1523 * named, decimal, or hexadecimal character references are escaped. Invalid
1524 * named references (i.e. ambiguous ampersand) are still permitted.
1525 *
1526 * @see https://w3c.github.io/html/syntax.html#character-references
1527 * @see https://w3c.github.io/html/syntax.html#ambiguous-ampersand
1528 * @see https://w3c.github.io/html/syntax.html#named-character-references
1529 *
1530 * @param {string} value Original string.
1531 *
1532 * @return {string} Escaped string.
1533 */
1534 function escapeAmpersand(value) {
1535 return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, '&amp;');
1536 }
1537
1538 /**
1539 * Returns a string with quotation marks replaced.
1540 *
1541 * @param {string} value Original string.
1542 *
1543 * @return {string} Escaped string.
1544 */
1545 function escapeQuotationMark(value) {
1546 return value.replace(/"/g, '&quot;');
1547 }
1548
1549 /**
1550 * Returns a string with less-than sign replaced.
1551 *
1552 * @param {string} value Original string.
1553 *
1554 * @return {string} Escaped string.
1555 */
1556 function escapeLessThan(value) {
1557 return value.replace(/</g, '&lt;');
1558 }
1559
1560 /**
1561 * Returns an escaped attribute value.
1562 *
1563 * @see https://w3c.github.io/html/syntax.html#elements-attributes
1564 *
1565 * "[...] the text cannot contain an ambiguous ampersand [...] must not contain
1566 * any literal U+0022 QUOTATION MARK characters (")"
1567 *
1568 * Note we also escape the greater than symbol, as this is used by wptexturize to
1569 * split HTML strings. This is a WordPress specific fix
1570 *
1571 * Note that if a resolution for Trac#45387 comes to fruition, it is no longer
1572 * necessary for `__unstableEscapeGreaterThan` to be used.
1573 *
1574 * See: https://core.trac.wordpress.org/ticket/45387
1575 *
1576 * @param {string} value Attribute value.
1577 *
1578 * @return {string} Escaped attribute value.
1579 */
1580 function escapeAttribute(value) {
1581 return (0,_escape_greater__WEBPACK_IMPORTED_MODULE_0__["default"])(escapeQuotationMark(escapeAmpersand(value)));
1582 }
1583
1584 /**
1585 * Returns an escaped HTML element value.
1586 *
1587 * @see https://w3c.github.io/html/syntax.html#writing-html-documents-elements
1588 *
1589 * "the text must not contain the character U+003C LESS-THAN SIGN (<) or an
1590 * ambiguous ampersand."
1591 *
1592 * @param {string} value Element value.
1593 *
1594 * @return {string} Escaped HTML element value.
1595 */
1596 function escapeHTML(value) {
1597 return escapeLessThan(escapeAmpersand(value));
1598 }
1599
1600 /**
1601 * Returns an escaped Editable HTML element value. This is different from
1602 * `escapeHTML`, because for editable HTML, ALL ampersands must be escaped in
1603 * order to render the content correctly on the page.
1604 *
1605 * @param {string} value Element value.
1606 *
1607 * @return {string} Escaped HTML element value.
1608 */
1609 function escapeEditableHTML(value) {
1610 return escapeLessThan(value.replace(/&/g, '&amp;'));
1611 }
1612
1613 /**
1614 * Returns true if the given attribute name is valid, or false otherwise.
1615 *
1616 * @param {string} name Attribute name to test.
1617 *
1618 * @return {boolean} Whether attribute is valid.
1619 */
1620 function isValidAttributeName(name) {
1621 return !REGEXP_INVALID_ATTRIBUTE_NAME.test(name);
1622 }
1623 //# sourceMappingURL=index.js.map
1624
1625 /***/ }),
1626
1627 /***/ "../modules/element-manager/assets/js/api.js":
1628 /*!***************************************************!*\
1629 !*** ../modules/element-manager/assets/js/api.js ***!
1630 \***************************************************/
1631 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1632
1633 "use strict";
1634
1635
1636 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1637 Object.defineProperty(exports, "__esModule", ({
1638 value: true
1639 }));
1640 exports.saveDisabledWidgets = exports.markNoticeViewed = exports.getUsageWidgets = exports.getAdminAppData = void 0;
1641 var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js"));
1642 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
1643 var saveDisabledWidgets = /*#__PURE__*/function () {
1644 var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(widgetsDisabled) {
1645 var response, data;
1646 return _regenerator.default.wrap(function _callee$(_context) {
1647 while (1) switch (_context.prev = _context.next) {
1648 case 0:
1649 _context.prev = 0;
1650 _context.next = 3;
1651 return fetch(eElementManagerConfig.ajaxurl, {
1652 method: 'POST',
1653 headers: {
1654 'Content-Type': 'application/x-www-form-urlencoded'
1655 },
1656 body: new URLSearchParams({
1657 action: 'elementor_element_manager_save_disabled_elements',
1658 nonce: eElementManagerConfig.nonce,
1659 widgets: JSON.stringify(widgetsDisabled)
1660 })
1661 });
1662 case 3:
1663 response = _context.sent;
1664 _context.next = 6;
1665 return response.json();
1666 case 6:
1667 data = _context.sent;
1668 _context.next = 12;
1669 break;
1670 case 9:
1671 _context.prev = 9;
1672 _context.t0 = _context["catch"](0);
1673 console.error(_context.t0);
1674 case 12:
1675 case "end":
1676 return _context.stop();
1677 }
1678 }, _callee, null, [[0, 9]]);
1679 }));
1680 return function saveDisabledWidgets(_x) {
1681 return _ref.apply(this, arguments);
1682 };
1683 }();
1684 exports.saveDisabledWidgets = saveDisabledWidgets;
1685 var getAdminAppData = /*#__PURE__*/function () {
1686 var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
1687 var response, data;
1688 return _regenerator.default.wrap(function _callee2$(_context2) {
1689 while (1) switch (_context2.prev = _context2.next) {
1690 case 0:
1691 _context2.prev = 0;
1692 _context2.next = 3;
1693 return fetch(eElementManagerConfig.ajaxurl, {
1694 method: 'POST',
1695 headers: {
1696 'Content-Type': 'application/x-www-form-urlencoded'
1697 },
1698 body: new URLSearchParams({
1699 action: 'elementor_element_manager_get_admin_app_data',
1700 nonce: eElementManagerConfig.nonce
1701 })
1702 });
1703 case 3:
1704 response = _context2.sent;
1705 _context2.next = 6;
1706 return response.json();
1707 case 6:
1708 data = _context2.sent;
1709 if (!data.success) {
1710 _context2.next = 9;
1711 break;
1712 }
1713 return _context2.abrupt("return", data.data);
1714 case 9:
1715 _context2.next = 14;
1716 break;
1717 case 11:
1718 _context2.prev = 11;
1719 _context2.t0 = _context2["catch"](0);
1720 console.error(_context2.t0);
1721 case 14:
1722 case "end":
1723 return _context2.stop();
1724 }
1725 }, _callee2, null, [[0, 11]]);
1726 }));
1727 return function getAdminAppData() {
1728 return _ref2.apply(this, arguments);
1729 };
1730 }();
1731 exports.getAdminAppData = getAdminAppData;
1732 var getUsageWidgets = /*#__PURE__*/function () {
1733 var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
1734 var response, data;
1735 return _regenerator.default.wrap(function _callee3$(_context3) {
1736 while (1) switch (_context3.prev = _context3.next) {
1737 case 0:
1738 _context3.prev = 0;
1739 _context3.next = 3;
1740 return fetch(eElementManagerConfig.ajaxurl, {
1741 method: 'POST',
1742 headers: {
1743 'Content-Type': 'application/x-www-form-urlencoded'
1744 },
1745 body: new URLSearchParams({
1746 action: 'elementor_element_manager_get_widgets_usage',
1747 nonce: eElementManagerConfig.nonce
1748 })
1749 });
1750 case 3:
1751 response = _context3.sent;
1752 _context3.next = 6;
1753 return response.json();
1754 case 6:
1755 data = _context3.sent;
1756 if (!data.success) {
1757 _context3.next = 9;
1758 break;
1759 }
1760 return _context3.abrupt("return", data.data);
1761 case 9:
1762 _context3.next = 14;
1763 break;
1764 case 11:
1765 _context3.prev = 11;
1766 _context3.t0 = _context3["catch"](0);
1767 console.error(_context3.t0);
1768 case 14:
1769 case "end":
1770 return _context3.stop();
1771 }
1772 }, _callee3, null, [[0, 11]]);
1773 }));
1774 return function getUsageWidgets() {
1775 return _ref3.apply(this, arguments);
1776 };
1777 }();
1778 exports.getUsageWidgets = getUsageWidgets;
1779 var markNoticeViewed = /*#__PURE__*/function () {
1780 var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(noticeId) {
1781 var response, data;
1782 return _regenerator.default.wrap(function _callee4$(_context4) {
1783 while (1) switch (_context4.prev = _context4.next) {
1784 case 0:
1785 _context4.prev = 0;
1786 _context4.next = 3;
1787 return fetch(eElementManagerConfig.ajaxurl, {
1788 method: 'POST',
1789 headers: {
1790 'Content-Type': 'application/x-www-form-urlencoded'
1791 },
1792 body: new URLSearchParams({
1793 action: 'elementor_set_admin_notice_viewed',
1794 notice_id: noticeId
1795 })
1796 });
1797 case 3:
1798 response = _context4.sent;
1799 _context4.next = 6;
1800 return response.json();
1801 case 6:
1802 data = _context4.sent;
1803 if (!data.success) {
1804 _context4.next = 9;
1805 break;
1806 }
1807 return _context4.abrupt("return", data.data);
1808 case 9:
1809 _context4.next = 14;
1810 break;
1811 case 11:
1812 _context4.prev = 11;
1813 _context4.t0 = _context4["catch"](0);
1814 console.error(_context4.t0);
1815 case 14:
1816 case "end":
1817 return _context4.stop();
1818 }
1819 }, _callee4, null, [[0, 11]]);
1820 }));
1821 return function markNoticeViewed(_x2) {
1822 return _ref4.apply(this, arguments);
1823 };
1824 }();
1825 exports.markNoticeViewed = markNoticeViewed;
1826
1827 /***/ }),
1828
1829 /***/ "../modules/element-manager/assets/js/app.js":
1830 /*!***************************************************!*\
1831 !*** ../modules/element-manager/assets/js/app.js ***!
1832 \***************************************************/
1833 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1834
1835 "use strict";
1836
1837
1838 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
1839 Object.defineProperty(exports, "__esModule", ({
1840 value: true
1841 }));
1842 exports.App = void 0;
1843 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
1844 var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js"));
1845 var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js"));
1846 var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
1847 var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js"));
1848 var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
1849 var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
1850 var _components = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
1851 var _i18n = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
1852 var _api = __webpack_require__(/*! ./api */ "../modules/element-manager/assets/js/api.js");
1853 function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1854 function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /* eslint-disable react/prop-types */
1855 var App = function App() {
1856 var _useState = (0, _element.useState)(true),
1857 _useState2 = (0, _slicedToArray2.default)(_useState, 2),
1858 isLoading = _useState2[0],
1859 setIsLoading = _useState2[1];
1860 var _useState3 = (0, _element.useState)(''),
1861 _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
1862 searchKeyword = _useState4[0],
1863 setSearchKeyword = _useState4[1];
1864 var _useState5 = (0, _element.useState)([]),
1865 _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
1866 widgets = _useState6[0],
1867 setWidgets = _useState6[1];
1868 var _useState7 = (0, _element.useState)([]),
1869 _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
1870 promotionWidgets = _useState8[0],
1871 setPromotionWidgets = _useState8[1];
1872 var _useState9 = (0, _element.useState)([]),
1873 _useState10 = (0, _slicedToArray2.default)(_useState9, 2),
1874 plugins = _useState10[0],
1875 setPlugins = _useState10[1];
1876 var _useState11 = (0, _element.useState)({
1877 isLoading: false,
1878 data: null
1879 }),
1880 _useState12 = (0, _slicedToArray2.default)(_useState11, 2),
1881 usageWidgets = _useState12[0],
1882 setUsageWidgets = _useState12[1];
1883 var _useState13 = (0, _element.useState)([]),
1884 _useState14 = (0, _slicedToArray2.default)(_useState13, 2),
1885 widgetsDisabled = _useState14[0],
1886 setWidgetsDisabled = _useState14[1];
1887 var _useState15 = (0, _element.useState)('widget'),
1888 _useState16 = (0, _slicedToArray2.default)(_useState15, 2),
1889 sortingColumn = _useState16[0],
1890 setSortingColumn = _useState16[1];
1891 var _useState17 = (0, _element.useState)('asc'),
1892 _useState18 = (0, _slicedToArray2.default)(_useState17, 2),
1893 sortingDirection = _useState18[0],
1894 setSortingDirection = _useState18[1];
1895 var _useState19 = (0, _element.useState)(''),
1896 _useState20 = (0, _slicedToArray2.default)(_useState19, 2),
1897 filterByPlugin = _useState20[0],
1898 setFilterByPlugin = _useState20[1];
1899 var _useState21 = (0, _element.useState)({
1900 isSaving: false,
1901 isUnsavedChanges: false
1902 }),
1903 _useState22 = (0, _slicedToArray2.default)(_useState21, 2),
1904 changeProgress = _useState22[0],
1905 setChangeProgress = _useState22[1];
1906 var _useState23 = (0, _element.useState)(false),
1907 _useState24 = (0, _slicedToArray2.default)(_useState23, 2),
1908 isConfirmDialogOpen = _useState24[0],
1909 setIsConfirmDialogOpen = _useState24[1];
1910 var _useState25 = (0, _element.useState)(false),
1911 _useState26 = (0, _slicedToArray2.default)(_useState25, 2),
1912 isSnackbarOpen = _useState26[0],
1913 setIsSnackbarOpen = _useState26[1];
1914 var _useState27 = (0, _element.useState)(null),
1915 _useState28 = (0, _slicedToArray2.default)(_useState27, 2),
1916 noticeData = _useState28[0],
1917 setNoticeData = _useState28[1];
1918 var getWidgetUsage = function getWidgetUsage(widgetName) {
1919 if (!usageWidgets.data || !usageWidgets.data.hasOwnProperty(widgetName)) {
1920 return 0;
1921 }
1922 return usageWidgets.data[widgetName];
1923 };
1924 var sortedAndFilteredWidgets = (0, _element.useMemo)(function () {
1925 var filteredWidgets = widgets.filter(function (widget) {
1926 return widget.title.toLowerCase().includes(searchKeyword.toLowerCase());
1927 });
1928 if ('' !== filterByPlugin) {
1929 filteredWidgets = filteredWidgets.filter(function (widget) {
1930 return widget.plugin.toLowerCase() === filterByPlugin.toLowerCase();
1931 });
1932 }
1933 filteredWidgets.sort(function (a, b) {
1934 var aValue;
1935 var bValue;
1936 if ('widget' === sortingColumn) {
1937 aValue = a.title;
1938 bValue = b.title;
1939 }
1940 if ('usage' === sortingColumn) {
1941 aValue = getWidgetUsage(a.name);
1942 bValue = getWidgetUsage(b.name);
1943 }
1944 if (aValue === bValue) {
1945 return 0;
1946 }
1947 if ('asc' === sortingDirection) {
1948 return aValue < bValue ? -1 : 1;
1949 }
1950 return aValue > bValue ? -1 : 1;
1951 });
1952 return filteredWidgets;
1953 }, [widgets, searchKeyword, sortingColumn, sortingDirection, filterByPlugin, usageWidgets]);
1954 var getSortingIndicatorClasses = function getSortingIndicatorClasses(column) {
1955 if (sortingColumn !== column) {
1956 return '';
1957 }
1958 if ('asc' === sortingDirection) {
1959 return 'sorted asc';
1960 }
1961 return 'sorted desc';
1962 };
1963 var onSortingClicked = function onSortingClicked(column) {
1964 if (sortingColumn === column) {
1965 if ('asc' === sortingDirection) {
1966 setSortingDirection('desc');
1967 } else {
1968 setSortingDirection('asc');
1969 }
1970 } else {
1971 setSortingColumn(column);
1972 setSortingDirection('asc');
1973 }
1974 };
1975 var onSaveClicked = /*#__PURE__*/function () {
1976 var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
1977 return _regenerator.default.wrap(function _callee$(_context) {
1978 while (1) switch (_context.prev = _context.next) {
1979 case 0:
1980 setIsConfirmDialogOpen(false);
1981 setChangeProgress(_objectSpread(_objectSpread({}, changeProgress), {}, {
1982 isSaving: true
1983 }));
1984 _context.next = 4;
1985 return (0, _api.saveDisabledWidgets)(widgetsDisabled);
1986 case 4:
1987 setChangeProgress(_objectSpread(_objectSpread({}, changeProgress), {}, {
1988 isSaving: false,
1989 isUnsavedChanges: false
1990 }));
1991 setIsSnackbarOpen(true);
1992 case 6:
1993 case "end":
1994 return _context.stop();
1995 }
1996 }, _callee);
1997 }));
1998 return function onSaveClicked() {
1999 return _ref.apply(this, arguments);
2000 };
2001 }();
2002 var deactivateAllUnusedWidgets = function deactivateAllUnusedWidgets() {
2003 var widgetsToDeactivate = widgets.filter(function (widget) {
2004 return !usageWidgets.data.hasOwnProperty(widget.name) || widgetsDisabled.includes(widget.name);
2005 });
2006 setWidgetsDisabled(widgetsToDeactivate.map(function (widget) {
2007 return widget.name;
2008 }));
2009 };
2010 var enableAllWidgets = function enableAllWidgets() {
2011 setWidgetsDisabled([]);
2012 };
2013 var onScanUsageElementsClicked = /*#__PURE__*/function () {
2014 var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
2015 var data;
2016 return _regenerator.default.wrap(function _callee2$(_context2) {
2017 while (1) switch (_context2.prev = _context2.next) {
2018 case 0:
2019 setUsageWidgets(_objectSpread(_objectSpread({}, usageWidgets), {}, {
2020 isLoading: true
2021 }));
2022 _context2.next = 3;
2023 return (0, _api.getUsageWidgets)();
2024 case 3:
2025 data = _context2.sent;
2026 setUsageWidgets({
2027 data: data,
2028 isLoading: false
2029 });
2030 setSortingColumn('usage');
2031 setSortingDirection('desc');
2032 case 7:
2033 case "end":
2034 return _context2.stop();
2035 }
2036 }, _callee2);
2037 }));
2038 return function onScanUsageElementsClicked() {
2039 return _ref2.apply(this, arguments);
2040 };
2041 }();
2042 var UsageTimesColumn = function UsageTimesColumn(_ref3) {
2043 var widgetName = _ref3.widgetName;
2044 if (null !== usageWidgets.data) {
2045 return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, getWidgetUsage(widgetName), " ", (0, _i18n.__)('times', 'elementor'));
2046 }
2047 if (usageWidgets.isLoading) {
2048 return /*#__PURE__*/_react.default.createElement(_components.Spinner, null);
2049 }
2050 return /*#__PURE__*/_react.default.createElement(_components.Button, {
2051 onClick: onScanUsageElementsClicked,
2052 size: 'small',
2053 variant: 'secondary'
2054 }, (0, _i18n.__)('Show', 'elementor'));
2055 };
2056 (0, _element.useEffect)(function () {
2057 var onLoading = /*#__PURE__*/function () {
2058 var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
2059 var appData, pluginsData;
2060 return _regenerator.default.wrap(function _callee3$(_context3) {
2061 while (1) switch (_context3.prev = _context3.next) {
2062 case 0:
2063 _context3.next = 2;
2064 return (0, _api.getAdminAppData)();
2065 case 2:
2066 appData = _context3.sent;
2067 setNoticeData(appData.notice_data);
2068 setWidgetsDisabled(appData.disabled_elements);
2069 setWidgets(appData.widgets);
2070 setPromotionWidgets(appData.promotion_widgets);
2071 pluginsData = appData.plugins.map(function (plugin) {
2072 return {
2073 label: plugin,
2074 value: plugin
2075 };
2076 });
2077 pluginsData.unshift({
2078 label: (0, _i18n.__)('All Plugins', 'elementor'),
2079 value: ''
2080 });
2081 setPlugins(pluginsData);
2082 setIsLoading(false);
2083 case 11:
2084 case "end":
2085 return _context3.stop();
2086 }
2087 }, _callee3);
2088 }));
2089 return function onLoading() {
2090 return _ref4.apply(this, arguments);
2091 };
2092 }();
2093 onLoading();
2094 }, []);
2095 (0, _element.useEffect)(function () {
2096 if (isLoading) {
2097 return;
2098 }
2099 setChangeProgress(_objectSpread(_objectSpread({}, changeProgress), {}, {
2100 isUnsavedChanges: true
2101 }));
2102 }, [widgetsDisabled]);
2103 if (isLoading) {
2104 return /*#__PURE__*/_react.default.createElement(_components.Flex, {
2105 justify: 'center',
2106 style: {
2107 margin: '100px'
2108 }
2109 }, /*#__PURE__*/_react.default.createElement(_components.Spinner, {
2110 style: {
2111 height: 'calc(4px * 20)',
2112 width: 'calc(4px * 20)'
2113 }
2114 }));
2115 }
2116 return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", {
2117 style: {
2118 marginBottom: '20px',
2119 maxWidth: '800px'
2120 }
2121 }, (0, _i18n.__)('Here\'s where you can fine-tune Elementor to your workflow. Disable elements you don\'t use for a cleaner interface, more focused creative experience, and improved performance.', 'elementor'), ' ', /*#__PURE__*/_react.default.createElement("a", {
2122 href: "https://go.elementor.com/wp-dash-element-manager/",
2123 rel: 'noreferrer',
2124 target: '_blank'
2125 }, (0, _i18n.__)('Learn More', 'elementor'))), !noticeData.is_viewed && /*#__PURE__*/_react.default.createElement("p", {
2126 style: {
2127 margin: '20px -15px'
2128 }
2129 }, /*#__PURE__*/_react.default.createElement(_components.Notice, {
2130 onRemove: function onRemove() {
2131 (0, _api.markNoticeViewed)(noticeData.notice_id);
2132 setNoticeData(_objectSpread(_objectSpread({}, noticeData), {}, {
2133 is_viewed: true
2134 }));
2135 },
2136 status: "warning"
2137 }, /*#__PURE__*/_react.default.createElement("strong", null, (0, _i18n.__)('Before you continue:', 'elementor')), " ", (0, _i18n.__)('Deactivating widgets here will remove them from both the Elementor Editor and your website, which can cause changes to your overall layout, design and what visitors see.', 'elementor'))), /*#__PURE__*/_react.default.createElement(_components.Panel, null, /*#__PURE__*/_react.default.createElement(_components.PanelBody, null, /*#__PURE__*/_react.default.createElement(_components.Flex, {
2138 style: {
2139 position: 'sticky',
2140 top: '32px',
2141 background: 'rgb(255, 255, 255)',
2142 zIndex: 10,
2143 padding: '20px 16px',
2144 boxShadow: 'rgba(0, 0, 0, 0.15) 0 5px 10px 0',
2145 margin: '-16px -16px 24px'
2146 }
2147 }, /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement(_components.Flex, {
2148 align: 'center'
2149 }, /*#__PURE__*/_react.default.createElement(_components.SearchControl, {
2150 label: (0, _i18n.__)('Search widgets', 'elementor'),
2151 value: searchKeyword,
2152 size: 'compact',
2153 style: {
2154 height: '40px',
2155 border: '1px solid rgba(30, 30, 30, 0.5)',
2156 background: 'transparent'
2157 },
2158 __nextHasNoMarginBottom: true,
2159 onChange: setSearchKeyword
2160 }), /*#__PURE__*/_react.default.createElement(_components.SelectControl, {
2161 onChange: setFilterByPlugin,
2162 size: '__unstable-large',
2163 __nextHasNoMarginBottom: true,
2164 options: plugins
2165 }), /*#__PURE__*/_react.default.createElement("hr", {
2166 style: {
2167 height: '30px',
2168 margin: '0 5px',
2169 borderWidth: '0 1px 0 0',
2170 borderStyle: 'solid',
2171 borderColor: 'rgba(30, 30, 30, 0.5)'
2172 }
2173 }), /*#__PURE__*/_react.default.createElement(_components.ButtonGroup, null, /*#__PURE__*/_react.default.createElement(_components.Button, {
2174 variant: 'secondary',
2175 style: {
2176 marginInlineEnd: '10px'
2177 },
2178 disabled: usageWidgets.isLoading,
2179 isBusy: usageWidgets.isLoading,
2180 onClick: onScanUsageElementsClicked
2181 }, (0, _i18n.__)('Scan Element Usage', 'elementor')), /*#__PURE__*/_react.default.createElement(_components.Button, {
2182 variant: 'secondary',
2183 style: {
2184 marginInlineEnd: '10px'
2185 },
2186 onClick: deactivateAllUnusedWidgets,
2187 disabled: null === usageWidgets.data
2188 }, (0, _i18n.__)('Deactivate Unused Elements', 'elementor')), /*#__PURE__*/_react.default.createElement(_components.Button, {
2189 variant: 'secondary',
2190 disabled: !widgetsDisabled.length,
2191 style: {
2192 marginInlineEnd: '10px'
2193 },
2194 onClick: enableAllWidgets
2195 }, (0, _i18n.__)('Enable All', 'elementor'))))), /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement(_components.Button, {
2196 variant: "primary",
2197 disabled: changeProgress.isSaving || !changeProgress.isUnsavedChanges,
2198 isBusy: changeProgress.isSaving,
2199 onClick: function onClick() {
2200 setIsConfirmDialogOpen(true);
2201 }
2202 }, (0, _i18n.__)('Save Changes', 'elementor')))), /*#__PURE__*/_react.default.createElement(_components.PanelRow, null, !sortedAndFilteredWidgets.length ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _i18n.__)('No elements found.', 'elementor')) : /*#__PURE__*/_react.default.createElement("table", {
2203 className: 'wp-list-table widefat fixed striped table-view-list'
2204 }, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", {
2205 className: "manage-column sortable ".concat(getSortingIndicatorClasses('widget'))
2206 }, /*#__PURE__*/_react.default.createElement(_components.Button, {
2207 href: '#',
2208 onClick: function onClick(event) {
2209 event.preventDefault();
2210 onSortingClicked('widget');
2211 }
2212 }, /*#__PURE__*/_react.default.createElement("span", null, (0, _i18n.__)('Element', 'elementor')), /*#__PURE__*/_react.default.createElement("span", {
2213 className: "sorting-indicators"
2214 }, /*#__PURE__*/_react.default.createElement("span", {
2215 className: "sorting-indicator asc",
2216 "aria-hidden": "true"
2217 }), /*#__PURE__*/_react.default.createElement("span", {
2218 className: "sorting-indicator desc",
2219 "aria-hidden": "true"
2220 })))), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Status', 'elementor')), /*#__PURE__*/_react.default.createElement("th", {
2221 className: "manage-column sortable ".concat(getSortingIndicatorClasses('usage'))
2222 }, /*#__PURE__*/_react.default.createElement(_components.Button, {
2223 href: '#',
2224 onClick: function onClick(event) {
2225 event.preventDefault();
2226 onSortingClicked('usage');
2227 }
2228 }, /*#__PURE__*/_react.default.createElement("span", null, (0, _i18n.__)('Usage', 'elementor')), /*#__PURE__*/_react.default.createElement("span", {
2229 className: "sorting-indicators"
2230 }, /*#__PURE__*/_react.default.createElement("span", {
2231 className: "sorting-indicator asc",
2232 "aria-hidden": "true"
2233 }), /*#__PURE__*/_react.default.createElement("span", {
2234 className: "sorting-indicator desc",
2235 "aria-hidden": "true"
2236 })))), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Plugin', 'elementor')))), /*#__PURE__*/_react.default.createElement("tbody", null, sortedAndFilteredWidgets.map(function (widget) {
2237 return /*#__PURE__*/_react.default.createElement("tr", {
2238 key: widget.name
2239 }, /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement("i", {
2240 style: {
2241 marginInlineEnd: '5px'
2242 },
2243 className: "".concat(widget.icon)
2244 }), " ", widget.title), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_components.ToggleControl, {
2245 checked: !widgetsDisabled.includes(widget.name),
2246 __nextHasNoMarginBottom: true,
2247 onChange: function onChange() {
2248 if (widgetsDisabled.includes(widget.name)) {
2249 setWidgetsDisabled(widgetsDisabled.filter(function (item) {
2250 return item !== widget.name;
2251 }));
2252 } else {
2253 setWidgetsDisabled([].concat((0, _toConsumableArray2.default)(widgetsDisabled), [widget.name]));
2254 }
2255 }
2256 })), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(UsageTimesColumn, {
2257 widgetName: widget.name
2258 })), /*#__PURE__*/_react.default.createElement("td", null, widget.plugin));
2259 })))), promotionWidgets.length > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_components.PanelRow, null, /*#__PURE__*/_react.default.createElement(_components.Flex, {
2260 style: {
2261 marginTop: '40px',
2262 marginBottom: '20px'
2263 }
2264 }, /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement("h3", null, (0, _i18n.__)('Elementor Pro Elements', 'elementor')), /*#__PURE__*/_react.default.createElement("p", null, (0, _i18n.__)('Unleash the full power of Elementor\'s features and web creation tools.', 'elementor'))), /*#__PURE__*/_react.default.createElement(_components.FlexItem, null, /*#__PURE__*/_react.default.createElement(_components.Button, {
2265 variant: "primary",
2266 href: "https://go.elementor.com/go-pro-element-manager/",
2267 target: "_blank",
2268 rel: 'noreferrer',
2269 style: {
2270 background: 'var(--e-a-btn-bg-accent, #93003f)'
2271 }
2272 }, (0, _i18n.__)('Upgrade Now', 'elementor'))))), /*#__PURE__*/_react.default.createElement(_components.PanelRow, null, /*#__PURE__*/_react.default.createElement("table", {
2273 className: 'wp-list-table widefat fixed striped table-view-list'
2274 }, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", {
2275 className: "manage-column"
2276 }, /*#__PURE__*/_react.default.createElement("span", null, (0, _i18n.__)('Element', 'elementor'))), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Status', 'elementor')), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Usage', 'elementor')), /*#__PURE__*/_react.default.createElement("th", null, (0, _i18n.__)('Plugin', 'elementor')))), /*#__PURE__*/_react.default.createElement("tbody", null, promotionWidgets.map(function (widget) {
2277 return /*#__PURE__*/_react.default.createElement("tr", {
2278 key: widget.name
2279 }, /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement("i", {
2280 style: {
2281 marginInlineEnd: '5px'
2282 },
2283 className: "".concat(widget.icon)
2284 }), " ", widget.title), /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_components.ToggleControl, {
2285 __nextHasNoMarginBottom: true,
2286 checked: false,
2287 disabled: true
2288 })), /*#__PURE__*/_react.default.createElement("td", null), /*#__PURE__*/_react.default.createElement("td", null, (0, _i18n.__)('Elementor Pro', 'elementor')));
2289 }))))))), isConfirmDialogOpen && /*#__PURE__*/_react.default.createElement(_components.Modal, {
2290 title: (0, _i18n.__)('Sure you want to save these changes?', 'elementor'),
2291 size: 'small',
2292 isDismissible: false,
2293 onRequestClose: function onRequestClose() {
2294 setIsConfirmDialogOpen(false);
2295 }
2296 }, /*#__PURE__*/_react.default.createElement("p", {
2297 style: {
2298 maxWidth: '400px',
2299 marginBlockEnd: '30px',
2300 marginBlockStart: '0'
2301 }
2302 }, (0, _i18n.__)('Turning widgets off will hide them from the editor panel, and can potentially affect your layout or front-end.', 'elementor'), /*#__PURE__*/_react.default.createElement("span", {
2303 style: {
2304 display: 'block',
2305 marginTop: '20px'
2306 }
2307 }, (0, _i18n.__)('If you’re adding widgets back in, enjoy them!', 'elementor'))), /*#__PURE__*/_react.default.createElement(_components.ButtonGroup, {
2308 style: {
2309 display: 'flex',
2310 justifyContent: 'flex-end',
2311 gap: '30px'
2312 }
2313 }, /*#__PURE__*/_react.default.createElement(_components.Button, {
2314 variant: 'link',
2315 onClick: function onClick() {
2316 setIsConfirmDialogOpen(false);
2317 }
2318 }, (0, _i18n.__)('Cancel', 'elementor')), /*#__PURE__*/_react.default.createElement(_components.Button, {
2319 variant: 'primary',
2320 onClick: onSaveClicked
2321 }, (0, _i18n.__)('Save', 'elementor')))), /*#__PURE__*/_react.default.createElement("div", {
2322 style: {
2323 position: 'fixed',
2324 bottom: '40px',
2325 left: '50%',
2326 transform: 'translateX(-50%)',
2327 display: isSnackbarOpen ? 'block' : 'none'
2328 }
2329 }, /*#__PURE__*/_react.default.createElement(_components.Snackbar, {
2330 isDismissible: true,
2331 status: 'success',
2332 onRemove: function onRemove() {
2333 return setIsSnackbarOpen(false);
2334 }
2335 }, (0, _i18n.__)('We saved your changes.', 'elementor'))));
2336 };
2337 exports.App = App;
2338
2339 /***/ }),
2340
2341 /***/ "../node_modules/dot-case/dist.es2015/index.js":
2342 /*!*****************************************************!*\
2343 !*** ../node_modules/dot-case/dist.es2015/index.js ***!
2344 \*****************************************************/
2345 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2346
2347 "use strict";
2348 __webpack_require__.r(__webpack_exports__);
2349 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2350 /* harmony export */ dotCase: () => (/* binding */ dotCase)
2351 /* harmony export */ });
2352 /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "../node_modules/dot-case/node_modules/tslib/tslib.es6.mjs");
2353 /* harmony import */ var no_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! no-case */ "../node_modules/no-case/dist.es2015/index.js");
2354
2355
2356 function dotCase(input, options) {
2357 if (options === void 0) { options = {}; }
2358 return (0,no_case__WEBPACK_IMPORTED_MODULE_0__.noCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({ delimiter: "." }, options));
2359 }
2360 //# sourceMappingURL=index.js.map
2361
2362 /***/ }),
2363
2364 /***/ "../node_modules/lower-case/dist.es2015/index.js":
2365 /*!*******************************************************!*\
2366 !*** ../node_modules/lower-case/dist.es2015/index.js ***!
2367 \*******************************************************/
2368 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2369
2370 "use strict";
2371 __webpack_require__.r(__webpack_exports__);
2372 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2373 /* harmony export */ localeLowerCase: () => (/* binding */ localeLowerCase),
2374 /* harmony export */ lowerCase: () => (/* binding */ lowerCase)
2375 /* harmony export */ });
2376 /**
2377 * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt
2378 */
2379 var SUPPORTED_LOCALE = {
2380 tr: {
2381 regexp: /\u0130|\u0049|\u0049\u0307/g,
2382 map: {
2383 İ: "\u0069",
2384 I: "\u0131",
2385 : "\u0069",
2386 },
2387 },
2388 az: {
2389 regexp: /\u0130/g,
2390 map: {
2391 İ: "\u0069",
2392 I: "\u0131",
2393 : "\u0069",
2394 },
2395 },
2396 lt: {
2397 regexp: /\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,
2398 map: {
2399 I: "\u0069\u0307",
2400 J: "\u006A\u0307",
2401 Į: "\u012F\u0307",
2402 Ì: "\u0069\u0307\u0300",
2403 Í: "\u0069\u0307\u0301",
2404 Ĩ: "\u0069\u0307\u0303",
2405 },
2406 },
2407 };
2408 /**
2409 * Localized lower case.
2410 */
2411 function localeLowerCase(str, locale) {
2412 var lang = SUPPORTED_LOCALE[locale.toLowerCase()];
2413 if (lang)
2414 return lowerCase(str.replace(lang.regexp, function (m) { return lang.map[m]; }));
2415 return lowerCase(str);
2416 }
2417 /**
2418 * Lower case as a function.
2419 */
2420 function lowerCase(str) {
2421 return str.toLowerCase();
2422 }
2423 //# sourceMappingURL=index.js.map
2424
2425 /***/ }),
2426
2427 /***/ "../node_modules/no-case/dist.es2015/index.js":
2428 /*!****************************************************!*\
2429 !*** ../node_modules/no-case/dist.es2015/index.js ***!
2430 \****************************************************/
2431 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2432
2433 "use strict";
2434 __webpack_require__.r(__webpack_exports__);
2435 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2436 /* harmony export */ noCase: () => (/* binding */ noCase)
2437 /* harmony export */ });
2438 /* harmony import */ var lower_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lower-case */ "../node_modules/lower-case/dist.es2015/index.js");
2439
2440 // Support camel case ("camelCase" -> "camel Case" and "CAMELCase" -> "CAMEL Case").
2441 var DEFAULT_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
2442 // Remove all non-word characters.
2443 var DEFAULT_STRIP_REGEXP = /[^A-Z0-9]+/gi;
2444 /**
2445 * Normalize the string into something other libraries can manipulate easier.
2446 */
2447 function noCase(input, options) {
2448 if (options === void 0) { options = {}; }
2449 var _a = options.splitRegexp, splitRegexp = _a === void 0 ? DEFAULT_SPLIT_REGEXP : _a, _b = options.stripRegexp, stripRegexp = _b === void 0 ? DEFAULT_STRIP_REGEXP : _b, _c = options.transform, transform = _c === void 0 ? lower_case__WEBPACK_IMPORTED_MODULE_0__.lowerCase : _c, _d = options.delimiter, delimiter = _d === void 0 ? " " : _d;
2450 var result = replace(replace(input, splitRegexp, "$1\0$2"), stripRegexp, "\0");
2451 var start = 0;
2452 var end = result.length;
2453 // Trim the delimiter from around the output string.
2454 while (result.charAt(start) === "\0")
2455 start++;
2456 while (result.charAt(end - 1) === "\0")
2457 end--;
2458 // Transform each token independently.
2459 return result.slice(start, end).split("\0").map(transform).join(delimiter);
2460 }
2461 /**
2462 * Replace `re` in the input string with the replacement value.
2463 */
2464 function replace(input, re, value) {
2465 if (re instanceof RegExp)
2466 return input.replace(re, value);
2467 return re.reduce(function (input, re) { return input.replace(re, value); }, input);
2468 }
2469 //# sourceMappingURL=index.js.map
2470
2471 /***/ }),
2472
2473 /***/ "../node_modules/param-case/dist.es2015/index.js":
2474 /*!*******************************************************!*\
2475 !*** ../node_modules/param-case/dist.es2015/index.js ***!
2476 \*******************************************************/
2477 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2478
2479 "use strict";
2480 __webpack_require__.r(__webpack_exports__);
2481 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2482 /* harmony export */ paramCase: () => (/* binding */ paramCase)
2483 /* harmony export */ });
2484 /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! tslib */ "../node_modules/param-case/node_modules/tslib/tslib.es6.mjs");
2485 /* harmony import */ var dot_case__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! dot-case */ "../node_modules/dot-case/dist.es2015/index.js");
2486
2487
2488 function paramCase(input, options) {
2489 if (options === void 0) { options = {}; }
2490 return (0,dot_case__WEBPACK_IMPORTED_MODULE_0__.dotCase)(input, (0,tslib__WEBPACK_IMPORTED_MODULE_1__.__assign)({ delimiter: "-" }, options));
2491 }
2492 //# sourceMappingURL=index.js.map
2493
2494 /***/ }),
2495
2496 /***/ "../node_modules/react-dom/client.js":
2497 /*!*******************************************!*\
2498 !*** ../node_modules/react-dom/client.js ***!
2499 \*******************************************/
2500 /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
2501
2502 "use strict";
2503
2504
2505 var m = __webpack_require__(/*! react-dom */ "react-dom");
2506 if (false) {} else {
2507 var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2508 exports.createRoot = function(c, o) {
2509 i.usingClientEntryPoint = true;
2510 try {
2511 return m.createRoot(c, o);
2512 } finally {
2513 i.usingClientEntryPoint = false;
2514 }
2515 };
2516 exports.hydrateRoot = function(c, h, o) {
2517 i.usingClientEntryPoint = true;
2518 try {
2519 return m.hydrateRoot(c, h, o);
2520 } finally {
2521 i.usingClientEntryPoint = false;
2522 }
2523 };
2524 }
2525
2526
2527 /***/ }),
2528
2529 /***/ "react":
2530 /*!************************!*\
2531 !*** external "React" ***!
2532 \************************/
2533 /***/ ((module) => {
2534
2535 "use strict";
2536 module.exports = React;
2537
2538 /***/ }),
2539
2540 /***/ "react-dom":
2541 /*!***************************!*\
2542 !*** external "ReactDOM" ***!
2543 \***************************/
2544 /***/ ((module) => {
2545
2546 "use strict";
2547 module.exports = ReactDOM;
2548
2549 /***/ }),
2550
2551 /***/ "@wordpress/components":
2552 /*!********************************!*\
2553 !*** external "wp.components" ***!
2554 \********************************/
2555 /***/ ((module) => {
2556
2557 "use strict";
2558 module.exports = wp.components;
2559
2560 /***/ }),
2561
2562 /***/ "@wordpress/dom-ready":
2563 /*!******************************!*\
2564 !*** external "wp.domReady" ***!
2565 \******************************/
2566 /***/ ((module) => {
2567
2568 "use strict";
2569 module.exports = wp.domReady;
2570
2571 /***/ }),
2572
2573 /***/ "@wordpress/i18n":
2574 /*!**************************!*\
2575 !*** external "wp.i18n" ***!
2576 \**************************/
2577 /***/ ((module) => {
2578
2579 "use strict";
2580 module.exports = wp.i18n;
2581
2582 /***/ }),
2583
2584 /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
2585 /*!******************************************************************!*\
2586 !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
2587 \******************************************************************/
2588 /***/ ((module) => {
2589
2590 function _arrayLikeToArray(arr, len) {
2591 if (len == null || len > arr.length) len = arr.length;
2592 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
2593 return arr2;
2594 }
2595 module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2596
2597 /***/ }),
2598
2599 /***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
2600 /*!****************************************************************!*\
2601 !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
2602 \****************************************************************/
2603 /***/ ((module) => {
2604
2605 function _arrayWithHoles(arr) {
2606 if (Array.isArray(arr)) return arr;
2607 }
2608 module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2609
2610 /***/ }),
2611
2612 /***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":
2613 /*!*******************************************************************!*\
2614 !*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
2615 \*******************************************************************/
2616 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2617
2618 var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
2619 function _arrayWithoutHoles(arr) {
2620 if (Array.isArray(arr)) return arrayLikeToArray(arr);
2621 }
2622 module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
2623
2624 /***/ }),
2625
2626 /***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js":
2627 /*!******************************************************************!*\
2628 !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***!
2629 \******************************************************************/
2630 /***/ ((module) => {
2631
2632 function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2633 try {
2634 var info = gen[key](arg);
2635 var value = info.value;
2636 } catch (error) {
2637 reject(error);
2638 return;
2639 }
2640 if (info.done) {
2641 resolve(value);
2642 } else {
2643 Promise.resolve(value).then(_next, _throw);
2644 }
2645 }
2646 function _asyncToGenerator(fn) {
2647 return function () {
2648 var self = this,
2649 args = arguments;
2650 return new Promise(function (resolve, reject) {
2651 var gen = fn.apply(self, args);
2652 function _next(value) {
2653 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
2654 }
2655 function _throw(err) {
2656 asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
2657 }
2658 _next(undefined);
2659 });
2660 };
2661 }
2662 module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
2663
2664 /***/ }),
2665
2666 /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
2667 /*!****************************************************************!*\
2668 !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
2669 \****************************************************************/
2670 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2671
2672 var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
2673 function _defineProperty(obj, key, value) {
2674 key = toPropertyKey(key);
2675 if (key in obj) {
2676 Object.defineProperty(obj, key, {
2677 value: value,
2678 enumerable: true,
2679 configurable: true,
2680 writable: true
2681 });
2682 } else {
2683 obj[key] = value;
2684 }
2685 return obj;
2686 }
2687 module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
2688
2689 /***/ }),
2690
2691 /***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
2692 /*!***********************************************************************!*\
2693 !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
2694 \***********************************************************************/
2695 /***/ ((module) => {
2696
2697 function _interopRequireDefault(obj) {
2698 return obj && obj.__esModule ? obj : {
2699 "default": obj
2700 };
2701 }
2702 module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
2703
2704 /***/ }),
2705
2706 /***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js":
2707 /*!*****************************************************************!*\
2708 !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***!
2709 \*****************************************************************/
2710 /***/ ((module) => {
2711
2712 function _iterableToArray(iter) {
2713 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
2714 }
2715 module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
2716
2717 /***/ }),
2718
2719 /***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
2720 /*!**********************************************************************!*\
2721 !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
2722 \**********************************************************************/
2723 /***/ ((module) => {
2724
2725 function _iterableToArrayLimit(r, l) {
2726 var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
2727 if (null != t) {
2728 var e,
2729 n,
2730 i,
2731 u,
2732 a = [],
2733 f = !0,
2734 o = !1;
2735 try {
2736 if (i = (t = t.call(r)).next, 0 === l) {
2737 if (Object(t) !== t) return;
2738 f = !1;
2739 } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
2740 } catch (r) {
2741 o = !0, n = r;
2742 } finally {
2743 try {
2744 if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
2745 } finally {
2746 if (o) throw n;
2747 }
2748 }
2749 return a;
2750 }
2751 }
2752 module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
2753
2754 /***/ }),
2755
2756 /***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
2757 /*!*****************************************************************!*\
2758 !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
2759 \*****************************************************************/
2760 /***/ ((module) => {
2761
2762 function _nonIterableRest() {
2763 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2764 }
2765 module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
2766
2767 /***/ }),
2768
2769 /***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js":
2770 /*!*******************************************************************!*\
2771 !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
2772 \*******************************************************************/
2773 /***/ ((module) => {
2774
2775 function _nonIterableSpread() {
2776 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2777 }
2778 module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
2779
2780 /***/ }),
2781
2782 /***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js":
2783 /*!********************************************************************!*\
2784 !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***!
2785 \********************************************************************/
2786 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2787
2788 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
2789 function _regeneratorRuntime() {
2790 "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2791 module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
2792 return e;
2793 }, module.exports.__esModule = true, module.exports["default"] = module.exports;
2794 var t,
2795 e = {},
2796 r = Object.prototype,
2797 n = r.hasOwnProperty,
2798 o = Object.defineProperty || function (t, e, r) {
2799 t[e] = r.value;
2800 },
2801 i = "function" == typeof Symbol ? Symbol : {},
2802 a = i.iterator || "@@iterator",
2803 c = i.asyncIterator || "@@asyncIterator",
2804 u = i.toStringTag || "@@toStringTag";
2805 function define(t, e, r) {
2806 return Object.defineProperty(t, e, {
2807 value: r,
2808 enumerable: !0,
2809 configurable: !0,
2810 writable: !0
2811 }), t[e];
2812 }
2813 try {
2814 define({}, "");
2815 } catch (t) {
2816 define = function define(t, e, r) {
2817 return t[e] = r;
2818 };
2819 }
2820 function wrap(t, e, r, n) {
2821 var i = e && e.prototype instanceof Generator ? e : Generator,
2822 a = Object.create(i.prototype),
2823 c = new Context(n || []);
2824 return o(a, "_invoke", {
2825 value: makeInvokeMethod(t, r, c)
2826 }), a;
2827 }
2828 function tryCatch(t, e, r) {
2829 try {
2830 return {
2831 type: "normal",
2832 arg: t.call(e, r)
2833 };
2834 } catch (t) {
2835 return {
2836 type: "throw",
2837 arg: t
2838 };
2839 }
2840 }
2841 e.wrap = wrap;
2842 var h = "suspendedStart",
2843 l = "suspendedYield",
2844 f = "executing",
2845 s = "completed",
2846 y = {};
2847 function Generator() {}
2848 function GeneratorFunction() {}
2849 function GeneratorFunctionPrototype() {}
2850 var p = {};
2851 define(p, a, function () {
2852 return this;
2853 });
2854 var d = Object.getPrototypeOf,
2855 v = d && d(d(values([])));
2856 v && v !== r && n.call(v, a) && (p = v);
2857 var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
2858 function defineIteratorMethods(t) {
2859 ["next", "throw", "return"].forEach(function (e) {
2860 define(t, e, function (t) {
2861 return this._invoke(e, t);
2862 });
2863 });
2864 }
2865 function AsyncIterator(t, e) {
2866 function invoke(r, o, i, a) {
2867 var c = tryCatch(t[r], t, o);
2868 if ("throw" !== c.type) {
2869 var u = c.arg,
2870 h = u.value;
2871 return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
2872 invoke("next", t, i, a);
2873 }, function (t) {
2874 invoke("throw", t, i, a);
2875 }) : e.resolve(h).then(function (t) {
2876 u.value = t, i(u);
2877 }, function (t) {
2878 return invoke("throw", t, i, a);
2879 });
2880 }
2881 a(c.arg);
2882 }
2883 var r;
2884 o(this, "_invoke", {
2885 value: function value(t, n) {
2886 function callInvokeWithMethodAndArg() {
2887 return new e(function (e, r) {
2888 invoke(t, n, e, r);
2889 });
2890 }
2891 return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
2892 }
2893 });
2894 }
2895 function makeInvokeMethod(e, r, n) {
2896 var o = h;
2897 return function (i, a) {
2898 if (o === f) throw new Error("Generator is already running");
2899 if (o === s) {
2900 if ("throw" === i) throw a;
2901 return {
2902 value: t,
2903 done: !0
2904 };
2905 }
2906 for (n.method = i, n.arg = a;;) {
2907 var c = n.delegate;
2908 if (c) {
2909 var u = maybeInvokeDelegate(c, n);
2910 if (u) {
2911 if (u === y) continue;
2912 return u;
2913 }
2914 }
2915 if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
2916 if (o === h) throw o = s, n.arg;
2917 n.dispatchException(n.arg);
2918 } else "return" === n.method && n.abrupt("return", n.arg);
2919 o = f;
2920 var p = tryCatch(e, r, n);
2921 if ("normal" === p.type) {
2922 if (o = n.done ? s : l, p.arg === y) continue;
2923 return {
2924 value: p.arg,
2925 done: n.done
2926 };
2927 }
2928 "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
2929 }
2930 };
2931 }
2932 function maybeInvokeDelegate(e, r) {
2933 var n = r.method,
2934 o = e.iterator[n];
2935 if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
2936 var i = tryCatch(o, e.iterator, r.arg);
2937 if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
2938 var a = i.arg;
2939 return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
2940 }
2941 function pushTryEntry(t) {
2942 var e = {
2943 tryLoc: t[0]
2944 };
2945 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
2946 }
2947 function resetTryEntry(t) {
2948 var e = t.completion || {};
2949 e.type = "normal", delete e.arg, t.completion = e;
2950 }
2951 function Context(t) {
2952 this.tryEntries = [{
2953 tryLoc: "root"
2954 }], t.forEach(pushTryEntry, this), this.reset(!0);
2955 }
2956 function values(e) {
2957 if (e || "" === e) {
2958 var r = e[a];
2959 if (r) return r.call(e);
2960 if ("function" == typeof e.next) return e;
2961 if (!isNaN(e.length)) {
2962 var o = -1,
2963 i = function next() {
2964 for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
2965 return next.value = t, next.done = !0, next;
2966 };
2967 return i.next = i;
2968 }
2969 }
2970 throw new TypeError(_typeof(e) + " is not iterable");
2971 }
2972 return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
2973 value: GeneratorFunctionPrototype,
2974 configurable: !0
2975 }), o(GeneratorFunctionPrototype, "constructor", {
2976 value: GeneratorFunction,
2977 configurable: !0
2978 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
2979 var e = "function" == typeof t && t.constructor;
2980 return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
2981 }, e.mark = function (t) {
2982 return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
2983 }, e.awrap = function (t) {
2984 return {
2985 __await: t
2986 };
2987 }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
2988 return this;
2989 }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
2990 void 0 === i && (i = Promise);
2991 var a = new AsyncIterator(wrap(t, r, n, o), i);
2992 return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
2993 return t.done ? t.value : a.next();
2994 });
2995 }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
2996 return this;
2997 }), define(g, "toString", function () {
2998 return "[object Generator]";
2999 }), e.keys = function (t) {
3000 var e = Object(t),
3001 r = [];
3002 for (var n in e) r.push(n);
3003 return r.reverse(), function next() {
3004 for (; r.length;) {
3005 var t = r.pop();
3006 if (t in e) return next.value = t, next.done = !1, next;
3007 }
3008 return next.done = !0, next;
3009 };
3010 }, e.values = values, Context.prototype = {
3011 constructor: Context,
3012 reset: function reset(e) {
3013 if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
3014 },
3015 stop: function stop() {
3016 this.done = !0;
3017 var t = this.tryEntries[0].completion;
3018 if ("throw" === t.type) throw t.arg;
3019 return this.rval;
3020 },
3021 dispatchException: function dispatchException(e) {
3022 if (this.done) throw e;
3023 var r = this;
3024 function handle(n, o) {
3025 return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
3026 }
3027 for (var o = this.tryEntries.length - 1; o >= 0; --o) {
3028 var i = this.tryEntries[o],
3029 a = i.completion;
3030 if ("root" === i.tryLoc) return handle("end");
3031 if (i.tryLoc <= this.prev) {
3032 var c = n.call(i, "catchLoc"),
3033 u = n.call(i, "finallyLoc");
3034 if (c && u) {
3035 if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
3036 if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
3037 } else if (c) {
3038 if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
3039 } else {
3040 if (!u) throw new Error("try statement without catch or finally");
3041 if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
3042 }
3043 }
3044 }
3045 },
3046 abrupt: function abrupt(t, e) {
3047 for (var r = this.tryEntries.length - 1; r >= 0; --r) {
3048 var o = this.tryEntries[r];
3049 if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
3050 var i = o;
3051 break;
3052 }
3053 }
3054 i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
3055 var a = i ? i.completion : {};
3056 return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
3057 },
3058 complete: function complete(t, e) {
3059 if ("throw" === t.type) throw t.arg;
3060 return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
3061 },
3062 finish: function finish(t) {
3063 for (var e = this.tryEntries.length - 1; e >= 0; --e) {
3064 var r = this.tryEntries[e];
3065 if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
3066 }
3067 },
3068 "catch": function _catch(t) {
3069 for (var e = this.tryEntries.length - 1; e >= 0; --e) {
3070 var r = this.tryEntries[e];
3071 if (r.tryLoc === t) {
3072 var n = r.completion;
3073 if ("throw" === n.type) {
3074 var o = n.arg;
3075 resetTryEntry(r);
3076 }
3077 return o;
3078 }
3079 }
3080 throw new Error("illegal catch attempt");
3081 },
3082 delegateYield: function delegateYield(e, r, n) {
3083 return this.delegate = {
3084 iterator: values(e),
3085 resultName: r,
3086 nextLoc: n
3087 }, "next" === this.method && (this.arg = t), y;
3088 }
3089 }, e;
3090 }
3091 module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
3092
3093 /***/ }),
3094
3095 /***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
3096 /*!***************************************************************!*\
3097 !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
3098 \***************************************************************/
3099 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3100
3101 var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
3102 var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
3103 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
3104 var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
3105 function _slicedToArray(arr, i) {
3106 return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
3107 }
3108 module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3109
3110 /***/ }),
3111
3112 /***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js":
3113 /*!*******************************************************************!*\
3114 !*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
3115 \*******************************************************************/
3116 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3117
3118 var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js");
3119 var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js");
3120 var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
3121 var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js");
3122 function _toConsumableArray(arr) {
3123 return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
3124 }
3125 module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3126
3127 /***/ }),
3128
3129 /***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
3130 /*!*************************************************************!*\
3131 !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
3132 \*************************************************************/
3133 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3134
3135 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
3136 function _toPrimitive(input, hint) {
3137 if (_typeof(input) !== "object" || input === null) return input;
3138 var prim = input[Symbol.toPrimitive];
3139 if (prim !== undefined) {
3140 var res = prim.call(input, hint || "default");
3141 if (_typeof(res) !== "object") return res;
3142 throw new TypeError("@@toPrimitive must return a primitive value.");
3143 }
3144 return (hint === "string" ? String : Number)(input);
3145 }
3146 module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
3147
3148 /***/ }),
3149
3150 /***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
3151 /*!***************************************************************!*\
3152 !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
3153 \***************************************************************/
3154 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3155
3156 var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
3157 var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
3158 function _toPropertyKey(arg) {
3159 var key = toPrimitive(arg, "string");
3160 return _typeof(key) === "symbol" ? key : String(key);
3161 }
3162 module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
3163
3164 /***/ }),
3165
3166 /***/ "../node_modules/@babel/runtime/helpers/typeof.js":
3167 /*!********************************************************!*\
3168 !*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
3169 \********************************************************/
3170 /***/ ((module) => {
3171
3172 function _typeof(o) {
3173 "@babel/helpers - typeof";
3174
3175 return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
3176 return typeof o;
3177 } : function (o) {
3178 return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
3179 }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
3180 }
3181 module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
3182
3183 /***/ }),
3184
3185 /***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
3186 /*!****************************************************************************!*\
3187 !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
3188 \****************************************************************************/
3189 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3190
3191 var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
3192 function _unsupportedIterableToArray(o, minLen) {
3193 if (!o) return;
3194 if (typeof o === "string") return arrayLikeToArray(o, minLen);
3195 var n = Object.prototype.toString.call(o).slice(8, -1);
3196 if (n === "Object" && o.constructor) n = o.constructor.name;
3197 if (n === "Map" || n === "Set") return Array.from(o);
3198 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
3199 }
3200 module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
3201
3202 /***/ }),
3203
3204 /***/ "../node_modules/@babel/runtime/regenerator/index.js":
3205 /*!***********************************************************!*\
3206 !*** ../node_modules/@babel/runtime/regenerator/index.js ***!
3207 \***********************************************************/
3208 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3209
3210 // TODO(Babel 8): Remove this file.
3211
3212 var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")();
3213 module.exports = runtime;
3214
3215 // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
3216 try {
3217 regeneratorRuntime = runtime;
3218 } catch (accidentalStrictMode) {
3219 if (typeof globalThis === "object") {
3220 globalThis.regeneratorRuntime = runtime;
3221 } else {
3222 Function("r", "regeneratorRuntime = r")(runtime);
3223 }
3224 }
3225
3226
3227 /***/ }),
3228
3229 /***/ "../node_modules/@wordpress/element/node_modules/is-plain-object/dist/is-plain-object.mjs":
3230 /*!************************************************************************************************!*\
3231 !*** ../node_modules/@wordpress/element/node_modules/is-plain-object/dist/is-plain-object.mjs ***!
3232 \************************************************************************************************/
3233 /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3234
3235 "use strict";
3236 __webpack_require__.r(__webpack_exports__);
3237 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3238 /* harmony export */ isPlainObject: () => (/* binding */ isPlainObject)
3239 /* harmony export */ });
3240 /*!
3241 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
3242 *
3243 * Copyright (c) 2014-2017, Jon Schlinkert.
3244 * Released under the MIT License.
3245 */
3246
3247 function isObject(o) {
3248 return Object.prototype.toString.call(o) === '[object Object]';
3249 }
3250
3251 function isPlainObject(o) {
3252 var ctor,prot;
3253
3254 if (isObject(o) === false) return false;
3255
3256 // If has modified constructor
3257 ctor = o.constructor;
3258 if (ctor === undefined) return true;
3259
3260 // If has modified prototype
3261 prot = ctor.prototype;
3262 if (isObject(prot) === false) return false;
3263
3264 // If constructor does not have an Object-specific method
3265 if (prot.hasOwnProperty('isPrototypeOf') === false) {
3266 return false;
3267 }
3268
3269 // Most likely a plain Object
3270 return true;
3271 }
3272
3273
3274
3275
3276 /***/ }),
3277
3278 /***/ "../node_modules/dot-case/node_modules/tslib/tslib.es6.mjs":
3279 /*!*****************************************************************!*\
3280 !*** ../node_modules/dot-case/node_modules/tslib/tslib.es6.mjs ***!
3281 \*****************************************************************/
3282 /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3283
3284 "use strict";
3285 __webpack_require__.r(__webpack_exports__);
3286 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3287 /* harmony export */ __addDisposableResource: () => (/* binding */ __addDisposableResource),
3288 /* harmony export */ __assign: () => (/* binding */ __assign),
3289 /* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
3290 /* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
3291 /* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
3292 /* harmony export */ __await: () => (/* binding */ __await),
3293 /* harmony export */ __awaiter: () => (/* binding */ __awaiter),
3294 /* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
3295 /* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
3296 /* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
3297 /* harmony export */ __createBinding: () => (/* binding */ __createBinding),
3298 /* harmony export */ __decorate: () => (/* binding */ __decorate),
3299 /* harmony export */ __disposeResources: () => (/* binding */ __disposeResources),
3300 /* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
3301 /* harmony export */ __exportStar: () => (/* binding */ __exportStar),
3302 /* harmony export */ __extends: () => (/* binding */ __extends),
3303 /* harmony export */ __generator: () => (/* binding */ __generator),
3304 /* harmony export */ __importDefault: () => (/* binding */ __importDefault),
3305 /* harmony export */ __importStar: () => (/* binding */ __importStar),
3306 /* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
3307 /* harmony export */ __metadata: () => (/* binding */ __metadata),
3308 /* harmony export */ __param: () => (/* binding */ __param),
3309 /* harmony export */ __propKey: () => (/* binding */ __propKey),
3310 /* harmony export */ __read: () => (/* binding */ __read),
3311 /* harmony export */ __rest: () => (/* binding */ __rest),
3312 /* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
3313 /* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
3314 /* harmony export */ __spread: () => (/* binding */ __spread),
3315 /* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
3316 /* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
3317 /* harmony export */ __values: () => (/* binding */ __values),
3318 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
3319 /* harmony export */ });
3320 /******************************************************************************
3321 Copyright (c) Microsoft Corporation.
3322
3323 Permission to use, copy, modify, and/or distribute this software for any
3324 purpose with or without fee is hereby granted.
3325
3326 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3327 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3328 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3329 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3330 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3331 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3332 PERFORMANCE OF THIS SOFTWARE.
3333 ***************************************************************************** */
3334 /* global Reflect, Promise, SuppressedError, Symbol */
3335
3336 var extendStatics = function(d, b) {
3337 extendStatics = Object.setPrototypeOf ||
3338 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3339 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3340 return extendStatics(d, b);
3341 };
3342
3343 function __extends(d, b) {
3344 if (typeof b !== "function" && b !== null)
3345 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3346 extendStatics(d, b);
3347 function __() { this.constructor = d; }
3348 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3349 }
3350
3351 var __assign = function() {
3352 __assign = Object.assign || function __assign(t) {
3353 for (var s, i = 1, n = arguments.length; i < n; i++) {
3354 s = arguments[i];
3355 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3356 }
3357 return t;
3358 }
3359 return __assign.apply(this, arguments);
3360 }
3361
3362 function __rest(s, e) {
3363 var t = {};
3364 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3365 t[p] = s[p];
3366 if (s != null && typeof Object.getOwnPropertySymbols === "function")
3367 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3368 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3369 t[p[i]] = s[p[i]];
3370 }
3371 return t;
3372 }
3373
3374 function __decorate(decorators, target, key, desc) {
3375 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3376 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3377 else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3378 return c > 3 && r && Object.defineProperty(target, key, r), r;
3379 }
3380
3381 function __param(paramIndex, decorator) {
3382 return function (target, key) { decorator(target, key, paramIndex); }
3383 }
3384
3385 function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
3386 function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
3387 var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
3388 var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
3389 var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
3390 var _, done = false;
3391 for (var i = decorators.length - 1; i >= 0; i--) {
3392 var context = {};
3393 for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
3394 for (var p in contextIn.access) context.access[p] = contextIn.access[p];
3395 context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
3396 var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
3397 if (kind === "accessor") {
3398 if (result === void 0) continue;
3399 if (result === null || typeof result !== "object") throw new TypeError("Object expected");
3400 if (_ = accept(result.get)) descriptor.get = _;
3401 if (_ = accept(result.set)) descriptor.set = _;
3402 if (_ = accept(result.init)) initializers.unshift(_);
3403 }
3404 else if (_ = accept(result)) {
3405 if (kind === "field") initializers.unshift(_);
3406 else descriptor[key] = _;
3407 }
3408 }
3409 if (target) Object.defineProperty(target, contextIn.name, descriptor);
3410 done = true;
3411 };
3412
3413 function __runInitializers(thisArg, initializers, value) {
3414 var useValue = arguments.length > 2;
3415 for (var i = 0; i < initializers.length; i++) {
3416 value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
3417 }
3418 return useValue ? value : void 0;
3419 };
3420
3421 function __propKey(x) {
3422 return typeof x === "symbol" ? x : "".concat(x);
3423 };
3424
3425 function __setFunctionName(f, name, prefix) {
3426 if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
3427 return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
3428 };
3429
3430 function __metadata(metadataKey, metadataValue) {
3431 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
3432 }
3433
3434 function __awaiter(thisArg, _arguments, P, generator) {
3435 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3436 return new (P || (P = Promise))(function (resolve, reject) {
3437 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3438 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3439 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3440 step((generator = generator.apply(thisArg, _arguments || [])).next());
3441 });
3442 }
3443
3444 function __generator(thisArg, body) {
3445 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3446 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3447 function verb(n) { return function (v) { return step([n, v]); }; }
3448 function step(op) {
3449 if (f) throw new TypeError("Generator is already executing.");
3450 while (g && (g = 0, op[0] && (_ = 0)), _) try {
3451 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;
3452 if (y = 0, t) op = [op[0] & 2, t.value];
3453 switch (op[0]) {
3454 case 0: case 1: t = op; break;
3455 case 4: _.label++; return { value: op[1], done: false };
3456 case 5: _.label++; y = op[1]; op = [0]; continue;
3457 case 7: op = _.ops.pop(); _.trys.pop(); continue;
3458 default:
3459 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3460 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3461 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3462 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3463 if (t[2]) _.ops.pop();
3464 _.trys.pop(); continue;
3465 }
3466 op = body.call(thisArg, _);
3467 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3468 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3469 }
3470 }
3471
3472 var __createBinding = Object.create ? (function(o, m, k, k2) {
3473 if (k2 === undefined) k2 = k;
3474 var desc = Object.getOwnPropertyDescriptor(m, k);
3475 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3476 desc = { enumerable: true, get: function() { return m[k]; } };
3477 }
3478 Object.defineProperty(o, k2, desc);
3479 }) : (function(o, m, k, k2) {
3480 if (k2 === undefined) k2 = k;
3481 o[k2] = m[k];
3482 });
3483
3484 function __exportStar(m, o) {
3485 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
3486 }
3487
3488 function __values(o) {
3489 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
3490 if (m) return m.call(o);
3491 if (o && typeof o.length === "number") return {
3492 next: function () {
3493 if (o && i >= o.length) o = void 0;
3494 return { value: o && o[i++], done: !o };
3495 }
3496 };
3497 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
3498 }
3499
3500 function __read(o, n) {
3501 var m = typeof Symbol === "function" && o[Symbol.iterator];
3502 if (!m) return o;
3503 var i = m.call(o), r, ar = [], e;
3504 try {
3505 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
3506 }
3507 catch (error) { e = { error: error }; }
3508 finally {
3509 try {
3510 if (r && !r.done && (m = i["return"])) m.call(i);
3511 }
3512 finally { if (e) throw e.error; }
3513 }
3514 return ar;
3515 }
3516
3517 /** @deprecated */
3518 function __spread() {
3519 for (var ar = [], i = 0; i < arguments.length; i++)
3520 ar = ar.concat(__read(arguments[i]));
3521 return ar;
3522 }
3523
3524 /** @deprecated */
3525 function __spreadArrays() {
3526 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
3527 for (var r = Array(s), k = 0, i = 0; i < il; i++)
3528 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
3529 r[k] = a[j];
3530 return r;
3531 }
3532
3533 function __spreadArray(to, from, pack) {
3534 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3535 if (ar || !(i in from)) {
3536 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
3537 ar[i] = from[i];
3538 }
3539 }
3540 return to.concat(ar || Array.prototype.slice.call(from));
3541 }
3542
3543 function __await(v) {
3544 return this instanceof __await ? (this.v = v, this) : new __await(v);
3545 }
3546
3547 function __asyncGenerator(thisArg, _arguments, generator) {
3548 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3549 var g = generator.apply(thisArg, _arguments || []), i, q = [];
3550 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
3551 function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
3552 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
3553 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
3554 function fulfill(value) { resume("next", value); }
3555 function reject(value) { resume("throw", value); }
3556 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
3557 }
3558
3559 function __asyncDelegator(o) {
3560 var i, p;
3561 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
3562 function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
3563 }
3564
3565 function __asyncValues(o) {
3566 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3567 var m = o[Symbol.asyncIterator], i;
3568 return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
3569 function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
3570 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
3571 }
3572
3573 function __makeTemplateObject(cooked, raw) {
3574 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3575 return cooked;
3576 };
3577
3578 var __setModuleDefault = Object.create ? (function(o, v) {
3579 Object.defineProperty(o, "default", { enumerable: true, value: v });
3580 }) : function(o, v) {
3581 o["default"] = v;
3582 };
3583
3584 function __importStar(mod) {
3585 if (mod && mod.__esModule) return mod;
3586 var result = {};
3587 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
3588 __setModuleDefault(result, mod);
3589 return result;
3590 }
3591
3592 function __importDefault(mod) {
3593 return (mod && mod.__esModule) ? mod : { default: mod };
3594 }
3595
3596 function __classPrivateFieldGet(receiver, state, kind, f) {
3597 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3598 if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
3599 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3600 }
3601
3602 function __classPrivateFieldSet(receiver, state, value, kind, f) {
3603 if (kind === "m") throw new TypeError("Private method is not writable");
3604 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
3605 if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
3606 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
3607 }
3608
3609 function __classPrivateFieldIn(state, receiver) {
3610 if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
3611 return typeof state === "function" ? receiver === state : state.has(receiver);
3612 }
3613
3614 function __addDisposableResource(env, value, async) {
3615 if (value !== null && value !== void 0) {
3616 if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
3617 var dispose;
3618 if (async) {
3619 if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
3620 dispose = value[Symbol.asyncDispose];
3621 }
3622 if (dispose === void 0) {
3623 if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
3624 dispose = value[Symbol.dispose];
3625 }
3626 if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
3627 env.stack.push({ value: value, dispose: dispose, async: async });
3628 }
3629 else if (async) {
3630 env.stack.push({ async: true });
3631 }
3632 return value;
3633 }
3634
3635 var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
3636 var e = new Error(message);
3637 return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
3638 };
3639
3640 function __disposeResources(env) {
3641 function fail(e) {
3642 env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
3643 env.hasError = true;
3644 }
3645 function next() {
3646 while (env.stack.length) {
3647 var rec = env.stack.pop();
3648 try {
3649 var result = rec.dispose && rec.dispose.call(rec.value);
3650 if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
3651 }
3652 catch (e) {
3653 fail(e);
3654 }
3655 }
3656 if (env.hasError) throw env.error;
3657 }
3658 return next();
3659 }
3660
3661 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
3662 __extends,
3663 __assign,
3664 __rest,
3665 __decorate,
3666 __param,
3667 __metadata,
3668 __awaiter,
3669 __generator,
3670 __createBinding,
3671 __exportStar,
3672 __values,
3673 __read,
3674 __spread,
3675 __spreadArrays,
3676 __spreadArray,
3677 __await,
3678 __asyncGenerator,
3679 __asyncDelegator,
3680 __asyncValues,
3681 __makeTemplateObject,
3682 __importStar,
3683 __importDefault,
3684 __classPrivateFieldGet,
3685 __classPrivateFieldSet,
3686 __classPrivateFieldIn,
3687 __addDisposableResource,
3688 __disposeResources,
3689 });
3690
3691
3692 /***/ }),
3693
3694 /***/ "../node_modules/param-case/node_modules/tslib/tslib.es6.mjs":
3695 /*!*******************************************************************!*\
3696 !*** ../node_modules/param-case/node_modules/tslib/tslib.es6.mjs ***!
3697 \*******************************************************************/
3698 /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
3699
3700 "use strict";
3701 __webpack_require__.r(__webpack_exports__);
3702 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3703 /* harmony export */ __addDisposableResource: () => (/* binding */ __addDisposableResource),
3704 /* harmony export */ __assign: () => (/* binding */ __assign),
3705 /* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
3706 /* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
3707 /* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
3708 /* harmony export */ __await: () => (/* binding */ __await),
3709 /* harmony export */ __awaiter: () => (/* binding */ __awaiter),
3710 /* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
3711 /* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
3712 /* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
3713 /* harmony export */ __createBinding: () => (/* binding */ __createBinding),
3714 /* harmony export */ __decorate: () => (/* binding */ __decorate),
3715 /* harmony export */ __disposeResources: () => (/* binding */ __disposeResources),
3716 /* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
3717 /* harmony export */ __exportStar: () => (/* binding */ __exportStar),
3718 /* harmony export */ __extends: () => (/* binding */ __extends),
3719 /* harmony export */ __generator: () => (/* binding */ __generator),
3720 /* harmony export */ __importDefault: () => (/* binding */ __importDefault),
3721 /* harmony export */ __importStar: () => (/* binding */ __importStar),
3722 /* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
3723 /* harmony export */ __metadata: () => (/* binding */ __metadata),
3724 /* harmony export */ __param: () => (/* binding */ __param),
3725 /* harmony export */ __propKey: () => (/* binding */ __propKey),
3726 /* harmony export */ __read: () => (/* binding */ __read),
3727 /* harmony export */ __rest: () => (/* binding */ __rest),
3728 /* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
3729 /* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
3730 /* harmony export */ __spread: () => (/* binding */ __spread),
3731 /* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
3732 /* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
3733 /* harmony export */ __values: () => (/* binding */ __values),
3734 /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
3735 /* harmony export */ });
3736 /******************************************************************************
3737 Copyright (c) Microsoft Corporation.
3738
3739 Permission to use, copy, modify, and/or distribute this software for any
3740 purpose with or without fee is hereby granted.
3741
3742 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3743 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3744 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3745 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3746 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3747 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3748 PERFORMANCE OF THIS SOFTWARE.
3749 ***************************************************************************** */
3750 /* global Reflect, Promise, SuppressedError, Symbol */
3751
3752 var extendStatics = function(d, b) {
3753 extendStatics = Object.setPrototypeOf ||
3754 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3755 function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3756 return extendStatics(d, b);
3757 };
3758
3759 function __extends(d, b) {
3760 if (typeof b !== "function" && b !== null)
3761 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3762 extendStatics(d, b);
3763 function __() { this.constructor = d; }
3764 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3765 }
3766
3767 var __assign = function() {
3768 __assign = Object.assign || function __assign(t) {
3769 for (var s, i = 1, n = arguments.length; i < n; i++) {
3770 s = arguments[i];
3771 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
3772 }
3773 return t;
3774 }
3775 return __assign.apply(this, arguments);
3776 }
3777
3778 function __rest(s, e) {
3779 var t = {};
3780 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3781 t[p] = s[p];
3782 if (s != null && typeof Object.getOwnPropertySymbols === "function")
3783 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3784 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3785 t[p[i]] = s[p[i]];
3786 }
3787 return t;
3788 }
3789
3790 function __decorate(decorators, target, key, desc) {
3791 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3792 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3793 else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3794 return c > 3 && r && Object.defineProperty(target, key, r), r;
3795 }
3796
3797 function __param(paramIndex, decorator) {
3798 return function (target, key) { decorator(target, key, paramIndex); }
3799 }
3800
3801 function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
3802 function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
3803 var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
3804 var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
3805 var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
3806 var _, done = false;
3807 for (var i = decorators.length - 1; i >= 0; i--) {
3808 var context = {};
3809 for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
3810 for (var p in contextIn.access) context.access[p] = contextIn.access[p];
3811 context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
3812 var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
3813 if (kind === "accessor") {
3814 if (result === void 0) continue;
3815 if (result === null || typeof result !== "object") throw new TypeError("Object expected");
3816 if (_ = accept(result.get)) descriptor.get = _;
3817 if (_ = accept(result.set)) descriptor.set = _;
3818 if (_ = accept(result.init)) initializers.unshift(_);
3819 }
3820 else if (_ = accept(result)) {
3821 if (kind === "field") initializers.unshift(_);
3822 else descriptor[key] = _;
3823 }
3824 }
3825 if (target) Object.defineProperty(target, contextIn.name, descriptor);
3826 done = true;
3827 };
3828
3829 function __runInitializers(thisArg, initializers, value) {
3830 var useValue = arguments.length > 2;
3831 for (var i = 0; i < initializers.length; i++) {
3832 value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
3833 }
3834 return useValue ? value : void 0;
3835 };
3836
3837 function __propKey(x) {
3838 return typeof x === "symbol" ? x : "".concat(x);
3839 };
3840
3841 function __setFunctionName(f, name, prefix) {
3842 if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
3843 return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
3844 };
3845
3846 function __metadata(metadataKey, metadataValue) {
3847 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
3848 }
3849
3850 function __awaiter(thisArg, _arguments, P, generator) {
3851 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3852 return new (P || (P = Promise))(function (resolve, reject) {
3853 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3854 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3855 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3856 step((generator = generator.apply(thisArg, _arguments || [])).next());
3857 });
3858 }
3859
3860 function __generator(thisArg, body) {
3861 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3862 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3863 function verb(n) { return function (v) { return step([n, v]); }; }
3864 function step(op) {
3865 if (f) throw new TypeError("Generator is already executing.");
3866 while (g && (g = 0, op[0] && (_ = 0)), _) try {
3867 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;
3868 if (y = 0, t) op = [op[0] & 2, t.value];
3869 switch (op[0]) {
3870 case 0: case 1: t = op; break;
3871 case 4: _.label++; return { value: op[1], done: false };
3872 case 5: _.label++; y = op[1]; op = [0]; continue;
3873 case 7: op = _.ops.pop(); _.trys.pop(); continue;
3874 default:
3875 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
3876 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
3877 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
3878 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
3879 if (t[2]) _.ops.pop();
3880 _.trys.pop(); continue;
3881 }
3882 op = body.call(thisArg, _);
3883 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
3884 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
3885 }
3886 }
3887
3888 var __createBinding = Object.create ? (function(o, m, k, k2) {
3889 if (k2 === undefined) k2 = k;
3890 var desc = Object.getOwnPropertyDescriptor(m, k);
3891 if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3892 desc = { enumerable: true, get: function() { return m[k]; } };
3893 }
3894 Object.defineProperty(o, k2, desc);
3895 }) : (function(o, m, k, k2) {
3896 if (k2 === undefined) k2 = k;
3897 o[k2] = m[k];
3898 });
3899
3900 function __exportStar(m, o) {
3901 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
3902 }
3903
3904 function __values(o) {
3905 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
3906 if (m) return m.call(o);
3907 if (o && typeof o.length === "number") return {
3908 next: function () {
3909 if (o && i >= o.length) o = void 0;
3910 return { value: o && o[i++], done: !o };
3911 }
3912 };
3913 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
3914 }
3915
3916 function __read(o, n) {
3917 var m = typeof Symbol === "function" && o[Symbol.iterator];
3918 if (!m) return o;
3919 var i = m.call(o), r, ar = [], e;
3920 try {
3921 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
3922 }
3923 catch (error) { e = { error: error }; }
3924 finally {
3925 try {
3926 if (r && !r.done && (m = i["return"])) m.call(i);
3927 }
3928 finally { if (e) throw e.error; }
3929 }
3930 return ar;
3931 }
3932
3933 /** @deprecated */
3934 function __spread() {
3935 for (var ar = [], i = 0; i < arguments.length; i++)
3936 ar = ar.concat(__read(arguments[i]));
3937 return ar;
3938 }
3939
3940 /** @deprecated */
3941 function __spreadArrays() {
3942 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
3943 for (var r = Array(s), k = 0, i = 0; i < il; i++)
3944 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
3945 r[k] = a[j];
3946 return r;
3947 }
3948
3949 function __spreadArray(to, from, pack) {
3950 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3951 if (ar || !(i in from)) {
3952 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
3953 ar[i] = from[i];
3954 }
3955 }
3956 return to.concat(ar || Array.prototype.slice.call(from));
3957 }
3958
3959 function __await(v) {
3960 return this instanceof __await ? (this.v = v, this) : new __await(v);
3961 }
3962
3963 function __asyncGenerator(thisArg, _arguments, generator) {
3964 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3965 var g = generator.apply(thisArg, _arguments || []), i, q = [];
3966 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
3967 function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
3968 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
3969 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
3970 function fulfill(value) { resume("next", value); }
3971 function reject(value) { resume("throw", value); }
3972 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
3973 }
3974
3975 function __asyncDelegator(o) {
3976 var i, p;
3977 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
3978 function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
3979 }
3980
3981 function __asyncValues(o) {
3982 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
3983 var m = o[Symbol.asyncIterator], i;
3984 return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
3985 function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
3986 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
3987 }
3988
3989 function __makeTemplateObject(cooked, raw) {
3990 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3991 return cooked;
3992 };
3993
3994 var __setModuleDefault = Object.create ? (function(o, v) {
3995 Object.defineProperty(o, "default", { enumerable: true, value: v });
3996 }) : function(o, v) {
3997 o["default"] = v;
3998 };
3999
4000 function __importStar(mod) {
4001 if (mod && mod.__esModule) return mod;
4002 var result = {};
4003 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
4004 __setModuleDefault(result, mod);
4005 return result;
4006 }
4007
4008 function __importDefault(mod) {
4009 return (mod && mod.__esModule) ? mod : { default: mod };
4010 }
4011
4012 function __classPrivateFieldGet(receiver, state, kind, f) {
4013 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4014 if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4015 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
4016 }
4017
4018 function __classPrivateFieldSet(receiver, state, value, kind, f) {
4019 if (kind === "m") throw new TypeError("Private method is not writable");
4020 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
4021 if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
4022 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
4023 }
4024
4025 function __classPrivateFieldIn(state, receiver) {
4026 if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
4027 return typeof state === "function" ? receiver === state : state.has(receiver);
4028 }
4029
4030 function __addDisposableResource(env, value, async) {
4031 if (value !== null && value !== void 0) {
4032 if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
4033 var dispose;
4034 if (async) {
4035 if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
4036 dispose = value[Symbol.asyncDispose];
4037 }
4038 if (dispose === void 0) {
4039 if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
4040 dispose = value[Symbol.dispose];
4041 }
4042 if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
4043 env.stack.push({ value: value, dispose: dispose, async: async });
4044 }
4045 else if (async) {
4046 env.stack.push({ async: true });
4047 }
4048 return value;
4049 }
4050
4051 var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
4052 var e = new Error(message);
4053 return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
4054 };
4055
4056 function __disposeResources(env) {
4057 function fail(e) {
4058 env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
4059 env.hasError = true;
4060 }
4061 function next() {
4062 while (env.stack.length) {
4063 var rec = env.stack.pop();
4064 try {
4065 var result = rec.dispose && rec.dispose.call(rec.value);
4066 if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
4067 }
4068 catch (e) {
4069 fail(e);
4070 }
4071 }
4072 if (env.hasError) throw env.error;
4073 }
4074 return next();
4075 }
4076
4077 /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
4078 __extends,
4079 __assign,
4080 __rest,
4081 __decorate,
4082 __param,
4083 __metadata,
4084 __awaiter,
4085 __generator,
4086 __createBinding,
4087 __exportStar,
4088 __values,
4089 __read,
4090 __spread,
4091 __spreadArrays,
4092 __spreadArray,
4093 __await,
4094 __asyncGenerator,
4095 __asyncDelegator,
4096 __asyncValues,
4097 __makeTemplateObject,
4098 __importStar,
4099 __importDefault,
4100 __classPrivateFieldGet,
4101 __classPrivateFieldSet,
4102 __classPrivateFieldIn,
4103 __addDisposableResource,
4104 __disposeResources,
4105 });
4106
4107
4108 /***/ })
4109
4110 /******/ });
4111 /************************************************************************/
4112 /******/ // The module cache
4113 /******/ var __webpack_module_cache__ = {};
4114 /******/
4115 /******/ // The require function
4116 /******/ function __webpack_require__(moduleId) {
4117 /******/ // Check if module is in cache
4118 /******/ var cachedModule = __webpack_module_cache__[moduleId];
4119 /******/ if (cachedModule !== undefined) {
4120 /******/ return cachedModule.exports;
4121 /******/ }
4122 /******/ // Create a new module (and put it into the cache)
4123 /******/ var module = __webpack_module_cache__[moduleId] = {
4124 /******/ // no module.id needed
4125 /******/ // no module.loaded needed
4126 /******/ exports: {}
4127 /******/ };
4128 /******/
4129 /******/ // Execute the module function
4130 /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
4131 /******/
4132 /******/ // Return the exports of the module
4133 /******/ return module.exports;
4134 /******/ }
4135 /******/
4136 /************************************************************************/
4137 /******/ /* webpack/runtime/compat get default export */
4138 /******/ (() => {
4139 /******/ // getDefaultExport function for compatibility with non-harmony modules
4140 /******/ __webpack_require__.n = (module) => {
4141 /******/ var getter = module && module.__esModule ?
4142 /******/ () => (module['default']) :
4143 /******/ () => (module);
4144 /******/ __webpack_require__.d(getter, { a: getter });
4145 /******/ return getter;
4146 /******/ };
4147 /******/ })();
4148 /******/
4149 /******/ /* webpack/runtime/define property getters */
4150 /******/ (() => {
4151 /******/ // define getter functions for harmony exports
4152 /******/ __webpack_require__.d = (exports, definition) => {
4153 /******/ for(var key in definition) {
4154 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
4155 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
4156 /******/ }
4157 /******/ }
4158 /******/ };
4159 /******/ })();
4160 /******/
4161 /******/ /* webpack/runtime/hasOwnProperty shorthand */
4162 /******/ (() => {
4163 /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
4164 /******/ })();
4165 /******/
4166 /******/ /* webpack/runtime/make namespace object */
4167 /******/ (() => {
4168 /******/ // define __esModule on exports
4169 /******/ __webpack_require__.r = (exports) => {
4170 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
4171 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4172 /******/ }
4173 /******/ Object.defineProperty(exports, '__esModule', { value: true });
4174 /******/ };
4175 /******/ })();
4176 /******/
4177 /************************************************************************/
4178 var __webpack_exports__ = {};
4179 // This entry need to be wrapped in an IIFE because it need to be in strict mode.
4180 (() => {
4181 "use strict";
4182 /*!*****************************************************!*\
4183 !*** ../modules/element-manager/assets/js/admin.js ***!
4184 \*****************************************************/
4185
4186
4187 var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
4188 var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
4189 var _element = __webpack_require__(/*! @wordpress/element */ "../node_modules/@wordpress/element/build-module/index.js");
4190 var _domReady = _interopRequireDefault(__webpack_require__(/*! @wordpress/dom-ready */ "@wordpress/dom-ready"));
4191 var _app = __webpack_require__(/*! ./app */ "../modules/element-manager/assets/js/app.js");
4192 (0, _domReady.default)(function () {
4193 var htmlOutput = document.getElementById('elementor-element-manager-wrap');
4194 if (htmlOutput) {
4195 (0, _element.render)( /*#__PURE__*/_react.default.createElement(_app.App, null), htmlOutput);
4196 }
4197 });
4198 })();
4199
4200 /******/ })()
4201 ;
4202 //# sourceMappingURL=element-manager-admin.js.map