@opengeoweb/cap 9.19.0 → 9.20.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.
- package/index.esm.js +987 -1035
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useApiContext, useApi, createNonAuthApiInstance, ApiProvider } from '@opengeoweb/api';
|
|
3
3
|
import { Grid, Typography, Box, Card, CircularProgress } from '@mui/material';
|
|
4
4
|
import { Box as Box$1 } from '@mui/system';
|
|
5
5
|
import { dateUtils, AlertBanner } from '@opengeoweb/shared';
|
|
6
6
|
import { useSelector, useDispatch } from 'react-redux';
|
|
7
7
|
import { createEntityAdapter, createSlice, createSelector } from '@reduxjs/toolkit';
|
|
8
|
+
import React from 'react';
|
|
8
9
|
import 'i18next';
|
|
9
10
|
import { useTranslation } from 'react-i18next';
|
|
10
11
|
import { ConfigurableMapConnect } from '@opengeoweb/core';
|
|
@@ -35,90 +36,25 @@ var capTrans = {
|
|
|
35
36
|
fi: fi
|
|
36
37
|
};
|
|
37
38
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*
|
|
43
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
44
|
-
*
|
|
45
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
46
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
47
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
48
|
-
* See the License for the specific language governing permissions and
|
|
49
|
-
* limitations under the License.
|
|
50
|
-
*
|
|
51
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
52
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
53
|
-
* */
|
|
54
|
-
const feedAdapter = createEntityAdapter();
|
|
55
|
-
const feedInitialState = feedAdapter.getInitialState();
|
|
56
|
-
const alertAdapter = createEntityAdapter({
|
|
57
|
-
// we use identifier as id
|
|
58
|
-
selectId: capAlert => capAlert.identifier
|
|
59
|
-
});
|
|
60
|
-
const alertInitialState = alertAdapter.getInitialState();
|
|
61
|
-
const initialState = {
|
|
62
|
-
feeds: feedInitialState,
|
|
63
|
-
alerts: alertInitialState
|
|
39
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
40
|
+
|
|
41
|
+
var check = function (it) {
|
|
42
|
+
return it && it.Math === Math && it;
|
|
64
43
|
};
|
|
65
|
-
const slice = createSlice({
|
|
66
|
-
initialState,
|
|
67
|
-
name: 'capReducer',
|
|
68
|
-
reducers: {
|
|
69
|
-
addManyAlerts: (draft, action) => {
|
|
70
|
-
alertAdapter.upsertMany(draft.alerts, action.payload);
|
|
71
|
-
},
|
|
72
|
-
addManyAlertsToFeed: (draft, action) => {
|
|
73
|
-
feedAdapter.upsertOne(draft.feeds, {
|
|
74
|
-
id: action.payload.feedId,
|
|
75
|
-
lastUpdated: Date.now(),
|
|
76
|
-
alertIds: action.payload.alertIds
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
setFeedLastUpdatedTimes: (draft, action) => {
|
|
80
|
-
feedAdapter.updateMany(draft.feeds, action.payload);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
const {
|
|
85
|
-
reducer
|
|
86
|
-
} = slice;
|
|
87
|
-
const capActions = slice.actions;
|
|
88
44
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
* limitations under the License.
|
|
101
|
-
*
|
|
102
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
103
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
104
|
-
* */
|
|
105
|
-
const {
|
|
106
|
-
selectById: getCapFeedById,
|
|
107
|
-
selectAll: getCapFeeds
|
|
108
|
-
} = feedAdapter.getSelectors(state => state.capStore.feeds);
|
|
109
|
-
const {
|
|
110
|
-
selectById: getAlertById,
|
|
111
|
-
selectAll: getAlerts,
|
|
112
|
-
selectIds: getAlertIds
|
|
113
|
-
} = alertAdapter.getSelectors(state => state.capStore.alerts);
|
|
114
|
-
const getAlertsInEffect = createSelector(getAlerts, (_state, selectedTime) => selectedTime, (alerts, selectedTime) => {
|
|
115
|
-
return alerts.filter(alert => dateUtils.isBetween(dateUtils.createDate(selectedTime), dateUtils.createDate(alert.onset), dateUtils.createDate(alert.expires), '[)'));
|
|
116
|
-
});
|
|
117
|
-
const getLastUpdatedTimes = createSelector(getCapFeeds, feeds => {
|
|
118
|
-
return feeds.map(feed => feed.lastUpdated);
|
|
119
|
-
});
|
|
45
|
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
46
|
+
var global$l =
|
|
47
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
48
|
+
check(typeof globalThis == 'object' && globalThis) ||
|
|
49
|
+
check(typeof window == 'object' && window) ||
|
|
50
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
|
51
|
+
check(typeof self == 'object' && self) ||
|
|
52
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
53
|
+
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
54
|
+
// eslint-disable-next-line no-new-func -- fallback
|
|
55
|
+
(function () { return this; })() || Function('return this')();
|
|
120
56
|
|
|
121
|
-
var
|
|
57
|
+
var objectGetOwnPropertyDescriptor = {};
|
|
122
58
|
|
|
123
59
|
var fails$k = function (exec) {
|
|
124
60
|
try {
|
|
@@ -130,7 +66,15 @@ var fails$k = function (exec) {
|
|
|
130
66
|
|
|
131
67
|
var fails$j = fails$k;
|
|
132
68
|
|
|
133
|
-
|
|
69
|
+
// Detect IE8's incomplete defineProperty implementation
|
|
70
|
+
var descriptors = !fails$j(function () {
|
|
71
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
72
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
var fails$i = fails$k;
|
|
76
|
+
|
|
77
|
+
var functionBindNative = !fails$i(function () {
|
|
134
78
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
135
79
|
var test = (function () { /* empty */ }).bind();
|
|
136
80
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -139,13 +83,46 @@ var functionBindNative = !fails$j(function () {
|
|
|
139
83
|
|
|
140
84
|
var NATIVE_BIND$3 = functionBindNative;
|
|
141
85
|
|
|
86
|
+
var call$i = Function.prototype.call;
|
|
87
|
+
|
|
88
|
+
var functionCall = NATIVE_BIND$3 ? call$i.bind(call$i) : function () {
|
|
89
|
+
return call$i.apply(call$i, arguments);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
var objectPropertyIsEnumerable = {};
|
|
93
|
+
|
|
94
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
95
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
96
|
+
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
97
|
+
|
|
98
|
+
// Nashorn ~ JDK8 bug
|
|
99
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
100
|
+
|
|
101
|
+
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
102
|
+
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
103
|
+
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
104
|
+
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
105
|
+
return !!descriptor && descriptor.enumerable;
|
|
106
|
+
} : $propertyIsEnumerable;
|
|
107
|
+
|
|
108
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
109
|
+
return {
|
|
110
|
+
enumerable: !(bitmap & 1),
|
|
111
|
+
configurable: !(bitmap & 2),
|
|
112
|
+
writable: !(bitmap & 4),
|
|
113
|
+
value: value
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
118
|
+
|
|
142
119
|
var FunctionPrototype$2 = Function.prototype;
|
|
143
|
-
var call$
|
|
144
|
-
var uncurryThisWithBind = NATIVE_BIND$
|
|
120
|
+
var call$h = FunctionPrototype$2.call;
|
|
121
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$h, call$h);
|
|
145
122
|
|
|
146
|
-
var functionUncurryThis = NATIVE_BIND$
|
|
123
|
+
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
147
124
|
return function () {
|
|
148
|
-
return call$
|
|
125
|
+
return call$h.apply(fn, arguments);
|
|
149
126
|
};
|
|
150
127
|
};
|
|
151
128
|
|
|
@@ -159,14 +136,14 @@ var classofRaw$2 = function (it) {
|
|
|
159
136
|
};
|
|
160
137
|
|
|
161
138
|
var uncurryThis$j = functionUncurryThis;
|
|
162
|
-
var fails$
|
|
139
|
+
var fails$h = fails$k;
|
|
163
140
|
var classof$8 = classofRaw$2;
|
|
164
141
|
|
|
165
142
|
var $Object$4 = Object;
|
|
166
143
|
var split = uncurryThis$j(''.split);
|
|
167
144
|
|
|
168
145
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
169
|
-
var indexedObject = fails$
|
|
146
|
+
var indexedObject = fails$h(function () {
|
|
170
147
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
171
148
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
172
149
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -199,88 +176,38 @@ var toIndexedObject$5 = function (it) {
|
|
|
199
176
|
return IndexedObject$2(requireObjectCoercible$6(it));
|
|
200
177
|
};
|
|
201
178
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
207
|
-
var global$l =
|
|
208
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
209
|
-
check(typeof globalThis == 'object' && globalThis) ||
|
|
210
|
-
check(typeof window == 'object' && window) ||
|
|
211
|
-
// eslint-disable-next-line no-restricted-globals -- safe
|
|
212
|
-
check(typeof self == 'object' && self) ||
|
|
213
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
214
|
-
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
215
|
-
// eslint-disable-next-line no-new-func -- fallback
|
|
216
|
-
(function () { return this; })() || Function('return this')();
|
|
217
|
-
|
|
218
|
-
var sharedStore = {exports: {}};
|
|
219
|
-
|
|
220
|
-
var global$k = global$l;
|
|
221
|
-
|
|
222
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
223
|
-
var defineProperty$6 = Object.defineProperty;
|
|
179
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
180
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
224
181
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
182
|
+
// `IsCallable` abstract operation
|
|
183
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
|
184
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
185
|
+
var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
186
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
187
|
+
} : function (argument) {
|
|
188
|
+
return typeof argument == 'function';
|
|
231
189
|
};
|
|
232
190
|
|
|
233
|
-
var
|
|
234
|
-
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
235
|
-
|
|
236
|
-
var SHARED = '__core-js_shared__';
|
|
237
|
-
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
238
|
-
|
|
239
|
-
(store$3.versions || (store$3.versions = [])).push({
|
|
240
|
-
version: '3.37.1',
|
|
241
|
-
mode: 'global',
|
|
242
|
-
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
243
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
|
|
244
|
-
source: 'https://github.com/zloirock/core-js'
|
|
245
|
-
});
|
|
246
|
-
|
|
247
|
-
var store$2 = sharedStore.exports;
|
|
191
|
+
var isCallable$k = isCallable$l;
|
|
248
192
|
|
|
249
|
-
var
|
|
250
|
-
return
|
|
193
|
+
var isObject$c = function (it) {
|
|
194
|
+
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
251
195
|
};
|
|
252
196
|
|
|
253
|
-
var
|
|
254
|
-
|
|
255
|
-
var $Object$3 = Object;
|
|
197
|
+
var global$k = global$l;
|
|
198
|
+
var isCallable$j = isCallable$l;
|
|
256
199
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
var toObject$6 = function (argument) {
|
|
260
|
-
return $Object$3(requireObjectCoercible$5(argument));
|
|
200
|
+
var aFunction = function (argument) {
|
|
201
|
+
return isCallable$j(argument) ? argument : undefined;
|
|
261
202
|
};
|
|
262
203
|
|
|
263
|
-
var
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
var hasOwnProperty = uncurryThis$i({}.hasOwnProperty);
|
|
267
|
-
|
|
268
|
-
// `HasOwnProperty` abstract operation
|
|
269
|
-
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
270
|
-
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
271
|
-
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
272
|
-
return hasOwnProperty(toObject$5(it), key);
|
|
204
|
+
var getBuiltIn$7 = function (namespace, method) {
|
|
205
|
+
return arguments.length < 2 ? aFunction(global$k[namespace]) : global$k[namespace] && global$k[namespace][method];
|
|
273
206
|
};
|
|
274
207
|
|
|
275
|
-
var uncurryThis$
|
|
276
|
-
|
|
277
|
-
var id = 0;
|
|
278
|
-
var postfix = Math.random();
|
|
279
|
-
var toString$6 = uncurryThis$h(1.0.toString);
|
|
208
|
+
var uncurryThis$i = functionUncurryThis;
|
|
280
209
|
|
|
281
|
-
var
|
|
282
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
|
|
283
|
-
};
|
|
210
|
+
var objectIsPrototypeOf = uncurryThis$i({}.isPrototypeOf);
|
|
284
211
|
|
|
285
212
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
286
213
|
|
|
@@ -314,13 +241,13 @@ var engineV8Version = version;
|
|
|
314
241
|
|
|
315
242
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
316
243
|
var V8_VERSION$1 = engineV8Version;
|
|
317
|
-
var fails$
|
|
244
|
+
var fails$g = fails$k;
|
|
318
245
|
var global$i = global$l;
|
|
319
246
|
|
|
320
247
|
var $String$5 = global$i.String;
|
|
321
248
|
|
|
322
249
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
323
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
250
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$g(function () {
|
|
324
251
|
var symbol = Symbol('symbol detection');
|
|
325
252
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
326
253
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -338,207 +265,176 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
338
265
|
&& !Symbol.sham
|
|
339
266
|
&& typeof Symbol.iterator == 'symbol';
|
|
340
267
|
|
|
341
|
-
var
|
|
342
|
-
var
|
|
343
|
-
var
|
|
344
|
-
var uid$1 = uid$2;
|
|
345
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
268
|
+
var getBuiltIn$6 = getBuiltIn$7;
|
|
269
|
+
var isCallable$i = isCallable$l;
|
|
270
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
346
271
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
347
272
|
|
|
348
|
-
var
|
|
349
|
-
var WellKnownSymbolsStore = shared$3('wks');
|
|
350
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
273
|
+
var $Object$3 = Object;
|
|
351
274
|
|
|
352
|
-
var
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
} return WellKnownSymbolsStore[name];
|
|
275
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
276
|
+
return typeof it == 'symbol';
|
|
277
|
+
} : function (it) {
|
|
278
|
+
var $Symbol = getBuiltIn$6('Symbol');
|
|
279
|
+
return isCallable$i($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
|
|
358
280
|
};
|
|
359
281
|
|
|
360
|
-
|
|
361
|
-
var documentAll = typeof document == 'object' && document.all;
|
|
282
|
+
var $String$4 = String;
|
|
362
283
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
}
|
|
369
|
-
return typeof argument == 'function';
|
|
284
|
+
var tryToString$4 = function (argument) {
|
|
285
|
+
try {
|
|
286
|
+
return $String$4(argument);
|
|
287
|
+
} catch (error) {
|
|
288
|
+
return 'Object';
|
|
289
|
+
}
|
|
370
290
|
};
|
|
371
291
|
|
|
372
|
-
var isCallable$
|
|
373
|
-
|
|
374
|
-
var isObject$c = function (it) {
|
|
375
|
-
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
var isObject$b = isObject$c;
|
|
292
|
+
var isCallable$h = isCallable$l;
|
|
293
|
+
var tryToString$3 = tryToString$4;
|
|
379
294
|
|
|
380
|
-
var $String$4 = String;
|
|
381
295
|
var $TypeError$f = TypeError;
|
|
382
296
|
|
|
383
|
-
// `Assert:
|
|
384
|
-
var
|
|
385
|
-
if (
|
|
386
|
-
throw new $TypeError$f($
|
|
297
|
+
// `Assert: IsCallable(argument) is true`
|
|
298
|
+
var aCallable$b = function (argument) {
|
|
299
|
+
if (isCallable$h(argument)) return argument;
|
|
300
|
+
throw new $TypeError$f(tryToString$3(argument) + ' is not a function');
|
|
387
301
|
};
|
|
388
302
|
|
|
389
|
-
var
|
|
303
|
+
var aCallable$a = aCallable$b;
|
|
304
|
+
var isNullOrUndefined$3 = isNullOrUndefined$5;
|
|
390
305
|
|
|
391
|
-
|
|
306
|
+
// `GetMethod` abstract operation
|
|
307
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
|
308
|
+
var getMethod$4 = function (V, P) {
|
|
309
|
+
var func = V[P];
|
|
310
|
+
return isNullOrUndefined$3(func) ? undefined : aCallable$a(func);
|
|
311
|
+
};
|
|
392
312
|
|
|
393
|
-
|
|
394
|
-
var
|
|
395
|
-
|
|
396
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
397
|
-
});
|
|
313
|
+
var call$g = functionCall;
|
|
314
|
+
var isCallable$g = isCallable$l;
|
|
315
|
+
var isObject$b = isObject$c;
|
|
398
316
|
|
|
399
|
-
var
|
|
400
|
-
var fails$f = fails$k;
|
|
317
|
+
var $TypeError$e = TypeError;
|
|
401
318
|
|
|
402
|
-
//
|
|
403
|
-
// https://
|
|
404
|
-
var
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
319
|
+
// `OrdinaryToPrimitive` abstract operation
|
|
320
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
321
|
+
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
322
|
+
var fn, val;
|
|
323
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$b(val = call$g(fn, input))) return val;
|
|
324
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$b(val = call$g(fn, input))) return val;
|
|
325
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$b(val = call$g(fn, input))) return val;
|
|
326
|
+
throw new $TypeError$e("Can't convert object to primitive value");
|
|
327
|
+
};
|
|
411
328
|
|
|
412
|
-
var
|
|
329
|
+
var sharedStore = {exports: {}};
|
|
413
330
|
|
|
414
|
-
var global$
|
|
415
|
-
var isObject$a = isObject$c;
|
|
331
|
+
var global$h = global$l;
|
|
416
332
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
|
|
333
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
334
|
+
var defineProperty$6 = Object.defineProperty;
|
|
420
335
|
|
|
421
|
-
var
|
|
422
|
-
|
|
336
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
337
|
+
try {
|
|
338
|
+
defineProperty$6(global$h, key, { value: value, configurable: true, writable: true });
|
|
339
|
+
} catch (error) {
|
|
340
|
+
global$h[key] = value;
|
|
341
|
+
} return value;
|
|
423
342
|
};
|
|
424
343
|
|
|
425
|
-
var
|
|
426
|
-
var
|
|
427
|
-
var createElement$1 = documentCreateElement$2;
|
|
428
|
-
|
|
429
|
-
// Thanks to IE8 for its funny defineProperty
|
|
430
|
-
var ie8DomDefine = !DESCRIPTORS$a && !fails$e(function () {
|
|
431
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
432
|
-
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
433
|
-
get: function () { return 7; }
|
|
434
|
-
}).a !== 7;
|
|
435
|
-
});
|
|
344
|
+
var globalThis$1 = global$l;
|
|
345
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
436
346
|
|
|
437
|
-
var
|
|
347
|
+
var SHARED = '__core-js_shared__';
|
|
348
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
438
349
|
|
|
439
|
-
|
|
350
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
351
|
+
version: '3.37.1',
|
|
352
|
+
mode: 'global',
|
|
353
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
354
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
|
|
355
|
+
source: 'https://github.com/zloirock/core-js'
|
|
356
|
+
});
|
|
440
357
|
|
|
441
|
-
var
|
|
442
|
-
return call$h.apply(call$h, arguments);
|
|
443
|
-
};
|
|
358
|
+
var sharedStoreExports = sharedStore.exports;
|
|
444
359
|
|
|
445
|
-
var
|
|
446
|
-
var isCallable$j = isCallable$l;
|
|
360
|
+
var store$2 = sharedStoreExports;
|
|
447
361
|
|
|
448
|
-
var
|
|
449
|
-
return
|
|
450
|
-
};
|
|
451
|
-
|
|
452
|
-
var getBuiltIn$7 = function (namespace, method) {
|
|
453
|
-
return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
|
|
362
|
+
var shared$4 = function (key, value) {
|
|
363
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
454
364
|
};
|
|
455
365
|
|
|
456
|
-
var
|
|
457
|
-
|
|
458
|
-
var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
|
|
459
|
-
|
|
460
|
-
var getBuiltIn$6 = getBuiltIn$7;
|
|
461
|
-
var isCallable$i = isCallable$l;
|
|
462
|
-
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
463
|
-
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
366
|
+
var requireObjectCoercible$5 = requireObjectCoercible$7;
|
|
464
367
|
|
|
465
368
|
var $Object$2 = Object;
|
|
466
369
|
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
return isCallable$i($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
var $String$3 = String;
|
|
475
|
-
|
|
476
|
-
var tryToString$4 = function (argument) {
|
|
477
|
-
try {
|
|
478
|
-
return $String$3(argument);
|
|
479
|
-
} catch (error) {
|
|
480
|
-
return 'Object';
|
|
481
|
-
}
|
|
370
|
+
// `ToObject` abstract operation
|
|
371
|
+
// https://tc39.es/ecma262/#sec-toobject
|
|
372
|
+
var toObject$6 = function (argument) {
|
|
373
|
+
return $Object$2(requireObjectCoercible$5(argument));
|
|
482
374
|
};
|
|
483
375
|
|
|
484
|
-
var
|
|
485
|
-
var
|
|
376
|
+
var uncurryThis$h = functionUncurryThis;
|
|
377
|
+
var toObject$5 = toObject$6;
|
|
486
378
|
|
|
487
|
-
var
|
|
379
|
+
var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
|
|
488
380
|
|
|
489
|
-
// `
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
381
|
+
// `HasOwnProperty` abstract operation
|
|
382
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
383
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
384
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
385
|
+
return hasOwnProperty(toObject$5(it), key);
|
|
493
386
|
};
|
|
494
387
|
|
|
495
|
-
var
|
|
496
|
-
var isNullOrUndefined$3 = isNullOrUndefined$5;
|
|
388
|
+
var uncurryThis$g = functionUncurryThis;
|
|
497
389
|
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
var
|
|
501
|
-
|
|
502
|
-
|
|
390
|
+
var id = 0;
|
|
391
|
+
var postfix = Math.random();
|
|
392
|
+
var toString$6 = uncurryThis$g(1.0.toString);
|
|
393
|
+
|
|
394
|
+
var uid$2 = function (key) {
|
|
395
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
|
|
503
396
|
};
|
|
504
397
|
|
|
505
|
-
var
|
|
506
|
-
var
|
|
507
|
-
var
|
|
398
|
+
var global$g = global$l;
|
|
399
|
+
var shared$3 = shared$4;
|
|
400
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
401
|
+
var uid$1 = uid$2;
|
|
402
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
403
|
+
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
508
404
|
|
|
509
|
-
var $
|
|
405
|
+
var Symbol$1 = global$g.Symbol;
|
|
406
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
407
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
510
408
|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
|
|
518
|
-
throw new $TypeError$d("Can't convert object to primitive value");
|
|
409
|
+
var wellKnownSymbol$j = function (name) {
|
|
410
|
+
if (!hasOwn$9(WellKnownSymbolsStore, name)) {
|
|
411
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
|
|
412
|
+
? Symbol$1[name]
|
|
413
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
414
|
+
} return WellKnownSymbolsStore[name];
|
|
519
415
|
};
|
|
520
416
|
|
|
521
417
|
var call$f = functionCall;
|
|
522
|
-
var isObject$
|
|
418
|
+
var isObject$a = isObject$c;
|
|
523
419
|
var isSymbol$1 = isSymbol$2;
|
|
524
420
|
var getMethod$3 = getMethod$4;
|
|
525
421
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
526
422
|
var wellKnownSymbol$i = wellKnownSymbol$j;
|
|
527
423
|
|
|
528
|
-
var $TypeError$
|
|
424
|
+
var $TypeError$d = TypeError;
|
|
529
425
|
var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
|
|
530
426
|
|
|
531
427
|
// `ToPrimitive` abstract operation
|
|
532
428
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
533
429
|
var toPrimitive$1 = function (input, pref) {
|
|
534
|
-
if (!isObject$
|
|
430
|
+
if (!isObject$a(input) || isSymbol$1(input)) return input;
|
|
535
431
|
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
536
432
|
var result;
|
|
537
433
|
if (exoticToPrim) {
|
|
538
434
|
if (pref === undefined) pref = 'default';
|
|
539
435
|
result = call$f(exoticToPrim, input, pref);
|
|
540
|
-
if (!isObject$
|
|
541
|
-
throw new $TypeError$
|
|
436
|
+
if (!isObject$a(result) || isSymbol$1(result)) return result;
|
|
437
|
+
throw new $TypeError$d("Can't convert object to primitive value");
|
|
542
438
|
}
|
|
543
439
|
if (pref === undefined) pref = 'number';
|
|
544
440
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -554,29 +450,101 @@ var toPropertyKey$2 = function (argument) {
|
|
|
554
450
|
return isSymbol(key) ? key : key + '';
|
|
555
451
|
};
|
|
556
452
|
|
|
557
|
-
var
|
|
453
|
+
var global$f = global$l;
|
|
454
|
+
var isObject$9 = isObject$c;
|
|
455
|
+
|
|
456
|
+
var document$3 = global$f.document;
|
|
457
|
+
// typeof document.createElement is 'object' in old IE
|
|
458
|
+
var EXISTS$1 = isObject$9(document$3) && isObject$9(document$3.createElement);
|
|
459
|
+
|
|
460
|
+
var documentCreateElement$2 = function (it) {
|
|
461
|
+
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
var DESCRIPTORS$b = descriptors;
|
|
465
|
+
var fails$f = fails$k;
|
|
466
|
+
var createElement$1 = documentCreateElement$2;
|
|
467
|
+
|
|
468
|
+
// Thanks to IE8 for its funny defineProperty
|
|
469
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$f(function () {
|
|
470
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
471
|
+
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
472
|
+
get: function () { return 7; }
|
|
473
|
+
}).a !== 7;
|
|
474
|
+
});
|
|
475
|
+
|
|
476
|
+
var DESCRIPTORS$a = descriptors;
|
|
477
|
+
var call$e = functionCall;
|
|
478
|
+
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
479
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
480
|
+
var toIndexedObject$4 = toIndexedObject$5;
|
|
481
|
+
var toPropertyKey$1 = toPropertyKey$2;
|
|
482
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
558
483
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
484
|
+
|
|
485
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
486
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
487
|
+
|
|
488
|
+
// `Object.getOwnPropertyDescriptor` method
|
|
489
|
+
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
490
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
491
|
+
O = toIndexedObject$4(O);
|
|
492
|
+
P = toPropertyKey$1(P);
|
|
493
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
494
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
|
495
|
+
} catch (error) { /* empty */ }
|
|
496
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
var objectDefineProperty = {};
|
|
500
|
+
|
|
501
|
+
var DESCRIPTORS$9 = descriptors;
|
|
502
|
+
var fails$e = fails$k;
|
|
503
|
+
|
|
504
|
+
// V8 ~ Chrome 36-
|
|
505
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
506
|
+
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$e(function () {
|
|
507
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
508
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
509
|
+
value: 42,
|
|
510
|
+
writable: false
|
|
511
|
+
}).prototype !== 42;
|
|
512
|
+
});
|
|
513
|
+
|
|
514
|
+
var isObject$8 = isObject$c;
|
|
515
|
+
|
|
516
|
+
var $String$3 = String;
|
|
517
|
+
var $TypeError$c = TypeError;
|
|
518
|
+
|
|
519
|
+
// `Assert: Type(argument) is Object`
|
|
520
|
+
var anObject$c = function (argument) {
|
|
521
|
+
if (isObject$8(argument)) return argument;
|
|
522
|
+
throw new $TypeError$c($String$3(argument) + ' is not an object');
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
var DESCRIPTORS$8 = descriptors;
|
|
526
|
+
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
559
527
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
560
528
|
var anObject$b = anObject$c;
|
|
561
|
-
var toPropertyKey
|
|
529
|
+
var toPropertyKey = toPropertyKey$2;
|
|
562
530
|
|
|
563
531
|
var $TypeError$b = TypeError;
|
|
564
532
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
565
533
|
var $defineProperty = Object.defineProperty;
|
|
566
534
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
567
|
-
var $getOwnPropertyDescriptor
|
|
535
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
568
536
|
var ENUMERABLE = 'enumerable';
|
|
569
537
|
var CONFIGURABLE$1 = 'configurable';
|
|
570
538
|
var WRITABLE = 'writable';
|
|
571
539
|
|
|
572
540
|
// `Object.defineProperty` method
|
|
573
541
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
574
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
542
|
+
objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
575
543
|
anObject$b(O);
|
|
576
|
-
P = toPropertyKey
|
|
544
|
+
P = toPropertyKey(P);
|
|
577
545
|
anObject$b(Attributes);
|
|
578
546
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
579
|
-
var current = $getOwnPropertyDescriptor
|
|
547
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
|
580
548
|
if (current && current[WRITABLE]) {
|
|
581
549
|
O[P] = Attributes.value;
|
|
582
550
|
Attributes = {
|
|
@@ -588,9 +556,9 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
588
556
|
} return $defineProperty(O, P, Attributes);
|
|
589
557
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
590
558
|
anObject$b(O);
|
|
591
|
-
P = toPropertyKey
|
|
559
|
+
P = toPropertyKey(P);
|
|
592
560
|
anObject$b(Attributes);
|
|
593
|
-
if (IE8_DOM_DEFINE
|
|
561
|
+
if (IE8_DOM_DEFINE) try {
|
|
594
562
|
return $defineProperty(O, P, Attributes);
|
|
595
563
|
} catch (error) { /* empty */ }
|
|
596
564
|
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$b('Accessors not supported');
|
|
@@ -598,313 +566,78 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
598
566
|
return O;
|
|
599
567
|
};
|
|
600
568
|
|
|
601
|
-
var
|
|
602
|
-
var floor$1 = Math.floor;
|
|
603
|
-
|
|
604
|
-
// `Math.trunc` method
|
|
605
|
-
// https://tc39.es/ecma262/#sec-math.trunc
|
|
606
|
-
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
607
|
-
var mathTrunc = Math.trunc || function trunc(x) {
|
|
608
|
-
var n = +x;
|
|
609
|
-
return (n > 0 ? floor$1 : ceil)(n);
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
var trunc = mathTrunc;
|
|
613
|
-
|
|
614
|
-
// `ToIntegerOrInfinity` abstract operation
|
|
615
|
-
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
616
|
-
var toIntegerOrInfinity$4 = function (argument) {
|
|
617
|
-
var number = +argument;
|
|
618
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
619
|
-
return number !== number || number === 0 ? 0 : trunc(number);
|
|
620
|
-
};
|
|
621
|
-
|
|
622
|
-
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
623
|
-
|
|
624
|
-
var max$1 = Math.max;
|
|
625
|
-
var min$3 = Math.min;
|
|
626
|
-
|
|
627
|
-
// Helper for a popular repeating case of the spec:
|
|
628
|
-
// Let integer be ? ToInteger(index).
|
|
629
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
630
|
-
var toAbsoluteIndex$1 = function (index, length) {
|
|
631
|
-
var integer = toIntegerOrInfinity$3(index);
|
|
632
|
-
return integer < 0 ? max$1(integer + length, 0) : min$3(integer, length);
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
636
|
-
|
|
637
|
-
var min$2 = Math.min;
|
|
638
|
-
|
|
639
|
-
// `ToLength` abstract operation
|
|
640
|
-
// https://tc39.es/ecma262/#sec-tolength
|
|
641
|
-
var toLength$3 = function (argument) {
|
|
642
|
-
var len = toIntegerOrInfinity$2(argument);
|
|
643
|
-
return len > 0 ? min$2(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
644
|
-
};
|
|
645
|
-
|
|
646
|
-
var toLength$2 = toLength$3;
|
|
647
|
-
|
|
648
|
-
// `LengthOfArrayLike` abstract operation
|
|
649
|
-
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
650
|
-
var lengthOfArrayLike$5 = function (obj) {
|
|
651
|
-
return toLength$2(obj.length);
|
|
652
|
-
};
|
|
653
|
-
|
|
654
|
-
var toIndexedObject$4 = toIndexedObject$5;
|
|
655
|
-
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
656
|
-
var lengthOfArrayLike$4 = lengthOfArrayLike$5;
|
|
657
|
-
|
|
658
|
-
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
659
|
-
var createMethod$2 = function (IS_INCLUDES) {
|
|
660
|
-
return function ($this, el, fromIndex) {
|
|
661
|
-
var O = toIndexedObject$4($this);
|
|
662
|
-
var length = lengthOfArrayLike$4(O);
|
|
663
|
-
if (length === 0) return !IS_INCLUDES && -1;
|
|
664
|
-
var index = toAbsoluteIndex(fromIndex, length);
|
|
665
|
-
var value;
|
|
666
|
-
// Array#includes uses SameValueZero equality algorithm
|
|
667
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
668
|
-
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
669
|
-
value = O[index++];
|
|
670
|
-
// eslint-disable-next-line no-self-compare -- NaN check
|
|
671
|
-
if (value !== value) return true;
|
|
672
|
-
// Array#indexOf ignores holes, Array#includes - not
|
|
673
|
-
} else for (;length > index; index++) {
|
|
674
|
-
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
675
|
-
} return !IS_INCLUDES && -1;
|
|
676
|
-
};
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
var arrayIncludes = {
|
|
680
|
-
// `Array.prototype.includes` method
|
|
681
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
682
|
-
includes: createMethod$2(true),
|
|
683
|
-
// `Array.prototype.indexOf` method
|
|
684
|
-
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
685
|
-
indexOf: createMethod$2(false)
|
|
686
|
-
};
|
|
687
|
-
|
|
688
|
-
var hiddenKeys$4 = {};
|
|
689
|
-
|
|
690
|
-
var uncurryThis$f = functionUncurryThis;
|
|
691
|
-
var hasOwn$8 = hasOwnProperty_1;
|
|
692
|
-
var toIndexedObject$3 = toIndexedObject$5;
|
|
693
|
-
var indexOf$1 = arrayIncludes.indexOf;
|
|
694
|
-
var hiddenKeys$3 = hiddenKeys$4;
|
|
695
|
-
|
|
696
|
-
var push$1 = uncurryThis$f([].push);
|
|
697
|
-
|
|
698
|
-
var objectKeysInternal = function (object, names) {
|
|
699
|
-
var O = toIndexedObject$3(object);
|
|
700
|
-
var i = 0;
|
|
701
|
-
var result = [];
|
|
702
|
-
var key;
|
|
703
|
-
for (key in O) !hasOwn$8(hiddenKeys$3, key) && hasOwn$8(O, key) && push$1(result, key);
|
|
704
|
-
// Don't enum bug & hidden keys
|
|
705
|
-
while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
|
|
706
|
-
~indexOf$1(result, key) || push$1(result, key);
|
|
707
|
-
}
|
|
708
|
-
return result;
|
|
709
|
-
};
|
|
710
|
-
|
|
711
|
-
// IE8- don't enum bug keys
|
|
712
|
-
var enumBugKeys$3 = [
|
|
713
|
-
'constructor',
|
|
714
|
-
'hasOwnProperty',
|
|
715
|
-
'isPrototypeOf',
|
|
716
|
-
'propertyIsEnumerable',
|
|
717
|
-
'toLocaleString',
|
|
718
|
-
'toString',
|
|
719
|
-
'valueOf'
|
|
720
|
-
];
|
|
721
|
-
|
|
722
|
-
var internalObjectKeys$1 = objectKeysInternal;
|
|
723
|
-
var enumBugKeys$2 = enumBugKeys$3;
|
|
724
|
-
|
|
725
|
-
// `Object.keys` method
|
|
726
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
|
727
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
728
|
-
var objectKeys$2 = Object.keys || function keys(O) {
|
|
729
|
-
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
var DESCRIPTORS$8 = descriptors;
|
|
733
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
569
|
+
var DESCRIPTORS$7 = descriptors;
|
|
734
570
|
var definePropertyModule$3 = objectDefineProperty;
|
|
735
|
-
var
|
|
736
|
-
|
|
737
|
-
var
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
743
|
-
anObject$a(O);
|
|
744
|
-
var props = toIndexedObject$2(Properties);
|
|
745
|
-
var keys = objectKeys$1(Properties);
|
|
746
|
-
var length = keys.length;
|
|
747
|
-
var index = 0;
|
|
748
|
-
var key;
|
|
749
|
-
while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
|
|
750
|
-
return O;
|
|
751
|
-
};
|
|
752
|
-
|
|
753
|
-
var getBuiltIn$5 = getBuiltIn$7;
|
|
754
|
-
|
|
755
|
-
var html$2 = getBuiltIn$5('document', 'documentElement');
|
|
756
|
-
|
|
757
|
-
var shared$2 = shared$4;
|
|
758
|
-
var uid = uid$2;
|
|
759
|
-
|
|
760
|
-
var keys = shared$2('keys');
|
|
761
|
-
|
|
762
|
-
var sharedKey$3 = function (key) {
|
|
763
|
-
return keys[key] || (keys[key] = uid(key));
|
|
764
|
-
};
|
|
765
|
-
|
|
766
|
-
/* global ActiveXObject -- old IE, WSH */
|
|
767
|
-
var anObject$9 = anObject$c;
|
|
768
|
-
var definePropertiesModule = objectDefineProperties;
|
|
769
|
-
var enumBugKeys$1 = enumBugKeys$3;
|
|
770
|
-
var hiddenKeys$2 = hiddenKeys$4;
|
|
771
|
-
var html$1 = html$2;
|
|
772
|
-
var documentCreateElement$1 = documentCreateElement$2;
|
|
773
|
-
var sharedKey$2 = sharedKey$3;
|
|
774
|
-
|
|
775
|
-
var GT = '>';
|
|
776
|
-
var LT = '<';
|
|
777
|
-
var PROTOTYPE = 'prototype';
|
|
778
|
-
var SCRIPT = 'script';
|
|
779
|
-
var IE_PROTO$1 = sharedKey$2('IE_PROTO');
|
|
780
|
-
|
|
781
|
-
var EmptyConstructor = function () { /* empty */ };
|
|
782
|
-
|
|
783
|
-
var scriptTag = function (content) {
|
|
784
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
788
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
789
|
-
activeXDocument.write(scriptTag(''));
|
|
790
|
-
activeXDocument.close();
|
|
791
|
-
var temp = activeXDocument.parentWindow.Object;
|
|
792
|
-
activeXDocument = null; // avoid memory leak
|
|
793
|
-
return temp;
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
797
|
-
var NullProtoObjectViaIFrame = function () {
|
|
798
|
-
// Thrash, waste and sodomy: IE GC bug
|
|
799
|
-
var iframe = documentCreateElement$1('iframe');
|
|
800
|
-
var JS = 'java' + SCRIPT + ':';
|
|
801
|
-
var iframeDocument;
|
|
802
|
-
iframe.style.display = 'none';
|
|
803
|
-
html$1.appendChild(iframe);
|
|
804
|
-
// https://github.com/zloirock/core-js/issues/475
|
|
805
|
-
iframe.src = String(JS);
|
|
806
|
-
iframeDocument = iframe.contentWindow.document;
|
|
807
|
-
iframeDocument.open();
|
|
808
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
|
809
|
-
iframeDocument.close();
|
|
810
|
-
return iframeDocument.F;
|
|
811
|
-
};
|
|
812
|
-
|
|
813
|
-
// Check for document.domain and active x support
|
|
814
|
-
// No need to use active x approach when document.domain is not set
|
|
815
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
|
816
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
817
|
-
// avoid IE GC bug
|
|
818
|
-
var activeXDocument;
|
|
819
|
-
var NullProtoObject = function () {
|
|
820
|
-
try {
|
|
821
|
-
activeXDocument = new ActiveXObject('htmlfile');
|
|
822
|
-
} catch (error) { /* ignore */ }
|
|
823
|
-
NullProtoObject = typeof document != 'undefined'
|
|
824
|
-
? document.domain && activeXDocument
|
|
825
|
-
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
826
|
-
: NullProtoObjectViaIFrame()
|
|
827
|
-
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
828
|
-
var length = enumBugKeys$1.length;
|
|
829
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
|
|
830
|
-
return NullProtoObject();
|
|
571
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
572
|
+
|
|
573
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$7 ? function (object, key, value) {
|
|
574
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
575
|
+
} : function (object, key, value) {
|
|
576
|
+
object[key] = value;
|
|
577
|
+
return object;
|
|
831
578
|
};
|
|
832
579
|
|
|
833
|
-
|
|
580
|
+
var makeBuiltIn$3 = {exports: {}};
|
|
834
581
|
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
var
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
582
|
+
var DESCRIPTORS$6 = descriptors;
|
|
583
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
584
|
+
|
|
585
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
586
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
587
|
+
var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
|
|
588
|
+
|
|
589
|
+
var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
|
|
590
|
+
// additional protection from minified / mangled / dropped function names
|
|
591
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
592
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
593
|
+
|
|
594
|
+
var functionName = {
|
|
595
|
+
EXISTS: EXISTS,
|
|
596
|
+
PROPER: PROPER,
|
|
597
|
+
CONFIGURABLE: CONFIGURABLE
|
|
848
598
|
};
|
|
849
599
|
|
|
850
|
-
var
|
|
851
|
-
var
|
|
852
|
-
var
|
|
600
|
+
var uncurryThis$f = functionUncurryThis;
|
|
601
|
+
var isCallable$f = isCallable$l;
|
|
602
|
+
var store$1 = sharedStoreExports;
|
|
853
603
|
|
|
854
|
-
var
|
|
855
|
-
var ArrayPrototype$1 = Array.prototype;
|
|
604
|
+
var functionToString = uncurryThis$f(Function.toString);
|
|
856
605
|
|
|
857
|
-
//
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
value: create$2(null)
|
|
863
|
-
});
|
|
606
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
607
|
+
if (!isCallable$f(store$1.inspectSource)) {
|
|
608
|
+
store$1.inspectSource = function (it) {
|
|
609
|
+
return functionToString(it);
|
|
610
|
+
};
|
|
864
611
|
}
|
|
865
612
|
|
|
866
|
-
|
|
867
|
-
var addToUnscopables$3 = function (key) {
|
|
868
|
-
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
869
|
-
};
|
|
870
|
-
|
|
871
|
-
var iterators = {};
|
|
613
|
+
var inspectSource$3 = store$1.inspectSource;
|
|
872
614
|
|
|
873
615
|
var global$e = global$l;
|
|
874
|
-
var isCallable$
|
|
616
|
+
var isCallable$e = isCallable$l;
|
|
875
617
|
|
|
876
618
|
var WeakMap$1 = global$e.WeakMap;
|
|
877
619
|
|
|
878
|
-
var weakMapBasicDetection = isCallable$
|
|
620
|
+
var weakMapBasicDetection = isCallable$e(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
879
621
|
|
|
880
|
-
var
|
|
881
|
-
|
|
882
|
-
enumerable: !(bitmap & 1),
|
|
883
|
-
configurable: !(bitmap & 2),
|
|
884
|
-
writable: !(bitmap & 4),
|
|
885
|
-
value: value
|
|
886
|
-
};
|
|
887
|
-
};
|
|
622
|
+
var shared$2 = shared$4;
|
|
623
|
+
var uid = uid$2;
|
|
888
624
|
|
|
889
|
-
var
|
|
890
|
-
var definePropertyModule$2 = objectDefineProperty;
|
|
891
|
-
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
625
|
+
var keys = shared$2('keys');
|
|
892
626
|
|
|
893
|
-
var
|
|
894
|
-
return
|
|
895
|
-
} : function (object, key, value) {
|
|
896
|
-
object[key] = value;
|
|
897
|
-
return object;
|
|
627
|
+
var sharedKey$3 = function (key) {
|
|
628
|
+
return keys[key] || (keys[key] = uid(key));
|
|
898
629
|
};
|
|
899
630
|
|
|
631
|
+
var hiddenKeys$4 = {};
|
|
632
|
+
|
|
900
633
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
901
634
|
var global$d = global$l;
|
|
902
635
|
var isObject$7 = isObject$c;
|
|
903
636
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
904
|
-
var hasOwn$
|
|
905
|
-
var shared$1 =
|
|
906
|
-
var sharedKey$
|
|
907
|
-
var hiddenKeys$
|
|
637
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
638
|
+
var shared$1 = sharedStoreExports;
|
|
639
|
+
var sharedKey$2 = sharedKey$3;
|
|
640
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
908
641
|
|
|
909
642
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
910
643
|
var TypeError$2 = global$d.TypeError;
|
|
@@ -925,38 +658,38 @@ var getterFor = function (TYPE) {
|
|
|
925
658
|
};
|
|
926
659
|
|
|
927
660
|
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
928
|
-
var store
|
|
661
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
929
662
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
930
|
-
store
|
|
931
|
-
store
|
|
932
|
-
store
|
|
663
|
+
store.get = store.get;
|
|
664
|
+
store.has = store.has;
|
|
665
|
+
store.set = store.set;
|
|
933
666
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
934
667
|
set$1 = function (it, metadata) {
|
|
935
|
-
if (store
|
|
668
|
+
if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
936
669
|
metadata.facade = it;
|
|
937
|
-
store
|
|
670
|
+
store.set(it, metadata);
|
|
938
671
|
return metadata;
|
|
939
672
|
};
|
|
940
673
|
get = function (it) {
|
|
941
|
-
return store
|
|
674
|
+
return store.get(it) || {};
|
|
942
675
|
};
|
|
943
676
|
has = function (it) {
|
|
944
|
-
return store
|
|
677
|
+
return store.has(it);
|
|
945
678
|
};
|
|
946
679
|
} else {
|
|
947
|
-
var STATE = sharedKey$
|
|
948
|
-
hiddenKeys$
|
|
680
|
+
var STATE = sharedKey$2('state');
|
|
681
|
+
hiddenKeys$3[STATE] = true;
|
|
949
682
|
set$1 = function (it, metadata) {
|
|
950
|
-
if (hasOwn$
|
|
683
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
951
684
|
metadata.facade = it;
|
|
952
685
|
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
953
686
|
return metadata;
|
|
954
687
|
};
|
|
955
688
|
get = function (it) {
|
|
956
|
-
return hasOwn$
|
|
689
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
957
690
|
};
|
|
958
691
|
has = function (it) {
|
|
959
|
-
return hasOwn$
|
|
692
|
+
return hasOwn$6(it, STATE);
|
|
960
693
|
};
|
|
961
694
|
}
|
|
962
695
|
|
|
@@ -968,87 +701,11 @@ var internalState = {
|
|
|
968
701
|
getterFor: getterFor
|
|
969
702
|
};
|
|
970
703
|
|
|
971
|
-
var objectGetOwnPropertyDescriptor = {};
|
|
972
|
-
|
|
973
|
-
var objectPropertyIsEnumerable = {};
|
|
974
|
-
|
|
975
|
-
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
976
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
977
|
-
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
978
|
-
|
|
979
|
-
// Nashorn ~ JDK8 bug
|
|
980
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
981
|
-
|
|
982
|
-
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
983
|
-
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
984
|
-
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
985
|
-
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
986
|
-
return !!descriptor && descriptor.enumerable;
|
|
987
|
-
} : $propertyIsEnumerable;
|
|
988
|
-
|
|
989
|
-
var DESCRIPTORS$6 = descriptors;
|
|
990
|
-
var call$e = functionCall;
|
|
991
|
-
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
992
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
993
|
-
var toIndexedObject$1 = toIndexedObject$5;
|
|
994
|
-
var toPropertyKey = toPropertyKey$2;
|
|
995
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
996
|
-
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
997
|
-
|
|
998
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
999
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
1000
|
-
|
|
1001
|
-
// `Object.getOwnPropertyDescriptor` method
|
|
1002
|
-
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1003
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
1004
|
-
O = toIndexedObject$1(O);
|
|
1005
|
-
P = toPropertyKey(P);
|
|
1006
|
-
if (IE8_DOM_DEFINE) try {
|
|
1007
|
-
return $getOwnPropertyDescriptor(O, P);
|
|
1008
|
-
} catch (error) { /* empty */ }
|
|
1009
|
-
if (hasOwn$6(O, P)) return createPropertyDescriptor$1(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
1010
|
-
};
|
|
1011
|
-
|
|
1012
|
-
var makeBuiltIn$3 = {exports: {}};
|
|
1013
|
-
|
|
1014
|
-
var DESCRIPTORS$5 = descriptors;
|
|
1015
|
-
var hasOwn$5 = hasOwnProperty_1;
|
|
1016
|
-
|
|
1017
|
-
var FunctionPrototype$1 = Function.prototype;
|
|
1018
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1019
|
-
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
1020
|
-
|
|
1021
|
-
var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
|
|
1022
|
-
// additional protection from minified / mangled / dropped function names
|
|
1023
|
-
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
1024
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
1025
|
-
|
|
1026
|
-
var functionName = {
|
|
1027
|
-
EXISTS: EXISTS,
|
|
1028
|
-
PROPER: PROPER,
|
|
1029
|
-
CONFIGURABLE: CONFIGURABLE
|
|
1030
|
-
};
|
|
1031
|
-
|
|
1032
704
|
var uncurryThis$e = functionUncurryThis;
|
|
1033
|
-
var isCallable$e = isCallable$l;
|
|
1034
|
-
var store = sharedStore.exports;
|
|
1035
|
-
|
|
1036
|
-
var functionToString = uncurryThis$e(Function.toString);
|
|
1037
|
-
|
|
1038
|
-
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1039
|
-
if (!isCallable$e(store.inspectSource)) {
|
|
1040
|
-
store.inspectSource = function (it) {
|
|
1041
|
-
return functionToString(it);
|
|
1042
|
-
};
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
var inspectSource$3 = store.inspectSource;
|
|
1046
|
-
|
|
1047
|
-
var uncurryThis$d = functionUncurryThis;
|
|
1048
705
|
var fails$d = fails$k;
|
|
1049
706
|
var isCallable$d = isCallable$l;
|
|
1050
|
-
var hasOwn$
|
|
1051
|
-
var DESCRIPTORS$
|
|
707
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
708
|
+
var DESCRIPTORS$5 = descriptors;
|
|
1052
709
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
1053
710
|
var inspectSource$2 = inspectSource$3;
|
|
1054
711
|
var InternalStateModule$2 = internalState;
|
|
@@ -1057,13 +714,13 @@ var enforceInternalState = InternalStateModule$2.enforce;
|
|
|
1057
714
|
var getInternalState$2 = InternalStateModule$2.get;
|
|
1058
715
|
var $String$2 = String;
|
|
1059
716
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1060
|
-
var defineProperty$
|
|
1061
|
-
var stringSlice$5 = uncurryThis$
|
|
1062
|
-
var replace$2 = uncurryThis$
|
|
1063
|
-
var join = uncurryThis$
|
|
717
|
+
var defineProperty$5 = Object.defineProperty;
|
|
718
|
+
var stringSlice$5 = uncurryThis$e(''.slice);
|
|
719
|
+
var replace$2 = uncurryThis$e(''.replace);
|
|
720
|
+
var join = uncurryThis$e([].join);
|
|
1064
721
|
|
|
1065
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
1066
|
-
return defineProperty$
|
|
722
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$d(function () {
|
|
723
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
1067
724
|
});
|
|
1068
725
|
|
|
1069
726
|
var TEMPLATE = String(String).split('String');
|
|
@@ -1074,21 +731,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
1074
731
|
}
|
|
1075
732
|
if (options && options.getter) name = 'get ' + name;
|
|
1076
733
|
if (options && options.setter) name = 'set ' + name;
|
|
1077
|
-
if (!hasOwn$
|
|
1078
|
-
if (DESCRIPTORS$
|
|
734
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
735
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
1079
736
|
else value.name = name;
|
|
1080
737
|
}
|
|
1081
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
1082
|
-
defineProperty$
|
|
738
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
739
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
|
1083
740
|
}
|
|
1084
741
|
try {
|
|
1085
|
-
if (options && hasOwn$
|
|
1086
|
-
if (DESCRIPTORS$
|
|
742
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
743
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
|
|
1087
744
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
1088
745
|
} else if (value.prototype) value.prototype = undefined;
|
|
1089
746
|
} catch (error) { /* empty */ }
|
|
1090
747
|
var state = enforceInternalState(value);
|
|
1091
|
-
if (!hasOwn$
|
|
748
|
+
if (!hasOwn$5(state, 'source')) {
|
|
1092
749
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
1093
750
|
} return value;
|
|
1094
751
|
};
|
|
@@ -1099,9 +756,11 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
1099
756
|
return isCallable$d(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
1100
757
|
}, 'toString');
|
|
1101
758
|
|
|
759
|
+
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
760
|
+
|
|
1102
761
|
var isCallable$c = isCallable$l;
|
|
1103
|
-
var definePropertyModule$
|
|
1104
|
-
var makeBuiltIn$1 =
|
|
762
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
763
|
+
var makeBuiltIn$1 = makeBuiltInExports;
|
|
1105
764
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
1106
765
|
|
|
1107
766
|
var defineBuiltIn$6 = function (O, key, value, options) {
|
|
@@ -1118,7 +777,7 @@ var defineBuiltIn$6 = function (O, key, value, options) {
|
|
|
1118
777
|
else if (O[key]) simple = true;
|
|
1119
778
|
} catch (error) { /* empty */ }
|
|
1120
779
|
if (simple) O[key] = value;
|
|
1121
|
-
else definePropertyModule$
|
|
780
|
+
else definePropertyModule$2.f(O, key, {
|
|
1122
781
|
value: value,
|
|
1123
782
|
enumerable: false,
|
|
1124
783
|
configurable: !options.nonConfigurable,
|
|
@@ -1127,18 +786,137 @@ var defineBuiltIn$6 = function (O, key, value, options) {
|
|
|
1127
786
|
} return O;
|
|
1128
787
|
};
|
|
1129
788
|
|
|
1130
|
-
var objectGetOwnPropertyNames = {};
|
|
789
|
+
var objectGetOwnPropertyNames = {};
|
|
790
|
+
|
|
791
|
+
var ceil = Math.ceil;
|
|
792
|
+
var floor$1 = Math.floor;
|
|
793
|
+
|
|
794
|
+
// `Math.trunc` method
|
|
795
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
796
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
797
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
798
|
+
var n = +x;
|
|
799
|
+
return (n > 0 ? floor$1 : ceil)(n);
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
var trunc = mathTrunc;
|
|
803
|
+
|
|
804
|
+
// `ToIntegerOrInfinity` abstract operation
|
|
805
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
806
|
+
var toIntegerOrInfinity$4 = function (argument) {
|
|
807
|
+
var number = +argument;
|
|
808
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
809
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
813
|
+
|
|
814
|
+
var max$1 = Math.max;
|
|
815
|
+
var min$3 = Math.min;
|
|
816
|
+
|
|
817
|
+
// Helper for a popular repeating case of the spec:
|
|
818
|
+
// Let integer be ? ToInteger(index).
|
|
819
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
820
|
+
var toAbsoluteIndex$1 = function (index, length) {
|
|
821
|
+
var integer = toIntegerOrInfinity$3(index);
|
|
822
|
+
return integer < 0 ? max$1(integer + length, 0) : min$3(integer, length);
|
|
823
|
+
};
|
|
824
|
+
|
|
825
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
826
|
+
|
|
827
|
+
var min$2 = Math.min;
|
|
828
|
+
|
|
829
|
+
// `ToLength` abstract operation
|
|
830
|
+
// https://tc39.es/ecma262/#sec-tolength
|
|
831
|
+
var toLength$3 = function (argument) {
|
|
832
|
+
var len = toIntegerOrInfinity$2(argument);
|
|
833
|
+
return len > 0 ? min$2(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
var toLength$2 = toLength$3;
|
|
837
|
+
|
|
838
|
+
// `LengthOfArrayLike` abstract operation
|
|
839
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
840
|
+
var lengthOfArrayLike$5 = function (obj) {
|
|
841
|
+
return toLength$2(obj.length);
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
var toIndexedObject$3 = toIndexedObject$5;
|
|
845
|
+
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
846
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$5;
|
|
847
|
+
|
|
848
|
+
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
849
|
+
var createMethod$2 = function (IS_INCLUDES) {
|
|
850
|
+
return function ($this, el, fromIndex) {
|
|
851
|
+
var O = toIndexedObject$3($this);
|
|
852
|
+
var length = lengthOfArrayLike$4(O);
|
|
853
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
854
|
+
var index = toAbsoluteIndex(fromIndex, length);
|
|
855
|
+
var value;
|
|
856
|
+
// Array#includes uses SameValueZero equality algorithm
|
|
857
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
858
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
859
|
+
value = O[index++];
|
|
860
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
861
|
+
if (value !== value) return true;
|
|
862
|
+
// Array#indexOf ignores holes, Array#includes - not
|
|
863
|
+
} else for (;length > index; index++) {
|
|
864
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
865
|
+
} return !IS_INCLUDES && -1;
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
var arrayIncludes = {
|
|
870
|
+
// `Array.prototype.includes` method
|
|
871
|
+
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
872
|
+
includes: createMethod$2(true),
|
|
873
|
+
// `Array.prototype.indexOf` method
|
|
874
|
+
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
875
|
+
indexOf: createMethod$2(false)
|
|
876
|
+
};
|
|
877
|
+
|
|
878
|
+
var uncurryThis$d = functionUncurryThis;
|
|
879
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
880
|
+
var toIndexedObject$2 = toIndexedObject$5;
|
|
881
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
882
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
883
|
+
|
|
884
|
+
var push$1 = uncurryThis$d([].push);
|
|
885
|
+
|
|
886
|
+
var objectKeysInternal = function (object, names) {
|
|
887
|
+
var O = toIndexedObject$2(object);
|
|
888
|
+
var i = 0;
|
|
889
|
+
var result = [];
|
|
890
|
+
var key;
|
|
891
|
+
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$1(result, key);
|
|
892
|
+
// Don't enum bug & hidden keys
|
|
893
|
+
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
894
|
+
~indexOf$1(result, key) || push$1(result, key);
|
|
895
|
+
}
|
|
896
|
+
return result;
|
|
897
|
+
};
|
|
898
|
+
|
|
899
|
+
// IE8- don't enum bug keys
|
|
900
|
+
var enumBugKeys$3 = [
|
|
901
|
+
'constructor',
|
|
902
|
+
'hasOwnProperty',
|
|
903
|
+
'isPrototypeOf',
|
|
904
|
+
'propertyIsEnumerable',
|
|
905
|
+
'toLocaleString',
|
|
906
|
+
'toString',
|
|
907
|
+
'valueOf'
|
|
908
|
+
];
|
|
1131
909
|
|
|
1132
|
-
var internalObjectKeys = objectKeysInternal;
|
|
1133
|
-
var enumBugKeys = enumBugKeys$3;
|
|
910
|
+
var internalObjectKeys$1 = objectKeysInternal;
|
|
911
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
1134
912
|
|
|
1135
|
-
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
913
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
1136
914
|
|
|
1137
915
|
// `Object.getOwnPropertyNames` method
|
|
1138
916
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
1139
917
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
1140
918
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
1141
|
-
return internalObjectKeys(O, hiddenKeys);
|
|
919
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
1142
920
|
};
|
|
1143
921
|
|
|
1144
922
|
var objectGetOwnPropertySymbols = {};
|
|
@@ -1146,17 +924,17 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1146
924
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1147
925
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1148
926
|
|
|
1149
|
-
var getBuiltIn$
|
|
927
|
+
var getBuiltIn$5 = getBuiltIn$7;
|
|
1150
928
|
var uncurryThis$c = functionUncurryThis;
|
|
1151
929
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1152
930
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1153
|
-
var anObject$
|
|
931
|
+
var anObject$a = anObject$c;
|
|
1154
932
|
|
|
1155
933
|
var concat$2 = uncurryThis$c([].concat);
|
|
1156
934
|
|
|
1157
935
|
// all object keys, includes non-enumerable and symbols
|
|
1158
|
-
var ownKeys$1 = getBuiltIn$
|
|
1159
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
936
|
+
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
937
|
+
var keys = getOwnPropertyNamesModule.f(anObject$a(it));
|
|
1160
938
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1161
939
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
1162
940
|
};
|
|
@@ -1164,11 +942,11 @@ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
1164
942
|
var hasOwn$3 = hasOwnProperty_1;
|
|
1165
943
|
var ownKeys = ownKeys$1;
|
|
1166
944
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1167
|
-
var definePropertyModule = objectDefineProperty;
|
|
945
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1168
946
|
|
|
1169
947
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
1170
948
|
var keys = ownKeys(source);
|
|
1171
|
-
var defineProperty = definePropertyModule.f;
|
|
949
|
+
var defineProperty = definePropertyModule$1.f;
|
|
1172
950
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1173
951
|
for (var i = 0; i < keys.length; i++) {
|
|
1174
952
|
var key = keys[i];
|
|
@@ -1256,9 +1034,303 @@ var _export = function (options, source) {
|
|
|
1256
1034
|
}
|
|
1257
1035
|
};
|
|
1258
1036
|
|
|
1259
|
-
var
|
|
1037
|
+
var internalObjectKeys = objectKeysInternal;
|
|
1038
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1039
|
+
|
|
1040
|
+
// `Object.keys` method
|
|
1041
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
1042
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1043
|
+
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1044
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1045
|
+
};
|
|
1046
|
+
|
|
1047
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1048
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1049
|
+
var call$d = functionCall;
|
|
1050
|
+
var fails$b = fails$k;
|
|
1051
|
+
var objectKeys$1 = objectKeys$2;
|
|
1052
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1053
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1054
|
+
var toObject$4 = toObject$6;
|
|
1055
|
+
var IndexedObject$1 = indexedObject;
|
|
1056
|
+
|
|
1057
|
+
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1058
|
+
var $assign = Object.assign;
|
|
1059
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1060
|
+
var defineProperty$4 = Object.defineProperty;
|
|
1061
|
+
var concat$1 = uncurryThis$b([].concat);
|
|
1062
|
+
|
|
1063
|
+
// `Object.assign` method
|
|
1064
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
1065
|
+
var objectAssign = !$assign || fails$b(function () {
|
|
1066
|
+
// should have correct order of operations (Edge bug)
|
|
1067
|
+
if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
|
1068
|
+
enumerable: true,
|
|
1069
|
+
get: function () {
|
|
1070
|
+
defineProperty$4(this, 'b', {
|
|
1071
|
+
value: 3,
|
|
1072
|
+
enumerable: false
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
}), { b: 2 })).b !== 1) return true;
|
|
1076
|
+
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1077
|
+
var A = {};
|
|
1078
|
+
var B = {};
|
|
1079
|
+
// eslint-disable-next-line es/no-symbol -- safe
|
|
1080
|
+
var symbol = Symbol('assign detection');
|
|
1081
|
+
var alphabet = 'abcdefghijklmnopqrst';
|
|
1082
|
+
A[symbol] = 7;
|
|
1083
|
+
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1084
|
+
return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
|
|
1085
|
+
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1086
|
+
var T = toObject$4(target);
|
|
1087
|
+
var argumentsLength = arguments.length;
|
|
1088
|
+
var index = 1;
|
|
1089
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1090
|
+
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1091
|
+
while (argumentsLength > index) {
|
|
1092
|
+
var S = IndexedObject$1(arguments[index++]);
|
|
1093
|
+
var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1094
|
+
var length = keys.length;
|
|
1095
|
+
var j = 0;
|
|
1096
|
+
var key;
|
|
1097
|
+
while (length > j) {
|
|
1098
|
+
key = keys[j++];
|
|
1099
|
+
if (!DESCRIPTORS$4 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1100
|
+
}
|
|
1101
|
+
} return T;
|
|
1102
|
+
} : $assign;
|
|
1103
|
+
|
|
1104
|
+
var $$e = _export;
|
|
1105
|
+
var assign = objectAssign;
|
|
1106
|
+
|
|
1107
|
+
// `Object.assign` method
|
|
1108
|
+
// https://tc39.es/ecma262/#sec-object.assign
|
|
1109
|
+
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1110
|
+
$$e({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1111
|
+
assign: assign
|
|
1112
|
+
});
|
|
1113
|
+
|
|
1114
|
+
/* *
|
|
1115
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1116
|
+
* you may not use this file except in compliance with the License.
|
|
1117
|
+
* You may obtain a copy of the License at
|
|
1118
|
+
*
|
|
1119
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1120
|
+
*
|
|
1121
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1122
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1123
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1124
|
+
* See the License for the specific language governing permissions and
|
|
1125
|
+
* limitations under the License.
|
|
1126
|
+
*
|
|
1127
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1128
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
1129
|
+
* */
|
|
1130
|
+
const feedAdapter = createEntityAdapter();
|
|
1131
|
+
const feedInitialState = feedAdapter.getInitialState();
|
|
1132
|
+
const alertAdapter = createEntityAdapter({
|
|
1133
|
+
// we use identifier as id
|
|
1134
|
+
selectId: capAlert => capAlert.identifier
|
|
1135
|
+
});
|
|
1136
|
+
const alertInitialState = alertAdapter.getInitialState();
|
|
1137
|
+
const initialState = {
|
|
1138
|
+
feeds: feedInitialState,
|
|
1139
|
+
alerts: alertInitialState
|
|
1140
|
+
};
|
|
1141
|
+
const slice = createSlice({
|
|
1142
|
+
initialState,
|
|
1143
|
+
name: 'capReducer',
|
|
1144
|
+
reducers: {
|
|
1145
|
+
addManyAlerts: (draft, action) => {
|
|
1146
|
+
alertAdapter.upsertMany(draft.alerts, action.payload);
|
|
1147
|
+
},
|
|
1148
|
+
addManyAlertsToFeed: (draft, action) => {
|
|
1149
|
+
feedAdapter.upsertOne(draft.feeds, {
|
|
1150
|
+
id: action.payload.feedId,
|
|
1151
|
+
lastUpdated: Date.now(),
|
|
1152
|
+
alertIds: action.payload.alertIds
|
|
1153
|
+
});
|
|
1154
|
+
},
|
|
1155
|
+
setFeedLastUpdatedTimes: (draft, action) => {
|
|
1156
|
+
feedAdapter.updateMany(draft.feeds, action.payload);
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
const {
|
|
1161
|
+
reducer
|
|
1162
|
+
} = slice;
|
|
1163
|
+
const capActions = slice.actions;
|
|
1164
|
+
|
|
1165
|
+
/* *
|
|
1166
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1167
|
+
* you may not use this file except in compliance with the License.
|
|
1168
|
+
* You may obtain a copy of the License at
|
|
1169
|
+
*
|
|
1170
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1171
|
+
*
|
|
1172
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1173
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1174
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1175
|
+
* See the License for the specific language governing permissions and
|
|
1176
|
+
* limitations under the License.
|
|
1177
|
+
*
|
|
1178
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1179
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
1180
|
+
* */
|
|
1181
|
+
const {
|
|
1182
|
+
selectById: getCapFeedById,
|
|
1183
|
+
selectAll: getCapFeeds
|
|
1184
|
+
} = feedAdapter.getSelectors(state => state.capStore.feeds);
|
|
1185
|
+
const {
|
|
1186
|
+
selectById: getAlertById,
|
|
1187
|
+
selectAll: getAlerts,
|
|
1188
|
+
selectIds: getAlertIds
|
|
1189
|
+
} = alertAdapter.getSelectors(state => state.capStore.alerts);
|
|
1190
|
+
const getAlertsInEffect = createSelector(getAlerts, (_state, selectedTime) => selectedTime, (alerts, selectedTime) => {
|
|
1191
|
+
return alerts.filter(alert => dateUtils.isBetween(dateUtils.createDate(selectedTime), dateUtils.createDate(alert.onset), dateUtils.createDate(alert.expires), '[)'));
|
|
1192
|
+
});
|
|
1193
|
+
const getLastUpdatedTimes = createSelector(getCapFeeds, feeds => {
|
|
1194
|
+
return feeds.map(feed => feed.lastUpdated);
|
|
1195
|
+
});
|
|
1196
|
+
|
|
1197
|
+
var objectDefineProperties = {};
|
|
1198
|
+
|
|
1199
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1200
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1201
|
+
var definePropertyModule = objectDefineProperty;
|
|
1202
|
+
var anObject$9 = anObject$c;
|
|
1203
|
+
var toIndexedObject$1 = toIndexedObject$5;
|
|
1204
|
+
var objectKeys = objectKeys$2;
|
|
1205
|
+
|
|
1206
|
+
// `Object.defineProperties` method
|
|
1207
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1208
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1209
|
+
objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1210
|
+
anObject$9(O);
|
|
1211
|
+
var props = toIndexedObject$1(Properties);
|
|
1212
|
+
var keys = objectKeys(Properties);
|
|
1213
|
+
var length = keys.length;
|
|
1214
|
+
var index = 0;
|
|
1215
|
+
var key;
|
|
1216
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1217
|
+
return O;
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
var getBuiltIn$4 = getBuiltIn$7;
|
|
1221
|
+
|
|
1222
|
+
var html$2 = getBuiltIn$4('document', 'documentElement');
|
|
1223
|
+
|
|
1224
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
1225
|
+
var anObject$8 = anObject$c;
|
|
1226
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1227
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1228
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1229
|
+
var html$1 = html$2;
|
|
1230
|
+
var documentCreateElement$1 = documentCreateElement$2;
|
|
1231
|
+
var sharedKey$1 = sharedKey$3;
|
|
1232
|
+
|
|
1233
|
+
var GT = '>';
|
|
1234
|
+
var LT = '<';
|
|
1235
|
+
var PROTOTYPE = 'prototype';
|
|
1236
|
+
var SCRIPT = 'script';
|
|
1237
|
+
var IE_PROTO$1 = sharedKey$1('IE_PROTO');
|
|
1238
|
+
|
|
1239
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
1240
|
+
|
|
1241
|
+
var scriptTag = function (content) {
|
|
1242
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1245
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1246
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1247
|
+
activeXDocument.write(scriptTag(''));
|
|
1248
|
+
activeXDocument.close();
|
|
1249
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
1250
|
+
activeXDocument = null; // avoid memory leak
|
|
1251
|
+
return temp;
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1254
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1255
|
+
var NullProtoObjectViaIFrame = function () {
|
|
1256
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
1257
|
+
var iframe = documentCreateElement$1('iframe');
|
|
1258
|
+
var JS = 'java' + SCRIPT + ':';
|
|
1259
|
+
var iframeDocument;
|
|
1260
|
+
iframe.style.display = 'none';
|
|
1261
|
+
html$1.appendChild(iframe);
|
|
1262
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
1263
|
+
iframe.src = String(JS);
|
|
1264
|
+
iframeDocument = iframe.contentWindow.document;
|
|
1265
|
+
iframeDocument.open();
|
|
1266
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1267
|
+
iframeDocument.close();
|
|
1268
|
+
return iframeDocument.F;
|
|
1269
|
+
};
|
|
1270
|
+
|
|
1271
|
+
// Check for document.domain and active x support
|
|
1272
|
+
// No need to use active x approach when document.domain is not set
|
|
1273
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1274
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1275
|
+
// avoid IE GC bug
|
|
1276
|
+
var activeXDocument;
|
|
1277
|
+
var NullProtoObject = function () {
|
|
1278
|
+
try {
|
|
1279
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1280
|
+
} catch (error) { /* ignore */ }
|
|
1281
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1282
|
+
? document.domain && activeXDocument
|
|
1283
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1284
|
+
: NullProtoObjectViaIFrame()
|
|
1285
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1286
|
+
var length = enumBugKeys.length;
|
|
1287
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1288
|
+
return NullProtoObject();
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
hiddenKeys[IE_PROTO$1] = true;
|
|
1292
|
+
|
|
1293
|
+
// `Object.create` method
|
|
1294
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1295
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1296
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
1297
|
+
var result;
|
|
1298
|
+
if (O !== null) {
|
|
1299
|
+
EmptyConstructor[PROTOTYPE] = anObject$8(O);
|
|
1300
|
+
result = new EmptyConstructor();
|
|
1301
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
1302
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1303
|
+
result[IE_PROTO$1] = O;
|
|
1304
|
+
} else result = NullProtoObject();
|
|
1305
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1306
|
+
};
|
|
1307
|
+
|
|
1308
|
+
var wellKnownSymbol$h = wellKnownSymbol$j;
|
|
1309
|
+
var create$2 = objectCreate;
|
|
1310
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1311
|
+
|
|
1312
|
+
var UNSCOPABLES = wellKnownSymbol$h('unscopables');
|
|
1313
|
+
var ArrayPrototype$1 = Array.prototype;
|
|
1314
|
+
|
|
1315
|
+
// Array.prototype[@@unscopables]
|
|
1316
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1317
|
+
if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
1318
|
+
defineProperty$3(ArrayPrototype$1, UNSCOPABLES, {
|
|
1319
|
+
configurable: true,
|
|
1320
|
+
value: create$2(null)
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
// add a key to Array.prototype[@@unscopables]
|
|
1325
|
+
var addToUnscopables$3 = function (key) {
|
|
1326
|
+
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
var iterators = {};
|
|
1330
|
+
|
|
1331
|
+
var fails$a = fails$k;
|
|
1260
1332
|
|
|
1261
|
-
var correctPrototypeGetter = !fails$
|
|
1333
|
+
var correctPrototypeGetter = !fails$a(function () {
|
|
1262
1334
|
function F() { /* empty */ }
|
|
1263
1335
|
F.prototype.constructor = null;
|
|
1264
1336
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1267,7 +1339,7 @@ var correctPrototypeGetter = !fails$b(function () {
|
|
|
1267
1339
|
|
|
1268
1340
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1269
1341
|
var isCallable$a = isCallable$l;
|
|
1270
|
-
var toObject$
|
|
1342
|
+
var toObject$3 = toObject$6;
|
|
1271
1343
|
var sharedKey = sharedKey$3;
|
|
1272
1344
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1273
1345
|
|
|
@@ -1279,7 +1351,7 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1279
1351
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1280
1352
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1281
1353
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1282
|
-
var object = toObject$
|
|
1354
|
+
var object = toObject$3(O);
|
|
1283
1355
|
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
1284
1356
|
var constructor = object.constructor;
|
|
1285
1357
|
if (isCallable$a(constructor) && object instanceof constructor) {
|
|
@@ -1287,7 +1359,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1287
1359
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1288
1360
|
};
|
|
1289
1361
|
|
|
1290
|
-
var fails$
|
|
1362
|
+
var fails$9 = fails$k;
|
|
1291
1363
|
var isCallable$9 = isCallable$l;
|
|
1292
1364
|
var isObject$6 = isObject$c;
|
|
1293
1365
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -1312,7 +1384,7 @@ if ([].keys) {
|
|
|
1312
1384
|
}
|
|
1313
1385
|
}
|
|
1314
1386
|
|
|
1315
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$
|
|
1387
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$9(function () {
|
|
1316
1388
|
var test = {};
|
|
1317
1389
|
// FF44- legacy iterators case
|
|
1318
1390
|
return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
|
|
@@ -1333,7 +1405,7 @@ var iteratorsCore = {
|
|
|
1333
1405
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1334
1406
|
};
|
|
1335
1407
|
|
|
1336
|
-
var defineProperty$
|
|
1408
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
1337
1409
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1338
1410
|
var wellKnownSymbol$f = wellKnownSymbol$j;
|
|
1339
1411
|
|
|
@@ -1342,7 +1414,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol$f('toStringTag');
|
|
|
1342
1414
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1343
1415
|
if (target && !STATIC) target = target.prototype;
|
|
1344
1416
|
if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
|
|
1345
|
-
defineProperty$
|
|
1417
|
+
defineProperty$2(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1346
1418
|
}
|
|
1347
1419
|
};
|
|
1348
1420
|
|
|
@@ -1362,13 +1434,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1362
1434
|
return IteratorConstructor;
|
|
1363
1435
|
};
|
|
1364
1436
|
|
|
1365
|
-
var uncurryThis$
|
|
1437
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1366
1438
|
var aCallable$9 = aCallable$b;
|
|
1367
1439
|
|
|
1368
1440
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1369
1441
|
try {
|
|
1370
1442
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1371
|
-
return uncurryThis$
|
|
1443
|
+
return uncurryThis$a(aCallable$9(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1372
1444
|
} catch (error) { /* empty */ }
|
|
1373
1445
|
};
|
|
1374
1446
|
|
|
@@ -1417,8 +1489,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1417
1489
|
};
|
|
1418
1490
|
}() : undefined);
|
|
1419
1491
|
|
|
1420
|
-
var $$
|
|
1421
|
-
var call$
|
|
1492
|
+
var $$d = _export;
|
|
1493
|
+
var call$c = functionCall;
|
|
1422
1494
|
var FunctionName = functionName;
|
|
1423
1495
|
var isCallable$8 = isCallable$l;
|
|
1424
1496
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1490,7 +1562,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1490
1562
|
createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
|
|
1491
1563
|
} else {
|
|
1492
1564
|
INCORRECT_VALUES_NAME = true;
|
|
1493
|
-
defaultIterator = function values() { return call$
|
|
1565
|
+
defaultIterator = function values() { return call$c(nativeIterator, this); };
|
|
1494
1566
|
}
|
|
1495
1567
|
}
|
|
1496
1568
|
|
|
@@ -1505,7 +1577,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1505
1577
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1506
1578
|
defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
|
|
1507
1579
|
}
|
|
1508
|
-
} else $$
|
|
1580
|
+
} else $$d({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1509
1581
|
}
|
|
1510
1582
|
|
|
1511
1583
|
// define iterator
|
|
@@ -1527,10 +1599,10 @@ var toIndexedObject = toIndexedObject$5;
|
|
|
1527
1599
|
var addToUnscopables$2 = addToUnscopables$3;
|
|
1528
1600
|
var Iterators$2 = iterators;
|
|
1529
1601
|
var InternalStateModule$1 = internalState;
|
|
1530
|
-
var defineProperty$
|
|
1602
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1531
1603
|
var defineIterator = iteratorDefine;
|
|
1532
1604
|
var createIterResultObject = createIterResultObject$1;
|
|
1533
|
-
var DESCRIPTORS$
|
|
1605
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1534
1606
|
|
|
1535
1607
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1536
1608
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
@@ -1580,8 +1652,8 @@ addToUnscopables$2('values');
|
|
|
1580
1652
|
addToUnscopables$2('entries');
|
|
1581
1653
|
|
|
1582
1654
|
// V8 ~ Chrome 45- bug
|
|
1583
|
-
if (DESCRIPTORS$
|
|
1584
|
-
defineProperty$
|
|
1655
|
+
if (DESCRIPTORS$2 && values.name !== 'values') try {
|
|
1656
|
+
defineProperty$1(values, 'name', { value: 'values' });
|
|
1585
1657
|
} catch (error) { /* empty */ }
|
|
1586
1658
|
|
|
1587
1659
|
// iterable DOM collections
|
|
@@ -1666,13 +1738,13 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1666
1738
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1667
1739
|
|
|
1668
1740
|
var classofRaw$1 = classofRaw$2;
|
|
1669
|
-
var uncurryThis$
|
|
1741
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1670
1742
|
|
|
1671
1743
|
var functionUncurryThisClause = function (fn) {
|
|
1672
1744
|
// Nashorn bug:
|
|
1673
1745
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1674
1746
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1675
|
-
if (classofRaw$1(fn) === 'Function') return uncurryThis$
|
|
1747
|
+
if (classofRaw$1(fn) === 'Function') return uncurryThis$9(fn);
|
|
1676
1748
|
};
|
|
1677
1749
|
|
|
1678
1750
|
var wellKnownSymbol$c = wellKnownSymbol$j;
|
|
@@ -1762,8 +1834,8 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
1762
1834
|
} return false;
|
|
1763
1835
|
};
|
|
1764
1836
|
|
|
1765
|
-
var $$
|
|
1766
|
-
var uncurryThis$
|
|
1837
|
+
var $$c = _export;
|
|
1838
|
+
var uncurryThis$8 = functionUncurryThisClause;
|
|
1767
1839
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1768
1840
|
var toLength$1 = toLength$3;
|
|
1769
1841
|
var toString$4 = toString$5;
|
|
@@ -1771,7 +1843,7 @@ var notARegExp$1 = notARegexp;
|
|
|
1771
1843
|
var requireObjectCoercible$3 = requireObjectCoercible$7;
|
|
1772
1844
|
var correctIsRegExpLogic$1 = correctIsRegexpLogic;
|
|
1773
1845
|
|
|
1774
|
-
var stringSlice$4 = uncurryThis$
|
|
1846
|
+
var stringSlice$4 = uncurryThis$8(''.slice);
|
|
1775
1847
|
var min$1 = Math.min;
|
|
1776
1848
|
|
|
1777
1849
|
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic$1('startsWith');
|
|
@@ -1783,7 +1855,7 @@ var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
|
|
|
1783
1855
|
|
|
1784
1856
|
// `String.prototype.startsWith` method
|
|
1785
1857
|
// https://tc39.es/ecma262/#sec-string.prototype.startswith
|
|
1786
|
-
$$
|
|
1858
|
+
$$c({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
|
|
1787
1859
|
startsWith: function startsWith(searchString /* , position = 0 */) {
|
|
1788
1860
|
var that = toString$4(requireObjectCoercible$3(this));
|
|
1789
1861
|
notARegExp$1(searchString);
|
|
@@ -1846,22 +1918,6 @@ const findEventIndexInLanguage = (languages, capWarningPresets, feedAddressFromP
|
|
|
1846
1918
|
const CAP_NAMESPACE = 'cap';
|
|
1847
1919
|
const useCapTranslation = () => useTranslation(CAP_NAMESPACE);
|
|
1848
1920
|
|
|
1849
|
-
/* *
|
|
1850
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1851
|
-
* you may not use this file except in compliance with the License.
|
|
1852
|
-
* You may obtain a copy of the License at
|
|
1853
|
-
*
|
|
1854
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1855
|
-
*
|
|
1856
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1857
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1858
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1859
|
-
* See the License for the specific language governing permissions and
|
|
1860
|
-
* limitations under the License.
|
|
1861
|
-
*
|
|
1862
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1863
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
1864
|
-
* */
|
|
1865
1921
|
const severityStyles = {
|
|
1866
1922
|
Extreme: {
|
|
1867
1923
|
border: 'solid 5px rgb(255, 9, 9)',
|
|
@@ -1888,7 +1944,7 @@ const WarningListRowCap = ({
|
|
|
1888
1944
|
const {
|
|
1889
1945
|
t
|
|
1890
1946
|
} = useCapTranslation();
|
|
1891
|
-
return
|
|
1947
|
+
return jsxs(Grid, Object.assign({
|
|
1892
1948
|
container: true,
|
|
1893
1949
|
sx: {
|
|
1894
1950
|
border: severityStyles[severity].border,
|
|
@@ -1898,40 +1954,60 @@ const WarningListRowCap = ({
|
|
|
1898
1954
|
marginBottom: '20px',
|
|
1899
1955
|
width: '100%'
|
|
1900
1956
|
}
|
|
1901
|
-
},
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1957
|
+
}, {
|
|
1958
|
+
children: [jsxs(Grid, Object.assign({
|
|
1959
|
+
item: true,
|
|
1960
|
+
xs: 4
|
|
1961
|
+
}, {
|
|
1962
|
+
children: [jsx(Typography, Object.assign({
|
|
1963
|
+
variant: "overline"
|
|
1964
|
+
}, {
|
|
1965
|
+
children: t('warning-list-row-event')
|
|
1966
|
+
})), jsx(Typography, Object.assign({
|
|
1967
|
+
variant: "subtitle2",
|
|
1968
|
+
sx: {
|
|
1969
|
+
fontWeight: 'normal'
|
|
1970
|
+
},
|
|
1971
|
+
"data-testid": "event"
|
|
1972
|
+
}, {
|
|
1973
|
+
children: event ? `${event}` : ''
|
|
1974
|
+
}))]
|
|
1975
|
+
})), jsxs(Grid, Object.assign({
|
|
1976
|
+
item: true,
|
|
1977
|
+
xs: 4
|
|
1978
|
+
}, {
|
|
1979
|
+
children: [jsx(Typography, Object.assign({
|
|
1980
|
+
variant: "overline"
|
|
1981
|
+
}, {
|
|
1982
|
+
children: t('warning-list-row-severity')
|
|
1983
|
+
})), jsx(Typography, Object.assign({
|
|
1984
|
+
variant: "subtitle2",
|
|
1985
|
+
sx: {
|
|
1986
|
+
fontWeight: 'normal'
|
|
1987
|
+
},
|
|
1988
|
+
"data-testid": "severity"
|
|
1989
|
+
}, {
|
|
1990
|
+
children: severity ? `${severity}` : ''
|
|
1991
|
+
}))]
|
|
1992
|
+
})), jsxs(Grid, Object.assign({
|
|
1993
|
+
item: true,
|
|
1994
|
+
xs: 4
|
|
1995
|
+
}, {
|
|
1996
|
+
children: [jsx(Typography, Object.assign({
|
|
1997
|
+
variant: "overline"
|
|
1998
|
+
}, {
|
|
1999
|
+
children: t('warning-list-row-expires')
|
|
2000
|
+
})), jsx(Typography, Object.assign({
|
|
2001
|
+
variant: "subtitle2",
|
|
2002
|
+
sx: {
|
|
2003
|
+
fontWeight: 'normal'
|
|
2004
|
+
},
|
|
2005
|
+
"data-testid": "expires"
|
|
2006
|
+
}, {
|
|
2007
|
+
children: expires ? dateUtils.dateToString(dateUtils.createDate(expires), "dd MMM yyyy, HH:mm 'UTC'") : t('warning-list-row-not-expired')
|
|
2008
|
+
}))]
|
|
2009
|
+
}))]
|
|
2010
|
+
}));
|
|
1935
2011
|
};
|
|
1936
2012
|
|
|
1937
2013
|
const WarningListRowCapConnect = ({
|
|
@@ -1946,29 +2022,15 @@ const WarningListRowCapConnect = ({
|
|
|
1946
2022
|
setLanguageIndex(foundLanguageIndex);
|
|
1947
2023
|
}
|
|
1948
2024
|
}, [alert, capWarningPresets]);
|
|
1949
|
-
return
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
2025
|
+
return jsx("div", {
|
|
2026
|
+
children: alert && jsx(WarningListRowCap, {
|
|
2027
|
+
event: alert.languages[languageIndex].event,
|
|
2028
|
+
severity: alert.severity,
|
|
2029
|
+
expires: alert.expires
|
|
2030
|
+
})
|
|
2031
|
+
});
|
|
1954
2032
|
};
|
|
1955
2033
|
|
|
1956
|
-
/* *
|
|
1957
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1958
|
-
* you may not use this file except in compliance with the License.
|
|
1959
|
-
* You may obtain a copy of the License at
|
|
1960
|
-
*
|
|
1961
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1962
|
-
*
|
|
1963
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1964
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1965
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1966
|
-
* See the License for the specific language governing permissions and
|
|
1967
|
-
* limitations under the License.
|
|
1968
|
-
*
|
|
1969
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1970
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
1971
|
-
* */
|
|
1972
2034
|
const WarningListCap = ({
|
|
1973
2035
|
capWarningPresets,
|
|
1974
2036
|
alertIds
|
|
@@ -1976,91 +2038,66 @@ const WarningListCap = ({
|
|
|
1976
2038
|
const {
|
|
1977
2039
|
t
|
|
1978
2040
|
} = useCapTranslation();
|
|
1979
|
-
return
|
|
2041
|
+
return jsx(Box, Object.assign({
|
|
1980
2042
|
sx: {
|
|
1981
2043
|
width: '100%',
|
|
1982
2044
|
height: '100%',
|
|
1983
2045
|
display: 'flex'
|
|
1984
2046
|
}
|
|
1985
|
-
},
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2047
|
+
}, {
|
|
2048
|
+
children: jsxs(Card, Object.assign({
|
|
2049
|
+
sx: {
|
|
2050
|
+
justifyContent: 'center',
|
|
2051
|
+
alignItems: 'center',
|
|
2052
|
+
overflow: 'auto',
|
|
2053
|
+
height: '95%',
|
|
2054
|
+
width: '100%',
|
|
2055
|
+
padding: '10px',
|
|
2056
|
+
margin: '20px',
|
|
2057
|
+
marginBottom: '10px',
|
|
2058
|
+
position: 'relative'
|
|
2059
|
+
},
|
|
2060
|
+
"data-testid": "warningList"
|
|
2061
|
+
}, {
|
|
2062
|
+
children: [alertIds.length > 0 && jsx(Box, Object.assign({
|
|
2063
|
+
sx: {
|
|
2064
|
+
position: 'sticky',
|
|
2065
|
+
top: 0,
|
|
2066
|
+
width: '100%',
|
|
2067
|
+
display: 'flex',
|
|
2068
|
+
justifyContent: 'center'
|
|
2069
|
+
}
|
|
2070
|
+
}, {
|
|
2071
|
+
children: jsx(AlertBanner, {
|
|
2072
|
+
title: t('warning-list-cap-alert-banner-title')
|
|
2073
|
+
})
|
|
2074
|
+
})), alertIds.length === 0 ? jsx(Box, Object.assign({
|
|
2075
|
+
sx: {
|
|
2076
|
+
position: 'absolute',
|
|
2077
|
+
left: '50%',
|
|
2078
|
+
top: '20%',
|
|
2079
|
+
zIndex: '100'
|
|
2080
|
+
}
|
|
2081
|
+
}, {
|
|
2082
|
+
children: jsx(CircularProgress, {})
|
|
2083
|
+
})) : null, alertIds.map(id => jsx(WarningListRowCapConnect, {
|
|
2084
|
+
alertId: id,
|
|
2085
|
+
capWarningPresets: capWarningPresets
|
|
2086
|
+
}, id))]
|
|
2087
|
+
}))
|
|
2088
|
+
}));
|
|
2020
2089
|
};
|
|
2021
2090
|
|
|
2022
|
-
/* *
|
|
2023
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2024
|
-
* you may not use this file except in compliance with the License.
|
|
2025
|
-
* You may obtain a copy of the License at
|
|
2026
|
-
*
|
|
2027
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2028
|
-
*
|
|
2029
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2030
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2031
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2032
|
-
* See the License for the specific language governing permissions and
|
|
2033
|
-
* limitations under the License.
|
|
2034
|
-
*
|
|
2035
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2036
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
2037
|
-
* */
|
|
2038
2091
|
const WarningListCapConnect = ({
|
|
2039
2092
|
capWarningPresets
|
|
2040
2093
|
}) => {
|
|
2041
2094
|
const alertIDs = useSelector(store => getAlertIds(store));
|
|
2042
|
-
return
|
|
2095
|
+
return jsx(WarningListCap, {
|
|
2043
2096
|
capWarningPresets: capWarningPresets,
|
|
2044
2097
|
alertIds: alertIDs
|
|
2045
2098
|
});
|
|
2046
2099
|
};
|
|
2047
2100
|
|
|
2048
|
-
/* *
|
|
2049
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2050
|
-
* you may not use this file except in compliance with the License.
|
|
2051
|
-
* You may obtain a copy of the License at
|
|
2052
|
-
*
|
|
2053
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2054
|
-
*
|
|
2055
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2056
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2057
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2058
|
-
* See the License for the specific language governing permissions and
|
|
2059
|
-
* limitations under the License.
|
|
2060
|
-
*
|
|
2061
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2062
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
2063
|
-
* */
|
|
2064
2101
|
const WarningListCapConnectWrapper = ({
|
|
2065
2102
|
productConfigKey
|
|
2066
2103
|
}) => {
|
|
@@ -2076,23 +2113,25 @@ const WarningListCapConnectWrapper = ({
|
|
|
2076
2113
|
error
|
|
2077
2114
|
} = useApi(api.getCapConfiguration, productConfigKey);
|
|
2078
2115
|
if (isConfigLoading) {
|
|
2079
|
-
return
|
|
2116
|
+
return jsx(Box$1, Object.assign({
|
|
2080
2117
|
sx: {
|
|
2081
2118
|
display: 'flex',
|
|
2082
2119
|
justifyContent: 'center',
|
|
2083
2120
|
alignItems: 'center'
|
|
2084
2121
|
}
|
|
2085
|
-
},
|
|
2086
|
-
|
|
2122
|
+
}, {
|
|
2123
|
+
children: jsx(CircularProgress, {
|
|
2124
|
+
"data-testid": "loadingSpinner"
|
|
2125
|
+
})
|
|
2087
2126
|
}));
|
|
2088
2127
|
}
|
|
2089
2128
|
if (error) {
|
|
2090
|
-
return
|
|
2129
|
+
return jsx(AlertBanner, {
|
|
2091
2130
|
title: t('warning-list-cap-error-title'),
|
|
2092
2131
|
info: error.message
|
|
2093
2132
|
});
|
|
2094
2133
|
}
|
|
2095
|
-
return
|
|
2134
|
+
return jsx(WarningListCapConnect, {
|
|
2096
2135
|
capWarningPresets: productConfig
|
|
2097
2136
|
});
|
|
2098
2137
|
};
|
|
@@ -2153,11 +2192,11 @@ var doesNotExceedSafeInteger$1 = function (it) {
|
|
|
2153
2192
|
return it;
|
|
2154
2193
|
};
|
|
2155
2194
|
|
|
2156
|
-
var uncurryThis$
|
|
2195
|
+
var uncurryThis$7 = functionUncurryThisClause;
|
|
2157
2196
|
var aCallable$8 = aCallable$b;
|
|
2158
2197
|
var NATIVE_BIND$1 = functionBindNative;
|
|
2159
2198
|
|
|
2160
|
-
var bind$5 = uncurryThis$
|
|
2199
|
+
var bind$5 = uncurryThis$7(uncurryThis$7.bind);
|
|
2161
2200
|
|
|
2162
2201
|
// optional / simple context binding
|
|
2163
2202
|
var functionBindContext = function (fn, that) {
|
|
@@ -2201,8 +2240,8 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
|
|
|
2201
2240
|
|
|
2202
2241
|
var flattenIntoArray_1 = flattenIntoArray$1;
|
|
2203
2242
|
|
|
2204
|
-
var uncurryThis$
|
|
2205
|
-
var fails$
|
|
2243
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
2244
|
+
var fails$8 = fails$k;
|
|
2206
2245
|
var isCallable$6 = isCallable$l;
|
|
2207
2246
|
var classof$3 = classof$7;
|
|
2208
2247
|
var getBuiltIn$3 = getBuiltIn$7;
|
|
@@ -2211,7 +2250,7 @@ var inspectSource$1 = inspectSource$3;
|
|
|
2211
2250
|
var noop = function () { /* empty */ };
|
|
2212
2251
|
var construct = getBuiltIn$3('Reflect', 'construct');
|
|
2213
2252
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
2214
|
-
var exec$1 = uncurryThis$
|
|
2253
|
+
var exec$1 = uncurryThis$6(constructorRegExp.exec);
|
|
2215
2254
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
2216
2255
|
|
|
2217
2256
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -2245,7 +2284,7 @@ isConstructorLegacy.sham = true;
|
|
|
2245
2284
|
|
|
2246
2285
|
// `IsConstructor` abstract operation
|
|
2247
2286
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
2248
|
-
var isConstructor$2 = !construct || fails$
|
|
2287
|
+
var isConstructor$2 = !construct || fails$8(function () {
|
|
2249
2288
|
var called;
|
|
2250
2289
|
return isConstructorModern(isConstructorModern.call)
|
|
2251
2290
|
|| !isConstructorModern(Object)
|
|
@@ -2284,18 +2323,18 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
|
2284
2323
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
2285
2324
|
};
|
|
2286
2325
|
|
|
2287
|
-
var $$
|
|
2326
|
+
var $$b = _export;
|
|
2288
2327
|
var flattenIntoArray = flattenIntoArray_1;
|
|
2289
2328
|
var aCallable$7 = aCallable$b;
|
|
2290
|
-
var toObject$
|
|
2329
|
+
var toObject$2 = toObject$6;
|
|
2291
2330
|
var lengthOfArrayLike$2 = lengthOfArrayLike$5;
|
|
2292
2331
|
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
2293
2332
|
|
|
2294
2333
|
// `Array.prototype.flatMap` method
|
|
2295
2334
|
// https://tc39.es/ecma262/#sec-array.prototype.flatmap
|
|
2296
|
-
$$
|
|
2335
|
+
$$b({ target: 'Array', proto: true }, {
|
|
2297
2336
|
flatMap: function flatMap(callbackfn /* , thisArg */) {
|
|
2298
|
-
var O = toObject$
|
|
2337
|
+
var O = toObject$2(this);
|
|
2299
2338
|
var sourceLen = lengthOfArrayLike$2(O);
|
|
2300
2339
|
var A;
|
|
2301
2340
|
aCallable$7(callbackfn);
|
|
@@ -2305,20 +2344,20 @@ $$c({ target: 'Array', proto: true }, {
|
|
|
2305
2344
|
}
|
|
2306
2345
|
});
|
|
2307
2346
|
|
|
2308
|
-
var $$
|
|
2347
|
+
var $$a = _export;
|
|
2309
2348
|
var $includes = arrayIncludes.includes;
|
|
2310
|
-
var fails$
|
|
2349
|
+
var fails$7 = fails$k;
|
|
2311
2350
|
var addToUnscopables$1 = addToUnscopables$3;
|
|
2312
2351
|
|
|
2313
2352
|
// FF99+ bug
|
|
2314
|
-
var BROKEN_ON_SPARSE = fails$
|
|
2353
|
+
var BROKEN_ON_SPARSE = fails$7(function () {
|
|
2315
2354
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
2316
2355
|
return !Array(1).includes();
|
|
2317
2356
|
});
|
|
2318
2357
|
|
|
2319
2358
|
// `Array.prototype.includes` method
|
|
2320
2359
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
2321
|
-
$$
|
|
2360
|
+
$$a({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
2322
2361
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
2323
2362
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
2324
2363
|
}
|
|
@@ -2328,8 +2367,8 @@ $$b({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
|
2328
2367
|
addToUnscopables$1('includes');
|
|
2329
2368
|
|
|
2330
2369
|
var aCallable$6 = aCallable$b;
|
|
2331
|
-
var toObject$
|
|
2332
|
-
var IndexedObject
|
|
2370
|
+
var toObject$1 = toObject$6;
|
|
2371
|
+
var IndexedObject = indexedObject;
|
|
2333
2372
|
var lengthOfArrayLike$1 = lengthOfArrayLike$5;
|
|
2334
2373
|
|
|
2335
2374
|
var $TypeError$7 = TypeError;
|
|
@@ -2339,8 +2378,8 @@ var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
|
|
|
2339
2378
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
2340
2379
|
var createMethod$1 = function (IS_RIGHT) {
|
|
2341
2380
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
2342
|
-
var O = toObject$
|
|
2343
|
-
var self = IndexedObject
|
|
2381
|
+
var O = toObject$1(that);
|
|
2382
|
+
var self = IndexedObject(O);
|
|
2344
2383
|
var length = lengthOfArrayLike$1(O);
|
|
2345
2384
|
aCallable$6(callbackfn);
|
|
2346
2385
|
if (length === 0 && argumentsLength < 2) throw new $TypeError$7(REDUCE_EMPTY);
|
|
@@ -2373,11 +2412,11 @@ var arrayReduce = {
|
|
|
2373
2412
|
right: createMethod$1(true)
|
|
2374
2413
|
};
|
|
2375
2414
|
|
|
2376
|
-
var fails$
|
|
2415
|
+
var fails$6 = fails$k;
|
|
2377
2416
|
|
|
2378
2417
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
2379
2418
|
var method = [][METHOD_NAME];
|
|
2380
|
-
return !!method && fails$
|
|
2419
|
+
return !!method && fails$6(function () {
|
|
2381
2420
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
2382
2421
|
method.call(null, argument || function () { return 1; }, 1);
|
|
2383
2422
|
});
|
|
@@ -2388,7 +2427,7 @@ var classof$2 = classofRaw$2;
|
|
|
2388
2427
|
|
|
2389
2428
|
var engineIsNode = classof$2(global$a.process) === 'process';
|
|
2390
2429
|
|
|
2391
|
-
var $$
|
|
2430
|
+
var $$9 = _export;
|
|
2392
2431
|
var $reduce = arrayReduce.left;
|
|
2393
2432
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
2394
2433
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -2401,7 +2440,7 @@ var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
|
2401
2440
|
|
|
2402
2441
|
// `Array.prototype.reduce` method
|
|
2403
2442
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
2404
|
-
$$
|
|
2443
|
+
$$9({ target: 'Array', proto: true, forced: FORCED }, {
|
|
2405
2444
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
2406
2445
|
var length = arguments.length;
|
|
2407
2446
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -2415,74 +2454,7 @@ var addToUnscopables = addToUnscopables$3;
|
|
|
2415
2454
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
2416
2455
|
addToUnscopables('flatMap');
|
|
2417
2456
|
|
|
2418
|
-
var
|
|
2419
|
-
var uncurryThis$6 = functionUncurryThis;
|
|
2420
|
-
var call$c = functionCall;
|
|
2421
|
-
var fails$6 = fails$k;
|
|
2422
|
-
var objectKeys = objectKeys$2;
|
|
2423
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2424
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
2425
|
-
var toObject$1 = toObject$6;
|
|
2426
|
-
var IndexedObject = indexedObject;
|
|
2427
|
-
|
|
2428
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
|
2429
|
-
var $assign = Object.assign;
|
|
2430
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
2431
|
-
var defineProperty$1 = Object.defineProperty;
|
|
2432
|
-
var concat$1 = uncurryThis$6([].concat);
|
|
2433
|
-
|
|
2434
|
-
// `Object.assign` method
|
|
2435
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
2436
|
-
var objectAssign = !$assign || fails$6(function () {
|
|
2437
|
-
// should have correct order of operations (Edge bug)
|
|
2438
|
-
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
|
|
2439
|
-
enumerable: true,
|
|
2440
|
-
get: function () {
|
|
2441
|
-
defineProperty$1(this, 'b', {
|
|
2442
|
-
value: 3,
|
|
2443
|
-
enumerable: false
|
|
2444
|
-
});
|
|
2445
|
-
}
|
|
2446
|
-
}), { b: 2 })).b !== 1) return true;
|
|
2447
|
-
// should work with symbols and should have deterministic property order (V8 bug)
|
|
2448
|
-
var A = {};
|
|
2449
|
-
var B = {};
|
|
2450
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
|
2451
|
-
var symbol = Symbol('assign detection');
|
|
2452
|
-
var alphabet = 'abcdefghijklmnopqrst';
|
|
2453
|
-
A[symbol] = 7;
|
|
2454
|
-
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
2455
|
-
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
2456
|
-
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
2457
|
-
var T = toObject$1(target);
|
|
2458
|
-
var argumentsLength = arguments.length;
|
|
2459
|
-
var index = 1;
|
|
2460
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
2461
|
-
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
2462
|
-
while (argumentsLength > index) {
|
|
2463
|
-
var S = IndexedObject(arguments[index++]);
|
|
2464
|
-
var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
2465
|
-
var length = keys.length;
|
|
2466
|
-
var j = 0;
|
|
2467
|
-
var key;
|
|
2468
|
-
while (length > j) {
|
|
2469
|
-
key = keys[j++];
|
|
2470
|
-
if (!DESCRIPTORS$2 || call$c(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
2471
|
-
}
|
|
2472
|
-
} return T;
|
|
2473
|
-
} : $assign;
|
|
2474
|
-
|
|
2475
|
-
var $$9 = _export;
|
|
2476
|
-
var assign = objectAssign;
|
|
2477
|
-
|
|
2478
|
-
// `Object.assign` method
|
|
2479
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
2480
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
2481
|
-
$$9({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
2482
|
-
assign: assign
|
|
2483
|
-
});
|
|
2484
|
-
|
|
2485
|
-
var makeBuiltIn = makeBuiltIn$3.exports;
|
|
2457
|
+
var makeBuiltIn = makeBuiltInExports;
|
|
2486
2458
|
var defineProperty = objectDefineProperty;
|
|
2487
2459
|
|
|
2488
2460
|
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
@@ -3590,6 +3562,8 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
3590
3562
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3591
3563
|
PERFORMANCE OF THIS SOFTWARE.
|
|
3592
3564
|
***************************************************************************** */
|
|
3565
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
3566
|
+
|
|
3593
3567
|
|
|
3594
3568
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
3595
3569
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -4380,49 +4354,37 @@ const MapViewCapConnect = ({
|
|
|
4380
4354
|
type: 'FeatureCollection',
|
|
4381
4355
|
features: featuresInEffect
|
|
4382
4356
|
};
|
|
4383
|
-
return
|
|
4357
|
+
return jsx("div", Object.assign({
|
|
4384
4358
|
"data-testid": "mapViewCap",
|
|
4385
4359
|
style: {
|
|
4386
4360
|
height: '100%',
|
|
4387
4361
|
width: '100%'
|
|
4388
4362
|
},
|
|
4389
4363
|
ref: parentSizeRef
|
|
4390
|
-
},
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4364
|
+
}, {
|
|
4365
|
+
children: jsxs(ConfigurableMapConnect, Object.assign({
|
|
4366
|
+
id: mapIdRef.current,
|
|
4367
|
+
title: title,
|
|
4368
|
+
layers: layers || [],
|
|
4369
|
+
"data-testid": "capWarningMap",
|
|
4370
|
+
bbox: bbox,
|
|
4371
|
+
srs: srs
|
|
4372
|
+
}, {
|
|
4373
|
+
children: [jsx(MapViewLayer, {
|
|
4374
|
+
id: layerIdRef.current,
|
|
4375
|
+
geojson: geoJsonObject,
|
|
4376
|
+
onClickFeature: highLightGeoJsonOnClick,
|
|
4377
|
+
"data-testid": "polygonLayer"
|
|
4378
|
+
}), selectedFeatureEvent && jsx(MapWarningProperties, {
|
|
4379
|
+
"data-testid": "mapWarnings",
|
|
4380
|
+
selectedFeatureProperties: selectedFeatureEvent.feature.properties.details,
|
|
4381
|
+
languageIndex: findEventIndexInLanguage(selectedFeatureEvent.feature.properties.details.languages, capWarningPresets, selectedFeatureEvent.feature.properties.details.feedAddress),
|
|
4382
|
+
parentSize: parentSize
|
|
4383
|
+
})]
|
|
4384
|
+
}))
|
|
4385
|
+
}));
|
|
4408
4386
|
};
|
|
4409
4387
|
|
|
4410
|
-
/* *
|
|
4411
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4412
|
-
* you may not use this file except in compliance with the License.
|
|
4413
|
-
* You may obtain a copy of the License at
|
|
4414
|
-
*
|
|
4415
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4416
|
-
*
|
|
4417
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
4418
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4419
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4420
|
-
* See the License for the specific language governing permissions and
|
|
4421
|
-
* limitations under the License.
|
|
4422
|
-
*
|
|
4423
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4424
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
4425
|
-
* */
|
|
4426
4388
|
const MapViewCapConnectWrapper = ({
|
|
4427
4389
|
id,
|
|
4428
4390
|
title,
|
|
@@ -4443,23 +4405,25 @@ const MapViewCapConnectWrapper = ({
|
|
|
4443
4405
|
error
|
|
4444
4406
|
} = useApi(api.getCapConfiguration, productConfigKey);
|
|
4445
4407
|
if (isConfigLoading) {
|
|
4446
|
-
return
|
|
4408
|
+
return jsx(Box$1, Object.assign({
|
|
4447
4409
|
sx: {
|
|
4448
4410
|
display: 'flex',
|
|
4449
4411
|
justifyContent: 'center',
|
|
4450
4412
|
alignItems: 'center'
|
|
4451
4413
|
}
|
|
4452
|
-
},
|
|
4453
|
-
|
|
4414
|
+
}, {
|
|
4415
|
+
children: jsx(CircularProgress, {
|
|
4416
|
+
"data-testid": "loadingSpinner"
|
|
4417
|
+
})
|
|
4454
4418
|
}));
|
|
4455
4419
|
}
|
|
4456
4420
|
if (error) {
|
|
4457
|
-
return
|
|
4421
|
+
return jsx(AlertBanner, {
|
|
4458
4422
|
title: t('map-view-cap-error-title'),
|
|
4459
4423
|
info: error.message
|
|
4460
4424
|
});
|
|
4461
4425
|
}
|
|
4462
|
-
return
|
|
4426
|
+
return jsx(MapViewCapConnect, {
|
|
4463
4427
|
capWarningPresets: capWarningPresets,
|
|
4464
4428
|
id: id,
|
|
4465
4429
|
title: title,
|
|
@@ -4469,22 +4433,6 @@ const MapViewCapConnectWrapper = ({
|
|
|
4469
4433
|
});
|
|
4470
4434
|
};
|
|
4471
4435
|
|
|
4472
|
-
/* *
|
|
4473
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4474
|
-
* you may not use this file except in compliance with the License.
|
|
4475
|
-
* You may obtain a copy of the License at
|
|
4476
|
-
*
|
|
4477
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4478
|
-
*
|
|
4479
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
4480
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4481
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4482
|
-
* See the License for the specific language governing permissions and
|
|
4483
|
-
* limitations under the License.
|
|
4484
|
-
*
|
|
4485
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
4486
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
4487
|
-
* */
|
|
4488
4436
|
/**
|
|
4489
4437
|
* The lookup table is for registering your own components with the workspace.
|
|
4490
4438
|
* @param payload
|
|
@@ -4504,28 +4452,32 @@ const ComponentsLookUp = ({
|
|
|
4504
4452
|
switch (componentType) {
|
|
4505
4453
|
case 'CapWarningMap':
|
|
4506
4454
|
{
|
|
4507
|
-
return
|
|
4455
|
+
return jsx(ApiProvider, Object.assign({
|
|
4508
4456
|
config: {
|
|
4509
4457
|
baseURL: config.baseURL
|
|
4510
4458
|
},
|
|
4511
4459
|
createApi: createApi
|
|
4512
|
-
},
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4460
|
+
}, {
|
|
4461
|
+
children: jsx(MapViewCapConnectWrapper, {
|
|
4462
|
+
id: id,
|
|
4463
|
+
bbox: (_a = initialProps.mapPreset.proj) === null || _a === void 0 ? void 0 : _a.bbox,
|
|
4464
|
+
srs: (_b = initialProps.mapPreset.proj) === null || _b === void 0 ? void 0 : _b.srs,
|
|
4465
|
+
layers: initialProps.mapPreset.layers,
|
|
4466
|
+
productConfigKey: productConfigKey
|
|
4467
|
+
})
|
|
4518
4468
|
}));
|
|
4519
4469
|
}
|
|
4520
4470
|
case 'CapWarningList':
|
|
4521
4471
|
{
|
|
4522
|
-
return
|
|
4472
|
+
return jsx(ApiProvider, Object.assign({
|
|
4523
4473
|
config: {
|
|
4524
4474
|
baseURL: config.baseURL
|
|
4525
4475
|
},
|
|
4526
4476
|
createApi: createApi
|
|
4527
|
-
},
|
|
4528
|
-
|
|
4477
|
+
}, {
|
|
4478
|
+
children: jsx(WarningListCapConnectWrapper, {
|
|
4479
|
+
productConfigKey: productConfigKey
|
|
4480
|
+
})
|
|
4529
4481
|
}));
|
|
4530
4482
|
}
|
|
4531
4483
|
default:
|