@opengeoweb/cap 9.31.0 → 9.32.1

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.
Files changed (2) hide show
  1. package/index.esm.js +1126 -1161
  2. package/package.json +4 -3
package/index.esm.js CHANGED
@@ -57,25 +57,92 @@ var capTrans = {
57
57
  nl: nl
58
58
  };
59
59
 
60
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
61
-
62
- var check = function (it) {
63
- return it && it.Math === Math && it;
60
+ /* *
61
+ * Licensed under the Apache License, Version 2.0 (the "License");
62
+ * you may not use this file except in compliance with the License.
63
+ * You may obtain a copy of the License at
64
+ *
65
+ * http://www.apache.org/licenses/LICENSE-2.0
66
+ *
67
+ * Unless required by applicable law or agreed to in writing, software
68
+ * distributed under the License is distributed on an "AS IS" BASIS,
69
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
70
+ * See the License for the specific language governing permissions and
71
+ * limitations under the License.
72
+ *
73
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
74
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
75
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
76
+ * */
77
+ const feedAdapter = createEntityAdapter();
78
+ const feedInitialState = feedAdapter.getInitialState();
79
+ const alertAdapter = createEntityAdapter({
80
+ // we use identifier as id
81
+ selectId: capAlert => capAlert.identifier
82
+ });
83
+ const alertInitialState = alertAdapter.getInitialState();
84
+ const initialState = {
85
+ feeds: feedInitialState,
86
+ alerts: alertInitialState
64
87
  };
88
+ const slice = createSlice({
89
+ initialState,
90
+ name: 'capReducer',
91
+ reducers: {
92
+ addManyAlerts: (draft, action) => {
93
+ alertAdapter.upsertMany(draft.alerts, action.payload);
94
+ },
95
+ addManyAlertsToFeed: (draft, action) => {
96
+ feedAdapter.upsertOne(draft.feeds, {
97
+ id: action.payload.feedId,
98
+ lastUpdated: Date.now(),
99
+ alertIds: action.payload.alertIds
100
+ });
101
+ },
102
+ setFeedLastUpdatedTimes: (draft, action) => {
103
+ feedAdapter.updateMany(draft.feeds, action.payload);
104
+ }
105
+ }
106
+ });
107
+ const {
108
+ reducer
109
+ } = slice;
110
+ const capActions = slice.actions;
65
111
 
66
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
67
- var global$l =
68
- // eslint-disable-next-line es/no-global-this -- safe
69
- check(typeof globalThis == 'object' && globalThis) ||
70
- check(typeof window == 'object' && window) ||
71
- // eslint-disable-next-line no-restricted-globals -- safe
72
- check(typeof self == 'object' && self) ||
73
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
74
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
75
- // eslint-disable-next-line no-new-func -- fallback
76
- (function () { return this; })() || Function('return this')();
112
+ /* *
113
+ * Licensed under the Apache License, Version 2.0 (the "License");
114
+ * you may not use this file except in compliance with the License.
115
+ * You may obtain a copy of the License at
116
+ *
117
+ * http://www.apache.org/licenses/LICENSE-2.0
118
+ *
119
+ * Unless required by applicable law or agreed to in writing, software
120
+ * distributed under the License is distributed on an "AS IS" BASIS,
121
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
122
+ * See the License for the specific language governing permissions and
123
+ * limitations under the License.
124
+ *
125
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
126
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
127
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
128
+ * */
129
+ const {
130
+ selectById: getCapFeedById,
131
+ selectAll: getCapFeeds
132
+ } = feedAdapter.getSelectors(state => state.capStore.feeds);
133
+ const {
134
+ selectById: getAlertById,
135
+ selectAll: getAlerts,
136
+ selectIds: getAlertIds
137
+ } = alertAdapter.getSelectors(state => state.capStore.alerts);
138
+ const getAlertsInEffect = createSelector(getAlerts, (_state, selectedTime) => selectedTime, (alerts, selectedTime) => {
139
+ return alerts.filter(alert => dateUtils.isBetween(dateUtils.createDate(selectedTime), dateUtils.createDate(alert.onset), dateUtils.createDate(alert.expires), '[)'));
140
+ });
141
+ const getLastUpdatedTimes = createSelector(getCapFeeds, feeds => {
142
+ return feeds.map(feed => feed.lastUpdated);
143
+ });
77
144
 
78
- var objectGetOwnPropertyDescriptor = {};
145
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
79
146
 
80
147
  var fails$k = function (exec) {
81
148
  try {
@@ -87,15 +154,7 @@ var fails$k = function (exec) {
87
154
 
88
155
  var fails$j = fails$k;
89
156
 
90
- // Detect IE8's incomplete defineProperty implementation
91
- var descriptors = !fails$j(function () {
92
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
93
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
94
- });
95
-
96
- var fails$i = fails$k;
97
-
98
- var functionBindNative = !fails$i(function () {
157
+ var functionBindNative = !fails$j(function () {
99
158
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
100
159
  var test = (function () { /* empty */ }).bind();
101
160
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -104,46 +163,13 @@ var functionBindNative = !fails$i(function () {
104
163
 
105
164
  var NATIVE_BIND$3 = functionBindNative;
106
165
 
107
- var call$i = Function.prototype.call;
108
-
109
- var functionCall = NATIVE_BIND$3 ? call$i.bind(call$i) : function () {
110
- return call$i.apply(call$i, arguments);
111
- };
112
-
113
- var objectPropertyIsEnumerable = {};
114
-
115
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
116
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
117
- var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
118
-
119
- // Nashorn ~ JDK8 bug
120
- var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
121
-
122
- // `Object.prototype.propertyIsEnumerable` method implementation
123
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
124
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
125
- var descriptor = getOwnPropertyDescriptor$3(this, V);
126
- return !!descriptor && descriptor.enumerable;
127
- } : $propertyIsEnumerable;
128
-
129
- var createPropertyDescriptor$3 = function (bitmap, value) {
130
- return {
131
- enumerable: !(bitmap & 1),
132
- configurable: !(bitmap & 2),
133
- writable: !(bitmap & 4),
134
- value: value
135
- };
136
- };
137
-
138
- var NATIVE_BIND$2 = functionBindNative;
139
-
140
166
  var FunctionPrototype$2 = Function.prototype;
141
- var call$h = FunctionPrototype$2.call;
142
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$h, call$h);
167
+ var call$i = FunctionPrototype$2.call;
168
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$i, call$i);
143
169
 
144
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
170
+ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
145
171
  return function () {
146
- return call$h.apply(fn, arguments);
172
+ return call$i.apply(fn, arguments);
147
173
  };
148
174
  };
149
175
 
@@ -157,14 +183,14 @@ var classofRaw$2 = function (it) {
157
183
  };
158
184
 
159
185
  var uncurryThis$j = functionUncurryThis;
160
- var fails$h = fails$k;
186
+ var fails$i = fails$k;
161
187
  var classof$8 = classofRaw$2;
162
188
 
163
189
  var $Object$4 = Object;
164
190
  var split = uncurryThis$j(''.split);
165
191
 
166
192
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
167
- var indexedObject = fails$h(function () {
193
+ var indexedObject = fails$i(function () {
168
194
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
169
195
  // eslint-disable-next-line no-prototype-builtins -- safe
170
196
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -197,46 +223,103 @@ var toIndexedObject$5 = function (it) {
197
223
  return IndexedObject$2(requireObjectCoercible$6(it));
198
224
  };
199
225
 
200
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
201
- var documentAll = typeof document == 'object' && document.all;
202
-
203
- // `IsCallable` abstract operation
204
- // https://tc39.es/ecma262/#sec-iscallable
205
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
206
- var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
207
- return typeof argument == 'function' || argument === documentAll;
208
- } : function (argument) {
209
- return typeof argument == 'function';
226
+ var check = function (it) {
227
+ return it && it.Math === Math && it;
210
228
  };
211
229
 
212
- var isCallable$k = isCallable$l;
230
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
231
+ var globalThis_1 =
232
+ // eslint-disable-next-line es/no-global-this -- safe
233
+ check(typeof globalThis == 'object' && globalThis) ||
234
+ check(typeof window == 'object' && window) ||
235
+ // eslint-disable-next-line no-restricted-globals -- safe
236
+ check(typeof self == 'object' && self) ||
237
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
238
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
239
+ // eslint-disable-next-line no-new-func -- fallback
240
+ (function () { return this; })() || Function('return this')();
213
241
 
214
- var isObject$c = function (it) {
215
- return typeof it == 'object' ? it !== null : isCallable$k(it);
242
+ var sharedStore = {exports: {}};
243
+
244
+ var globalThis$m = globalThis_1;
245
+
246
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
247
+ var defineProperty$6 = Object.defineProperty;
248
+
249
+ var defineGlobalProperty$3 = function (key, value) {
250
+ try {
251
+ defineProperty$6(globalThis$m, key, { value: value, configurable: true, writable: true });
252
+ } catch (error) {
253
+ globalThis$m[key] = value;
254
+ } return value;
216
255
  };
217
256
 
218
- var global$k = global$l;
219
- var isCallable$j = isCallable$l;
257
+ var globalThis$l = globalThis_1;
258
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
220
259
 
221
- var aFunction = function (argument) {
222
- return isCallable$j(argument) ? argument : undefined;
260
+ var SHARED = '__core-js_shared__';
261
+ var store$3 = sharedStore.exports = globalThis$l[SHARED] || defineGlobalProperty$2(SHARED, {});
262
+
263
+ (store$3.versions || (store$3.versions = [])).push({
264
+ version: '3.39.0',
265
+ mode: 'global',
266
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
267
+ license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE',
268
+ source: 'https://github.com/zloirock/core-js'
269
+ });
270
+
271
+ var sharedStoreExports = sharedStore.exports;
272
+
273
+ var store$2 = sharedStoreExports;
274
+
275
+ var shared$4 = function (key, value) {
276
+ return store$2[key] || (store$2[key] = value || {});
223
277
  };
224
278
 
225
- var getBuiltIn$7 = function (namespace, method) {
226
- return arguments.length < 2 ? aFunction(global$k[namespace]) : global$k[namespace] && global$k[namespace][method];
279
+ var requireObjectCoercible$5 = requireObjectCoercible$7;
280
+
281
+ var $Object$3 = Object;
282
+
283
+ // `ToObject` abstract operation
284
+ // https://tc39.es/ecma262/#sec-toobject
285
+ var toObject$6 = function (argument) {
286
+ return $Object$3(requireObjectCoercible$5(argument));
227
287
  };
228
288
 
229
289
  var uncurryThis$i = functionUncurryThis;
290
+ var toObject$5 = toObject$6;
291
+
292
+ var hasOwnProperty = uncurryThis$i({}.hasOwnProperty);
293
+
294
+ // `HasOwnProperty` abstract operation
295
+ // https://tc39.es/ecma262/#sec-hasownproperty
296
+ // eslint-disable-next-line es/no-object-hasown -- safe
297
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
298
+ return hasOwnProperty(toObject$5(it), key);
299
+ };
300
+
301
+ var uncurryThis$h = functionUncurryThis;
302
+
303
+ var id = 0;
304
+ var postfix = Math.random();
305
+ var toString$6 = uncurryThis$h(1.0.toString);
306
+
307
+ var uid$2 = function (key) {
308
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
309
+ };
230
310
 
231
- var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
311
+ var globalThis$k = globalThis_1;
232
312
 
233
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
313
+ var navigator = globalThis$k.navigator;
314
+ var userAgent$5 = navigator && navigator.userAgent;
234
315
 
235
- var global$j = global$l;
236
- var userAgent$3 = engineUserAgent;
316
+ var environmentUserAgent = userAgent$5 ? String(userAgent$5) : '';
237
317
 
238
- var process$3 = global$j.process;
239
- var Deno$1 = global$j.Deno;
318
+ var globalThis$j = globalThis_1;
319
+ var userAgent$4 = environmentUserAgent;
320
+
321
+ var process$3 = globalThis$j.process;
322
+ var Deno$1 = globalThis$j.Deno;
240
323
  var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
241
324
  var v8 = versions && versions.v8;
242
325
  var match, version;
@@ -250,25 +333,25 @@ if (v8) {
250
333
 
251
334
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
252
335
  // so check `userAgent` even if `.v8` exists, but 0
253
- if (!version && userAgent$3) {
254
- match = userAgent$3.match(/Edge\/(\d+)/);
336
+ if (!version && userAgent$4) {
337
+ match = userAgent$4.match(/Edge\/(\d+)/);
255
338
  if (!match || match[1] >= 74) {
256
- match = userAgent$3.match(/Chrome\/(\d+)/);
339
+ match = userAgent$4.match(/Chrome\/(\d+)/);
257
340
  if (match) version = +match[1];
258
341
  }
259
342
  }
260
343
 
261
- var engineV8Version = version;
344
+ var environmentV8Version = version;
262
345
 
263
346
  /* eslint-disable es/no-symbol -- required for testing */
264
- var V8_VERSION$1 = engineV8Version;
265
- var fails$g = fails$k;
266
- var global$i = global$l;
347
+ var V8_VERSION$1 = environmentV8Version;
348
+ var fails$h = fails$k;
349
+ var globalThis$i = globalThis_1;
267
350
 
268
- var $String$5 = global$i.String;
351
+ var $String$5 = globalThis$i.String;
269
352
 
270
353
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
271
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$g(function () {
354
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(function () {
272
355
  var symbol = Symbol('symbol detection');
273
356
  // Chrome 38 Symbol has incorrect toString conversion
274
357
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -282,180 +365,211 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$g(func
282
365
  /* eslint-disable es/no-symbol -- required for testing */
283
366
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
284
367
 
285
- var useSymbolAsUid = NATIVE_SYMBOL$1
286
- && !Symbol.sham
287
- && typeof Symbol.iterator == 'symbol';
368
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
369
+ !Symbol.sham &&
370
+ typeof Symbol.iterator == 'symbol';
288
371
 
289
- var getBuiltIn$6 = getBuiltIn$7;
290
- var isCallable$i = isCallable$l;
291
- var isPrototypeOf$2 = objectIsPrototypeOf;
372
+ var globalThis$h = globalThis_1;
373
+ var shared$3 = shared$4;
374
+ var hasOwn$9 = hasOwnProperty_1;
375
+ var uid$1 = uid$2;
376
+ var NATIVE_SYMBOL = symbolConstructorDetection;
292
377
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
293
378
 
294
- var $Object$3 = Object;
379
+ var Symbol$1 = globalThis$h.Symbol;
380
+ var WellKnownSymbolsStore = shared$3('wks');
381
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
295
382
 
296
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
297
- return typeof it == 'symbol';
298
- } : function (it) {
299
- var $Symbol = getBuiltIn$6('Symbol');
300
- return isCallable$i($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
383
+ var wellKnownSymbol$j = function (name) {
384
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
385
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
386
+ ? Symbol$1[name]
387
+ : createWellKnownSymbol('Symbol.' + name);
388
+ } return WellKnownSymbolsStore[name];
301
389
  };
302
390
 
303
- var $String$4 = String;
391
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
392
+ var documentAll = typeof document == 'object' && document.all;
304
393
 
305
- var tryToString$4 = function (argument) {
306
- try {
307
- return $String$4(argument);
308
- } catch (error) {
309
- return 'Object';
310
- }
394
+ // `IsCallable` abstract operation
395
+ // https://tc39.es/ecma262/#sec-iscallable
396
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
397
+ var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
398
+ return typeof argument == 'function' || argument === documentAll;
399
+ } : function (argument) {
400
+ return typeof argument == 'function';
311
401
  };
312
402
 
313
- var isCallable$h = isCallable$l;
314
- var tryToString$3 = tryToString$4;
403
+ var isCallable$k = isCallable$l;
315
404
 
316
- var $TypeError$f = TypeError;
317
-
318
- // `Assert: IsCallable(argument) is true`
319
- var aCallable$b = function (argument) {
320
- if (isCallable$h(argument)) return argument;
321
- throw new $TypeError$f(tryToString$3(argument) + ' is not a function');
405
+ var isObject$c = function (it) {
406
+ return typeof it == 'object' ? it !== null : isCallable$k(it);
322
407
  };
323
408
 
324
- var aCallable$a = aCallable$b;
325
- var isNullOrUndefined$3 = isNullOrUndefined$5;
409
+ var isObject$b = isObject$c;
326
410
 
327
- // `GetMethod` abstract operation
328
- // https://tc39.es/ecma262/#sec-getmethod
329
- var getMethod$4 = function (V, P) {
330
- var func = V[P];
331
- return isNullOrUndefined$3(func) ? undefined : aCallable$a(func);
411
+ var $String$4 = String;
412
+ var $TypeError$f = TypeError;
413
+
414
+ // `Assert: Type(argument) is Object`
415
+ var anObject$c = function (argument) {
416
+ if (isObject$b(argument)) return argument;
417
+ throw new $TypeError$f($String$4(argument) + ' is not an object');
332
418
  };
333
419
 
334
- var call$g = functionCall;
335
- var isCallable$g = isCallable$l;
336
- var isObject$b = isObject$c;
420
+ var objectDefineProperties = {};
337
421
 
338
- var $TypeError$e = TypeError;
422
+ var fails$g = fails$k;
339
423
 
340
- // `OrdinaryToPrimitive` abstract operation
341
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
342
- var ordinaryToPrimitive$1 = function (input, pref) {
343
- var fn, val;
344
- if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$b(val = call$g(fn, input))) return val;
345
- if (isCallable$g(fn = input.valueOf) && !isObject$b(val = call$g(fn, input))) return val;
346
- if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$b(val = call$g(fn, input))) return val;
347
- throw new $TypeError$e("Can't convert object to primitive value");
348
- };
424
+ // Detect IE8's incomplete defineProperty implementation
425
+ var descriptors = !fails$g(function () {
426
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
427
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
428
+ });
349
429
 
350
- var sharedStore = {exports: {}};
430
+ var DESCRIPTORS$b = descriptors;
431
+ var fails$f = fails$k;
351
432
 
352
- var global$h = global$l;
433
+ // V8 ~ Chrome 36-
434
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
435
+ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$f(function () {
436
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
437
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
438
+ value: 42,
439
+ writable: false
440
+ }).prototype !== 42;
441
+ });
353
442
 
354
- // eslint-disable-next-line es/no-object-defineproperty -- safe
355
- var defineProperty$6 = Object.defineProperty;
443
+ var objectDefineProperty = {};
356
444
 
357
- var defineGlobalProperty$3 = function (key, value) {
358
- try {
359
- defineProperty$6(global$h, key, { value: value, configurable: true, writable: true });
360
- } catch (error) {
361
- global$h[key] = value;
362
- } return value;
363
- };
445
+ var globalThis$g = globalThis_1;
446
+ var isObject$a = isObject$c;
364
447
 
365
- var globalThis$1 = global$l;
366
- var defineGlobalProperty$2 = defineGlobalProperty$3;
448
+ var document$3 = globalThis$g.document;
449
+ // typeof document.createElement is 'object' in old IE
450
+ var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
367
451
 
368
- var SHARED = '__core-js_shared__';
369
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
452
+ var documentCreateElement$2 = function (it) {
453
+ return EXISTS$1 ? document$3.createElement(it) : {};
454
+ };
370
455
 
371
- (store$3.versions || (store$3.versions = [])).push({
372
- version: '3.37.1',
373
- mode: 'global',
374
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
375
- license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
376
- source: 'https://github.com/zloirock/core-js'
456
+ var DESCRIPTORS$a = descriptors;
457
+ var fails$e = fails$k;
458
+ var createElement$1 = documentCreateElement$2;
459
+
460
+ // Thanks to IE8 for its funny defineProperty
461
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$e(function () {
462
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
463
+ return Object.defineProperty(createElement$1('div'), 'a', {
464
+ get: function () { return 7; }
465
+ }).a !== 7;
377
466
  });
378
467
 
379
- var sharedStoreExports = sharedStore.exports;
468
+ var NATIVE_BIND$2 = functionBindNative;
380
469
 
381
- var store$2 = sharedStoreExports;
470
+ var call$h = Function.prototype.call;
382
471
 
383
- var shared$4 = function (key, value) {
384
- return store$2[key] || (store$2[key] = value || {});
472
+ var functionCall = NATIVE_BIND$2 ? call$h.bind(call$h) : function () {
473
+ return call$h.apply(call$h, arguments);
385
474
  };
386
475
 
387
- var requireObjectCoercible$5 = requireObjectCoercible$7;
476
+ var globalThis$f = globalThis_1;
477
+ var isCallable$j = isCallable$l;
388
478
 
389
- var $Object$2 = Object;
479
+ var aFunction = function (argument) {
480
+ return isCallable$j(argument) ? argument : undefined;
481
+ };
390
482
 
391
- // `ToObject` abstract operation
392
- // https://tc39.es/ecma262/#sec-toobject
393
- var toObject$6 = function (argument) {
394
- return $Object$2(requireObjectCoercible$5(argument));
483
+ var getBuiltIn$7 = function (namespace, method) {
484
+ return arguments.length < 2 ? aFunction(globalThis$f[namespace]) : globalThis$f[namespace] && globalThis$f[namespace][method];
395
485
  };
396
486
 
397
- var uncurryThis$h = functionUncurryThis;
398
- var toObject$5 = toObject$6;
487
+ var uncurryThis$g = functionUncurryThis;
399
488
 
400
- var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
489
+ var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
401
490
 
402
- // `HasOwnProperty` abstract operation
403
- // https://tc39.es/ecma262/#sec-hasownproperty
404
- // eslint-disable-next-line es/no-object-hasown -- safe
405
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
406
- return hasOwnProperty(toObject$5(it), key);
491
+ var getBuiltIn$6 = getBuiltIn$7;
492
+ var isCallable$i = isCallable$l;
493
+ var isPrototypeOf$2 = objectIsPrototypeOf;
494
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
495
+
496
+ var $Object$2 = Object;
497
+
498
+ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
499
+ return typeof it == 'symbol';
500
+ } : function (it) {
501
+ var $Symbol = getBuiltIn$6('Symbol');
502
+ return isCallable$i($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
407
503
  };
408
504
 
409
- var uncurryThis$g = functionUncurryThis;
505
+ var $String$3 = String;
410
506
 
411
- var id = 0;
412
- var postfix = Math.random();
413
- var toString$6 = uncurryThis$g(1.0.toString);
507
+ var tryToString$4 = function (argument) {
508
+ try {
509
+ return $String$3(argument);
510
+ } catch (error) {
511
+ return 'Object';
512
+ }
513
+ };
414
514
 
415
- var uid$2 = function (key) {
416
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
515
+ var isCallable$h = isCallable$l;
516
+ var tryToString$3 = tryToString$4;
517
+
518
+ var $TypeError$e = TypeError;
519
+
520
+ // `Assert: IsCallable(argument) is true`
521
+ var aCallable$b = function (argument) {
522
+ if (isCallable$h(argument)) return argument;
523
+ throw new $TypeError$e(tryToString$3(argument) + ' is not a function');
417
524
  };
418
525
 
419
- var global$g = global$l;
420
- var shared$3 = shared$4;
421
- var hasOwn$9 = hasOwnProperty_1;
422
- var uid$1 = uid$2;
423
- var NATIVE_SYMBOL = symbolConstructorDetection;
424
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
526
+ var aCallable$a = aCallable$b;
527
+ var isNullOrUndefined$3 = isNullOrUndefined$5;
425
528
 
426
- var Symbol$1 = global$g.Symbol;
427
- var WellKnownSymbolsStore = shared$3('wks');
428
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
529
+ // `GetMethod` abstract operation
530
+ // https://tc39.es/ecma262/#sec-getmethod
531
+ var getMethod$4 = function (V, P) {
532
+ var func = V[P];
533
+ return isNullOrUndefined$3(func) ? undefined : aCallable$a(func);
534
+ };
429
535
 
430
- var wellKnownSymbol$j = function (name) {
431
- if (!hasOwn$9(WellKnownSymbolsStore, name)) {
432
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
433
- ? Symbol$1[name]
434
- : createWellKnownSymbol('Symbol.' + name);
435
- } return WellKnownSymbolsStore[name];
536
+ var call$g = functionCall;
537
+ var isCallable$g = isCallable$l;
538
+ var isObject$9 = isObject$c;
539
+
540
+ var $TypeError$d = TypeError;
541
+
542
+ // `OrdinaryToPrimitive` abstract operation
543
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
544
+ var ordinaryToPrimitive$1 = function (input, pref) {
545
+ var fn, val;
546
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
547
+ if (isCallable$g(fn = input.valueOf) && !isObject$9(val = call$g(fn, input))) return val;
548
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
549
+ throw new $TypeError$d("Can't convert object to primitive value");
436
550
  };
437
551
 
438
552
  var call$f = functionCall;
439
- var isObject$a = isObject$c;
553
+ var isObject$8 = isObject$c;
440
554
  var isSymbol$1 = isSymbol$2;
441
555
  var getMethod$3 = getMethod$4;
442
556
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
443
557
  var wellKnownSymbol$i = wellKnownSymbol$j;
444
558
 
445
- var $TypeError$d = TypeError;
559
+ var $TypeError$c = TypeError;
446
560
  var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
447
561
 
448
562
  // `ToPrimitive` abstract operation
449
563
  // https://tc39.es/ecma262/#sec-toprimitive
450
564
  var toPrimitive$1 = function (input, pref) {
451
- if (!isObject$a(input) || isSymbol$1(input)) return input;
565
+ if (!isObject$8(input) || isSymbol$1(input)) return input;
452
566
  var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
453
567
  var result;
454
568
  if (exoticToPrim) {
455
569
  if (pref === undefined) pref = 'default';
456
570
  result = call$f(exoticToPrim, input, pref);
457
- if (!isObject$a(result) || isSymbol$1(result)) return result;
458
- throw new $TypeError$d("Can't convert object to primitive value");
571
+ if (!isObject$8(result) || isSymbol$1(result)) return result;
572
+ throw new $TypeError$c("Can't convert object to primitive value");
459
573
  }
460
574
  if (pref === undefined) pref = 'number';
461
575
  return ordinaryToPrimitive(input, pref);
@@ -471,101 +585,29 @@ var toPropertyKey$2 = function (argument) {
471
585
  return isSymbol(key) ? key : key + '';
472
586
  };
473
587
 
474
- var global$f = global$l;
475
- var isObject$9 = isObject$c;
476
-
477
- var document$3 = global$f.document;
478
- // typeof document.createElement is 'object' in old IE
479
- var EXISTS$1 = isObject$9(document$3) && isObject$9(document$3.createElement);
480
-
481
- var documentCreateElement$2 = function (it) {
482
- return EXISTS$1 ? document$3.createElement(it) : {};
483
- };
484
-
485
- var DESCRIPTORS$b = descriptors;
486
- var fails$f = fails$k;
487
- var createElement$1 = documentCreateElement$2;
488
-
489
- // Thanks to IE8 for its funny defineProperty
490
- var ie8DomDefine = !DESCRIPTORS$b && !fails$f(function () {
491
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
492
- return Object.defineProperty(createElement$1('div'), 'a', {
493
- get: function () { return 7; }
494
- }).a !== 7;
495
- });
496
-
497
- var DESCRIPTORS$a = descriptors;
498
- var call$e = functionCall;
499
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
500
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
501
- var toIndexedObject$4 = toIndexedObject$5;
502
- var toPropertyKey$1 = toPropertyKey$2;
503
- var hasOwn$8 = hasOwnProperty_1;
504
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
505
-
506
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
507
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
508
-
509
- // `Object.getOwnPropertyDescriptor` method
510
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
511
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
512
- O = toIndexedObject$4(O);
513
- P = toPropertyKey$1(P);
514
- if (IE8_DOM_DEFINE$1) try {
515
- return $getOwnPropertyDescriptor$1(O, P);
516
- } catch (error) { /* empty */ }
517
- if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
518
- };
519
-
520
- var objectDefineProperty = {};
521
-
522
588
  var DESCRIPTORS$9 = descriptors;
523
- var fails$e = fails$k;
524
-
525
- // V8 ~ Chrome 36-
526
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
527
- var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$e(function () {
528
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
529
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
530
- value: 42,
531
- writable: false
532
- }).prototype !== 42;
533
- });
534
-
535
- var isObject$8 = isObject$c;
536
-
537
- var $String$3 = String;
538
- var $TypeError$c = TypeError;
539
-
540
- // `Assert: Type(argument) is Object`
541
- var anObject$c = function (argument) {
542
- if (isObject$8(argument)) return argument;
543
- throw new $TypeError$c($String$3(argument) + ' is not an object');
544
- };
545
-
546
- var DESCRIPTORS$8 = descriptors;
547
- var IE8_DOM_DEFINE = ie8DomDefine;
589
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
548
590
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
549
591
  var anObject$b = anObject$c;
550
- var toPropertyKey = toPropertyKey$2;
592
+ var toPropertyKey$1 = toPropertyKey$2;
551
593
 
552
594
  var $TypeError$b = TypeError;
553
595
  // eslint-disable-next-line es/no-object-defineproperty -- safe
554
596
  var $defineProperty = Object.defineProperty;
555
597
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
556
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
598
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
557
599
  var ENUMERABLE = 'enumerable';
558
600
  var CONFIGURABLE$1 = 'configurable';
559
601
  var WRITABLE = 'writable';
560
602
 
561
603
  // `Object.defineProperty` method
562
604
  // https://tc39.es/ecma262/#sec-object.defineproperty
563
- objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
605
+ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
564
606
  anObject$b(O);
565
- P = toPropertyKey(P);
607
+ P = toPropertyKey$1(P);
566
608
  anObject$b(Attributes);
567
609
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
568
- var current = $getOwnPropertyDescriptor(O, P);
610
+ var current = $getOwnPropertyDescriptor$1(O, P);
569
611
  if (current && current[WRITABLE]) {
570
612
  O[P] = Attributes.value;
571
613
  Attributes = {
@@ -577,9 +619,9 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
577
619
  } return $defineProperty(O, P, Attributes);
578
620
  } : $defineProperty : function defineProperty(O, P, Attributes) {
579
621
  anObject$b(O);
580
- P = toPropertyKey(P);
622
+ P = toPropertyKey$1(P);
581
623
  anObject$b(Attributes);
582
- if (IE8_DOM_DEFINE) try {
624
+ if (IE8_DOM_DEFINE$1) try {
583
625
  return $defineProperty(O, P, Attributes);
584
626
  } catch (error) { /* empty */ }
585
627
  if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$b('Accessors not supported');
@@ -587,240 +629,18 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
587
629
  return O;
588
630
  };
589
631
 
590
- var DESCRIPTORS$7 = descriptors;
591
- var definePropertyModule$3 = objectDefineProperty;
592
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
632
+ var ceil = Math.ceil;
633
+ var floor$1 = Math.floor;
593
634
 
594
- var createNonEnumerableProperty$5 = DESCRIPTORS$7 ? function (object, key, value) {
595
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
596
- } : function (object, key, value) {
597
- object[key] = value;
598
- return object;
635
+ // `Math.trunc` method
636
+ // https://tc39.es/ecma262/#sec-math.trunc
637
+ // eslint-disable-next-line es/no-math-trunc -- safe
638
+ var mathTrunc = Math.trunc || function trunc(x) {
639
+ var n = +x;
640
+ return (n > 0 ? floor$1 : ceil)(n);
599
641
  };
600
642
 
601
- var makeBuiltIn$3 = {exports: {}};
602
-
603
- var DESCRIPTORS$6 = descriptors;
604
- var hasOwn$7 = hasOwnProperty_1;
605
-
606
- var FunctionPrototype$1 = Function.prototype;
607
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
608
- var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
609
-
610
- var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
611
- // additional protection from minified / mangled / dropped function names
612
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
613
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
614
-
615
- var functionName = {
616
- EXISTS: EXISTS,
617
- PROPER: PROPER,
618
- CONFIGURABLE: CONFIGURABLE
619
- };
620
-
621
- var uncurryThis$f = functionUncurryThis;
622
- var isCallable$f = isCallable$l;
623
- var store$1 = sharedStoreExports;
624
-
625
- var functionToString = uncurryThis$f(Function.toString);
626
-
627
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
628
- if (!isCallable$f(store$1.inspectSource)) {
629
- store$1.inspectSource = function (it) {
630
- return functionToString(it);
631
- };
632
- }
633
-
634
- var inspectSource$3 = store$1.inspectSource;
635
-
636
- var global$e = global$l;
637
- var isCallable$e = isCallable$l;
638
-
639
- var WeakMap$1 = global$e.WeakMap;
640
-
641
- var weakMapBasicDetection = isCallable$e(WeakMap$1) && /native code/.test(String(WeakMap$1));
642
-
643
- var shared$2 = shared$4;
644
- var uid = uid$2;
645
-
646
- var keys = shared$2('keys');
647
-
648
- var sharedKey$3 = function (key) {
649
- return keys[key] || (keys[key] = uid(key));
650
- };
651
-
652
- var hiddenKeys$4 = {};
653
-
654
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
655
- var global$d = global$l;
656
- var isObject$7 = isObject$c;
657
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
658
- var hasOwn$6 = hasOwnProperty_1;
659
- var shared$1 = sharedStoreExports;
660
- var sharedKey$2 = sharedKey$3;
661
- var hiddenKeys$3 = hiddenKeys$4;
662
-
663
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
664
- var TypeError$2 = global$d.TypeError;
665
- var WeakMap = global$d.WeakMap;
666
- var set$1, get, has;
667
-
668
- var enforce = function (it) {
669
- return has(it) ? get(it) : set$1(it, {});
670
- };
671
-
672
- var getterFor = function (TYPE) {
673
- return function (it) {
674
- var state;
675
- if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
676
- throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
677
- } return state;
678
- };
679
- };
680
-
681
- if (NATIVE_WEAK_MAP || shared$1.state) {
682
- var store = shared$1.state || (shared$1.state = new WeakMap());
683
- /* eslint-disable no-self-assign -- prototype methods protection */
684
- store.get = store.get;
685
- store.has = store.has;
686
- store.set = store.set;
687
- /* eslint-enable no-self-assign -- prototype methods protection */
688
- set$1 = function (it, metadata) {
689
- if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
690
- metadata.facade = it;
691
- store.set(it, metadata);
692
- return metadata;
693
- };
694
- get = function (it) {
695
- return store.get(it) || {};
696
- };
697
- has = function (it) {
698
- return store.has(it);
699
- };
700
- } else {
701
- var STATE = sharedKey$2('state');
702
- hiddenKeys$3[STATE] = true;
703
- set$1 = function (it, metadata) {
704
- if (hasOwn$6(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
705
- metadata.facade = it;
706
- createNonEnumerableProperty$4(it, STATE, metadata);
707
- return metadata;
708
- };
709
- get = function (it) {
710
- return hasOwn$6(it, STATE) ? it[STATE] : {};
711
- };
712
- has = function (it) {
713
- return hasOwn$6(it, STATE);
714
- };
715
- }
716
-
717
- var internalState = {
718
- set: set$1,
719
- get: get,
720
- has: has,
721
- enforce: enforce,
722
- getterFor: getterFor
723
- };
724
-
725
- var uncurryThis$e = functionUncurryThis;
726
- var fails$d = fails$k;
727
- var isCallable$d = isCallable$l;
728
- var hasOwn$5 = hasOwnProperty_1;
729
- var DESCRIPTORS$5 = descriptors;
730
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
731
- var inspectSource$2 = inspectSource$3;
732
- var InternalStateModule$2 = internalState;
733
-
734
- var enforceInternalState = InternalStateModule$2.enforce;
735
- var getInternalState$2 = InternalStateModule$2.get;
736
- var $String$2 = String;
737
- // eslint-disable-next-line es/no-object-defineproperty -- safe
738
- var defineProperty$5 = Object.defineProperty;
739
- var stringSlice$5 = uncurryThis$e(''.slice);
740
- var replace$2 = uncurryThis$e(''.replace);
741
- var join = uncurryThis$e([].join);
742
-
743
- var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$d(function () {
744
- return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
745
- });
746
-
747
- var TEMPLATE = String(String).split('String');
748
-
749
- var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
750
- if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
751
- name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
752
- }
753
- if (options && options.getter) name = 'get ' + name;
754
- if (options && options.setter) name = 'set ' + name;
755
- if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
756
- if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
757
- else value.name = name;
758
- }
759
- if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
760
- defineProperty$5(value, 'length', { value: options.arity });
761
- }
762
- try {
763
- if (options && hasOwn$5(options, 'constructor') && options.constructor) {
764
- if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
765
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
766
- } else if (value.prototype) value.prototype = undefined;
767
- } catch (error) { /* empty */ }
768
- var state = enforceInternalState(value);
769
- if (!hasOwn$5(state, 'source')) {
770
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
771
- } return value;
772
- };
773
-
774
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
775
- // eslint-disable-next-line no-extend-native -- required
776
- Function.prototype.toString = makeBuiltIn$2(function toString() {
777
- return isCallable$d(this) && getInternalState$2(this).source || inspectSource$2(this);
778
- }, 'toString');
779
-
780
- var makeBuiltInExports = makeBuiltIn$3.exports;
781
-
782
- var isCallable$c = isCallable$l;
783
- var definePropertyModule$2 = objectDefineProperty;
784
- var makeBuiltIn$1 = makeBuiltInExports;
785
- var defineGlobalProperty$1 = defineGlobalProperty$3;
786
-
787
- var defineBuiltIn$6 = function (O, key, value, options) {
788
- if (!options) options = {};
789
- var simple = options.enumerable;
790
- var name = options.name !== undefined ? options.name : key;
791
- if (isCallable$c(value)) makeBuiltIn$1(value, name, options);
792
- if (options.global) {
793
- if (simple) O[key] = value;
794
- else defineGlobalProperty$1(key, value);
795
- } else {
796
- try {
797
- if (!options.unsafe) delete O[key];
798
- else if (O[key]) simple = true;
799
- } catch (error) { /* empty */ }
800
- if (simple) O[key] = value;
801
- else definePropertyModule$2.f(O, key, {
802
- value: value,
803
- enumerable: false,
804
- configurable: !options.nonConfigurable,
805
- writable: !options.nonWritable
806
- });
807
- } return O;
808
- };
809
-
810
- var objectGetOwnPropertyNames = {};
811
-
812
- var ceil = Math.ceil;
813
- var floor$1 = Math.floor;
814
-
815
- // `Math.trunc` method
816
- // https://tc39.es/ecma262/#sec-math.trunc
817
- // eslint-disable-next-line es/no-math-trunc -- safe
818
- var mathTrunc = Math.trunc || function trunc(x) {
819
- var n = +x;
820
- return (n > 0 ? floor$1 : ceil)(n);
821
- };
822
-
823
- var trunc = mathTrunc;
643
+ var trunc = mathTrunc;
824
644
 
825
645
  // `ToIntegerOrInfinity` abstract operation
826
646
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
@@ -862,14 +682,14 @@ var lengthOfArrayLike$5 = function (obj) {
862
682
  return toLength$2(obj.length);
863
683
  };
864
684
 
865
- var toIndexedObject$3 = toIndexedObject$5;
685
+ var toIndexedObject$4 = toIndexedObject$5;
866
686
  var toAbsoluteIndex = toAbsoluteIndex$1;
867
687
  var lengthOfArrayLike$4 = lengthOfArrayLike$5;
868
688
 
869
689
  // `Array.prototype.{ indexOf, includes }` methods implementation
870
690
  var createMethod$2 = function (IS_INCLUDES) {
871
691
  return function ($this, el, fromIndex) {
872
- var O = toIndexedObject$3($this);
692
+ var O = toIndexedObject$4($this);
873
693
  var length = lengthOfArrayLike$4(O);
874
694
  if (length === 0) return !IS_INCLUDES && -1;
875
695
  var index = toAbsoluteIndex(fromIndex, length);
@@ -896,22 +716,24 @@ var arrayIncludes = {
896
716
  indexOf: createMethod$2(false)
897
717
  };
898
718
 
899
- var uncurryThis$d = functionUncurryThis;
900
- var hasOwn$4 = hasOwnProperty_1;
901
- var toIndexedObject$2 = toIndexedObject$5;
719
+ var hiddenKeys$4 = {};
720
+
721
+ var uncurryThis$f = functionUncurryThis;
722
+ var hasOwn$8 = hasOwnProperty_1;
723
+ var toIndexedObject$3 = toIndexedObject$5;
902
724
  var indexOf$1 = arrayIncludes.indexOf;
903
- var hiddenKeys$2 = hiddenKeys$4;
725
+ var hiddenKeys$3 = hiddenKeys$4;
904
726
 
905
- var push$1 = uncurryThis$d([].push);
727
+ var push$1 = uncurryThis$f([].push);
906
728
 
907
729
  var objectKeysInternal = function (object, names) {
908
- var O = toIndexedObject$2(object);
730
+ var O = toIndexedObject$3(object);
909
731
  var i = 0;
910
732
  var result = [];
911
733
  var key;
912
- for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$1(result, key);
734
+ for (key in O) !hasOwn$8(hiddenKeys$3, key) && hasOwn$8(O, key) && push$1(result, key);
913
735
  // Don't enum bug & hidden keys
914
- while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
736
+ while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
915
737
  ~indexOf$1(result, key) || push$1(result, key);
916
738
  }
917
739
  return result;
@@ -931,333 +753,61 @@ var enumBugKeys$3 = [
931
753
  var internalObjectKeys$1 = objectKeysInternal;
932
754
  var enumBugKeys$2 = enumBugKeys$3;
933
755
 
934
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
935
-
936
- // `Object.getOwnPropertyNames` method
937
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
938
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
939
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
940
- return internalObjectKeys$1(O, hiddenKeys$1);
756
+ // `Object.keys` method
757
+ // https://tc39.es/ecma262/#sec-object.keys
758
+ // eslint-disable-next-line es/no-object-keys -- safe
759
+ var objectKeys$2 = Object.keys || function keys(O) {
760
+ return internalObjectKeys$1(O, enumBugKeys$2);
941
761
  };
942
762
 
943
- var objectGetOwnPropertySymbols = {};
763
+ var DESCRIPTORS$8 = descriptors;
764
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
765
+ var definePropertyModule$3 = objectDefineProperty;
766
+ var anObject$a = anObject$c;
767
+ var toIndexedObject$2 = toIndexedObject$5;
768
+ var objectKeys$1 = objectKeys$2;
944
769
 
945
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
946
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
770
+ // `Object.defineProperties` method
771
+ // https://tc39.es/ecma262/#sec-object.defineproperties
772
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
773
+ objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
774
+ anObject$a(O);
775
+ var props = toIndexedObject$2(Properties);
776
+ var keys = objectKeys$1(Properties);
777
+ var length = keys.length;
778
+ var index = 0;
779
+ var key;
780
+ while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
781
+ return O;
782
+ };
947
783
 
948
784
  var getBuiltIn$5 = getBuiltIn$7;
949
- var uncurryThis$c = functionUncurryThis;
950
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
951
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
952
- var anObject$a = anObject$c;
953
785
 
954
- var concat$2 = uncurryThis$c([].concat);
786
+ var html$2 = getBuiltIn$5('document', 'documentElement');
955
787
 
956
- // all object keys, includes non-enumerable and symbols
957
- var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
958
- var keys = getOwnPropertyNamesModule.f(anObject$a(it));
959
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
960
- return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
961
- };
788
+ var shared$2 = shared$4;
789
+ var uid = uid$2;
962
790
 
963
- var hasOwn$3 = hasOwnProperty_1;
964
- var ownKeys = ownKeys$1;
965
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
966
- var definePropertyModule$1 = objectDefineProperty;
791
+ var keys = shared$2('keys');
967
792
 
968
- var copyConstructorProperties$1 = function (target, source, exceptions) {
969
- var keys = ownKeys(source);
970
- var defineProperty = definePropertyModule$1.f;
971
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
972
- for (var i = 0; i < keys.length; i++) {
973
- var key = keys[i];
974
- if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
975
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
976
- }
977
- }
793
+ var sharedKey$3 = function (key) {
794
+ return keys[key] || (keys[key] = uid(key));
978
795
  };
979
796
 
980
- var fails$c = fails$k;
981
- var isCallable$b = isCallable$l;
797
+ /* global ActiveXObject -- old IE, WSH */
798
+ var anObject$9 = anObject$c;
799
+ var definePropertiesModule = objectDefineProperties;
800
+ var enumBugKeys$1 = enumBugKeys$3;
801
+ var hiddenKeys$2 = hiddenKeys$4;
802
+ var html$1 = html$2;
803
+ var documentCreateElement$1 = documentCreateElement$2;
804
+ var sharedKey$2 = sharedKey$3;
982
805
 
983
- var replacement = /#|\.prototype\./;
984
-
985
- var isForced$2 = function (feature, detection) {
986
- var value = data[normalize(feature)];
987
- return value === POLYFILL ? true
988
- : value === NATIVE ? false
989
- : isCallable$b(detection) ? fails$c(detection)
990
- : !!detection;
991
- };
992
-
993
- var normalize = isForced$2.normalize = function (string) {
994
- return String(string).replace(replacement, '.').toLowerCase();
995
- };
996
-
997
- var data = isForced$2.data = {};
998
- var NATIVE = isForced$2.NATIVE = 'N';
999
- var POLYFILL = isForced$2.POLYFILL = 'P';
1000
-
1001
- var isForced_1 = isForced$2;
1002
-
1003
- var global$c = global$l;
1004
- var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1005
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1006
- var defineBuiltIn$5 = defineBuiltIn$6;
1007
- var defineGlobalProperty = defineGlobalProperty$3;
1008
- var copyConstructorProperties = copyConstructorProperties$1;
1009
- var isForced$1 = isForced_1;
1010
-
1011
- /*
1012
- options.target - name of the target object
1013
- options.global - target is the global object
1014
- options.stat - export as static methods of target
1015
- options.proto - export as prototype methods of target
1016
- options.real - real prototype method for the `pure` version
1017
- options.forced - export even if the native feature is available
1018
- options.bind - bind methods to the target, required for the `pure` version
1019
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1020
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
1021
- options.sham - add a flag to not completely full polyfills
1022
- options.enumerable - export as enumerable property
1023
- options.dontCallGetSet - prevent calling a getter on target
1024
- options.name - the .name of the function if it does not match the key
1025
- */
1026
- var _export = function (options, source) {
1027
- var TARGET = options.target;
1028
- var GLOBAL = options.global;
1029
- var STATIC = options.stat;
1030
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1031
- if (GLOBAL) {
1032
- target = global$c;
1033
- } else if (STATIC) {
1034
- target = global$c[TARGET] || defineGlobalProperty(TARGET, {});
1035
- } else {
1036
- target = global$c[TARGET] && global$c[TARGET].prototype;
1037
- }
1038
- if (target) for (key in source) {
1039
- sourceProperty = source[key];
1040
- if (options.dontCallGetSet) {
1041
- descriptor = getOwnPropertyDescriptor$2(target, key);
1042
- targetProperty = descriptor && descriptor.value;
1043
- } else targetProperty = target[key];
1044
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1045
- // contained in target
1046
- if (!FORCED && targetProperty !== undefined) {
1047
- if (typeof sourceProperty == typeof targetProperty) continue;
1048
- copyConstructorProperties(sourceProperty, targetProperty);
1049
- }
1050
- // add a flag to not completely full polyfills
1051
- if (options.sham || (targetProperty && targetProperty.sham)) {
1052
- createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1053
- }
1054
- defineBuiltIn$5(target, key, sourceProperty, options);
1055
- }
1056
- };
1057
-
1058
- var internalObjectKeys = objectKeysInternal;
1059
- var enumBugKeys$1 = enumBugKeys$3;
1060
-
1061
- // `Object.keys` method
1062
- // https://tc39.es/ecma262/#sec-object.keys
1063
- // eslint-disable-next-line es/no-object-keys -- safe
1064
- var objectKeys$2 = Object.keys || function keys(O) {
1065
- return internalObjectKeys(O, enumBugKeys$1);
1066
- };
1067
-
1068
- var DESCRIPTORS$4 = descriptors;
1069
- var uncurryThis$b = functionUncurryThis;
1070
- var call$d = functionCall;
1071
- var fails$b = fails$k;
1072
- var objectKeys$1 = objectKeys$2;
1073
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1074
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1075
- var toObject$4 = toObject$6;
1076
- var IndexedObject$1 = indexedObject;
1077
-
1078
- // eslint-disable-next-line es/no-object-assign -- safe
1079
- var $assign = Object.assign;
1080
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1081
- var defineProperty$4 = Object.defineProperty;
1082
- var concat$1 = uncurryThis$b([].concat);
1083
-
1084
- // `Object.assign` method
1085
- // https://tc39.es/ecma262/#sec-object.assign
1086
- var objectAssign = !$assign || fails$b(function () {
1087
- // should have correct order of operations (Edge bug)
1088
- if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
1089
- enumerable: true,
1090
- get: function () {
1091
- defineProperty$4(this, 'b', {
1092
- value: 3,
1093
- enumerable: false
1094
- });
1095
- }
1096
- }), { b: 2 })).b !== 1) return true;
1097
- // should work with symbols and should have deterministic property order (V8 bug)
1098
- var A = {};
1099
- var B = {};
1100
- // eslint-disable-next-line es/no-symbol -- safe
1101
- var symbol = Symbol('assign detection');
1102
- var alphabet = 'abcdefghijklmnopqrst';
1103
- A[symbol] = 7;
1104
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1105
- return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1106
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1107
- var T = toObject$4(target);
1108
- var argumentsLength = arguments.length;
1109
- var index = 1;
1110
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1111
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1112
- while (argumentsLength > index) {
1113
- var S = IndexedObject$1(arguments[index++]);
1114
- var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1115
- var length = keys.length;
1116
- var j = 0;
1117
- var key;
1118
- while (length > j) {
1119
- key = keys[j++];
1120
- if (!DESCRIPTORS$4 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
1121
- }
1122
- } return T;
1123
- } : $assign;
1124
-
1125
- var $$e = _export;
1126
- var assign = objectAssign;
1127
-
1128
- // `Object.assign` method
1129
- // https://tc39.es/ecma262/#sec-object.assign
1130
- // eslint-disable-next-line es/no-object-assign -- required for testing
1131
- $$e({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1132
- assign: assign
1133
- });
1134
-
1135
- /* *
1136
- * Licensed under the Apache License, Version 2.0 (the "License");
1137
- * you may not use this file except in compliance with the License.
1138
- * You may obtain a copy of the License at
1139
- *
1140
- * http://www.apache.org/licenses/LICENSE-2.0
1141
- *
1142
- * Unless required by applicable law or agreed to in writing, software
1143
- * distributed under the License is distributed on an "AS IS" BASIS,
1144
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1145
- * See the License for the specific language governing permissions and
1146
- * limitations under the License.
1147
- *
1148
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1149
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
1150
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1151
- * */
1152
- const feedAdapter = createEntityAdapter();
1153
- const feedInitialState = feedAdapter.getInitialState();
1154
- const alertAdapter = createEntityAdapter({
1155
- // we use identifier as id
1156
- selectId: capAlert => capAlert.identifier
1157
- });
1158
- const alertInitialState = alertAdapter.getInitialState();
1159
- const initialState = {
1160
- feeds: feedInitialState,
1161
- alerts: alertInitialState
1162
- };
1163
- const slice = createSlice({
1164
- initialState,
1165
- name: 'capReducer',
1166
- reducers: {
1167
- addManyAlerts: (draft, action) => {
1168
- alertAdapter.upsertMany(draft.alerts, action.payload);
1169
- },
1170
- addManyAlertsToFeed: (draft, action) => {
1171
- feedAdapter.upsertOne(draft.feeds, {
1172
- id: action.payload.feedId,
1173
- lastUpdated: Date.now(),
1174
- alertIds: action.payload.alertIds
1175
- });
1176
- },
1177
- setFeedLastUpdatedTimes: (draft, action) => {
1178
- feedAdapter.updateMany(draft.feeds, action.payload);
1179
- }
1180
- }
1181
- });
1182
- const {
1183
- reducer
1184
- } = slice;
1185
- const capActions = slice.actions;
1186
-
1187
- /* *
1188
- * Licensed under the Apache License, Version 2.0 (the "License");
1189
- * you may not use this file except in compliance with the License.
1190
- * You may obtain a copy of the License at
1191
- *
1192
- * http://www.apache.org/licenses/LICENSE-2.0
1193
- *
1194
- * Unless required by applicable law or agreed to in writing, software
1195
- * distributed under the License is distributed on an "AS IS" BASIS,
1196
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1197
- * See the License for the specific language governing permissions and
1198
- * limitations under the License.
1199
- *
1200
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1201
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
1202
- * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1203
- * */
1204
- const {
1205
- selectById: getCapFeedById,
1206
- selectAll: getCapFeeds
1207
- } = feedAdapter.getSelectors(state => state.capStore.feeds);
1208
- const {
1209
- selectById: getAlertById,
1210
- selectAll: getAlerts,
1211
- selectIds: getAlertIds
1212
- } = alertAdapter.getSelectors(state => state.capStore.alerts);
1213
- const getAlertsInEffect = createSelector(getAlerts, (_state, selectedTime) => selectedTime, (alerts, selectedTime) => {
1214
- return alerts.filter(alert => dateUtils.isBetween(dateUtils.createDate(selectedTime), dateUtils.createDate(alert.onset), dateUtils.createDate(alert.expires), '[)'));
1215
- });
1216
- const getLastUpdatedTimes = createSelector(getCapFeeds, feeds => {
1217
- return feeds.map(feed => feed.lastUpdated);
1218
- });
1219
-
1220
- var objectDefineProperties = {};
1221
-
1222
- var DESCRIPTORS$3 = descriptors;
1223
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1224
- var definePropertyModule = objectDefineProperty;
1225
- var anObject$9 = anObject$c;
1226
- var toIndexedObject$1 = toIndexedObject$5;
1227
- var objectKeys = objectKeys$2;
1228
-
1229
- // `Object.defineProperties` method
1230
- // https://tc39.es/ecma262/#sec-object.defineproperties
1231
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1232
- objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1233
- anObject$9(O);
1234
- var props = toIndexedObject$1(Properties);
1235
- var keys = objectKeys(Properties);
1236
- var length = keys.length;
1237
- var index = 0;
1238
- var key;
1239
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1240
- return O;
1241
- };
1242
-
1243
- var getBuiltIn$4 = getBuiltIn$7;
1244
-
1245
- var html$2 = getBuiltIn$4('document', 'documentElement');
1246
-
1247
- /* global ActiveXObject -- old IE, WSH */
1248
- var anObject$8 = anObject$c;
1249
- var definePropertiesModule = objectDefineProperties;
1250
- var enumBugKeys = enumBugKeys$3;
1251
- var hiddenKeys = hiddenKeys$4;
1252
- var html$1 = html$2;
1253
- var documentCreateElement$1 = documentCreateElement$2;
1254
- var sharedKey$1 = sharedKey$3;
1255
-
1256
- var GT = '>';
1257
- var LT = '<';
1258
- var PROTOTYPE = 'prototype';
1259
- var SCRIPT = 'script';
1260
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
806
+ var GT = '>';
807
+ var LT = '<';
808
+ var PROTOTYPE = 'prototype';
809
+ var SCRIPT = 'script';
810
+ var IE_PROTO$1 = sharedKey$2('IE_PROTO');
1261
811
 
1262
812
  var EmptyConstructor = function () { /* empty */ };
1263
813
 
@@ -1270,7 +820,8 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
1270
820
  activeXDocument.write(scriptTag(''));
1271
821
  activeXDocument.close();
1272
822
  var temp = activeXDocument.parentWindow.Object;
1273
- activeXDocument = null; // avoid memory leak
823
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
824
+ activeXDocument = null;
1274
825
  return temp;
1275
826
  };
1276
827
 
@@ -1306,54 +857,442 @@ var NullProtoObject = function () {
1306
857
  ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1307
858
  : NullProtoObjectViaIFrame()
1308
859
  : NullProtoObjectViaActiveX(activeXDocument); // WSH
1309
- var length = enumBugKeys.length;
1310
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
860
+ var length = enumBugKeys$1.length;
861
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
1311
862
  return NullProtoObject();
1312
863
  };
1313
864
 
1314
- hiddenKeys[IE_PROTO$1] = true;
865
+ hiddenKeys$2[IE_PROTO$1] = true;
866
+
867
+ // `Object.create` method
868
+ // https://tc39.es/ecma262/#sec-object.create
869
+ // eslint-disable-next-line es/no-object-create -- safe
870
+ var objectCreate = Object.create || function create(O, Properties) {
871
+ var result;
872
+ if (O !== null) {
873
+ EmptyConstructor[PROTOTYPE] = anObject$9(O);
874
+ result = new EmptyConstructor();
875
+ EmptyConstructor[PROTOTYPE] = null;
876
+ // add "__proto__" for Object.getPrototypeOf polyfill
877
+ result[IE_PROTO$1] = O;
878
+ } else result = NullProtoObject();
879
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
880
+ };
881
+
882
+ var wellKnownSymbol$h = wellKnownSymbol$j;
883
+ var create$2 = objectCreate;
884
+ var defineProperty$5 = objectDefineProperty.f;
885
+
886
+ var UNSCOPABLES = wellKnownSymbol$h('unscopables');
887
+ var ArrayPrototype$1 = Array.prototype;
888
+
889
+ // Array.prototype[@@unscopables]
890
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
891
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
892
+ defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
893
+ configurable: true,
894
+ value: create$2(null)
895
+ });
896
+ }
897
+
898
+ // add a key to Array.prototype[@@unscopables]
899
+ var addToUnscopables$3 = function (key) {
900
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
901
+ };
902
+
903
+ var iterators = {};
904
+
905
+ var globalThis$e = globalThis_1;
906
+ var isCallable$f = isCallable$l;
907
+
908
+ var WeakMap$1 = globalThis$e.WeakMap;
909
+
910
+ var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
911
+
912
+ var createPropertyDescriptor$3 = function (bitmap, value) {
913
+ return {
914
+ enumerable: !(bitmap & 1),
915
+ configurable: !(bitmap & 2),
916
+ writable: !(bitmap & 4),
917
+ value: value
918
+ };
919
+ };
920
+
921
+ var DESCRIPTORS$7 = descriptors;
922
+ var definePropertyModule$2 = objectDefineProperty;
923
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
924
+
925
+ var createNonEnumerableProperty$5 = DESCRIPTORS$7 ? function (object, key, value) {
926
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
927
+ } : function (object, key, value) {
928
+ object[key] = value;
929
+ return object;
930
+ };
931
+
932
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
933
+ var globalThis$d = globalThis_1;
934
+ var isObject$7 = isObject$c;
935
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
936
+ var hasOwn$7 = hasOwnProperty_1;
937
+ var shared$1 = sharedStoreExports;
938
+ var sharedKey$1 = sharedKey$3;
939
+ var hiddenKeys$1 = hiddenKeys$4;
940
+
941
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
942
+ var TypeError$2 = globalThis$d.TypeError;
943
+ var WeakMap = globalThis$d.WeakMap;
944
+ var set$1, get, has;
945
+
946
+ var enforce = function (it) {
947
+ return has(it) ? get(it) : set$1(it, {});
948
+ };
949
+
950
+ var getterFor = function (TYPE) {
951
+ return function (it) {
952
+ var state;
953
+ if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
954
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
955
+ } return state;
956
+ };
957
+ };
958
+
959
+ if (NATIVE_WEAK_MAP || shared$1.state) {
960
+ var store$1 = shared$1.state || (shared$1.state = new WeakMap());
961
+ /* eslint-disable no-self-assign -- prototype methods protection */
962
+ store$1.get = store$1.get;
963
+ store$1.has = store$1.has;
964
+ store$1.set = store$1.set;
965
+ /* eslint-enable no-self-assign -- prototype methods protection */
966
+ set$1 = function (it, metadata) {
967
+ if (store$1.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
968
+ metadata.facade = it;
969
+ store$1.set(it, metadata);
970
+ return metadata;
971
+ };
972
+ get = function (it) {
973
+ return store$1.get(it) || {};
974
+ };
975
+ has = function (it) {
976
+ return store$1.has(it);
977
+ };
978
+ } else {
979
+ var STATE = sharedKey$1('state');
980
+ hiddenKeys$1[STATE] = true;
981
+ set$1 = function (it, metadata) {
982
+ if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
983
+ metadata.facade = it;
984
+ createNonEnumerableProperty$4(it, STATE, metadata);
985
+ return metadata;
986
+ };
987
+ get = function (it) {
988
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
989
+ };
990
+ has = function (it) {
991
+ return hasOwn$7(it, STATE);
992
+ };
993
+ }
994
+
995
+ var internalState = {
996
+ set: set$1,
997
+ get: get,
998
+ has: has,
999
+ enforce: enforce,
1000
+ getterFor: getterFor
1001
+ };
1002
+
1003
+ var objectGetOwnPropertyDescriptor = {};
1004
+
1005
+ var objectPropertyIsEnumerable = {};
1006
+
1007
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
1008
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1009
+ var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
1010
+
1011
+ // Nashorn ~ JDK8 bug
1012
+ var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
1013
+
1014
+ // `Object.prototype.propertyIsEnumerable` method implementation
1015
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
1016
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
1017
+ var descriptor = getOwnPropertyDescriptor$3(this, V);
1018
+ return !!descriptor && descriptor.enumerable;
1019
+ } : $propertyIsEnumerable;
1020
+
1021
+ var DESCRIPTORS$6 = descriptors;
1022
+ var call$e = functionCall;
1023
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
1024
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
1025
+ var toIndexedObject$1 = toIndexedObject$5;
1026
+ var toPropertyKey = toPropertyKey$2;
1027
+ var hasOwn$6 = hasOwnProperty_1;
1028
+ var IE8_DOM_DEFINE = ie8DomDefine;
1029
+
1030
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1031
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1032
+
1033
+ // `Object.getOwnPropertyDescriptor` method
1034
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
1035
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
1036
+ O = toIndexedObject$1(O);
1037
+ P = toPropertyKey(P);
1038
+ if (IE8_DOM_DEFINE) try {
1039
+ return $getOwnPropertyDescriptor(O, P);
1040
+ } catch (error) { /* empty */ }
1041
+ if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
1042
+ };
1043
+
1044
+ var makeBuiltIn$3 = {exports: {}};
1045
+
1046
+ var DESCRIPTORS$5 = descriptors;
1047
+ var hasOwn$5 = hasOwnProperty_1;
1048
+
1049
+ var FunctionPrototype$1 = Function.prototype;
1050
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1051
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
1052
+
1053
+ var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
1054
+ // additional protection from minified / mangled / dropped function names
1055
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
1056
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
1057
+
1058
+ var functionName = {
1059
+ EXISTS: EXISTS,
1060
+ PROPER: PROPER,
1061
+ CONFIGURABLE: CONFIGURABLE
1062
+ };
1063
+
1064
+ var uncurryThis$e = functionUncurryThis;
1065
+ var isCallable$e = isCallable$l;
1066
+ var store = sharedStoreExports;
1067
+
1068
+ var functionToString = uncurryThis$e(Function.toString);
1069
+
1070
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1071
+ if (!isCallable$e(store.inspectSource)) {
1072
+ store.inspectSource = function (it) {
1073
+ return functionToString(it);
1074
+ };
1075
+ }
1076
+
1077
+ var inspectSource$3 = store.inspectSource;
1078
+
1079
+ var uncurryThis$d = functionUncurryThis;
1080
+ var fails$d = fails$k;
1081
+ var isCallable$d = isCallable$l;
1082
+ var hasOwn$4 = hasOwnProperty_1;
1083
+ var DESCRIPTORS$4 = descriptors;
1084
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
1085
+ var inspectSource$2 = inspectSource$3;
1086
+ var InternalStateModule$2 = internalState;
1087
+
1088
+ var enforceInternalState = InternalStateModule$2.enforce;
1089
+ var getInternalState$2 = InternalStateModule$2.get;
1090
+ var $String$2 = String;
1091
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1092
+ var defineProperty$4 = Object.defineProperty;
1093
+ var stringSlice$5 = uncurryThis$d(''.slice);
1094
+ var replace$2 = uncurryThis$d(''.replace);
1095
+ var join = uncurryThis$d([].join);
1096
+
1097
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$d(function () {
1098
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
1099
+ });
1100
+
1101
+ var TEMPLATE = String(String).split('String');
1102
+
1103
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
1104
+ if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
1105
+ name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
1106
+ }
1107
+ if (options && options.getter) name = 'get ' + name;
1108
+ if (options && options.setter) name = 'set ' + name;
1109
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1110
+ if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
1111
+ else value.name = name;
1112
+ }
1113
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
1114
+ defineProperty$4(value, 'length', { value: options.arity });
1115
+ }
1116
+ try {
1117
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
1118
+ if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
1119
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1120
+ } else if (value.prototype) value.prototype = undefined;
1121
+ } catch (error) { /* empty */ }
1122
+ var state = enforceInternalState(value);
1123
+ if (!hasOwn$4(state, 'source')) {
1124
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
1125
+ } return value;
1126
+ };
1127
+
1128
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1129
+ // eslint-disable-next-line no-extend-native -- required
1130
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
1131
+ return isCallable$d(this) && getInternalState$2(this).source || inspectSource$2(this);
1132
+ }, 'toString');
1133
+
1134
+ var makeBuiltInExports = makeBuiltIn$3.exports;
1135
+
1136
+ var isCallable$c = isCallable$l;
1137
+ var definePropertyModule$1 = objectDefineProperty;
1138
+ var makeBuiltIn$1 = makeBuiltInExports;
1139
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
1140
+
1141
+ var defineBuiltIn$6 = function (O, key, value, options) {
1142
+ if (!options) options = {};
1143
+ var simple = options.enumerable;
1144
+ var name = options.name !== undefined ? options.name : key;
1145
+ if (isCallable$c(value)) makeBuiltIn$1(value, name, options);
1146
+ if (options.global) {
1147
+ if (simple) O[key] = value;
1148
+ else defineGlobalProperty$1(key, value);
1149
+ } else {
1150
+ try {
1151
+ if (!options.unsafe) delete O[key];
1152
+ else if (O[key]) simple = true;
1153
+ } catch (error) { /* empty */ }
1154
+ if (simple) O[key] = value;
1155
+ else definePropertyModule$1.f(O, key, {
1156
+ value: value,
1157
+ enumerable: false,
1158
+ configurable: !options.nonConfigurable,
1159
+ writable: !options.nonWritable
1160
+ });
1161
+ } return O;
1162
+ };
1163
+
1164
+ var objectGetOwnPropertyNames = {};
1165
+
1166
+ var internalObjectKeys = objectKeysInternal;
1167
+ var enumBugKeys = enumBugKeys$3;
1168
+
1169
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1170
+
1171
+ // `Object.getOwnPropertyNames` method
1172
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1173
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1174
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1175
+ return internalObjectKeys(O, hiddenKeys);
1176
+ };
1177
+
1178
+ var objectGetOwnPropertySymbols = {};
1179
+
1180
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1181
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1182
+
1183
+ var getBuiltIn$4 = getBuiltIn$7;
1184
+ var uncurryThis$c = functionUncurryThis;
1185
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1186
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1187
+ var anObject$8 = anObject$c;
1188
+
1189
+ var concat$2 = uncurryThis$c([].concat);
1190
+
1191
+ // all object keys, includes non-enumerable and symbols
1192
+ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
1193
+ var keys = getOwnPropertyNamesModule.f(anObject$8(it));
1194
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1195
+ return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1196
+ };
1197
+
1198
+ var hasOwn$3 = hasOwnProperty_1;
1199
+ var ownKeys = ownKeys$1;
1200
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1201
+ var definePropertyModule = objectDefineProperty;
1202
+
1203
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1204
+ var keys = ownKeys(source);
1205
+ var defineProperty = definePropertyModule.f;
1206
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1207
+ for (var i = 0; i < keys.length; i++) {
1208
+ var key = keys[i];
1209
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1210
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1211
+ }
1212
+ }
1213
+ };
1214
+
1215
+ var fails$c = fails$k;
1216
+ var isCallable$b = isCallable$l;
1315
1217
 
1316
- // `Object.create` method
1317
- // https://tc39.es/ecma262/#sec-object.create
1318
- // eslint-disable-next-line es/no-object-create -- safe
1319
- var objectCreate = Object.create || function create(O, Properties) {
1320
- var result;
1321
- if (O !== null) {
1322
- EmptyConstructor[PROTOTYPE] = anObject$8(O);
1323
- result = new EmptyConstructor();
1324
- EmptyConstructor[PROTOTYPE] = null;
1325
- // add "__proto__" for Object.getPrototypeOf polyfill
1326
- result[IE_PROTO$1] = O;
1327
- } else result = NullProtoObject();
1328
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1218
+ var replacement = /#|\.prototype\./;
1219
+
1220
+ var isForced$2 = function (feature, detection) {
1221
+ var value = data[normalize(feature)];
1222
+ return value === POLYFILL ? true
1223
+ : value === NATIVE ? false
1224
+ : isCallable$b(detection) ? fails$c(detection)
1225
+ : !!detection;
1329
1226
  };
1330
1227
 
1331
- var wellKnownSymbol$h = wellKnownSymbol$j;
1332
- var create$2 = objectCreate;
1333
- var defineProperty$3 = objectDefineProperty.f;
1228
+ var normalize = isForced$2.normalize = function (string) {
1229
+ return String(string).replace(replacement, '.').toLowerCase();
1230
+ };
1334
1231
 
1335
- var UNSCOPABLES = wellKnownSymbol$h('unscopables');
1336
- var ArrayPrototype$1 = Array.prototype;
1232
+ var data = isForced$2.data = {};
1233
+ var NATIVE = isForced$2.NATIVE = 'N';
1234
+ var POLYFILL = isForced$2.POLYFILL = 'P';
1337
1235
 
1338
- // Array.prototype[@@unscopables]
1339
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1340
- if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
1341
- defineProperty$3(ArrayPrototype$1, UNSCOPABLES, {
1342
- configurable: true,
1343
- value: create$2(null)
1344
- });
1345
- }
1236
+ var isForced_1 = isForced$2;
1346
1237
 
1347
- // add a key to Array.prototype[@@unscopables]
1348
- var addToUnscopables$3 = function (key) {
1349
- ArrayPrototype$1[UNSCOPABLES][key] = true;
1350
- };
1238
+ var globalThis$c = globalThis_1;
1239
+ var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1240
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1241
+ var defineBuiltIn$5 = defineBuiltIn$6;
1242
+ var defineGlobalProperty = defineGlobalProperty$3;
1243
+ var copyConstructorProperties = copyConstructorProperties$1;
1244
+ var isForced$1 = isForced_1;
1351
1245
 
1352
- var iterators = {};
1246
+ /*
1247
+ options.target - name of the target object
1248
+ options.global - target is the global object
1249
+ options.stat - export as static methods of target
1250
+ options.proto - export as prototype methods of target
1251
+ options.real - real prototype method for the `pure` version
1252
+ options.forced - export even if the native feature is available
1253
+ options.bind - bind methods to the target, required for the `pure` version
1254
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1255
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1256
+ options.sham - add a flag to not completely full polyfills
1257
+ options.enumerable - export as enumerable property
1258
+ options.dontCallGetSet - prevent calling a getter on target
1259
+ options.name - the .name of the function if it does not match the key
1260
+ */
1261
+ var _export = function (options, source) {
1262
+ var TARGET = options.target;
1263
+ var GLOBAL = options.global;
1264
+ var STATIC = options.stat;
1265
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1266
+ if (GLOBAL) {
1267
+ target = globalThis$c;
1268
+ } else if (STATIC) {
1269
+ target = globalThis$c[TARGET] || defineGlobalProperty(TARGET, {});
1270
+ } else {
1271
+ target = globalThis$c[TARGET] && globalThis$c[TARGET].prototype;
1272
+ }
1273
+ if (target) for (key in source) {
1274
+ sourceProperty = source[key];
1275
+ if (options.dontCallGetSet) {
1276
+ descriptor = getOwnPropertyDescriptor$2(target, key);
1277
+ targetProperty = descriptor && descriptor.value;
1278
+ } else targetProperty = target[key];
1279
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1280
+ // contained in target
1281
+ if (!FORCED && targetProperty !== undefined) {
1282
+ if (typeof sourceProperty == typeof targetProperty) continue;
1283
+ copyConstructorProperties(sourceProperty, targetProperty);
1284
+ }
1285
+ // add a flag to not completely full polyfills
1286
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1287
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1288
+ }
1289
+ defineBuiltIn$5(target, key, sourceProperty, options);
1290
+ }
1291
+ };
1353
1292
 
1354
- var fails$a = fails$k;
1293
+ var fails$b = fails$k;
1355
1294
 
1356
- var correctPrototypeGetter = !fails$a(function () {
1295
+ var correctPrototypeGetter = !fails$b(function () {
1357
1296
  function F() { /* empty */ }
1358
1297
  F.prototype.constructor = null;
1359
1298
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -1362,7 +1301,7 @@ var correctPrototypeGetter = !fails$a(function () {
1362
1301
 
1363
1302
  var hasOwn$2 = hasOwnProperty_1;
1364
1303
  var isCallable$a = isCallable$l;
1365
- var toObject$3 = toObject$6;
1304
+ var toObject$4 = toObject$6;
1366
1305
  var sharedKey = sharedKey$3;
1367
1306
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1368
1307
 
@@ -1374,7 +1313,7 @@ var ObjectPrototype = $Object$1.prototype;
1374
1313
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1375
1314
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1376
1315
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1377
- var object = toObject$3(O);
1316
+ var object = toObject$4(O);
1378
1317
  if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1379
1318
  var constructor = object.constructor;
1380
1319
  if (isCallable$a(constructor) && object instanceof constructor) {
@@ -1382,7 +1321,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1382
1321
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1383
1322
  };
1384
1323
 
1385
- var fails$9 = fails$k;
1324
+ var fails$a = fails$k;
1386
1325
  var isCallable$9 = isCallable$l;
1387
1326
  var isObject$6 = isObject$c;
1388
1327
  var getPrototypeOf$1 = objectGetPrototypeOf;
@@ -1407,7 +1346,7 @@ if ([].keys) {
1407
1346
  }
1408
1347
  }
1409
1348
 
1410
- var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$9(function () {
1349
+ var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$a(function () {
1411
1350
  var test = {};
1412
1351
  // FF44- legacy iterators case
1413
1352
  return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
@@ -1428,7 +1367,7 @@ var iteratorsCore = {
1428
1367
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1429
1368
  };
1430
1369
 
1431
- var defineProperty$2 = objectDefineProperty.f;
1370
+ var defineProperty$3 = objectDefineProperty.f;
1432
1371
  var hasOwn$1 = hasOwnProperty_1;
1433
1372
  var wellKnownSymbol$f = wellKnownSymbol$j;
1434
1373
 
@@ -1437,7 +1376,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol$f('toStringTag');
1437
1376
  var setToStringTag$4 = function (target, TAG, STATIC) {
1438
1377
  if (target && !STATIC) target = target.prototype;
1439
1378
  if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1440
- defineProperty$2(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1379
+ defineProperty$3(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1441
1380
  }
1442
1381
  };
1443
1382
 
@@ -1457,13 +1396,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1457
1396
  return IteratorConstructor;
1458
1397
  };
1459
1398
 
1460
- var uncurryThis$a = functionUncurryThis;
1399
+ var uncurryThis$b = functionUncurryThis;
1461
1400
  var aCallable$9 = aCallable$b;
1462
1401
 
1463
1402
  var functionUncurryThisAccessor = function (object, key, method) {
1464
1403
  try {
1465
1404
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1466
- return uncurryThis$a(aCallable$9(Object.getOwnPropertyDescriptor(object, key)[method]));
1405
+ return uncurryThis$b(aCallable$9(Object.getOwnPropertyDescriptor(object, key)[method]));
1467
1406
  } catch (error) { /* empty */ }
1468
1407
  };
1469
1408
 
@@ -1512,8 +1451,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1512
1451
  };
1513
1452
  }() : undefined);
1514
1453
 
1515
- var $$d = _export;
1516
- var call$c = functionCall;
1454
+ var $$e = _export;
1455
+ var call$d = functionCall;
1517
1456
  var FunctionName = functionName;
1518
1457
  var isCallable$8 = isCallable$l;
1519
1458
  var createIteratorConstructor = iteratorCreateConstructor;
@@ -1585,7 +1524,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1585
1524
  createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1586
1525
  } else {
1587
1526
  INCORRECT_VALUES_NAME = true;
1588
- defaultIterator = function values() { return call$c(nativeIterator, this); };
1527
+ defaultIterator = function values() { return call$d(nativeIterator, this); };
1589
1528
  }
1590
1529
  }
1591
1530
 
@@ -1600,7 +1539,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1600
1539
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1601
1540
  defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
1602
1541
  }
1603
- } else $$d({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1542
+ } else $$e({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1604
1543
  }
1605
1544
 
1606
1545
  // define iterator
@@ -1622,10 +1561,10 @@ var toIndexedObject = toIndexedObject$5;
1622
1561
  var addToUnscopables$2 = addToUnscopables$3;
1623
1562
  var Iterators$2 = iterators;
1624
1563
  var InternalStateModule$1 = internalState;
1625
- var defineProperty$1 = objectDefineProperty.f;
1564
+ var defineProperty$2 = objectDefineProperty.f;
1626
1565
  var defineIterator = iteratorDefine;
1627
1566
  var createIterResultObject = createIterResultObject$1;
1628
- var DESCRIPTORS$2 = descriptors;
1567
+ var DESCRIPTORS$3 = descriptors;
1629
1568
 
1630
1569
  var ARRAY_ITERATOR = 'Array Iterator';
1631
1570
  var setInternalState$1 = InternalStateModule$1.set;
@@ -1655,7 +1594,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1655
1594
  var target = state.target;
1656
1595
  var index = state.index++;
1657
1596
  if (!target || index >= target.length) {
1658
- state.target = undefined;
1597
+ state.target = null;
1659
1598
  return createIterResultObject(undefined, true);
1660
1599
  }
1661
1600
  switch (state.kind) {
@@ -1675,8 +1614,8 @@ addToUnscopables$2('values');
1675
1614
  addToUnscopables$2('entries');
1676
1615
 
1677
1616
  // V8 ~ Chrome 45- bug
1678
- if (DESCRIPTORS$2 && values.name !== 'values') try {
1679
- defineProperty$1(values, 'name', { value: 'values' });
1617
+ if (DESCRIPTORS$3 && values.name !== 'values') try {
1618
+ defineProperty$2(values, 'name', { value: 'values' });
1680
1619
  } catch (error) { /* empty */ }
1681
1620
 
1682
1621
  // iterable DOM collections
@@ -1723,7 +1662,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1723
1662
 
1724
1663
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1725
1664
 
1726
- var global$b = global$l;
1665
+ var globalThis$b = globalThis_1;
1727
1666
  var DOMIterables = domIterables;
1728
1667
  var DOMTokenListPrototype = domTokenListPrototype;
1729
1668
  var ArrayIteratorMethods = es_array_iterator;
@@ -1755,19 +1694,19 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1755
1694
  };
1756
1695
 
1757
1696
  for (var COLLECTION_NAME in DOMIterables) {
1758
- handlePrototype(global$b[COLLECTION_NAME] && global$b[COLLECTION_NAME].prototype, COLLECTION_NAME);
1697
+ handlePrototype(globalThis$b[COLLECTION_NAME] && globalThis$b[COLLECTION_NAME].prototype, COLLECTION_NAME);
1759
1698
  }
1760
1699
 
1761
1700
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1762
1701
 
1763
1702
  var classofRaw$1 = classofRaw$2;
1764
- var uncurryThis$9 = functionUncurryThis;
1703
+ var uncurryThis$a = functionUncurryThis;
1765
1704
 
1766
1705
  var functionUncurryThisClause = function (fn) {
1767
1706
  // Nashorn bug:
1768
1707
  // https://github.com/zloirock/core-js/issues/1128
1769
1708
  // https://github.com/zloirock/core-js/issues/1130
1770
- if (classofRaw$1(fn) === 'Function') return uncurryThis$9(fn);
1709
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$a(fn);
1771
1710
  };
1772
1711
 
1773
1712
  var wellKnownSymbol$c = wellKnownSymbol$j;
@@ -1857,8 +1796,8 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
1857
1796
  } return false;
1858
1797
  };
1859
1798
 
1860
- var $$c = _export;
1861
- var uncurryThis$8 = functionUncurryThisClause;
1799
+ var $$d = _export;
1800
+ var uncurryThis$9 = functionUncurryThisClause;
1862
1801
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1863
1802
  var toLength$1 = toLength$3;
1864
1803
  var toString$4 = toString$5;
@@ -1866,7 +1805,7 @@ var notARegExp$1 = notARegexp;
1866
1805
  var requireObjectCoercible$3 = requireObjectCoercible$7;
1867
1806
  var correctIsRegExpLogic$1 = correctIsRegexpLogic;
1868
1807
 
1869
- var stringSlice$4 = uncurryThis$8(''.slice);
1808
+ var stringSlice$4 = uncurryThis$9(''.slice);
1870
1809
  var min$1 = Math.min;
1871
1810
 
1872
1811
  var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic$1('startsWith');
@@ -1878,7 +1817,7 @@ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
1878
1817
 
1879
1818
  // `String.prototype.startsWith` method
1880
1819
  // https://tc39.es/ecma262/#sec-string.prototype.startswith
1881
- $$c({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
1820
+ $$d({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
1882
1821
  startsWith: function startsWith(searchString /* , position = 0 */) {
1883
1822
  var that = toString$4(requireObjectCoercible$3(this));
1884
1823
  notARegExp$1(searchString);
@@ -1936,8 +1875,8 @@ const findEventIndexInLanguage = (language, languages, capWarningPresets, feedAd
1936
1875
  * See the License for the specific language governing permissions and
1937
1876
  * limitations under the License.
1938
1877
  *
1939
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1940
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
1878
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1879
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
1941
1880
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1942
1881
  * */
1943
1882
  const CAP_NAMESPACE = 'cap';
@@ -1969,7 +1908,7 @@ const WarningListRowCap = ({
1969
1908
  const {
1970
1909
  t
1971
1910
  } = useCapTranslation();
1972
- return jsxs(Grid2, Object.assign({
1911
+ return jsxs(Grid2, {
1973
1912
  container: true,
1974
1913
  sx: {
1975
1914
  border: severityStyles[severity].border,
@@ -1978,74 +1917,64 @@ const WarningListRowCap = ({
1978
1917
  marginTop: '20px',
1979
1918
  marginBottom: '20px',
1980
1919
  width: '100%'
1981
- }
1982
- }, {
1983
- children: [jsxs(Grid2, Object.assign({
1920
+ },
1921
+ children: [jsxs(Grid2, {
1984
1922
  size: {
1985
1923
  xs: 4
1986
- }
1987
- }, {
1988
- children: [jsx(Typography, Object.assign({
1989
- variant: "overline"
1990
- }, {
1924
+ },
1925
+ children: [jsx(Typography, {
1926
+ variant: "overline",
1991
1927
  children: t('warning-list-row-event')
1992
- })), jsx(Typography, Object.assign({
1928
+ }), jsx(Typography, {
1993
1929
  variant: "subtitle2",
1994
1930
  sx: {
1995
1931
  fontWeight: 'normal'
1996
1932
  },
1997
- "data-testid": "event"
1998
- }, {
1933
+ "data-testid": "event",
1999
1934
  children: event ? `${event}` : ''
2000
- }))]
2001
- })), jsxs(Grid2, Object.assign({
1935
+ })]
1936
+ }), jsxs(Grid2, {
2002
1937
  size: {
2003
1938
  xs: 4
2004
- }
2005
- }, {
2006
- children: [jsx(Typography, Object.assign({
2007
- variant: "overline"
2008
- }, {
1939
+ },
1940
+ children: [jsx(Typography, {
1941
+ variant: "overline",
2009
1942
  children: t('warning-list-row-severity')
2010
- })), jsx(Typography, Object.assign({
1943
+ }), jsx(Typography, {
2011
1944
  variant: "subtitle2",
2012
1945
  sx: {
2013
1946
  fontWeight: 'normal'
2014
1947
  },
2015
- "data-testid": "severity"
2016
- }, {
1948
+ "data-testid": "severity",
2017
1949
  children: severity ? `${severity}` : ''
2018
- }))]
2019
- })), jsxs(Grid2, Object.assign({
1950
+ })]
1951
+ }), jsxs(Grid2, {
2020
1952
  size: {
2021
1953
  xs: 4
2022
- }
2023
- }, {
2024
- children: [jsx(Typography, Object.assign({
2025
- variant: "overline"
2026
- }, {
1954
+ },
1955
+ children: [jsx(Typography, {
1956
+ variant: "overline",
2027
1957
  children: t('warning-list-row-expires')
2028
- })), jsx(Typography, Object.assign({
1958
+ }), jsx(Typography, {
2029
1959
  variant: "subtitle2",
2030
1960
  sx: {
2031
1961
  fontWeight: 'normal'
2032
1962
  },
2033
- "data-testid": "expires"
2034
- }, {
1963
+ "data-testid": "expires",
2035
1964
  children: expires ? dateUtils.dateToString(dateUtils.createDate(expires), "dd MMM yyyy, HH:mm 'UTC'") : t('warning-list-row-not-expired')
2036
- }))]
2037
- }))]
2038
- }));
1965
+ })]
1966
+ })]
1967
+ });
2039
1968
  };
2040
1969
 
2041
1970
  const WarningListRowCapConnect = ({
2042
1971
  alertId,
2043
1972
  capWarningPresets
2044
1973
  }) => {
2045
- var _a;
1974
+ var _alert$languages;
2046
1975
  const [languageIndex, setLanguageIndex] = React.useState(0);
2047
1976
  const alert = useSelector(store => getAlertById(store, alertId));
2048
- const alertHasLanguages = Boolean((_a = alert === null || alert === void 0 ? void 0 : alert.languages) === null || _a === void 0 ? void 0 : _a.length);
1977
+ const alertHasLanguages = Boolean(alert == null || (_alert$languages = alert.languages) == null ? void 0 : _alert$languages.length);
2049
1978
  const {
2050
1979
  language
2051
1980
  } = i18n;
@@ -2071,14 +2000,13 @@ const WarningListCap = ({
2071
2000
  const {
2072
2001
  t
2073
2002
  } = useCapTranslation();
2074
- return jsx(Box, Object.assign({
2003
+ return jsx(Box, {
2075
2004
  sx: {
2076
2005
  width: '100%',
2077
2006
  height: '100%',
2078
2007
  display: 'flex'
2079
- }
2080
- }, {
2081
- children: jsxs(Card, Object.assign({
2008
+ },
2009
+ children: jsxs(Card, {
2082
2010
  sx: {
2083
2011
  justifyContent: 'center',
2084
2012
  alignItems: 'center',
@@ -2090,35 +2018,32 @@ const WarningListCap = ({
2090
2018
  marginBottom: '10px',
2091
2019
  position: 'relative'
2092
2020
  },
2093
- "data-testid": "warningList"
2094
- }, {
2095
- children: [alertIds.length > 0 && jsx(Box, Object.assign({
2021
+ "data-testid": "warningList",
2022
+ children: [alertIds.length > 0 && jsx(Box, {
2096
2023
  sx: {
2097
2024
  position: 'sticky',
2098
2025
  top: 0,
2099
2026
  width: '100%',
2100
2027
  display: 'flex',
2101
2028
  justifyContent: 'center'
2102
- }
2103
- }, {
2029
+ },
2104
2030
  children: jsx(AlertBanner, {
2105
2031
  title: t('warning-list-cap-alert-banner-title')
2106
2032
  })
2107
- })), alertIds.length === 0 ? jsx(Box, Object.assign({
2033
+ }), alertIds.length === 0 ? jsx(Box, {
2108
2034
  sx: {
2109
2035
  position: 'absolute',
2110
2036
  left: '50%',
2111
2037
  top: '20%',
2112
2038
  zIndex: '100'
2113
- }
2114
- }, {
2039
+ },
2115
2040
  children: jsx(CircularProgress, {})
2116
- })) : null, alertIds.map(id => jsx(WarningListRowCapConnect, {
2041
+ }) : null, alertIds.map(id => jsx(WarningListRowCapConnect, {
2117
2042
  alertId: id,
2118
2043
  capWarningPresets: capWarningPresets
2119
2044
  }, id))]
2120
- }))
2121
- }));
2045
+ })
2046
+ });
2122
2047
  };
2123
2048
 
2124
2049
  const WarningListCapConnect = ({
@@ -2146,17 +2071,16 @@ const WarningListCapConnectWrapper = ({
2146
2071
  error
2147
2072
  } = useApi(api.getCapConfiguration, productConfigKey);
2148
2073
  if (isConfigLoading) {
2149
- return jsx(Box$1, Object.assign({
2074
+ return jsx(Box$1, {
2150
2075
  sx: {
2151
2076
  display: 'flex',
2152
2077
  justifyContent: 'center',
2153
2078
  alignItems: 'center'
2154
- }
2155
- }, {
2079
+ },
2156
2080
  children: jsx(CircularProgress, {
2157
2081
  "data-testid": "loadingSpinner"
2158
2082
  })
2159
- }));
2083
+ });
2160
2084
  }
2161
2085
  if (error) {
2162
2086
  return jsx(AlertBanner, {
@@ -2226,11 +2150,11 @@ var doesNotExceedSafeInteger$1 = function (it) {
2226
2150
  return it;
2227
2151
  };
2228
2152
 
2229
- var uncurryThis$7 = functionUncurryThisClause;
2153
+ var uncurryThis$8 = functionUncurryThisClause;
2230
2154
  var aCallable$8 = aCallable$b;
2231
2155
  var NATIVE_BIND$1 = functionBindNative;
2232
2156
 
2233
- var bind$5 = uncurryThis$7(uncurryThis$7.bind);
2157
+ var bind$5 = uncurryThis$8(uncurryThis$8.bind);
2234
2158
 
2235
2159
  // optional / simple context binding
2236
2160
  var functionBindContext = function (fn, that) {
@@ -2274,8 +2198,8 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
2274
2198
 
2275
2199
  var flattenIntoArray_1 = flattenIntoArray$1;
2276
2200
 
2277
- var uncurryThis$6 = functionUncurryThis;
2278
- var fails$8 = fails$k;
2201
+ var uncurryThis$7 = functionUncurryThis;
2202
+ var fails$9 = fails$k;
2279
2203
  var isCallable$6 = isCallable$l;
2280
2204
  var classof$3 = classof$7;
2281
2205
  var getBuiltIn$3 = getBuiltIn$7;
@@ -2284,7 +2208,7 @@ var inspectSource$1 = inspectSource$3;
2284
2208
  var noop = function () { /* empty */ };
2285
2209
  var construct = getBuiltIn$3('Reflect', 'construct');
2286
2210
  var constructorRegExp = /^\s*(?:class|function)\b/;
2287
- var exec$1 = uncurryThis$6(constructorRegExp.exec);
2211
+ var exec$1 = uncurryThis$7(constructorRegExp.exec);
2288
2212
  var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
2289
2213
 
2290
2214
  var isConstructorModern = function isConstructor(argument) {
@@ -2318,7 +2242,7 @@ isConstructorLegacy.sham = true;
2318
2242
 
2319
2243
  // `IsConstructor` abstract operation
2320
2244
  // https://tc39.es/ecma262/#sec-isconstructor
2321
- var isConstructor$2 = !construct || fails$8(function () {
2245
+ var isConstructor$2 = !construct || fails$9(function () {
2322
2246
  var called;
2323
2247
  return isConstructorModern(isConstructorModern.call)
2324
2248
  || !isConstructorModern(Object)
@@ -2357,18 +2281,18 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
2357
2281
  return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2358
2282
  };
2359
2283
 
2360
- var $$b = _export;
2284
+ var $$c = _export;
2361
2285
  var flattenIntoArray = flattenIntoArray_1;
2362
2286
  var aCallable$7 = aCallable$b;
2363
- var toObject$2 = toObject$6;
2287
+ var toObject$3 = toObject$6;
2364
2288
  var lengthOfArrayLike$2 = lengthOfArrayLike$5;
2365
2289
  var arraySpeciesCreate = arraySpeciesCreate$1;
2366
2290
 
2367
2291
  // `Array.prototype.flatMap` method
2368
2292
  // https://tc39.es/ecma262/#sec-array.prototype.flatmap
2369
- $$b({ target: 'Array', proto: true }, {
2293
+ $$c({ target: 'Array', proto: true }, {
2370
2294
  flatMap: function flatMap(callbackfn /* , thisArg */) {
2371
- var O = toObject$2(this);
2295
+ var O = toObject$3(this);
2372
2296
  var sourceLen = lengthOfArrayLike$2(O);
2373
2297
  var A;
2374
2298
  aCallable$7(callbackfn);
@@ -2378,20 +2302,20 @@ $$b({ target: 'Array', proto: true }, {
2378
2302
  }
2379
2303
  });
2380
2304
 
2381
- var $$a = _export;
2305
+ var $$b = _export;
2382
2306
  var $includes = arrayIncludes.includes;
2383
- var fails$7 = fails$k;
2307
+ var fails$8 = fails$k;
2384
2308
  var addToUnscopables$1 = addToUnscopables$3;
2385
2309
 
2386
2310
  // FF99+ bug
2387
- var BROKEN_ON_SPARSE = fails$7(function () {
2311
+ var BROKEN_ON_SPARSE = fails$8(function () {
2388
2312
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
2389
2313
  return !Array(1).includes();
2390
2314
  });
2391
2315
 
2392
2316
  // `Array.prototype.includes` method
2393
2317
  // https://tc39.es/ecma262/#sec-array.prototype.includes
2394
- $$a({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2318
+ $$b({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2395
2319
  includes: function includes(el /* , fromIndex = 0 */) {
2396
2320
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2397
2321
  }
@@ -2401,8 +2325,8 @@ $$a({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2401
2325
  addToUnscopables$1('includes');
2402
2326
 
2403
2327
  var aCallable$6 = aCallable$b;
2404
- var toObject$1 = toObject$6;
2405
- var IndexedObject = indexedObject;
2328
+ var toObject$2 = toObject$6;
2329
+ var IndexedObject$1 = indexedObject;
2406
2330
  var lengthOfArrayLike$1 = lengthOfArrayLike$5;
2407
2331
 
2408
2332
  var $TypeError$7 = TypeError;
@@ -2412,8 +2336,8 @@ var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
2412
2336
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
2413
2337
  var createMethod$1 = function (IS_RIGHT) {
2414
2338
  return function (that, callbackfn, argumentsLength, memo) {
2415
- var O = toObject$1(that);
2416
- var self = IndexedObject(O);
2339
+ var O = toObject$2(that);
2340
+ var self = IndexedObject$1(O);
2417
2341
  var length = lengthOfArrayLike$1(O);
2418
2342
  aCallable$6(callbackfn);
2419
2343
  if (length === 0 && argumentsLength < 2) throw new $TypeError$7(REDUCE_EMPTY);
@@ -2446,35 +2370,55 @@ var arrayReduce = {
2446
2370
  right: createMethod$1(true)
2447
2371
  };
2448
2372
 
2449
- var fails$6 = fails$k;
2373
+ var fails$7 = fails$k;
2450
2374
 
2451
2375
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2452
2376
  var method = [][METHOD_NAME];
2453
- return !!method && fails$6(function () {
2377
+ return !!method && fails$7(function () {
2454
2378
  // eslint-disable-next-line no-useless-call -- required for testing
2455
2379
  method.call(null, argument || function () { return 1; }, 1);
2456
2380
  });
2457
2381
  };
2458
2382
 
2459
- var global$a = global$l;
2383
+ /* global Bun, Deno -- detection */
2384
+ var globalThis$a = globalThis_1;
2385
+ var userAgent$3 = environmentUserAgent;
2460
2386
  var classof$2 = classofRaw$2;
2461
2387
 
2462
- var engineIsNode = classof$2(global$a.process) === 'process';
2388
+ var userAgentStartsWith = function (string) {
2389
+ return userAgent$3.slice(0, string.length) === string;
2390
+ };
2391
+
2392
+ var environment = (function () {
2393
+ if (userAgentStartsWith('Bun/')) return 'BUN';
2394
+ if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
2395
+ if (userAgentStartsWith('Deno/')) return 'DENO';
2396
+ if (userAgentStartsWith('Node.js/')) return 'NODE';
2397
+ if (globalThis$a.Bun && typeof Bun.version == 'string') return 'BUN';
2398
+ if (globalThis$a.Deno && typeof Deno.version == 'object') return 'DENO';
2399
+ if (classof$2(globalThis$a.process) === 'process') return 'NODE';
2400
+ if (globalThis$a.window && globalThis$a.document) return 'BROWSER';
2401
+ return 'REST';
2402
+ })();
2403
+
2404
+ var ENVIRONMENT$1 = environment;
2463
2405
 
2464
- var $$9 = _export;
2406
+ var environmentIsNode = ENVIRONMENT$1 === 'NODE';
2407
+
2408
+ var $$a = _export;
2465
2409
  var $reduce = arrayReduce.left;
2466
2410
  var arrayMethodIsStrict = arrayMethodIsStrict$1;
2467
- var CHROME_VERSION = engineV8Version;
2468
- var IS_NODE$4 = engineIsNode;
2411
+ var CHROME_VERSION = environmentV8Version;
2412
+ var IS_NODE$3 = environmentIsNode;
2469
2413
 
2470
2414
  // Chrome 80-82 has a critical bug
2471
2415
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
2472
- var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
2416
+ var CHROME_BUG = !IS_NODE$3 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
2473
2417
  var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
2474
2418
 
2475
2419
  // `Array.prototype.reduce` method
2476
2420
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
2477
- $$9({ target: 'Array', proto: true, forced: FORCED }, {
2421
+ $$a({ target: 'Array', proto: true, forced: FORCED }, {
2478
2422
  reduce: function reduce(callbackfn /* , initialValue */) {
2479
2423
  var length = arguments.length;
2480
2424
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
@@ -2488,6 +2432,73 @@ var addToUnscopables = addToUnscopables$3;
2488
2432
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2489
2433
  addToUnscopables('flatMap');
2490
2434
 
2435
+ var DESCRIPTORS$2 = descriptors;
2436
+ var uncurryThis$6 = functionUncurryThis;
2437
+ var call$c = functionCall;
2438
+ var fails$6 = fails$k;
2439
+ var objectKeys = objectKeys$2;
2440
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2441
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2442
+ var toObject$1 = toObject$6;
2443
+ var IndexedObject = indexedObject;
2444
+
2445
+ // eslint-disable-next-line es/no-object-assign -- safe
2446
+ var $assign = Object.assign;
2447
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2448
+ var defineProperty$1 = Object.defineProperty;
2449
+ var concat$1 = uncurryThis$6([].concat);
2450
+
2451
+ // `Object.assign` method
2452
+ // https://tc39.es/ecma262/#sec-object.assign
2453
+ var objectAssign = !$assign || fails$6(function () {
2454
+ // should have correct order of operations (Edge bug)
2455
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
2456
+ enumerable: true,
2457
+ get: function () {
2458
+ defineProperty$1(this, 'b', {
2459
+ value: 3,
2460
+ enumerable: false
2461
+ });
2462
+ }
2463
+ }), { b: 2 })).b !== 1) return true;
2464
+ // should work with symbols and should have deterministic property order (V8 bug)
2465
+ var A = {};
2466
+ var B = {};
2467
+ // eslint-disable-next-line es/no-symbol -- safe
2468
+ var symbol = Symbol('assign detection');
2469
+ var alphabet = 'abcdefghijklmnopqrst';
2470
+ A[symbol] = 7;
2471
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2472
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
2473
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2474
+ var T = toObject$1(target);
2475
+ var argumentsLength = arguments.length;
2476
+ var index = 1;
2477
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2478
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
2479
+ while (argumentsLength > index) {
2480
+ var S = IndexedObject(arguments[index++]);
2481
+ var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2482
+ var length = keys.length;
2483
+ var j = 0;
2484
+ var key;
2485
+ while (length > j) {
2486
+ key = keys[j++];
2487
+ if (!DESCRIPTORS$2 || call$c(propertyIsEnumerable, S, key)) T[key] = S[key];
2488
+ }
2489
+ } return T;
2490
+ } : $assign;
2491
+
2492
+ var $$9 = _export;
2493
+ var assign = objectAssign;
2494
+
2495
+ // `Object.assign` method
2496
+ // https://tc39.es/ecma262/#sec-object.assign
2497
+ // eslint-disable-next-line es/no-object-assign -- required for testing
2498
+ $$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2499
+ assign: assign
2500
+ });
2501
+
2491
2502
  var makeBuiltIn = makeBuiltInExports;
2492
2503
  var defineProperty = objectDefineProperty;
2493
2504
 
@@ -2572,12 +2583,12 @@ var validateArgumentsLength$1 = function (passed, required) {
2572
2583
  return passed;
2573
2584
  };
2574
2585
 
2575
- var userAgent$2 = engineUserAgent;
2586
+ var userAgent$2 = environmentUserAgent;
2576
2587
 
2577
2588
  // eslint-disable-next-line redos/no-vulnerable -- safe
2578
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2589
+ var environmentIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2579
2590
 
2580
- var global$9 = global$l;
2591
+ var globalThis$9 = globalThis_1;
2581
2592
  var apply$1 = functionApply;
2582
2593
  var bind$3 = functionBindContext;
2583
2594
  var isCallable$5 = isCallable$l;
@@ -2587,16 +2598,16 @@ var html = html$2;
2587
2598
  var arraySlice = arraySlice$1;
2588
2599
  var createElement = documentCreateElement$2;
2589
2600
  var validateArgumentsLength = validateArgumentsLength$1;
2590
- var IS_IOS$1 = engineIsIos;
2591
- var IS_NODE$3 = engineIsNode;
2592
-
2593
- var set = global$9.setImmediate;
2594
- var clear = global$9.clearImmediate;
2595
- var process$2 = global$9.process;
2596
- var Dispatch = global$9.Dispatch;
2597
- var Function$1 = global$9.Function;
2598
- var MessageChannel = global$9.MessageChannel;
2599
- var String$1 = global$9.String;
2601
+ var IS_IOS$1 = environmentIsIos;
2602
+ var IS_NODE$2 = environmentIsNode;
2603
+
2604
+ var set = globalThis$9.setImmediate;
2605
+ var clear = globalThis$9.clearImmediate;
2606
+ var process$2 = globalThis$9.process;
2607
+ var Dispatch = globalThis$9.Dispatch;
2608
+ var Function$1 = globalThis$9.Function;
2609
+ var MessageChannel = globalThis$9.MessageChannel;
2610
+ var String$1 = globalThis$9.String;
2600
2611
  var counter = 0;
2601
2612
  var queue$2 = {};
2602
2613
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -2604,7 +2615,7 @@ var $location, defer, channel, port;
2604
2615
 
2605
2616
  fails$5(function () {
2606
2617
  // Deno throws a ReferenceError on `location` access without `--location` flag
2607
- $location = global$9.location;
2618
+ $location = globalThis$9.location;
2608
2619
  });
2609
2620
 
2610
2621
  var run = function (id) {
@@ -2627,7 +2638,7 @@ var eventListener = function (event) {
2627
2638
 
2628
2639
  var globalPostMessageDefer = function (id) {
2629
2640
  // old engines have not location.origin
2630
- global$9.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2641
+ globalThis$9.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2631
2642
  };
2632
2643
 
2633
2644
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
@@ -2646,7 +2657,7 @@ if (!set || !clear) {
2646
2657
  delete queue$2[id];
2647
2658
  };
2648
2659
  // Node.js 0.8-
2649
- if (IS_NODE$3) {
2660
+ if (IS_NODE$2) {
2650
2661
  defer = function (id) {
2651
2662
  process$2.nextTick(runner(id));
2652
2663
  };
@@ -2665,14 +2676,14 @@ if (!set || !clear) {
2665
2676
  // Browsers with postMessage, skip WebWorkers
2666
2677
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2667
2678
  } else if (
2668
- global$9.addEventListener &&
2669
- isCallable$5(global$9.postMessage) &&
2670
- !global$9.importScripts &&
2679
+ globalThis$9.addEventListener &&
2680
+ isCallable$5(globalThis$9.postMessage) &&
2681
+ !globalThis$9.importScripts &&
2671
2682
  $location && $location.protocol !== 'file:' &&
2672
2683
  !fails$5(globalPostMessageDefer)
2673
2684
  ) {
2674
2685
  defer = globalPostMessageDefer;
2675
- global$9.addEventListener('message', eventListener, false);
2686
+ globalThis$9.addEventListener('message', eventListener, false);
2676
2687
  // IE8-
2677
2688
  } else if (ONREADYSTATECHANGE in createElement('script')) {
2678
2689
  defer = function (id) {
@@ -2694,7 +2705,7 @@ var task$1 = {
2694
2705
  clear: clear
2695
2706
  };
2696
2707
 
2697
- var global$8 = global$l;
2708
+ var globalThis$8 = globalThis_1;
2698
2709
  var DESCRIPTORS = descriptors;
2699
2710
 
2700
2711
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -2702,8 +2713,8 @@ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2702
2713
 
2703
2714
  // Avoid NodeJS experimental warning
2704
2715
  var safeGetBuiltIn$1 = function (name) {
2705
- if (!DESCRIPTORS) return global$8[name];
2706
- var descriptor = getOwnPropertyDescriptor(global$8, name);
2716
+ if (!DESCRIPTORS) return globalThis$8[name];
2717
+ var descriptor = getOwnPropertyDescriptor(globalThis$8, name);
2707
2718
  return descriptor && descriptor.value;
2708
2719
  };
2709
2720
 
@@ -2732,28 +2743,28 @@ Queue$2.prototype = {
2732
2743
 
2733
2744
  var queue$1 = Queue$2;
2734
2745
 
2735
- var userAgent$1 = engineUserAgent;
2746
+ var userAgent$1 = environmentUserAgent;
2736
2747
 
2737
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2748
+ var environmentIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && typeof Pebble != 'undefined';
2738
2749
 
2739
- var userAgent = engineUserAgent;
2750
+ var userAgent = environmentUserAgent;
2740
2751
 
2741
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2752
+ var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2742
2753
 
2743
- var global$7 = global$l;
2754
+ var globalThis$7 = globalThis_1;
2744
2755
  var safeGetBuiltIn = safeGetBuiltIn$1;
2745
2756
  var bind$2 = functionBindContext;
2746
2757
  var macrotask = task$1.set;
2747
2758
  var Queue$1 = queue$1;
2748
- var IS_IOS = engineIsIos;
2749
- var IS_IOS_PEBBLE = engineIsIosPebble;
2750
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2751
- var IS_NODE$2 = engineIsNode;
2752
-
2753
- var MutationObserver = global$7.MutationObserver || global$7.WebKitMutationObserver;
2754
- var document$2 = global$7.document;
2755
- var process$1 = global$7.process;
2756
- var Promise$1 = global$7.Promise;
2759
+ var IS_IOS = environmentIsIos;
2760
+ var IS_IOS_PEBBLE = environmentIsIosPebble;
2761
+ var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
2762
+ var IS_NODE$1 = environmentIsNode;
2763
+
2764
+ var MutationObserver = globalThis$7.MutationObserver || globalThis$7.WebKitMutationObserver;
2765
+ var document$2 = globalThis$7.document;
2766
+ var process$1 = globalThis$7.process;
2767
+ var Promise$1 = globalThis$7.Promise;
2757
2768
  var microtask$1 = safeGetBuiltIn('queueMicrotask');
2758
2769
  var notify$1, toggle, node, promise, then;
2759
2770
 
@@ -2763,7 +2774,7 @@ if (!microtask$1) {
2763
2774
 
2764
2775
  var flush = function () {
2765
2776
  var parent, fn;
2766
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
2777
+ if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
2767
2778
  while (fn = queue.get()) try {
2768
2779
  fn();
2769
2780
  } catch (error) {
@@ -2775,7 +2786,7 @@ if (!microtask$1) {
2775
2786
 
2776
2787
  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2777
2788
  // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2778
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2789
+ if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2779
2790
  toggle = true;
2780
2791
  node = document$2.createTextNode('');
2781
2792
  new MutationObserver(flush).observe(node, { characterData: true });
@@ -2793,7 +2804,7 @@ if (!microtask$1) {
2793
2804
  then(flush);
2794
2805
  };
2795
2806
  // Node.js without promises
2796
- } else if (IS_NODE$2) {
2807
+ } else if (IS_NODE$1) {
2797
2808
  notify$1 = function () {
2798
2809
  process$1.nextTick(flush);
2799
2810
  };
@@ -2805,7 +2816,7 @@ if (!microtask$1) {
2805
2816
  // - setTimeout
2806
2817
  } else {
2807
2818
  // `webpack` dev server bug on IE global methods - use bind(fn, global)
2808
- macrotask = bind$2(macrotask, global$7);
2819
+ macrotask = bind$2(macrotask, globalThis$7);
2809
2820
  notify$1 = function () {
2810
2821
  macrotask(flush);
2811
2822
  };
@@ -2834,34 +2845,23 @@ var perform$4 = function (exec) {
2834
2845
  }
2835
2846
  };
2836
2847
 
2837
- var global$6 = global$l;
2838
-
2839
- var promiseNativeConstructor = global$6.Promise;
2840
-
2841
- /* global Deno -- Deno case */
2842
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2848
+ var globalThis$6 = globalThis_1;
2843
2849
 
2844
- var IS_DENO$1 = engineIsDeno;
2845
- var IS_NODE$1 = engineIsNode;
2850
+ var promiseNativeConstructor = globalThis$6.Promise;
2846
2851
 
2847
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2848
- && typeof window == 'object'
2849
- && typeof document == 'object';
2850
-
2851
- var global$5 = global$l;
2852
+ var globalThis$5 = globalThis_1;
2852
2853
  var NativePromiseConstructor$3 = promiseNativeConstructor;
2853
2854
  var isCallable$4 = isCallable$l;
2854
2855
  var isForced = isForced_1;
2855
2856
  var inspectSource = inspectSource$3;
2856
2857
  var wellKnownSymbol$5 = wellKnownSymbol$j;
2857
- var IS_BROWSER = engineIsBrowser;
2858
- var IS_DENO = engineIsDeno;
2859
- var V8_VERSION = engineV8Version;
2858
+ var ENVIRONMENT = environment;
2859
+ var V8_VERSION = environmentV8Version;
2860
2860
 
2861
2861
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2862
2862
  var SPECIES$1 = wellKnownSymbol$5('species');
2863
2863
  var SUBCLASSING = false;
2864
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$5.PromiseRejectionEvent);
2864
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(globalThis$5.PromiseRejectionEvent);
2865
2865
 
2866
2866
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2867
2867
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -2884,7 +2884,7 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2884
2884
  SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2885
2885
  if (!SUBCLASSING) return true;
2886
2886
  // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2887
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2887
+ } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT$1;
2888
2888
  });
2889
2889
 
2890
2890
  var promiseConstructorDetection = {
@@ -2917,8 +2917,8 @@ newPromiseCapability$2.f = function (C) {
2917
2917
  };
2918
2918
 
2919
2919
  var $$8 = _export;
2920
- var IS_NODE = engineIsNode;
2921
- var global$4 = global$l;
2920
+ var IS_NODE = environmentIsNode;
2921
+ var globalThis$4 = globalThis_1;
2922
2922
  var call$a = functionCall;
2923
2923
  var defineBuiltIn$2 = defineBuiltIn$6;
2924
2924
  var setPrototypeOf = objectSetPrototypeOf;
@@ -2948,13 +2948,13 @@ var setInternalState = InternalStateModule.set;
2948
2948
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2949
2949
  var PromiseConstructor = NativePromiseConstructor$2;
2950
2950
  var PromisePrototype = NativePromisePrototype$1;
2951
- var TypeError$1 = global$4.TypeError;
2952
- var document$1 = global$4.document;
2953
- var process = global$4.process;
2951
+ var TypeError$1 = globalThis$4.TypeError;
2952
+ var document$1 = globalThis$4.document;
2953
+ var process = globalThis$4.process;
2954
2954
  var newPromiseCapability$1 = newPromiseCapabilityModule$4.f;
2955
2955
  var newGenericPromiseCapability = newPromiseCapability$1;
2956
2956
 
2957
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$4.dispatchEvent);
2957
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$4.dispatchEvent);
2958
2958
  var UNHANDLED_REJECTION = 'unhandledrejection';
2959
2959
  var REJECTION_HANDLED = 'rejectionhandled';
2960
2960
  var PENDING = 0;
@@ -3027,14 +3027,14 @@ var dispatchEvent = function (name, promise, reason) {
3027
3027
  event.promise = promise;
3028
3028
  event.reason = reason;
3029
3029
  event.initEvent(name, false, true);
3030
- global$4.dispatchEvent(event);
3030
+ globalThis$4.dispatchEvent(event);
3031
3031
  } else event = { promise: promise, reason: reason };
3032
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$4['on' + name])) handler(event);
3032
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$4['on' + name])) handler(event);
3033
3033
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
3034
3034
  };
3035
3035
 
3036
3036
  var onUnhandled = function (state) {
3037
- call$a(task, global$4, function () {
3037
+ call$a(task, globalThis$4, function () {
3038
3038
  var promise = state.facade;
3039
3039
  var value = state.value;
3040
3040
  var IS_UNHANDLED = isUnhandled(state);
@@ -3057,7 +3057,7 @@ var isUnhandled = function (state) {
3057
3057
  };
3058
3058
 
3059
3059
  var onHandleUnhandled = function (state) {
3060
- call$a(task, global$4, function () {
3060
+ call$a(task, globalThis$4, function () {
3061
3061
  var promise = state.facade;
3062
3062
  if (IS_NODE) {
3063
3063
  process.emit('rejectionHandled', promise);
@@ -3136,7 +3136,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3136
3136
  reactions: new Queue(),
3137
3137
  rejection: false,
3138
3138
  state: PENDING,
3139
- value: undefined
3139
+ value: null
3140
3140
  });
3141
3141
  };
3142
3142
 
@@ -3196,6 +3196,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
3196
3196
  }
3197
3197
  }
3198
3198
 
3199
+ // `Promise` constructor
3200
+ // https://tc39.es/ecma262/#sec-promise-executor
3199
3201
  $$8({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3200
3202
  Promise: PromiseConstructor
3201
3203
  });
@@ -3582,38 +3584,6 @@ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
3582
3584
  }
3583
3585
  });
3584
3586
 
3585
- /******************************************************************************
3586
- Copyright (c) Microsoft Corporation.
3587
-
3588
- Permission to use, copy, modify, and/or distribute this software for any
3589
- purpose with or without fee is hereby granted.
3590
-
3591
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3592
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3593
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3594
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3595
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3596
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3597
- PERFORMANCE OF THIS SOFTWARE.
3598
- ***************************************************************************** */
3599
- /* global Reflect, Promise, SuppressedError, Symbol */
3600
-
3601
-
3602
- function __awaiter(thisArg, _arguments, P, generator) {
3603
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3604
- return new (P || (P = Promise))(function (resolve, reject) {
3605
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3606
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3607
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3608
- step((generator = generator.apply(thisArg, _arguments || [])).next());
3609
- });
3610
- }
3611
-
3612
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
3613
- var e = new Error(message);
3614
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
3615
- };
3616
-
3617
3587
  var anObject$2 = anObject$c;
3618
3588
 
3619
3589
  // `RegExp.prototype.flags` getter implementation
@@ -3633,10 +3603,10 @@ var regexpFlags$1 = function () {
3633
3603
  };
3634
3604
 
3635
3605
  var fails$4 = fails$k;
3636
- var global$3 = global$l;
3606
+ var globalThis$3 = globalThis_1;
3637
3607
 
3638
3608
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
3639
- var $RegExp$2 = global$3.RegExp;
3609
+ var $RegExp$2 = globalThis$3.RegExp;
3640
3610
 
3641
3611
  var UNSUPPORTED_Y$1 = fails$4(function () {
3642
3612
  var re = $RegExp$2('a', 'y');
@@ -3664,10 +3634,10 @@ var regexpStickyHelpers = {
3664
3634
  };
3665
3635
 
3666
3636
  var fails$3 = fails$k;
3667
- var global$2 = global$l;
3637
+ var globalThis$2 = globalThis_1;
3668
3638
 
3669
3639
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
3670
- var $RegExp$1 = global$2.RegExp;
3640
+ var $RegExp$1 = globalThis$2.RegExp;
3671
3641
 
3672
3642
  var regexpUnsupportedDotAll = fails$3(function () {
3673
3643
  var re = $RegExp$1('.', 's');
@@ -3675,10 +3645,10 @@ var regexpUnsupportedDotAll = fails$3(function () {
3675
3645
  });
3676
3646
 
3677
3647
  var fails$2 = fails$k;
3678
- var global$1 = global$l;
3648
+ var globalThis$1 = globalThis_1;
3679
3649
 
3680
3650
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
3681
- var $RegExp = global$1.RegExp;
3651
+ var $RegExp = globalThis$1.RegExp;
3682
3652
 
3683
3653
  var regexpUnsupportedNcg = fails$2(function () {
3684
3654
  var re = $RegExp('(?<a>b)', 'g');
@@ -4160,8 +4130,8 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
4160
4130
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4161
4131
  * */
4162
4132
  const highlightGeoJson = (currentFeatures, featureResults) => Object.entries(currentFeatures).reduce((byId, [alertId, features]) => {
4163
- const isSelected = alertId === (featureResults === null || featureResults === void 0 ? void 0 : featureResults.feature.properties.details.identifier);
4164
- return Object.assign(Object.assign({}, byId), {
4133
+ const isSelected = alertId === (featureResults == null ? void 0 : featureResults.feature.properties.details.identifier);
4134
+ return Object.assign({}, byId, {
4165
4135
  [alertId]: features.map(feature => {
4166
4136
  const recoloredFeature = Object.assign({}, feature);
4167
4137
  recoloredFeature.properties.fill = isSelected ? feature.properties.fill.replace('0.10', '0.25') : recoloredFeature.properties.fill = feature.properties.fill.replace('0.25', '0.10');
@@ -4238,9 +4208,9 @@ const addColors = features => {
4238
4208
  * */
4239
4209
  const addFeedAdressToCustomGeoJSonFeature = (feedAddress, features) => {
4240
4210
  return features.reduce((list, feature) => {
4241
- return list.concat(Object.assign(Object.assign({}, feature), {
4242
- properties: Object.assign(Object.assign({}, feature.properties), {
4243
- details: Object.assign(Object.assign({}, feature.properties.details), {
4211
+ return list.concat(Object.assign({}, feature, {
4212
+ properties: Object.assign({}, feature.properties, {
4213
+ details: Object.assign({}, feature.properties.details, {
4244
4214
  feedAddress
4245
4215
  })
4246
4216
  })
@@ -4270,12 +4240,12 @@ const MapViewCapConnect = ({
4270
4240
  const mapIdRef = React.useRef(id || webmapUtils.generateMapId());
4271
4241
  const layerIdRef = React.useRef(webmapUtils.generateLayerId());
4272
4242
  const currentLastUpdatedTimes = useSelector(store => getLastUpdatedTimes(store));
4273
- const fetchData = (links, feedAddress) => __awaiter(void 0, void 0, void 0, function* () {
4274
- const alertsAndFeaturesPromises = links.map(alertUrl => __awaiter(void 0, void 0, void 0, function* () {
4243
+ const fetchData = async (links, feedAddress) => {
4244
+ const alertsAndFeaturesPromises = links.map(async alertUrl => {
4275
4245
  const {
4276
4246
  data
4277
- } = yield api.getSingleAlert(alertUrl);
4278
- const alert = Object.assign(Object.assign({}, data.alert), {
4247
+ } = await api.getSingleAlert(alertUrl);
4248
+ const alert = Object.assign({}, data.alert, {
4279
4249
  feedAddress
4280
4250
  });
4281
4251
  const features = addFeedAdressToCustomGeoJSonFeature(feedAddress, data.features.features);
@@ -4283,8 +4253,8 @@ const MapViewCapConnect = ({
4283
4253
  alert,
4284
4254
  features
4285
4255
  };
4286
- }));
4287
- const alertsAndFeatures = yield Promise.allSettled(alertsAndFeaturesPromises);
4256
+ });
4257
+ const alertsAndFeatures = await Promise.allSettled(alertsAndFeaturesPromises);
4288
4258
  const realAlertsAndFeatures = alertsAndFeatures.reduce((alerts, result) =>
4289
4259
  // endpoints may throttle requests and return empty alerts
4290
4260
  isPromiseFulfilled(result) && result.value.alert ? [...alerts, result.value] : alerts, []);
@@ -4299,73 +4269,73 @@ const MapViewCapConnect = ({
4299
4269
  const featuresByAlert = realAlertsAndFeatures.reduce((byId, {
4300
4270
  alert,
4301
4271
  features
4302
- }) => Object.assign(Object.assign({}, byId), {
4272
+ }) => Object.assign({}, byId, {
4303
4273
  [alert.identifier]: addColors(features)
4304
4274
  }), {});
4305
- const combinedFeatures = Object.assign(Object.assign({}, previousFeatures.current), featuresByAlert);
4275
+ const combinedFeatures = Object.assign({}, previousFeatures.current, featuresByAlert);
4306
4276
  setFeaturesByAlert(combinedFeatures);
4307
4277
  previousFeatures.current = combinedFeatures;
4308
- });
4309
- const fetchDataFromAllFeeds = () => __awaiter(void 0, void 0, void 0, function* () {
4310
- const feedPromises = capWarningPresets === null || capWarningPresets === void 0 ? void 0 : capWarningPresets.feeds.map(({
4278
+ };
4279
+ const fetchDataFromAllFeeds = async () => {
4280
+ const feedPromises = capWarningPresets == null ? void 0 : capWarningPresets.feeds.map(async ({
4311
4281
  feedAddress
4312
- }) => __awaiter(void 0, void 0, void 0, function* () {
4282
+ }) => {
4313
4283
  const {
4314
4284
  data: links
4315
- } = yield api.getFeedLinks(feedAddress);
4285
+ } = await api.getFeedLinks(feedAddress);
4316
4286
  return {
4317
4287
  links,
4318
4288
  feedAddress
4319
4289
  };
4320
- }));
4321
- const feedLinks = promiseSuccesses(yield Promise.allSettled(feedPromises));
4290
+ });
4291
+ const feedLinks = promiseSuccesses(await Promise.allSettled(feedPromises));
4322
4292
  feedLinks.forEach(({
4323
4293
  links,
4324
4294
  feedAddress
4325
4295
  }) => {
4326
- fetchData(links, feedAddress);
4296
+ void fetchData(links, feedAddress);
4327
4297
  });
4328
- });
4329
- const pollAndUpdate = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
4330
- const lastUpdatedPromises = capWarningPresets === null || capWarningPresets === void 0 ? void 0 : capWarningPresets.feeds.map(feed => __awaiter(void 0, void 0, void 0, function* () {
4298
+ };
4299
+ const pollAndUpdate = React.useCallback(async () => {
4300
+ const lastUpdatedPromises = capWarningPresets == null ? void 0 : capWarningPresets.feeds.map(async feed => {
4331
4301
  const {
4332
4302
  data: updated
4333
- } = yield api.getLastUpdated(feed.feedAddress);
4303
+ } = await api.getLastUpdated(feed.feedAddress);
4334
4304
  return {
4335
4305
  id: feed.feedAddress,
4336
4306
  changes: {
4337
4307
  lastUpdated: updated.lastUpdated
4338
4308
  }
4339
4309
  };
4340
- }));
4310
+ });
4341
4311
  if (lastUpdatedPromises) {
4342
- const lastUpdateTimes = promiseSuccesses(yield Promise.allSettled(lastUpdatedPromises));
4343
- lastUpdateTimes.forEach((feed, i) => __awaiter(void 0, void 0, void 0, function* () {
4312
+ const lastUpdateTimes = promiseSuccesses(await Promise.allSettled(lastUpdatedPromises));
4313
+ lastUpdateTimes.forEach(async (feed, i) => {
4344
4314
  if (dateUtils.isAfter(feed.changes.lastUpdated, currentLastUpdatedTimes[i])) {
4345
4315
  const {
4346
4316
  data: links
4347
- } = yield api.getFeedLinks(feed.id);
4348
- fetchData(links, feed.id);
4317
+ } = await api.getFeedLinks(feed.id);
4318
+ void fetchData(links, feed.id);
4349
4319
  }
4350
- }));
4320
+ });
4351
4321
  dispatch(capActions.setFeedLastUpdatedTimes(lastUpdateTimes));
4352
4322
  }
4353
4323
  // eslint-disable-next-line react-hooks/exhaustive-deps
4354
- }), [currentLastUpdatedTimes]);
4324
+ }, [currentLastUpdatedTimes]);
4355
4325
  React.useEffect(() => {
4356
- fetchDataFromAllFeeds();
4326
+ void fetchDataFromAllFeeds();
4357
4327
  // eslint-disable-next-line react-hooks/exhaustive-deps
4358
4328
  }, []);
4359
4329
  React.useEffect(() => {
4360
- var _a;
4361
- const pollInterval = (_a = capWarningPresets === null || capWarningPresets === void 0 ? void 0 : capWarningPresets.pollInterval) !== null && _a !== void 0 ? _a : 300000;
4330
+ var _capWarningPresets$po;
4331
+ const pollInterval = (_capWarningPresets$po = capWarningPresets == null ? void 0 : capWarningPresets.pollInterval) != null ? _capWarningPresets$po : 300000;
4362
4332
  const timer = setInterval(() => {
4363
- pollAndUpdate();
4333
+ void pollAndUpdate();
4364
4334
  }, pollInterval);
4365
4335
  return () => {
4366
4336
  clearInterval(timer);
4367
4337
  };
4368
- }, [capWarningPresets === null || capWarningPresets === void 0 ? void 0 : capWarningPresets.pollInterval, currentLastUpdatedTimes, pollAndUpdate]);
4338
+ }, [capWarningPresets == null ? void 0 : capWarningPresets.pollInterval, currentLastUpdatedTimes, pollAndUpdate]);
4369
4339
  const parentSizeRef = React.useRef(null);
4370
4340
  const [parentSize, setParentSize] = React.useState(window.innerWidth / 2);
4371
4341
  React.useEffect(() => {
@@ -4391,22 +4361,20 @@ const MapViewCapConnect = ({
4391
4361
  type: 'FeatureCollection',
4392
4362
  features: featuresInEffect
4393
4363
  };
4394
- return jsx("div", Object.assign({
4364
+ return jsx("div", {
4395
4365
  "data-testid": "mapViewCap",
4396
4366
  style: {
4397
4367
  height: '100%',
4398
4368
  width: '100%'
4399
4369
  },
4400
- ref: parentSizeRef
4401
- }, {
4402
- children: jsxs(ConfigurableMapConnect, Object.assign({
4370
+ ref: parentSizeRef,
4371
+ children: jsxs(ConfigurableMapConnect, {
4403
4372
  id: mapIdRef.current,
4404
4373
  title: title,
4405
4374
  layers: layers || [],
4406
4375
  "data-testid": "capWarningMap",
4407
4376
  bbox: bbox,
4408
- srs: srs
4409
- }, {
4377
+ srs: srs,
4410
4378
  children: [jsx(MapViewLayer, {
4411
4379
  id: layerIdRef.current,
4412
4380
  geojson: geoJsonObject,
@@ -4418,8 +4386,8 @@ const MapViewCapConnect = ({
4418
4386
  languageIndex: findEventIndexInLanguage(i18n.language, selectedFeatureEvent.feature.properties.details.languages, capWarningPresets, selectedFeatureEvent.feature.properties.details.feedAddress),
4419
4387
  parentSize: parentSize
4420
4388
  })]
4421
- }))
4422
- }));
4389
+ })
4390
+ });
4423
4391
  };
4424
4392
 
4425
4393
  const MapViewCapConnectWrapper = ({
@@ -4442,17 +4410,16 @@ const MapViewCapConnectWrapper = ({
4442
4410
  error
4443
4411
  } = useApi(api.getCapConfiguration, productConfigKey);
4444
4412
  if (isConfigLoading) {
4445
- return jsx(Box$1, Object.assign({
4413
+ return jsx(Box$1, {
4446
4414
  sx: {
4447
4415
  display: 'flex',
4448
4416
  justifyContent: 'center',
4449
4417
  alignItems: 'center'
4450
- }
4451
- }, {
4418
+ },
4452
4419
  children: jsx(CircularProgress, {
4453
4420
  "data-testid": "loadingSpinner"
4454
4421
  })
4455
- }));
4422
+ });
4456
4423
  }
4457
4424
  if (error) {
4458
4425
  return jsx(AlertBanner, {
@@ -4484,37 +4451,35 @@ const ComponentsLookUp = ({
4484
4451
  }) => {
4485
4452
  // TODO: implement polling when backend is ready
4486
4453
  // NOTE: Fetching data inside this component might not work, as using React Hooks causes Invalid Hook Call -errors in tests.
4487
- var _a, _b;
4488
4454
  switch (componentType) {
4489
4455
  case 'CapWarningMap':
4490
4456
  {
4491
- return jsx(ApiProvider, Object.assign({
4457
+ var _initialProps$mapPres, _initialProps$mapPres2;
4458
+ return jsx(ApiProvider, {
4492
4459
  config: {
4493
4460
  baseURL: config.baseURL
4494
4461
  },
4495
- createApi: createApi
4496
- }, {
4462
+ createApi: createApi,
4497
4463
  children: jsx(MapViewCapConnectWrapper, {
4498
4464
  id: id,
4499
- bbox: (_a = initialProps.mapPreset.proj) === null || _a === void 0 ? void 0 : _a.bbox,
4500
- srs: (_b = initialProps.mapPreset.proj) === null || _b === void 0 ? void 0 : _b.srs,
4465
+ bbox: (_initialProps$mapPres = initialProps.mapPreset.proj) == null ? void 0 : _initialProps$mapPres.bbox,
4466
+ srs: (_initialProps$mapPres2 = initialProps.mapPreset.proj) == null ? void 0 : _initialProps$mapPres2.srs,
4501
4467
  layers: initialProps.mapPreset.layers,
4502
4468
  productConfigKey: productConfigKey
4503
4469
  })
4504
- }));
4470
+ });
4505
4471
  }
4506
4472
  case 'CapWarningList':
4507
4473
  {
4508
- return jsx(ApiProvider, Object.assign({
4474
+ return jsx(ApiProvider, {
4509
4475
  config: {
4510
4476
  baseURL: config.baseURL
4511
4477
  },
4512
- createApi: createApi
4513
- }, {
4478
+ createApi: createApi,
4514
4479
  children: jsx(WarningListCapConnectWrapper, {
4515
4480
  productConfigKey: productConfigKey
4516
4481
  })
4517
- }));
4482
+ });
4518
4483
  }
4519
4484
  default:
4520
4485
  return null;