@opengeoweb/layer-select 9.30.0 → 9.32.0

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
@@ -2,13 +2,13 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default from 'react';
4
4
  import { useSelector, useDispatch } from 'react-redux';
5
- import { CustomIconButton, FilterListItem, ToolContainerDraggable, CustomAccordion, CustomToggleButton, CustomTooltip, SearchHighlight, SearchField, ToggleMenu } from '@opengeoweb/shared';
5
+ import { CustomIconButton, FilterOption, ToolContainerDraggable, CustomAccordion, CustomToggleButton, CustomTooltip, SearchHighlight, SearchField, ToggleMenu } from '@opengeoweb/shared';
6
6
  import { Filter, LayersAdd, Add, Cached, Edit, Visibility, Delete, Close, Copy } from '@opengeoweb/theme';
7
- import { uiTypes, serviceActions, selectorMemoizationOptions, serviceSelectors, uiActions, getUserAddedServices, setUserAddedServices, layerActions, uiSelectors, layerSelectors, useSetupDialog, mapSelectors, layerTypes } from '@opengeoweb/store';
7
+ import { uiTypes, serviceActions, selectorMemoizationOptions, serviceSelectors, getUserAddedServices, setUserAddedServices, uiActions, layerActions, uiSelectors, layerSelectors, useSetupDialog, mapSelectors, layerTypes } from '@opengeoweb/store';
8
8
  import { createEntityAdapter, createSlice, createSelector, createListenerMiddleware, isAnyOf } from '@reduxjs/toolkit';
9
9
  import { compact, countBy, partition } from 'lodash';
10
10
  import { Switch, Grid2, List, Box, Typography, Backdrop, CircularProgress, Button, ListItem, ListItemText, Dialog, DialogTitle, LinearProgress, DialogContent, InputAdornment, DialogActions } from '@mui/material';
11
- import i18n from 'i18next';
11
+ import 'i18next';
12
12
  import { useTranslation } from 'react-i18next';
13
13
  import { FixedSizeList } from 'react-window';
14
14
  import { getDimensionsList, LayerInfoButton } from '@opengeoweb/webmap-react';
@@ -179,7 +179,7 @@ var check = function (it) {
179
179
  };
180
180
 
181
181
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
182
- var global$f =
182
+ var globalThis_1 =
183
183
  // eslint-disable-next-line es/no-global-this -- safe
184
184
  check(typeof globalThis == 'object' && globalThis) ||
185
185
  check(typeof window == 'object' && window) ||
@@ -192,7 +192,7 @@ var global$f =
192
192
 
193
193
  var objectGetOwnPropertyDescriptor = {};
194
194
 
195
- var fails$i = function (exec) {
195
+ var fails$j = function (exec) {
196
196
  try {
197
197
  return !!exec();
198
198
  } catch (error) {
@@ -200,44 +200,44 @@ var fails$i = function (exec) {
200
200
  }
201
201
  };
202
202
 
203
- var fails$h = fails$i;
203
+ var fails$i = fails$j;
204
204
 
205
205
  // Detect IE8's incomplete defineProperty implementation
206
- var descriptors = !fails$h(function () {
206
+ var descriptors = !fails$i(function () {
207
207
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
208
208
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
209
209
  });
210
210
 
211
- var fails$g = fails$i;
211
+ var fails$h = fails$j;
212
212
 
213
- var functionBindNative = !fails$g(function () {
213
+ var functionBindNative = !fails$h(function () {
214
214
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
215
215
  var test = (function () { /* empty */ }).bind();
216
216
  // eslint-disable-next-line no-prototype-builtins -- safe
217
217
  return typeof test != 'function' || test.hasOwnProperty('prototype');
218
218
  });
219
219
 
220
- var NATIVE_BIND$2 = functionBindNative;
220
+ var NATIVE_BIND$3 = functionBindNative;
221
221
 
222
- var call$8 = Function.prototype.call;
222
+ var call$f = Function.prototype.call;
223
223
 
224
- var functionCall = NATIVE_BIND$2 ? call$8.bind(call$8) : function () {
225
- return call$8.apply(call$8, arguments);
224
+ var functionCall = NATIVE_BIND$3 ? call$f.bind(call$f) : function () {
225
+ return call$f.apply(call$f, arguments);
226
226
  };
227
227
 
228
228
  var objectPropertyIsEnumerable = {};
229
229
 
230
230
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
231
231
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
232
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
232
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
233
233
 
234
234
  // Nashorn ~ JDK8 bug
235
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
235
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
236
236
 
237
237
  // `Object.prototype.propertyIsEnumerable` method implementation
238
238
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
239
239
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
240
- var descriptor = getOwnPropertyDescriptor$1(this, V);
240
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
241
241
  return !!descriptor && descriptor.enumerable;
242
242
  } : $propertyIsEnumerable;
243
243
 
@@ -250,15 +250,15 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
250
250
  };
251
251
  };
252
252
 
253
- var NATIVE_BIND$1 = functionBindNative;
253
+ var NATIVE_BIND$2 = functionBindNative;
254
254
 
255
- var FunctionPrototype$1 = Function.prototype;
256
- var call$7 = FunctionPrototype$1.call;
257
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$7, call$7);
255
+ var FunctionPrototype$2 = Function.prototype;
256
+ var call$e = FunctionPrototype$2.call;
257
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$e, call$e);
258
258
 
259
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
259
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
260
260
  return function () {
261
- return call$7.apply(fn, arguments);
261
+ return call$e.apply(fn, arguments);
262
262
  };
263
263
  };
264
264
 
@@ -272,35 +272,35 @@ var classofRaw$2 = function (it) {
272
272
  };
273
273
 
274
274
  var uncurryThis$g = functionUncurryThis;
275
- var fails$f = fails$i;
276
- var classof$6 = classofRaw$2;
275
+ var fails$g = fails$j;
276
+ var classof$7 = classofRaw$2;
277
277
 
278
278
  var $Object$4 = Object;
279
279
  var split = uncurryThis$g(''.split);
280
280
 
281
281
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
282
- var indexedObject = fails$f(function () {
282
+ var indexedObject = fails$g(function () {
283
283
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
284
284
  // eslint-disable-next-line no-prototype-builtins -- safe
285
285
  return !$Object$4('z').propertyIsEnumerable(0);
286
286
  }) ? function (it) {
287
- return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
287
+ return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
288
288
  } : $Object$4;
289
289
 
290
290
  // we can't use just `it == null` since of `document.all` special case
291
291
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
292
- var isNullOrUndefined$2 = function (it) {
292
+ var isNullOrUndefined$4 = function (it) {
293
293
  return it === null || it === undefined;
294
294
  };
295
295
 
296
- var isNullOrUndefined$1 = isNullOrUndefined$2;
296
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
297
297
 
298
- var $TypeError$a = TypeError;
298
+ var $TypeError$g = TypeError;
299
299
 
300
300
  // `RequireObjectCoercible` abstract operation
301
301
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
302
302
  var requireObjectCoercible$4 = function (it) {
303
- if (isNullOrUndefined$1(it)) throw new $TypeError$a("Can't call method on " + it);
303
+ if (isNullOrUndefined$3(it)) throw new $TypeError$g("Can't call method on " + it);
304
304
  return it;
305
305
  };
306
306
 
@@ -318,41 +318,46 @@ var documentAll = typeof document == 'object' && document.all;
318
318
  // `IsCallable` abstract operation
319
319
  // https://tc39.es/ecma262/#sec-iscallable
320
320
  // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
321
- var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
321
+ var isCallable$k = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
322
322
  return typeof argument == 'function' || argument === documentAll;
323
323
  } : function (argument) {
324
324
  return typeof argument == 'function';
325
325
  };
326
326
 
327
- var isCallable$f = isCallable$g;
327
+ var isCallable$j = isCallable$k;
328
328
 
329
- var isObject$a = function (it) {
330
- return typeof it == 'object' ? it !== null : isCallable$f(it);
329
+ var isObject$c = function (it) {
330
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
331
331
  };
332
332
 
333
- var global$e = global$f;
334
- var isCallable$e = isCallable$g;
333
+ var globalThis$m = globalThis_1;
334
+ var isCallable$i = isCallable$k;
335
335
 
336
336
  var aFunction = function (argument) {
337
- return isCallable$e(argument) ? argument : undefined;
337
+ return isCallable$i(argument) ? argument : undefined;
338
338
  };
339
339
 
340
- var getBuiltIn$4 = function (namespace, method) {
341
- return arguments.length < 2 ? aFunction(global$e[namespace]) : global$e[namespace] && global$e[namespace][method];
340
+ var getBuiltIn$7 = function (namespace, method) {
341
+ return arguments.length < 2 ? aFunction(globalThis$m[namespace]) : globalThis$m[namespace] && globalThis$m[namespace][method];
342
342
  };
343
343
 
344
344
  var uncurryThis$f = functionUncurryThis;
345
345
 
346
346
  var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
347
347
 
348
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
348
+ var globalThis$l = globalThis_1;
349
+
350
+ var navigator$1 = globalThis$l.navigator;
351
+ var userAgent$7 = navigator$1 && navigator$1.userAgent;
352
+
353
+ var environmentUserAgent = userAgent$7 ? String(userAgent$7) : '';
349
354
 
350
- var global$d = global$f;
351
- var userAgent$2 = engineUserAgent;
355
+ var globalThis$k = globalThis_1;
356
+ var userAgent$6 = environmentUserAgent;
352
357
 
353
- var process = global$d.process;
354
- var Deno = global$d.Deno;
355
- var versions = process && process.versions || Deno && Deno.version;
358
+ var process$3 = globalThis$k.process;
359
+ var Deno$1 = globalThis$k.Deno;
360
+ var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
356
361
  var v8 = versions && versions.v8;
357
362
  var match, version;
358
363
 
@@ -365,25 +370,25 @@ if (v8) {
365
370
 
366
371
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
367
372
  // so check `userAgent` even if `.v8` exists, but 0
368
- if (!version && userAgent$2) {
369
- match = userAgent$2.match(/Edge\/(\d+)/);
373
+ if (!version && userAgent$6) {
374
+ match = userAgent$6.match(/Edge\/(\d+)/);
370
375
  if (!match || match[1] >= 74) {
371
- match = userAgent$2.match(/Chrome\/(\d+)/);
376
+ match = userAgent$6.match(/Chrome\/(\d+)/);
372
377
  if (match) version = +match[1];
373
378
  }
374
379
  }
375
380
 
376
- var engineV8Version = version;
381
+ var environmentV8Version = version;
377
382
 
378
383
  /* eslint-disable es/no-symbol -- required for testing */
379
- var V8_VERSION = engineV8Version;
380
- var fails$e = fails$i;
381
- var global$c = global$f;
384
+ var V8_VERSION$1 = environmentV8Version;
385
+ var fails$f = fails$j;
386
+ var globalThis$j = globalThis_1;
382
387
 
383
- var $String$5 = global$c.String;
388
+ var $String$5 = globalThis$j.String;
384
389
 
385
390
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
386
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
391
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function () {
387
392
  var symbol = Symbol('symbol detection');
388
393
  // Chrome 38 Symbol has incorrect toString conversion
389
394
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -391,19 +396,19 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(func
391
396
  // of course, fail.
392
397
  return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
393
398
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
394
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
399
+ !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
395
400
  });
396
401
 
397
402
  /* eslint-disable es/no-symbol -- required for testing */
398
403
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
399
404
 
400
- var useSymbolAsUid = NATIVE_SYMBOL$1
401
- && !Symbol.sham
402
- && typeof Symbol.iterator == 'symbol';
405
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
406
+ !Symbol.sham &&
407
+ typeof Symbol.iterator == 'symbol';
403
408
 
404
- var getBuiltIn$3 = getBuiltIn$4;
405
- var isCallable$d = isCallable$g;
406
- var isPrototypeOf = objectIsPrototypeOf;
409
+ var getBuiltIn$6 = getBuiltIn$7;
410
+ var isCallable$h = isCallable$k;
411
+ var isPrototypeOf$2 = objectIsPrototypeOf;
407
412
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
408
413
 
409
414
  var $Object$3 = Object;
@@ -411,13 +416,13 @@ var $Object$3 = Object;
411
416
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
412
417
  return typeof it == 'symbol';
413
418
  } : function (it) {
414
- var $Symbol = getBuiltIn$3('Symbol');
415
- return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$3(it));
419
+ var $Symbol = getBuiltIn$6('Symbol');
420
+ return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
416
421
  };
417
422
 
418
423
  var $String$4 = String;
419
424
 
420
- var tryToString$2 = function (argument) {
425
+ var tryToString$5 = function (argument) {
421
426
  try {
422
427
  return $String$4(argument);
423
428
  } catch (error) {
@@ -425,69 +430,69 @@ var tryToString$2 = function (argument) {
425
430
  }
426
431
  };
427
432
 
428
- var isCallable$c = isCallable$g;
429
- var tryToString$1 = tryToString$2;
433
+ var isCallable$g = isCallable$k;
434
+ var tryToString$4 = tryToString$5;
430
435
 
431
- var $TypeError$9 = TypeError;
436
+ var $TypeError$f = TypeError;
432
437
 
433
438
  // `Assert: IsCallable(argument) is true`
434
- var aCallable$6 = function (argument) {
435
- if (isCallable$c(argument)) return argument;
436
- throw new $TypeError$9(tryToString$1(argument) + ' is not a function');
439
+ var aCallable$b = function (argument) {
440
+ if (isCallable$g(argument)) return argument;
441
+ throw new $TypeError$f(tryToString$4(argument) + ' is not a function');
437
442
  };
438
443
 
439
- var aCallable$5 = aCallable$6;
440
- var isNullOrUndefined = isNullOrUndefined$2;
444
+ var aCallable$a = aCallable$b;
445
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
441
446
 
442
447
  // `GetMethod` abstract operation
443
448
  // https://tc39.es/ecma262/#sec-getmethod
444
- var getMethod$1 = function (V, P) {
449
+ var getMethod$3 = function (V, P) {
445
450
  var func = V[P];
446
- return isNullOrUndefined(func) ? undefined : aCallable$5(func);
451
+ return isNullOrUndefined$2(func) ? undefined : aCallable$a(func);
447
452
  };
448
453
 
449
- var call$6 = functionCall;
450
- var isCallable$b = isCallable$g;
451
- var isObject$9 = isObject$a;
454
+ var call$d = functionCall;
455
+ var isCallable$f = isCallable$k;
456
+ var isObject$b = isObject$c;
452
457
 
453
- var $TypeError$8 = TypeError;
458
+ var $TypeError$e = TypeError;
454
459
 
455
460
  // `OrdinaryToPrimitive` abstract operation
456
461
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
457
462
  var ordinaryToPrimitive$1 = function (input, pref) {
458
463
  var fn, val;
459
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$9(val = call$6(fn, input))) return val;
460
- if (isCallable$b(fn = input.valueOf) && !isObject$9(val = call$6(fn, input))) return val;
461
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$9(val = call$6(fn, input))) return val;
462
- throw new $TypeError$8("Can't convert object to primitive value");
464
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$b(val = call$d(fn, input))) return val;
465
+ if (isCallable$f(fn = input.valueOf) && !isObject$b(val = call$d(fn, input))) return val;
466
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$b(val = call$d(fn, input))) return val;
467
+ throw new $TypeError$e("Can't convert object to primitive value");
463
468
  };
464
469
 
465
470
  var sharedStore = {exports: {}};
466
471
 
467
- var global$b = global$f;
472
+ var globalThis$i = globalThis_1;
468
473
 
469
474
  // eslint-disable-next-line es/no-object-defineproperty -- safe
470
- var defineProperty$5 = Object.defineProperty;
475
+ var defineProperty$6 = Object.defineProperty;
471
476
 
472
477
  var defineGlobalProperty$3 = function (key, value) {
473
478
  try {
474
- defineProperty$5(global$b, key, { value: value, configurable: true, writable: true });
479
+ defineProperty$6(globalThis$i, key, { value: value, configurable: true, writable: true });
475
480
  } catch (error) {
476
- global$b[key] = value;
481
+ globalThis$i[key] = value;
477
482
  } return value;
478
483
  };
479
484
 
480
- var globalThis$1 = global$f;
485
+ var globalThis$h = globalThis_1;
481
486
  var defineGlobalProperty$2 = defineGlobalProperty$3;
482
487
 
483
488
  var SHARED = '__core-js_shared__';
484
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
489
+ var store$3 = sharedStore.exports = globalThis$h[SHARED] || defineGlobalProperty$2(SHARED, {});
485
490
 
486
491
  (store$3.versions || (store$3.versions = [])).push({
487
- version: '3.37.1',
492
+ version: '3.39.0',
488
493
  mode: 'global',
489
494
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
490
- license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
495
+ license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE',
491
496
  source: 'https://github.com/zloirock/core-js'
492
497
  });
493
498
 
@@ -531,46 +536,46 @@ var uid$2 = function (key) {
531
536
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
532
537
  };
533
538
 
534
- var global$a = global$f;
539
+ var globalThis$g = globalThis_1;
535
540
  var shared$3 = shared$4;
536
- var hasOwn$8 = hasOwnProperty_1;
541
+ var hasOwn$9 = hasOwnProperty_1;
537
542
  var uid$1 = uid$2;
538
543
  var NATIVE_SYMBOL = symbolConstructorDetection;
539
544
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
540
545
 
541
- var Symbol$1 = global$a.Symbol;
546
+ var Symbol$1 = globalThis$g.Symbol;
542
547
  var WellKnownSymbolsStore = shared$3('wks');
543
548
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
544
549
 
545
- var wellKnownSymbol$b = function (name) {
546
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
547
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
550
+ var wellKnownSymbol$h = function (name) {
551
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
552
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
548
553
  ? Symbol$1[name]
549
554
  : createWellKnownSymbol('Symbol.' + name);
550
555
  } return WellKnownSymbolsStore[name];
551
556
  };
552
557
 
553
- var call$5 = functionCall;
554
- var isObject$8 = isObject$a;
558
+ var call$c = functionCall;
559
+ var isObject$a = isObject$c;
555
560
  var isSymbol$1 = isSymbol$2;
556
- var getMethod = getMethod$1;
561
+ var getMethod$2 = getMethod$3;
557
562
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
558
- var wellKnownSymbol$a = wellKnownSymbol$b;
563
+ var wellKnownSymbol$g = wellKnownSymbol$h;
559
564
 
560
- var $TypeError$7 = TypeError;
561
- var TO_PRIMITIVE = wellKnownSymbol$a('toPrimitive');
565
+ var $TypeError$d = TypeError;
566
+ var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
562
567
 
563
568
  // `ToPrimitive` abstract operation
564
569
  // https://tc39.es/ecma262/#sec-toprimitive
565
570
  var toPrimitive$1 = function (input, pref) {
566
- if (!isObject$8(input) || isSymbol$1(input)) return input;
567
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
571
+ if (!isObject$a(input) || isSymbol$1(input)) return input;
572
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
568
573
  var result;
569
574
  if (exoticToPrim) {
570
575
  if (pref === undefined) pref = 'default';
571
- result = call$5(exoticToPrim, input, pref);
572
- if (!isObject$8(result) || isSymbol$1(result)) return result;
573
- throw new $TypeError$7("Can't convert object to primitive value");
576
+ result = call$c(exoticToPrim, input, pref);
577
+ if (!isObject$a(result) || isSymbol$1(result)) return result;
578
+ throw new $TypeError$d("Can't convert object to primitive value");
574
579
  }
575
580
  if (pref === undefined) pref = 'number';
576
581
  return ordinaryToPrimitive(input, pref);
@@ -586,36 +591,36 @@ var toPropertyKey$2 = function (argument) {
586
591
  return isSymbol(key) ? key : key + '';
587
592
  };
588
593
 
589
- var global$9 = global$f;
590
- var isObject$7 = isObject$a;
594
+ var globalThis$f = globalThis_1;
595
+ var isObject$9 = isObject$c;
591
596
 
592
- var document$1 = global$9.document;
597
+ var document$3 = globalThis$f.document;
593
598
  // typeof document.createElement is 'object' in old IE
594
- var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
599
+ var EXISTS$1 = isObject$9(document$3) && isObject$9(document$3.createElement);
595
600
 
596
601
  var documentCreateElement$2 = function (it) {
597
- return EXISTS$1 ? document$1.createElement(it) : {};
602
+ return EXISTS$1 ? document$3.createElement(it) : {};
598
603
  };
599
604
 
600
- var DESCRIPTORS$9 = descriptors;
601
- var fails$d = fails$i;
602
- var createElement = documentCreateElement$2;
605
+ var DESCRIPTORS$b = descriptors;
606
+ var fails$e = fails$j;
607
+ var createElement$1 = documentCreateElement$2;
603
608
 
604
609
  // Thanks to IE8 for its funny defineProperty
605
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$d(function () {
610
+ var ie8DomDefine = !DESCRIPTORS$b && !fails$e(function () {
606
611
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
607
- return Object.defineProperty(createElement('div'), 'a', {
612
+ return Object.defineProperty(createElement$1('div'), 'a', {
608
613
  get: function () { return 7; }
609
614
  }).a !== 7;
610
615
  });
611
616
 
612
- var DESCRIPTORS$8 = descriptors;
613
- var call$4 = functionCall;
617
+ var DESCRIPTORS$a = descriptors;
618
+ var call$b = functionCall;
614
619
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
615
620
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
616
621
  var toIndexedObject$4 = toIndexedObject$5;
617
622
  var toPropertyKey$1 = toPropertyKey$2;
618
- var hasOwn$7 = hasOwnProperty_1;
623
+ var hasOwn$8 = hasOwnProperty_1;
619
624
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
620
625
 
621
626
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -623,23 +628,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
623
628
 
624
629
  // `Object.getOwnPropertyDescriptor` method
625
630
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
626
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
631
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
627
632
  O = toIndexedObject$4(O);
628
633
  P = toPropertyKey$1(P);
629
634
  if (IE8_DOM_DEFINE$1) try {
630
635
  return $getOwnPropertyDescriptor$1(O, P);
631
636
  } catch (error) { /* empty */ }
632
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
637
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$b(propertyIsEnumerableModule$1.f, O, P), O[P]);
633
638
  };
634
639
 
635
640
  var objectDefineProperty = {};
636
641
 
637
- var DESCRIPTORS$7 = descriptors;
638
- var fails$c = fails$i;
642
+ var DESCRIPTORS$9 = descriptors;
643
+ var fails$d = fails$j;
639
644
 
640
645
  // V8 ~ Chrome 36-
641
646
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
642
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$c(function () {
647
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$d(function () {
643
648
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
644
649
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
645
650
  value: 42,
@@ -647,24 +652,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$c(function () {
647
652
  }).prototype !== 42;
648
653
  });
649
654
 
650
- var isObject$6 = isObject$a;
655
+ var isObject$8 = isObject$c;
651
656
 
652
657
  var $String$3 = String;
653
- var $TypeError$6 = TypeError;
658
+ var $TypeError$c = TypeError;
654
659
 
655
660
  // `Assert: Type(argument) is Object`
656
- var anObject$6 = function (argument) {
657
- if (isObject$6(argument)) return argument;
658
- throw new $TypeError$6($String$3(argument) + ' is not an object');
661
+ var anObject$b = function (argument) {
662
+ if (isObject$8(argument)) return argument;
663
+ throw new $TypeError$c($String$3(argument) + ' is not an object');
659
664
  };
660
665
 
661
- var DESCRIPTORS$6 = descriptors;
666
+ var DESCRIPTORS$8 = descriptors;
662
667
  var IE8_DOM_DEFINE = ie8DomDefine;
663
668
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
664
- var anObject$5 = anObject$6;
669
+ var anObject$a = anObject$b;
665
670
  var toPropertyKey = toPropertyKey$2;
666
671
 
667
- var $TypeError$5 = TypeError;
672
+ var $TypeError$b = TypeError;
668
673
  // eslint-disable-next-line es/no-object-defineproperty -- safe
669
674
  var $defineProperty = Object.defineProperty;
670
675
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -675,10 +680,10 @@ var WRITABLE = 'writable';
675
680
 
676
681
  // `Object.defineProperty` method
677
682
  // https://tc39.es/ecma262/#sec-object.defineproperty
678
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
679
- anObject$5(O);
683
+ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
684
+ anObject$a(O);
680
685
  P = toPropertyKey(P);
681
- anObject$5(Attributes);
686
+ anObject$a(Attributes);
682
687
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
683
688
  var current = $getOwnPropertyDescriptor(O, P);
684
689
  if (current && current[WRITABLE]) {
@@ -691,41 +696,41 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
691
696
  }
692
697
  } return $defineProperty(O, P, Attributes);
693
698
  } : $defineProperty : function defineProperty(O, P, Attributes) {
694
- anObject$5(O);
699
+ anObject$a(O);
695
700
  P = toPropertyKey(P);
696
- anObject$5(Attributes);
701
+ anObject$a(Attributes);
697
702
  if (IE8_DOM_DEFINE) try {
698
703
  return $defineProperty(O, P, Attributes);
699
704
  } catch (error) { /* empty */ }
700
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
705
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$b('Accessors not supported');
701
706
  if ('value' in Attributes) O[P] = Attributes.value;
702
707
  return O;
703
708
  };
704
709
 
705
- var DESCRIPTORS$5 = descriptors;
710
+ var DESCRIPTORS$7 = descriptors;
706
711
  var definePropertyModule$3 = objectDefineProperty;
707
712
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
708
713
 
709
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
714
+ var createNonEnumerableProperty$4 = DESCRIPTORS$7 ? function (object, key, value) {
710
715
  return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
711
716
  } : function (object, key, value) {
712
717
  object[key] = value;
713
718
  return object;
714
719
  };
715
720
 
716
- var makeBuiltIn$2 = {exports: {}};
721
+ var makeBuiltIn$3 = {exports: {}};
717
722
 
718
- var DESCRIPTORS$4 = descriptors;
719
- var hasOwn$6 = hasOwnProperty_1;
723
+ var DESCRIPTORS$6 = descriptors;
724
+ var hasOwn$7 = hasOwnProperty_1;
720
725
 
721
- var FunctionPrototype = Function.prototype;
726
+ var FunctionPrototype$1 = Function.prototype;
722
727
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
723
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
728
+ var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
724
729
 
725
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
730
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
726
731
  // additional protection from minified / mangled / dropped function names
727
732
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
728
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
733
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
729
734
 
730
735
  var functionName = {
731
736
  EXISTS: EXISTS,
@@ -734,26 +739,26 @@ var functionName = {
734
739
  };
735
740
 
736
741
  var uncurryThis$c = functionUncurryThis;
737
- var isCallable$a = isCallable$g;
742
+ var isCallable$e = isCallable$k;
738
743
  var store$1 = sharedStoreExports;
739
744
 
740
745
  var functionToString = uncurryThis$c(Function.toString);
741
746
 
742
747
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
743
- if (!isCallable$a(store$1.inspectSource)) {
748
+ if (!isCallable$e(store$1.inspectSource)) {
744
749
  store$1.inspectSource = function (it) {
745
750
  return functionToString(it);
746
751
  };
747
752
  }
748
753
 
749
- var inspectSource$2 = store$1.inspectSource;
754
+ var inspectSource$3 = store$1.inspectSource;
750
755
 
751
- var global$8 = global$f;
752
- var isCallable$9 = isCallable$g;
756
+ var globalThis$e = globalThis_1;
757
+ var isCallable$d = isCallable$k;
753
758
 
754
- var WeakMap$1 = global$8.WeakMap;
759
+ var WeakMap$1 = globalThis$e.WeakMap;
755
760
 
756
- var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
761
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
757
762
 
758
763
  var shared$2 = shared$4;
759
764
  var uid = uid$2;
@@ -767,28 +772,28 @@ var sharedKey$3 = function (key) {
767
772
  var hiddenKeys$4 = {};
768
773
 
769
774
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
770
- var global$7 = global$f;
771
- var isObject$5 = isObject$a;
775
+ var globalThis$d = globalThis_1;
776
+ var isObject$7 = isObject$c;
772
777
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
773
- var hasOwn$5 = hasOwnProperty_1;
778
+ var hasOwn$6 = hasOwnProperty_1;
774
779
  var shared$1 = sharedStoreExports;
775
780
  var sharedKey$2 = sharedKey$3;
776
781
  var hiddenKeys$3 = hiddenKeys$4;
777
782
 
778
783
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
779
- var TypeError$1 = global$7.TypeError;
780
- var WeakMap = global$7.WeakMap;
781
- var set, get, has;
784
+ var TypeError$2 = globalThis$d.TypeError;
785
+ var WeakMap = globalThis$d.WeakMap;
786
+ var set$1, get, has;
782
787
 
783
788
  var enforce = function (it) {
784
- return has(it) ? get(it) : set(it, {});
789
+ return has(it) ? get(it) : set$1(it, {});
785
790
  };
786
791
 
787
792
  var getterFor = function (TYPE) {
788
793
  return function (it) {
789
794
  var state;
790
- if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
791
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
795
+ if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
796
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
792
797
  } return state;
793
798
  };
794
799
  };
@@ -800,8 +805,8 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
800
805
  store.has = store.has;
801
806
  store.set = store.set;
802
807
  /* eslint-enable no-self-assign -- prototype methods protection */
803
- set = function (it, metadata) {
804
- if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
808
+ set$1 = function (it, metadata) {
809
+ if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
805
810
  metadata.facade = it;
806
811
  store.set(it, metadata);
807
812
  return metadata;
@@ -815,22 +820,22 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
815
820
  } else {
816
821
  var STATE = sharedKey$2('state');
817
822
  hiddenKeys$3[STATE] = true;
818
- set = function (it, metadata) {
819
- if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
823
+ set$1 = function (it, metadata) {
824
+ if (hasOwn$6(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
820
825
  metadata.facade = it;
821
826
  createNonEnumerableProperty$3(it, STATE, metadata);
822
827
  return metadata;
823
828
  };
824
829
  get = function (it) {
825
- return hasOwn$5(it, STATE) ? it[STATE] : {};
830
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
826
831
  };
827
832
  has = function (it) {
828
- return hasOwn$5(it, STATE);
833
+ return hasOwn$6(it, STATE);
829
834
  };
830
835
  }
831
836
 
832
837
  var internalState = {
833
- set: set,
838
+ set: set$1,
834
839
  get: get,
835
840
  has: has,
836
841
  enforce: enforce,
@@ -838,72 +843,72 @@ var internalState = {
838
843
  };
839
844
 
840
845
  var uncurryThis$b = functionUncurryThis;
841
- var fails$b = fails$i;
842
- var isCallable$8 = isCallable$g;
843
- var hasOwn$4 = hasOwnProperty_1;
844
- var DESCRIPTORS$3 = descriptors;
846
+ var fails$c = fails$j;
847
+ var isCallable$c = isCallable$k;
848
+ var hasOwn$5 = hasOwnProperty_1;
849
+ var DESCRIPTORS$5 = descriptors;
845
850
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
846
- var inspectSource$1 = inspectSource$2;
847
- var InternalStateModule$1 = internalState;
851
+ var inspectSource$2 = inspectSource$3;
852
+ var InternalStateModule$2 = internalState;
848
853
 
849
- var enforceInternalState = InternalStateModule$1.enforce;
850
- var getInternalState$2 = InternalStateModule$1.get;
854
+ var enforceInternalState = InternalStateModule$2.enforce;
855
+ var getInternalState$2 = InternalStateModule$2.get;
851
856
  var $String$2 = String;
852
857
  // eslint-disable-next-line es/no-object-defineproperty -- safe
853
- var defineProperty$4 = Object.defineProperty;
858
+ var defineProperty$5 = Object.defineProperty;
854
859
  var stringSlice$1 = uncurryThis$b(''.slice);
855
860
  var replace$1 = uncurryThis$b(''.replace);
856
861
  var join = uncurryThis$b([].join);
857
862
 
858
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$b(function () {
859
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
863
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$c(function () {
864
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
860
865
  });
861
866
 
862
867
  var TEMPLATE = String(String).split('String');
863
868
 
864
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
869
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
865
870
  if (stringSlice$1($String$2(name), 0, 7) === 'Symbol(') {
866
871
  name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
867
872
  }
868
873
  if (options && options.getter) name = 'get ' + name;
869
874
  if (options && options.setter) name = 'set ' + name;
870
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
871
- if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
875
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
876
+ if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
872
877
  else value.name = name;
873
878
  }
874
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
875
- defineProperty$4(value, 'length', { value: options.arity });
879
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
880
+ defineProperty$5(value, 'length', { value: options.arity });
876
881
  }
877
882
  try {
878
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
879
- if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
883
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
884
+ if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
880
885
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
881
886
  } else if (value.prototype) value.prototype = undefined;
882
887
  } catch (error) { /* empty */ }
883
888
  var state = enforceInternalState(value);
884
- if (!hasOwn$4(state, 'source')) {
889
+ if (!hasOwn$5(state, 'source')) {
885
890
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
886
891
  } return value;
887
892
  };
888
893
 
889
894
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
890
895
  // eslint-disable-next-line no-extend-native -- required
891
- Function.prototype.toString = makeBuiltIn$1(function toString() {
892
- return isCallable$8(this) && getInternalState$2(this).source || inspectSource$1(this);
896
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
897
+ return isCallable$c(this) && getInternalState$2(this).source || inspectSource$2(this);
893
898
  }, 'toString');
894
899
 
895
- var makeBuiltInExports = makeBuiltIn$2.exports;
900
+ var makeBuiltInExports = makeBuiltIn$3.exports;
896
901
 
897
- var isCallable$7 = isCallable$g;
902
+ var isCallable$b = isCallable$k;
898
903
  var definePropertyModule$2 = objectDefineProperty;
899
- var makeBuiltIn = makeBuiltInExports;
904
+ var makeBuiltIn$1 = makeBuiltInExports;
900
905
  var defineGlobalProperty$1 = defineGlobalProperty$3;
901
906
 
902
- var defineBuiltIn$3 = function (O, key, value, options) {
907
+ var defineBuiltIn$5 = function (O, key, value, options) {
903
908
  if (!options) options = {};
904
909
  var simple = options.enumerable;
905
910
  var name = options.name !== undefined ? options.name : key;
906
- if (isCallable$7(value)) makeBuiltIn(value, name, options);
911
+ if (isCallable$b(value)) makeBuiltIn$1(value, name, options);
907
912
  if (options.global) {
908
913
  if (simple) O[key] = value;
909
914
  else defineGlobalProperty$1(key, value);
@@ -973,19 +978,19 @@ var toLength = toLength$1;
973
978
 
974
979
  // `LengthOfArrayLike` abstract operation
975
980
  // https://tc39.es/ecma262/#sec-lengthofarraylike
976
- var lengthOfArrayLike$5 = function (obj) {
981
+ var lengthOfArrayLike$6 = function (obj) {
977
982
  return toLength(obj.length);
978
983
  };
979
984
 
980
985
  var toIndexedObject$3 = toIndexedObject$5;
981
986
  var toAbsoluteIndex = toAbsoluteIndex$1;
982
- var lengthOfArrayLike$4 = lengthOfArrayLike$5;
987
+ var lengthOfArrayLike$5 = lengthOfArrayLike$6;
983
988
 
984
989
  // `Array.prototype.{ indexOf, includes }` methods implementation
985
990
  var createMethod$1 = function (IS_INCLUDES) {
986
991
  return function ($this, el, fromIndex) {
987
992
  var O = toIndexedObject$3($this);
988
- var length = lengthOfArrayLike$4(O);
993
+ var length = lengthOfArrayLike$5(O);
989
994
  if (length === 0) return !IS_INCLUDES && -1;
990
995
  var index = toAbsoluteIndex(fromIndex, length);
991
996
  var value;
@@ -1012,7 +1017,7 @@ var arrayIncludes = {
1012
1017
  };
1013
1018
 
1014
1019
  var uncurryThis$a = functionUncurryThis;
1015
- var hasOwn$3 = hasOwnProperty_1;
1020
+ var hasOwn$4 = hasOwnProperty_1;
1016
1021
  var toIndexedObject$2 = toIndexedObject$5;
1017
1022
  var indexOf$1 = arrayIncludes.indexOf;
1018
1023
  var hiddenKeys$2 = hiddenKeys$4;
@@ -1024,9 +1029,9 @@ var objectKeysInternal = function (object, names) {
1024
1029
  var i = 0;
1025
1030
  var result = [];
1026
1031
  var key;
1027
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
1032
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$1(result, key);
1028
1033
  // Don't enum bug & hidden keys
1029
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
1034
+ while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
1030
1035
  ~indexOf$1(result, key) || push$1(result, key);
1031
1036
  }
1032
1037
  return result;
@@ -1060,22 +1065,22 @@ var objectGetOwnPropertySymbols = {};
1060
1065
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1061
1066
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1062
1067
 
1063
- var getBuiltIn$2 = getBuiltIn$4;
1068
+ var getBuiltIn$5 = getBuiltIn$7;
1064
1069
  var uncurryThis$9 = functionUncurryThis;
1065
1070
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1066
1071
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1067
- var anObject$4 = anObject$6;
1072
+ var anObject$9 = anObject$b;
1068
1073
 
1069
1074
  var concat$1 = uncurryThis$9([].concat);
1070
1075
 
1071
1076
  // all object keys, includes non-enumerable and symbols
1072
- var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1073
- var keys = getOwnPropertyNamesModule.f(anObject$4(it));
1077
+ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
1078
+ var keys = getOwnPropertyNamesModule.f(anObject$9(it));
1074
1079
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1075
1080
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1076
1081
  };
1077
1082
 
1078
- var hasOwn$2 = hasOwnProperty_1;
1083
+ var hasOwn$3 = hasOwnProperty_1;
1079
1084
  var ownKeys = ownKeys$1;
1080
1085
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1081
1086
  var definePropertyModule$1 = objectDefineProperty;
@@ -1086,42 +1091,42 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1086
1091
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1087
1092
  for (var i = 0; i < keys.length; i++) {
1088
1093
  var key = keys[i];
1089
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
1094
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1090
1095
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1091
1096
  }
1092
1097
  }
1093
1098
  };
1094
1099
 
1095
- var fails$a = fails$i;
1096
- var isCallable$6 = isCallable$g;
1100
+ var fails$b = fails$j;
1101
+ var isCallable$a = isCallable$k;
1097
1102
 
1098
1103
  var replacement = /#|\.prototype\./;
1099
1104
 
1100
- var isForced$1 = function (feature, detection) {
1105
+ var isForced$2 = function (feature, detection) {
1101
1106
  var value = data[normalize(feature)];
1102
1107
  return value === POLYFILL ? true
1103
1108
  : value === NATIVE ? false
1104
- : isCallable$6(detection) ? fails$a(detection)
1109
+ : isCallable$a(detection) ? fails$b(detection)
1105
1110
  : !!detection;
1106
1111
  };
1107
1112
 
1108
- var normalize = isForced$1.normalize = function (string) {
1113
+ var normalize = isForced$2.normalize = function (string) {
1109
1114
  return String(string).replace(replacement, '.').toLowerCase();
1110
1115
  };
1111
1116
 
1112
- var data = isForced$1.data = {};
1113
- var NATIVE = isForced$1.NATIVE = 'N';
1114
- var POLYFILL = isForced$1.POLYFILL = 'P';
1117
+ var data = isForced$2.data = {};
1118
+ var NATIVE = isForced$2.NATIVE = 'N';
1119
+ var POLYFILL = isForced$2.POLYFILL = 'P';
1115
1120
 
1116
- var isForced_1 = isForced$1;
1121
+ var isForced_1 = isForced$2;
1117
1122
 
1118
- var global$6 = global$f;
1119
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1123
+ var globalThis$c = globalThis_1;
1124
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1120
1125
  var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1121
- var defineBuiltIn$2 = defineBuiltIn$3;
1126
+ var defineBuiltIn$4 = defineBuiltIn$5;
1122
1127
  var defineGlobalProperty = defineGlobalProperty$3;
1123
1128
  var copyConstructorProperties = copyConstructorProperties$1;
1124
- var isForced = isForced_1;
1129
+ var isForced$1 = isForced_1;
1125
1130
 
1126
1131
  /*
1127
1132
  options.target - name of the target object
@@ -1144,19 +1149,19 @@ var _export = function (options, source) {
1144
1149
  var STATIC = options.stat;
1145
1150
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1146
1151
  if (GLOBAL) {
1147
- target = global$6;
1152
+ target = globalThis$c;
1148
1153
  } else if (STATIC) {
1149
- target = global$6[TARGET] || defineGlobalProperty(TARGET, {});
1154
+ target = globalThis$c[TARGET] || defineGlobalProperty(TARGET, {});
1150
1155
  } else {
1151
- target = global$6[TARGET] && global$6[TARGET].prototype;
1156
+ target = globalThis$c[TARGET] && globalThis$c[TARGET].prototype;
1152
1157
  }
1153
1158
  if (target) for (key in source) {
1154
1159
  sourceProperty = source[key];
1155
1160
  if (options.dontCallGetSet) {
1156
- descriptor = getOwnPropertyDescriptor(target, key);
1161
+ descriptor = getOwnPropertyDescriptor$1(target, key);
1157
1162
  targetProperty = descriptor && descriptor.value;
1158
1163
  } else targetProperty = target[key];
1159
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1164
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1160
1165
  // contained in target
1161
1166
  if (!FORCED && targetProperty !== undefined) {
1162
1167
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1166,104 +1171,27 @@ var _export = function (options, source) {
1166
1171
  if (options.sham || (targetProperty && targetProperty.sham)) {
1167
1172
  createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1168
1173
  }
1169
- defineBuiltIn$2(target, key, sourceProperty, options);
1174
+ defineBuiltIn$4(target, key, sourceProperty, options);
1170
1175
  }
1171
1176
  };
1172
1177
 
1173
- var internalObjectKeys = objectKeysInternal;
1174
- var enumBugKeys$1 = enumBugKeys$3;
1175
-
1176
- // `Object.keys` method
1177
- // https://tc39.es/ecma262/#sec-object.keys
1178
- // eslint-disable-next-line es/no-object-keys -- safe
1179
- var objectKeys$2 = Object.keys || function keys(O) {
1180
- return internalObjectKeys(O, enumBugKeys$1);
1181
- };
1182
-
1183
- var DESCRIPTORS$2 = descriptors;
1184
- var uncurryThis$8 = functionUncurryThis;
1185
- var call$3 = functionCall;
1186
- var fails$9 = fails$i;
1187
- var objectKeys$1 = objectKeys$2;
1188
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1189
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1178
+ var aCallable$9 = aCallable$b;
1190
1179
  var toObject$4 = toObject$6;
1191
1180
  var IndexedObject$1 = indexedObject;
1181
+ var lengthOfArrayLike$4 = lengthOfArrayLike$6;
1192
1182
 
1193
- // eslint-disable-next-line es/no-object-assign -- safe
1194
- var $assign = Object.assign;
1195
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1196
- var defineProperty$3 = Object.defineProperty;
1197
- var concat = uncurryThis$8([].concat);
1198
-
1199
- // `Object.assign` method
1200
- // https://tc39.es/ecma262/#sec-object.assign
1201
- var objectAssign = !$assign || fails$9(function () {
1202
- // should have correct order of operations (Edge bug)
1203
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1204
- enumerable: true,
1205
- get: function () {
1206
- defineProperty$3(this, 'b', {
1207
- value: 3,
1208
- enumerable: false
1209
- });
1210
- }
1211
- }), { b: 2 })).b !== 1) return true;
1212
- // should work with symbols and should have deterministic property order (V8 bug)
1213
- var A = {};
1214
- var B = {};
1215
- // eslint-disable-next-line es/no-symbol -- safe
1216
- var symbol = Symbol('assign detection');
1217
- var alphabet = 'abcdefghijklmnopqrst';
1218
- A[symbol] = 7;
1219
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1220
- return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1221
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1222
- var T = toObject$4(target);
1223
- var argumentsLength = arguments.length;
1224
- var index = 1;
1225
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1226
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1227
- while (argumentsLength > index) {
1228
- var S = IndexedObject$1(arguments[index++]);
1229
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1230
- var length = keys.length;
1231
- var j = 0;
1232
- var key;
1233
- while (length > j) {
1234
- key = keys[j++];
1235
- if (!DESCRIPTORS$2 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
1236
- }
1237
- } return T;
1238
- } : $assign;
1239
-
1240
- var $$8 = _export;
1241
- var assign = objectAssign;
1242
-
1243
- // `Object.assign` method
1244
- // https://tc39.es/ecma262/#sec-object.assign
1245
- // eslint-disable-next-line es/no-object-assign -- required for testing
1246
- $$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1247
- assign: assign
1248
- });
1249
-
1250
- var aCallable$4 = aCallable$6;
1251
- var toObject$3 = toObject$6;
1252
- var IndexedObject = indexedObject;
1253
- var lengthOfArrayLike$3 = lengthOfArrayLike$5;
1254
-
1255
- var $TypeError$4 = TypeError;
1183
+ var $TypeError$a = TypeError;
1256
1184
 
1257
1185
  var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
1258
1186
 
1259
1187
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
1260
1188
  var createMethod = function (IS_RIGHT) {
1261
1189
  return function (that, callbackfn, argumentsLength, memo) {
1262
- var O = toObject$3(that);
1263
- var self = IndexedObject(O);
1264
- var length = lengthOfArrayLike$3(O);
1265
- aCallable$4(callbackfn);
1266
- if (length === 0 && argumentsLength < 2) throw new $TypeError$4(REDUCE_EMPTY);
1190
+ var O = toObject$4(that);
1191
+ var self = IndexedObject$1(O);
1192
+ var length = lengthOfArrayLike$4(O);
1193
+ aCallable$9(callbackfn);
1194
+ if (length === 0 && argumentsLength < 2) throw new $TypeError$a(REDUCE_EMPTY);
1267
1195
  var index = IS_RIGHT ? length - 1 : 0;
1268
1196
  var i = IS_RIGHT ? -1 : 1;
1269
1197
  if (argumentsLength < 2) while (true) {
@@ -1274,7 +1202,7 @@ var createMethod = function (IS_RIGHT) {
1274
1202
  }
1275
1203
  index += i;
1276
1204
  if (IS_RIGHT ? index < 0 : length <= index) {
1277
- throw new $TypeError$4(REDUCE_EMPTY);
1205
+ throw new $TypeError$a(REDUCE_EMPTY);
1278
1206
  }
1279
1207
  }
1280
1208
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -1293,35 +1221,55 @@ var arrayReduce = {
1293
1221
  right: createMethod(true)
1294
1222
  };
1295
1223
 
1296
- var fails$8 = fails$i;
1224
+ var fails$a = fails$j;
1297
1225
 
1298
1226
  var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
1299
1227
  var method = [][METHOD_NAME];
1300
- return !!method && fails$8(function () {
1228
+ return !!method && fails$a(function () {
1301
1229
  // eslint-disable-next-line no-useless-call -- required for testing
1302
1230
  method.call(null, argument || function () { return 1; }, 1);
1303
1231
  });
1304
1232
  };
1305
1233
 
1306
- var global$5 = global$f;
1307
- var classof$5 = classofRaw$2;
1234
+ /* global Bun, Deno -- detection */
1235
+ var globalThis$b = globalThis_1;
1236
+ var userAgent$5 = environmentUserAgent;
1237
+ var classof$6 = classofRaw$2;
1238
+
1239
+ var userAgentStartsWith = function (string) {
1240
+ return userAgent$5.slice(0, string.length) === string;
1241
+ };
1242
+
1243
+ var environment = (function () {
1244
+ if (userAgentStartsWith('Bun/')) return 'BUN';
1245
+ if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
1246
+ if (userAgentStartsWith('Deno/')) return 'DENO';
1247
+ if (userAgentStartsWith('Node.js/')) return 'NODE';
1248
+ if (globalThis$b.Bun && typeof Bun.version == 'string') return 'BUN';
1249
+ if (globalThis$b.Deno && typeof Deno.version == 'object') return 'DENO';
1250
+ if (classof$6(globalThis$b.process) === 'process') return 'NODE';
1251
+ if (globalThis$b.window && globalThis$b.document) return 'BROWSER';
1252
+ return 'REST';
1253
+ })();
1308
1254
 
1309
- var engineIsNode = classof$5(global$5.process) === 'process';
1255
+ var ENVIRONMENT$1 = environment;
1310
1256
 
1311
- var $$7 = _export;
1257
+ var environmentIsNode = ENVIRONMENT$1 === 'NODE';
1258
+
1259
+ var $$e = _export;
1312
1260
  var $reduce = arrayReduce.left;
1313
1261
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
1314
- var CHROME_VERSION = engineV8Version;
1315
- var IS_NODE = engineIsNode;
1262
+ var CHROME_VERSION = environmentV8Version;
1263
+ var IS_NODE$3 = environmentIsNode;
1316
1264
 
1317
1265
  // Chrome 80-82 has a critical bug
1318
1266
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1319
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1267
+ var CHROME_BUG = !IS_NODE$3 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1320
1268
  var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
1321
1269
 
1322
1270
  // `Array.prototype.reduce` method
1323
1271
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
1324
- $$7({ target: 'Array', proto: true, forced: FORCED$1 }, {
1272
+ $$e({ target: 'Array', proto: true, forced: FORCED$1 }, {
1325
1273
  reduce: function reduce(callbackfn /* , initialValue */) {
1326
1274
  var length = arguments.length;
1327
1275
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
@@ -1330,20 +1278,30 @@ $$7({ target: 'Array', proto: true, forced: FORCED$1 }, {
1330
1278
 
1331
1279
  var objectDefineProperties = {};
1332
1280
 
1333
- var DESCRIPTORS$1 = descriptors;
1281
+ var internalObjectKeys = objectKeysInternal;
1282
+ var enumBugKeys$1 = enumBugKeys$3;
1283
+
1284
+ // `Object.keys` method
1285
+ // https://tc39.es/ecma262/#sec-object.keys
1286
+ // eslint-disable-next-line es/no-object-keys -- safe
1287
+ var objectKeys$2 = Object.keys || function keys(O) {
1288
+ return internalObjectKeys(O, enumBugKeys$1);
1289
+ };
1290
+
1291
+ var DESCRIPTORS$4 = descriptors;
1334
1292
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1335
1293
  var definePropertyModule = objectDefineProperty;
1336
- var anObject$3 = anObject$6;
1294
+ var anObject$8 = anObject$b;
1337
1295
  var toIndexedObject$1 = toIndexedObject$5;
1338
- var objectKeys = objectKeys$2;
1296
+ var objectKeys$1 = objectKeys$2;
1339
1297
 
1340
1298
  // `Object.defineProperties` method
1341
1299
  // https://tc39.es/ecma262/#sec-object.defineproperties
1342
1300
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1343
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1344
- anObject$3(O);
1301
+ objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1302
+ anObject$8(O);
1345
1303
  var props = toIndexedObject$1(Properties);
1346
- var keys = objectKeys(Properties);
1304
+ var keys = objectKeys$1(Properties);
1347
1305
  var length = keys.length;
1348
1306
  var index = 0;
1349
1307
  var key;
@@ -1351,16 +1309,16 @@ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
1351
1309
  return O;
1352
1310
  };
1353
1311
 
1354
- var getBuiltIn$1 = getBuiltIn$4;
1312
+ var getBuiltIn$4 = getBuiltIn$7;
1355
1313
 
1356
- var html$1 = getBuiltIn$1('document', 'documentElement');
1314
+ var html$2 = getBuiltIn$4('document', 'documentElement');
1357
1315
 
1358
1316
  /* global ActiveXObject -- old IE, WSH */
1359
- var anObject$2 = anObject$6;
1317
+ var anObject$7 = anObject$b;
1360
1318
  var definePropertiesModule = objectDefineProperties;
1361
1319
  var enumBugKeys = enumBugKeys$3;
1362
1320
  var hiddenKeys = hiddenKeys$4;
1363
- var html = html$1;
1321
+ var html$1 = html$2;
1364
1322
  var documentCreateElement$1 = documentCreateElement$2;
1365
1323
  var sharedKey$1 = sharedKey$3;
1366
1324
 
@@ -1381,7 +1339,8 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
1381
1339
  activeXDocument.write(scriptTag(''));
1382
1340
  activeXDocument.close();
1383
1341
  var temp = activeXDocument.parentWindow.Object;
1384
- activeXDocument = null; // avoid memory leak
1342
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1343
+ activeXDocument = null;
1385
1344
  return temp;
1386
1345
  };
1387
1346
 
@@ -1392,7 +1351,7 @@ var NullProtoObjectViaIFrame = function () {
1392
1351
  var JS = 'java' + SCRIPT + ':';
1393
1352
  var iframeDocument;
1394
1353
  iframe.style.display = 'none';
1395
- html.appendChild(iframe);
1354
+ html$1.appendChild(iframe);
1396
1355
  // https://github.com/zloirock/core-js/issues/475
1397
1356
  iframe.src = String(JS);
1398
1357
  iframeDocument = iframe.contentWindow.document;
@@ -1430,7 +1389,7 @@ hiddenKeys[IE_PROTO$1] = true;
1430
1389
  var objectCreate = Object.create || function create(O, Properties) {
1431
1390
  var result;
1432
1391
  if (O !== null) {
1433
- EmptyConstructor[PROTOTYPE] = anObject$2(O);
1392
+ EmptyConstructor[PROTOTYPE] = anObject$7(O);
1434
1393
  result = new EmptyConstructor();
1435
1394
  EmptyConstructor[PROTOTYPE] = null;
1436
1395
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -1439,17 +1398,17 @@ var objectCreate = Object.create || function create(O, Properties) {
1439
1398
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1440
1399
  };
1441
1400
 
1442
- var wellKnownSymbol$9 = wellKnownSymbol$b;
1401
+ var wellKnownSymbol$f = wellKnownSymbol$h;
1443
1402
  var create$2 = objectCreate;
1444
- var defineProperty$2 = objectDefineProperty.f;
1403
+ var defineProperty$4 = objectDefineProperty.f;
1445
1404
 
1446
- var UNSCOPABLES = wellKnownSymbol$9('unscopables');
1447
- var ArrayPrototype = Array.prototype;
1405
+ var UNSCOPABLES = wellKnownSymbol$f('unscopables');
1406
+ var ArrayPrototype$1 = Array.prototype;
1448
1407
 
1449
1408
  // Array.prototype[@@unscopables]
1450
1409
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1451
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
1452
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1410
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1411
+ defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
1453
1412
  configurable: true,
1454
1413
  value: create$2(null)
1455
1414
  });
@@ -1457,23 +1416,23 @@ if (ArrayPrototype[UNSCOPABLES] === undefined) {
1457
1416
 
1458
1417
  // add a key to Array.prototype[@@unscopables]
1459
1418
  var addToUnscopables$3 = function (key) {
1460
- ArrayPrototype[UNSCOPABLES][key] = true;
1419
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
1461
1420
  };
1462
1421
 
1463
- var $$6 = _export;
1422
+ var $$d = _export;
1464
1423
  var $includes = arrayIncludes.includes;
1465
- var fails$7 = fails$i;
1424
+ var fails$9 = fails$j;
1466
1425
  var addToUnscopables$2 = addToUnscopables$3;
1467
1426
 
1468
1427
  // FF99+ bug
1469
- var BROKEN_ON_SPARSE = fails$7(function () {
1428
+ var BROKEN_ON_SPARSE = fails$9(function () {
1470
1429
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
1471
1430
  return !Array(1).includes();
1472
1431
  });
1473
1432
 
1474
1433
  // `Array.prototype.includes` method
1475
1434
  // https://tc39.es/ecma262/#sec-array.prototype.includes
1476
- $$6({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1435
+ $$d({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1477
1436
  includes: function includes(el /* , fromIndex = 0 */) {
1478
1437
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1479
1438
  }
@@ -1482,32 +1441,32 @@ $$6({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1482
1441
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1483
1442
  addToUnscopables$2('includes');
1484
1443
 
1485
- var isObject$4 = isObject$a;
1486
- var classof$4 = classofRaw$2;
1487
- var wellKnownSymbol$8 = wellKnownSymbol$b;
1444
+ var isObject$6 = isObject$c;
1445
+ var classof$5 = classofRaw$2;
1446
+ var wellKnownSymbol$e = wellKnownSymbol$h;
1488
1447
 
1489
- var MATCH$1 = wellKnownSymbol$8('match');
1448
+ var MATCH$1 = wellKnownSymbol$e('match');
1490
1449
 
1491
1450
  // `IsRegExp` abstract operation
1492
1451
  // https://tc39.es/ecma262/#sec-isregexp
1493
1452
  var isRegexp = function (it) {
1494
1453
  var isRegExp;
1495
- return isObject$4(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) === 'RegExp');
1454
+ return isObject$6(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$5(it) === 'RegExp');
1496
1455
  };
1497
1456
 
1498
1457
  var isRegExp = isRegexp;
1499
1458
 
1500
- var $TypeError$3 = TypeError;
1459
+ var $TypeError$9 = TypeError;
1501
1460
 
1502
1461
  var notARegexp = function (it) {
1503
1462
  if (isRegExp(it)) {
1504
- throw new $TypeError$3("The method doesn't accept regular expressions");
1463
+ throw new $TypeError$9("The method doesn't accept regular expressions");
1505
1464
  } return it;
1506
1465
  };
1507
1466
 
1508
- var wellKnownSymbol$7 = wellKnownSymbol$b;
1467
+ var wellKnownSymbol$d = wellKnownSymbol$h;
1509
1468
 
1510
- var TO_STRING_TAG$2 = wellKnownSymbol$7('toStringTag');
1469
+ var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
1511
1470
  var test$1 = {};
1512
1471
 
1513
1472
  test$1[TO_STRING_TAG$2] = 'z';
@@ -1515,11 +1474,11 @@ test$1[TO_STRING_TAG$2] = 'z';
1515
1474
  var toStringTagSupport = String(test$1) === '[object z]';
1516
1475
 
1517
1476
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1518
- var isCallable$5 = isCallable$g;
1477
+ var isCallable$9 = isCallable$k;
1519
1478
  var classofRaw$1 = classofRaw$2;
1520
- var wellKnownSymbol$6 = wellKnownSymbol$b;
1479
+ var wellKnownSymbol$c = wellKnownSymbol$h;
1521
1480
 
1522
- var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1481
+ var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
1523
1482
  var $Object$1 = Object;
1524
1483
 
1525
1484
  // ES3 wrong here
@@ -1533,7 +1492,7 @@ var tryGet = function (it, key) {
1533
1492
  };
1534
1493
 
1535
1494
  // getting tag from ES6+ `Object.prototype.toString`
1536
- var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1495
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1537
1496
  var O, tag, result;
1538
1497
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1539
1498
  // @@toStringTag case
@@ -1541,21 +1500,21 @@ var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1541
1500
  // builtinTag case
1542
1501
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
1543
1502
  // ES3 arguments fallback
1544
- : (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1503
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
1545
1504
  };
1546
1505
 
1547
- var classof$2 = classof$3;
1506
+ var classof$3 = classof$4;
1548
1507
 
1549
1508
  var $String$1 = String;
1550
1509
 
1551
1510
  var toString$4 = function (argument) {
1552
- if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1511
+ if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1553
1512
  return $String$1(argument);
1554
1513
  };
1555
1514
 
1556
- var wellKnownSymbol$5 = wellKnownSymbol$b;
1515
+ var wellKnownSymbol$b = wellKnownSymbol$h;
1557
1516
 
1558
- var MATCH = wellKnownSymbol$5('match');
1517
+ var MATCH = wellKnownSymbol$b('match');
1559
1518
 
1560
1519
  var correctIsRegexpLogic = function (METHOD_NAME) {
1561
1520
  var regexp = /./;
@@ -1569,18 +1528,18 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
1569
1528
  } return false;
1570
1529
  };
1571
1530
 
1572
- var $$5 = _export;
1573
- var uncurryThis$7 = functionUncurryThis;
1531
+ var $$c = _export;
1532
+ var uncurryThis$8 = functionUncurryThis;
1574
1533
  var notARegExp = notARegexp;
1575
1534
  var requireObjectCoercible$1 = requireObjectCoercible$4;
1576
1535
  var toString$3 = toString$4;
1577
1536
  var correctIsRegExpLogic = correctIsRegexpLogic;
1578
1537
 
1579
- var stringIndexOf = uncurryThis$7(''.indexOf);
1538
+ var stringIndexOf = uncurryThis$8(''.indexOf);
1580
1539
 
1581
1540
  // `String.prototype.includes` method
1582
1541
  // https://tc39.es/ecma262/#sec-string.prototype.includes
1583
- $$5({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1542
+ $$c({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1584
1543
  includes: function includes(searchString /* , position = 0 */) {
1585
1544
  return !!~stringIndexOf(
1586
1545
  toString$3(requireObjectCoercible$1(this)),
@@ -1629,16 +1588,16 @@ const filterLayersFromService = (serviceId, services, filterIds, allFiltersActiv
1629
1588
  const searchStringArray = searchString.split(' ');
1630
1589
  return mapStoreService.layers.filter(layer => {
1631
1590
  return searchStringArray.every(search => {
1632
- var _a, _b, _c;
1591
+ var _layer$name, _layer$title, _layer$abstract;
1633
1592
  const searchLowercase = search.toLowerCase();
1634
1593
  const layerFilterIds = layer.path.map(group => getFilterId('groups', group)).concat(layer.keywords.map(keyword => getFilterId('keywords', keyword)));
1635
- const isFilterInLayer = (layerFilterIds === null || layerFilterIds === void 0 ? void 0 : layerFilterIds.some(id => {
1594
+ const isFilterInLayer = (layerFilterIds == null ? void 0 : layerFilterIds.some(id => {
1636
1595
  return filterIds.includes(id);
1637
1596
  })) || allFiltersActive;
1638
- const isSearchTextInLayerFilter = layerFilterIds === null || layerFilterIds === void 0 ? void 0 : layerFilterIds.some(filterId => filterId.toLowerCase().includes(searchLowercase));
1639
- const isSearchTextInLayerName = (_a = layer.name) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(searchLowercase);
1640
- const isSearchTextInLayerText = (_b = layer.title) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(searchLowercase);
1641
- const isSearchTextInLayerAbstract = (_c = layer.abstract) === null || _c === void 0 ? void 0 : _c.toLowerCase().includes(searchLowercase);
1597
+ const isSearchTextInLayerFilter = layerFilterIds == null ? void 0 : layerFilterIds.some(filterId => filterId.toLowerCase().includes(searchLowercase));
1598
+ const isSearchTextInLayerName = (_layer$name = layer.name) == null ? void 0 : _layer$name.toLowerCase().includes(searchLowercase);
1599
+ const isSearchTextInLayerText = (_layer$title = layer.title) == null ? void 0 : _layer$title.toLowerCase().includes(searchLowercase);
1600
+ const isSearchTextInLayerAbstract = (_layer$abstract = layer.abstract) == null ? void 0 : _layer$abstract.toLowerCase().includes(searchLowercase);
1642
1601
  const isSearchTextInServiceName = mapStoreService.name.toLowerCase().includes(searchLowercase);
1643
1602
  const isSearchTextInLayer = isSearchTextInLayerName || isSearchTextInLayerText || isSearchTextInLayerAbstract || isSearchTextInLayerFilter || isSearchTextInServiceName;
1644
1603
  return isFilterInLayer && isSearchTextInLayer;
@@ -1736,7 +1695,7 @@ const slice = createSlice({
1736
1695
  },
1737
1696
  disableActiveService: (draft, action) => {
1738
1697
  const activeServicesById = draft.filters.activeServices.entities;
1739
- const countPressedServices = Object.values(activeServicesById).filter(service => service === null || service === void 0 ? void 0 : service.enabled).length;
1698
+ const countPressedServices = Object.values(activeServicesById).filter(service => service == null ? void 0 : service.enabled).length;
1740
1699
  const isAllServicesGoingToBeDisabled = countPressedServices === 1;
1741
1700
  if (isAllServicesGoingToBeDisabled) {
1742
1701
  slice.caseReducers.enableAllActiveServices(draft);
@@ -1747,25 +1706,28 @@ const slice = createSlice({
1747
1706
  },
1748
1707
  toggleFilter: (draft, action) => {
1749
1708
  const {
1750
- filterIds
1709
+ filterId,
1710
+ only
1751
1711
  } = action.payload;
1752
- filterIds.forEach(filterId => {
1712
+ if (only) {
1713
+ Object.keys(draft.filters.filters.entities).forEach(filterId => {
1714
+ draft.filters.filters.entities[filterId].checked = false;
1715
+ });
1716
+ draft.filters.filters.entities[filterId].checked = true;
1717
+ } else {
1753
1718
  draft.filters.filters.entities[filterId].checked = !draft.filters.filters.entities[filterId].checked;
1754
- });
1719
+ }
1755
1720
  },
1756
- enableOnlyOneFilter: (draft, action) => {
1757
- const {
1758
- filterId
1759
- } = action.payload;
1721
+ toggleAllFilters: draft => {
1722
+ const allFiltersChecked = Object.values(draft.filters.filters.entities).every(filter => filter == null ? void 0 : filter.checked);
1760
1723
  draft.filters.filters.ids.forEach(filterId => {
1761
- draft.filters.filters.entities[filterId].checked = false;
1724
+ draft.filters.filters.entities[filterId].checked = !allFiltersChecked;
1762
1725
  });
1763
- draft.filters.filters.entities[filterId].checked = true;
1764
1726
  }
1765
1727
  },
1766
1728
  extraReducers: builder => {
1767
1729
  builder.addCase(serviceActions.serviceSetLayers, (draft, action) => {
1768
- var _a, _b;
1730
+ var _draft$filters$active;
1769
1731
  const {
1770
1732
  id: serviceId,
1771
1733
  serviceUrl,
@@ -1779,20 +1741,20 @@ const slice = createSlice({
1779
1741
  return;
1780
1742
  }
1781
1743
  const keywords = layers.reduce((keywords, layer) => {
1782
- var _a;
1783
1744
  if (layer.leaf) {
1784
- return keywords.concat((_a = layer.keywords) !== null && _a !== void 0 ? _a : []);
1745
+ var _layer$keywords;
1746
+ return keywords.concat((_layer$keywords = layer.keywords) != null ? _layer$keywords : []);
1785
1747
  }
1786
1748
  return keywords;
1787
1749
  }, []);
1788
1750
  const groups = layers.reduce((groups, layer) => {
1789
- var _a;
1790
1751
  if (layer.leaf) {
1791
- return groups.concat((_a = layer.path) !== null && _a !== void 0 ? _a : []);
1752
+ var _layer$path;
1753
+ return groups.concat((_layer$path = layer.path) != null ? _layer$path : []);
1792
1754
  }
1793
1755
  return groups;
1794
1756
  }, []);
1795
- if (!((_b = (_a = draft.filters.activeServices.entities[serviceId]) === null || _a === void 0 ? void 0 : _a.filterIds) === null || _b === void 0 ? void 0 : _b.length)) {
1757
+ if (!((_draft$filters$active = draft.filters.activeServices.entities[serviceId]) != null && (_draft$filters$active = _draft$filters$active.filterIds) != null && _draft$filters$active.length)) {
1796
1758
  // If the service has no filters yet, add them
1797
1759
  produceFilters(groups, 'groups', draft, layerSelectFilterAdapter);
1798
1760
  produceFilters(keywords, 'keywords', draft, layerSelectFilterAdapter);
@@ -1841,58 +1803,58 @@ const {
1841
1803
  } = slice;
1842
1804
  const layerSelectActions = slice.actions;
1843
1805
 
1844
- var classof$1 = classofRaw$2;
1806
+ var classof$2 = classofRaw$2;
1845
1807
 
1846
1808
  // `IsArray` abstract operation
1847
1809
  // https://tc39.es/ecma262/#sec-isarray
1848
1810
  // eslint-disable-next-line es/no-array-isarray -- safe
1849
1811
  var isArray$2 = Array.isArray || function isArray(argument) {
1850
- return classof$1(argument) === 'Array';
1812
+ return classof$2(argument) === 'Array';
1851
1813
  };
1852
1814
 
1853
- var $TypeError$2 = TypeError;
1815
+ var $TypeError$8 = TypeError;
1854
1816
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1855
1817
 
1856
1818
  var doesNotExceedSafeInteger$1 = function (it) {
1857
- if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded');
1819
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$8('Maximum allowed index exceeded');
1858
1820
  return it;
1859
1821
  };
1860
1822
 
1861
1823
  var classofRaw = classofRaw$2;
1862
- var uncurryThis$6 = functionUncurryThis;
1824
+ var uncurryThis$7 = functionUncurryThis;
1863
1825
 
1864
1826
  var functionUncurryThisClause = function (fn) {
1865
1827
  // Nashorn bug:
1866
1828
  // https://github.com/zloirock/core-js/issues/1128
1867
1829
  // https://github.com/zloirock/core-js/issues/1130
1868
- if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
1830
+ if (classofRaw(fn) === 'Function') return uncurryThis$7(fn);
1869
1831
  };
1870
1832
 
1871
- var uncurryThis$5 = functionUncurryThisClause;
1872
- var aCallable$3 = aCallable$6;
1873
- var NATIVE_BIND = functionBindNative;
1833
+ var uncurryThis$6 = functionUncurryThisClause;
1834
+ var aCallable$8 = aCallable$b;
1835
+ var NATIVE_BIND$1 = functionBindNative;
1874
1836
 
1875
- var bind$1 = uncurryThis$5(uncurryThis$5.bind);
1837
+ var bind$5 = uncurryThis$6(uncurryThis$6.bind);
1876
1838
 
1877
1839
  // optional / simple context binding
1878
1840
  var functionBindContext = function (fn, that) {
1879
- aCallable$3(fn);
1880
- return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1841
+ aCallable$8(fn);
1842
+ return that === undefined ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function (/* ...args */) {
1881
1843
  return fn.apply(that, arguments);
1882
1844
  };
1883
1845
  };
1884
1846
 
1885
1847
  var isArray$1 = isArray$2;
1886
- var lengthOfArrayLike$2 = lengthOfArrayLike$5;
1848
+ var lengthOfArrayLike$3 = lengthOfArrayLike$6;
1887
1849
  var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1888
- var bind = functionBindContext;
1850
+ var bind$4 = functionBindContext;
1889
1851
 
1890
1852
  // `FlattenIntoArray` abstract operation
1891
1853
  // https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
1892
1854
  var flattenIntoArray$1 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
1893
1855
  var targetIndex = start;
1894
1856
  var sourceIndex = 0;
1895
- var mapFn = mapper ? bind(mapper, thisArg) : false;
1857
+ var mapFn = mapper ? bind$4(mapper, thisArg) : false;
1896
1858
  var element, elementLen;
1897
1859
 
1898
1860
  while (sourceIndex < sourceLen) {
@@ -1900,7 +1862,7 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
1900
1862
  element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
1901
1863
 
1902
1864
  if (depth > 0 && isArray$1(element)) {
1903
- elementLen = lengthOfArrayLike$2(element);
1865
+ elementLen = lengthOfArrayLike$3(element);
1904
1866
  targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
1905
1867
  } else {
1906
1868
  doesNotExceedSafeInteger(targetIndex + 1);
@@ -1916,21 +1878,21 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
1916
1878
 
1917
1879
  var flattenIntoArray_1 = flattenIntoArray$1;
1918
1880
 
1919
- var uncurryThis$4 = functionUncurryThis;
1920
- var fails$6 = fails$i;
1921
- var isCallable$4 = isCallable$g;
1922
- var classof = classof$3;
1923
- var getBuiltIn = getBuiltIn$4;
1924
- var inspectSource = inspectSource$2;
1881
+ var uncurryThis$5 = functionUncurryThis;
1882
+ var fails$8 = fails$j;
1883
+ var isCallable$8 = isCallable$k;
1884
+ var classof$1 = classof$4;
1885
+ var getBuiltIn$3 = getBuiltIn$7;
1886
+ var inspectSource$1 = inspectSource$3;
1925
1887
 
1926
1888
  var noop = function () { /* empty */ };
1927
- var construct = getBuiltIn('Reflect', 'construct');
1889
+ var construct = getBuiltIn$3('Reflect', 'construct');
1928
1890
  var constructorRegExp = /^\s*(?:class|function)\b/;
1929
- var exec$1 = uncurryThis$4(constructorRegExp.exec);
1891
+ var exec$1 = uncurryThis$5(constructorRegExp.exec);
1930
1892
  var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
1931
1893
 
1932
1894
  var isConstructorModern = function isConstructor(argument) {
1933
- if (!isCallable$4(argument)) return false;
1895
+ if (!isCallable$8(argument)) return false;
1934
1896
  try {
1935
1897
  construct(noop, [], argument);
1936
1898
  return true;
@@ -1940,8 +1902,8 @@ var isConstructorModern = function isConstructor(argument) {
1940
1902
  };
1941
1903
 
1942
1904
  var isConstructorLegacy = function isConstructor(argument) {
1943
- if (!isCallable$4(argument)) return false;
1944
- switch (classof(argument)) {
1905
+ if (!isCallable$8(argument)) return false;
1906
+ switch (classof$1(argument)) {
1945
1907
  case 'AsyncFunction':
1946
1908
  case 'GeneratorFunction':
1947
1909
  case 'AsyncGeneratorFunction': return false;
@@ -1950,7 +1912,7 @@ var isConstructorLegacy = function isConstructor(argument) {
1950
1912
  // we can't check .prototype since constructors produced by .bind haven't it
1951
1913
  // `Function#toString` throws on some built-it function in some legacy engines
1952
1914
  // (for example, `DOMQuad` and similar in FF41-)
1953
- return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
1915
+ return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
1954
1916
  } catch (error) {
1955
1917
  return true;
1956
1918
  }
@@ -1960,7 +1922,7 @@ isConstructorLegacy.sham = true;
1960
1922
 
1961
1923
  // `IsConstructor` abstract operation
1962
1924
  // https://tc39.es/ecma262/#sec-isconstructor
1963
- var isConstructor$1 = !construct || fails$6(function () {
1925
+ var isConstructor$2 = !construct || fails$8(function () {
1964
1926
  var called;
1965
1927
  return isConstructorModern(isConstructorModern.call)
1966
1928
  || !isConstructorModern(Object)
@@ -1969,11 +1931,11 @@ var isConstructor$1 = !construct || fails$6(function () {
1969
1931
  }) ? isConstructorLegacy : isConstructorModern;
1970
1932
 
1971
1933
  var isArray = isArray$2;
1972
- var isConstructor = isConstructor$1;
1973
- var isObject$3 = isObject$a;
1974
- var wellKnownSymbol$4 = wellKnownSymbol$b;
1934
+ var isConstructor$1 = isConstructor$2;
1935
+ var isObject$5 = isObject$c;
1936
+ var wellKnownSymbol$a = wellKnownSymbol$h;
1975
1937
 
1976
- var SPECIES = wellKnownSymbol$4('species');
1938
+ var SPECIES$3 = wellKnownSymbol$a('species');
1977
1939
  var $Array = Array;
1978
1940
 
1979
1941
  // a part of `ArraySpeciesCreate` abstract operation
@@ -1983,9 +1945,9 @@ var arraySpeciesConstructor$1 = function (originalArray) {
1983
1945
  if (isArray(originalArray)) {
1984
1946
  C = originalArray.constructor;
1985
1947
  // cross-realm fallback
1986
- if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
1987
- else if (isObject$3(C)) {
1988
- C = C[SPECIES];
1948
+ if (isConstructor$1(C) && (C === $Array || isArray(C.prototype))) C = undefined;
1949
+ else if (isObject$5(C)) {
1950
+ C = C[SPECIES$3];
1989
1951
  if (C === null) C = undefined;
1990
1952
  }
1991
1953
  } return C === undefined ? $Array : C;
@@ -1999,21 +1961,21 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
1999
1961
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2000
1962
  };
2001
1963
 
2002
- var $$4 = _export;
1964
+ var $$b = _export;
2003
1965
  var flattenIntoArray = flattenIntoArray_1;
2004
- var aCallable$2 = aCallable$6;
2005
- var toObject$2 = toObject$6;
2006
- var lengthOfArrayLike$1 = lengthOfArrayLike$5;
1966
+ var aCallable$7 = aCallable$b;
1967
+ var toObject$3 = toObject$6;
1968
+ var lengthOfArrayLike$2 = lengthOfArrayLike$6;
2007
1969
  var arraySpeciesCreate = arraySpeciesCreate$1;
2008
1970
 
2009
1971
  // `Array.prototype.flatMap` method
2010
1972
  // https://tc39.es/ecma262/#sec-array.prototype.flatmap
2011
- $$4({ target: 'Array', proto: true }, {
1973
+ $$b({ target: 'Array', proto: true }, {
2012
1974
  flatMap: function flatMap(callbackfn /* , thisArg */) {
2013
- var O = toObject$2(this);
2014
- var sourceLen = lengthOfArrayLike$1(O);
1975
+ var O = toObject$3(this);
1976
+ var sourceLen = lengthOfArrayLike$2(O);
2015
1977
  var A;
2016
- aCallable$2(callbackfn);
1978
+ aCallable$7(callbackfn);
2017
1979
  A = arraySpeciesCreate(O, 0);
2018
1980
  A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2019
1981
  return A;
@@ -2022,18 +1984,18 @@ $$4({ target: 'Array', proto: true }, {
2022
1984
 
2023
1985
  var iterators = {};
2024
1986
 
2025
- var fails$5 = fails$i;
1987
+ var fails$7 = fails$j;
2026
1988
 
2027
- var correctPrototypeGetter = !fails$5(function () {
1989
+ var correctPrototypeGetter = !fails$7(function () {
2028
1990
  function F() { /* empty */ }
2029
1991
  F.prototype.constructor = null;
2030
1992
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
2031
1993
  return Object.getPrototypeOf(new F()) !== F.prototype;
2032
1994
  });
2033
1995
 
2034
- var hasOwn$1 = hasOwnProperty_1;
2035
- var isCallable$3 = isCallable$g;
2036
- var toObject$1 = toObject$6;
1996
+ var hasOwn$2 = hasOwnProperty_1;
1997
+ var isCallable$7 = isCallable$k;
1998
+ var toObject$2 = toObject$6;
2037
1999
  var sharedKey = sharedKey$3;
2038
2000
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2039
2001
 
@@ -2045,22 +2007,22 @@ var ObjectPrototype = $Object.prototype;
2045
2007
  // https://tc39.es/ecma262/#sec-object.getprototypeof
2046
2008
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
2047
2009
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
2048
- var object = toObject$1(O);
2049
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
2010
+ var object = toObject$2(O);
2011
+ if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
2050
2012
  var constructor = object.constructor;
2051
- if (isCallable$3(constructor) && object instanceof constructor) {
2013
+ if (isCallable$7(constructor) && object instanceof constructor) {
2052
2014
  return constructor.prototype;
2053
2015
  } return object instanceof $Object ? ObjectPrototype : null;
2054
2016
  };
2055
2017
 
2056
- var fails$4 = fails$i;
2057
- var isCallable$2 = isCallable$g;
2058
- var isObject$2 = isObject$a;
2018
+ var fails$6 = fails$j;
2019
+ var isCallable$6 = isCallable$k;
2020
+ var isObject$4 = isObject$c;
2059
2021
  var getPrototypeOf$1 = objectGetPrototypeOf;
2060
- var defineBuiltIn$1 = defineBuiltIn$3;
2061
- var wellKnownSymbol$3 = wellKnownSymbol$b;
2022
+ var defineBuiltIn$3 = defineBuiltIn$5;
2023
+ var wellKnownSymbol$9 = wellKnownSymbol$h;
2062
2024
 
2063
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
2025
+ var ITERATOR$5 = wellKnownSymbol$9('iterator');
2064
2026
  var BUGGY_SAFARI_ITERATORS$1 = false;
2065
2027
 
2066
2028
  // `%IteratorPrototype%` object
@@ -2078,18 +2040,18 @@ if ([].keys) {
2078
2040
  }
2079
2041
  }
2080
2042
 
2081
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$4(function () {
2043
+ var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$2) || fails$6(function () {
2082
2044
  var test = {};
2083
2045
  // FF44- legacy iterators case
2084
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
2046
+ return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
2085
2047
  });
2086
2048
 
2087
2049
  if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
2088
2050
 
2089
2051
  // `%IteratorPrototype%[@@iterator]()` method
2090
2052
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
2091
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
2092
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
2053
+ if (!isCallable$6(IteratorPrototype$2[ITERATOR$5])) {
2054
+ defineBuiltIn$3(IteratorPrototype$2, ITERATOR$5, function () {
2093
2055
  return this;
2094
2056
  });
2095
2057
  }
@@ -2099,64 +2061,64 @@ var iteratorsCore = {
2099
2061
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
2100
2062
  };
2101
2063
 
2102
- var defineProperty$1 = objectDefineProperty.f;
2103
- var hasOwn = hasOwnProperty_1;
2104
- var wellKnownSymbol$2 = wellKnownSymbol$b;
2064
+ var defineProperty$3 = objectDefineProperty.f;
2065
+ var hasOwn$1 = hasOwnProperty_1;
2066
+ var wellKnownSymbol$8 = wellKnownSymbol$h;
2105
2067
 
2106
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
2068
+ var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
2107
2069
 
2108
- var setToStringTag$3 = function (target, TAG, STATIC) {
2070
+ var setToStringTag$4 = function (target, TAG, STATIC) {
2109
2071
  if (target && !STATIC) target = target.prototype;
2110
- if (target && !hasOwn(target, TO_STRING_TAG)) {
2111
- defineProperty$1(target, TO_STRING_TAG, { configurable: true, value: TAG });
2072
+ if (target && !hasOwn$1(target, TO_STRING_TAG)) {
2073
+ defineProperty$3(target, TO_STRING_TAG, { configurable: true, value: TAG });
2112
2074
  }
2113
2075
  };
2114
2076
 
2115
2077
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
2116
2078
  var create$1 = objectCreate;
2117
2079
  var createPropertyDescriptor = createPropertyDescriptor$3;
2118
- var setToStringTag$2 = setToStringTag$3;
2119
- var Iterators$2 = iterators;
2080
+ var setToStringTag$3 = setToStringTag$4;
2081
+ var Iterators$4 = iterators;
2120
2082
 
2121
2083
  var returnThis$1 = function () { return this; };
2122
2084
 
2123
2085
  var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2124
2086
  var TO_STRING_TAG = NAME + ' Iterator';
2125
2087
  IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
2126
- setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
2127
- Iterators$2[TO_STRING_TAG] = returnThis$1;
2088
+ setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
2089
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
2128
2090
  return IteratorConstructor;
2129
2091
  };
2130
2092
 
2131
- var uncurryThis$3 = functionUncurryThis;
2132
- var aCallable$1 = aCallable$6;
2093
+ var uncurryThis$4 = functionUncurryThis;
2094
+ var aCallable$6 = aCallable$b;
2133
2095
 
2134
2096
  var functionUncurryThisAccessor = function (object, key, method) {
2135
2097
  try {
2136
2098
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2137
- return uncurryThis$3(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
2099
+ return uncurryThis$4(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
2138
2100
  } catch (error) { /* empty */ }
2139
2101
  };
2140
2102
 
2141
- var isObject$1 = isObject$a;
2103
+ var isObject$3 = isObject$c;
2142
2104
 
2143
2105
  var isPossiblePrototype$1 = function (argument) {
2144
- return isObject$1(argument) || argument === null;
2106
+ return isObject$3(argument) || argument === null;
2145
2107
  };
2146
2108
 
2147
2109
  var isPossiblePrototype = isPossiblePrototype$1;
2148
2110
 
2149
2111
  var $String = String;
2150
- var $TypeError$1 = TypeError;
2112
+ var $TypeError$7 = TypeError;
2151
2113
 
2152
2114
  var aPossiblePrototype$1 = function (argument) {
2153
2115
  if (isPossiblePrototype(argument)) return argument;
2154
- throw new $TypeError$1("Can't set " + $String(argument) + ' as a prototype');
2116
+ throw new $TypeError$7("Can't set " + $String(argument) + ' as a prototype');
2155
2117
  };
2156
2118
 
2157
2119
  /* eslint-disable no-proto -- safe */
2158
2120
  var uncurryThisAccessor = functionUncurryThisAccessor;
2159
- var isObject = isObject$a;
2121
+ var isObject$2 = isObject$c;
2160
2122
  var requireObjectCoercible = requireObjectCoercible$4;
2161
2123
  var aPossiblePrototype = aPossiblePrototype$1;
2162
2124
 
@@ -2176,32 +2138,32 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
2176
2138
  return function setPrototypeOf(O, proto) {
2177
2139
  requireObjectCoercible(O);
2178
2140
  aPossiblePrototype(proto);
2179
- if (!isObject(O)) return O;
2141
+ if (!isObject$2(O)) return O;
2180
2142
  if (CORRECT_SETTER) setter(O, proto);
2181
2143
  else O.__proto__ = proto;
2182
2144
  return O;
2183
2145
  };
2184
2146
  }() : undefined);
2185
2147
 
2186
- var $$3 = _export;
2187
- var call$2 = functionCall;
2148
+ var $$a = _export;
2149
+ var call$a = functionCall;
2188
2150
  var FunctionName = functionName;
2189
- var isCallable$1 = isCallable$g;
2151
+ var isCallable$5 = isCallable$k;
2190
2152
  var createIteratorConstructor = iteratorCreateConstructor;
2191
2153
  var getPrototypeOf = objectGetPrototypeOf;
2192
- var setPrototypeOf = objectSetPrototypeOf;
2193
- var setToStringTag$1 = setToStringTag$3;
2154
+ var setPrototypeOf$1 = objectSetPrototypeOf;
2155
+ var setToStringTag$2 = setToStringTag$4;
2194
2156
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
2195
- var defineBuiltIn = defineBuiltIn$3;
2196
- var wellKnownSymbol$1 = wellKnownSymbol$b;
2197
- var Iterators$1 = iterators;
2157
+ var defineBuiltIn$2 = defineBuiltIn$5;
2158
+ var wellKnownSymbol$7 = wellKnownSymbol$h;
2159
+ var Iterators$3 = iterators;
2198
2160
  var IteratorsCore = iteratorsCore;
2199
2161
 
2200
2162
  var PROPER_FUNCTION_NAME = FunctionName.PROPER;
2201
2163
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
2202
2164
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
2203
2165
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2204
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
2166
+ var ITERATOR$4 = wellKnownSymbol$7('iterator');
2205
2167
  var KEYS = 'keys';
2206
2168
  var VALUES = 'values';
2207
2169
  var ENTRIES = 'entries';
@@ -2227,7 +2189,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
2227
2189
  var TO_STRING_TAG = NAME + ' Iterator';
2228
2190
  var INCORRECT_VALUES_NAME = false;
2229
2191
  var IterablePrototype = Iterable.prototype;
2230
- var nativeIterator = IterablePrototype[ITERATOR$1]
2192
+ var nativeIterator = IterablePrototype[ITERATOR$4]
2231
2193
  || IterablePrototype['@@iterator']
2232
2194
  || DEFAULT && IterablePrototype[DEFAULT];
2233
2195
  var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
@@ -2239,14 +2201,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
2239
2201
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
2240
2202
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
2241
2203
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
2242
- if (setPrototypeOf) {
2243
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
2244
- } else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$1])) {
2245
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
2204
+ if (setPrototypeOf$1) {
2205
+ setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
2206
+ } else if (!isCallable$5(CurrentIteratorPrototype[ITERATOR$4])) {
2207
+ defineBuiltIn$2(CurrentIteratorPrototype, ITERATOR$4, returnThis);
2246
2208
  }
2247
2209
  }
2248
2210
  // Set @@toStringTag to native iterators
2249
- setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
2211
+ setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
2250
2212
  }
2251
2213
  }
2252
2214
 
@@ -2256,7 +2218,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
2256
2218
  createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
2257
2219
  } else {
2258
2220
  INCORRECT_VALUES_NAME = true;
2259
- defaultIterator = function values() { return call$2(nativeIterator, this); };
2221
+ defaultIterator = function values() { return call$a(nativeIterator, this); };
2260
2222
  }
2261
2223
  }
2262
2224
 
@@ -2269,16 +2231,16 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
2269
2231
  };
2270
2232
  if (FORCED) for (KEY in methods) {
2271
2233
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2272
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
2234
+ defineBuiltIn$2(IterablePrototype, KEY, methods[KEY]);
2273
2235
  }
2274
- } else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2236
+ } else $$a({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2275
2237
  }
2276
2238
 
2277
2239
  // define iterator
2278
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
2279
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
2240
+ if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
2241
+ defineBuiltIn$2(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
2280
2242
  }
2281
- Iterators$1[NAME] = defaultIterator;
2243
+ Iterators$3[NAME] = defaultIterator;
2282
2244
 
2283
2245
  return methods;
2284
2246
  };
@@ -2291,16 +2253,16 @@ var createIterResultObject$1 = function (value, done) {
2291
2253
 
2292
2254
  var toIndexedObject = toIndexedObject$5;
2293
2255
  var addToUnscopables$1 = addToUnscopables$3;
2294
- var Iterators = iterators;
2295
- var InternalStateModule = internalState;
2296
- var defineProperty = objectDefineProperty.f;
2256
+ var Iterators$2 = iterators;
2257
+ var InternalStateModule$1 = internalState;
2258
+ var defineProperty$2 = objectDefineProperty.f;
2297
2259
  var defineIterator = iteratorDefine;
2298
2260
  var createIterResultObject = createIterResultObject$1;
2299
- var DESCRIPTORS = descriptors;
2261
+ var DESCRIPTORS$3 = descriptors;
2300
2262
 
2301
2263
  var ARRAY_ITERATOR = 'Array Iterator';
2302
- var setInternalState = InternalStateModule.set;
2303
- var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
2264
+ var setInternalState$1 = InternalStateModule$1.set;
2265
+ var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
2304
2266
 
2305
2267
  // `Array.prototype.entries` method
2306
2268
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -2313,7 +2275,7 @@ var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
2313
2275
  // `CreateArrayIterator` internal method
2314
2276
  // https://tc39.es/ecma262/#sec-createarrayiterator
2315
2277
  var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
2316
- setInternalState(this, {
2278
+ setInternalState$1(this, {
2317
2279
  type: ARRAY_ITERATOR,
2318
2280
  target: toIndexedObject(iterated), // target
2319
2281
  index: 0, // next index
@@ -2326,7 +2288,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
2326
2288
  var target = state.target;
2327
2289
  var index = state.index++;
2328
2290
  if (!target || index >= target.length) {
2329
- state.target = undefined;
2291
+ state.target = null;
2330
2292
  return createIterResultObject(undefined, true);
2331
2293
  }
2332
2294
  switch (state.kind) {
@@ -2338,7 +2300,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
2338
2300
  // argumentsList[@@iterator] is %ArrayProto_values%
2339
2301
  // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
2340
2302
  // https://tc39.es/ecma262/#sec-createmappedargumentsobject
2341
- var values = Iterators.Arguments = Iterators.Array;
2303
+ var values = Iterators$2.Arguments = Iterators$2.Array;
2342
2304
 
2343
2305
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2344
2306
  addToUnscopables$1('keys');
@@ -2346,23 +2308,23 @@ addToUnscopables$1('values');
2346
2308
  addToUnscopables$1('entries');
2347
2309
 
2348
2310
  // V8 ~ Chrome 45- bug
2349
- if (DESCRIPTORS && values.name !== 'values') try {
2350
- defineProperty(values, 'name', { value: 'values' });
2311
+ if (DESCRIPTORS$3 && values.name !== 'values') try {
2312
+ defineProperty$2(values, 'name', { value: 'values' });
2351
2313
  } catch (error) { /* empty */ }
2352
2314
 
2353
- var tryToString = tryToString$2;
2315
+ var tryToString$3 = tryToString$5;
2354
2316
 
2355
- var $TypeError = TypeError;
2317
+ var $TypeError$6 = TypeError;
2356
2318
 
2357
2319
  var deletePropertyOrThrow$1 = function (O, P) {
2358
- if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
2320
+ if (!delete O[P]) throw new $TypeError$6('Cannot delete property ' + tryToString$3(P) + ' of ' + tryToString$3(O));
2359
2321
  };
2360
2322
 
2361
- var uncurryThis$2 = functionUncurryThis;
2323
+ var uncurryThis$3 = functionUncurryThis;
2362
2324
 
2363
- var arraySlice$1 = uncurryThis$2([].slice);
2325
+ var arraySlice$2 = uncurryThis$3([].slice);
2364
2326
 
2365
- var arraySlice = arraySlice$1;
2327
+ var arraySlice$1 = arraySlice$2;
2366
2328
 
2367
2329
  var floor = Math.floor;
2368
2330
 
@@ -2385,8 +2347,8 @@ var sort = function (array, comparefn) {
2385
2347
  } else {
2386
2348
  // merge sort
2387
2349
  var middle = floor(length / 2);
2388
- var left = sort(arraySlice(array, 0, middle), comparefn);
2389
- var right = sort(arraySlice(array, middle), comparefn);
2350
+ var left = sort(arraySlice$1(array, 0, middle), comparefn);
2351
+ var right = sort(arraySlice$1(array, middle), comparefn);
2390
2352
  var llength = left.length;
2391
2353
  var rlength = right.length;
2392
2354
  var lindex = 0;
@@ -2404,53 +2366,53 @@ var sort = function (array, comparefn) {
2404
2366
 
2405
2367
  var arraySort = sort;
2406
2368
 
2407
- var userAgent$1 = engineUserAgent;
2369
+ var userAgent$4 = environmentUserAgent;
2408
2370
 
2409
- var firefox = userAgent$1.match(/firefox\/(\d+)/i);
2371
+ var firefox = userAgent$4.match(/firefox\/(\d+)/i);
2410
2372
 
2411
- var engineFfVersion = !!firefox && +firefox[1];
2373
+ var environmentFfVersion = !!firefox && +firefox[1];
2412
2374
 
2413
- var UA = engineUserAgent;
2375
+ var UA = environmentUserAgent;
2414
2376
 
2415
- var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
2377
+ var environmentIsIeOrEdge = /MSIE|Trident/.test(UA);
2416
2378
 
2417
- var userAgent = engineUserAgent;
2379
+ var userAgent$3 = environmentUserAgent;
2418
2380
 
2419
- var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
2381
+ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
2420
2382
 
2421
- var engineWebkitVersion = !!webkit && +webkit[1];
2383
+ var environmentWebkitVersion = !!webkit && +webkit[1];
2422
2384
 
2423
- var $$2 = _export;
2424
- var uncurryThis$1 = functionUncurryThis;
2425
- var aCallable = aCallable$6;
2426
- var toObject = toObject$6;
2427
- var lengthOfArrayLike = lengthOfArrayLike$5;
2385
+ var $$9 = _export;
2386
+ var uncurryThis$2 = functionUncurryThis;
2387
+ var aCallable$5 = aCallable$b;
2388
+ var toObject$1 = toObject$6;
2389
+ var lengthOfArrayLike$1 = lengthOfArrayLike$6;
2428
2390
  var deletePropertyOrThrow = deletePropertyOrThrow$1;
2429
2391
  var toString$2 = toString$4;
2430
- var fails$3 = fails$i;
2392
+ var fails$5 = fails$j;
2431
2393
  var internalSort = arraySort;
2432
2394
  var arrayMethodIsStrict = arrayMethodIsStrict$2;
2433
- var FF = engineFfVersion;
2434
- var IE_OR_EDGE = engineIsIeOrEdge;
2435
- var V8 = engineV8Version;
2436
- var WEBKIT = engineWebkitVersion;
2395
+ var FF = environmentFfVersion;
2396
+ var IE_OR_EDGE = environmentIsIeOrEdge;
2397
+ var V8 = environmentV8Version;
2398
+ var WEBKIT = environmentWebkitVersion;
2437
2399
 
2438
2400
  var test = [];
2439
- var nativeSort = uncurryThis$1(test.sort);
2440
- var push = uncurryThis$1(test.push);
2401
+ var nativeSort = uncurryThis$2(test.sort);
2402
+ var push = uncurryThis$2(test.push);
2441
2403
 
2442
2404
  // IE8-
2443
- var FAILS_ON_UNDEFINED = fails$3(function () {
2405
+ var FAILS_ON_UNDEFINED = fails$5(function () {
2444
2406
  test.sort(undefined);
2445
2407
  });
2446
2408
  // V8 bug
2447
- var FAILS_ON_NULL = fails$3(function () {
2409
+ var FAILS_ON_NULL = fails$5(function () {
2448
2410
  test.sort(null);
2449
2411
  });
2450
2412
  // Old WebKit
2451
2413
  var STRICT_METHOD = arrayMethodIsStrict('sort');
2452
2414
 
2453
- var STABLE_SORT = !fails$3(function () {
2415
+ var STABLE_SORT = !fails$5(function () {
2454
2416
  // feature detection can be too slow, so check engines versions
2455
2417
  if (V8) return V8 < 70;
2456
2418
  if (FF && FF > 3) return;
@@ -2498,16 +2460,16 @@ var getSortCompare = function (comparefn) {
2498
2460
 
2499
2461
  // `Array.prototype.sort` method
2500
2462
  // https://tc39.es/ecma262/#sec-array.prototype.sort
2501
- $$2({ target: 'Array', proto: true, forced: FORCED }, {
2463
+ $$9({ target: 'Array', proto: true, forced: FORCED }, {
2502
2464
  sort: function sort(comparefn) {
2503
- if (comparefn !== undefined) aCallable(comparefn);
2465
+ if (comparefn !== undefined) aCallable$5(comparefn);
2504
2466
 
2505
- var array = toObject(this);
2467
+ var array = toObject$1(this);
2506
2468
 
2507
2469
  if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
2508
2470
 
2509
2471
  var items = [];
2510
- var arrayLength = lengthOfArrayLike(array);
2472
+ var arrayLength = lengthOfArrayLike$1(array);
2511
2473
  var itemsLength, index;
2512
2474
 
2513
2475
  for (index = 0; index < arrayLength; index++) {
@@ -2516,7 +2478,7 @@ $$2({ target: 'Array', proto: true, forced: FORCED }, {
2516
2478
 
2517
2479
  internalSort(items, getSortCompare(comparefn));
2518
2480
 
2519
- itemsLength = lengthOfArrayLike(items);
2481
+ itemsLength = lengthOfArrayLike$1(items);
2520
2482
  index = 0;
2521
2483
 
2522
2484
  while (index < itemsLength) array[index] = items[index++];
@@ -2533,6 +2495,73 @@ var addToUnscopables = addToUnscopables$3;
2533
2495
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2534
2496
  addToUnscopables('flatMap');
2535
2497
 
2498
+ var DESCRIPTORS$2 = descriptors;
2499
+ var uncurryThis$1 = functionUncurryThis;
2500
+ var call$9 = functionCall;
2501
+ var fails$4 = fails$j;
2502
+ var objectKeys = objectKeys$2;
2503
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2504
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2505
+ var toObject = toObject$6;
2506
+ var IndexedObject = indexedObject;
2507
+
2508
+ // eslint-disable-next-line es/no-object-assign -- safe
2509
+ var $assign = Object.assign;
2510
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2511
+ var defineProperty$1 = Object.defineProperty;
2512
+ var concat = uncurryThis$1([].concat);
2513
+
2514
+ // `Object.assign` method
2515
+ // https://tc39.es/ecma262/#sec-object.assign
2516
+ var objectAssign = !$assign || fails$4(function () {
2517
+ // should have correct order of operations (Edge bug)
2518
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
2519
+ enumerable: true,
2520
+ get: function () {
2521
+ defineProperty$1(this, 'b', {
2522
+ value: 3,
2523
+ enumerable: false
2524
+ });
2525
+ }
2526
+ }), { b: 2 })).b !== 1) return true;
2527
+ // should work with symbols and should have deterministic property order (V8 bug)
2528
+ var A = {};
2529
+ var B = {};
2530
+ // eslint-disable-next-line es/no-symbol -- safe
2531
+ var symbol = Symbol('assign detection');
2532
+ var alphabet = 'abcdefghijklmnopqrst';
2533
+ A[symbol] = 7;
2534
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2535
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
2536
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2537
+ var T = toObject(target);
2538
+ var argumentsLength = arguments.length;
2539
+ var index = 1;
2540
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2541
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
2542
+ while (argumentsLength > index) {
2543
+ var S = IndexedObject(arguments[index++]);
2544
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2545
+ var length = keys.length;
2546
+ var j = 0;
2547
+ var key;
2548
+ while (length > j) {
2549
+ key = keys[j++];
2550
+ if (!DESCRIPTORS$2 || call$9(propertyIsEnumerable, S, key)) T[key] = S[key];
2551
+ }
2552
+ } return T;
2553
+ } : $assign;
2554
+
2555
+ var $$8 = _export;
2556
+ var assign = objectAssign;
2557
+
2558
+ // `Object.assign` method
2559
+ // https://tc39.es/ecma262/#sec-object.assign
2560
+ // eslint-disable-next-line es/no-object-assign -- required for testing
2561
+ $$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2562
+ assign: assign
2563
+ });
2564
+
2536
2565
  // iterable DOM collections
2537
2566
  // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2538
2567
  var domIterables = {
@@ -2577,26 +2606,26 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
2577
2606
 
2578
2607
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2579
2608
 
2580
- var global$4 = global$f;
2609
+ var globalThis$a = globalThis_1;
2581
2610
  var DOMIterables = domIterables;
2582
2611
  var DOMTokenListPrototype = domTokenListPrototype;
2583
2612
  var ArrayIteratorMethods = es_array_iterator;
2584
2613
  var createNonEnumerableProperty = createNonEnumerableProperty$4;
2585
- var setToStringTag = setToStringTag$3;
2586
- var wellKnownSymbol = wellKnownSymbol$b;
2614
+ var setToStringTag$1 = setToStringTag$4;
2615
+ var wellKnownSymbol$6 = wellKnownSymbol$h;
2587
2616
 
2588
- var ITERATOR = wellKnownSymbol('iterator');
2617
+ var ITERATOR$3 = wellKnownSymbol$6('iterator');
2589
2618
  var ArrayValues = ArrayIteratorMethods.values;
2590
2619
 
2591
2620
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2592
2621
  if (CollectionPrototype) {
2593
2622
  // some Chrome versions have non-configurable methods on DOMTokenList
2594
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2595
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2623
+ if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
2624
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues);
2596
2625
  } catch (error) {
2597
- CollectionPrototype[ITERATOR] = ArrayValues;
2626
+ CollectionPrototype[ITERATOR$3] = ArrayValues;
2598
2627
  }
2599
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
2628
+ setToStringTag$1(CollectionPrototype, COLLECTION_NAME, true);
2600
2629
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2601
2630
  // some Chrome versions have non-configurable methods on DOMTokenList
2602
2631
  if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
@@ -2609,7 +2638,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2609
2638
  };
2610
2639
 
2611
2640
  for (var COLLECTION_NAME in DOMIterables) {
2612
- handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
2641
+ handlePrototype(globalThis$a[COLLECTION_NAME] && globalThis$a[COLLECTION_NAME].prototype, COLLECTION_NAME);
2613
2642
  }
2614
2643
 
2615
2644
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -2624,8 +2653,8 @@ const layerSelectStore = store => store && store.layerSelect ? store.layerSelect
2624
2653
  * @returns {array} returnType: string
2625
2654
  */
2626
2655
  const getSearchFilter = createSelector(layerSelectStore, store => {
2627
- var _a;
2628
- return ((_a = store === null || store === void 0 ? void 0 : store.filters) === null || _a === void 0 ? void 0 : _a.searchFilter) || '';
2656
+ var _store$filters;
2657
+ return (store == null || (_store$filters = store.filters) == null ? void 0 : _store$filters.searchFilter) || '';
2629
2658
  });
2630
2659
  /**
2631
2660
  * Returns active services array
@@ -2641,8 +2670,8 @@ const {
2641
2670
  selectById: getActiveServiceById,
2642
2671
  selectAll: getAllActiveServices
2643
2672
  } = layerSelectActiveServicesAdapter.getSelectors(store => {
2644
- var _a, _b;
2645
- return ((_b = (_a = store === null || store === void 0 ? void 0 : store.layerSelect) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.activeServices) || {
2673
+ var _store$layerSelect;
2674
+ return (store == null || (_store$layerSelect = store.layerSelect) == null || (_store$layerSelect = _store$layerSelect.filters) == null ? void 0 : _store$layerSelect.activeServices) || {
2646
2675
  entities: {},
2647
2676
  ids: []
2648
2677
  };
@@ -2671,8 +2700,8 @@ const {
2671
2700
  selectIds: getAllFilterIdsEntity,
2672
2701
  selectById: getFilterById
2673
2702
  } = layerSelectFilterAdapter.getSelectors(store => {
2674
- var _a, _b;
2675
- return ((_b = (_a = store === null || store === void 0 ? void 0 : store.layerSelect) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.filters) || {
2703
+ var _store$layerSelect2;
2704
+ return (store == null || (_store$layerSelect2 = store.layerSelect) == null || (_store$layerSelect2 = _store$layerSelect2.filters) == null ? void 0 : _store$layerSelect2.filters) || {
2676
2705
  entities: {},
2677
2706
  ids: []
2678
2707
  };
@@ -2685,7 +2714,7 @@ const {
2685
2714
  * @returns {array} returnType: array of keyword ids that are checked
2686
2715
  */
2687
2716
  const getCheckedFilterIds = createSelector(getAllFilters, filters => {
2688
- return filters.filter(filter => filter === null || filter === void 0 ? void 0 : filter.checked).map(filter => filter.id);
2717
+ return filters.filter(filter => filter == null ? void 0 : filter.checked).map(filter => filter.id);
2689
2718
  }, selectorMemoizationOptions);
2690
2719
  const getFilters = createSelector(getAllActiveServices, getAllFilters, (services, filters) => {
2691
2720
  const enabledServices = services.filter(service => service.enabled);
@@ -2694,14 +2723,15 @@ const getFilters = createSelector(getAllActiveServices, getAllFilters, (services
2694
2723
  const countEachKeyword = countBy(keywords);
2695
2724
  const countEachGroup = countBy(groups);
2696
2725
  const filtersWithCount = filters.map(filter => {
2697
- var _a, _b;
2726
+ var _countEachKeyword$fil;
2698
2727
  if (filter.type === 'groups') {
2699
- return Object.assign(Object.assign({}, filter), {
2700
- amountVisible: (_a = countEachGroup[filter.name]) !== null && _a !== void 0 ? _a : 0
2728
+ var _countEachGroup$filte;
2729
+ return Object.assign({}, filter, {
2730
+ amountVisible: (_countEachGroup$filte = countEachGroup[filter.name]) != null ? _countEachGroup$filte : 0
2701
2731
  });
2702
2732
  }
2703
- return Object.assign(Object.assign({}, filter), {
2704
- amountVisible: (_b = countEachKeyword[filter.name]) !== null && _b !== void 0 ? _b : 0
2733
+ return Object.assign({}, filter, {
2734
+ amountVisible: (_countEachKeyword$fil = countEachKeyword[filter.name]) != null ? _countEachKeyword$fil : 0
2705
2735
  });
2706
2736
  });
2707
2737
  const [groupsWithCount, keywordsWithCount] = partition(filtersWithCount, filter => filter.type === 'groups');
@@ -2720,10 +2750,10 @@ const getFilters = createSelector(getAllActiveServices, getAllFilters, (services
2720
2750
  * @returns {array} returnType: boolean if all keywords are checked
2721
2751
  */
2722
2752
  const isAllFiltersChecked = createSelector(layerSelectStore, store => {
2723
- var _a, _b;
2724
- return (_b = (_a = store === null || store === void 0 ? void 0 : store.filters) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.ids.every(filterId => {
2725
- var _a, _b, _c;
2726
- return (_c = (_b = (_a = store === null || store === void 0 ? void 0 : store.filters) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.entities[filterId]) === null || _c === void 0 ? void 0 : _c.checked;
2753
+ var _store$filters2;
2754
+ return store == null || (_store$filters2 = store.filters) == null || (_store$filters2 = _store$filters2.filters) == null ? void 0 : _store$filters2.ids.every(filterId => {
2755
+ var _store$filters3;
2756
+ return store == null || (_store$filters3 = store.filters) == null || (_store$filters3 = _store$filters3.filters) == null || (_store$filters3 = _store$filters3.entities[filterId]) == null ? void 0 : _store$filters3.checked;
2727
2757
  });
2728
2758
  });
2729
2759
  /**
@@ -2734,7 +2764,7 @@ const isAllFiltersChecked = createSelector(layerSelectStore, store => {
2734
2764
  */
2735
2765
  const getFilteredLayers = createSelector([getEnabledServiceIds, serviceSelectors.getServices, getCheckedFilterIds, isAllFiltersChecked, getSearchFilter], (enabledServiceIds, servicesStore, checkedFilterIds, allFiltersActive, searchFilter) => {
2736
2766
  return enabledServiceIds.reduce((layerList, serviceId) => {
2737
- return layerList.concat(filterLayersFromService(serviceId, servicesStore, checkedFilterIds, allFiltersActive, searchFilter).map(layer => Object.assign(Object.assign({}, layer), {
2767
+ return layerList.concat(filterLayersFromService(serviceId, servicesStore, checkedFilterIds, allFiltersActive, searchFilter).map(layer => Object.assign({}, layer, {
2738
2768
  serviceName: serviceId
2739
2769
  })));
2740
2770
  }, []);
@@ -2747,8 +2777,8 @@ const getFilteredLayers = createSelector([getEnabledServiceIds, serviceSelectors
2747
2777
  * @returns {object} returnType: object of active service
2748
2778
  */
2749
2779
  const getServicePopupDetails = store => {
2750
- var _a;
2751
- return ((_a = store === null || store === void 0 ? void 0 : store.layerSelect) === null || _a === void 0 ? void 0 : _a.servicePopup) || initialServicePopupState;
2780
+ var _store$layerSelect3;
2781
+ return (store == null || (_store$layerSelect3 = store.layerSelect) == null ? void 0 : _store$layerSelect3.servicePopup) || initialServicePopupState;
2752
2782
  };
2753
2783
 
2754
2784
  var selectors = /*#__PURE__*/Object.freeze({
@@ -2793,72 +2823,1044 @@ var types = /*#__PURE__*/Object.freeze({
2793
2823
  __proto__: null
2794
2824
  });
2795
2825
 
2796
- /******************************************************************************
2797
- Copyright (c) Microsoft Corporation.
2798
-
2799
- Permission to use, copy, modify, and/or distribute this software for any
2800
- purpose with or without fee is hereby granted.
2801
-
2802
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2803
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2804
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2805
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2806
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2807
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2808
- PERFORMANCE OF THIS SOFTWARE.
2809
- ***************************************************************************** */
2810
- /* global Reflect, Promise, SuppressedError, Symbol */
2811
-
2812
-
2813
- function __rest(s, e) {
2814
- var t = {};
2815
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2816
- t[p] = s[p];
2817
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
2818
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2819
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2820
- t[p[i]] = s[p[i]];
2821
- }
2822
- return t;
2823
- }
2824
-
2825
- function __awaiter(thisArg, _arguments, P, generator) {
2826
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2827
- return new (P || (P = Promise))(function (resolve, reject) {
2828
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2829
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
2830
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
2831
- step((generator = generator.apply(thisArg, _arguments || [])).next());
2832
- });
2833
- }
2834
-
2835
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2836
- var e = new Error(message);
2837
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2826
+ var makeBuiltIn = makeBuiltInExports;
2827
+ var defineProperty = objectDefineProperty;
2828
+
2829
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
2830
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2831
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2832
+ return defineProperty.f(target, name, descriptor);
2833
+ };
2834
+
2835
+ var getBuiltIn$2 = getBuiltIn$7;
2836
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
2837
+ var wellKnownSymbol$5 = wellKnownSymbol$h;
2838
+ var DESCRIPTORS$1 = descriptors;
2839
+
2840
+ var SPECIES$2 = wellKnownSymbol$5('species');
2841
+
2842
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
2843
+ var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
2844
+
2845
+ if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
2846
+ defineBuiltInAccessor(Constructor, SPECIES$2, {
2847
+ configurable: true,
2848
+ get: function () { return this; }
2849
+ });
2850
+ }
2851
+ };
2852
+
2853
+ var isPrototypeOf$1 = objectIsPrototypeOf;
2854
+
2855
+ var $TypeError$5 = TypeError;
2856
+
2857
+ var anInstance$1 = function (it, Prototype) {
2858
+ if (isPrototypeOf$1(Prototype, it)) return it;
2859
+ throw new $TypeError$5('Incorrect invocation');
2860
+ };
2861
+
2862
+ var isConstructor = isConstructor$2;
2863
+ var tryToString$2 = tryToString$5;
2864
+
2865
+ var $TypeError$4 = TypeError;
2866
+
2867
+ // `Assert: IsConstructor(argument) is true`
2868
+ var aConstructor$1 = function (argument) {
2869
+ if (isConstructor(argument)) return argument;
2870
+ throw new $TypeError$4(tryToString$2(argument) + ' is not a constructor');
2871
+ };
2872
+
2873
+ var anObject$6 = anObject$b;
2874
+ var aConstructor = aConstructor$1;
2875
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
2876
+ var wellKnownSymbol$4 = wellKnownSymbol$h;
2877
+
2878
+ var SPECIES$1 = wellKnownSymbol$4('species');
2879
+
2880
+ // `SpeciesConstructor` abstract operation
2881
+ // https://tc39.es/ecma262/#sec-speciesconstructor
2882
+ var speciesConstructor$1 = function (O, defaultConstructor) {
2883
+ var C = anObject$6(O).constructor;
2884
+ var S;
2885
+ return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
2886
+ };
2887
+
2888
+ var NATIVE_BIND = functionBindNative;
2889
+
2890
+ var FunctionPrototype = Function.prototype;
2891
+ var apply$1 = FunctionPrototype.apply;
2892
+ var call$8 = FunctionPrototype.call;
2893
+
2894
+ // eslint-disable-next-line es/no-reflect -- safe
2895
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$8.bind(apply$1) : function () {
2896
+ return call$8.apply(apply$1, arguments);
2897
+ });
2898
+
2899
+ var $TypeError$3 = TypeError;
2900
+
2901
+ var validateArgumentsLength$1 = function (passed, required) {
2902
+ if (passed < required) throw new $TypeError$3('Not enough arguments');
2903
+ return passed;
2904
+ };
2905
+
2906
+ var userAgent$2 = environmentUserAgent;
2907
+
2908
+ // eslint-disable-next-line redos/no-vulnerable -- safe
2909
+ var environmentIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2910
+
2911
+ var globalThis$9 = globalThis_1;
2912
+ var apply = functionApply;
2913
+ var bind$3 = functionBindContext;
2914
+ var isCallable$4 = isCallable$k;
2915
+ var hasOwn = hasOwnProperty_1;
2916
+ var fails$3 = fails$j;
2917
+ var html = html$2;
2918
+ var arraySlice = arraySlice$2;
2919
+ var createElement = documentCreateElement$2;
2920
+ var validateArgumentsLength = validateArgumentsLength$1;
2921
+ var IS_IOS$1 = environmentIsIos;
2922
+ var IS_NODE$2 = environmentIsNode;
2923
+
2924
+ var set = globalThis$9.setImmediate;
2925
+ var clear = globalThis$9.clearImmediate;
2926
+ var process$2 = globalThis$9.process;
2927
+ var Dispatch = globalThis$9.Dispatch;
2928
+ var Function$1 = globalThis$9.Function;
2929
+ var MessageChannel = globalThis$9.MessageChannel;
2930
+ var String$1 = globalThis$9.String;
2931
+ var counter = 0;
2932
+ var queue$2 = {};
2933
+ var ONREADYSTATECHANGE = 'onreadystatechange';
2934
+ var $location, defer, channel, port;
2935
+
2936
+ fails$3(function () {
2937
+ // Deno throws a ReferenceError on `location` access without `--location` flag
2938
+ $location = globalThis$9.location;
2939
+ });
2940
+
2941
+ var run = function (id) {
2942
+ if (hasOwn(queue$2, id)) {
2943
+ var fn = queue$2[id];
2944
+ delete queue$2[id];
2945
+ fn();
2946
+ }
2947
+ };
2948
+
2949
+ var runner = function (id) {
2950
+ return function () {
2951
+ run(id);
2952
+ };
2953
+ };
2954
+
2955
+ var eventListener = function (event) {
2956
+ run(event.data);
2957
+ };
2958
+
2959
+ var globalPostMessageDefer = function (id) {
2960
+ // old engines have not location.origin
2961
+ globalThis$9.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2962
+ };
2963
+
2964
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2965
+ if (!set || !clear) {
2966
+ set = function setImmediate(handler) {
2967
+ validateArgumentsLength(arguments.length, 1);
2968
+ var fn = isCallable$4(handler) ? handler : Function$1(handler);
2969
+ var args = arraySlice(arguments, 1);
2970
+ queue$2[++counter] = function () {
2971
+ apply(fn, undefined, args);
2972
+ };
2973
+ defer(counter);
2974
+ return counter;
2975
+ };
2976
+ clear = function clearImmediate(id) {
2977
+ delete queue$2[id];
2978
+ };
2979
+ // Node.js 0.8-
2980
+ if (IS_NODE$2) {
2981
+ defer = function (id) {
2982
+ process$2.nextTick(runner(id));
2983
+ };
2984
+ // Sphere (JS game engine) Dispatch API
2985
+ } else if (Dispatch && Dispatch.now) {
2986
+ defer = function (id) {
2987
+ Dispatch.now(runner(id));
2988
+ };
2989
+ // Browsers with MessageChannel, includes WebWorkers
2990
+ // except iOS - https://github.com/zloirock/core-js/issues/624
2991
+ } else if (MessageChannel && !IS_IOS$1) {
2992
+ channel = new MessageChannel();
2993
+ port = channel.port2;
2994
+ channel.port1.onmessage = eventListener;
2995
+ defer = bind$3(port.postMessage, port);
2996
+ // Browsers with postMessage, skip WebWorkers
2997
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2998
+ } else if (
2999
+ globalThis$9.addEventListener &&
3000
+ isCallable$4(globalThis$9.postMessage) &&
3001
+ !globalThis$9.importScripts &&
3002
+ $location && $location.protocol !== 'file:' &&
3003
+ !fails$3(globalPostMessageDefer)
3004
+ ) {
3005
+ defer = globalPostMessageDefer;
3006
+ globalThis$9.addEventListener('message', eventListener, false);
3007
+ // IE8-
3008
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
3009
+ defer = function (id) {
3010
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
3011
+ html.removeChild(this);
3012
+ run(id);
3013
+ };
3014
+ };
3015
+ // Rest old browsers
3016
+ } else {
3017
+ defer = function (id) {
3018
+ setTimeout(runner(id), 0);
3019
+ };
3020
+ }
3021
+ }
3022
+
3023
+ var task$1 = {
3024
+ set: set,
3025
+ clear: clear
2838
3026
  };
2839
3027
 
3028
+ var globalThis$8 = globalThis_1;
3029
+ var DESCRIPTORS = descriptors;
3030
+
3031
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3032
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3033
+
3034
+ // Avoid NodeJS experimental warning
3035
+ var safeGetBuiltIn$1 = function (name) {
3036
+ if (!DESCRIPTORS) return globalThis$8[name];
3037
+ var descriptor = getOwnPropertyDescriptor(globalThis$8, name);
3038
+ return descriptor && descriptor.value;
3039
+ };
3040
+
3041
+ var Queue$2 = function () {
3042
+ this.head = null;
3043
+ this.tail = null;
3044
+ };
3045
+
3046
+ Queue$2.prototype = {
3047
+ add: function (item) {
3048
+ var entry = { item: item, next: null };
3049
+ var tail = this.tail;
3050
+ if (tail) tail.next = entry;
3051
+ else this.head = entry;
3052
+ this.tail = entry;
3053
+ },
3054
+ get: function () {
3055
+ var entry = this.head;
3056
+ if (entry) {
3057
+ var next = this.head = entry.next;
3058
+ if (next === null) this.tail = null;
3059
+ return entry.item;
3060
+ }
3061
+ }
3062
+ };
3063
+
3064
+ var queue$1 = Queue$2;
3065
+
3066
+ var userAgent$1 = environmentUserAgent;
3067
+
3068
+ var environmentIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
3069
+
3070
+ var userAgent = environmentUserAgent;
3071
+
3072
+ var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
3073
+
3074
+ var globalThis$7 = globalThis_1;
3075
+ var safeGetBuiltIn = safeGetBuiltIn$1;
3076
+ var bind$2 = functionBindContext;
3077
+ var macrotask = task$1.set;
3078
+ var Queue$1 = queue$1;
3079
+ var IS_IOS = environmentIsIos;
3080
+ var IS_IOS_PEBBLE = environmentIsIosPebble;
3081
+ var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
3082
+ var IS_NODE$1 = environmentIsNode;
3083
+
3084
+ var MutationObserver = globalThis$7.MutationObserver || globalThis$7.WebKitMutationObserver;
3085
+ var document$2 = globalThis$7.document;
3086
+ var process$1 = globalThis$7.process;
3087
+ var Promise$1 = globalThis$7.Promise;
3088
+ var microtask$1 = safeGetBuiltIn('queueMicrotask');
3089
+ var notify$1, toggle, node, promise, then;
3090
+
3091
+ // modern engines have queueMicrotask method
3092
+ if (!microtask$1) {
3093
+ var queue = new Queue$1();
3094
+
3095
+ var flush = function () {
3096
+ var parent, fn;
3097
+ if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
3098
+ while (fn = queue.get()) try {
3099
+ fn();
3100
+ } catch (error) {
3101
+ if (queue.head) notify$1();
3102
+ throw error;
3103
+ }
3104
+ if (parent) parent.enter();
3105
+ };
3106
+
3107
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
3108
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
3109
+ if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
3110
+ toggle = true;
3111
+ node = document$2.createTextNode('');
3112
+ new MutationObserver(flush).observe(node, { characterData: true });
3113
+ notify$1 = function () {
3114
+ node.data = toggle = !toggle;
3115
+ };
3116
+ // environments with maybe non-completely correct, but existent Promise
3117
+ } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
3118
+ // Promise.resolve without an argument throws an error in LG WebOS 2
3119
+ promise = Promise$1.resolve(undefined);
3120
+ // workaround of WebKit ~ iOS Safari 10.1 bug
3121
+ promise.constructor = Promise$1;
3122
+ then = bind$2(promise.then, promise);
3123
+ notify$1 = function () {
3124
+ then(flush);
3125
+ };
3126
+ // Node.js without promises
3127
+ } else if (IS_NODE$1) {
3128
+ notify$1 = function () {
3129
+ process$1.nextTick(flush);
3130
+ };
3131
+ // for other environments - macrotask based on:
3132
+ // - setImmediate
3133
+ // - MessageChannel
3134
+ // - window.postMessage
3135
+ // - onreadystatechange
3136
+ // - setTimeout
3137
+ } else {
3138
+ // `webpack` dev server bug on IE global methods - use bind(fn, global)
3139
+ macrotask = bind$2(macrotask, globalThis$7);
3140
+ notify$1 = function () {
3141
+ macrotask(flush);
3142
+ };
3143
+ }
3144
+
3145
+ microtask$1 = function (fn) {
3146
+ if (!queue.head) notify$1();
3147
+ queue.add(fn);
3148
+ };
3149
+ }
3150
+
3151
+ var microtask_1 = microtask$1;
3152
+
3153
+ var hostReportErrors$1 = function (a, b) {
3154
+ try {
3155
+ // eslint-disable-next-line no-console -- safe
3156
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
3157
+ } catch (error) { /* empty */ }
3158
+ };
3159
+
3160
+ var perform$3 = function (exec) {
3161
+ try {
3162
+ return { error: false, value: exec() };
3163
+ } catch (error) {
3164
+ return { error: true, value: error };
3165
+ }
3166
+ };
3167
+
3168
+ var globalThis$6 = globalThis_1;
3169
+
3170
+ var promiseNativeConstructor = globalThis$6.Promise;
3171
+
3172
+ var globalThis$5 = globalThis_1;
3173
+ var NativePromiseConstructor$3 = promiseNativeConstructor;
3174
+ var isCallable$3 = isCallable$k;
3175
+ var isForced = isForced_1;
3176
+ var inspectSource = inspectSource$3;
3177
+ var wellKnownSymbol$3 = wellKnownSymbol$h;
3178
+ var ENVIRONMENT = environment;
3179
+ var V8_VERSION = environmentV8Version;
3180
+
3181
+ NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
3182
+ var SPECIES = wellKnownSymbol$3('species');
3183
+ var SUBCLASSING = false;
3184
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(globalThis$5.PromiseRejectionEvent);
3185
+
3186
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
3187
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
3188
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
3189
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
3190
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
3191
+ // We can't detect it synchronously, so just check versions
3192
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
3193
+ // We can't use @@species feature detection in V8 since it causes
3194
+ // deoptimization and performance degradation
3195
+ // https://github.com/zloirock/core-js/issues/679
3196
+ if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
3197
+ // Detect correctness of subclassing with @@species support
3198
+ var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
3199
+ var FakePromise = function (exec) {
3200
+ exec(function () { /* empty */ }, function () { /* empty */ });
3201
+ };
3202
+ var constructor = promise.constructor = {};
3203
+ constructor[SPECIES] = FakePromise;
3204
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
3205
+ if (!SUBCLASSING) return true;
3206
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
3207
+ } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT$1;
3208
+ });
3209
+
3210
+ var promiseConstructorDetection = {
3211
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
3212
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
3213
+ SUBCLASSING: SUBCLASSING
3214
+ };
3215
+
3216
+ var newPromiseCapability$2 = {};
3217
+
3218
+ var aCallable$4 = aCallable$b;
3219
+
3220
+ var $TypeError$2 = TypeError;
3221
+
3222
+ var PromiseCapability = function (C) {
3223
+ var resolve, reject;
3224
+ this.promise = new C(function ($$resolve, $$reject) {
3225
+ if (resolve !== undefined || reject !== undefined) throw new $TypeError$2('Bad Promise constructor');
3226
+ resolve = $$resolve;
3227
+ reject = $$reject;
3228
+ });
3229
+ this.resolve = aCallable$4(resolve);
3230
+ this.reject = aCallable$4(reject);
3231
+ };
3232
+
3233
+ // `NewPromiseCapability` abstract operation
3234
+ // https://tc39.es/ecma262/#sec-newpromisecapability
3235
+ newPromiseCapability$2.f = function (C) {
3236
+ return new PromiseCapability(C);
3237
+ };
3238
+
3239
+ var $$7 = _export;
3240
+ var IS_NODE = environmentIsNode;
3241
+ var globalThis$4 = globalThis_1;
3242
+ var call$7 = functionCall;
3243
+ var defineBuiltIn$1 = defineBuiltIn$5;
3244
+ var setPrototypeOf = objectSetPrototypeOf;
3245
+ var setToStringTag = setToStringTag$4;
3246
+ var setSpecies = setSpecies$1;
3247
+ var aCallable$3 = aCallable$b;
3248
+ var isCallable$2 = isCallable$k;
3249
+ var isObject$1 = isObject$c;
3250
+ var anInstance = anInstance$1;
3251
+ var speciesConstructor = speciesConstructor$1;
3252
+ var task = task$1.set;
3253
+ var microtask = microtask_1;
3254
+ var hostReportErrors = hostReportErrors$1;
3255
+ var perform$2 = perform$3;
3256
+ var Queue = queue$1;
3257
+ var InternalStateModule = internalState;
3258
+ var NativePromiseConstructor$2 = promiseNativeConstructor;
3259
+ var PromiseConstructorDetection = promiseConstructorDetection;
3260
+ var newPromiseCapabilityModule$3 = newPromiseCapability$2;
3261
+
3262
+ var PROMISE = 'Promise';
3263
+ var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
3264
+ var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
3265
+ var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
3266
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
3267
+ var setInternalState = InternalStateModule.set;
3268
+ var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
3269
+ var PromiseConstructor = NativePromiseConstructor$2;
3270
+ var PromisePrototype = NativePromisePrototype$1;
3271
+ var TypeError$1 = globalThis$4.TypeError;
3272
+ var document$1 = globalThis$4.document;
3273
+ var process = globalThis$4.process;
3274
+ var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
3275
+ var newGenericPromiseCapability = newPromiseCapability$1;
3276
+
3277
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$4.dispatchEvent);
3278
+ var UNHANDLED_REJECTION = 'unhandledrejection';
3279
+ var REJECTION_HANDLED = 'rejectionhandled';
3280
+ var PENDING = 0;
3281
+ var FULFILLED = 1;
3282
+ var REJECTED = 2;
3283
+ var HANDLED = 1;
3284
+ var UNHANDLED = 2;
3285
+
3286
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
3287
+
3288
+ // helpers
3289
+ var isThenable = function (it) {
3290
+ var then;
3291
+ return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
3292
+ };
3293
+
3294
+ var callReaction = function (reaction, state) {
3295
+ var value = state.value;
3296
+ var ok = state.state === FULFILLED;
3297
+ var handler = ok ? reaction.ok : reaction.fail;
3298
+ var resolve = reaction.resolve;
3299
+ var reject = reaction.reject;
3300
+ var domain = reaction.domain;
3301
+ var result, then, exited;
3302
+ try {
3303
+ if (handler) {
3304
+ if (!ok) {
3305
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
3306
+ state.rejection = HANDLED;
3307
+ }
3308
+ if (handler === true) result = value;
3309
+ else {
3310
+ if (domain) domain.enter();
3311
+ result = handler(value); // can throw
3312
+ if (domain) {
3313
+ domain.exit();
3314
+ exited = true;
3315
+ }
3316
+ }
3317
+ if (result === reaction.promise) {
3318
+ reject(new TypeError$1('Promise-chain cycle'));
3319
+ } else if (then = isThenable(result)) {
3320
+ call$7(then, result, resolve, reject);
3321
+ } else resolve(result);
3322
+ } else reject(value);
3323
+ } catch (error) {
3324
+ if (domain && !exited) domain.exit();
3325
+ reject(error);
3326
+ }
3327
+ };
3328
+
3329
+ var notify = function (state, isReject) {
3330
+ if (state.notified) return;
3331
+ state.notified = true;
3332
+ microtask(function () {
3333
+ var reactions = state.reactions;
3334
+ var reaction;
3335
+ while (reaction = reactions.get()) {
3336
+ callReaction(reaction, state);
3337
+ }
3338
+ state.notified = false;
3339
+ if (isReject && !state.rejection) onUnhandled(state);
3340
+ });
3341
+ };
3342
+
3343
+ var dispatchEvent = function (name, promise, reason) {
3344
+ var event, handler;
3345
+ if (DISPATCH_EVENT) {
3346
+ event = document$1.createEvent('Event');
3347
+ event.promise = promise;
3348
+ event.reason = reason;
3349
+ event.initEvent(name, false, true);
3350
+ globalThis$4.dispatchEvent(event);
3351
+ } else event = { promise: promise, reason: reason };
3352
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$4['on' + name])) handler(event);
3353
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
3354
+ };
3355
+
3356
+ var onUnhandled = function (state) {
3357
+ call$7(task, globalThis$4, function () {
3358
+ var promise = state.facade;
3359
+ var value = state.value;
3360
+ var IS_UNHANDLED = isUnhandled(state);
3361
+ var result;
3362
+ if (IS_UNHANDLED) {
3363
+ result = perform$2(function () {
3364
+ if (IS_NODE) {
3365
+ process.emit('unhandledRejection', value, promise);
3366
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
3367
+ });
3368
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
3369
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
3370
+ if (result.error) throw result.value;
3371
+ }
3372
+ });
3373
+ };
3374
+
3375
+ var isUnhandled = function (state) {
3376
+ return state.rejection !== HANDLED && !state.parent;
3377
+ };
3378
+
3379
+ var onHandleUnhandled = function (state) {
3380
+ call$7(task, globalThis$4, function () {
3381
+ var promise = state.facade;
3382
+ if (IS_NODE) {
3383
+ process.emit('rejectionHandled', promise);
3384
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
3385
+ });
3386
+ };
3387
+
3388
+ var bind$1 = function (fn, state, unwrap) {
3389
+ return function (value) {
3390
+ fn(state, value, unwrap);
3391
+ };
3392
+ };
3393
+
3394
+ var internalReject = function (state, value, unwrap) {
3395
+ if (state.done) return;
3396
+ state.done = true;
3397
+ if (unwrap) state = unwrap;
3398
+ state.value = value;
3399
+ state.state = REJECTED;
3400
+ notify(state, true);
3401
+ };
3402
+
3403
+ var internalResolve = function (state, value, unwrap) {
3404
+ if (state.done) return;
3405
+ state.done = true;
3406
+ if (unwrap) state = unwrap;
3407
+ try {
3408
+ if (state.facade === value) throw new TypeError$1("Promise can't be resolved itself");
3409
+ var then = isThenable(value);
3410
+ if (then) {
3411
+ microtask(function () {
3412
+ var wrapper = { done: false };
3413
+ try {
3414
+ call$7(then, value,
3415
+ bind$1(internalResolve, wrapper, state),
3416
+ bind$1(internalReject, wrapper, state)
3417
+ );
3418
+ } catch (error) {
3419
+ internalReject(wrapper, error, state);
3420
+ }
3421
+ });
3422
+ } else {
3423
+ state.value = value;
3424
+ state.state = FULFILLED;
3425
+ notify(state, false);
3426
+ }
3427
+ } catch (error) {
3428
+ internalReject({ done: false }, error, state);
3429
+ }
3430
+ };
3431
+
3432
+ // constructor polyfill
3433
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3434
+ // 25.4.3.1 Promise(executor)
3435
+ PromiseConstructor = function Promise(executor) {
3436
+ anInstance(this, PromisePrototype);
3437
+ aCallable$3(executor);
3438
+ call$7(Internal, this);
3439
+ var state = getInternalPromiseState(this);
3440
+ try {
3441
+ executor(bind$1(internalResolve, state), bind$1(internalReject, state));
3442
+ } catch (error) {
3443
+ internalReject(state, error);
3444
+ }
3445
+ };
3446
+
3447
+ PromisePrototype = PromiseConstructor.prototype;
3448
+
3449
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
3450
+ Internal = function Promise(executor) {
3451
+ setInternalState(this, {
3452
+ type: PROMISE,
3453
+ done: false,
3454
+ notified: false,
3455
+ parent: false,
3456
+ reactions: new Queue(),
3457
+ rejection: false,
3458
+ state: PENDING,
3459
+ value: null
3460
+ });
3461
+ };
3462
+
3463
+ // `Promise.prototype.then` method
3464
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
3465
+ Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
3466
+ var state = getInternalPromiseState(this);
3467
+ var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
3468
+ state.parent = true;
3469
+ reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
3470
+ reaction.fail = isCallable$2(onRejected) && onRejected;
3471
+ reaction.domain = IS_NODE ? process.domain : undefined;
3472
+ if (state.state === PENDING) state.reactions.add(reaction);
3473
+ else microtask(function () {
3474
+ callReaction(reaction, state);
3475
+ });
3476
+ return reaction.promise;
3477
+ });
3478
+
3479
+ OwnPromiseCapability = function () {
3480
+ var promise = new Internal();
3481
+ var state = getInternalPromiseState(promise);
3482
+ this.promise = promise;
3483
+ this.resolve = bind$1(internalResolve, state);
3484
+ this.reject = bind$1(internalReject, state);
3485
+ };
3486
+
3487
+ newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
3488
+ return C === PromiseConstructor || C === PromiseWrapper
3489
+ ? new OwnPromiseCapability(C)
3490
+ : newGenericPromiseCapability(C);
3491
+ };
3492
+
3493
+ if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
3494
+ nativeThen = NativePromisePrototype$1.then;
3495
+
3496
+ if (!NATIVE_PROMISE_SUBCLASSING) {
3497
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
3498
+ defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
3499
+ var that = this;
3500
+ return new PromiseConstructor(function (resolve, reject) {
3501
+ call$7(nativeThen, that, resolve, reject);
3502
+ }).then(onFulfilled, onRejected);
3503
+ // https://github.com/zloirock/core-js/issues/640
3504
+ }, { unsafe: true });
3505
+ }
3506
+
3507
+ // make `.constructor === Promise` work for native promise-based APIs
3508
+ try {
3509
+ delete NativePromisePrototype$1.constructor;
3510
+ } catch (error) { /* empty */ }
3511
+
3512
+ // make `instanceof Promise` work for native promise-based APIs
3513
+ if (setPrototypeOf) {
3514
+ setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
3515
+ }
3516
+ }
3517
+ }
3518
+
3519
+ // `Promise` constructor
3520
+ // https://tc39.es/ecma262/#sec-promise-executor
3521
+ $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3522
+ Promise: PromiseConstructor
3523
+ });
3524
+
3525
+ setToStringTag(PromiseConstructor, PROMISE, false);
3526
+ setSpecies(PROMISE);
3527
+
3528
+ var wellKnownSymbol$2 = wellKnownSymbol$h;
3529
+ var Iterators$1 = iterators;
3530
+
3531
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
3532
+ var ArrayPrototype = Array.prototype;
3533
+
3534
+ // check on default Array iterator
3535
+ var isArrayIteratorMethod$1 = function (it) {
3536
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
3537
+ };
3538
+
3539
+ var classof = classof$4;
3540
+ var getMethod$1 = getMethod$3;
3541
+ var isNullOrUndefined = isNullOrUndefined$4;
3542
+ var Iterators = iterators;
3543
+ var wellKnownSymbol$1 = wellKnownSymbol$h;
3544
+
3545
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
3546
+
3547
+ var getIteratorMethod$2 = function (it) {
3548
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
3549
+ || getMethod$1(it, '@@iterator')
3550
+ || Iterators[classof(it)];
3551
+ };
3552
+
3553
+ var call$6 = functionCall;
3554
+ var aCallable$2 = aCallable$b;
3555
+ var anObject$5 = anObject$b;
3556
+ var tryToString$1 = tryToString$5;
3557
+ var getIteratorMethod$1 = getIteratorMethod$2;
3558
+
3559
+ var $TypeError$1 = TypeError;
3560
+
3561
+ var getIterator$1 = function (argument, usingIterator) {
3562
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
3563
+ if (aCallable$2(iteratorMethod)) return anObject$5(call$6(iteratorMethod, argument));
3564
+ throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
3565
+ };
3566
+
3567
+ var call$5 = functionCall;
3568
+ var anObject$4 = anObject$b;
3569
+ var getMethod = getMethod$3;
3570
+
3571
+ var iteratorClose$1 = function (iterator, kind, value) {
3572
+ var innerResult, innerError;
3573
+ anObject$4(iterator);
3574
+ try {
3575
+ innerResult = getMethod(iterator, 'return');
3576
+ if (!innerResult) {
3577
+ if (kind === 'throw') throw value;
3578
+ return value;
3579
+ }
3580
+ innerResult = call$5(innerResult, iterator);
3581
+ } catch (error) {
3582
+ innerError = true;
3583
+ innerResult = error;
3584
+ }
3585
+ if (kind === 'throw') throw value;
3586
+ if (innerError) throw innerResult;
3587
+ anObject$4(innerResult);
3588
+ return value;
3589
+ };
3590
+
3591
+ var bind = functionBindContext;
3592
+ var call$4 = functionCall;
3593
+ var anObject$3 = anObject$b;
3594
+ var tryToString = tryToString$5;
3595
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
3596
+ var lengthOfArrayLike = lengthOfArrayLike$6;
3597
+ var isPrototypeOf = objectIsPrototypeOf;
3598
+ var getIterator = getIterator$1;
3599
+ var getIteratorMethod = getIteratorMethod$2;
3600
+ var iteratorClose = iteratorClose$1;
3601
+
3602
+ var $TypeError = TypeError;
3603
+
3604
+ var Result = function (stopped, result) {
3605
+ this.stopped = stopped;
3606
+ this.result = result;
3607
+ };
3608
+
3609
+ var ResultPrototype = Result.prototype;
3610
+
3611
+ var iterate$2 = function (iterable, unboundFunction, options) {
3612
+ var that = options && options.that;
3613
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
3614
+ var IS_RECORD = !!(options && options.IS_RECORD);
3615
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
3616
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
3617
+ var fn = bind(unboundFunction, that);
3618
+ var iterator, iterFn, index, length, result, next, step;
3619
+
3620
+ var stop = function (condition) {
3621
+ if (iterator) iteratorClose(iterator, 'normal', condition);
3622
+ return new Result(true, condition);
3623
+ };
3624
+
3625
+ var callFn = function (value) {
3626
+ if (AS_ENTRIES) {
3627
+ anObject$3(value);
3628
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
3629
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
3630
+ };
3631
+
3632
+ if (IS_RECORD) {
3633
+ iterator = iterable.iterator;
3634
+ } else if (IS_ITERATOR) {
3635
+ iterator = iterable;
3636
+ } else {
3637
+ iterFn = getIteratorMethod(iterable);
3638
+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
3639
+ // optimisation for array iterators
3640
+ if (isArrayIteratorMethod(iterFn)) {
3641
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
3642
+ result = callFn(iterable[index]);
3643
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
3644
+ } return new Result(false);
3645
+ }
3646
+ iterator = getIterator(iterable, iterFn);
3647
+ }
3648
+
3649
+ next = IS_RECORD ? iterable.next : iterator.next;
3650
+ while (!(step = call$4(next, iterator)).done) {
3651
+ try {
3652
+ result = callFn(step.value);
3653
+ } catch (error) {
3654
+ iteratorClose(iterator, 'throw', error);
3655
+ }
3656
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
3657
+ } return new Result(false);
3658
+ };
3659
+
3660
+ var wellKnownSymbol = wellKnownSymbol$h;
3661
+
3662
+ var ITERATOR = wellKnownSymbol('iterator');
3663
+ var SAFE_CLOSING = false;
3664
+
3665
+ try {
3666
+ var called = 0;
3667
+ var iteratorWithReturn = {
3668
+ next: function () {
3669
+ return { done: !!called++ };
3670
+ },
3671
+ 'return': function () {
3672
+ SAFE_CLOSING = true;
3673
+ }
3674
+ };
3675
+ iteratorWithReturn[ITERATOR] = function () {
3676
+ return this;
3677
+ };
3678
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
3679
+ Array.from(iteratorWithReturn, function () { throw 2; });
3680
+ } catch (error) { /* empty */ }
3681
+
3682
+ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
3683
+ try {
3684
+ if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
3685
+ } catch (error) { return false; } // workaround of old WebKit + `eval` bug
3686
+ var ITERATION_SUPPORT = false;
3687
+ try {
3688
+ var object = {};
3689
+ object[ITERATOR] = function () {
3690
+ return {
3691
+ next: function () {
3692
+ return { done: ITERATION_SUPPORT = true };
3693
+ }
3694
+ };
3695
+ };
3696
+ exec(object);
3697
+ } catch (error) { /* empty */ }
3698
+ return ITERATION_SUPPORT;
3699
+ };
3700
+
3701
+ var NativePromiseConstructor$1 = promiseNativeConstructor;
3702
+ var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
3703
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
3704
+
3705
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
3706
+ NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
3707
+ });
3708
+
3709
+ var $$6 = _export;
3710
+ var call$3 = functionCall;
3711
+ var aCallable$1 = aCallable$b;
3712
+ var newPromiseCapabilityModule$2 = newPromiseCapability$2;
3713
+ var perform$1 = perform$3;
3714
+ var iterate$1 = iterate$2;
3715
+ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
3716
+
3717
+ // `Promise.all` method
3718
+ // https://tc39.es/ecma262/#sec-promise.all
3719
+ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3720
+ all: function all(iterable) {
3721
+ var C = this;
3722
+ var capability = newPromiseCapabilityModule$2.f(C);
3723
+ var resolve = capability.resolve;
3724
+ var reject = capability.reject;
3725
+ var result = perform$1(function () {
3726
+ var $promiseResolve = aCallable$1(C.resolve);
3727
+ var values = [];
3728
+ var counter = 0;
3729
+ var remaining = 1;
3730
+ iterate$1(iterable, function (promise) {
3731
+ var index = counter++;
3732
+ var alreadyCalled = false;
3733
+ remaining++;
3734
+ call$3($promiseResolve, C, promise).then(function (value) {
3735
+ if (alreadyCalled) return;
3736
+ alreadyCalled = true;
3737
+ values[index] = value;
3738
+ --remaining || resolve(values);
3739
+ }, reject);
3740
+ });
3741
+ --remaining || resolve(values);
3742
+ });
3743
+ if (result.error) reject(result.value);
3744
+ return capability.promise;
3745
+ }
3746
+ });
3747
+
3748
+ var $$5 = _export;
3749
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3750
+ var NativePromiseConstructor = promiseNativeConstructor;
3751
+ var getBuiltIn$1 = getBuiltIn$7;
3752
+ var isCallable$1 = isCallable$k;
3753
+ var defineBuiltIn = defineBuiltIn$5;
3754
+
3755
+ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
3756
+
3757
+ // `Promise.prototype.catch` method
3758
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
3759
+ $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3760
+ 'catch': function (onRejected) {
3761
+ return this.then(undefined, onRejected);
3762
+ }
3763
+ });
3764
+
3765
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
3766
+ if (isCallable$1(NativePromiseConstructor)) {
3767
+ var method = getBuiltIn$1('Promise').prototype['catch'];
3768
+ if (NativePromisePrototype['catch'] !== method) {
3769
+ defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
3770
+ }
3771
+ }
3772
+
3773
+ var $$4 = _export;
3774
+ var call$2 = functionCall;
3775
+ var aCallable = aCallable$b;
3776
+ var newPromiseCapabilityModule$1 = newPromiseCapability$2;
3777
+ var perform = perform$3;
3778
+ var iterate = iterate$2;
3779
+ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
3780
+
3781
+ // `Promise.race` method
3782
+ // https://tc39.es/ecma262/#sec-promise.race
3783
+ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3784
+ race: function race(iterable) {
3785
+ var C = this;
3786
+ var capability = newPromiseCapabilityModule$1.f(C);
3787
+ var reject = capability.reject;
3788
+ var result = perform(function () {
3789
+ var $promiseResolve = aCallable(C.resolve);
3790
+ iterate(iterable, function (promise) {
3791
+ call$2($promiseResolve, C, promise).then(capability.resolve, reject);
3792
+ });
3793
+ });
3794
+ if (result.error) reject(result.value);
3795
+ return capability.promise;
3796
+ }
3797
+ });
3798
+
3799
+ var $$3 = _export;
3800
+ var newPromiseCapabilityModule = newPromiseCapability$2;
3801
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
3802
+
3803
+ // `Promise.reject` method
3804
+ // https://tc39.es/ecma262/#sec-promise.reject
3805
+ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3806
+ reject: function reject(r) {
3807
+ var capability = newPromiseCapabilityModule.f(this);
3808
+ var capabilityReject = capability.reject;
3809
+ capabilityReject(r);
3810
+ return capability.promise;
3811
+ }
3812
+ });
3813
+
3814
+ var anObject$2 = anObject$b;
3815
+ var isObject = isObject$c;
3816
+ var newPromiseCapability = newPromiseCapability$2;
3817
+
3818
+ var promiseResolve$1 = function (C, x) {
3819
+ anObject$2(C);
3820
+ if (isObject(x) && x.constructor === C) return x;
3821
+ var promiseCapability = newPromiseCapability.f(C);
3822
+ var resolve = promiseCapability.resolve;
3823
+ resolve(x);
3824
+ return promiseCapability.promise;
3825
+ };
3826
+
3827
+ var $$2 = _export;
3828
+ var getBuiltIn = getBuiltIn$7;
3829
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
3830
+ var promiseResolve = promiseResolve$1;
3831
+
3832
+ getBuiltIn('Promise');
3833
+
3834
+ // `Promise.resolve` method
3835
+ // https://tc39.es/ecma262/#sec-promise.resolve
3836
+ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3837
+ resolve: function resolve(x) {
3838
+ return promiseResolve(this, x);
3839
+ }
3840
+ });
3841
+
2840
3842
  const layerSelectListener = createListenerMiddleware();
2841
3843
  layerSelectListener.startListening({
2842
3844
  actionCreator: serviceActions.mapStoreRemoveService,
2843
- effect: action => __awaiter(void 0, void 0, void 0, function* () {
3845
+ effect: async action => {
2844
3846
  const {
2845
3847
  serviceUrl
2846
3848
  } = action.payload;
2847
3849
  const localStorageServices = getUserAddedServices();
2848
3850
  delete localStorageServices[serviceUrl];
2849
3851
  setUserAddedServices(localStorageServices);
2850
- })
3852
+ }
2851
3853
  });
2852
3854
  layerSelectListener.startListening({
2853
3855
  actionCreator: layerSelectActions.layerSelectRemoveService,
2854
- effect: (action, listenerApi) => __awaiter(void 0, void 0, void 0, function* () {
3856
+ effect: async (action, listenerApi) => {
2855
3857
  const removedService = action.payload;
2856
3858
  const {
2857
3859
  serviceId,
2858
3860
  serviceUrl
2859
3861
  } = removedService;
2860
3862
  const services = getActiveServices(listenerApi.getState());
2861
- const servicesEnabled = Object.values(services).find(service => service === null || service === void 0 ? void 0 : service.enabled);
3863
+ const servicesEnabled = Object.values(services).find(service => service == null ? void 0 : service.enabled);
2862
3864
  if (servicesEnabled === undefined) {
2863
3865
  Object.entries(services).map(([entryServiceId]) => {
2864
3866
  return listenerApi.dispatch(layerSelectActions.enableActiveService({
@@ -2870,11 +3872,11 @@ layerSelectListener.startListening({
2870
3872
  id: serviceId,
2871
3873
  serviceUrl: serviceUrl
2872
3874
  }));
2873
- })
3875
+ }
2874
3876
  });
2875
3877
  layerSelectListener.startListening({
2876
3878
  actionCreator: serviceActions.serviceSetLayers,
2877
- effect: action => __awaiter(void 0, void 0, void 0, function* () {
3879
+ effect: async action => {
2878
3880
  const {
2879
3881
  scope,
2880
3882
  name,
@@ -2883,7 +3885,7 @@ layerSelectListener.startListening({
2883
3885
  } = action.payload;
2884
3886
  if (isUserAddedService(scope)) {
2885
3887
  const localStorageServices = getUserAddedServices();
2886
- setUserAddedServices(Object.assign(Object.assign({}, localStorageServices), {
3888
+ setUserAddedServices(Object.assign({}, localStorageServices, {
2887
3889
  [serviceUrl]: {
2888
3890
  name,
2889
3891
  url: serviceUrl,
@@ -2891,31 +3893,31 @@ layerSelectListener.startListening({
2891
3893
  }
2892
3894
  }));
2893
3895
  }
2894
- })
3896
+ }
2895
3897
  });
2896
3898
  layerSelectListener.startListening({
2897
3899
  matcher: isAnyOf(uiActions.setToggleOpenDialog, uiActions.setActiveMapIdForDialog),
2898
- effect: (action, listenerApi) => __awaiter(void 0, void 0, void 0, function* () {
3900
+ effect: async (action, listenerApi) => {
2899
3901
  const {
2900
3902
  payload
2901
3903
  } = action;
2902
3904
  if (!payload.setOpen && payload.type === uiTypes.DialogTypes.LayerSelect) {
2903
3905
  listenerApi.dispatch(layerActions.hideLayerInfo());
2904
3906
  }
2905
- })
3907
+ }
2906
3908
  });
2907
3909
  layerSelectListener.startListening({
2908
3910
  matcher: isAnyOf(layerSelectActions.disableActiveService, layerSelectActions.onlyThisServiceEnabled, layerSelectActions.toggleFilter, layerSelectActions.setSearchFilter),
2909
- effect: (action, listenerApi) => __awaiter(void 0, void 0, void 0, function* () {
3911
+ effect: async (action, listenerApi) => {
2910
3912
  if (uiSelectors.getisDialogOpen(listenerApi.getState(), uiTypes.DialogTypes.LayerInfo)) {
2911
3913
  const filteredLayers = getFilteredLayers(listenerApi.getState());
2912
3914
  const dialogInfo = layerSelectors.getActiveLayerInfo(listenerApi.getState());
2913
3915
  const layerWithData = dialogInfo && serviceSelectors.getLayerFromService(listenerApi.getState(), dialogInfo.serviceUrl, dialogInfo.layerName);
2914
- if (!filteredLayers.map(layer => layer.title).includes((layerWithData === null || layerWithData === void 0 ? void 0 : layerWithData.title) || '')) {
3916
+ if (!filteredLayers.map(layer => layer.title).includes((layerWithData == null ? void 0 : layerWithData.title) || '')) {
2915
3917
  listenerApi.dispatch(layerActions.hideLayerInfo());
2916
3918
  }
2917
3919
  }
2918
- })
3920
+ }
2919
3921
  });
2920
3922
 
2921
3923
  const layerSelectConfig = {
@@ -2943,49 +3945,42 @@ const KeywordFilterButtonConnect = ({
2943
3945
  source: _source
2944
3946
  }));
2945
3947
  }, [currentActiveMapId, dispatch, isOpenInStore, mapId, _source, dialogType]);
2946
- return jsx(CustomIconButton, Object.assign({
3948
+ return jsx(CustomIconButton, {
2947
3949
  variant: "tool",
2948
3950
  onClick: openFilterResultsDialog,
2949
3951
  isSelected: isOpenInStore,
2950
3952
  id: "keywordFilterButton",
2951
- "data-testid": "keywordFilterButton"
2952
- }, {
3953
+ "data-testid": "keywordFilterButton",
2953
3954
  children: jsx(Filter, {})
2954
- }));
3955
+ });
2955
3956
  };
2956
3957
 
2957
3958
  const KeywordFilterResultsListItemConnect = ({
2958
3959
  filter
2959
3960
  }) => {
2960
3961
  const dispatch = useDispatch();
2961
- const toggleFilter = React.useCallback(filterIds => {
3962
+ const toggleFilter = React.useCallback((filterId, only) => {
2962
3963
  dispatch(layerSelectActions.toggleFilter({
2963
- filterIds
2964
- }));
2965
- }, [dispatch]);
2966
- const enableOnlyOneFilter = React.useCallback(filterId => {
2967
- dispatch(layerSelectActions.enableOnlyOneFilter({
2968
- filterId
3964
+ filterId,
3965
+ only
2969
3966
  }));
2970
3967
  }, [dispatch]);
2971
- return jsx(FilterListItem, {
2972
- filter: filter,
2973
- toggleFilter: toggleFilter,
2974
- enableOnlyOneFilter: enableOnlyOneFilter
3968
+ return jsx(FilterOption, {
3969
+ optionId: filter.id,
3970
+ checked: !!filter.checked,
3971
+ onClick: (checked, only) => {
3972
+ toggleFilter(filter.id, only);
3973
+ },
3974
+ label: filter.amountVisible ? `${filter.name} (${filter.amountVisible})` : filter.name
2975
3975
  });
2976
3976
  };
2977
3977
 
2978
3978
  const KeywordFilterSelectAllSwitchConnect = () => {
2979
3979
  const dispatch = useDispatch();
2980
3980
  const allFiltersActive = useAppSelector(store => isAllFiltersChecked(store));
2981
- const allFilterIds = useAppSelector(store => getAllFilterIds(store));
2982
- const checkedFilterIds = useAppSelector(store => getCheckedFilterIds(store));
2983
3981
  const toggleFilters = React.useCallback(() => {
2984
- const filterIds = allFiltersActive ? checkedFilterIds : allFilterIds.filter(id => !checkedFilterIds.includes(id));
2985
- dispatch(layerSelectActions.toggleFilter({
2986
- filterIds
2987
- }));
2988
- }, [allFilterIds, allFiltersActive, checkedFilterIds, dispatch]);
3982
+ dispatch(layerSelectActions.toggleAllFilters());
3983
+ }, [dispatch]);
2989
3984
  return jsx(Switch, {
2990
3985
  inputProps: {
2991
3986
  'aria-label': 'All'
@@ -2998,16 +3993,13 @@ const KeywordFilterSelectAllSwitchConnect = () => {
2998
3993
 
2999
3994
  const LAYER_SELECT_NAMESPACE = 'layerselect';
3000
3995
  const useLayerSelectTranslation = () => useTranslation(LAYER_SELECT_NAMESPACE);
3001
- const translateKeyOutsideComponents = (key, params = undefined) => i18n.t(key, Object.assign({
3002
- ns: [LAYER_SELECT_NAMESPACE]
3003
- }, params));
3004
3996
 
3005
3997
  const listStyle = {
3006
3998
  padding: '0px'
3007
3999
  };
3008
4000
  const accordionDetailsStyle = {
3009
- padding: '0px',
3010
- margin: '0px'
4001
+ margin: '0px',
4002
+ padding: '0 12px'
3011
4003
  };
3012
4004
  const KeywordFilterResults = ({
3013
4005
  filters,
@@ -3021,7 +4013,7 @@ const KeywordFilterResults = ({
3021
4013
  const {
3022
4014
  t
3023
4015
  } = useLayerSelectTranslation();
3024
- return jsxs(ToolContainerDraggable, Object.assign({
4016
+ return jsxs(ToolContainerDraggable, {
3025
4017
  title: t('groups-and-keywords-dialog-title'),
3026
4018
  "data-testid": "keywordFilterResults",
3027
4019
  startSize: {
@@ -3035,9 +4027,8 @@ const KeywordFilterResults = ({
3035
4027
  bounds: bounds,
3036
4028
  onMouseDown: _onMouseDown,
3037
4029
  order: _order,
3038
- source: _source
3039
- }, {
3040
- children: [jsxs(Grid2, Object.assign({
4030
+ source: _source,
4031
+ children: [jsxs(Grid2, {
3041
4032
  container: true,
3042
4033
  size: {
3043
4034
  xs: 12
@@ -3049,9 +4040,8 @@ const KeywordFilterResults = ({
3049
4040
  position: 'sticky',
3050
4041
  top: 0,
3051
4042
  zIndex: 100
3052
- }
3053
- }, {
3054
- children: [jsx(Grid2, Object.assign({
4043
+ },
4044
+ children: [jsx(Grid2, {
3055
4045
  container: true,
3056
4046
  size: {
3057
4047
  xs: 6
@@ -3060,10 +4050,9 @@ const KeywordFilterResults = ({
3060
4050
  alignItems: "center",
3061
4051
  sx: {
3062
4052
  padding: '15px 15px 0 24px'
3063
- }
3064
- }, {
4053
+ },
3065
4054
  children: t('select-all')
3066
- })), jsx(Grid2, Object.assign({
4055
+ }), jsx(Grid2, {
3067
4056
  container: true,
3068
4057
  size: {
3069
4058
  xs: 6
@@ -3072,38 +4061,33 @@ const KeywordFilterResults = ({
3072
4061
  alignContent: "center",
3073
4062
  sx: {
3074
4063
  padding: '15px 15px 0 15px'
3075
- }
3076
- }, {
4064
+ },
3077
4065
  children: jsx(KeywordFilterSelectAllSwitchConnect, {})
3078
- }))]
3079
- })), jsx(CustomAccordion, Object.assign({
4066
+ })]
4067
+ }), jsx(CustomAccordion, {
3080
4068
  title: t('groups'),
3081
- detailsSx: accordionDetailsStyle
3082
- }, {
3083
- children: jsx(List, Object.assign({
4069
+ detailsSx: accordionDetailsStyle,
4070
+ children: jsx(List, {
3084
4071
  dense: true,
3085
- style: listStyle
3086
- }, {
4072
+ style: listStyle,
3087
4073
  children: filters.groups.map(group => jsx(KeywordFilterResultsListItemConnect, {
3088
4074
  filter: group
3089
4075
  }, group.id))
3090
- }))
3091
- })), jsx(CustomAccordion, Object.assign({
4076
+ })
4077
+ }), jsx(CustomAccordion, {
3092
4078
  title: t('keywords'),
3093
- detailsSx: accordionDetailsStyle
3094
- }, {
3095
- children: jsx(List, Object.assign({
4079
+ detailsSx: accordionDetailsStyle,
4080
+ children: jsx(List, {
3096
4081
  dense: true,
3097
- style: listStyle
3098
- }, {
4082
+ style: listStyle,
3099
4083
  children: filters.keywords.map(keyword => {
3100
4084
  return jsx(KeywordFilterResultsListItemConnect, {
3101
4085
  filter: keyword
3102
4086
  }, keyword.id);
3103
4087
  })
3104
- }))
3105
- }))]
3106
- }));
4088
+ })
4089
+ })]
4090
+ });
3107
4091
  };
3108
4092
 
3109
4093
  const KeywordFilterResultsConnect = ({
@@ -3143,7 +4127,7 @@ const LayerAddRemoveButton = ({
3143
4127
  } = useLayerSelectTranslation();
3144
4128
  const foundLayerIndex = mapLayers.findIndex(lr => lr.name === layer.name && lr.service === serviceUrl);
3145
4129
  const foundLayer = foundLayerIndex !== -1 && mapLayers[foundLayerIndex];
3146
- return jsx(CustomToggleButton, Object.assign({
4130
+ return jsx(CustomToggleButton, {
3147
4131
  "data-testid": `layerAddRemoveButton-${layer.name}`,
3148
4132
  onClick: () => {
3149
4133
  !foundLayer ? addLayer({
@@ -3160,10 +4144,9 @@ const LayerAddRemoveButton = ({
3160
4144
  sx: {
3161
4145
  fontSize: '12px'
3162
4146
  },
3163
- className: "layerAddRemoveButton"
3164
- }, {
4147
+ className: "layerAddRemoveButton",
3165
4148
  children: !foundLayer ? t('add') : t('remove')
3166
- }));
4149
+ });
3167
4150
  };
3168
4151
 
3169
4152
  const LayerListDimensions = ({
@@ -3173,17 +4156,15 @@ const LayerListDimensions = ({
3173
4156
  return null;
3174
4157
  }
3175
4158
  return jsx(Fragment, {
3176
- children: dimensions.map(dimension => jsx(CustomTooltip, Object.assign({
3177
- title: `${dimension.label}: ${dimension.value}`
3178
- }, {
3179
- children: jsx("span", Object.assign({
4159
+ children: dimensions.map(dimension => jsx(CustomTooltip, {
4160
+ title: `${dimension.label}: ${dimension.value}`,
4161
+ children: jsx("span", {
3180
4162
  style: {
3181
4163
  marginRight: 4
3182
- }
3183
- }, {
4164
+ },
3184
4165
  children: dimension.icon
3185
- }))
3186
- }), dimension.label))
4166
+ })
4167
+ }, dimension.label))
3187
4168
  });
3188
4169
  };
3189
4170
 
@@ -3293,7 +4274,7 @@ const widthToRowHeight = width => {
3293
4274
  }
3294
4275
  return rowHeightLarge;
3295
4276
  };
3296
- const sortByService = serviceObj => Object.entries(serviceObj).sort(([, a], [, b]) => a.serviceName.localeCompare(b === null || b === void 0 ? void 0 : b.serviceName)).reduce((r, [key, value]) => Object.assign(Object.assign({}, r), {
4277
+ const sortByService = serviceObj => Object.entries(serviceObj).sort(([, a], [, b]) => a.serviceName.localeCompare(b == null ? void 0 : b.serviceName)).reduce((r, [key, value]) => Object.assign({}, r, {
3297
4278
  [key]: value
3298
4279
  }), {});
3299
4280
 
@@ -3315,14 +4296,14 @@ const LayerListRow = ({
3315
4296
  hasActiveLayer: _hasActiveLayer = false,
3316
4297
  onToggleActiveLayer
3317
4298
  }) => {
3318
- var _a;
4299
+ var _layer$keywords;
3319
4300
  const {
3320
4301
  t
3321
4302
  } = useLayerSelectTranslation();
3322
4303
  const rowHeight = widthToRowHeight(layerSelectWidth);
3323
4304
  const columns = widthToColumns(layerSelectWidth);
3324
4305
  const dimensions = getDimensionsList(layer.dimensions);
3325
- return jsxs(Grid2, Object.assign({
4306
+ return jsxs(Grid2, {
3326
4307
  "data-testid": "layerListLayerRow",
3327
4308
  container: true,
3328
4309
  justifyContent: "center",
@@ -3334,18 +4315,15 @@ const LayerListRow = ({
3334
4315
  height: rowHeight,
3335
4316
  border: 'solid 1px',
3336
4317
  borderColor: 'geowebColors.cards.cardContainerBorder'
3337
- }
3338
- }, {
3339
- children: [jsxs(Grid2, Object.assign({
4318
+ },
4319
+ children: [jsxs(Grid2, {
3340
4320
  container: true,
3341
- sx: columns.column8
3342
- }, {
3343
- children: [jsx(Grid2, Object.assign({
4321
+ sx: columns.column8,
4322
+ children: [jsx(Grid2, {
3344
4323
  size: {
3345
4324
  xs: 12
3346
- }
3347
- }, {
3348
- children: jsx(Box, Object.assign({
4325
+ },
4326
+ children: jsx(Box, {
3349
4327
  sx: {
3350
4328
  fontSize: '12px',
3351
4329
  height: '14px',
@@ -3353,92 +4331,79 @@ const LayerListRow = ({
3353
4331
  fontWeight: 500,
3354
4332
  textOverflow: 'ellipsis',
3355
4333
  overflow: 'hidden'
3356
- }
3357
- }, {
4334
+ },
3358
4335
  children: jsx(SearchHighlight, {
3359
4336
  text: layer.title,
3360
4337
  search: searchFilter
3361
4338
  })
3362
- }))
3363
- })), jsxs(Grid2, Object.assign({
4339
+ })
4340
+ }), jsxs(Grid2, {
3364
4341
  container: true,
3365
4342
  direction: "column",
3366
- sx: columns.column1
3367
- }, {
3368
- children: [jsx(Box, Object.assign({
4343
+ sx: columns.column1,
4344
+ children: [jsx(Box, {
3369
4345
  sx: {
3370
4346
  fontSize: '12px',
3371
4347
  height: '18px',
3372
4348
  lineHeight: '18px',
3373
4349
  textOverflow: 'ellipsis',
3374
4350
  overflow: 'hidden'
3375
- }
3376
- }, {
4351
+ },
3377
4352
  children: jsx(SearchHighlight, {
3378
4353
  text: service.name,
3379
4354
  search: searchFilter
3380
4355
  })
3381
- })), jsx(LayerInfoButton, {
4356
+ }), jsx(LayerInfoButton, {
3382
4357
  isActive: _hasActiveLayer,
3383
4358
  onClick: onToggleActiveLayer
3384
4359
  })]
3385
- })), jsxs(Grid2, Object.assign({
3386
- sx: columns.column2
3387
- }, {
3388
- children: [jsx(Grid2, Object.assign({
3389
- sx: columns.column3
3390
- }, {
3391
- children: layer.abstract && jsx(Typography, Object.assign({
4360
+ }), jsxs(Grid2, {
4361
+ sx: columns.column2,
4362
+ children: [jsx(Grid2, {
4363
+ sx: columns.column3,
4364
+ children: layer.abstract && jsx(Typography, {
3392
4365
  "data-testid": "layerAbstract",
3393
- sx: layerInfoStyle
3394
- }, {
4366
+ sx: layerInfoStyle,
3395
4367
  children: jsx(SearchHighlight, {
3396
4368
  text: layer.abstract,
3397
4369
  search: searchFilter
3398
4370
  })
3399
- }))
3400
- })), jsxs(Grid2, Object.assign({
4371
+ })
4372
+ }), jsxs(Grid2, {
3401
4373
  container: true,
3402
- sx: columns.column4
3403
- }, {
3404
- children: [jsx(Grid2, Object.assign({
3405
- sx: columns.column5
3406
- }, {
4374
+ sx: columns.column4,
4375
+ children: [jsx(Grid2, {
4376
+ sx: columns.column5,
3407
4377
  children: jsx(LayerListDimensions, {
3408
4378
  dimensions: dimensions
3409
4379
  })
3410
- })), jsxs(Grid2, Object.assign({
3411
- sx: columns.column6
3412
- }, {
3413
- children: [layer.path.length > 0 && jsxs(Typography, Object.assign({
3414
- sx: layerInfoStyle
3415
- }, {
4380
+ }), jsxs(Grid2, {
4381
+ sx: columns.column6,
4382
+ children: [layer.path.length > 0 && jsxs(Typography, {
4383
+ sx: layerInfoStyle,
3416
4384
  children: [t('groups'), ":", ' ', jsx(SearchHighlight, {
3417
4385
  text: layer.path.join(' / '),
3418
4386
  search: searchFilter
3419
4387
  })]
3420
- })), ((_a = layer.keywords) === null || _a === void 0 ? void 0 : _a.length) > 0 && jsxs(Typography, Object.assign({
3421
- sx: layerInfoStyle
3422
- }, {
4388
+ }), ((_layer$keywords = layer.keywords) == null ? void 0 : _layer$keywords.length) > 0 && jsxs(Typography, {
4389
+ sx: layerInfoStyle,
3423
4390
  children: [t('keywords'), ":", ' ', jsx(SearchHighlight, {
3424
4391
  text: layer.keywords.slice().sort((a, b) => {
3425
4392
  return a.localeCompare(b);
3426
4393
  }).join(', '),
3427
4394
  search: searchFilter
3428
4395
  })]
3429
- }))]
3430
- }))]
3431
- }))]
3432
- }))]
3433
- })), jsx(Grid2, Object.assign({
4396
+ })]
4397
+ })]
4398
+ })]
4399
+ })]
4400
+ }), jsx(Grid2, {
3434
4401
  container: true,
3435
4402
  sx: columns.column9,
3436
4403
  justifyContent: "flex-end",
3437
- alignItems: "center"
3438
- }, {
3439
- children: jsx(Box, Object.assign({
3440
- sx: columns.column7
3441
- }, {
4404
+ alignItems: "center",
4405
+ children: jsx(Box, {
4406
+ sx: columns.column7,
3442
4407
  children: jsx(LayerAddRemoveButton, {
3443
4408
  layer: layer,
3444
4409
  serviceUrl: service.serviceUrl,
@@ -3446,9 +4411,9 @@ const LayerListRow = ({
3446
4411
  deleteLayer: deleteLayer,
3447
4412
  mapLayers: mapLayers
3448
4413
  })
3449
- }))
3450
- }))]
3451
- }));
4414
+ })
4415
+ })]
4416
+ });
3452
4417
  };
3453
4418
 
3454
4419
  const LayerList = ({
@@ -3472,32 +4437,28 @@ const LayerList = ({
3472
4437
  const rowHeight = widthToRowHeight(layerSelectWidth);
3473
4438
  const layerSelectFilterHeight = 155 + serviceListHeight;
3474
4439
  const minHeight = 320;
3475
- return jsxs(Box, Object.assign({
3476
- "data-testid": "layerList"
3477
- }, {
3478
- children: [jsxs(Box, Object.assign({
4440
+ return jsxs(Box, {
4441
+ "data-testid": "layerList",
4442
+ children: [jsxs(Box, {
3479
4443
  sx: {
3480
4444
  marginBottom: '4px',
3481
4445
  fontSize: '12px'
3482
- }
3483
- }, {
4446
+ },
3484
4447
  children: [filteredLayers.length, " ", t('layer-list-results')]
3485
- })), jsx(FixedSizeList, Object.assign({
4448
+ }), jsx(FixedSizeList, {
3486
4449
  height: layerSelectHeight - layerSelectFilterHeight < minHeight ? minHeight : layerSelectHeight - layerSelectFilterHeight,
3487
4450
  itemCount: filteredLayers.length,
3488
4451
  itemSize: rowHeight + rowMargin,
3489
- width: "100%"
3490
- }, {
4452
+ width: "100%",
3491
4453
  children: ({
3492
4454
  index,
3493
4455
  style
3494
4456
  }) => {
3495
4457
  const filter = filteredLayers[index];
3496
4458
  const service = services[filter.serviceName];
3497
- const isActiveLayer = isLayerInfoVisibleInStore && (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.serviceUrl) === service.serviceUrl && (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.layerName) === filter.name;
3498
- return jsx("div", Object.assign({
3499
- style: style
3500
- }, {
4459
+ const isActiveLayer = isLayerInfoVisibleInStore && (currentLayerInfo == null ? void 0 : currentLayerInfo.serviceUrl) === service.serviceUrl && (currentLayerInfo == null ? void 0 : currentLayerInfo.layerName) === filter.name;
4460
+ return jsx("div", {
4461
+ style: style,
3501
4462
  children: service && jsx(LayerListRow, {
3502
4463
  layer: filter,
3503
4464
  service: service,
@@ -3508,15 +4469,15 @@ const LayerList = ({
3508
4469
  searchFilter: searchFilter,
3509
4470
  hasActiveLayer: isActiveLayer,
3510
4471
  onToggleActiveLayer: () => onToggleActiveLayer({
3511
- serviceUrl: service === null || service === void 0 ? void 0 : service.serviceUrl,
4472
+ serviceUrl: service == null ? void 0 : service.serviceUrl,
3512
4473
  layerName: filter.name,
3513
4474
  isActiveLayer
3514
4475
  })
3515
4476
  })
3516
- }), filter.name);
4477
+ }, filter.name);
3517
4478
  }
3518
- }))]
3519
- }));
4479
+ })]
4480
+ });
3520
4481
  };
3521
4482
 
3522
4483
  const LayerListConnect = ({
@@ -3627,15 +4588,14 @@ const LayerSelectButtonConnect = ({
3627
4588
  source: _source
3628
4589
  }));
3629
4590
  }, [currentActiveMapId, dispatch, isOpenInStore, mapId, _source, dialogType]);
3630
- return jsx(CustomIconButton, Object.assign({
4591
+ return jsx(CustomIconButton, {
3631
4592
  onClick: openLayerSelectDialog,
3632
4593
  sx: style$2,
3633
4594
  id: "layerSelectButton",
3634
4595
  "data-testid": "layerSelectButton",
3635
- tooltipTitle: tooltipTitle || t('layer-select-button-tooltip')
3636
- }, {
4596
+ tooltipTitle: tooltipTitle || t('layer-select-button-tooltip'),
3637
4597
  children: _icon
3638
- }));
4598
+ });
3639
4599
  };
3640
4600
 
3641
4601
  const SearchFieldConnect = () => {
@@ -3681,11 +4641,10 @@ const ServiceChip = ({
3681
4641
  t
3682
4642
  } = useLayerSelectTranslation();
3683
4643
  const chip = _all ? 'all' : service && service.serviceUrl;
3684
- return jsx(CustomTooltip, Object.assign({
3685
- title: (service === null || service === void 0 ? void 0 : service.abstract) ? `Abstract: ${service.abstract}` : ''
3686
- }, {
4644
+ return jsx(CustomTooltip, {
4645
+ title: service != null && service.abstract ? `Abstract: ${service.abstract}` : '',
3687
4646
  children: jsx("span", {
3688
- children: jsx(CustomToggleButton, Object.assign({
4647
+ children: jsx(CustomToggleButton, {
3689
4648
  variant: "boxed",
3690
4649
  selected: Boolean(isSelected),
3691
4650
  tabIndex: 0,
@@ -3693,12 +4652,11 @@ const ServiceChip = ({
3693
4652
  onClick: () => toggleChip(chip),
3694
4653
  onKeyPress: () => toggleChip(chip),
3695
4654
  disabled: isDisabled,
3696
- sx: style$1
3697
- }, {
4655
+ sx: style$1,
3698
4656
  children: service ? service.serviceName : t('all')
3699
- }))
4657
+ })
3700
4658
  })
3701
- }));
4659
+ });
3702
4660
  };
3703
4661
 
3704
4662
  const ServiceChipConnect = ({
@@ -3763,15 +4721,14 @@ const ServiceList = ({
3763
4721
  const activeServicesIds = Object.keys(activeServicesById);
3764
4722
  const activeServices = Object.values(activeServicesById);
3765
4723
  const isAllSelected = activeServices.every(activeService => activeService.enabled);
3766
- return jsx(Box, Object.assign({
4724
+ return jsx(Box, {
3767
4725
  sx: {
3768
4726
  marginTop: '8px',
3769
4727
  width: '100%',
3770
4728
  overflow: 'hidden'
3771
4729
  },
3772
- "data-testid": "serviceList"
3773
- }, {
3774
- children: jsxs(Box, Object.assign({
4730
+ "data-testid": "serviceList",
4731
+ children: jsxs(Box, {
3775
4732
  sx: {
3776
4733
  width: '100%',
3777
4734
  display: 'block',
@@ -3782,9 +4739,8 @@ const ServiceList = ({
3782
4739
  marginBottom: '8px',
3783
4740
  fontSize: '0.875rem'
3784
4741
  },
3785
- ref: ref
3786
- }, {
3787
- children: [(activeServicesIds === null || activeServicesIds === void 0 ? void 0 : activeServicesIds.length) && jsx(AllChipConnect, {
4742
+ ref: ref,
4743
+ children: [(activeServicesIds == null ? void 0 : activeServicesIds.length) && jsx(AllChipConnect, {
3788
4744
  isAllSelected: isAllSelected
3789
4745
  }), activeServices.map(service => {
3790
4746
  return jsx(ServiceChipConnect, {
@@ -3792,8 +4748,8 @@ const ServiceList = ({
3792
4748
  isAllSelected: isAllSelected
3793
4749
  }, service.serviceUrl);
3794
4750
  })]
3795
- }))
3796
- }));
4751
+ })
4752
+ });
3797
4753
  };
3798
4754
 
3799
4755
  const ServiceListConnect = ({
@@ -3867,10 +4823,10 @@ const ServiceOptionsDialog = ({
3867
4823
  };
3868
4824
  const dialogRef = React.useRef(null);
3869
4825
  React.useEffect(() => {
3870
- var _a;
3871
- (_a = dialogRef.current) === null || _a === void 0 ? void 0 : _a.focus();
4826
+ var _dialogRef$current;
4827
+ (_dialogRef$current = dialogRef.current) == null || _dialogRef$current.focus();
3872
4828
  }, []);
3873
- return jsxs(Box, Object.assign({
4829
+ return jsxs(Box, {
3874
4830
  sx: styles.servicesContainer,
3875
4831
  "data-testid": "ServiceDialog",
3876
4832
  onKeyDown: event => {
@@ -3879,41 +4835,36 @@ const ServiceOptionsDialog = ({
3879
4835
  }
3880
4836
  },
3881
4837
  tabIndex: -1,
3882
- ref: dialogRef
3883
- }, {
3884
- children: [jsx(Box, Object.assign({
3885
- sx: styles.header
3886
- }, {
4838
+ ref: dialogRef,
4839
+ children: [jsx(Box, {
4840
+ sx: styles.header,
3887
4841
  children: t('services')
3888
- })), jsx(Backdrop, Object.assign({
4842
+ }), jsx(Backdrop, {
3889
4843
  sx: styles.loading,
3890
- open: _isLoading
3891
- }, {
4844
+ open: _isLoading,
3892
4845
  children: jsx(CircularProgress, {})
3893
- })), jsx(Rows, {
4846
+ }), jsx(Rows, {
3894
4847
  services: services,
3895
4848
  layerSelectRemoveService: layerSelectRemoveService,
3896
4849
  layerSelectReloadService: layerSelectReloadService,
3897
4850
  setServicePopupInfo: setServicePopupInfo,
3898
4851
  selectedLayers: selectedLayers
3899
- }), jsx(Box, Object.assign({
3900
- sx: styles.footer
3901
- }, {
3902
- children: jsx(Button, Object.assign({
4852
+ }), jsx(Box, {
4853
+ sx: styles.footer,
4854
+ children: jsx(Button, {
3903
4855
  onClick: openAddService,
3904
4856
  onKeyDown: stopTabPropagation,
3905
4857
  "data-testid": "openAddServiceButton",
3906
4858
  sx: styles.button,
3907
4859
  variant: "tertiary",
3908
- startIcon: jsx(Add, {})
3909
- }, {
4860
+ startIcon: jsx(Add, {}),
3910
4861
  children: t('add-a-new-service')
3911
- }))
3912
- }))]
3913
- }));
4862
+ })
4863
+ })]
4864
+ });
3914
4865
  };
3915
- const deleteServiceTitle = hasActiveLayers => {
3916
- return hasActiveLayers ? translateKeyOutsideComponents('service-has-active-layers-error') : translateKeyOutsideComponents('delete-service');
4866
+ const deleteServiceTitle = (t, hasActiveLayers) => {
4867
+ return hasActiveLayers ? t('service-has-active-layers-error') : t('delete-service');
3917
4868
  };
3918
4869
  const tooltipPlacement = () => {
3919
4870
  return 'left';
@@ -3947,9 +4898,8 @@ const Rows = ({
3947
4898
  return false;
3948
4899
  };
3949
4900
  const sortedServices = sortByService(services);
3950
- return jsx(List, Object.assign({
3951
- disablePadding: true
3952
- }, {
4901
+ return jsx(List, {
4902
+ disablePadding: true,
3953
4903
  children: Object.keys(sortedServices).map(serviceId => {
3954
4904
  const {
3955
4905
  serviceUrl,
@@ -3958,17 +4908,16 @@ const Rows = ({
3958
4908
  } = services[serviceId];
3959
4909
  const serviceHasActiveLayers = checkIfServiceHasActiveLayers(serviceUrl);
3960
4910
  const userAddedService = isUserAddedService(scope);
3961
- return jsx(ListItem, Object.assign({
3962
- secondaryAction: jsx(Box, Object.assign({
4911
+ return jsx(ListItem, {
4912
+ secondaryAction: jsx(Box, {
3963
4913
  sx: {
3964
4914
  marginRight: '0px',
3965
4915
  width: 96,
3966
4916
  button: {
3967
4917
  marginLeft: 1
3968
4918
  }
3969
- }
3970
- }, {
3971
- children: jsxs(Grid2, Object.assign({
4919
+ },
4920
+ children: jsxs(Grid2, {
3972
4921
  container: true,
3973
4922
  justifyContent: "left",
3974
4923
  sx: {
@@ -3977,31 +4926,27 @@ const Rows = ({
3977
4926
  button: {
3978
4927
  marginLeft: 1
3979
4928
  }
3980
- }
3981
- }, {
3982
- children: [jsx(CustomTooltip, Object.assign({
4929
+ },
4930
+ children: [jsx(CustomTooltip, {
3983
4931
  "data-testid": "updateServiceTooltip",
3984
4932
  title: t('update-service-title'),
3985
4933
  placement: tooltipPlacement(),
3986
- PopperProps: tooltipPopperProps
3987
- }, {
3988
- children: jsx(CustomIconButton, Object.assign({
4934
+ PopperProps: tooltipPopperProps,
4935
+ children: jsx(CustomIconButton, {
3989
4936
  "data-testid": "updateServiceButton",
3990
4937
  "aria-label": "Update layers from WMS service",
3991
4938
  onKeyDown: stopTabPropagation,
3992
4939
  onClick: () => {
3993
4940
  layerSelectReloadService(serviceUrl);
3994
- }
3995
- }, {
4941
+ },
3996
4942
  children: jsx(Cached, {})
3997
- }))
3998
- })), userAddedService ? jsx(CustomTooltip, Object.assign({
4943
+ })
4944
+ }), userAddedService ? jsx(CustomTooltip, {
3999
4945
  title: t('edit-service-title'),
4000
4946
  placement: tooltipPlacement(),
4001
- PopperProps: tooltipPopperProps
4002
- }, {
4947
+ PopperProps: tooltipPopperProps,
4003
4948
  children: jsx("span", {
4004
- children: jsx(CustomIconButton, Object.assign({
4949
+ children: jsx(CustomIconButton, {
4005
4950
  "aria-label": "edit service",
4006
4951
  "data-testid": "openEditServiceButton",
4007
4952
  onKeyDown: stopTabPropagation,
@@ -4012,18 +4957,16 @@ const Rows = ({
4012
4957
  serviceUrl,
4013
4958
  variant: 'edit'
4014
4959
  });
4015
- }
4016
- }, {
4960
+ },
4017
4961
  children: jsx(Edit, {})
4018
- }))
4962
+ })
4019
4963
  })
4020
- })) : jsx(CustomTooltip, Object.assign({
4964
+ }) : jsx(CustomTooltip, {
4021
4965
  title: t('show-service-title'),
4022
4966
  placement: tooltipPlacement(),
4023
- PopperProps: tooltipPopperProps
4024
- }, {
4967
+ PopperProps: tooltipPopperProps,
4025
4968
  children: jsx("span", {
4026
- children: jsx(CustomIconButton, Object.assign({
4969
+ children: jsx(CustomIconButton, {
4027
4970
  "aria-label": "show service",
4028
4971
  "data-testid": "openShowServiceButton",
4029
4972
  onKeyDown: stopTabPropagation,
@@ -4034,55 +4977,49 @@ const Rows = ({
4034
4977
  serviceUrl,
4035
4978
  variant: 'show'
4036
4979
  });
4037
- }
4038
- }, {
4980
+ },
4039
4981
  children: jsx(Visibility, {})
4040
- }))
4982
+ })
4041
4983
  })
4042
- })), userAddedService && jsx(Box, {
4043
- children: jsx(CustomTooltip, Object.assign({
4044
- title: deleteServiceTitle(serviceHasActiveLayers),
4984
+ }), userAddedService && jsx(Box, {
4985
+ children: jsx(CustomTooltip, {
4986
+ title: deleteServiceTitle(t, serviceHasActiveLayers),
4045
4987
  PopperProps: tooltipPopperProps,
4046
4988
  placement: tooltipPlacement(),
4047
- "data-testid": "removeServiceTooltip"
4048
- }, {
4989
+ "data-testid": "removeServiceTooltip",
4049
4990
  children: jsx("span", {
4050
- children: jsx(CustomIconButton, Object.assign({
4991
+ children: jsx(CustomIconButton, {
4051
4992
  "data-testid": "removeServiceButton",
4052
4993
  "aria-label": "delete service",
4053
4994
  disabled: serviceHasActiveLayers,
4054
4995
  onKeyDown: stopTabPropagation,
4055
- onClick: () => layerSelectRemoveService(serviceId, serviceUrl, serviceName)
4056
- }, {
4996
+ onClick: () => layerSelectRemoveService(serviceId, serviceUrl, serviceName),
4057
4997
  children: jsx(Delete, {})
4058
- }))
4998
+ })
4059
4999
  })
4060
- }))
5000
+ })
4061
5001
  })]
4062
- }))
4063
- }))
4064
- }, {
4065
- children: jsx(ListItemText, Object.assign({
5002
+ })
5003
+ }),
5004
+ children: jsx(ListItemText, {
4066
5005
  style: {
4067
5006
  fontSize: '16px'
4068
- }
4069
- }, {
4070
- children: jsx(Typography, Object.assign({
5007
+ },
5008
+ children: jsx(Typography, {
4071
5009
  noWrap: true,
4072
5010
  style: {
4073
5011
  textOverflow: 'ellipsis',
4074
5012
  paddingRight: '70px'
4075
- }
4076
- }, {
5013
+ },
4077
5014
  children: serviceName
4078
- }))
4079
- }))
4080
- }), serviceUrl);
5015
+ })
5016
+ })
5017
+ }, serviceUrl);
4081
5018
  })
4082
- }));
5019
+ });
4083
5020
  };
4084
5021
 
4085
- var anObject$1 = anObject$6;
5022
+ var anObject$1 = anObject$b;
4086
5023
 
4087
5024
  // `RegExp.prototype.flags` getter implementation
4088
5025
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
@@ -4100,11 +5037,11 @@ var regexpFlags$1 = function () {
4100
5037
  return result;
4101
5038
  };
4102
5039
 
4103
- var fails$2 = fails$i;
4104
- var global$3 = global$f;
5040
+ var fails$2 = fails$j;
5041
+ var globalThis$3 = globalThis_1;
4105
5042
 
4106
5043
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
4107
- var $RegExp$2 = global$3.RegExp;
5044
+ var $RegExp$2 = globalThis$3.RegExp;
4108
5045
 
4109
5046
  var UNSUPPORTED_Y$1 = fails$2(function () {
4110
5047
  var re = $RegExp$2('a', 'y');
@@ -4131,22 +5068,22 @@ var regexpStickyHelpers = {
4131
5068
  UNSUPPORTED_Y: UNSUPPORTED_Y$1
4132
5069
  };
4133
5070
 
4134
- var fails$1 = fails$i;
4135
- var global$2 = global$f;
5071
+ var fails$1 = fails$j;
5072
+ var globalThis$2 = globalThis_1;
4136
5073
 
4137
5074
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
4138
- var $RegExp$1 = global$2.RegExp;
5075
+ var $RegExp$1 = globalThis$2.RegExp;
4139
5076
 
4140
5077
  var regexpUnsupportedDotAll = fails$1(function () {
4141
5078
  var re = $RegExp$1('.', 's');
4142
5079
  return !(re.dotAll && re.test('\n') && re.flags === 's');
4143
5080
  });
4144
5081
 
4145
- var fails = fails$i;
4146
- var global$1 = global$f;
5082
+ var fails = fails$j;
5083
+ var globalThis$1 = globalThis_1;
4147
5084
 
4148
5085
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
4149
- var $RegExp = global$1.RegExp;
5086
+ var $RegExp = globalThis$1.RegExp;
4150
5087
 
4151
5088
  var regexpUnsupportedNcg = fails(function () {
4152
5089
  var re = $RegExp('(?<a>b)', 'g');
@@ -4284,8 +5221,8 @@ $$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
4284
5221
 
4285
5222
  var $ = _export;
4286
5223
  var call = functionCall;
4287
- var isCallable = isCallable$g;
4288
- var anObject = anObject$6;
5224
+ var isCallable = isCallable$k;
5225
+ var anObject = anObject$b;
4289
5226
  var toString = toString$4;
4290
5227
 
4291
5228
  var DELEGATES_TO_EXEC = function () {
@@ -4315,13 +5252,13 @@ $({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
4315
5252
  }
4316
5253
  });
4317
5254
 
4318
- const validateServiceName = (value, services, ownServiceName = '') => {
4319
- const serviceName = value === null || value === void 0 ? void 0 : value.toLowerCase();
5255
+ const validateServiceName = (t, value, services, ownServiceName = '') => {
5256
+ const serviceName = value == null ? void 0 : value.toLowerCase();
4320
5257
  const foundName = Object.keys(services).find(serviceId => {
4321
- var _a;
4322
- return ((_a = services[serviceId]) === null || _a === void 0 ? void 0 : _a.serviceName.toLowerCase()) === serviceName && serviceName !== ownServiceName.toLocaleLowerCase();
5258
+ var _services$serviceId;
5259
+ return ((_services$serviceId = services[serviceId]) == null ? void 0 : _services$serviceId.serviceName.toLowerCase()) === serviceName && serviceName !== ownServiceName.toLocaleLowerCase();
4323
5260
  });
4324
- return foundName === undefined ? true : translateKeyOutsideComponents('validations-name-existing');
5261
+ return foundName === undefined ? true : t('validations-name-existing');
4325
5262
  };
4326
5263
  const isValidUrl = url => {
4327
5264
  if (url === '' || url === null || typeof url === 'undefined') {
@@ -4333,25 +5270,25 @@ const isValidUrl = url => {
4333
5270
  }
4334
5271
  return true;
4335
5272
  };
4336
- const validateServiceUrl = (value, services) => {
5273
+ const validateServiceUrl = (t, value, services) => {
4337
5274
  const serviceUrl = value;
4338
5275
  // validate valid url
4339
5276
  const isServiceUrlValid = isValidUrl(serviceUrl);
4340
5277
  if (!isServiceUrlValid) {
4341
- return translateKeyOutsideComponents('validations-service-valid-url');
5278
+ return t('validations-service-valid-url');
4342
5279
  }
4343
5280
  // check url existing
4344
5281
  const foundUrl = Object.keys(services).find(serviceId => {
4345
- var _a;
4346
- return ((_a = services[serviceId]) === null || _a === void 0 ? void 0 : _a.serviceUrl) === serviceUrl;
5282
+ var _services$serviceId2;
5283
+ return ((_services$serviceId2 = services[serviceId]) == null ? void 0 : _services$serviceId2.serviceUrl) === serviceUrl;
4347
5284
  });
4348
5285
  if (foundUrl) {
4349
- return translateKeyOutsideComponents('validations-service-existing');
5286
+ return t('validations-service-existing');
4350
5287
  }
4351
5288
  return true;
4352
5289
  };
4353
- const loadWMSService = (serviceUrl, forceReload = false) => __awaiter(void 0, void 0, void 0, function* () {
4354
- const layers = yield getCapabilities.getLayersFlattenedFromService(serviceUrl, forceReload);
5290
+ const loadWMSService = async (serviceUrl, forceReload = false) => {
5291
+ const layers = await getCapabilities.getLayersFlattenedFromService(serviceUrl, forceReload);
4355
5292
  const service = WMGetServiceFromStore(serviceUrl);
4356
5293
  return {
4357
5294
  id: service.id,
@@ -4361,13 +5298,13 @@ const loadWMSService = (serviceUrl, forceReload = false) => __awaiter(void 0, vo
4361
5298
  layers,
4362
5299
  scope: 'user'
4363
5300
  };
4364
- });
5301
+ };
4365
5302
 
4366
5303
  const getService = (services, serviceUrl) => {
4367
5304
  const serviceIds = Object.keys(services);
4368
5305
  const serviceIndex = serviceIds.findIndex(serviceId => {
4369
- var _a;
4370
- return ((_a = services[serviceId]) === null || _a === void 0 ? void 0 : _a.serviceUrl) === serviceUrl;
5306
+ var _services$serviceId;
5307
+ return ((_services$serviceId = services[serviceId]) == null ? void 0 : _services$serviceId.serviceUrl) === serviceUrl;
4371
5308
  });
4372
5309
  if (serviceIndex < 0) {
4373
5310
  return null;
@@ -4399,7 +5336,7 @@ const ServiceOptionsDialogConnect = ({
4399
5336
  const [isLoading, setIsLoading] = React.useState(false);
4400
5337
  const dispatch = useDispatch();
4401
5338
  const serviceSetLayers = React.useCallback(payload => {
4402
- dispatch(serviceActions.serviceSetLayers(Object.assign(Object.assign({}, payload), {
5339
+ dispatch(serviceActions.serviceSetLayers(Object.assign({}, payload, {
4403
5340
  isUpdating: true
4404
5341
  })));
4405
5342
  }, [dispatch]);
@@ -4425,10 +5362,10 @@ const ServiceOptionsDialogConnect = ({
4425
5362
  serviceUrl
4426
5363
  }));
4427
5364
  }, [dispatch, showSnackbar]);
4428
- const layerSelectReloadService = React.useCallback(serviceUrl => __awaiter(void 0, void 0, void 0, function* () {
5365
+ const layerSelectReloadService = React.useCallback(async serviceUrl => {
4429
5366
  setIsLoading(true);
4430
5367
  try {
4431
- const layersForService = yield loadWMSService(serviceUrl, true);
5368
+ const layersForService = await loadWMSService(serviceUrl, true);
4432
5369
  const service = getService(services, serviceUrl);
4433
5370
  serviceSetLayers({
4434
5371
  id: layersForService.id,
@@ -4449,7 +5386,7 @@ const ServiceOptionsDialogConnect = ({
4449
5386
  } finally {
4450
5387
  setIsLoading(false);
4451
5388
  }
4452
- }), [serviceSetLayers, services, showSnackbar]);
5389
+ }, [serviceSetLayers, services, showSnackbar]);
4453
5390
  return jsx(ServiceOptionsDialog, {
4454
5391
  selectedLayers: selectedLayers,
4455
5392
  services: services,
@@ -4463,14 +5400,13 @@ const ServiceOptionsDialogConnect = ({
4463
5400
  const ServiceOptionsButton = ({
4464
5401
  mapId
4465
5402
  }) => {
4466
- return jsx(ToggleMenu, Object.assign({
5403
+ return jsx(ToggleMenu, {
4467
5404
  buttonTestId: "serviceOptionsButton",
4468
- menuPosition: "bottom"
4469
- }, {
5405
+ menuPosition: "bottom",
4470
5406
  children: jsx(ServiceOptionsDialogConnect, {
4471
5407
  mapId: mapId
4472
5408
  })
4473
- }));
5409
+ });
4474
5410
  };
4475
5411
 
4476
5412
  const LayerSelect = ({
@@ -4504,7 +5440,7 @@ const LayerSelect = ({
4504
5440
  setServiceListHeight(height);
4505
5441
  }
4506
5442
  };
4507
- return jsxs(ToolContainerDraggable, Object.assign({
5443
+ return jsxs(ToolContainerDraggable, {
4508
5444
  title: showTitle ? `Layer Select ${mapId}` : 'Layer Select',
4509
5445
  startSize: {
4510
5446
  width,
@@ -4541,55 +5477,54 @@ const LayerSelect = ({
4541
5477
  _onMouseDown(event);
4542
5478
  },
4543
5479
  order: _order,
4544
- source: _source
4545
- }, {
4546
- children: [jsx(Box, Object.assign({
5480
+ source: _source,
5481
+ children: [jsx(Box, {
4547
5482
  sx: {
4548
5483
  padding: '4px 16px 0 16px'
4549
- }
4550
- }, {
5484
+ },
4551
5485
  children: jsx(SearchFieldConnect, {})
4552
- })), jsx(Box, Object.assign({
5486
+ }), jsx(Box, {
4553
5487
  sx: {
4554
5488
  float: 'left',
4555
5489
  position: 'absolute',
4556
5490
  margin: '8px 8px 0 16px',
4557
5491
  zIndex: 2
4558
- }
4559
- }, {
5492
+ },
4560
5493
  children: jsx(KeywordFilterButtonConnect, {
4561
5494
  mapId: mapId,
4562
5495
  isMultiMap: _isMultiMap
4563
5496
  })
4564
- })), jsx(Box, Object.assign({
5497
+ }), jsx(Box, {
4565
5498
  sx: {
4566
5499
  position: 'absolute',
4567
5500
  margin: '8px 0 0 calc(100% - 40px)',
4568
5501
  zIndex: 2
4569
- }
4570
- }, {
5502
+ },
4571
5503
  children: jsx(ServiceOptionsButton, {
4572
5504
  mapId: mapId
4573
5505
  })
4574
- })), jsx(Box, {
5506
+ }), jsx(Box, {
4575
5507
  children: jsx(ServiceListConnect, {
4576
5508
  setHeight: handleHeightChange
4577
5509
  })
4578
- }), jsx(Box, Object.assign({
5510
+ }), jsx(Box, {
4579
5511
  sx: {
4580
5512
  padding: '0 16px'
4581
- }
4582
- }, {
5513
+ },
4583
5514
  children: jsx(LayerListConnect, {
4584
5515
  mapId: mapId,
4585
5516
  layerSelectHeight: height,
4586
5517
  serviceListHeight: serviceListHeight,
4587
5518
  layerSelectWidth: width
4588
5519
  })
4589
- }))]
4590
- }));
5520
+ })]
5521
+ });
4591
5522
  };
4592
5523
 
5524
+ function _objectDestructuringEmpty(t) {
5525
+ if (null == t) throw new TypeError("Cannot destructure " + t);
5526
+ }
5527
+
4593
5528
  const style = {
4594
5529
  textField: {
4595
5530
  width: '100%',
@@ -4599,14 +5534,14 @@ const style = {
4599
5534
  const getSuccesMessage = (serviceName, t) => t('get-success-message', {
4600
5535
  serviceName
4601
5536
  });
4602
- const getTitleForVariant = variant => {
5537
+ const getTitleForVariant = (t, variant) => {
4603
5538
  switch (variant) {
4604
5539
  case 'add':
4605
- return translateKeyOutsideComponents('add-a-new-service');
5540
+ return t('add-a-new-service');
4606
5541
  case 'edit':
4607
- return translateKeyOutsideComponents('edit-service-title');
5542
+ return t('edit-service-title');
4608
5543
  case 'save':
4609
- return translateKeyOutsideComponents('save-service-title');
5544
+ return t('save-service-title');
4610
5545
  default:
4611
5546
  return 'Service';
4612
5547
  }
@@ -4633,7 +5568,7 @@ const InitialValidationsTrigger = ({
4633
5568
  React.useEffect(() => {
4634
5569
  const value = getValues(fields.serviceUrl.name);
4635
5570
  if (value) {
4636
- trigger(fields.serviceUrl.name).then(isValid => isValid && onValidField(value));
5571
+ void trigger(fields.serviceUrl.name).then(isValid => isValid && onValidField(value));
4637
5572
  }
4638
5573
  // eslint-disable-next-line react-hooks/exhaustive-deps
4639
5574
  }, []);
@@ -4668,10 +5603,10 @@ const ServicePopupUnwrapped = ({
4668
5603
  } = useFormContext();
4669
5604
  const [isLoading, setIsLoading] = React.useState(false);
4670
5605
  const [shouldForceReload, setShouldForceReload] = React.useState(false);
4671
- const fetchServiceData = newServiceUrl => __awaiter(void 0, void 0, void 0, function* () {
5606
+ const fetchServiceData = async newServiceUrl => {
4672
5607
  try {
4673
5608
  setIsLoading(true);
4674
- const service = yield loadWMSService(newServiceUrl, true);
5609
+ const service = await loadWMSService(newServiceUrl, true);
4675
5610
  setValue(fields.serviceName.name, service.name);
4676
5611
  setValue(fields.serviceAbstracts.name, service.abstract);
4677
5612
  setIsLoading(false);
@@ -4684,12 +5619,12 @@ const ServicePopupUnwrapped = ({
4684
5619
  type: 'SYSTEM'
4685
5620
  });
4686
5621
  }
4687
- });
4688
- const addNewService = formValues => __awaiter(void 0, void 0, void 0, function* () {
5622
+ };
5623
+ const addNewService = async formValues => {
4689
5624
  clearErrors(fields.serviceUrl.name);
4690
5625
  setIsLoading(true);
4691
5626
  try {
4692
- const service = yield loadWMSService(formValues.serviceUrl, shouldForceReload);
5627
+ const service = await loadWMSService(formValues.serviceUrl, shouldForceReload);
4693
5628
  serviceSetLayers({
4694
5629
  id: service.id,
4695
5630
  name: formValues.serviceName,
@@ -4708,19 +5643,19 @@ const ServicePopupUnwrapped = ({
4708
5643
  type: 'SYSTEM'
4709
5644
  });
4710
5645
  }
4711
- });
4712
- const onValidateServiceUrl = value => validateServiceUrl(value, services);
5646
+ };
5647
+ const onValidateServiceUrl = value => validateServiceUrl(t, value, services);
4713
5648
  const onFocusServiceUrl = () => {
4714
5649
  const hasValue = getValues(fields.serviceUrl.name);
4715
5650
  if (!errors[fields.serviceUrl.name] && hasValue) {
4716
- trigger(fields.serviceUrl.name);
5651
+ void trigger(fields.serviceUrl.name);
4717
5652
  }
4718
5653
  };
4719
5654
  const onBlurServiceUrl = () => {
4720
- trigger(fields.serviceUrl.name).then(() => {
5655
+ void trigger(fields.serviceUrl.name).then(() => {
4721
5656
  const hasValue = getValues(fields.serviceUrl.name);
4722
5657
  if (!errors[fields.serviceUrl.name] && hasValue) {
4723
- fetchServiceData(getValues(fields.serviceUrl.name));
5658
+ void fetchServiceData(getValues(fields.serviceUrl.name));
4724
5659
  }
4725
5660
  });
4726
5661
  };
@@ -4729,7 +5664,7 @@ const ServicePopupUnwrapped = ({
4729
5664
  onBlurServiceUrl();
4730
5665
  }
4731
5666
  };
4732
- const onValidateServiceName = value => validateServiceName(value, services, serviceName);
5667
+ const onValidateServiceName = value => validateServiceName(t, value, services, serviceName);
4733
5668
  const getFormAreRequiredFieldsEmpty = () => {
4734
5669
  const serviceNameField = watch(fields.serviceName.name);
4735
5670
  const serviceUrlField = watch(fields.serviceUrl.name);
@@ -4749,7 +5684,7 @@ const ServicePopupUnwrapped = ({
4749
5684
  const isSubmitDisabled = getFormHasformErrors() || getFormAreRequiredFieldsEmpty();
4750
5685
  const isShowPopup = servicePopupVariant === 'show';
4751
5686
  const isServiceUrlDisabled = isShowPopup || servicePopupVariant === 'edit';
4752
- return jsx(Dialog, Object.assign({
5687
+ return jsx(Dialog, {
4753
5688
  open: isOpen,
4754
5689
  hideBackdrop: _hideBackdrop,
4755
5690
  fullWidth: true,
@@ -4760,18 +5695,15 @@ const ServicePopupUnwrapped = ({
4760
5695
  backgroundColor: `geowebColors.cards.cardContainer`,
4761
5696
  maxWidth: 458
4762
5697
  }
4763
- }
4764
- }, {
4765
- children: jsxs("form", Object.assign({
4766
- onSubmit: handleSubmit(addNewService)
4767
- }, {
4768
- children: [jsxs(DialogTitle, Object.assign({
5698
+ },
5699
+ children: jsxs("form", {
5700
+ onSubmit: handleSubmit(addNewService),
5701
+ children: [jsxs(DialogTitle, {
4769
5702
  sx: {
4770
5703
  alignItems: 'center',
4771
5704
  padding: '16px 16px 24px 16px'
4772
- }
4773
- }, {
4774
- children: [jsxs(Box, Object.assign({
5705
+ },
5706
+ children: [jsxs(Box, {
4775
5707
  sx: {
4776
5708
  display: 'flex',
4777
5709
  justifyContent: 'space-between',
@@ -4783,14 +5715,12 @@ const ServicePopupUnwrapped = ({
4783
5715
  lineHeight: '1.38',
4784
5716
  letterSpacing: '0.12px'
4785
5717
  }
4786
- }
4787
- }, {
4788
- children: [jsx(Typography, Object.assign({
5718
+ },
5719
+ children: [jsx(Typography, {
4789
5720
  variant: "h5",
4790
- component: "span"
4791
- }, {
4792
- children: getTitleForVariant(servicePopupVariant)
4793
- })), jsx(CustomIconButton, Object.assign({
5721
+ component: "span",
5722
+ children: getTitleForVariant(t, servicePopupVariant)
5723
+ }), jsx(CustomIconButton, {
4794
5724
  "aria-label": "close",
4795
5725
  onClick: closePopup,
4796
5726
  "data-testid": "closePopupButtonCross",
@@ -4800,15 +5730,13 @@ const ServicePopupUnwrapped = ({
4800
5730
  '&.MuiButtonBase-root': {
4801
5731
  color: 'geowebColors.greys.accessible'
4802
5732
  }
4803
- }
4804
- }, {
5733
+ },
4805
5734
  children: jsx(Close, {})
4806
- }))]
4807
- })), isLoading && jsx(Box, Object.assign({
5735
+ })]
5736
+ }), isLoading && jsx(Box, {
4808
5737
  sx: {
4809
5738
  position: 'relative'
4810
- }
4811
- }, {
5739
+ },
4812
5740
  children: jsx(LinearProgress, {
4813
5741
  "data-testid": "loadingIndicator",
4814
5742
  color: "secondary",
@@ -4818,12 +5746,11 @@ const ServicePopupUnwrapped = ({
4818
5746
  top: 8
4819
5747
  }
4820
5748
  })
4821
- }))]
4822
- })), jsxs(DialogContent, Object.assign({
5749
+ })]
5750
+ }), jsxs(DialogContent, {
4823
5751
  sx: {
4824
5752
  padding: '8px 16px'
4825
- }
4826
- }, {
5753
+ },
4827
5754
  children: [jsx(ReactHookFormTextField, {
4828
5755
  name: fields.serviceUrl.name,
4829
5756
  label: t('service-url-label'),
@@ -4842,22 +5769,20 @@ const ServicePopupUnwrapped = ({
4842
5769
  isReadOnly: isShowPopup,
4843
5770
  inputSlotProps: {
4844
5771
  disableUnderline: isShowPopup,
4845
- endAdornment: isShowPopup && jsx(InputAdornment, Object.assign({
4846
- position: "end"
4847
- }, {
4848
- children: jsx(CustomIconButton, Object.assign({
5772
+ endAdornment: isShowPopup && jsx(InputAdornment, {
5773
+ position: "end",
5774
+ children: jsx(CustomIconButton, {
4849
5775
  "aria-label": "copy url",
4850
5776
  onClick: () => {
4851
- navigator.clipboard.writeText(serviceUrl);
5777
+ void navigator.clipboard.writeText(serviceUrl);
4852
5778
  _showSnackbar(t('copy-url-message'));
4853
5779
  },
4854
5780
  sx: {
4855
5781
  marginTop: 0.5
4856
- }
4857
- }, {
5782
+ },
4858
5783
  children: jsx(Copy, {})
4859
- }))
4860
- }))
5784
+ })
5785
+ })
4861
5786
  },
4862
5787
  defaultValue: serviceUrl
4863
5788
  }), jsx(ReactHookFormTextField, {
@@ -4894,30 +5819,27 @@ const ServicePopupUnwrapped = ({
4894
5819
  getValues: getValues,
4895
5820
  onValidField: fetchServiceData
4896
5821
  })]
4897
- })), jsx(DialogActions, Object.assign({
5822
+ }), jsx(DialogActions, {
4898
5823
  sx: {
4899
5824
  padding: 2
4900
- }
4901
- }, {
4902
- children: isShowPopup ? jsx(Button, Object.assign({
5825
+ },
5826
+ children: isShowPopup ? jsx(Button, {
4903
5827
  onClick: () => closePopup(),
4904
5828
  variant: "tertiary",
4905
5829
  sx: {
4906
5830
  width: '117px'
4907
- }
4908
- }, {
5831
+ },
4909
5832
  children: t('close')
4910
- })) : jsxs(Fragment, {
4911
- children: [jsx(Button, Object.assign({
5833
+ }) : jsxs(Fragment, {
5834
+ children: [jsx(Button, {
4912
5835
  onClick: closePopup,
4913
5836
  "data-testid": "closePopupButtonCancel",
4914
5837
  variant: "tertiary",
4915
5838
  sx: {
4916
5839
  width: '117px'
4917
- }
4918
- }, {
5840
+ },
4919
5841
  children: t('cancel')
4920
- })), jsx(Button, Object.assign({
5842
+ }), jsx(Button, {
4921
5843
  type: "submit",
4922
5844
  variant: "primary",
4923
5845
  disabled: isSubmitDisabled || isLoading,
@@ -4925,28 +5847,26 @@ const ServicePopupUnwrapped = ({
4925
5847
  sx: {
4926
5848
  width: '117px',
4927
5849
  marginLeft: '16px!important'
4928
- }
4929
- }, {
5850
+ },
4930
5851
  children: t('save')
4931
- }))]
5852
+ })]
4932
5853
  })
4933
- }))]
4934
- }))
4935
- }));
4936
- };
4937
- const ServicePopup = _a => {
4938
- var props = __rest(_a, []);
4939
- return jsx(ReactHookFormProvider, Object.assign({
4940
- options: Object.assign(Object.assign({}, defaultFormOptions), {
5854
+ })]
5855
+ })
5856
+ });
5857
+ };
5858
+ const ServicePopup = _ref => {
5859
+ let props = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
5860
+ return jsx(ReactHookFormProvider, {
5861
+ options: Object.assign({}, defaultFormOptions, {
4941
5862
  defaultValues: {
4942
5863
  serviceUrl: props.serviceUrl,
4943
5864
  serviceName: props.serviceName,
4944
5865
  serviceAbstracts: props.serviceAbstracts
4945
5866
  }
4946
- })
4947
- }, {
5867
+ }),
4948
5868
  children: jsx(ServicePopupUnwrapped, Object.assign({}, props))
4949
- }));
5869
+ });
4950
5870
  };
4951
5871
 
4952
5872
  // Extracted from ServicePopupDialog as the getActiveServices and getActiveServiceById selectors
@@ -4978,9 +5898,9 @@ const ServicePopupDialogConnect = ({
4978
5898
  services: services,
4979
5899
  serviceSetLayers: serviceSetLayers,
4980
5900
  serviceId: _serviceId,
4981
- serviceUrl: _url || (activeService === null || activeService === void 0 ? void 0 : activeService.serviceUrl),
4982
- serviceName: activeService === null || activeService === void 0 ? void 0 : activeService.serviceName,
4983
- serviceAbstracts: activeService === null || activeService === void 0 ? void 0 : activeService.abstract,
5901
+ serviceUrl: _url || (activeService == null ? void 0 : activeService.serviceUrl),
5902
+ serviceName: activeService == null ? void 0 : activeService.serviceName,
5903
+ serviceAbstracts: activeService == null ? void 0 : activeService.abstract,
4984
5904
  showSnackbar: showSnackbar
4985
5905
  });
4986
5906
  };