@opengeoweb/webmap-react 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 +2185 -768
- package/package.json +4 -2
- package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +9 -0
- package/src/lib/components/LayerInfo/LayerInfoButton.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +14 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +25 -0
- package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +9 -0
- package/src/lib/components/LayerInfo/LayerInfoLegend.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoList.d.ts +11 -0
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +15 -0
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +9 -0
- package/src/lib/components/LayerInfo/LayerInfoUtils.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/index.d.ts +6 -0
- package/src/lib/components/MapDraw/MapDraw.d.ts +7 -1
- package/src/lib/components/MapDrawTool/utils.d.ts +2 -0
- package/src/lib/components/MapView/MapView.ShiftToZoom.stories.d.ts +10 -0
- package/src/lib/components/Providers/Providers.d.ts +7 -0
- package/src/lib/components/Providers/index.d.ts +1 -0
- package/src/lib/components/ReactMapView/ReactMapView.d.ts +1 -0
- package/src/lib/components/ReactMapView/types.d.ts +2 -1
- package/src/lib/components/index.d.ts +1 -0
- package/src/lib/utils/i18n.d.ts +2 -0
package/index.esm.js
CHANGED
|
@@ -2,19 +2,24 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import { legendImageStore, WMImageEventType, webmapUtils, getLegendGraphicURLForLayer, getWMJSMapById, debugLogger, DebugType, LayerType, WMLayer, registerWMLayer, WMBBOX, getWMLayerById, WMJSMap, tilesettings } from '@opengeoweb/webmap';
|
|
4
4
|
import { CustomTooltip, CanvasComponent, ToolContainerDraggable, dateUtils, CustomIconButton } from '@opengeoweb/shared';
|
|
5
|
+
import { useTranslation } from 'react-i18next';
|
|
6
|
+
import 'i18next';
|
|
5
7
|
import { Paper, Box, Typography, Grid, TextField, FormControl, InputLabel, Select, MenuItem, Icon as Icon$1, FormLabel, Switch, styled, Slider } from '@mui/material';
|
|
6
8
|
import _, { cloneDeep } from 'lodash';
|
|
7
9
|
import proj4 from 'proj4';
|
|
8
10
|
import * as turf from '@turf/turf';
|
|
9
11
|
import { polygonToLineString, booleanClockwise, rewind } from '@turf/turf';
|
|
10
|
-
import { Delete, Edit, DrawRegion, DrawPolygon, Location, DrawFIRLand, ArrowUp, Home, Add, Minus, Equalizer, DimensionsElevation, Link, LinkOff } from '@opengeoweb/theme';
|
|
12
|
+
import { Delete, Edit, DrawRegion, DrawPolygon, Location, DrawFIRLand, ArrowUp, Home, Add, Minus, Equalizer, DimensionsElevation, Link, LinkOff, Info, DimensionsOther, DimensionsRefTime, DimensionsTime } from '@opengeoweb/theme';
|
|
11
13
|
import { produce } from 'immer';
|
|
12
14
|
import { debounce } from 'throttle-debounce';
|
|
13
15
|
import { useResizeDetector } from 'react-resize-detector';
|
|
16
|
+
import Box$1 from '@mui/material/Box';
|
|
17
|
+
import Typography$1 from '@mui/material/Typography';
|
|
18
|
+
import Grid$1 from '@mui/material/Grid';
|
|
14
19
|
|
|
15
20
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
16
21
|
|
|
17
|
-
var fails$
|
|
22
|
+
var fails$q = function (exec) {
|
|
18
23
|
try {
|
|
19
24
|
return !!exec();
|
|
20
25
|
} catch (error) {
|
|
@@ -22,9 +27,9 @@ var fails$i = function (exec) {
|
|
|
22
27
|
}
|
|
23
28
|
};
|
|
24
29
|
|
|
25
|
-
var fails$
|
|
30
|
+
var fails$p = fails$q;
|
|
26
31
|
|
|
27
|
-
var functionBindNative = !fails$
|
|
32
|
+
var functionBindNative = !fails$p(function () {
|
|
28
33
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
29
34
|
var test = (function () { /* empty */ }).bind();
|
|
30
35
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -34,63 +39,63 @@ var functionBindNative = !fails$h(function () {
|
|
|
34
39
|
var NATIVE_BIND$3 = functionBindNative;
|
|
35
40
|
|
|
36
41
|
var FunctionPrototype$2 = Function.prototype;
|
|
37
|
-
var call$
|
|
38
|
-
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$
|
|
42
|
+
var call$j = FunctionPrototype$2.call;
|
|
43
|
+
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$j, call$j);
|
|
39
44
|
|
|
40
45
|
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
|
|
41
46
|
return function () {
|
|
42
|
-
return call$
|
|
47
|
+
return call$j.apply(fn, arguments);
|
|
43
48
|
};
|
|
44
49
|
};
|
|
45
50
|
|
|
46
|
-
var uncurryThis$
|
|
51
|
+
var uncurryThis$p = functionUncurryThis;
|
|
47
52
|
|
|
48
|
-
var toString$
|
|
49
|
-
var stringSlice$
|
|
53
|
+
var toString$b = uncurryThis$p({}.toString);
|
|
54
|
+
var stringSlice$4 = uncurryThis$p(''.slice);
|
|
50
55
|
|
|
51
56
|
var classofRaw$2 = function (it) {
|
|
52
|
-
return stringSlice$
|
|
57
|
+
return stringSlice$4(toString$b(it), 8, -1);
|
|
53
58
|
};
|
|
54
59
|
|
|
55
|
-
var uncurryThis$
|
|
56
|
-
var fails$
|
|
57
|
-
var classof$
|
|
60
|
+
var uncurryThis$o = functionUncurryThis;
|
|
61
|
+
var fails$o = fails$q;
|
|
62
|
+
var classof$9 = classofRaw$2;
|
|
58
63
|
|
|
59
64
|
var $Object$4 = Object;
|
|
60
|
-
var split = uncurryThis$
|
|
65
|
+
var split = uncurryThis$o(''.split);
|
|
61
66
|
|
|
62
67
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
63
|
-
var indexedObject = fails$
|
|
68
|
+
var indexedObject = fails$o(function () {
|
|
64
69
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
65
70
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
66
71
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
67
72
|
}) ? function (it) {
|
|
68
|
-
return classof$
|
|
73
|
+
return classof$9(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
69
74
|
} : $Object$4;
|
|
70
75
|
|
|
71
76
|
// we can't use just `it == null` since of `document.all` special case
|
|
72
77
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
73
|
-
var isNullOrUndefined$
|
|
78
|
+
var isNullOrUndefined$5 = function (it) {
|
|
74
79
|
return it === null || it === undefined;
|
|
75
80
|
};
|
|
76
81
|
|
|
77
|
-
var isNullOrUndefined$
|
|
82
|
+
var isNullOrUndefined$4 = isNullOrUndefined$5;
|
|
78
83
|
|
|
79
|
-
var $TypeError$
|
|
84
|
+
var $TypeError$i = TypeError;
|
|
80
85
|
|
|
81
86
|
// `RequireObjectCoercible` abstract operation
|
|
82
87
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
83
|
-
var requireObjectCoercible$
|
|
84
|
-
if (isNullOrUndefined$
|
|
88
|
+
var requireObjectCoercible$7 = function (it) {
|
|
89
|
+
if (isNullOrUndefined$4(it)) throw new $TypeError$i("Can't call method on " + it);
|
|
85
90
|
return it;
|
|
86
91
|
};
|
|
87
92
|
|
|
88
93
|
// toObject with fallback for non-array-like ES3 strings
|
|
89
94
|
var IndexedObject$2 = indexedObject;
|
|
90
|
-
var requireObjectCoercible$
|
|
95
|
+
var requireObjectCoercible$6 = requireObjectCoercible$7;
|
|
91
96
|
|
|
92
97
|
var toIndexedObject$5 = function (it) {
|
|
93
|
-
return IndexedObject$2(requireObjectCoercible$
|
|
98
|
+
return IndexedObject$2(requireObjectCoercible$6(it));
|
|
94
99
|
};
|
|
95
100
|
|
|
96
101
|
var check = function (it) {
|
|
@@ -98,7 +103,7 @@ var check = function (it) {
|
|
|
98
103
|
};
|
|
99
104
|
|
|
100
105
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
101
|
-
var global$
|
|
106
|
+
var global$n =
|
|
102
107
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
103
108
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
104
109
|
check(typeof window == 'object' && window) ||
|
|
@@ -109,80 +114,80 @@ var global$k =
|
|
|
109
114
|
// eslint-disable-next-line no-new-func -- fallback
|
|
110
115
|
(function () { return this; })() || Function('return this')();
|
|
111
116
|
|
|
112
|
-
var
|
|
117
|
+
var sharedStore = {exports: {}};
|
|
113
118
|
|
|
114
|
-
var global$
|
|
119
|
+
var global$m = global$n;
|
|
115
120
|
|
|
116
121
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
117
|
-
var defineProperty$
|
|
122
|
+
var defineProperty$7 = Object.defineProperty;
|
|
118
123
|
|
|
119
124
|
var defineGlobalProperty$3 = function (key, value) {
|
|
120
125
|
try {
|
|
121
|
-
defineProperty$
|
|
126
|
+
defineProperty$7(global$m, key, { value: value, configurable: true, writable: true });
|
|
122
127
|
} catch (error) {
|
|
123
|
-
global$
|
|
128
|
+
global$m[key] = value;
|
|
124
129
|
} return value;
|
|
125
130
|
};
|
|
126
131
|
|
|
127
|
-
var
|
|
132
|
+
var globalThis$1 = global$n;
|
|
128
133
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
129
134
|
|
|
130
135
|
var SHARED = '__core-js_shared__';
|
|
131
|
-
var store$3 =
|
|
132
|
-
|
|
133
|
-
var sharedStore = store$3;
|
|
136
|
+
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
134
137
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
(shared$3.exports = function (key, value) {
|
|
138
|
-
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
139
|
-
})('versions', []).push({
|
|
140
|
-
version: '3.35.1',
|
|
138
|
+
(store$3.versions || (store$3.versions = [])).push({
|
|
139
|
+
version: '3.36.1',
|
|
141
140
|
mode: 'global',
|
|
142
141
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
143
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
142
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
|
|
144
143
|
source: 'https://github.com/zloirock/core-js'
|
|
145
144
|
});
|
|
146
145
|
|
|
147
|
-
var
|
|
146
|
+
var store$2 = sharedStore.exports;
|
|
147
|
+
|
|
148
|
+
var shared$4 = function (key, value) {
|
|
149
|
+
return store$2[key] || (store$2[key] = value || {});
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
var requireObjectCoercible$5 = requireObjectCoercible$7;
|
|
148
153
|
|
|
149
154
|
var $Object$3 = Object;
|
|
150
155
|
|
|
151
156
|
// `ToObject` abstract operation
|
|
152
157
|
// https://tc39.es/ecma262/#sec-toobject
|
|
153
|
-
var toObject$
|
|
154
|
-
return $Object$3(requireObjectCoercible$
|
|
158
|
+
var toObject$7 = function (argument) {
|
|
159
|
+
return $Object$3(requireObjectCoercible$5(argument));
|
|
155
160
|
};
|
|
156
161
|
|
|
157
|
-
var uncurryThis$
|
|
158
|
-
var toObject$
|
|
162
|
+
var uncurryThis$n = functionUncurryThis;
|
|
163
|
+
var toObject$6 = toObject$7;
|
|
159
164
|
|
|
160
|
-
var hasOwnProperty = uncurryThis$
|
|
165
|
+
var hasOwnProperty = uncurryThis$n({}.hasOwnProperty);
|
|
161
166
|
|
|
162
167
|
// `HasOwnProperty` abstract operation
|
|
163
168
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
164
169
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
165
170
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
166
|
-
return hasOwnProperty(toObject$
|
|
171
|
+
return hasOwnProperty(toObject$6(it), key);
|
|
167
172
|
};
|
|
168
173
|
|
|
169
|
-
var uncurryThis$
|
|
174
|
+
var uncurryThis$m = functionUncurryThis;
|
|
170
175
|
|
|
171
176
|
var id = 0;
|
|
172
177
|
var postfix = Math.random();
|
|
173
|
-
var toString$
|
|
178
|
+
var toString$a = uncurryThis$m(1.0.toString);
|
|
174
179
|
|
|
175
180
|
var uid$2 = function (key) {
|
|
176
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
181
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
|
|
177
182
|
};
|
|
178
183
|
|
|
179
184
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
180
185
|
|
|
181
|
-
var global$
|
|
186
|
+
var global$l = global$n;
|
|
182
187
|
var userAgent$5 = engineUserAgent;
|
|
183
188
|
|
|
184
|
-
var process$3 = global$
|
|
185
|
-
var Deno$1 = global$
|
|
189
|
+
var process$3 = global$l.process;
|
|
190
|
+
var Deno$1 = global$l.Deno;
|
|
186
191
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
187
192
|
var v8 = versions && versions.v8;
|
|
188
193
|
var match, version;
|
|
@@ -208,44 +213,44 @@ var engineV8Version = version;
|
|
|
208
213
|
|
|
209
214
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
210
215
|
var V8_VERSION$1 = engineV8Version;
|
|
211
|
-
var fails$
|
|
212
|
-
var global$
|
|
216
|
+
var fails$n = fails$q;
|
|
217
|
+
var global$k = global$n;
|
|
213
218
|
|
|
214
|
-
var $String$
|
|
219
|
+
var $String$6 = global$k.String;
|
|
215
220
|
|
|
216
221
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
217
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
222
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$n(function () {
|
|
218
223
|
var symbol = Symbol('symbol detection');
|
|
219
224
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
220
225
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
221
226
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
222
227
|
// of course, fail.
|
|
223
|
-
return !$String$
|
|
228
|
+
return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
224
229
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
225
230
|
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
226
231
|
});
|
|
227
232
|
|
|
228
233
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
229
|
-
var NATIVE_SYMBOL$
|
|
234
|
+
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
|
230
235
|
|
|
231
|
-
var useSymbolAsUid = NATIVE_SYMBOL$
|
|
236
|
+
var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
232
237
|
&& !Symbol.sham
|
|
233
238
|
&& typeof Symbol.iterator == 'symbol';
|
|
234
239
|
|
|
235
|
-
var global$
|
|
236
|
-
var shared$
|
|
237
|
-
var hasOwn$
|
|
240
|
+
var global$j = global$n;
|
|
241
|
+
var shared$3 = shared$4;
|
|
242
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
238
243
|
var uid$1 = uid$2;
|
|
239
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
244
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
240
245
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
241
246
|
|
|
242
|
-
var Symbol$2 = global$
|
|
243
|
-
var WellKnownSymbolsStore = shared$
|
|
247
|
+
var Symbol$2 = global$j.Symbol;
|
|
248
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
244
249
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
245
250
|
|
|
246
|
-
var wellKnownSymbol$
|
|
247
|
-
if (!hasOwn$
|
|
248
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
251
|
+
var wellKnownSymbol$h = function (name) {
|
|
252
|
+
if (!hasOwn$b(WellKnownSymbolsStore, name)) {
|
|
253
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$b(Symbol$2, name)
|
|
249
254
|
? Symbol$2[name]
|
|
250
255
|
: createWellKnownSymbol('Symbol.' + name);
|
|
251
256
|
} return WellKnownSymbolsStore[name];
|
|
@@ -257,45 +262,45 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
257
262
|
// `IsCallable` abstract operation
|
|
258
263
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
259
264
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
260
|
-
var isCallable$
|
|
265
|
+
var isCallable$n = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
261
266
|
return typeof argument == 'function' || argument === documentAll;
|
|
262
267
|
} : function (argument) {
|
|
263
268
|
return typeof argument == 'function';
|
|
264
269
|
};
|
|
265
270
|
|
|
266
|
-
var isCallable$
|
|
271
|
+
var isCallable$m = isCallable$n;
|
|
267
272
|
|
|
268
|
-
var isObject$
|
|
269
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
273
|
+
var isObject$d = function (it) {
|
|
274
|
+
return typeof it == 'object' ? it !== null : isCallable$m(it);
|
|
270
275
|
};
|
|
271
276
|
|
|
272
|
-
var isObject$
|
|
277
|
+
var isObject$c = isObject$d;
|
|
273
278
|
|
|
274
|
-
var $String$
|
|
275
|
-
var $TypeError$
|
|
279
|
+
var $String$5 = String;
|
|
280
|
+
var $TypeError$h = TypeError;
|
|
276
281
|
|
|
277
282
|
// `Assert: Type(argument) is Object`
|
|
278
|
-
var anObject$
|
|
279
|
-
if (isObject$
|
|
280
|
-
throw new $TypeError$
|
|
283
|
+
var anObject$d = function (argument) {
|
|
284
|
+
if (isObject$c(argument)) return argument;
|
|
285
|
+
throw new $TypeError$h($String$5(argument) + ' is not an object');
|
|
281
286
|
};
|
|
282
287
|
|
|
283
288
|
var objectDefineProperties = {};
|
|
284
289
|
|
|
285
|
-
var fails$
|
|
290
|
+
var fails$m = fails$q;
|
|
286
291
|
|
|
287
292
|
// Detect IE8's incomplete defineProperty implementation
|
|
288
|
-
var descriptors = !fails$
|
|
293
|
+
var descriptors = !fails$m(function () {
|
|
289
294
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
290
295
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
291
296
|
});
|
|
292
297
|
|
|
293
|
-
var DESCRIPTORS$
|
|
294
|
-
var fails$
|
|
298
|
+
var DESCRIPTORS$d = descriptors;
|
|
299
|
+
var fails$l = fails$q;
|
|
295
300
|
|
|
296
301
|
// V8 ~ Chrome 36-
|
|
297
302
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
298
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
303
|
+
var v8PrototypeDefineBug = DESCRIPTORS$d && fails$l(function () {
|
|
299
304
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
300
305
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
301
306
|
value: 42,
|
|
@@ -305,23 +310,23 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$d(function () {
|
|
|
305
310
|
|
|
306
311
|
var objectDefineProperty = {};
|
|
307
312
|
|
|
308
|
-
var global$
|
|
309
|
-
var isObject$
|
|
313
|
+
var global$i = global$n;
|
|
314
|
+
var isObject$b = isObject$d;
|
|
310
315
|
|
|
311
|
-
var document$3 = global$
|
|
316
|
+
var document$3 = global$i.document;
|
|
312
317
|
// typeof document.createElement is 'object' in old IE
|
|
313
|
-
var EXISTS$1 = isObject$
|
|
318
|
+
var EXISTS$1 = isObject$b(document$3) && isObject$b(document$3.createElement);
|
|
314
319
|
|
|
315
320
|
var documentCreateElement$2 = function (it) {
|
|
316
321
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
317
322
|
};
|
|
318
323
|
|
|
319
|
-
var DESCRIPTORS$
|
|
320
|
-
var fails$
|
|
324
|
+
var DESCRIPTORS$c = descriptors;
|
|
325
|
+
var fails$k = fails$q;
|
|
321
326
|
var createElement$1 = documentCreateElement$2;
|
|
322
327
|
|
|
323
328
|
// Thanks to IE8 for its funny defineProperty
|
|
324
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
329
|
+
var ie8DomDefine = !DESCRIPTORS$c && !fails$k(function () {
|
|
325
330
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
326
331
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
327
332
|
get: function () { return 7; }
|
|
@@ -330,131 +335,131 @@ var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
|
|
|
330
335
|
|
|
331
336
|
var NATIVE_BIND$2 = functionBindNative;
|
|
332
337
|
|
|
333
|
-
var call$
|
|
338
|
+
var call$i = Function.prototype.call;
|
|
334
339
|
|
|
335
|
-
var functionCall = NATIVE_BIND$2 ? call$
|
|
336
|
-
return call$
|
|
340
|
+
var functionCall = NATIVE_BIND$2 ? call$i.bind(call$i) : function () {
|
|
341
|
+
return call$i.apply(call$i, arguments);
|
|
337
342
|
};
|
|
338
343
|
|
|
339
|
-
var global$
|
|
340
|
-
var isCallable$
|
|
344
|
+
var global$h = global$n;
|
|
345
|
+
var isCallable$l = isCallable$n;
|
|
341
346
|
|
|
342
347
|
var aFunction = function (argument) {
|
|
343
|
-
return isCallable$
|
|
348
|
+
return isCallable$l(argument) ? argument : undefined;
|
|
344
349
|
};
|
|
345
350
|
|
|
346
|
-
var getBuiltIn$
|
|
347
|
-
return arguments.length < 2 ? aFunction(global$
|
|
351
|
+
var getBuiltIn$9 = function (namespace, method) {
|
|
352
|
+
return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
|
|
348
353
|
};
|
|
349
354
|
|
|
350
|
-
var uncurryThis$
|
|
355
|
+
var uncurryThis$l = functionUncurryThis;
|
|
351
356
|
|
|
352
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
357
|
+
var objectIsPrototypeOf = uncurryThis$l({}.isPrototypeOf);
|
|
353
358
|
|
|
354
|
-
var getBuiltIn$
|
|
355
|
-
var isCallable$
|
|
356
|
-
var isPrototypeOf$
|
|
359
|
+
var getBuiltIn$8 = getBuiltIn$9;
|
|
360
|
+
var isCallable$k = isCallable$n;
|
|
361
|
+
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
357
362
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
358
363
|
|
|
359
364
|
var $Object$2 = Object;
|
|
360
365
|
|
|
361
|
-
var isSymbol$
|
|
366
|
+
var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) {
|
|
362
367
|
return typeof it == 'symbol';
|
|
363
368
|
} : function (it) {
|
|
364
|
-
var $Symbol = getBuiltIn$
|
|
365
|
-
return isCallable$
|
|
369
|
+
var $Symbol = getBuiltIn$8('Symbol');
|
|
370
|
+
return isCallable$k($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$2(it));
|
|
366
371
|
};
|
|
367
372
|
|
|
368
|
-
var $String$
|
|
373
|
+
var $String$4 = String;
|
|
369
374
|
|
|
370
375
|
var tryToString$5 = function (argument) {
|
|
371
376
|
try {
|
|
372
|
-
return $String$
|
|
377
|
+
return $String$4(argument);
|
|
373
378
|
} catch (error) {
|
|
374
379
|
return 'Object';
|
|
375
380
|
}
|
|
376
381
|
};
|
|
377
382
|
|
|
378
|
-
var isCallable$
|
|
383
|
+
var isCallable$j = isCallable$n;
|
|
379
384
|
var tryToString$4 = tryToString$5;
|
|
380
385
|
|
|
381
|
-
var $TypeError$
|
|
386
|
+
var $TypeError$g = TypeError;
|
|
382
387
|
|
|
383
388
|
// `Assert: IsCallable(argument) is true`
|
|
384
389
|
var aCallable$a = function (argument) {
|
|
385
|
-
if (isCallable$
|
|
386
|
-
throw new $TypeError$
|
|
390
|
+
if (isCallable$j(argument)) return argument;
|
|
391
|
+
throw new $TypeError$g(tryToString$4(argument) + ' is not a function');
|
|
387
392
|
};
|
|
388
393
|
|
|
389
394
|
var aCallable$9 = aCallable$a;
|
|
390
|
-
var isNullOrUndefined$
|
|
395
|
+
var isNullOrUndefined$3 = isNullOrUndefined$5;
|
|
391
396
|
|
|
392
397
|
// `GetMethod` abstract operation
|
|
393
398
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
394
|
-
var getMethod$
|
|
399
|
+
var getMethod$4 = function (V, P) {
|
|
395
400
|
var func = V[P];
|
|
396
|
-
return isNullOrUndefined$
|
|
401
|
+
return isNullOrUndefined$3(func) ? undefined : aCallable$9(func);
|
|
397
402
|
};
|
|
398
403
|
|
|
399
|
-
var call$
|
|
400
|
-
var isCallable$
|
|
401
|
-
var isObject$
|
|
404
|
+
var call$h = functionCall;
|
|
405
|
+
var isCallable$i = isCallable$n;
|
|
406
|
+
var isObject$a = isObject$d;
|
|
402
407
|
|
|
403
|
-
var $TypeError$
|
|
408
|
+
var $TypeError$f = TypeError;
|
|
404
409
|
|
|
405
410
|
// `OrdinaryToPrimitive` abstract operation
|
|
406
411
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
407
412
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
408
413
|
var fn, val;
|
|
409
|
-
if (pref === 'string' && isCallable$
|
|
410
|
-
if (isCallable$
|
|
411
|
-
if (pref !== 'string' && isCallable$
|
|
412
|
-
throw new $TypeError$
|
|
414
|
+
if (pref === 'string' && isCallable$i(fn = input.toString) && !isObject$a(val = call$h(fn, input))) return val;
|
|
415
|
+
if (isCallable$i(fn = input.valueOf) && !isObject$a(val = call$h(fn, input))) return val;
|
|
416
|
+
if (pref !== 'string' && isCallable$i(fn = input.toString) && !isObject$a(val = call$h(fn, input))) return val;
|
|
417
|
+
throw new $TypeError$f("Can't convert object to primitive value");
|
|
413
418
|
};
|
|
414
419
|
|
|
415
|
-
var call$
|
|
416
|
-
var isObject$
|
|
417
|
-
var isSymbol$
|
|
418
|
-
var getMethod$
|
|
420
|
+
var call$g = functionCall;
|
|
421
|
+
var isObject$9 = isObject$d;
|
|
422
|
+
var isSymbol$2 = isSymbol$3;
|
|
423
|
+
var getMethod$3 = getMethod$4;
|
|
419
424
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
420
|
-
var wellKnownSymbol$
|
|
425
|
+
var wellKnownSymbol$g = wellKnownSymbol$h;
|
|
421
426
|
|
|
422
|
-
var $TypeError$
|
|
423
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
427
|
+
var $TypeError$e = TypeError;
|
|
428
|
+
var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
|
|
424
429
|
|
|
425
430
|
// `ToPrimitive` abstract operation
|
|
426
431
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
427
432
|
var toPrimitive$1 = function (input, pref) {
|
|
428
|
-
if (!isObject$
|
|
429
|
-
var exoticToPrim = getMethod$
|
|
433
|
+
if (!isObject$9(input) || isSymbol$2(input)) return input;
|
|
434
|
+
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
430
435
|
var result;
|
|
431
436
|
if (exoticToPrim) {
|
|
432
437
|
if (pref === undefined) pref = 'default';
|
|
433
|
-
result = call$
|
|
434
|
-
if (!isObject$
|
|
435
|
-
throw new $TypeError$
|
|
438
|
+
result = call$g(exoticToPrim, input, pref);
|
|
439
|
+
if (!isObject$9(result) || isSymbol$2(result)) return result;
|
|
440
|
+
throw new $TypeError$e("Can't convert object to primitive value");
|
|
436
441
|
}
|
|
437
442
|
if (pref === undefined) pref = 'number';
|
|
438
443
|
return ordinaryToPrimitive(input, pref);
|
|
439
444
|
};
|
|
440
445
|
|
|
441
446
|
var toPrimitive = toPrimitive$1;
|
|
442
|
-
var isSymbol = isSymbol$
|
|
447
|
+
var isSymbol$1 = isSymbol$3;
|
|
443
448
|
|
|
444
449
|
// `ToPropertyKey` abstract operation
|
|
445
450
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
446
451
|
var toPropertyKey$2 = function (argument) {
|
|
447
452
|
var key = toPrimitive(argument, 'string');
|
|
448
|
-
return isSymbol(key) ? key : key + '';
|
|
453
|
+
return isSymbol$1(key) ? key : key + '';
|
|
449
454
|
};
|
|
450
455
|
|
|
451
|
-
var DESCRIPTORS$
|
|
456
|
+
var DESCRIPTORS$b = descriptors;
|
|
452
457
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
453
458
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
454
|
-
var anObject$
|
|
459
|
+
var anObject$c = anObject$d;
|
|
455
460
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
456
461
|
|
|
457
|
-
var $TypeError$
|
|
462
|
+
var $TypeError$d = TypeError;
|
|
458
463
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
459
464
|
var $defineProperty = Object.defineProperty;
|
|
460
465
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -465,10 +470,10 @@ var WRITABLE = 'writable';
|
|
|
465
470
|
|
|
466
471
|
// `Object.defineProperty` method
|
|
467
472
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
468
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
469
|
-
anObject$
|
|
473
|
+
objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
474
|
+
anObject$c(O);
|
|
470
475
|
P = toPropertyKey$1(P);
|
|
471
|
-
anObject$
|
|
476
|
+
anObject$c(Attributes);
|
|
472
477
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
473
478
|
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
474
479
|
if (current && current[WRITABLE]) {
|
|
@@ -481,13 +486,13 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
481
486
|
}
|
|
482
487
|
} return $defineProperty(O, P, Attributes);
|
|
483
488
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
484
|
-
anObject$
|
|
489
|
+
anObject$c(O);
|
|
485
490
|
P = toPropertyKey$1(P);
|
|
486
|
-
anObject$
|
|
491
|
+
anObject$c(Attributes);
|
|
487
492
|
if (IE8_DOM_DEFINE$1) try {
|
|
488
493
|
return $defineProperty(O, P, Attributes);
|
|
489
494
|
} catch (error) { /* empty */ }
|
|
490
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
495
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$d('Accessors not supported');
|
|
491
496
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
492
497
|
return O;
|
|
493
498
|
};
|
|
@@ -507,53 +512,54 @@ var trunc = mathTrunc;
|
|
|
507
512
|
|
|
508
513
|
// `ToIntegerOrInfinity` abstract operation
|
|
509
514
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
510
|
-
var toIntegerOrInfinity$
|
|
515
|
+
var toIntegerOrInfinity$3 = function (argument) {
|
|
511
516
|
var number = +argument;
|
|
512
517
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
513
518
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
514
519
|
};
|
|
515
520
|
|
|
516
|
-
var toIntegerOrInfinity$
|
|
521
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
|
|
517
522
|
|
|
518
523
|
var max = Math.max;
|
|
519
|
-
var min$
|
|
524
|
+
var min$2 = Math.min;
|
|
520
525
|
|
|
521
526
|
// Helper for a popular repeating case of the spec:
|
|
522
527
|
// Let integer be ? ToInteger(index).
|
|
523
528
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
524
529
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
525
|
-
var integer = toIntegerOrInfinity$
|
|
526
|
-
return integer < 0 ? max(integer + length, 0) : min$
|
|
530
|
+
var integer = toIntegerOrInfinity$2(index);
|
|
531
|
+
return integer < 0 ? max(integer + length, 0) : min$2(integer, length);
|
|
527
532
|
};
|
|
528
533
|
|
|
529
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$
|
|
534
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
|
|
530
535
|
|
|
531
|
-
var min = Math.min;
|
|
536
|
+
var min$1 = Math.min;
|
|
532
537
|
|
|
533
538
|
// `ToLength` abstract operation
|
|
534
539
|
// https://tc39.es/ecma262/#sec-tolength
|
|
535
|
-
var toLength$
|
|
536
|
-
var len = toIntegerOrInfinity(argument);
|
|
537
|
-
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
540
|
+
var toLength$2 = function (argument) {
|
|
541
|
+
var len = toIntegerOrInfinity$1(argument);
|
|
542
|
+
return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
538
543
|
};
|
|
539
544
|
|
|
540
|
-
var toLength = toLength$
|
|
545
|
+
var toLength$1 = toLength$2;
|
|
541
546
|
|
|
542
547
|
// `LengthOfArrayLike` abstract operation
|
|
543
548
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
544
|
-
var lengthOfArrayLike$
|
|
545
|
-
return toLength(obj.length);
|
|
549
|
+
var lengthOfArrayLike$6 = function (obj) {
|
|
550
|
+
return toLength$1(obj.length);
|
|
546
551
|
};
|
|
547
552
|
|
|
548
553
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
549
554
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
550
|
-
var lengthOfArrayLike$
|
|
555
|
+
var lengthOfArrayLike$5 = lengthOfArrayLike$6;
|
|
551
556
|
|
|
552
557
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
553
|
-
var createMethod$
|
|
558
|
+
var createMethod$3 = function (IS_INCLUDES) {
|
|
554
559
|
return function ($this, el, fromIndex) {
|
|
555
560
|
var O = toIndexedObject$4($this);
|
|
556
|
-
var length = lengthOfArrayLike$
|
|
561
|
+
var length = lengthOfArrayLike$5(O);
|
|
562
|
+
if (length === 0) return !IS_INCLUDES && -1;
|
|
557
563
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
558
564
|
var value;
|
|
559
565
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -572,31 +578,31 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
572
578
|
var arrayIncludes = {
|
|
573
579
|
// `Array.prototype.includes` method
|
|
574
580
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
575
|
-
includes: createMethod$
|
|
581
|
+
includes: createMethod$3(true),
|
|
576
582
|
// `Array.prototype.indexOf` method
|
|
577
583
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
578
|
-
indexOf: createMethod$
|
|
584
|
+
indexOf: createMethod$3(false)
|
|
579
585
|
};
|
|
580
586
|
|
|
581
587
|
var hiddenKeys$4 = {};
|
|
582
588
|
|
|
583
|
-
var uncurryThis$
|
|
584
|
-
var hasOwn$
|
|
589
|
+
var uncurryThis$k = functionUncurryThis;
|
|
590
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
585
591
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
586
|
-
var indexOf = arrayIncludes.indexOf;
|
|
592
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
587
593
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
588
594
|
|
|
589
|
-
var push$
|
|
595
|
+
var push$3 = uncurryThis$k([].push);
|
|
590
596
|
|
|
591
597
|
var objectKeysInternal = function (object, names) {
|
|
592
598
|
var O = toIndexedObject$3(object);
|
|
593
599
|
var i = 0;
|
|
594
600
|
var result = [];
|
|
595
601
|
var key;
|
|
596
|
-
for (key in O) !hasOwn$
|
|
602
|
+
for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$3(result, key);
|
|
597
603
|
// Don't enum bug & hidden keys
|
|
598
|
-
while (names.length > i) if (hasOwn$
|
|
599
|
-
~indexOf(result, key) || push$
|
|
604
|
+
while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
|
|
605
|
+
~indexOf$1(result, key) || push$3(result, key);
|
|
600
606
|
}
|
|
601
607
|
return result;
|
|
602
608
|
};
|
|
@@ -622,18 +628,18 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
622
628
|
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
623
629
|
};
|
|
624
630
|
|
|
625
|
-
var DESCRIPTORS$
|
|
631
|
+
var DESCRIPTORS$a = descriptors;
|
|
626
632
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
627
633
|
var definePropertyModule$3 = objectDefineProperty;
|
|
628
|
-
var anObject$
|
|
634
|
+
var anObject$b = anObject$d;
|
|
629
635
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
630
636
|
var objectKeys$1 = objectKeys$2;
|
|
631
637
|
|
|
632
638
|
// `Object.defineProperties` method
|
|
633
639
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
634
640
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
635
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
636
|
-
anObject$
|
|
641
|
+
objectDefineProperties.f = DESCRIPTORS$a && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
642
|
+
anObject$b(O);
|
|
637
643
|
var props = toIndexedObject$2(Properties);
|
|
638
644
|
var keys = objectKeys$1(Properties);
|
|
639
645
|
var length = keys.length;
|
|
@@ -643,21 +649,21 @@ objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
643
649
|
return O;
|
|
644
650
|
};
|
|
645
651
|
|
|
646
|
-
var getBuiltIn$
|
|
652
|
+
var getBuiltIn$7 = getBuiltIn$9;
|
|
647
653
|
|
|
648
|
-
var html$2 = getBuiltIn$
|
|
654
|
+
var html$2 = getBuiltIn$7('document', 'documentElement');
|
|
649
655
|
|
|
650
|
-
var shared$
|
|
656
|
+
var shared$2 = shared$4;
|
|
651
657
|
var uid = uid$2;
|
|
652
658
|
|
|
653
|
-
var keys = shared$
|
|
659
|
+
var keys = shared$2('keys');
|
|
654
660
|
|
|
655
661
|
var sharedKey$3 = function (key) {
|
|
656
662
|
return keys[key] || (keys[key] = uid(key));
|
|
657
663
|
};
|
|
658
664
|
|
|
659
665
|
/* global ActiveXObject -- old IE, WSH */
|
|
660
|
-
var anObject$
|
|
666
|
+
var anObject$a = anObject$d;
|
|
661
667
|
var definePropertiesModule = objectDefineProperties;
|
|
662
668
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
663
669
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -731,7 +737,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
|
|
|
731
737
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
732
738
|
var result;
|
|
733
739
|
if (O !== null) {
|
|
734
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
740
|
+
EmptyConstructor[PROTOTYPE] = anObject$a(O);
|
|
735
741
|
result = new EmptyConstructor();
|
|
736
742
|
EmptyConstructor[PROTOTYPE] = null;
|
|
737
743
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -740,19 +746,19 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
740
746
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
741
747
|
};
|
|
742
748
|
|
|
743
|
-
var wellKnownSymbol$
|
|
744
|
-
var create$
|
|
745
|
-
var defineProperty$
|
|
749
|
+
var wellKnownSymbol$f = wellKnownSymbol$h;
|
|
750
|
+
var create$2 = objectCreate;
|
|
751
|
+
var defineProperty$6 = objectDefineProperty.f;
|
|
746
752
|
|
|
747
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
753
|
+
var UNSCOPABLES = wellKnownSymbol$f('unscopables');
|
|
748
754
|
var ArrayPrototype$1 = Array.prototype;
|
|
749
755
|
|
|
750
756
|
// Array.prototype[@@unscopables]
|
|
751
757
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
752
758
|
if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
753
|
-
defineProperty$
|
|
759
|
+
defineProperty$6(ArrayPrototype$1, UNSCOPABLES, {
|
|
754
760
|
configurable: true,
|
|
755
|
-
value: create$
|
|
761
|
+
value: create$2(null)
|
|
756
762
|
});
|
|
757
763
|
}
|
|
758
764
|
|
|
@@ -763,14 +769,14 @@ var addToUnscopables$2 = function (key) {
|
|
|
763
769
|
|
|
764
770
|
var iterators = {};
|
|
765
771
|
|
|
766
|
-
var global$
|
|
767
|
-
var isCallable$
|
|
772
|
+
var global$g = global$n;
|
|
773
|
+
var isCallable$h = isCallable$n;
|
|
768
774
|
|
|
769
|
-
var WeakMap$1 = global$
|
|
775
|
+
var WeakMap$1 = global$g.WeakMap;
|
|
770
776
|
|
|
771
|
-
var weakMapBasicDetection = isCallable$
|
|
777
|
+
var weakMapBasicDetection = isCallable$h(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
772
778
|
|
|
773
|
-
var createPropertyDescriptor$
|
|
779
|
+
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
774
780
|
return {
|
|
775
781
|
enumerable: !(bitmap & 1),
|
|
776
782
|
configurable: !(bitmap & 2),
|
|
@@ -779,29 +785,29 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
779
785
|
};
|
|
780
786
|
};
|
|
781
787
|
|
|
782
|
-
var DESCRIPTORS$
|
|
788
|
+
var DESCRIPTORS$9 = descriptors;
|
|
783
789
|
var definePropertyModule$2 = objectDefineProperty;
|
|
784
|
-
var createPropertyDescriptor$
|
|
790
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
785
791
|
|
|
786
|
-
var createNonEnumerableProperty$
|
|
787
|
-
return definePropertyModule$2.f(object, key, createPropertyDescriptor$
|
|
792
|
+
var createNonEnumerableProperty$8 = DESCRIPTORS$9 ? function (object, key, value) {
|
|
793
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$3(1, value));
|
|
788
794
|
} : function (object, key, value) {
|
|
789
795
|
object[key] = value;
|
|
790
796
|
return object;
|
|
791
797
|
};
|
|
792
798
|
|
|
793
799
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
794
|
-
var global$
|
|
795
|
-
var isObject$
|
|
796
|
-
var createNonEnumerableProperty$
|
|
797
|
-
var hasOwn$
|
|
798
|
-
var shared = sharedStore;
|
|
800
|
+
var global$f = global$n;
|
|
801
|
+
var isObject$8 = isObject$d;
|
|
802
|
+
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
803
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
804
|
+
var shared$1 = sharedStore.exports;
|
|
799
805
|
var sharedKey$1 = sharedKey$3;
|
|
800
806
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
801
807
|
|
|
802
808
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
803
|
-
var TypeError$2 = global$
|
|
804
|
-
var WeakMap = global$
|
|
809
|
+
var TypeError$2 = global$f.TypeError;
|
|
810
|
+
var WeakMap = global$f.WeakMap;
|
|
805
811
|
var set$1, get, has;
|
|
806
812
|
|
|
807
813
|
var enforce = function (it) {
|
|
@@ -811,14 +817,14 @@ var enforce = function (it) {
|
|
|
811
817
|
var getterFor = function (TYPE) {
|
|
812
818
|
return function (it) {
|
|
813
819
|
var state;
|
|
814
|
-
if (!isObject$
|
|
820
|
+
if (!isObject$8(it) || (state = get(it)).type !== TYPE) {
|
|
815
821
|
throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
816
822
|
} return state;
|
|
817
823
|
};
|
|
818
824
|
};
|
|
819
825
|
|
|
820
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
821
|
-
var store$1 = shared.state || (shared.state = new WeakMap());
|
|
826
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
827
|
+
var store$1 = shared$1.state || (shared$1.state = new WeakMap());
|
|
822
828
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
823
829
|
store$1.get = store$1.get;
|
|
824
830
|
store$1.has = store$1.has;
|
|
@@ -840,16 +846,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
840
846
|
var STATE = sharedKey$1('state');
|
|
841
847
|
hiddenKeys$1[STATE] = true;
|
|
842
848
|
set$1 = function (it, metadata) {
|
|
843
|
-
if (hasOwn$
|
|
849
|
+
if (hasOwn$9(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
844
850
|
metadata.facade = it;
|
|
845
|
-
createNonEnumerableProperty$
|
|
851
|
+
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
846
852
|
return metadata;
|
|
847
853
|
};
|
|
848
854
|
get = function (it) {
|
|
849
|
-
return hasOwn$
|
|
855
|
+
return hasOwn$9(it, STATE) ? it[STATE] : {};
|
|
850
856
|
};
|
|
851
857
|
has = function (it) {
|
|
852
|
-
return hasOwn$
|
|
858
|
+
return hasOwn$9(it, STATE);
|
|
853
859
|
};
|
|
854
860
|
}
|
|
855
861
|
|
|
@@ -867,25 +873,25 @@ var objectPropertyIsEnumerable = {};
|
|
|
867
873
|
|
|
868
874
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
869
875
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
870
|
-
var getOwnPropertyDescriptor$
|
|
876
|
+
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
871
877
|
|
|
872
878
|
// Nashorn ~ JDK8 bug
|
|
873
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
879
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
874
880
|
|
|
875
881
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
876
882
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
877
883
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
878
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
884
|
+
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
879
885
|
return !!descriptor && descriptor.enumerable;
|
|
880
886
|
} : $propertyIsEnumerable;
|
|
881
887
|
|
|
882
|
-
var DESCRIPTORS$
|
|
883
|
-
var call$
|
|
888
|
+
var DESCRIPTORS$8 = descriptors;
|
|
889
|
+
var call$f = functionCall;
|
|
884
890
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
885
|
-
var createPropertyDescriptor$
|
|
891
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
886
892
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
887
893
|
var toPropertyKey = toPropertyKey$2;
|
|
888
|
-
var hasOwn$
|
|
894
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
889
895
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
890
896
|
|
|
891
897
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -893,28 +899,28 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
893
899
|
|
|
894
900
|
// `Object.getOwnPropertyDescriptor` method
|
|
895
901
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
896
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
902
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
897
903
|
O = toIndexedObject$1(O);
|
|
898
904
|
P = toPropertyKey(P);
|
|
899
905
|
if (IE8_DOM_DEFINE) try {
|
|
900
906
|
return $getOwnPropertyDescriptor(O, P);
|
|
901
907
|
} catch (error) { /* empty */ }
|
|
902
|
-
if (hasOwn$
|
|
908
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$f(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
903
909
|
};
|
|
904
910
|
|
|
905
911
|
var makeBuiltIn$3 = {exports: {}};
|
|
906
912
|
|
|
907
|
-
var DESCRIPTORS$
|
|
908
|
-
var hasOwn$
|
|
913
|
+
var DESCRIPTORS$7 = descriptors;
|
|
914
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
909
915
|
|
|
910
916
|
var FunctionPrototype$1 = Function.prototype;
|
|
911
917
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
912
|
-
var getDescriptor = DESCRIPTORS$
|
|
918
|
+
var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
|
|
913
919
|
|
|
914
|
-
var EXISTS = hasOwn$
|
|
920
|
+
var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
|
|
915
921
|
// additional protection from minified / mangled / dropped function names
|
|
916
922
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
917
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
923
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
918
924
|
|
|
919
925
|
var functionName = {
|
|
920
926
|
EXISTS: EXISTS,
|
|
@@ -922,14 +928,14 @@ var functionName = {
|
|
|
922
928
|
CONFIGURABLE: CONFIGURABLE
|
|
923
929
|
};
|
|
924
930
|
|
|
925
|
-
var uncurryThis$
|
|
926
|
-
var isCallable$
|
|
927
|
-
var store = sharedStore;
|
|
931
|
+
var uncurryThis$j = functionUncurryThis;
|
|
932
|
+
var isCallable$g = isCallable$n;
|
|
933
|
+
var store = sharedStore.exports;
|
|
928
934
|
|
|
929
|
-
var functionToString = uncurryThis$
|
|
935
|
+
var functionToString = uncurryThis$j(Function.toString);
|
|
930
936
|
|
|
931
937
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
932
|
-
if (!isCallable$
|
|
938
|
+
if (!isCallable$g(store.inspectSource)) {
|
|
933
939
|
store.inspectSource = function (it) {
|
|
934
940
|
return functionToString(it);
|
|
935
941
|
};
|
|
@@ -937,51 +943,51 @@ if (!isCallable$c(store.inspectSource)) {
|
|
|
937
943
|
|
|
938
944
|
var inspectSource$3 = store.inspectSource;
|
|
939
945
|
|
|
940
|
-
var uncurryThis$
|
|
941
|
-
var fails$
|
|
942
|
-
var isCallable$
|
|
943
|
-
var hasOwn$
|
|
944
|
-
var DESCRIPTORS$
|
|
946
|
+
var uncurryThis$i = functionUncurryThis;
|
|
947
|
+
var fails$j = fails$q;
|
|
948
|
+
var isCallable$f = isCallable$n;
|
|
949
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
950
|
+
var DESCRIPTORS$6 = descriptors;
|
|
945
951
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
946
952
|
var inspectSource$2 = inspectSource$3;
|
|
947
953
|
var InternalStateModule$2 = internalState;
|
|
948
954
|
|
|
949
955
|
var enforceInternalState = InternalStateModule$2.enforce;
|
|
950
|
-
var getInternalState$
|
|
951
|
-
var $String$
|
|
956
|
+
var getInternalState$2 = InternalStateModule$2.get;
|
|
957
|
+
var $String$3 = String;
|
|
952
958
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
953
|
-
var defineProperty$
|
|
954
|
-
var stringSlice = uncurryThis$
|
|
955
|
-
var replace$
|
|
956
|
-
var join = uncurryThis$
|
|
959
|
+
var defineProperty$5 = Object.defineProperty;
|
|
960
|
+
var stringSlice$3 = uncurryThis$i(''.slice);
|
|
961
|
+
var replace$4 = uncurryThis$i(''.replace);
|
|
962
|
+
var join = uncurryThis$i([].join);
|
|
957
963
|
|
|
958
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
959
|
-
return defineProperty$
|
|
964
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$j(function () {
|
|
965
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
960
966
|
});
|
|
961
967
|
|
|
962
968
|
var TEMPLATE = String(String).split('String');
|
|
963
969
|
|
|
964
970
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
965
|
-
if (stringSlice($String$
|
|
966
|
-
name = '[' + replace$
|
|
971
|
+
if (stringSlice$3($String$3(name), 0, 7) === 'Symbol(') {
|
|
972
|
+
name = '[' + replace$4($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
967
973
|
}
|
|
968
974
|
if (options && options.getter) name = 'get ' + name;
|
|
969
975
|
if (options && options.setter) name = 'set ' + name;
|
|
970
|
-
if (!hasOwn$
|
|
971
|
-
if (DESCRIPTORS$
|
|
976
|
+
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
977
|
+
if (DESCRIPTORS$6) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
972
978
|
else value.name = name;
|
|
973
979
|
}
|
|
974
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
975
|
-
defineProperty$
|
|
980
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
|
|
981
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
|
976
982
|
}
|
|
977
983
|
try {
|
|
978
|
-
if (options && hasOwn$
|
|
979
|
-
if (DESCRIPTORS$
|
|
984
|
+
if (options && hasOwn$6(options, 'constructor') && options.constructor) {
|
|
985
|
+
if (DESCRIPTORS$6) defineProperty$5(value, 'prototype', { writable: false });
|
|
980
986
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
981
987
|
} else if (value.prototype) value.prototype = undefined;
|
|
982
988
|
} catch (error) { /* empty */ }
|
|
983
989
|
var state = enforceInternalState(value);
|
|
984
|
-
if (!hasOwn$
|
|
990
|
+
if (!hasOwn$6(state, 'source')) {
|
|
985
991
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
986
992
|
} return value;
|
|
987
993
|
};
|
|
@@ -989,19 +995,19 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
989
995
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
990
996
|
// eslint-disable-next-line no-extend-native -- required
|
|
991
997
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
992
|
-
return isCallable$
|
|
998
|
+
return isCallable$f(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
993
999
|
}, 'toString');
|
|
994
1000
|
|
|
995
|
-
var isCallable$
|
|
1001
|
+
var isCallable$e = isCallable$n;
|
|
996
1002
|
var definePropertyModule$1 = objectDefineProperty;
|
|
997
1003
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
998
1004
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
999
1005
|
|
|
1000
|
-
var defineBuiltIn$
|
|
1006
|
+
var defineBuiltIn$7 = function (O, key, value, options) {
|
|
1001
1007
|
if (!options) options = {};
|
|
1002
1008
|
var simple = options.enumerable;
|
|
1003
1009
|
var name = options.name !== undefined ? options.name : key;
|
|
1004
|
-
if (isCallable$
|
|
1010
|
+
if (isCallable$e(value)) makeBuiltIn$1(value, name, options);
|
|
1005
1011
|
if (options.global) {
|
|
1006
1012
|
if (simple) O[key] = value;
|
|
1007
1013
|
else defineGlobalProperty$1(key, value);
|
|
@@ -1039,40 +1045,40 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1039
1045
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1040
1046
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1041
1047
|
|
|
1042
|
-
var getBuiltIn$
|
|
1043
|
-
var uncurryThis$
|
|
1048
|
+
var getBuiltIn$6 = getBuiltIn$9;
|
|
1049
|
+
var uncurryThis$h = functionUncurryThis;
|
|
1044
1050
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1045
1051
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1046
|
-
var anObject$
|
|
1052
|
+
var anObject$9 = anObject$d;
|
|
1047
1053
|
|
|
1048
|
-
var concat$1 = uncurryThis$
|
|
1054
|
+
var concat$1 = uncurryThis$h([].concat);
|
|
1049
1055
|
|
|
1050
1056
|
// all object keys, includes non-enumerable and symbols
|
|
1051
|
-
var ownKeys$1 = getBuiltIn$
|
|
1052
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
1057
|
+
var ownKeys$1 = getBuiltIn$6('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1058
|
+
var keys = getOwnPropertyNamesModule.f(anObject$9(it));
|
|
1053
1059
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1054
1060
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
1055
1061
|
};
|
|
1056
1062
|
|
|
1057
|
-
var hasOwn$
|
|
1063
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
1058
1064
|
var ownKeys = ownKeys$1;
|
|
1059
1065
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1060
1066
|
var definePropertyModule = objectDefineProperty;
|
|
1061
1067
|
|
|
1062
|
-
var copyConstructorProperties$
|
|
1068
|
+
var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
1063
1069
|
var keys = ownKeys(source);
|
|
1064
1070
|
var defineProperty = definePropertyModule.f;
|
|
1065
1071
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1066
1072
|
for (var i = 0; i < keys.length; i++) {
|
|
1067
1073
|
var key = keys[i];
|
|
1068
|
-
if (!hasOwn$
|
|
1074
|
+
if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
|
|
1069
1075
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1070
1076
|
}
|
|
1071
1077
|
}
|
|
1072
1078
|
};
|
|
1073
1079
|
|
|
1074
|
-
var fails$
|
|
1075
|
-
var isCallable$
|
|
1080
|
+
var fails$i = fails$q;
|
|
1081
|
+
var isCallable$d = isCallable$n;
|
|
1076
1082
|
|
|
1077
1083
|
var replacement = /#|\.prototype\./;
|
|
1078
1084
|
|
|
@@ -1080,7 +1086,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
1080
1086
|
var value = data[normalize(feature)];
|
|
1081
1087
|
return value === POLYFILL ? true
|
|
1082
1088
|
: value === NATIVE ? false
|
|
1083
|
-
: isCallable$
|
|
1089
|
+
: isCallable$d(detection) ? fails$i(detection)
|
|
1084
1090
|
: !!detection;
|
|
1085
1091
|
};
|
|
1086
1092
|
|
|
@@ -1094,12 +1100,12 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
1094
1100
|
|
|
1095
1101
|
var isForced_1 = isForced$2;
|
|
1096
1102
|
|
|
1097
|
-
var global$
|
|
1098
|
-
var getOwnPropertyDescriptor$
|
|
1099
|
-
var createNonEnumerableProperty$
|
|
1100
|
-
var defineBuiltIn$
|
|
1103
|
+
var global$e = global$n;
|
|
1104
|
+
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
1105
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
1106
|
+
var defineBuiltIn$6 = defineBuiltIn$7;
|
|
1101
1107
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1102
|
-
var copyConstructorProperties = copyConstructorProperties$
|
|
1108
|
+
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
1103
1109
|
var isForced$1 = isForced_1;
|
|
1104
1110
|
|
|
1105
1111
|
/*
|
|
@@ -1123,44 +1129,44 @@ var _export = function (options, source) {
|
|
|
1123
1129
|
var STATIC = options.stat;
|
|
1124
1130
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1125
1131
|
if (GLOBAL) {
|
|
1126
|
-
target = global$
|
|
1132
|
+
target = global$e;
|
|
1127
1133
|
} else if (STATIC) {
|
|
1128
|
-
target = global$
|
|
1134
|
+
target = global$e[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1129
1135
|
} else {
|
|
1130
|
-
target = global$
|
|
1136
|
+
target = global$e[TARGET] && global$e[TARGET].prototype;
|
|
1131
1137
|
}
|
|
1132
1138
|
if (target) for (key in source) {
|
|
1133
1139
|
sourceProperty = source[key];
|
|
1134
1140
|
if (options.dontCallGetSet) {
|
|
1135
|
-
descriptor = getOwnPropertyDescriptor$
|
|
1141
|
+
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
1136
1142
|
targetProperty = descriptor && descriptor.value;
|
|
1137
1143
|
} else targetProperty = target[key];
|
|
1138
1144
|
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1139
1145
|
// contained in target
|
|
1140
1146
|
if (!FORCED && targetProperty !== undefined) {
|
|
1141
1147
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1142
|
-
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1148
|
+
copyConstructorProperties$1(sourceProperty, targetProperty);
|
|
1143
1149
|
}
|
|
1144
1150
|
// add a flag to not completely full polyfills
|
|
1145
1151
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1146
|
-
createNonEnumerableProperty$
|
|
1152
|
+
createNonEnumerableProperty$6(sourceProperty, 'sham', true);
|
|
1147
1153
|
}
|
|
1148
|
-
defineBuiltIn$
|
|
1154
|
+
defineBuiltIn$6(target, key, sourceProperty, options);
|
|
1149
1155
|
}
|
|
1150
1156
|
};
|
|
1151
1157
|
|
|
1152
|
-
var fails$
|
|
1158
|
+
var fails$h = fails$q;
|
|
1153
1159
|
|
|
1154
|
-
var correctPrototypeGetter = !fails$
|
|
1160
|
+
var correctPrototypeGetter = !fails$h(function () {
|
|
1155
1161
|
function F() { /* empty */ }
|
|
1156
1162
|
F.prototype.constructor = null;
|
|
1157
1163
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1158
1164
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1159
1165
|
});
|
|
1160
1166
|
|
|
1161
|
-
var hasOwn$
|
|
1162
|
-
var isCallable$
|
|
1163
|
-
var toObject$
|
|
1167
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1168
|
+
var isCallable$c = isCallable$n;
|
|
1169
|
+
var toObject$5 = toObject$7;
|
|
1164
1170
|
var sharedKey = sharedKey$3;
|
|
1165
1171
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1166
1172
|
|
|
@@ -1172,22 +1178,22 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1172
1178
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1173
1179
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1174
1180
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1175
|
-
var object = toObject$
|
|
1176
|
-
if (hasOwn$
|
|
1181
|
+
var object = toObject$5(O);
|
|
1182
|
+
if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
|
|
1177
1183
|
var constructor = object.constructor;
|
|
1178
|
-
if (isCallable$
|
|
1184
|
+
if (isCallable$c(constructor) && object instanceof constructor) {
|
|
1179
1185
|
return constructor.prototype;
|
|
1180
1186
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1181
1187
|
};
|
|
1182
1188
|
|
|
1183
|
-
var fails$
|
|
1184
|
-
var isCallable$
|
|
1185
|
-
var isObject$
|
|
1189
|
+
var fails$g = fails$q;
|
|
1190
|
+
var isCallable$b = isCallable$n;
|
|
1191
|
+
var isObject$7 = isObject$d;
|
|
1186
1192
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1187
|
-
var defineBuiltIn$
|
|
1188
|
-
var wellKnownSymbol$
|
|
1193
|
+
var defineBuiltIn$5 = defineBuiltIn$7;
|
|
1194
|
+
var wellKnownSymbol$e = wellKnownSymbol$h;
|
|
1189
1195
|
|
|
1190
|
-
var ITERATOR$6 = wellKnownSymbol$
|
|
1196
|
+
var ITERATOR$6 = wellKnownSymbol$e('iterator');
|
|
1191
1197
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1192
1198
|
|
|
1193
1199
|
// `%IteratorPrototype%` object
|
|
@@ -1205,7 +1211,7 @@ if ([].keys) {
|
|
|
1205
1211
|
}
|
|
1206
1212
|
}
|
|
1207
1213
|
|
|
1208
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1214
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$7(IteratorPrototype$2) || fails$g(function () {
|
|
1209
1215
|
var test = {};
|
|
1210
1216
|
// FF44- legacy iterators case
|
|
1211
1217
|
return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
|
|
@@ -1215,8 +1221,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1215
1221
|
|
|
1216
1222
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1217
1223
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1218
|
-
if (!isCallable$
|
|
1219
|
-
defineBuiltIn$
|
|
1224
|
+
if (!isCallable$b(IteratorPrototype$2[ITERATOR$6])) {
|
|
1225
|
+
defineBuiltIn$5(IteratorPrototype$2, ITERATOR$6, function () {
|
|
1220
1226
|
return this;
|
|
1221
1227
|
});
|
|
1222
1228
|
}
|
|
@@ -1226,22 +1232,22 @@ var iteratorsCore = {
|
|
|
1226
1232
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1227
1233
|
};
|
|
1228
1234
|
|
|
1229
|
-
var defineProperty$
|
|
1230
|
-
var hasOwn$
|
|
1231
|
-
var wellKnownSymbol$
|
|
1235
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
1236
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1237
|
+
var wellKnownSymbol$d = wellKnownSymbol$h;
|
|
1232
1238
|
|
|
1233
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1239
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
|
|
1234
1240
|
|
|
1235
1241
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1236
1242
|
if (target && !STATIC) target = target.prototype;
|
|
1237
|
-
if (target && !hasOwn$
|
|
1238
|
-
defineProperty$
|
|
1243
|
+
if (target && !hasOwn$3(target, TO_STRING_TAG$2)) {
|
|
1244
|
+
defineProperty$4(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1239
1245
|
}
|
|
1240
1246
|
};
|
|
1241
1247
|
|
|
1242
1248
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1243
|
-
var create = objectCreate;
|
|
1244
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
1249
|
+
var create$1 = objectCreate;
|
|
1250
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
1245
1251
|
var setToStringTag$3 = setToStringTag$4;
|
|
1246
1252
|
var Iterators$4 = iterators;
|
|
1247
1253
|
|
|
@@ -1249,41 +1255,42 @@ var returnThis$1 = function () { return this; };
|
|
|
1249
1255
|
|
|
1250
1256
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1251
1257
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1252
|
-
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1258
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
1253
1259
|
setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
|
|
1254
1260
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1255
1261
|
return IteratorConstructor;
|
|
1256
1262
|
};
|
|
1257
1263
|
|
|
1258
|
-
var uncurryThis$
|
|
1264
|
+
var uncurryThis$g = functionUncurryThis;
|
|
1259
1265
|
var aCallable$8 = aCallable$a;
|
|
1260
1266
|
|
|
1261
1267
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1262
1268
|
try {
|
|
1263
1269
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1264
|
-
return uncurryThis$
|
|
1270
|
+
return uncurryThis$g(aCallable$8(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1265
1271
|
} catch (error) { /* empty */ }
|
|
1266
1272
|
};
|
|
1267
1273
|
|
|
1268
|
-
var isObject$
|
|
1274
|
+
var isObject$6 = isObject$d;
|
|
1269
1275
|
|
|
1270
1276
|
var isPossiblePrototype$1 = function (argument) {
|
|
1271
|
-
return isObject$
|
|
1277
|
+
return isObject$6(argument) || argument === null;
|
|
1272
1278
|
};
|
|
1273
1279
|
|
|
1274
1280
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1275
1281
|
|
|
1276
|
-
var $String$
|
|
1277
|
-
var $TypeError$
|
|
1282
|
+
var $String$2 = String;
|
|
1283
|
+
var $TypeError$c = TypeError;
|
|
1278
1284
|
|
|
1279
1285
|
var aPossiblePrototype$1 = function (argument) {
|
|
1280
1286
|
if (isPossiblePrototype(argument)) return argument;
|
|
1281
|
-
throw new $TypeError$
|
|
1287
|
+
throw new $TypeError$c("Can't set " + $String$2(argument) + ' as a prototype');
|
|
1282
1288
|
};
|
|
1283
1289
|
|
|
1284
1290
|
/* eslint-disable no-proto -- safe */
|
|
1285
1291
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1286
|
-
var
|
|
1292
|
+
var isObject$5 = isObject$d;
|
|
1293
|
+
var requireObjectCoercible$4 = requireObjectCoercible$7;
|
|
1287
1294
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1288
1295
|
|
|
1289
1296
|
// `Object.setPrototypeOf` method
|
|
@@ -1300,25 +1307,26 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1300
1307
|
CORRECT_SETTER = test instanceof Array;
|
|
1301
1308
|
} catch (error) { /* empty */ }
|
|
1302
1309
|
return function setPrototypeOf(O, proto) {
|
|
1303
|
-
|
|
1310
|
+
requireObjectCoercible$4(O);
|
|
1304
1311
|
aPossiblePrototype(proto);
|
|
1312
|
+
if (!isObject$5(O)) return O;
|
|
1305
1313
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1306
1314
|
else O.__proto__ = proto;
|
|
1307
1315
|
return O;
|
|
1308
1316
|
};
|
|
1309
1317
|
}() : undefined);
|
|
1310
1318
|
|
|
1311
|
-
var $$
|
|
1312
|
-
var call$
|
|
1319
|
+
var $$i = _export;
|
|
1320
|
+
var call$e = functionCall;
|
|
1313
1321
|
var FunctionName = functionName;
|
|
1314
|
-
var isCallable$
|
|
1322
|
+
var isCallable$a = isCallable$n;
|
|
1315
1323
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1316
1324
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1317
|
-
var setPrototypeOf$
|
|
1325
|
+
var setPrototypeOf$3 = objectSetPrototypeOf;
|
|
1318
1326
|
var setToStringTag$2 = setToStringTag$4;
|
|
1319
|
-
var createNonEnumerableProperty$
|
|
1320
|
-
var defineBuiltIn$
|
|
1321
|
-
var wellKnownSymbol$
|
|
1327
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1328
|
+
var defineBuiltIn$4 = defineBuiltIn$7;
|
|
1329
|
+
var wellKnownSymbol$c = wellKnownSymbol$h;
|
|
1322
1330
|
var Iterators$3 = iterators;
|
|
1323
1331
|
var IteratorsCore = iteratorsCore;
|
|
1324
1332
|
|
|
@@ -1326,7 +1334,7 @@ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
|
1326
1334
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1327
1335
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1328
1336
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1329
|
-
var ITERATOR$5 = wellKnownSymbol$
|
|
1337
|
+
var ITERATOR$5 = wellKnownSymbol$c('iterator');
|
|
1330
1338
|
var KEYS = 'keys';
|
|
1331
1339
|
var VALUES = 'values';
|
|
1332
1340
|
var ENTRIES = 'entries';
|
|
@@ -1364,10 +1372,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1364
1372
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1365
1373
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1366
1374
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1367
|
-
if (setPrototypeOf$
|
|
1368
|
-
setPrototypeOf$
|
|
1369
|
-
} else if (!isCallable$
|
|
1370
|
-
defineBuiltIn$
|
|
1375
|
+
if (setPrototypeOf$3) {
|
|
1376
|
+
setPrototypeOf$3(CurrentIteratorPrototype, IteratorPrototype);
|
|
1377
|
+
} else if (!isCallable$a(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
1378
|
+
defineBuiltIn$4(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
1371
1379
|
}
|
|
1372
1380
|
}
|
|
1373
1381
|
// Set @@toStringTag to native iterators
|
|
@@ -1378,10 +1386,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1378
1386
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1379
1387
|
if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1380
1388
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1381
|
-
createNonEnumerableProperty$
|
|
1389
|
+
createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
|
|
1382
1390
|
} else {
|
|
1383
1391
|
INCORRECT_VALUES_NAME = true;
|
|
1384
|
-
defaultIterator = function values() { return call$
|
|
1392
|
+
defaultIterator = function values() { return call$e(nativeIterator, this); };
|
|
1385
1393
|
}
|
|
1386
1394
|
}
|
|
1387
1395
|
|
|
@@ -1394,14 +1402,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1394
1402
|
};
|
|
1395
1403
|
if (FORCED) for (KEY in methods) {
|
|
1396
1404
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1397
|
-
defineBuiltIn$
|
|
1405
|
+
defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);
|
|
1398
1406
|
}
|
|
1399
|
-
} else $$
|
|
1407
|
+
} else $$i({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1400
1408
|
}
|
|
1401
1409
|
|
|
1402
1410
|
// define iterator
|
|
1403
1411
|
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
1404
|
-
defineBuiltIn$
|
|
1412
|
+
defineBuiltIn$4(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
1405
1413
|
}
|
|
1406
1414
|
Iterators$3[NAME] = defaultIterator;
|
|
1407
1415
|
|
|
@@ -1418,14 +1426,14 @@ var toIndexedObject = toIndexedObject$5;
|
|
|
1418
1426
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
1419
1427
|
var Iterators$2 = iterators;
|
|
1420
1428
|
var InternalStateModule$1 = internalState;
|
|
1421
|
-
var defineProperty$
|
|
1429
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1422
1430
|
var defineIterator = iteratorDefine;
|
|
1423
1431
|
var createIterResultObject = createIterResultObject$1;
|
|
1424
|
-
var DESCRIPTORS$
|
|
1432
|
+
var DESCRIPTORS$5 = descriptors;
|
|
1425
1433
|
|
|
1426
1434
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1427
1435
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
1428
|
-
var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1436
|
+
var getInternalState$1 = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1429
1437
|
|
|
1430
1438
|
// `Array.prototype.entries` method
|
|
1431
1439
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1447,7 +1455,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1447
1455
|
// `%ArrayIteratorPrototype%.next` method
|
|
1448
1456
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1449
1457
|
}, function () {
|
|
1450
|
-
var state = getInternalState(this);
|
|
1458
|
+
var state = getInternalState$1(this);
|
|
1451
1459
|
var target = state.target;
|
|
1452
1460
|
var index = state.index++;
|
|
1453
1461
|
if (!target || index >= target.length) {
|
|
@@ -1471,8 +1479,8 @@ addToUnscopables$1('values');
|
|
|
1471
1479
|
addToUnscopables$1('entries');
|
|
1472
1480
|
|
|
1473
1481
|
// V8 ~ Chrome 45- bug
|
|
1474
|
-
if (DESCRIPTORS$
|
|
1475
|
-
defineProperty$
|
|
1482
|
+
if (DESCRIPTORS$5 && values.name !== 'values') try {
|
|
1483
|
+
defineProperty$3(values, 'name', { value: 'values' });
|
|
1476
1484
|
} catch (error) { /* empty */ }
|
|
1477
1485
|
|
|
1478
1486
|
// iterable DOM collections
|
|
@@ -1519,22 +1527,22 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1519
1527
|
|
|
1520
1528
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1521
1529
|
|
|
1522
|
-
var global$
|
|
1530
|
+
var global$d = global$n;
|
|
1523
1531
|
var DOMIterables = domIterables;
|
|
1524
1532
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1525
1533
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1526
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
1534
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
1527
1535
|
var setToStringTag$1 = setToStringTag$4;
|
|
1528
|
-
var wellKnownSymbol$
|
|
1536
|
+
var wellKnownSymbol$b = wellKnownSymbol$h;
|
|
1529
1537
|
|
|
1530
|
-
var ITERATOR$4 = wellKnownSymbol$
|
|
1538
|
+
var ITERATOR$4 = wellKnownSymbol$b('iterator');
|
|
1531
1539
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1532
1540
|
|
|
1533
1541
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1534
1542
|
if (CollectionPrototype) {
|
|
1535
1543
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1536
1544
|
if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
|
|
1537
|
-
createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
1545
|
+
createNonEnumerableProperty$4(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
1538
1546
|
} catch (error) {
|
|
1539
1547
|
CollectionPrototype[ITERATOR$4] = ArrayValues;
|
|
1540
1548
|
}
|
|
@@ -1542,7 +1550,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1542
1550
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1543
1551
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1544
1552
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1545
|
-
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1553
|
+
createNonEnumerableProperty$4(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1546
1554
|
} catch (error) {
|
|
1547
1555
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1548
1556
|
}
|
|
@@ -1551,35 +1559,206 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1551
1559
|
};
|
|
1552
1560
|
|
|
1553
1561
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1554
|
-
handlePrototype(global$
|
|
1562
|
+
handlePrototype(global$d[COLLECTION_NAME] && global$d[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1555
1563
|
}
|
|
1556
1564
|
|
|
1557
1565
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1558
1566
|
|
|
1559
|
-
var
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1567
|
+
var en = {
|
|
1568
|
+
"webmap-react-event": "event:",
|
|
1569
|
+
"webmap-react-sent": "Sent:",
|
|
1570
|
+
"webmap-react-utc": "UTC",
|
|
1571
|
+
"webmap-react-expires": "Expires:",
|
|
1572
|
+
"webmap-react-sender": "Sender:",
|
|
1573
|
+
"webmap-react-identifier": "Identifier:",
|
|
1574
|
+
"webmap-react-h5": "Query features along buffered line using WFS and CQL",
|
|
1575
|
+
"webmap-react-wfs": "WFS JSON URL:",
|
|
1576
|
+
"webmap-react-cql": "CQL expression:",
|
|
1577
|
+
"webmap-react-delete": "Delete",
|
|
1578
|
+
"webmap-react-feature-type": "Feature type",
|
|
1579
|
+
"webmap-react-feature-number": "Feature number",
|
|
1580
|
+
"webmap-react-intersection-shapes": "Intersection shapes",
|
|
1581
|
+
"webmap-react-features": "Features",
|
|
1582
|
+
"webmap-react-url": "URL:",
|
|
1583
|
+
"webmap-react-get-feature-info-result": "GetFeatureInfo result:",
|
|
1584
|
+
"webmap-react-view": "View",
|
|
1585
|
+
"webmap-react-edit": "Edit",
|
|
1586
|
+
"webmap-react-esc": "press ESC to exit draw mode",
|
|
1587
|
+
"webmap-react-no-layers": "No layers",
|
|
1588
|
+
"webmap-react-legend": "Legend",
|
|
1589
|
+
"webmap-react-title": "Title",
|
|
1590
|
+
"webmap-react-name": "Name",
|
|
1591
|
+
"webmap-react-service": "Service",
|
|
1592
|
+
"webmap-react-abstract": "Abstract",
|
|
1593
|
+
"webmap-react-dimensions": "Dimensions",
|
|
1594
|
+
"webmap-react-styles": "Styles",
|
|
1595
|
+
"webmap-react-bounding-box": "Bounding Box",
|
|
1596
|
+
"webmap-react-groups": "Groups",
|
|
1597
|
+
"webmap-react-keywords": "Keywords",
|
|
1598
|
+
"webmap-react-zoom-reset": "Reset zoom",
|
|
1599
|
+
"webmap-react-zoom-in": "Zoom in",
|
|
1600
|
+
"webmap-react-zoom-out": "Zoom out",
|
|
1601
|
+
"webmap-react-show": "Show",
|
|
1602
|
+
"webmap-react-click-diconnect": "Click to disconnect layer",
|
|
1603
|
+
"webmap-react-click-connect": "Click to connect layer"
|
|
1604
|
+
};
|
|
1605
|
+
var fi = {
|
|
1606
|
+
"webmap-react-event": "ei käännetty",
|
|
1607
|
+
"webmap-react-sent": "ei käännetty",
|
|
1608
|
+
"webmap-react-utc": "ei käännetty",
|
|
1609
|
+
"webmap-react-expires": "ei käännetty",
|
|
1610
|
+
"webmap-react-sender": "ei käännetty",
|
|
1611
|
+
"webmap-react-identifier": "ei käännetty",
|
|
1612
|
+
"webmap-react-h5": "ei käännetty",
|
|
1613
|
+
"webmap-react-wfs": "ei käännetty",
|
|
1614
|
+
"webmap-react-cql": "ei käännetty",
|
|
1615
|
+
"webmap-react-delete": "ei käännetty",
|
|
1616
|
+
"webmap-react-feature-type": "ei käännetty",
|
|
1617
|
+
"webmap-react-feature-number": "ei käännetty",
|
|
1618
|
+
"webmap-react-intersection-shapes": "ei käännetty",
|
|
1619
|
+
"webmap-react-get-feature-info-result": "ei käännetty",
|
|
1620
|
+
"webmap-react-view": "ei käännetty",
|
|
1621
|
+
"webmap-react-edit": "ei käännetty",
|
|
1622
|
+
"webmap-react-esc": "ei käännetty",
|
|
1623
|
+
"webmap-react-no-layers": "ei käännetty",
|
|
1624
|
+
"webmap-react-legend": "ei käännetty",
|
|
1625
|
+
"webmap-react-title": "ei käännetty",
|
|
1626
|
+
"webmap-react-name": "ei käännetty",
|
|
1627
|
+
"webmap-react-service": "ei käännetty",
|
|
1628
|
+
"webmap-react-abstract": "ei käännetty",
|
|
1629
|
+
"webmap-react-dimensions": "ei käännetty",
|
|
1630
|
+
"webmap-react-styles": "ei käännetty",
|
|
1631
|
+
"webmap-react-bounding-box": "ei käännetty",
|
|
1632
|
+
"webmap-react-groups": "ei käännetty",
|
|
1633
|
+
"webmap-react-keywords": "ei käännetty",
|
|
1634
|
+
"webmap-react-zoom-reset": "ei käännetty",
|
|
1635
|
+
"webmap-react-zoom-in": "ei käännetty",
|
|
1636
|
+
"webmap-react-zoom-out": "ei käännetty",
|
|
1637
|
+
"webmap-react-show": "ei käännetty",
|
|
1638
|
+
"webmap-react-click-diconnect": "ei käännetty",
|
|
1639
|
+
"webmap-react-click-connect": "ei käännetty"
|
|
1640
|
+
};
|
|
1641
|
+
var no = {
|
|
1642
|
+
"webmap-react-event": "event:",
|
|
1643
|
+
"webmap-react-sent": "Sendt:",
|
|
1644
|
+
"webmap-react-utc": "UTC",
|
|
1645
|
+
"webmap-react-expires": "Utgår:",
|
|
1646
|
+
"webmap-react-sender": "Avsender:",
|
|
1647
|
+
"webmap-react-identifier": "ikke oversatt",
|
|
1648
|
+
"webmap-react-h5": "ikke oversatt",
|
|
1649
|
+
"webmap-react-wfs": "ikke oversatt",
|
|
1650
|
+
"webmap-react-cql": "ikke oversatt",
|
|
1651
|
+
"webmap-react-delete": "Slett",
|
|
1652
|
+
"webmap-react-feature-type": "Feature type",
|
|
1653
|
+
"webmap-react-feature-number": "Feature nummer",
|
|
1654
|
+
"webmap-react-intersection-shapes": "ikke oversatt",
|
|
1655
|
+
"webmap-react-get-feature-info-result": "GetFeatureInfo resultat:",
|
|
1656
|
+
"webmap-react-view": "View",
|
|
1657
|
+
"webmap-react-edit": "Endre",
|
|
1658
|
+
"webmap-react-esc": "trykk ESC for å avslutte tegnemodus",
|
|
1659
|
+
"webmap-react-no-layers": "Ingen lag",
|
|
1660
|
+
"webmap-react-legend": "Legende",
|
|
1661
|
+
"webmap-react-title": "Tittel",
|
|
1662
|
+
"webmap-react-name": "Navn",
|
|
1663
|
+
"webmap-react-service": "Service",
|
|
1664
|
+
"webmap-react-abstract": "Abstract",
|
|
1665
|
+
"webmap-react-dimensions": "Dimensjoner",
|
|
1666
|
+
"webmap-react-styles": "Styles",
|
|
1667
|
+
"webmap-react-bounding-box": "Bounding Box",
|
|
1668
|
+
"webmap-react-groups": "Grupper",
|
|
1669
|
+
"webmap-react-keywords": "Stikkord",
|
|
1670
|
+
"webmap-react-zoom-reset": "Reset zoom",
|
|
1671
|
+
"webmap-react-zoom-in": "Zoom inn",
|
|
1672
|
+
"webmap-react-zoom-out": "Zoom ut",
|
|
1673
|
+
"webmap-react-show": "Vis",
|
|
1674
|
+
"webmap-react-click-diconnect": "Trykk for å avkoble lag",
|
|
1675
|
+
"webmap-react-click-connect": "Trykk for å koble lag"
|
|
1676
|
+
};
|
|
1677
|
+
var nl = {
|
|
1678
|
+
"webmap-react-event": "niet vertaald",
|
|
1679
|
+
"webmap-react-sent": "niet vertaald",
|
|
1680
|
+
"webmap-react-utc": "niet vertaald",
|
|
1681
|
+
"webmap-react-expires": "niet vertaald",
|
|
1682
|
+
"webmap-react-sender": "niet vertaald",
|
|
1683
|
+
"workspce-search": "niet vertaald",
|
|
1684
|
+
"webmap-react-h5": "niet vertaald",
|
|
1685
|
+
"webmap-react-wfs": "niet vertaald",
|
|
1686
|
+
"webmap-react-cql": "niet vertaald",
|
|
1687
|
+
"webmap-react-delete": "niet vertaald",
|
|
1688
|
+
"webmap-react-feature-type": "niet vertaald",
|
|
1689
|
+
"webmap-react-feature-number": "niet vertaald",
|
|
1690
|
+
"webmap-react-intersection-shapes": "niet vertaald",
|
|
1691
|
+
"webmap-react-get-feature-info-result": "niet vertaald",
|
|
1692
|
+
"webmap-react-view": "niet vertaald",
|
|
1693
|
+
"webmap-react-edit": "niet vertaald",
|
|
1694
|
+
"webmap-react-esc": "niet vertaald",
|
|
1695
|
+
"webmap-react-no-layers": "niet vertaald",
|
|
1696
|
+
"webmap-react-legend": "niet vertaald",
|
|
1697
|
+
"webmap-react-title": "niet vertaald",
|
|
1698
|
+
"webmap-react-name": "niet vertaald",
|
|
1699
|
+
"webmap-react-service": "niet vertaald",
|
|
1700
|
+
"webmap-react-abstract": "niet vertaald",
|
|
1701
|
+
"webmap-react-dimensions": "niet vertaald",
|
|
1702
|
+
"webmap-react-styles": "niet vertaald",
|
|
1703
|
+
"webmap-react-bounding-box": "niet vertaald",
|
|
1704
|
+
"webmap-react-groups": "niet vertaald",
|
|
1705
|
+
"webmap-react-keywords": "niet vertaald",
|
|
1706
|
+
"webmap-react-zoom-reset": "niet vertaald",
|
|
1707
|
+
"webmap-react-zoom-in": "niet vertaald",
|
|
1708
|
+
"webmap-react-zoom-out": "niet vertaald",
|
|
1709
|
+
"webmap-react-show": "niet vertaald",
|
|
1710
|
+
"webmap-react-click-diconnect": "niet vertaald",
|
|
1711
|
+
"webmap-react-click-connect": "niet vertaald"
|
|
1712
|
+
};
|
|
1713
|
+
var webmapReactTranslations = {
|
|
1714
|
+
en: en,
|
|
1715
|
+
fi: fi,
|
|
1716
|
+
no: no,
|
|
1717
|
+
nl: nl
|
|
1718
|
+
};
|
|
1719
|
+
|
|
1720
|
+
/* *
|
|
1721
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1722
|
+
* you may not use this file except in compliance with the License.
|
|
1723
|
+
* You may obtain a copy of the License at
|
|
1724
|
+
*
|
|
1725
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1726
|
+
*
|
|
1727
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1728
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1729
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1730
|
+
* See the License for the specific language governing permissions and
|
|
1731
|
+
* limitations under the License.
|
|
1732
|
+
*
|
|
1733
|
+
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
1734
|
+
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
1735
|
+
* */
|
|
1736
|
+
const WEBMAP_REACT_NAMESPACE = 'webmapreact';
|
|
1737
|
+
|
|
1738
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1739
|
+
var uncurryThis$f = functionUncurryThis;
|
|
1740
|
+
var call$d = functionCall;
|
|
1741
|
+
var fails$f = fails$q;
|
|
1563
1742
|
var objectKeys = objectKeys$2;
|
|
1564
1743
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1565
1744
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1566
|
-
var toObject$
|
|
1745
|
+
var toObject$4 = toObject$7;
|
|
1567
1746
|
var IndexedObject$1 = indexedObject;
|
|
1568
1747
|
|
|
1569
1748
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1570
1749
|
var $assign = Object.assign;
|
|
1571
1750
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1572
|
-
var defineProperty$
|
|
1573
|
-
var concat = uncurryThis$
|
|
1751
|
+
var defineProperty$2 = Object.defineProperty;
|
|
1752
|
+
var concat = uncurryThis$f([].concat);
|
|
1574
1753
|
|
|
1575
1754
|
// `Object.assign` method
|
|
1576
1755
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1577
|
-
var objectAssign = !$assign || fails$
|
|
1756
|
+
var objectAssign = !$assign || fails$f(function () {
|
|
1578
1757
|
// should have correct order of operations (Edge bug)
|
|
1579
|
-
if (DESCRIPTORS$
|
|
1758
|
+
if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
1580
1759
|
enumerable: true,
|
|
1581
1760
|
get: function () {
|
|
1582
|
-
defineProperty$
|
|
1761
|
+
defineProperty$2(this, 'b', {
|
|
1583
1762
|
value: 3,
|
|
1584
1763
|
enumerable: false
|
|
1585
1764
|
});
|
|
@@ -1595,7 +1774,7 @@ var objectAssign = !$assign || fails$7(function () {
|
|
|
1595
1774
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1596
1775
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1597
1776
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1598
|
-
var T = toObject$
|
|
1777
|
+
var T = toObject$4(target);
|
|
1599
1778
|
var argumentsLength = arguments.length;
|
|
1600
1779
|
var index = 1;
|
|
1601
1780
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -1608,18 +1787,18 @@ var objectAssign = !$assign || fails$7(function () {
|
|
|
1608
1787
|
var key;
|
|
1609
1788
|
while (length > j) {
|
|
1610
1789
|
key = keys[j++];
|
|
1611
|
-
if (!DESCRIPTORS$
|
|
1790
|
+
if (!DESCRIPTORS$4 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1612
1791
|
}
|
|
1613
1792
|
} return T;
|
|
1614
1793
|
} : $assign;
|
|
1615
1794
|
|
|
1616
|
-
var $$
|
|
1795
|
+
var $$h = _export;
|
|
1617
1796
|
var assign = objectAssign;
|
|
1618
1797
|
|
|
1619
1798
|
// `Object.assign` method
|
|
1620
1799
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1621
1800
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1622
|
-
$$
|
|
1801
|
+
$$h({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1623
1802
|
assign: assign
|
|
1624
1803
|
});
|
|
1625
1804
|
|
|
@@ -1726,17 +1905,21 @@ const Legend = ({
|
|
|
1726
1905
|
const [canvasContainerHeight, setCanvasContainerHeight] = useState(defaultCanvasHeight);
|
|
1727
1906
|
let imageWidth;
|
|
1728
1907
|
let imageHeight;
|
|
1908
|
+
const {
|
|
1909
|
+
t
|
|
1910
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
1911
|
+
const legendPrefix = t('webmap-react-legend');
|
|
1729
1912
|
/* Register callback to legendImagestore to trigger rerender when image is loaded. */
|
|
1730
1913
|
useEffect(() => {
|
|
1731
1914
|
legendImageStore.addImageEventCallback((image, id, imageEventType) => {
|
|
1732
1915
|
if (imageEventType === WMImageEventType.Loaded) {
|
|
1733
1916
|
setState(null);
|
|
1734
1917
|
}
|
|
1735
|
-
},
|
|
1918
|
+
}, `${legendPrefix}_${layerId}`);
|
|
1736
1919
|
return () => {
|
|
1737
|
-
legendImageStore.removeEventCallback(
|
|
1920
|
+
legendImageStore.removeEventCallback(`${legendPrefix}_${layerId}`);
|
|
1738
1921
|
};
|
|
1739
|
-
}, [layerId]);
|
|
1922
|
+
}, [layerId, legendPrefix]);
|
|
1740
1923
|
/* Should not do anything if no layer is given */
|
|
1741
1924
|
if (!layer) {
|
|
1742
1925
|
return null;
|
|
@@ -1805,6 +1988,37 @@ const Legend = ({
|
|
|
1805
1988
|
}));
|
|
1806
1989
|
};
|
|
1807
1990
|
|
|
1991
|
+
/* *
|
|
1992
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1993
|
+
* you may not use this file except in compliance with the License.
|
|
1994
|
+
* You may obtain a copy of the License at
|
|
1995
|
+
*
|
|
1996
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1997
|
+
*
|
|
1998
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1999
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2000
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2001
|
+
* See the License for the specific language governing permissions and
|
|
2002
|
+
* limitations under the License.
|
|
2003
|
+
*
|
|
2004
|
+
* Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2005
|
+
* Copyright 2024 - Finnish Meteorological Institute (FMI)
|
|
2006
|
+
* */
|
|
2007
|
+
const WebmapReactTranslationsWrapper = ({
|
|
2008
|
+
children
|
|
2009
|
+
}) => {
|
|
2010
|
+
const {
|
|
2011
|
+
i18n
|
|
2012
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
2013
|
+
React__default.useEffect(() => {
|
|
2014
|
+
i18n.addResourceBundle('en', WEBMAP_REACT_NAMESPACE, webmapReactTranslations.en);
|
|
2015
|
+
i18n.addResourceBundle('fi', WEBMAP_REACT_NAMESPACE, webmapReactTranslations.fi);
|
|
2016
|
+
i18n.addResourceBundle('no', WEBMAP_REACT_NAMESPACE, webmapReactTranslations.no);
|
|
2017
|
+
i18n.addResourceBundle('nl', WEBMAP_REACT_NAMESPACE, webmapReactTranslations.nl);
|
|
2018
|
+
}, [i18n]);
|
|
2019
|
+
return children;
|
|
2020
|
+
};
|
|
2021
|
+
|
|
1808
2022
|
/* *
|
|
1809
2023
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1810
2024
|
* you may not use this file except in compliance with the License.
|
|
@@ -1831,7 +2045,10 @@ const LegendDialog = ({
|
|
|
1831
2045
|
order: _order = 0,
|
|
1832
2046
|
source: _source = 'app'
|
|
1833
2047
|
}) => {
|
|
1834
|
-
|
|
2048
|
+
const {
|
|
2049
|
+
t
|
|
2050
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
2051
|
+
return /*#__PURE__*/React.createElement(WebmapReactTranslationsWrapper, null, /*#__PURE__*/React.createElement(ToolContainerDraggable, {
|
|
1835
2052
|
startPosition: {
|
|
1836
2053
|
right: 20,
|
|
1837
2054
|
top: 50
|
|
@@ -1869,12 +2086,12 @@ const LegendDialog = ({
|
|
|
1869
2086
|
fontWeight: 500,
|
|
1870
2087
|
fontSize: 14
|
|
1871
2088
|
}
|
|
1872
|
-
},
|
|
2089
|
+
}, t('webmap-react-no-layers'))))));
|
|
1873
2090
|
};
|
|
1874
2091
|
|
|
1875
|
-
var wellKnownSymbol$
|
|
2092
|
+
var wellKnownSymbol$a = wellKnownSymbol$h;
|
|
1876
2093
|
|
|
1877
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
2094
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$a('toStringTag');
|
|
1878
2095
|
var test$2 = {};
|
|
1879
2096
|
|
|
1880
2097
|
test$2[TO_STRING_TAG$1] = 'z';
|
|
@@ -1882,11 +2099,11 @@ test$2[TO_STRING_TAG$1] = 'z';
|
|
|
1882
2099
|
var toStringTagSupport = String(test$2) === '[object z]';
|
|
1883
2100
|
|
|
1884
2101
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1885
|
-
var isCallable$
|
|
2102
|
+
var isCallable$9 = isCallable$n;
|
|
1886
2103
|
var classofRaw$1 = classofRaw$2;
|
|
1887
|
-
var wellKnownSymbol$
|
|
2104
|
+
var wellKnownSymbol$9 = wellKnownSymbol$h;
|
|
1888
2105
|
|
|
1889
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
2106
|
+
var TO_STRING_TAG = wellKnownSymbol$9('toStringTag');
|
|
1890
2107
|
var $Object = Object;
|
|
1891
2108
|
|
|
1892
2109
|
// ES3 wrong here
|
|
@@ -1900,7 +2117,7 @@ var tryGet = function (it, key) {
|
|
|
1900
2117
|
};
|
|
1901
2118
|
|
|
1902
2119
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1903
|
-
var classof$
|
|
2120
|
+
var classof$8 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1904
2121
|
var O, tag, result;
|
|
1905
2122
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1906
2123
|
// @@toStringTag case
|
|
@@ -1908,37 +2125,37 @@ var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1908
2125
|
// builtinTag case
|
|
1909
2126
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1910
2127
|
// ES3 arguments fallback
|
|
1911
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$
|
|
2128
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
|
|
1912
2129
|
};
|
|
1913
2130
|
|
|
1914
|
-
var classof$
|
|
2131
|
+
var classof$7 = classof$8;
|
|
1915
2132
|
|
|
1916
|
-
var $String = String;
|
|
2133
|
+
var $String$1 = String;
|
|
1917
2134
|
|
|
1918
|
-
var toString$
|
|
1919
|
-
if (classof$
|
|
1920
|
-
return $String(argument);
|
|
2135
|
+
var toString$9 = function (argument) {
|
|
2136
|
+
if (classof$7(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
2137
|
+
return $String$1(argument);
|
|
1921
2138
|
};
|
|
1922
2139
|
|
|
1923
2140
|
// a string of all valid unicode whitespaces
|
|
1924
2141
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
1925
2142
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
1926
2143
|
|
|
1927
|
-
var uncurryThis$
|
|
1928
|
-
var requireObjectCoercible$
|
|
1929
|
-
var toString$
|
|
2144
|
+
var uncurryThis$e = functionUncurryThis;
|
|
2145
|
+
var requireObjectCoercible$3 = requireObjectCoercible$7;
|
|
2146
|
+
var toString$8 = toString$9;
|
|
1930
2147
|
var whitespaces$1 = whitespaces$2;
|
|
1931
2148
|
|
|
1932
|
-
var replace = uncurryThis$
|
|
2149
|
+
var replace$3 = uncurryThis$e(''.replace);
|
|
1933
2150
|
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
1934
2151
|
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
1935
2152
|
|
|
1936
2153
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
1937
|
-
var createMethod$
|
|
2154
|
+
var createMethod$2 = function (TYPE) {
|
|
1938
2155
|
return function ($this) {
|
|
1939
|
-
var string = toString$
|
|
1940
|
-
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
1941
|
-
if (TYPE & 2) string = replace(string, rtrim, '$1');
|
|
2156
|
+
var string = toString$8(requireObjectCoercible$3($this));
|
|
2157
|
+
if (TYPE & 1) string = replace$3(string, ltrim, '');
|
|
2158
|
+
if (TYPE & 2) string = replace$3(string, rtrim, '$1');
|
|
1942
2159
|
return string;
|
|
1943
2160
|
};
|
|
1944
2161
|
};
|
|
@@ -1946,88 +2163,165 @@ var createMethod$1 = function (TYPE) {
|
|
|
1946
2163
|
var stringTrim = {
|
|
1947
2164
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1948
2165
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1949
|
-
start: createMethod$
|
|
2166
|
+
start: createMethod$2(1),
|
|
1950
2167
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1951
2168
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1952
|
-
end: createMethod$
|
|
2169
|
+
end: createMethod$2(2),
|
|
1953
2170
|
// `String.prototype.trim` method
|
|
1954
2171
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1955
|
-
trim: createMethod$
|
|
2172
|
+
trim: createMethod$2(3)
|
|
1956
2173
|
};
|
|
1957
2174
|
|
|
1958
|
-
var global$
|
|
1959
|
-
var fails$
|
|
1960
|
-
var uncurryThis$
|
|
1961
|
-
var toString$
|
|
2175
|
+
var global$c = global$n;
|
|
2176
|
+
var fails$e = fails$q;
|
|
2177
|
+
var uncurryThis$d = functionUncurryThis;
|
|
2178
|
+
var toString$7 = toString$9;
|
|
1962
2179
|
var trim = stringTrim.trim;
|
|
1963
2180
|
var whitespaces = whitespaces$2;
|
|
1964
2181
|
|
|
1965
|
-
var $parseInt$1 = global$
|
|
1966
|
-
var Symbol$1 = global$
|
|
2182
|
+
var $parseInt$1 = global$c.parseInt;
|
|
2183
|
+
var Symbol$1 = global$c.Symbol;
|
|
1967
2184
|
var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
|
|
1968
2185
|
var hex = /^[+-]?0x/i;
|
|
1969
|
-
var exec$
|
|
1970
|
-
var FORCED$
|
|
2186
|
+
var exec$3 = uncurryThis$d(hex.exec);
|
|
2187
|
+
var FORCED$5 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
1971
2188
|
// MS Edge 18- broken with boxed symbols
|
|
1972
|
-
|| (ITERATOR$3 && !fails$
|
|
2189
|
+
|| (ITERATOR$3 && !fails$e(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
1973
2190
|
|
|
1974
2191
|
// `parseInt` method
|
|
1975
2192
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1976
|
-
var numberParseInt = FORCED$
|
|
1977
|
-
var S = trim(toString$
|
|
1978
|
-
return $parseInt$1(S, (radix >>> 0) || (exec$
|
|
2193
|
+
var numberParseInt = FORCED$5 ? function parseInt(string, radix) {
|
|
2194
|
+
var S = trim(toString$7(string));
|
|
2195
|
+
return $parseInt$1(S, (radix >>> 0) || (exec$3(hex, S) ? 16 : 10));
|
|
1979
2196
|
} : $parseInt$1;
|
|
1980
2197
|
|
|
1981
|
-
var $$
|
|
2198
|
+
var $$g = _export;
|
|
1982
2199
|
var $parseInt = numberParseInt;
|
|
1983
2200
|
|
|
1984
2201
|
// `parseInt` method
|
|
1985
2202
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1986
|
-
$$
|
|
2203
|
+
$$g({ global: true, forced: parseInt !== $parseInt }, {
|
|
1987
2204
|
parseInt: $parseInt
|
|
1988
2205
|
});
|
|
1989
2206
|
|
|
1990
|
-
var classof$
|
|
2207
|
+
var classof$6 = classofRaw$2;
|
|
1991
2208
|
|
|
1992
2209
|
// `IsArray` abstract operation
|
|
1993
2210
|
// https://tc39.es/ecma262/#sec-isarray
|
|
1994
2211
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
1995
|
-
var isArray$
|
|
1996
|
-
return classof$
|
|
2212
|
+
var isArray$3 = Array.isArray || function isArray(argument) {
|
|
2213
|
+
return classof$6(argument) === 'Array';
|
|
1997
2214
|
};
|
|
1998
2215
|
|
|
1999
|
-
var
|
|
2000
|
-
var
|
|
2001
|
-
|
|
2216
|
+
var DESCRIPTORS$3 = descriptors;
|
|
2217
|
+
var isArray$2 = isArray$3;
|
|
2218
|
+
|
|
2219
|
+
var $TypeError$b = TypeError;
|
|
2220
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2221
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
2222
|
+
|
|
2223
|
+
// Safari < 13 does not throw an error in this case
|
|
2224
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$3 && !function () {
|
|
2225
|
+
// makes no sense without proper strict mode support
|
|
2226
|
+
if (this !== undefined) return true;
|
|
2227
|
+
try {
|
|
2228
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2229
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
2230
|
+
} catch (error) {
|
|
2231
|
+
return error instanceof TypeError;
|
|
2232
|
+
}
|
|
2233
|
+
}();
|
|
2234
|
+
|
|
2235
|
+
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2236
|
+
if (isArray$2(O) && !getOwnPropertyDescriptor$1(O, 'length').writable) {
|
|
2237
|
+
throw new $TypeError$b('Cannot set read only .length');
|
|
2238
|
+
} return O.length = length;
|
|
2239
|
+
} : function (O, length) {
|
|
2240
|
+
return O.length = length;
|
|
2241
|
+
};
|
|
2002
2242
|
|
|
2003
|
-
var
|
|
2243
|
+
var $TypeError$a = TypeError;
|
|
2244
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2245
|
+
|
|
2246
|
+
var doesNotExceedSafeInteger$2 = function (it) {
|
|
2247
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$a('Maximum allowed index exceeded');
|
|
2248
|
+
return it;
|
|
2249
|
+
};
|
|
2250
|
+
|
|
2251
|
+
var $$f = _export;
|
|
2252
|
+
var toObject$3 = toObject$7;
|
|
2253
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$6;
|
|
2254
|
+
var setArrayLength$1 = arraySetLength;
|
|
2255
|
+
var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
|
|
2256
|
+
var fails$d = fails$q;
|
|
2257
|
+
|
|
2258
|
+
var INCORRECT_TO_LENGTH = fails$d(function () {
|
|
2259
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
2260
|
+
});
|
|
2261
|
+
|
|
2262
|
+
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
2263
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
2264
|
+
var properErrorOnNonWritableLength$1 = function () {
|
|
2265
|
+
try {
|
|
2266
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2267
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
|
2268
|
+
} catch (error) {
|
|
2269
|
+
return error instanceof TypeError;
|
|
2270
|
+
}
|
|
2271
|
+
};
|
|
2272
|
+
|
|
2273
|
+
var FORCED$4 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength$1();
|
|
2274
|
+
|
|
2275
|
+
// `Array.prototype.push` method
|
|
2276
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
2277
|
+
$$f({ target: 'Array', proto: true, arity: 1, forced: FORCED$4 }, {
|
|
2278
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2279
|
+
push: function push(item) {
|
|
2280
|
+
var O = toObject$3(this);
|
|
2281
|
+
var len = lengthOfArrayLike$4(O);
|
|
2282
|
+
var argCount = arguments.length;
|
|
2283
|
+
doesNotExceedSafeInteger$1(len + argCount);
|
|
2284
|
+
for (var i = 0; i < argCount; i++) {
|
|
2285
|
+
O[len] = arguments[i];
|
|
2286
|
+
len++;
|
|
2287
|
+
}
|
|
2288
|
+
setArrayLength$1(O, len);
|
|
2289
|
+
return len;
|
|
2290
|
+
}
|
|
2291
|
+
});
|
|
2292
|
+
|
|
2293
|
+
var $$e = _export;
|
|
2294
|
+
var uncurryThis$c = functionUncurryThis;
|
|
2295
|
+
var isArray$1 = isArray$3;
|
|
2296
|
+
|
|
2297
|
+
var nativeReverse = uncurryThis$c([].reverse);
|
|
2004
2298
|
var test$1 = [1, 2];
|
|
2005
2299
|
|
|
2006
2300
|
// `Array.prototype.reverse` method
|
|
2007
2301
|
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
2008
2302
|
// fix for Safari 12.0 bug
|
|
2009
2303
|
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
2010
|
-
$$
|
|
2304
|
+
$$e({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
|
|
2011
2305
|
reverse: function reverse() {
|
|
2012
2306
|
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
2013
|
-
if (isArray(this)) this.length = this.length;
|
|
2307
|
+
if (isArray$1(this)) this.length = this.length;
|
|
2014
2308
|
return nativeReverse(this);
|
|
2015
2309
|
}
|
|
2016
2310
|
});
|
|
2017
2311
|
|
|
2018
2312
|
var tryToString$3 = tryToString$5;
|
|
2019
2313
|
|
|
2020
|
-
var $TypeError$
|
|
2314
|
+
var $TypeError$9 = TypeError;
|
|
2021
2315
|
|
|
2022
|
-
var deletePropertyOrThrow$
|
|
2023
|
-
if (!delete O[P]) throw new $TypeError$
|
|
2316
|
+
var deletePropertyOrThrow$2 = function (O, P) {
|
|
2317
|
+
if (!delete O[P]) throw new $TypeError$9('Cannot delete property ' + tryToString$3(P) + ' of ' + tryToString$3(O));
|
|
2024
2318
|
};
|
|
2025
2319
|
|
|
2026
|
-
var uncurryThis$
|
|
2320
|
+
var uncurryThis$b = functionUncurryThis;
|
|
2027
2321
|
|
|
2028
|
-
var arraySlice$
|
|
2322
|
+
var arraySlice$3 = uncurryThis$b([].slice);
|
|
2029
2323
|
|
|
2030
|
-
var arraySlice$
|
|
2324
|
+
var arraySlice$2 = arraySlice$3;
|
|
2031
2325
|
|
|
2032
2326
|
var floor = Math.floor;
|
|
2033
2327
|
|
|
@@ -2050,8 +2344,8 @@ var sort = function (array, comparefn) {
|
|
|
2050
2344
|
} else {
|
|
2051
2345
|
// merge sort
|
|
2052
2346
|
var middle = floor(length / 2);
|
|
2053
|
-
var left = sort(arraySlice$
|
|
2054
|
-
var right = sort(arraySlice$
|
|
2347
|
+
var left = sort(arraySlice$2(array, 0, middle), comparefn);
|
|
2348
|
+
var right = sort(arraySlice$2(array, middle), comparefn);
|
|
2055
2349
|
var llength = left.length;
|
|
2056
2350
|
var rlength = right.length;
|
|
2057
2351
|
var lindex = 0;
|
|
@@ -2069,11 +2363,11 @@ var sort = function (array, comparefn) {
|
|
|
2069
2363
|
|
|
2070
2364
|
var arraySort = sort;
|
|
2071
2365
|
|
|
2072
|
-
var fails$
|
|
2366
|
+
var fails$c = fails$q;
|
|
2073
2367
|
|
|
2074
2368
|
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
2075
2369
|
var method = [][METHOD_NAME];
|
|
2076
|
-
return !!method && fails$
|
|
2370
|
+
return !!method && fails$c(function () {
|
|
2077
2371
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
2078
2372
|
method.call(null, argument || function () { return 1; }, 1);
|
|
2079
2373
|
});
|
|
@@ -2095,14 +2389,14 @@ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
|
|
|
2095
2389
|
|
|
2096
2390
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
2097
2391
|
|
|
2098
|
-
var $$
|
|
2099
|
-
var uncurryThis$
|
|
2392
|
+
var $$d = _export;
|
|
2393
|
+
var uncurryThis$a = functionUncurryThis;
|
|
2100
2394
|
var aCallable$7 = aCallable$a;
|
|
2101
|
-
var toObject$
|
|
2102
|
-
var lengthOfArrayLike$
|
|
2103
|
-
var deletePropertyOrThrow = deletePropertyOrThrow$
|
|
2104
|
-
var toString$
|
|
2105
|
-
var fails$
|
|
2395
|
+
var toObject$2 = toObject$7;
|
|
2396
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$6;
|
|
2397
|
+
var deletePropertyOrThrow$1 = deletePropertyOrThrow$2;
|
|
2398
|
+
var toString$6 = toString$9;
|
|
2399
|
+
var fails$b = fails$q;
|
|
2106
2400
|
var internalSort = arraySort;
|
|
2107
2401
|
var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
|
|
2108
2402
|
var FF = engineFfVersion;
|
|
@@ -2111,21 +2405,21 @@ var V8 = engineV8Version;
|
|
|
2111
2405
|
var WEBKIT = engineWebkitVersion;
|
|
2112
2406
|
|
|
2113
2407
|
var test = [];
|
|
2114
|
-
var nativeSort = uncurryThis$
|
|
2115
|
-
var push = uncurryThis$
|
|
2408
|
+
var nativeSort = uncurryThis$a(test.sort);
|
|
2409
|
+
var push$2 = uncurryThis$a(test.push);
|
|
2116
2410
|
|
|
2117
2411
|
// IE8-
|
|
2118
|
-
var FAILS_ON_UNDEFINED = fails$
|
|
2412
|
+
var FAILS_ON_UNDEFINED = fails$b(function () {
|
|
2119
2413
|
test.sort(undefined);
|
|
2120
2414
|
});
|
|
2121
2415
|
// V8 bug
|
|
2122
|
-
var FAILS_ON_NULL = fails$
|
|
2416
|
+
var FAILS_ON_NULL = fails$b(function () {
|
|
2123
2417
|
test.sort(null);
|
|
2124
2418
|
});
|
|
2125
2419
|
// Old WebKit
|
|
2126
2420
|
var STRICT_METHOD = arrayMethodIsStrict$1('sort');
|
|
2127
2421
|
|
|
2128
|
-
var STABLE_SORT = !fails$
|
|
2422
|
+
var STABLE_SORT = !fails$b(function () {
|
|
2129
2423
|
// feature detection can be too slow, so check engines versions
|
|
2130
2424
|
if (V8) return V8 < 70;
|
|
2131
2425
|
if (FF && FF > 3) return;
|
|
@@ -2160,53 +2454,53 @@ var STABLE_SORT = !fails$4(function () {
|
|
|
2160
2454
|
return result !== 'DGBEFHACIJK';
|
|
2161
2455
|
});
|
|
2162
2456
|
|
|
2163
|
-
var FORCED$
|
|
2457
|
+
var FORCED$3 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
2164
2458
|
|
|
2165
2459
|
var getSortCompare = function (comparefn) {
|
|
2166
2460
|
return function (x, y) {
|
|
2167
2461
|
if (y === undefined) return -1;
|
|
2168
2462
|
if (x === undefined) return 1;
|
|
2169
2463
|
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
2170
|
-
return toString$
|
|
2464
|
+
return toString$6(x) > toString$6(y) ? 1 : -1;
|
|
2171
2465
|
};
|
|
2172
2466
|
};
|
|
2173
2467
|
|
|
2174
2468
|
// `Array.prototype.sort` method
|
|
2175
2469
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
2176
|
-
$$
|
|
2470
|
+
$$d({ target: 'Array', proto: true, forced: FORCED$3 }, {
|
|
2177
2471
|
sort: function sort(comparefn) {
|
|
2178
2472
|
if (comparefn !== undefined) aCallable$7(comparefn);
|
|
2179
2473
|
|
|
2180
|
-
var array = toObject$
|
|
2474
|
+
var array = toObject$2(this);
|
|
2181
2475
|
|
|
2182
2476
|
if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
|
|
2183
2477
|
|
|
2184
2478
|
var items = [];
|
|
2185
|
-
var arrayLength = lengthOfArrayLike$
|
|
2479
|
+
var arrayLength = lengthOfArrayLike$3(array);
|
|
2186
2480
|
var itemsLength, index;
|
|
2187
2481
|
|
|
2188
2482
|
for (index = 0; index < arrayLength; index++) {
|
|
2189
|
-
if (index in array) push(items, array[index]);
|
|
2483
|
+
if (index in array) push$2(items, array[index]);
|
|
2190
2484
|
}
|
|
2191
2485
|
|
|
2192
2486
|
internalSort(items, getSortCompare(comparefn));
|
|
2193
2487
|
|
|
2194
|
-
itemsLength = lengthOfArrayLike$
|
|
2488
|
+
itemsLength = lengthOfArrayLike$3(items);
|
|
2195
2489
|
index = 0;
|
|
2196
2490
|
|
|
2197
2491
|
while (index < itemsLength) array[index] = items[index++];
|
|
2198
|
-
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
2492
|
+
while (index < arrayLength) deletePropertyOrThrow$1(array, index++);
|
|
2199
2493
|
|
|
2200
2494
|
return array;
|
|
2201
2495
|
}
|
|
2202
2496
|
});
|
|
2203
2497
|
|
|
2204
|
-
var anObject$
|
|
2498
|
+
var anObject$8 = anObject$d;
|
|
2205
2499
|
|
|
2206
2500
|
// `RegExp.prototype.flags` getter implementation
|
|
2207
2501
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2208
|
-
var regexpFlags = function () {
|
|
2209
|
-
var that = anObject$
|
|
2502
|
+
var regexpFlags$1 = function () {
|
|
2503
|
+
var that = anObject$8(this);
|
|
2210
2504
|
var result = '';
|
|
2211
2505
|
if (that.hasIndices) result += 'd';
|
|
2212
2506
|
if (that.global) result += 'g';
|
|
@@ -2219,61 +2513,45 @@ var regexpFlags = function () {
|
|
|
2219
2513
|
return result;
|
|
2220
2514
|
};
|
|
2221
2515
|
|
|
2222
|
-
var call$
|
|
2223
|
-
var hasOwn$
|
|
2224
|
-
var isPrototypeOf$
|
|
2225
|
-
var regExpFlags = regexpFlags;
|
|
2516
|
+
var call$c = functionCall;
|
|
2517
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
2518
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
2519
|
+
var regExpFlags = regexpFlags$1;
|
|
2226
2520
|
|
|
2227
|
-
var RegExpPrototype$
|
|
2521
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
|
2228
2522
|
|
|
2229
2523
|
var regexpGetFlags = function (R) {
|
|
2230
2524
|
var flags = R.flags;
|
|
2231
|
-
return flags === undefined && !('flags' in RegExpPrototype$
|
|
2232
|
-
? call$
|
|
2525
|
+
return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$2(R, 'flags') && isPrototypeOf$3(RegExpPrototype$2, R)
|
|
2526
|
+
? call$c(regExpFlags, R) : flags;
|
|
2233
2527
|
};
|
|
2234
2528
|
|
|
2235
2529
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
2236
|
-
var defineBuiltIn$
|
|
2237
|
-
var anObject$
|
|
2238
|
-
var $toString = toString$
|
|
2239
|
-
var fails$
|
|
2530
|
+
var defineBuiltIn$3 = defineBuiltIn$7;
|
|
2531
|
+
var anObject$7 = anObject$d;
|
|
2532
|
+
var $toString = toString$9;
|
|
2533
|
+
var fails$a = fails$q;
|
|
2240
2534
|
var getRegExpFlags = regexpGetFlags;
|
|
2241
2535
|
|
|
2242
2536
|
var TO_STRING = 'toString';
|
|
2243
|
-
var RegExpPrototype = RegExp.prototype;
|
|
2244
|
-
var nativeToString = RegExpPrototype[TO_STRING];
|
|
2537
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
2538
|
+
var nativeToString = RegExpPrototype$1[TO_STRING];
|
|
2245
2539
|
|
|
2246
|
-
var NOT_GENERIC = fails$
|
|
2540
|
+
var NOT_GENERIC = fails$a(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
2247
2541
|
// FF44- RegExp#toString has a wrong name
|
|
2248
2542
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
2249
2543
|
|
|
2250
2544
|
// `RegExp.prototype.toString` method
|
|
2251
2545
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
2252
2546
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
2253
|
-
defineBuiltIn$
|
|
2254
|
-
var R = anObject$
|
|
2547
|
+
defineBuiltIn$3(RegExpPrototype$1, TO_STRING, function toString() {
|
|
2548
|
+
var R = anObject$7(this);
|
|
2255
2549
|
var pattern = $toString(R.source);
|
|
2256
2550
|
var flags = $toString(getRegExpFlags(R));
|
|
2257
2551
|
return '/' + pattern + '/' + flags;
|
|
2258
2552
|
}, { unsafe: true });
|
|
2259
2553
|
}
|
|
2260
2554
|
|
|
2261
|
-
/* *
|
|
2262
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2263
|
-
* you may not use this file except in compliance with the License.
|
|
2264
|
-
* You may obtain a copy of the License at
|
|
2265
|
-
*
|
|
2266
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2267
|
-
*
|
|
2268
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2269
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2270
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2271
|
-
* See the License for the specific language governing permissions and
|
|
2272
|
-
* limitations under the License.
|
|
2273
|
-
*
|
|
2274
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2275
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
2276
|
-
* */
|
|
2277
2555
|
/* Function which calculates the distance between two points */
|
|
2278
2556
|
const distance = (a, b) => {
|
|
2279
2557
|
return Math.sqrt((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y));
|
|
@@ -2553,6 +2831,26 @@ var DRAGMODE;
|
|
|
2553
2831
|
DRAGMODE["VERTEX"] = "VERTEX";
|
|
2554
2832
|
DRAGMODE["FEATURE"] = "FEATURE";
|
|
2555
2833
|
})(DRAGMODE || (DRAGMODE = {}));
|
|
2834
|
+
/**
|
|
2835
|
+
* Initializes a new feature for given type
|
|
2836
|
+
* @param type
|
|
2837
|
+
* @returns
|
|
2838
|
+
*/
|
|
2839
|
+
const getNewFeature = type => {
|
|
2840
|
+
switch (type) {
|
|
2841
|
+
case DRAWMODE.POINT:
|
|
2842
|
+
return cloneDeep(featurePoint);
|
|
2843
|
+
case DRAWMODE.MULTIPOINT:
|
|
2844
|
+
return cloneDeep(featureMultiPoint);
|
|
2845
|
+
case DRAWMODE.POLYGON:
|
|
2846
|
+
return cloneDeep(featurePolygon);
|
|
2847
|
+
case DRAWMODE.BOX:
|
|
2848
|
+
return cloneDeep(featureBox);
|
|
2849
|
+
case DRAWMODE.LINESTRING:
|
|
2850
|
+
return cloneDeep(lineString);
|
|
2851
|
+
}
|
|
2852
|
+
return undefined;
|
|
2853
|
+
};
|
|
2556
2854
|
class MapDraw extends React.PureComponent {
|
|
2557
2855
|
constructor(props) {
|
|
2558
2856
|
super(props);
|
|
@@ -2625,7 +2923,7 @@ class MapDraw extends React.PureComponent {
|
|
|
2625
2923
|
this.mouseDoubleClick = this.mouseDoubleClick.bind(this);
|
|
2626
2924
|
this.handleDrawMode = this.handleDrawMode.bind(this);
|
|
2627
2925
|
this.componentCleanup = this.componentCleanup.bind(this);
|
|
2628
|
-
this.
|
|
2926
|
+
this.initializeFeatureCoordinates = this.initializeFeatureCoordinates.bind(this);
|
|
2629
2927
|
this.validatePolys = this.validatePolys.bind(this);
|
|
2630
2928
|
this.insertVertexInEdge = this.insertVertexInEdge.bind(this);
|
|
2631
2929
|
this.createNewFeature = this.createNewFeature.bind(this);
|
|
@@ -2633,6 +2931,7 @@ class MapDraw extends React.PureComponent {
|
|
|
2633
2931
|
this.addVerticesToPolygonFeature = this.addVerticesToPolygonFeature.bind(this);
|
|
2634
2932
|
this.checkIfFeatureIsBox = this.checkIfFeatureIsBox.bind(this);
|
|
2635
2933
|
this.handleGeoJSONUpdate = this.handleGeoJSONUpdate.bind(this);
|
|
2934
|
+
this.handleNewFeatureIndex = this.handleNewFeatureIndex.bind(this);
|
|
2636
2935
|
this.handleDrawMode(props.drawMode);
|
|
2637
2936
|
this.textPositions = [];
|
|
2638
2937
|
this.mouseOverPolygonCoordinates = [];
|
|
@@ -2730,7 +3029,7 @@ class MapDraw extends React.PureComponent {
|
|
|
2730
3029
|
}
|
|
2731
3030
|
}
|
|
2732
3031
|
if (selectedFeatureIndex !== prevSelectedFeatureIndex) {
|
|
2733
|
-
|
|
3032
|
+
this.handleNewFeatureIndex();
|
|
2734
3033
|
}
|
|
2735
3034
|
/* Handle new drawmode */
|
|
2736
3035
|
if (drawMode !== prevDrawMode) {
|
|
@@ -2747,6 +3046,20 @@ class MapDraw extends React.PureComponent {
|
|
|
2747
3046
|
this.handleExitDrawMode('escaped');
|
|
2748
3047
|
}
|
|
2749
3048
|
}
|
|
3049
|
+
handleNewFeatureIndex() {
|
|
3050
|
+
var _a;
|
|
3051
|
+
// Another feature was selected. The mouseIsOverVertexNr should be updated
|
|
3052
|
+
const {
|
|
3053
|
+
selectedFeatureIndex,
|
|
3054
|
+
mapId
|
|
3055
|
+
} = this.props;
|
|
3056
|
+
const feature = this.geojson.features[selectedFeatureIndex];
|
|
3057
|
+
if (feature) {
|
|
3058
|
+
const featureCoords = feature.geometry.coordinates;
|
|
3059
|
+
this.mouseIsOverVertexNr = featureCoords.length - 1;
|
|
3060
|
+
}
|
|
3061
|
+
(_a = webmapUtils.getWMJSMapById(mapId)) === null || _a === void 0 ? void 0 : _a.draw('MapDraw::componentDidUpdateSelectedFeatureIndex');
|
|
3062
|
+
}
|
|
2750
3063
|
/* Converts string input into right drawmode */
|
|
2751
3064
|
handleDrawMode(_drawMode) {
|
|
2752
3065
|
if (_drawMode) {
|
|
@@ -3080,7 +3393,11 @@ class MapDraw extends React.PureComponent {
|
|
|
3080
3393
|
}
|
|
3081
3394
|
return true;
|
|
3082
3395
|
}
|
|
3083
|
-
|
|
3396
|
+
/**
|
|
3397
|
+
* This creates a new feature in the geojson features array at the selectedFeatureIndex location
|
|
3398
|
+
* @param event
|
|
3399
|
+
* @returns
|
|
3400
|
+
*/
|
|
3084
3401
|
createNewFeature(event) {
|
|
3085
3402
|
const {
|
|
3086
3403
|
mouseX,
|
|
@@ -3093,9 +3410,11 @@ class MapDraw extends React.PureComponent {
|
|
|
3093
3410
|
const webmapjs = webmapUtils.getWMJSMapById(mapId);
|
|
3094
3411
|
if (this.myEditMode === EDITMODE.EMPTY) {
|
|
3095
3412
|
this.myEditMode = EDITMODE.ADD_FEATURE;
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3413
|
+
if (!this.geojson.features[selectedFeatureIndex]) {
|
|
3414
|
+
this.geojson.features[selectedFeatureIndex] = getNewFeature(this.myDrawMode);
|
|
3415
|
+
}
|
|
3416
|
+
const feature = this.geojson.features[selectedFeatureIndex];
|
|
3417
|
+
this.initializeFeatureCoordinates(feature, this.myDrawMode);
|
|
3099
3418
|
this.mouseGeoCoord = webmapjs.getLatLongFromPixelCoord({
|
|
3100
3419
|
x: mouseX,
|
|
3101
3420
|
y: mouseY
|
|
@@ -4300,58 +4619,43 @@ class MapDraw extends React.PureComponent {
|
|
|
4300
4619
|
}
|
|
4301
4620
|
return XYCoords;
|
|
4302
4621
|
}
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
case DRAWMODE.POLYGON:
|
|
4341
|
-
feature.geometry.type = 'Polygon';
|
|
4342
|
-
if (feature.geometry.coordinates.length === 0) {
|
|
4343
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4344
|
-
feature.geometry.coordinates.push([]);
|
|
4345
|
-
}
|
|
4346
|
-
break;
|
|
4347
|
-
case DRAWMODE.LINESTRING:
|
|
4348
|
-
feature.geometry.type = 'LineString';
|
|
4349
|
-
if (feature.geometry.coordinates.length === 0) {
|
|
4350
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4351
|
-
feature.geometry.coordinates.push([]);
|
|
4352
|
-
}
|
|
4353
|
-
break;
|
|
4354
|
-
}
|
|
4622
|
+
initializeFeatureCoordinates(feature, type) {
|
|
4623
|
+
this.validateFeature(feature);
|
|
4624
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
4625
|
+
if (feature.properties._type) {
|
|
4626
|
+
delete feature.properties._type;
|
|
4627
|
+
}
|
|
4628
|
+
// eslint-disable-next-line default-case
|
|
4629
|
+
switch (type) {
|
|
4630
|
+
case DRAWMODE.POINT:
|
|
4631
|
+
feature.geometry.type = 'Point';
|
|
4632
|
+
break;
|
|
4633
|
+
case DRAWMODE.MULTIPOINT:
|
|
4634
|
+
feature.geometry.type = 'MultiPoint';
|
|
4635
|
+
if (feature.geometry.coordinates.length === 0) {
|
|
4636
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4637
|
+
feature.geometry.coordinates.push([]);
|
|
4638
|
+
}
|
|
4639
|
+
break;
|
|
4640
|
+
case DRAWMODE.BOX:
|
|
4641
|
+
feature.geometry.type = 'Polygon';
|
|
4642
|
+
// eslint-disable-next-line no-underscore-dangle
|
|
4643
|
+
feature.properties._type = 'box';
|
|
4644
|
+
break;
|
|
4645
|
+
case DRAWMODE.POLYGON:
|
|
4646
|
+
feature.geometry.type = 'Polygon';
|
|
4647
|
+
if (feature.geometry.coordinates.length === 0) {
|
|
4648
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4649
|
+
feature.geometry.coordinates.push([]);
|
|
4650
|
+
}
|
|
4651
|
+
break;
|
|
4652
|
+
case DRAWMODE.LINESTRING:
|
|
4653
|
+
feature.geometry.type = 'LineString';
|
|
4654
|
+
if (feature.geometry.coordinates.length === 0) {
|
|
4655
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4656
|
+
feature.geometry.coordinates.push([]);
|
|
4657
|
+
}
|
|
4658
|
+
break;
|
|
4355
4659
|
}
|
|
4356
4660
|
return feature;
|
|
4357
4661
|
}
|
|
@@ -4425,10 +4729,124 @@ const MapDrawContainer = ({
|
|
|
4425
4729
|
}));
|
|
4426
4730
|
})));
|
|
4427
4731
|
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4732
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
4733
|
+
|
|
4734
|
+
var FunctionPrototype = Function.prototype;
|
|
4735
|
+
var apply$3 = FunctionPrototype.apply;
|
|
4736
|
+
var call$b = FunctionPrototype.call;
|
|
4737
|
+
|
|
4738
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
4739
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$b.bind(apply$3) : function () {
|
|
4740
|
+
return call$b.apply(apply$3, arguments);
|
|
4741
|
+
});
|
|
4742
|
+
|
|
4743
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
4744
|
+
var isArray = isArray$3;
|
|
4745
|
+
var isCallable$8 = isCallable$n;
|
|
4746
|
+
var classof$5 = classofRaw$2;
|
|
4747
|
+
var toString$5 = toString$9;
|
|
4748
|
+
|
|
4749
|
+
var push$1 = uncurryThis$9([].push);
|
|
4750
|
+
|
|
4751
|
+
var getJsonReplacerFunction = function (replacer) {
|
|
4752
|
+
if (isCallable$8(replacer)) return replacer;
|
|
4753
|
+
if (!isArray(replacer)) return;
|
|
4754
|
+
var rawLength = replacer.length;
|
|
4755
|
+
var keys = [];
|
|
4756
|
+
for (var i = 0; i < rawLength; i++) {
|
|
4757
|
+
var element = replacer[i];
|
|
4758
|
+
if (typeof element == 'string') push$1(keys, element);
|
|
4759
|
+
else if (typeof element == 'number' || classof$5(element) === 'Number' || classof$5(element) === 'String') push$1(keys, toString$5(element));
|
|
4760
|
+
}
|
|
4761
|
+
var keysLength = keys.length;
|
|
4762
|
+
var root = true;
|
|
4763
|
+
return function (key, value) {
|
|
4764
|
+
if (root) {
|
|
4765
|
+
root = false;
|
|
4766
|
+
return value;
|
|
4767
|
+
}
|
|
4768
|
+
if (isArray(this)) return value;
|
|
4769
|
+
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
|
|
4770
|
+
};
|
|
4771
|
+
};
|
|
4772
|
+
|
|
4773
|
+
var $$c = _export;
|
|
4774
|
+
var getBuiltIn$5 = getBuiltIn$9;
|
|
4775
|
+
var apply$2 = functionApply;
|
|
4776
|
+
var call$a = functionCall;
|
|
4777
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
4778
|
+
var fails$9 = fails$q;
|
|
4779
|
+
var isCallable$7 = isCallable$n;
|
|
4780
|
+
var isSymbol = isSymbol$3;
|
|
4781
|
+
var arraySlice$1 = arraySlice$3;
|
|
4782
|
+
var getReplacerFunction = getJsonReplacerFunction;
|
|
4783
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
4784
|
+
|
|
4785
|
+
var $String = String;
|
|
4786
|
+
var $stringify = getBuiltIn$5('JSON', 'stringify');
|
|
4787
|
+
var exec$2 = uncurryThis$8(/./.exec);
|
|
4788
|
+
var charAt$3 = uncurryThis$8(''.charAt);
|
|
4789
|
+
var charCodeAt$1 = uncurryThis$8(''.charCodeAt);
|
|
4790
|
+
var replace$2 = uncurryThis$8(''.replace);
|
|
4791
|
+
var numberToString = uncurryThis$8(1.0.toString);
|
|
4792
|
+
|
|
4793
|
+
var tester = /[\uD800-\uDFFF]/g;
|
|
4794
|
+
var low = /^[\uD800-\uDBFF]$/;
|
|
4795
|
+
var hi = /^[\uDC00-\uDFFF]$/;
|
|
4796
|
+
|
|
4797
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$9(function () {
|
|
4798
|
+
var symbol = getBuiltIn$5('Symbol')('stringify detection');
|
|
4799
|
+
// MS Edge converts symbol values to JSON as {}
|
|
4800
|
+
return $stringify([symbol]) !== '[null]'
|
|
4801
|
+
// WebKit converts symbol values to JSON as null
|
|
4802
|
+
|| $stringify({ a: symbol }) !== '{}'
|
|
4803
|
+
// V8 throws on boxed symbols
|
|
4804
|
+
|| $stringify(Object(symbol)) !== '{}';
|
|
4805
|
+
});
|
|
4806
|
+
|
|
4807
|
+
// https://github.com/tc39/proposal-well-formed-stringify
|
|
4808
|
+
var ILL_FORMED_UNICODE = fails$9(function () {
|
|
4809
|
+
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
4810
|
+
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
4811
|
+
});
|
|
4812
|
+
|
|
4813
|
+
var stringifyWithSymbolsFix = function (it, replacer) {
|
|
4814
|
+
var args = arraySlice$1(arguments);
|
|
4815
|
+
var $replacer = getReplacerFunction(replacer);
|
|
4816
|
+
if (!isCallable$7($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
4817
|
+
args[1] = function (key, value) {
|
|
4818
|
+
// some old implementations (like WebKit) could pass numbers as keys
|
|
4819
|
+
if (isCallable$7($replacer)) value = call$a($replacer, this, $String(key), value);
|
|
4820
|
+
if (!isSymbol(value)) return value;
|
|
4821
|
+
};
|
|
4822
|
+
return apply$2($stringify, null, args);
|
|
4823
|
+
};
|
|
4824
|
+
|
|
4825
|
+
var fixIllFormed = function (match, offset, string) {
|
|
4826
|
+
var prev = charAt$3(string, offset - 1);
|
|
4827
|
+
var next = charAt$3(string, offset + 1);
|
|
4828
|
+
if ((exec$2(low, match) && !exec$2(hi, next)) || (exec$2(hi, match) && !exec$2(low, prev))) {
|
|
4829
|
+
return '\\u' + numberToString(charCodeAt$1(match, 0), 16);
|
|
4830
|
+
} return match;
|
|
4831
|
+
};
|
|
4832
|
+
|
|
4833
|
+
if ($stringify) {
|
|
4834
|
+
// `JSON.stringify` method
|
|
4835
|
+
// https://tc39.es/ecma262/#sec-json.stringify
|
|
4836
|
+
$$c({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
4837
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
4838
|
+
stringify: function stringify(it, replacer, space) {
|
|
4839
|
+
var args = arraySlice$1(arguments);
|
|
4840
|
+
var result = apply$2(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
|
|
4841
|
+
return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$2(result, tester, fixIllFormed) : result;
|
|
4842
|
+
}
|
|
4843
|
+
});
|
|
4844
|
+
}
|
|
4845
|
+
|
|
4846
|
+
const GeoJSONTextField = ({
|
|
4847
|
+
onChangeGeoJSON,
|
|
4848
|
+
geoJSON,
|
|
4849
|
+
title: _title = 'GeoJSON text',
|
|
4432
4850
|
sx,
|
|
4433
4851
|
maxRows: _maxRows = 18
|
|
4434
4852
|
}) => {
|
|
@@ -4475,6 +4893,9 @@ const FeatureLayers = ({
|
|
|
4475
4893
|
activeFeatureLayerIndex,
|
|
4476
4894
|
getToolIcon
|
|
4477
4895
|
}) => {
|
|
4896
|
+
const {
|
|
4897
|
+
t
|
|
4898
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
4478
4899
|
const featureLayerList = geojson ? Array.from(Array(geojson.features.length).keys()).map(index => {
|
|
4479
4900
|
var _a;
|
|
4480
4901
|
return {
|
|
@@ -4494,7 +4915,7 @@ const FeatureLayers = ({
|
|
|
4494
4915
|
}
|
|
4495
4916
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
4496
4917
|
id: "demo-feature-number"
|
|
4497
|
-
},
|
|
4918
|
+
}, t('webmap-react-features')), /*#__PURE__*/React__default.createElement(Select, {
|
|
4498
4919
|
labelId: "demo-feature-type",
|
|
4499
4920
|
value: (featureLayerList.length ? activeFeatureLayerIndex : '').toString(),
|
|
4500
4921
|
onChange: event => {
|
|
@@ -4539,16 +4960,19 @@ const EditModeButton = ({
|
|
|
4539
4960
|
drawMode,
|
|
4540
4961
|
onToggleEditMode
|
|
4541
4962
|
}) => {
|
|
4963
|
+
const {
|
|
4964
|
+
t
|
|
4965
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
4542
4966
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
4543
4967
|
item: true,
|
|
4544
4968
|
xs: 12
|
|
4545
4969
|
}, /*#__PURE__*/React__default.createElement(CustomTooltip, {
|
|
4546
4970
|
title: "Switch mode"
|
|
4547
|
-
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(FormLabel, null,
|
|
4971
|
+
}, /*#__PURE__*/React__default.createElement("span", null, /*#__PURE__*/React__default.createElement(FormLabel, null, t('webmap-react-view')), /*#__PURE__*/React__default.createElement(Switch, {
|
|
4548
4972
|
"data-testid": "switchMode",
|
|
4549
4973
|
checked: isInEditMode,
|
|
4550
4974
|
onClick: () => onToggleEditMode(!isInEditMode)
|
|
4551
|
-
}), /*#__PURE__*/React__default.createElement(FormLabel, null,
|
|
4975
|
+
}), /*#__PURE__*/React__default.createElement(FormLabel, null, t('webmap-react-edit')), drawMode && ( /*#__PURE__*/React__default.createElement(Typography, {
|
|
4552
4976
|
component: "span",
|
|
4553
4977
|
sx: {
|
|
4554
4978
|
display: 'inline-block',
|
|
@@ -4557,7 +4981,7 @@ const EditModeButton = ({
|
|
|
4557
4981
|
position: 'relative',
|
|
4558
4982
|
fontSize: 14
|
|
4559
4983
|
}
|
|
4560
|
-
},
|
|
4984
|
+
}, t('webmap-react-esc'))))));
|
|
4561
4985
|
};
|
|
4562
4986
|
|
|
4563
4987
|
/* *
|
|
@@ -5063,6 +5487,9 @@ const IntersectionSelect = ({
|
|
|
5063
5487
|
isDisabled: _isDisabled = false
|
|
5064
5488
|
}) => {
|
|
5065
5489
|
const [activeIntersection, setActiveIntersection] = React__default.useState(0);
|
|
5490
|
+
const {
|
|
5491
|
+
t
|
|
5492
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
5066
5493
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
5067
5494
|
item: true,
|
|
5068
5495
|
sm: 12
|
|
@@ -5073,7 +5500,7 @@ const IntersectionSelect = ({
|
|
|
5073
5500
|
}
|
|
5074
5501
|
}, /*#__PURE__*/React__default.createElement(InputLabel, {
|
|
5075
5502
|
id: "demo-intersection"
|
|
5076
|
-
},
|
|
5503
|
+
}, t('webmap-react-intersection-shapes')), /*#__PURE__*/React__default.createElement(Select, {
|
|
5077
5504
|
labelId: "demo-intersection",
|
|
5078
5505
|
value: activeIntersection.toString(),
|
|
5079
5506
|
onChange: event => {
|
|
@@ -5158,10 +5585,10 @@ const moveFeature = (currentGeoJSON, newGeoJSON, featureLayerIndex, reason, sele
|
|
|
5158
5585
|
return newGeoJSON.features.length - 1;
|
|
5159
5586
|
}
|
|
5160
5587
|
if (geometry.type === 'LineString' && geometry.coordinates.length > 2 && reason === NEW_LINESTRING_CREATED) {
|
|
5161
|
-
const lastCoordinate = geometry.coordinates.pop();
|
|
5588
|
+
const lastCoordinate = geometry.coordinates.pop() || [0, 0];
|
|
5162
5589
|
const copyFeature = Object.assign(Object.assign(Object.assign({}, feature), {
|
|
5163
5590
|
geometry: Object.assign(Object.assign({}, geometry), {
|
|
5164
|
-
coordinates: [lastCoordinate, lastCoordinate]
|
|
5591
|
+
coordinates: [[...lastCoordinate], [...lastCoordinate]]
|
|
5165
5592
|
})
|
|
5166
5593
|
}), selectionType && {
|
|
5167
5594
|
properties: Object.assign(Object.assign({}, feature.properties), {
|
|
@@ -5375,6 +5802,15 @@ const addSelectionTypeToGeoJSON = (geoJSON, selectionType) => {
|
|
|
5375
5802
|
selectionType
|
|
5376
5803
|
});
|
|
5377
5804
|
};
|
|
5805
|
+
const getFeatureExtent = geoJSON => {
|
|
5806
|
+
const turfBbox = turf.bbox(geoJSON);
|
|
5807
|
+
return {
|
|
5808
|
+
left: turfBbox[0],
|
|
5809
|
+
bottom: turfBbox[1],
|
|
5810
|
+
right: turfBbox[2],
|
|
5811
|
+
top: turfBbox[3]
|
|
5812
|
+
};
|
|
5813
|
+
};
|
|
5378
5814
|
|
|
5379
5815
|
const defaultIntersectionStyleProperties = Object.assign(Object.assign({}, defaultGeoJSONStyleProperties), {
|
|
5380
5816
|
'fill-opacity': 0.5
|
|
@@ -6191,20 +6627,229 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
6191
6627
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
6192
6628
|
};
|
|
6193
6629
|
|
|
6194
|
-
var
|
|
6630
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
6631
|
+
|
|
6632
|
+
var proxyAccessor$1 = function (Target, Source, key) {
|
|
6633
|
+
key in Target || defineProperty$1(Target, key, {
|
|
6634
|
+
configurable: true,
|
|
6635
|
+
get: function () { return Source[key]; },
|
|
6636
|
+
set: function (it) { Source[key] = it; }
|
|
6637
|
+
});
|
|
6638
|
+
};
|
|
6639
|
+
|
|
6640
|
+
var isCallable$6 = isCallable$n;
|
|
6641
|
+
var isObject$4 = isObject$d;
|
|
6642
|
+
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
6643
|
+
|
|
6644
|
+
// makes subclassing work correct for wrapped built-ins
|
|
6645
|
+
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
6646
|
+
var NewTarget, NewTargetPrototype;
|
|
6647
|
+
if (
|
|
6648
|
+
// it can work only with native `setPrototypeOf`
|
|
6649
|
+
setPrototypeOf$2 &&
|
|
6650
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
6651
|
+
isCallable$6(NewTarget = dummy.constructor) &&
|
|
6652
|
+
NewTarget !== Wrapper &&
|
|
6653
|
+
isObject$4(NewTargetPrototype = NewTarget.prototype) &&
|
|
6654
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
6655
|
+
) setPrototypeOf$2($this, NewTargetPrototype);
|
|
6656
|
+
return $this;
|
|
6657
|
+
};
|
|
6658
|
+
|
|
6659
|
+
var toString$4 = toString$9;
|
|
6660
|
+
|
|
6661
|
+
var normalizeStringArgument$1 = function (argument, $default) {
|
|
6662
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$4(argument);
|
|
6663
|
+
};
|
|
6664
|
+
|
|
6665
|
+
var isObject$3 = isObject$d;
|
|
6666
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
6667
|
+
|
|
6668
|
+
// `InstallErrorCause` abstract operation
|
|
6669
|
+
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
6670
|
+
var installErrorCause$1 = function (O, options) {
|
|
6671
|
+
if (isObject$3(options) && 'cause' in options) {
|
|
6672
|
+
createNonEnumerableProperty$3(O, 'cause', options.cause);
|
|
6673
|
+
}
|
|
6674
|
+
};
|
|
6675
|
+
|
|
6676
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
6677
|
+
|
|
6678
|
+
var $Error = Error;
|
|
6679
|
+
var replace$1 = uncurryThis$7(''.replace);
|
|
6680
|
+
|
|
6681
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
6682
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
6683
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
6684
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
6685
|
+
|
|
6686
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
6687
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
6688
|
+
while (dropEntries--) stack = replace$1(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
6689
|
+
} return stack;
|
|
6690
|
+
};
|
|
6691
|
+
|
|
6692
|
+
var fails$8 = fails$q;
|
|
6693
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
6694
|
+
|
|
6695
|
+
var errorStackInstallable = !fails$8(function () {
|
|
6696
|
+
var error = new Error('a');
|
|
6697
|
+
if (!('stack' in error)) return true;
|
|
6698
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
6699
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
6700
|
+
return error.stack !== 7;
|
|
6701
|
+
});
|
|
6702
|
+
|
|
6703
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
6704
|
+
var clearErrorStack = errorStackClear;
|
|
6705
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
6706
|
+
|
|
6707
|
+
// non-standard V8
|
|
6708
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
6709
|
+
|
|
6710
|
+
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
6711
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
6712
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
6713
|
+
else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
6714
|
+
}
|
|
6715
|
+
};
|
|
6716
|
+
|
|
6717
|
+
var getBuiltIn$4 = getBuiltIn$9;
|
|
6718
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
6719
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
6720
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
6721
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
6722
|
+
var copyConstructorProperties = copyConstructorProperties$2;
|
|
6723
|
+
var proxyAccessor = proxyAccessor$1;
|
|
6724
|
+
var inheritIfRequired = inheritIfRequired$1;
|
|
6725
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
6726
|
+
var installErrorCause = installErrorCause$1;
|
|
6727
|
+
var installErrorStack = errorStackInstall;
|
|
6728
|
+
var DESCRIPTORS$2 = descriptors;
|
|
6729
|
+
|
|
6730
|
+
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
6731
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
6732
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
6733
|
+
var path = FULL_NAME.split('.');
|
|
6734
|
+
var ERROR_NAME = path[path.length - 1];
|
|
6735
|
+
var OriginalError = getBuiltIn$4.apply(null, path);
|
|
6736
|
+
|
|
6737
|
+
if (!OriginalError) return;
|
|
6738
|
+
|
|
6739
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
6740
|
+
|
|
6741
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
6742
|
+
if (hasOwn$1(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
6743
|
+
|
|
6744
|
+
if (!FORCED) return OriginalError;
|
|
6745
|
+
|
|
6746
|
+
var BaseError = getBuiltIn$4('Error');
|
|
6747
|
+
|
|
6748
|
+
var WrappedError = wrapper(function (a, b) {
|
|
6749
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
6750
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
6751
|
+
if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message);
|
|
6752
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
6753
|
+
if (this && isPrototypeOf$2(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
6754
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
6755
|
+
return result;
|
|
6756
|
+
});
|
|
6757
|
+
|
|
6758
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
6759
|
+
|
|
6760
|
+
if (ERROR_NAME !== 'Error') {
|
|
6761
|
+
if (setPrototypeOf$1) setPrototypeOf$1(WrappedError, BaseError);
|
|
6762
|
+
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
6763
|
+
} else if (DESCRIPTORS$2 && STACK_TRACE_LIMIT in OriginalError) {
|
|
6764
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
6765
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
6766
|
+
}
|
|
6767
|
+
|
|
6768
|
+
copyConstructorProperties(WrappedError, OriginalError);
|
|
6769
|
+
|
|
6770
|
+
try {
|
|
6771
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
6772
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
6773
|
+
createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
6774
|
+
}
|
|
6775
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
6776
|
+
} catch (error) { /* empty */ }
|
|
6777
|
+
|
|
6778
|
+
return WrappedError;
|
|
6779
|
+
};
|
|
6780
|
+
|
|
6781
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
6782
|
+
var $$b = _export;
|
|
6783
|
+
var global$b = global$n;
|
|
6784
|
+
var apply$1 = functionApply;
|
|
6785
|
+
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
6786
|
+
|
|
6787
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
6788
|
+
var WebAssembly = global$b[WEB_ASSEMBLY];
|
|
6789
|
+
|
|
6790
|
+
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
6791
|
+
var FORCED$2 = new Error('e', { cause: 7 }).cause !== 7;
|
|
6792
|
+
|
|
6793
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
6794
|
+
var O = {};
|
|
6795
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$2);
|
|
6796
|
+
$$b({ global: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
|
|
6797
|
+
};
|
|
6798
|
+
|
|
6799
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
6800
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
6801
|
+
var O = {};
|
|
6802
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$2);
|
|
6803
|
+
$$b({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
|
|
6804
|
+
}
|
|
6805
|
+
};
|
|
6806
|
+
|
|
6807
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
6808
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
6809
|
+
return function Error(message) { return apply$1(init, this, arguments); };
|
|
6810
|
+
});
|
|
6811
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
6812
|
+
return function EvalError(message) { return apply$1(init, this, arguments); };
|
|
6813
|
+
});
|
|
6814
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
6815
|
+
return function RangeError(message) { return apply$1(init, this, arguments); };
|
|
6816
|
+
});
|
|
6817
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
6818
|
+
return function ReferenceError(message) { return apply$1(init, this, arguments); };
|
|
6819
|
+
});
|
|
6820
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
6821
|
+
return function SyntaxError(message) { return apply$1(init, this, arguments); };
|
|
6822
|
+
});
|
|
6823
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
6824
|
+
return function TypeError(message) { return apply$1(init, this, arguments); };
|
|
6825
|
+
});
|
|
6826
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
6827
|
+
return function URIError(message) { return apply$1(init, this, arguments); };
|
|
6828
|
+
});
|
|
6829
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
6830
|
+
return function CompileError(message) { return apply$1(init, this, arguments); };
|
|
6831
|
+
});
|
|
6832
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
6833
|
+
return function LinkError(message) { return apply$1(init, this, arguments); };
|
|
6834
|
+
});
|
|
6835
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
6836
|
+
return function RuntimeError(message) { return apply$1(init, this, arguments); };
|
|
6837
|
+
});
|
|
6838
|
+
|
|
6839
|
+
var $$a = _export;
|
|
6195
6840
|
var $includes = arrayIncludes.includes;
|
|
6196
|
-
var fails$
|
|
6841
|
+
var fails$7 = fails$q;
|
|
6197
6842
|
var addToUnscopables = addToUnscopables$2;
|
|
6198
6843
|
|
|
6199
6844
|
// FF99+ bug
|
|
6200
|
-
var BROKEN_ON_SPARSE = fails$
|
|
6845
|
+
var BROKEN_ON_SPARSE = fails$7(function () {
|
|
6201
6846
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
6202
6847
|
return !Array(1).includes();
|
|
6203
6848
|
});
|
|
6204
6849
|
|
|
6205
6850
|
// `Array.prototype.includes` method
|
|
6206
6851
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
6207
|
-
$$
|
|
6852
|
+
$$a({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
6208
6853
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
6209
6854
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
6210
6855
|
}
|
|
@@ -6214,19 +6859,22 @@ $$8({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
|
6214
6859
|
addToUnscopables('includes');
|
|
6215
6860
|
|
|
6216
6861
|
var aCallable$6 = aCallable$a;
|
|
6217
|
-
var toObject = toObject$
|
|
6862
|
+
var toObject$1 = toObject$7;
|
|
6218
6863
|
var IndexedObject = indexedObject;
|
|
6219
|
-
var lengthOfArrayLike$
|
|
6864
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$6;
|
|
6220
6865
|
|
|
6221
|
-
var $TypeError$
|
|
6866
|
+
var $TypeError$8 = TypeError;
|
|
6867
|
+
|
|
6868
|
+
var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
|
|
6222
6869
|
|
|
6223
6870
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
6224
|
-
var createMethod = function (IS_RIGHT) {
|
|
6871
|
+
var createMethod$1 = function (IS_RIGHT) {
|
|
6225
6872
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
6226
|
-
var O = toObject(that);
|
|
6873
|
+
var O = toObject$1(that);
|
|
6227
6874
|
var self = IndexedObject(O);
|
|
6228
|
-
var length = lengthOfArrayLike$
|
|
6875
|
+
var length = lengthOfArrayLike$2(O);
|
|
6229
6876
|
aCallable$6(callbackfn);
|
|
6877
|
+
if (length === 0 && argumentsLength < 2) throw new $TypeError$8(REDUCE_EMPTY);
|
|
6230
6878
|
var index = IS_RIGHT ? length - 1 : 0;
|
|
6231
6879
|
var i = IS_RIGHT ? -1 : 1;
|
|
6232
6880
|
if (argumentsLength < 2) while (true) {
|
|
@@ -6237,7 +6885,7 @@ var createMethod = function (IS_RIGHT) {
|
|
|
6237
6885
|
}
|
|
6238
6886
|
index += i;
|
|
6239
6887
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
6240
|
-
throw new $TypeError$
|
|
6888
|
+
throw new $TypeError$8(REDUCE_EMPTY);
|
|
6241
6889
|
}
|
|
6242
6890
|
}
|
|
6243
6891
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -6250,18 +6898,18 @@ var createMethod = function (IS_RIGHT) {
|
|
|
6250
6898
|
var arrayReduce = {
|
|
6251
6899
|
// `Array.prototype.reduce` method
|
|
6252
6900
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
6253
|
-
left: createMethod(false),
|
|
6901
|
+
left: createMethod$1(false),
|
|
6254
6902
|
// `Array.prototype.reduceRight` method
|
|
6255
6903
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
6256
|
-
right: createMethod(true)
|
|
6904
|
+
right: createMethod$1(true)
|
|
6257
6905
|
};
|
|
6258
6906
|
|
|
6259
|
-
var global$
|
|
6260
|
-
var classof$
|
|
6907
|
+
var global$a = global$n;
|
|
6908
|
+
var classof$4 = classofRaw$2;
|
|
6261
6909
|
|
|
6262
|
-
var engineIsNode = classof$
|
|
6910
|
+
var engineIsNode = classof$4(global$a.process) === 'process';
|
|
6263
6911
|
|
|
6264
|
-
var $$
|
|
6912
|
+
var $$9 = _export;
|
|
6265
6913
|
var $reduce = arrayReduce.left;
|
|
6266
6914
|
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
6267
6915
|
var CHROME_VERSION = engineV8Version;
|
|
@@ -6270,17 +6918,62 @@ var IS_NODE$4 = engineIsNode;
|
|
|
6270
6918
|
// Chrome 80-82 has a critical bug
|
|
6271
6919
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
6272
6920
|
var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
6273
|
-
var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
6921
|
+
var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
6274
6922
|
|
|
6275
6923
|
// `Array.prototype.reduce` method
|
|
6276
6924
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
6277
|
-
$$
|
|
6925
|
+
$$9({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
6278
6926
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
6279
6927
|
var length = arguments.length;
|
|
6280
6928
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
6281
6929
|
}
|
|
6282
6930
|
});
|
|
6283
6931
|
|
|
6932
|
+
var $$8 = _export;
|
|
6933
|
+
var toObject = toObject$7;
|
|
6934
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$6;
|
|
6935
|
+
var setArrayLength = arraySetLength;
|
|
6936
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$2;
|
|
6937
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
|
|
6938
|
+
|
|
6939
|
+
// IE8-
|
|
6940
|
+
var INCORRECT_RESULT = [].unshift(0) !== 1;
|
|
6941
|
+
|
|
6942
|
+
// V8 ~ Chrome < 71 and Safari <= 15.4, FF < 23 throws InternalError
|
|
6943
|
+
var properErrorOnNonWritableLength = function () {
|
|
6944
|
+
try {
|
|
6945
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
6946
|
+
Object.defineProperty([], 'length', { writable: false }).unshift();
|
|
6947
|
+
} catch (error) {
|
|
6948
|
+
return error instanceof TypeError;
|
|
6949
|
+
}
|
|
6950
|
+
};
|
|
6951
|
+
|
|
6952
|
+
var FORCED = INCORRECT_RESULT || !properErrorOnNonWritableLength();
|
|
6953
|
+
|
|
6954
|
+
// `Array.prototype.unshift` method
|
|
6955
|
+
// https://tc39.es/ecma262/#sec-array.prototype.unshift
|
|
6956
|
+
$$8({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
6957
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
6958
|
+
unshift: function unshift(item) {
|
|
6959
|
+
var O = toObject(this);
|
|
6960
|
+
var len = lengthOfArrayLike$1(O);
|
|
6961
|
+
var argCount = arguments.length;
|
|
6962
|
+
if (argCount) {
|
|
6963
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
6964
|
+
var k = len;
|
|
6965
|
+
while (k--) {
|
|
6966
|
+
var to = k + argCount;
|
|
6967
|
+
if (k in O) O[to] = O[k];
|
|
6968
|
+
else deletePropertyOrThrow(O, to);
|
|
6969
|
+
}
|
|
6970
|
+
for (var j = 0; j < argCount; j++) {
|
|
6971
|
+
O[j] = arguments[j];
|
|
6972
|
+
}
|
|
6973
|
+
} return setArrayLength(O, len + argCount);
|
|
6974
|
+
}
|
|
6975
|
+
});
|
|
6976
|
+
|
|
6284
6977
|
var makeBuiltIn = makeBuiltIn$3.exports;
|
|
6285
6978
|
var defineProperty = objectDefineProperty;
|
|
6286
6979
|
|
|
@@ -6290,18 +6983,18 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
6290
6983
|
return defineProperty.f(target, name, descriptor);
|
|
6291
6984
|
};
|
|
6292
6985
|
|
|
6293
|
-
var getBuiltIn$3 = getBuiltIn$
|
|
6986
|
+
var getBuiltIn$3 = getBuiltIn$9;
|
|
6294
6987
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
6295
|
-
var wellKnownSymbol$
|
|
6988
|
+
var wellKnownSymbol$8 = wellKnownSymbol$h;
|
|
6296
6989
|
var DESCRIPTORS$1 = descriptors;
|
|
6297
6990
|
|
|
6298
|
-
var SPECIES$
|
|
6991
|
+
var SPECIES$3 = wellKnownSymbol$8('species');
|
|
6299
6992
|
|
|
6300
6993
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
6301
6994
|
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
6302
6995
|
|
|
6303
|
-
if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$
|
|
6304
|
-
defineBuiltInAccessor(Constructor, SPECIES$
|
|
6996
|
+
if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$3]) {
|
|
6997
|
+
defineBuiltInAccessor(Constructor, SPECIES$3, {
|
|
6305
6998
|
configurable: true,
|
|
6306
6999
|
get: function () { return this; }
|
|
6307
7000
|
});
|
|
@@ -6310,28 +7003,28 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
6310
7003
|
|
|
6311
7004
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
6312
7005
|
|
|
6313
|
-
var $TypeError$
|
|
7006
|
+
var $TypeError$7 = TypeError;
|
|
6314
7007
|
|
|
6315
7008
|
var anInstance$1 = function (it, Prototype) {
|
|
6316
7009
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
6317
|
-
throw new $TypeError$
|
|
7010
|
+
throw new $TypeError$7('Incorrect invocation');
|
|
6318
7011
|
};
|
|
6319
7012
|
|
|
6320
|
-
var uncurryThis$
|
|
6321
|
-
var fails$
|
|
6322
|
-
var isCallable$
|
|
6323
|
-
var classof$
|
|
6324
|
-
var getBuiltIn$2 = getBuiltIn$
|
|
7013
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
7014
|
+
var fails$6 = fails$q;
|
|
7015
|
+
var isCallable$5 = isCallable$n;
|
|
7016
|
+
var classof$3 = classof$8;
|
|
7017
|
+
var getBuiltIn$2 = getBuiltIn$9;
|
|
6325
7018
|
var inspectSource$1 = inspectSource$3;
|
|
6326
7019
|
|
|
6327
7020
|
var noop = function () { /* empty */ };
|
|
6328
7021
|
var construct = getBuiltIn$2('Reflect', 'construct');
|
|
6329
7022
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
6330
|
-
var exec = uncurryThis$
|
|
7023
|
+
var exec$1 = uncurryThis$6(constructorRegExp.exec);
|
|
6331
7024
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
6332
7025
|
|
|
6333
7026
|
var isConstructorModern = function isConstructor(argument) {
|
|
6334
|
-
if (!isCallable$
|
|
7027
|
+
if (!isCallable$5(argument)) return false;
|
|
6335
7028
|
try {
|
|
6336
7029
|
construct(noop, [], argument);
|
|
6337
7030
|
return true;
|
|
@@ -6341,8 +7034,8 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
6341
7034
|
};
|
|
6342
7035
|
|
|
6343
7036
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
6344
|
-
if (!isCallable$
|
|
6345
|
-
switch (classof$
|
|
7037
|
+
if (!isCallable$5(argument)) return false;
|
|
7038
|
+
switch (classof$3(argument)) {
|
|
6346
7039
|
case 'AsyncFunction':
|
|
6347
7040
|
case 'GeneratorFunction':
|
|
6348
7041
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -6351,7 +7044,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
6351
7044
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
6352
7045
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
6353
7046
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
6354
|
-
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
7047
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
|
|
6355
7048
|
} catch (error) {
|
|
6356
7049
|
return true;
|
|
6357
7050
|
}
|
|
@@ -6361,7 +7054,7 @@ isConstructorLegacy.sham = true;
|
|
|
6361
7054
|
|
|
6362
7055
|
// `IsConstructor` abstract operation
|
|
6363
7056
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
6364
|
-
var isConstructor$1 = !construct || fails$
|
|
7057
|
+
var isConstructor$1 = !construct || fails$6(function () {
|
|
6365
7058
|
var called;
|
|
6366
7059
|
return isConstructorModern(isConstructorModern.call)
|
|
6367
7060
|
|| !isConstructorModern(Object)
|
|
@@ -6372,55 +7065,44 @@ var isConstructor$1 = !construct || fails$1(function () {
|
|
|
6372
7065
|
var isConstructor = isConstructor$1;
|
|
6373
7066
|
var tryToString$2 = tryToString$5;
|
|
6374
7067
|
|
|
6375
|
-
var $TypeError$
|
|
7068
|
+
var $TypeError$6 = TypeError;
|
|
6376
7069
|
|
|
6377
7070
|
// `Assert: IsConstructor(argument) is true`
|
|
6378
7071
|
var aConstructor$1 = function (argument) {
|
|
6379
7072
|
if (isConstructor(argument)) return argument;
|
|
6380
|
-
throw new $TypeError$
|
|
7073
|
+
throw new $TypeError$6(tryToString$2(argument) + ' is not a constructor');
|
|
6381
7074
|
};
|
|
6382
7075
|
|
|
6383
|
-
var anObject$
|
|
7076
|
+
var anObject$6 = anObject$d;
|
|
6384
7077
|
var aConstructor = aConstructor$1;
|
|
6385
|
-
var isNullOrUndefined$
|
|
6386
|
-
var wellKnownSymbol$
|
|
7078
|
+
var isNullOrUndefined$2 = isNullOrUndefined$5;
|
|
7079
|
+
var wellKnownSymbol$7 = wellKnownSymbol$h;
|
|
6387
7080
|
|
|
6388
|
-
var SPECIES$
|
|
7081
|
+
var SPECIES$2 = wellKnownSymbol$7('species');
|
|
6389
7082
|
|
|
6390
7083
|
// `SpeciesConstructor` abstract operation
|
|
6391
7084
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
6392
|
-
var speciesConstructor$
|
|
6393
|
-
var C = anObject$
|
|
7085
|
+
var speciesConstructor$2 = function (O, defaultConstructor) {
|
|
7086
|
+
var C = anObject$6(O).constructor;
|
|
6394
7087
|
var S;
|
|
6395
|
-
return C === undefined || isNullOrUndefined$
|
|
7088
|
+
return C === undefined || isNullOrUndefined$2(S = anObject$6(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
|
|
6396
7089
|
};
|
|
6397
7090
|
|
|
6398
|
-
var NATIVE_BIND$1 = functionBindNative;
|
|
6399
|
-
|
|
6400
|
-
var FunctionPrototype = Function.prototype;
|
|
6401
|
-
var apply$1 = FunctionPrototype.apply;
|
|
6402
|
-
var call$6 = FunctionPrototype.call;
|
|
6403
|
-
|
|
6404
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
6405
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$6.bind(apply$1) : function () {
|
|
6406
|
-
return call$6.apply(apply$1, arguments);
|
|
6407
|
-
});
|
|
6408
|
-
|
|
6409
7091
|
var classofRaw = classofRaw$2;
|
|
6410
|
-
var uncurryThis$
|
|
7092
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
6411
7093
|
|
|
6412
7094
|
var functionUncurryThisClause = function (fn) {
|
|
6413
7095
|
// Nashorn bug:
|
|
6414
7096
|
// https://github.com/zloirock/core-js/issues/1128
|
|
6415
7097
|
// https://github.com/zloirock/core-js/issues/1130
|
|
6416
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
7098
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$5(fn);
|
|
6417
7099
|
};
|
|
6418
7100
|
|
|
6419
|
-
var uncurryThis$
|
|
7101
|
+
var uncurryThis$4 = functionUncurryThisClause;
|
|
6420
7102
|
var aCallable$5 = aCallable$a;
|
|
6421
7103
|
var NATIVE_BIND = functionBindNative;
|
|
6422
7104
|
|
|
6423
|
-
var bind$4 = uncurryThis$
|
|
7105
|
+
var bind$4 = uncurryThis$4(uncurryThis$4.bind);
|
|
6424
7106
|
|
|
6425
7107
|
// optional / simple context binding
|
|
6426
7108
|
var functionBindContext = function (fn, that) {
|
|
@@ -6430,10 +7112,10 @@ var functionBindContext = function (fn, that) {
|
|
|
6430
7112
|
};
|
|
6431
7113
|
};
|
|
6432
7114
|
|
|
6433
|
-
var $TypeError$
|
|
7115
|
+
var $TypeError$5 = TypeError;
|
|
6434
7116
|
|
|
6435
7117
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
6436
|
-
if (passed < required) throw new $TypeError$
|
|
7118
|
+
if (passed < required) throw new $TypeError$5('Not enough arguments');
|
|
6437
7119
|
return passed;
|
|
6438
7120
|
};
|
|
6439
7121
|
|
|
@@ -6442,34 +7124,34 @@ var userAgent$2 = engineUserAgent;
|
|
|
6442
7124
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
6443
7125
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
6444
7126
|
|
|
6445
|
-
var global$
|
|
7127
|
+
var global$9 = global$n;
|
|
6446
7128
|
var apply = functionApply;
|
|
6447
7129
|
var bind$3 = functionBindContext;
|
|
6448
|
-
var isCallable$
|
|
7130
|
+
var isCallable$4 = isCallable$n;
|
|
6449
7131
|
var hasOwn = hasOwnProperty_1;
|
|
6450
|
-
var fails = fails$
|
|
7132
|
+
var fails$5 = fails$q;
|
|
6451
7133
|
var html = html$2;
|
|
6452
|
-
var arraySlice = arraySlice$
|
|
7134
|
+
var arraySlice = arraySlice$3;
|
|
6453
7135
|
var createElement = documentCreateElement$2;
|
|
6454
7136
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
6455
7137
|
var IS_IOS$1 = engineIsIos;
|
|
6456
7138
|
var IS_NODE$3 = engineIsNode;
|
|
6457
7139
|
|
|
6458
|
-
var set = global$
|
|
6459
|
-
var clear = global$
|
|
6460
|
-
var process$2 = global$
|
|
6461
|
-
var Dispatch = global$
|
|
6462
|
-
var Function$1 = global$
|
|
6463
|
-
var MessageChannel = global$
|
|
6464
|
-
var String$1 = global$
|
|
7140
|
+
var set = global$9.setImmediate;
|
|
7141
|
+
var clear = global$9.clearImmediate;
|
|
7142
|
+
var process$2 = global$9.process;
|
|
7143
|
+
var Dispatch = global$9.Dispatch;
|
|
7144
|
+
var Function$1 = global$9.Function;
|
|
7145
|
+
var MessageChannel = global$9.MessageChannel;
|
|
7146
|
+
var String$1 = global$9.String;
|
|
6465
7147
|
var counter = 0;
|
|
6466
7148
|
var queue$2 = {};
|
|
6467
7149
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
6468
7150
|
var $location, defer, channel, port;
|
|
6469
7151
|
|
|
6470
|
-
fails(function () {
|
|
7152
|
+
fails$5(function () {
|
|
6471
7153
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
6472
|
-
$location = global$
|
|
7154
|
+
$location = global$9.location;
|
|
6473
7155
|
});
|
|
6474
7156
|
|
|
6475
7157
|
var run = function (id) {
|
|
@@ -6492,14 +7174,14 @@ var eventListener = function (event) {
|
|
|
6492
7174
|
|
|
6493
7175
|
var globalPostMessageDefer = function (id) {
|
|
6494
7176
|
// old engines have not location.origin
|
|
6495
|
-
global$
|
|
7177
|
+
global$9.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
6496
7178
|
};
|
|
6497
7179
|
|
|
6498
7180
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
6499
7181
|
if (!set || !clear) {
|
|
6500
7182
|
set = function setImmediate(handler) {
|
|
6501
7183
|
validateArgumentsLength(arguments.length, 1);
|
|
6502
|
-
var fn = isCallable$
|
|
7184
|
+
var fn = isCallable$4(handler) ? handler : Function$1(handler);
|
|
6503
7185
|
var args = arraySlice(arguments, 1);
|
|
6504
7186
|
queue$2[++counter] = function () {
|
|
6505
7187
|
apply(fn, undefined, args);
|
|
@@ -6530,14 +7212,14 @@ if (!set || !clear) {
|
|
|
6530
7212
|
// Browsers with postMessage, skip WebWorkers
|
|
6531
7213
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
6532
7214
|
} else if (
|
|
6533
|
-
global$
|
|
6534
|
-
isCallable$
|
|
6535
|
-
!global$
|
|
7215
|
+
global$9.addEventListener &&
|
|
7216
|
+
isCallable$4(global$9.postMessage) &&
|
|
7217
|
+
!global$9.importScripts &&
|
|
6536
7218
|
$location && $location.protocol !== 'file:' &&
|
|
6537
|
-
!fails(globalPostMessageDefer)
|
|
7219
|
+
!fails$5(globalPostMessageDefer)
|
|
6538
7220
|
) {
|
|
6539
7221
|
defer = globalPostMessageDefer;
|
|
6540
|
-
global$
|
|
7222
|
+
global$9.addEventListener('message', eventListener, false);
|
|
6541
7223
|
// IE8-
|
|
6542
7224
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
6543
7225
|
defer = function (id) {
|
|
@@ -6559,7 +7241,7 @@ var task$1 = {
|
|
|
6559
7241
|
clear: clear
|
|
6560
7242
|
};
|
|
6561
7243
|
|
|
6562
|
-
var global$
|
|
7244
|
+
var global$8 = global$n;
|
|
6563
7245
|
var DESCRIPTORS = descriptors;
|
|
6564
7246
|
|
|
6565
7247
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -6567,8 +7249,8 @@ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
6567
7249
|
|
|
6568
7250
|
// Avoid NodeJS experimental warning
|
|
6569
7251
|
var safeGetBuiltIn$1 = function (name) {
|
|
6570
|
-
if (!DESCRIPTORS) return global$
|
|
6571
|
-
var descriptor = getOwnPropertyDescriptor(global$
|
|
7252
|
+
if (!DESCRIPTORS) return global$8[name];
|
|
7253
|
+
var descriptor = getOwnPropertyDescriptor(global$8, name);
|
|
6572
7254
|
return descriptor && descriptor.value;
|
|
6573
7255
|
};
|
|
6574
7256
|
|
|
@@ -6605,7 +7287,7 @@ var userAgent = engineUserAgent;
|
|
|
6605
7287
|
|
|
6606
7288
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
6607
7289
|
|
|
6608
|
-
var global$
|
|
7290
|
+
var global$7 = global$n;
|
|
6609
7291
|
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
6610
7292
|
var bind$2 = functionBindContext;
|
|
6611
7293
|
var macrotask = task$1.set;
|
|
@@ -6615,10 +7297,10 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
6615
7297
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
6616
7298
|
var IS_NODE$2 = engineIsNode;
|
|
6617
7299
|
|
|
6618
|
-
var MutationObserver = global$
|
|
6619
|
-
var document$2 = global$
|
|
6620
|
-
var process$1 = global$
|
|
6621
|
-
var Promise$1 = global$
|
|
7300
|
+
var MutationObserver = global$7.MutationObserver || global$7.WebKitMutationObserver;
|
|
7301
|
+
var document$2 = global$7.document;
|
|
7302
|
+
var process$1 = global$7.process;
|
|
7303
|
+
var Promise$1 = global$7.Promise;
|
|
6622
7304
|
var microtask$1 = safeGetBuiltIn('queueMicrotask');
|
|
6623
7305
|
var notify$1, toggle, node, promise, then;
|
|
6624
7306
|
|
|
@@ -6670,7 +7352,7 @@ if (!microtask$1) {
|
|
|
6670
7352
|
// - setTimeout
|
|
6671
7353
|
} else {
|
|
6672
7354
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
6673
|
-
macrotask = bind$2(macrotask, global$
|
|
7355
|
+
macrotask = bind$2(macrotask, global$7);
|
|
6674
7356
|
notify$1 = function () {
|
|
6675
7357
|
macrotask(flush);
|
|
6676
7358
|
};
|
|
@@ -6699,9 +7381,9 @@ var perform$3 = function (exec) {
|
|
|
6699
7381
|
}
|
|
6700
7382
|
};
|
|
6701
7383
|
|
|
6702
|
-
var global$
|
|
7384
|
+
var global$6 = global$n;
|
|
6703
7385
|
|
|
6704
|
-
var promiseNativeConstructor = global$
|
|
7386
|
+
var promiseNativeConstructor = global$6.Promise;
|
|
6705
7387
|
|
|
6706
7388
|
/* global Deno -- Deno case */
|
|
6707
7389
|
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
@@ -6713,20 +7395,20 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
6713
7395
|
&& typeof window == 'object'
|
|
6714
7396
|
&& typeof document == 'object';
|
|
6715
7397
|
|
|
6716
|
-
var global$
|
|
7398
|
+
var global$5 = global$n;
|
|
6717
7399
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
6718
|
-
var isCallable$
|
|
7400
|
+
var isCallable$3 = isCallable$n;
|
|
6719
7401
|
var isForced = isForced_1;
|
|
6720
7402
|
var inspectSource = inspectSource$3;
|
|
6721
|
-
var wellKnownSymbol$
|
|
7403
|
+
var wellKnownSymbol$6 = wellKnownSymbol$h;
|
|
6722
7404
|
var IS_BROWSER = engineIsBrowser;
|
|
6723
7405
|
var IS_DENO = engineIsDeno;
|
|
6724
7406
|
var V8_VERSION = engineV8Version;
|
|
6725
7407
|
|
|
6726
7408
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
6727
|
-
var SPECIES = wellKnownSymbol$
|
|
7409
|
+
var SPECIES$1 = wellKnownSymbol$6('species');
|
|
6728
7410
|
var SUBCLASSING = false;
|
|
6729
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$
|
|
7411
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$5.PromiseRejectionEvent);
|
|
6730
7412
|
|
|
6731
7413
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
6732
7414
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -6745,7 +7427,7 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
|
6745
7427
|
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
6746
7428
|
};
|
|
6747
7429
|
var constructor = promise.constructor = {};
|
|
6748
|
-
constructor[SPECIES] = FakePromise;
|
|
7430
|
+
constructor[SPECIES$1] = FakePromise;
|
|
6749
7431
|
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
6750
7432
|
if (!SUBCLASSING) return true;
|
|
6751
7433
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
@@ -6762,12 +7444,12 @@ var newPromiseCapability$2 = {};
|
|
|
6762
7444
|
|
|
6763
7445
|
var aCallable$4 = aCallable$a;
|
|
6764
7446
|
|
|
6765
|
-
var $TypeError$
|
|
7447
|
+
var $TypeError$4 = TypeError;
|
|
6766
7448
|
|
|
6767
7449
|
var PromiseCapability = function (C) {
|
|
6768
7450
|
var resolve, reject;
|
|
6769
7451
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
6770
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError$
|
|
7452
|
+
if (resolve !== undefined || reject !== undefined) throw new $TypeError$4('Bad Promise constructor');
|
|
6771
7453
|
resolve = $$resolve;
|
|
6772
7454
|
reject = $$reject;
|
|
6773
7455
|
});
|
|
@@ -6781,19 +7463,19 @@ newPromiseCapability$2.f = function (C) {
|
|
|
6781
7463
|
return new PromiseCapability(C);
|
|
6782
7464
|
};
|
|
6783
7465
|
|
|
6784
|
-
var $$
|
|
7466
|
+
var $$7 = _export;
|
|
6785
7467
|
var IS_NODE = engineIsNode;
|
|
6786
|
-
var global$
|
|
6787
|
-
var call$
|
|
6788
|
-
var defineBuiltIn$
|
|
7468
|
+
var global$4 = global$n;
|
|
7469
|
+
var call$9 = functionCall;
|
|
7470
|
+
var defineBuiltIn$2 = defineBuiltIn$7;
|
|
6789
7471
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
6790
7472
|
var setToStringTag = setToStringTag$4;
|
|
6791
7473
|
var setSpecies = setSpecies$1;
|
|
6792
7474
|
var aCallable$3 = aCallable$a;
|
|
6793
|
-
var isCallable$
|
|
6794
|
-
var isObject$2 = isObject$
|
|
7475
|
+
var isCallable$2 = isCallable$n;
|
|
7476
|
+
var isObject$2 = isObject$d;
|
|
6795
7477
|
var anInstance = anInstance$1;
|
|
6796
|
-
var speciesConstructor = speciesConstructor$
|
|
7478
|
+
var speciesConstructor$1 = speciesConstructor$2;
|
|
6797
7479
|
var task = task$1.set;
|
|
6798
7480
|
var microtask = microtask_1;
|
|
6799
7481
|
var hostReportErrors = hostReportErrors$1;
|
|
@@ -6813,13 +7495,13 @@ var setInternalState = InternalStateModule.set;
|
|
|
6813
7495
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
6814
7496
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
6815
7497
|
var PromisePrototype = NativePromisePrototype$1;
|
|
6816
|
-
var TypeError$1 = global$
|
|
6817
|
-
var document$1 = global$
|
|
6818
|
-
var process = global$
|
|
7498
|
+
var TypeError$1 = global$4.TypeError;
|
|
7499
|
+
var document$1 = global$4.document;
|
|
7500
|
+
var process = global$4.process;
|
|
6819
7501
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
6820
7502
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
6821
7503
|
|
|
6822
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
7504
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$4.dispatchEvent);
|
|
6823
7505
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
6824
7506
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
6825
7507
|
var PENDING = 0;
|
|
@@ -6833,7 +7515,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
6833
7515
|
// helpers
|
|
6834
7516
|
var isThenable = function (it) {
|
|
6835
7517
|
var then;
|
|
6836
|
-
return isObject$2(it) && isCallable$
|
|
7518
|
+
return isObject$2(it) && isCallable$2(then = it.then) ? then : false;
|
|
6837
7519
|
};
|
|
6838
7520
|
|
|
6839
7521
|
var callReaction = function (reaction, state) {
|
|
@@ -6862,7 +7544,7 @@ var callReaction = function (reaction, state) {
|
|
|
6862
7544
|
if (result === reaction.promise) {
|
|
6863
7545
|
reject(new TypeError$1('Promise-chain cycle'));
|
|
6864
7546
|
} else if (then = isThenable(result)) {
|
|
6865
|
-
call$
|
|
7547
|
+
call$9(then, result, resolve, reject);
|
|
6866
7548
|
} else resolve(result);
|
|
6867
7549
|
} else reject(value);
|
|
6868
7550
|
} catch (error) {
|
|
@@ -6892,14 +7574,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
6892
7574
|
event.promise = promise;
|
|
6893
7575
|
event.reason = reason;
|
|
6894
7576
|
event.initEvent(name, false, true);
|
|
6895
|
-
global$
|
|
7577
|
+
global$4.dispatchEvent(event);
|
|
6896
7578
|
} else event = { promise: promise, reason: reason };
|
|
6897
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
7579
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$4['on' + name])) handler(event);
|
|
6898
7580
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
6899
7581
|
};
|
|
6900
7582
|
|
|
6901
7583
|
var onUnhandled = function (state) {
|
|
6902
|
-
call$
|
|
7584
|
+
call$9(task, global$4, function () {
|
|
6903
7585
|
var promise = state.facade;
|
|
6904
7586
|
var value = state.value;
|
|
6905
7587
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -6922,7 +7604,7 @@ var isUnhandled = function (state) {
|
|
|
6922
7604
|
};
|
|
6923
7605
|
|
|
6924
7606
|
var onHandleUnhandled = function (state) {
|
|
6925
|
-
call$
|
|
7607
|
+
call$9(task, global$4, function () {
|
|
6926
7608
|
var promise = state.facade;
|
|
6927
7609
|
if (IS_NODE) {
|
|
6928
7610
|
process.emit('rejectionHandled', promise);
|
|
@@ -6956,7 +7638,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
6956
7638
|
microtask(function () {
|
|
6957
7639
|
var wrapper = { done: false };
|
|
6958
7640
|
try {
|
|
6959
|
-
call$
|
|
7641
|
+
call$9(then, value,
|
|
6960
7642
|
bind$1(internalResolve, wrapper, state),
|
|
6961
7643
|
bind$1(internalReject, wrapper, state)
|
|
6962
7644
|
);
|
|
@@ -6980,7 +7662,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
6980
7662
|
PromiseConstructor = function Promise(executor) {
|
|
6981
7663
|
anInstance(this, PromisePrototype);
|
|
6982
7664
|
aCallable$3(executor);
|
|
6983
|
-
call$
|
|
7665
|
+
call$9(Internal, this);
|
|
6984
7666
|
var state = getInternalPromiseState(this);
|
|
6985
7667
|
try {
|
|
6986
7668
|
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
@@ -7007,12 +7689,12 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
7007
7689
|
|
|
7008
7690
|
// `Promise.prototype.then` method
|
|
7009
7691
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
7010
|
-
Internal.prototype = defineBuiltIn$
|
|
7692
|
+
Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
7011
7693
|
var state = getInternalPromiseState(this);
|
|
7012
|
-
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
7694
|
+
var reaction = newPromiseCapability$1(speciesConstructor$1(this, PromiseConstructor));
|
|
7013
7695
|
state.parent = true;
|
|
7014
|
-
reaction.ok = isCallable$
|
|
7015
|
-
reaction.fail = isCallable$
|
|
7696
|
+
reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
|
|
7697
|
+
reaction.fail = isCallable$2(onRejected) && onRejected;
|
|
7016
7698
|
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
7017
7699
|
if (state.state === PENDING) state.reactions.add(reaction);
|
|
7018
7700
|
else microtask(function () {
|
|
@@ -7035,15 +7717,15 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
7035
7717
|
: newGenericPromiseCapability(C);
|
|
7036
7718
|
};
|
|
7037
7719
|
|
|
7038
|
-
if (isCallable$
|
|
7720
|
+
if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
7039
7721
|
nativeThen = NativePromisePrototype$1.then;
|
|
7040
7722
|
|
|
7041
7723
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
7042
7724
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
7043
|
-
defineBuiltIn$
|
|
7725
|
+
defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
7044
7726
|
var that = this;
|
|
7045
7727
|
return new PromiseConstructor(function (resolve, reject) {
|
|
7046
|
-
call$
|
|
7728
|
+
call$9(nativeThen, that, resolve, reject);
|
|
7047
7729
|
}).then(onFulfilled, onRejected);
|
|
7048
7730
|
// https://github.com/zloirock/core-js/issues/640
|
|
7049
7731
|
}, { unsafe: true });
|
|
@@ -7061,17 +7743,17 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
7061
7743
|
}
|
|
7062
7744
|
}
|
|
7063
7745
|
|
|
7064
|
-
$$
|
|
7746
|
+
$$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
7065
7747
|
Promise: PromiseConstructor
|
|
7066
7748
|
});
|
|
7067
7749
|
|
|
7068
7750
|
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
7069
7751
|
setSpecies(PROMISE);
|
|
7070
7752
|
|
|
7071
|
-
var wellKnownSymbol$
|
|
7753
|
+
var wellKnownSymbol$5 = wellKnownSymbol$h;
|
|
7072
7754
|
var Iterators$1 = iterators;
|
|
7073
7755
|
|
|
7074
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
7756
|
+
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
7075
7757
|
var ArrayPrototype = Array.prototype;
|
|
7076
7758
|
|
|
7077
7759
|
// check on default Array iterator
|
|
@@ -7079,70 +7761,70 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
7079
7761
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
7080
7762
|
};
|
|
7081
7763
|
|
|
7082
|
-
var classof$
|
|
7083
|
-
var getMethod$
|
|
7084
|
-
var isNullOrUndefined = isNullOrUndefined$
|
|
7764
|
+
var classof$2 = classof$8;
|
|
7765
|
+
var getMethod$2 = getMethod$4;
|
|
7766
|
+
var isNullOrUndefined$1 = isNullOrUndefined$5;
|
|
7085
7767
|
var Iterators = iterators;
|
|
7086
|
-
var wellKnownSymbol$
|
|
7768
|
+
var wellKnownSymbol$4 = wellKnownSymbol$h;
|
|
7087
7769
|
|
|
7088
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
7770
|
+
var ITERATOR$1 = wellKnownSymbol$4('iterator');
|
|
7089
7771
|
|
|
7090
7772
|
var getIteratorMethod$2 = function (it) {
|
|
7091
|
-
if (!isNullOrUndefined(it)) return getMethod$
|
|
7092
|
-
|| getMethod$
|
|
7093
|
-
|| Iterators[classof$
|
|
7773
|
+
if (!isNullOrUndefined$1(it)) return getMethod$2(it, ITERATOR$1)
|
|
7774
|
+
|| getMethod$2(it, '@@iterator')
|
|
7775
|
+
|| Iterators[classof$2(it)];
|
|
7094
7776
|
};
|
|
7095
7777
|
|
|
7096
|
-
var call$
|
|
7778
|
+
var call$8 = functionCall;
|
|
7097
7779
|
var aCallable$2 = aCallable$a;
|
|
7098
|
-
var anObject$
|
|
7780
|
+
var anObject$5 = anObject$d;
|
|
7099
7781
|
var tryToString$1 = tryToString$5;
|
|
7100
7782
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
7101
7783
|
|
|
7102
|
-
var $TypeError$
|
|
7784
|
+
var $TypeError$3 = TypeError;
|
|
7103
7785
|
|
|
7104
7786
|
var getIterator$1 = function (argument, usingIterator) {
|
|
7105
7787
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
7106
|
-
if (aCallable$2(iteratorMethod)) return anObject$
|
|
7107
|
-
throw new $TypeError$
|
|
7788
|
+
if (aCallable$2(iteratorMethod)) return anObject$5(call$8(iteratorMethod, argument));
|
|
7789
|
+
throw new $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
7108
7790
|
};
|
|
7109
7791
|
|
|
7110
|
-
var call$
|
|
7111
|
-
var anObject$
|
|
7112
|
-
var getMethod = getMethod$
|
|
7792
|
+
var call$7 = functionCall;
|
|
7793
|
+
var anObject$4 = anObject$d;
|
|
7794
|
+
var getMethod$1 = getMethod$4;
|
|
7113
7795
|
|
|
7114
7796
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
7115
7797
|
var innerResult, innerError;
|
|
7116
|
-
anObject$
|
|
7798
|
+
anObject$4(iterator);
|
|
7117
7799
|
try {
|
|
7118
|
-
innerResult = getMethod(iterator, 'return');
|
|
7800
|
+
innerResult = getMethod$1(iterator, 'return');
|
|
7119
7801
|
if (!innerResult) {
|
|
7120
7802
|
if (kind === 'throw') throw value;
|
|
7121
7803
|
return value;
|
|
7122
7804
|
}
|
|
7123
|
-
innerResult = call$
|
|
7805
|
+
innerResult = call$7(innerResult, iterator);
|
|
7124
7806
|
} catch (error) {
|
|
7125
7807
|
innerError = true;
|
|
7126
7808
|
innerResult = error;
|
|
7127
7809
|
}
|
|
7128
7810
|
if (kind === 'throw') throw value;
|
|
7129
7811
|
if (innerError) throw innerResult;
|
|
7130
|
-
anObject$
|
|
7812
|
+
anObject$4(innerResult);
|
|
7131
7813
|
return value;
|
|
7132
7814
|
};
|
|
7133
7815
|
|
|
7134
7816
|
var bind = functionBindContext;
|
|
7135
|
-
var call$
|
|
7136
|
-
var anObject$
|
|
7817
|
+
var call$6 = functionCall;
|
|
7818
|
+
var anObject$3 = anObject$d;
|
|
7137
7819
|
var tryToString = tryToString$5;
|
|
7138
7820
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
7139
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
7821
|
+
var lengthOfArrayLike = lengthOfArrayLike$6;
|
|
7140
7822
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
7141
7823
|
var getIterator = getIterator$1;
|
|
7142
7824
|
var getIteratorMethod = getIteratorMethod$2;
|
|
7143
7825
|
var iteratorClose = iteratorClose$1;
|
|
7144
7826
|
|
|
7145
|
-
var $TypeError$
|
|
7827
|
+
var $TypeError$2 = TypeError;
|
|
7146
7828
|
|
|
7147
7829
|
var Result = function (stopped, result) {
|
|
7148
7830
|
this.stopped = stopped;
|
|
@@ -7167,7 +7849,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7167
7849
|
|
|
7168
7850
|
var callFn = function (value) {
|
|
7169
7851
|
if (AS_ENTRIES) {
|
|
7170
|
-
anObject$
|
|
7852
|
+
anObject$3(value);
|
|
7171
7853
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
7172
7854
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
7173
7855
|
};
|
|
@@ -7178,7 +7860,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7178
7860
|
iterator = iterable;
|
|
7179
7861
|
} else {
|
|
7180
7862
|
iterFn = getIteratorMethod(iterable);
|
|
7181
|
-
if (!iterFn) throw new $TypeError$
|
|
7863
|
+
if (!iterFn) throw new $TypeError$2(tryToString(iterable) + ' is not iterable');
|
|
7182
7864
|
// optimisation for array iterators
|
|
7183
7865
|
if (isArrayIteratorMethod(iterFn)) {
|
|
7184
7866
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
@@ -7190,7 +7872,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7190
7872
|
}
|
|
7191
7873
|
|
|
7192
7874
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
7193
|
-
while (!(step = call$
|
|
7875
|
+
while (!(step = call$6(next, iterator)).done) {
|
|
7194
7876
|
try {
|
|
7195
7877
|
result = callFn(step.value);
|
|
7196
7878
|
} catch (error) {
|
|
@@ -7200,9 +7882,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7200
7882
|
} return new Result(false);
|
|
7201
7883
|
};
|
|
7202
7884
|
|
|
7203
|
-
var wellKnownSymbol$
|
|
7885
|
+
var wellKnownSymbol$3 = wellKnownSymbol$h;
|
|
7204
7886
|
|
|
7205
|
-
var ITERATOR = wellKnownSymbol$
|
|
7887
|
+
var ITERATOR = wellKnownSymbol$3('iterator');
|
|
7206
7888
|
var SAFE_CLOSING = false;
|
|
7207
7889
|
|
|
7208
7890
|
try {
|
|
@@ -7249,8 +7931,8 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
7249
7931
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
7250
7932
|
});
|
|
7251
7933
|
|
|
7252
|
-
var $$
|
|
7253
|
-
var call$
|
|
7934
|
+
var $$6 = _export;
|
|
7935
|
+
var call$5 = functionCall;
|
|
7254
7936
|
var aCallable$1 = aCallable$a;
|
|
7255
7937
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
7256
7938
|
var perform$1 = perform$3;
|
|
@@ -7259,7 +7941,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
7259
7941
|
|
|
7260
7942
|
// `Promise.all` method
|
|
7261
7943
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
7262
|
-
$$
|
|
7944
|
+
$$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
7263
7945
|
all: function all(iterable) {
|
|
7264
7946
|
var C = this;
|
|
7265
7947
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -7274,7 +7956,7 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7274
7956
|
var index = counter++;
|
|
7275
7957
|
var alreadyCalled = false;
|
|
7276
7958
|
remaining++;
|
|
7277
|
-
call$
|
|
7959
|
+
call$5($promiseResolve, C, promise).then(function (value) {
|
|
7278
7960
|
if (alreadyCalled) return;
|
|
7279
7961
|
alreadyCalled = true;
|
|
7280
7962
|
values[index] = value;
|
|
@@ -7288,33 +7970,33 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7288
7970
|
}
|
|
7289
7971
|
});
|
|
7290
7972
|
|
|
7291
|
-
var $$
|
|
7973
|
+
var $$5 = _export;
|
|
7292
7974
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
7293
7975
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
7294
|
-
var getBuiltIn$1 = getBuiltIn$
|
|
7295
|
-
var isCallable = isCallable$
|
|
7296
|
-
var defineBuiltIn = defineBuiltIn$
|
|
7976
|
+
var getBuiltIn$1 = getBuiltIn$9;
|
|
7977
|
+
var isCallable$1 = isCallable$n;
|
|
7978
|
+
var defineBuiltIn$1 = defineBuiltIn$7;
|
|
7297
7979
|
|
|
7298
7980
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
7299
7981
|
|
|
7300
7982
|
// `Promise.prototype.catch` method
|
|
7301
7983
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
7302
|
-
$$
|
|
7984
|
+
$$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
7303
7985
|
'catch': function (onRejected) {
|
|
7304
7986
|
return this.then(undefined, onRejected);
|
|
7305
7987
|
}
|
|
7306
7988
|
});
|
|
7307
7989
|
|
|
7308
7990
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
7309
|
-
if (isCallable(NativePromiseConstructor)) {
|
|
7991
|
+
if (isCallable$1(NativePromiseConstructor)) {
|
|
7310
7992
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
7311
7993
|
if (NativePromisePrototype['catch'] !== method) {
|
|
7312
|
-
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
7994
|
+
defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
7313
7995
|
}
|
|
7314
7996
|
}
|
|
7315
7997
|
|
|
7316
|
-
var $$
|
|
7317
|
-
var call = functionCall;
|
|
7998
|
+
var $$4 = _export;
|
|
7999
|
+
var call$4 = functionCall;
|
|
7318
8000
|
var aCallable = aCallable$a;
|
|
7319
8001
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
7320
8002
|
var perform = perform$3;
|
|
@@ -7323,7 +8005,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
7323
8005
|
|
|
7324
8006
|
// `Promise.race` method
|
|
7325
8007
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
7326
|
-
$$
|
|
8008
|
+
$$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
7327
8009
|
race: function race(iterable) {
|
|
7328
8010
|
var C = this;
|
|
7329
8011
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -7331,7 +8013,7 @@ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7331
8013
|
var result = perform(function () {
|
|
7332
8014
|
var $promiseResolve = aCallable(C.resolve);
|
|
7333
8015
|
iterate(iterable, function (promise) {
|
|
7334
|
-
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
8016
|
+
call$4($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
7335
8017
|
});
|
|
7336
8018
|
});
|
|
7337
8019
|
if (result.error) reject(result.value);
|
|
@@ -7339,13 +8021,13 @@ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7339
8021
|
}
|
|
7340
8022
|
});
|
|
7341
8023
|
|
|
7342
|
-
var $$
|
|
8024
|
+
var $$3 = _export;
|
|
7343
8025
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
7344
8026
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
7345
8027
|
|
|
7346
8028
|
// `Promise.reject` method
|
|
7347
8029
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
7348
|
-
$$
|
|
8030
|
+
$$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
7349
8031
|
reject: function reject(r) {
|
|
7350
8032
|
var capability = newPromiseCapabilityModule.f(this);
|
|
7351
8033
|
var capabilityReject = capability.reject;
|
|
@@ -7354,12 +8036,12 @@ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
7354
8036
|
}
|
|
7355
8037
|
});
|
|
7356
8038
|
|
|
7357
|
-
var anObject = anObject$
|
|
7358
|
-
var isObject$1 = isObject$
|
|
8039
|
+
var anObject$2 = anObject$d;
|
|
8040
|
+
var isObject$1 = isObject$d;
|
|
7359
8041
|
var newPromiseCapability = newPromiseCapability$2;
|
|
7360
8042
|
|
|
7361
8043
|
var promiseResolve$1 = function (C, x) {
|
|
7362
|
-
anObject(C);
|
|
8044
|
+
anObject$2(C);
|
|
7363
8045
|
if (isObject$1(x) && x.constructor === C) return x;
|
|
7364
8046
|
var promiseCapability = newPromiseCapability.f(C);
|
|
7365
8047
|
var resolve = promiseCapability.resolve;
|
|
@@ -7367,8 +8049,8 @@ var promiseResolve$1 = function (C, x) {
|
|
|
7367
8049
|
return promiseCapability.promise;
|
|
7368
8050
|
};
|
|
7369
8051
|
|
|
7370
|
-
var $$
|
|
7371
|
-
var getBuiltIn = getBuiltIn$
|
|
8052
|
+
var $$2 = _export;
|
|
8053
|
+
var getBuiltIn = getBuiltIn$9;
|
|
7372
8054
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
7373
8055
|
var promiseResolve = promiseResolve$1;
|
|
7374
8056
|
|
|
@@ -7376,38 +8058,38 @@ getBuiltIn('Promise');
|
|
|
7376
8058
|
|
|
7377
8059
|
// `Promise.resolve` method
|
|
7378
8060
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
7379
|
-
$$
|
|
8061
|
+
$$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
7380
8062
|
resolve: function resolve(x) {
|
|
7381
8063
|
return promiseResolve(this, x);
|
|
7382
8064
|
}
|
|
7383
8065
|
});
|
|
7384
8066
|
|
|
7385
|
-
var isObject = isObject$
|
|
7386
|
-
var classof = classofRaw$2;
|
|
7387
|
-
var wellKnownSymbol$
|
|
8067
|
+
var isObject = isObject$d;
|
|
8068
|
+
var classof$1 = classofRaw$2;
|
|
8069
|
+
var wellKnownSymbol$2 = wellKnownSymbol$h;
|
|
7388
8070
|
|
|
7389
|
-
var MATCH$1 = wellKnownSymbol$
|
|
8071
|
+
var MATCH$1 = wellKnownSymbol$2('match');
|
|
7390
8072
|
|
|
7391
8073
|
// `IsRegExp` abstract operation
|
|
7392
8074
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
7393
8075
|
var isRegexp = function (it) {
|
|
7394
8076
|
var isRegExp;
|
|
7395
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
|
|
8077
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) === 'RegExp');
|
|
7396
8078
|
};
|
|
7397
8079
|
|
|
7398
8080
|
var isRegExp = isRegexp;
|
|
7399
8081
|
|
|
7400
|
-
var $TypeError = TypeError;
|
|
8082
|
+
var $TypeError$1 = TypeError;
|
|
7401
8083
|
|
|
7402
8084
|
var notARegexp = function (it) {
|
|
7403
8085
|
if (isRegExp(it)) {
|
|
7404
|
-
throw new $TypeError("The method doesn't accept regular expressions");
|
|
8086
|
+
throw new $TypeError$1("The method doesn't accept regular expressions");
|
|
7405
8087
|
} return it;
|
|
7406
8088
|
};
|
|
7407
8089
|
|
|
7408
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
8090
|
+
var wellKnownSymbol$1 = wellKnownSymbol$h;
|
|
7409
8091
|
|
|
7410
|
-
var MATCH = wellKnownSymbol('match');
|
|
8092
|
+
var MATCH = wellKnownSymbol$1('match');
|
|
7411
8093
|
|
|
7412
8094
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
7413
8095
|
var regexp = /./;
|
|
@@ -7421,22 +8103,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
7421
8103
|
} return false;
|
|
7422
8104
|
};
|
|
7423
8105
|
|
|
7424
|
-
var
|
|
7425
|
-
var uncurryThis = functionUncurryThis;
|
|
8106
|
+
var $$1 = _export;
|
|
8107
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
7426
8108
|
var notARegExp = notARegexp;
|
|
7427
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
7428
|
-
var toString = toString$
|
|
8109
|
+
var requireObjectCoercible$2 = requireObjectCoercible$7;
|
|
8110
|
+
var toString$3 = toString$9;
|
|
7429
8111
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
7430
8112
|
|
|
7431
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
8113
|
+
var stringIndexOf = uncurryThis$3(''.indexOf);
|
|
7432
8114
|
|
|
7433
8115
|
// `String.prototype.includes` method
|
|
7434
8116
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
7435
|
-
|
|
8117
|
+
$$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
7436
8118
|
includes: function includes(searchString /* , position = 0 */) {
|
|
7437
8119
|
return !!~stringIndexOf(
|
|
7438
|
-
toString(requireObjectCoercible(this)),
|
|
7439
|
-
toString(notARegExp(searchString)),
|
|
8120
|
+
toString$3(requireObjectCoercible$2(this)),
|
|
8121
|
+
toString$3(notARegExp(searchString)),
|
|
7440
8122
|
arguments.length > 1 ? arguments[1] : undefined
|
|
7441
8123
|
);
|
|
7442
8124
|
}
|
|
@@ -7704,6 +8386,7 @@ const getDisplayText = currentAdagucTime => {
|
|
|
7704
8386
|
};
|
|
7705
8387
|
const ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION = 'ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION';
|
|
7706
8388
|
const ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO = 'ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO';
|
|
8389
|
+
const MINUTE_TO_MILLISECOND = 60000;
|
|
7707
8390
|
class ReactMapView extends React.Component {
|
|
7708
8391
|
constructor(props) {
|
|
7709
8392
|
super(props);
|
|
@@ -7717,14 +8400,16 @@ class ReactMapView extends React.Component {
|
|
|
7717
8400
|
};
|
|
7718
8401
|
this.refetchTimer = null;
|
|
7719
8402
|
this.onStartRefetchTimer = () => {
|
|
8403
|
+
const {
|
|
8404
|
+
shouldAutoFetch
|
|
8405
|
+
} = this.props;
|
|
7720
8406
|
/*
|
|
7721
8407
|
TODO, Maarten Plieger, 2021-09-02, https://gitlab.com/opengeoweb/opengeoweb/-/issues/1159:
|
|
7722
8408
|
This causes many issues, we should improve the update strategy.
|
|
7723
8409
|
Certain presets have >20 layers. This causes 20 times parsing the GetCapabilities for a minor update of the store.
|
|
7724
|
-
|
|
7725
8410
|
*/
|
|
7726
8411
|
this.clearRefetchTimer();
|
|
7727
|
-
const
|
|
8412
|
+
const autoFetchInterval = Number(shouldAutoFetch); // Default true -> 1 minute
|
|
7728
8413
|
this.refetchTimer = setInterval(() => {
|
|
7729
8414
|
const {
|
|
7730
8415
|
mapId
|
|
@@ -7748,7 +8433,7 @@ class ReactMapView extends React.Component {
|
|
|
7748
8433
|
});
|
|
7749
8434
|
}
|
|
7750
8435
|
});
|
|
7751
|
-
},
|
|
8436
|
+
}, Math.abs(autoFetchInterval) * MINUTE_TO_MILLISECOND);
|
|
7752
8437
|
};
|
|
7753
8438
|
this.clearRefetchTimer = () => {
|
|
7754
8439
|
if (this.refetchTimer) {
|
|
@@ -7900,6 +8585,9 @@ class ReactMapView extends React.Component {
|
|
|
7900
8585
|
if (!prevProps || prevProps.timestep !== props.timestep) {
|
|
7901
8586
|
wmjsMap.timestepInMinutes = props.timestep;
|
|
7902
8587
|
}
|
|
8588
|
+
if (!prevProps || prevProps.holdShiftToScroll !== props.holdShiftToScroll) {
|
|
8589
|
+
wmjsMap.holdShiftToScroll = !!props.holdShiftToScroll;
|
|
8590
|
+
}
|
|
7903
8591
|
/* Check map dimensions */
|
|
7904
8592
|
if (!prevProps || prevProps.dimensions !== props.dimensions) {
|
|
7905
8593
|
if (props.dimensions) {
|
|
@@ -8068,7 +8756,7 @@ class ReactMapView extends React.Component {
|
|
|
8068
8756
|
/* Check if webmapjs was not already initialized */
|
|
8069
8757
|
const existingWMJSMap = webmapUtils.getWMJSMapById(mapId);
|
|
8070
8758
|
if (existingWMJSMap) {
|
|
8071
|
-
console.warn(`Somehow ${mapId}
|
|
8759
|
+
console.warn(`Somehow ${mapId} already exists`);
|
|
8072
8760
|
webmapUtils.unRegisterWMJSMap(mapId);
|
|
8073
8761
|
}
|
|
8074
8762
|
const wmjsMap = new WMJSMap(this.adagucWebMapJSRef.current);
|
|
@@ -8299,16 +8987,19 @@ const ZoomControls = ({
|
|
|
8299
8987
|
onZoomOut,
|
|
8300
8988
|
onZoomReset
|
|
8301
8989
|
}) => {
|
|
8302
|
-
|
|
8303
|
-
|
|
8990
|
+
const {
|
|
8991
|
+
t
|
|
8992
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
8993
|
+
return /*#__PURE__*/React.createElement(WebmapReactTranslationsWrapper, null, /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8994
|
+
title: t('webmap-react-zoom-reset'),
|
|
8304
8995
|
"data-testid": "zoom-reset",
|
|
8305
8996
|
onClick: onZoomReset
|
|
8306
8997
|
}, /*#__PURE__*/React.createElement(Home, null)), /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8307
|
-
title:
|
|
8998
|
+
title: t('webmap-react-zoom-in'),
|
|
8308
8999
|
"data-testid": "zoom-in",
|
|
8309
9000
|
onClick: onZoomIn
|
|
8310
9001
|
}, /*#__PURE__*/React.createElement(Add, null)), /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8311
|
-
title:
|
|
9002
|
+
title: t('webmap-react-zoom-out'),
|
|
8312
9003
|
"data-testid": "zoom-out",
|
|
8313
9004
|
onClick: onZoomOut
|
|
8314
9005
|
}, /*#__PURE__*/React.createElement(Minus, null)));
|
|
@@ -8744,7 +9435,10 @@ const MapWarningProperties = ({
|
|
|
8744
9435
|
}) => {
|
|
8745
9436
|
const language = languageIndex || 0;
|
|
8746
9437
|
const newWidth = parentSize ? parentSize - 100 : 350;
|
|
8747
|
-
|
|
9438
|
+
const {
|
|
9439
|
+
t
|
|
9440
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
9441
|
+
return /*#__PURE__*/React__default.createElement(WebmapReactTranslationsWrapper, null, /*#__PURE__*/React__default.createElement("div", {
|
|
8748
9442
|
style: {
|
|
8749
9443
|
position: 'fixed',
|
|
8750
9444
|
width: `${newWidth}px`,
|
|
@@ -8768,15 +9462,15 @@ const MapWarningProperties = ({
|
|
|
8768
9462
|
"data-testid": "map-warning-properties-title"
|
|
8769
9463
|
}, selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].areaDesc), selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].areaDesc && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
8770
9464
|
"data-testid": "map-warning-properties-row"
|
|
8771
|
-
},
|
|
9465
|
+
}, t('webmap-react-event'), ' ', selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].event)), selectedFeatureProperties.onset && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
8772
9466
|
"data-testid": "map-warning-properties-row"
|
|
8773
|
-
},
|
|
9467
|
+
}, t('webmap-react-sent'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.onset), 'dd MMM yyyy, HH:mm'), ' ', t('webmap-react-utc'))), selectedFeatureProperties.expires && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
8774
9468
|
"data-testid": "map-warning-properties-row"
|
|
8775
|
-
},
|
|
9469
|
+
}, t('webmap-react-expires'), ' ', dateUtils.dateToString(dateUtils.utc(selectedFeatureProperties.expires), 'dd MMM yyyy, HH:mm'), ' ', t('webmap-react-utc'))), selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].senderName && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
8776
9470
|
"data-testid": "map-warning-properties-row"
|
|
8777
|
-
},
|
|
9471
|
+
}, t('webmap-react-sender'), ' ', selectedFeatureProperties.languages && selectedFeatureProperties.languages[language].senderName)), selectedFeatureProperties.identifier && ( /*#__PURE__*/React__default.createElement("pre", {
|
|
8778
9472
|
"data-testid": "map-warning-properties-row"
|
|
8779
|
-
},
|
|
9473
|
+
}, t('webmap-react-identifier'), ' ', selectedFeatureProperties.identifier)))));
|
|
8780
9474
|
};
|
|
8781
9475
|
|
|
8782
9476
|
const dimensionConfig = [{
|
|
@@ -8804,7 +9498,7 @@ const dimensionConfig = [{
|
|
|
8804
9498
|
reversed: false,
|
|
8805
9499
|
iconType: 'IconLevels'
|
|
8806
9500
|
}];
|
|
8807
|
-
const getDimensionIcon = iconType => {
|
|
9501
|
+
const getDimensionIcon$1 = iconType => {
|
|
8808
9502
|
if (iconType === 'IconEnsemble') {
|
|
8809
9503
|
return Equalizer;
|
|
8810
9504
|
}
|
|
@@ -8849,15 +9543,19 @@ const DimensionSelectButton = ({
|
|
|
8849
9543
|
onClickDimensionButton,
|
|
8850
9544
|
isActive: _isActive = false
|
|
8851
9545
|
}) => {
|
|
9546
|
+
const {
|
|
9547
|
+
t
|
|
9548
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
9549
|
+
const showPrefix = t('webmap-react-show');
|
|
8852
9550
|
const dimConfig = dimensionConfig.find(cnf => cnf.name === dimension);
|
|
8853
|
-
const Icon = getDimensionIcon(dimConfig && dimConfig.iconType || 'IconLevels');
|
|
8854
|
-
const title =
|
|
8855
|
-
return /*#__PURE__*/React.createElement(MapControlButton, {
|
|
9551
|
+
const Icon = getDimensionIcon$1(dimConfig && dimConfig.iconType || 'IconLevels');
|
|
9552
|
+
const title = `${showPrefix} ${dimConfig ? dimConfig.label.toLowerCase() : dimension.toLowerCase()}`;
|
|
9553
|
+
return /*#__PURE__*/React.createElement(WebmapReactTranslationsWrapper, null, /*#__PURE__*/React.createElement(MapControlButton, {
|
|
8856
9554
|
title: title,
|
|
8857
9555
|
"data-testid": `dimensionMapBtn-${dimension}`,
|
|
8858
9556
|
onClick: onClickDimensionButton,
|
|
8859
9557
|
isActive: _isActive
|
|
8860
|
-
}, /*#__PURE__*/React.createElement(Icon, null));
|
|
9558
|
+
}, /*#__PURE__*/React.createElement(Icon, null)));
|
|
8861
9559
|
};
|
|
8862
9560
|
|
|
8863
9561
|
/* *
|
|
@@ -9035,8 +9733,12 @@ const MapDimensionSelect = ({
|
|
|
9035
9733
|
const layerTitle = wmLayer.title;
|
|
9036
9734
|
const marks = marksByDimension(wmsDimension);
|
|
9037
9735
|
const isLayerDimensionSynced = layerDimension.synced !== undefined && layerDimension.synced === true;
|
|
9038
|
-
|
|
9039
|
-
|
|
9736
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
9737
|
+
const {
|
|
9738
|
+
t
|
|
9739
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
9740
|
+
const tooltipTitle = isLayerDimensionSynced ? t('webmap-react-click-disconnect') : t('webmap-react-click-connect');
|
|
9741
|
+
return /*#__PURE__*/React.createElement(WebmapReactTranslationsWrapper, null, /*#__PURE__*/React.createElement(Grid, {
|
|
9040
9742
|
key: layerId,
|
|
9041
9743
|
item: true,
|
|
9042
9744
|
xs: "auto"
|
|
@@ -9059,7 +9761,722 @@ const MapDimensionSelect = ({
|
|
|
9059
9761
|
},
|
|
9060
9762
|
isDisabled: false,
|
|
9061
9763
|
validSelection: layerDimension.synced === false || !(layerDimension.validSyncSelection !== undefined && layerDimension.validSyncSelection === false)
|
|
9062
|
-
}));
|
|
9764
|
+
})));
|
|
9765
|
+
};
|
|
9766
|
+
|
|
9767
|
+
const LayerInfoButton = _a => {
|
|
9768
|
+
var {
|
|
9769
|
+
isActive,
|
|
9770
|
+
onClick
|
|
9771
|
+
} = _a,
|
|
9772
|
+
props = __rest(_a, ["isActive", "onClick"]);
|
|
9773
|
+
return /*#__PURE__*/React__default.createElement(CustomIconButton, Object.assign({
|
|
9774
|
+
variant: "flat",
|
|
9775
|
+
isSelected: isActive,
|
|
9776
|
+
onClick: onClick,
|
|
9777
|
+
id: "layerInfoButton",
|
|
9778
|
+
"data-testid": "layerInfoButton",
|
|
9779
|
+
"aria-label": "layer info",
|
|
9780
|
+
className: "layerInfoButton"
|
|
9781
|
+
}, props), /*#__PURE__*/React__default.createElement(Info, null));
|
|
9782
|
+
};
|
|
9783
|
+
|
|
9784
|
+
const textStyle = {
|
|
9785
|
+
lineHeight: '20px',
|
|
9786
|
+
letterSpacing: '0.25px'
|
|
9787
|
+
};
|
|
9788
|
+
const textStyleWithMargin = Object.assign(Object.assign({}, textStyle), {
|
|
9789
|
+
marginBottom: 1
|
|
9790
|
+
});
|
|
9791
|
+
const LayerInfoText = ({
|
|
9792
|
+
label,
|
|
9793
|
+
value
|
|
9794
|
+
}) => {
|
|
9795
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9796
|
+
variant: "subtitle2",
|
|
9797
|
+
sx: textStyle
|
|
9798
|
+
}, label), /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9799
|
+
variant: "body2",
|
|
9800
|
+
sx: textStyleWithMargin
|
|
9801
|
+
}, value));
|
|
9802
|
+
};
|
|
9803
|
+
|
|
9804
|
+
const valueStyle = Object.assign(Object.assign({}, textStyle), {
|
|
9805
|
+
overflowWrap: 'break-word'
|
|
9806
|
+
});
|
|
9807
|
+
const LayerInfoList = ({
|
|
9808
|
+
label,
|
|
9809
|
+
list
|
|
9810
|
+
}) => {
|
|
9811
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9812
|
+
variant: "subtitle2",
|
|
9813
|
+
sx: textStyle
|
|
9814
|
+
}, label), list.length === 0 ? ( /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9815
|
+
variant: "body2",
|
|
9816
|
+
sx: textStyleWithMargin
|
|
9817
|
+
}, "-")) : ( /*#__PURE__*/React__default.createElement(Grid$1, {
|
|
9818
|
+
container: true,
|
|
9819
|
+
direction: "column"
|
|
9820
|
+
}, list.map(item => ( /*#__PURE__*/React__default.createElement("div", {
|
|
9821
|
+
key: item.label
|
|
9822
|
+
}, /*#__PURE__*/React__default.createElement(Grid$1, {
|
|
9823
|
+
item: true,
|
|
9824
|
+
container: true,
|
|
9825
|
+
direction: "row"
|
|
9826
|
+
}, item.icon, /*#__PURE__*/React__default.createElement(Grid$1, {
|
|
9827
|
+
item: true,
|
|
9828
|
+
sx: {
|
|
9829
|
+
marginLeft: '10px'
|
|
9830
|
+
}
|
|
9831
|
+
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9832
|
+
variant: "body2",
|
|
9833
|
+
sx: textStyle
|
|
9834
|
+
}, item.label, ":"))), /*#__PURE__*/React__default.createElement(Grid$1, {
|
|
9835
|
+
item: true,
|
|
9836
|
+
container: true,
|
|
9837
|
+
direction: "row",
|
|
9838
|
+
sx: {
|
|
9839
|
+
marginBottom: 1,
|
|
9840
|
+
paddingLeft: '34px'
|
|
9841
|
+
}
|
|
9842
|
+
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9843
|
+
variant: "body2",
|
|
9844
|
+
sx: valueStyle
|
|
9845
|
+
}, item.value))))))));
|
|
9846
|
+
};
|
|
9847
|
+
|
|
9848
|
+
/* *
|
|
9849
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9850
|
+
* you may not use this file except in compliance with the License.
|
|
9851
|
+
* You may obtain a copy of the License at
|
|
9852
|
+
*
|
|
9853
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9854
|
+
*
|
|
9855
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
9856
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
9857
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9858
|
+
* See the License for the specific language governing permissions and
|
|
9859
|
+
* limitations under the License.
|
|
9860
|
+
*
|
|
9861
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
9862
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
9863
|
+
* */
|
|
9864
|
+
const LayerInfoLegend = ({
|
|
9865
|
+
title,
|
|
9866
|
+
name,
|
|
9867
|
+
dimensions,
|
|
9868
|
+
legendURL
|
|
9869
|
+
}) => {
|
|
9870
|
+
const {
|
|
9871
|
+
t
|
|
9872
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
9873
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
9874
|
+
variant: "subtitle2",
|
|
9875
|
+
sx: textStyleWithMargin
|
|
9876
|
+
}, t('webmap-react-legend')), /*#__PURE__*/React__default.createElement(LegendLayout, {
|
|
9877
|
+
title: title,
|
|
9878
|
+
name: name,
|
|
9879
|
+
dimensions: dimensions
|
|
9880
|
+
}, legendURL ? /*#__PURE__*/React__default.createElement("img", {
|
|
9881
|
+
alt: title,
|
|
9882
|
+
src: legendURL
|
|
9883
|
+
}) : '-'));
|
|
9884
|
+
};
|
|
9885
|
+
|
|
9886
|
+
var fails$4 = fails$q;
|
|
9887
|
+
var global$3 = global$n;
|
|
9888
|
+
|
|
9889
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
9890
|
+
var $RegExp$2 = global$3.RegExp;
|
|
9891
|
+
|
|
9892
|
+
var UNSUPPORTED_Y$2 = fails$4(function () {
|
|
9893
|
+
var re = $RegExp$2('a', 'y');
|
|
9894
|
+
re.lastIndex = 2;
|
|
9895
|
+
return re.exec('abcd') !== null;
|
|
9896
|
+
});
|
|
9897
|
+
|
|
9898
|
+
// UC Browser bug
|
|
9899
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
9900
|
+
var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$4(function () {
|
|
9901
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
9902
|
+
});
|
|
9903
|
+
|
|
9904
|
+
var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$4(function () {
|
|
9905
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
9906
|
+
var re = $RegExp$2('^r', 'gy');
|
|
9907
|
+
re.lastIndex = 2;
|
|
9908
|
+
return re.exec('str') !== null;
|
|
9909
|
+
});
|
|
9910
|
+
|
|
9911
|
+
var regexpStickyHelpers = {
|
|
9912
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
9913
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
9914
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
9915
|
+
};
|
|
9916
|
+
|
|
9917
|
+
var fails$3 = fails$q;
|
|
9918
|
+
var global$2 = global$n;
|
|
9919
|
+
|
|
9920
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
9921
|
+
var $RegExp$1 = global$2.RegExp;
|
|
9922
|
+
|
|
9923
|
+
var regexpUnsupportedDotAll = fails$3(function () {
|
|
9924
|
+
var re = $RegExp$1('.', 's');
|
|
9925
|
+
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
9926
|
+
});
|
|
9927
|
+
|
|
9928
|
+
var fails$2 = fails$q;
|
|
9929
|
+
var global$1 = global$n;
|
|
9930
|
+
|
|
9931
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
9932
|
+
var $RegExp = global$1.RegExp;
|
|
9933
|
+
|
|
9934
|
+
var regexpUnsupportedNcg = fails$2(function () {
|
|
9935
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
9936
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
9937
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
9938
|
+
});
|
|
9939
|
+
|
|
9940
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
9941
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
9942
|
+
var call$3 = functionCall;
|
|
9943
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
9944
|
+
var toString$2 = toString$9;
|
|
9945
|
+
var regexpFlags = regexpFlags$1;
|
|
9946
|
+
var stickyHelpers$1 = regexpStickyHelpers;
|
|
9947
|
+
var shared = shared$4;
|
|
9948
|
+
var create = objectCreate;
|
|
9949
|
+
var getInternalState = internalState.get;
|
|
9950
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
9951
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
9952
|
+
|
|
9953
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
9954
|
+
var nativeExec = RegExp.prototype.exec;
|
|
9955
|
+
var patchedExec = nativeExec;
|
|
9956
|
+
var charAt$2 = uncurryThis$2(''.charAt);
|
|
9957
|
+
var indexOf = uncurryThis$2(''.indexOf);
|
|
9958
|
+
var replace = uncurryThis$2(''.replace);
|
|
9959
|
+
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
9960
|
+
|
|
9961
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
9962
|
+
var re1 = /a/;
|
|
9963
|
+
var re2 = /b*/g;
|
|
9964
|
+
call$3(nativeExec, re1, 'a');
|
|
9965
|
+
call$3(nativeExec, re2, 'a');
|
|
9966
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
9967
|
+
})();
|
|
9968
|
+
|
|
9969
|
+
var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
|
|
9970
|
+
|
|
9971
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
9972
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
9973
|
+
|
|
9974
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
9975
|
+
|
|
9976
|
+
if (PATCH) {
|
|
9977
|
+
patchedExec = function exec(string) {
|
|
9978
|
+
var re = this;
|
|
9979
|
+
var state = getInternalState(re);
|
|
9980
|
+
var str = toString$2(string);
|
|
9981
|
+
var raw = state.raw;
|
|
9982
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
9983
|
+
|
|
9984
|
+
if (raw) {
|
|
9985
|
+
raw.lastIndex = re.lastIndex;
|
|
9986
|
+
result = call$3(patchedExec, raw, str);
|
|
9987
|
+
re.lastIndex = raw.lastIndex;
|
|
9988
|
+
return result;
|
|
9989
|
+
}
|
|
9990
|
+
|
|
9991
|
+
var groups = state.groups;
|
|
9992
|
+
var sticky = UNSUPPORTED_Y$1 && re.sticky;
|
|
9993
|
+
var flags = call$3(regexpFlags, re);
|
|
9994
|
+
var source = re.source;
|
|
9995
|
+
var charsAdded = 0;
|
|
9996
|
+
var strCopy = str;
|
|
9997
|
+
|
|
9998
|
+
if (sticky) {
|
|
9999
|
+
flags = replace(flags, 'y', '');
|
|
10000
|
+
if (indexOf(flags, 'g') === -1) {
|
|
10001
|
+
flags += 'g';
|
|
10002
|
+
}
|
|
10003
|
+
|
|
10004
|
+
strCopy = stringSlice$2(str, re.lastIndex);
|
|
10005
|
+
// Support anchored sticky behavior.
|
|
10006
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$2(str, re.lastIndex - 1) !== '\n')) {
|
|
10007
|
+
source = '(?: ' + source + ')';
|
|
10008
|
+
strCopy = ' ' + strCopy;
|
|
10009
|
+
charsAdded++;
|
|
10010
|
+
}
|
|
10011
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
10012
|
+
// simulate the 'y' flag.
|
|
10013
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
10014
|
+
}
|
|
10015
|
+
|
|
10016
|
+
if (NPCG_INCLUDED) {
|
|
10017
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
10018
|
+
}
|
|
10019
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
10020
|
+
|
|
10021
|
+
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
10022
|
+
|
|
10023
|
+
if (sticky) {
|
|
10024
|
+
if (match) {
|
|
10025
|
+
match.input = stringSlice$2(match.input, charsAdded);
|
|
10026
|
+
match[0] = stringSlice$2(match[0], charsAdded);
|
|
10027
|
+
match.index = re.lastIndex;
|
|
10028
|
+
re.lastIndex += match[0].length;
|
|
10029
|
+
} else re.lastIndex = 0;
|
|
10030
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
10031
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
10032
|
+
}
|
|
10033
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
10034
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
10035
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
10036
|
+
call$3(nativeReplace, match[0], reCopy, function () {
|
|
10037
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
10038
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
10039
|
+
}
|
|
10040
|
+
});
|
|
10041
|
+
}
|
|
10042
|
+
|
|
10043
|
+
if (match && groups) {
|
|
10044
|
+
match.groups = object = create(null);
|
|
10045
|
+
for (i = 0; i < groups.length; i++) {
|
|
10046
|
+
group = groups[i];
|
|
10047
|
+
object[group[0]] = match[group[1]];
|
|
10048
|
+
}
|
|
10049
|
+
}
|
|
10050
|
+
|
|
10051
|
+
return match;
|
|
10052
|
+
};
|
|
10053
|
+
}
|
|
10054
|
+
|
|
10055
|
+
var regexpExec$2 = patchedExec;
|
|
10056
|
+
|
|
10057
|
+
var $ = _export;
|
|
10058
|
+
var exec = regexpExec$2;
|
|
10059
|
+
|
|
10060
|
+
// `RegExp.prototype.exec` method
|
|
10061
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
10062
|
+
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
10063
|
+
exec: exec
|
|
10064
|
+
});
|
|
10065
|
+
|
|
10066
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
10067
|
+
|
|
10068
|
+
var call$2 = functionCall;
|
|
10069
|
+
var defineBuiltIn = defineBuiltIn$7;
|
|
10070
|
+
var regexpExec$1 = regexpExec$2;
|
|
10071
|
+
var fails$1 = fails$q;
|
|
10072
|
+
var wellKnownSymbol = wellKnownSymbol$h;
|
|
10073
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
10074
|
+
|
|
10075
|
+
var SPECIES = wellKnownSymbol('species');
|
|
10076
|
+
var RegExpPrototype = RegExp.prototype;
|
|
10077
|
+
|
|
10078
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
10079
|
+
var SYMBOL = wellKnownSymbol(KEY);
|
|
10080
|
+
|
|
10081
|
+
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
10082
|
+
// String methods call symbol-named RegExp methods
|
|
10083
|
+
var O = {};
|
|
10084
|
+
O[SYMBOL] = function () { return 7; };
|
|
10085
|
+
return ''[KEY](O) !== 7;
|
|
10086
|
+
});
|
|
10087
|
+
|
|
10088
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
10089
|
+
// Symbol-named RegExp methods call .exec
|
|
10090
|
+
var execCalled = false;
|
|
10091
|
+
var re = /a/;
|
|
10092
|
+
|
|
10093
|
+
if (KEY === 'split') {
|
|
10094
|
+
// We can't use real regex here since it causes deoptimization
|
|
10095
|
+
// and serious performance degradation in V8
|
|
10096
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
10097
|
+
re = {};
|
|
10098
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
10099
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
10100
|
+
re.constructor = {};
|
|
10101
|
+
re.constructor[SPECIES] = function () { return re; };
|
|
10102
|
+
re.flags = '';
|
|
10103
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
10104
|
+
}
|
|
10105
|
+
|
|
10106
|
+
re.exec = function () {
|
|
10107
|
+
execCalled = true;
|
|
10108
|
+
return null;
|
|
10109
|
+
};
|
|
10110
|
+
|
|
10111
|
+
re[SYMBOL]('');
|
|
10112
|
+
return !execCalled;
|
|
10113
|
+
});
|
|
10114
|
+
|
|
10115
|
+
if (
|
|
10116
|
+
!DELEGATES_TO_SYMBOL ||
|
|
10117
|
+
!DELEGATES_TO_EXEC ||
|
|
10118
|
+
FORCED
|
|
10119
|
+
) {
|
|
10120
|
+
var nativeRegExpMethod = /./[SYMBOL];
|
|
10121
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
10122
|
+
var $exec = regexp.exec;
|
|
10123
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
10124
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
10125
|
+
// The native String method already delegates to @@method (this
|
|
10126
|
+
// polyfilled function), leasing to infinite recursion.
|
|
10127
|
+
// We avoid it by directly calling the native @@method method.
|
|
10128
|
+
return { done: true, value: call$2(nativeRegExpMethod, regexp, str, arg2) };
|
|
10129
|
+
}
|
|
10130
|
+
return { done: true, value: call$2(nativeMethod, str, regexp, arg2) };
|
|
10131
|
+
}
|
|
10132
|
+
return { done: false };
|
|
10133
|
+
});
|
|
10134
|
+
|
|
10135
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
10136
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
10137
|
+
}
|
|
10138
|
+
|
|
10139
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
10140
|
+
};
|
|
10141
|
+
|
|
10142
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
10143
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
10144
|
+
var toString$1 = toString$9;
|
|
10145
|
+
var requireObjectCoercible$1 = requireObjectCoercible$7;
|
|
10146
|
+
|
|
10147
|
+
var charAt$1 = uncurryThis$1(''.charAt);
|
|
10148
|
+
var charCodeAt = uncurryThis$1(''.charCodeAt);
|
|
10149
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
10150
|
+
|
|
10151
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
10152
|
+
return function ($this, pos) {
|
|
10153
|
+
var S = toString$1(requireObjectCoercible$1($this));
|
|
10154
|
+
var position = toIntegerOrInfinity(pos);
|
|
10155
|
+
var size = S.length;
|
|
10156
|
+
var first, second;
|
|
10157
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
10158
|
+
first = charCodeAt(S, position);
|
|
10159
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
10160
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
10161
|
+
? CONVERT_TO_STRING
|
|
10162
|
+
? charAt$1(S, position)
|
|
10163
|
+
: first
|
|
10164
|
+
: CONVERT_TO_STRING
|
|
10165
|
+
? stringSlice$1(S, position, position + 2)
|
|
10166
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
10167
|
+
};
|
|
10168
|
+
};
|
|
10169
|
+
|
|
10170
|
+
var stringMultibyte = {
|
|
10171
|
+
// `String.prototype.codePointAt` method
|
|
10172
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
10173
|
+
codeAt: createMethod(false),
|
|
10174
|
+
// `String.prototype.at` method
|
|
10175
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
10176
|
+
charAt: createMethod(true)
|
|
10177
|
+
};
|
|
10178
|
+
|
|
10179
|
+
var charAt = stringMultibyte.charAt;
|
|
10180
|
+
|
|
10181
|
+
// `AdvanceStringIndex` abstract operation
|
|
10182
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
10183
|
+
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
10184
|
+
return index + (unicode ? charAt(S, index).length : 1);
|
|
10185
|
+
};
|
|
10186
|
+
|
|
10187
|
+
var call$1 = functionCall;
|
|
10188
|
+
var anObject$1 = anObject$d;
|
|
10189
|
+
var isCallable = isCallable$n;
|
|
10190
|
+
var classof = classofRaw$2;
|
|
10191
|
+
var regexpExec = regexpExec$2;
|
|
10192
|
+
|
|
10193
|
+
var $TypeError = TypeError;
|
|
10194
|
+
|
|
10195
|
+
// `RegExpExec` abstract operation
|
|
10196
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
10197
|
+
var regexpExecAbstract = function (R, S) {
|
|
10198
|
+
var exec = R.exec;
|
|
10199
|
+
if (isCallable(exec)) {
|
|
10200
|
+
var result = call$1(exec, R, S);
|
|
10201
|
+
if (result !== null) anObject$1(result);
|
|
10202
|
+
return result;
|
|
10203
|
+
}
|
|
10204
|
+
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
10205
|
+
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
10206
|
+
};
|
|
10207
|
+
|
|
10208
|
+
var call = functionCall;
|
|
10209
|
+
var uncurryThis = functionUncurryThis;
|
|
10210
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
10211
|
+
var anObject = anObject$d;
|
|
10212
|
+
var isNullOrUndefined = isNullOrUndefined$5;
|
|
10213
|
+
var requireObjectCoercible = requireObjectCoercible$7;
|
|
10214
|
+
var speciesConstructor = speciesConstructor$2;
|
|
10215
|
+
var advanceStringIndex = advanceStringIndex$1;
|
|
10216
|
+
var toLength = toLength$2;
|
|
10217
|
+
var toString = toString$9;
|
|
10218
|
+
var getMethod = getMethod$4;
|
|
10219
|
+
var regExpExec = regexpExecAbstract;
|
|
10220
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
10221
|
+
var fails = fails$q;
|
|
10222
|
+
|
|
10223
|
+
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
10224
|
+
var MAX_UINT32 = 0xFFFFFFFF;
|
|
10225
|
+
var min = Math.min;
|
|
10226
|
+
var push = uncurryThis([].push);
|
|
10227
|
+
var stringSlice = uncurryThis(''.slice);
|
|
10228
|
+
|
|
10229
|
+
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
10230
|
+
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
10231
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
10232
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
10233
|
+
var re = /(?:)/;
|
|
10234
|
+
var originalExec = re.exec;
|
|
10235
|
+
re.exec = function () { return originalExec.apply(this, arguments); };
|
|
10236
|
+
var result = 'ab'.split(re);
|
|
10237
|
+
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
|
10238
|
+
});
|
|
10239
|
+
|
|
10240
|
+
var BUGGY = 'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
10241
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
10242
|
+
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
10243
|
+
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
10244
|
+
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
10245
|
+
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
10246
|
+
'.'.split(/()()/).length > 1 ||
|
|
10247
|
+
''.split(/.?/).length;
|
|
10248
|
+
|
|
10249
|
+
// @@split logic
|
|
10250
|
+
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
10251
|
+
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
|
|
10252
|
+
return separator === undefined && limit === 0 ? [] : call(nativeSplit, this, separator, limit);
|
|
10253
|
+
} : nativeSplit;
|
|
10254
|
+
|
|
10255
|
+
return [
|
|
10256
|
+
// `String.prototype.split` method
|
|
10257
|
+
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
10258
|
+
function split(separator, limit) {
|
|
10259
|
+
var O = requireObjectCoercible(this);
|
|
10260
|
+
var splitter = isNullOrUndefined(separator) ? undefined : getMethod(separator, SPLIT);
|
|
10261
|
+
return splitter
|
|
10262
|
+
? call(splitter, separator, O, limit)
|
|
10263
|
+
: call(internalSplit, toString(O), separator, limit);
|
|
10264
|
+
},
|
|
10265
|
+
// `RegExp.prototype[@@split]` method
|
|
10266
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
10267
|
+
//
|
|
10268
|
+
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
10269
|
+
// the 'y' flag.
|
|
10270
|
+
function (string, limit) {
|
|
10271
|
+
var rx = anObject(this);
|
|
10272
|
+
var S = toString(string);
|
|
10273
|
+
|
|
10274
|
+
if (!BUGGY) {
|
|
10275
|
+
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
10276
|
+
if (res.done) return res.value;
|
|
10277
|
+
}
|
|
10278
|
+
|
|
10279
|
+
var C = speciesConstructor(rx, RegExp);
|
|
10280
|
+
var unicodeMatching = rx.unicode;
|
|
10281
|
+
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
10282
|
+
(rx.multiline ? 'm' : '') +
|
|
10283
|
+
(rx.unicode ? 'u' : '') +
|
|
10284
|
+
(UNSUPPORTED_Y ? 'g' : 'y');
|
|
10285
|
+
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
10286
|
+
// simulate the 'y' flag.
|
|
10287
|
+
var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
|
|
10288
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
10289
|
+
if (lim === 0) return [];
|
|
10290
|
+
if (S.length === 0) return regExpExec(splitter, S) === null ? [S] : [];
|
|
10291
|
+
var p = 0;
|
|
10292
|
+
var q = 0;
|
|
10293
|
+
var A = [];
|
|
10294
|
+
while (q < S.length) {
|
|
10295
|
+
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
|
|
10296
|
+
var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice(S, q) : S);
|
|
10297
|
+
var e;
|
|
10298
|
+
if (
|
|
10299
|
+
z === null ||
|
|
10300
|
+
(e = min(toLength(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
|
|
10301
|
+
) {
|
|
10302
|
+
q = advanceStringIndex(S, q, unicodeMatching);
|
|
10303
|
+
} else {
|
|
10304
|
+
push(A, stringSlice(S, p, q));
|
|
10305
|
+
if (A.length === lim) return A;
|
|
10306
|
+
for (var i = 1; i <= z.length - 1; i++) {
|
|
10307
|
+
push(A, z[i]);
|
|
10308
|
+
if (A.length === lim) return A;
|
|
10309
|
+
}
|
|
10310
|
+
q = p = e;
|
|
10311
|
+
}
|
|
10312
|
+
}
|
|
10313
|
+
push(A, stringSlice(S, p));
|
|
10314
|
+
return A;
|
|
10315
|
+
}
|
|
10316
|
+
];
|
|
10317
|
+
}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
|
|
10318
|
+
|
|
10319
|
+
const getLayerStyles = layer => {
|
|
10320
|
+
if (!layer.styles) {
|
|
10321
|
+
return '-';
|
|
10322
|
+
}
|
|
10323
|
+
const styles = layer.styles.map(style => style.title);
|
|
10324
|
+
if (!styles.length) {
|
|
10325
|
+
return '-';
|
|
10326
|
+
}
|
|
10327
|
+
return styles.join(', ');
|
|
10328
|
+
};
|
|
10329
|
+
const getDimensionValue = (name, dimensions) => {
|
|
10330
|
+
const dimension = dimensions === null || dimensions === void 0 ? void 0 : dimensions.find(dimension => dimension.name.toLowerCase() === name.toLowerCase());
|
|
10331
|
+
if (!dimension || !dimension.values) {
|
|
10332
|
+
return null;
|
|
10333
|
+
}
|
|
10334
|
+
const dimName = dimension.name.toLowerCase();
|
|
10335
|
+
const breakAt = dimName === 'time' ? '/' : ',';
|
|
10336
|
+
const includeUnit = dimName !== 'time' && dimName !== 'reference_time';
|
|
10337
|
+
const dimValue = dimension.values.split(breakAt).join(`${breakAt} `);
|
|
10338
|
+
if (includeUnit) {
|
|
10339
|
+
return `${dimValue} ${dimension.units}`;
|
|
10340
|
+
}
|
|
10341
|
+
return dimValue;
|
|
10342
|
+
};
|
|
10343
|
+
const getLayerBbox = layer => {
|
|
10344
|
+
return layer.geographicBoundingBox ? `west ${layer.geographicBoundingBox.west}, east ${layer.geographicBoundingBox.east}, north ${layer.geographicBoundingBox.north}, south ${layer.geographicBoundingBox.south}` : '-';
|
|
10345
|
+
};
|
|
10346
|
+
const getDimensionIcon = (name, dimensions) => {
|
|
10347
|
+
const dimension = dimensions === null || dimensions === void 0 ? void 0 : dimensions.find(dimension => dimension.name.toLowerCase() === name.toLowerCase());
|
|
10348
|
+
if (!dimension) {
|
|
10349
|
+
return null;
|
|
10350
|
+
}
|
|
10351
|
+
switch (dimension.name.toLowerCase()) {
|
|
10352
|
+
case 'time':
|
|
10353
|
+
return /*#__PURE__*/React__default.createElement(DimensionsTime, null);
|
|
10354
|
+
case 'reference_time':
|
|
10355
|
+
return /*#__PURE__*/React__default.createElement(DimensionsRefTime, null);
|
|
10356
|
+
case 'elevation':
|
|
10357
|
+
return /*#__PURE__*/React__default.createElement(DimensionsElevation, null);
|
|
10358
|
+
default:
|
|
10359
|
+
return /*#__PURE__*/React__default.createElement(DimensionsOther, null);
|
|
10360
|
+
}
|
|
10361
|
+
};
|
|
10362
|
+
const getDimensionLabel = name => {
|
|
10363
|
+
const dimName = name.toLowerCase().split('_').join(' ');
|
|
10364
|
+
return dimName.charAt(0).toUpperCase() + dimName.slice(1);
|
|
10365
|
+
};
|
|
10366
|
+
const getDimensionsList = dimensions => {
|
|
10367
|
+
const result = [];
|
|
10368
|
+
dimensions === null || dimensions === void 0 ? void 0 : dimensions.forEach(({
|
|
10369
|
+
name
|
|
10370
|
+
}) => {
|
|
10371
|
+
const value = getDimensionValue(name, dimensions);
|
|
10372
|
+
if (!value) {
|
|
10373
|
+
return;
|
|
10374
|
+
}
|
|
10375
|
+
const icon = getDimensionIcon(name, dimensions);
|
|
10376
|
+
const label = getDimensionLabel(name);
|
|
10377
|
+
result.push({
|
|
10378
|
+
label,
|
|
10379
|
+
value,
|
|
10380
|
+
icon
|
|
10381
|
+
});
|
|
10382
|
+
});
|
|
10383
|
+
// sort alphabetically so other dimensions are sorted
|
|
10384
|
+
result.sort((a, b) => a.label.localeCompare(b.label));
|
|
10385
|
+
// sort by fixed order
|
|
10386
|
+
const preferredOrder = ['Time', 'Reference time', 'Elevation'];
|
|
10387
|
+
// using reverse ordering to make sure the other dimensions come last
|
|
10388
|
+
preferredOrder.reverse();
|
|
10389
|
+
result.sort((a, b) => preferredOrder.indexOf(b.label) - preferredOrder.indexOf(a.label));
|
|
10390
|
+
return result;
|
|
10391
|
+
};
|
|
10392
|
+
|
|
10393
|
+
/* *
|
|
10394
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10395
|
+
* you may not use this file except in compliance with the License.
|
|
10396
|
+
* You may obtain a copy of the License at
|
|
10397
|
+
*
|
|
10398
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10399
|
+
*
|
|
10400
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
10401
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10402
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
10403
|
+
* See the License for the specific language governing permissions and
|
|
10404
|
+
* limitations under the License.
|
|
10405
|
+
*
|
|
10406
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
10407
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
10408
|
+
* */
|
|
10409
|
+
const LayerInfoDialog = ({
|
|
10410
|
+
onClose,
|
|
10411
|
+
layer,
|
|
10412
|
+
serviceName,
|
|
10413
|
+
isOpen,
|
|
10414
|
+
onMouseDown: _onMouseDown = () => {},
|
|
10415
|
+
order: _order = 0,
|
|
10416
|
+
source: _source = 'app',
|
|
10417
|
+
dialogHeight
|
|
10418
|
+
}) => {
|
|
10419
|
+
var _a, _b, _c;
|
|
10420
|
+
const styles = getLayerStyles(layer);
|
|
10421
|
+
const bbox = getLayerBbox(layer);
|
|
10422
|
+
const dimensions = getDimensionsList(layer.dimensions);
|
|
10423
|
+
const {
|
|
10424
|
+
t
|
|
10425
|
+
} = useTranslation(WEBMAP_REACT_NAMESPACE);
|
|
10426
|
+
return /*#__PURE__*/React__default.createElement(WebmapReactTranslationsWrapper, null, /*#__PURE__*/React__default.createElement(ToolContainerDraggable, {
|
|
10427
|
+
onClose: onClose,
|
|
10428
|
+
startSize: {
|
|
10429
|
+
width: 288,
|
|
10430
|
+
height: dialogHeight || 650
|
|
10431
|
+
},
|
|
10432
|
+
startPosition: {
|
|
10433
|
+
top: 150,
|
|
10434
|
+
left: 900
|
|
10435
|
+
},
|
|
10436
|
+
title: "Layer Info",
|
|
10437
|
+
isOpen: isOpen,
|
|
10438
|
+
onMouseDown: _onMouseDown,
|
|
10439
|
+
order: _order,
|
|
10440
|
+
source: _source
|
|
10441
|
+
}, /*#__PURE__*/React__default.createElement(Box$1, {
|
|
10442
|
+
sx: {
|
|
10443
|
+
padding: 2
|
|
10444
|
+
}
|
|
10445
|
+
}, /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10446
|
+
label: t('webmap-react-title'),
|
|
10447
|
+
value: layer.title
|
|
10448
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10449
|
+
label: t('webmap-react-name'),
|
|
10450
|
+
value: layer.name
|
|
10451
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10452
|
+
label: t('webmap-react-service'),
|
|
10453
|
+
value: serviceName
|
|
10454
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10455
|
+
label: t('webmap-react-abstract'),
|
|
10456
|
+
value: layer.abstract || '-'
|
|
10457
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoList, {
|
|
10458
|
+
label: t('webmap-react-dimensions'),
|
|
10459
|
+
list: dimensions
|
|
10460
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10461
|
+
label: t('webmap-react-styles'),
|
|
10462
|
+
value: styles
|
|
10463
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10464
|
+
label: t('webmap-react-bounding-box', {
|
|
10465
|
+
ns: WEBMAP_REACT_NAMESPACE
|
|
10466
|
+
}),
|
|
10467
|
+
value: bbox
|
|
10468
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10469
|
+
label: t('webmap-react-groups'),
|
|
10470
|
+
value: ((_a = layer.path) === null || _a === void 0 ? void 0 : _a.join('/')) || '-'
|
|
10471
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoText, {
|
|
10472
|
+
label: t('webmap-react-keywords'),
|
|
10473
|
+
value: ((_b = layer.keywords) === null || _b === void 0 ? void 0 : _b.join(', ')) || '-'
|
|
10474
|
+
}), /*#__PURE__*/React__default.createElement(LayerInfoLegend, {
|
|
10475
|
+
title: layer.title,
|
|
10476
|
+
name: layer.name,
|
|
10477
|
+
dimensions: layer.dimensions,
|
|
10478
|
+
legendURL: ((_c = layer.styles) === null || _c === void 0 ? void 0 : _c.length) ? layer.styles[0].legendURL : undefined
|
|
10479
|
+
}))));
|
|
9063
10480
|
};
|
|
9064
10481
|
|
|
9065
10482
|
/* *
|
|
@@ -9622,4 +11039,4 @@ var publicLayers = /*#__PURE__*/Object.freeze({
|
|
|
9622
11039
|
msgNaturalEUMETSAT: msgNaturalEUMETSAT
|
|
9623
11040
|
});
|
|
9624
11041
|
|
|
9625
|
-
export { DRAWMODE, DimensionSelectButton, DimensionSelectDialog, DimensionSelectSlider, EDITMODE, EditModeButton as EditModeButtonField, FeatureLayers, GeoJSONTextField, IntersectionSelect, Legend, LegendDialog, LegendLayout, MapControlButton, MapControls, MapDimensionSelect, MapDrawContainer, MapTime, MapView, MapViewLayer, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION, ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO, ReactMapView, ReactMapViewLayer, SelectField, StoryLayoutGrid, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, basicExampleMultipleShapeWithValuesDrawOptions, checkHoverFeatures, createInterSections, currentlySupportedDrawModes, defaultBox, defaultDelete, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultModes, defaultPoint, defaultPolygon, defaultTimeFormat, dimensionConfig, distance, drawPolyStoryStyles, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureBox, featureMultiPoint, featurePoint, featurePolygon, fillOptions, firSelectionType, formatTime, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getLastEmptyFeatureIndex, getTimeDimension, getToolIcon, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isGeoJSONFeatureCreatedByTool, isPointFeatureCollection, lineString, marksByDimension, moveFeature, opacityOptions, publicLayers, publicServices, registerDrawFunction, rewindGeometry, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, updateEditModeButtonsWithFir, useGeoJSON, useMapDrawTool };
|
|
11042
|
+
export { DRAWMODE, DimensionSelectButton, DimensionSelectDialog, DimensionSelectSlider, EDITMODE, EditModeButton as EditModeButtonField, FeatureLayers, GeoJSONTextField, IntersectionSelect, LayerInfoButton, LayerInfoDialog, LayerInfoLegend, LayerInfoList, LayerInfoText, Legend, LegendDialog, LegendLayout, MINUTE_TO_MILLISECOND, MapControlButton, MapControls, MapDimensionSelect, MapDrawContainer, MapTime, MapView, MapViewLayer, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION, ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO, ReactMapView, ReactMapViewLayer, SelectField, StoryLayoutGrid, ZoomControls, addFeatureProperties, addGeoJSONProperties, addSelectionTypeToGeoJSON, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, basicExampleMultipleShapeWithValuesDrawOptions, checkHoverFeatures, createInterSections, currentlySupportedDrawModes, defaultBox, defaultDelete, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultModes, defaultPoint, defaultPolygon, defaultTimeFormat, dimensionConfig, distance, drawPolyStoryStyles, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureBox, featureMultiPoint, featurePoint, featurePolygon, fillOptions, firSelectionType, formatTime, getDimensionIcon, getDimensionLabel, getDimensionValue, getDimensionsList, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFeatureExtent, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getLastEmptyFeatureIndex, getLayerBbox, getLayerStyles, getTimeDimension, getToolIcon, intersectPointGeoJSONS, intersectPolygonGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isGeoJSONFeatureCreatedByTool, isPointFeatureCollection, lineString, marksByDimension, moveFeature, opacityOptions, publicLayers, publicServices, registerDrawFunction, rewindGeometry, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, textStyle, textStyleWithMargin, updateEditModeButtonsWithFir, useGeoJSON, useMapDrawTool };
|