@opengeoweb/warnings 9.12.0 → 9.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useState, useEffect } from 'react';
|
|
3
3
|
import { useDispatch, useSelector } from 'react-redux';
|
|
4
|
-
import { Polygons, Share, ExitDomain, Edit, Delete, DrawPolygon, Visibility, Add, Wind, Fog, Lightning, Snow, Rain, TemperatureHigh,
|
|
4
|
+
import { Polygons, Share, ExitDomain, Edit, Delete, DrawPolygon, Visibility, Add, Wind, Fog, Lightning, Snow, Rain, TemperatureHigh, TemperatureLow, CoastalEvent, breakpoints, Options, VisibilityOff, Success } from '@opengeoweb/theme';
|
|
5
5
|
import { uiTypes, uiActions, getSingularDrawtoolDrawLayerId, drawtoolSelectors, layerSelectors, uiSelectors, drawtoolActions, mapStoreActions, layerActions, useSetupDialog } from '@opengeoweb/store';
|
|
6
|
-
import { emptyGeoJSON, MapControlButton,
|
|
6
|
+
import { emptyGeoJSON, MapControlButton, getIcon, rewindGeometry, getGeoJSONPropertyValue, currentlySupportedDrawModes } from '@opengeoweb/webmap-react';
|
|
7
7
|
import { useConfirmationDialog, ToggleMenu, dateUtils, calculateStartSize, ToolContainerDraggable, AlertBanner, ConfirmationDialog, getAxiosErrorMessage, usePrevious, CustomIconButton, CustomTooltip, Avatar, getInitials, SwitchButton, LastUpdateTime, StatusTag, ErrorBoundary, isAxiosError, pollingIntervalTimeout } from '@opengeoweb/shared';
|
|
8
8
|
import { createEntityAdapter, createSlice, createSelector } from '@reduxjs/toolkit';
|
|
9
9
|
import { snackbarActions } from '@opengeoweb/snackbar';
|
|
10
10
|
import { styled, Box, Typography, ListItem, Grid, Paper, ListItemButton, Stack, LinearProgress, Button, FormHelperText, MenuItem, Tabs, Tab, FormControl, Card, CardContent, ListItemIcon, CircularProgress, List } from '@mui/material';
|
|
11
11
|
import { VariableSizeList } from 'react-window';
|
|
12
12
|
import AutoSizer from 'react-virtualized-auto-sizer';
|
|
13
|
-
import { DATE_FORMAT_FNS,
|
|
13
|
+
import { DATE_FORMAT_FNS, ReactHookFormHiddenInput, isValidGeoJsonCoordinates, ReactHookFormSelect, ReactHookFormTextField, ReactHookFormProvider, defaultFormOptions, useDraftFormHelpers, errorMessages, ReactHookFormDateTime, isValidDate, isXHoursBefore, isXHoursAfter, isEmpty } from '@opengeoweb/form-fields';
|
|
14
14
|
import { getApi, createApiInstance, createNonAuthApiInstance, createFakeApiInstance, ApiProvider } from '@opengeoweb/api';
|
|
15
15
|
import { useFormContext } from 'react-hook-form';
|
|
16
|
-
import { clamp } from 'lodash';
|
|
16
|
+
import { isEqual, cloneDeep, clamp } from 'lodash';
|
|
17
17
|
import { useAuthenticationContext } from '@opengeoweb/authentication';
|
|
18
|
-
import { takeLatest, put, call as call$
|
|
18
|
+
import { takeLatest, put, call as call$c, select, delay } from 'redux-saga/effects';
|
|
19
19
|
import { isAxiosError as isAxiosError$1 } from 'axios';
|
|
20
20
|
|
|
21
21
|
/******************************************************************************
|
|
@@ -232,7 +232,7 @@ const useCloseDrawDialog = ({
|
|
|
232
232
|
const dispatch = useDispatch();
|
|
233
233
|
const drawLayerId = getSingularDrawtoolDrawLayerId(mapId);
|
|
234
234
|
const drawDialogActiveDrawModeId = useSelector(store => drawtoolSelectors.getActiveDrawModeId(store, drawingDialogType));
|
|
235
|
-
const
|
|
235
|
+
const featureLayerContainsGeoJSON = useSelector(store => layerSelectors.getHasFeatureLayerGeoJSON(store, drawLayerId));
|
|
236
236
|
const dialogError = useSelector(store => uiSelectors.getDialogError(store, drawingDialogType));
|
|
237
237
|
const isFormDirty = useSelector(store => getWarningFormDirty(store, drawingDialogType));
|
|
238
238
|
const confirmDialog = useConfirmationDialog();
|
|
@@ -277,7 +277,7 @@ const useCloseDrawDialog = ({
|
|
|
277
277
|
}));
|
|
278
278
|
}
|
|
279
279
|
// clear existing geoJSON
|
|
280
|
-
if (
|
|
280
|
+
if (featureLayerContainsGeoJSON) {
|
|
281
281
|
dispatch(mapStoreActions.layerChangeGeojson({
|
|
282
282
|
layerId: drawLayerId,
|
|
283
283
|
geojson: emptyGeoJSON
|
|
@@ -513,7 +513,7 @@ const ObjectManagerMapButtonConnect = ({
|
|
|
513
513
|
|
|
514
514
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
515
515
|
|
|
516
|
-
var fails$
|
|
516
|
+
var fails$l = function (exec) {
|
|
517
517
|
try {
|
|
518
518
|
return !!exec();
|
|
519
519
|
} catch (error) {
|
|
@@ -521,50 +521,50 @@ var fails$j = function (exec) {
|
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
523
|
|
|
524
|
-
var fails$
|
|
524
|
+
var fails$k = fails$l;
|
|
525
525
|
|
|
526
|
-
var functionBindNative = !fails$
|
|
526
|
+
var functionBindNative = !fails$k(function () {
|
|
527
527
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
528
528
|
var test = (function () { /* empty */ }).bind();
|
|
529
529
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
530
530
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
531
531
|
});
|
|
532
532
|
|
|
533
|
-
var NATIVE_BIND$
|
|
533
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
534
534
|
|
|
535
|
-
var FunctionPrototype$
|
|
536
|
-
var call$
|
|
537
|
-
var uncurryThisWithBind = NATIVE_BIND$
|
|
535
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
536
|
+
var call$b = FunctionPrototype$2.call;
|
|
537
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$b, call$b);
|
|
538
538
|
|
|
539
|
-
var functionUncurryThis = NATIVE_BIND$
|
|
539
|
+
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
540
540
|
return function () {
|
|
541
|
-
return call$
|
|
541
|
+
return call$b.apply(fn, arguments);
|
|
542
542
|
};
|
|
543
543
|
};
|
|
544
544
|
|
|
545
|
-
var uncurryThis$
|
|
545
|
+
var uncurryThis$i = functionUncurryThis;
|
|
546
546
|
|
|
547
|
-
var toString$
|
|
548
|
-
var stringSlice$5 = uncurryThis$
|
|
547
|
+
var toString$9 = uncurryThis$i({}.toString);
|
|
548
|
+
var stringSlice$5 = uncurryThis$i(''.slice);
|
|
549
549
|
|
|
550
550
|
var classofRaw$1 = function (it) {
|
|
551
|
-
return stringSlice$5(toString$
|
|
551
|
+
return stringSlice$5(toString$9(it), 8, -1);
|
|
552
552
|
};
|
|
553
553
|
|
|
554
|
-
var uncurryThis$
|
|
555
|
-
var fails$
|
|
556
|
-
var classof$
|
|
554
|
+
var uncurryThis$h = functionUncurryThis;
|
|
555
|
+
var fails$j = fails$l;
|
|
556
|
+
var classof$6 = classofRaw$1;
|
|
557
557
|
|
|
558
558
|
var $Object$4 = Object;
|
|
559
|
-
var split = uncurryThis$
|
|
559
|
+
var split = uncurryThis$h(''.split);
|
|
560
560
|
|
|
561
561
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
562
|
-
var indexedObject = fails$
|
|
562
|
+
var indexedObject = fails$j(function () {
|
|
563
563
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
564
564
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
565
565
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
566
566
|
}) ? function (it) {
|
|
567
|
-
return classof$
|
|
567
|
+
return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
568
568
|
} : $Object$4;
|
|
569
569
|
|
|
570
570
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -575,12 +575,12 @@ var isNullOrUndefined$4 = function (it) {
|
|
|
575
575
|
|
|
576
576
|
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
577
577
|
|
|
578
|
-
var $TypeError$
|
|
578
|
+
var $TypeError$b = TypeError;
|
|
579
579
|
|
|
580
580
|
// `RequireObjectCoercible` abstract operation
|
|
581
581
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
582
582
|
var requireObjectCoercible$5 = function (it) {
|
|
583
|
-
if (isNullOrUndefined$3(it)) throw new $TypeError$
|
|
583
|
+
if (isNullOrUndefined$3(it)) throw new $TypeError$b("Can't call method on " + it);
|
|
584
584
|
return it;
|
|
585
585
|
};
|
|
586
586
|
|
|
@@ -597,7 +597,7 @@ var check = function (it) {
|
|
|
597
597
|
};
|
|
598
598
|
|
|
599
599
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
600
|
-
var global$
|
|
600
|
+
var global$j =
|
|
601
601
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
602
602
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
603
603
|
check(typeof window == 'object' && window) ||
|
|
@@ -610,24 +610,24 @@ var global$i =
|
|
|
610
610
|
|
|
611
611
|
var shared$4 = {exports: {}};
|
|
612
612
|
|
|
613
|
-
var global$
|
|
613
|
+
var global$i = global$j;
|
|
614
614
|
|
|
615
615
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
616
|
-
var defineProperty$
|
|
616
|
+
var defineProperty$7 = Object.defineProperty;
|
|
617
617
|
|
|
618
618
|
var defineGlobalProperty$3 = function (key, value) {
|
|
619
619
|
try {
|
|
620
|
-
defineProperty$
|
|
620
|
+
defineProperty$7(global$i, key, { value: value, configurable: true, writable: true });
|
|
621
621
|
} catch (error) {
|
|
622
|
-
global$
|
|
622
|
+
global$i[key] = value;
|
|
623
623
|
} return value;
|
|
624
624
|
};
|
|
625
625
|
|
|
626
|
-
var global$
|
|
626
|
+
var global$h = global$j;
|
|
627
627
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
628
628
|
|
|
629
629
|
var SHARED = '__core-js_shared__';
|
|
630
|
-
var store$3 = global$
|
|
630
|
+
var store$3 = global$h[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
631
631
|
|
|
632
632
|
var sharedStore = store$3;
|
|
633
633
|
|
|
@@ -649,39 +649,39 @@ var $Object$3 = Object;
|
|
|
649
649
|
|
|
650
650
|
// `ToObject` abstract operation
|
|
651
651
|
// https://tc39.es/ecma262/#sec-toobject
|
|
652
|
-
var toObject$
|
|
652
|
+
var toObject$5 = function (argument) {
|
|
653
653
|
return $Object$3(requireObjectCoercible$3(argument));
|
|
654
654
|
};
|
|
655
655
|
|
|
656
|
-
var uncurryThis$
|
|
657
|
-
var toObject$
|
|
656
|
+
var uncurryThis$g = functionUncurryThis;
|
|
657
|
+
var toObject$4 = toObject$5;
|
|
658
658
|
|
|
659
|
-
var hasOwnProperty = uncurryThis$
|
|
659
|
+
var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
|
|
660
660
|
|
|
661
661
|
// `HasOwnProperty` abstract operation
|
|
662
662
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
663
663
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
664
664
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
665
|
-
return hasOwnProperty(toObject$
|
|
665
|
+
return hasOwnProperty(toObject$4(it), key);
|
|
666
666
|
};
|
|
667
667
|
|
|
668
|
-
var uncurryThis$
|
|
668
|
+
var uncurryThis$f = functionUncurryThis;
|
|
669
669
|
|
|
670
670
|
var id = 0;
|
|
671
671
|
var postfix = Math.random();
|
|
672
|
-
var toString$
|
|
672
|
+
var toString$8 = uncurryThis$f(1.0.toString);
|
|
673
673
|
|
|
674
674
|
var uid$2 = function (key) {
|
|
675
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
675
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$8(++id + postfix, 36);
|
|
676
676
|
};
|
|
677
677
|
|
|
678
678
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
679
679
|
|
|
680
|
-
var global$
|
|
680
|
+
var global$g = global$j;
|
|
681
681
|
var userAgent = engineUserAgent;
|
|
682
682
|
|
|
683
|
-
var process = global$
|
|
684
|
-
var Deno = global$
|
|
683
|
+
var process = global$g.process;
|
|
684
|
+
var Deno = global$g.Deno;
|
|
685
685
|
var versions = process && process.versions || Deno && Deno.version;
|
|
686
686
|
var v8 = versions && versions.v8;
|
|
687
687
|
var match, version;
|
|
@@ -707,13 +707,13 @@ var engineV8Version = version;
|
|
|
707
707
|
|
|
708
708
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
709
709
|
var V8_VERSION = engineV8Version;
|
|
710
|
-
var fails$
|
|
711
|
-
var global$
|
|
710
|
+
var fails$i = fails$l;
|
|
711
|
+
var global$f = global$j;
|
|
712
712
|
|
|
713
|
-
var $String$5 = global$
|
|
713
|
+
var $String$5 = global$f.String;
|
|
714
714
|
|
|
715
715
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
716
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
716
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$i(function () {
|
|
717
717
|
var symbol = Symbol('symbol detection');
|
|
718
718
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
719
719
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -731,20 +731,20 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
|
731
731
|
&& !Symbol.sham
|
|
732
732
|
&& typeof Symbol.iterator == 'symbol';
|
|
733
733
|
|
|
734
|
-
var global$
|
|
734
|
+
var global$e = global$j;
|
|
735
735
|
var shared$3 = shared$4.exports;
|
|
736
|
-
var hasOwn$
|
|
736
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
737
737
|
var uid$1 = uid$2;
|
|
738
738
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
739
739
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
740
740
|
|
|
741
|
-
var Symbol$2 = global$
|
|
741
|
+
var Symbol$2 = global$e.Symbol;
|
|
742
742
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
743
743
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
744
744
|
|
|
745
745
|
var wellKnownSymbol$a = function (name) {
|
|
746
|
-
if (!hasOwn$
|
|
747
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$
|
|
746
|
+
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
747
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$a(Symbol$2, name)
|
|
748
748
|
? Symbol$2[name]
|
|
749
749
|
: createWellKnownSymbol('Symbol.' + name);
|
|
750
750
|
} return WellKnownSymbolsStore[name];
|
|
@@ -756,45 +756,45 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
756
756
|
// `IsCallable` abstract operation
|
|
757
757
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
758
758
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
759
|
-
var isCallable$
|
|
759
|
+
var isCallable$i = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
760
760
|
return typeof argument == 'function' || argument === documentAll;
|
|
761
761
|
} : function (argument) {
|
|
762
762
|
return typeof argument == 'function';
|
|
763
763
|
};
|
|
764
764
|
|
|
765
|
-
var isCallable$
|
|
765
|
+
var isCallable$h = isCallable$i;
|
|
766
766
|
|
|
767
|
-
var isObject$
|
|
768
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
767
|
+
var isObject$9 = function (it) {
|
|
768
|
+
return typeof it == 'object' ? it !== null : isCallable$h(it);
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
-
var isObject$
|
|
771
|
+
var isObject$8 = isObject$9;
|
|
772
772
|
|
|
773
773
|
var $String$4 = String;
|
|
774
|
-
var $TypeError$
|
|
774
|
+
var $TypeError$a = TypeError;
|
|
775
775
|
|
|
776
776
|
// `Assert: Type(argument) is Object`
|
|
777
777
|
var anObject$9 = function (argument) {
|
|
778
|
-
if (isObject$
|
|
779
|
-
throw new $TypeError$
|
|
778
|
+
if (isObject$8(argument)) return argument;
|
|
779
|
+
throw new $TypeError$a($String$4(argument) + ' is not an object');
|
|
780
780
|
};
|
|
781
781
|
|
|
782
782
|
var objectDefineProperties = {};
|
|
783
783
|
|
|
784
|
-
var fails$
|
|
784
|
+
var fails$h = fails$l;
|
|
785
785
|
|
|
786
786
|
// Detect IE8's incomplete defineProperty implementation
|
|
787
|
-
var descriptors = !fails$
|
|
787
|
+
var descriptors = !fails$h(function () {
|
|
788
788
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
789
789
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
790
790
|
});
|
|
791
791
|
|
|
792
|
-
var DESCRIPTORS$
|
|
793
|
-
var fails$
|
|
792
|
+
var DESCRIPTORS$c = descriptors;
|
|
793
|
+
var fails$g = fails$l;
|
|
794
794
|
|
|
795
795
|
// V8 ~ Chrome 36-
|
|
796
796
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
797
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
797
|
+
var v8PrototypeDefineBug = DESCRIPTORS$c && fails$g(function () {
|
|
798
798
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
799
799
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
800
800
|
value: 42,
|
|
@@ -804,55 +804,55 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$e(function () {
|
|
|
804
804
|
|
|
805
805
|
var objectDefineProperty = {};
|
|
806
806
|
|
|
807
|
-
var global$
|
|
808
|
-
var isObject$
|
|
807
|
+
var global$d = global$j;
|
|
808
|
+
var isObject$7 = isObject$9;
|
|
809
809
|
|
|
810
|
-
var document$1 = global$
|
|
810
|
+
var document$1 = global$d.document;
|
|
811
811
|
// typeof document.createElement is 'object' in old IE
|
|
812
|
-
var EXISTS$1 = isObject$
|
|
812
|
+
var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
|
|
813
813
|
|
|
814
814
|
var documentCreateElement$2 = function (it) {
|
|
815
815
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
816
816
|
};
|
|
817
817
|
|
|
818
|
-
var DESCRIPTORS$
|
|
819
|
-
var fails$
|
|
818
|
+
var DESCRIPTORS$b = descriptors;
|
|
819
|
+
var fails$f = fails$l;
|
|
820
820
|
var createElement = documentCreateElement$2;
|
|
821
821
|
|
|
822
822
|
// Thanks to IE8 for its funny defineProperty
|
|
823
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
823
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$f(function () {
|
|
824
824
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
825
825
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
826
826
|
get: function () { return 7; }
|
|
827
827
|
}).a !== 7;
|
|
828
828
|
});
|
|
829
829
|
|
|
830
|
-
var NATIVE_BIND = functionBindNative;
|
|
830
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
831
831
|
|
|
832
|
-
var call$
|
|
832
|
+
var call$a = Function.prototype.call;
|
|
833
833
|
|
|
834
|
-
var functionCall = NATIVE_BIND ? call$
|
|
835
|
-
return call$
|
|
834
|
+
var functionCall = NATIVE_BIND$1 ? call$a.bind(call$a) : function () {
|
|
835
|
+
return call$a.apply(call$a, arguments);
|
|
836
836
|
};
|
|
837
837
|
|
|
838
|
-
var global$
|
|
839
|
-
var isCallable$
|
|
838
|
+
var global$c = global$j;
|
|
839
|
+
var isCallable$g = isCallable$i;
|
|
840
840
|
|
|
841
841
|
var aFunction = function (argument) {
|
|
842
|
-
return isCallable$
|
|
842
|
+
return isCallable$g(argument) ? argument : undefined;
|
|
843
843
|
};
|
|
844
844
|
|
|
845
|
-
var getBuiltIn$
|
|
846
|
-
return arguments.length < 2 ? aFunction(global$
|
|
845
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
846
|
+
return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
|
|
847
847
|
};
|
|
848
848
|
|
|
849
|
-
var uncurryThis$
|
|
849
|
+
var uncurryThis$e = functionUncurryThis;
|
|
850
850
|
|
|
851
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
851
|
+
var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
|
|
852
852
|
|
|
853
|
-
var getBuiltIn$
|
|
854
|
-
var isCallable$
|
|
855
|
-
var isPrototypeOf$
|
|
853
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
854
|
+
var isCallable$f = isCallable$i;
|
|
855
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
856
856
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
857
857
|
|
|
858
858
|
var $Object$2 = Object;
|
|
@@ -860,8 +860,8 @@ var $Object$2 = Object;
|
|
|
860
860
|
var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
861
861
|
return typeof it == 'symbol';
|
|
862
862
|
} : function (it) {
|
|
863
|
-
var $Symbol = getBuiltIn$
|
|
864
|
-
return isCallable$
|
|
863
|
+
var $Symbol = getBuiltIn$4('Symbol');
|
|
864
|
+
return isCallable$f($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
|
|
865
865
|
};
|
|
866
866
|
|
|
867
867
|
var $String$3 = String;
|
|
@@ -874,15 +874,15 @@ var tryToString$2 = function (argument) {
|
|
|
874
874
|
}
|
|
875
875
|
};
|
|
876
876
|
|
|
877
|
-
var isCallable$
|
|
877
|
+
var isCallable$e = isCallable$i;
|
|
878
878
|
var tryToString$1 = tryToString$2;
|
|
879
879
|
|
|
880
|
-
var $TypeError$
|
|
880
|
+
var $TypeError$9 = TypeError;
|
|
881
881
|
|
|
882
882
|
// `Assert: IsCallable(argument) is true`
|
|
883
883
|
var aCallable$3 = function (argument) {
|
|
884
|
-
if (isCallable$
|
|
885
|
-
throw new $TypeError$
|
|
884
|
+
if (isCallable$e(argument)) return argument;
|
|
885
|
+
throw new $TypeError$9(tryToString$1(argument) + ' is not a function');
|
|
886
886
|
};
|
|
887
887
|
|
|
888
888
|
var aCallable$2 = aCallable$3;
|
|
@@ -895,43 +895,43 @@ var getMethod$2 = function (V, P) {
|
|
|
895
895
|
return isNullOrUndefined$2(func) ? undefined : aCallable$2(func);
|
|
896
896
|
};
|
|
897
897
|
|
|
898
|
-
var call$
|
|
899
|
-
var isCallable$
|
|
900
|
-
var isObject$
|
|
898
|
+
var call$9 = functionCall;
|
|
899
|
+
var isCallable$d = isCallable$i;
|
|
900
|
+
var isObject$6 = isObject$9;
|
|
901
901
|
|
|
902
|
-
var $TypeError$
|
|
902
|
+
var $TypeError$8 = TypeError;
|
|
903
903
|
|
|
904
904
|
// `OrdinaryToPrimitive` abstract operation
|
|
905
905
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
906
906
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
907
907
|
var fn, val;
|
|
908
|
-
if (pref === 'string' && isCallable$
|
|
909
|
-
if (isCallable$
|
|
910
|
-
if (pref !== 'string' && isCallable$
|
|
911
|
-
throw new $TypeError$
|
|
908
|
+
if (pref === 'string' && isCallable$d(fn = input.toString) && !isObject$6(val = call$9(fn, input))) return val;
|
|
909
|
+
if (isCallable$d(fn = input.valueOf) && !isObject$6(val = call$9(fn, input))) return val;
|
|
910
|
+
if (pref !== 'string' && isCallable$d(fn = input.toString) && !isObject$6(val = call$9(fn, input))) return val;
|
|
911
|
+
throw new $TypeError$8("Can't convert object to primitive value");
|
|
912
912
|
};
|
|
913
913
|
|
|
914
|
-
var call$
|
|
915
|
-
var isObject$
|
|
914
|
+
var call$8 = functionCall;
|
|
915
|
+
var isObject$5 = isObject$9;
|
|
916
916
|
var isSymbol$1 = isSymbol$2;
|
|
917
917
|
var getMethod$1 = getMethod$2;
|
|
918
918
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
919
919
|
var wellKnownSymbol$9 = wellKnownSymbol$a;
|
|
920
920
|
|
|
921
|
-
var $TypeError$
|
|
921
|
+
var $TypeError$7 = TypeError;
|
|
922
922
|
var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
|
|
923
923
|
|
|
924
924
|
// `ToPrimitive` abstract operation
|
|
925
925
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
926
926
|
var toPrimitive$1 = function (input, pref) {
|
|
927
|
-
if (!isObject$
|
|
927
|
+
if (!isObject$5(input) || isSymbol$1(input)) return input;
|
|
928
928
|
var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
|
|
929
929
|
var result;
|
|
930
930
|
if (exoticToPrim) {
|
|
931
931
|
if (pref === undefined) pref = 'default';
|
|
932
|
-
result = call$
|
|
933
|
-
if (!isObject$
|
|
934
|
-
throw new $TypeError$
|
|
932
|
+
result = call$8(exoticToPrim, input, pref);
|
|
933
|
+
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
934
|
+
throw new $TypeError$7("Can't convert object to primitive value");
|
|
935
935
|
}
|
|
936
936
|
if (pref === undefined) pref = 'number';
|
|
937
937
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -947,13 +947,13 @@ var toPropertyKey$2 = function (argument) {
|
|
|
947
947
|
return isSymbol(key) ? key : key + '';
|
|
948
948
|
};
|
|
949
949
|
|
|
950
|
-
var DESCRIPTORS$
|
|
950
|
+
var DESCRIPTORS$a = descriptors;
|
|
951
951
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
952
952
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
953
953
|
var anObject$8 = anObject$9;
|
|
954
954
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
955
955
|
|
|
956
|
-
var $TypeError$
|
|
956
|
+
var $TypeError$6 = TypeError;
|
|
957
957
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
958
958
|
var $defineProperty = Object.defineProperty;
|
|
959
959
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -964,7 +964,7 @@ var WRITABLE = 'writable';
|
|
|
964
964
|
|
|
965
965
|
// `Object.defineProperty` method
|
|
966
966
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
967
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
967
|
+
objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
968
968
|
anObject$8(O);
|
|
969
969
|
P = toPropertyKey$1(P);
|
|
970
970
|
anObject$8(Attributes);
|
|
@@ -986,7 +986,7 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
986
986
|
if (IE8_DOM_DEFINE$1) try {
|
|
987
987
|
return $defineProperty(O, P, Attributes);
|
|
988
988
|
} catch (error) { /* empty */ }
|
|
989
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
989
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
|
|
990
990
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
991
991
|
return O;
|
|
992
992
|
};
|
|
@@ -1040,19 +1040,19 @@ var toLength$1 = toLength$2;
|
|
|
1040
1040
|
|
|
1041
1041
|
// `LengthOfArrayLike` abstract operation
|
|
1042
1042
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
1043
|
-
var lengthOfArrayLike$
|
|
1043
|
+
var lengthOfArrayLike$3 = function (obj) {
|
|
1044
1044
|
return toLength$1(obj.length);
|
|
1045
1045
|
};
|
|
1046
1046
|
|
|
1047
1047
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
1048
1048
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
1049
|
-
var lengthOfArrayLike$
|
|
1049
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$3;
|
|
1050
1050
|
|
|
1051
1051
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
1052
1052
|
var createMethod$3 = function (IS_INCLUDES) {
|
|
1053
1053
|
return function ($this, el, fromIndex) {
|
|
1054
1054
|
var O = toIndexedObject$4($this);
|
|
1055
|
-
var length = lengthOfArrayLike$
|
|
1055
|
+
var length = lengthOfArrayLike$2(O);
|
|
1056
1056
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
1057
1057
|
var value;
|
|
1058
1058
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -1079,22 +1079,22 @@ var arrayIncludes = {
|
|
|
1079
1079
|
|
|
1080
1080
|
var hiddenKeys$4 = {};
|
|
1081
1081
|
|
|
1082
|
-
var uncurryThis$
|
|
1083
|
-
var hasOwn$
|
|
1082
|
+
var uncurryThis$d = functionUncurryThis;
|
|
1083
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
1084
1084
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
1085
1085
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
1086
1086
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
1087
1087
|
|
|
1088
|
-
var push$1 = uncurryThis$
|
|
1088
|
+
var push$1 = uncurryThis$d([].push);
|
|
1089
1089
|
|
|
1090
1090
|
var objectKeysInternal = function (object, names) {
|
|
1091
1091
|
var O = toIndexedObject$3(object);
|
|
1092
1092
|
var i = 0;
|
|
1093
1093
|
var result = [];
|
|
1094
1094
|
var key;
|
|
1095
|
-
for (key in O) !hasOwn$
|
|
1095
|
+
for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$1(result, key);
|
|
1096
1096
|
// Don't enum bug & hidden keys
|
|
1097
|
-
while (names.length > i) if (hasOwn$
|
|
1097
|
+
while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
|
|
1098
1098
|
~indexOf$1(result, key) || push$1(result, key);
|
|
1099
1099
|
}
|
|
1100
1100
|
return result;
|
|
@@ -1121,7 +1121,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1121
1121
|
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
1122
1122
|
};
|
|
1123
1123
|
|
|
1124
|
-
var DESCRIPTORS$
|
|
1124
|
+
var DESCRIPTORS$9 = descriptors;
|
|
1125
1125
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1126
1126
|
var definePropertyModule$3 = objectDefineProperty;
|
|
1127
1127
|
var anObject$7 = anObject$9;
|
|
@@ -1131,7 +1131,7 @@ var objectKeys$1 = objectKeys$2;
|
|
|
1131
1131
|
// `Object.defineProperties` method
|
|
1132
1132
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1133
1133
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1134
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1134
|
+
objectDefineProperties.f = DESCRIPTORS$9 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1135
1135
|
anObject$7(O);
|
|
1136
1136
|
var props = toIndexedObject$2(Properties);
|
|
1137
1137
|
var keys = objectKeys$1(Properties);
|
|
@@ -1142,9 +1142,9 @@ objectDefineProperties.f = DESCRIPTORS$7 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1142
1142
|
return O;
|
|
1143
1143
|
};
|
|
1144
1144
|
|
|
1145
|
-
var getBuiltIn$
|
|
1145
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
1146
1146
|
|
|
1147
|
-
var html$1 = getBuiltIn$
|
|
1147
|
+
var html$1 = getBuiltIn$3('document', 'documentElement');
|
|
1148
1148
|
|
|
1149
1149
|
var shared$2 = shared$4.exports;
|
|
1150
1150
|
var uid = uid$2;
|
|
@@ -1241,7 +1241,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1241
1241
|
|
|
1242
1242
|
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
1243
1243
|
var create$2 = objectCreate;
|
|
1244
|
-
var defineProperty$
|
|
1244
|
+
var defineProperty$6 = objectDefineProperty.f;
|
|
1245
1245
|
|
|
1246
1246
|
var UNSCOPABLES = wellKnownSymbol$8('unscopables');
|
|
1247
1247
|
var ArrayPrototype = Array.prototype;
|
|
@@ -1249,7 +1249,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
1249
1249
|
// Array.prototype[@@unscopables]
|
|
1250
1250
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1251
1251
|
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
1252
|
-
defineProperty$
|
|
1252
|
+
defineProperty$6(ArrayPrototype, UNSCOPABLES, {
|
|
1253
1253
|
configurable: true,
|
|
1254
1254
|
value: create$2(null)
|
|
1255
1255
|
});
|
|
@@ -1262,14 +1262,14 @@ var addToUnscopables$1 = function (key) {
|
|
|
1262
1262
|
|
|
1263
1263
|
var iterators = {};
|
|
1264
1264
|
|
|
1265
|
-
var global$
|
|
1266
|
-
var isCallable$
|
|
1265
|
+
var global$b = global$j;
|
|
1266
|
+
var isCallable$c = isCallable$i;
|
|
1267
1267
|
|
|
1268
|
-
var WeakMap$1 = global$
|
|
1268
|
+
var WeakMap$1 = global$b.WeakMap;
|
|
1269
1269
|
|
|
1270
|
-
var weakMapBasicDetection = isCallable$
|
|
1270
|
+
var weakMapBasicDetection = isCallable$c(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
1271
1271
|
|
|
1272
|
-
var createPropertyDescriptor$
|
|
1272
|
+
var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
1273
1273
|
return {
|
|
1274
1274
|
enumerable: !(bitmap & 1),
|
|
1275
1275
|
configurable: !(bitmap & 2),
|
|
@@ -1278,29 +1278,29 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
1278
1278
|
};
|
|
1279
1279
|
};
|
|
1280
1280
|
|
|
1281
|
-
var DESCRIPTORS$
|
|
1281
|
+
var DESCRIPTORS$8 = descriptors;
|
|
1282
1282
|
var definePropertyModule$2 = objectDefineProperty;
|
|
1283
|
-
var createPropertyDescriptor$
|
|
1283
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$4;
|
|
1284
1284
|
|
|
1285
|
-
var createNonEnumerableProperty$
|
|
1286
|
-
return definePropertyModule$2.f(object, key, createPropertyDescriptor$
|
|
1285
|
+
var createNonEnumerableProperty$8 = DESCRIPTORS$8 ? function (object, key, value) {
|
|
1286
|
+
return definePropertyModule$2.f(object, key, createPropertyDescriptor$3(1, value));
|
|
1287
1287
|
} : function (object, key, value) {
|
|
1288
1288
|
object[key] = value;
|
|
1289
1289
|
return object;
|
|
1290
1290
|
};
|
|
1291
1291
|
|
|
1292
1292
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
1293
|
-
var global$
|
|
1294
|
-
var isObject$
|
|
1295
|
-
var createNonEnumerableProperty$
|
|
1296
|
-
var hasOwn$
|
|
1293
|
+
var global$a = global$j;
|
|
1294
|
+
var isObject$4 = isObject$9;
|
|
1295
|
+
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
1296
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
1297
1297
|
var shared$1 = sharedStore;
|
|
1298
1298
|
var sharedKey$1 = sharedKey$3;
|
|
1299
1299
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
1300
1300
|
|
|
1301
1301
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
1302
|
-
var TypeError$1 = global$
|
|
1303
|
-
var WeakMap = global$
|
|
1302
|
+
var TypeError$1 = global$a.TypeError;
|
|
1303
|
+
var WeakMap = global$a.WeakMap;
|
|
1304
1304
|
var set, get, has;
|
|
1305
1305
|
|
|
1306
1306
|
var enforce = function (it) {
|
|
@@ -1310,7 +1310,7 @@ var enforce = function (it) {
|
|
|
1310
1310
|
var getterFor = function (TYPE) {
|
|
1311
1311
|
return function (it) {
|
|
1312
1312
|
var state;
|
|
1313
|
-
if (!isObject$
|
|
1313
|
+
if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
|
|
1314
1314
|
throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
1315
1315
|
} return state;
|
|
1316
1316
|
};
|
|
@@ -1339,16 +1339,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
1339
1339
|
var STATE = sharedKey$1('state');
|
|
1340
1340
|
hiddenKeys$1[STATE] = true;
|
|
1341
1341
|
set = function (it, metadata) {
|
|
1342
|
-
if (hasOwn$
|
|
1342
|
+
if (hasOwn$8(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
1343
1343
|
metadata.facade = it;
|
|
1344
|
-
createNonEnumerableProperty$
|
|
1344
|
+
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
1345
1345
|
return metadata;
|
|
1346
1346
|
};
|
|
1347
1347
|
get = function (it) {
|
|
1348
|
-
return hasOwn$
|
|
1348
|
+
return hasOwn$8(it, STATE) ? it[STATE] : {};
|
|
1349
1349
|
};
|
|
1350
1350
|
has = function (it) {
|
|
1351
|
-
return hasOwn$
|
|
1351
|
+
return hasOwn$8(it, STATE);
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
@@ -1366,25 +1366,25 @@ var objectPropertyIsEnumerable = {};
|
|
|
1366
1366
|
|
|
1367
1367
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
1368
1368
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1369
|
-
var getOwnPropertyDescriptor$
|
|
1369
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
1370
1370
|
|
|
1371
1371
|
// Nashorn ~ JDK8 bug
|
|
1372
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
1372
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
1373
1373
|
|
|
1374
1374
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
1375
1375
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
1376
1376
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
1377
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
1377
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
1378
1378
|
return !!descriptor && descriptor.enumerable;
|
|
1379
1379
|
} : $propertyIsEnumerable;
|
|
1380
1380
|
|
|
1381
|
-
var DESCRIPTORS$
|
|
1382
|
-
var call$
|
|
1381
|
+
var DESCRIPTORS$7 = descriptors;
|
|
1382
|
+
var call$7 = functionCall;
|
|
1383
1383
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
1384
|
-
var createPropertyDescriptor$
|
|
1384
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$4;
|
|
1385
1385
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1386
1386
|
var toPropertyKey = toPropertyKey$2;
|
|
1387
|
-
var hasOwn$
|
|
1387
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
1388
1388
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
1389
1389
|
|
|
1390
1390
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -1392,28 +1392,28 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
1392
1392
|
|
|
1393
1393
|
// `Object.getOwnPropertyDescriptor` method
|
|
1394
1394
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1395
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
1395
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
1396
1396
|
O = toIndexedObject$1(O);
|
|
1397
1397
|
P = toPropertyKey(P);
|
|
1398
1398
|
if (IE8_DOM_DEFINE) try {
|
|
1399
1399
|
return $getOwnPropertyDescriptor(O, P);
|
|
1400
1400
|
} catch (error) { /* empty */ }
|
|
1401
|
-
if (hasOwn$
|
|
1401
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$7(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
1402
1402
|
};
|
|
1403
1403
|
|
|
1404
1404
|
var makeBuiltIn$3 = {exports: {}};
|
|
1405
1405
|
|
|
1406
|
-
var DESCRIPTORS$
|
|
1407
|
-
var hasOwn$
|
|
1406
|
+
var DESCRIPTORS$6 = descriptors;
|
|
1407
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
1408
1408
|
|
|
1409
|
-
var FunctionPrototype = Function.prototype;
|
|
1409
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
1410
1410
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1411
|
-
var getDescriptor = DESCRIPTORS$
|
|
1411
|
+
var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
|
|
1412
1412
|
|
|
1413
|
-
var EXISTS = hasOwn$
|
|
1413
|
+
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
1414
1414
|
// additional protection from minified / mangled / dropped function names
|
|
1415
1415
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
1416
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
1416
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
1417
1417
|
|
|
1418
1418
|
var functionName = {
|
|
1419
1419
|
EXISTS: EXISTS,
|
|
@@ -1421,14 +1421,14 @@ var functionName = {
|
|
|
1421
1421
|
CONFIGURABLE: CONFIGURABLE
|
|
1422
1422
|
};
|
|
1423
1423
|
|
|
1424
|
-
var uncurryThis$
|
|
1425
|
-
var isCallable$
|
|
1424
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1425
|
+
var isCallable$b = isCallable$i;
|
|
1426
1426
|
var store = sharedStore;
|
|
1427
1427
|
|
|
1428
|
-
var functionToString = uncurryThis$
|
|
1428
|
+
var functionToString = uncurryThis$c(Function.toString);
|
|
1429
1429
|
|
|
1430
1430
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1431
|
-
if (!isCallable$
|
|
1431
|
+
if (!isCallable$b(store.inspectSource)) {
|
|
1432
1432
|
store.inspectSource = function (it) {
|
|
1433
1433
|
return functionToString(it);
|
|
1434
1434
|
};
|
|
@@ -1436,11 +1436,11 @@ if (!isCallable$a(store.inspectSource)) {
|
|
|
1436
1436
|
|
|
1437
1437
|
var inspectSource$2 = store.inspectSource;
|
|
1438
1438
|
|
|
1439
|
-
var uncurryThis$
|
|
1440
|
-
var fails$
|
|
1441
|
-
var isCallable$
|
|
1442
|
-
var hasOwn$
|
|
1443
|
-
var DESCRIPTORS$
|
|
1439
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1440
|
+
var fails$e = fails$l;
|
|
1441
|
+
var isCallable$a = isCallable$i;
|
|
1442
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
1443
|
+
var DESCRIPTORS$5 = descriptors;
|
|
1444
1444
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
1445
1445
|
var inspectSource$1 = inspectSource$2;
|
|
1446
1446
|
var InternalStateModule$1 = internalState;
|
|
@@ -1449,38 +1449,38 @@ var enforceInternalState = InternalStateModule$1.enforce;
|
|
|
1449
1449
|
var getInternalState$2 = InternalStateModule$1.get;
|
|
1450
1450
|
var $String$2 = String;
|
|
1451
1451
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1452
|
-
var defineProperty$
|
|
1453
|
-
var stringSlice$4 = uncurryThis$
|
|
1454
|
-
var replace$
|
|
1455
|
-
var join = uncurryThis$
|
|
1452
|
+
var defineProperty$5 = Object.defineProperty;
|
|
1453
|
+
var stringSlice$4 = uncurryThis$b(''.slice);
|
|
1454
|
+
var replace$4 = uncurryThis$b(''.replace);
|
|
1455
|
+
var join = uncurryThis$b([].join);
|
|
1456
1456
|
|
|
1457
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
1458
|
-
return defineProperty$
|
|
1457
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$e(function () {
|
|
1458
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
1459
1459
|
});
|
|
1460
1460
|
|
|
1461
1461
|
var TEMPLATE = String(String).split('String');
|
|
1462
1462
|
|
|
1463
1463
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
1464
1464
|
if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
|
|
1465
|
-
name = '[' + replace$
|
|
1465
|
+
name = '[' + replace$4($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
1466
1466
|
}
|
|
1467
1467
|
if (options && options.getter) name = 'get ' + name;
|
|
1468
1468
|
if (options && options.setter) name = 'set ' + name;
|
|
1469
|
-
if (!hasOwn$
|
|
1470
|
-
if (DESCRIPTORS$
|
|
1469
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
1470
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
1471
1471
|
else value.name = name;
|
|
1472
1472
|
}
|
|
1473
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
1474
|
-
defineProperty$
|
|
1473
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
1474
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
|
1475
1475
|
}
|
|
1476
1476
|
try {
|
|
1477
|
-
if (options && hasOwn$
|
|
1478
|
-
if (DESCRIPTORS$
|
|
1477
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
1478
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
|
|
1479
1479
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
1480
1480
|
} else if (value.prototype) value.prototype = undefined;
|
|
1481
1481
|
} catch (error) { /* empty */ }
|
|
1482
1482
|
var state = enforceInternalState(value);
|
|
1483
|
-
if (!hasOwn$
|
|
1483
|
+
if (!hasOwn$5(state, 'source')) {
|
|
1484
1484
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
1485
1485
|
} return value;
|
|
1486
1486
|
};
|
|
@@ -1488,10 +1488,10 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
1488
1488
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1489
1489
|
// eslint-disable-next-line no-extend-native -- required
|
|
1490
1490
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
1491
|
-
return isCallable$
|
|
1491
|
+
return isCallable$a(this) && getInternalState$2(this).source || inspectSource$1(this);
|
|
1492
1492
|
}, 'toString');
|
|
1493
1493
|
|
|
1494
|
-
var isCallable$
|
|
1494
|
+
var isCallable$9 = isCallable$i;
|
|
1495
1495
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1496
1496
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
1497
1497
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
@@ -1500,7 +1500,7 @@ var defineBuiltIn$4 = function (O, key, value, options) {
|
|
|
1500
1500
|
if (!options) options = {};
|
|
1501
1501
|
var simple = options.enumerable;
|
|
1502
1502
|
var name = options.name !== undefined ? options.name : key;
|
|
1503
|
-
if (isCallable$
|
|
1503
|
+
if (isCallable$9(value)) makeBuiltIn$1(value, name, options);
|
|
1504
1504
|
if (options.global) {
|
|
1505
1505
|
if (simple) O[key] = value;
|
|
1506
1506
|
else defineGlobalProperty$1(key, value);
|
|
@@ -1538,40 +1538,40 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1538
1538
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
1539
1539
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1540
1540
|
|
|
1541
|
-
var getBuiltIn$
|
|
1542
|
-
var uncurryThis$
|
|
1541
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
1542
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1543
1543
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1544
1544
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1545
1545
|
var anObject$5 = anObject$9;
|
|
1546
1546
|
|
|
1547
|
-
var concat$1 = uncurryThis$
|
|
1547
|
+
var concat$1 = uncurryThis$a([].concat);
|
|
1548
1548
|
|
|
1549
1549
|
// all object keys, includes non-enumerable and symbols
|
|
1550
|
-
var ownKeys$1 = getBuiltIn$
|
|
1550
|
+
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1551
1551
|
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
1552
1552
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1553
1553
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
1554
1554
|
};
|
|
1555
1555
|
|
|
1556
|
-
var hasOwn$
|
|
1556
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1557
1557
|
var ownKeys = ownKeys$1;
|
|
1558
1558
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1559
1559
|
var definePropertyModule = objectDefineProperty;
|
|
1560
1560
|
|
|
1561
|
-
var copyConstructorProperties$
|
|
1561
|
+
var copyConstructorProperties$3 = function (target, source, exceptions) {
|
|
1562
1562
|
var keys = ownKeys(source);
|
|
1563
1563
|
var defineProperty = definePropertyModule.f;
|
|
1564
1564
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1565
1565
|
for (var i = 0; i < keys.length; i++) {
|
|
1566
1566
|
var key = keys[i];
|
|
1567
|
-
if (!hasOwn$
|
|
1567
|
+
if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
|
|
1568
1568
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
1571
|
};
|
|
1572
1572
|
|
|
1573
|
-
var fails$
|
|
1574
|
-
var isCallable$
|
|
1573
|
+
var fails$d = fails$l;
|
|
1574
|
+
var isCallable$8 = isCallable$i;
|
|
1575
1575
|
|
|
1576
1576
|
var replacement = /#|\.prototype\./;
|
|
1577
1577
|
|
|
@@ -1579,7 +1579,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
1579
1579
|
var value = data[normalize(feature)];
|
|
1580
1580
|
return value === POLYFILL ? true
|
|
1581
1581
|
: value === NATIVE ? false
|
|
1582
|
-
: isCallable$
|
|
1582
|
+
: isCallable$8(detection) ? fails$d(detection)
|
|
1583
1583
|
: !!detection;
|
|
1584
1584
|
};
|
|
1585
1585
|
|
|
@@ -1593,12 +1593,12 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
1593
1593
|
|
|
1594
1594
|
var isForced_1 = isForced$1;
|
|
1595
1595
|
|
|
1596
|
-
var global$
|
|
1597
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1598
|
-
var createNonEnumerableProperty$
|
|
1596
|
+
var global$9 = global$j;
|
|
1597
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1598
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
1599
1599
|
var defineBuiltIn$3 = defineBuiltIn$4;
|
|
1600
1600
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1601
|
-
var copyConstructorProperties$
|
|
1601
|
+
var copyConstructorProperties$2 = copyConstructorProperties$3;
|
|
1602
1602
|
var isForced = isForced_1;
|
|
1603
1603
|
|
|
1604
1604
|
/*
|
|
@@ -1622,44 +1622,44 @@ var _export = function (options, source) {
|
|
|
1622
1622
|
var STATIC = options.stat;
|
|
1623
1623
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1624
1624
|
if (GLOBAL) {
|
|
1625
|
-
target = global$
|
|
1625
|
+
target = global$9;
|
|
1626
1626
|
} else if (STATIC) {
|
|
1627
|
-
target = global$
|
|
1627
|
+
target = global$9[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1628
1628
|
} else {
|
|
1629
|
-
target = global$
|
|
1629
|
+
target = global$9[TARGET] && global$9[TARGET].prototype;
|
|
1630
1630
|
}
|
|
1631
1631
|
if (target) for (key in source) {
|
|
1632
1632
|
sourceProperty = source[key];
|
|
1633
1633
|
if (options.dontCallGetSet) {
|
|
1634
|
-
descriptor = getOwnPropertyDescriptor(target, key);
|
|
1634
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
1635
1635
|
targetProperty = descriptor && descriptor.value;
|
|
1636
1636
|
} else targetProperty = target[key];
|
|
1637
1637
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1638
1638
|
// contained in target
|
|
1639
1639
|
if (!FORCED && targetProperty !== undefined) {
|
|
1640
1640
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1641
|
-
copyConstructorProperties$
|
|
1641
|
+
copyConstructorProperties$2(sourceProperty, targetProperty);
|
|
1642
1642
|
}
|
|
1643
1643
|
// add a flag to not completely full polyfills
|
|
1644
1644
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1645
|
-
createNonEnumerableProperty$
|
|
1645
|
+
createNonEnumerableProperty$6(sourceProperty, 'sham', true);
|
|
1646
1646
|
}
|
|
1647
1647
|
defineBuiltIn$3(target, key, sourceProperty, options);
|
|
1648
1648
|
}
|
|
1649
1649
|
};
|
|
1650
1650
|
|
|
1651
|
-
var fails$
|
|
1651
|
+
var fails$c = fails$l;
|
|
1652
1652
|
|
|
1653
|
-
var correctPrototypeGetter = !fails$
|
|
1653
|
+
var correctPrototypeGetter = !fails$c(function () {
|
|
1654
1654
|
function F() { /* empty */ }
|
|
1655
1655
|
F.prototype.constructor = null;
|
|
1656
1656
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1657
1657
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1658
1658
|
});
|
|
1659
1659
|
|
|
1660
|
-
var hasOwn$
|
|
1661
|
-
var isCallable$
|
|
1662
|
-
var toObject$
|
|
1660
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1661
|
+
var isCallable$7 = isCallable$i;
|
|
1662
|
+
var toObject$3 = toObject$5;
|
|
1663
1663
|
var sharedKey = sharedKey$3;
|
|
1664
1664
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1665
1665
|
|
|
@@ -1671,17 +1671,17 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1671
1671
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1672
1672
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1673
1673
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1674
|
-
var object = toObject$
|
|
1675
|
-
if (hasOwn$
|
|
1674
|
+
var object = toObject$3(O);
|
|
1675
|
+
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
1676
1676
|
var constructor = object.constructor;
|
|
1677
|
-
if (isCallable$
|
|
1677
|
+
if (isCallable$7(constructor) && object instanceof constructor) {
|
|
1678
1678
|
return constructor.prototype;
|
|
1679
1679
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1680
1680
|
};
|
|
1681
1681
|
|
|
1682
|
-
var fails$
|
|
1683
|
-
var isCallable$
|
|
1684
|
-
var isObject$
|
|
1682
|
+
var fails$b = fails$l;
|
|
1683
|
+
var isCallable$6 = isCallable$i;
|
|
1684
|
+
var isObject$3 = isObject$9;
|
|
1685
1685
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1686
1686
|
var defineBuiltIn$2 = defineBuiltIn$4;
|
|
1687
1687
|
var wellKnownSymbol$7 = wellKnownSymbol$a;
|
|
@@ -1704,7 +1704,7 @@ if ([].keys) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1707
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$b(function () {
|
|
1708
1708
|
var test = {};
|
|
1709
1709
|
// FF44- legacy iterators case
|
|
1710
1710
|
return IteratorPrototype$2[ITERATOR$3].call(test) !== test;
|
|
@@ -1714,7 +1714,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1714
1714
|
|
|
1715
1715
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1716
1716
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1717
|
-
if (!isCallable$
|
|
1717
|
+
if (!isCallable$6(IteratorPrototype$2[ITERATOR$3])) {
|
|
1718
1718
|
defineBuiltIn$2(IteratorPrototype$2, ITERATOR$3, function () {
|
|
1719
1719
|
return this;
|
|
1720
1720
|
});
|
|
@@ -1725,22 +1725,22 @@ var iteratorsCore = {
|
|
|
1725
1725
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1726
1726
|
};
|
|
1727
1727
|
|
|
1728
|
-
var defineProperty$
|
|
1729
|
-
var hasOwn$
|
|
1728
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
1729
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1730
1730
|
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
1731
1731
|
|
|
1732
1732
|
var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
|
|
1733
1733
|
|
|
1734
1734
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1735
1735
|
if (target && !STATIC) target = target.prototype;
|
|
1736
|
-
if (target && !hasOwn$
|
|
1737
|
-
defineProperty$
|
|
1736
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG$2)) {
|
|
1737
|
+
defineProperty$4(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1738
1738
|
}
|
|
1739
1739
|
};
|
|
1740
1740
|
|
|
1741
1741
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1742
1742
|
var create$1 = objectCreate;
|
|
1743
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
1743
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
1744
1744
|
var setToStringTag$2 = setToStringTag$3;
|
|
1745
1745
|
var Iterators$2 = iterators;
|
|
1746
1746
|
|
|
@@ -1748,36 +1748,36 @@ var returnThis$1 = function () { return this; };
|
|
|
1748
1748
|
|
|
1749
1749
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1750
1750
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1751
|
-
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1751
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
|
|
1752
1752
|
setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
|
|
1753
1753
|
Iterators$2[TO_STRING_TAG] = returnThis$1;
|
|
1754
1754
|
return IteratorConstructor;
|
|
1755
1755
|
};
|
|
1756
1756
|
|
|
1757
|
-
var uncurryThis$
|
|
1757
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1758
1758
|
var aCallable$1 = aCallable$3;
|
|
1759
1759
|
|
|
1760
1760
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1761
1761
|
try {
|
|
1762
1762
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1763
|
-
return uncurryThis$
|
|
1763
|
+
return uncurryThis$9(aCallable$1(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1764
1764
|
} catch (error) { /* empty */ }
|
|
1765
1765
|
};
|
|
1766
1766
|
|
|
1767
|
-
var isObject = isObject$
|
|
1767
|
+
var isObject$2 = isObject$9;
|
|
1768
1768
|
|
|
1769
1769
|
var isPossiblePrototype$1 = function (argument) {
|
|
1770
|
-
return isObject(argument) || argument === null;
|
|
1770
|
+
return isObject$2(argument) || argument === null;
|
|
1771
1771
|
};
|
|
1772
1772
|
|
|
1773
1773
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1774
1774
|
|
|
1775
1775
|
var $String$1 = String;
|
|
1776
|
-
var $TypeError$
|
|
1776
|
+
var $TypeError$5 = TypeError;
|
|
1777
1777
|
|
|
1778
1778
|
var aPossiblePrototype$1 = function (argument) {
|
|
1779
1779
|
if (isPossiblePrototype(argument)) return argument;
|
|
1780
|
-
throw new $TypeError$
|
|
1780
|
+
throw new $TypeError$5("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1781
1781
|
};
|
|
1782
1782
|
|
|
1783
1783
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1807,15 +1807,15 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1807
1807
|
};
|
|
1808
1808
|
}() : undefined);
|
|
1809
1809
|
|
|
1810
|
-
var $$
|
|
1811
|
-
var call$
|
|
1810
|
+
var $$7 = _export;
|
|
1811
|
+
var call$6 = functionCall;
|
|
1812
1812
|
var FunctionName = functionName;
|
|
1813
|
-
var isCallable$
|
|
1813
|
+
var isCallable$5 = isCallable$i;
|
|
1814
1814
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1815
1815
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1816
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
1816
|
+
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
1817
1817
|
var setToStringTag$1 = setToStringTag$3;
|
|
1818
|
-
var createNonEnumerableProperty$
|
|
1818
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1819
1819
|
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
1820
1820
|
var wellKnownSymbol$5 = wellKnownSymbol$a;
|
|
1821
1821
|
var Iterators$1 = iterators;
|
|
@@ -1863,9 +1863,9 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1863
1863
|
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1864
1864
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1865
1865
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1866
|
-
if (setPrototypeOf) {
|
|
1867
|
-
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1868
|
-
} else if (!isCallable$
|
|
1866
|
+
if (setPrototypeOf$2) {
|
|
1867
|
+
setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype);
|
|
1868
|
+
} else if (!isCallable$5(CurrentIteratorPrototype[ITERATOR$2])) {
|
|
1869
1869
|
defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$2, returnThis);
|
|
1870
1870
|
}
|
|
1871
1871
|
}
|
|
@@ -1877,10 +1877,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1877
1877
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1878
1878
|
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1879
1879
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1880
|
-
createNonEnumerableProperty$
|
|
1880
|
+
createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
|
|
1881
1881
|
} else {
|
|
1882
1882
|
INCORRECT_VALUES_NAME = true;
|
|
1883
|
-
defaultIterator = function values() { return call$
|
|
1883
|
+
defaultIterator = function values() { return call$6(nativeIterator, this); };
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
1886
|
|
|
@@ -1895,7 +1895,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1895
1895
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1896
1896
|
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1897
1897
|
}
|
|
1898
|
-
} else $$
|
|
1898
|
+
} else $$7({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1899
1899
|
}
|
|
1900
1900
|
|
|
1901
1901
|
// define iterator
|
|
@@ -1917,10 +1917,10 @@ var toIndexedObject = toIndexedObject$5;
|
|
|
1917
1917
|
var addToUnscopables = addToUnscopables$1;
|
|
1918
1918
|
var Iterators = iterators;
|
|
1919
1919
|
var InternalStateModule = internalState;
|
|
1920
|
-
var defineProperty$
|
|
1920
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1921
1921
|
var defineIterator = iteratorDefine;
|
|
1922
1922
|
var createIterResultObject = createIterResultObject$1;
|
|
1923
|
-
var DESCRIPTORS$
|
|
1923
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1924
1924
|
|
|
1925
1925
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1926
1926
|
var setInternalState = InternalStateModule.set;
|
|
@@ -1970,34 +1970,34 @@ addToUnscopables('values');
|
|
|
1970
1970
|
addToUnscopables('entries');
|
|
1971
1971
|
|
|
1972
1972
|
// V8 ~ Chrome 45- bug
|
|
1973
|
-
if (DESCRIPTORS$
|
|
1974
|
-
defineProperty$
|
|
1973
|
+
if (DESCRIPTORS$4 && values.name !== 'values') try {
|
|
1974
|
+
defineProperty$3(values, 'name', { value: 'values' });
|
|
1975
1975
|
} catch (error) { /* empty */ }
|
|
1976
1976
|
|
|
1977
|
-
var DESCRIPTORS$
|
|
1978
|
-
var uncurryThis$
|
|
1979
|
-
var call$
|
|
1980
|
-
var fails$
|
|
1977
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1978
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1979
|
+
var call$5 = functionCall;
|
|
1980
|
+
var fails$a = fails$l;
|
|
1981
1981
|
var objectKeys = objectKeys$2;
|
|
1982
1982
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1983
1983
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1984
|
-
var toObject$
|
|
1984
|
+
var toObject$2 = toObject$5;
|
|
1985
1985
|
var IndexedObject$1 = indexedObject;
|
|
1986
1986
|
|
|
1987
1987
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1988
1988
|
var $assign = Object.assign;
|
|
1989
1989
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1990
|
-
var defineProperty$
|
|
1991
|
-
var concat = uncurryThis$
|
|
1990
|
+
var defineProperty$2 = Object.defineProperty;
|
|
1991
|
+
var concat = uncurryThis$8([].concat);
|
|
1992
1992
|
|
|
1993
1993
|
// `Object.assign` method
|
|
1994
1994
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1995
|
-
var objectAssign = !$assign || fails$
|
|
1995
|
+
var objectAssign = !$assign || fails$a(function () {
|
|
1996
1996
|
// should have correct order of operations (Edge bug)
|
|
1997
|
-
if (DESCRIPTORS$
|
|
1997
|
+
if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
1998
1998
|
enumerable: true,
|
|
1999
1999
|
get: function () {
|
|
2000
|
-
defineProperty$
|
|
2000
|
+
defineProperty$2(this, 'b', {
|
|
2001
2001
|
value: 3,
|
|
2002
2002
|
enumerable: false
|
|
2003
2003
|
});
|
|
@@ -2013,7 +2013,7 @@ var objectAssign = !$assign || fails$8(function () {
|
|
|
2013
2013
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
2014
2014
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
2015
2015
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
2016
|
-
var T = toObject$
|
|
2016
|
+
var T = toObject$2(target);
|
|
2017
2017
|
var argumentsLength = arguments.length;
|
|
2018
2018
|
var index = 1;
|
|
2019
2019
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -2026,18 +2026,18 @@ var objectAssign = !$assign || fails$8(function () {
|
|
|
2026
2026
|
var key;
|
|
2027
2027
|
while (length > j) {
|
|
2028
2028
|
key = keys[j++];
|
|
2029
|
-
if (!DESCRIPTORS$
|
|
2029
|
+
if (!DESCRIPTORS$3 || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
2030
2030
|
}
|
|
2031
2031
|
} return T;
|
|
2032
2032
|
} : $assign;
|
|
2033
2033
|
|
|
2034
|
-
var $$
|
|
2034
|
+
var $$6 = _export;
|
|
2035
2035
|
var assign = objectAssign;
|
|
2036
2036
|
|
|
2037
2037
|
// `Object.assign` method
|
|
2038
2038
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2039
2039
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
2040
|
-
$$
|
|
2040
|
+
$$6({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
2041
2041
|
assign: assign
|
|
2042
2042
|
});
|
|
2043
2043
|
|
|
@@ -2085,11 +2085,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
2085
2085
|
|
|
2086
2086
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
2087
2087
|
|
|
2088
|
-
var global$
|
|
2088
|
+
var global$8 = global$j;
|
|
2089
2089
|
var DOMIterables = domIterables;
|
|
2090
2090
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
2091
2091
|
var ArrayIteratorMethods = es_array_iterator;
|
|
2092
|
-
var createNonEnumerableProperty$
|
|
2092
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
2093
2093
|
var setToStringTag = setToStringTag$3;
|
|
2094
2094
|
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
2095
2095
|
|
|
@@ -2100,7 +2100,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
2100
2100
|
if (CollectionPrototype) {
|
|
2101
2101
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2102
2102
|
if (CollectionPrototype[ITERATOR$1] !== ArrayValues) try {
|
|
2103
|
-
createNonEnumerableProperty$
|
|
2103
|
+
createNonEnumerableProperty$4(CollectionPrototype, ITERATOR$1, ArrayValues);
|
|
2104
2104
|
} catch (error) {
|
|
2105
2105
|
CollectionPrototype[ITERATOR$1] = ArrayValues;
|
|
2106
2106
|
}
|
|
@@ -2108,7 +2108,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
2108
2108
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
2109
2109
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2110
2110
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
2111
|
-
createNonEnumerableProperty$
|
|
2111
|
+
createNonEnumerableProperty$4(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
2112
2112
|
} catch (error) {
|
|
2113
2113
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
2114
2114
|
}
|
|
@@ -2117,11 +2117,97 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
2117
2117
|
};
|
|
2118
2118
|
|
|
2119
2119
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
2120
|
-
handlePrototype(global$
|
|
2120
|
+
handlePrototype(global$8[COLLECTION_NAME] && global$8[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
2121
2121
|
}
|
|
2122
2122
|
|
|
2123
2123
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
2124
2124
|
|
|
2125
|
+
var classof$5 = classofRaw$1;
|
|
2126
|
+
|
|
2127
|
+
// `IsArray` abstract operation
|
|
2128
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
2129
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2130
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
2131
|
+
return classof$5(argument) === 'Array';
|
|
2132
|
+
};
|
|
2133
|
+
|
|
2134
|
+
var DESCRIPTORS$2 = descriptors;
|
|
2135
|
+
var isArray = isArray$1;
|
|
2136
|
+
|
|
2137
|
+
var $TypeError$4 = TypeError;
|
|
2138
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2139
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2140
|
+
|
|
2141
|
+
// Safari < 13 does not throw an error in this case
|
|
2142
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$2 && !function () {
|
|
2143
|
+
// makes no sense without proper strict mode support
|
|
2144
|
+
if (this !== undefined) return true;
|
|
2145
|
+
try {
|
|
2146
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2147
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
2148
|
+
} catch (error) {
|
|
2149
|
+
return error instanceof TypeError;
|
|
2150
|
+
}
|
|
2151
|
+
}();
|
|
2152
|
+
|
|
2153
|
+
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2154
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
2155
|
+
throw new $TypeError$4('Cannot set read only .length');
|
|
2156
|
+
} return O.length = length;
|
|
2157
|
+
} : function (O, length) {
|
|
2158
|
+
return O.length = length;
|
|
2159
|
+
};
|
|
2160
|
+
|
|
2161
|
+
var $TypeError$3 = TypeError;
|
|
2162
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2163
|
+
|
|
2164
|
+
var doesNotExceedSafeInteger$1 = function (it) {
|
|
2165
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$3('Maximum allowed index exceeded');
|
|
2166
|
+
return it;
|
|
2167
|
+
};
|
|
2168
|
+
|
|
2169
|
+
var $$5 = _export;
|
|
2170
|
+
var toObject$1 = toObject$5;
|
|
2171
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$3;
|
|
2172
|
+
var setArrayLength = arraySetLength;
|
|
2173
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2174
|
+
var fails$9 = fails$l;
|
|
2175
|
+
|
|
2176
|
+
var INCORRECT_TO_LENGTH = fails$9(function () {
|
|
2177
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
2178
|
+
});
|
|
2179
|
+
|
|
2180
|
+
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
2181
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
2182
|
+
var properErrorOnNonWritableLength = function () {
|
|
2183
|
+
try {
|
|
2184
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2185
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
|
2186
|
+
} catch (error) {
|
|
2187
|
+
return error instanceof TypeError;
|
|
2188
|
+
}
|
|
2189
|
+
};
|
|
2190
|
+
|
|
2191
|
+
var FORCED$3 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
2192
|
+
|
|
2193
|
+
// `Array.prototype.push` method
|
|
2194
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
2195
|
+
$$5({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
|
|
2196
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2197
|
+
push: function push(item) {
|
|
2198
|
+
var O = toObject$1(this);
|
|
2199
|
+
var len = lengthOfArrayLike$1(O);
|
|
2200
|
+
var argCount = arguments.length;
|
|
2201
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
2202
|
+
for (var i = 0; i < argCount; i++) {
|
|
2203
|
+
O[len] = arguments[i];
|
|
2204
|
+
len++;
|
|
2205
|
+
}
|
|
2206
|
+
setArrayLength(O, len);
|
|
2207
|
+
return len;
|
|
2208
|
+
}
|
|
2209
|
+
});
|
|
2210
|
+
|
|
2125
2211
|
/* *
|
|
2126
2212
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2127
2213
|
* you may not use this file except in compliance with the License.
|
|
@@ -2141,22 +2227,6 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
|
2141
2227
|
const DATE_FORMAT_HEADER = 'EEEE, MMMM dd';
|
|
2142
2228
|
const DATE_FORMAT_LASTUPDATEDTIME = 'HH:mm';
|
|
2143
2229
|
|
|
2144
|
-
/* *
|
|
2145
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2146
|
-
* you may not use this file except in compliance with the License.
|
|
2147
|
-
* You may obtain a copy of the License at
|
|
2148
|
-
*
|
|
2149
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2150
|
-
*
|
|
2151
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2152
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2153
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2154
|
-
* See the License for the specific language governing permissions and
|
|
2155
|
-
* limitations under the License.
|
|
2156
|
-
*
|
|
2157
|
-
* Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
2158
|
-
* Copyright 2023 - Finnish Meteorological Institute (FMI)
|
|
2159
|
-
* */
|
|
2160
2230
|
const DEFAULT_ADD_BUTTON_HEIGHT = 80;
|
|
2161
2231
|
const OBJECT_ITEM_SIZE = 50;
|
|
2162
2232
|
const OBJECT_ITEM_SIZE_SMALL_WIDTH = 72;
|
|
@@ -3068,125 +3138,393 @@ const ObjectManagerConnect = ({
|
|
|
3068
3138
|
}))));
|
|
3069
3139
|
};
|
|
3070
3140
|
|
|
3071
|
-
var
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3141
|
+
var NATIVE_BIND = functionBindNative;
|
|
3142
|
+
|
|
3143
|
+
var FunctionPrototype = Function.prototype;
|
|
3144
|
+
var apply$1 = FunctionPrototype.apply;
|
|
3145
|
+
var call$4 = FunctionPrototype.call;
|
|
3146
|
+
|
|
3147
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
3148
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$4.bind(apply$1) : function () {
|
|
3149
|
+
return call$4.apply(apply$1, arguments);
|
|
3150
|
+
});
|
|
3151
|
+
|
|
3152
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
3153
|
+
|
|
3154
|
+
var proxyAccessor$1 = function (Target, Source, key) {
|
|
3155
|
+
key in Target || defineProperty$1(Target, key, {
|
|
3156
|
+
configurable: true,
|
|
3157
|
+
get: function () { return Source[key]; },
|
|
3158
|
+
set: function (it) { Source[key] = it; }
|
|
3159
|
+
});
|
|
3160
|
+
};
|
|
3161
|
+
|
|
3162
|
+
var isCallable$4 = isCallable$i;
|
|
3163
|
+
var isObject$1 = isObject$9;
|
|
3164
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
3165
|
+
|
|
3166
|
+
// makes subclassing work correct for wrapped built-ins
|
|
3167
|
+
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
3168
|
+
var NewTarget, NewTargetPrototype;
|
|
3169
|
+
if (
|
|
3170
|
+
// it can work only with native `setPrototypeOf`
|
|
3171
|
+
setPrototypeOf$1 &&
|
|
3172
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
3173
|
+
isCallable$4(NewTarget = dummy.constructor) &&
|
|
3174
|
+
NewTarget !== Wrapper &&
|
|
3175
|
+
isObject$1(NewTargetPrototype = NewTarget.prototype) &&
|
|
3176
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
3177
|
+
) setPrototypeOf$1($this, NewTargetPrototype);
|
|
3178
|
+
return $this;
|
|
3179
|
+
};
|
|
3180
|
+
|
|
3181
|
+
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
3182
|
+
|
|
3183
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
3184
|
+
var test = {};
|
|
3185
|
+
|
|
3186
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
3187
|
+
|
|
3188
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
3189
|
+
|
|
3190
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
3191
|
+
var isCallable$3 = isCallable$i;
|
|
3192
|
+
var classofRaw = classofRaw$1;
|
|
3193
|
+
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
3194
|
+
|
|
3195
|
+
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
3196
|
+
var $Object = Object;
|
|
3197
|
+
|
|
3198
|
+
// ES3 wrong here
|
|
3199
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
3200
|
+
|
|
3201
|
+
// fallback for IE11 Script Access Denied error
|
|
3202
|
+
var tryGet = function (it, key) {
|
|
3203
|
+
try {
|
|
3204
|
+
return it[key];
|
|
3205
|
+
} catch (error) { /* empty */ }
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
3209
|
+
var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
3210
|
+
var O, tag, result;
|
|
3211
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
3212
|
+
// @@toStringTag case
|
|
3213
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
3214
|
+
// builtinTag case
|
|
3215
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
3216
|
+
// ES3 arguments fallback
|
|
3217
|
+
: (result = classofRaw(O)) === 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
|
|
3218
|
+
};
|
|
3219
|
+
|
|
3220
|
+
var classof$3 = classof$4;
|
|
3221
|
+
|
|
3222
|
+
var $String = String;
|
|
3223
|
+
|
|
3224
|
+
var toString$7 = function (argument) {
|
|
3225
|
+
if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
3226
|
+
return $String(argument);
|
|
3227
|
+
};
|
|
3228
|
+
|
|
3229
|
+
var toString$6 = toString$7;
|
|
3230
|
+
|
|
3231
|
+
var normalizeStringArgument$1 = function (argument, $default) {
|
|
3232
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$6(argument);
|
|
3233
|
+
};
|
|
3234
|
+
|
|
3235
|
+
var isObject = isObject$9;
|
|
3236
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
3237
|
+
|
|
3238
|
+
// `InstallErrorCause` abstract operation
|
|
3239
|
+
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
3240
|
+
var installErrorCause$1 = function (O, options) {
|
|
3241
|
+
if (isObject(options) && 'cause' in options) {
|
|
3242
|
+
createNonEnumerableProperty$3(O, 'cause', options.cause);
|
|
3243
|
+
}
|
|
3244
|
+
};
|
|
3245
|
+
|
|
3246
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
3247
|
+
|
|
3248
|
+
var $Error = Error;
|
|
3249
|
+
var replace$3 = uncurryThis$7(''.replace);
|
|
3250
|
+
|
|
3251
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
3252
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
3253
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
3254
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
3255
|
+
|
|
3256
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
3257
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
3258
|
+
while (dropEntries--) stack = replace$3(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
3259
|
+
} return stack;
|
|
3260
|
+
};
|
|
3261
|
+
|
|
3262
|
+
var fails$8 = fails$l;
|
|
3263
|
+
var createPropertyDescriptor = createPropertyDescriptor$4;
|
|
3264
|
+
|
|
3265
|
+
var errorStackInstallable = !fails$8(function () {
|
|
3266
|
+
var error = new Error('a');
|
|
3267
|
+
if (!('stack' in error)) return true;
|
|
3268
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3269
|
+
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
|
|
3270
|
+
return error.stack !== 7;
|
|
3271
|
+
});
|
|
3272
|
+
|
|
3273
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
3274
|
+
var clearErrorStack = errorStackClear;
|
|
3275
|
+
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
3276
|
+
|
|
3277
|
+
// non-standard V8
|
|
3278
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
3279
|
+
|
|
3280
|
+
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
3281
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
3282
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
3283
|
+
else createNonEnumerableProperty$2(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
3284
|
+
}
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
3288
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
3289
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
3290
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
3291
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
3292
|
+
var copyConstructorProperties$1 = copyConstructorProperties$3;
|
|
3293
|
+
var proxyAccessor = proxyAccessor$1;
|
|
3294
|
+
var inheritIfRequired = inheritIfRequired$1;
|
|
3295
|
+
var normalizeStringArgument = normalizeStringArgument$1;
|
|
3296
|
+
var installErrorCause = installErrorCause$1;
|
|
3297
|
+
var installErrorStack = errorStackInstall;
|
|
3298
|
+
var DESCRIPTORS$1 = descriptors;
|
|
3299
|
+
|
|
3300
|
+
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
3301
|
+
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
3302
|
+
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
3303
|
+
var path = FULL_NAME.split('.');
|
|
3304
|
+
var ERROR_NAME = path[path.length - 1];
|
|
3305
|
+
var OriginalError = getBuiltIn$1.apply(null, path);
|
|
3306
|
+
|
|
3307
|
+
if (!OriginalError) return;
|
|
3308
|
+
|
|
3309
|
+
var OriginalErrorPrototype = OriginalError.prototype;
|
|
3310
|
+
|
|
3311
|
+
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
3312
|
+
if (hasOwn$1(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
3313
|
+
|
|
3314
|
+
if (!FORCED) return OriginalError;
|
|
3315
|
+
|
|
3316
|
+
var BaseError = getBuiltIn$1('Error');
|
|
3317
|
+
|
|
3318
|
+
var WrappedError = wrapper(function (a, b) {
|
|
3319
|
+
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
3320
|
+
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
3321
|
+
if (message !== undefined) createNonEnumerableProperty$1(result, 'message', message);
|
|
3322
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
3323
|
+
if (this && isPrototypeOf$1(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
3324
|
+
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
3325
|
+
return result;
|
|
3326
|
+
});
|
|
3327
|
+
|
|
3328
|
+
WrappedError.prototype = OriginalErrorPrototype;
|
|
3329
|
+
|
|
3330
|
+
if (ERROR_NAME !== 'Error') {
|
|
3331
|
+
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
3332
|
+
else copyConstructorProperties$1(WrappedError, BaseError, { name: true });
|
|
3333
|
+
} else if (DESCRIPTORS$1 && STACK_TRACE_LIMIT in OriginalError) {
|
|
3334
|
+
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
3335
|
+
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
3336
|
+
}
|
|
3337
|
+
|
|
3338
|
+
copyConstructorProperties$1(WrappedError, OriginalError);
|
|
3339
|
+
|
|
3340
|
+
try {
|
|
3341
|
+
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
3342
|
+
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
3343
|
+
createNonEnumerableProperty$1(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
3344
|
+
}
|
|
3345
|
+
OriginalErrorPrototype.constructor = WrappedError;
|
|
3346
|
+
} catch (error) { /* empty */ }
|
|
3347
|
+
|
|
3348
|
+
return WrappedError;
|
|
3349
|
+
};
|
|
3350
|
+
|
|
3351
|
+
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
3352
|
+
var $$4 = _export;
|
|
3353
|
+
var global$7 = global$j;
|
|
3354
|
+
var apply = functionApply;
|
|
3355
|
+
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
3356
|
+
|
|
3357
|
+
var WEB_ASSEMBLY = 'WebAssembly';
|
|
3358
|
+
var WebAssembly = global$7[WEB_ASSEMBLY];
|
|
3359
|
+
|
|
3360
|
+
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
3361
|
+
var FORCED$2 = new Error('e', { cause: 7 }).cause !== 7;
|
|
3362
|
+
|
|
3363
|
+
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3364
|
+
var O = {};
|
|
3365
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$2);
|
|
3366
|
+
$$4({ global: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
|
|
3367
|
+
};
|
|
3368
|
+
|
|
3369
|
+
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3370
|
+
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
3371
|
+
var O = {};
|
|
3372
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$2);
|
|
3373
|
+
$$4({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
|
|
3374
|
+
}
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
// https://tc39.es/ecma262/#sec-nativeerror
|
|
3378
|
+
exportGlobalErrorCauseWrapper('Error', function (init) {
|
|
3379
|
+
return function Error(message) { return apply(init, this, arguments); };
|
|
3380
|
+
});
|
|
3381
|
+
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
3382
|
+
return function EvalError(message) { return apply(init, this, arguments); };
|
|
3383
|
+
});
|
|
3384
|
+
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
3385
|
+
return function RangeError(message) { return apply(init, this, arguments); };
|
|
3386
|
+
});
|
|
3387
|
+
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
3388
|
+
return function ReferenceError(message) { return apply(init, this, arguments); };
|
|
3389
|
+
});
|
|
3390
|
+
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
3391
|
+
return function SyntaxError(message) { return apply(init, this, arguments); };
|
|
3392
|
+
});
|
|
3393
|
+
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
3394
|
+
return function TypeError(message) { return apply(init, this, arguments); };
|
|
3395
|
+
});
|
|
3396
|
+
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
3397
|
+
return function URIError(message) { return apply(init, this, arguments); };
|
|
3398
|
+
});
|
|
3399
|
+
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
3400
|
+
return function CompileError(message) { return apply(init, this, arguments); };
|
|
3401
|
+
});
|
|
3402
|
+
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
3403
|
+
return function LinkError(message) { return apply(init, this, arguments); };
|
|
3404
|
+
});
|
|
3405
|
+
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
3406
|
+
return function RuntimeError(message) { return apply(init, this, arguments); };
|
|
3407
|
+
});
|
|
3408
|
+
|
|
3409
|
+
var drawingListJSON = [
|
|
3410
|
+
{
|
|
3411
|
+
id: "923723984872338768743",
|
|
3412
|
+
objectName: "Drawing object 101",
|
|
3413
|
+
lastUpdatedTime: "2022-06-01T23:00:00Z",
|
|
3414
|
+
scope: "user",
|
|
3415
|
+
geoJSON: {
|
|
3416
|
+
type: "FeatureCollection",
|
|
3417
|
+
features: [
|
|
3418
|
+
{
|
|
3419
|
+
type: "Feature",
|
|
3420
|
+
properties: {
|
|
3421
|
+
fill: "#ff7800",
|
|
3422
|
+
"fill-opacity": 0.2,
|
|
3423
|
+
stroke: "#ff7800",
|
|
3424
|
+
"stroke-width": 2,
|
|
3425
|
+
"stroke-opacity": 1,
|
|
3426
|
+
selectionType: "poly"
|
|
3427
|
+
},
|
|
3428
|
+
geometry: {
|
|
3429
|
+
type: "Polygon",
|
|
3430
|
+
coordinates: [
|
|
3431
|
+
[
|
|
3432
|
+
[
|
|
3433
|
+
3.357673379394467,
|
|
3434
|
+
54.021903403974555
|
|
3435
|
+
],
|
|
3436
|
+
[
|
|
3437
|
+
6.600428193305415,
|
|
3438
|
+
54.583753881732186
|
|
3439
|
+
],
|
|
3440
|
+
[
|
|
3441
|
+
6.642909697417786,
|
|
3442
|
+
50.7929736738295
|
|
3443
|
+
],
|
|
3444
|
+
[
|
|
3445
|
+
3.357673379394467,
|
|
3446
|
+
54.021903403974555
|
|
3447
|
+
]
|
|
3448
|
+
]
|
|
3449
|
+
]
|
|
3450
|
+
}
|
|
3451
|
+
}
|
|
3452
|
+
]
|
|
3453
|
+
}
|
|
3454
|
+
},
|
|
3455
|
+
{
|
|
3456
|
+
id: "934834893283",
|
|
3457
|
+
objectName: "Object 89",
|
|
3458
|
+
lastUpdatedTime: "2022-05-26T12:34:27Z",
|
|
3459
|
+
scope: "user",
|
|
3460
|
+
geoJSON: {
|
|
3461
|
+
type: "FeatureCollection",
|
|
3462
|
+
features: [
|
|
3463
|
+
{
|
|
3464
|
+
type: "Feature",
|
|
3465
|
+
properties: {
|
|
3466
|
+
fill: "#ff7800",
|
|
3467
|
+
"fill-opacity": 0,
|
|
3468
|
+
stroke: "#ff7800",
|
|
3469
|
+
"stroke-width": 2,
|
|
3470
|
+
"stroke-opacity": 1,
|
|
3471
|
+
selectionType: "poly"
|
|
3472
|
+
},
|
|
3473
|
+
geometry: {
|
|
3474
|
+
type: "Polygon",
|
|
3475
|
+
coordinates: [
|
|
3476
|
+
[
|
|
3477
|
+
[
|
|
3478
|
+
3.3151918752820957,
|
|
3479
|
+
52.58351427721301
|
|
3480
|
+
],
|
|
3481
|
+
[
|
|
3482
|
+
4.433871483574519,
|
|
3483
|
+
54.33682382687621
|
|
3484
|
+
],
|
|
3485
|
+
[
|
|
3486
|
+
6.6287491960469955,
|
|
3487
|
+
54.20451802569423
|
|
3488
|
+
],
|
|
3489
|
+
[
|
|
3490
|
+
5.580872094608522,
|
|
3491
|
+
54.063477378446876
|
|
3492
|
+
],
|
|
3493
|
+
[
|
|
3494
|
+
5.014452039776916,
|
|
3495
|
+
53.08821448043569
|
|
3496
|
+
],
|
|
3497
|
+
[
|
|
3498
|
+
5.184378056226398,
|
|
3499
|
+
50.69440676773111
|
|
3500
|
+
],
|
|
3501
|
+
[
|
|
3502
|
+
4.263945467125037,
|
|
3503
|
+
52.367886565469774
|
|
3504
|
+
],
|
|
3505
|
+
[
|
|
3506
|
+
3.4851178917315777,
|
|
3507
|
+
52.116433206467654
|
|
3508
|
+
],
|
|
3509
|
+
[
|
|
3510
|
+
3.3151918752820957,
|
|
3511
|
+
52.58351427721301
|
|
3512
|
+
]
|
|
3513
|
+
]
|
|
3514
|
+
]
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
]
|
|
3518
|
+
}
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
id: "345346456345",
|
|
3522
|
+
objectName: "Object 88",
|
|
3523
|
+
lastUpdatedTime: "2022-05-26T12:34:27Z",
|
|
3524
|
+
scope: "global",
|
|
3525
|
+
geoJSON: {
|
|
3526
|
+
type: "FeatureCollection",
|
|
3527
|
+
features: [
|
|
3190
3528
|
{
|
|
3191
3529
|
type: "Feature",
|
|
3192
3530
|
properties: {
|
|
@@ -4794,7 +5132,7 @@ var warningListJSON = [
|
|
|
4794
5132
|
lastUpdatedTime: "2023-12-05T14:46:32Z",
|
|
4795
5133
|
status: "PUBLISHED",
|
|
4796
5134
|
warningDetail: {
|
|
4797
|
-
phenomenon: "
|
|
5135
|
+
phenomenon: "wind",
|
|
4798
5136
|
geoJSON: {
|
|
4799
5137
|
type: "FeatureCollection",
|
|
4800
5138
|
features: [
|
|
@@ -5202,61 +5540,13 @@ const DrawingTool = ({
|
|
|
5202
5540
|
})), children));
|
|
5203
5541
|
};
|
|
5204
5542
|
|
|
5205
|
-
var wellKnownSymbol$3 = wellKnownSymbol$a;
|
|
5206
|
-
|
|
5207
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
5208
|
-
var test = {};
|
|
5209
|
-
|
|
5210
|
-
test[TO_STRING_TAG$1] = 'z';
|
|
5211
|
-
|
|
5212
|
-
var toStringTagSupport = String(test) === '[object z]';
|
|
5213
|
-
|
|
5214
|
-
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
5215
|
-
var isCallable$3 = isCallable$h;
|
|
5216
|
-
var classofRaw = classofRaw$1;
|
|
5217
|
-
var wellKnownSymbol$2 = wellKnownSymbol$a;
|
|
5218
|
-
|
|
5219
|
-
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
5220
|
-
var $Object = Object;
|
|
5221
|
-
|
|
5222
|
-
// ES3 wrong here
|
|
5223
|
-
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
|
|
5224
|
-
|
|
5225
|
-
// fallback for IE11 Script Access Denied error
|
|
5226
|
-
var tryGet = function (it, key) {
|
|
5227
|
-
try {
|
|
5228
|
-
return it[key];
|
|
5229
|
-
} catch (error) { /* empty */ }
|
|
5230
|
-
};
|
|
5231
|
-
|
|
5232
|
-
// getting tag from ES6+ `Object.prototype.toString`
|
|
5233
|
-
var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
5234
|
-
var O, tag, result;
|
|
5235
|
-
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
5236
|
-
// @@toStringTag case
|
|
5237
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
5238
|
-
// builtinTag case
|
|
5239
|
-
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
5240
|
-
// ES3 arguments fallback
|
|
5241
|
-
: (result = classofRaw(O)) === 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
|
|
5242
|
-
};
|
|
5243
|
-
|
|
5244
|
-
var classof$3 = classof$4;
|
|
5245
|
-
|
|
5246
|
-
var $String = String;
|
|
5247
|
-
|
|
5248
|
-
var toString$6 = function (argument) {
|
|
5249
|
-
if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
5250
|
-
return $String(argument);
|
|
5251
|
-
};
|
|
5252
|
-
|
|
5253
5543
|
// a string of all valid unicode whitespaces
|
|
5254
5544
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
5255
5545
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
5256
5546
|
|
|
5257
5547
|
var uncurryThis$6 = functionUncurryThis;
|
|
5258
5548
|
var requireObjectCoercible$2 = requireObjectCoercible$5;
|
|
5259
|
-
var toString$5 = toString$
|
|
5549
|
+
var toString$5 = toString$7;
|
|
5260
5550
|
var whitespaces$1 = whitespaces$2;
|
|
5261
5551
|
|
|
5262
5552
|
var replace$2 = uncurryThis$6(''.replace);
|
|
@@ -5285,10 +5575,10 @@ var stringTrim = {
|
|
|
5285
5575
|
trim: createMethod$2(3)
|
|
5286
5576
|
};
|
|
5287
5577
|
|
|
5288
|
-
var global$6 = global$
|
|
5289
|
-
var fails$7 = fails$
|
|
5578
|
+
var global$6 = global$j;
|
|
5579
|
+
var fails$7 = fails$l;
|
|
5290
5580
|
var uncurryThis$5 = functionUncurryThis;
|
|
5291
|
-
var toString$4 = toString$
|
|
5581
|
+
var toString$4 = toString$7;
|
|
5292
5582
|
var trim = stringTrim.trim;
|
|
5293
5583
|
var whitespaces = whitespaces$2;
|
|
5294
5584
|
|
|
@@ -5358,145 +5648,88 @@ const useFormDirty = ({
|
|
|
5358
5648
|
}, [isLoading, error, previousIsLoading, onSuccess]);
|
|
5359
5649
|
};
|
|
5360
5650
|
|
|
5651
|
+
/* *
|
|
5652
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5653
|
+
* you may not use this file except in compliance with the License.
|
|
5654
|
+
* You may obtain a copy of the License at
|
|
5655
|
+
*
|
|
5656
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5657
|
+
*
|
|
5658
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5659
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5660
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5661
|
+
* See the License for the specific language governing permissions and
|
|
5662
|
+
* limitations under the License.
|
|
5663
|
+
*
|
|
5664
|
+
* Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
5665
|
+
* Copyright 2024 - Finnish Meteorological Institute (FMI)
|
|
5666
|
+
* */
|
|
5361
5667
|
const opacityOptions = [100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0];
|
|
5362
|
-
const getObjectName$1 = objectName => objectName || `${dateUtils.dateToString(new Date(), DATE_FORMAT_FNS, true)} UTC`;
|
|
5363
5668
|
const SAVE_OBJECT_BUTTON = 'Save new object';
|
|
5364
5669
|
const UPDATE_OBJECT_BUTTON = 'Update object';
|
|
5365
5670
|
const INPUT_OBJECT = 'Object name';
|
|
5366
5671
|
const INPUT_OPACITY = 'Opacity';
|
|
5367
5672
|
const DRAW_EXIT_MODE_MESSAGE = 'press ESC to exit draw mode';
|
|
5368
5673
|
const coordinatesEmptyMessage = 'An object drawing is required';
|
|
5369
|
-
const
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5674
|
+
const DrawingToolFormContentsNoMemo = ({
|
|
5675
|
+
isLoading,
|
|
5676
|
+
dialogError,
|
|
5677
|
+
id,
|
|
5678
|
+
drawModes,
|
|
5679
|
+
onChangeDrawMode,
|
|
5680
|
+
activeDrawModeId,
|
|
5681
|
+
onKeyDown,
|
|
5682
|
+
isInEditMode,
|
|
5683
|
+
isDirty,
|
|
5684
|
+
errors,
|
|
5685
|
+
onChangeOpacity,
|
|
5686
|
+
onBlurName,
|
|
5687
|
+
opacity,
|
|
5688
|
+
onSubmit
|
|
5384
5689
|
}) => {
|
|
5385
|
-
const {
|
|
5386
|
-
handleSubmit,
|
|
5387
|
-
setValue,
|
|
5388
|
-
formState: {
|
|
5389
|
-
errors,
|
|
5390
|
-
isDirty
|
|
5391
|
-
},
|
|
5392
|
-
reset,
|
|
5393
|
-
getValues
|
|
5394
|
-
} = useFormContext();
|
|
5395
|
-
useFormDirty({
|
|
5396
|
-
isDirty,
|
|
5397
|
-
isLoading: _isLoading,
|
|
5398
|
-
error,
|
|
5399
|
-
onFormDirty: _onFormDirty,
|
|
5400
|
-
onSuccess: () => {
|
|
5401
|
-
// reset form dirty and update defaultvalues and formvalues after successfull saving
|
|
5402
|
-
reset(getValues());
|
|
5403
|
-
}
|
|
5404
|
-
});
|
|
5405
|
-
React.useEffect(() => {
|
|
5406
|
-
if (_activeDrawModeId) {
|
|
5407
|
-
setValue('geoJSON', geoJSON, {
|
|
5408
|
-
shouldDirty: true
|
|
5409
|
-
});
|
|
5410
|
-
}
|
|
5411
|
-
}, [_activeDrawModeId, geoJSON, setValue]);
|
|
5412
|
-
React.useEffect(() => {
|
|
5413
|
-
// Only set form value if not in edit mode
|
|
5414
|
-
if (!_isInEditMode && !_isLoading && geoJSON) {
|
|
5415
|
-
setValue('geoJSON', geoJSON, {
|
|
5416
|
-
shouldValidate: true
|
|
5417
|
-
});
|
|
5418
|
-
}
|
|
5419
|
-
}, [_isLoading, _isInEditMode, geoJSON, setValue]);
|
|
5420
|
-
const onSubmit = () => {
|
|
5421
|
-
_onDeactivateTool();
|
|
5422
|
-
handleSubmit(formValues => {
|
|
5423
|
-
// remove unneeded properties
|
|
5424
|
-
const {
|
|
5425
|
-
opacity,
|
|
5426
|
-
geoJSON
|
|
5427
|
-
} = formValues,
|
|
5428
|
-
allFormValues = __rest(formValues, ["opacity", "geoJSON"]);
|
|
5429
|
-
// rewind geometry
|
|
5430
|
-
const rewindedGeometry = rewindGeometry(geoJSON);
|
|
5431
|
-
onSubmitForm(Object.assign(Object.assign({}, allFormValues), {
|
|
5432
|
-
id: _id,
|
|
5433
|
-
geoJSON: rewindedGeometry
|
|
5434
|
-
}));
|
|
5435
|
-
})();
|
|
5436
|
-
};
|
|
5437
5690
|
const hasErrors = Object.keys(errors).length > 0;
|
|
5438
|
-
|
|
5439
|
-
const onChangeOpacity = event => {
|
|
5440
|
-
const {
|
|
5441
|
-
value
|
|
5442
|
-
} = event.target;
|
|
5443
|
-
const newOpacity = parseInt(value, 10) / 100;
|
|
5444
|
-
const additionalStrokeOpacity = 0.8;
|
|
5445
|
-
_onChangeProperties({
|
|
5446
|
-
'fill-opacity': newOpacity,
|
|
5447
|
-
'stroke-opacity': clamp(newOpacity + additionalStrokeOpacity, 0.01, 1)
|
|
5448
|
-
});
|
|
5449
|
-
};
|
|
5450
|
-
const onKeyDown = event => {
|
|
5451
|
-
if (event.key === 'Escape') {
|
|
5452
|
-
_onDeactivateTool();
|
|
5453
|
-
}
|
|
5454
|
-
};
|
|
5455
|
-
const onBlurName = event => {
|
|
5456
|
-
_onChangeName(event.target.value);
|
|
5457
|
-
};
|
|
5458
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
5691
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
5459
5692
|
sx: {
|
|
5460
5693
|
height: 'calc( 100% - 72px )',
|
|
5461
5694
|
overflow: 'auto'
|
|
5462
5695
|
}
|
|
5463
|
-
},
|
|
5696
|
+
}, dialogError && ( /*#__PURE__*/React__default.createElement(Box, {
|
|
5464
5697
|
sx: {
|
|
5465
5698
|
width: '100%'
|
|
5466
5699
|
}
|
|
5467
|
-
}, /*#__PURE__*/
|
|
5468
|
-
title:
|
|
5700
|
+
}, /*#__PURE__*/React__default.createElement(AlertBanner, {
|
|
5701
|
+
title: dialogError,
|
|
5469
5702
|
shouldClose: true
|
|
5470
|
-
}))), /*#__PURE__*/
|
|
5703
|
+
}))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
5471
5704
|
"data-testid": "drawingToolForm",
|
|
5472
5705
|
container: true,
|
|
5473
5706
|
direction: "column",
|
|
5474
5707
|
spacing: 1,
|
|
5475
5708
|
padding: 2
|
|
5476
|
-
}, /*#__PURE__*/
|
|
5709
|
+
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
5477
5710
|
item: true
|
|
5478
|
-
}, /*#__PURE__*/
|
|
5711
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
5479
5712
|
variant: "body2"
|
|
5480
|
-
}, "Tools")), /*#__PURE__*/
|
|
5713
|
+
}, "Tools")), /*#__PURE__*/React__default.createElement(Grid, {
|
|
5481
5714
|
item: true,
|
|
5482
5715
|
container: true
|
|
5483
|
-
}, /*#__PURE__*/
|
|
5716
|
+
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
5484
5717
|
item: true
|
|
5485
|
-
},
|
|
5718
|
+
}, drawModes.map(mode => ( /*#__PURE__*/React__default.createElement(CustomIconButton, {
|
|
5486
5719
|
key: mode.drawModeId,
|
|
5487
5720
|
variant: "tool",
|
|
5488
5721
|
tooltipTitle: mode.title,
|
|
5489
|
-
isSelected: mode.isSelectable &&
|
|
5490
|
-
onClick: () =>
|
|
5722
|
+
isSelected: mode.isSelectable && activeDrawModeId === mode.drawModeId,
|
|
5723
|
+
onClick: () => onChangeDrawMode(mode),
|
|
5491
5724
|
sx: {
|
|
5492
5725
|
marginRight: 1,
|
|
5493
5726
|
marginBottom: 1
|
|
5494
5727
|
},
|
|
5495
5728
|
"data-testid": mode.drawModeId,
|
|
5496
5729
|
onKeyDown: onKeyDown,
|
|
5497
|
-
disabled:
|
|
5730
|
+
disabled: isLoading,
|
|
5498
5731
|
size: "medium"
|
|
5499
|
-
}, getIcon(mode.selectionType)))),
|
|
5732
|
+
}, getIcon(mode.selectionType)))), isInEditMode && ( /*#__PURE__*/React__default.createElement(Typography, {
|
|
5500
5733
|
component: "span",
|
|
5501
5734
|
sx: {
|
|
5502
5735
|
display: 'inline-block',
|
|
@@ -5505,53 +5738,53 @@ const DrawingToolForm = ({
|
|
|
5505
5738
|
position: 'relative',
|
|
5506
5739
|
fontSize: 14
|
|
5507
5740
|
}
|
|
5508
|
-
}, DRAW_EXIT_MODE_MESSAGE)), !!errors.geoJSON && isDirty && ( /*#__PURE__*/
|
|
5741
|
+
}, DRAW_EXIT_MODE_MESSAGE)), !!errors.geoJSON && isDirty && ( /*#__PURE__*/React__default.createElement(FormHelperText, {
|
|
5509
5742
|
error: true,
|
|
5510
5743
|
variant: "filled",
|
|
5511
5744
|
sx: {
|
|
5512
5745
|
marginLeft: 0
|
|
5513
5746
|
}
|
|
5514
|
-
}, errors.geoJSON.message)), /*#__PURE__*/
|
|
5747
|
+
}, errors.geoJSON.message)), /*#__PURE__*/React__default.createElement(ReactHookFormHiddenInput, {
|
|
5515
5748
|
name: "geoJSON",
|
|
5516
5749
|
rules: {
|
|
5517
5750
|
validate: {
|
|
5518
5751
|
coordinatesNotEmpty: value => isValidGeoJsonCoordinates(value) || coordinatesEmptyMessage
|
|
5519
5752
|
}
|
|
5520
5753
|
}
|
|
5521
|
-
}))), /*#__PURE__*/
|
|
5754
|
+
}))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
5522
5755
|
item: true,
|
|
5523
5756
|
container: true
|
|
5524
|
-
}, /*#__PURE__*/
|
|
5757
|
+
}, /*#__PURE__*/React__default.createElement(Grid, {
|
|
5525
5758
|
item: true,
|
|
5526
5759
|
xs: 12,
|
|
5527
5760
|
sm: 6
|
|
5528
|
-
}, /*#__PURE__*/
|
|
5761
|
+
}, /*#__PURE__*/React__default.createElement(ReactHookFormSelect, {
|
|
5529
5762
|
name: "opacity",
|
|
5530
5763
|
label: INPUT_OPACITY,
|
|
5531
5764
|
rules: {},
|
|
5532
|
-
disabled:
|
|
5765
|
+
disabled: isLoading,
|
|
5533
5766
|
isReadOnly: false,
|
|
5534
5767
|
"data-testid": "drawingToolForm-opacity",
|
|
5535
5768
|
onChange: onChangeOpacity,
|
|
5536
5769
|
autoFocus: true,
|
|
5537
5770
|
value: opacity * 100
|
|
5538
|
-
}, opacityOptions.map(opacity => ( /*#__PURE__*/
|
|
5771
|
+
}, opacityOptions.map(opacity => ( /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
5539
5772
|
value: opacity,
|
|
5540
5773
|
key: opacity
|
|
5541
|
-
}, opacity, " %")))))), /*#__PURE__*/
|
|
5774
|
+
}, opacity, " %")))))), /*#__PURE__*/React__default.createElement(Grid, {
|
|
5542
5775
|
item: true
|
|
5543
|
-
}, /*#__PURE__*/
|
|
5776
|
+
}, /*#__PURE__*/React__default.createElement(ReactHookFormTextField, {
|
|
5544
5777
|
name: "objectName",
|
|
5545
5778
|
label: INPUT_OBJECT,
|
|
5546
5779
|
rules: {
|
|
5547
5780
|
required: true
|
|
5548
5781
|
},
|
|
5549
|
-
disabled:
|
|
5782
|
+
disabled: isLoading,
|
|
5550
5783
|
isReadOnly: false,
|
|
5551
5784
|
onBlur: onBlurName
|
|
5552
|
-
}), /*#__PURE__*/
|
|
5785
|
+
}), /*#__PURE__*/React__default.createElement(ReactHookFormHiddenInput, {
|
|
5553
5786
|
name: "id"
|
|
5554
|
-
})))), /*#__PURE__*/
|
|
5787
|
+
})))), /*#__PURE__*/React__default.createElement(Box, {
|
|
5555
5788
|
sx: {
|
|
5556
5789
|
padding: '24px 10px 14px 10px',
|
|
5557
5790
|
position: 'absolute',
|
|
@@ -5561,7 +5794,7 @@ const DrawingToolForm = ({
|
|
|
5561
5794
|
boxShadow: '0 2px 4px 0 rgba(0, 0, 0, 0.5)',
|
|
5562
5795
|
zIndex: 1
|
|
5563
5796
|
}
|
|
5564
|
-
}, /*#__PURE__*/
|
|
5797
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
5565
5798
|
variant: "primary",
|
|
5566
5799
|
onClick: onSubmit,
|
|
5567
5800
|
sx: {
|
|
@@ -5570,8 +5803,118 @@ const DrawingToolForm = ({
|
|
|
5570
5803
|
fontSize: '12px'
|
|
5571
5804
|
},
|
|
5572
5805
|
"data-testid": "saveDrawingFormButton",
|
|
5573
|
-
disabled:
|
|
5574
|
-
},
|
|
5806
|
+
disabled: isLoading || hasErrors
|
|
5807
|
+
}, id !== '' ? UPDATE_OBJECT_BUTTON : SAVE_OBJECT_BUTTON)));
|
|
5808
|
+
};
|
|
5809
|
+
const DrawingToolFormContents = /*#__PURE__*/React__default.memo(DrawingToolFormContentsNoMemo, isEqual);
|
|
5810
|
+
|
|
5811
|
+
const getObjectName$1 = objectName => objectName || `${dateUtils.dateToString(new Date(), DATE_FORMAT_FNS, true)} UTC`;
|
|
5812
|
+
const DrawingToolForm = ({
|
|
5813
|
+
onSubmitForm,
|
|
5814
|
+
isLoading: _isLoading = false,
|
|
5815
|
+
dialogError,
|
|
5816
|
+
id: _id = '',
|
|
5817
|
+
drawModes: _drawModes = [],
|
|
5818
|
+
onChangeDrawMode: _onChangeDrawMode = () => {},
|
|
5819
|
+
activeDrawModeId: _activeDrawModeId = '',
|
|
5820
|
+
onDeactivateTool: _onDeactivateTool = () => {},
|
|
5821
|
+
isInEditMode: _isInEditMode = false,
|
|
5822
|
+
geoJSONProperties: _geoJSONProperties = {},
|
|
5823
|
+
onChangeProperties: _onChangeProperties = () => {},
|
|
5824
|
+
onChangeName: _onChangeName = () => {},
|
|
5825
|
+
onFormDirty: _onFormDirty = () => {},
|
|
5826
|
+
geoJSON
|
|
5827
|
+
}) => {
|
|
5828
|
+
const {
|
|
5829
|
+
handleSubmit,
|
|
5830
|
+
setValue,
|
|
5831
|
+
formState: {
|
|
5832
|
+
errors,
|
|
5833
|
+
isDirty
|
|
5834
|
+
},
|
|
5835
|
+
reset,
|
|
5836
|
+
getValues
|
|
5837
|
+
} = useFormContext();
|
|
5838
|
+
// copy errors because react-hook-form mutates the object which breaks memoization
|
|
5839
|
+
const currentErrors = cloneDeep(errors);
|
|
5840
|
+
useFormDirty({
|
|
5841
|
+
isDirty,
|
|
5842
|
+
isLoading: _isLoading,
|
|
5843
|
+
error: dialogError,
|
|
5844
|
+
onFormDirty: _onFormDirty,
|
|
5845
|
+
onSuccess: () => {
|
|
5846
|
+
// reset form dirty and update defaultvalues and formvalues after successfull saving
|
|
5847
|
+
reset(getValues());
|
|
5848
|
+
}
|
|
5849
|
+
});
|
|
5850
|
+
React.useEffect(() => {
|
|
5851
|
+
if (_activeDrawModeId) {
|
|
5852
|
+
setValue('geoJSON', geoJSON, {
|
|
5853
|
+
shouldDirty: true
|
|
5854
|
+
});
|
|
5855
|
+
}
|
|
5856
|
+
}, [_activeDrawModeId, geoJSON, setValue]);
|
|
5857
|
+
React.useEffect(() => {
|
|
5858
|
+
// Only set form value if not in edit mode
|
|
5859
|
+
if (!_isInEditMode && !_isLoading && geoJSON) {
|
|
5860
|
+
setValue('geoJSON', geoJSON, {
|
|
5861
|
+
shouldValidate: true
|
|
5862
|
+
});
|
|
5863
|
+
}
|
|
5864
|
+
}, [_isLoading, _isInEditMode, geoJSON, setValue]);
|
|
5865
|
+
const onSubmit = React.useCallback(() => {
|
|
5866
|
+
_onDeactivateTool();
|
|
5867
|
+
handleSubmit(formValues => {
|
|
5868
|
+
// remove unneeded properties
|
|
5869
|
+
const {
|
|
5870
|
+
opacity,
|
|
5871
|
+
geoJSON
|
|
5872
|
+
} = formValues,
|
|
5873
|
+
allFormValues = __rest(formValues, ["opacity", "geoJSON"]);
|
|
5874
|
+
// rewind geometry
|
|
5875
|
+
const rewindedGeometry = rewindGeometry(geoJSON);
|
|
5876
|
+
onSubmitForm(Object.assign(Object.assign({}, allFormValues), {
|
|
5877
|
+
id: _id,
|
|
5878
|
+
geoJSON: rewindedGeometry
|
|
5879
|
+
}));
|
|
5880
|
+
})();
|
|
5881
|
+
}, [handleSubmit, _id, _onDeactivateTool, onSubmitForm]);
|
|
5882
|
+
const opacity = React.useMemo(() => getGeoJSONPropertyValue('fill-opacity', _geoJSONProperties, _drawModes.find(mode => mode.value === 'POLYGON')), [_geoJSONProperties, _drawModes]);
|
|
5883
|
+
const onChangeOpacity = React.useCallback(event => {
|
|
5884
|
+
const {
|
|
5885
|
+
value
|
|
5886
|
+
} = event.target;
|
|
5887
|
+
const newOpacity = parseInt(value, 10) / 100;
|
|
5888
|
+
const additionalStrokeOpacity = 0.8;
|
|
5889
|
+
_onChangeProperties({
|
|
5890
|
+
'fill-opacity': newOpacity,
|
|
5891
|
+
'stroke-opacity': clamp(newOpacity + additionalStrokeOpacity, 0.01, 1)
|
|
5892
|
+
});
|
|
5893
|
+
}, [_onChangeProperties]);
|
|
5894
|
+
const onKeyDown = React.useCallback(event => {
|
|
5895
|
+
if (event.key === 'Escape') {
|
|
5896
|
+
_onDeactivateTool();
|
|
5897
|
+
}
|
|
5898
|
+
}, [_onDeactivateTool]);
|
|
5899
|
+
const onBlurName = React.useCallback(event => {
|
|
5900
|
+
_onChangeName(event.target.value);
|
|
5901
|
+
}, [_onChangeName]);
|
|
5902
|
+
return /*#__PURE__*/React.createElement(DrawingToolFormContents, {
|
|
5903
|
+
isLoading: _isLoading,
|
|
5904
|
+
dialogError: dialogError,
|
|
5905
|
+
id: _id,
|
|
5906
|
+
drawModes: _drawModes,
|
|
5907
|
+
activeDrawModeId: _activeDrawModeId,
|
|
5908
|
+
onChangeDrawMode: _onChangeDrawMode,
|
|
5909
|
+
onKeyDown: onKeyDown,
|
|
5910
|
+
isInEditMode: _isInEditMode,
|
|
5911
|
+
isDirty: isDirty,
|
|
5912
|
+
errors: currentErrors,
|
|
5913
|
+
onChangeOpacity: onChangeOpacity,
|
|
5914
|
+
onBlurName: onBlurName,
|
|
5915
|
+
opacity: opacity,
|
|
5916
|
+
onSubmit: onSubmit
|
|
5917
|
+
});
|
|
5575
5918
|
};
|
|
5576
5919
|
const Wrapper = props => {
|
|
5577
5920
|
const {
|
|
@@ -5617,28 +5960,28 @@ const DrawingToolFormConnect = () => {
|
|
|
5617
5960
|
const featureLayerGeoJSONProperties = useSelector(store => layerSelectors.getFeatureLayerGeoJSONProperties(store, drawTool === null || drawTool === void 0 ? void 0 : drawTool.geoJSONLayerId));
|
|
5618
5961
|
const isDialogLoading = useSelector(store => uiSelectors.getDialogIsLoading(store, drawToolId));
|
|
5619
5962
|
const dialogError = useSelector(store => uiSelectors.getDialogError(store, drawToolId));
|
|
5620
|
-
const onSubmitForm = formValues => {
|
|
5963
|
+
const onSubmitForm = React.useCallback(formValues => {
|
|
5621
5964
|
dispatch(drawActions.submitDrawValues({
|
|
5622
5965
|
geoJSON: formValues.geoJSON,
|
|
5623
5966
|
objectName: formValues.objectName,
|
|
5624
5967
|
scope: 'user',
|
|
5625
5968
|
id: drawing === null || drawing === void 0 ? void 0 : drawing.id
|
|
5626
5969
|
}));
|
|
5627
|
-
};
|
|
5628
|
-
const onChangeGeoJSONProperties = properties => {
|
|
5970
|
+
}, [dispatch, drawing === null || drawing === void 0 ? void 0 : drawing.id]);
|
|
5971
|
+
const onChangeGeoJSONProperties = React.useCallback(properties => {
|
|
5629
5972
|
dispatch(layerActions.updateFeatureProperties({
|
|
5630
5973
|
layerId: drawTool === null || drawTool === void 0 ? void 0 : drawTool.geoJSONLayerId,
|
|
5631
5974
|
properties,
|
|
5632
5975
|
origin: 'DrawingToolFormConnect'
|
|
5633
5976
|
}));
|
|
5634
|
-
};
|
|
5635
|
-
const onChangeDrawMode = tool => {
|
|
5977
|
+
}, [dispatch, drawTool === null || drawTool === void 0 ? void 0 : drawTool.geoJSONLayerId]);
|
|
5978
|
+
const onChangeDrawMode = React.useCallback(tool => {
|
|
5636
5979
|
dispatch(drawtoolActions.changeDrawToolMode({
|
|
5637
5980
|
drawToolId,
|
|
5638
5981
|
drawModeId: tool.drawModeId
|
|
5639
5982
|
}));
|
|
5640
|
-
};
|
|
5641
|
-
const onDeactivateTool = () => {
|
|
5983
|
+
}, [dispatch, drawToolId]);
|
|
5984
|
+
const onDeactivateTool = React.useCallback(() => {
|
|
5642
5985
|
dispatch(layerActions.toggleFeatureMode({
|
|
5643
5986
|
layerId: drawTool === null || drawTool === void 0 ? void 0 : drawTool.geoJSONLayerId,
|
|
5644
5987
|
isInEditMode: false,
|
|
@@ -5650,27 +5993,27 @@ const DrawingToolFormConnect = () => {
|
|
|
5650
5993
|
drawModeId: drawTool === null || drawTool === void 0 ? void 0 : drawTool.activeDrawModeId
|
|
5651
5994
|
}));
|
|
5652
5995
|
}
|
|
5653
|
-
};
|
|
5654
|
-
const onChangeName = newName => {
|
|
5996
|
+
}, [dispatch, drawTool === null || drawTool === void 0 ? void 0 : drawTool.activeDrawModeId, drawTool === null || drawTool === void 0 ? void 0 : drawTool.geoJSONLayerId, drawToolId]);
|
|
5997
|
+
const onChangeName = React.useCallback(newName => {
|
|
5655
5998
|
dispatch(drawActions.setDrawValues({
|
|
5656
5999
|
objectName: newName,
|
|
5657
6000
|
id: (drawing === null || drawing === void 0 ? void 0 : drawing.id) || '',
|
|
5658
6001
|
drawingInstanceId: drawingDialogType,
|
|
5659
6002
|
isFormDirty: drawing === null || drawing === void 0 ? void 0 : drawing.isFormDirty
|
|
5660
6003
|
}));
|
|
5661
|
-
};
|
|
5662
|
-
const onChangeFormDirty = isFormDirty => {
|
|
6004
|
+
}, [dispatch, drawing === null || drawing === void 0 ? void 0 : drawing.id, drawing === null || drawing === void 0 ? void 0 : drawing.isFormDirty]);
|
|
6005
|
+
const onChangeFormDirty = React.useCallback(isFormDirty => {
|
|
5663
6006
|
dispatch(drawActions.setFormDirty({
|
|
5664
6007
|
drawingInstanceId: drawingDialogType,
|
|
5665
6008
|
isFormDirty
|
|
5666
6009
|
}));
|
|
5667
|
-
};
|
|
6010
|
+
}, [dispatch]);
|
|
5668
6011
|
return /*#__PURE__*/React.createElement(Wrapper, {
|
|
5669
6012
|
id: drawing === null || drawing === void 0 ? void 0 : drawing.id,
|
|
5670
6013
|
onSubmitForm: onSubmitForm,
|
|
5671
6014
|
objectName: drawing === null || drawing === void 0 ? void 0 : drawing.objectName,
|
|
5672
6015
|
isLoading: isDialogLoading,
|
|
5673
|
-
|
|
6016
|
+
dialogError: dialogError,
|
|
5674
6017
|
// new
|
|
5675
6018
|
drawModes: drawTool === null || drawTool === void 0 ? void 0 : drawTool.drawModes,
|
|
5676
6019
|
onChangeDrawMode: onChangeDrawMode,
|
|
@@ -5905,9 +6248,9 @@ const PublicWarningsFormDialog = ({
|
|
|
5905
6248
|
};
|
|
5906
6249
|
|
|
5907
6250
|
var aCallable = aCallable$3;
|
|
5908
|
-
var toObject = toObject$
|
|
6251
|
+
var toObject = toObject$5;
|
|
5909
6252
|
var IndexedObject = indexedObject;
|
|
5910
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
6253
|
+
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
5911
6254
|
|
|
5912
6255
|
var $TypeError$2 = TypeError;
|
|
5913
6256
|
|
|
@@ -5947,7 +6290,7 @@ var arrayReduce = {
|
|
|
5947
6290
|
right: createMethod$1(true)
|
|
5948
6291
|
};
|
|
5949
6292
|
|
|
5950
|
-
var fails$6 = fails$
|
|
6293
|
+
var fails$6 = fails$l;
|
|
5951
6294
|
|
|
5952
6295
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
5953
6296
|
var method = [][METHOD_NAME];
|
|
@@ -5957,7 +6300,7 @@ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
|
5957
6300
|
});
|
|
5958
6301
|
};
|
|
5959
6302
|
|
|
5960
|
-
var global$5 = global$
|
|
6303
|
+
var global$5 = global$j;
|
|
5961
6304
|
var classof$2 = classofRaw$1;
|
|
5962
6305
|
|
|
5963
6306
|
var engineIsNode = classof$2(global$5.process) === 'process';
|
|
@@ -6000,8 +6343,8 @@ var regexpFlags$1 = function () {
|
|
|
6000
6343
|
return result;
|
|
6001
6344
|
};
|
|
6002
6345
|
|
|
6003
|
-
var fails$5 = fails$
|
|
6004
|
-
var global$4 = global$
|
|
6346
|
+
var fails$5 = fails$l;
|
|
6347
|
+
var global$4 = global$j;
|
|
6005
6348
|
|
|
6006
6349
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
6007
6350
|
var $RegExp$2 = global$4.RegExp;
|
|
@@ -6031,8 +6374,8 @@ var regexpStickyHelpers = {
|
|
|
6031
6374
|
UNSUPPORTED_Y: UNSUPPORTED_Y$2
|
|
6032
6375
|
};
|
|
6033
6376
|
|
|
6034
|
-
var fails$4 = fails$
|
|
6035
|
-
var global$3 = global$
|
|
6377
|
+
var fails$4 = fails$l;
|
|
6378
|
+
var global$3 = global$j;
|
|
6036
6379
|
|
|
6037
6380
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
6038
6381
|
var $RegExp$1 = global$3.RegExp;
|
|
@@ -6042,8 +6385,8 @@ var regexpUnsupportedDotAll = fails$4(function () {
|
|
|
6042
6385
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
6043
6386
|
});
|
|
6044
6387
|
|
|
6045
|
-
var fails$3 = fails$
|
|
6046
|
-
var global$2 = global$
|
|
6388
|
+
var fails$3 = fails$l;
|
|
6389
|
+
var global$2 = global$j;
|
|
6047
6390
|
|
|
6048
6391
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
6049
6392
|
var $RegExp = global$2.RegExp;
|
|
@@ -6058,7 +6401,7 @@ var regexpUnsupportedNcg = fails$3(function () {
|
|
|
6058
6401
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
6059
6402
|
var call$3 = functionCall;
|
|
6060
6403
|
var uncurryThis$4 = functionUncurryThis;
|
|
6061
|
-
var toString$3 = toString$
|
|
6404
|
+
var toString$3 = toString$7;
|
|
6062
6405
|
var regexpFlags = regexpFlags$1;
|
|
6063
6406
|
var stickyHelpers$1 = regexpStickyHelpers;
|
|
6064
6407
|
var shared = shared$4.exports;
|
|
@@ -6185,9 +6528,9 @@ $$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
|
6185
6528
|
var call$2 = functionCall;
|
|
6186
6529
|
var defineBuiltIn = defineBuiltIn$4;
|
|
6187
6530
|
var regexpExec$1 = regexpExec$2;
|
|
6188
|
-
var fails$2 = fails$
|
|
6531
|
+
var fails$2 = fails$l;
|
|
6189
6532
|
var wellKnownSymbol$1 = wellKnownSymbol$a;
|
|
6190
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
6533
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
6191
6534
|
|
|
6192
6535
|
var SPECIES$1 = wellKnownSymbol$1('species');
|
|
6193
6536
|
var RegExpPrototype = RegExp.prototype;
|
|
@@ -6257,10 +6600,10 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
6257
6600
|
};
|
|
6258
6601
|
|
|
6259
6602
|
var uncurryThis$3 = functionUncurryThis;
|
|
6260
|
-
var fails$1 = fails$
|
|
6261
|
-
var isCallable$2 = isCallable$
|
|
6603
|
+
var fails$1 = fails$l;
|
|
6604
|
+
var isCallable$2 = isCallable$i;
|
|
6262
6605
|
var classof$1 = classof$4;
|
|
6263
|
-
var getBuiltIn = getBuiltIn$
|
|
6606
|
+
var getBuiltIn = getBuiltIn$5;
|
|
6264
6607
|
var inspectSource = inspectSource$2;
|
|
6265
6608
|
|
|
6266
6609
|
var noop = function () { /* empty */ };
|
|
@@ -6336,7 +6679,7 @@ var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
|
6336
6679
|
|
|
6337
6680
|
var uncurryThis$2 = functionUncurryThis;
|
|
6338
6681
|
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
6339
|
-
var toString$2 = toString$
|
|
6682
|
+
var toString$2 = toString$7;
|
|
6340
6683
|
var requireObjectCoercible$1 = requireObjectCoercible$5;
|
|
6341
6684
|
|
|
6342
6685
|
var charAt$1 = uncurryThis$2(''.charAt);
|
|
@@ -6381,7 +6724,7 @@ var advanceStringIndex$1 = function (S, index, unicode) {
|
|
|
6381
6724
|
|
|
6382
6725
|
var call$1 = functionCall;
|
|
6383
6726
|
var anObject$1 = anObject$9;
|
|
6384
|
-
var isCallable$1 = isCallable$
|
|
6727
|
+
var isCallable$1 = isCallable$i;
|
|
6385
6728
|
var classof = classofRaw$1;
|
|
6386
6729
|
var regexpExec = regexpExec$2;
|
|
6387
6730
|
|
|
@@ -6409,11 +6752,11 @@ var requireObjectCoercible = requireObjectCoercible$5;
|
|
|
6409
6752
|
var speciesConstructor = speciesConstructor$1;
|
|
6410
6753
|
var advanceStringIndex = advanceStringIndex$1;
|
|
6411
6754
|
var toLength = toLength$2;
|
|
6412
|
-
var toString$1 = toString$
|
|
6755
|
+
var toString$1 = toString$7;
|
|
6413
6756
|
var getMethod = getMethod$2;
|
|
6414
6757
|
var regExpExec = regexpExecAbstract;
|
|
6415
6758
|
var stickyHelpers = regexpStickyHelpers;
|
|
6416
|
-
var fails = fails$
|
|
6759
|
+
var fails = fails$l;
|
|
6417
6760
|
|
|
6418
6761
|
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
|
|
6419
6762
|
var MAX_UINT32 = 0xFFFFFFFF;
|
|
@@ -6787,11 +7130,9 @@ const warningPhenomena = [{
|
|
|
6787
7130
|
title: 'High temperature',
|
|
6788
7131
|
key: 'highTemp',
|
|
6789
7132
|
icon: /*#__PURE__*/React.createElement(TemperatureHigh, null)
|
|
6790
|
-
},
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
icon: /*#__PURE__*/React.createElement(FunnelCloud, null)
|
|
6794
|
-
}, {
|
|
7133
|
+
},
|
|
7134
|
+
// { title: 'Funnel cloud', key: 'funnelCloud', icon: <FunnelCloud /> },
|
|
7135
|
+
{
|
|
6795
7136
|
title: 'Low temperature',
|
|
6796
7137
|
key: 'lowTemp',
|
|
6797
7138
|
icon: /*#__PURE__*/React.createElement(TemperatureLow, null)
|
|
@@ -7979,14 +8320,14 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
7979
8320
|
|
|
7980
8321
|
var $ = _export;
|
|
7981
8322
|
var DESCRIPTORS = descriptors;
|
|
7982
|
-
var global$1 = global$
|
|
8323
|
+
var global$1 = global$j;
|
|
7983
8324
|
var uncurryThis = functionUncurryThis;
|
|
7984
8325
|
var hasOwn = hasOwnProperty_1;
|
|
7985
|
-
var isCallable = isCallable$
|
|
8326
|
+
var isCallable = isCallable$i;
|
|
7986
8327
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
7987
|
-
var toString = toString$
|
|
8328
|
+
var toString = toString$7;
|
|
7988
8329
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
7989
|
-
var copyConstructorProperties = copyConstructorProperties$
|
|
8330
|
+
var copyConstructorProperties = copyConstructorProperties$3;
|
|
7990
8331
|
|
|
7991
8332
|
var NativeSymbol = global$1.Symbol;
|
|
7992
8333
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
@@ -8283,16 +8624,16 @@ function* submitDrawValuesSaga({
|
|
|
8283
8624
|
isLoading: true,
|
|
8284
8625
|
type: drawingDialogType
|
|
8285
8626
|
}));
|
|
8286
|
-
const warningsApi = yield call$
|
|
8627
|
+
const warningsApi = yield call$c(getWarningsApi);
|
|
8287
8628
|
if (!id) {
|
|
8288
|
-
const newID = yield call$
|
|
8629
|
+
const newID = yield call$c(warningsApi.saveDrawingAs, formValues);
|
|
8289
8630
|
yield put(drawActions.setDrawValues({
|
|
8290
8631
|
drawingInstanceId: drawingDialogType,
|
|
8291
8632
|
id: newID,
|
|
8292
8633
|
objectName: formValues.objectName
|
|
8293
8634
|
}));
|
|
8294
8635
|
} else {
|
|
8295
|
-
yield call$
|
|
8636
|
+
yield call$c(warningsApi.updateDrawing, id, formValues);
|
|
8296
8637
|
}
|
|
8297
8638
|
yield put(uiActions.setErrorDialog({
|
|
8298
8639
|
type: drawingDialogType,
|
|
@@ -8325,12 +8666,12 @@ const PUBLISH_SUCCES = 'Public warning has succesfully been published!';
|
|
|
8325
8666
|
const SAVE_SUCCES = 'Public warning has succesfully been saved!';
|
|
8326
8667
|
const getErrorMessage = error => isAxiosError$1(error) ? getAxiosErrorMessage(error) : error.message;
|
|
8327
8668
|
function* saveOrUpdateWarning(publicWarning) {
|
|
8328
|
-
const warningsApi = yield call$
|
|
8669
|
+
const warningsApi = yield call$c(getWarningsApi);
|
|
8329
8670
|
if (publicWarning.warningDetail.id) {
|
|
8330
|
-
yield call$
|
|
8671
|
+
yield call$c(warningsApi.updateWarning, publicWarning.warningDetail.id, publicWarning);
|
|
8331
8672
|
return publicWarning;
|
|
8332
8673
|
}
|
|
8333
|
-
const newWarningId = yield call$
|
|
8674
|
+
const newWarningId = yield call$c(warningsApi.saveWarningAs, publicWarning);
|
|
8334
8675
|
return Object.assign(Object.assign({}, publicWarning), {
|
|
8335
8676
|
warningDetail: Object.assign(Object.assign({}, publicWarning.warningDetail), {
|
|
8336
8677
|
id: newWarningId
|
|
@@ -8347,8 +8688,8 @@ function* toggleEditorWarningSaga({
|
|
|
8347
8688
|
isEditor,
|
|
8348
8689
|
username
|
|
8349
8690
|
} = payload;
|
|
8350
|
-
const warningsApi = yield call$
|
|
8351
|
-
yield call$
|
|
8691
|
+
const warningsApi = yield call$c(getWarningsApi);
|
|
8692
|
+
yield call$c(warningsApi.toggleEditorWarning, warningId, isEditor);
|
|
8352
8693
|
// update list to show correct avatar
|
|
8353
8694
|
yield put(publicWarningActions.fetchWarnings());
|
|
8354
8695
|
yield put(publicWarningFormActions.toggleEditorWarningSuccess({
|
|
@@ -8357,7 +8698,7 @@ function* toggleEditorWarningSaga({
|
|
|
8357
8698
|
message: getToggleEditorSuccessMessage(isEditor)
|
|
8358
8699
|
}));
|
|
8359
8700
|
} catch (error) {
|
|
8360
|
-
yield call$
|
|
8701
|
+
yield call$c(errorSaga, getErrorMessage(error));
|
|
8361
8702
|
}
|
|
8362
8703
|
}
|
|
8363
8704
|
function* publishWarningSaga({
|
|
@@ -8367,7 +8708,7 @@ function* publishWarningSaga({
|
|
|
8367
8708
|
const {
|
|
8368
8709
|
publicWarning
|
|
8369
8710
|
} = payload;
|
|
8370
|
-
const publishedWarning = yield call$
|
|
8711
|
+
const publishedWarning = yield call$c(saveOrUpdateWarning, publicWarning);
|
|
8371
8712
|
yield put(publicWarningFormActions.publishWarningSuccess({
|
|
8372
8713
|
publicWarning: publishedWarning,
|
|
8373
8714
|
message: PUBLISH_SUCCES
|
|
@@ -8377,7 +8718,7 @@ function* publishWarningSaga({
|
|
|
8377
8718
|
setOpen: false
|
|
8378
8719
|
}));
|
|
8379
8720
|
} catch (error) {
|
|
8380
|
-
yield call$
|
|
8721
|
+
yield call$c(errorSaga, getErrorMessage(error));
|
|
8381
8722
|
}
|
|
8382
8723
|
}
|
|
8383
8724
|
function* saveWarningSaga({
|
|
@@ -8387,13 +8728,13 @@ function* saveWarningSaga({
|
|
|
8387
8728
|
const {
|
|
8388
8729
|
publicWarning
|
|
8389
8730
|
} = payload;
|
|
8390
|
-
const savedWarning = yield call$
|
|
8731
|
+
const savedWarning = yield call$c(saveOrUpdateWarning, publicWarning);
|
|
8391
8732
|
yield put(publicWarningFormActions.saveWarningSuccess({
|
|
8392
8733
|
publicWarning: savedWarning,
|
|
8393
8734
|
message: SAVE_SUCCES
|
|
8394
8735
|
}));
|
|
8395
8736
|
} catch (error) {
|
|
8396
|
-
yield call$
|
|
8737
|
+
yield call$c(errorSaga, getErrorMessage(error));
|
|
8397
8738
|
}
|
|
8398
8739
|
}
|
|
8399
8740
|
function* successSaga({
|
|
@@ -8405,13 +8746,13 @@ function* successSaga({
|
|
|
8405
8746
|
yield put(snackbarActions.openSnackbar({
|
|
8406
8747
|
message
|
|
8407
8748
|
}));
|
|
8408
|
-
yield call$
|
|
8749
|
+
yield call$c(toggleDialogLoadingSaga, false);
|
|
8409
8750
|
}
|
|
8410
8751
|
function* errorSaga(message) {
|
|
8411
8752
|
yield put(publicWarningFormActions.setFormError({
|
|
8412
8753
|
message
|
|
8413
8754
|
}));
|
|
8414
|
-
yield call$
|
|
8755
|
+
yield call$c(toggleDialogLoadingSaga, false);
|
|
8415
8756
|
}
|
|
8416
8757
|
function* toggleDialogLoadingSaga(isLoading) {
|
|
8417
8758
|
const isDialogOpen = yield select(uiSelectors.getDialogDetailsByType, publicWarningDialogType);
|
|
@@ -8458,10 +8799,10 @@ function* publicWarningRootSaga() {
|
|
|
8458
8799
|
const getLastUpdatedTimeFormatted = () => dateUtils.dateToString(dateUtils.utc(), DATE_FORMAT_LASTUPDATEDTIME);
|
|
8459
8800
|
function* fetchWarningsSaga() {
|
|
8460
8801
|
try {
|
|
8461
|
-
const warningsApi = yield call$
|
|
8802
|
+
const warningsApi = yield call$c(getWarningsApi);
|
|
8462
8803
|
const {
|
|
8463
8804
|
data: warnings
|
|
8464
|
-
} = yield call$
|
|
8805
|
+
} = yield call$c(warningsApi.getWarnings);
|
|
8465
8806
|
const lastUpdatedTime = getLastUpdatedTimeFormatted();
|
|
8466
8807
|
yield put(publicWarningActions.fetchWarningsSuccess({
|
|
8467
8808
|
warnings,
|