@opengeoweb/layer-select 9.13.0 → 9.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +692 -1349
- package/package.json +1 -1
- package/src/lib/components/LayerList/LayerList.d.ts +7 -3
- package/src/lib/components/LayerList/LayerList.spec.d.ts +3 -3
- package/src/lib/components/LayerList/LayerListDimensions.d.ts +1 -1
- package/src/lib/components/LayerList/LayerListRow.d.ts +4 -2
- package/src/lib/components/index.d.ts +0 -1
- package/src/lib/store/index.d.ts +0 -1
- package/src/lib/store/reducer.d.ts +2 -3
- package/src/lib/store/selectors.d.ts +3 -15
- package/src/lib/store/types.d.ts +1 -14
- package/src/lib/store/utils.d.ts +2 -1
- package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +0 -10
- package/src/lib/components/LayerInfo/LayerInfoButton.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoButtonConnect.d.ts +0 -11
- package/src/lib/components/LayerInfo/LayerInfoButtonConnect.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +0 -13
- package/src/lib/components/LayerInfo/LayerInfoDialog.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +0 -25
- package/src/lib/components/LayerInfo/LayerInfoDialogConnect.d.ts +0 -2
- package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +0 -9
- package/src/lib/components/LayerInfo/LayerInfoLegend.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/LayerInfoList.d.ts +0 -11
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +0 -15
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +0 -10
- package/src/lib/components/LayerInfo/LayerInfoUtils.spec.d.ts +0 -1
- package/src/lib/components/LayerInfo/index.d.ts +0 -8
- package/src/lib/store/localStorage.d.ts +0 -3
- package/src/lib/store/localStorage.spec.d.ts +0 -1
package/index.esm.js
CHANGED
|
@@ -3,19 +3,16 @@ import * as React from 'react';
|
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import { useSelector, useDispatch } from 'react-redux';
|
|
5
5
|
import { CustomIconButton, ToolContainerDraggable, CustomAccordion, CustomToggleButton, CustomTooltip, SearchHighlight, SearchField, ToggleMenu } from '@opengeoweb/shared';
|
|
6
|
-
import { Filter,
|
|
7
|
-
import { uiTypes, serviceActions, selectorMemoizationOptions, serviceSelectors, uiActions, uiSelectors, useSetupDialog, mapSelectors,
|
|
6
|
+
import { Filter, LayersAdd, Add, Cached, Edit, Visibility, Delete, Close, Copy } from '@opengeoweb/theme';
|
|
7
|
+
import { uiTypes, serviceActions, selectorMemoizationOptions, serviceSelectors, uiActions, uiSelectors, layerSelectors, layerActions, getUserAddedServices, setUserAddedServices, useSetupDialog, mapSelectors, layerTypes } from '@opengeoweb/store';
|
|
8
8
|
import { createEntityAdapter, createSlice, createSelector } from '@reduxjs/toolkit';
|
|
9
9
|
import { compact, countBy, partition } from 'lodash';
|
|
10
10
|
import { createStore } from '@redux-eggs/redux-toolkit';
|
|
11
11
|
import { getSagaExtension } from '@redux-eggs/saga-extension';
|
|
12
12
|
import { takeEvery, select, put, all } from 'redux-saga/effects';
|
|
13
|
-
import { ListItem, ListItemIcon, Checkbox, Typography, ListItemSecondaryAction, Switch, Grid, List, Box
|
|
14
|
-
import Box from '@mui/material/Box';
|
|
15
|
-
import Typography$1 from '@mui/material/Typography';
|
|
16
|
-
import Grid$1 from '@mui/material/Grid';
|
|
17
|
-
import { LegendLayout } from '@opengeoweb/webmap-react';
|
|
13
|
+
import { ListItem, ListItemIcon, Checkbox, Typography, ListItemSecondaryAction, Switch, Grid, List, Box, Backdrop, CircularProgress, Button, ListItemText, Dialog, DialogTitle, LinearProgress, DialogContent, InputAdornment, DialogActions } from '@mui/material';
|
|
18
14
|
import { FixedSizeList } from 'react-window';
|
|
15
|
+
import { getDimensionsList, LayerInfoButton } from '@opengeoweb/webmap-react';
|
|
19
16
|
import { webmapUtils, LayerType, getCapabilities, WMGetServiceFromStore, clearImageCacheForAllMaps } from '@opengeoweb/webmap';
|
|
20
17
|
import { snackbarActions } from '@opengeoweb/snackbar';
|
|
21
18
|
import { ReactHookFormProvider, defaultFormOptions, ReactHookFormTextField } from '@opengeoweb/form-fields';
|
|
@@ -28,7 +25,7 @@ var check = function (it) {
|
|
|
28
25
|
};
|
|
29
26
|
|
|
30
27
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
31
|
-
var global$
|
|
28
|
+
var global$f =
|
|
32
29
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
33
30
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
34
31
|
check(typeof window == 'object' && window) ||
|
|
@@ -41,7 +38,7 @@ var global$g =
|
|
|
41
38
|
|
|
42
39
|
var objectGetOwnPropertyDescriptor = {};
|
|
43
40
|
|
|
44
|
-
var fails$
|
|
41
|
+
var fails$i = function (exec) {
|
|
45
42
|
try {
|
|
46
43
|
return !!exec();
|
|
47
44
|
} catch (error) {
|
|
@@ -49,17 +46,17 @@ var fails$k = function (exec) {
|
|
|
49
46
|
}
|
|
50
47
|
};
|
|
51
48
|
|
|
52
|
-
var fails$
|
|
49
|
+
var fails$h = fails$i;
|
|
53
50
|
|
|
54
51
|
// Detect IE8's incomplete defineProperty implementation
|
|
55
|
-
var descriptors = !fails$
|
|
52
|
+
var descriptors = !fails$h(function () {
|
|
56
53
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
57
54
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
58
55
|
});
|
|
59
56
|
|
|
60
|
-
var fails$
|
|
57
|
+
var fails$g = fails$i;
|
|
61
58
|
|
|
62
|
-
var functionBindNative = !fails$
|
|
59
|
+
var functionBindNative = !fails$g(function () {
|
|
63
60
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
64
61
|
var test = (function () { /* empty */ }).bind();
|
|
65
62
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -68,10 +65,10 @@ var functionBindNative = !fails$i(function () {
|
|
|
68
65
|
|
|
69
66
|
var NATIVE_BIND$2 = functionBindNative;
|
|
70
67
|
|
|
71
|
-
var call$
|
|
68
|
+
var call$8 = Function.prototype.call;
|
|
72
69
|
|
|
73
|
-
var functionCall = NATIVE_BIND$2 ? call$
|
|
74
|
-
return call$
|
|
70
|
+
var functionCall = NATIVE_BIND$2 ? call$8.bind(call$8) : function () {
|
|
71
|
+
return call$8.apply(call$8, arguments);
|
|
75
72
|
};
|
|
76
73
|
|
|
77
74
|
var objectPropertyIsEnumerable = {};
|
|
@@ -102,63 +99,63 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
102
99
|
var NATIVE_BIND$1 = functionBindNative;
|
|
103
100
|
|
|
104
101
|
var FunctionPrototype$1 = Function.prototype;
|
|
105
|
-
var call$
|
|
106
|
-
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$
|
|
102
|
+
var call$7 = FunctionPrototype$1.call;
|
|
103
|
+
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$7, call$7);
|
|
107
104
|
|
|
108
105
|
var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
|
|
109
106
|
return function () {
|
|
110
|
-
return call$
|
|
107
|
+
return call$7.apply(fn, arguments);
|
|
111
108
|
};
|
|
112
109
|
};
|
|
113
110
|
|
|
114
|
-
var uncurryThis$
|
|
111
|
+
var uncurryThis$h = functionUncurryThis;
|
|
115
112
|
|
|
116
|
-
var toString$
|
|
117
|
-
var stringSlice$
|
|
113
|
+
var toString$6 = uncurryThis$h({}.toString);
|
|
114
|
+
var stringSlice$2 = uncurryThis$h(''.slice);
|
|
118
115
|
|
|
119
116
|
var classofRaw$2 = function (it) {
|
|
120
|
-
return stringSlice$
|
|
117
|
+
return stringSlice$2(toString$6(it), 8, -1);
|
|
121
118
|
};
|
|
122
119
|
|
|
123
|
-
var uncurryThis$
|
|
124
|
-
var fails$
|
|
125
|
-
var classof$
|
|
120
|
+
var uncurryThis$g = functionUncurryThis;
|
|
121
|
+
var fails$f = fails$i;
|
|
122
|
+
var classof$6 = classofRaw$2;
|
|
126
123
|
|
|
127
124
|
var $Object$4 = Object;
|
|
128
|
-
var split = uncurryThis$
|
|
125
|
+
var split = uncurryThis$g(''.split);
|
|
129
126
|
|
|
130
127
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
131
|
-
var indexedObject = fails$
|
|
128
|
+
var indexedObject = fails$f(function () {
|
|
132
129
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
133
130
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
134
131
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
135
132
|
}) ? function (it) {
|
|
136
|
-
return classof$
|
|
133
|
+
return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
137
134
|
} : $Object$4;
|
|
138
135
|
|
|
139
136
|
// we can't use just `it == null` since of `document.all` special case
|
|
140
137
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
141
|
-
var isNullOrUndefined$
|
|
138
|
+
var isNullOrUndefined$2 = function (it) {
|
|
142
139
|
return it === null || it === undefined;
|
|
143
140
|
};
|
|
144
141
|
|
|
145
|
-
var isNullOrUndefined$
|
|
142
|
+
var isNullOrUndefined$1 = isNullOrUndefined$2;
|
|
146
143
|
|
|
147
|
-
var $TypeError$
|
|
144
|
+
var $TypeError$a = TypeError;
|
|
148
145
|
|
|
149
146
|
// `RequireObjectCoercible` abstract operation
|
|
150
147
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
151
|
-
var requireObjectCoercible$
|
|
152
|
-
if (isNullOrUndefined$
|
|
148
|
+
var requireObjectCoercible$4 = function (it) {
|
|
149
|
+
if (isNullOrUndefined$1(it)) throw new $TypeError$a("Can't call method on " + it);
|
|
153
150
|
return it;
|
|
154
151
|
};
|
|
155
152
|
|
|
156
153
|
// toObject with fallback for non-array-like ES3 strings
|
|
157
154
|
var IndexedObject$2 = indexedObject;
|
|
158
|
-
var requireObjectCoercible$
|
|
155
|
+
var requireObjectCoercible$3 = requireObjectCoercible$4;
|
|
159
156
|
|
|
160
157
|
var toIndexedObject$5 = function (it) {
|
|
161
|
-
return IndexedObject$2(requireObjectCoercible$
|
|
158
|
+
return IndexedObject$2(requireObjectCoercible$3(it));
|
|
162
159
|
};
|
|
163
160
|
|
|
164
161
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -175,11 +172,11 @@ var isCallable$g = typeof documentAll == 'undefined' && documentAll !== undefine
|
|
|
175
172
|
|
|
176
173
|
var isCallable$f = isCallable$g;
|
|
177
174
|
|
|
178
|
-
var isObject$
|
|
175
|
+
var isObject$a = function (it) {
|
|
179
176
|
return typeof it == 'object' ? it !== null : isCallable$f(it);
|
|
180
177
|
};
|
|
181
178
|
|
|
182
|
-
var global$
|
|
179
|
+
var global$e = global$f;
|
|
183
180
|
var isCallable$e = isCallable$g;
|
|
184
181
|
|
|
185
182
|
var aFunction = function (argument) {
|
|
@@ -187,20 +184,20 @@ var aFunction = function (argument) {
|
|
|
187
184
|
};
|
|
188
185
|
|
|
189
186
|
var getBuiltIn$4 = function (namespace, method) {
|
|
190
|
-
return arguments.length < 2 ? aFunction(global$
|
|
187
|
+
return arguments.length < 2 ? aFunction(global$e[namespace]) : global$e[namespace] && global$e[namespace][method];
|
|
191
188
|
};
|
|
192
189
|
|
|
193
|
-
var uncurryThis$
|
|
190
|
+
var uncurryThis$f = functionUncurryThis;
|
|
194
191
|
|
|
195
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
192
|
+
var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
|
|
196
193
|
|
|
197
194
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
198
195
|
|
|
199
|
-
var global$
|
|
196
|
+
var global$d = global$f;
|
|
200
197
|
var userAgent$2 = engineUserAgent;
|
|
201
198
|
|
|
202
|
-
var process = global$
|
|
203
|
-
var Deno = global$
|
|
199
|
+
var process = global$d.process;
|
|
200
|
+
var Deno = global$d.Deno;
|
|
204
201
|
var versions = process && process.versions || Deno && Deno.version;
|
|
205
202
|
var v8 = versions && versions.v8;
|
|
206
203
|
var match, version;
|
|
@@ -226,13 +223,13 @@ var engineV8Version = version;
|
|
|
226
223
|
|
|
227
224
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
228
225
|
var V8_VERSION = engineV8Version;
|
|
229
|
-
var fails$
|
|
230
|
-
var global$
|
|
226
|
+
var fails$e = fails$i;
|
|
227
|
+
var global$c = global$f;
|
|
231
228
|
|
|
232
|
-
var $String$5 = global$
|
|
229
|
+
var $String$5 = global$c.String;
|
|
233
230
|
|
|
234
231
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
235
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
232
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
|
|
236
233
|
var symbol = Symbol('symbol detection');
|
|
237
234
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
238
235
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -266,7 +263,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
|
266
263
|
|
|
267
264
|
var $String$4 = String;
|
|
268
265
|
|
|
269
|
-
var tryToString$
|
|
266
|
+
var tryToString$2 = function (argument) {
|
|
270
267
|
try {
|
|
271
268
|
return $String$4(argument);
|
|
272
269
|
} catch (error) {
|
|
@@ -275,91 +272,91 @@ var tryToString$3 = function (argument) {
|
|
|
275
272
|
};
|
|
276
273
|
|
|
277
274
|
var isCallable$c = isCallable$g;
|
|
278
|
-
var tryToString$
|
|
275
|
+
var tryToString$1 = tryToString$2;
|
|
279
276
|
|
|
280
|
-
var $TypeError$
|
|
277
|
+
var $TypeError$9 = TypeError;
|
|
281
278
|
|
|
282
279
|
// `Assert: IsCallable(argument) is true`
|
|
283
280
|
var aCallable$6 = function (argument) {
|
|
284
281
|
if (isCallable$c(argument)) return argument;
|
|
285
|
-
throw new $TypeError$
|
|
282
|
+
throw new $TypeError$9(tryToString$1(argument) + ' is not a function');
|
|
286
283
|
};
|
|
287
284
|
|
|
288
285
|
var aCallable$5 = aCallable$6;
|
|
289
|
-
var isNullOrUndefined
|
|
286
|
+
var isNullOrUndefined = isNullOrUndefined$2;
|
|
290
287
|
|
|
291
288
|
// `GetMethod` abstract operation
|
|
292
289
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
293
|
-
var getMethod$
|
|
290
|
+
var getMethod$1 = function (V, P) {
|
|
294
291
|
var func = V[P];
|
|
295
|
-
return isNullOrUndefined
|
|
292
|
+
return isNullOrUndefined(func) ? undefined : aCallable$5(func);
|
|
296
293
|
};
|
|
297
294
|
|
|
298
|
-
var call$
|
|
295
|
+
var call$6 = functionCall;
|
|
299
296
|
var isCallable$b = isCallable$g;
|
|
300
|
-
var isObject$
|
|
297
|
+
var isObject$9 = isObject$a;
|
|
301
298
|
|
|
302
|
-
var $TypeError$
|
|
299
|
+
var $TypeError$8 = TypeError;
|
|
303
300
|
|
|
304
301
|
// `OrdinaryToPrimitive` abstract operation
|
|
305
302
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
306
303
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
307
304
|
var fn, val;
|
|
308
|
-
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$
|
|
309
|
-
if (isCallable$b(fn = input.valueOf) && !isObject$
|
|
310
|
-
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$
|
|
311
|
-
throw new $TypeError$
|
|
305
|
+
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$9(val = call$6(fn, input))) return val;
|
|
306
|
+
if (isCallable$b(fn = input.valueOf) && !isObject$9(val = call$6(fn, input))) return val;
|
|
307
|
+
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$9(val = call$6(fn, input))) return val;
|
|
308
|
+
throw new $TypeError$8("Can't convert object to primitive value");
|
|
312
309
|
};
|
|
313
310
|
|
|
314
|
-
var
|
|
311
|
+
var sharedStore = {exports: {}};
|
|
315
312
|
|
|
316
|
-
var global$
|
|
313
|
+
var global$b = global$f;
|
|
317
314
|
|
|
318
315
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
319
316
|
var defineProperty$5 = Object.defineProperty;
|
|
320
317
|
|
|
321
318
|
var defineGlobalProperty$3 = function (key, value) {
|
|
322
319
|
try {
|
|
323
|
-
defineProperty$5(global$
|
|
320
|
+
defineProperty$5(global$b, key, { value: value, configurable: true, writable: true });
|
|
324
321
|
} catch (error) {
|
|
325
|
-
global$
|
|
322
|
+
global$b[key] = value;
|
|
326
323
|
} return value;
|
|
327
324
|
};
|
|
328
325
|
|
|
329
|
-
var
|
|
326
|
+
var globalThis$1 = global$f;
|
|
330
327
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
331
328
|
|
|
332
329
|
var SHARED = '__core-js_shared__';
|
|
333
|
-
var store$3 =
|
|
334
|
-
|
|
335
|
-
var sharedStore = store$3;
|
|
330
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
336
331
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
(shared$4.exports = function (key, value) {
|
|
340
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
341
|
-
})('versions', []).push({
|
|
342
|
-
version: '3.35.1',
|
|
332
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
333
|
+
version: '3.36.1',
|
|
343
334
|
mode: 'global',
|
|
344
335
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
345
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
336
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
|
|
346
337
|
source: 'https://github.com/zloirock/core-js'
|
|
347
338
|
});
|
|
348
339
|
|
|
349
|
-
var
|
|
340
|
+
var store$2 = sharedStore.exports;
|
|
341
|
+
|
|
342
|
+
var shared$4 = function (key, value) {
|
|
343
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
350
347
|
|
|
351
348
|
var $Object$2 = Object;
|
|
352
349
|
|
|
353
350
|
// `ToObject` abstract operation
|
|
354
351
|
// https://tc39.es/ecma262/#sec-toobject
|
|
355
352
|
var toObject$6 = function (argument) {
|
|
356
|
-
return $Object$2(requireObjectCoercible$
|
|
353
|
+
return $Object$2(requireObjectCoercible$2(argument));
|
|
357
354
|
};
|
|
358
355
|
|
|
359
|
-
var uncurryThis$
|
|
356
|
+
var uncurryThis$e = functionUncurryThis;
|
|
360
357
|
var toObject$5 = toObject$6;
|
|
361
358
|
|
|
362
|
-
var hasOwnProperty = uncurryThis$
|
|
359
|
+
var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
|
|
363
360
|
|
|
364
361
|
// `HasOwnProperty` abstract operation
|
|
365
362
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -368,18 +365,18 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
368
365
|
return hasOwnProperty(toObject$5(it), key);
|
|
369
366
|
};
|
|
370
367
|
|
|
371
|
-
var uncurryThis$
|
|
368
|
+
var uncurryThis$d = functionUncurryThis;
|
|
372
369
|
|
|
373
370
|
var id = 0;
|
|
374
371
|
var postfix = Math.random();
|
|
375
|
-
var toString$
|
|
372
|
+
var toString$5 = uncurryThis$d(1.0.toString);
|
|
376
373
|
|
|
377
374
|
var uid$2 = function (key) {
|
|
378
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
375
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
379
376
|
};
|
|
380
377
|
|
|
381
|
-
var global$a = global$
|
|
382
|
-
var shared$3 = shared$4
|
|
378
|
+
var global$a = global$f;
|
|
379
|
+
var shared$3 = shared$4;
|
|
383
380
|
var hasOwn$8 = hasOwnProperty_1;
|
|
384
381
|
var uid$1 = uid$2;
|
|
385
382
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
@@ -389,7 +386,7 @@ var Symbol$1 = global$a.Symbol;
|
|
|
389
386
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
390
387
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
391
388
|
|
|
392
|
-
var wellKnownSymbol$
|
|
389
|
+
var wellKnownSymbol$b = function (name) {
|
|
393
390
|
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
394
391
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
|
|
395
392
|
? Symbol$1[name]
|
|
@@ -397,27 +394,27 @@ var wellKnownSymbol$d = function (name) {
|
|
|
397
394
|
} return WellKnownSymbolsStore[name];
|
|
398
395
|
};
|
|
399
396
|
|
|
400
|
-
var call$
|
|
401
|
-
var isObject$
|
|
397
|
+
var call$5 = functionCall;
|
|
398
|
+
var isObject$8 = isObject$a;
|
|
402
399
|
var isSymbol$1 = isSymbol$2;
|
|
403
|
-
var getMethod
|
|
400
|
+
var getMethod = getMethod$1;
|
|
404
401
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
405
|
-
var wellKnownSymbol$
|
|
402
|
+
var wellKnownSymbol$a = wellKnownSymbol$b;
|
|
406
403
|
|
|
407
|
-
var $TypeError$
|
|
408
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
404
|
+
var $TypeError$7 = TypeError;
|
|
405
|
+
var TO_PRIMITIVE = wellKnownSymbol$a('toPrimitive');
|
|
409
406
|
|
|
410
407
|
// `ToPrimitive` abstract operation
|
|
411
408
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
412
409
|
var toPrimitive$1 = function (input, pref) {
|
|
413
|
-
if (!isObject$
|
|
414
|
-
var exoticToPrim = getMethod
|
|
410
|
+
if (!isObject$8(input) || isSymbol$1(input)) return input;
|
|
411
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
415
412
|
var result;
|
|
416
413
|
if (exoticToPrim) {
|
|
417
414
|
if (pref === undefined) pref = 'default';
|
|
418
|
-
result = call$
|
|
419
|
-
if (!isObject$
|
|
420
|
-
throw new $TypeError$
|
|
415
|
+
result = call$5(exoticToPrim, input, pref);
|
|
416
|
+
if (!isObject$8(result) || isSymbol$1(result)) return result;
|
|
417
|
+
throw new $TypeError$7("Can't convert object to primitive value");
|
|
421
418
|
}
|
|
422
419
|
if (pref === undefined) pref = 'number';
|
|
423
420
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -433,23 +430,23 @@ var toPropertyKey$2 = function (argument) {
|
|
|
433
430
|
return isSymbol(key) ? key : key + '';
|
|
434
431
|
};
|
|
435
432
|
|
|
436
|
-
var global$9 = global$
|
|
437
|
-
var isObject$
|
|
433
|
+
var global$9 = global$f;
|
|
434
|
+
var isObject$7 = isObject$a;
|
|
438
435
|
|
|
439
436
|
var document$1 = global$9.document;
|
|
440
437
|
// typeof document.createElement is 'object' in old IE
|
|
441
|
-
var EXISTS$1 = isObject$
|
|
438
|
+
var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
|
|
442
439
|
|
|
443
440
|
var documentCreateElement$2 = function (it) {
|
|
444
441
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
445
442
|
};
|
|
446
443
|
|
|
447
444
|
var DESCRIPTORS$9 = descriptors;
|
|
448
|
-
var fails$
|
|
445
|
+
var fails$d = fails$i;
|
|
449
446
|
var createElement = documentCreateElement$2;
|
|
450
447
|
|
|
451
448
|
// Thanks to IE8 for its funny defineProperty
|
|
452
|
-
var ie8DomDefine = !DESCRIPTORS$9 && !fails$
|
|
449
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$d(function () {
|
|
453
450
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
454
451
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
455
452
|
get: function () { return 7; }
|
|
@@ -457,7 +454,7 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$f(function () {
|
|
|
457
454
|
});
|
|
458
455
|
|
|
459
456
|
var DESCRIPTORS$8 = descriptors;
|
|
460
|
-
var call$
|
|
457
|
+
var call$4 = functionCall;
|
|
461
458
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
462
459
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
463
460
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
@@ -476,17 +473,17 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 :
|
|
|
476
473
|
if (IE8_DOM_DEFINE$1) try {
|
|
477
474
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
478
475
|
} catch (error) { /* empty */ }
|
|
479
|
-
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$
|
|
476
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
480
477
|
};
|
|
481
478
|
|
|
482
479
|
var objectDefineProperty = {};
|
|
483
480
|
|
|
484
481
|
var DESCRIPTORS$7 = descriptors;
|
|
485
|
-
var fails$
|
|
482
|
+
var fails$c = fails$i;
|
|
486
483
|
|
|
487
484
|
// V8 ~ Chrome 36-
|
|
488
485
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
489
|
-
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$
|
|
486
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$c(function () {
|
|
490
487
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
491
488
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
492
489
|
value: 42,
|
|
@@ -494,24 +491,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$e(function () {
|
|
|
494
491
|
}).prototype !== 42;
|
|
495
492
|
});
|
|
496
493
|
|
|
497
|
-
var isObject$
|
|
494
|
+
var isObject$6 = isObject$a;
|
|
498
495
|
|
|
499
496
|
var $String$3 = String;
|
|
500
|
-
var $TypeError$
|
|
497
|
+
var $TypeError$6 = TypeError;
|
|
501
498
|
|
|
502
499
|
// `Assert: Type(argument) is Object`
|
|
503
|
-
var anObject$
|
|
504
|
-
if (isObject$
|
|
505
|
-
throw new $TypeError$
|
|
500
|
+
var anObject$6 = function (argument) {
|
|
501
|
+
if (isObject$6(argument)) return argument;
|
|
502
|
+
throw new $TypeError$6($String$3(argument) + ' is not an object');
|
|
506
503
|
};
|
|
507
504
|
|
|
508
505
|
var DESCRIPTORS$6 = descriptors;
|
|
509
506
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
510
507
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
511
|
-
var anObject$
|
|
508
|
+
var anObject$5 = anObject$6;
|
|
512
509
|
var toPropertyKey = toPropertyKey$2;
|
|
513
510
|
|
|
514
|
-
var $TypeError$
|
|
511
|
+
var $TypeError$5 = TypeError;
|
|
515
512
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
516
513
|
var $defineProperty = Object.defineProperty;
|
|
517
514
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -523,9 +520,9 @@ var WRITABLE = 'writable';
|
|
|
523
520
|
// `Object.defineProperty` method
|
|
524
521
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
525
522
|
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
526
|
-
anObject$
|
|
523
|
+
anObject$5(O);
|
|
527
524
|
P = toPropertyKey(P);
|
|
528
|
-
anObject$
|
|
525
|
+
anObject$5(Attributes);
|
|
529
526
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
530
527
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
531
528
|
if (current && current[WRITABLE]) {
|
|
@@ -538,13 +535,13 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
538
535
|
}
|
|
539
536
|
} return $defineProperty(O, P, Attributes);
|
|
540
537
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
541
|
-
anObject$
|
|
538
|
+
anObject$5(O);
|
|
542
539
|
P = toPropertyKey(P);
|
|
543
|
-
anObject$
|
|
540
|
+
anObject$5(Attributes);
|
|
544
541
|
if (IE8_DOM_DEFINE) try {
|
|
545
542
|
return $defineProperty(O, P, Attributes);
|
|
546
543
|
} catch (error) { /* empty */ }
|
|
547
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
544
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$5('Accessors not supported');
|
|
548
545
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
549
546
|
return O;
|
|
550
547
|
};
|
|
@@ -553,7 +550,7 @@ var DESCRIPTORS$5 = descriptors;
|
|
|
553
550
|
var definePropertyModule$3 = objectDefineProperty;
|
|
554
551
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
555
552
|
|
|
556
|
-
var createNonEnumerableProperty$
|
|
553
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
557
554
|
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
558
555
|
} : function (object, key, value) {
|
|
559
556
|
object[key] = value;
|
|
@@ -580,11 +577,11 @@ var functionName = {
|
|
|
580
577
|
CONFIGURABLE: CONFIGURABLE
|
|
581
578
|
};
|
|
582
579
|
|
|
583
|
-
var uncurryThis$
|
|
580
|
+
var uncurryThis$c = functionUncurryThis;
|
|
584
581
|
var isCallable$a = isCallable$g;
|
|
585
|
-
var store$1 = sharedStore;
|
|
582
|
+
var store$1 = sharedStore.exports;
|
|
586
583
|
|
|
587
|
-
var functionToString = uncurryThis$
|
|
584
|
+
var functionToString = uncurryThis$c(Function.toString);
|
|
588
585
|
|
|
589
586
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
590
587
|
if (!isCallable$a(store$1.inspectSource)) {
|
|
@@ -595,14 +592,14 @@ if (!isCallable$a(store$1.inspectSource)) {
|
|
|
595
592
|
|
|
596
593
|
var inspectSource$2 = store$1.inspectSource;
|
|
597
594
|
|
|
598
|
-
var global$8 = global$
|
|
595
|
+
var global$8 = global$f;
|
|
599
596
|
var isCallable$9 = isCallable$g;
|
|
600
597
|
|
|
601
598
|
var WeakMap$1 = global$8.WeakMap;
|
|
602
599
|
|
|
603
600
|
var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
604
601
|
|
|
605
|
-
var shared$2 = shared$4
|
|
602
|
+
var shared$2 = shared$4;
|
|
606
603
|
var uid = uid$2;
|
|
607
604
|
|
|
608
605
|
var keys = shared$2('keys');
|
|
@@ -614,11 +611,11 @@ var sharedKey$3 = function (key) {
|
|
|
614
611
|
var hiddenKeys$4 = {};
|
|
615
612
|
|
|
616
613
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
617
|
-
var global$7 = global$
|
|
618
|
-
var isObject$
|
|
619
|
-
var createNonEnumerableProperty$
|
|
614
|
+
var global$7 = global$f;
|
|
615
|
+
var isObject$5 = isObject$a;
|
|
616
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
620
617
|
var hasOwn$5 = hasOwnProperty_1;
|
|
621
|
-
var shared$1 = sharedStore;
|
|
618
|
+
var shared$1 = sharedStore.exports;
|
|
622
619
|
var sharedKey$2 = sharedKey$3;
|
|
623
620
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
624
621
|
|
|
@@ -634,7 +631,7 @@ var enforce = function (it) {
|
|
|
634
631
|
var getterFor = function (TYPE) {
|
|
635
632
|
return function (it) {
|
|
636
633
|
var state;
|
|
637
|
-
if (!isObject$
|
|
634
|
+
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
638
635
|
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
639
636
|
} return state;
|
|
640
637
|
};
|
|
@@ -665,7 +662,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
665
662
|
set = function (it, metadata) {
|
|
666
663
|
if (hasOwn$5(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
667
664
|
metadata.facade = it;
|
|
668
|
-
createNonEnumerableProperty$
|
|
665
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
669
666
|
return metadata;
|
|
670
667
|
};
|
|
671
668
|
get = function (it) {
|
|
@@ -684,8 +681,8 @@ var internalState = {
|
|
|
684
681
|
getterFor: getterFor
|
|
685
682
|
};
|
|
686
683
|
|
|
687
|
-
var uncurryThis$
|
|
688
|
-
var fails$
|
|
684
|
+
var uncurryThis$b = functionUncurryThis;
|
|
685
|
+
var fails$b = fails$i;
|
|
689
686
|
var isCallable$8 = isCallable$g;
|
|
690
687
|
var hasOwn$4 = hasOwnProperty_1;
|
|
691
688
|
var DESCRIPTORS$3 = descriptors;
|
|
@@ -698,18 +695,18 @@ var getInternalState$2 = InternalStateModule$1.get;
|
|
|
698
695
|
var $String$2 = String;
|
|
699
696
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
700
697
|
var defineProperty$4 = Object.defineProperty;
|
|
701
|
-
var stringSlice$
|
|
702
|
-
var replace$1 = uncurryThis$
|
|
703
|
-
var join = uncurryThis$
|
|
698
|
+
var stringSlice$1 = uncurryThis$b(''.slice);
|
|
699
|
+
var replace$1 = uncurryThis$b(''.replace);
|
|
700
|
+
var join = uncurryThis$b([].join);
|
|
704
701
|
|
|
705
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$
|
|
702
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$b(function () {
|
|
706
703
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
707
704
|
});
|
|
708
705
|
|
|
709
706
|
var TEMPLATE = String(String).split('String');
|
|
710
707
|
|
|
711
708
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
712
|
-
if (stringSlice$
|
|
709
|
+
if (stringSlice$1($String$2(name), 0, 7) === 'Symbol(') {
|
|
713
710
|
name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
714
711
|
}
|
|
715
712
|
if (options && options.getter) name = 'get ' + name;
|
|
@@ -744,7 +741,7 @@ var definePropertyModule$2 = objectDefineProperty;
|
|
|
744
741
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
745
742
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
746
743
|
|
|
747
|
-
var defineBuiltIn$
|
|
744
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
748
745
|
if (!options) options = {};
|
|
749
746
|
var simple = options.enumerable;
|
|
750
747
|
var name = options.name !== undefined ? options.name : key;
|
|
@@ -784,42 +781,42 @@ var trunc = mathTrunc;
|
|
|
784
781
|
|
|
785
782
|
// `ToIntegerOrInfinity` abstract operation
|
|
786
783
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
787
|
-
var toIntegerOrInfinity$
|
|
784
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
788
785
|
var number = +argument;
|
|
789
786
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
790
787
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
791
788
|
};
|
|
792
789
|
|
|
793
|
-
var toIntegerOrInfinity$
|
|
790
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
794
791
|
|
|
795
792
|
var max = Math.max;
|
|
796
|
-
var min$
|
|
793
|
+
var min$1 = Math.min;
|
|
797
794
|
|
|
798
795
|
// Helper for a popular repeating case of the spec:
|
|
799
796
|
// Let integer be ? ToInteger(index).
|
|
800
797
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
801
798
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
802
|
-
var integer = toIntegerOrInfinity$
|
|
803
|
-
return integer < 0 ? max(integer + length, 0) : min$
|
|
799
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
800
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
804
801
|
};
|
|
805
802
|
|
|
806
|
-
var toIntegerOrInfinity
|
|
803
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
807
804
|
|
|
808
|
-
var min
|
|
805
|
+
var min = Math.min;
|
|
809
806
|
|
|
810
807
|
// `ToLength` abstract operation
|
|
811
808
|
// https://tc39.es/ecma262/#sec-tolength
|
|
812
|
-
var toLength$
|
|
813
|
-
var len = toIntegerOrInfinity
|
|
814
|
-
return len > 0 ? min
|
|
809
|
+
var toLength$1 = function (argument) {
|
|
810
|
+
var len = toIntegerOrInfinity(argument);
|
|
811
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
815
812
|
};
|
|
816
813
|
|
|
817
|
-
var toLength
|
|
814
|
+
var toLength = toLength$1;
|
|
818
815
|
|
|
819
816
|
// `LengthOfArrayLike` abstract operation
|
|
820
817
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
821
818
|
var lengthOfArrayLike$5 = function (obj) {
|
|
822
|
-
return toLength
|
|
819
|
+
return toLength(obj.length);
|
|
823
820
|
};
|
|
824
821
|
|
|
825
822
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
@@ -827,10 +824,11 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
|
827
824
|
var lengthOfArrayLike$4 = lengthOfArrayLike$5;
|
|
828
825
|
|
|
829
826
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
830
|
-
var createMethod$
|
|
827
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
831
828
|
return function ($this, el, fromIndex) {
|
|
832
829
|
var O = toIndexedObject$3($this);
|
|
833
830
|
var length = lengthOfArrayLike$4(O);
|
|
831
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
834
832
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
835
833
|
var value;
|
|
836
834
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -849,29 +847,29 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
849
847
|
var arrayIncludes = {
|
|
850
848
|
// `Array.prototype.includes` method
|
|
851
849
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
852
|
-
includes: createMethod$
|
|
850
|
+
includes: createMethod$1(true),
|
|
853
851
|
// `Array.prototype.indexOf` method
|
|
854
852
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
855
|
-
indexOf: createMethod$
|
|
853
|
+
indexOf: createMethod$1(false)
|
|
856
854
|
};
|
|
857
855
|
|
|
858
|
-
var uncurryThis$
|
|
856
|
+
var uncurryThis$a = functionUncurryThis;
|
|
859
857
|
var hasOwn$3 = hasOwnProperty_1;
|
|
860
858
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
861
859
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
862
860
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
863
861
|
|
|
864
|
-
var push$
|
|
862
|
+
var push$1 = uncurryThis$a([].push);
|
|
865
863
|
|
|
866
864
|
var objectKeysInternal = function (object, names) {
|
|
867
865
|
var O = toIndexedObject$2(object);
|
|
868
866
|
var i = 0;
|
|
869
867
|
var result = [];
|
|
870
868
|
var key;
|
|
871
|
-
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$
|
|
869
|
+
for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
|
|
872
870
|
// Don't enum bug & hidden keys
|
|
873
871
|
while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
|
|
874
|
-
~indexOf$1(result, key) || push$
|
|
872
|
+
~indexOf$1(result, key) || push$1(result, key);
|
|
875
873
|
}
|
|
876
874
|
return result;
|
|
877
875
|
};
|
|
@@ -905,16 +903,16 @@ var objectGetOwnPropertySymbols = {};
|
|
|
905
903
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
906
904
|
|
|
907
905
|
var getBuiltIn$2 = getBuiltIn$4;
|
|
908
|
-
var uncurryThis$
|
|
906
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
909
907
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
910
908
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
911
|
-
var anObject$
|
|
909
|
+
var anObject$4 = anObject$6;
|
|
912
910
|
|
|
913
|
-
var concat$1 = uncurryThis$
|
|
911
|
+
var concat$1 = uncurryThis$9([].concat);
|
|
914
912
|
|
|
915
913
|
// all object keys, includes non-enumerable and symbols
|
|
916
914
|
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
917
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
915
|
+
var keys = getOwnPropertyNamesModule.f(anObject$4(it));
|
|
918
916
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
919
917
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
920
918
|
};
|
|
@@ -936,7 +934,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
936
934
|
}
|
|
937
935
|
};
|
|
938
936
|
|
|
939
|
-
var fails$
|
|
937
|
+
var fails$a = fails$i;
|
|
940
938
|
var isCallable$6 = isCallable$g;
|
|
941
939
|
|
|
942
940
|
var replacement = /#|\.prototype\./;
|
|
@@ -945,7 +943,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
945
943
|
var value = data[normalize(feature)];
|
|
946
944
|
return value === POLYFILL ? true
|
|
947
945
|
: value === NATIVE ? false
|
|
948
|
-
: isCallable$6(detection) ? fails$
|
|
946
|
+
: isCallable$6(detection) ? fails$a(detection)
|
|
949
947
|
: !!detection;
|
|
950
948
|
};
|
|
951
949
|
|
|
@@ -959,10 +957,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
959
957
|
|
|
960
958
|
var isForced_1 = isForced$1;
|
|
961
959
|
|
|
962
|
-
var global$6 = global$
|
|
960
|
+
var global$6 = global$f;
|
|
963
961
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
964
|
-
var createNonEnumerableProperty$
|
|
965
|
-
var defineBuiltIn$
|
|
962
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
963
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
966
964
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
967
965
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
968
966
|
var isForced = isForced_1;
|
|
@@ -1008,9 +1006,9 @@ var _export = function (options, source) {
|
|
|
1008
1006
|
}
|
|
1009
1007
|
// add a flag to not completely full polyfills
|
|
1010
1008
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1011
|
-
createNonEnumerableProperty$
|
|
1009
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1012
1010
|
}
|
|
1013
|
-
defineBuiltIn$
|
|
1011
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1014
1012
|
}
|
|
1015
1013
|
};
|
|
1016
1014
|
|
|
@@ -1025,9 +1023,9 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1025
1023
|
};
|
|
1026
1024
|
|
|
1027
1025
|
var DESCRIPTORS$2 = descriptors;
|
|
1028
|
-
var uncurryThis$
|
|
1029
|
-
var call$
|
|
1030
|
-
var fails$
|
|
1026
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1027
|
+
var call$3 = functionCall;
|
|
1028
|
+
var fails$9 = fails$i;
|
|
1031
1029
|
var objectKeys$1 = objectKeys$2;
|
|
1032
1030
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1033
1031
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1038,11 +1036,11 @@ var IndexedObject$1 = indexedObject;
|
|
|
1038
1036
|
var $assign = Object.assign;
|
|
1039
1037
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1040
1038
|
var defineProperty$3 = Object.defineProperty;
|
|
1041
|
-
var concat = uncurryThis$
|
|
1039
|
+
var concat = uncurryThis$8([].concat);
|
|
1042
1040
|
|
|
1043
1041
|
// `Object.assign` method
|
|
1044
1042
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1045
|
-
var objectAssign = !$assign || fails$
|
|
1043
|
+
var objectAssign = !$assign || fails$9(function () {
|
|
1046
1044
|
// should have correct order of operations (Edge bug)
|
|
1047
1045
|
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1048
1046
|
enumerable: true,
|
|
@@ -1076,7 +1074,7 @@ var objectAssign = !$assign || fails$b(function () {
|
|
|
1076
1074
|
var key;
|
|
1077
1075
|
while (length > j) {
|
|
1078
1076
|
key = keys[j++];
|
|
1079
|
-
if (!DESCRIPTORS$2 || call$
|
|
1077
|
+
if (!DESCRIPTORS$2 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1080
1078
|
}
|
|
1081
1079
|
} return T;
|
|
1082
1080
|
} : $assign;
|
|
@@ -1096,15 +1094,18 @@ var toObject$3 = toObject$6;
|
|
|
1096
1094
|
var IndexedObject = indexedObject;
|
|
1097
1095
|
var lengthOfArrayLike$3 = lengthOfArrayLike$5;
|
|
1098
1096
|
|
|
1099
|
-
var $TypeError$
|
|
1097
|
+
var $TypeError$4 = TypeError;
|
|
1098
|
+
|
|
1099
|
+
var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
|
|
1100
1100
|
|
|
1101
1101
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
1102
|
-
var createMethod
|
|
1102
|
+
var createMethod = function (IS_RIGHT) {
|
|
1103
1103
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
1104
1104
|
var O = toObject$3(that);
|
|
1105
1105
|
var self = IndexedObject(O);
|
|
1106
1106
|
var length = lengthOfArrayLike$3(O);
|
|
1107
1107
|
aCallable$4(callbackfn);
|
|
1108
|
+
if (length === 0 && argumentsLength < 2) throw new $TypeError$4(REDUCE_EMPTY);
|
|
1108
1109
|
var index = IS_RIGHT ? length - 1 : 0;
|
|
1109
1110
|
var i = IS_RIGHT ? -1 : 1;
|
|
1110
1111
|
if (argumentsLength < 2) while (true) {
|
|
@@ -1115,7 +1116,7 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
1115
1116
|
}
|
|
1116
1117
|
index += i;
|
|
1117
1118
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
1118
|
-
throw new $TypeError$
|
|
1119
|
+
throw new $TypeError$4(REDUCE_EMPTY);
|
|
1119
1120
|
}
|
|
1120
1121
|
}
|
|
1121
1122
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -1128,26 +1129,26 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
1128
1129
|
var arrayReduce = {
|
|
1129
1130
|
// `Array.prototype.reduce` method
|
|
1130
1131
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1131
|
-
left: createMethod
|
|
1132
|
+
left: createMethod(false),
|
|
1132
1133
|
// `Array.prototype.reduceRight` method
|
|
1133
1134
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1134
|
-
right: createMethod
|
|
1135
|
+
right: createMethod(true)
|
|
1135
1136
|
};
|
|
1136
1137
|
|
|
1137
|
-
var fails$
|
|
1138
|
+
var fails$8 = fails$i;
|
|
1138
1139
|
|
|
1139
1140
|
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
1140
1141
|
var method = [][METHOD_NAME];
|
|
1141
|
-
return !!method && fails$
|
|
1142
|
+
return !!method && fails$8(function () {
|
|
1142
1143
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1143
1144
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1144
1145
|
});
|
|
1145
1146
|
};
|
|
1146
1147
|
|
|
1147
|
-
var global$5 = global$
|
|
1148
|
-
var classof$
|
|
1148
|
+
var global$5 = global$f;
|
|
1149
|
+
var classof$5 = classofRaw$2;
|
|
1149
1150
|
|
|
1150
|
-
var engineIsNode = classof$
|
|
1151
|
+
var engineIsNode = classof$5(global$5.process) === 'process';
|
|
1151
1152
|
|
|
1152
1153
|
var $$7 = _export;
|
|
1153
1154
|
var $reduce = arrayReduce.left;
|
|
@@ -1174,7 +1175,7 @@ var objectDefineProperties = {};
|
|
|
1174
1175
|
var DESCRIPTORS$1 = descriptors;
|
|
1175
1176
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1176
1177
|
var definePropertyModule = objectDefineProperty;
|
|
1177
|
-
var anObject$
|
|
1178
|
+
var anObject$3 = anObject$6;
|
|
1178
1179
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1179
1180
|
var objectKeys = objectKeys$2;
|
|
1180
1181
|
|
|
@@ -1182,7 +1183,7 @@ var objectKeys = objectKeys$2;
|
|
|
1182
1183
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1183
1184
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1184
1185
|
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1185
|
-
anObject$
|
|
1186
|
+
anObject$3(O);
|
|
1186
1187
|
var props = toIndexedObject$1(Properties);
|
|
1187
1188
|
var keys = objectKeys(Properties);
|
|
1188
1189
|
var length = keys.length;
|
|
@@ -1197,7 +1198,7 @@ var getBuiltIn$1 = getBuiltIn$4;
|
|
|
1197
1198
|
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
1198
1199
|
|
|
1199
1200
|
/* global ActiveXObject -- old IE, WSH */
|
|
1200
|
-
var anObject$
|
|
1201
|
+
var anObject$2 = anObject$6;
|
|
1201
1202
|
var definePropertiesModule = objectDefineProperties;
|
|
1202
1203
|
var enumBugKeys = enumBugKeys$3;
|
|
1203
1204
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1271,7 +1272,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1271
1272
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1272
1273
|
var result;
|
|
1273
1274
|
if (O !== null) {
|
|
1274
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1275
|
+
EmptyConstructor[PROTOTYPE] = anObject$2(O);
|
|
1275
1276
|
result = new EmptyConstructor();
|
|
1276
1277
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1277
1278
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1280,11 +1281,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1280
1281
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1281
1282
|
};
|
|
1282
1283
|
|
|
1283
|
-
var wellKnownSymbol$
|
|
1284
|
+
var wellKnownSymbol$9 = wellKnownSymbol$b;
|
|
1284
1285
|
var create$2 = objectCreate;
|
|
1285
1286
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1286
1287
|
|
|
1287
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1288
|
+
var UNSCOPABLES = wellKnownSymbol$9('unscopables');
|
|
1288
1289
|
var ArrayPrototype = Array.prototype;
|
|
1289
1290
|
|
|
1290
1291
|
// Array.prototype[@@unscopables]
|
|
@@ -1303,11 +1304,11 @@ var addToUnscopables$3 = function (key) {
|
|
|
1303
1304
|
|
|
1304
1305
|
var $$6 = _export;
|
|
1305
1306
|
var $includes = arrayIncludes.includes;
|
|
1306
|
-
var fails$
|
|
1307
|
+
var fails$7 = fails$i;
|
|
1307
1308
|
var addToUnscopables$2 = addToUnscopables$3;
|
|
1308
1309
|
|
|
1309
1310
|
// FF99+ bug
|
|
1310
|
-
var BROKEN_ON_SPARSE = fails$
|
|
1311
|
+
var BROKEN_ON_SPARSE = fails$7(function () {
|
|
1311
1312
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1312
1313
|
return !Array(1).includes();
|
|
1313
1314
|
});
|
|
@@ -1323,44 +1324,44 @@ $$6({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
|
1323
1324
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1324
1325
|
addToUnscopables$2('includes');
|
|
1325
1326
|
|
|
1326
|
-
var isObject$
|
|
1327
|
-
var classof$
|
|
1328
|
-
var wellKnownSymbol$
|
|
1327
|
+
var isObject$4 = isObject$a;
|
|
1328
|
+
var classof$4 = classofRaw$2;
|
|
1329
|
+
var wellKnownSymbol$8 = wellKnownSymbol$b;
|
|
1329
1330
|
|
|
1330
|
-
var MATCH$1 = wellKnownSymbol$
|
|
1331
|
+
var MATCH$1 = wellKnownSymbol$8('match');
|
|
1331
1332
|
|
|
1332
1333
|
// `IsRegExp` abstract operation
|
|
1333
1334
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
1334
1335
|
var isRegexp = function (it) {
|
|
1335
1336
|
var isRegExp;
|
|
1336
|
-
return isObject$
|
|
1337
|
+
return isObject$4(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) === 'RegExp');
|
|
1337
1338
|
};
|
|
1338
1339
|
|
|
1339
1340
|
var isRegExp = isRegexp;
|
|
1340
1341
|
|
|
1341
|
-
var $TypeError$
|
|
1342
|
+
var $TypeError$3 = TypeError;
|
|
1342
1343
|
|
|
1343
1344
|
var notARegexp = function (it) {
|
|
1344
1345
|
if (isRegExp(it)) {
|
|
1345
|
-
throw new $TypeError$
|
|
1346
|
+
throw new $TypeError$3("The method doesn't accept regular expressions");
|
|
1346
1347
|
} return it;
|
|
1347
1348
|
};
|
|
1348
1349
|
|
|
1349
|
-
var wellKnownSymbol$
|
|
1350
|
+
var wellKnownSymbol$7 = wellKnownSymbol$b;
|
|
1350
1351
|
|
|
1351
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1352
|
-
var test$
|
|
1352
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$7('toStringTag');
|
|
1353
|
+
var test$1 = {};
|
|
1353
1354
|
|
|
1354
|
-
test$
|
|
1355
|
+
test$1[TO_STRING_TAG$2] = 'z';
|
|
1355
1356
|
|
|
1356
|
-
var toStringTagSupport = String(test$
|
|
1357
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
|
1357
1358
|
|
|
1358
1359
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1359
1360
|
var isCallable$5 = isCallable$g;
|
|
1360
1361
|
var classofRaw$1 = classofRaw$2;
|
|
1361
|
-
var wellKnownSymbol$
|
|
1362
|
+
var wellKnownSymbol$6 = wellKnownSymbol$b;
|
|
1362
1363
|
|
|
1363
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
1364
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
|
|
1364
1365
|
var $Object$1 = Object;
|
|
1365
1366
|
|
|
1366
1367
|
// ES3 wrong here
|
|
@@ -1374,7 +1375,7 @@ var tryGet = function (it, key) {
|
|
|
1374
1375
|
};
|
|
1375
1376
|
|
|
1376
1377
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1377
|
-
var classof$
|
|
1378
|
+
var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1378
1379
|
var O, tag, result;
|
|
1379
1380
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1380
1381
|
// @@toStringTag case
|
|
@@ -1385,18 +1386,18 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1385
1386
|
: (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
1386
1387
|
};
|
|
1387
1388
|
|
|
1388
|
-
var classof$
|
|
1389
|
+
var classof$2 = classof$3;
|
|
1389
1390
|
|
|
1390
1391
|
var $String$1 = String;
|
|
1391
1392
|
|
|
1392
|
-
var toString$
|
|
1393
|
-
if (classof$
|
|
1393
|
+
var toString$4 = function (argument) {
|
|
1394
|
+
if (classof$2(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1394
1395
|
return $String$1(argument);
|
|
1395
1396
|
};
|
|
1396
1397
|
|
|
1397
|
-
var wellKnownSymbol$
|
|
1398
|
+
var wellKnownSymbol$5 = wellKnownSymbol$b;
|
|
1398
1399
|
|
|
1399
|
-
var MATCH = wellKnownSymbol$
|
|
1400
|
+
var MATCH = wellKnownSymbol$5('match');
|
|
1400
1401
|
|
|
1401
1402
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
1402
1403
|
var regexp = /./;
|
|
@@ -1411,21 +1412,21 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
1411
1412
|
};
|
|
1412
1413
|
|
|
1413
1414
|
var $$5 = _export;
|
|
1414
|
-
var uncurryThis$
|
|
1415
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1415
1416
|
var notARegExp = notARegexp;
|
|
1416
|
-
var requireObjectCoercible$
|
|
1417
|
-
var toString$
|
|
1417
|
+
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
1418
|
+
var toString$3 = toString$4;
|
|
1418
1419
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
1419
1420
|
|
|
1420
|
-
var stringIndexOf = uncurryThis$
|
|
1421
|
+
var stringIndexOf = uncurryThis$7(''.indexOf);
|
|
1421
1422
|
|
|
1422
1423
|
// `String.prototype.includes` method
|
|
1423
1424
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
1424
1425
|
$$5({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
1425
1426
|
includes: function includes(searchString /* , position = 0 */) {
|
|
1426
1427
|
return !!~stringIndexOf(
|
|
1427
|
-
toString$
|
|
1428
|
-
toString$
|
|
1428
|
+
toString$3(requireObjectCoercible$1(this)),
|
|
1429
|
+
toString$3(notARegExp(searchString)),
|
|
1429
1430
|
arguments.length > 1 ? arguments[1] : undefined
|
|
1430
1431
|
);
|
|
1431
1432
|
}
|
|
@@ -1506,13 +1507,6 @@ const initialState = {
|
|
|
1506
1507
|
filters: layerSelectFilterAdapter.getInitialState()
|
|
1507
1508
|
},
|
|
1508
1509
|
allServicesEnabled: true,
|
|
1509
|
-
activeLayerInfo: {
|
|
1510
|
-
name: '',
|
|
1511
|
-
title: '',
|
|
1512
|
-
leaf: true,
|
|
1513
|
-
path: [],
|
|
1514
|
-
serviceName: ''
|
|
1515
|
-
},
|
|
1516
1510
|
servicePopup: initialServicePopupState
|
|
1517
1511
|
};
|
|
1518
1512
|
const slice = createSlice({
|
|
@@ -1608,12 +1602,6 @@ const slice = createSlice({
|
|
|
1608
1602
|
draft.filters.filters.entities[filterId].checked = false;
|
|
1609
1603
|
});
|
|
1610
1604
|
draft.filters.filters.entities[filterId].checked = true;
|
|
1611
|
-
},
|
|
1612
|
-
setActiveLayerInfo: (draft, action) => {
|
|
1613
|
-
const {
|
|
1614
|
-
layer
|
|
1615
|
-
} = action.payload;
|
|
1616
|
-
draft.activeLayerInfo = layer;
|
|
1617
1605
|
}
|
|
1618
1606
|
},
|
|
1619
1607
|
extraReducers: builder => {
|
|
@@ -1671,7 +1659,7 @@ const slice = createSlice({
|
|
|
1671
1659
|
const {
|
|
1672
1660
|
id: serviceId,
|
|
1673
1661
|
name: serviceName,
|
|
1674
|
-
serviceUrl,
|
|
1662
|
+
url: serviceUrl,
|
|
1675
1663
|
abstract,
|
|
1676
1664
|
scope
|
|
1677
1665
|
} = service;
|
|
@@ -1694,38 +1682,38 @@ const {
|
|
|
1694
1682
|
} = slice;
|
|
1695
1683
|
const layerSelectActions = slice.actions;
|
|
1696
1684
|
|
|
1697
|
-
var classof$
|
|
1685
|
+
var classof$1 = classofRaw$2;
|
|
1698
1686
|
|
|
1699
1687
|
// `IsArray` abstract operation
|
|
1700
1688
|
// https://tc39.es/ecma262/#sec-isarray
|
|
1701
1689
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
1702
|
-
var isArray$
|
|
1703
|
-
return classof$
|
|
1690
|
+
var isArray$2 = Array.isArray || function isArray(argument) {
|
|
1691
|
+
return classof$1(argument) === 'Array';
|
|
1704
1692
|
};
|
|
1705
1693
|
|
|
1706
|
-
var $TypeError$
|
|
1694
|
+
var $TypeError$2 = TypeError;
|
|
1707
1695
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
1708
1696
|
|
|
1709
1697
|
var doesNotExceedSafeInteger$1 = function (it) {
|
|
1710
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$
|
|
1698
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$2('Maximum allowed index exceeded');
|
|
1711
1699
|
return it;
|
|
1712
1700
|
};
|
|
1713
1701
|
|
|
1714
1702
|
var classofRaw = classofRaw$2;
|
|
1715
|
-
var uncurryThis$
|
|
1703
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1716
1704
|
|
|
1717
1705
|
var functionUncurryThisClause = function (fn) {
|
|
1718
1706
|
// Nashorn bug:
|
|
1719
1707
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1720
1708
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1721
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
1709
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
|
|
1722
1710
|
};
|
|
1723
1711
|
|
|
1724
|
-
var uncurryThis$
|
|
1712
|
+
var uncurryThis$5 = functionUncurryThisClause;
|
|
1725
1713
|
var aCallable$3 = aCallable$6;
|
|
1726
1714
|
var NATIVE_BIND = functionBindNative;
|
|
1727
1715
|
|
|
1728
|
-
var bind$1 = uncurryThis$
|
|
1716
|
+
var bind$1 = uncurryThis$5(uncurryThis$5.bind);
|
|
1729
1717
|
|
|
1730
1718
|
// optional / simple context binding
|
|
1731
1719
|
var functionBindContext = function (fn, that) {
|
|
@@ -1735,7 +1723,7 @@ var functionBindContext = function (fn, that) {
|
|
|
1735
1723
|
};
|
|
1736
1724
|
};
|
|
1737
1725
|
|
|
1738
|
-
var isArray$
|
|
1726
|
+
var isArray$1 = isArray$2;
|
|
1739
1727
|
var lengthOfArrayLike$2 = lengthOfArrayLike$5;
|
|
1740
1728
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
1741
1729
|
var bind = functionBindContext;
|
|
@@ -1752,7 +1740,7 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
|
|
|
1752
1740
|
if (sourceIndex in source) {
|
|
1753
1741
|
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
|
|
1754
1742
|
|
|
1755
|
-
if (depth > 0 && isArray$
|
|
1743
|
+
if (depth > 0 && isArray$1(element)) {
|
|
1756
1744
|
elementLen = lengthOfArrayLike$2(element);
|
|
1757
1745
|
targetIndex = flattenIntoArray$1(target, original, element, elementLen, targetIndex, depth - 1) - 1;
|
|
1758
1746
|
} else {
|
|
@@ -1769,17 +1757,17 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
|
|
|
1769
1757
|
|
|
1770
1758
|
var flattenIntoArray_1 = flattenIntoArray$1;
|
|
1771
1759
|
|
|
1772
|
-
var uncurryThis$
|
|
1773
|
-
var fails$
|
|
1760
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1761
|
+
var fails$6 = fails$i;
|
|
1774
1762
|
var isCallable$4 = isCallable$g;
|
|
1775
|
-
var classof
|
|
1763
|
+
var classof = classof$3;
|
|
1776
1764
|
var getBuiltIn = getBuiltIn$4;
|
|
1777
1765
|
var inspectSource = inspectSource$2;
|
|
1778
1766
|
|
|
1779
1767
|
var noop = function () { /* empty */ };
|
|
1780
1768
|
var construct = getBuiltIn('Reflect', 'construct');
|
|
1781
1769
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1782
|
-
var exec$1 = uncurryThis$
|
|
1770
|
+
var exec$1 = uncurryThis$4(constructorRegExp.exec);
|
|
1783
1771
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1784
1772
|
|
|
1785
1773
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -1794,7 +1782,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1794
1782
|
|
|
1795
1783
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1796
1784
|
if (!isCallable$4(argument)) return false;
|
|
1797
|
-
switch (classof
|
|
1785
|
+
switch (classof(argument)) {
|
|
1798
1786
|
case 'AsyncFunction':
|
|
1799
1787
|
case 'GeneratorFunction':
|
|
1800
1788
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -1813,7 +1801,7 @@ isConstructorLegacy.sham = true;
|
|
|
1813
1801
|
|
|
1814
1802
|
// `IsConstructor` abstract operation
|
|
1815
1803
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1816
|
-
var isConstructor$
|
|
1804
|
+
var isConstructor$1 = !construct || fails$6(function () {
|
|
1817
1805
|
var called;
|
|
1818
1806
|
return isConstructorModern(isConstructorModern.call)
|
|
1819
1807
|
|| !isConstructorModern(Object)
|
|
@@ -1821,24 +1809,24 @@ var isConstructor$2 = !construct || fails$8(function () {
|
|
|
1821
1809
|
|| called;
|
|
1822
1810
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
1823
1811
|
|
|
1824
|
-
var isArray
|
|
1825
|
-
var isConstructor
|
|
1826
|
-
var isObject$
|
|
1827
|
-
var wellKnownSymbol$
|
|
1812
|
+
var isArray = isArray$2;
|
|
1813
|
+
var isConstructor = isConstructor$1;
|
|
1814
|
+
var isObject$3 = isObject$a;
|
|
1815
|
+
var wellKnownSymbol$4 = wellKnownSymbol$b;
|
|
1828
1816
|
|
|
1829
|
-
var SPECIES
|
|
1817
|
+
var SPECIES = wellKnownSymbol$4('species');
|
|
1830
1818
|
var $Array = Array;
|
|
1831
1819
|
|
|
1832
1820
|
// a part of `ArraySpeciesCreate` abstract operation
|
|
1833
1821
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
1834
1822
|
var arraySpeciesConstructor$1 = function (originalArray) {
|
|
1835
1823
|
var C;
|
|
1836
|
-
if (isArray
|
|
1824
|
+
if (isArray(originalArray)) {
|
|
1837
1825
|
C = originalArray.constructor;
|
|
1838
1826
|
// cross-realm fallback
|
|
1839
|
-
if (isConstructor
|
|
1840
|
-
else if (isObject$
|
|
1841
|
-
C = C[SPECIES
|
|
1827
|
+
if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;
|
|
1828
|
+
else if (isObject$3(C)) {
|
|
1829
|
+
C = C[SPECIES];
|
|
1842
1830
|
if (C === null) C = undefined;
|
|
1843
1831
|
}
|
|
1844
1832
|
} return C === undefined ? $Array : C;
|
|
@@ -1875,9 +1863,9 @@ $$4({ target: 'Array', proto: true }, {
|
|
|
1875
1863
|
|
|
1876
1864
|
var iterators = {};
|
|
1877
1865
|
|
|
1878
|
-
var fails$
|
|
1866
|
+
var fails$5 = fails$i;
|
|
1879
1867
|
|
|
1880
|
-
var correctPrototypeGetter = !fails$
|
|
1868
|
+
var correctPrototypeGetter = !fails$5(function () {
|
|
1881
1869
|
function F() { /* empty */ }
|
|
1882
1870
|
F.prototype.constructor = null;
|
|
1883
1871
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1906,14 +1894,14 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
|
|
|
1906
1894
|
} return object instanceof $Object ? ObjectPrototype : null;
|
|
1907
1895
|
};
|
|
1908
1896
|
|
|
1909
|
-
var fails$
|
|
1897
|
+
var fails$4 = fails$i;
|
|
1910
1898
|
var isCallable$2 = isCallable$g;
|
|
1911
|
-
var isObject$
|
|
1899
|
+
var isObject$2 = isObject$a;
|
|
1912
1900
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1913
|
-
var defineBuiltIn$
|
|
1914
|
-
var wellKnownSymbol$
|
|
1901
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1902
|
+
var wellKnownSymbol$3 = wellKnownSymbol$b;
|
|
1915
1903
|
|
|
1916
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
1904
|
+
var ITERATOR$2 = wellKnownSymbol$3('iterator');
|
|
1917
1905
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1918
1906
|
|
|
1919
1907
|
// `%IteratorPrototype%` object
|
|
@@ -1931,7 +1919,7 @@ if ([].keys) {
|
|
|
1931
1919
|
}
|
|
1932
1920
|
}
|
|
1933
1921
|
|
|
1934
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1922
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$4(function () {
|
|
1935
1923
|
var test = {};
|
|
1936
1924
|
// FF44- legacy iterators case
|
|
1937
1925
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1942,7 +1930,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1942
1930
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1943
1931
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1944
1932
|
if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
|
|
1945
|
-
defineBuiltIn$
|
|
1933
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1946
1934
|
return this;
|
|
1947
1935
|
});
|
|
1948
1936
|
}
|
|
@@ -1954,9 +1942,9 @@ var iteratorsCore = {
|
|
|
1954
1942
|
|
|
1955
1943
|
var defineProperty$1 = objectDefineProperty.f;
|
|
1956
1944
|
var hasOwn = hasOwnProperty_1;
|
|
1957
|
-
var wellKnownSymbol$
|
|
1945
|
+
var wellKnownSymbol$2 = wellKnownSymbol$b;
|
|
1958
1946
|
|
|
1959
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1947
|
+
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
1960
1948
|
|
|
1961
1949
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1962
1950
|
if (target && !STATIC) target = target.prototype;
|
|
@@ -1981,35 +1969,36 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1981
1969
|
return IteratorConstructor;
|
|
1982
1970
|
};
|
|
1983
1971
|
|
|
1984
|
-
var uncurryThis$
|
|
1972
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
1985
1973
|
var aCallable$1 = aCallable$6;
|
|
1986
1974
|
|
|
1987
1975
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1988
1976
|
try {
|
|
1989
1977
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1990
|
-
return uncurryThis$
|
|
1978
|
+
return uncurryThis$3(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1991
1979
|
} catch (error) { /* empty */ }
|
|
1992
1980
|
};
|
|
1993
1981
|
|
|
1994
|
-
var isObject = isObject$
|
|
1982
|
+
var isObject$1 = isObject$a;
|
|
1995
1983
|
|
|
1996
1984
|
var isPossiblePrototype$1 = function (argument) {
|
|
1997
|
-
return isObject(argument) || argument === null;
|
|
1985
|
+
return isObject$1(argument) || argument === null;
|
|
1998
1986
|
};
|
|
1999
1987
|
|
|
2000
1988
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
2001
1989
|
|
|
2002
1990
|
var $String = String;
|
|
2003
|
-
var $TypeError$
|
|
1991
|
+
var $TypeError$1 = TypeError;
|
|
2004
1992
|
|
|
2005
1993
|
var aPossiblePrototype$1 = function (argument) {
|
|
2006
1994
|
if (isPossiblePrototype(argument)) return argument;
|
|
2007
|
-
throw new $TypeError$
|
|
1995
|
+
throw new $TypeError$1("Can't set " + $String(argument) + ' as a prototype');
|
|
2008
1996
|
};
|
|
2009
1997
|
|
|
2010
1998
|
/* eslint-disable no-proto -- safe */
|
|
2011
1999
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
2012
|
-
var
|
|
2000
|
+
var isObject = isObject$a;
|
|
2001
|
+
var requireObjectCoercible = requireObjectCoercible$4;
|
|
2013
2002
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
2014
2003
|
|
|
2015
2004
|
// `Object.setPrototypeOf` method
|
|
@@ -2026,8 +2015,9 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
2026
2015
|
CORRECT_SETTER = test instanceof Array;
|
|
2027
2016
|
} catch (error) { /* empty */ }
|
|
2028
2017
|
return function setPrototypeOf(O, proto) {
|
|
2029
|
-
|
|
2018
|
+
requireObjectCoercible(O);
|
|
2030
2019
|
aPossiblePrototype(proto);
|
|
2020
|
+
if (!isObject(O)) return O;
|
|
2031
2021
|
if (CORRECT_SETTER) setter(O, proto);
|
|
2032
2022
|
else O.__proto__ = proto;
|
|
2033
2023
|
return O;
|
|
@@ -2035,16 +2025,16 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
2035
2025
|
}() : undefined);
|
|
2036
2026
|
|
|
2037
2027
|
var $$3 = _export;
|
|
2038
|
-
var call$
|
|
2028
|
+
var call$2 = functionCall;
|
|
2039
2029
|
var FunctionName = functionName;
|
|
2040
2030
|
var isCallable$1 = isCallable$g;
|
|
2041
2031
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
2042
2032
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
2043
2033
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
2044
2034
|
var setToStringTag$1 = setToStringTag$3;
|
|
2045
|
-
var createNonEnumerableProperty$
|
|
2046
|
-
var defineBuiltIn
|
|
2047
|
-
var wellKnownSymbol$
|
|
2035
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
2036
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
2037
|
+
var wellKnownSymbol$1 = wellKnownSymbol$b;
|
|
2048
2038
|
var Iterators$1 = iterators;
|
|
2049
2039
|
var IteratorsCore = iteratorsCore;
|
|
2050
2040
|
|
|
@@ -2052,7 +2042,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
|
2052
2042
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
2053
2043
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
2054
2044
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
2055
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
2045
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
2056
2046
|
var KEYS = 'keys';
|
|
2057
2047
|
var VALUES = 'values';
|
|
2058
2048
|
var ENTRIES = 'entries';
|
|
@@ -2093,7 +2083,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
2093
2083
|
if (setPrototypeOf) {
|
|
2094
2084
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
2095
2085
|
} else if (!isCallable$1(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
2096
|
-
defineBuiltIn
|
|
2086
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
2097
2087
|
}
|
|
2098
2088
|
}
|
|
2099
2089
|
// Set @@toStringTag to native iterators
|
|
@@ -2104,10 +2094,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
2104
2094
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
2105
2095
|
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
2106
2096
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
2107
|
-
createNonEnumerableProperty$
|
|
2097
|
+
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
2108
2098
|
} else {
|
|
2109
2099
|
INCORRECT_VALUES_NAME = true;
|
|
2110
|
-
defaultIterator = function values() { return call$
|
|
2100
|
+
defaultIterator = function values() { return call$2(nativeIterator, this); };
|
|
2111
2101
|
}
|
|
2112
2102
|
}
|
|
2113
2103
|
|
|
@@ -2120,14 +2110,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
2120
2110
|
};
|
|
2121
2111
|
if (FORCED) for (KEY in methods) {
|
|
2122
2112
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
2123
|
-
defineBuiltIn
|
|
2113
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
2124
2114
|
}
|
|
2125
2115
|
} else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
2126
2116
|
}
|
|
2127
2117
|
|
|
2128
2118
|
// define iterator
|
|
2129
2119
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
2130
|
-
defineBuiltIn
|
|
2120
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
2131
2121
|
}
|
|
2132
2122
|
Iterators$1[NAME] = defaultIterator;
|
|
2133
2123
|
|
|
@@ -2201,17 +2191,17 @@ if (DESCRIPTORS && values.name !== 'values') try {
|
|
|
2201
2191
|
defineProperty(values, 'name', { value: 'values' });
|
|
2202
2192
|
} catch (error) { /* empty */ }
|
|
2203
2193
|
|
|
2204
|
-
var tryToString
|
|
2194
|
+
var tryToString = tryToString$2;
|
|
2205
2195
|
|
|
2206
|
-
var $TypeError
|
|
2196
|
+
var $TypeError = TypeError;
|
|
2207
2197
|
|
|
2208
2198
|
var deletePropertyOrThrow$1 = function (O, P) {
|
|
2209
|
-
if (!delete O[P]) throw new $TypeError
|
|
2199
|
+
if (!delete O[P]) throw new $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
|
|
2210
2200
|
};
|
|
2211
2201
|
|
|
2212
|
-
var uncurryThis$
|
|
2202
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2213
2203
|
|
|
2214
|
-
var arraySlice$1 = uncurryThis$
|
|
2204
|
+
var arraySlice$1 = uncurryThis$2([].slice);
|
|
2215
2205
|
|
|
2216
2206
|
var arraySlice = arraySlice$1;
|
|
2217
2207
|
|
|
@@ -2272,13 +2262,13 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
|
2272
2262
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
2273
2263
|
|
|
2274
2264
|
var $$2 = _export;
|
|
2275
|
-
var uncurryThis$
|
|
2265
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2276
2266
|
var aCallable = aCallable$6;
|
|
2277
2267
|
var toObject = toObject$6;
|
|
2278
2268
|
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
2279
2269
|
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
2280
|
-
var toString$
|
|
2281
|
-
var fails$
|
|
2270
|
+
var toString$2 = toString$4;
|
|
2271
|
+
var fails$3 = fails$i;
|
|
2282
2272
|
var internalSort = arraySort;
|
|
2283
2273
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
2284
2274
|
var FF = engineFfVersion;
|
|
@@ -2286,22 +2276,22 @@ var IE_OR_EDGE = engineIsIeOrEdge;
|
|
|
2286
2276
|
var V8 = engineV8Version;
|
|
2287
2277
|
var WEBKIT = engineWebkitVersion;
|
|
2288
2278
|
|
|
2289
|
-
var test
|
|
2290
|
-
var nativeSort = uncurryThis$
|
|
2291
|
-
var push
|
|
2279
|
+
var test = [];
|
|
2280
|
+
var nativeSort = uncurryThis$1(test.sort);
|
|
2281
|
+
var push = uncurryThis$1(test.push);
|
|
2292
2282
|
|
|
2293
2283
|
// IE8-
|
|
2294
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
2295
|
-
test
|
|
2284
|
+
var FAILS_ON_UNDEFINED = fails$3(function () {
|
|
2285
|
+
test.sort(undefined);
|
|
2296
2286
|
});
|
|
2297
2287
|
// V8 bug
|
|
2298
|
-
var FAILS_ON_NULL = fails$
|
|
2299
|
-
test
|
|
2288
|
+
var FAILS_ON_NULL = fails$3(function () {
|
|
2289
|
+
test.sort(null);
|
|
2300
2290
|
});
|
|
2301
2291
|
// Old WebKit
|
|
2302
2292
|
var STRICT_METHOD = arrayMethodIsStrict('sort');
|
|
2303
2293
|
|
|
2304
|
-
var STABLE_SORT = !fails$
|
|
2294
|
+
var STABLE_SORT = !fails$3(function () {
|
|
2305
2295
|
// feature detection can be too slow, so check engines versions
|
|
2306
2296
|
if (V8) return V8 < 70;
|
|
2307
2297
|
if (FF && FF > 3) return;
|
|
@@ -2322,14 +2312,14 @@ var STABLE_SORT = !fails$5(function () {
|
|
|
2322
2312
|
}
|
|
2323
2313
|
|
|
2324
2314
|
for (index = 0; index < 47; index++) {
|
|
2325
|
-
test
|
|
2315
|
+
test.push({ k: chr + index, v: value });
|
|
2326
2316
|
}
|
|
2327
2317
|
}
|
|
2328
2318
|
|
|
2329
|
-
test
|
|
2319
|
+
test.sort(function (a, b) { return b.v - a.v; });
|
|
2330
2320
|
|
|
2331
|
-
for (index = 0; index < test
|
|
2332
|
-
chr = test
|
|
2321
|
+
for (index = 0; index < test.length; index++) {
|
|
2322
|
+
chr = test[index].k.charAt(0);
|
|
2333
2323
|
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
2334
2324
|
}
|
|
2335
2325
|
|
|
@@ -2343,7 +2333,7 @@ var getSortCompare = function (comparefn) {
|
|
|
2343
2333
|
if (y === undefined) return -1;
|
|
2344
2334
|
if (x === undefined) return 1;
|
|
2345
2335
|
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
2346
|
-
return toString$
|
|
2336
|
+
return toString$2(x) > toString$2(y) ? 1 : -1;
|
|
2347
2337
|
};
|
|
2348
2338
|
};
|
|
2349
2339
|
|
|
@@ -2362,7 +2352,7 @@ $$2({ target: 'Array', proto: true, forced: FORCED }, {
|
|
|
2362
2352
|
var itemsLength, index;
|
|
2363
2353
|
|
|
2364
2354
|
for (index = 0; index < arrayLength; index++) {
|
|
2365
|
-
if (index in array) push
|
|
2355
|
+
if (index in array) push(items, array[index]);
|
|
2366
2356
|
}
|
|
2367
2357
|
|
|
2368
2358
|
internalSort(items, getSortCompare(comparefn));
|
|
@@ -2428,22 +2418,22 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
2428
2418
|
|
|
2429
2419
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
2430
2420
|
|
|
2431
|
-
var global$4 = global$
|
|
2421
|
+
var global$4 = global$f;
|
|
2432
2422
|
var DOMIterables = domIterables;
|
|
2433
2423
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
2434
2424
|
var ArrayIteratorMethods = es_array_iterator;
|
|
2435
|
-
var createNonEnumerableProperty
|
|
2425
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
2436
2426
|
var setToStringTag = setToStringTag$3;
|
|
2437
|
-
var wellKnownSymbol
|
|
2427
|
+
var wellKnownSymbol = wellKnownSymbol$b;
|
|
2438
2428
|
|
|
2439
|
-
var ITERATOR = wellKnownSymbol
|
|
2429
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
2440
2430
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
2441
2431
|
|
|
2442
2432
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
2443
2433
|
if (CollectionPrototype) {
|
|
2444
2434
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2445
2435
|
if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
|
|
2446
|
-
createNonEnumerableProperty
|
|
2436
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
|
|
2447
2437
|
} catch (error) {
|
|
2448
2438
|
CollectionPrototype[ITERATOR] = ArrayValues;
|
|
2449
2439
|
}
|
|
@@ -2451,7 +2441,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
2451
2441
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
2452
2442
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2453
2443
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
2454
|
-
createNonEnumerableProperty
|
|
2444
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
2455
2445
|
} catch (error) {
|
|
2456
2446
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
2457
2447
|
}
|
|
@@ -2577,19 +2567,11 @@ const isAllFiltersChecked = createSelector(layerSelectStore, store => {
|
|
|
2577
2567
|
return (_c = (_b = (_a = store === null || store === void 0 ? void 0 : store.filters) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.entities[filterId]) === null || _c === void 0 ? void 0 : _c.checked;
|
|
2578
2568
|
});
|
|
2579
2569
|
});
|
|
2580
|
-
/**
|
|
2581
|
-
* Returns the active layer info
|
|
2582
|
-
*
|
|
2583
|
-
* Example getActiveLayerInfo(store);
|
|
2584
|
-
* @param {object} store store: object - store object
|
|
2585
|
-
* @returns {object} returnType: ActiveLayerObject
|
|
2586
|
-
*/
|
|
2587
|
-
const getActiveLayerInfo = createSelector(layerSelectStore, store => store === null || store === void 0 ? void 0 : store.activeLayerInfo);
|
|
2588
2570
|
/**
|
|
2589
2571
|
* Returns a filtered active layer object based on the given filter settings
|
|
2590
2572
|
* Example: layerSelectSelectors.getFilteredLayers(store, filteredSettings);
|
|
2591
2573
|
* @param {object} store store: object - object from which the service state will be extracted
|
|
2592
|
-
* @returns {array} returnType:
|
|
2574
|
+
* @returns {array} returnType: LayerWithServiceName - an array of all filtered activelayers
|
|
2593
2575
|
*/
|
|
2594
2576
|
const getFilteredLayers = createSelector([getEnabledServiceIds, serviceSelectors.getServices, getCheckedFilterIds, isAllFiltersChecked, getSearchFilter], (enabledServiceIds, servicesStore, checkedFilterIds, allFiltersActive, searchFilter) => {
|
|
2595
2577
|
return enabledServiceIds.reduce((layerList, serviceId) => {
|
|
@@ -2626,7 +2608,6 @@ var selectors = /*#__PURE__*/Object.freeze({
|
|
|
2626
2608
|
getCheckedFilterIds: getCheckedFilterIds,
|
|
2627
2609
|
getFilters: getFilters,
|
|
2628
2610
|
isAllFiltersChecked: isAllFiltersChecked,
|
|
2629
|
-
getActiveLayerInfo: getActiveLayerInfo,
|
|
2630
2611
|
getFilteredLayers: getFilteredLayers,
|
|
2631
2612
|
getServicePopupDetails: getServicePopupDetails
|
|
2632
2613
|
});
|
|
@@ -2652,50 +2633,6 @@ var types = /*#__PURE__*/Object.freeze({
|
|
|
2652
2633
|
__proto__: null
|
|
2653
2634
|
});
|
|
2654
2635
|
|
|
2655
|
-
/* *
|
|
2656
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2657
|
-
* you may not use this file except in compliance with the License.
|
|
2658
|
-
* You may obtain a copy of the License at
|
|
2659
|
-
*
|
|
2660
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2661
|
-
*
|
|
2662
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2663
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2664
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2665
|
-
* See the License for the specific language governing permissions and
|
|
2666
|
-
* limitations under the License.
|
|
2667
|
-
*
|
|
2668
|
-
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2669
|
-
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
2670
|
-
* */
|
|
2671
|
-
const getUserAddedServices = () => {
|
|
2672
|
-
try {
|
|
2673
|
-
const storedString = window.localStorage.getItem('userAddedServices');
|
|
2674
|
-
const parsedData = JSON.parse(storedString);
|
|
2675
|
-
if (parsedData && typeof parsedData === 'object') {
|
|
2676
|
-
return Object.entries(parsedData).reduce((userServices, [serviceUrl, service]) => Object.assign(Object.assign({}, userServices), isNoIdService(service) ? {
|
|
2677
|
-
[serviceUrl]: Object.assign(Object.assign({}, service), {
|
|
2678
|
-
scope: 'user'
|
|
2679
|
-
})
|
|
2680
|
-
} : {}), {});
|
|
2681
|
-
}
|
|
2682
|
-
} catch (e) {
|
|
2683
|
-
console.error('Unable to read services from localStorage: ', e);
|
|
2684
|
-
}
|
|
2685
|
-
return {};
|
|
2686
|
-
};
|
|
2687
|
-
const setUserAddedServices = services => {
|
|
2688
|
-
try {
|
|
2689
|
-
window.localStorage.setItem('userAddedServices', JSON.stringify(services));
|
|
2690
|
-
} catch (e) {
|
|
2691
|
-
console.error('Unable to write services to localStorage: ', e);
|
|
2692
|
-
}
|
|
2693
|
-
};
|
|
2694
|
-
const isNoIdService = param => {
|
|
2695
|
-
const serviceParam = param;
|
|
2696
|
-
return !!((serviceParam === null || serviceParam === void 0 ? void 0 : serviceParam.name) && (serviceParam === null || serviceParam === void 0 ? void 0 : serviceParam.url));
|
|
2697
|
-
};
|
|
2698
|
-
|
|
2699
2636
|
function* layerSelectCloseInfoDialogSaga({
|
|
2700
2637
|
type,
|
|
2701
2638
|
payload
|
|
@@ -2705,10 +2642,7 @@ function* layerSelectCloseInfoDialogSaga({
|
|
|
2705
2642
|
{
|
|
2706
2643
|
const togglePayload = payload;
|
|
2707
2644
|
if (!togglePayload.setOpen && togglePayload.type === uiTypes.DialogTypes.LayerSelect) {
|
|
2708
|
-
yield put(
|
|
2709
|
-
type: uiTypes.DialogTypes.LayerInfo,
|
|
2710
|
-
setOpen: false
|
|
2711
|
-
}));
|
|
2645
|
+
yield put(layerActions.hideLayerInfo());
|
|
2712
2646
|
}
|
|
2713
2647
|
break;
|
|
2714
2648
|
}
|
|
@@ -2718,10 +2652,7 @@ function* layerSelectCloseInfoDialogSaga({
|
|
|
2718
2652
|
if (!activeMapIdPayload.setOpen) {
|
|
2719
2653
|
const isLayerInfoDialogOpen = yield select(uiSelectors.getisDialogOpen, uiTypes.DialogTypes.LayerInfo);
|
|
2720
2654
|
if (isLayerInfoDialogOpen) {
|
|
2721
|
-
yield put(
|
|
2722
|
-
type: uiTypes.DialogTypes.LayerInfo,
|
|
2723
|
-
setOpen: false
|
|
2724
|
-
}));
|
|
2655
|
+
yield put(layerActions.hideLayerInfo());
|
|
2725
2656
|
}
|
|
2726
2657
|
}
|
|
2727
2658
|
break;
|
|
@@ -2731,12 +2662,10 @@ function* layerSelectCloseInfoDialogSaga({
|
|
|
2731
2662
|
const isLayerInfoDialogOpen = yield select(uiSelectors.getisDialogOpen, uiTypes.DialogTypes.LayerInfo);
|
|
2732
2663
|
if (isLayerInfoDialogOpen) {
|
|
2733
2664
|
const filteredLayers = yield select(getFilteredLayers);
|
|
2734
|
-
const dialogInfo = yield select(getActiveLayerInfo);
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
setOpen: false
|
|
2739
|
-
}));
|
|
2665
|
+
const dialogInfo = yield select(layerSelectors.getActiveLayerInfo);
|
|
2666
|
+
const layerWithData = yield select(serviceSelectors.getLayerFromService, dialogInfo.serviceUrl, dialogInfo.layerName);
|
|
2667
|
+
if (!filteredLayers.map(layer => layer.title).includes(layerWithData.title)) {
|
|
2668
|
+
yield put(layerActions.hideLayerInfo());
|
|
2740
2669
|
}
|
|
2741
2670
|
}
|
|
2742
2671
|
}
|
|
@@ -3124,944 +3053,56 @@ const KeywordFilterResultsConnect = ({
|
|
|
3124
3053
|
});
|
|
3125
3054
|
};
|
|
3126
3055
|
|
|
3127
|
-
|
|
3128
|
-
Copyright (c) Microsoft Corporation.
|
|
3129
|
-
|
|
3130
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
3131
|
-
purpose with or without fee is hereby granted.
|
|
3132
|
-
|
|
3133
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3134
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3135
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3136
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3137
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3138
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3139
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
3140
|
-
***************************************************************************** */
|
|
3141
|
-
|
|
3142
|
-
function __rest(s, e) {
|
|
3143
|
-
var t = {};
|
|
3144
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3145
|
-
t[p] = s[p];
|
|
3146
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3147
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3148
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3149
|
-
t[p[i]] = s[p[i]];
|
|
3150
|
-
}
|
|
3151
|
-
return t;
|
|
3152
|
-
}
|
|
3153
|
-
|
|
3154
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
3155
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3156
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3157
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
3158
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
3159
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
3160
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3161
|
-
});
|
|
3162
|
-
}
|
|
3163
|
-
|
|
3164
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
3165
|
-
var e = new Error(message);
|
|
3166
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
3167
|
-
};
|
|
3168
|
-
|
|
3169
|
-
const LayerInfoButton = _a => {
|
|
3170
|
-
var {
|
|
3171
|
-
isOpenInStore,
|
|
3172
|
-
isActive,
|
|
3173
|
-
onClick
|
|
3174
|
-
} = _a,
|
|
3175
|
-
props = __rest(_a, ["isOpenInStore", "isActive", "onClick"]);
|
|
3176
|
-
return jsx(CustomIconButton, Object.assign({
|
|
3177
|
-
variant: "flat",
|
|
3178
|
-
isSelected: isActive && isOpenInStore,
|
|
3179
|
-
onClick: onClick,
|
|
3180
|
-
id: "layerInfoButton",
|
|
3181
|
-
"data-testid": "layerInfoButton",
|
|
3182
|
-
"aria-label": "layer info",
|
|
3183
|
-
className: "layerInfoButton"
|
|
3184
|
-
}, props, {
|
|
3185
|
-
children: jsx(Info, {})
|
|
3186
|
-
}));
|
|
3187
|
-
};
|
|
3188
|
-
|
|
3189
|
-
const LayerInfoButtonConnect = ({
|
|
3190
|
-
isLayerMissing,
|
|
3056
|
+
const LayerAddRemoveButton = ({
|
|
3191
3057
|
layer,
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
const currentActiveMapId = useAppSelector(store => uiSelectors.getDialogMapId(store, uiTypes.DialogTypes.LayerInfo));
|
|
3198
|
-
const isOpenInStore = useAppSelector(store => uiSelectors.getisDialogOpen(store, uiTypes.DialogTypes.LayerInfo));
|
|
3199
|
-
const currentLayerInfo = useAppSelector(store => getActiveLayerInfo(store));
|
|
3200
|
-
const isActive = layer.name === (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.name) && serviceName === (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.serviceName);
|
|
3201
|
-
const toggleInfoDialog = React__default.useCallback(() => {
|
|
3202
|
-
dispatch(uiActions.setActiveMapIdForDialog({
|
|
3203
|
-
type: uiTypes.DialogTypes.LayerInfo,
|
|
3204
|
-
mapId,
|
|
3205
|
-
setOpen: currentActiveMapId !== mapId ? true : !isOpenInStore,
|
|
3206
|
-
source: _source
|
|
3207
|
-
}));
|
|
3208
|
-
}, [currentActiveMapId, dispatch, isOpenInStore, mapId, _source]);
|
|
3209
|
-
const setActiveLayerInfo = React__default.useCallback(() => {
|
|
3210
|
-
dispatch(layerSelectActions.setActiveLayerInfo({
|
|
3211
|
-
layer: Object.assign(Object.assign({}, layer), {
|
|
3212
|
-
serviceName
|
|
3213
|
-
})
|
|
3214
|
-
}));
|
|
3215
|
-
dispatch(uiActions.orderDialog({
|
|
3216
|
-
type: uiTypes.DialogTypes.LayerInfo
|
|
3217
|
-
}));
|
|
3218
|
-
}, [dispatch, layer, serviceName]);
|
|
3219
|
-
const onClick = () => {
|
|
3220
|
-
if (isActive) {
|
|
3221
|
-
toggleInfoDialog();
|
|
3222
|
-
}
|
|
3223
|
-
if (!isActive && isOpenInStore) {
|
|
3224
|
-
setActiveLayerInfo();
|
|
3225
|
-
}
|
|
3226
|
-
if (!isActive && !isOpenInStore) {
|
|
3227
|
-
setActiveLayerInfo();
|
|
3228
|
-
toggleInfoDialog();
|
|
3229
|
-
}
|
|
3230
|
-
};
|
|
3231
|
-
return jsx(LayerInfoButton, {
|
|
3232
|
-
disabled: isLayerMissing,
|
|
3233
|
-
isActive: isActive,
|
|
3234
|
-
isOpenInStore: isOpenInStore,
|
|
3235
|
-
onClick: onClick
|
|
3236
|
-
});
|
|
3237
|
-
};
|
|
3238
|
-
|
|
3239
|
-
const textStyle = {
|
|
3240
|
-
lineHeight: '20px',
|
|
3241
|
-
letterSpacing: '0.25px'
|
|
3242
|
-
};
|
|
3243
|
-
const textStyleWithMargin = Object.assign(Object.assign({}, textStyle), {
|
|
3244
|
-
marginBottom: 1
|
|
3245
|
-
});
|
|
3246
|
-
const LayerInfoText = ({
|
|
3247
|
-
label,
|
|
3248
|
-
value
|
|
3249
|
-
}) => {
|
|
3250
|
-
return jsxs(Fragment, {
|
|
3251
|
-
children: [jsx(Typography$1, Object.assign({
|
|
3252
|
-
variant: "subtitle2",
|
|
3253
|
-
sx: textStyle
|
|
3254
|
-
}, {
|
|
3255
|
-
children: label
|
|
3256
|
-
})), jsx(Typography$1, Object.assign({
|
|
3257
|
-
variant: "body2",
|
|
3258
|
-
sx: textStyleWithMargin
|
|
3259
|
-
}, {
|
|
3260
|
-
children: value
|
|
3261
|
-
}))]
|
|
3262
|
-
});
|
|
3263
|
-
};
|
|
3264
|
-
|
|
3265
|
-
const valueStyle = Object.assign(Object.assign({}, textStyle), {
|
|
3266
|
-
overflowWrap: 'break-word'
|
|
3267
|
-
});
|
|
3268
|
-
const LayerInfoList = ({
|
|
3269
|
-
label,
|
|
3270
|
-
list
|
|
3058
|
+
layerIndex,
|
|
3059
|
+
serviceUrl,
|
|
3060
|
+
addLayer,
|
|
3061
|
+
deleteLayer,
|
|
3062
|
+
mapLayers
|
|
3271
3063
|
}) => {
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
}
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
item: true,
|
|
3295
|
-
sx: {
|
|
3296
|
-
marginLeft: '10px'
|
|
3297
|
-
}
|
|
3298
|
-
}, {
|
|
3299
|
-
children: jsxs(Typography$1, Object.assign({
|
|
3300
|
-
variant: "body2",
|
|
3301
|
-
sx: textStyle
|
|
3302
|
-
}, {
|
|
3303
|
-
children: [item.label, ":"]
|
|
3304
|
-
}))
|
|
3305
|
-
}))]
|
|
3306
|
-
})), jsx(Grid$1, Object.assign({
|
|
3307
|
-
item: true,
|
|
3308
|
-
container: true,
|
|
3309
|
-
direction: "row",
|
|
3310
|
-
sx: {
|
|
3311
|
-
marginBottom: 1,
|
|
3312
|
-
paddingLeft: '34px'
|
|
3313
|
-
}
|
|
3314
|
-
}, {
|
|
3315
|
-
children: jsx(Typography$1, Object.assign({
|
|
3316
|
-
variant: "body2",
|
|
3317
|
-
sx: valueStyle
|
|
3318
|
-
}, {
|
|
3319
|
-
children: item.value
|
|
3320
|
-
}))
|
|
3321
|
-
}))]
|
|
3322
|
-
}, item.label))
|
|
3323
|
-
}))]
|
|
3324
|
-
});
|
|
3064
|
+
const foundLayer = mapLayers.find(lr => lr.name === layer.name && lr.service === serviceUrl);
|
|
3065
|
+
return jsx(CustomToggleButton, Object.assign({
|
|
3066
|
+
"data-testid": `layerAddRemoveButton-${layer.name}`,
|
|
3067
|
+
onClick: () => {
|
|
3068
|
+
!foundLayer ? addLayer({
|
|
3069
|
+
serviceUrl,
|
|
3070
|
+
layerName: layer.name
|
|
3071
|
+
}) : deleteLayer({
|
|
3072
|
+
layerId: foundLayer.id,
|
|
3073
|
+
layerIndex
|
|
3074
|
+
});
|
|
3075
|
+
},
|
|
3076
|
+
selected: !!foundLayer,
|
|
3077
|
+
variant: "tool",
|
|
3078
|
+
fullWidth: true,
|
|
3079
|
+
sx: {
|
|
3080
|
+
fontSize: '12px'
|
|
3081
|
+
},
|
|
3082
|
+
className: "layerAddRemoveButton"
|
|
3083
|
+
}, {
|
|
3084
|
+
children: !foundLayer ? 'Add' : 'Remove'
|
|
3085
|
+
}));
|
|
3325
3086
|
};
|
|
3326
3087
|
|
|
3327
|
-
const
|
|
3328
|
-
|
|
3329
|
-
name,
|
|
3330
|
-
dimensions,
|
|
3331
|
-
legendURL
|
|
3088
|
+
const LayerListDimensions = ({
|
|
3089
|
+
dimensions
|
|
3332
3090
|
}) => {
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
})), jsx(LegendLayout, Object.assign({
|
|
3340
|
-
title: title,
|
|
3341
|
-
name: name,
|
|
3342
|
-
dimensions: dimensions
|
|
3091
|
+
if (!dimensions || !dimensions.length) {
|
|
3092
|
+
return null;
|
|
3093
|
+
}
|
|
3094
|
+
return jsx(Fragment, {
|
|
3095
|
+
children: dimensions.map(dimension => jsx(CustomTooltip, Object.assign({
|
|
3096
|
+
title: `${dimension.label}: ${dimension.value}`
|
|
3343
3097
|
}, {
|
|
3344
|
-
children:
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
}
|
|
3351
|
-
|
|
3352
|
-
var $$1 = _export;
|
|
3353
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
3354
|
-
var isArray = isArray$3;
|
|
3355
|
-
|
|
3356
|
-
var nativeReverse = uncurryThis$3([].reverse);
|
|
3357
|
-
var test = [1, 2];
|
|
3358
|
-
|
|
3359
|
-
// `Array.prototype.reverse` method
|
|
3360
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
3361
|
-
// fix for Safari 12.0 bug
|
|
3362
|
-
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
3363
|
-
$$1({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
|
|
3364
|
-
reverse: function reverse() {
|
|
3365
|
-
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
3366
|
-
if (isArray(this)) this.length = this.length;
|
|
3367
|
-
return nativeReverse(this);
|
|
3368
|
-
}
|
|
3369
|
-
});
|
|
3370
|
-
|
|
3371
|
-
var anObject$3 = anObject$9;
|
|
3372
|
-
|
|
3373
|
-
// `RegExp.prototype.flags` getter implementation
|
|
3374
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
3375
|
-
var regexpFlags$1 = function () {
|
|
3376
|
-
var that = anObject$3(this);
|
|
3377
|
-
var result = '';
|
|
3378
|
-
if (that.hasIndices) result += 'd';
|
|
3379
|
-
if (that.global) result += 'g';
|
|
3380
|
-
if (that.ignoreCase) result += 'i';
|
|
3381
|
-
if (that.multiline) result += 'm';
|
|
3382
|
-
if (that.dotAll) result += 's';
|
|
3383
|
-
if (that.unicode) result += 'u';
|
|
3384
|
-
if (that.unicodeSets) result += 'v';
|
|
3385
|
-
if (that.sticky) result += 'y';
|
|
3386
|
-
return result;
|
|
3387
|
-
};
|
|
3388
|
-
|
|
3389
|
-
var fails$4 = fails$k;
|
|
3390
|
-
var global$3 = global$g;
|
|
3391
|
-
|
|
3392
|
-
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
3393
|
-
var $RegExp$2 = global$3.RegExp;
|
|
3394
|
-
|
|
3395
|
-
var UNSUPPORTED_Y$2 = fails$4(function () {
|
|
3396
|
-
var re = $RegExp$2('a', 'y');
|
|
3397
|
-
re.lastIndex = 2;
|
|
3398
|
-
return re.exec('abcd') !== null;
|
|
3399
|
-
});
|
|
3400
|
-
|
|
3401
|
-
// UC Browser bug
|
|
3402
|
-
// https://github.com/zloirock/core-js/issues/1008
|
|
3403
|
-
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$4(function () {
|
|
3404
|
-
return !$RegExp$2('a', 'y').sticky;
|
|
3405
|
-
});
|
|
3406
|
-
|
|
3407
|
-
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$4(function () {
|
|
3408
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
3409
|
-
var re = $RegExp$2('^r', 'gy');
|
|
3410
|
-
re.lastIndex = 2;
|
|
3411
|
-
return re.exec('str') !== null;
|
|
3412
|
-
});
|
|
3413
|
-
|
|
3414
|
-
var regexpStickyHelpers = {
|
|
3415
|
-
BROKEN_CARET: BROKEN_CARET,
|
|
3416
|
-
MISSED_STICKY: MISSED_STICKY,
|
|
3417
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
3418
|
-
};
|
|
3419
|
-
|
|
3420
|
-
var fails$3 = fails$k;
|
|
3421
|
-
var global$2 = global$g;
|
|
3422
|
-
|
|
3423
|
-
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3424
|
-
var $RegExp$1 = global$2.RegExp;
|
|
3425
|
-
|
|
3426
|
-
var regexpUnsupportedDotAll = fails$3(function () {
|
|
3427
|
-
var re = $RegExp$1('.', 's');
|
|
3428
|
-
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
3429
|
-
});
|
|
3430
|
-
|
|
3431
|
-
var fails$2 = fails$k;
|
|
3432
|
-
var global$1 = global$g;
|
|
3433
|
-
|
|
3434
|
-
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3435
|
-
var $RegExp = global$1.RegExp;
|
|
3436
|
-
|
|
3437
|
-
var regexpUnsupportedNcg = fails$2(function () {
|
|
3438
|
-
var re = $RegExp('(?<a>b)', 'g');
|
|
3439
|
-
return re.exec('b').groups.a !== 'b' ||
|
|
3440
|
-
'b'.replace(re, '$<a>c') !== 'bc';
|
|
3441
|
-
});
|
|
3442
|
-
|
|
3443
|
-
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
3444
|
-
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
3445
|
-
var call$3 = functionCall;
|
|
3446
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
3447
|
-
var toString$2 = toString$5;
|
|
3448
|
-
var regexpFlags = regexpFlags$1;
|
|
3449
|
-
var stickyHelpers$1 = regexpStickyHelpers;
|
|
3450
|
-
var shared = shared$4.exports;
|
|
3451
|
-
var create = objectCreate;
|
|
3452
|
-
var getInternalState = internalState.get;
|
|
3453
|
-
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
3454
|
-
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
3455
|
-
|
|
3456
|
-
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
3457
|
-
var nativeExec = RegExp.prototype.exec;
|
|
3458
|
-
var patchedExec = nativeExec;
|
|
3459
|
-
var charAt$2 = uncurryThis$2(''.charAt);
|
|
3460
|
-
var indexOf = uncurryThis$2(''.indexOf);
|
|
3461
|
-
var replace = uncurryThis$2(''.replace);
|
|
3462
|
-
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
3463
|
-
|
|
3464
|
-
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
3465
|
-
var re1 = /a/;
|
|
3466
|
-
var re2 = /b*/g;
|
|
3467
|
-
call$3(nativeExec, re1, 'a');
|
|
3468
|
-
call$3(nativeExec, re2, 'a');
|
|
3469
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
3470
|
-
})();
|
|
3471
|
-
|
|
3472
|
-
var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
|
|
3473
|
-
|
|
3474
|
-
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
3475
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
3476
|
-
|
|
3477
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
3478
|
-
|
|
3479
|
-
if (PATCH) {
|
|
3480
|
-
patchedExec = function exec(string) {
|
|
3481
|
-
var re = this;
|
|
3482
|
-
var state = getInternalState(re);
|
|
3483
|
-
var str = toString$2(string);
|
|
3484
|
-
var raw = state.raw;
|
|
3485
|
-
var result, reCopy, lastIndex, match, i, object, group;
|
|
3486
|
-
|
|
3487
|
-
if (raw) {
|
|
3488
|
-
raw.lastIndex = re.lastIndex;
|
|
3489
|
-
result = call$3(patchedExec, raw, str);
|
|
3490
|
-
re.lastIndex = raw.lastIndex;
|
|
3491
|
-
return result;
|
|
3492
|
-
}
|
|
3493
|
-
|
|
3494
|
-
var groups = state.groups;
|
|
3495
|
-
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
3496
|
-
var flags = call$3(regexpFlags, re);
|
|
3497
|
-
var source = re.source;
|
|
3498
|
-
var charsAdded = 0;
|
|
3499
|
-
var strCopy = str;
|
|
3500
|
-
|
|
3501
|
-
if (sticky) {
|
|
3502
|
-
flags = replace(flags, 'y', '');
|
|
3503
|
-
if (indexOf(flags, 'g') === -1) {
|
|
3504
|
-
flags += 'g';
|
|
3505
|
-
}
|
|
3506
|
-
|
|
3507
|
-
strCopy = stringSlice$2(str, re.lastIndex);
|
|
3508
|
-
// Support anchored sticky behavior.
|
|
3509
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== '\n')) {
|
|
3510
|
-
source = '(?: ' + source + ')';
|
|
3511
|
-
strCopy = ' ' + strCopy;
|
|
3512
|
-
charsAdded++;
|
|
3513
|
-
}
|
|
3514
|
-
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
3515
|
-
// simulate the 'y' flag.
|
|
3516
|
-
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
3517
|
-
}
|
|
3518
|
-
|
|
3519
|
-
if (NPCG_INCLUDED) {
|
|
3520
|
-
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
3521
|
-
}
|
|
3522
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
3523
|
-
|
|
3524
|
-
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
3525
|
-
|
|
3526
|
-
if (sticky) {
|
|
3527
|
-
if (match) {
|
|
3528
|
-
match.input = stringSlice$2(match.input, charsAdded);
|
|
3529
|
-
match[0] = stringSlice$2(match[0], charsAdded);
|
|
3530
|
-
match.index = re.lastIndex;
|
|
3531
|
-
re.lastIndex += match[0].length;
|
|
3532
|
-
} else re.lastIndex = 0;
|
|
3533
|
-
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
3534
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
3535
|
-
}
|
|
3536
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
3537
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
3538
|
-
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
3539
|
-
call$3(nativeReplace, match[0], reCopy, function () {
|
|
3540
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
3541
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
|
3542
|
-
}
|
|
3543
|
-
});
|
|
3544
|
-
}
|
|
3545
|
-
|
|
3546
|
-
if (match && groups) {
|
|
3547
|
-
match.groups = object = create(null);
|
|
3548
|
-
for (i = 0; i < groups.length; i++) {
|
|
3549
|
-
group = groups[i];
|
|
3550
|
-
object[group[0]] = match[group[1]];
|
|
3551
|
-
}
|
|
3552
|
-
}
|
|
3553
|
-
|
|
3554
|
-
return match;
|
|
3555
|
-
};
|
|
3556
|
-
}
|
|
3557
|
-
|
|
3558
|
-
var regexpExec$2 = patchedExec;
|
|
3559
|
-
|
|
3560
|
-
var $ = _export;
|
|
3561
|
-
var exec = regexpExec$2;
|
|
3562
|
-
|
|
3563
|
-
// `RegExp.prototype.exec` method
|
|
3564
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
3565
|
-
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
3566
|
-
exec: exec
|
|
3567
|
-
});
|
|
3568
|
-
|
|
3569
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3570
|
-
|
|
3571
|
-
var call$2 = functionCall;
|
|
3572
|
-
var defineBuiltIn = defineBuiltIn$4;
|
|
3573
|
-
var regexpExec$1 = regexpExec$2;
|
|
3574
|
-
var fails$1 = fails$k;
|
|
3575
|
-
var wellKnownSymbol$1 = wellKnownSymbol$d;
|
|
3576
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
3577
|
-
|
|
3578
|
-
var SPECIES$1 = wellKnownSymbol$1('species');
|
|
3579
|
-
var RegExpPrototype = RegExp.prototype;
|
|
3580
|
-
|
|
3581
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
3582
|
-
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
3583
|
-
|
|
3584
|
-
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
3585
|
-
// String methods call symbol-named RegExp methods
|
|
3586
|
-
var O = {};
|
|
3587
|
-
O[SYMBOL] = function () { return 7; };
|
|
3588
|
-
return ''[KEY](O) !== 7;
|
|
3589
|
-
});
|
|
3590
|
-
|
|
3591
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
3592
|
-
// Symbol-named RegExp methods call .exec
|
|
3593
|
-
var execCalled = false;
|
|
3594
|
-
var re = /a/;
|
|
3595
|
-
|
|
3596
|
-
if (KEY === 'split') {
|
|
3597
|
-
// We can't use real regex here since it causes deoptimization
|
|
3598
|
-
// and serious performance degradation in V8
|
|
3599
|
-
// https://github.com/zloirock/core-js/issues/306
|
|
3600
|
-
re = {};
|
|
3601
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
3602
|
-
// a new one. We need to return the patched regex when creating the new one.
|
|
3603
|
-
re.constructor = {};
|
|
3604
|
-
re.constructor[SPECIES$1] = function () { return re; };
|
|
3605
|
-
re.flags = '';
|
|
3606
|
-
re[SYMBOL] = /./[SYMBOL];
|
|
3607
|
-
}
|
|
3608
|
-
|
|
3609
|
-
re.exec = function () {
|
|
3610
|
-
execCalled = true;
|
|
3611
|
-
return null;
|
|
3612
|
-
};
|
|
3613
|
-
|
|
3614
|
-
re[SYMBOL]('');
|
|
3615
|
-
return !execCalled;
|
|
3616
|
-
});
|
|
3617
|
-
|
|
3618
|
-
if (
|
|
3619
|
-
!DELEGATES_TO_SYMBOL ||
|
|
3620
|
-
!DELEGATES_TO_EXEC ||
|
|
3621
|
-
FORCED
|
|
3622
|
-
) {
|
|
3623
|
-
var nativeRegExpMethod = /./[SYMBOL];
|
|
3624
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
3625
|
-
var $exec = regexp.exec;
|
|
3626
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
3627
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
3628
|
-
// The native String method already delegates to @@method (this
|
|
3629
|
-
// polyfilled function), leasing to infinite recursion.
|
|
3630
|
-
// We avoid it by directly calling the native @@method method.
|
|
3631
|
-
return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
|
|
3632
|
-
}
|
|
3633
|
-
return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
|
|
3634
|
-
}
|
|
3635
|
-
return { done: false };
|
|
3636
|
-
});
|
|
3637
|
-
|
|
3638
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
3639
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
3640
|
-
}
|
|
3641
|
-
|
|
3642
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
3643
|
-
};
|
|
3644
|
-
|
|
3645
|
-
var isConstructor = isConstructor$2;
|
|
3646
|
-
var tryToString = tryToString$3;
|
|
3647
|
-
|
|
3648
|
-
var $TypeError$1 = TypeError;
|
|
3649
|
-
|
|
3650
|
-
// `Assert: IsConstructor(argument) is true`
|
|
3651
|
-
var aConstructor$1 = function (argument) {
|
|
3652
|
-
if (isConstructor(argument)) return argument;
|
|
3653
|
-
throw new $TypeError$1(tryToString(argument) + ' is not a constructor');
|
|
3654
|
-
};
|
|
3655
|
-
|
|
3656
|
-
var anObject$2 = anObject$9;
|
|
3657
|
-
var aConstructor = aConstructor$1;
|
|
3658
|
-
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
3659
|
-
var wellKnownSymbol = wellKnownSymbol$d;
|
|
3660
|
-
|
|
3661
|
-
var SPECIES = wellKnownSymbol('species');
|
|
3662
|
-
|
|
3663
|
-
// `SpeciesConstructor` abstract operation
|
|
3664
|
-
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
3665
|
-
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
3666
|
-
var C = anObject$2(O).constructor;
|
|
3667
|
-
var S;
|
|
3668
|
-
return C === undefined || isNullOrUndefined$1(S = anObject$2(C)[SPECIES]) ? defaultConstructor : aConstructor(S);
|
|
3669
|
-
};
|
|
3670
|
-
|
|
3671
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
3672
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
3673
|
-
var toString$1 = toString$5;
|
|
3674
|
-
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
3675
|
-
|
|
3676
|
-
var charAt$1 = uncurryThis$1(''.charAt);
|
|
3677
|
-
var charCodeAt = uncurryThis$1(''.charCodeAt);
|
|
3678
|
-
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
3679
|
-
|
|
3680
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
3681
|
-
return function ($this, pos) {
|
|
3682
|
-
var S = toString$1(requireObjectCoercible$1($this));
|
|
3683
|
-
var position = toIntegerOrInfinity(pos);
|
|
3684
|
-
var size = S.length;
|
|
3685
|
-
var first, second;
|
|
3686
|
-
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
3687
|
-
first = charCodeAt(S, position);
|
|
3688
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3689
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3690
|
-
? CONVERT_TO_STRING
|
|
3691
|
-
? charAt$1(S, position)
|
|
3692
|
-
: first
|
|
3693
|
-
: CONVERT_TO_STRING
|
|
3694
|
-
? stringSlice$1(S, position, position + 2)
|
|
3695
|
-
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3696
|
-
};
|
|
3697
|
-
};
|
|
3698
|
-
|
|
3699
|
-
var stringMultibyte = {
|
|
3700
|
-
// `String.prototype.codePointAt` method
|
|
3701
|
-
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
3702
|
-
codeAt: createMethod(false),
|
|
3703
|
-
// `String.prototype.at` method
|
|
3704
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
3705
|
-
charAt: createMethod(true)
|
|
3706
|
-
};
|
|
3707
|
-
|
|
3708
|
-
var charAt = stringMultibyte.charAt;
|
|
3709
|
-
|
|
3710
|
-
// `AdvanceStringIndex` abstract operation
|
|
3711
|
-
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
3712
|
-
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
3713
|
-
return index + (unicode ? charAt(S, index).length : 1);
|
|
3714
|
-
};
|
|
3715
|
-
|
|
3716
|
-
var call$1 = functionCall;
|
|
3717
|
-
var anObject$1 = anObject$9;
|
|
3718
|
-
var isCallable = isCallable$g;
|
|
3719
|
-
var classof = classofRaw$2;
|
|
3720
|
-
var regexpExec = regexpExec$2;
|
|
3721
|
-
|
|
3722
|
-
var $TypeError = TypeError;
|
|
3723
|
-
|
|
3724
|
-
// `RegExpExec` abstract operation
|
|
3725
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
|
3726
|
-
var regexpExecAbstract = function (R, S) {
|
|
3727
|
-
var exec = R.exec;
|
|
3728
|
-
if (isCallable(exec)) {
|
|
3729
|
-
var result = call$1(exec, R, S);
|
|
3730
|
-
if (result !== null) anObject$1(result);
|
|
3731
|
-
return result;
|
|
3732
|
-
}
|
|
3733
|
-
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
3734
|
-
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
3735
|
-
};
|
|
3736
|
-
|
|
3737
|
-
var call = functionCall;
|
|
3738
|
-
var uncurryThis = functionUncurryThis;
|
|
3739
|
-
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
3740
|
-
var anObject = anObject$9;
|
|
3741
|
-
var isNullOrUndefined = isNullOrUndefined$4;
|
|
3742
|
-
var requireObjectCoercible = requireObjectCoercible$5;
|
|
3743
|
-
var speciesConstructor = speciesConstructor$1;
|
|
3744
|
-
var advanceStringIndex = advanceStringIndex$1;
|
|
3745
|
-
var toLength = toLength$2;
|
|
3746
|
-
var toString = toString$5;
|
|
3747
|
-
var getMethod = getMethod$2;
|
|
3748
|
-
var regExpExec = regexpExecAbstract;
|
|
3749
|
-
var stickyHelpers = regexpStickyHelpers;
|
|
3750
|
-
var fails = fails$k;
|
|
3751
|
-
|
|
3752
|
-
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
3753
|
-
var MAX_UINT32 = 0xFFFFFFFF;
|
|
3754
|
-
var min = Math.min;
|
|
3755
|
-
var push = uncurryThis([].push);
|
|
3756
|
-
var stringSlice = uncurryThis(''.slice);
|
|
3757
|
-
|
|
3758
|
-
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
3759
|
-
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
3760
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
3761
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
3762
|
-
var re = /(?:)/;
|
|
3763
|
-
var originalExec = re.exec;
|
|
3764
|
-
re.exec = function () { return originalExec.apply(this, arguments); };
|
|
3765
|
-
var result = 'ab'.split(re);
|
|
3766
|
-
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
|
3767
|
-
});
|
|
3768
|
-
|
|
3769
|
-
var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
3770
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
3771
|
-
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
3772
|
-
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
3773
|
-
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
3774
|
-
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
3775
|
-
'.'.split(/()()/).length > 1 ||
|
|
3776
|
-
''.split(/.?/).length;
|
|
3777
|
-
|
|
3778
|
-
// @@split logic
|
|
3779
|
-
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
3780
|
-
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
|
|
3781
|
-
return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
|
|
3782
|
-
} : nativeSplit;
|
|
3783
|
-
|
|
3784
|
-
return [
|
|
3785
|
-
// `String.prototype.split` method
|
|
3786
|
-
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
3787
|
-
function split(separator, limit) {
|
|
3788
|
-
var O = requireObjectCoercible(this);
|
|
3789
|
-
var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT);
|
|
3790
|
-
return splitter
|
|
3791
|
-
? call(splitter, separator, O, limit)
|
|
3792
|
-
: call(internalSplit, toString(O), separator, limit);
|
|
3793
|
-
},
|
|
3794
|
-
// `RegExp.prototype[@@split]` method
|
|
3795
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
3796
|
-
//
|
|
3797
|
-
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
3798
|
-
// the 'y' flag.
|
|
3799
|
-
function (string, limit) {
|
|
3800
|
-
var rx = anObject(this);
|
|
3801
|
-
var S = toString(string);
|
|
3802
|
-
|
|
3803
|
-
if (!BUGGY) {
|
|
3804
|
-
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
3805
|
-
if (res.done) return res.value;
|
|
3806
|
-
}
|
|
3807
|
-
|
|
3808
|
-
var C = speciesConstructor(rx, RegExp);
|
|
3809
|
-
var unicodeMatching = rx.unicode;
|
|
3810
|
-
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
3811
|
-
(rx.multiline ? 'm' : '') +
|
|
3812
|
-
(rx.unicode ? 'u' : '') +
|
|
3813
|
-
(UNSUPPORTED_Y ? 'g' : 'y');
|
|
3814
|
-
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
3815
|
-
// simulate the 'y' flag.
|
|
3816
|
-
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
3817
|
-
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
3818
|
-
if (lim === 0) return [];
|
|
3819
|
-
if (S.length === 0) return regExpExec(splitter, S) === null ? [S] : [];
|
|
3820
|
-
var p = 0;
|
|
3821
|
-
var q = 0;
|
|
3822
|
-
var A = [];
|
|
3823
|
-
while (q < S.length) {
|
|
3824
|
-
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
3825
|
-
var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
|
|
3826
|
-
var e;
|
|
3827
|
-
if (
|
|
3828
|
-
z === null ||
|
|
3829
|
-
(e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
3830
|
-
) {
|
|
3831
|
-
q = advanceStringIndex(S, q, unicodeMatching);
|
|
3832
|
-
} else {
|
|
3833
|
-
push(A, stringSlice(S, p, q));
|
|
3834
|
-
if (A.length === lim) return A;
|
|
3835
|
-
for (var i = 1; i <= z.length - 1; i++) {
|
|
3836
|
-
push(A, z[i]);
|
|
3837
|
-
if (A.length === lim) return A;
|
|
3838
|
-
}
|
|
3839
|
-
q = p = e;
|
|
3840
|
-
}
|
|
3841
|
-
}
|
|
3842
|
-
push(A, stringSlice(S, p));
|
|
3843
|
-
return A;
|
|
3844
|
-
}
|
|
3845
|
-
];
|
|
3846
|
-
}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
3847
|
-
|
|
3848
|
-
const getLayerStyles = layer => {
|
|
3849
|
-
if (!layer.styles) {
|
|
3850
|
-
return '-';
|
|
3851
|
-
}
|
|
3852
|
-
const styles = layer.styles.map(style => style.title);
|
|
3853
|
-
if (!styles.length) {
|
|
3854
|
-
return '-';
|
|
3855
|
-
}
|
|
3856
|
-
return styles.join(', ');
|
|
3857
|
-
};
|
|
3858
|
-
const getDimensionValue = (name, dimensions) => {
|
|
3859
|
-
const dimension = dimensions === null || dimensions === void 0 ? void 0 : dimensions.find(dimension => dimension.name.toLowerCase() === name.toLowerCase());
|
|
3860
|
-
if (!dimension || !dimension.values) {
|
|
3861
|
-
return null;
|
|
3862
|
-
}
|
|
3863
|
-
const dimName = dimension.name.toLowerCase();
|
|
3864
|
-
const breakAt = dimName === 'time' ? '/' : ',';
|
|
3865
|
-
const includeUnit = dimName !== 'time' && dimName !== 'reference_time';
|
|
3866
|
-
const dimValue = dimension.values.split(breakAt).join(`${breakAt} `);
|
|
3867
|
-
if (includeUnit) {
|
|
3868
|
-
return `${dimValue} ${dimension.units}`;
|
|
3869
|
-
}
|
|
3870
|
-
return dimValue;
|
|
3871
|
-
};
|
|
3872
|
-
const getLayerBbox = layer => {
|
|
3873
|
-
return layer.geographicBoundingBox ? `west ${layer.geographicBoundingBox.west}, east ${layer.geographicBoundingBox.east}, north ${layer.geographicBoundingBox.north}, south ${layer.geographicBoundingBox.south}` : '-';
|
|
3874
|
-
};
|
|
3875
|
-
const getDimensionIcon = (name, dimensions) => {
|
|
3876
|
-
const dimension = dimensions === null || dimensions === void 0 ? void 0 : dimensions.find(dimension => dimension.name.toLowerCase() === name.toLowerCase());
|
|
3877
|
-
if (!dimension) {
|
|
3878
|
-
return null;
|
|
3879
|
-
}
|
|
3880
|
-
switch (dimension.name.toLowerCase()) {
|
|
3881
|
-
case 'time':
|
|
3882
|
-
return jsx(DimensionsTime, {});
|
|
3883
|
-
case 'reference_time':
|
|
3884
|
-
return jsx(DimensionsRefTime, {});
|
|
3885
|
-
case 'elevation':
|
|
3886
|
-
return jsx(DimensionsElevation, {});
|
|
3887
|
-
default:
|
|
3888
|
-
return jsx(DimensionsOther, {});
|
|
3889
|
-
}
|
|
3890
|
-
};
|
|
3891
|
-
const getDimensionLabel = name => {
|
|
3892
|
-
const dimName = name.toLowerCase().split('_').join(' ');
|
|
3893
|
-
return dimName.charAt(0).toUpperCase() + dimName.slice(1);
|
|
3894
|
-
};
|
|
3895
|
-
const getDimensionsList = dimensions => {
|
|
3896
|
-
const result = [];
|
|
3897
|
-
dimensions === null || dimensions === void 0 ? void 0 : dimensions.forEach(({
|
|
3898
|
-
name
|
|
3899
|
-
}) => {
|
|
3900
|
-
const value = getDimensionValue(name, dimensions);
|
|
3901
|
-
if (!value) {
|
|
3902
|
-
return;
|
|
3903
|
-
}
|
|
3904
|
-
const icon = getDimensionIcon(name, dimensions);
|
|
3905
|
-
const label = getDimensionLabel(name);
|
|
3906
|
-
result.push({
|
|
3907
|
-
label,
|
|
3908
|
-
value,
|
|
3909
|
-
icon
|
|
3910
|
-
});
|
|
3911
|
-
});
|
|
3912
|
-
// sort alphabetically so other dimensions are sorted
|
|
3913
|
-
result.sort((a, b) => a.label.localeCompare(b.label));
|
|
3914
|
-
// sort by fixed order
|
|
3915
|
-
const preferredOrder = ['Time', 'Reference time', 'Elevation'];
|
|
3916
|
-
// using reverse ordering to make sure the other dimensions come last
|
|
3917
|
-
preferredOrder.reverse();
|
|
3918
|
-
result.sort((a, b) => preferredOrder.indexOf(b.label) - preferredOrder.indexOf(a.label));
|
|
3919
|
-
return result;
|
|
3920
|
-
};
|
|
3921
|
-
|
|
3922
|
-
const LayerInfoDialog = ({
|
|
3923
|
-
onClose,
|
|
3924
|
-
layer,
|
|
3925
|
-
isOpen,
|
|
3926
|
-
onMouseDown: _onMouseDown = () => {},
|
|
3927
|
-
order: _order = 0,
|
|
3928
|
-
source: _source = 'app',
|
|
3929
|
-
dialogHeight
|
|
3930
|
-
}) => {
|
|
3931
|
-
var _a, _b, _c;
|
|
3932
|
-
const styles = getLayerStyles(layer);
|
|
3933
|
-
const bbox = getLayerBbox(layer);
|
|
3934
|
-
const dimensions = getDimensionsList(layer.dimensions);
|
|
3935
|
-
return jsx(ToolContainerDraggable, Object.assign({
|
|
3936
|
-
onClose: onClose,
|
|
3937
|
-
startSize: {
|
|
3938
|
-
width: 288,
|
|
3939
|
-
height: dialogHeight || 650
|
|
3940
|
-
},
|
|
3941
|
-
startPosition: {
|
|
3942
|
-
top: 150,
|
|
3943
|
-
left: 900
|
|
3944
|
-
},
|
|
3945
|
-
title: "Layer Info",
|
|
3946
|
-
isOpen: isOpen,
|
|
3947
|
-
onMouseDown: _onMouseDown,
|
|
3948
|
-
order: _order,
|
|
3949
|
-
source: _source
|
|
3950
|
-
}, {
|
|
3951
|
-
children: jsxs(Box, Object.assign({
|
|
3952
|
-
sx: {
|
|
3953
|
-
padding: 2
|
|
3954
|
-
}
|
|
3955
|
-
}, {
|
|
3956
|
-
children: [jsx(LayerInfoText, {
|
|
3957
|
-
label: "Title",
|
|
3958
|
-
value: layer.title
|
|
3959
|
-
}), jsx(LayerInfoText, {
|
|
3960
|
-
label: "Name",
|
|
3961
|
-
value: layer.name
|
|
3962
|
-
}), jsx(LayerInfoText, {
|
|
3963
|
-
label: "Service",
|
|
3964
|
-
value: layer.serviceName
|
|
3965
|
-
}), jsx(LayerInfoText, {
|
|
3966
|
-
label: "Abstract",
|
|
3967
|
-
value: layer.abstract || '-'
|
|
3968
|
-
}), jsx(LayerInfoList, {
|
|
3969
|
-
label: "Dimensions",
|
|
3970
|
-
list: dimensions
|
|
3971
|
-
}), jsx(LayerInfoText, {
|
|
3972
|
-
label: "Styles",
|
|
3973
|
-
value: styles
|
|
3974
|
-
}), jsx(LayerInfoText, {
|
|
3975
|
-
label: "Bounding Box",
|
|
3976
|
-
value: bbox
|
|
3977
|
-
}), jsx(LayerInfoText, {
|
|
3978
|
-
label: "Groups",
|
|
3979
|
-
value: ((_a = layer.path) === null || _a === void 0 ? void 0 : _a.join('/')) || '-'
|
|
3980
|
-
}), jsx(LayerInfoText, {
|
|
3981
|
-
label: "Keywords",
|
|
3982
|
-
value: ((_b = layer.keywords) === null || _b === void 0 ? void 0 : _b.join(', ')) || '-'
|
|
3983
|
-
}), jsx(LayerInfoLegend, {
|
|
3984
|
-
title: layer.title,
|
|
3985
|
-
name: layer.name,
|
|
3986
|
-
dimensions: layer.dimensions,
|
|
3987
|
-
legendURL: ((_c = layer.styles) === null || _c === void 0 ? void 0 : _c.length) ? layer.styles[0].legendURL : undefined
|
|
3988
|
-
})]
|
|
3989
|
-
}))
|
|
3990
|
-
}));
|
|
3991
|
-
};
|
|
3992
|
-
|
|
3993
|
-
const LayerInfoDialogConnect = () => {
|
|
3994
|
-
const layer = useAppSelector(store => getActiveLayerInfo(store));
|
|
3995
|
-
const {
|
|
3996
|
-
dialogOrder,
|
|
3997
|
-
onCloseDialog,
|
|
3998
|
-
setDialogOrder,
|
|
3999
|
-
uiSource,
|
|
4000
|
-
isDialogOpen
|
|
4001
|
-
} = useSetupDialog(uiTypes.DialogTypes.LayerInfo);
|
|
4002
|
-
if (!layer) {
|
|
4003
|
-
return null;
|
|
4004
|
-
}
|
|
4005
|
-
return jsx(LayerInfoDialog, {
|
|
4006
|
-
isOpen: isDialogOpen,
|
|
4007
|
-
onClose: onCloseDialog,
|
|
4008
|
-
onMouseDown: setDialogOrder,
|
|
4009
|
-
order: dialogOrder,
|
|
4010
|
-
source: uiSource,
|
|
4011
|
-
layer: layer
|
|
4012
|
-
});
|
|
4013
|
-
};
|
|
4014
|
-
|
|
4015
|
-
const LayerAddRemoveButton = ({
|
|
4016
|
-
layer,
|
|
4017
|
-
layerIndex,
|
|
4018
|
-
serviceUrl,
|
|
4019
|
-
addLayer,
|
|
4020
|
-
deleteLayer,
|
|
4021
|
-
mapLayers
|
|
4022
|
-
}) => {
|
|
4023
|
-
const foundLayer = mapLayers.find(lr => lr.name === layer.name && lr.service === serviceUrl);
|
|
4024
|
-
return jsx(CustomToggleButton, Object.assign({
|
|
4025
|
-
"data-testid": `layerAddRemoveButton-${layer.name}`,
|
|
4026
|
-
onClick: () => {
|
|
4027
|
-
!foundLayer ? addLayer({
|
|
4028
|
-
serviceUrl,
|
|
4029
|
-
layerName: layer.name
|
|
4030
|
-
}) : deleteLayer({
|
|
4031
|
-
layerId: foundLayer.id,
|
|
4032
|
-
layerIndex
|
|
4033
|
-
});
|
|
4034
|
-
},
|
|
4035
|
-
selected: !!foundLayer,
|
|
4036
|
-
variant: "tool",
|
|
4037
|
-
fullWidth: true,
|
|
4038
|
-
sx: {
|
|
4039
|
-
fontSize: '12px'
|
|
4040
|
-
},
|
|
4041
|
-
className: "layerAddRemoveButton"
|
|
4042
|
-
}, {
|
|
4043
|
-
children: !foundLayer ? 'Add' : 'Remove'
|
|
4044
|
-
}));
|
|
4045
|
-
};
|
|
4046
|
-
|
|
4047
|
-
const LayerListDimensions = ({
|
|
4048
|
-
dimensions
|
|
4049
|
-
}) => {
|
|
4050
|
-
if (!dimensions || !dimensions.length) {
|
|
4051
|
-
return null;
|
|
4052
|
-
}
|
|
4053
|
-
return jsx(Fragment, {
|
|
4054
|
-
children: dimensions.map(dimension => jsx(CustomTooltip, Object.assign({
|
|
4055
|
-
title: `${dimension.label}: ${dimension.value}`
|
|
4056
|
-
}, {
|
|
4057
|
-
children: jsx("span", Object.assign({
|
|
4058
|
-
style: {
|
|
4059
|
-
marginRight: 4
|
|
4060
|
-
}
|
|
4061
|
-
}, {
|
|
4062
|
-
children: dimension.icon
|
|
4063
|
-
}))
|
|
4064
|
-
}), dimension.label))
|
|
3098
|
+
children: jsx("span", Object.assign({
|
|
3099
|
+
style: {
|
|
3100
|
+
marginRight: 4
|
|
3101
|
+
}
|
|
3102
|
+
}, {
|
|
3103
|
+
children: dimension.icon
|
|
3104
|
+
}))
|
|
3105
|
+
}), dimension.label))
|
|
4065
3106
|
});
|
|
4066
3107
|
};
|
|
4067
3108
|
|
|
@@ -4188,9 +3229,10 @@ const LayerListRow = ({
|
|
|
4188
3229
|
addLayer,
|
|
4189
3230
|
deleteLayer,
|
|
4190
3231
|
mapLayers,
|
|
4191
|
-
mapId,
|
|
4192
3232
|
layerSelectWidth,
|
|
4193
|
-
searchFilter
|
|
3233
|
+
searchFilter,
|
|
3234
|
+
hasActiveLayer: _hasActiveLayer = false,
|
|
3235
|
+
onToggleActiveLayer
|
|
4194
3236
|
}) => {
|
|
4195
3237
|
var _a;
|
|
4196
3238
|
const rowHeight = widthToRowHeight(layerSelectWidth);
|
|
@@ -4219,7 +3261,7 @@ const LayerListRow = ({
|
|
|
4219
3261
|
item: true,
|
|
4220
3262
|
xs: 12
|
|
4221
3263
|
}, {
|
|
4222
|
-
children: jsx(Box
|
|
3264
|
+
children: jsx(Box, Object.assign({
|
|
4223
3265
|
sx: {
|
|
4224
3266
|
fontSize: '12px',
|
|
4225
3267
|
height: '14px',
|
|
@@ -4240,7 +3282,7 @@ const LayerListRow = ({
|
|
|
4240
3282
|
direction: "column",
|
|
4241
3283
|
sx: columns.column1
|
|
4242
3284
|
}, {
|
|
4243
|
-
children: [jsx(Box
|
|
3285
|
+
children: [jsx(Box, Object.assign({
|
|
4244
3286
|
sx: {
|
|
4245
3287
|
fontSize: '12px',
|
|
4246
3288
|
height: '18px',
|
|
@@ -4253,10 +3295,9 @@ const LayerListRow = ({
|
|
|
4253
3295
|
text: service.name,
|
|
4254
3296
|
search: searchFilter
|
|
4255
3297
|
})
|
|
4256
|
-
})), jsx(
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
serviceName: service.name
|
|
3298
|
+
})), jsx(LayerInfoButton, {
|
|
3299
|
+
isActive: _hasActiveLayer,
|
|
3300
|
+
onClick: onToggleActiveLayer
|
|
4260
3301
|
})]
|
|
4261
3302
|
})), jsxs(Grid, Object.assign({
|
|
4262
3303
|
item: true,
|
|
@@ -4318,7 +3359,7 @@ const LayerListRow = ({
|
|
|
4318
3359
|
justifyContent: "flex-end",
|
|
4319
3360
|
alignItems: "center"
|
|
4320
3361
|
}, {
|
|
4321
|
-
children: jsx(Box
|
|
3362
|
+
children: jsx(Box, Object.assign({
|
|
4322
3363
|
sx: columns.column7
|
|
4323
3364
|
}, {
|
|
4324
3365
|
children: jsx(LayerAddRemoveButton, {
|
|
@@ -4343,17 +3384,19 @@ const LayerList = ({
|
|
|
4343
3384
|
addLayer,
|
|
4344
3385
|
deleteLayer,
|
|
4345
3386
|
mapLayers,
|
|
4346
|
-
|
|
4347
|
-
|
|
3387
|
+
searchFilter,
|
|
3388
|
+
isLayerInfoVisibleInStore,
|
|
3389
|
+
onToggleActiveLayer,
|
|
3390
|
+
currentLayerInfo
|
|
4348
3391
|
}) => {
|
|
4349
3392
|
const rowMargin = 4;
|
|
4350
3393
|
const rowHeight = widthToRowHeight(layerSelectWidth);
|
|
4351
3394
|
const layerSelectFilterHeight = 155 + serviceListHeight;
|
|
4352
3395
|
const minHeight = 320;
|
|
4353
|
-
return jsxs(Box
|
|
3396
|
+
return jsxs(Box, Object.assign({
|
|
4354
3397
|
"data-testid": "layerList"
|
|
4355
3398
|
}, {
|
|
4356
|
-
children: [jsxs(Box
|
|
3399
|
+
children: [jsxs(Box, Object.assign({
|
|
4357
3400
|
sx: {
|
|
4358
3401
|
marginBottom: '4px',
|
|
4359
3402
|
fontSize: '12px'
|
|
@@ -4372,6 +3415,7 @@ const LayerList = ({
|
|
|
4372
3415
|
}) => {
|
|
4373
3416
|
const filter = filteredLayers[index];
|
|
4374
3417
|
const service = services[filter.serviceName];
|
|
3418
|
+
const isActiveLayer = isLayerInfoVisibleInStore && (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.serviceUrl) === service.serviceUrl && (currentLayerInfo === null || currentLayerInfo === void 0 ? void 0 : currentLayerInfo.layerName) === filter.name;
|
|
4375
3419
|
return jsx("div", Object.assign({
|
|
4376
3420
|
style: style
|
|
4377
3421
|
}, {
|
|
@@ -4382,9 +3426,14 @@ const LayerList = ({
|
|
|
4382
3426
|
addLayer: addLayer,
|
|
4383
3427
|
deleteLayer: deleteLayer,
|
|
4384
3428
|
mapLayers: mapLayers,
|
|
4385
|
-
mapId: mapId,
|
|
4386
3429
|
layerSelectWidth: layerSelectWidth,
|
|
4387
|
-
searchFilter: searchFilter
|
|
3430
|
+
searchFilter: searchFilter,
|
|
3431
|
+
hasActiveLayer: isActiveLayer,
|
|
3432
|
+
onToggleActiveLayer: () => onToggleActiveLayer({
|
|
3433
|
+
serviceUrl: service === null || service === void 0 ? void 0 : service.serviceUrl,
|
|
3434
|
+
layerName: filter.name,
|
|
3435
|
+
isActiveLayer
|
|
3436
|
+
})
|
|
4388
3437
|
})
|
|
4389
3438
|
}), filter.name);
|
|
4390
3439
|
}
|
|
@@ -4436,6 +3485,23 @@ const LayerListConnect = ({
|
|
|
4436
3485
|
})), [dispatch, mapId]);
|
|
4437
3486
|
const filteredLayers = useAppSelector(store => getFilteredLayers(store));
|
|
4438
3487
|
const searchFilter = useAppSelector(store => getSearchFilter(store));
|
|
3488
|
+
const isLayerInfoVisibleInStore = useAppSelector(store => uiSelectors.getisDialogOpen(store, uiTypes.DialogTypes.LayerInfo));
|
|
3489
|
+
const currentLayerInfo = useAppSelector(store => layerSelectors.getActiveLayerInfo(store));
|
|
3490
|
+
const onToggleActiveLayer = React.useCallback(({
|
|
3491
|
+
serviceUrl,
|
|
3492
|
+
layerName,
|
|
3493
|
+
isActiveLayer
|
|
3494
|
+
}) => {
|
|
3495
|
+
if (!isActiveLayer) {
|
|
3496
|
+
dispatch(layerActions.showLayerInfo({
|
|
3497
|
+
layerName,
|
|
3498
|
+
serviceUrl,
|
|
3499
|
+
mapId
|
|
3500
|
+
}));
|
|
3501
|
+
} else {
|
|
3502
|
+
dispatch(layerActions.hideLayerInfo());
|
|
3503
|
+
}
|
|
3504
|
+
}, [mapId, dispatch]);
|
|
4439
3505
|
return jsx(LayerList, {
|
|
4440
3506
|
filteredLayers: filteredLayers,
|
|
4441
3507
|
services: services,
|
|
@@ -4445,8 +3511,10 @@ const LayerListConnect = ({
|
|
|
4445
3511
|
addLayer: addLayer,
|
|
4446
3512
|
deleteLayer: deleteLayer,
|
|
4447
3513
|
mapLayers: mapLayers,
|
|
4448
|
-
|
|
4449
|
-
|
|
3514
|
+
searchFilter: searchFilter,
|
|
3515
|
+
isLayerInfoVisibleInStore: isLayerInfoVisibleInStore,
|
|
3516
|
+
onToggleActiveLayer: onToggleActiveLayer,
|
|
3517
|
+
currentLayerInfo: currentLayerInfo
|
|
4450
3518
|
});
|
|
4451
3519
|
};
|
|
4452
3520
|
|
|
@@ -4609,7 +3677,7 @@ const ServiceList = ({
|
|
|
4609
3677
|
const activeServicesIds = Object.keys(activeServicesById);
|
|
4610
3678
|
const activeServices = Object.values(activeServicesById);
|
|
4611
3679
|
const isAllSelected = activeServices.every(activeService => activeService.enabled);
|
|
4612
|
-
return jsx(Box
|
|
3680
|
+
return jsx(Box, Object.assign({
|
|
4613
3681
|
sx: {
|
|
4614
3682
|
marginTop: '8px',
|
|
4615
3683
|
width: '100%',
|
|
@@ -4617,7 +3685,7 @@ const ServiceList = ({
|
|
|
4617
3685
|
},
|
|
4618
3686
|
"data-testid": "serviceList"
|
|
4619
3687
|
}, {
|
|
4620
|
-
children: jsxs(Box
|
|
3688
|
+
children: jsxs(Box, Object.assign({
|
|
4621
3689
|
sx: {
|
|
4622
3690
|
width: '100%',
|
|
4623
3691
|
display: 'block',
|
|
@@ -4652,6 +3720,48 @@ const ServiceListConnect = ({
|
|
|
4652
3720
|
});
|
|
4653
3721
|
};
|
|
4654
3722
|
|
|
3723
|
+
/******************************************************************************
|
|
3724
|
+
Copyright (c) Microsoft Corporation.
|
|
3725
|
+
|
|
3726
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3727
|
+
purpose with or without fee is hereby granted.
|
|
3728
|
+
|
|
3729
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3730
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3731
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3732
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3733
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3734
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3735
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
3736
|
+
***************************************************************************** */
|
|
3737
|
+
|
|
3738
|
+
function __rest(s, e) {
|
|
3739
|
+
var t = {};
|
|
3740
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
3741
|
+
t[p] = s[p];
|
|
3742
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
3743
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
3744
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
3745
|
+
t[p[i]] = s[p[i]];
|
|
3746
|
+
}
|
|
3747
|
+
return t;
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3750
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
3751
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3752
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
3753
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
3754
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
3755
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
3756
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
3757
|
+
});
|
|
3758
|
+
}
|
|
3759
|
+
|
|
3760
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
3761
|
+
var e = new Error(message);
|
|
3762
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
3763
|
+
};
|
|
3764
|
+
|
|
4655
3765
|
const styles = {
|
|
4656
3766
|
servicesContainer: {
|
|
4657
3767
|
width: '360px',
|
|
@@ -4713,7 +3823,7 @@ const ServiceOptionsDialog = ({
|
|
|
4713
3823
|
var _a;
|
|
4714
3824
|
(_a = dialogRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
4715
3825
|
}, []);
|
|
4716
|
-
return jsxs(Box
|
|
3826
|
+
return jsxs(Box, Object.assign({
|
|
4717
3827
|
sx: styles.servicesContainer,
|
|
4718
3828
|
"data-testid": "ServiceDialog",
|
|
4719
3829
|
onKeyDown: event => {
|
|
@@ -4724,7 +3834,7 @@ const ServiceOptionsDialog = ({
|
|
|
4724
3834
|
tabIndex: -1,
|
|
4725
3835
|
ref: dialogRef
|
|
4726
3836
|
}, {
|
|
4727
|
-
children: [jsx(Box
|
|
3837
|
+
children: [jsx(Box, Object.assign({
|
|
4728
3838
|
sx: styles.header
|
|
4729
3839
|
}, {
|
|
4730
3840
|
children: "Services"
|
|
@@ -4739,7 +3849,7 @@ const ServiceOptionsDialog = ({
|
|
|
4739
3849
|
layerSelectReloadService: layerSelectReloadService,
|
|
4740
3850
|
setServicePopupInfo: setServicePopupInfo,
|
|
4741
3851
|
selectedLayers: selectedLayers
|
|
4742
|
-
}), jsx(Box
|
|
3852
|
+
}), jsx(Box, Object.assign({
|
|
4743
3853
|
sx: styles.footer
|
|
4744
3854
|
}, {
|
|
4745
3855
|
children: jsx(Button, Object.assign({
|
|
@@ -4889,7 +3999,7 @@ const Rows = ({
|
|
|
4889
3999
|
children: jsx(Visibility, {})
|
|
4890
4000
|
}))
|
|
4891
4001
|
})
|
|
4892
|
-
})), userAddedService && jsx(Box
|
|
4002
|
+
})), userAddedService && jsx(Box, {
|
|
4893
4003
|
children: jsx(CustomTooltip, Object.assign({
|
|
4894
4004
|
title: deleteServiceTitle(serviceHasActiveLayers),
|
|
4895
4005
|
PopperProps: tooltipPopperProps,
|
|
@@ -4916,6 +4026,239 @@ const Rows = ({
|
|
|
4916
4026
|
}));
|
|
4917
4027
|
};
|
|
4918
4028
|
|
|
4029
|
+
var anObject$1 = anObject$6;
|
|
4030
|
+
|
|
4031
|
+
// `RegExp.prototype.flags` getter implementation
|
|
4032
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
4033
|
+
var regexpFlags$1 = function () {
|
|
4034
|
+
var that = anObject$1(this);
|
|
4035
|
+
var result = '';
|
|
4036
|
+
if (that.hasIndices) result += 'd';
|
|
4037
|
+
if (that.global) result += 'g';
|
|
4038
|
+
if (that.ignoreCase) result += 'i';
|
|
4039
|
+
if (that.multiline) result += 'm';
|
|
4040
|
+
if (that.dotAll) result += 's';
|
|
4041
|
+
if (that.unicode) result += 'u';
|
|
4042
|
+
if (that.unicodeSets) result += 'v';
|
|
4043
|
+
if (that.sticky) result += 'y';
|
|
4044
|
+
return result;
|
|
4045
|
+
};
|
|
4046
|
+
|
|
4047
|
+
var fails$2 = fails$i;
|
|
4048
|
+
var global$3 = global$f;
|
|
4049
|
+
|
|
4050
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
4051
|
+
var $RegExp$2 = global$3.RegExp;
|
|
4052
|
+
|
|
4053
|
+
var UNSUPPORTED_Y$1 = fails$2(function () {
|
|
4054
|
+
var re = $RegExp$2('a', 'y');
|
|
4055
|
+
re.lastIndex = 2;
|
|
4056
|
+
return re.exec('abcd') !== null;
|
|
4057
|
+
});
|
|
4058
|
+
|
|
4059
|
+
// UC Browser bug
|
|
4060
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
4061
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$2(function () {
|
|
4062
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
4063
|
+
});
|
|
4064
|
+
|
|
4065
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$2(function () {
|
|
4066
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
4067
|
+
var re = $RegExp$2('^r', 'gy');
|
|
4068
|
+
re.lastIndex = 2;
|
|
4069
|
+
return re.exec('str') !== null;
|
|
4070
|
+
});
|
|
4071
|
+
|
|
4072
|
+
var regexpStickyHelpers = {
|
|
4073
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
4074
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
4075
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
4076
|
+
};
|
|
4077
|
+
|
|
4078
|
+
var fails$1 = fails$i;
|
|
4079
|
+
var global$2 = global$f;
|
|
4080
|
+
|
|
4081
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
4082
|
+
var $RegExp$1 = global$2.RegExp;
|
|
4083
|
+
|
|
4084
|
+
var regexpUnsupportedDotAll = fails$1(function () {
|
|
4085
|
+
var re = $RegExp$1('.', 's');
|
|
4086
|
+
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
4087
|
+
});
|
|
4088
|
+
|
|
4089
|
+
var fails = fails$i;
|
|
4090
|
+
var global$1 = global$f;
|
|
4091
|
+
|
|
4092
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
4093
|
+
var $RegExp = global$1.RegExp;
|
|
4094
|
+
|
|
4095
|
+
var regexpUnsupportedNcg = fails(function () {
|
|
4096
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
4097
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
4098
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
4099
|
+
});
|
|
4100
|
+
|
|
4101
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
4102
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
4103
|
+
var call$1 = functionCall;
|
|
4104
|
+
var uncurryThis = functionUncurryThis;
|
|
4105
|
+
var toString$1 = toString$4;
|
|
4106
|
+
var regexpFlags = regexpFlags$1;
|
|
4107
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
4108
|
+
var shared = shared$4;
|
|
4109
|
+
var create = objectCreate;
|
|
4110
|
+
var getInternalState = internalState.get;
|
|
4111
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
4112
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
4113
|
+
|
|
4114
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
4115
|
+
var nativeExec = RegExp.prototype.exec;
|
|
4116
|
+
var patchedExec = nativeExec;
|
|
4117
|
+
var charAt = uncurryThis(''.charAt);
|
|
4118
|
+
var indexOf = uncurryThis(''.indexOf);
|
|
4119
|
+
var replace = uncurryThis(''.replace);
|
|
4120
|
+
var stringSlice = uncurryThis(''.slice);
|
|
4121
|
+
|
|
4122
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
4123
|
+
var re1 = /a/;
|
|
4124
|
+
var re2 = /b*/g;
|
|
4125
|
+
call$1(nativeExec, re1, 'a');
|
|
4126
|
+
call$1(nativeExec, re2, 'a');
|
|
4127
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
4128
|
+
})();
|
|
4129
|
+
|
|
4130
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
4131
|
+
|
|
4132
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
4133
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
4134
|
+
|
|
4135
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
4136
|
+
|
|
4137
|
+
if (PATCH) {
|
|
4138
|
+
patchedExec = function exec(string) {
|
|
4139
|
+
var re = this;
|
|
4140
|
+
var state = getInternalState(re);
|
|
4141
|
+
var str = toString$1(string);
|
|
4142
|
+
var raw = state.raw;
|
|
4143
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
4144
|
+
|
|
4145
|
+
if (raw) {
|
|
4146
|
+
raw.lastIndex = re.lastIndex;
|
|
4147
|
+
result = call$1(patchedExec, raw, str);
|
|
4148
|
+
re.lastIndex = raw.lastIndex;
|
|
4149
|
+
return result;
|
|
4150
|
+
}
|
|
4151
|
+
|
|
4152
|
+
var groups = state.groups;
|
|
4153
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
4154
|
+
var flags = call$1(regexpFlags, re);
|
|
4155
|
+
var source = re.source;
|
|
4156
|
+
var charsAdded = 0;
|
|
4157
|
+
var strCopy = str;
|
|
4158
|
+
|
|
4159
|
+
if (sticky) {
|
|
4160
|
+
flags = replace(flags, 'y', '');
|
|
4161
|
+
if (indexOf(flags, 'g') === -1) {
|
|
4162
|
+
flags += 'g';
|
|
4163
|
+
}
|
|
4164
|
+
|
|
4165
|
+
strCopy = stringSlice(str, re.lastIndex);
|
|
4166
|
+
// Support anchored sticky behavior.
|
|
4167
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\n')) {
|
|
4168
|
+
source = '(?: ' + source + ')';
|
|
4169
|
+
strCopy = ' ' + strCopy;
|
|
4170
|
+
charsAdded++;
|
|
4171
|
+
}
|
|
4172
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
4173
|
+
// simulate the 'y' flag.
|
|
4174
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
4175
|
+
}
|
|
4176
|
+
|
|
4177
|
+
if (NPCG_INCLUDED) {
|
|
4178
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
4179
|
+
}
|
|
4180
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
4181
|
+
|
|
4182
|
+
match = call$1(nativeExec, sticky ? reCopy : re, strCopy);
|
|
4183
|
+
|
|
4184
|
+
if (sticky) {
|
|
4185
|
+
if (match) {
|
|
4186
|
+
match.input = stringSlice(match.input, charsAdded);
|
|
4187
|
+
match[0] = stringSlice(match[0], charsAdded);
|
|
4188
|
+
match.index = re.lastIndex;
|
|
4189
|
+
re.lastIndex += match[0].length;
|
|
4190
|
+
} else re.lastIndex = 0;
|
|
4191
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
4192
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
4193
|
+
}
|
|
4194
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
4195
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
4196
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
4197
|
+
call$1(nativeReplace, match[0], reCopy, function () {
|
|
4198
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
4199
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
4200
|
+
}
|
|
4201
|
+
});
|
|
4202
|
+
}
|
|
4203
|
+
|
|
4204
|
+
if (match && groups) {
|
|
4205
|
+
match.groups = object = create(null);
|
|
4206
|
+
for (i = 0; i < groups.length; i++) {
|
|
4207
|
+
group = groups[i];
|
|
4208
|
+
object[group[0]] = match[group[1]];
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
return match;
|
|
4213
|
+
};
|
|
4214
|
+
}
|
|
4215
|
+
|
|
4216
|
+
var regexpExec = patchedExec;
|
|
4217
|
+
|
|
4218
|
+
var $$1 = _export;
|
|
4219
|
+
var exec = regexpExec;
|
|
4220
|
+
|
|
4221
|
+
// `RegExp.prototype.exec` method
|
|
4222
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
4223
|
+
$$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
4224
|
+
exec: exec
|
|
4225
|
+
});
|
|
4226
|
+
|
|
4227
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
4228
|
+
|
|
4229
|
+
var $ = _export;
|
|
4230
|
+
var call = functionCall;
|
|
4231
|
+
var isCallable = isCallable$g;
|
|
4232
|
+
var anObject = anObject$6;
|
|
4233
|
+
var toString = toString$4;
|
|
4234
|
+
|
|
4235
|
+
var DELEGATES_TO_EXEC = function () {
|
|
4236
|
+
var execCalled = false;
|
|
4237
|
+
var re = /[ac]/;
|
|
4238
|
+
re.exec = function () {
|
|
4239
|
+
execCalled = true;
|
|
4240
|
+
return /./.exec.apply(this, arguments);
|
|
4241
|
+
};
|
|
4242
|
+
return re.test('abc') === true && execCalled;
|
|
4243
|
+
}();
|
|
4244
|
+
|
|
4245
|
+
var nativeTest = /./.test;
|
|
4246
|
+
|
|
4247
|
+
// `RegExp.prototype.test` method
|
|
4248
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.test
|
|
4249
|
+
$({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
|
|
4250
|
+
test: function (S) {
|
|
4251
|
+
var R = anObject(this);
|
|
4252
|
+
var string = toString(S);
|
|
4253
|
+
var exec = R.exec;
|
|
4254
|
+
if (!isCallable(exec)) return call(nativeTest, R, string);
|
|
4255
|
+
var result = call(exec, R, string);
|
|
4256
|
+
if (result === null) return false;
|
|
4257
|
+
anObject(result);
|
|
4258
|
+
return true;
|
|
4259
|
+
}
|
|
4260
|
+
});
|
|
4261
|
+
|
|
4919
4262
|
const VALIDATIONS_NAME_EXISTING = 'This name already exists. Choose another name.';
|
|
4920
4263
|
const VALIDATIONS_SERVICE_EXISTING = 'URL already exists.';
|
|
4921
4264
|
const VALIDATIONS_SERVICE_VALID_URL = 'Not a valid URL.';
|
|
@@ -5117,7 +4460,7 @@ const LayerSelect = ({
|
|
|
5117
4460
|
onMouseDown: event => {
|
|
5118
4461
|
const target = event.target;
|
|
5119
4462
|
const isButtonInScrollableList = target.closest('.layerInfoButton') || target.closest('.layerAddRemoveButton');
|
|
5120
|
-
//
|
|
4463
|
+
// don't propagate when clicking on layerInfoButton or addRemoveButton
|
|
5121
4464
|
if (isButtonInScrollableList) {
|
|
5122
4465
|
event.stopPropagation();
|
|
5123
4466
|
return;
|
|
@@ -5127,13 +4470,13 @@ const LayerSelect = ({
|
|
|
5127
4470
|
order: _order,
|
|
5128
4471
|
source: _source
|
|
5129
4472
|
}, {
|
|
5130
|
-
children: [jsx(Box
|
|
4473
|
+
children: [jsx(Box, Object.assign({
|
|
5131
4474
|
sx: {
|
|
5132
4475
|
padding: '4px 16px 0 16px'
|
|
5133
4476
|
}
|
|
5134
4477
|
}, {
|
|
5135
4478
|
children: jsx(SearchFieldConnect, {})
|
|
5136
|
-
})), jsx(Box
|
|
4479
|
+
})), jsx(Box, Object.assign({
|
|
5137
4480
|
sx: {
|
|
5138
4481
|
float: 'left',
|
|
5139
4482
|
position: 'absolute',
|
|
@@ -5145,7 +4488,7 @@ const LayerSelect = ({
|
|
|
5145
4488
|
mapId: mapId,
|
|
5146
4489
|
isMultiMap: _isMultiMap
|
|
5147
4490
|
})
|
|
5148
|
-
})), jsx(Box
|
|
4491
|
+
})), jsx(Box, Object.assign({
|
|
5149
4492
|
sx: {
|
|
5150
4493
|
position: 'absolute',
|
|
5151
4494
|
margin: '8px 0 0 calc(100% - 40px)',
|
|
@@ -5155,11 +4498,11 @@ const LayerSelect = ({
|
|
|
5155
4498
|
children: jsx(ServiceOptionsButton, {
|
|
5156
4499
|
mapId: mapId
|
|
5157
4500
|
})
|
|
5158
|
-
})), jsx(Box
|
|
4501
|
+
})), jsx(Box, {
|
|
5159
4502
|
children: jsx(ServiceListConnect, {
|
|
5160
4503
|
setHeight: handleHeightChange
|
|
5161
4504
|
})
|
|
5162
|
-
}), jsx(Box
|
|
4505
|
+
}), jsx(Box, Object.assign({
|
|
5163
4506
|
sx: {
|
|
5164
4507
|
padding: '0 16px'
|
|
5165
4508
|
}
|
|
@@ -5354,7 +4697,7 @@ const ServicePopupUnwrapped = ({
|
|
|
5354
4697
|
padding: '16px 16px 24px 16px'
|
|
5355
4698
|
}
|
|
5356
4699
|
}, {
|
|
5357
|
-
children: [jsxs(Box
|
|
4700
|
+
children: [jsxs(Box, Object.assign({
|
|
5358
4701
|
sx: {
|
|
5359
4702
|
display: 'flex',
|
|
5360
4703
|
justifyContent: 'space-between',
|
|
@@ -5387,7 +4730,7 @@ const ServicePopupUnwrapped = ({
|
|
|
5387
4730
|
}, {
|
|
5388
4731
|
children: jsx(Close, {})
|
|
5389
4732
|
}))]
|
|
5390
|
-
})), isLoading && jsx(Box
|
|
4733
|
+
})), isLoading && jsx(Box, Object.assign({
|
|
5391
4734
|
sx: {
|
|
5392
4735
|
position: 'relative'
|
|
5393
4736
|
}
|
|
@@ -5626,8 +4969,8 @@ const LayerSelectConnect = ({
|
|
|
5626
4969
|
}), jsx(KeywordFilterResultsConnect, {
|
|
5627
4970
|
mapId: mapId || initialMapId,
|
|
5628
4971
|
isMultiMap: _isMultiMap
|
|
5629
|
-
}), jsx(
|
|
4972
|
+
}), jsx(ServicePopupConnect, {})]
|
|
5630
4973
|
});
|
|
5631
4974
|
};
|
|
5632
4975
|
|
|
5633
|
-
export { ADD_HEADING, AllChipConnect, COPY_URL_MESSAGE, DIALOG_TITLE, EDIT_HEADING, FilterListItem, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LayerAddRemoveButton,
|
|
4976
|
+
export { ADD_HEADING, AllChipConnect, COPY_URL_MESSAGE, DIALOG_TITLE, EDIT_HEADING, FilterListItem, KeywordFilterButtonConnect, KeywordFilterResults, KeywordFilterResultsConnect, KeywordFilterResultsListItemConnect, KeywordFilterSelectAllSwitchConnect, LayerAddRemoveButton, LayerList, LayerListConnect, LayerListDimensions, LayerListRow, LayerSelectButtonConnect, LayerSelectConnect, SAVE_HEADING, SearchFieldConnect, ServiceChip, ServiceChipConnect, ServiceList, ServiceListConnect, ServiceOptionsButton, ServiceOptionsDialog, ServiceOptionsDialogConnect, ServicePopup, ServicePopupConnect, ServicePopupDialogConnect, getServiceFailedUpdateMessage, getServiceSuccesUpdateMessage, getSuccesMessage, isUserAddedService, layerSelectActions, layerSelectConfig, initialState as layerSelectInitialState, reducer as layerSelectReducer, selectors as layerSelectSelectors, types as layerSelectTypes, useAppSelector };
|