@opengeoweb/webmap-react 9.5.0 → 9.7.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
|
@@ -9,6 +9,7 @@ import * as turf from '@turf/turf';
|
|
|
9
9
|
import { polygonToLineString, booleanClockwise, rewind } from '@turf/turf';
|
|
10
10
|
import { Delete, Edit, DrawRegion, DrawPolygon, Location, DrawFIRLand, ArrowUp, Home, Add, Minus } from '@opengeoweb/theme';
|
|
11
11
|
import produce from 'immer';
|
|
12
|
+
import { debounce } from 'throttle-debounce';
|
|
12
13
|
import { differenceInMinutes } from 'date-fns';
|
|
13
14
|
import { useResizeDetector } from 'react-resize-detector';
|
|
14
15
|
|
|
@@ -373,7 +374,7 @@ CanvasComponent.defaultProps = {
|
|
|
373
374
|
|
|
374
375
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
375
376
|
|
|
376
|
-
var fails$
|
|
377
|
+
var fails$i = function (exec) {
|
|
377
378
|
try {
|
|
378
379
|
return !!exec();
|
|
379
380
|
} catch (error) {
|
|
@@ -381,9 +382,9 @@ var fails$m = function (exec) {
|
|
|
381
382
|
}
|
|
382
383
|
};
|
|
383
384
|
|
|
384
|
-
var fails$
|
|
385
|
+
var fails$h = fails$i;
|
|
385
386
|
|
|
386
|
-
var functionBindNative = !fails$
|
|
387
|
+
var functionBindNative = !fails$h(function () {
|
|
387
388
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
388
389
|
var test = (function () { /* empty */ }).bind();
|
|
389
390
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -393,63 +394,63 @@ var functionBindNative = !fails$l(function () {
|
|
|
393
394
|
var NATIVE_BIND$3 = functionBindNative;
|
|
394
395
|
|
|
395
396
|
var FunctionPrototype$2 = Function.prototype;
|
|
396
|
-
var call$
|
|
397
|
-
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$
|
|
397
|
+
var call$e = FunctionPrototype$2.call;
|
|
398
|
+
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$e, call$e);
|
|
398
399
|
|
|
399
400
|
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
|
|
400
401
|
return function () {
|
|
401
|
-
return call$
|
|
402
|
+
return call$e.apply(fn, arguments);
|
|
402
403
|
};
|
|
403
404
|
};
|
|
404
405
|
|
|
405
|
-
var uncurryThis$
|
|
406
|
+
var uncurryThis$j = functionUncurryThis;
|
|
406
407
|
|
|
407
|
-
var toString$
|
|
408
|
-
var stringSlice$
|
|
408
|
+
var toString$6 = uncurryThis$j({}.toString);
|
|
409
|
+
var stringSlice$1 = uncurryThis$j(''.slice);
|
|
409
410
|
|
|
410
411
|
var classofRaw$2 = function (it) {
|
|
411
|
-
return stringSlice$
|
|
412
|
+
return stringSlice$1(toString$6(it), 8, -1);
|
|
412
413
|
};
|
|
413
414
|
|
|
414
|
-
var uncurryThis$
|
|
415
|
-
var fails$
|
|
416
|
-
var classof$
|
|
415
|
+
var uncurryThis$i = functionUncurryThis;
|
|
416
|
+
var fails$g = fails$i;
|
|
417
|
+
var classof$7 = classofRaw$2;
|
|
417
418
|
|
|
418
419
|
var $Object$4 = Object;
|
|
419
|
-
var split = uncurryThis$
|
|
420
|
+
var split = uncurryThis$i(''.split);
|
|
420
421
|
|
|
421
422
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
422
|
-
var indexedObject = fails$
|
|
423
|
+
var indexedObject = fails$g(function () {
|
|
423
424
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
424
425
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
425
426
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
426
427
|
}) ? function (it) {
|
|
427
|
-
return classof$
|
|
428
|
+
return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
428
429
|
} : $Object$4;
|
|
429
430
|
|
|
430
431
|
// we can't use just `it == null` since of `document.all` special case
|
|
431
432
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
432
|
-
var isNullOrUndefined$
|
|
433
|
+
var isNullOrUndefined$4 = function (it) {
|
|
433
434
|
return it === null || it === undefined;
|
|
434
435
|
};
|
|
435
436
|
|
|
436
|
-
var isNullOrUndefined$
|
|
437
|
+
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
437
438
|
|
|
438
439
|
var $TypeError$f = TypeError;
|
|
439
440
|
|
|
440
441
|
// `RequireObjectCoercible` abstract operation
|
|
441
442
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
442
|
-
var requireObjectCoercible$
|
|
443
|
-
if (isNullOrUndefined$
|
|
443
|
+
var requireObjectCoercible$4 = function (it) {
|
|
444
|
+
if (isNullOrUndefined$3(it)) throw new $TypeError$f("Can't call method on " + it);
|
|
444
445
|
return it;
|
|
445
446
|
};
|
|
446
447
|
|
|
447
448
|
// toObject with fallback for non-array-like ES3 strings
|
|
448
449
|
var IndexedObject$2 = indexedObject;
|
|
449
|
-
var requireObjectCoercible$
|
|
450
|
+
var requireObjectCoercible$3 = requireObjectCoercible$4;
|
|
450
451
|
|
|
451
452
|
var toIndexedObject$5 = function (it) {
|
|
452
|
-
return IndexedObject$2(requireObjectCoercible$
|
|
453
|
+
return IndexedObject$2(requireObjectCoercible$3(it));
|
|
453
454
|
};
|
|
454
455
|
|
|
455
456
|
var check = function (it) {
|
|
@@ -457,7 +458,7 @@ var check = function (it) {
|
|
|
457
458
|
};
|
|
458
459
|
|
|
459
460
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
460
|
-
var global$
|
|
461
|
+
var global$k =
|
|
461
462
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
462
463
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
463
464
|
check(typeof window == 'object' && window) ||
|
|
@@ -468,55 +469,55 @@ var global$m =
|
|
|
468
469
|
// eslint-disable-next-line no-new-func -- fallback
|
|
469
470
|
(function () { return this; })() || Function('return this')();
|
|
470
471
|
|
|
471
|
-
var shared$
|
|
472
|
+
var shared$3 = {exports: {}};
|
|
472
473
|
|
|
473
|
-
var global$
|
|
474
|
+
var global$j = global$k;
|
|
474
475
|
|
|
475
476
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
476
477
|
var defineProperty$6 = Object.defineProperty;
|
|
477
478
|
|
|
478
479
|
var defineGlobalProperty$3 = function (key, value) {
|
|
479
480
|
try {
|
|
480
|
-
defineProperty$6(global$
|
|
481
|
+
defineProperty$6(global$j, key, { value: value, configurable: true, writable: true });
|
|
481
482
|
} catch (error) {
|
|
482
|
-
global$
|
|
483
|
+
global$j[key] = value;
|
|
483
484
|
} return value;
|
|
484
485
|
};
|
|
485
486
|
|
|
486
|
-
var global$
|
|
487
|
+
var global$i = global$k;
|
|
487
488
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
488
489
|
|
|
489
490
|
var SHARED = '__core-js_shared__';
|
|
490
|
-
var store$3 = global$
|
|
491
|
+
var store$3 = global$i[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
491
492
|
|
|
492
493
|
var sharedStore = store$3;
|
|
493
494
|
|
|
494
495
|
var store$2 = sharedStore;
|
|
495
496
|
|
|
496
|
-
(shared$
|
|
497
|
+
(shared$3.exports = function (key, value) {
|
|
497
498
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
498
499
|
})('versions', []).push({
|
|
499
|
-
version: '3.
|
|
500
|
+
version: '3.35.1',
|
|
500
501
|
mode: 'global',
|
|
501
|
-
copyright: '© 2014-
|
|
502
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
502
|
+
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
503
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
|
|
503
504
|
source: 'https://github.com/zloirock/core-js'
|
|
504
505
|
});
|
|
505
506
|
|
|
506
|
-
var requireObjectCoercible$
|
|
507
|
+
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
507
508
|
|
|
508
509
|
var $Object$3 = Object;
|
|
509
510
|
|
|
510
511
|
// `ToObject` abstract operation
|
|
511
512
|
// https://tc39.es/ecma262/#sec-toobject
|
|
512
513
|
var toObject$5 = function (argument) {
|
|
513
|
-
return $Object$3(requireObjectCoercible$
|
|
514
|
+
return $Object$3(requireObjectCoercible$2(argument));
|
|
514
515
|
};
|
|
515
516
|
|
|
516
|
-
var uncurryThis$
|
|
517
|
+
var uncurryThis$h = functionUncurryThis;
|
|
517
518
|
var toObject$4 = toObject$5;
|
|
518
519
|
|
|
519
|
-
var hasOwnProperty = uncurryThis$
|
|
520
|
+
var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
|
|
520
521
|
|
|
521
522
|
// `HasOwnProperty` abstract operation
|
|
522
523
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -525,23 +526,23 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
525
526
|
return hasOwnProperty(toObject$4(it), key);
|
|
526
527
|
};
|
|
527
528
|
|
|
528
|
-
var uncurryThis$
|
|
529
|
+
var uncurryThis$g = functionUncurryThis;
|
|
529
530
|
|
|
530
531
|
var id = 0;
|
|
531
532
|
var postfix = Math.random();
|
|
532
|
-
var toString$
|
|
533
|
+
var toString$5 = uncurryThis$g(1.0.toString);
|
|
533
534
|
|
|
534
535
|
var uid$2 = function (key) {
|
|
535
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
536
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
536
537
|
};
|
|
537
538
|
|
|
538
539
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
539
540
|
|
|
540
|
-
var global$
|
|
541
|
-
var userAgent$
|
|
541
|
+
var global$h = global$k;
|
|
542
|
+
var userAgent$5 = engineUserAgent;
|
|
542
543
|
|
|
543
|
-
var process$3 = global$
|
|
544
|
-
var Deno$1 = global$
|
|
544
|
+
var process$3 = global$h.process;
|
|
545
|
+
var Deno$1 = global$h.Deno;
|
|
545
546
|
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
546
547
|
var v8 = versions && versions.v8;
|
|
547
548
|
var match, version;
|
|
@@ -555,10 +556,10 @@ if (v8) {
|
|
|
555
556
|
|
|
556
557
|
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
|
557
558
|
// so check `userAgent` even if `.v8` exists, but 0
|
|
558
|
-
if (!version && userAgent$
|
|
559
|
-
match = userAgent$
|
|
559
|
+
if (!version && userAgent$5) {
|
|
560
|
+
match = userAgent$5.match(/Edge\/(\d+)/);
|
|
560
561
|
if (!match || match[1] >= 74) {
|
|
561
|
-
match = userAgent$
|
|
562
|
+
match = userAgent$5.match(/Chrome\/(\d+)/);
|
|
562
563
|
if (match) version = +match[1];
|
|
563
564
|
}
|
|
564
565
|
}
|
|
@@ -567,13 +568,13 @@ var engineV8Version = version;
|
|
|
567
568
|
|
|
568
569
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
569
570
|
var V8_VERSION$1 = engineV8Version;
|
|
570
|
-
var fails$
|
|
571
|
-
var global$
|
|
571
|
+
var fails$f = fails$i;
|
|
572
|
+
var global$g = global$k;
|
|
572
573
|
|
|
573
|
-
var $String$5 = global$
|
|
574
|
+
var $String$5 = global$g.String;
|
|
574
575
|
|
|
575
576
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
576
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
577
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$f(function () {
|
|
577
578
|
var symbol = Symbol('symbol detection');
|
|
578
579
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
579
580
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -591,18 +592,18 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
591
592
|
&& !Symbol.sham
|
|
592
593
|
&& typeof Symbol.iterator == 'symbol';
|
|
593
594
|
|
|
594
|
-
var global$
|
|
595
|
-
var shared$
|
|
595
|
+
var global$f = global$k;
|
|
596
|
+
var shared$2 = shared$3.exports;
|
|
596
597
|
var hasOwn$a = hasOwnProperty_1;
|
|
597
598
|
var uid$1 = uid$2;
|
|
598
599
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
599
600
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
600
601
|
|
|
601
|
-
var Symbol$2 = global$
|
|
602
|
-
var WellKnownSymbolsStore = shared$
|
|
602
|
+
var Symbol$2 = global$f.Symbol;
|
|
603
|
+
var WellKnownSymbolsStore = shared$2('wks');
|
|
603
604
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
604
605
|
|
|
605
|
-
var wellKnownSymbol$
|
|
606
|
+
var wellKnownSymbol$g = function (name) {
|
|
606
607
|
if (!hasOwn$a(WellKnownSymbolsStore, name)) {
|
|
607
608
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$2, name)
|
|
608
609
|
? Symbol$2[name]
|
|
@@ -610,67 +611,51 @@ var wellKnownSymbol$i = function (name) {
|
|
|
610
611
|
} return WellKnownSymbolsStore[name];
|
|
611
612
|
};
|
|
612
613
|
|
|
613
|
-
var documentAll$2 = typeof document == 'object' && document.all;
|
|
614
|
-
|
|
615
614
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
616
|
-
|
|
617
|
-
var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
|
|
618
|
-
|
|
619
|
-
var documentAll_1 = {
|
|
620
|
-
all: documentAll$2,
|
|
621
|
-
IS_HTMLDDA: IS_HTMLDDA
|
|
622
|
-
};
|
|
623
|
-
|
|
624
|
-
var $documentAll$1 = documentAll_1;
|
|
625
|
-
|
|
626
|
-
var documentAll$1 = $documentAll$1.all;
|
|
615
|
+
var documentAll = typeof document == 'object' && document.all;
|
|
627
616
|
|
|
628
617
|
// `IsCallable` abstract operation
|
|
629
618
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
630
|
-
|
|
631
|
-
|
|
619
|
+
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
620
|
+
var isCallable$j = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
621
|
+
return typeof argument == 'function' || argument === documentAll;
|
|
632
622
|
} : function (argument) {
|
|
633
623
|
return typeof argument == 'function';
|
|
634
624
|
};
|
|
635
625
|
|
|
636
|
-
var isCallable$
|
|
637
|
-
var $documentAll = documentAll_1;
|
|
638
|
-
|
|
639
|
-
var documentAll = $documentAll.all;
|
|
626
|
+
var isCallable$i = isCallable$j;
|
|
640
627
|
|
|
641
|
-
var isObject$
|
|
642
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
643
|
-
} : function (it) {
|
|
644
|
-
return typeof it == 'object' ? it !== null : isCallable$l(it);
|
|
628
|
+
var isObject$a = function (it) {
|
|
629
|
+
return typeof it == 'object' ? it !== null : isCallable$i(it);
|
|
645
630
|
};
|
|
646
631
|
|
|
647
|
-
var isObject$
|
|
632
|
+
var isObject$9 = isObject$a;
|
|
648
633
|
|
|
649
634
|
var $String$4 = String;
|
|
650
635
|
var $TypeError$e = TypeError;
|
|
651
636
|
|
|
652
637
|
// `Assert: Type(argument) is Object`
|
|
653
|
-
var anObject$
|
|
654
|
-
if (isObject$
|
|
638
|
+
var anObject$c = function (argument) {
|
|
639
|
+
if (isObject$9(argument)) return argument;
|
|
655
640
|
throw new $TypeError$e($String$4(argument) + ' is not an object');
|
|
656
641
|
};
|
|
657
642
|
|
|
658
643
|
var objectDefineProperties = {};
|
|
659
644
|
|
|
660
|
-
var fails$
|
|
645
|
+
var fails$e = fails$i;
|
|
661
646
|
|
|
662
647
|
// Detect IE8's incomplete defineProperty implementation
|
|
663
|
-
var descriptors = !fails$
|
|
648
|
+
var descriptors = !fails$e(function () {
|
|
664
649
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
665
650
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
666
651
|
});
|
|
667
652
|
|
|
668
|
-
var DESCRIPTORS$
|
|
669
|
-
var fails$
|
|
653
|
+
var DESCRIPTORS$b = descriptors;
|
|
654
|
+
var fails$d = fails$i;
|
|
670
655
|
|
|
671
656
|
// V8 ~ Chrome 36-
|
|
672
657
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
673
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
658
|
+
var v8PrototypeDefineBug = DESCRIPTORS$b && fails$d(function () {
|
|
674
659
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
675
660
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
676
661
|
value: 42,
|
|
@@ -680,23 +665,23 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$h(function () {
|
|
|
680
665
|
|
|
681
666
|
var objectDefineProperty = {};
|
|
682
667
|
|
|
683
|
-
var global$
|
|
684
|
-
var isObject$
|
|
668
|
+
var global$e = global$k;
|
|
669
|
+
var isObject$8 = isObject$a;
|
|
685
670
|
|
|
686
|
-
var document$3 = global$
|
|
671
|
+
var document$3 = global$e.document;
|
|
687
672
|
// typeof document.createElement is 'object' in old IE
|
|
688
|
-
var EXISTS$1 = isObject$
|
|
673
|
+
var EXISTS$1 = isObject$8(document$3) && isObject$8(document$3.createElement);
|
|
689
674
|
|
|
690
675
|
var documentCreateElement$2 = function (it) {
|
|
691
676
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
692
677
|
};
|
|
693
678
|
|
|
694
|
-
var DESCRIPTORS$
|
|
695
|
-
var fails$
|
|
679
|
+
var DESCRIPTORS$a = descriptors;
|
|
680
|
+
var fails$c = fails$i;
|
|
696
681
|
var createElement$1 = documentCreateElement$2;
|
|
697
682
|
|
|
698
683
|
// Thanks to IE8 for its funny defineProperty
|
|
699
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
684
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
|
|
700
685
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
701
686
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
702
687
|
get: function () { return 7; }
|
|
@@ -705,29 +690,29 @@ var ie8DomDefine = !DESCRIPTORS$9 && !fails$g(function () {
|
|
|
705
690
|
|
|
706
691
|
var NATIVE_BIND$2 = functionBindNative;
|
|
707
692
|
|
|
708
|
-
var call$
|
|
693
|
+
var call$d = Function.prototype.call;
|
|
709
694
|
|
|
710
|
-
var functionCall = NATIVE_BIND$2 ? call$
|
|
711
|
-
return call$
|
|
695
|
+
var functionCall = NATIVE_BIND$2 ? call$d.bind(call$d) : function () {
|
|
696
|
+
return call$d.apply(call$d, arguments);
|
|
712
697
|
};
|
|
713
698
|
|
|
714
|
-
var global$
|
|
715
|
-
var isCallable$
|
|
699
|
+
var global$d = global$k;
|
|
700
|
+
var isCallable$h = isCallable$j;
|
|
716
701
|
|
|
717
702
|
var aFunction = function (argument) {
|
|
718
|
-
return isCallable$
|
|
703
|
+
return isCallable$h(argument) ? argument : undefined;
|
|
719
704
|
};
|
|
720
705
|
|
|
721
706
|
var getBuiltIn$7 = function (namespace, method) {
|
|
722
|
-
return arguments.length < 2 ? aFunction(global$
|
|
707
|
+
return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
|
|
723
708
|
};
|
|
724
709
|
|
|
725
|
-
var uncurryThis$
|
|
710
|
+
var uncurryThis$f = functionUncurryThis;
|
|
726
711
|
|
|
727
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
712
|
+
var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
|
|
728
713
|
|
|
729
714
|
var getBuiltIn$6 = getBuiltIn$7;
|
|
730
|
-
var isCallable$
|
|
715
|
+
var isCallable$g = isCallable$j;
|
|
731
716
|
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
732
717
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
733
718
|
|
|
@@ -737,12 +722,12 @@ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
737
722
|
return typeof it == 'symbol';
|
|
738
723
|
} : function (it) {
|
|
739
724
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
740
|
-
return isCallable$
|
|
725
|
+
return isCallable$g($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$2(it));
|
|
741
726
|
};
|
|
742
727
|
|
|
743
728
|
var $String$3 = String;
|
|
744
729
|
|
|
745
|
-
var tryToString$
|
|
730
|
+
var tryToString$5 = function (argument) {
|
|
746
731
|
try {
|
|
747
732
|
return $String$3(argument);
|
|
748
733
|
} catch (error) {
|
|
@@ -750,30 +735,30 @@ var tryToString$4 = function (argument) {
|
|
|
750
735
|
}
|
|
751
736
|
};
|
|
752
737
|
|
|
753
|
-
var isCallable$
|
|
754
|
-
var tryToString$
|
|
738
|
+
var isCallable$f = isCallable$j;
|
|
739
|
+
var tryToString$4 = tryToString$5;
|
|
755
740
|
|
|
756
741
|
var $TypeError$d = TypeError;
|
|
757
742
|
|
|
758
743
|
// `Assert: IsCallable(argument) is true`
|
|
759
|
-
var aCallable$
|
|
760
|
-
if (isCallable$
|
|
761
|
-
throw new $TypeError$d(tryToString$
|
|
744
|
+
var aCallable$a = function (argument) {
|
|
745
|
+
if (isCallable$f(argument)) return argument;
|
|
746
|
+
throw new $TypeError$d(tryToString$4(argument) + ' is not a function');
|
|
762
747
|
};
|
|
763
748
|
|
|
764
|
-
var aCallable$
|
|
765
|
-
var isNullOrUndefined$
|
|
749
|
+
var aCallable$9 = aCallable$a;
|
|
750
|
+
var isNullOrUndefined$2 = isNullOrUndefined$4;
|
|
766
751
|
|
|
767
752
|
// `GetMethod` abstract operation
|
|
768
753
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
769
|
-
var getMethod$
|
|
754
|
+
var getMethod$3 = function (V, P) {
|
|
770
755
|
var func = V[P];
|
|
771
|
-
return isNullOrUndefined$
|
|
756
|
+
return isNullOrUndefined$2(func) ? undefined : aCallable$9(func);
|
|
772
757
|
};
|
|
773
758
|
|
|
774
|
-
var call$
|
|
775
|
-
var isCallable$
|
|
776
|
-
var isObject$
|
|
759
|
+
var call$c = functionCall;
|
|
760
|
+
var isCallable$e = isCallable$j;
|
|
761
|
+
var isObject$7 = isObject$a;
|
|
777
762
|
|
|
778
763
|
var $TypeError$c = TypeError;
|
|
779
764
|
|
|
@@ -781,32 +766,32 @@ var $TypeError$c = TypeError;
|
|
|
781
766
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
782
767
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
783
768
|
var fn, val;
|
|
784
|
-
if (pref === 'string' && isCallable$
|
|
785
|
-
if (isCallable$
|
|
786
|
-
if (pref !== 'string' && isCallable$
|
|
769
|
+
if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
|
|
770
|
+
if (isCallable$e(fn = input.valueOf) && !isObject$7(val = call$c(fn, input))) return val;
|
|
771
|
+
if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$7(val = call$c(fn, input))) return val;
|
|
787
772
|
throw new $TypeError$c("Can't convert object to primitive value");
|
|
788
773
|
};
|
|
789
774
|
|
|
790
|
-
var call$
|
|
791
|
-
var isObject$
|
|
775
|
+
var call$b = functionCall;
|
|
776
|
+
var isObject$6 = isObject$a;
|
|
792
777
|
var isSymbol$1 = isSymbol$2;
|
|
793
|
-
var getMethod$
|
|
778
|
+
var getMethod$2 = getMethod$3;
|
|
794
779
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
795
|
-
var wellKnownSymbol$
|
|
780
|
+
var wellKnownSymbol$f = wellKnownSymbol$g;
|
|
796
781
|
|
|
797
782
|
var $TypeError$b = TypeError;
|
|
798
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
783
|
+
var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
|
|
799
784
|
|
|
800
785
|
// `ToPrimitive` abstract operation
|
|
801
786
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
802
787
|
var toPrimitive$1 = function (input, pref) {
|
|
803
|
-
if (!isObject$
|
|
804
|
-
var exoticToPrim = getMethod$
|
|
788
|
+
if (!isObject$6(input) || isSymbol$1(input)) return input;
|
|
789
|
+
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
805
790
|
var result;
|
|
806
791
|
if (exoticToPrim) {
|
|
807
792
|
if (pref === undefined) pref = 'default';
|
|
808
|
-
result = call$
|
|
809
|
-
if (!isObject$
|
|
793
|
+
result = call$b(exoticToPrim, input, pref);
|
|
794
|
+
if (!isObject$6(result) || isSymbol$1(result)) return result;
|
|
810
795
|
throw new $TypeError$b("Can't convert object to primitive value");
|
|
811
796
|
}
|
|
812
797
|
if (pref === undefined) pref = 'number';
|
|
@@ -823,10 +808,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
823
808
|
return isSymbol(key) ? key : key + '';
|
|
824
809
|
};
|
|
825
810
|
|
|
826
|
-
var DESCRIPTORS$
|
|
811
|
+
var DESCRIPTORS$9 = descriptors;
|
|
827
812
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
828
813
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
829
|
-
var anObject$
|
|
814
|
+
var anObject$b = anObject$c;
|
|
830
815
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
831
816
|
|
|
832
817
|
var $TypeError$a = TypeError;
|
|
@@ -840,10 +825,10 @@ var WRITABLE = 'writable';
|
|
|
840
825
|
|
|
841
826
|
// `Object.defineProperty` method
|
|
842
827
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
843
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
844
|
-
anObject$
|
|
828
|
+
objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
829
|
+
anObject$b(O);
|
|
845
830
|
P = toPropertyKey$1(P);
|
|
846
|
-
anObject$
|
|
831
|
+
anObject$b(Attributes);
|
|
847
832
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
848
833
|
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
849
834
|
if (current && current[WRITABLE]) {
|
|
@@ -856,9 +841,9 @@ objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
856
841
|
}
|
|
857
842
|
} return $defineProperty(O, P, Attributes);
|
|
858
843
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
859
|
-
anObject$
|
|
844
|
+
anObject$b(O);
|
|
860
845
|
P = toPropertyKey$1(P);
|
|
861
|
-
anObject$
|
|
846
|
+
anObject$b(Attributes);
|
|
862
847
|
if (IE8_DOM_DEFINE$1) try {
|
|
863
848
|
return $defineProperty(O, P, Attributes);
|
|
864
849
|
} catch (error) { /* empty */ }
|
|
@@ -882,52 +867,53 @@ var trunc = mathTrunc;
|
|
|
882
867
|
|
|
883
868
|
// `ToIntegerOrInfinity` abstract operation
|
|
884
869
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
885
|
-
var toIntegerOrInfinity$
|
|
870
|
+
var toIntegerOrInfinity$2 = function (argument) {
|
|
886
871
|
var number = +argument;
|
|
887
872
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
888
873
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
889
874
|
};
|
|
890
875
|
|
|
891
|
-
var toIntegerOrInfinity$
|
|
876
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
|
|
892
877
|
|
|
893
|
-
var max
|
|
894
|
-
var min$
|
|
878
|
+
var max = Math.max;
|
|
879
|
+
var min$1 = Math.min;
|
|
895
880
|
|
|
896
881
|
// Helper for a popular repeating case of the spec:
|
|
897
882
|
// Let integer be ? ToInteger(index).
|
|
898
883
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
899
884
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
900
|
-
var integer = toIntegerOrInfinity$
|
|
901
|
-
return integer < 0 ? max
|
|
885
|
+
var integer = toIntegerOrInfinity$1(index);
|
|
886
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
|
902
887
|
};
|
|
903
888
|
|
|
904
|
-
var toIntegerOrInfinity
|
|
889
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$2;
|
|
905
890
|
|
|
906
|
-
var min
|
|
891
|
+
var min = Math.min;
|
|
907
892
|
|
|
908
893
|
// `ToLength` abstract operation
|
|
909
894
|
// https://tc39.es/ecma262/#sec-tolength
|
|
910
|
-
var toLength$
|
|
911
|
-
|
|
895
|
+
var toLength$1 = function (argument) {
|
|
896
|
+
var len = toIntegerOrInfinity(argument);
|
|
897
|
+
return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
912
898
|
};
|
|
913
899
|
|
|
914
|
-
var toLength
|
|
900
|
+
var toLength = toLength$1;
|
|
915
901
|
|
|
916
902
|
// `LengthOfArrayLike` abstract operation
|
|
917
903
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
918
|
-
var lengthOfArrayLike$
|
|
919
|
-
return toLength
|
|
904
|
+
var lengthOfArrayLike$4 = function (obj) {
|
|
905
|
+
return toLength(obj.length);
|
|
920
906
|
};
|
|
921
907
|
|
|
922
908
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
923
909
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
924
|
-
var lengthOfArrayLike$
|
|
910
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$4;
|
|
925
911
|
|
|
926
912
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
927
|
-
var createMethod$
|
|
913
|
+
var createMethod$2 = function (IS_INCLUDES) {
|
|
928
914
|
return function ($this, el, fromIndex) {
|
|
929
915
|
var O = toIndexedObject$4($this);
|
|
930
|
-
var length = lengthOfArrayLike$
|
|
916
|
+
var length = lengthOfArrayLike$3(O);
|
|
931
917
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
932
918
|
var value;
|
|
933
919
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -946,21 +932,21 @@ var createMethod$3 = function (IS_INCLUDES) {
|
|
|
946
932
|
var arrayIncludes = {
|
|
947
933
|
// `Array.prototype.includes` method
|
|
948
934
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
949
|
-
includes: createMethod$
|
|
935
|
+
includes: createMethod$2(true),
|
|
950
936
|
// `Array.prototype.indexOf` method
|
|
951
937
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
952
|
-
indexOf: createMethod$
|
|
938
|
+
indexOf: createMethod$2(false)
|
|
953
939
|
};
|
|
954
940
|
|
|
955
941
|
var hiddenKeys$4 = {};
|
|
956
942
|
|
|
957
|
-
var uncurryThis$
|
|
943
|
+
var uncurryThis$e = functionUncurryThis;
|
|
958
944
|
var hasOwn$9 = hasOwnProperty_1;
|
|
959
945
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
960
|
-
var indexOf
|
|
946
|
+
var indexOf = arrayIncludes.indexOf;
|
|
961
947
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
962
948
|
|
|
963
|
-
var push$1 = uncurryThis$
|
|
949
|
+
var push$1 = uncurryThis$e([].push);
|
|
964
950
|
|
|
965
951
|
var objectKeysInternal = function (object, names) {
|
|
966
952
|
var O = toIndexedObject$3(object);
|
|
@@ -970,7 +956,7 @@ var objectKeysInternal = function (object, names) {
|
|
|
970
956
|
for (key in O) !hasOwn$9(hiddenKeys$3, key) && hasOwn$9(O, key) && push$1(result, key);
|
|
971
957
|
// Don't enum bug & hidden keys
|
|
972
958
|
while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
|
|
973
|
-
~indexOf
|
|
959
|
+
~indexOf(result, key) || push$1(result, key);
|
|
974
960
|
}
|
|
975
961
|
return result;
|
|
976
962
|
};
|
|
@@ -996,18 +982,18 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
996
982
|
return internalObjectKeys$1(O, enumBugKeys$2);
|
|
997
983
|
};
|
|
998
984
|
|
|
999
|
-
var DESCRIPTORS$
|
|
985
|
+
var DESCRIPTORS$8 = descriptors;
|
|
1000
986
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1001
987
|
var definePropertyModule$3 = objectDefineProperty;
|
|
1002
|
-
var anObject$
|
|
988
|
+
var anObject$a = anObject$c;
|
|
1003
989
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
1004
990
|
var objectKeys$1 = objectKeys$2;
|
|
1005
991
|
|
|
1006
992
|
// `Object.defineProperties` method
|
|
1007
993
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1008
994
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1009
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1010
|
-
anObject$
|
|
995
|
+
objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
996
|
+
anObject$a(O);
|
|
1011
997
|
var props = toIndexedObject$2(Properties);
|
|
1012
998
|
var keys = objectKeys$1(Properties);
|
|
1013
999
|
var length = keys.length;
|
|
@@ -1021,17 +1007,17 @@ var getBuiltIn$5 = getBuiltIn$7;
|
|
|
1021
1007
|
|
|
1022
1008
|
var html$2 = getBuiltIn$5('document', 'documentElement');
|
|
1023
1009
|
|
|
1024
|
-
var shared$
|
|
1010
|
+
var shared$1 = shared$3.exports;
|
|
1025
1011
|
var uid = uid$2;
|
|
1026
1012
|
|
|
1027
|
-
var keys = shared$
|
|
1013
|
+
var keys = shared$1('keys');
|
|
1028
1014
|
|
|
1029
1015
|
var sharedKey$3 = function (key) {
|
|
1030
1016
|
return keys[key] || (keys[key] = uid(key));
|
|
1031
1017
|
};
|
|
1032
1018
|
|
|
1033
1019
|
/* global ActiveXObject -- old IE, WSH */
|
|
1034
|
-
var anObject$
|
|
1020
|
+
var anObject$9 = anObject$c;
|
|
1035
1021
|
var definePropertiesModule = objectDefineProperties;
|
|
1036
1022
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
1037
1023
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -1105,7 +1091,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
|
|
|
1105
1091
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1106
1092
|
var result;
|
|
1107
1093
|
if (O !== null) {
|
|
1108
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1094
|
+
EmptyConstructor[PROTOTYPE] = anObject$9(O);
|
|
1109
1095
|
result = new EmptyConstructor();
|
|
1110
1096
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1111
1097
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1114,11 +1100,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1114
1100
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1115
1101
|
};
|
|
1116
1102
|
|
|
1117
|
-
var wellKnownSymbol$
|
|
1118
|
-
var create$
|
|
1103
|
+
var wellKnownSymbol$e = wellKnownSymbol$g;
|
|
1104
|
+
var create$1 = objectCreate;
|
|
1119
1105
|
var defineProperty$5 = objectDefineProperty.f;
|
|
1120
1106
|
|
|
1121
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1107
|
+
var UNSCOPABLES = wellKnownSymbol$e('unscopables');
|
|
1122
1108
|
var ArrayPrototype$1 = Array.prototype;
|
|
1123
1109
|
|
|
1124
1110
|
// Array.prototype[@@unscopables]
|
|
@@ -1126,7 +1112,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1126
1112
|
if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
1127
1113
|
defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
|
|
1128
1114
|
configurable: true,
|
|
1129
|
-
value: create$
|
|
1115
|
+
value: create$1(null)
|
|
1130
1116
|
});
|
|
1131
1117
|
}
|
|
1132
1118
|
|
|
@@ -1137,12 +1123,12 @@ var addToUnscopables$2 = function (key) {
|
|
|
1137
1123
|
|
|
1138
1124
|
var iterators = {};
|
|
1139
1125
|
|
|
1140
|
-
var global$
|
|
1141
|
-
var isCallable$
|
|
1126
|
+
var global$c = global$k;
|
|
1127
|
+
var isCallable$d = isCallable$j;
|
|
1142
1128
|
|
|
1143
|
-
var WeakMap$1 = global$
|
|
1129
|
+
var WeakMap$1 = global$c.WeakMap;
|
|
1144
1130
|
|
|
1145
|
-
var weakMapBasicDetection = isCallable$
|
|
1131
|
+
var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
1146
1132
|
|
|
1147
1133
|
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
1148
1134
|
return {
|
|
@@ -1153,11 +1139,11 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
1153
1139
|
};
|
|
1154
1140
|
};
|
|
1155
1141
|
|
|
1156
|
-
var DESCRIPTORS$
|
|
1142
|
+
var DESCRIPTORS$7 = descriptors;
|
|
1157
1143
|
var definePropertyModule$2 = objectDefineProperty;
|
|
1158
1144
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
1159
1145
|
|
|
1160
|
-
var createNonEnumerableProperty$
|
|
1146
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$7 ? function (object, key, value) {
|
|
1161
1147
|
return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
|
|
1162
1148
|
} : function (object, key, value) {
|
|
1163
1149
|
object[key] = value;
|
|
@@ -1165,17 +1151,17 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value
|
|
|
1165
1151
|
};
|
|
1166
1152
|
|
|
1167
1153
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
1168
|
-
var global$
|
|
1169
|
-
var isObject$
|
|
1170
|
-
var createNonEnumerableProperty$
|
|
1154
|
+
var global$b = global$k;
|
|
1155
|
+
var isObject$5 = isObject$a;
|
|
1156
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
1171
1157
|
var hasOwn$8 = hasOwnProperty_1;
|
|
1172
|
-
var shared
|
|
1158
|
+
var shared = sharedStore;
|
|
1173
1159
|
var sharedKey$1 = sharedKey$3;
|
|
1174
1160
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
1175
1161
|
|
|
1176
1162
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
1177
|
-
var TypeError$2 = global$
|
|
1178
|
-
var WeakMap = global$
|
|
1163
|
+
var TypeError$2 = global$b.TypeError;
|
|
1164
|
+
var WeakMap = global$b.WeakMap;
|
|
1179
1165
|
var set$1, get, has;
|
|
1180
1166
|
|
|
1181
1167
|
var enforce = function (it) {
|
|
@@ -1185,14 +1171,14 @@ var enforce = function (it) {
|
|
|
1185
1171
|
var getterFor = function (TYPE) {
|
|
1186
1172
|
return function (it) {
|
|
1187
1173
|
var state;
|
|
1188
|
-
if (!isObject$
|
|
1174
|
+
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
1189
1175
|
throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
1190
1176
|
} return state;
|
|
1191
1177
|
};
|
|
1192
1178
|
};
|
|
1193
1179
|
|
|
1194
|
-
if (NATIVE_WEAK_MAP || shared
|
|
1195
|
-
var store$1 = shared
|
|
1180
|
+
if (NATIVE_WEAK_MAP || shared.state) {
|
|
1181
|
+
var store$1 = shared.state || (shared.state = new WeakMap());
|
|
1196
1182
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
1197
1183
|
store$1.get = store$1.get;
|
|
1198
1184
|
store$1.has = store$1.has;
|
|
@@ -1216,7 +1202,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
1216
1202
|
set$1 = function (it, metadata) {
|
|
1217
1203
|
if (hasOwn$8(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
1218
1204
|
metadata.facade = it;
|
|
1219
|
-
createNonEnumerableProperty$
|
|
1205
|
+
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
1220
1206
|
return metadata;
|
|
1221
1207
|
};
|
|
1222
1208
|
get = function (it) {
|
|
@@ -1253,8 +1239,8 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
1253
1239
|
return !!descriptor && descriptor.enumerable;
|
|
1254
1240
|
} : $propertyIsEnumerable;
|
|
1255
1241
|
|
|
1256
|
-
var DESCRIPTORS$
|
|
1257
|
-
var call$
|
|
1242
|
+
var DESCRIPTORS$6 = descriptors;
|
|
1243
|
+
var call$a = functionCall;
|
|
1258
1244
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
1259
1245
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
1260
1246
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
@@ -1267,28 +1253,28 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
1267
1253
|
|
|
1268
1254
|
// `Object.getOwnPropertyDescriptor` method
|
|
1269
1255
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
1270
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
1256
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
1271
1257
|
O = toIndexedObject$1(O);
|
|
1272
1258
|
P = toPropertyKey(P);
|
|
1273
1259
|
if (IE8_DOM_DEFINE) try {
|
|
1274
1260
|
return $getOwnPropertyDescriptor(O, P);
|
|
1275
1261
|
} catch (error) { /* empty */ }
|
|
1276
|
-
if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$
|
|
1262
|
+
if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
1277
1263
|
};
|
|
1278
1264
|
|
|
1279
1265
|
var makeBuiltIn$3 = {exports: {}};
|
|
1280
1266
|
|
|
1281
|
-
var DESCRIPTORS$
|
|
1267
|
+
var DESCRIPTORS$5 = descriptors;
|
|
1282
1268
|
var hasOwn$6 = hasOwnProperty_1;
|
|
1283
1269
|
|
|
1284
1270
|
var FunctionPrototype$1 = Function.prototype;
|
|
1285
1271
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1286
|
-
var getDescriptor = DESCRIPTORS$
|
|
1272
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
1287
1273
|
|
|
1288
1274
|
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
1289
1275
|
// additional protection from minified / mangled / dropped function names
|
|
1290
1276
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
1291
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
1277
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
1292
1278
|
|
|
1293
1279
|
var functionName = {
|
|
1294
1280
|
EXISTS: EXISTS,
|
|
@@ -1296,14 +1282,14 @@ var functionName = {
|
|
|
1296
1282
|
CONFIGURABLE: CONFIGURABLE
|
|
1297
1283
|
};
|
|
1298
1284
|
|
|
1299
|
-
var uncurryThis$
|
|
1300
|
-
var isCallable$
|
|
1285
|
+
var uncurryThis$d = functionUncurryThis;
|
|
1286
|
+
var isCallable$c = isCallable$j;
|
|
1301
1287
|
var store = sharedStore;
|
|
1302
1288
|
|
|
1303
|
-
var functionToString = uncurryThis$
|
|
1289
|
+
var functionToString = uncurryThis$d(Function.toString);
|
|
1304
1290
|
|
|
1305
1291
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
1306
|
-
if (!isCallable$
|
|
1292
|
+
if (!isCallable$c(store.inspectSource)) {
|
|
1307
1293
|
store.inspectSource = function (it) {
|
|
1308
1294
|
return functionToString(it);
|
|
1309
1295
|
};
|
|
@@ -1311,38 +1297,38 @@ if (!isCallable$f(store.inspectSource)) {
|
|
|
1311
1297
|
|
|
1312
1298
|
var inspectSource$3 = store.inspectSource;
|
|
1313
1299
|
|
|
1314
|
-
var uncurryThis$
|
|
1315
|
-
var fails$
|
|
1316
|
-
var isCallable$
|
|
1300
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1301
|
+
var fails$b = fails$i;
|
|
1302
|
+
var isCallable$b = isCallable$j;
|
|
1317
1303
|
var hasOwn$5 = hasOwnProperty_1;
|
|
1318
|
-
var DESCRIPTORS$
|
|
1304
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1319
1305
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
1320
1306
|
var inspectSource$2 = inspectSource$3;
|
|
1321
1307
|
var InternalStateModule$2 = internalState;
|
|
1322
1308
|
|
|
1323
1309
|
var enforceInternalState = InternalStateModule$2.enforce;
|
|
1324
|
-
var getInternalState$
|
|
1310
|
+
var getInternalState$1 = InternalStateModule$2.get;
|
|
1325
1311
|
var $String$2 = String;
|
|
1326
1312
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
1327
1313
|
var defineProperty$4 = Object.defineProperty;
|
|
1328
|
-
var stringSlice
|
|
1329
|
-
var replace$
|
|
1330
|
-
var join = uncurryThis$
|
|
1314
|
+
var stringSlice = uncurryThis$c(''.slice);
|
|
1315
|
+
var replace$1 = uncurryThis$c(''.replace);
|
|
1316
|
+
var join = uncurryThis$c([].join);
|
|
1331
1317
|
|
|
1332
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
1318
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$b(function () {
|
|
1333
1319
|
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
1334
1320
|
});
|
|
1335
1321
|
|
|
1336
1322
|
var TEMPLATE = String(String).split('String');
|
|
1337
1323
|
|
|
1338
1324
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
1339
|
-
if (stringSlice
|
|
1340
|
-
name = '[' + replace$
|
|
1325
|
+
if (stringSlice($String$2(name), 0, 7) === 'Symbol(') {
|
|
1326
|
+
name = '[' + replace$1($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
1341
1327
|
}
|
|
1342
1328
|
if (options && options.getter) name = 'get ' + name;
|
|
1343
1329
|
if (options && options.setter) name = 'set ' + name;
|
|
1344
1330
|
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
1345
|
-
if (DESCRIPTORS$
|
|
1331
|
+
if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
|
|
1346
1332
|
else value.name = name;
|
|
1347
1333
|
}
|
|
1348
1334
|
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
@@ -1350,7 +1336,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
1350
1336
|
}
|
|
1351
1337
|
try {
|
|
1352
1338
|
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
1353
|
-
if (DESCRIPTORS$
|
|
1339
|
+
if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
|
|
1354
1340
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
1355
1341
|
} else if (value.prototype) value.prototype = undefined;
|
|
1356
1342
|
} catch (error) { /* empty */ }
|
|
@@ -1363,19 +1349,19 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
1363
1349
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
1364
1350
|
// eslint-disable-next-line no-extend-native -- required
|
|
1365
1351
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
1366
|
-
return isCallable$
|
|
1352
|
+
return isCallable$b(this) && getInternalState$1(this).source || inspectSource$2(this);
|
|
1367
1353
|
}, 'toString');
|
|
1368
1354
|
|
|
1369
|
-
var isCallable$
|
|
1355
|
+
var isCallable$a = isCallable$j;
|
|
1370
1356
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1371
1357
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
1372
1358
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
1373
1359
|
|
|
1374
|
-
var defineBuiltIn$
|
|
1360
|
+
var defineBuiltIn$6 = function (O, key, value, options) {
|
|
1375
1361
|
if (!options) options = {};
|
|
1376
1362
|
var simple = options.enumerable;
|
|
1377
1363
|
var name = options.name !== undefined ? options.name : key;
|
|
1378
|
-
if (isCallable$
|
|
1364
|
+
if (isCallable$a(value)) makeBuiltIn$1(value, name, options);
|
|
1379
1365
|
if (options.global) {
|
|
1380
1366
|
if (simple) O[key] = value;
|
|
1381
1367
|
else defineGlobalProperty$1(key, value);
|
|
@@ -1414,18 +1400,18 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1414
1400
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1415
1401
|
|
|
1416
1402
|
var getBuiltIn$4 = getBuiltIn$7;
|
|
1417
|
-
var uncurryThis$
|
|
1403
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1418
1404
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1419
1405
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1420
|
-
var anObject$
|
|
1406
|
+
var anObject$8 = anObject$c;
|
|
1421
1407
|
|
|
1422
|
-
var concat$
|
|
1408
|
+
var concat$1 = uncurryThis$b([].concat);
|
|
1423
1409
|
|
|
1424
1410
|
// all object keys, includes non-enumerable and symbols
|
|
1425
1411
|
var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1426
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
1412
|
+
var keys = getOwnPropertyNamesModule.f(anObject$8(it));
|
|
1427
1413
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1428
|
-
return getOwnPropertySymbols ? concat$
|
|
1414
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
1429
1415
|
};
|
|
1430
1416
|
|
|
1431
1417
|
var hasOwn$4 = hasOwnProperty_1;
|
|
@@ -1445,8 +1431,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
1445
1431
|
}
|
|
1446
1432
|
};
|
|
1447
1433
|
|
|
1448
|
-
var fails$
|
|
1449
|
-
var isCallable$
|
|
1434
|
+
var fails$a = fails$i;
|
|
1435
|
+
var isCallable$9 = isCallable$j;
|
|
1450
1436
|
|
|
1451
1437
|
var replacement = /#|\.prototype\./;
|
|
1452
1438
|
|
|
@@ -1454,7 +1440,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
1454
1440
|
var value = data[normalize(feature)];
|
|
1455
1441
|
return value === POLYFILL ? true
|
|
1456
1442
|
: value === NATIVE ? false
|
|
1457
|
-
: isCallable$
|
|
1443
|
+
: isCallable$9(detection) ? fails$a(detection)
|
|
1458
1444
|
: !!detection;
|
|
1459
1445
|
};
|
|
1460
1446
|
|
|
@@ -1468,10 +1454,10 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
1468
1454
|
|
|
1469
1455
|
var isForced_1 = isForced$2;
|
|
1470
1456
|
|
|
1471
|
-
var global$
|
|
1457
|
+
var global$a = global$k;
|
|
1472
1458
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1473
|
-
var createNonEnumerableProperty$
|
|
1474
|
-
var defineBuiltIn$
|
|
1459
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1460
|
+
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
1475
1461
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1476
1462
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1477
1463
|
var isForced$1 = isForced_1;
|
|
@@ -1497,11 +1483,11 @@ var _export = function (options, source) {
|
|
|
1497
1483
|
var STATIC = options.stat;
|
|
1498
1484
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1499
1485
|
if (GLOBAL) {
|
|
1500
|
-
target = global$
|
|
1486
|
+
target = global$a;
|
|
1501
1487
|
} else if (STATIC) {
|
|
1502
|
-
target = global$
|
|
1488
|
+
target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1503
1489
|
} else {
|
|
1504
|
-
target =
|
|
1490
|
+
target = global$a[TARGET] && global$a[TARGET].prototype;
|
|
1505
1491
|
}
|
|
1506
1492
|
if (target) for (key in source) {
|
|
1507
1493
|
sourceProperty = source[key];
|
|
@@ -1517,15 +1503,15 @@ var _export = function (options, source) {
|
|
|
1517
1503
|
}
|
|
1518
1504
|
// add a flag to not completely full polyfills
|
|
1519
1505
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1520
|
-
createNonEnumerableProperty$
|
|
1506
|
+
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1521
1507
|
}
|
|
1522
|
-
defineBuiltIn$
|
|
1508
|
+
defineBuiltIn$5(target, key, sourceProperty, options);
|
|
1523
1509
|
}
|
|
1524
1510
|
};
|
|
1525
1511
|
|
|
1526
|
-
var fails$
|
|
1512
|
+
var fails$9 = fails$i;
|
|
1527
1513
|
|
|
1528
|
-
var correctPrototypeGetter = !fails$
|
|
1514
|
+
var correctPrototypeGetter = !fails$9(function () {
|
|
1529
1515
|
function F() { /* empty */ }
|
|
1530
1516
|
F.prototype.constructor = null;
|
|
1531
1517
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1533,7 +1519,7 @@ var correctPrototypeGetter = !fails$d(function () {
|
|
|
1533
1519
|
});
|
|
1534
1520
|
|
|
1535
1521
|
var hasOwn$3 = hasOwnProperty_1;
|
|
1536
|
-
var isCallable$
|
|
1522
|
+
var isCallable$8 = isCallable$j;
|
|
1537
1523
|
var toObject$3 = toObject$5;
|
|
1538
1524
|
var sharedKey = sharedKey$3;
|
|
1539
1525
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -1549,19 +1535,19 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1549
1535
|
var object = toObject$3(O);
|
|
1550
1536
|
if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
|
|
1551
1537
|
var constructor = object.constructor;
|
|
1552
|
-
if (isCallable$
|
|
1538
|
+
if (isCallable$8(constructor) && object instanceof constructor) {
|
|
1553
1539
|
return constructor.prototype;
|
|
1554
1540
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1555
1541
|
};
|
|
1556
1542
|
|
|
1557
|
-
var fails$
|
|
1558
|
-
var isCallable$
|
|
1559
|
-
var isObject$
|
|
1543
|
+
var fails$8 = fails$i;
|
|
1544
|
+
var isCallable$7 = isCallable$j;
|
|
1545
|
+
var isObject$4 = isObject$a;
|
|
1560
1546
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1561
|
-
var defineBuiltIn$
|
|
1562
|
-
var wellKnownSymbol$
|
|
1547
|
+
var defineBuiltIn$4 = defineBuiltIn$6;
|
|
1548
|
+
var wellKnownSymbol$d = wellKnownSymbol$g;
|
|
1563
1549
|
|
|
1564
|
-
var ITERATOR$6 = wellKnownSymbol$
|
|
1550
|
+
var ITERATOR$6 = wellKnownSymbol$d('iterator');
|
|
1565
1551
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1566
1552
|
|
|
1567
1553
|
// `%IteratorPrototype%` object
|
|
@@ -1579,7 +1565,7 @@ if ([].keys) {
|
|
|
1579
1565
|
}
|
|
1580
1566
|
}
|
|
1581
1567
|
|
|
1582
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$
|
|
1568
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$4(IteratorPrototype$2) || fails$8(function () {
|
|
1583
1569
|
var test = {};
|
|
1584
1570
|
// FF44- legacy iterators case
|
|
1585
1571
|
return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
|
|
@@ -1589,8 +1575,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1589
1575
|
|
|
1590
1576
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1591
1577
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1592
|
-
if (!isCallable$
|
|
1593
|
-
defineBuiltIn$
|
|
1578
|
+
if (!isCallable$7(IteratorPrototype$2[ITERATOR$6])) {
|
|
1579
|
+
defineBuiltIn$4(IteratorPrototype$2, ITERATOR$6, function () {
|
|
1594
1580
|
return this;
|
|
1595
1581
|
});
|
|
1596
1582
|
}
|
|
@@ -1602,9 +1588,9 @@ var iteratorsCore = {
|
|
|
1602
1588
|
|
|
1603
1589
|
var defineProperty$3 = objectDefineProperty.f;
|
|
1604
1590
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1605
|
-
var wellKnownSymbol$
|
|
1591
|
+
var wellKnownSymbol$c = wellKnownSymbol$g;
|
|
1606
1592
|
|
|
1607
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
1593
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
|
|
1608
1594
|
|
|
1609
1595
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1610
1596
|
if (target && !STATIC) target = target.prototype;
|
|
@@ -1614,7 +1600,7 @@ var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
|
1614
1600
|
};
|
|
1615
1601
|
|
|
1616
1602
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1617
|
-
var create
|
|
1603
|
+
var create = objectCreate;
|
|
1618
1604
|
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
1619
1605
|
var setToStringTag$3 = setToStringTag$4;
|
|
1620
1606
|
var Iterators$4 = iterators;
|
|
@@ -1623,35 +1609,41 @@ var returnThis$1 = function () { return this; };
|
|
|
1623
1609
|
|
|
1624
1610
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1625
1611
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1626
|
-
IteratorConstructor.prototype = create
|
|
1612
|
+
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
1627
1613
|
setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
|
|
1628
1614
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1629
1615
|
return IteratorConstructor;
|
|
1630
1616
|
};
|
|
1631
1617
|
|
|
1632
|
-
var uncurryThis$
|
|
1633
|
-
var aCallable$
|
|
1618
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1619
|
+
var aCallable$8 = aCallable$a;
|
|
1634
1620
|
|
|
1635
1621
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1636
1622
|
try {
|
|
1637
1623
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1638
|
-
return uncurryThis$
|
|
1624
|
+
return uncurryThis$a(aCallable$8(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1639
1625
|
} catch (error) { /* empty */ }
|
|
1640
1626
|
};
|
|
1641
1627
|
|
|
1642
|
-
var
|
|
1628
|
+
var isObject$3 = isObject$a;
|
|
1629
|
+
|
|
1630
|
+
var isPossiblePrototype$1 = function (argument) {
|
|
1631
|
+
return isObject$3(argument) || argument === null;
|
|
1632
|
+
};
|
|
1633
|
+
|
|
1634
|
+
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1643
1635
|
|
|
1644
1636
|
var $String$1 = String;
|
|
1645
1637
|
var $TypeError$9 = TypeError;
|
|
1646
1638
|
|
|
1647
1639
|
var aPossiblePrototype$1 = function (argument) {
|
|
1648
|
-
if (
|
|
1640
|
+
if (isPossiblePrototype(argument)) return argument;
|
|
1649
1641
|
throw new $TypeError$9("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1650
1642
|
};
|
|
1651
1643
|
|
|
1652
1644
|
/* eslint-disable no-proto -- safe */
|
|
1653
1645
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1654
|
-
var anObject$
|
|
1646
|
+
var anObject$7 = anObject$c;
|
|
1655
1647
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1656
1648
|
|
|
1657
1649
|
// `Object.setPrototypeOf` method
|
|
@@ -1668,7 +1660,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1668
1660
|
CORRECT_SETTER = test instanceof Array;
|
|
1669
1661
|
} catch (error) { /* empty */ }
|
|
1670
1662
|
return function setPrototypeOf(O, proto) {
|
|
1671
|
-
anObject$
|
|
1663
|
+
anObject$7(O);
|
|
1672
1664
|
aPossiblePrototype(proto);
|
|
1673
1665
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1674
1666
|
else O.__proto__ = proto;
|
|
@@ -1677,16 +1669,16 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1677
1669
|
}() : undefined);
|
|
1678
1670
|
|
|
1679
1671
|
var $$d = _export;
|
|
1680
|
-
var call$
|
|
1672
|
+
var call$9 = functionCall;
|
|
1681
1673
|
var FunctionName = functionName;
|
|
1682
|
-
var isCallable$
|
|
1674
|
+
var isCallable$6 = isCallable$j;
|
|
1683
1675
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1684
1676
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1685
1677
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
1686
1678
|
var setToStringTag$2 = setToStringTag$4;
|
|
1687
|
-
var createNonEnumerableProperty$
|
|
1688
|
-
var defineBuiltIn$
|
|
1689
|
-
var wellKnownSymbol$
|
|
1679
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1680
|
+
var defineBuiltIn$3 = defineBuiltIn$6;
|
|
1681
|
+
var wellKnownSymbol$b = wellKnownSymbol$g;
|
|
1690
1682
|
var Iterators$3 = iterators;
|
|
1691
1683
|
var IteratorsCore = iteratorsCore;
|
|
1692
1684
|
|
|
@@ -1694,7 +1686,7 @@ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
|
1694
1686
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1695
1687
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1696
1688
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1697
|
-
var ITERATOR$5 = wellKnownSymbol$
|
|
1689
|
+
var ITERATOR$5 = wellKnownSymbol$b('iterator');
|
|
1698
1690
|
var KEYS = 'keys';
|
|
1699
1691
|
var VALUES = 'values';
|
|
1700
1692
|
var ENTRIES = 'entries';
|
|
@@ -1734,8 +1726,8 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1734
1726
|
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1735
1727
|
if (setPrototypeOf$1) {
|
|
1736
1728
|
setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
|
|
1737
|
-
} else if (!isCallable$
|
|
1738
|
-
defineBuiltIn$
|
|
1729
|
+
} else if (!isCallable$6(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
1730
|
+
defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
1739
1731
|
}
|
|
1740
1732
|
}
|
|
1741
1733
|
// Set @@toStringTag to native iterators
|
|
@@ -1746,10 +1738,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1746
1738
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1747
1739
|
if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1748
1740
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1749
|
-
createNonEnumerableProperty$
|
|
1741
|
+
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1750
1742
|
} else {
|
|
1751
1743
|
INCORRECT_VALUES_NAME = true;
|
|
1752
|
-
defaultIterator = function values() { return call$
|
|
1744
|
+
defaultIterator = function values() { return call$9(nativeIterator, this); };
|
|
1753
1745
|
}
|
|
1754
1746
|
}
|
|
1755
1747
|
|
|
@@ -1762,14 +1754,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1762
1754
|
};
|
|
1763
1755
|
if (FORCED) for (KEY in methods) {
|
|
1764
1756
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1765
|
-
defineBuiltIn$
|
|
1757
|
+
defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
|
|
1766
1758
|
}
|
|
1767
1759
|
} else $$d({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1768
1760
|
}
|
|
1769
1761
|
|
|
1770
1762
|
// define iterator
|
|
1771
1763
|
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
1772
|
-
defineBuiltIn$
|
|
1764
|
+
defineBuiltIn$3(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
1773
1765
|
}
|
|
1774
1766
|
Iterators$3[NAME] = defaultIterator;
|
|
1775
1767
|
|
|
@@ -1789,11 +1781,11 @@ var InternalStateModule$1 = internalState;
|
|
|
1789
1781
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1790
1782
|
var defineIterator = iteratorDefine;
|
|
1791
1783
|
var createIterResultObject = createIterResultObject$1;
|
|
1792
|
-
var DESCRIPTORS$
|
|
1784
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1793
1785
|
|
|
1794
1786
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1795
1787
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
1796
|
-
var getInternalState
|
|
1788
|
+
var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
1797
1789
|
|
|
1798
1790
|
// `Array.prototype.entries` method
|
|
1799
1791
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1815,7 +1807,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1815
1807
|
// `%ArrayIteratorPrototype%.next` method
|
|
1816
1808
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1817
1809
|
}, function () {
|
|
1818
|
-
var state = getInternalState
|
|
1810
|
+
var state = getInternalState(this);
|
|
1819
1811
|
var target = state.target;
|
|
1820
1812
|
var index = state.index++;
|
|
1821
1813
|
if (!target || index >= target.length) {
|
|
@@ -1839,7 +1831,7 @@ addToUnscopables$1('values');
|
|
|
1839
1831
|
addToUnscopables$1('entries');
|
|
1840
1832
|
|
|
1841
1833
|
// V8 ~ Chrome 45- bug
|
|
1842
|
-
if (DESCRIPTORS$
|
|
1834
|
+
if (DESCRIPTORS$3 && values.name !== 'values') try {
|
|
1843
1835
|
defineProperty$2(values, 'name', { value: 'values' });
|
|
1844
1836
|
} catch (error) { /* empty */ }
|
|
1845
1837
|
|
|
@@ -1887,22 +1879,22 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1887
1879
|
|
|
1888
1880
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1889
1881
|
|
|
1890
|
-
var global$
|
|
1882
|
+
var global$9 = global$k;
|
|
1891
1883
|
var DOMIterables = domIterables;
|
|
1892
1884
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1893
1885
|
var ArrayIteratorMethods = es_array_iterator;
|
|
1894
|
-
var createNonEnumerableProperty
|
|
1886
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
1895
1887
|
var setToStringTag$1 = setToStringTag$4;
|
|
1896
|
-
var wellKnownSymbol$
|
|
1888
|
+
var wellKnownSymbol$a = wellKnownSymbol$g;
|
|
1897
1889
|
|
|
1898
|
-
var ITERATOR$4 = wellKnownSymbol$
|
|
1890
|
+
var ITERATOR$4 = wellKnownSymbol$a('iterator');
|
|
1899
1891
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
1900
1892
|
|
|
1901
1893
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
1902
1894
|
if (CollectionPrototype) {
|
|
1903
1895
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1904
1896
|
if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
|
|
1905
|
-
createNonEnumerableProperty
|
|
1897
|
+
createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
|
|
1906
1898
|
} catch (error) {
|
|
1907
1899
|
CollectionPrototype[ITERATOR$4] = ArrayValues;
|
|
1908
1900
|
}
|
|
@@ -1910,7 +1902,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1910
1902
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
1911
1903
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
1912
1904
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
1913
|
-
createNonEnumerableProperty
|
|
1905
|
+
createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
|
|
1914
1906
|
} catch (error) {
|
|
1915
1907
|
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
|
|
1916
1908
|
}
|
|
@@ -1919,15 +1911,15 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1919
1911
|
};
|
|
1920
1912
|
|
|
1921
1913
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1922
|
-
handlePrototype(global$
|
|
1914
|
+
handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1923
1915
|
}
|
|
1924
1916
|
|
|
1925
1917
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1926
1918
|
|
|
1927
|
-
var DESCRIPTORS$
|
|
1928
|
-
var uncurryThis$
|
|
1929
|
-
var call$
|
|
1930
|
-
var fails$
|
|
1919
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1920
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1921
|
+
var call$8 = functionCall;
|
|
1922
|
+
var fails$7 = fails$i;
|
|
1931
1923
|
var objectKeys = objectKeys$2;
|
|
1932
1924
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1933
1925
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1938,13 +1930,13 @@ var IndexedObject$1 = indexedObject;
|
|
|
1938
1930
|
var $assign = Object.assign;
|
|
1939
1931
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1940
1932
|
var defineProperty$1 = Object.defineProperty;
|
|
1941
|
-
var concat
|
|
1933
|
+
var concat = uncurryThis$9([].concat);
|
|
1942
1934
|
|
|
1943
1935
|
// `Object.assign` method
|
|
1944
1936
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1945
|
-
var objectAssign = !$assign || fails$
|
|
1937
|
+
var objectAssign = !$assign || fails$7(function () {
|
|
1946
1938
|
// should have correct order of operations (Edge bug)
|
|
1947
|
-
if (DESCRIPTORS$
|
|
1939
|
+
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
|
|
1948
1940
|
enumerable: true,
|
|
1949
1941
|
get: function () {
|
|
1950
1942
|
defineProperty$1(this, 'b', {
|
|
@@ -1970,13 +1962,13 @@ var objectAssign = !$assign || fails$b(function () {
|
|
|
1970
1962
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1971
1963
|
while (argumentsLength > index) {
|
|
1972
1964
|
var S = IndexedObject$1(arguments[index++]);
|
|
1973
|
-
var keys = getOwnPropertySymbols ? concat
|
|
1965
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1974
1966
|
var length = keys.length;
|
|
1975
1967
|
var j = 0;
|
|
1976
1968
|
var key;
|
|
1977
1969
|
while (length > j) {
|
|
1978
1970
|
key = keys[j++];
|
|
1979
|
-
if (!DESCRIPTORS$
|
|
1971
|
+
if (!DESCRIPTORS$2 || call$8(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1980
1972
|
}
|
|
1981
1973
|
} return T;
|
|
1982
1974
|
} : $assign;
|
|
@@ -2240,21 +2232,21 @@ const LegendDialog = ({
|
|
|
2240
2232
|
}, "No layers"))));
|
|
2241
2233
|
};
|
|
2242
2234
|
|
|
2243
|
-
var wellKnownSymbol$
|
|
2235
|
+
var wellKnownSymbol$9 = wellKnownSymbol$g;
|
|
2244
2236
|
|
|
2245
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
2246
|
-
var test$
|
|
2237
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
|
|
2238
|
+
var test$2 = {};
|
|
2247
2239
|
|
|
2248
|
-
test$
|
|
2240
|
+
test$2[TO_STRING_TAG$1] = 'z';
|
|
2249
2241
|
|
|
2250
|
-
var toStringTagSupport = String(test$
|
|
2242
|
+
var toStringTagSupport = String(test$2) === '[object z]';
|
|
2251
2243
|
|
|
2252
2244
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
2253
|
-
var isCallable$
|
|
2245
|
+
var isCallable$5 = isCallable$j;
|
|
2254
2246
|
var classofRaw$1 = classofRaw$2;
|
|
2255
|
-
var wellKnownSymbol$
|
|
2247
|
+
var wellKnownSymbol$8 = wellKnownSymbol$g;
|
|
2256
2248
|
|
|
2257
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
2249
|
+
var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
|
|
2258
2250
|
var $Object = Object;
|
|
2259
2251
|
|
|
2260
2252
|
// ES3 wrong here
|
|
@@ -2268,7 +2260,7 @@ var tryGet = function (it, key) {
|
|
|
2268
2260
|
};
|
|
2269
2261
|
|
|
2270
2262
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
2271
|
-
var classof$
|
|
2263
|
+
var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
2272
2264
|
var O, tag, result;
|
|
2273
2265
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
2274
2266
|
// @@toStringTag case
|
|
@@ -2276,15 +2268,15 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
2276
2268
|
// builtinTag case
|
|
2277
2269
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
2278
2270
|
// ES3 arguments fallback
|
|
2279
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$
|
|
2271
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
|
|
2280
2272
|
};
|
|
2281
2273
|
|
|
2282
|
-
var classof$
|
|
2274
|
+
var classof$5 = classof$6;
|
|
2283
2275
|
|
|
2284
2276
|
var $String = String;
|
|
2285
2277
|
|
|
2286
|
-
var toString$
|
|
2287
|
-
if (classof$
|
|
2278
|
+
var toString$4 = function (argument) {
|
|
2279
|
+
if (classof$5(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
2288
2280
|
return $String(argument);
|
|
2289
2281
|
};
|
|
2290
2282
|
|
|
@@ -2292,21 +2284,21 @@ var toString$6 = function (argument) {
|
|
|
2292
2284
|
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
2293
2285
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
2294
2286
|
|
|
2295
|
-
var uncurryThis$
|
|
2296
|
-
var requireObjectCoercible$
|
|
2297
|
-
var toString$
|
|
2287
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
2288
|
+
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
2289
|
+
var toString$3 = toString$4;
|
|
2298
2290
|
var whitespaces$1 = whitespaces$2;
|
|
2299
2291
|
|
|
2300
|
-
var replace
|
|
2292
|
+
var replace = uncurryThis$8(''.replace);
|
|
2301
2293
|
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
2302
2294
|
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
2303
2295
|
|
|
2304
2296
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
2305
|
-
var createMethod$
|
|
2297
|
+
var createMethod$1 = function (TYPE) {
|
|
2306
2298
|
return function ($this) {
|
|
2307
|
-
var string = toString$
|
|
2308
|
-
if (TYPE & 1) string = replace
|
|
2309
|
-
if (TYPE & 2) string = replace
|
|
2299
|
+
var string = toString$3(requireObjectCoercible$1($this));
|
|
2300
|
+
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
2301
|
+
if (TYPE & 2) string = replace(string, rtrim, '$1');
|
|
2310
2302
|
return string;
|
|
2311
2303
|
};
|
|
2312
2304
|
};
|
|
@@ -2314,36 +2306,36 @@ var createMethod$2 = function (TYPE) {
|
|
|
2314
2306
|
var stringTrim = {
|
|
2315
2307
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
2316
2308
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
2317
|
-
start: createMethod$
|
|
2309
|
+
start: createMethod$1(1),
|
|
2318
2310
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
2319
2311
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
2320
|
-
end: createMethod$
|
|
2312
|
+
end: createMethod$1(2),
|
|
2321
2313
|
// `String.prototype.trim` method
|
|
2322
2314
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
2323
|
-
trim: createMethod$
|
|
2315
|
+
trim: createMethod$1(3)
|
|
2324
2316
|
};
|
|
2325
2317
|
|
|
2326
|
-
var global$
|
|
2327
|
-
var fails$
|
|
2328
|
-
var uncurryThis$
|
|
2329
|
-
var toString$
|
|
2318
|
+
var global$8 = global$k;
|
|
2319
|
+
var fails$6 = fails$i;
|
|
2320
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
2321
|
+
var toString$2 = toString$4;
|
|
2330
2322
|
var trim = stringTrim.trim;
|
|
2331
2323
|
var whitespaces = whitespaces$2;
|
|
2332
2324
|
|
|
2333
|
-
var $parseInt$1 = global$
|
|
2334
|
-
var Symbol$1 = global$
|
|
2325
|
+
var $parseInt$1 = global$8.parseInt;
|
|
2326
|
+
var Symbol$1 = global$8.Symbol;
|
|
2335
2327
|
var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
|
|
2336
2328
|
var hex = /^[+-]?0x/i;
|
|
2337
|
-
var exec$
|
|
2338
|
-
var FORCED$
|
|
2329
|
+
var exec$1 = uncurryThis$7(hex.exec);
|
|
2330
|
+
var FORCED$2 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
2339
2331
|
// MS Edge 18- broken with boxed symbols
|
|
2340
|
-
|| (ITERATOR$3 && !fails$
|
|
2332
|
+
|| (ITERATOR$3 && !fails$6(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
2341
2333
|
|
|
2342
2334
|
// `parseInt` method
|
|
2343
2335
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
2344
|
-
var numberParseInt = FORCED$
|
|
2345
|
-
var S = trim(toString$
|
|
2346
|
-
return $parseInt$1(S, (radix >>> 0) || (exec$
|
|
2336
|
+
var numberParseInt = FORCED$2 ? function parseInt(string, radix) {
|
|
2337
|
+
var S = trim(toString$2(string));
|
|
2338
|
+
return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
|
|
2347
2339
|
} : $parseInt$1;
|
|
2348
2340
|
|
|
2349
2341
|
var $$b = _export;
|
|
@@ -2355,12 +2347,12 @@ $$b({ global: true, forced: parseInt !== $parseInt }, {
|
|
|
2355
2347
|
parseInt: $parseInt
|
|
2356
2348
|
});
|
|
2357
2349
|
|
|
2358
|
-
var anObject$
|
|
2350
|
+
var anObject$6 = anObject$c;
|
|
2359
2351
|
|
|
2360
2352
|
// `RegExp.prototype.flags` getter implementation
|
|
2361
2353
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
2362
|
-
var regexpFlags
|
|
2363
|
-
var that = anObject$
|
|
2354
|
+
var regexpFlags = function () {
|
|
2355
|
+
var that = anObject$6(this);
|
|
2364
2356
|
var result = '';
|
|
2365
2357
|
if (that.hasIndices) result += 'd';
|
|
2366
2358
|
if (that.global) result += 'g';
|
|
@@ -2373,66 +2365,252 @@ var regexpFlags$1 = function () {
|
|
|
2373
2365
|
return result;
|
|
2374
2366
|
};
|
|
2375
2367
|
|
|
2376
|
-
var call$
|
|
2368
|
+
var call$7 = functionCall;
|
|
2377
2369
|
var hasOwn$1 = hasOwnProperty_1;
|
|
2378
2370
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
2379
|
-
var regExpFlags = regexpFlags
|
|
2371
|
+
var regExpFlags = regexpFlags;
|
|
2380
2372
|
|
|
2381
|
-
var RegExpPrototype$
|
|
2373
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
2382
2374
|
|
|
2383
2375
|
var regexpGetFlags = function (R) {
|
|
2384
2376
|
var flags = R.flags;
|
|
2385
|
-
return flags === undefined && !('flags' in RegExpPrototype$
|
|
2386
|
-
? call$
|
|
2377
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$1(R, 'flags') && isPrototypeOf$2(RegExpPrototype$1, R)
|
|
2378
|
+
? call$7(regExpFlags, R) : flags;
|
|
2387
2379
|
};
|
|
2388
2380
|
|
|
2389
2381
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
2390
|
-
var defineBuiltIn$
|
|
2391
|
-
var anObject$
|
|
2392
|
-
var $toString = toString$
|
|
2393
|
-
var fails$
|
|
2382
|
+
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
2383
|
+
var anObject$5 = anObject$c;
|
|
2384
|
+
var $toString = toString$4;
|
|
2385
|
+
var fails$5 = fails$i;
|
|
2394
2386
|
var getRegExpFlags = regexpGetFlags;
|
|
2395
2387
|
|
|
2396
2388
|
var TO_STRING = 'toString';
|
|
2397
|
-
var RegExpPrototype
|
|
2398
|
-
var nativeToString = RegExpPrototype
|
|
2389
|
+
var RegExpPrototype = RegExp.prototype;
|
|
2390
|
+
var nativeToString = RegExpPrototype[TO_STRING];
|
|
2399
2391
|
|
|
2400
|
-
var NOT_GENERIC = fails$
|
|
2392
|
+
var NOT_GENERIC = fails$5(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
2401
2393
|
// FF44- RegExp#toString has a wrong name
|
|
2402
2394
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
2403
2395
|
|
|
2404
2396
|
// `RegExp.prototype.toString` method
|
|
2405
2397
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
2406
2398
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
2407
|
-
defineBuiltIn$
|
|
2408
|
-
var R = anObject$
|
|
2399
|
+
defineBuiltIn$2(RegExpPrototype, TO_STRING, function toString() {
|
|
2400
|
+
var R = anObject$5(this);
|
|
2409
2401
|
var pattern = $toString(R.source);
|
|
2410
2402
|
var flags = $toString(getRegExpFlags(R));
|
|
2411
2403
|
return '/' + pattern + '/' + flags;
|
|
2412
2404
|
}, { unsafe: true });
|
|
2413
2405
|
}
|
|
2414
2406
|
|
|
2415
|
-
var
|
|
2407
|
+
var tryToString$3 = tryToString$5;
|
|
2408
|
+
|
|
2409
|
+
var $TypeError$8 = TypeError;
|
|
2410
|
+
|
|
2411
|
+
var deletePropertyOrThrow$1 = function (O, P) {
|
|
2412
|
+
if (!delete O[P]) throw new $TypeError$8('Cannot delete property ' + tryToString$3(P) + ' of ' + tryToString$3(O));
|
|
2413
|
+
};
|
|
2414
|
+
|
|
2415
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
2416
|
+
|
|
2417
|
+
var arraySlice$2 = uncurryThis$6([].slice);
|
|
2418
|
+
|
|
2419
|
+
var arraySlice$1 = arraySlice$2;
|
|
2420
|
+
|
|
2421
|
+
var floor = Math.floor;
|
|
2422
|
+
|
|
2423
|
+
var sort = function (array, comparefn) {
|
|
2424
|
+
var length = array.length;
|
|
2425
|
+
|
|
2426
|
+
if (length < 8) {
|
|
2427
|
+
// insertion sort
|
|
2428
|
+
var i = 1;
|
|
2429
|
+
var element, j;
|
|
2430
|
+
|
|
2431
|
+
while (i < length) {
|
|
2432
|
+
j = i;
|
|
2433
|
+
element = array[i];
|
|
2434
|
+
while (j && comparefn(array[j - 1], element) > 0) {
|
|
2435
|
+
array[j] = array[--j];
|
|
2436
|
+
}
|
|
2437
|
+
if (j !== i++) array[j] = element;
|
|
2438
|
+
}
|
|
2439
|
+
} else {
|
|
2440
|
+
// merge sort
|
|
2441
|
+
var middle = floor(length / 2);
|
|
2442
|
+
var left = sort(arraySlice$1(array, 0, middle), comparefn);
|
|
2443
|
+
var right = sort(arraySlice$1(array, middle), comparefn);
|
|
2444
|
+
var llength = left.length;
|
|
2445
|
+
var rlength = right.length;
|
|
2446
|
+
var lindex = 0;
|
|
2447
|
+
var rindex = 0;
|
|
2448
|
+
|
|
2449
|
+
while (lindex < llength || rindex < rlength) {
|
|
2450
|
+
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
|
2451
|
+
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
|
2452
|
+
: lindex < llength ? left[lindex++] : right[rindex++];
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
return array;
|
|
2457
|
+
};
|
|
2458
|
+
|
|
2459
|
+
var arraySort = sort;
|
|
2460
|
+
|
|
2461
|
+
var fails$4 = fails$i;
|
|
2462
|
+
|
|
2463
|
+
var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
2464
|
+
var method = [][METHOD_NAME];
|
|
2465
|
+
return !!method && fails$4(function () {
|
|
2466
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
|
2467
|
+
method.call(null, argument || function () { return 1; }, 1);
|
|
2468
|
+
});
|
|
2469
|
+
};
|
|
2470
|
+
|
|
2471
|
+
var userAgent$4 = engineUserAgent;
|
|
2472
|
+
|
|
2473
|
+
var firefox = userAgent$4.match(/firefox\/(\d+)/i);
|
|
2474
|
+
|
|
2475
|
+
var engineFfVersion = !!firefox && +firefox[1];
|
|
2476
|
+
|
|
2477
|
+
var UA = engineUserAgent;
|
|
2478
|
+
|
|
2479
|
+
var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
|
|
2480
|
+
|
|
2481
|
+
var userAgent$3 = engineUserAgent;
|
|
2482
|
+
|
|
2483
|
+
var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
|
|
2484
|
+
|
|
2485
|
+
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
2486
|
+
|
|
2487
|
+
var $$a = _export;
|
|
2488
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
2489
|
+
var aCallable$7 = aCallable$a;
|
|
2490
|
+
var toObject$1 = toObject$5;
|
|
2491
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$4;
|
|
2492
|
+
var deletePropertyOrThrow = deletePropertyOrThrow$1;
|
|
2493
|
+
var toString$1 = toString$4;
|
|
2494
|
+
var fails$3 = fails$i;
|
|
2495
|
+
var internalSort = arraySort;
|
|
2496
|
+
var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
|
|
2497
|
+
var FF = engineFfVersion;
|
|
2498
|
+
var IE_OR_EDGE = engineIsIeOrEdge;
|
|
2499
|
+
var V8 = engineV8Version;
|
|
2500
|
+
var WEBKIT = engineWebkitVersion;
|
|
2501
|
+
|
|
2502
|
+
var test$1 = [];
|
|
2503
|
+
var nativeSort = uncurryThis$5(test$1.sort);
|
|
2504
|
+
var push = uncurryThis$5(test$1.push);
|
|
2505
|
+
|
|
2506
|
+
// IE8-
|
|
2507
|
+
var FAILS_ON_UNDEFINED = fails$3(function () {
|
|
2508
|
+
test$1.sort(undefined);
|
|
2509
|
+
});
|
|
2510
|
+
// V8 bug
|
|
2511
|
+
var FAILS_ON_NULL = fails$3(function () {
|
|
2512
|
+
test$1.sort(null);
|
|
2513
|
+
});
|
|
2514
|
+
// Old WebKit
|
|
2515
|
+
var STRICT_METHOD = arrayMethodIsStrict$1('sort');
|
|
2516
|
+
|
|
2517
|
+
var STABLE_SORT = !fails$3(function () {
|
|
2518
|
+
// feature detection can be too slow, so check engines versions
|
|
2519
|
+
if (V8) return V8 < 70;
|
|
2520
|
+
if (FF && FF > 3) return;
|
|
2521
|
+
if (IE_OR_EDGE) return true;
|
|
2522
|
+
if (WEBKIT) return WEBKIT < 603;
|
|
2523
|
+
|
|
2524
|
+
var result = '';
|
|
2525
|
+
var code, chr, value, index;
|
|
2526
|
+
|
|
2527
|
+
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
|
2528
|
+
for (code = 65; code < 76; code++) {
|
|
2529
|
+
chr = String.fromCharCode(code);
|
|
2530
|
+
|
|
2531
|
+
switch (code) {
|
|
2532
|
+
case 66: case 69: case 70: case 72: value = 3; break;
|
|
2533
|
+
case 68: case 71: value = 4; break;
|
|
2534
|
+
default: value = 2;
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
for (index = 0; index < 47; index++) {
|
|
2538
|
+
test$1.push({ k: chr + index, v: value });
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
|
|
2542
|
+
test$1.sort(function (a, b) { return b.v - a.v; });
|
|
2543
|
+
|
|
2544
|
+
for (index = 0; index < test$1.length; index++) {
|
|
2545
|
+
chr = test$1[index].k.charAt(0);
|
|
2546
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
return result !== 'DGBEFHACIJK';
|
|
2550
|
+
});
|
|
2551
|
+
|
|
2552
|
+
var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
|
|
2553
|
+
|
|
2554
|
+
var getSortCompare = function (comparefn) {
|
|
2555
|
+
return function (x, y) {
|
|
2556
|
+
if (y === undefined) return -1;
|
|
2557
|
+
if (x === undefined) return 1;
|
|
2558
|
+
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
|
2559
|
+
return toString$1(x) > toString$1(y) ? 1 : -1;
|
|
2560
|
+
};
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
// `Array.prototype.sort` method
|
|
2564
|
+
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
|
2565
|
+
$$a({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
2566
|
+
sort: function sort(comparefn) {
|
|
2567
|
+
if (comparefn !== undefined) aCallable$7(comparefn);
|
|
2568
|
+
|
|
2569
|
+
var array = toObject$1(this);
|
|
2570
|
+
|
|
2571
|
+
if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
|
|
2572
|
+
|
|
2573
|
+
var items = [];
|
|
2574
|
+
var arrayLength = lengthOfArrayLike$2(array);
|
|
2575
|
+
var itemsLength, index;
|
|
2576
|
+
|
|
2577
|
+
for (index = 0; index < arrayLength; index++) {
|
|
2578
|
+
if (index in array) push(items, array[index]);
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
internalSort(items, getSortCompare(comparefn));
|
|
2582
|
+
|
|
2583
|
+
itemsLength = lengthOfArrayLike$2(items);
|
|
2584
|
+
index = 0;
|
|
2585
|
+
|
|
2586
|
+
while (index < itemsLength) array[index] = items[index++];
|
|
2587
|
+
while (index < arrayLength) deletePropertyOrThrow(array, index++);
|
|
2588
|
+
|
|
2589
|
+
return array;
|
|
2590
|
+
}
|
|
2591
|
+
});
|
|
2592
|
+
|
|
2593
|
+
var classof$4 = classofRaw$2;
|
|
2416
2594
|
|
|
2417
2595
|
// `IsArray` abstract operation
|
|
2418
2596
|
// https://tc39.es/ecma262/#sec-isarray
|
|
2419
2597
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
2420
2598
|
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
2421
|
-
return classof$
|
|
2599
|
+
return classof$4(argument) === 'Array';
|
|
2422
2600
|
};
|
|
2423
2601
|
|
|
2424
|
-
var $$
|
|
2425
|
-
var uncurryThis$
|
|
2602
|
+
var $$9 = _export;
|
|
2603
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2426
2604
|
var isArray = isArray$1;
|
|
2427
2605
|
|
|
2428
|
-
var nativeReverse = uncurryThis$
|
|
2606
|
+
var nativeReverse = uncurryThis$4([].reverse);
|
|
2429
2607
|
var test = [1, 2];
|
|
2430
2608
|
|
|
2431
2609
|
// `Array.prototype.reverse` method
|
|
2432
2610
|
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
2433
2611
|
// fix for Safari 12.0 bug
|
|
2434
2612
|
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
2435
|
-
$$
|
|
2613
|
+
$$9({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
|
|
2436
2614
|
reverse: function reverse() {
|
|
2437
2615
|
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
2438
2616
|
if (isArray(this)) this.length = this.length;
|
|
@@ -2740,7 +2918,8 @@ class MapDraw extends React.PureComponent {
|
|
|
2740
2918
|
super(props);
|
|
2741
2919
|
this.handleGeoJSONUpdate = newGeoJSON => {
|
|
2742
2920
|
const {
|
|
2743
|
-
selectedFeatureIndex
|
|
2921
|
+
selectedFeatureIndex,
|
|
2922
|
+
mapId
|
|
2744
2923
|
} = this.props;
|
|
2745
2924
|
this.geojson = cloneDeep(newGeoJSON);
|
|
2746
2925
|
/* Ensure that this.snappedPolygonIndex is still within the coordinates array */
|
|
@@ -2755,11 +2934,23 @@ class MapDraw extends React.PureComponent {
|
|
|
2755
2934
|
}
|
|
2756
2935
|
}
|
|
2757
2936
|
}
|
|
2937
|
+
const webmapjs = webmapUtils.getWMJSMapById(mapId);
|
|
2938
|
+
webmapjs && webmapjs.draw('MapDraw::handleGeoJSONUpdate');
|
|
2758
2939
|
};
|
|
2759
2940
|
this.handleExitDrawMode = (reason = 'escaped') => {
|
|
2760
2941
|
const {
|
|
2761
|
-
exitDrawModeCallback
|
|
2942
|
+
exitDrawModeCallback,
|
|
2943
|
+
selectedFeatureIndex
|
|
2762
2944
|
} = this.props;
|
|
2945
|
+
// remove last vertice when pressing ESC while drawing a polygon
|
|
2946
|
+
if (this.myDrawMode === DRAWMODE.POLYGON && this.myEditMode === EDITMODE.ADD_FEATURE && reason === 'escaped') {
|
|
2947
|
+
const currentFeature = this.geojson.features[selectedFeatureIndex];
|
|
2948
|
+
const currentGeometry = currentFeature.geometry;
|
|
2949
|
+
const coordinates = currentGeometry.coordinates[0];
|
|
2950
|
+
if (currentGeometry.type === 'Polygon') {
|
|
2951
|
+
coordinates.splice(coordinates.length - 1, 1);
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2763
2954
|
if (exitDrawModeCallback && (this.myEditMode === EDITMODE.EMPTY || this.myEditMode === EDITMODE.DELETE_FEATURES)) {
|
|
2764
2955
|
exitDrawModeCallback(reason);
|
|
2765
2956
|
}
|
|
@@ -3681,13 +3872,13 @@ class MapDraw extends React.PureComponent {
|
|
|
3681
3872
|
transposePolygon(featureCoords) {
|
|
3682
3873
|
const incX = this.mouseGeoCoord.x - this.snappedGeoCoords.x;
|
|
3683
3874
|
const incY = this.mouseGeoCoord.y - this.snappedGeoCoords.y;
|
|
3875
|
+
this.snappedGeoCoords.x = this.mouseGeoCoord.x;
|
|
3876
|
+
this.snappedGeoCoords.y = this.mouseGeoCoord.y;
|
|
3684
3877
|
for (let j = 0; j < featureCoords.length; j += 1) {
|
|
3685
3878
|
/* eslint-disable-next-line no-param-reassign */
|
|
3686
3879
|
featureCoords[j][0] += incX;
|
|
3687
3880
|
/* eslint-disable-next-line no-param-reassign */
|
|
3688
3881
|
featureCoords[j][1] += incY;
|
|
3689
|
-
this.snappedGeoCoords.x = this.mouseGeoCoord.x;
|
|
3690
|
-
this.snappedGeoCoords.y = this.mouseGeoCoord.y;
|
|
3691
3882
|
}
|
|
3692
3883
|
if (this.myEditMode !== EDITMODE.ADD_FEATURE) {
|
|
3693
3884
|
this.somethingWasDragged = DRAGMODE.FEATURE;
|
|
@@ -3847,21 +4038,42 @@ class MapDraw extends React.PureComponent {
|
|
|
3847
4038
|
}
|
|
3848
4039
|
/* Sort clockwise */
|
|
3849
4040
|
if (fixPolys) {
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
4041
|
+
if (this.checkIfFeatureIsBox(feature)) {
|
|
4042
|
+
// A box should have:
|
|
4043
|
+
// - topleft index 0 and 4
|
|
4044
|
+
// - bottomleft index 1
|
|
4045
|
+
// - bottomright index 2
|
|
4046
|
+
// - topright index 3
|
|
4047
|
+
// This represents counter-clockwise ordering and represents an area (https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.6)
|
|
4048
|
+
// Make sure the coordinate order in a box is always the same
|
|
4049
|
+
const boxCoords = feature.geometry.coordinates[0];
|
|
4050
|
+
if (boxCoords.length === 5) {
|
|
4051
|
+
// Copy the first four coordinates and sort them according Y and then X
|
|
4052
|
+
const sortedYthenX = boxCoords.slice(0, 4).sort((a, b) => {
|
|
4053
|
+
return b[1] - a[1]; // Sort on Y
|
|
4054
|
+
}).sort((a, b) => {
|
|
4055
|
+
return a[0] - b[0]; // Sort on X
|
|
4056
|
+
});
|
|
4057
|
+
// Assign the ordered coordinates back to the geometry of the feature
|
|
4058
|
+
feature.geometry.coordinates[0] = [[...sortedYthenX[0]], [...sortedYthenX[1]], [...sortedYthenX[3]], [...sortedYthenX[2]], [...sortedYthenX[0]]];
|
|
3856
4059
|
}
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
4060
|
+
} else {
|
|
4061
|
+
const checkClockwiseOrder = featureCoordinates => {
|
|
4062
|
+
let sum = 0;
|
|
4063
|
+
for (let j = 0; j < featureCoordinates.length - 1; j += 1) {
|
|
4064
|
+
const currentPoint = featureCoordinates[j];
|
|
4065
|
+
const nextPoint = featureCoordinates[(j + 1) % featureCoordinates.length];
|
|
4066
|
+
sum += (nextPoint[0] - currentPoint[0]) * (nextPoint[1] + currentPoint[1]);
|
|
4067
|
+
}
|
|
4068
|
+
return sum;
|
|
4069
|
+
};
|
|
4070
|
+
const sum = checkClockwiseOrder(featureCoords);
|
|
4071
|
+
if (sum < 0) {
|
|
4072
|
+
featureCoords = featureCoords.reverse();
|
|
4073
|
+
/* The lastly selected vertex is now aways the second in the array */
|
|
4074
|
+
if (this.mouseIsOverVertexNr !== VERTEX.NONE && this.mouseIsOverVertexNr !== VERTEX.MIDDLE_POINT_OF_FEATURE) {
|
|
4075
|
+
this.mouseIsOverVertexNr = 1;
|
|
4076
|
+
}
|
|
3865
4077
|
}
|
|
3866
4078
|
}
|
|
3867
4079
|
}
|
|
@@ -3980,6 +4192,9 @@ class MapDraw extends React.PureComponent {
|
|
|
3980
4192
|
/* Draw all vertices on the edges of the polygons */
|
|
3981
4193
|
for (let j = 0; j < XYCoords.length; j += 1) {
|
|
3982
4194
|
this.drawVertice(ctx, XYCoords[j], this.snappedPolygonIndex === polygonIndex && this.mouseIsOverVertexNr === j && selectedFeatureIndex === featureIndex, false, isInEditMode && selectedFeatureIndex === featureIndex);
|
|
4195
|
+
// Enable the following to debug vertice numbers in the screen
|
|
4196
|
+
// ctx.font = '20px Arial';
|
|
4197
|
+
// ctx.fillText(j, XYCoords[j].x - 10, XYCoords[j].y - 10);
|
|
3983
4198
|
}
|
|
3984
4199
|
if (middle && isInEditMode === true && XYCoords.length >= 3) {
|
|
3985
4200
|
/* Draw middle vertice for the poly if poly covers an area, e.g. when it contains more than three points */
|
|
@@ -4929,11 +5144,24 @@ const simpleBoxGeoJSON = {
|
|
|
4929
5144
|
features: [{
|
|
4930
5145
|
type: 'Feature',
|
|
4931
5146
|
properties: {
|
|
4932
|
-
|
|
5147
|
+
_type: 'box'
|
|
4933
5148
|
},
|
|
4934
5149
|
geometry: {
|
|
4935
5150
|
type: 'Polygon',
|
|
4936
|
-
coordinates: [[[3.6764699246101573,
|
|
5151
|
+
coordinates: [[[3.6764699246101573, 63.564699956881675], [3.6764699246101573, 60.0554711506609], [15.801179052423734, 60.0554711506609], [15.801179052423734, 63.564699956881675], [3.6764699246101573, 63.564699956881675]]]
|
|
5152
|
+
}
|
|
5153
|
+
}]
|
|
5154
|
+
};
|
|
5155
|
+
const simpleBoxGeoJSONWrongOrder = {
|
|
5156
|
+
type: 'FeatureCollection',
|
|
5157
|
+
features: [{
|
|
5158
|
+
type: 'Feature',
|
|
5159
|
+
properties: {
|
|
5160
|
+
_type: 'box'
|
|
5161
|
+
},
|
|
5162
|
+
geometry: {
|
|
5163
|
+
type: 'Polygon',
|
|
5164
|
+
coordinates: [[[3.6764699246101573, 60.0554711506609], [15.801179052423734, 60.0554711506609], [15.801179052423734, 63.564699956881675], [3.6764699246101573, 63.564699956881675], [3.6764699246101573, 60.0554711506609]]]
|
|
4937
5165
|
}
|
|
4938
5166
|
}]
|
|
4939
5167
|
};
|
|
@@ -6040,187 +6268,17 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
6040
6268
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
6041
6269
|
};
|
|
6042
6270
|
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
/**
|
|
6046
|
-
* Throttle execution of a function. Especially useful for rate limiting
|
|
6047
|
-
* execution of handlers on events like resize and scroll.
|
|
6048
|
-
*
|
|
6049
|
-
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)
|
|
6050
|
-
* are most useful.
|
|
6051
|
-
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,
|
|
6052
|
-
* as-is, to `callback` when the throttled-function is executed.
|
|
6053
|
-
* @param {object} [options] - An object to configure options.
|
|
6054
|
-
* @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds
|
|
6055
|
-
* while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed
|
|
6056
|
-
* one final time after the last throttled-function call. (After the throttled-function has not been called for
|
|
6057
|
-
* `delay` milliseconds, the internal counter is reset).
|
|
6058
|
-
* @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback
|
|
6059
|
-
* immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that
|
|
6060
|
-
* callback will never executed if both noLeading = true and noTrailing = true.
|
|
6061
|
-
* @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is
|
|
6062
|
-
* false (at end), schedule `callback` to execute after `delay` ms.
|
|
6063
|
-
*
|
|
6064
|
-
* @returns {Function} A new, throttled, function.
|
|
6065
|
-
*/
|
|
6066
|
-
function throttle (delay, callback, options) {
|
|
6067
|
-
var _ref = options || {},
|
|
6068
|
-
_ref$noTrailing = _ref.noTrailing,
|
|
6069
|
-
noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,
|
|
6070
|
-
_ref$noLeading = _ref.noLeading,
|
|
6071
|
-
noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,
|
|
6072
|
-
_ref$debounceMode = _ref.debounceMode,
|
|
6073
|
-
debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;
|
|
6074
|
-
/*
|
|
6075
|
-
* After wrapper has stopped being called, this timeout ensures that
|
|
6076
|
-
* `callback` is executed at the proper times in `throttle` and `end`
|
|
6077
|
-
* debounce modes.
|
|
6078
|
-
*/
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
var timeoutID;
|
|
6082
|
-
var cancelled = false; // Keep track of the last time `callback` was executed.
|
|
6083
|
-
|
|
6084
|
-
var lastExec = 0; // Function to clear existing timeout
|
|
6085
|
-
|
|
6086
|
-
function clearExistingTimeout() {
|
|
6087
|
-
if (timeoutID) {
|
|
6088
|
-
clearTimeout(timeoutID);
|
|
6089
|
-
}
|
|
6090
|
-
} // Function to cancel next exec
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
function cancel(options) {
|
|
6094
|
-
var _ref2 = options || {},
|
|
6095
|
-
_ref2$upcomingOnly = _ref2.upcomingOnly,
|
|
6096
|
-
upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
|
6097
|
-
|
|
6098
|
-
clearExistingTimeout();
|
|
6099
|
-
cancelled = !upcomingOnly;
|
|
6100
|
-
}
|
|
6101
|
-
/*
|
|
6102
|
-
* The `wrapper` function encapsulates all of the throttling / debouncing
|
|
6103
|
-
* functionality and when executed will limit the rate at which `callback`
|
|
6104
|
-
* is executed.
|
|
6105
|
-
*/
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
function wrapper() {
|
|
6109
|
-
for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6110
|
-
arguments_[_key] = arguments[_key];
|
|
6111
|
-
}
|
|
6112
|
-
|
|
6113
|
-
var self = this;
|
|
6114
|
-
var elapsed = Date.now() - lastExec;
|
|
6115
|
-
|
|
6116
|
-
if (cancelled) {
|
|
6117
|
-
return;
|
|
6118
|
-
} // Execute `callback` and update the `lastExec` timestamp.
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
function exec() {
|
|
6122
|
-
lastExec = Date.now();
|
|
6123
|
-
callback.apply(self, arguments_);
|
|
6124
|
-
}
|
|
6125
|
-
/*
|
|
6126
|
-
* If `debounceMode` is true (at begin) this is used to clear the flag
|
|
6127
|
-
* to allow future `callback` executions.
|
|
6128
|
-
*/
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
function clear() {
|
|
6132
|
-
timeoutID = undefined;
|
|
6133
|
-
}
|
|
6134
|
-
|
|
6135
|
-
if (!noLeading && debounceMode && !timeoutID) {
|
|
6136
|
-
/*
|
|
6137
|
-
* Since `wrapper` is being called for the first time and
|
|
6138
|
-
* `debounceMode` is true (at begin), execute `callback`
|
|
6139
|
-
* and noLeading != true.
|
|
6140
|
-
*/
|
|
6141
|
-
exec();
|
|
6142
|
-
}
|
|
6143
|
-
|
|
6144
|
-
clearExistingTimeout();
|
|
6145
|
-
|
|
6146
|
-
if (debounceMode === undefined && elapsed > delay) {
|
|
6147
|
-
if (noLeading) {
|
|
6148
|
-
/*
|
|
6149
|
-
* In throttle mode with noLeading, if `delay` time has
|
|
6150
|
-
* been exceeded, update `lastExec` and schedule `callback`
|
|
6151
|
-
* to execute after `delay` ms.
|
|
6152
|
-
*/
|
|
6153
|
-
lastExec = Date.now();
|
|
6154
|
-
|
|
6155
|
-
if (!noTrailing) {
|
|
6156
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, delay);
|
|
6157
|
-
}
|
|
6158
|
-
} else {
|
|
6159
|
-
/*
|
|
6160
|
-
* In throttle mode without noLeading, if `delay` time has been exceeded, execute
|
|
6161
|
-
* `callback`.
|
|
6162
|
-
*/
|
|
6163
|
-
exec();
|
|
6164
|
-
}
|
|
6165
|
-
} else if (noTrailing !== true) {
|
|
6166
|
-
/*
|
|
6167
|
-
* In trailing throttle mode, since `delay` time has not been
|
|
6168
|
-
* exceeded, schedule `callback` to execute `delay` ms after most
|
|
6169
|
-
* recent execution.
|
|
6170
|
-
*
|
|
6171
|
-
* If `debounceMode` is true (at begin), schedule `clear` to execute
|
|
6172
|
-
* after `delay` ms.
|
|
6173
|
-
*
|
|
6174
|
-
* If `debounceMode` is false (at end), schedule `callback` to
|
|
6175
|
-
* execute after `delay` ms.
|
|
6176
|
-
*/
|
|
6177
|
-
timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
|
6178
|
-
}
|
|
6179
|
-
}
|
|
6180
|
-
|
|
6181
|
-
wrapper.cancel = cancel; // Return the wrapper function.
|
|
6182
|
-
|
|
6183
|
-
return wrapper;
|
|
6184
|
-
}
|
|
6185
|
-
|
|
6186
|
-
/* eslint-disable no-undefined */
|
|
6187
|
-
/**
|
|
6188
|
-
* Debounce execution of a function. Debouncing, unlike throttling,
|
|
6189
|
-
* guarantees that a function is only executed a single time, either at the
|
|
6190
|
-
* very beginning of a series of calls, or at the very end.
|
|
6191
|
-
*
|
|
6192
|
-
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
|
|
6193
|
-
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
|
|
6194
|
-
* to `callback` when the debounced-function is executed.
|
|
6195
|
-
* @param {object} [options] - An object to configure options.
|
|
6196
|
-
* @param {boolean} [options.atBegin] - Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
|
|
6197
|
-
* after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
|
|
6198
|
-
* (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
|
|
6199
|
-
*
|
|
6200
|
-
* @returns {Function} A new, debounced function.
|
|
6201
|
-
*/
|
|
6202
|
-
|
|
6203
|
-
function debounce (delay, callback, options) {
|
|
6204
|
-
var _ref = options || {},
|
|
6205
|
-
_ref$atBegin = _ref.atBegin,
|
|
6206
|
-
atBegin = _ref$atBegin === void 0 ? false : _ref$atBegin;
|
|
6207
|
-
|
|
6208
|
-
return throttle(delay, callback, {
|
|
6209
|
-
debounceMode: atBegin !== false
|
|
6210
|
-
});
|
|
6211
|
-
}
|
|
6212
|
-
|
|
6213
|
-
var aCallable$6 = aCallable$9;
|
|
6214
|
-
var toObject$1 = toObject$5;
|
|
6271
|
+
var aCallable$6 = aCallable$a;
|
|
6272
|
+
var toObject = toObject$5;
|
|
6215
6273
|
var IndexedObject = indexedObject;
|
|
6216
|
-
var lengthOfArrayLike$1 = lengthOfArrayLike$
|
|
6274
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$4;
|
|
6217
6275
|
|
|
6218
|
-
var $TypeError$
|
|
6276
|
+
var $TypeError$7 = TypeError;
|
|
6219
6277
|
|
|
6220
6278
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
6221
|
-
var createMethod
|
|
6279
|
+
var createMethod = function (IS_RIGHT) {
|
|
6222
6280
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
6223
|
-
var O = toObject
|
|
6281
|
+
var O = toObject(that);
|
|
6224
6282
|
var self = IndexedObject(O);
|
|
6225
6283
|
var length = lengthOfArrayLike$1(O);
|
|
6226
6284
|
aCallable$6(callbackfn);
|
|
@@ -6234,7 +6292,7 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
6234
6292
|
}
|
|
6235
6293
|
index += i;
|
|
6236
6294
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
6237
|
-
throw new $TypeError$
|
|
6295
|
+
throw new $TypeError$7('Reduce of empty array with no initial value');
|
|
6238
6296
|
}
|
|
6239
6297
|
}
|
|
6240
6298
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -6247,30 +6305,20 @@ var createMethod$1 = function (IS_RIGHT) {
|
|
|
6247
6305
|
var arrayReduce = {
|
|
6248
6306
|
// `Array.prototype.reduce` method
|
|
6249
6307
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
6250
|
-
left: createMethod
|
|
6308
|
+
left: createMethod(false),
|
|
6251
6309
|
// `Array.prototype.reduceRight` method
|
|
6252
6310
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
6253
|
-
right: createMethod
|
|
6311
|
+
right: createMethod(true)
|
|
6254
6312
|
};
|
|
6255
6313
|
|
|
6256
|
-
var
|
|
6314
|
+
var global$7 = global$k;
|
|
6315
|
+
var classof$3 = classofRaw$2;
|
|
6257
6316
|
|
|
6258
|
-
var
|
|
6259
|
-
var method = [][METHOD_NAME];
|
|
6260
|
-
return !!method && fails$8(function () {
|
|
6261
|
-
// eslint-disable-next-line no-useless-call -- required for testing
|
|
6262
|
-
method.call(null, argument || function () { return 1; }, 1);
|
|
6263
|
-
});
|
|
6264
|
-
};
|
|
6265
|
-
|
|
6266
|
-
var global$9 = global$m;
|
|
6267
|
-
var classof$4 = classofRaw$2;
|
|
6317
|
+
var engineIsNode = classof$3(global$7.process) === 'process';
|
|
6268
6318
|
|
|
6269
|
-
var
|
|
6270
|
-
|
|
6271
|
-
var $$9 = _export;
|
|
6319
|
+
var $$8 = _export;
|
|
6272
6320
|
var $reduce = arrayReduce.left;
|
|
6273
|
-
var arrayMethodIsStrict = arrayMethodIsStrict$
|
|
6321
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$2;
|
|
6274
6322
|
var CHROME_VERSION = engineV8Version;
|
|
6275
6323
|
var IS_NODE$4 = engineIsNode;
|
|
6276
6324
|
|
|
@@ -6281,7 +6329,7 @@ var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
|
6281
6329
|
|
|
6282
6330
|
// `Array.prototype.reduce` method
|
|
6283
6331
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
6284
|
-
$$
|
|
6332
|
+
$$8({ target: 'Array', proto: true, forced: FORCED }, {
|
|
6285
6333
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
6286
6334
|
var length = arguments.length;
|
|
6287
6335
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
@@ -6299,16 +6347,16 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
6299
6347
|
|
|
6300
6348
|
var getBuiltIn$3 = getBuiltIn$7;
|
|
6301
6349
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
6302
|
-
var wellKnownSymbol$
|
|
6303
|
-
var DESCRIPTORS = descriptors;
|
|
6350
|
+
var wellKnownSymbol$7 = wellKnownSymbol$g;
|
|
6351
|
+
var DESCRIPTORS$1 = descriptors;
|
|
6304
6352
|
|
|
6305
|
-
var SPECIES$
|
|
6353
|
+
var SPECIES$2 = wellKnownSymbol$7('species');
|
|
6306
6354
|
|
|
6307
6355
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
6308
6356
|
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
6309
6357
|
|
|
6310
|
-
if (DESCRIPTORS && Constructor && !Constructor[SPECIES$
|
|
6311
|
-
defineBuiltInAccessor(Constructor, SPECIES$
|
|
6358
|
+
if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
|
|
6359
|
+
defineBuiltInAccessor(Constructor, SPECIES$2, {
|
|
6312
6360
|
configurable: true,
|
|
6313
6361
|
get: function () { return this; }
|
|
6314
6362
|
});
|
|
@@ -6317,31 +6365,30 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
6317
6365
|
|
|
6318
6366
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
6319
6367
|
|
|
6320
|
-
var $TypeError$
|
|
6368
|
+
var $TypeError$6 = TypeError;
|
|
6321
6369
|
|
|
6322
6370
|
var anInstance$1 = function (it, Prototype) {
|
|
6323
6371
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
6324
|
-
throw new $TypeError$
|
|
6372
|
+
throw new $TypeError$6('Incorrect invocation');
|
|
6325
6373
|
};
|
|
6326
6374
|
|
|
6327
|
-
var uncurryThis$
|
|
6328
|
-
var fails$
|
|
6329
|
-
var isCallable$
|
|
6330
|
-
var classof$
|
|
6375
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
6376
|
+
var fails$2 = fails$i;
|
|
6377
|
+
var isCallable$4 = isCallable$j;
|
|
6378
|
+
var classof$2 = classof$6;
|
|
6331
6379
|
var getBuiltIn$2 = getBuiltIn$7;
|
|
6332
6380
|
var inspectSource$1 = inspectSource$3;
|
|
6333
6381
|
|
|
6334
6382
|
var noop = function () { /* empty */ };
|
|
6335
|
-
var empty = [];
|
|
6336
6383
|
var construct = getBuiltIn$2('Reflect', 'construct');
|
|
6337
6384
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
6338
|
-
var exec
|
|
6385
|
+
var exec = uncurryThis$3(constructorRegExp.exec);
|
|
6339
6386
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
6340
6387
|
|
|
6341
6388
|
var isConstructorModern = function isConstructor(argument) {
|
|
6342
|
-
if (!isCallable$
|
|
6389
|
+
if (!isCallable$4(argument)) return false;
|
|
6343
6390
|
try {
|
|
6344
|
-
construct(noop,
|
|
6391
|
+
construct(noop, [], argument);
|
|
6345
6392
|
return true;
|
|
6346
6393
|
} catch (error) {
|
|
6347
6394
|
return false;
|
|
@@ -6349,8 +6396,8 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
6349
6396
|
};
|
|
6350
6397
|
|
|
6351
6398
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
6352
|
-
if (!isCallable$
|
|
6353
|
-
switch (classof$
|
|
6399
|
+
if (!isCallable$4(argument)) return false;
|
|
6400
|
+
switch (classof$2(argument)) {
|
|
6354
6401
|
case 'AsyncFunction':
|
|
6355
6402
|
case 'GeneratorFunction':
|
|
6356
6403
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -6359,7 +6406,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
6359
6406
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
6360
6407
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
6361
6408
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
6362
|
-
return INCORRECT_TO_STRING || !!exec
|
|
6409
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
|
|
6363
6410
|
} catch (error) {
|
|
6364
6411
|
return true;
|
|
6365
6412
|
}
|
|
@@ -6369,7 +6416,7 @@ isConstructorLegacy.sham = true;
|
|
|
6369
6416
|
|
|
6370
6417
|
// `IsConstructor` abstract operation
|
|
6371
6418
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
6372
|
-
var isConstructor$1 = !construct || fails$
|
|
6419
|
+
var isConstructor$1 = !construct || fails$2(function () {
|
|
6373
6420
|
var called;
|
|
6374
6421
|
return isConstructorModern(isConstructorModern.call)
|
|
6375
6422
|
|| !isConstructorModern(Object)
|
|
@@ -6378,57 +6425,57 @@ var isConstructor$1 = !construct || fails$7(function () {
|
|
|
6378
6425
|
}) ? isConstructorLegacy : isConstructorModern;
|
|
6379
6426
|
|
|
6380
6427
|
var isConstructor = isConstructor$1;
|
|
6381
|
-
var tryToString$2 = tryToString$
|
|
6428
|
+
var tryToString$2 = tryToString$5;
|
|
6382
6429
|
|
|
6383
|
-
var $TypeError$
|
|
6430
|
+
var $TypeError$5 = TypeError;
|
|
6384
6431
|
|
|
6385
6432
|
// `Assert: IsConstructor(argument) is true`
|
|
6386
6433
|
var aConstructor$1 = function (argument) {
|
|
6387
6434
|
if (isConstructor(argument)) return argument;
|
|
6388
|
-
throw new $TypeError$
|
|
6435
|
+
throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
|
|
6389
6436
|
};
|
|
6390
6437
|
|
|
6391
|
-
var anObject$
|
|
6438
|
+
var anObject$4 = anObject$c;
|
|
6392
6439
|
var aConstructor = aConstructor$1;
|
|
6393
|
-
var isNullOrUndefined$
|
|
6394
|
-
var wellKnownSymbol$
|
|
6440
|
+
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
6441
|
+
var wellKnownSymbol$6 = wellKnownSymbol$g;
|
|
6395
6442
|
|
|
6396
|
-
var SPECIES$
|
|
6443
|
+
var SPECIES$1 = wellKnownSymbol$6('species');
|
|
6397
6444
|
|
|
6398
6445
|
// `SpeciesConstructor` abstract operation
|
|
6399
6446
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
6400
6447
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
6401
|
-
var C = anObject$
|
|
6448
|
+
var C = anObject$4(O).constructor;
|
|
6402
6449
|
var S;
|
|
6403
|
-
return C === undefined || isNullOrUndefined$
|
|
6450
|
+
return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
6404
6451
|
};
|
|
6405
6452
|
|
|
6406
6453
|
var NATIVE_BIND$1 = functionBindNative;
|
|
6407
6454
|
|
|
6408
6455
|
var FunctionPrototype = Function.prototype;
|
|
6409
|
-
var apply$
|
|
6410
|
-
var call$
|
|
6456
|
+
var apply$1 = FunctionPrototype.apply;
|
|
6457
|
+
var call$6 = FunctionPrototype.call;
|
|
6411
6458
|
|
|
6412
6459
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
6413
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
6414
|
-
return call$
|
|
6460
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$6.bind(apply$1) : function () {
|
|
6461
|
+
return call$6.apply(apply$1, arguments);
|
|
6415
6462
|
});
|
|
6416
6463
|
|
|
6417
6464
|
var classofRaw = classofRaw$2;
|
|
6418
|
-
var uncurryThis$
|
|
6465
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
6419
6466
|
|
|
6420
6467
|
var functionUncurryThisClause = function (fn) {
|
|
6421
6468
|
// Nashorn bug:
|
|
6422
6469
|
// https://github.com/zloirock/core-js/issues/1128
|
|
6423
6470
|
// https://github.com/zloirock/core-js/issues/1130
|
|
6424
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
6471
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
|
|
6425
6472
|
};
|
|
6426
6473
|
|
|
6427
|
-
var uncurryThis$
|
|
6428
|
-
var aCallable$5 = aCallable$
|
|
6474
|
+
var uncurryThis$1 = functionUncurryThisClause;
|
|
6475
|
+
var aCallable$5 = aCallable$a;
|
|
6429
6476
|
var NATIVE_BIND = functionBindNative;
|
|
6430
6477
|
|
|
6431
|
-
var bind$4 = uncurryThis$
|
|
6478
|
+
var bind$4 = uncurryThis$1(uncurryThis$1.bind);
|
|
6432
6479
|
|
|
6433
6480
|
// optional / simple context binding
|
|
6434
6481
|
var functionBindContext = function (fn, that) {
|
|
@@ -6438,14 +6485,10 @@ var functionBindContext = function (fn, that) {
|
|
|
6438
6485
|
};
|
|
6439
6486
|
};
|
|
6440
6487
|
|
|
6441
|
-
var
|
|
6442
|
-
|
|
6443
|
-
var arraySlice$1 = uncurryThis$6([].slice);
|
|
6444
|
-
|
|
6445
|
-
var $TypeError$5 = TypeError;
|
|
6488
|
+
var $TypeError$4 = TypeError;
|
|
6446
6489
|
|
|
6447
6490
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
6448
|
-
if (passed < required) throw new $TypeError$
|
|
6491
|
+
if (passed < required) throw new $TypeError$4('Not enough arguments');
|
|
6449
6492
|
return passed;
|
|
6450
6493
|
};
|
|
6451
6494
|
|
|
@@ -6454,34 +6497,34 @@ var userAgent$2 = engineUserAgent;
|
|
|
6454
6497
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
6455
6498
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
6456
6499
|
|
|
6457
|
-
var global$
|
|
6458
|
-
var apply
|
|
6500
|
+
var global$6 = global$k;
|
|
6501
|
+
var apply = functionApply;
|
|
6459
6502
|
var bind$3 = functionBindContext;
|
|
6460
|
-
var isCallable$
|
|
6503
|
+
var isCallable$3 = isCallable$j;
|
|
6461
6504
|
var hasOwn = hasOwnProperty_1;
|
|
6462
|
-
var fails$
|
|
6505
|
+
var fails$1 = fails$i;
|
|
6463
6506
|
var html = html$2;
|
|
6464
|
-
var arraySlice = arraySlice$
|
|
6507
|
+
var arraySlice = arraySlice$2;
|
|
6465
6508
|
var createElement = documentCreateElement$2;
|
|
6466
6509
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
6467
6510
|
var IS_IOS$1 = engineIsIos;
|
|
6468
6511
|
var IS_NODE$3 = engineIsNode;
|
|
6469
6512
|
|
|
6470
|
-
var set = global$
|
|
6471
|
-
var clear = global$
|
|
6472
|
-
var process$2 = global$
|
|
6473
|
-
var Dispatch = global$
|
|
6474
|
-
var Function$1 = global$
|
|
6475
|
-
var MessageChannel = global$
|
|
6476
|
-
var String$1 = global$
|
|
6513
|
+
var set = global$6.setImmediate;
|
|
6514
|
+
var clear = global$6.clearImmediate;
|
|
6515
|
+
var process$2 = global$6.process;
|
|
6516
|
+
var Dispatch = global$6.Dispatch;
|
|
6517
|
+
var Function$1 = global$6.Function;
|
|
6518
|
+
var MessageChannel = global$6.MessageChannel;
|
|
6519
|
+
var String$1 = global$6.String;
|
|
6477
6520
|
var counter = 0;
|
|
6478
6521
|
var queue$2 = {};
|
|
6479
6522
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
6480
6523
|
var $location, defer, channel, port;
|
|
6481
6524
|
|
|
6482
|
-
fails$
|
|
6525
|
+
fails$1(function () {
|
|
6483
6526
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
6484
|
-
$location = global$
|
|
6527
|
+
$location = global$6.location;
|
|
6485
6528
|
});
|
|
6486
6529
|
|
|
6487
6530
|
var run = function (id) {
|
|
@@ -6504,17 +6547,17 @@ var eventListener = function (event) {
|
|
|
6504
6547
|
|
|
6505
6548
|
var globalPostMessageDefer = function (id) {
|
|
6506
6549
|
// old engines have not location.origin
|
|
6507
|
-
global$
|
|
6550
|
+
global$6.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
6508
6551
|
};
|
|
6509
6552
|
|
|
6510
6553
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
6511
6554
|
if (!set || !clear) {
|
|
6512
6555
|
set = function setImmediate(handler) {
|
|
6513
6556
|
validateArgumentsLength(arguments.length, 1);
|
|
6514
|
-
var fn = isCallable$
|
|
6557
|
+
var fn = isCallable$3(handler) ? handler : Function$1(handler);
|
|
6515
6558
|
var args = arraySlice(arguments, 1);
|
|
6516
6559
|
queue$2[++counter] = function () {
|
|
6517
|
-
apply
|
|
6560
|
+
apply(fn, undefined, args);
|
|
6518
6561
|
};
|
|
6519
6562
|
defer(counter);
|
|
6520
6563
|
return counter;
|
|
@@ -6542,14 +6585,14 @@ if (!set || !clear) {
|
|
|
6542
6585
|
// Browsers with postMessage, skip WebWorkers
|
|
6543
6586
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
6544
6587
|
} else if (
|
|
6545
|
-
global$
|
|
6546
|
-
isCallable$
|
|
6547
|
-
!global$
|
|
6588
|
+
global$6.addEventListener &&
|
|
6589
|
+
isCallable$3(global$6.postMessage) &&
|
|
6590
|
+
!global$6.importScripts &&
|
|
6548
6591
|
$location && $location.protocol !== 'file:' &&
|
|
6549
|
-
!fails$
|
|
6592
|
+
!fails$1(globalPostMessageDefer)
|
|
6550
6593
|
) {
|
|
6551
6594
|
defer = globalPostMessageDefer;
|
|
6552
|
-
global$
|
|
6595
|
+
global$6.addEventListener('message', eventListener, false);
|
|
6553
6596
|
// IE8-
|
|
6554
6597
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
6555
6598
|
defer = function (id) {
|
|
@@ -6571,6 +6614,19 @@ var task$1 = {
|
|
|
6571
6614
|
clear: clear
|
|
6572
6615
|
};
|
|
6573
6616
|
|
|
6617
|
+
var global$5 = global$k;
|
|
6618
|
+
var DESCRIPTORS = descriptors;
|
|
6619
|
+
|
|
6620
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
6621
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
6622
|
+
|
|
6623
|
+
// Avoid NodeJS experimental warning
|
|
6624
|
+
var safeGetBuiltIn$1 = function (name) {
|
|
6625
|
+
if (!DESCRIPTORS) return global$5[name];
|
|
6626
|
+
var descriptor = getOwnPropertyDescriptor(global$5, name);
|
|
6627
|
+
return descriptor && descriptor.value;
|
|
6628
|
+
};
|
|
6629
|
+
|
|
6574
6630
|
var Queue$2 = function () {
|
|
6575
6631
|
this.head = null;
|
|
6576
6632
|
this.tail = null;
|
|
@@ -6604,9 +6660,9 @@ var userAgent = engineUserAgent;
|
|
|
6604
6660
|
|
|
6605
6661
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
6606
6662
|
|
|
6607
|
-
var global$
|
|
6663
|
+
var global$4 = global$k;
|
|
6664
|
+
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
6608
6665
|
var bind$2 = functionBindContext;
|
|
6609
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
6610
6666
|
var macrotask = task$1.set;
|
|
6611
6667
|
var Queue$1 = queue$1;
|
|
6612
6668
|
var IS_IOS = engineIsIos;
|
|
@@ -6614,13 +6670,11 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
6614
6670
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
6615
6671
|
var IS_NODE$2 = engineIsNode;
|
|
6616
6672
|
|
|
6617
|
-
var MutationObserver = global$
|
|
6618
|
-
var document$2 = global$
|
|
6619
|
-
var process$1 = global$
|
|
6620
|
-
var Promise$1 = global$
|
|
6621
|
-
|
|
6622
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$7, 'queueMicrotask');
|
|
6623
|
-
var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
6673
|
+
var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
|
|
6674
|
+
var document$2 = global$4.document;
|
|
6675
|
+
var process$1 = global$4.process;
|
|
6676
|
+
var Promise$1 = global$4.Promise;
|
|
6677
|
+
var microtask$1 = safeGetBuiltIn('queueMicrotask');
|
|
6624
6678
|
var notify$1, toggle, node, promise, then;
|
|
6625
6679
|
|
|
6626
6680
|
// modern engines have queueMicrotask method
|
|
@@ -6671,7 +6725,7 @@ if (!microtask$1) {
|
|
|
6671
6725
|
// - setTimeout
|
|
6672
6726
|
} else {
|
|
6673
6727
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
6674
|
-
macrotask = bind$2(macrotask, global$
|
|
6728
|
+
macrotask = bind$2(macrotask, global$4);
|
|
6675
6729
|
notify$1 = function () {
|
|
6676
6730
|
macrotask(flush);
|
|
6677
6731
|
};
|
|
@@ -6700,9 +6754,9 @@ var perform$3 = function (exec) {
|
|
|
6700
6754
|
}
|
|
6701
6755
|
};
|
|
6702
6756
|
|
|
6703
|
-
var global$
|
|
6757
|
+
var global$3 = global$k;
|
|
6704
6758
|
|
|
6705
|
-
var promiseNativeConstructor = global$
|
|
6759
|
+
var promiseNativeConstructor = global$3.Promise;
|
|
6706
6760
|
|
|
6707
6761
|
/* global Deno -- Deno case */
|
|
6708
6762
|
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
@@ -6714,20 +6768,20 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
6714
6768
|
&& typeof window == 'object'
|
|
6715
6769
|
&& typeof document == 'object';
|
|
6716
6770
|
|
|
6717
|
-
var global$
|
|
6771
|
+
var global$2 = global$k;
|
|
6718
6772
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
6719
|
-
var isCallable$
|
|
6773
|
+
var isCallable$2 = isCallable$j;
|
|
6720
6774
|
var isForced = isForced_1;
|
|
6721
6775
|
var inspectSource = inspectSource$3;
|
|
6722
|
-
var wellKnownSymbol$
|
|
6776
|
+
var wellKnownSymbol$5 = wellKnownSymbol$g;
|
|
6723
6777
|
var IS_BROWSER = engineIsBrowser;
|
|
6724
6778
|
var IS_DENO = engineIsDeno;
|
|
6725
6779
|
var V8_VERSION = engineV8Version;
|
|
6726
6780
|
|
|
6727
6781
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
6728
|
-
var SPECIES
|
|
6782
|
+
var SPECIES = wellKnownSymbol$5('species');
|
|
6729
6783
|
var SUBCLASSING = false;
|
|
6730
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$
|
|
6784
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
|
|
6731
6785
|
|
|
6732
6786
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
6733
6787
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -6746,7 +6800,7 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
|
6746
6800
|
exec(function () { /* empty */ }, function () { /* empty */ });
|
|
6747
6801
|
};
|
|
6748
6802
|
var constructor = promise.constructor = {};
|
|
6749
|
-
constructor[SPECIES
|
|
6803
|
+
constructor[SPECIES] = FakePromise;
|
|
6750
6804
|
SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
|
|
6751
6805
|
if (!SUBCLASSING) return true;
|
|
6752
6806
|
// Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
@@ -6761,14 +6815,14 @@ var promiseConstructorDetection = {
|
|
|
6761
6815
|
|
|
6762
6816
|
var newPromiseCapability$2 = {};
|
|
6763
6817
|
|
|
6764
|
-
var aCallable$4 = aCallable$
|
|
6818
|
+
var aCallable$4 = aCallable$a;
|
|
6765
6819
|
|
|
6766
|
-
var $TypeError$
|
|
6820
|
+
var $TypeError$3 = TypeError;
|
|
6767
6821
|
|
|
6768
6822
|
var PromiseCapability = function (C) {
|
|
6769
6823
|
var resolve, reject;
|
|
6770
6824
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
6771
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError$
|
|
6825
|
+
if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
|
|
6772
6826
|
resolve = $$resolve;
|
|
6773
6827
|
reject = $$reject;
|
|
6774
6828
|
});
|
|
@@ -6782,17 +6836,17 @@ newPromiseCapability$2.f = function (C) {
|
|
|
6782
6836
|
return new PromiseCapability(C);
|
|
6783
6837
|
};
|
|
6784
6838
|
|
|
6785
|
-
var $$
|
|
6839
|
+
var $$7 = _export;
|
|
6786
6840
|
var IS_NODE = engineIsNode;
|
|
6787
|
-
var global$
|
|
6788
|
-
var call$
|
|
6789
|
-
var defineBuiltIn$
|
|
6841
|
+
var global$1 = global$k;
|
|
6842
|
+
var call$5 = functionCall;
|
|
6843
|
+
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
6790
6844
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
6791
6845
|
var setToStringTag = setToStringTag$4;
|
|
6792
6846
|
var setSpecies = setSpecies$1;
|
|
6793
|
-
var aCallable$3 = aCallable$
|
|
6794
|
-
var isCallable$
|
|
6795
|
-
var isObject$2 = isObject$
|
|
6847
|
+
var aCallable$3 = aCallable$a;
|
|
6848
|
+
var isCallable$1 = isCallable$j;
|
|
6849
|
+
var isObject$2 = isObject$a;
|
|
6796
6850
|
var anInstance = anInstance$1;
|
|
6797
6851
|
var speciesConstructor = speciesConstructor$1;
|
|
6798
6852
|
var task = task$1.set;
|
|
@@ -6814,13 +6868,13 @@ var setInternalState = InternalStateModule.set;
|
|
|
6814
6868
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
6815
6869
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
6816
6870
|
var PromisePrototype = NativePromisePrototype$1;
|
|
6817
|
-
var TypeError$1 = global$
|
|
6818
|
-
var document$1 = global$
|
|
6819
|
-
var process = global$
|
|
6871
|
+
var TypeError$1 = global$1.TypeError;
|
|
6872
|
+
var document$1 = global$1.document;
|
|
6873
|
+
var process = global$1.process;
|
|
6820
6874
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
6821
6875
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
6822
6876
|
|
|
6823
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
6877
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
|
|
6824
6878
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
6825
6879
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
6826
6880
|
var PENDING = 0;
|
|
@@ -6834,7 +6888,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
6834
6888
|
// helpers
|
|
6835
6889
|
var isThenable = function (it) {
|
|
6836
6890
|
var then;
|
|
6837
|
-
return isObject$2(it) && isCallable$
|
|
6891
|
+
return isObject$2(it) && isCallable$1(then = it.then) ? then : false;
|
|
6838
6892
|
};
|
|
6839
6893
|
|
|
6840
6894
|
var callReaction = function (reaction, state) {
|
|
@@ -6863,7 +6917,7 @@ var callReaction = function (reaction, state) {
|
|
|
6863
6917
|
if (result === reaction.promise) {
|
|
6864
6918
|
reject(new TypeError$1('Promise-chain cycle'));
|
|
6865
6919
|
} else if (then = isThenable(result)) {
|
|
6866
|
-
call$
|
|
6920
|
+
call$5(then, result, resolve, reject);
|
|
6867
6921
|
} else resolve(result);
|
|
6868
6922
|
} else reject(value);
|
|
6869
6923
|
} catch (error) {
|
|
@@ -6893,14 +6947,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
6893
6947
|
event.promise = promise;
|
|
6894
6948
|
event.reason = reason;
|
|
6895
6949
|
event.initEvent(name, false, true);
|
|
6896
|
-
global$
|
|
6950
|
+
global$1.dispatchEvent(event);
|
|
6897
6951
|
} else event = { promise: promise, reason: reason };
|
|
6898
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
6952
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
|
|
6899
6953
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
6900
6954
|
};
|
|
6901
6955
|
|
|
6902
6956
|
var onUnhandled = function (state) {
|
|
6903
|
-
call$
|
|
6957
|
+
call$5(task, global$1, function () {
|
|
6904
6958
|
var promise = state.facade;
|
|
6905
6959
|
var value = state.value;
|
|
6906
6960
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -6923,7 +6977,7 @@ var isUnhandled = function (state) {
|
|
|
6923
6977
|
};
|
|
6924
6978
|
|
|
6925
6979
|
var onHandleUnhandled = function (state) {
|
|
6926
|
-
call$
|
|
6980
|
+
call$5(task, global$1, function () {
|
|
6927
6981
|
var promise = state.facade;
|
|
6928
6982
|
if (IS_NODE) {
|
|
6929
6983
|
process.emit('rejectionHandled', promise);
|
|
@@ -6957,7 +7011,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
6957
7011
|
microtask(function () {
|
|
6958
7012
|
var wrapper = { done: false };
|
|
6959
7013
|
try {
|
|
6960
|
-
call$
|
|
7014
|
+
call$5(then, value,
|
|
6961
7015
|
bind$1(internalResolve, wrapper, state),
|
|
6962
7016
|
bind$1(internalReject, wrapper, state)
|
|
6963
7017
|
);
|
|
@@ -6981,7 +7035,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
6981
7035
|
PromiseConstructor = function Promise(executor) {
|
|
6982
7036
|
anInstance(this, PromisePrototype);
|
|
6983
7037
|
aCallable$3(executor);
|
|
6984
|
-
call$
|
|
7038
|
+
call$5(Internal, this);
|
|
6985
7039
|
var state = getInternalPromiseState(this);
|
|
6986
7040
|
try {
|
|
6987
7041
|
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
@@ -7008,12 +7062,12 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
7008
7062
|
|
|
7009
7063
|
// `Promise.prototype.then` method
|
|
7010
7064
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
7011
|
-
Internal.prototype = defineBuiltIn$
|
|
7065
|
+
Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
7012
7066
|
var state = getInternalPromiseState(this);
|
|
7013
7067
|
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
7014
7068
|
state.parent = true;
|
|
7015
|
-
reaction.ok = isCallable$
|
|
7016
|
-
reaction.fail = isCallable$
|
|
7069
|
+
reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
|
|
7070
|
+
reaction.fail = isCallable$1(onRejected) && onRejected;
|
|
7017
7071
|
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
7018
7072
|
if (state.state === PENDING) state.reactions.add(reaction);
|
|
7019
7073
|
else microtask(function () {
|
|
@@ -7036,15 +7090,15 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
7036
7090
|
: newGenericPromiseCapability(C);
|
|
7037
7091
|
};
|
|
7038
7092
|
|
|
7039
|
-
if (isCallable$
|
|
7093
|
+
if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
7040
7094
|
nativeThen = NativePromisePrototype$1.then;
|
|
7041
7095
|
|
|
7042
7096
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
7043
7097
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
7044
|
-
defineBuiltIn$
|
|
7098
|
+
defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
7045
7099
|
var that = this;
|
|
7046
7100
|
return new PromiseConstructor(function (resolve, reject) {
|
|
7047
|
-
call$
|
|
7101
|
+
call$5(nativeThen, that, resolve, reject);
|
|
7048
7102
|
}).then(onFulfilled, onRejected);
|
|
7049
7103
|
// https://github.com/zloirock/core-js/issues/640
|
|
7050
7104
|
}, { unsafe: true });
|
|
@@ -7062,17 +7116,17 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
7062
7116
|
}
|
|
7063
7117
|
}
|
|
7064
7118
|
|
|
7065
|
-
$$
|
|
7119
|
+
$$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
7066
7120
|
Promise: PromiseConstructor
|
|
7067
7121
|
});
|
|
7068
7122
|
|
|
7069
7123
|
setToStringTag(PromiseConstructor, PROMISE, false);
|
|
7070
7124
|
setSpecies(PROMISE);
|
|
7071
7125
|
|
|
7072
|
-
var wellKnownSymbol$
|
|
7126
|
+
var wellKnownSymbol$4 = wellKnownSymbol$g;
|
|
7073
7127
|
var Iterators$1 = iterators;
|
|
7074
7128
|
|
|
7075
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
7129
|
+
var ITERATOR$2 = wellKnownSymbol$4('iterator');
|
|
7076
7130
|
var ArrayPrototype = Array.prototype;
|
|
7077
7131
|
|
|
7078
7132
|
// check on default Array iterator
|
|
@@ -7080,70 +7134,70 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
7080
7134
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
7081
7135
|
};
|
|
7082
7136
|
|
|
7083
|
-
var classof$
|
|
7084
|
-
var getMethod$
|
|
7085
|
-
var isNullOrUndefined
|
|
7137
|
+
var classof$1 = classof$6;
|
|
7138
|
+
var getMethod$1 = getMethod$3;
|
|
7139
|
+
var isNullOrUndefined = isNullOrUndefined$4;
|
|
7086
7140
|
var Iterators = iterators;
|
|
7087
|
-
var wellKnownSymbol$
|
|
7141
|
+
var wellKnownSymbol$3 = wellKnownSymbol$g;
|
|
7088
7142
|
|
|
7089
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
7143
|
+
var ITERATOR$1 = wellKnownSymbol$3('iterator');
|
|
7090
7144
|
|
|
7091
7145
|
var getIteratorMethod$2 = function (it) {
|
|
7092
|
-
if (!isNullOrUndefined
|
|
7093
|
-
|| getMethod$
|
|
7094
|
-
|| Iterators[classof$
|
|
7146
|
+
if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
|
|
7147
|
+
|| getMethod$1(it, '@@iterator')
|
|
7148
|
+
|| Iterators[classof$1(it)];
|
|
7095
7149
|
};
|
|
7096
7150
|
|
|
7097
|
-
var call$
|
|
7098
|
-
var aCallable$2 = aCallable$
|
|
7099
|
-
var anObject$
|
|
7100
|
-
var tryToString$1 = tryToString$
|
|
7151
|
+
var call$4 = functionCall;
|
|
7152
|
+
var aCallable$2 = aCallable$a;
|
|
7153
|
+
var anObject$3 = anObject$c;
|
|
7154
|
+
var tryToString$1 = tryToString$5;
|
|
7101
7155
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
7102
7156
|
|
|
7103
|
-
var $TypeError$
|
|
7157
|
+
var $TypeError$2 = TypeError;
|
|
7104
7158
|
|
|
7105
7159
|
var getIterator$1 = function (argument, usingIterator) {
|
|
7106
7160
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
7107
|
-
if (aCallable$2(iteratorMethod)) return anObject$
|
|
7108
|
-
throw new $TypeError$
|
|
7161
|
+
if (aCallable$2(iteratorMethod)) return anObject$3(call$4(iteratorMethod, argument));
|
|
7162
|
+
throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
|
|
7109
7163
|
};
|
|
7110
7164
|
|
|
7111
|
-
var call$
|
|
7112
|
-
var anObject$
|
|
7113
|
-
var getMethod
|
|
7165
|
+
var call$3 = functionCall;
|
|
7166
|
+
var anObject$2 = anObject$c;
|
|
7167
|
+
var getMethod = getMethod$3;
|
|
7114
7168
|
|
|
7115
7169
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
7116
7170
|
var innerResult, innerError;
|
|
7117
|
-
anObject$
|
|
7171
|
+
anObject$2(iterator);
|
|
7118
7172
|
try {
|
|
7119
|
-
innerResult = getMethod
|
|
7173
|
+
innerResult = getMethod(iterator, 'return');
|
|
7120
7174
|
if (!innerResult) {
|
|
7121
7175
|
if (kind === 'throw') throw value;
|
|
7122
7176
|
return value;
|
|
7123
7177
|
}
|
|
7124
|
-
innerResult = call$
|
|
7178
|
+
innerResult = call$3(innerResult, iterator);
|
|
7125
7179
|
} catch (error) {
|
|
7126
7180
|
innerError = true;
|
|
7127
7181
|
innerResult = error;
|
|
7128
7182
|
}
|
|
7129
7183
|
if (kind === 'throw') throw value;
|
|
7130
7184
|
if (innerError) throw innerResult;
|
|
7131
|
-
anObject$
|
|
7185
|
+
anObject$2(innerResult);
|
|
7132
7186
|
return value;
|
|
7133
7187
|
};
|
|
7134
7188
|
|
|
7135
7189
|
var bind = functionBindContext;
|
|
7136
|
-
var call$
|
|
7137
|
-
var anObject$
|
|
7138
|
-
var tryToString = tryToString$
|
|
7190
|
+
var call$2 = functionCall;
|
|
7191
|
+
var anObject$1 = anObject$c;
|
|
7192
|
+
var tryToString = tryToString$5;
|
|
7139
7193
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
7140
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
7194
|
+
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
7141
7195
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
7142
7196
|
var getIterator = getIterator$1;
|
|
7143
7197
|
var getIteratorMethod = getIteratorMethod$2;
|
|
7144
7198
|
var iteratorClose = iteratorClose$1;
|
|
7145
7199
|
|
|
7146
|
-
var $TypeError$
|
|
7200
|
+
var $TypeError$1 = TypeError;
|
|
7147
7201
|
|
|
7148
7202
|
var Result = function (stopped, result) {
|
|
7149
7203
|
this.stopped = stopped;
|
|
@@ -7168,7 +7222,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7168
7222
|
|
|
7169
7223
|
var callFn = function (value) {
|
|
7170
7224
|
if (AS_ENTRIES) {
|
|
7171
|
-
anObject$
|
|
7225
|
+
anObject$1(value);
|
|
7172
7226
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
7173
7227
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
7174
7228
|
};
|
|
@@ -7179,7 +7233,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7179
7233
|
iterator = iterable;
|
|
7180
7234
|
} else {
|
|
7181
7235
|
iterFn = getIteratorMethod(iterable);
|
|
7182
|
-
if (!iterFn) throw new $TypeError$
|
|
7236
|
+
if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
|
|
7183
7237
|
// optimisation for array iterators
|
|
7184
7238
|
if (isArrayIteratorMethod(iterFn)) {
|
|
7185
7239
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
@@ -7191,7 +7245,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7191
7245
|
}
|
|
7192
7246
|
|
|
7193
7247
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
7194
|
-
while (!(step = call$
|
|
7248
|
+
while (!(step = call$2(next, iterator)).done) {
|
|
7195
7249
|
try {
|
|
7196
7250
|
result = callFn(step.value);
|
|
7197
7251
|
} catch (error) {
|
|
@@ -7201,9 +7255,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
7201
7255
|
} return new Result(false);
|
|
7202
7256
|
};
|
|
7203
7257
|
|
|
7204
|
-
var wellKnownSymbol$
|
|
7258
|
+
var wellKnownSymbol$2 = wellKnownSymbol$g;
|
|
7205
7259
|
|
|
7206
|
-
var ITERATOR = wellKnownSymbol$
|
|
7260
|
+
var ITERATOR = wellKnownSymbol$2('iterator');
|
|
7207
7261
|
var SAFE_CLOSING = false;
|
|
7208
7262
|
|
|
7209
7263
|
try {
|
|
@@ -7250,9 +7304,9 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
7250
7304
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
7251
7305
|
});
|
|
7252
7306
|
|
|
7253
|
-
var $$
|
|
7254
|
-
var call$
|
|
7255
|
-
var aCallable$1 = aCallable$
|
|
7307
|
+
var $$6 = _export;
|
|
7308
|
+
var call$1 = functionCall;
|
|
7309
|
+
var aCallable$1 = aCallable$a;
|
|
7256
7310
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
7257
7311
|
var perform$1 = perform$3;
|
|
7258
7312
|
var iterate$1 = iterate$2;
|
|
@@ -7260,7 +7314,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
7260
7314
|
|
|
7261
7315
|
// `Promise.all` method
|
|
7262
7316
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
7263
|
-
$$
|
|
7317
|
+
$$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
7264
7318
|
all: function all(iterable) {
|
|
7265
7319
|
var C = this;
|
|
7266
7320
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -7275,7 +7329,7 @@ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7275
7329
|
var index = counter++;
|
|
7276
7330
|
var alreadyCalled = false;
|
|
7277
7331
|
remaining++;
|
|
7278
|
-
call$
|
|
7332
|
+
call$1($promiseResolve, C, promise).then(function (value) {
|
|
7279
7333
|
if (alreadyCalled) return;
|
|
7280
7334
|
alreadyCalled = true;
|
|
7281
7335
|
values[index] = value;
|
|
@@ -7289,34 +7343,34 @@ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7289
7343
|
}
|
|
7290
7344
|
});
|
|
7291
7345
|
|
|
7292
|
-
var $$
|
|
7346
|
+
var $$5 = _export;
|
|
7293
7347
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
7294
7348
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
7295
7349
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
7296
|
-
var isCallable
|
|
7297
|
-
var defineBuiltIn
|
|
7350
|
+
var isCallable = isCallable$j;
|
|
7351
|
+
var defineBuiltIn = defineBuiltIn$6;
|
|
7298
7352
|
|
|
7299
7353
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
7300
7354
|
|
|
7301
7355
|
// `Promise.prototype.catch` method
|
|
7302
7356
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
7303
|
-
$$
|
|
7357
|
+
$$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
7304
7358
|
'catch': function (onRejected) {
|
|
7305
7359
|
return this.then(undefined, onRejected);
|
|
7306
7360
|
}
|
|
7307
7361
|
});
|
|
7308
7362
|
|
|
7309
7363
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
7310
|
-
if (isCallable
|
|
7364
|
+
if (isCallable(NativePromiseConstructor)) {
|
|
7311
7365
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
7312
7366
|
if (NativePromisePrototype['catch'] !== method) {
|
|
7313
|
-
defineBuiltIn
|
|
7367
|
+
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
7314
7368
|
}
|
|
7315
7369
|
}
|
|
7316
7370
|
|
|
7317
|
-
var $$
|
|
7318
|
-
var call
|
|
7319
|
-
var aCallable = aCallable$
|
|
7371
|
+
var $$4 = _export;
|
|
7372
|
+
var call = functionCall;
|
|
7373
|
+
var aCallable = aCallable$a;
|
|
7320
7374
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
7321
7375
|
var perform = perform$3;
|
|
7322
7376
|
var iterate = iterate$2;
|
|
@@ -7324,7 +7378,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
7324
7378
|
|
|
7325
7379
|
// `Promise.race` method
|
|
7326
7380
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
7327
|
-
$$
|
|
7381
|
+
$$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
7328
7382
|
race: function race(iterable) {
|
|
7329
7383
|
var C = this;
|
|
7330
7384
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -7332,7 +7386,7 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7332
7386
|
var result = perform(function () {
|
|
7333
7387
|
var $promiseResolve = aCallable(C.resolve);
|
|
7334
7388
|
iterate(iterable, function (promise) {
|
|
7335
|
-
call
|
|
7389
|
+
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
7336
7390
|
});
|
|
7337
7391
|
});
|
|
7338
7392
|
if (result.error) reject(result.value);
|
|
@@ -7340,27 +7394,27 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
7340
7394
|
}
|
|
7341
7395
|
});
|
|
7342
7396
|
|
|
7343
|
-
var $$
|
|
7344
|
-
var call$3 = functionCall;
|
|
7397
|
+
var $$3 = _export;
|
|
7345
7398
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
7346
7399
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
7347
7400
|
|
|
7348
7401
|
// `Promise.reject` method
|
|
7349
7402
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
7350
|
-
$$
|
|
7403
|
+
$$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
7351
7404
|
reject: function reject(r) {
|
|
7352
7405
|
var capability = newPromiseCapabilityModule.f(this);
|
|
7353
|
-
|
|
7406
|
+
var capabilityReject = capability.reject;
|
|
7407
|
+
capabilityReject(r);
|
|
7354
7408
|
return capability.promise;
|
|
7355
7409
|
}
|
|
7356
7410
|
});
|
|
7357
7411
|
|
|
7358
|
-
var anObject
|
|
7359
|
-
var isObject$1 = isObject$
|
|
7412
|
+
var anObject = anObject$c;
|
|
7413
|
+
var isObject$1 = isObject$a;
|
|
7360
7414
|
var newPromiseCapability = newPromiseCapability$2;
|
|
7361
7415
|
|
|
7362
7416
|
var promiseResolve$1 = function (C, x) {
|
|
7363
|
-
anObject
|
|
7417
|
+
anObject(C);
|
|
7364
7418
|
if (isObject$1(x) && x.constructor === C) return x;
|
|
7365
7419
|
var promiseCapability = newPromiseCapability.f(C);
|
|
7366
7420
|
var resolve = promiseCapability.resolve;
|
|
@@ -7368,7 +7422,7 @@ var promiseResolve$1 = function (C, x) {
|
|
|
7368
7422
|
return promiseCapability.promise;
|
|
7369
7423
|
};
|
|
7370
7424
|
|
|
7371
|
-
var $$
|
|
7425
|
+
var $$2 = _export;
|
|
7372
7426
|
var getBuiltIn = getBuiltIn$7;
|
|
7373
7427
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
7374
7428
|
var promiseResolve = promiseResolve$1;
|
|
@@ -7377,26 +7431,26 @@ getBuiltIn('Promise');
|
|
|
7377
7431
|
|
|
7378
7432
|
// `Promise.resolve` method
|
|
7379
7433
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
7380
|
-
$$
|
|
7434
|
+
$$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
7381
7435
|
resolve: function resolve(x) {
|
|
7382
7436
|
return promiseResolve(this, x);
|
|
7383
7437
|
}
|
|
7384
7438
|
});
|
|
7385
7439
|
|
|
7386
|
-
var $$
|
|
7440
|
+
var $$1 = _export;
|
|
7387
7441
|
var $includes = arrayIncludes.includes;
|
|
7388
|
-
var fails
|
|
7442
|
+
var fails = fails$i;
|
|
7389
7443
|
var addToUnscopables = addToUnscopables$2;
|
|
7390
7444
|
|
|
7391
7445
|
// FF99+ bug
|
|
7392
|
-
var BROKEN_ON_SPARSE = fails
|
|
7446
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
|
7393
7447
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
7394
7448
|
return !Array(1).includes();
|
|
7395
7449
|
});
|
|
7396
7450
|
|
|
7397
7451
|
// `Array.prototype.includes` method
|
|
7398
7452
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
7399
|
-
$$
|
|
7453
|
+
$$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
7400
7454
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
7401
7455
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
7402
7456
|
}
|
|
@@ -7405,32 +7459,32 @@ $$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
|
7405
7459
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
7406
7460
|
addToUnscopables('includes');
|
|
7407
7461
|
|
|
7408
|
-
var isObject = isObject$
|
|
7409
|
-
var classof
|
|
7410
|
-
var wellKnownSymbol$
|
|
7462
|
+
var isObject = isObject$a;
|
|
7463
|
+
var classof = classofRaw$2;
|
|
7464
|
+
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
7411
7465
|
|
|
7412
|
-
var MATCH$1 = wellKnownSymbol$
|
|
7466
|
+
var MATCH$1 = wellKnownSymbol$1('match');
|
|
7413
7467
|
|
|
7414
7468
|
// `IsRegExp` abstract operation
|
|
7415
7469
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
7416
7470
|
var isRegexp = function (it) {
|
|
7417
7471
|
var isRegExp;
|
|
7418
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof
|
|
7472
|
+
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
|
|
7419
7473
|
};
|
|
7420
7474
|
|
|
7421
7475
|
var isRegExp = isRegexp;
|
|
7422
7476
|
|
|
7423
|
-
var $TypeError
|
|
7477
|
+
var $TypeError = TypeError;
|
|
7424
7478
|
|
|
7425
7479
|
var notARegexp = function (it) {
|
|
7426
7480
|
if (isRegExp(it)) {
|
|
7427
|
-
throw new $TypeError
|
|
7481
|
+
throw new $TypeError("The method doesn't accept regular expressions");
|
|
7428
7482
|
} return it;
|
|
7429
7483
|
};
|
|
7430
7484
|
|
|
7431
|
-
var wellKnownSymbol
|
|
7485
|
+
var wellKnownSymbol = wellKnownSymbol$g;
|
|
7432
7486
|
|
|
7433
|
-
var MATCH = wellKnownSymbol
|
|
7487
|
+
var MATCH = wellKnownSymbol('match');
|
|
7434
7488
|
|
|
7435
7489
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
7436
7490
|
var regexp = /./;
|
|
@@ -7444,22 +7498,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
7444
7498
|
} return false;
|
|
7445
7499
|
};
|
|
7446
7500
|
|
|
7447
|
-
var
|
|
7448
|
-
var uncurryThis
|
|
7501
|
+
var $ = _export;
|
|
7502
|
+
var uncurryThis = functionUncurryThis;
|
|
7449
7503
|
var notARegExp = notARegexp;
|
|
7450
|
-
var requireObjectCoercible
|
|
7451
|
-
var toString
|
|
7504
|
+
var requireObjectCoercible = requireObjectCoercible$4;
|
|
7505
|
+
var toString = toString$4;
|
|
7452
7506
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
7453
7507
|
|
|
7454
|
-
var stringIndexOf
|
|
7508
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
7455
7509
|
|
|
7456
7510
|
// `String.prototype.includes` method
|
|
7457
7511
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
7458
|
-
|
|
7512
|
+
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
7459
7513
|
includes: function includes(searchString /* , position = 0 */) {
|
|
7460
|
-
return !!~stringIndexOf
|
|
7461
|
-
toString
|
|
7462
|
-
toString
|
|
7514
|
+
return !!~stringIndexOf(
|
|
7515
|
+
toString(requireObjectCoercible(this)),
|
|
7516
|
+
toString(notARegExp(searchString)),
|
|
7463
7517
|
arguments.length > 1 ? arguments[1] : undefined
|
|
7464
7518
|
);
|
|
7465
7519
|
}
|
|
@@ -7719,22 +7773,6 @@ const orderLayers = (wmjsMap, _reactMapViewLayers) => {
|
|
|
7719
7773
|
return wasReordered;
|
|
7720
7774
|
};
|
|
7721
7775
|
|
|
7722
|
-
/* *
|
|
7723
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7724
|
-
* you may not use this file except in compliance with the License.
|
|
7725
|
-
* You may obtain a copy of the License at
|
|
7726
|
-
*
|
|
7727
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7728
|
-
*
|
|
7729
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7730
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
7731
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
7732
|
-
* See the License for the specific language governing permissions and
|
|
7733
|
-
* limitations under the License.
|
|
7734
|
-
*
|
|
7735
|
-
* Copyright 2020 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
7736
|
-
* Copyright 2020 - Finnish Meteorological Institute (FMI)
|
|
7737
|
-
* */
|
|
7738
7776
|
const getDisplayText = currentAdagucTime => {
|
|
7739
7777
|
const timeFormat = 'eee dd MMM yyyy HH:mm [UTC]';
|
|
7740
7778
|
const adagucTime = dateUtils.utc(currentAdagucTime);
|
|
@@ -8194,6 +8232,18 @@ class ReactMapView extends React.Component {
|
|
|
8194
8232
|
adagucInitialised
|
|
8195
8233
|
} = this.state;
|
|
8196
8234
|
const featureLayers = getFeatureLayers(children);
|
|
8235
|
+
// TODO: Improve in https://gitlab.com/opengeoweb/opengeoweb/-/issues/4579
|
|
8236
|
+
featureLayers.forEach(featureLayer => {
|
|
8237
|
+
const wmFeatureLayer = getWMLayerById(featureLayer.id);
|
|
8238
|
+
if (!wmFeatureLayer) {
|
|
8239
|
+
registerWMLayer(new WMLayer(Object.assign({
|
|
8240
|
+
layerType: LayerType.featureLayer,
|
|
8241
|
+
service: ''
|
|
8242
|
+
}, featureLayer)), featureLayer.id);
|
|
8243
|
+
} else if (featureLayer.geojson) {
|
|
8244
|
+
wmFeatureLayer.geojson = featureLayer.geojson;
|
|
8245
|
+
}
|
|
8246
|
+
});
|
|
8197
8247
|
return /*#__PURE__*/React.createElement("div", {
|
|
8198
8248
|
className: "MapView",
|
|
8199
8249
|
style: {
|
|
@@ -8714,540 +8764,35 @@ const MapView = _a => {
|
|
|
8714
8764
|
}));
|
|
8715
8765
|
};
|
|
8716
8766
|
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
});
|
|
8734
|
-
|
|
8735
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
8736
|
-
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
8737
|
-
var re = $RegExp$2('^r', 'gy');
|
|
8738
|
-
re.lastIndex = 2;
|
|
8739
|
-
return re.exec('str') !== null;
|
|
8740
|
-
});
|
|
8741
|
-
|
|
8742
|
-
var regexpStickyHelpers = {
|
|
8743
|
-
BROKEN_CARET: BROKEN_CARET,
|
|
8744
|
-
MISSED_STICKY: MISSED_STICKY,
|
|
8745
|
-
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
8746
|
-
};
|
|
8747
|
-
|
|
8748
|
-
var fails$3 = fails$m;
|
|
8749
|
-
var global$2 = global$m;
|
|
8750
|
-
|
|
8751
|
-
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
8752
|
-
var $RegExp$1 = global$2.RegExp;
|
|
8753
|
-
|
|
8754
|
-
var regexpUnsupportedDotAll = fails$3(function () {
|
|
8755
|
-
var re = $RegExp$1('.', 's');
|
|
8756
|
-
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
8757
|
-
});
|
|
8758
|
-
|
|
8759
|
-
var fails$2 = fails$m;
|
|
8760
|
-
var global$1 = global$m;
|
|
8761
|
-
|
|
8762
|
-
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
8763
|
-
var $RegExp = global$1.RegExp;
|
|
8764
|
-
|
|
8765
|
-
var regexpUnsupportedNcg = fails$2(function () {
|
|
8766
|
-
var re = $RegExp('(?<a>b)', 'g');
|
|
8767
|
-
return re.exec('b').groups.a !== 'b' ||
|
|
8768
|
-
'b'.replace(re, '$<a>c') !== 'bc';
|
|
8769
|
-
});
|
|
8770
|
-
|
|
8771
|
-
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
8772
|
-
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
8773
|
-
var call$2 = functionCall;
|
|
8774
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
8775
|
-
var toString$2 = toString$6;
|
|
8776
|
-
var regexpFlags = regexpFlags$1;
|
|
8777
|
-
var stickyHelpers = regexpStickyHelpers;
|
|
8778
|
-
var shared = shared$4.exports;
|
|
8779
|
-
var create = objectCreate;
|
|
8780
|
-
var getInternalState = internalState.get;
|
|
8781
|
-
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
8782
|
-
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
8783
|
-
|
|
8784
|
-
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
8785
|
-
var nativeExec = RegExp.prototype.exec;
|
|
8786
|
-
var patchedExec = nativeExec;
|
|
8787
|
-
var charAt$3 = uncurryThis$4(''.charAt);
|
|
8788
|
-
var indexOf = uncurryThis$4(''.indexOf);
|
|
8789
|
-
var replace$1 = uncurryThis$4(''.replace);
|
|
8790
|
-
var stringSlice$3 = uncurryThis$4(''.slice);
|
|
8791
|
-
|
|
8792
|
-
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
8793
|
-
var re1 = /a/;
|
|
8794
|
-
var re2 = /b*/g;
|
|
8795
|
-
call$2(nativeExec, re1, 'a');
|
|
8796
|
-
call$2(nativeExec, re2, 'a');
|
|
8797
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
8798
|
-
})();
|
|
8799
|
-
|
|
8800
|
-
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
8801
|
-
|
|
8802
|
-
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
8803
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
8804
|
-
|
|
8805
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
8806
|
-
|
|
8807
|
-
if (PATCH) {
|
|
8808
|
-
patchedExec = function exec(string) {
|
|
8809
|
-
var re = this;
|
|
8810
|
-
var state = getInternalState(re);
|
|
8811
|
-
var str = toString$2(string);
|
|
8812
|
-
var raw = state.raw;
|
|
8813
|
-
var result, reCopy, lastIndex, match, i, object, group;
|
|
8814
|
-
|
|
8815
|
-
if (raw) {
|
|
8816
|
-
raw.lastIndex = re.lastIndex;
|
|
8817
|
-
result = call$2(patchedExec, raw, str);
|
|
8818
|
-
re.lastIndex = raw.lastIndex;
|
|
8819
|
-
return result;
|
|
8820
|
-
}
|
|
8821
|
-
|
|
8822
|
-
var groups = state.groups;
|
|
8823
|
-
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
8824
|
-
var flags = call$2(regexpFlags, re);
|
|
8825
|
-
var source = re.source;
|
|
8826
|
-
var charsAdded = 0;
|
|
8827
|
-
var strCopy = str;
|
|
8828
|
-
|
|
8829
|
-
if (sticky) {
|
|
8830
|
-
flags = replace$1(flags, 'y', '');
|
|
8831
|
-
if (indexOf(flags, 'g') === -1) {
|
|
8832
|
-
flags += 'g';
|
|
8833
|
-
}
|
|
8834
|
-
|
|
8835
|
-
strCopy = stringSlice$3(str, re.lastIndex);
|
|
8836
|
-
// Support anchored sticky behavior.
|
|
8837
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
8838
|
-
source = '(?: ' + source + ')';
|
|
8839
|
-
strCopy = ' ' + strCopy;
|
|
8840
|
-
charsAdded++;
|
|
8841
|
-
}
|
|
8842
|
-
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
8843
|
-
// simulate the 'y' flag.
|
|
8844
|
-
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
8845
|
-
}
|
|
8846
|
-
|
|
8847
|
-
if (NPCG_INCLUDED) {
|
|
8848
|
-
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
8849
|
-
}
|
|
8850
|
-
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
8851
|
-
|
|
8852
|
-
match = call$2(nativeExec, sticky ? reCopy : re, strCopy);
|
|
8853
|
-
|
|
8854
|
-
if (sticky) {
|
|
8855
|
-
if (match) {
|
|
8856
|
-
match.input = stringSlice$3(match.input, charsAdded);
|
|
8857
|
-
match[0] = stringSlice$3(match[0], charsAdded);
|
|
8858
|
-
match.index = re.lastIndex;
|
|
8859
|
-
re.lastIndex += match[0].length;
|
|
8860
|
-
} else re.lastIndex = 0;
|
|
8861
|
-
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
8862
|
-
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
8863
|
-
}
|
|
8864
|
-
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
8865
|
-
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
8866
|
-
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
8867
|
-
call$2(nativeReplace, match[0], reCopy, function () {
|
|
8868
|
-
for (i = 1; i < arguments.length - 2; i++) {
|
|
8869
|
-
if (arguments[i] === undefined) match[i] = undefined;
|
|
8870
|
-
}
|
|
8871
|
-
});
|
|
8872
|
-
}
|
|
8873
|
-
|
|
8874
|
-
if (match && groups) {
|
|
8875
|
-
match.groups = object = create(null);
|
|
8876
|
-
for (i = 0; i < groups.length; i++) {
|
|
8877
|
-
group = groups[i];
|
|
8878
|
-
object[group[0]] = match[group[1]];
|
|
8879
|
-
}
|
|
8880
|
-
}
|
|
8881
|
-
|
|
8882
|
-
return match;
|
|
8883
|
-
};
|
|
8884
|
-
}
|
|
8885
|
-
|
|
8886
|
-
var regexpExec$2 = patchedExec;
|
|
8887
|
-
|
|
8888
|
-
var $ = _export;
|
|
8889
|
-
var exec = regexpExec$2;
|
|
8890
|
-
|
|
8891
|
-
// `RegExp.prototype.exec` method
|
|
8892
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
8893
|
-
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
8894
|
-
exec: exec
|
|
8895
|
-
});
|
|
8896
|
-
|
|
8897
|
-
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
8898
|
-
|
|
8899
|
-
var uncurryThis$3 = functionUncurryThisClause;
|
|
8900
|
-
var defineBuiltIn = defineBuiltIn$7;
|
|
8901
|
-
var regexpExec$1 = regexpExec$2;
|
|
8902
|
-
var fails$1 = fails$m;
|
|
8903
|
-
var wellKnownSymbol$1 = wellKnownSymbol$i;
|
|
8904
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
8905
|
-
|
|
8906
|
-
var SPECIES = wellKnownSymbol$1('species');
|
|
8907
|
-
var RegExpPrototype = RegExp.prototype;
|
|
8908
|
-
|
|
8909
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
8910
|
-
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
8911
|
-
|
|
8912
|
-
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
8913
|
-
// String methods call symbol-named RegEp methods
|
|
8914
|
-
var O = {};
|
|
8915
|
-
O[SYMBOL] = function () { return 7; };
|
|
8916
|
-
return ''[KEY](O) !== 7;
|
|
8917
|
-
});
|
|
8918
|
-
|
|
8919
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
8920
|
-
// Symbol-named RegExp methods call .exec
|
|
8921
|
-
var execCalled = false;
|
|
8922
|
-
var re = /a/;
|
|
8923
|
-
|
|
8924
|
-
if (KEY === 'split') {
|
|
8925
|
-
// We can't use real regex here since it causes deoptimization
|
|
8926
|
-
// and serious performance degradation in V8
|
|
8927
|
-
// https://github.com/zloirock/core-js/issues/306
|
|
8928
|
-
re = {};
|
|
8929
|
-
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
8930
|
-
// a new one. We need to return the patched regex when creating the new one.
|
|
8931
|
-
re.constructor = {};
|
|
8932
|
-
re.constructor[SPECIES] = function () { return re; };
|
|
8933
|
-
re.flags = '';
|
|
8934
|
-
re[SYMBOL] = /./[SYMBOL];
|
|
8935
|
-
}
|
|
8936
|
-
|
|
8937
|
-
re.exec = function () {
|
|
8938
|
-
execCalled = true;
|
|
8939
|
-
return null;
|
|
8940
|
-
};
|
|
8941
|
-
|
|
8942
|
-
re[SYMBOL]('');
|
|
8943
|
-
return !execCalled;
|
|
8944
|
-
});
|
|
8945
|
-
|
|
8946
|
-
if (
|
|
8947
|
-
!DELEGATES_TO_SYMBOL ||
|
|
8948
|
-
!DELEGATES_TO_EXEC ||
|
|
8949
|
-
FORCED
|
|
8950
|
-
) {
|
|
8951
|
-
var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
|
|
8952
|
-
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
8953
|
-
var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
|
|
8954
|
-
var $exec = regexp.exec;
|
|
8955
|
-
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
8956
|
-
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
8957
|
-
// The native String method already delegates to @@method (this
|
|
8958
|
-
// polyfilled function), leasing to infinite recursion.
|
|
8959
|
-
// We avoid it by directly calling the native @@method method.
|
|
8960
|
-
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
8961
|
-
}
|
|
8962
|
-
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
8963
|
-
}
|
|
8964
|
-
return { done: false };
|
|
8965
|
-
});
|
|
8966
|
-
|
|
8967
|
-
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
8968
|
-
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
8969
|
-
}
|
|
8970
|
-
|
|
8971
|
-
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
8972
|
-
};
|
|
8973
|
-
|
|
8974
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
8975
|
-
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
8976
|
-
var toString$1 = toString$6;
|
|
8977
|
-
var requireObjectCoercible$1 = requireObjectCoercible$6;
|
|
8978
|
-
|
|
8979
|
-
var charAt$2 = uncurryThis$2(''.charAt);
|
|
8980
|
-
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
8981
|
-
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
8982
|
-
|
|
8983
|
-
var createMethod = function (CONVERT_TO_STRING) {
|
|
8984
|
-
return function ($this, pos) {
|
|
8985
|
-
var S = toString$1(requireObjectCoercible$1($this));
|
|
8986
|
-
var position = toIntegerOrInfinity$1(pos);
|
|
8987
|
-
var size = S.length;
|
|
8988
|
-
var first, second;
|
|
8989
|
-
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
8990
|
-
first = charCodeAt(S, position);
|
|
8991
|
-
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
8992
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
8993
|
-
? CONVERT_TO_STRING
|
|
8994
|
-
? charAt$2(S, position)
|
|
8995
|
-
: first
|
|
8996
|
-
: CONVERT_TO_STRING
|
|
8997
|
-
? stringSlice$2(S, position, position + 2)
|
|
8998
|
-
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
8999
|
-
};
|
|
9000
|
-
};
|
|
9001
|
-
|
|
9002
|
-
var stringMultibyte = {
|
|
9003
|
-
// `String.prototype.codePointAt` method
|
|
9004
|
-
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
9005
|
-
codeAt: createMethod(false),
|
|
9006
|
-
// `String.prototype.at` method
|
|
9007
|
-
// https://github.com/mathiasbynens/String.prototype.at
|
|
9008
|
-
charAt: createMethod(true)
|
|
9009
|
-
};
|
|
9010
|
-
|
|
9011
|
-
var charAt$1 = stringMultibyte.charAt;
|
|
9012
|
-
|
|
9013
|
-
// `AdvanceStringIndex` abstract operation
|
|
9014
|
-
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
9015
|
-
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
9016
|
-
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
9017
|
-
};
|
|
9018
|
-
|
|
9019
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
9020
|
-
var toObject = toObject$5;
|
|
9021
|
-
|
|
9022
|
-
var floor = Math.floor;
|
|
9023
|
-
var charAt = uncurryThis$1(''.charAt);
|
|
9024
|
-
var replace = uncurryThis$1(''.replace);
|
|
9025
|
-
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
9026
|
-
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
9027
|
-
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
9028
|
-
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
9029
|
-
|
|
9030
|
-
// `GetSubstitution` abstract operation
|
|
9031
|
-
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
9032
|
-
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
9033
|
-
var tailPos = position + matched.length;
|
|
9034
|
-
var m = captures.length;
|
|
9035
|
-
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
9036
|
-
if (namedCaptures !== undefined) {
|
|
9037
|
-
namedCaptures = toObject(namedCaptures);
|
|
9038
|
-
symbols = SUBSTITUTION_SYMBOLS;
|
|
9039
|
-
}
|
|
9040
|
-
return replace(replacement, symbols, function (match, ch) {
|
|
9041
|
-
var capture;
|
|
9042
|
-
switch (charAt(ch, 0)) {
|
|
9043
|
-
case '$': return '$';
|
|
9044
|
-
case '&': return matched;
|
|
9045
|
-
case '`': return stringSlice$1(str, 0, position);
|
|
9046
|
-
case "'": return stringSlice$1(str, tailPos);
|
|
9047
|
-
case '<':
|
|
9048
|
-
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
9049
|
-
break;
|
|
9050
|
-
default: // \d\d?
|
|
9051
|
-
var n = +ch;
|
|
9052
|
-
if (n === 0) return match;
|
|
9053
|
-
if (n > m) {
|
|
9054
|
-
var f = floor(n / 10);
|
|
9055
|
-
if (f === 0) return match;
|
|
9056
|
-
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
9057
|
-
return match;
|
|
9058
|
-
}
|
|
9059
|
-
capture = captures[n - 1];
|
|
9060
|
-
}
|
|
9061
|
-
return capture === undefined ? '' : capture;
|
|
9062
|
-
});
|
|
9063
|
-
};
|
|
9064
|
-
|
|
9065
|
-
var call$1 = functionCall;
|
|
9066
|
-
var anObject$1 = anObject$e;
|
|
9067
|
-
var isCallable$1 = isCallable$m;
|
|
9068
|
-
var classof = classofRaw$2;
|
|
9069
|
-
var regexpExec = regexpExec$2;
|
|
9070
|
-
|
|
9071
|
-
var $TypeError = TypeError;
|
|
9072
|
-
|
|
9073
|
-
// `RegExpExec` abstract operation
|
|
9074
|
-
// https://tc39.es/ecma262/#sec-regexpexec
|
|
9075
|
-
var regexpExecAbstract = function (R, S) {
|
|
9076
|
-
var exec = R.exec;
|
|
9077
|
-
if (isCallable$1(exec)) {
|
|
9078
|
-
var result = call$1(exec, R, S);
|
|
9079
|
-
if (result !== null) anObject$1(result);
|
|
9080
|
-
return result;
|
|
9081
|
-
}
|
|
9082
|
-
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
9083
|
-
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
9084
|
-
};
|
|
9085
|
-
|
|
9086
|
-
var apply = functionApply;
|
|
9087
|
-
var call = functionCall;
|
|
9088
|
-
var uncurryThis = functionUncurryThis;
|
|
9089
|
-
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
9090
|
-
var fails = fails$m;
|
|
9091
|
-
var anObject = anObject$e;
|
|
9092
|
-
var isCallable = isCallable$m;
|
|
9093
|
-
var isNullOrUndefined = isNullOrUndefined$5;
|
|
9094
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
9095
|
-
var toLength = toLength$2;
|
|
9096
|
-
var toString = toString$6;
|
|
9097
|
-
var requireObjectCoercible = requireObjectCoercible$6;
|
|
9098
|
-
var advanceStringIndex = advanceStringIndex$1;
|
|
9099
|
-
var getMethod = getMethod$4;
|
|
9100
|
-
var getSubstitution = getSubstitution$1;
|
|
9101
|
-
var regExpExec = regexpExecAbstract;
|
|
9102
|
-
var wellKnownSymbol = wellKnownSymbol$i;
|
|
9103
|
-
|
|
9104
|
-
var REPLACE = wellKnownSymbol('replace');
|
|
9105
|
-
var max = Math.max;
|
|
9106
|
-
var min = Math.min;
|
|
9107
|
-
var concat = uncurryThis([].concat);
|
|
9108
|
-
var push = uncurryThis([].push);
|
|
9109
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
9110
|
-
var stringSlice = uncurryThis(''.slice);
|
|
9111
|
-
|
|
9112
|
-
var maybeToString = function (it) {
|
|
9113
|
-
return it === undefined ? it : String(it);
|
|
9114
|
-
};
|
|
9115
|
-
|
|
9116
|
-
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
9117
|
-
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
9118
|
-
var REPLACE_KEEPS_$0 = (function () {
|
|
9119
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
9120
|
-
return 'a'.replace(/./, '$0') === '$0';
|
|
9121
|
-
})();
|
|
9122
|
-
|
|
9123
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
9124
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
9125
|
-
if (/./[REPLACE]) {
|
|
9126
|
-
return /./[REPLACE]('a', '$0') === '';
|
|
9127
|
-
}
|
|
9128
|
-
return false;
|
|
9129
|
-
})();
|
|
9130
|
-
|
|
9131
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
9132
|
-
var re = /./;
|
|
9133
|
-
re.exec = function () {
|
|
9134
|
-
var result = [];
|
|
9135
|
-
result.groups = { a: '7' };
|
|
9136
|
-
return result;
|
|
9137
|
-
};
|
|
9138
|
-
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
9139
|
-
return ''.replace(re, '$<a>') !== '7';
|
|
9140
|
-
});
|
|
9141
|
-
|
|
9142
|
-
// @@replace logic
|
|
9143
|
-
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
9144
|
-
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
9145
|
-
|
|
9146
|
-
return [
|
|
9147
|
-
// `String.prototype.replace` method
|
|
9148
|
-
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
9149
|
-
function replace(searchValue, replaceValue) {
|
|
9150
|
-
var O = requireObjectCoercible(this);
|
|
9151
|
-
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
9152
|
-
return replacer
|
|
9153
|
-
? call(replacer, searchValue, O, replaceValue)
|
|
9154
|
-
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
9155
|
-
},
|
|
9156
|
-
// `RegExp.prototype[@@replace]` method
|
|
9157
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
9158
|
-
function (string, replaceValue) {
|
|
9159
|
-
var rx = anObject(this);
|
|
9160
|
-
var S = toString(string);
|
|
9161
|
-
|
|
9162
|
-
if (
|
|
9163
|
-
typeof replaceValue == 'string' &&
|
|
9164
|
-
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
9165
|
-
stringIndexOf(replaceValue, '$<') === -1
|
|
9166
|
-
) {
|
|
9167
|
-
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
9168
|
-
if (res.done) return res.value;
|
|
9169
|
-
}
|
|
9170
|
-
|
|
9171
|
-
var functionalReplace = isCallable(replaceValue);
|
|
9172
|
-
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
9173
|
-
|
|
9174
|
-
var global = rx.global;
|
|
9175
|
-
var fullUnicode;
|
|
9176
|
-
if (global) {
|
|
9177
|
-
fullUnicode = rx.unicode;
|
|
9178
|
-
rx.lastIndex = 0;
|
|
9179
|
-
}
|
|
9180
|
-
|
|
9181
|
-
var results = [];
|
|
9182
|
-
var result;
|
|
9183
|
-
while (true) {
|
|
9184
|
-
result = regExpExec(rx, S);
|
|
9185
|
-
if (result === null) break;
|
|
9186
|
-
|
|
9187
|
-
push(results, result);
|
|
9188
|
-
if (!global) break;
|
|
9189
|
-
|
|
9190
|
-
var matchStr = toString(result[0]);
|
|
9191
|
-
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
9192
|
-
}
|
|
9193
|
-
|
|
9194
|
-
var accumulatedResult = '';
|
|
9195
|
-
var nextSourcePosition = 0;
|
|
9196
|
-
for (var i = 0; i < results.length; i++) {
|
|
9197
|
-
result = results[i];
|
|
9198
|
-
|
|
9199
|
-
var matched = toString(result[0]);
|
|
9200
|
-
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
9201
|
-
var captures = [];
|
|
9202
|
-
var replacement;
|
|
9203
|
-
// NOTE: This is equivalent to
|
|
9204
|
-
// captures = result.slice(1).map(maybeToString)
|
|
9205
|
-
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
9206
|
-
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
9207
|
-
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
9208
|
-
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
9209
|
-
var namedCaptures = result.groups;
|
|
9210
|
-
if (functionalReplace) {
|
|
9211
|
-
var replacerArgs = concat([matched], captures, position, S);
|
|
9212
|
-
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
9213
|
-
replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
9214
|
-
} else {
|
|
9215
|
-
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
9216
|
-
}
|
|
9217
|
-
if (position >= nextSourcePosition) {
|
|
9218
|
-
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
9219
|
-
nextSourcePosition = position + matched.length;
|
|
9220
|
-
}
|
|
9221
|
-
}
|
|
9222
|
-
|
|
9223
|
-
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
9224
|
-
}
|
|
9225
|
-
];
|
|
9226
|
-
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
9227
|
-
|
|
8767
|
+
/* *
|
|
8768
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
8769
|
+
* you may not use this file except in compliance with the License.
|
|
8770
|
+
* You may obtain a copy of the License at
|
|
8771
|
+
*
|
|
8772
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8773
|
+
*
|
|
8774
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
8775
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
8776
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
8777
|
+
* See the License for the specific language governing permissions and
|
|
8778
|
+
* limitations under the License.
|
|
8779
|
+
*
|
|
8780
|
+
* Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
|
|
8781
|
+
* Copyright 2022 - Finnish Meteorological Institute (FMI)
|
|
8782
|
+
* */
|
|
9228
8783
|
const MapViewLayer = props => {
|
|
8784
|
+
// TODO: This component should not do anything, but just return null: https://gitlab.com/opengeoweb/opengeoweb/-/issues/4579
|
|
9229
8785
|
const {
|
|
9230
8786
|
id
|
|
9231
8787
|
} = props;
|
|
9232
|
-
return
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
lineHeight: '14px',
|
|
9241
|
-
fontSize: '10px',
|
|
9242
|
-
background: 'rgba(255, 255, 255, 0.5)',
|
|
9243
|
-
display: 'none'
|
|
9244
|
-
}
|
|
9245
|
-
}, /*#__PURE__*/React.createElement("div", null, id), /*#__PURE__*/React.createElement("div", {
|
|
9246
|
-
// eslint-disable-next-line react/no-danger
|
|
9247
|
-
dangerouslySetInnerHTML: {
|
|
9248
|
-
__html: JSON.stringify(props, null, '--').replace(/\n/g, '<br/>')
|
|
9249
|
-
}
|
|
9250
|
-
}));
|
|
8788
|
+
return React.useMemo(() => {
|
|
8789
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8790
|
+
"data-testid": "mapViewLayer",
|
|
8791
|
+
style: {
|
|
8792
|
+
display: 'none'
|
|
8793
|
+
}
|
|
8794
|
+
}, id);
|
|
8795
|
+
}, [id]);
|
|
9251
8796
|
};
|
|
9252
8797
|
|
|
9253
8798
|
/* *
|
|
@@ -9868,4 +9413,4 @@ var publicLayers = /*#__PURE__*/Object.freeze({
|
|
|
9868
9413
|
msgNaturalEUMETSAT: msgNaturalEUMETSAT
|
|
9869
9414
|
});
|
|
9870
9415
|
|
|
9871
|
-
export { CanvasComponent, DRAWMODE, EDITMODE, EditModeButton as EditModeButtonField, FeatureLayers, GeoJSONTextField, IntersectionSelect, Legend, LegendDialog, LegendLayout, MapControlButton, MapControls, MapDrawContainer, MapTime, MapView, MapViewLayer, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION, ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO, ReactMapView, ReactMapViewLayer, SelectField, StoryLayoutGrid, ZoomControls, addFeatureProperties, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, checkHoverFeatures, createInterSections, currentlySupportedDrawModes, defaultBox, defaultDelete, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultModes, defaultPoint, defaultPolygon, defaultTimeFormat, distance, drawPolyStoryStyles, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureBox, featureMultiPoint, featurePoint, featurePolygon, fillOptions, firButtonDrawId, formatTime, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getTimeDimension, getToolIcon, intersectGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isGeoJSONFeatureCreatedByTool, lineString, moveFeature, opacityOptions, publicLayers, publicServices, registerDrawFunction, rewindGeometry, simpleBoxGeoJSON, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, updateEditModeButtonsWithFir, useGeoJSON, useMapDrawTool };
|
|
9416
|
+
export { CanvasComponent, DRAWMODE, EDITMODE, EditModeButton as EditModeButtonField, FeatureLayers, GeoJSONTextField, IntersectionSelect, Legend, LegendDialog, LegendLayout, MapControlButton, MapControls, MapDrawContainer, MapTime, MapView, MapViewLayer, MapWarningProperties, NEW_FEATURE_CREATED, NEW_LINESTRING_CREATED, NEW_POINT_CREATED, ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION, ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO, ReactMapView, ReactMapViewLayer, SelectField, StoryLayoutGrid, ZoomControls, addFeatureProperties, basicExampleDrawOptions, basicExampleMultipleShapeDrawOptions, checkHoverFeatures, createInterSections, currentlySupportedDrawModes, defaultBox, defaultDelete, defaultGeoJSONStyleProperties, defaultIntersectionStyleProperties, defaultLayers, defaultModes, defaultPoint, defaultPolygon, defaultTimeFormat, distance, drawPolyStoryStyles, emptyGeoJSON, endToolExampleConfig, exampleIntersectionOptions, exampleIntersectionWithShapeOptions, exampleIntersections, exampleIntersectionsMultiDrawTool, featureBox, featureMultiPoint, featurePoint, featurePolygon, fillOptions, firButtonDrawId, formatTime, getDoubleControlToolIcon, getDrawFunctionFromStore, getFeatureCollection, getFirTitle, getGeoJSONPropertyValue, getGeoJson, getIcon, getIntersectionToolIcon, getTimeDimension, getToolIcon, intersectGeoJSONS, intersectionFeatureBE, intersectionFeatureNL, isGeoJSONFeatureCreatedByTool, lineString, moveFeature, opacityOptions, publicLayers, publicServices, registerDrawFunction, rewindGeometry, simpleBoxGeoJSON, simpleBoxGeoJSONWrongOrder, simpleFlightRouteLineStringGeoJSON, simpleFlightRoutePointsGeoJSON, simpleLineStringGeoJSON, simpleMultiPolygon, simplePointsGeojson, simplePolygonGeoJSON, simpleSmallLineStringGeoJSON, startToolExampleConfig, strokeWidthOptions, updateEditModeButtonsWithFir, useGeoJSON, useMapDrawTool };
|