@dotcms/react 0.0.1-alpha.2 → 0.0.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { useRef, useEffect, createContext, useContext, forwardRef } from 'react';
1
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
+ import { useRef, useState, useEffect, createContext, useContext, createElement as createElement$1, forwardRef } from 'react';
3
3
  import { postMessageToEditor, CUSTOMER_ACTIONS } from '@dotcms/client';
4
4
 
5
5
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -9,7 +9,7 @@ var check = function (it) {
9
9
  };
10
10
 
11
11
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
- var global$f =
12
+ var global$g =
13
13
  // eslint-disable-next-line es/no-global-this -- safe
14
14
  check(typeof globalThis == 'object' && globalThis) ||
15
15
  check(typeof window == 'object' && window) ||
@@ -22,7 +22,7 @@ var global$f =
22
22
 
23
23
  var objectGetOwnPropertyDescriptor = {};
24
24
 
25
- var fails$g = function (exec) {
25
+ var fails$i = function (exec) {
26
26
  try {
27
27
  return !!exec();
28
28
  } catch (error) {
@@ -30,17 +30,17 @@ var fails$g = function (exec) {
30
30
  }
31
31
  };
32
32
 
33
- var fails$f = fails$g;
33
+ var fails$h = fails$i;
34
34
 
35
35
  // Detect IE8's incomplete defineProperty implementation
36
- var descriptors = !fails$f(function () {
36
+ var descriptors = !fails$h(function () {
37
37
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
38
38
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
39
39
  });
40
40
 
41
- var fails$e = fails$g;
41
+ var fails$g = fails$i;
42
42
 
43
- var functionBindNative = !fails$e(function () {
43
+ var functionBindNative = !fails$g(function () {
44
44
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
45
45
  var test = (function () { /* empty */ }).bind();
46
46
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -49,10 +49,10 @@ var functionBindNative = !fails$e(function () {
49
49
 
50
50
  var NATIVE_BIND$2 = functionBindNative;
51
51
 
52
- var call$9 = Function.prototype.call;
52
+ var call$a = Function.prototype.call;
53
53
 
54
- var functionCall = NATIVE_BIND$2 ? call$9.bind(call$9) : function () {
55
- return call$9.apply(call$9, arguments);
54
+ var functionCall = NATIVE_BIND$2 ? call$a.bind(call$a) : function () {
55
+ return call$a.apply(call$a, arguments);
56
56
  };
57
57
 
58
58
  var objectPropertyIsEnumerable = {};
@@ -71,7 +71,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
71
71
  return !!descriptor && descriptor.enumerable;
72
72
  } : $propertyIsEnumerable;
73
73
 
74
- var createPropertyDescriptor$2 = function (bitmap, value) {
74
+ var createPropertyDescriptor$3 = function (bitmap, value) {
75
75
  return {
76
76
  enumerable: !(bitmap & 1),
77
77
  configurable: !(bitmap & 2),
@@ -83,39 +83,39 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
83
83
  var NATIVE_BIND$1 = functionBindNative;
84
84
 
85
85
  var FunctionPrototype$2 = Function.prototype;
86
- var call$8 = FunctionPrototype$2.call;
87
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$8, call$8);
86
+ var call$9 = FunctionPrototype$2.call;
87
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$9, call$9);
88
88
 
89
89
  var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
90
90
  return function () {
91
- return call$8.apply(fn, arguments);
91
+ return call$9.apply(fn, arguments);
92
92
  };
93
93
  };
94
94
 
95
- var uncurryThis$g = functionUncurryThis;
95
+ var uncurryThis$h = functionUncurryThis;
96
96
 
97
- var toString$6 = uncurryThis$g({}.toString);
98
- var stringSlice$5 = uncurryThis$g(''.slice);
97
+ var toString$6 = uncurryThis$h({}.toString);
98
+ var stringSlice$5 = uncurryThis$h(''.slice);
99
99
 
100
100
  var classofRaw$2 = function (it) {
101
101
  return stringSlice$5(toString$6(it), 8, -1);
102
102
  };
103
103
 
104
- var uncurryThis$f = functionUncurryThis;
105
- var fails$d = fails$g;
104
+ var uncurryThis$g = functionUncurryThis;
105
+ var fails$f = fails$i;
106
106
  var classof$5 = classofRaw$2;
107
107
 
108
- var $Object$3 = Object;
109
- var split = uncurryThis$f(''.split);
108
+ var $Object$4 = Object;
109
+ var split = uncurryThis$g(''.split);
110
110
 
111
111
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$d(function () {
112
+ var indexedObject = fails$f(function () {
113
113
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
114
  // eslint-disable-next-line no-prototype-builtins -- safe
115
- return !$Object$3('z').propertyIsEnumerable(0);
115
+ return !$Object$4('z').propertyIsEnumerable(0);
116
116
  }) ? function (it) {
117
- return classof$5(it) === 'String' ? split(it, '') : $Object$3(it);
118
- } : $Object$3;
117
+ return classof$5(it) === 'String' ? split(it, '') : $Object$4(it);
118
+ } : $Object$4;
119
119
 
120
120
  // we can't use just `it == null` since of `document.all` special case
121
121
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
@@ -125,12 +125,12 @@ var isNullOrUndefined$3 = function (it) {
125
125
 
126
126
  var isNullOrUndefined$2 = isNullOrUndefined$3;
127
127
 
128
- var $TypeError$8 = TypeError;
128
+ var $TypeError$9 = TypeError;
129
129
 
130
130
  // `RequireObjectCoercible` abstract operation
131
131
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
132
132
  var requireObjectCoercible$5 = function (it) {
133
- if (isNullOrUndefined$2(it)) throw new $TypeError$8("Can't call method on " + it);
133
+ if (isNullOrUndefined$2(it)) throw new $TypeError$9("Can't call method on " + it);
134
134
  return it;
135
135
  };
136
136
 
@@ -138,7 +138,7 @@ var requireObjectCoercible$5 = function (it) {
138
138
  var IndexedObject$2 = indexedObject;
139
139
  var requireObjectCoercible$4 = requireObjectCoercible$5;
140
140
 
141
- var toIndexedObject$4 = function (it) {
141
+ var toIndexedObject$5 = function (it) {
142
142
  return IndexedObject$2(requireObjectCoercible$4(it));
143
143
  };
144
144
 
@@ -148,40 +148,40 @@ var documentAll = typeof document == 'object' && document.all;
148
148
  // `IsCallable` abstract operation
149
149
  // https://tc39.es/ecma262/#sec-iscallable
150
150
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
151
- var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
151
+ var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
152
152
  return typeof argument == 'function' || argument === documentAll;
153
153
  } : function (argument) {
154
154
  return typeof argument == 'function';
155
155
  };
156
156
 
157
- var isCallable$c = isCallable$d;
157
+ var isCallable$f = isCallable$g;
158
158
 
159
- var isObject$6 = function (it) {
160
- return typeof it == 'object' ? it !== null : isCallable$c(it);
159
+ var isObject$8 = function (it) {
160
+ return typeof it == 'object' ? it !== null : isCallable$f(it);
161
161
  };
162
162
 
163
- var global$e = global$f;
164
- var isCallable$b = isCallable$d;
163
+ var global$f = global$g;
164
+ var isCallable$e = isCallable$g;
165
165
 
166
166
  var aFunction = function (argument) {
167
- return isCallable$b(argument) ? argument : undefined;
167
+ return isCallable$e(argument) ? argument : undefined;
168
168
  };
169
169
 
170
170
  var getBuiltIn$3 = function (namespace, method) {
171
- return arguments.length < 2 ? aFunction(global$e[namespace]) : global$e[namespace] && global$e[namespace][method];
171
+ return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
172
172
  };
173
173
 
174
- var uncurryThis$e = functionUncurryThis;
174
+ var uncurryThis$f = functionUncurryThis;
175
175
 
176
- var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
176
+ var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
177
177
 
178
178
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
179
179
 
180
- var global$d = global$f;
180
+ var global$e = global$g;
181
181
  var userAgent = engineUserAgent;
182
182
 
183
- var process = global$d.process;
184
- var Deno = global$d.Deno;
183
+ var process = global$e.process;
184
+ var Deno = global$e.Deno;
185
185
  var versions = process && process.versions || Deno && Deno.version;
186
186
  var v8 = versions && versions.v8;
187
187
  var match, version;
@@ -207,19 +207,19 @@ var engineV8Version = version;
207
207
 
208
208
  /* eslint-disable es/no-symbol -- required for testing */
209
209
  var V8_VERSION = engineV8Version;
210
- var fails$c = fails$g;
211
- var global$c = global$f;
210
+ var fails$e = fails$i;
211
+ var global$d = global$g;
212
212
 
213
- var $String$4 = global$c.String;
213
+ var $String$5 = global$d.String;
214
214
 
215
215
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
216
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
216
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
217
217
  var symbol = Symbol('symbol detection');
218
218
  // Chrome 38 Symbol has incorrect toString conversion
219
219
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
220
220
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
221
221
  // of course, fail.
222
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
222
+ return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
223
223
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
224
224
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
225
225
  });
@@ -232,86 +232,86 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
232
232
  && typeof Symbol.iterator == 'symbol';
233
233
 
234
234
  var getBuiltIn$2 = getBuiltIn$3;
235
- var isCallable$a = isCallable$d;
235
+ var isCallable$d = isCallable$g;
236
236
  var isPrototypeOf = objectIsPrototypeOf;
237
237
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
238
238
 
239
- var $Object$2 = Object;
239
+ var $Object$3 = Object;
240
240
 
241
241
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
242
242
  return typeof it == 'symbol';
243
243
  } : function (it) {
244
244
  var $Symbol = getBuiltIn$2('Symbol');
245
- return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
245
+ return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
246
246
  };
247
247
 
248
- var $String$3 = String;
248
+ var $String$4 = String;
249
249
 
250
250
  var tryToString$1 = function (argument) {
251
251
  try {
252
- return $String$3(argument);
252
+ return $String$4(argument);
253
253
  } catch (error) {
254
254
  return 'Object';
255
255
  }
256
256
  };
257
257
 
258
- var isCallable$9 = isCallable$d;
258
+ var isCallable$c = isCallable$g;
259
259
  var tryToString = tryToString$1;
260
260
 
261
- var $TypeError$7 = TypeError;
261
+ var $TypeError$8 = TypeError;
262
262
 
263
263
  // `Assert: IsCallable(argument) is true`
264
- var aCallable$2 = function (argument) {
265
- if (isCallable$9(argument)) return argument;
266
- throw new $TypeError$7(tryToString(argument) + ' is not a function');
264
+ var aCallable$3 = function (argument) {
265
+ if (isCallable$c(argument)) return argument;
266
+ throw new $TypeError$8(tryToString(argument) + ' is not a function');
267
267
  };
268
268
 
269
- var aCallable$1 = aCallable$2;
269
+ var aCallable$2 = aCallable$3;
270
270
  var isNullOrUndefined$1 = isNullOrUndefined$3;
271
271
 
272
272
  // `GetMethod` abstract operation
273
273
  // https://tc39.es/ecma262/#sec-getmethod
274
274
  var getMethod$2 = function (V, P) {
275
275
  var func = V[P];
276
- return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
276
+ return isNullOrUndefined$1(func) ? undefined : aCallable$2(func);
277
277
  };
278
278
 
279
- var call$7 = functionCall;
280
- var isCallable$8 = isCallable$d;
281
- var isObject$5 = isObject$6;
279
+ var call$8 = functionCall;
280
+ var isCallable$b = isCallable$g;
281
+ var isObject$7 = isObject$8;
282
282
 
283
- var $TypeError$6 = TypeError;
283
+ var $TypeError$7 = TypeError;
284
284
 
285
285
  // `OrdinaryToPrimitive` abstract operation
286
286
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
287
287
  var ordinaryToPrimitive$1 = function (input, pref) {
288
288
  var fn, val;
289
- if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$7(fn, input))) return val;
290
- if (isCallable$8(fn = input.valueOf) && !isObject$5(val = call$7(fn, input))) return val;
291
- if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$7(fn, input))) return val;
292
- throw new $TypeError$6("Can't convert object to primitive value");
289
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$8(fn, input))) return val;
290
+ if (isCallable$b(fn = input.valueOf) && !isObject$7(val = call$8(fn, input))) return val;
291
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$7(val = call$8(fn, input))) return val;
292
+ throw new $TypeError$7("Can't convert object to primitive value");
293
293
  };
294
294
 
295
295
  var shared$4 = {exports: {}};
296
296
 
297
- var global$b = global$f;
297
+ var global$c = global$g;
298
298
 
299
299
  // eslint-disable-next-line es/no-object-defineproperty -- safe
300
- var defineProperty$3 = Object.defineProperty;
300
+ var defineProperty$5 = Object.defineProperty;
301
301
 
302
302
  var defineGlobalProperty$3 = function (key, value) {
303
303
  try {
304
- defineProperty$3(global$b, key, { value: value, configurable: true, writable: true });
304
+ defineProperty$5(global$c, key, { value: value, configurable: true, writable: true });
305
305
  } catch (error) {
306
- global$b[key] = value;
306
+ global$c[key] = value;
307
307
  } return value;
308
308
  };
309
309
 
310
- var global$a = global$f;
310
+ var global$b = global$g;
311
311
  var defineGlobalProperty$2 = defineGlobalProperty$3;
312
312
 
313
313
  var SHARED = '__core-js_shared__';
314
- var store$3 = global$a[SHARED] || defineGlobalProperty$2(SHARED, {});
314
+ var store$3 = global$b[SHARED] || defineGlobalProperty$2(SHARED, {});
315
315
 
316
316
  var sharedStore = store$3;
317
317
 
@@ -329,76 +329,76 @@ var store$2 = sharedStore;
329
329
 
330
330
  var requireObjectCoercible$3 = requireObjectCoercible$5;
331
331
 
332
- var $Object$1 = Object;
332
+ var $Object$2 = Object;
333
333
 
334
334
  // `ToObject` abstract operation
335
335
  // https://tc39.es/ecma262/#sec-toobject
336
- var toObject$4 = function (argument) {
337
- return $Object$1(requireObjectCoercible$3(argument));
336
+ var toObject$5 = function (argument) {
337
+ return $Object$2(requireObjectCoercible$3(argument));
338
338
  };
339
339
 
340
- var uncurryThis$d = functionUncurryThis;
341
- var toObject$3 = toObject$4;
340
+ var uncurryThis$e = functionUncurryThis;
341
+ var toObject$4 = toObject$5;
342
342
 
343
- var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
343
+ var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
344
344
 
345
345
  // `HasOwnProperty` abstract operation
346
346
  // https://tc39.es/ecma262/#sec-hasownproperty
347
347
  // eslint-disable-next-line es/no-object-hasown -- safe
348
348
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
349
- return hasOwnProperty(toObject$3(it), key);
349
+ return hasOwnProperty(toObject$4(it), key);
350
350
  };
351
351
 
352
- var uncurryThis$c = functionUncurryThis;
352
+ var uncurryThis$d = functionUncurryThis;
353
353
 
354
354
  var id = 0;
355
355
  var postfix = Math.random();
356
- var toString$5 = uncurryThis$c(1.0.toString);
356
+ var toString$5 = uncurryThis$d(1.0.toString);
357
357
 
358
358
  var uid$2 = function (key) {
359
359
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
360
360
  };
361
361
 
362
- var global$9 = global$f;
362
+ var global$a = global$g;
363
363
  var shared$3 = shared$4.exports;
364
- var hasOwn$6 = hasOwnProperty_1;
364
+ var hasOwn$8 = hasOwnProperty_1;
365
365
  var uid$1 = uid$2;
366
366
  var NATIVE_SYMBOL = symbolConstructorDetection;
367
367
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
368
368
 
369
- var Symbol$1 = global$9.Symbol;
369
+ var Symbol$1 = global$a.Symbol;
370
370
  var WellKnownSymbolsStore = shared$3('wks');
371
371
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
372
372
 
373
- var wellKnownSymbol$8 = function (name) {
374
- if (!hasOwn$6(WellKnownSymbolsStore, name)) {
375
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
373
+ var wellKnownSymbol$c = function (name) {
374
+ if (!hasOwn$8(WellKnownSymbolsStore, name)) {
375
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
376
376
  ? Symbol$1[name]
377
377
  : createWellKnownSymbol('Symbol.' + name);
378
378
  } return WellKnownSymbolsStore[name];
379
379
  };
380
380
 
381
- var call$6 = functionCall;
382
- var isObject$4 = isObject$6;
381
+ var call$7 = functionCall;
382
+ var isObject$6 = isObject$8;
383
383
  var isSymbol$1 = isSymbol$2;
384
384
  var getMethod$1 = getMethod$2;
385
385
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
386
- var wellKnownSymbol$7 = wellKnownSymbol$8;
386
+ var wellKnownSymbol$b = wellKnownSymbol$c;
387
387
 
388
- var $TypeError$5 = TypeError;
389
- var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
388
+ var $TypeError$6 = TypeError;
389
+ var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
390
390
 
391
391
  // `ToPrimitive` abstract operation
392
392
  // https://tc39.es/ecma262/#sec-toprimitive
393
393
  var toPrimitive$1 = function (input, pref) {
394
- if (!isObject$4(input) || isSymbol$1(input)) return input;
394
+ if (!isObject$6(input) || isSymbol$1(input)) return input;
395
395
  var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
396
396
  var result;
397
397
  if (exoticToPrim) {
398
398
  if (pref === undefined) pref = 'default';
399
- result = call$6(exoticToPrim, input, pref);
400
- if (!isObject$4(result) || isSymbol$1(result)) return result;
401
- throw new $TypeError$5("Can't convert object to primitive value");
399
+ result = call$7(exoticToPrim, input, pref);
400
+ if (!isObject$6(result) || isSymbol$1(result)) return result;
401
+ throw new $TypeError$6("Can't convert object to primitive value");
402
402
  }
403
403
  if (pref === undefined) pref = 'number';
404
404
  return ordinaryToPrimitive(input, pref);
@@ -414,36 +414,36 @@ var toPropertyKey$2 = function (argument) {
414
414
  return isSymbol(key) ? key : key + '';
415
415
  };
416
416
 
417
- var global$8 = global$f;
418
- var isObject$3 = isObject$6;
417
+ var global$9 = global$g;
418
+ var isObject$5 = isObject$8;
419
419
 
420
- var document$1 = global$8.document;
420
+ var document$1 = global$9.document;
421
421
  // typeof document.createElement is 'object' in old IE
422
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
422
+ var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
423
423
 
424
- var documentCreateElement$1 = function (it) {
424
+ var documentCreateElement$2 = function (it) {
425
425
  return EXISTS$1 ? document$1.createElement(it) : {};
426
426
  };
427
427
 
428
- var DESCRIPTORS$8 = descriptors;
429
- var fails$b = fails$g;
430
- var createElement = documentCreateElement$1;
428
+ var DESCRIPTORS$9 = descriptors;
429
+ var fails$d = fails$i;
430
+ var createElement = documentCreateElement$2;
431
431
 
432
432
  // Thanks to IE8 for its funny defineProperty
433
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$b(function () {
433
+ var ie8DomDefine = !DESCRIPTORS$9 && !fails$d(function () {
434
434
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
435
435
  return Object.defineProperty(createElement('div'), 'a', {
436
436
  get: function () { return 7; }
437
437
  }).a !== 7;
438
438
  });
439
439
 
440
- var DESCRIPTORS$7 = descriptors;
441
- var call$5 = functionCall;
440
+ var DESCRIPTORS$8 = descriptors;
441
+ var call$6 = functionCall;
442
442
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
443
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
444
- var toIndexedObject$3 = toIndexedObject$4;
443
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
444
+ var toIndexedObject$4 = toIndexedObject$5;
445
445
  var toPropertyKey$1 = toPropertyKey$2;
446
- var hasOwn$5 = hasOwnProperty_1;
446
+ var hasOwn$7 = hasOwnProperty_1;
447
447
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
448
448
 
449
449
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -451,23 +451,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
451
451
 
452
452
  // `Object.getOwnPropertyDescriptor` method
453
453
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
454
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
455
- O = toIndexedObject$3(O);
454
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
455
+ O = toIndexedObject$4(O);
456
456
  P = toPropertyKey$1(P);
457
457
  if (IE8_DOM_DEFINE$1) try {
458
458
  return $getOwnPropertyDescriptor$1(O, P);
459
459
  } catch (error) { /* empty */ }
460
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
460
+ if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
461
461
  };
462
462
 
463
463
  var objectDefineProperty = {};
464
464
 
465
- var DESCRIPTORS$6 = descriptors;
466
- var fails$a = fails$g;
465
+ var DESCRIPTORS$7 = descriptors;
466
+ var fails$c = fails$i;
467
467
 
468
468
  // V8 ~ Chrome 36-
469
469
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
470
- var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$a(function () {
470
+ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$c(function () {
471
471
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
472
472
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
473
473
  value: 42,
@@ -475,24 +475,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$a(function () {
475
475
  }).prototype !== 42;
476
476
  });
477
477
 
478
- var isObject$2 = isObject$6;
478
+ var isObject$4 = isObject$8;
479
479
 
480
- var $String$2 = String;
481
- var $TypeError$4 = TypeError;
480
+ var $String$3 = String;
481
+ var $TypeError$5 = TypeError;
482
482
 
483
483
  // `Assert: Type(argument) is Object`
484
- var anObject$7 = function (argument) {
485
- if (isObject$2(argument)) return argument;
486
- throw new $TypeError$4($String$2(argument) + ' is not an object');
484
+ var anObject$8 = function (argument) {
485
+ if (isObject$4(argument)) return argument;
486
+ throw new $TypeError$5($String$3(argument) + ' is not an object');
487
487
  };
488
488
 
489
- var DESCRIPTORS$5 = descriptors;
489
+ var DESCRIPTORS$6 = descriptors;
490
490
  var IE8_DOM_DEFINE = ie8DomDefine;
491
491
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
492
- var anObject$6 = anObject$7;
492
+ var anObject$7 = anObject$8;
493
493
  var toPropertyKey = toPropertyKey$2;
494
494
 
495
- var $TypeError$3 = TypeError;
495
+ var $TypeError$4 = TypeError;
496
496
  // eslint-disable-next-line es/no-object-defineproperty -- safe
497
497
  var $defineProperty = Object.defineProperty;
498
498
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -503,10 +503,10 @@ var WRITABLE = 'writable';
503
503
 
504
504
  // `Object.defineProperty` method
505
505
  // https://tc39.es/ecma262/#sec-object.defineproperty
506
- objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
507
- anObject$6(O);
506
+ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
507
+ anObject$7(O);
508
508
  P = toPropertyKey(P);
509
- anObject$6(Attributes);
509
+ anObject$7(Attributes);
510
510
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
511
511
  var current = $getOwnPropertyDescriptor(O, P);
512
512
  if (current && current[WRITABLE]) {
@@ -519,23 +519,23 @@ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
519
519
  }
520
520
  } return $defineProperty(O, P, Attributes);
521
521
  } : $defineProperty : function defineProperty(O, P, Attributes) {
522
- anObject$6(O);
522
+ anObject$7(O);
523
523
  P = toPropertyKey(P);
524
- anObject$6(Attributes);
524
+ anObject$7(Attributes);
525
525
  if (IE8_DOM_DEFINE) try {
526
526
  return $defineProperty(O, P, Attributes);
527
527
  } catch (error) { /* empty */ }
528
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$3('Accessors not supported');
528
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$4('Accessors not supported');
529
529
  if ('value' in Attributes) O[P] = Attributes.value;
530
530
  return O;
531
531
  };
532
532
 
533
- var DESCRIPTORS$4 = descriptors;
533
+ var DESCRIPTORS$5 = descriptors;
534
534
  var definePropertyModule$3 = objectDefineProperty;
535
- var createPropertyDescriptor = createPropertyDescriptor$2;
535
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
536
536
 
537
- var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value) {
538
- return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
537
+ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
538
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
539
539
  } : function (object, key, value) {
540
540
  object[key] = value;
541
541
  return object;
@@ -543,17 +543,17 @@ var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value
543
543
 
544
544
  var makeBuiltIn$2 = {exports: {}};
545
545
 
546
- var DESCRIPTORS$3 = descriptors;
547
- var hasOwn$4 = hasOwnProperty_1;
546
+ var DESCRIPTORS$4 = descriptors;
547
+ var hasOwn$6 = hasOwnProperty_1;
548
548
 
549
549
  var FunctionPrototype$1 = Function.prototype;
550
550
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
551
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
551
+ var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
552
552
 
553
- var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
553
+ var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
554
554
  // additional protection from minified / mangled / dropped function names
555
555
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
556
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
556
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype$1, 'name').configurable));
557
557
 
558
558
  var functionName = {
559
559
  EXISTS: EXISTS,
@@ -561,14 +561,14 @@ var functionName = {
561
561
  CONFIGURABLE: CONFIGURABLE
562
562
  };
563
563
 
564
- var uncurryThis$b = functionUncurryThis;
565
- var isCallable$7 = isCallable$d;
564
+ var uncurryThis$c = functionUncurryThis;
565
+ var isCallable$a = isCallable$g;
566
566
  var store$1 = sharedStore;
567
567
 
568
- var functionToString = uncurryThis$b(Function.toString);
568
+ var functionToString = uncurryThis$c(Function.toString);
569
569
 
570
570
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
571
- if (!isCallable$7(store$1.inspectSource)) {
571
+ if (!isCallable$a(store$1.inspectSource)) {
572
572
  store$1.inspectSource = function (it) {
573
573
  return functionToString(it);
574
574
  };
@@ -576,36 +576,36 @@ if (!isCallable$7(store$1.inspectSource)) {
576
576
 
577
577
  var inspectSource$1 = store$1.inspectSource;
578
578
 
579
- var global$7 = global$f;
580
- var isCallable$6 = isCallable$d;
579
+ var global$8 = global$g;
580
+ var isCallable$9 = isCallable$g;
581
581
 
582
- var WeakMap$1 = global$7.WeakMap;
582
+ var WeakMap$1 = global$8.WeakMap;
583
583
 
584
- var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
584
+ var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
585
585
 
586
586
  var shared$2 = shared$4.exports;
587
587
  var uid = uid$2;
588
588
 
589
589
  var keys = shared$2('keys');
590
590
 
591
- var sharedKey$2 = function (key) {
591
+ var sharedKey$3 = function (key) {
592
592
  return keys[key] || (keys[key] = uid(key));
593
593
  };
594
594
 
595
595
  var hiddenKeys$4 = {};
596
596
 
597
597
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
598
- var global$6 = global$f;
599
- var isObject$1 = isObject$6;
600
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
601
- var hasOwn$3 = hasOwnProperty_1;
598
+ var global$7 = global$g;
599
+ var isObject$3 = isObject$8;
600
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
601
+ var hasOwn$5 = hasOwnProperty_1;
602
602
  var shared$1 = sharedStore;
603
- var sharedKey$1 = sharedKey$2;
603
+ var sharedKey$2 = sharedKey$3;
604
604
  var hiddenKeys$3 = hiddenKeys$4;
605
605
 
606
606
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
607
- var TypeError$1 = global$6.TypeError;
608
- var WeakMap = global$6.WeakMap;
607
+ var TypeError$1 = global$7.TypeError;
608
+ var WeakMap = global$7.WeakMap;
609
609
  var set, get, has;
610
610
 
611
611
  var enforce = function (it) {
@@ -615,7 +615,7 @@ var enforce = function (it) {
615
615
  var getterFor = function (TYPE) {
616
616
  return function (it) {
617
617
  var state;
618
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
618
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
619
619
  throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
620
620
  } return state;
621
621
  };
@@ -641,19 +641,19 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
641
641
  return store.has(it);
642
642
  };
643
643
  } else {
644
- var STATE = sharedKey$1('state');
644
+ var STATE = sharedKey$2('state');
645
645
  hiddenKeys$3[STATE] = true;
646
646
  set = function (it, metadata) {
647
- if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
647
+ if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
648
648
  metadata.facade = it;
649
- createNonEnumerableProperty$2(it, STATE, metadata);
649
+ createNonEnumerableProperty$4(it, STATE, metadata);
650
650
  return metadata;
651
651
  };
652
652
  get = function (it) {
653
- return hasOwn$3(it, STATE) ? it[STATE] : {};
653
+ return hasOwn$5(it, STATE) ? it[STATE] : {};
654
654
  };
655
655
  has = function (it) {
656
- return hasOwn$3(it, STATE);
656
+ return hasOwn$5(it, STATE);
657
657
  };
658
658
  }
659
659
 
@@ -665,51 +665,51 @@ var internalState = {
665
665
  getterFor: getterFor
666
666
  };
667
667
 
668
- var uncurryThis$a = functionUncurryThis;
669
- var fails$9 = fails$g;
670
- var isCallable$5 = isCallable$d;
671
- var hasOwn$2 = hasOwnProperty_1;
672
- var DESCRIPTORS$2 = descriptors;
673
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
668
+ var uncurryThis$b = functionUncurryThis;
669
+ var fails$b = fails$i;
670
+ var isCallable$8 = isCallable$g;
671
+ var hasOwn$4 = hasOwnProperty_1;
672
+ var DESCRIPTORS$3 = descriptors;
673
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
674
674
  var inspectSource = inspectSource$1;
675
- var InternalStateModule = internalState;
675
+ var InternalStateModule$1 = internalState;
676
676
 
677
- var enforceInternalState = InternalStateModule.enforce;
678
- var getInternalState$1 = InternalStateModule.get;
679
- var $String$1 = String;
677
+ var enforceInternalState = InternalStateModule$1.enforce;
678
+ var getInternalState$2 = InternalStateModule$1.get;
679
+ var $String$2 = String;
680
680
  // eslint-disable-next-line es/no-object-defineproperty -- safe
681
- var defineProperty$2 = Object.defineProperty;
682
- var stringSlice$4 = uncurryThis$a(''.slice);
683
- var replace$2 = uncurryThis$a(''.replace);
684
- var join = uncurryThis$a([].join);
681
+ var defineProperty$4 = Object.defineProperty;
682
+ var stringSlice$4 = uncurryThis$b(''.slice);
683
+ var replace$2 = uncurryThis$b(''.replace);
684
+ var join = uncurryThis$b([].join);
685
685
 
686
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$9(function () {
687
- return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
686
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$b(function () {
687
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
688
688
  });
689
689
 
690
690
  var TEMPLATE = String(String).split('String');
691
691
 
692
692
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
693
- if (stringSlice$4($String$1(name), 0, 7) === 'Symbol(') {
694
- name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
693
+ if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
694
+ name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
695
695
  }
696
696
  if (options && options.getter) name = 'get ' + name;
697
697
  if (options && options.setter) name = 'set ' + name;
698
- if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
699
- if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
698
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
699
+ if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
700
700
  else value.name = name;
701
701
  }
702
- if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
703
- defineProperty$2(value, 'length', { value: options.arity });
702
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
703
+ defineProperty$4(value, 'length', { value: options.arity });
704
704
  }
705
705
  try {
706
- if (options && hasOwn$2(options, 'constructor') && options.constructor) {
707
- if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
706
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
707
+ if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
708
708
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
709
709
  } else if (value.prototype) value.prototype = undefined;
710
710
  } catch (error) { /* empty */ }
711
711
  var state = enforceInternalState(value);
712
- if (!hasOwn$2(state, 'source')) {
712
+ if (!hasOwn$4(state, 'source')) {
713
713
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
714
714
  } return value;
715
715
  };
@@ -717,19 +717,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
717
717
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
718
718
  // eslint-disable-next-line no-extend-native -- required
719
719
  Function.prototype.toString = makeBuiltIn$1(function toString() {
720
- return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
720
+ return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
721
721
  }, 'toString');
722
722
 
723
- var isCallable$4 = isCallable$d;
723
+ var isCallable$7 = isCallable$g;
724
724
  var definePropertyModule$2 = objectDefineProperty;
725
725
  var makeBuiltIn = makeBuiltIn$2.exports;
726
726
  var defineGlobalProperty$1 = defineGlobalProperty$3;
727
727
 
728
- var defineBuiltIn$2 = function (O, key, value, options) {
728
+ var defineBuiltIn$4 = function (O, key, value, options) {
729
729
  if (!options) options = {};
730
730
  var simple = options.enumerable;
731
731
  var name = options.name !== undefined ? options.name : key;
732
- if (isCallable$4(value)) makeBuiltIn(value, name, options);
732
+ if (isCallable$7(value)) makeBuiltIn(value, name, options);
733
733
  if (options.global) {
734
734
  if (simple) O[key] = value;
735
735
  else defineGlobalProperty$1(key, value);
@@ -802,14 +802,14 @@ var lengthOfArrayLike$2 = function (obj) {
802
802
  return toLength$1(obj.length);
803
803
  };
804
804
 
805
- var toIndexedObject$2 = toIndexedObject$4;
805
+ var toIndexedObject$3 = toIndexedObject$5;
806
806
  var toAbsoluteIndex = toAbsoluteIndex$1;
807
807
  var lengthOfArrayLike$1 = lengthOfArrayLike$2;
808
808
 
809
809
  // `Array.prototype.{ indexOf, includes }` methods implementation
810
810
  var createMethod$2 = function (IS_INCLUDES) {
811
811
  return function ($this, el, fromIndex) {
812
- var O = toIndexedObject$2($this);
812
+ var O = toIndexedObject$3($this);
813
813
  var length = lengthOfArrayLike$1(O);
814
814
  var index = toAbsoluteIndex(fromIndex, length);
815
815
  var value;
@@ -835,22 +835,22 @@ var arrayIncludes = {
835
835
  indexOf: createMethod$2(false)
836
836
  };
837
837
 
838
- var uncurryThis$9 = functionUncurryThis;
839
- var hasOwn$1 = hasOwnProperty_1;
840
- var toIndexedObject$1 = toIndexedObject$4;
838
+ var uncurryThis$a = functionUncurryThis;
839
+ var hasOwn$3 = hasOwnProperty_1;
840
+ var toIndexedObject$2 = toIndexedObject$5;
841
841
  var indexOf$1 = arrayIncludes.indexOf;
842
842
  var hiddenKeys$2 = hiddenKeys$4;
843
843
 
844
- var push$1 = uncurryThis$9([].push);
844
+ var push$1 = uncurryThis$a([].push);
845
845
 
846
846
  var objectKeysInternal = function (object, names) {
847
- var O = toIndexedObject$1(object);
847
+ var O = toIndexedObject$2(object);
848
848
  var i = 0;
849
849
  var result = [];
850
850
  var key;
851
- for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
851
+ for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
852
852
  // Don't enum bug & hidden keys
853
- while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
853
+ while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
854
854
  ~indexOf$1(result, key) || push$1(result, key);
855
855
  }
856
856
  return result;
@@ -885,21 +885,21 @@ var objectGetOwnPropertySymbols = {};
885
885
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
886
886
 
887
887
  var getBuiltIn$1 = getBuiltIn$3;
888
- var uncurryThis$8 = functionUncurryThis;
888
+ var uncurryThis$9 = functionUncurryThis;
889
889
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
890
890
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
891
- var anObject$5 = anObject$7;
891
+ var anObject$6 = anObject$8;
892
892
 
893
- var concat$2 = uncurryThis$8([].concat);
893
+ var concat$2 = uncurryThis$9([].concat);
894
894
 
895
895
  // all object keys, includes non-enumerable and symbols
896
896
  var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
897
- var keys = getOwnPropertyNamesModule.f(anObject$5(it));
897
+ var keys = getOwnPropertyNamesModule.f(anObject$6(it));
898
898
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
899
899
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
900
900
  };
901
901
 
902
- var hasOwn = hasOwnProperty_1;
902
+ var hasOwn$2 = hasOwnProperty_1;
903
903
  var ownKeys = ownKeys$1;
904
904
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
905
905
  var definePropertyModule$1 = objectDefineProperty;
@@ -910,14 +910,14 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
910
910
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
911
911
  for (var i = 0; i < keys.length; i++) {
912
912
  var key = keys[i];
913
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
913
+ if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
914
914
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
915
915
  }
916
916
  }
917
917
  };
918
918
 
919
- var fails$8 = fails$g;
920
- var isCallable$3 = isCallable$d;
919
+ var fails$a = fails$i;
920
+ var isCallable$6 = isCallable$g;
921
921
 
922
922
  var replacement = /#|\.prototype\./;
923
923
 
@@ -925,7 +925,7 @@ var isForced$1 = function (feature, detection) {
925
925
  var value = data[normalize(feature)];
926
926
  return value === POLYFILL ? true
927
927
  : value === NATIVE ? false
928
- : isCallable$3(detection) ? fails$8(detection)
928
+ : isCallable$6(detection) ? fails$a(detection)
929
929
  : !!detection;
930
930
  };
931
931
 
@@ -939,10 +939,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
939
939
 
940
940
  var isForced_1 = isForced$1;
941
941
 
942
- var global$5 = global$f;
942
+ var global$6 = global$g;
943
943
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
944
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
945
- var defineBuiltIn$1 = defineBuiltIn$2;
944
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
945
+ var defineBuiltIn$3 = defineBuiltIn$4;
946
946
  var defineGlobalProperty = defineGlobalProperty$3;
947
947
  var copyConstructorProperties = copyConstructorProperties$1;
948
948
  var isForced = isForced_1;
@@ -968,11 +968,11 @@ var _export = function (options, source) {
968
968
  var STATIC = options.stat;
969
969
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
970
970
  if (GLOBAL) {
971
- target = global$5;
971
+ target = global$6;
972
972
  } else if (STATIC) {
973
- target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
973
+ target = global$6[TARGET] || defineGlobalProperty(TARGET, {});
974
974
  } else {
975
- target = (global$5[TARGET] || {}).prototype;
975
+ target = (global$6[TARGET] || {}).prototype;
976
976
  }
977
977
  if (target) for (key in source) {
978
978
  sourceProperty = source[key];
@@ -988,9 +988,9 @@ var _export = function (options, source) {
988
988
  }
989
989
  // add a flag to not completely full polyfills
990
990
  if (options.sham || (targetProperty && targetProperty.sham)) {
991
- createNonEnumerableProperty$1(sourceProperty, 'sham', true);
991
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
992
992
  }
993
- defineBuiltIn$1(target, key, sourceProperty, options);
993
+ defineBuiltIn$3(target, key, sourceProperty, options);
994
994
  }
995
995
  };
996
996
 
@@ -1006,19 +1006,19 @@ var objectKeys$2 = Object.keys || function keys(O) {
1006
1006
  return internalObjectKeys(O, enumBugKeys$1);
1007
1007
  };
1008
1008
 
1009
- var DESCRIPTORS$1 = descriptors;
1009
+ var DESCRIPTORS$2 = descriptors;
1010
1010
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1011
1011
  var definePropertyModule = objectDefineProperty;
1012
- var anObject$4 = anObject$7;
1013
- var toIndexedObject = toIndexedObject$4;
1012
+ var anObject$5 = anObject$8;
1013
+ var toIndexedObject$1 = toIndexedObject$5;
1014
1014
  var objectKeys$1 = objectKeys$2;
1015
1015
 
1016
1016
  // `Object.defineProperties` method
1017
1017
  // https://tc39.es/ecma262/#sec-object.defineproperties
1018
1018
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1019
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1020
- anObject$4(O);
1021
- var props = toIndexedObject(Properties);
1019
+ objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1020
+ anObject$5(O);
1021
+ var props = toIndexedObject$1(Properties);
1022
1022
  var keys = objectKeys$1(Properties);
1023
1023
  var length = keys.length;
1024
1024
  var index = 0;
@@ -1032,19 +1032,19 @@ var getBuiltIn = getBuiltIn$3;
1032
1032
  var html$1 = getBuiltIn('document', 'documentElement');
1033
1033
 
1034
1034
  /* global ActiveXObject -- old IE, WSH */
1035
- var anObject$3 = anObject$7;
1035
+ var anObject$4 = anObject$8;
1036
1036
  var definePropertiesModule = objectDefineProperties;
1037
1037
  var enumBugKeys = enumBugKeys$3;
1038
1038
  var hiddenKeys = hiddenKeys$4;
1039
1039
  var html = html$1;
1040
- var documentCreateElement = documentCreateElement$1;
1041
- var sharedKey = sharedKey$2;
1040
+ var documentCreateElement$1 = documentCreateElement$2;
1041
+ var sharedKey$1 = sharedKey$3;
1042
1042
 
1043
1043
  var GT = '>';
1044
1044
  var LT = '<';
1045
1045
  var PROTOTYPE = 'prototype';
1046
1046
  var SCRIPT = 'script';
1047
- var IE_PROTO = sharedKey('IE_PROTO');
1047
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1048
1048
 
1049
1049
  var EmptyConstructor = function () { /* empty */ };
1050
1050
 
@@ -1064,7 +1064,7 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
1064
1064
  // Create object with fake `null` prototype: use iframe Object with cleared prototype
1065
1065
  var NullProtoObjectViaIFrame = function () {
1066
1066
  // Thrash, waste and sodomy: IE GC bug
1067
- var iframe = documentCreateElement('iframe');
1067
+ var iframe = documentCreateElement$1('iframe');
1068
1068
  var JS = 'java' + SCRIPT + ':';
1069
1069
  var iframeDocument;
1070
1070
  iframe.style.display = 'none';
@@ -1098,7 +1098,7 @@ var NullProtoObject = function () {
1098
1098
  return NullProtoObject();
1099
1099
  };
1100
1100
 
1101
- hiddenKeys[IE_PROTO] = true;
1101
+ hiddenKeys[IE_PROTO$1] = true;
1102
1102
 
1103
1103
  // `Object.create` method
1104
1104
  // https://tc39.es/ecma262/#sec-object.create
@@ -1106,97 +1106,97 @@ hiddenKeys[IE_PROTO] = true;
1106
1106
  var objectCreate = Object.create || function create(O, Properties) {
1107
1107
  var result;
1108
1108
  if (O !== null) {
1109
- EmptyConstructor[PROTOTYPE] = anObject$3(O);
1109
+ EmptyConstructor[PROTOTYPE] = anObject$4(O);
1110
1110
  result = new EmptyConstructor();
1111
1111
  EmptyConstructor[PROTOTYPE] = null;
1112
1112
  // add "__proto__" for Object.getPrototypeOf polyfill
1113
- result[IE_PROTO] = O;
1113
+ result[IE_PROTO$1] = O;
1114
1114
  } else result = NullProtoObject();
1115
1115
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1116
1116
  };
1117
1117
 
1118
- var wellKnownSymbol$6 = wellKnownSymbol$8;
1119
- var create$1 = objectCreate;
1120
- var defineProperty$1 = objectDefineProperty.f;
1118
+ var wellKnownSymbol$a = wellKnownSymbol$c;
1119
+ var create$2 = objectCreate;
1120
+ var defineProperty$3 = objectDefineProperty.f;
1121
1121
 
1122
- var UNSCOPABLES = wellKnownSymbol$6('unscopables');
1122
+ var UNSCOPABLES = wellKnownSymbol$a('unscopables');
1123
1123
  var ArrayPrototype = Array.prototype;
1124
1124
 
1125
1125
  // Array.prototype[@@unscopables]
1126
1126
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1127
1127
  if (ArrayPrototype[UNSCOPABLES] === undefined) {
1128
- defineProperty$1(ArrayPrototype, UNSCOPABLES, {
1128
+ defineProperty$3(ArrayPrototype, UNSCOPABLES, {
1129
1129
  configurable: true,
1130
- value: create$1(null)
1130
+ value: create$2(null)
1131
1131
  });
1132
1132
  }
1133
1133
 
1134
1134
  // add a key to Array.prototype[@@unscopables]
1135
- var addToUnscopables$1 = function (key) {
1135
+ var addToUnscopables$2 = function (key) {
1136
1136
  ArrayPrototype[UNSCOPABLES][key] = true;
1137
1137
  };
1138
1138
 
1139
- var $$4 = _export;
1139
+ var $$5 = _export;
1140
1140
  var $includes = arrayIncludes.includes;
1141
- var fails$7 = fails$g;
1142
- var addToUnscopables = addToUnscopables$1;
1141
+ var fails$9 = fails$i;
1142
+ var addToUnscopables$1 = addToUnscopables$2;
1143
1143
 
1144
1144
  // FF99+ bug
1145
- var BROKEN_ON_SPARSE = fails$7(function () {
1145
+ var BROKEN_ON_SPARSE = fails$9(function () {
1146
1146
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
1147
1147
  return !Array(1).includes();
1148
1148
  });
1149
1149
 
1150
1150
  // `Array.prototype.includes` method
1151
1151
  // https://tc39.es/ecma262/#sec-array.prototype.includes
1152
- $$4({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1152
+ $$5({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1153
1153
  includes: function includes(el /* , fromIndex = 0 */) {
1154
1154
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1155
1155
  }
1156
1156
  });
1157
1157
 
1158
1158
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1159
- addToUnscopables('includes');
1159
+ addToUnscopables$1('includes');
1160
1160
 
1161
- var isObject = isObject$6;
1161
+ var isObject$2 = isObject$8;
1162
1162
  var classof$4 = classofRaw$2;
1163
- var wellKnownSymbol$5 = wellKnownSymbol$8;
1163
+ var wellKnownSymbol$9 = wellKnownSymbol$c;
1164
1164
 
1165
- var MATCH$1 = wellKnownSymbol$5('match');
1165
+ var MATCH$1 = wellKnownSymbol$9('match');
1166
1166
 
1167
1167
  // `IsRegExp` abstract operation
1168
1168
  // https://tc39.es/ecma262/#sec-isregexp
1169
1169
  var isRegexp = function (it) {
1170
1170
  var isRegExp;
1171
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) === 'RegExp');
1171
+ return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) === 'RegExp');
1172
1172
  };
1173
1173
 
1174
1174
  var isRegExp = isRegexp;
1175
1175
 
1176
- var $TypeError$2 = TypeError;
1176
+ var $TypeError$3 = TypeError;
1177
1177
 
1178
1178
  var notARegexp = function (it) {
1179
1179
  if (isRegExp(it)) {
1180
- throw new $TypeError$2("The method doesn't accept regular expressions");
1180
+ throw new $TypeError$3("The method doesn't accept regular expressions");
1181
1181
  } return it;
1182
1182
  };
1183
1183
 
1184
- var wellKnownSymbol$4 = wellKnownSymbol$8;
1184
+ var wellKnownSymbol$8 = wellKnownSymbol$c;
1185
1185
 
1186
- var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
1186
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1187
1187
  var test = {};
1188
1188
 
1189
- test[TO_STRING_TAG$1] = 'z';
1189
+ test[TO_STRING_TAG$2] = 'z';
1190
1190
 
1191
1191
  var toStringTagSupport = String(test) === '[object z]';
1192
1192
 
1193
1193
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1194
- var isCallable$2 = isCallable$d;
1194
+ var isCallable$5 = isCallable$g;
1195
1195
  var classofRaw$1 = classofRaw$2;
1196
- var wellKnownSymbol$3 = wellKnownSymbol$8;
1196
+ var wellKnownSymbol$7 = wellKnownSymbol$c;
1197
1197
 
1198
- var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
1199
- var $Object = Object;
1198
+ var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
1199
+ var $Object$1 = Object;
1200
1200
 
1201
1201
  // ES3 wrong here
1202
1202
  var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
@@ -1213,25 +1213,25 @@ var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1213
1213
  var O, tag, result;
1214
1214
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1215
1215
  // @@toStringTag case
1216
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1216
+ : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
1217
1217
  // builtinTag case
1218
1218
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
1219
1219
  // ES3 arguments fallback
1220
- : (result = classofRaw$1(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1220
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1221
1221
  };
1222
1222
 
1223
1223
  var classof$2 = classof$3;
1224
1224
 
1225
- var $String = String;
1225
+ var $String$1 = String;
1226
1226
 
1227
1227
  var toString$4 = function (argument) {
1228
1228
  if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1229
- return $String(argument);
1229
+ return $String$1(argument);
1230
1230
  };
1231
1231
 
1232
- var wellKnownSymbol$2 = wellKnownSymbol$8;
1232
+ var wellKnownSymbol$6 = wellKnownSymbol$c;
1233
1233
 
1234
- var MATCH = wellKnownSymbol$2('match');
1234
+ var MATCH = wellKnownSymbol$6('match');
1235
1235
 
1236
1236
  var correctIsRegexpLogic = function (METHOD_NAME) {
1237
1237
  var regexp = /./;
@@ -1245,18 +1245,18 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
1245
1245
  } return false;
1246
1246
  };
1247
1247
 
1248
- var $$3 = _export;
1249
- var uncurryThis$7 = functionUncurryThis;
1248
+ var $$4 = _export;
1249
+ var uncurryThis$8 = functionUncurryThis;
1250
1250
  var notARegExp = notARegexp;
1251
1251
  var requireObjectCoercible$2 = requireObjectCoercible$5;
1252
1252
  var toString$3 = toString$4;
1253
1253
  var correctIsRegExpLogic = correctIsRegexpLogic;
1254
1254
 
1255
- var stringIndexOf$1 = uncurryThis$7(''.indexOf);
1255
+ var stringIndexOf$1 = uncurryThis$8(''.indexOf);
1256
1256
 
1257
1257
  // `String.prototype.includes` method
1258
1258
  // https://tc39.es/ecma262/#sec-string.prototype.includes
1259
- $$3({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1259
+ $$4({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1260
1260
  includes: function includes(searchString /* , position = 0 */) {
1261
1261
  return !!~stringIndexOf$1(
1262
1262
  toString$3(requireObjectCoercible$2(this)),
@@ -1266,7 +1266,416 @@ $$3({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
1266
1266
  }
1267
1267
  });
1268
1268
 
1269
- var anObject$2 = anObject$7;
1269
+ var iterators = {};
1270
+
1271
+ var fails$8 = fails$i;
1272
+
1273
+ var correctPrototypeGetter = !fails$8(function () {
1274
+ function F() { /* empty */ }
1275
+ F.prototype.constructor = null;
1276
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1277
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1278
+ });
1279
+
1280
+ var hasOwn$1 = hasOwnProperty_1;
1281
+ var isCallable$4 = isCallable$g;
1282
+ var toObject$3 = toObject$5;
1283
+ var sharedKey = sharedKey$3;
1284
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1285
+
1286
+ var IE_PROTO = sharedKey('IE_PROTO');
1287
+ var $Object = Object;
1288
+ var ObjectPrototype = $Object.prototype;
1289
+
1290
+ // `Object.getPrototypeOf` method
1291
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1292
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1293
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1294
+ var object = toObject$3(O);
1295
+ if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1296
+ var constructor = object.constructor;
1297
+ if (isCallable$4(constructor) && object instanceof constructor) {
1298
+ return constructor.prototype;
1299
+ } return object instanceof $Object ? ObjectPrototype : null;
1300
+ };
1301
+
1302
+ var fails$7 = fails$i;
1303
+ var isCallable$3 = isCallable$g;
1304
+ var isObject$1 = isObject$8;
1305
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1306
+ var defineBuiltIn$2 = defineBuiltIn$4;
1307
+ var wellKnownSymbol$5 = wellKnownSymbol$c;
1308
+
1309
+ var ITERATOR$2 = wellKnownSymbol$5('iterator');
1310
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1311
+
1312
+ // `%IteratorPrototype%` object
1313
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1314
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1315
+
1316
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1317
+ if ([].keys) {
1318
+ arrayIterator = [].keys();
1319
+ // Safari 8 has buggy iterators w/o `next`
1320
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1321
+ else {
1322
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1323
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1324
+ }
1325
+ }
1326
+
1327
+ var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$7(function () {
1328
+ var test = {};
1329
+ // FF44- legacy iterators case
1330
+ return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1331
+ });
1332
+
1333
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1334
+
1335
+ // `%IteratorPrototype%[@@iterator]()` method
1336
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1337
+ if (!isCallable$3(IteratorPrototype$2[ITERATOR$2])) {
1338
+ defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1339
+ return this;
1340
+ });
1341
+ }
1342
+
1343
+ var iteratorsCore = {
1344
+ IteratorPrototype: IteratorPrototype$2,
1345
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1346
+ };
1347
+
1348
+ var defineProperty$2 = objectDefineProperty.f;
1349
+ var hasOwn = hasOwnProperty_1;
1350
+ var wellKnownSymbol$4 = wellKnownSymbol$c;
1351
+
1352
+ var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
1353
+
1354
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1355
+ if (target && !STATIC) target = target.prototype;
1356
+ if (target && !hasOwn(target, TO_STRING_TAG)) {
1357
+ defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
1358
+ }
1359
+ };
1360
+
1361
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1362
+ var create$1 = objectCreate;
1363
+ var createPropertyDescriptor = createPropertyDescriptor$3;
1364
+ var setToStringTag$2 = setToStringTag$3;
1365
+ var Iterators$2 = iterators;
1366
+
1367
+ var returnThis$1 = function () { return this; };
1368
+
1369
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1370
+ var TO_STRING_TAG = NAME + ' Iterator';
1371
+ IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1372
+ setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1373
+ Iterators$2[TO_STRING_TAG] = returnThis$1;
1374
+ return IteratorConstructor;
1375
+ };
1376
+
1377
+ var uncurryThis$7 = functionUncurryThis;
1378
+ var aCallable$1 = aCallable$3;
1379
+
1380
+ var functionUncurryThisAccessor = function (object, key, method) {
1381
+ try {
1382
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1383
+ return uncurryThis$7(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
1384
+ } catch (error) { /* empty */ }
1385
+ };
1386
+
1387
+ var isObject = isObject$8;
1388
+
1389
+ var isPossiblePrototype$1 = function (argument) {
1390
+ return isObject(argument) || argument === null;
1391
+ };
1392
+
1393
+ var isPossiblePrototype = isPossiblePrototype$1;
1394
+
1395
+ var $String = String;
1396
+ var $TypeError$2 = TypeError;
1397
+
1398
+ var aPossiblePrototype$1 = function (argument) {
1399
+ if (isPossiblePrototype(argument)) return argument;
1400
+ throw new $TypeError$2("Can't set " + $String(argument) + ' as a prototype');
1401
+ };
1402
+
1403
+ /* eslint-disable no-proto -- safe */
1404
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1405
+ var anObject$3 = anObject$8;
1406
+ var aPossiblePrototype = aPossiblePrototype$1;
1407
+
1408
+ // `Object.setPrototypeOf` method
1409
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1410
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1411
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1412
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1413
+ var CORRECT_SETTER = false;
1414
+ var test = {};
1415
+ var setter;
1416
+ try {
1417
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1418
+ setter(test, []);
1419
+ CORRECT_SETTER = test instanceof Array;
1420
+ } catch (error) { /* empty */ }
1421
+ return function setPrototypeOf(O, proto) {
1422
+ anObject$3(O);
1423
+ aPossiblePrototype(proto);
1424
+ if (CORRECT_SETTER) setter(O, proto);
1425
+ else O.__proto__ = proto;
1426
+ return O;
1427
+ };
1428
+ }() : undefined);
1429
+
1430
+ var $$3 = _export;
1431
+ var call$5 = functionCall;
1432
+ var FunctionName = functionName;
1433
+ var isCallable$2 = isCallable$g;
1434
+ var createIteratorConstructor = iteratorCreateConstructor;
1435
+ var getPrototypeOf = objectGetPrototypeOf;
1436
+ var setPrototypeOf = objectSetPrototypeOf;
1437
+ var setToStringTag$1 = setToStringTag$3;
1438
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1439
+ var defineBuiltIn$1 = defineBuiltIn$4;
1440
+ var wellKnownSymbol$3 = wellKnownSymbol$c;
1441
+ var Iterators$1 = iterators;
1442
+ var IteratorsCore = iteratorsCore;
1443
+
1444
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1445
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1446
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1447
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1448
+ var ITERATOR$1 = wellKnownSymbol$3('iterator');
1449
+ var KEYS = 'keys';
1450
+ var VALUES = 'values';
1451
+ var ENTRIES = 'entries';
1452
+
1453
+ var returnThis = function () { return this; };
1454
+
1455
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1456
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1457
+
1458
+ var getIterationMethod = function (KIND) {
1459
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1460
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1461
+
1462
+ switch (KIND) {
1463
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1464
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1465
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1466
+ }
1467
+
1468
+ return function () { return new IteratorConstructor(this); };
1469
+ };
1470
+
1471
+ var TO_STRING_TAG = NAME + ' Iterator';
1472
+ var INCORRECT_VALUES_NAME = false;
1473
+ var IterablePrototype = Iterable.prototype;
1474
+ var nativeIterator = IterablePrototype[ITERATOR$1]
1475
+ || IterablePrototype['@@iterator']
1476
+ || DEFAULT && IterablePrototype[DEFAULT];
1477
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1478
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1479
+ var CurrentIteratorPrototype, methods, KEY;
1480
+
1481
+ // fix native
1482
+ if (anyNativeIterator) {
1483
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1484
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1485
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1486
+ if (setPrototypeOf) {
1487
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1488
+ } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$1])) {
1489
+ defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1490
+ }
1491
+ }
1492
+ // Set @@toStringTag to native iterators
1493
+ setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1494
+ }
1495
+ }
1496
+
1497
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1498
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1499
+ if (CONFIGURABLE_FUNCTION_NAME) {
1500
+ createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1501
+ } else {
1502
+ INCORRECT_VALUES_NAME = true;
1503
+ defaultIterator = function values() { return call$5(nativeIterator, this); };
1504
+ }
1505
+ }
1506
+
1507
+ // export additional methods
1508
+ if (DEFAULT) {
1509
+ methods = {
1510
+ values: getIterationMethod(VALUES),
1511
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1512
+ entries: getIterationMethod(ENTRIES)
1513
+ };
1514
+ if (FORCED) for (KEY in methods) {
1515
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1516
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1517
+ }
1518
+ } else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1519
+ }
1520
+
1521
+ // define iterator
1522
+ if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1523
+ defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1524
+ }
1525
+ Iterators$1[NAME] = defaultIterator;
1526
+
1527
+ return methods;
1528
+ };
1529
+
1530
+ // `CreateIterResultObject` abstract operation
1531
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1532
+ var createIterResultObject$1 = function (value, done) {
1533
+ return { value: value, done: done };
1534
+ };
1535
+
1536
+ var toIndexedObject = toIndexedObject$5;
1537
+ var addToUnscopables = addToUnscopables$2;
1538
+ var Iterators = iterators;
1539
+ var InternalStateModule = internalState;
1540
+ var defineProperty$1 = objectDefineProperty.f;
1541
+ var defineIterator = iteratorDefine;
1542
+ var createIterResultObject = createIterResultObject$1;
1543
+ var DESCRIPTORS$1 = descriptors;
1544
+
1545
+ var ARRAY_ITERATOR = 'Array Iterator';
1546
+ var setInternalState = InternalStateModule.set;
1547
+ var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
1548
+
1549
+ // `Array.prototype.entries` method
1550
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1551
+ // `Array.prototype.keys` method
1552
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1553
+ // `Array.prototype.values` method
1554
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1555
+ // `Array.prototype[@@iterator]` method
1556
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1557
+ // `CreateArrayIterator` internal method
1558
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1559
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1560
+ setInternalState(this, {
1561
+ type: ARRAY_ITERATOR,
1562
+ target: toIndexedObject(iterated), // target
1563
+ index: 0, // next index
1564
+ kind: kind // kind
1565
+ });
1566
+ // `%ArrayIteratorPrototype%.next` method
1567
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1568
+ }, function () {
1569
+ var state = getInternalState$1(this);
1570
+ var target = state.target;
1571
+ var index = state.index++;
1572
+ if (!target || index >= target.length) {
1573
+ state.target = undefined;
1574
+ return createIterResultObject(undefined, true);
1575
+ }
1576
+ switch (state.kind) {
1577
+ case 'keys': return createIterResultObject(index, false);
1578
+ case 'values': return createIterResultObject(target[index], false);
1579
+ } return createIterResultObject([index, target[index]], false);
1580
+ }, 'values');
1581
+
1582
+ // argumentsList[@@iterator] is %ArrayProto_values%
1583
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1584
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1585
+ var values = Iterators.Arguments = Iterators.Array;
1586
+
1587
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1588
+ addToUnscopables('keys');
1589
+ addToUnscopables('values');
1590
+ addToUnscopables('entries');
1591
+
1592
+ // V8 ~ Chrome 45- bug
1593
+ if (DESCRIPTORS$1 && values.name !== 'values') try {
1594
+ defineProperty$1(values, 'name', { value: 'values' });
1595
+ } catch (error) { /* empty */ }
1596
+
1597
+ // iterable DOM collections
1598
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1599
+ var domIterables = {
1600
+ CSSRuleList: 0,
1601
+ CSSStyleDeclaration: 0,
1602
+ CSSValueList: 0,
1603
+ ClientRectList: 0,
1604
+ DOMRectList: 0,
1605
+ DOMStringList: 0,
1606
+ DOMTokenList: 1,
1607
+ DataTransferItemList: 0,
1608
+ FileList: 0,
1609
+ HTMLAllCollection: 0,
1610
+ HTMLCollection: 0,
1611
+ HTMLFormElement: 0,
1612
+ HTMLSelectElement: 0,
1613
+ MediaList: 0,
1614
+ MimeTypeArray: 0,
1615
+ NamedNodeMap: 0,
1616
+ NodeList: 1,
1617
+ PaintRequestList: 0,
1618
+ Plugin: 0,
1619
+ PluginArray: 0,
1620
+ SVGLengthList: 0,
1621
+ SVGNumberList: 0,
1622
+ SVGPathSegList: 0,
1623
+ SVGPointList: 0,
1624
+ SVGStringList: 0,
1625
+ SVGTransformList: 0,
1626
+ SourceBufferList: 0,
1627
+ StyleSheetList: 0,
1628
+ TextTrackCueList: 0,
1629
+ TextTrackList: 0,
1630
+ TouchList: 0
1631
+ };
1632
+
1633
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1634
+ var documentCreateElement = documentCreateElement$2;
1635
+
1636
+ var classList = documentCreateElement('span').classList;
1637
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1638
+
1639
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1640
+
1641
+ var global$5 = global$g;
1642
+ var DOMIterables = domIterables;
1643
+ var DOMTokenListPrototype = domTokenListPrototype;
1644
+ var ArrayIteratorMethods = es_array_iterator;
1645
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1646
+ var setToStringTag = setToStringTag$3;
1647
+ var wellKnownSymbol$2 = wellKnownSymbol$c;
1648
+
1649
+ var ITERATOR = wellKnownSymbol$2('iterator');
1650
+ var ArrayValues = ArrayIteratorMethods.values;
1651
+
1652
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1653
+ if (CollectionPrototype) {
1654
+ // some Chrome versions have non-configurable methods on DOMTokenList
1655
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1656
+ createNonEnumerableProperty$1(CollectionPrototype, ITERATOR, ArrayValues);
1657
+ } catch (error) {
1658
+ CollectionPrototype[ITERATOR] = ArrayValues;
1659
+ }
1660
+ setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1661
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1662
+ // some Chrome versions have non-configurable methods on DOMTokenList
1663
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1664
+ createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1665
+ } catch (error) {
1666
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1667
+ }
1668
+ }
1669
+ }
1670
+ };
1671
+
1672
+ for (var COLLECTION_NAME in DOMIterables) {
1673
+ handlePrototype(global$5[COLLECTION_NAME] && global$5[COLLECTION_NAME].prototype, COLLECTION_NAME);
1674
+ }
1675
+
1676
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1677
+
1678
+ var anObject$2 = anObject$8;
1270
1679
 
1271
1680
  // `RegExp.prototype.flags` getter implementation
1272
1681
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
@@ -1284,8 +1693,8 @@ var regexpFlags$1 = function () {
1284
1693
  return result;
1285
1694
  };
1286
1695
 
1287
- var fails$6 = fails$g;
1288
- var global$4 = global$f;
1696
+ var fails$6 = fails$i;
1697
+ var global$4 = global$g;
1289
1698
 
1290
1699
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1291
1700
  var $RegExp$2 = global$4.RegExp;
@@ -1315,8 +1724,8 @@ var regexpStickyHelpers = {
1315
1724
  UNSUPPORTED_Y: UNSUPPORTED_Y$1
1316
1725
  };
1317
1726
 
1318
- var fails$5 = fails$g;
1319
- var global$3 = global$f;
1727
+ var fails$5 = fails$i;
1728
+ var global$3 = global$g;
1320
1729
 
1321
1730
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1322
1731
  var $RegExp$1 = global$3.RegExp;
@@ -1326,8 +1735,8 @@ var regexpUnsupportedDotAll = fails$5(function () {
1326
1735
  return !(re.dotAll && re.test('\n') && re.flags === 's');
1327
1736
  });
1328
1737
 
1329
- var fails$4 = fails$g;
1330
- var global$2 = global$f;
1738
+ var fails$4 = fails$i;
1739
+ var global$2 = global$g;
1331
1740
 
1332
1741
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1333
1742
  var $RegExp = global$2.RegExp;
@@ -1488,11 +1897,11 @@ var functionUncurryThisClause = function (fn) {
1488
1897
  // TODO: Remove from `core-js@4` since it's moved to entry points
1489
1898
 
1490
1899
  var uncurryThis$4 = functionUncurryThisClause;
1491
- var defineBuiltIn = defineBuiltIn$2;
1900
+ var defineBuiltIn = defineBuiltIn$4;
1492
1901
  var regexpExec$1 = regexpExec$2;
1493
- var fails$3 = fails$g;
1494
- var wellKnownSymbol$1 = wellKnownSymbol$8;
1495
- var createNonEnumerableProperty = createNonEnumerableProperty$3;
1902
+ var fails$3 = fails$i;
1903
+ var wellKnownSymbol$1 = wellKnownSymbol$c;
1904
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
1496
1905
 
1497
1906
  var SPECIES = wellKnownSymbol$1('species');
1498
1907
  var RegExpPrototype = RegExp.prototype;
@@ -1608,7 +2017,7 @@ var advanceStringIndex$1 = function (S, index, unicode) {
1608
2017
  };
1609
2018
 
1610
2019
  var uncurryThis$2 = functionUncurryThis;
1611
- var toObject$2 = toObject$4;
2020
+ var toObject$2 = toObject$5;
1612
2021
 
1613
2022
  var floor = Math.floor;
1614
2023
  var charAt = uncurryThis$2(''.charAt);
@@ -1654,8 +2063,8 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
1654
2063
  };
1655
2064
 
1656
2065
  var call$2 = functionCall;
1657
- var anObject$1 = anObject$7;
1658
- var isCallable$1 = isCallable$d;
2066
+ var anObject$1 = anObject$8;
2067
+ var isCallable$1 = isCallable$g;
1659
2068
  var classof$1 = classofRaw$2;
1660
2069
  var regexpExec = regexpExec$2;
1661
2070
 
@@ -1678,9 +2087,9 @@ var apply = functionApply;
1678
2087
  var call$1 = functionCall;
1679
2088
  var uncurryThis$1 = functionUncurryThis;
1680
2089
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1681
- var fails$2 = fails$g;
1682
- var anObject = anObject$7;
1683
- var isCallable = isCallable$d;
2090
+ var fails$2 = fails$i;
2091
+ var anObject = anObject$8;
2092
+ var isCallable = isCallable$g;
1684
2093
  var isNullOrUndefined = isNullOrUndefined$3;
1685
2094
  var toIntegerOrInfinity = toIntegerOrInfinity$4;
1686
2095
  var toLength = toLength$2;
@@ -1690,7 +2099,7 @@ var advanceStringIndex = advanceStringIndex$1;
1690
2099
  var getMethod = getMethod$2;
1691
2100
  var getSubstitution = getSubstitution$1;
1692
2101
  var regExpExec = regexpExecAbstract;
1693
- var wellKnownSymbol = wellKnownSymbol$8;
2102
+ var wellKnownSymbol = wellKnownSymbol$c;
1694
2103
 
1695
2104
  var REPLACE = wellKnownSymbol('replace');
1696
2105
  var max = Math.max;
@@ -1816,8 +2225,8 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
1816
2225
  ];
1817
2226
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1818
2227
 
1819
- var aCallable = aCallable$2;
1820
- var toObject$1 = toObject$4;
2228
+ var aCallable = aCallable$3;
2229
+ var toObject$1 = toObject$5;
1821
2230
  var IndexedObject$1 = indexedObject;
1822
2231
  var lengthOfArrayLike = lengthOfArrayLike$2;
1823
2232
 
@@ -1859,7 +2268,7 @@ var arrayReduce = {
1859
2268
  right: createMethod(true)
1860
2269
  };
1861
2270
 
1862
- var fails$1 = fails$g;
2271
+ var fails$1 = fails$i;
1863
2272
 
1864
2273
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1865
2274
  var method = [][METHOD_NAME];
@@ -1869,7 +2278,7 @@ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1869
2278
  });
1870
2279
  };
1871
2280
 
1872
- var global$1 = global$f;
2281
+ var global$1 = global$g;
1873
2282
  var classof = classofRaw$2;
1874
2283
 
1875
2284
  var engineIsNode = classof(global$1.process) === 'process';
@@ -1897,11 +2306,11 @@ $$1({ target: 'Array', proto: true, forced: FORCED }, {
1897
2306
  var DESCRIPTORS = descriptors;
1898
2307
  var uncurryThis = functionUncurryThis;
1899
2308
  var call = functionCall;
1900
- var fails = fails$g;
2309
+ var fails = fails$i;
1901
2310
  var objectKeys = objectKeys$2;
1902
2311
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1903
2312
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1904
- var toObject = toObject$4;
2313
+ var toObject = toObject$5;
1905
2314
  var IndexedObject = indexedObject;
1906
2315
 
1907
2316
  // eslint-disable-next-line es/no-object-assign -- safe
@@ -1961,6 +2370,34 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
1961
2370
  assign: assign
1962
2371
  });
1963
2372
 
2373
+ const widthClassMap = {
2374
+ 1: 'col-span-1',
2375
+ 2: 'col-span-2',
2376
+ 3: 'col-span-3',
2377
+ 4: 'col-span-4',
2378
+ 5: 'col-span-5',
2379
+ 6: 'col-span-6',
2380
+ 7: 'col-span-7',
2381
+ 8: 'col-span-8',
2382
+ 9: 'col-span-9',
2383
+ 10: 'col-span-10',
2384
+ 11: 'col-span-11',
2385
+ 12: 'col-span-12'
2386
+ };
2387
+ const statrClassMap = {
2388
+ 1: 'col-start-1',
2389
+ 2: 'col-start-2',
2390
+ 3: 'col-start-3',
2391
+ 4: 'col-start-4',
2392
+ 5: 'col-start-5',
2393
+ 6: 'col-start-6',
2394
+ 7: 'col-start-7',
2395
+ 8: 'col-start-8',
2396
+ 9: 'col-start-9',
2397
+ 10: 'col-start-10',
2398
+ 11: 'col-start-11',
2399
+ 12: 'col-start-12'
2400
+ };
1964
2401
  function getPageElementBound(rowsNodes) {
1965
2402
  if (!rowsNodes) {
1966
2403
  return [];
@@ -2043,6 +2480,15 @@ const getContainersData = (containers, containerRef) => {
2043
2480
  pageContainers
2044
2481
  });
2045
2482
  };
2483
+ const combineClasses = classes => classes.filter(Boolean).join(' ');
2484
+ const getPositionStyleClasses = (width, leftOffset) => {
2485
+ const widthClass = widthClassMap[width];
2486
+ const startClass = statrClassMap[leftOffset];
2487
+ return {
2488
+ widthClass,
2489
+ startClass
2490
+ };
2491
+ };
2046
2492
 
2047
2493
  /**
2048
2494
  * `usePageEditor` is a custom React hook that sets up the page editor for a DotCMS page.
@@ -2053,7 +2499,7 @@ const getContainersData = (containers, containerRef) => {
2053
2499
  *
2054
2500
  * @category Hooks
2055
2501
  * @param {PageEditorOptions} props - The options for the page editor. Includes a `reloadFunction` and a `pathname`.
2056
- * @returns {React.RefObject<HTMLDivElement>[]} - A reference to the rows of the page.
2502
+ * @returns {{rowsRef: React.RefObject<HTMLDivElement>[], isInsideEditor: boolean}} - Returns a reference to the rows of the page and a boolean that indicates if the page is inside the editor.
2057
2503
  * @throws {Error} - Throws an error if the `pathname` is not provided.
2058
2504
  */
2059
2505
  const usePageEditor = props => {
@@ -2064,33 +2510,100 @@ const usePageEditor = props => {
2064
2510
  if (!pathname) {
2065
2511
  throw new Error('Dotcms page editor required the pathname of your webapp');
2066
2512
  }
2067
- usePostUrlToEditor(pathname);
2068
- useScrollEvent();
2069
- useReloadPage(reloadFunction);
2070
- const rowsRef = useRequestBounds();
2071
- return rowsRef;
2513
+ const {
2514
+ rowsRef,
2515
+ isInsideEditor
2516
+ } = useEventMessageHandler({
2517
+ reload: reloadFunction
2518
+ });
2519
+ usePostUrlToEditor(pathname, isInsideEditor);
2520
+ useScrollEvent(isInsideEditor);
2521
+ return {
2522
+ rowsRef,
2523
+ isInsideEditor
2524
+ };
2072
2525
  };
2073
- function useRequestBounds() {
2526
+ function useEventMessageHandler({
2527
+ reload = window.location.reload
2528
+ }) {
2074
2529
  const rows = useRef([]);
2530
+ const observer = useRef(null);
2531
+ const [isInsideEditor, setIsInsideEditor] = useState(false);
2532
+ useEffect(() => {
2533
+ var _observer$current;
2534
+ observer.current = new MutationObserver(mutationsList => {
2535
+ for (const {
2536
+ addedNodes,
2537
+ removedNodes,
2538
+ type
2539
+ } of mutationsList) {
2540
+ if (type === 'childList') {
2541
+ const didNodesChanged = [...Array.from(addedNodes), ...Array.from(removedNodes)].filter(node => {
2542
+ var _node$dataset;
2543
+ return ((_node$dataset = node.dataset) == null ? void 0 : _node$dataset.dot) === 'contentlet';
2544
+ }).length;
2545
+ if (didNodesChanged) {
2546
+ postMessageToEditor({
2547
+ action: CUSTOMER_ACTIONS.CONTENT_CHANGE
2548
+ });
2549
+ }
2550
+ }
2551
+ }
2552
+ });
2553
+ (_observer$current = observer.current) == null || _observer$current.observe(document, {
2554
+ childList: true,
2555
+ subtree: true
2556
+ });
2557
+ return () => {
2558
+ if (observer.current) observer.current.disconnect();
2559
+ };
2560
+ }, []);
2561
+ useEffect(() => {
2562
+ // If the page is not inside an iframe we do nothing.
2563
+ if (window.parent === window) return;
2564
+ postMessageToEditor({
2565
+ action: CUSTOMER_ACTIONS.PING_EDITOR // This is to let the editor know that the page is ready
2566
+ });
2567
+ }, []);
2075
2568
  useEffect(() => {
2076
2569
  function eventMessageHandler(event) {
2077
- if (event.data === 'ema-request-bounds') {
2078
- const positionData = getPageElementBound(rows.current);
2079
- postMessageToEditor({
2080
- action: CUSTOMER_ACTIONS.SET_BOUNDS,
2081
- payload: positionData
2082
- });
2570
+ if (!isInsideEditor) {
2571
+ // Editor is telling us that we can set ourselves into edit mode
2572
+ if (event.data === 'ema-editor-pong') {
2573
+ setIsInsideEditor(true);
2574
+ }
2575
+ return;
2576
+ }
2577
+ switch (event.data) {
2578
+ case 'ema-request-bounds':
2579
+ {
2580
+ const positionData = getPageElementBound(rows.current);
2581
+ postMessageToEditor({
2582
+ action: CUSTOMER_ACTIONS.SET_BOUNDS,
2583
+ payload: positionData
2584
+ });
2585
+ break;
2586
+ }
2587
+ case 'ema-reload-page':
2588
+ {
2589
+ reload();
2590
+ break;
2591
+ }
2083
2592
  }
2084
2593
  }
2085
2594
  window.addEventListener('message', eventMessageHandler);
2086
2595
  return () => {
2087
2596
  window.removeEventListener('message', eventMessageHandler);
2088
2597
  };
2089
- }, [rows]);
2090
- return rows;
2598
+ }, [rows, reload, isInsideEditor]);
2599
+ return {
2600
+ rowsRef: rows,
2601
+ isInsideEditor
2602
+ };
2091
2603
  }
2092
- function useScrollEvent() {
2604
+ function useScrollEvent(isInsideEditor) {
2093
2605
  useEffect(() => {
2606
+ if (!isInsideEditor) return;
2094
2607
  function eventScrollHandler() {
2095
2608
  postMessageToEditor({
2096
2609
  action: CUSTOMER_ACTIONS.IFRAME_SCROLL
@@ -2100,30 +2613,18 @@ function useScrollEvent() {
2100
2613
  return () => {
2101
2614
  window.removeEventListener('scroll', eventScrollHandler);
2102
2615
  };
2103
- }, []);
2104
- }
2105
- function useReloadPage(reload = window.location.reload) {
2106
- useEffect(() => {
2107
- function eventMessageHandler(event) {
2108
- if (event.data === 'ema-reload-page') {
2109
- reload();
2110
- }
2111
- }
2112
- window.addEventListener('message', eventMessageHandler);
2113
- return () => {
2114
- window.removeEventListener('message', eventMessageHandler);
2115
- };
2116
- }, [reload]);
2616
+ }, [isInsideEditor]);
2117
2617
  }
2118
- function usePostUrlToEditor(pathname) {
2618
+ function usePostUrlToEditor(pathname, isInsideEditor) {
2119
2619
  useEffect(() => {
2620
+ if (!isInsideEditor) return;
2120
2621
  postMessageToEditor({
2121
2622
  action: CUSTOMER_ACTIONS.SET_URL,
2122
2623
  payload: {
2123
2624
  url: pathname === '/' ? 'index' : pathname == null ? void 0 : pathname.replace('/', '')
2124
2625
  }
2125
2626
  });
2126
- }, [pathname]);
2627
+ }, [pathname, isInsideEditor]);
2127
2628
  }
2128
2629
 
2129
2630
  const PageContext = /*#__PURE__*/createContext(null);
@@ -2182,6 +2683,28 @@ var css_248z = ".column-module_col-start-1__GK-q- {\n grid-column-start: 1;\n
2182
2683
  var styles = {"col-start-1":"column-module_col-start-1__GK-q-","col-start-2":"column-module_col-start-2__1DmkY","col-start-3":"column-module_col-start-3__HNEPh","col-start-4":"column-module_col-start-4__oCAwh","col-start-5":"column-module_col-start-5__re1rB","col-start-6":"column-module_col-start-6__dkB4w","col-start-7":"column-module_col-start-7__kEfJb","col-start-8":"column-module_col-start-8__Yx31z","col-start-9":"column-module_col-start-9__9YiVY","col-start-10":"column-module_col-start-10__6AFbk","col-start-11":"column-module_col-start-11__LP24D","col-start-12":"column-module_col-start-12__8p0QS","col-span-1":"column-module_col-span-1__vOPKg","col-span-2":"column-module_col-span-2__qVdyn","col-span-3":"column-module_col-span-3__brcdA","col-span-4":"column-module_col-span-4__1-c-f","col-span-5":"column-module_col-span-5__nAGLD","col-span-6":"column-module_col-span-6__emtw7","col-span-7":"column-module_col-span-7__Ad5-V","col-span-8":"column-module_col-span-8__gEnsA","col-span-9":"column-module_col-span-9__jWemC","col-span-10":"column-module_col-span-10__Dzuph","col-span-11":"column-module_col-span-11__Xgct2","col-span-12":"column-module_col-span-12__LvJrY"};
2183
2684
  styleInject(css_248z);
2184
2685
 
2686
+ const FAKE_CONTENLET = {
2687
+ identifier: 'TEMP_EMPTY_CONTENTLET',
2688
+ title: 'TEMP_EMPTY_CONTENTLET',
2689
+ contentType: 'TEMP_EMPTY_CONTENTLET_TYPE',
2690
+ inode: 'TEMPY_EMPTY_CONTENTLET_INODE',
2691
+ widgetTitle: 'TEMP_EMPTY_CONTENTLET'
2692
+ };
2693
+ function EmptyContainer() {
2694
+ return jsx("div", {
2695
+ "data-testid": "empty-container",
2696
+ style: {
2697
+ width: '100%',
2698
+ backgroundColor: '#ECF0FD',
2699
+ display: 'flex',
2700
+ justifyContent: 'center',
2701
+ alignItems: 'center',
2702
+ color: '#030E32',
2703
+ height: '10rem'
2704
+ },
2705
+ children: "This container is empty."
2706
+ });
2707
+ }
2185
2708
  function NoContent({
2186
2709
  contentType
2187
2710
  }) {
@@ -2203,7 +2726,8 @@ function Container({
2203
2726
  containers,
2204
2727
  page,
2205
2728
  viewAs,
2206
- components
2729
+ components,
2730
+ isInsideEditor
2207
2731
  } = useContext(PageContext);
2208
2732
  const {
2209
2733
  acceptTypes,
@@ -2212,7 +2736,8 @@ function Container({
2212
2736
  pageContainers,
2213
2737
  path
2214
2738
  } = getContainersData(containers, containerRef);
2215
- const contentletsId = contentlets.map(contentlet => contentlet.identifier);
2739
+ const updatedContentlets = contentlets.length > 0 ? contentlets : [FAKE_CONTENLET];
2740
+ const contentletsId = updatedContentlets.map(contentlet => contentlet.identifier);
2216
2741
  const container = {
2217
2742
  acceptTypes,
2218
2743
  contentletsId,
@@ -2254,76 +2779,63 @@ function Container({
2254
2779
  }
2255
2780
  });
2256
2781
  }
2257
- return jsx("div", {
2782
+ const renderContentlets = updatedContentlets.map(contentlet => {
2783
+ var _viewAs$persona2;
2784
+ const ContentTypeComponent = components[contentlet.contentType] || NoContent;
2785
+ const Component = contentlet.identifier === 'TEMP_EMPTY_CONTENTLET' ? EmptyContainer : ContentTypeComponent;
2786
+ const contentletPayload = {
2787
+ container,
2788
+ contentlet: {
2789
+ identifier: contentlet.identifier,
2790
+ title: contentlet.widgetTitle || contentlet.title,
2791
+ inode: contentlet.inode
2792
+ },
2793
+ language_id: viewAs.language.id,
2794
+ pageContainers,
2795
+ pageId: page.identifier,
2796
+ personaTag: (_viewAs$persona2 = viewAs.persona) == null ? void 0 : _viewAs$persona2.keyTag
2797
+ };
2798
+ return isInsideEditor ? jsx("div", {
2799
+ onPointerEnter: onPointerEnterHandler,
2800
+ "data-dot": "contentlet",
2801
+ "data-content": JSON.stringify(contentletPayload),
2802
+ children: jsx(Component, Object.assign({}, contentlet))
2803
+ }, contentlet.identifier) : ( /*#__PURE__*/createElement$1(Component, Object.assign({}, contentlet, {
2804
+ key: contentlet.identifier
2805
+ })));
2806
+ });
2807
+ return isInsideEditor ? jsx("div", {
2258
2808
  "data-dot": "container",
2259
2809
  "data-content": JSON.stringify(containerPayload),
2260
- children: contentlets.map(contentlet => {
2261
- var _viewAs$persona2;
2262
- const Component = components[contentlet.contentType] || NoContent;
2263
- const contentletPayload = {
2264
- container,
2265
- contentlet: {
2266
- identifier: contentlet.identifier,
2267
- title: contentlet.widgetTitle || contentlet.title,
2268
- inode: contentlet.inode
2269
- },
2270
- language_id: viewAs.language.id,
2271
- pageContainers,
2272
- pageId: page.identifier,
2273
- personaTag: (_viewAs$persona2 = viewAs.persona) == null ? void 0 : _viewAs$persona2.keyTag
2274
- };
2275
- return jsx("div", {
2276
- onPointerEnter: onPointerEnterHandler,
2277
- "data-dot": "contentlet",
2278
- "data-content": JSON.stringify(contentletPayload),
2279
- children: jsx(Component, Object.assign({}, contentlet))
2280
- }, contentlet.identifier);
2281
- })
2810
+ children: renderContentlets
2811
+ }) :
2812
+ // eslint-disable-next-line react/jsx-no-useless-fragment
2813
+ jsx(Fragment, {
2814
+ children: renderContentlets
2282
2815
  });
2283
2816
  }
2284
2817
 
2285
2818
  function Column({
2286
2819
  column
2287
2820
  }) {
2288
- const widthClassMap = {
2289
- 1: 'col-span-1',
2290
- 2: 'col-span-2',
2291
- 3: 'col-span-3',
2292
- 4: 'col-span-4',
2293
- 5: 'col-span-5',
2294
- 6: 'col-span-6',
2295
- 7: 'col-span-7',
2296
- 8: 'col-span-8',
2297
- 9: 'col-span-9',
2298
- 10: 'col-span-10',
2299
- 11: 'col-span-11',
2300
- 12: 'col-span-12'
2301
- };
2302
- const statrClassMap = {
2303
- 1: 'col-start-1',
2304
- 2: 'col-start-2',
2305
- 3: 'col-start-3',
2306
- 4: 'col-start-4',
2307
- 5: 'col-start-5',
2308
- 6: 'col-start-6',
2309
- 7: 'col-start-7',
2310
- 8: 'col-start-8',
2311
- 9: 'col-start-9',
2312
- 10: 'col-start-10',
2313
- 11: 'col-start-11',
2314
- 12: 'col-start-12'
2315
- };
2316
- const widthClass = widthClassMap[column.width];
2317
- const startClass = statrClassMap[column.leftOffset];
2318
- const combinedClasses = [styles[widthClass], styles[startClass], column.styleClass].filter(Boolean).join(' ');
2319
- return jsx("div", {
2320
- "data-dot": "column",
2321
- "data-testid": "column",
2821
+ const {
2822
+ isInsideEditor
2823
+ } = useContext(PageContext);
2824
+ const {
2825
+ widthClass,
2826
+ startClass
2827
+ } = getPositionStyleClasses(column.width, column.leftOffset);
2828
+ const combinedClasses = combineClasses([styles[widthClass], styles[startClass], column.styleClass]);
2829
+ const columnProps = isInsideEditor ? {
2830
+ 'data-dot': 'column',
2831
+ 'data-testid': 'column'
2832
+ } : {};
2833
+ return jsx("div", Object.assign({}, columnProps, {
2322
2834
  className: combinedClasses,
2323
2835
  children: column.containers.map(container => jsx(Container, {
2324
2836
  containerRef: container
2325
2837
  }, `${container.identifier}-${container.uuid}`))
2326
- });
2838
+ }));
2327
2839
  }
2328
2840
 
2329
2841
  /**
@@ -2334,19 +2846,24 @@ function Column({
2334
2846
  * @return {*}
2335
2847
  */
2336
2848
  const Row = /*#__PURE__*/forwardRef((props, ref) => {
2849
+ const {
2850
+ isInsideEditor
2851
+ } = useContext(PageContext);
2337
2852
  const {
2338
2853
  row
2339
2854
  } = props;
2340
- const combinedClasses = [styles$1.row, row.styleClass].filter(Boolean).join(' ');
2341
- return jsx("div", {
2342
- "data-testid": "row",
2343
- "data-dot": "row",
2344
- ref: ref,
2855
+ const combinedClasses = combineClasses([styles$1.row, row.styleClass]);
2856
+ const rowProps = isInsideEditor ? {
2857
+ 'data-dot': 'row',
2858
+ 'data-testid': 'row',
2859
+ ref
2860
+ } : {};
2861
+ return jsx("div", Object.assign({}, rowProps, {
2345
2862
  className: combinedClasses,
2346
2863
  children: row.columns.map((column, index) => jsx(Column, {
2347
2864
  column: column
2348
2865
  }, index))
2349
- });
2866
+ }));
2350
2867
  });
2351
2868
 
2352
2869
  /**
@@ -2361,12 +2878,16 @@ function DotcmsLayout(props) {
2361
2878
  const {
2362
2879
  entity
2363
2880
  } = props;
2364
- const rowsRef = usePageEditor({});
2881
+ const {
2882
+ rowsRef,
2883
+ isInsideEditor
2884
+ } = usePageEditor({});
2365
2885
  const addRowRef = el => {
2366
2886
  if (el && !rowsRef.current.includes(el)) {
2367
2887
  rowsRef.current.push(el);
2368
2888
  }
2369
2889
  };
2890
+ entity.isInsideEditor = isInsideEditor;
2370
2891
  return jsx(PageProvider, {
2371
2892
  entity: entity,
2372
2893
  children: entity.layout.body.rows.map((row, index) => jsx(Row, {