@majoo-ui/react 1.59.6-rc.14 → 1.59.6-rc.15
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 +387 -349
- package/index.umd.js +387 -349
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -77,11 +77,11 @@ ThemeProvider.propTypes = {
|
|
|
77
77
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
78
78
|
|
|
79
79
|
var check = function (it) {
|
|
80
|
-
return it && it.Math
|
|
80
|
+
return it && it.Math === Math && it;
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
84
|
-
var global$
|
|
84
|
+
var global$r =
|
|
85
85
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
86
86
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
87
87
|
check(typeof window == 'object' && window) ||
|
|
@@ -89,7 +89,7 @@ var global$p =
|
|
|
89
89
|
check(typeof self == 'object' && self) ||
|
|
90
90
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
|
91
91
|
// eslint-disable-next-line no-new-func -- fallback
|
|
92
|
-
(function () { return this; })() || Function('return this')();
|
|
92
|
+
(function () { return this; })() || commonjsGlobal || Function('return this')();
|
|
93
93
|
|
|
94
94
|
var objectGetOwnPropertyDescriptor = {};
|
|
95
95
|
|
|
@@ -106,7 +106,7 @@ var fails$s = fails$t;
|
|
|
106
106
|
// Detect IE8's incomplete defineProperty implementation
|
|
107
107
|
var descriptors = !fails$s(function () {
|
|
108
108
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
109
|
-
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1]
|
|
109
|
+
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
var fails$r = fails$t;
|
|
@@ -185,7 +185,7 @@ var indexedObject = fails$q(function () {
|
|
|
185
185
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
186
186
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
187
187
|
}) ? function (it) {
|
|
188
|
-
return classof$9(it)
|
|
188
|
+
return classof$9(it) === 'String' ? split$3(it, '') : $Object$4(it);
|
|
189
189
|
} : $Object$4;
|
|
190
190
|
|
|
191
191
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -247,7 +247,7 @@ var isObject$e = $documentAll.IS_HTMLDDA ? function (it) {
|
|
|
247
247
|
return typeof it == 'object' ? it !== null : isCallable$o(it);
|
|
248
248
|
};
|
|
249
249
|
|
|
250
|
-
var global$
|
|
250
|
+
var global$q = global$r;
|
|
251
251
|
var isCallable$n = isCallable$p;
|
|
252
252
|
|
|
253
253
|
var aFunction = function (argument) {
|
|
@@ -255,7 +255,7 @@ var aFunction = function (argument) {
|
|
|
255
255
|
};
|
|
256
256
|
|
|
257
257
|
var getBuiltIn$7 = function (namespace, method) {
|
|
258
|
-
return arguments.length < 2 ? aFunction(global$
|
|
258
|
+
return arguments.length < 2 ? aFunction(global$q[namespace]) : global$q[namespace] && global$q[namespace][method];
|
|
259
259
|
};
|
|
260
260
|
|
|
261
261
|
var uncurryThis$x = functionUncurryThis;
|
|
@@ -264,12 +264,12 @@ var objectIsPrototypeOf = uncurryThis$x({}.isPrototypeOf);
|
|
|
264
264
|
|
|
265
265
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
266
266
|
|
|
267
|
-
var global$
|
|
267
|
+
var global$p = global$r;
|
|
268
268
|
var userAgent$5 = engineUserAgent;
|
|
269
269
|
|
|
270
|
-
var process$
|
|
271
|
-
var Deno$1 = global$
|
|
272
|
-
var versions = process$
|
|
270
|
+
var process$3 = global$p.process;
|
|
271
|
+
var Deno$1 = global$p.Deno;
|
|
272
|
+
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
|
|
273
273
|
var v8 = versions && versions.v8;
|
|
274
274
|
var match, version;
|
|
275
275
|
|
|
@@ -293,22 +293,25 @@ if (!version && userAgent$5) {
|
|
|
293
293
|
var engineV8Version = version;
|
|
294
294
|
|
|
295
295
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
296
|
-
|
|
297
296
|
var V8_VERSION$1 = engineV8Version;
|
|
298
297
|
var fails$p = fails$t;
|
|
298
|
+
var global$o = global$r;
|
|
299
|
+
|
|
300
|
+
var $String$6 = global$o.String;
|
|
299
301
|
|
|
300
302
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
301
303
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$p(function () {
|
|
302
|
-
var symbol = Symbol();
|
|
304
|
+
var symbol = Symbol('symbol detection');
|
|
303
305
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
304
306
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
305
|
-
|
|
307
|
+
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
308
|
+
// of course, fail.
|
|
309
|
+
return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
306
310
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
307
311
|
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
308
312
|
});
|
|
309
313
|
|
|
310
314
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
311
|
-
|
|
312
315
|
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
|
|
313
316
|
|
|
314
317
|
var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
@@ -380,24 +383,24 @@ var shared$4 = {exports: {}};
|
|
|
380
383
|
|
|
381
384
|
var isPure = false;
|
|
382
385
|
|
|
383
|
-
var global$
|
|
386
|
+
var global$n = global$r;
|
|
384
387
|
|
|
385
388
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
386
389
|
var defineProperty$7 = Object.defineProperty;
|
|
387
390
|
|
|
388
391
|
var defineGlobalProperty$3 = function (key, value) {
|
|
389
392
|
try {
|
|
390
|
-
defineProperty$7(global$
|
|
393
|
+
defineProperty$7(global$n, key, { value: value, configurable: true, writable: true });
|
|
391
394
|
} catch (error) {
|
|
392
|
-
global$
|
|
395
|
+
global$n[key] = value;
|
|
393
396
|
} return value;
|
|
394
397
|
};
|
|
395
398
|
|
|
396
|
-
var global$
|
|
399
|
+
var global$m = global$r;
|
|
397
400
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
398
401
|
|
|
399
402
|
var SHARED = '__core-js_shared__';
|
|
400
|
-
var store$3 = global$
|
|
403
|
+
var store$3 = global$m[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
401
404
|
|
|
402
405
|
var sharedStore = store$3;
|
|
403
406
|
|
|
@@ -406,10 +409,10 @@ var store$2 = sharedStore;
|
|
|
406
409
|
(shared$4.exports = function (key, value) {
|
|
407
410
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
408
411
|
})('versions', []).push({
|
|
409
|
-
version: '3.
|
|
412
|
+
version: '3.32.2',
|
|
410
413
|
mode: 'global',
|
|
411
414
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
412
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
415
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE',
|
|
413
416
|
source: 'https://github.com/zloirock/core-js'
|
|
414
417
|
});
|
|
415
418
|
|
|
@@ -445,14 +448,14 @@ var uid$2 = function (key) {
|
|
|
445
448
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$k(++id + postfix, 36);
|
|
446
449
|
};
|
|
447
450
|
|
|
448
|
-
var global$
|
|
451
|
+
var global$l = global$r;
|
|
449
452
|
var shared$3 = shared$4.exports;
|
|
450
453
|
var hasOwn$e = hasOwnProperty_1;
|
|
451
454
|
var uid$1 = uid$2;
|
|
452
455
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
453
456
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
454
457
|
|
|
455
|
-
var Symbol$7 = global$
|
|
458
|
+
var Symbol$7 = global$l.Symbol;
|
|
456
459
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
457
460
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$7['for'] || Symbol$7 : Symbol$7 && Symbol$7.withoutSetter || uid$1;
|
|
458
461
|
|
|
@@ -500,10 +503,10 @@ var toPropertyKey$3 = function (argument) {
|
|
|
500
503
|
return isSymbol$4(key) ? key : key + '';
|
|
501
504
|
};
|
|
502
505
|
|
|
503
|
-
var global$
|
|
506
|
+
var global$k = global$r;
|
|
504
507
|
var isObject$b = isObject$e;
|
|
505
508
|
|
|
506
|
-
var document$3 = global$
|
|
509
|
+
var document$3 = global$k.document;
|
|
507
510
|
// typeof document.createElement is 'object' in old IE
|
|
508
511
|
var EXISTS$1 = isObject$b(document$3) && isObject$b(document$3.createElement);
|
|
509
512
|
|
|
@@ -520,7 +523,7 @@ var ie8DomDefine = !DESCRIPTORS$f && !fails$o(function () {
|
|
|
520
523
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
521
524
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
522
525
|
get: function () { return 7; }
|
|
523
|
-
}).a
|
|
526
|
+
}).a !== 7;
|
|
524
527
|
});
|
|
525
528
|
|
|
526
529
|
var DESCRIPTORS$e = descriptors;
|
|
@@ -558,7 +561,7 @@ var v8PrototypeDefineBug = DESCRIPTORS$d && fails$n(function () {
|
|
|
558
561
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
559
562
|
value: 42,
|
|
560
563
|
writable: false
|
|
561
|
-
}).prototype
|
|
564
|
+
}).prototype !== 42;
|
|
562
565
|
});
|
|
563
566
|
|
|
564
567
|
var isObject$a = isObject$e;
|
|
@@ -662,10 +665,10 @@ if (!isCallable$j(store$1.inspectSource)) {
|
|
|
662
665
|
|
|
663
666
|
var inspectSource$3 = store$1.inspectSource;
|
|
664
667
|
|
|
665
|
-
var global$
|
|
668
|
+
var global$j = global$r;
|
|
666
669
|
var isCallable$i = isCallable$p;
|
|
667
670
|
|
|
668
|
-
var WeakMap$1 = global$
|
|
671
|
+
var WeakMap$1 = global$j.WeakMap;
|
|
669
672
|
|
|
670
673
|
var weakMapBasicDetection = isCallable$i(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
671
674
|
|
|
@@ -681,7 +684,7 @@ var sharedKey$3 = function (key) {
|
|
|
681
684
|
var hiddenKeys$4 = {};
|
|
682
685
|
|
|
683
686
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
684
|
-
var global$
|
|
687
|
+
var global$i = global$r;
|
|
685
688
|
var isObject$9 = isObject$e;
|
|
686
689
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
|
|
687
690
|
var hasOwn$b = hasOwnProperty_1;
|
|
@@ -690,8 +693,8 @@ var sharedKey$2 = sharedKey$3;
|
|
|
690
693
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
691
694
|
|
|
692
695
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
693
|
-
var TypeError$4 = global$
|
|
694
|
-
var WeakMap = global$
|
|
696
|
+
var TypeError$4 = global$i.TypeError;
|
|
697
|
+
var WeakMap = global$i.WeakMap;
|
|
695
698
|
var set$1, get$1, has;
|
|
696
699
|
|
|
697
700
|
var enforce = function (it) {
|
|
@@ -901,10 +904,10 @@ var createMethod$3 = function (IS_INCLUDES) {
|
|
|
901
904
|
var value;
|
|
902
905
|
// Array#includes uses SameValueZero equality algorithm
|
|
903
906
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
904
|
-
if (IS_INCLUDES && el
|
|
907
|
+
if (IS_INCLUDES && el !== el) while (length > index) {
|
|
905
908
|
value = O[index++];
|
|
906
909
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
907
|
-
if (value
|
|
910
|
+
if (value !== value) return true;
|
|
908
911
|
// Array#indexOf ignores holes, Array#includes - not
|
|
909
912
|
} else for (;length > index; index++) {
|
|
910
913
|
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
@@ -1009,8 +1012,8 @@ var replacement = /#|\.prototype\./;
|
|
|
1009
1012
|
|
|
1010
1013
|
var isForced$3 = function (feature, detection) {
|
|
1011
1014
|
var value = data[normalize$1(feature)];
|
|
1012
|
-
return value
|
|
1013
|
-
: value
|
|
1015
|
+
return value === POLYFILL ? true
|
|
1016
|
+
: value === NATIVE ? false
|
|
1014
1017
|
: isCallable$f(detection) ? fails$l(detection)
|
|
1015
1018
|
: !!detection;
|
|
1016
1019
|
};
|
|
@@ -1025,7 +1028,7 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
|
|
|
1025
1028
|
|
|
1026
1029
|
var isForced_1 = isForced$3;
|
|
1027
1030
|
|
|
1028
|
-
var global$
|
|
1031
|
+
var global$h = global$r;
|
|
1029
1032
|
var getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f;
|
|
1030
1033
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
1031
1034
|
var defineBuiltIn$a = defineBuiltIn$b;
|
|
@@ -1054,11 +1057,11 @@ var _export = function (options, source) {
|
|
|
1054
1057
|
var STATIC = options.stat;
|
|
1055
1058
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1056
1059
|
if (GLOBAL) {
|
|
1057
|
-
target = global$
|
|
1060
|
+
target = global$h;
|
|
1058
1061
|
} else if (STATIC) {
|
|
1059
|
-
target = global$
|
|
1062
|
+
target = global$h[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1060
1063
|
} else {
|
|
1061
|
-
target = (global$
|
|
1064
|
+
target = (global$h[TARGET] || {}).prototype;
|
|
1062
1065
|
}
|
|
1063
1066
|
if (target) for (key in source) {
|
|
1064
1067
|
sourceProperty = source[key];
|
|
@@ -1123,11 +1126,11 @@ var objectAssign = !$assign || fails$k(function () {
|
|
|
1123
1126
|
var A = {};
|
|
1124
1127
|
var B = {};
|
|
1125
1128
|
// eslint-disable-next-line es/no-symbol -- safe
|
|
1126
|
-
var symbol = Symbol();
|
|
1129
|
+
var symbol = Symbol('assign detection');
|
|
1127
1130
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
1128
1131
|
A[symbol] = 7;
|
|
1129
1132
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1130
|
-
return $assign({}, A)[symbol]
|
|
1133
|
+
return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
|
|
1131
1134
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1132
1135
|
var T = toObject$5(target);
|
|
1133
1136
|
var argumentsLength = arguments.length;
|
|
@@ -1455,7 +1458,6 @@ var getBuiltIn$4 = getBuiltIn$7;
|
|
|
1455
1458
|
var html$2 = getBuiltIn$4('document', 'documentElement');
|
|
1456
1459
|
|
|
1457
1460
|
/* global ActiveXObject -- old IE, WSH */
|
|
1458
|
-
|
|
1459
1461
|
var anObject$f = anObject$j;
|
|
1460
1462
|
var definePropertiesModule = objectDefineProperties;
|
|
1461
1463
|
var enumBugKeys = enumBugKeys$3;
|
|
@@ -1548,7 +1550,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1548
1550
|
|
|
1549
1551
|
// Array.prototype[@@unscopables]
|
|
1550
1552
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1551
|
-
if (ArrayPrototype$1[UNSCOPABLES]
|
|
1553
|
+
if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
1552
1554
|
defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
|
|
1553
1555
|
configurable: true,
|
|
1554
1556
|
value: create$3(null)
|
|
@@ -1689,7 +1691,6 @@ var aPossiblePrototype$1 = function (argument) {
|
|
|
1689
1691
|
};
|
|
1690
1692
|
|
|
1691
1693
|
/* eslint-disable no-proto -- safe */
|
|
1692
|
-
|
|
1693
1694
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1694
1695
|
var anObject$e = anObject$j;
|
|
1695
1696
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
@@ -1746,12 +1747,15 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1746
1747
|
|
|
1747
1748
|
var getIterationMethod = function (KIND) {
|
|
1748
1749
|
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
1749
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1750
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
1751
|
+
|
|
1750
1752
|
switch (KIND) {
|
|
1751
1753
|
case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
|
|
1752
1754
|
case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
|
|
1753
1755
|
case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
|
|
1754
|
-
}
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
return function () { return new IteratorConstructor(this); };
|
|
1755
1759
|
};
|
|
1756
1760
|
|
|
1757
1761
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
@@ -1761,7 +1765,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1761
1765
|
|| IterablePrototype['@@iterator']
|
|
1762
1766
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1763
1767
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
1764
|
-
var anyNativeIterator = NAME
|
|
1768
|
+
var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
|
|
1765
1769
|
var CurrentIteratorPrototype, methods, KEY;
|
|
1766
1770
|
|
|
1767
1771
|
// fix native
|
|
@@ -1781,7 +1785,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1781
1785
|
}
|
|
1782
1786
|
|
|
1783
1787
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1784
|
-
if (PROPER_FUNCTION_NAME$2 && DEFAULT
|
|
1788
|
+
if (PROPER_FUNCTION_NAME$2 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1785
1789
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1786
1790
|
createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
|
|
1787
1791
|
} else {
|
|
@@ -1860,9 +1864,10 @@ var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kin
|
|
|
1860
1864
|
state.target = undefined;
|
|
1861
1865
|
return createIterResultObject$1(undefined, true);
|
|
1862
1866
|
}
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1867
|
+
switch (kind) {
|
|
1868
|
+
case 'keys': return createIterResultObject$1(index, false);
|
|
1869
|
+
case 'values': return createIterResultObject$1(target[index], false);
|
|
1870
|
+
} return createIterResultObject$1([index, target[index]], false);
|
|
1866
1871
|
}, 'values');
|
|
1867
1872
|
|
|
1868
1873
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
@@ -1924,7 +1929,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1924
1929
|
|
|
1925
1930
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1926
1931
|
|
|
1927
|
-
var global$
|
|
1932
|
+
var global$g = global$r;
|
|
1928
1933
|
var DOMIterables = domIterables;
|
|
1929
1934
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1930
1935
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -1958,7 +1963,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1958
1963
|
};
|
|
1959
1964
|
|
|
1960
1965
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1961
|
-
handlePrototype(global$
|
|
1966
|
+
handlePrototype(global$g[COLLECTION_NAME] && global$g[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1962
1967
|
}
|
|
1963
1968
|
|
|
1964
1969
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1981,7 +1986,7 @@ var TO_STRING_TAG = wellKnownSymbol$d('toStringTag');
|
|
|
1981
1986
|
var $Object = Object;
|
|
1982
1987
|
|
|
1983
1988
|
// ES3 wrong here
|
|
1984
|
-
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }())
|
|
1989
|
+
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
|
|
1985
1990
|
|
|
1986
1991
|
// fallback for IE11 Script Access Denied error
|
|
1987
1992
|
var tryGet = function (it, key) {
|
|
@@ -1999,7 +2004,7 @@ var classof$8 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
1999
2004
|
// builtinTag case
|
|
2000
2005
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
2001
2006
|
// ES3 arguments fallback
|
|
2002
|
-
: (result = classofRaw$1(O))
|
|
2007
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
|
|
2003
2008
|
};
|
|
2004
2009
|
|
|
2005
2010
|
var classof$7 = classof$8;
|
|
@@ -2022,7 +2027,7 @@ var defineBuiltInAccessor$4 = function (target, name, descriptor) {
|
|
|
2022
2027
|
|
|
2023
2028
|
var $$l = _export;
|
|
2024
2029
|
var DESCRIPTORS$5 = descriptors;
|
|
2025
|
-
var global$
|
|
2030
|
+
var global$f = global$r;
|
|
2026
2031
|
var uncurryThis$o = functionUncurryThis;
|
|
2027
2032
|
var hasOwn$5 = hasOwnProperty_1;
|
|
2028
2033
|
var isCallable$9 = isCallable$p;
|
|
@@ -2031,7 +2036,7 @@ var toString$i = toString$j;
|
|
|
2031
2036
|
var defineBuiltInAccessor$3 = defineBuiltInAccessor$4;
|
|
2032
2037
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
2033
2038
|
|
|
2034
|
-
var NativeSymbol = global$
|
|
2039
|
+
var NativeSymbol = global$f.Symbol;
|
|
2035
2040
|
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
|
|
2036
2041
|
|
|
2037
2042
|
if (DESCRIPTORS$5 && isCallable$9(NativeSymbol) && (!('description' in SymbolPrototype) ||
|
|
@@ -2054,7 +2059,7 @@ if (DESCRIPTORS$5 && isCallable$9(NativeSymbol) && (!('description' in SymbolPro
|
|
|
2054
2059
|
SymbolWrapper.prototype = SymbolPrototype;
|
|
2055
2060
|
SymbolPrototype.constructor = SymbolWrapper;
|
|
2056
2061
|
|
|
2057
|
-
var NATIVE_SYMBOL = String(NativeSymbol('
|
|
2062
|
+
var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
|
|
2058
2063
|
var thisSymbolValue = uncurryThis$o(SymbolPrototype.valueOf);
|
|
2059
2064
|
var symbolDescriptiveString = uncurryThis$o(SymbolPrototype.toString);
|
|
2060
2065
|
var regexp = /^Symbol\((.*)\)[^)]+$/;
|
|
@@ -2109,7 +2114,7 @@ var MATCH$2 = wellKnownSymbol$c('match');
|
|
|
2109
2114
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
2110
2115
|
var isRegexp = function (it) {
|
|
2111
2116
|
var isRegExp;
|
|
2112
|
-
return isObject$7(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$6(it)
|
|
2117
|
+
return isObject$7(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$6(it) === 'RegExp');
|
|
2113
2118
|
};
|
|
2114
2119
|
|
|
2115
2120
|
var isRegExp$2 = isRegexp;
|
|
@@ -2924,7 +2929,12 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
2924
2929
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
2925
2930
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
2926
2931
|
});
|
|
2927
|
-
}
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
2935
|
+
var e = new Error(message);
|
|
2936
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
2937
|
+
};
|
|
2928
2938
|
|
|
2929
2939
|
const StyledLink = styled('a', {
|
|
2930
2940
|
fontSize: '$short-content-regular',
|
|
@@ -3783,7 +3793,7 @@ const BannerClose = () => /*#__PURE__*/React.createElement(Context$2.Consumer, {
|
|
|
3783
3793
|
onClick: e => {
|
|
3784
3794
|
e.preventDefault();
|
|
3785
3795
|
e.stopPropagation();
|
|
3786
|
-
value === null || value === void 0
|
|
3796
|
+
value === null || value === void 0 || value.onRemove();
|
|
3787
3797
|
},
|
|
3788
3798
|
__self: undefined,
|
|
3789
3799
|
__source: {
|
|
@@ -3838,7 +3848,7 @@ const SingleTagBanner = props => {
|
|
|
3838
3848
|
lineNumber: 213,
|
|
3839
3849
|
columnNumber: 27
|
|
3840
3850
|
}
|
|
3841
|
-
}, props === null || props === void 0
|
|
3851
|
+
}, props === null || props === void 0 || (_props$icon = props.icon) === null || _props$icon === void 0 ? void 0 : _props$icon.call(props)), /*#__PURE__*/React.createElement(Flex$1, {
|
|
3842
3852
|
gap: 2,
|
|
3843
3853
|
direction: "column",
|
|
3844
3854
|
css: {
|
|
@@ -3869,7 +3879,7 @@ const SingleTagBanner = props => {
|
|
|
3869
3879
|
onClick: e => {
|
|
3870
3880
|
e.preventDefault();
|
|
3871
3881
|
e.stopPropagation();
|
|
3872
|
-
props === null || props === void 0
|
|
3882
|
+
props === null || props === void 0 || props.onRemove();
|
|
3873
3883
|
},
|
|
3874
3884
|
closeCenter: !props.title && !props.link,
|
|
3875
3885
|
__self: undefined,
|
|
@@ -6994,7 +7004,7 @@ const InputRadio = _ref => {
|
|
|
6994
7004
|
onFocus: () => {
|
|
6995
7005
|
var _inputProps$onFocus;
|
|
6996
7006
|
onValueChange(props.value);
|
|
6997
|
-
inputProps === null || inputProps === void 0
|
|
7007
|
+
inputProps === null || inputProps === void 0 || (_inputProps$onFocus = inputProps.onFocus) === null || _inputProps$onFocus === void 0 || _inputProps$onFocus.call(inputProps);
|
|
6998
7008
|
},
|
|
6999
7009
|
asChild: true,
|
|
7000
7010
|
__self: this,
|
|
@@ -7011,7 +7021,7 @@ const InputRadio = _ref => {
|
|
|
7011
7021
|
onFocus: () => {
|
|
7012
7022
|
var _inputProps$onFocus2;
|
|
7013
7023
|
onValueChange(props.value);
|
|
7014
|
-
inputProps === null || inputProps === void 0
|
|
7024
|
+
inputProps === null || inputProps === void 0 || (_inputProps$onFocus2 = inputProps.onFocus) === null || _inputProps$onFocus2 === void 0 || _inputProps$onFocus2.call(inputProps);
|
|
7015
7025
|
},
|
|
7016
7026
|
asChild: true,
|
|
7017
7027
|
__self: this,
|
|
@@ -7184,15 +7194,15 @@ var regexpFlags$1 = function () {
|
|
|
7184
7194
|
};
|
|
7185
7195
|
|
|
7186
7196
|
var fails$g = fails$t;
|
|
7187
|
-
var global$
|
|
7197
|
+
var global$e = global$r;
|
|
7188
7198
|
|
|
7189
7199
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
7190
|
-
var $RegExp$2 = global$
|
|
7200
|
+
var $RegExp$2 = global$e.RegExp;
|
|
7191
7201
|
|
|
7192
7202
|
var UNSUPPORTED_Y$3 = fails$g(function () {
|
|
7193
7203
|
var re = $RegExp$2('a', 'y');
|
|
7194
7204
|
re.lastIndex = 2;
|
|
7195
|
-
return re.exec('abcd')
|
|
7205
|
+
return re.exec('abcd') !== null;
|
|
7196
7206
|
});
|
|
7197
7207
|
|
|
7198
7208
|
// UC Browser bug
|
|
@@ -7205,7 +7215,7 @@ var BROKEN_CARET = UNSUPPORTED_Y$3 || fails$g(function () {
|
|
|
7205
7215
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
7206
7216
|
var re = $RegExp$2('^r', 'gy');
|
|
7207
7217
|
re.lastIndex = 2;
|
|
7208
|
-
return re.exec('str')
|
|
7218
|
+
return re.exec('str') !== null;
|
|
7209
7219
|
});
|
|
7210
7220
|
|
|
7211
7221
|
var regexpStickyHelpers = {
|
|
@@ -7215,10 +7225,10 @@ var regexpStickyHelpers = {
|
|
|
7215
7225
|
};
|
|
7216
7226
|
|
|
7217
7227
|
var fails$f = fails$t;
|
|
7218
|
-
var global$
|
|
7228
|
+
var global$d = global$r;
|
|
7219
7229
|
|
|
7220
7230
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
7221
|
-
var $RegExp$1 = global$
|
|
7231
|
+
var $RegExp$1 = global$d.RegExp;
|
|
7222
7232
|
|
|
7223
7233
|
var regexpUnsupportedDotAll = fails$f(function () {
|
|
7224
7234
|
var re = $RegExp$1('.', 's');
|
|
@@ -7226,10 +7236,10 @@ var regexpUnsupportedDotAll = fails$f(function () {
|
|
|
7226
7236
|
});
|
|
7227
7237
|
|
|
7228
7238
|
var fails$e = fails$t;
|
|
7229
|
-
var global$
|
|
7239
|
+
var global$c = global$r;
|
|
7230
7240
|
|
|
7231
7241
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
7232
|
-
var $RegExp = global$
|
|
7242
|
+
var $RegExp = global$c.RegExp;
|
|
7233
7243
|
|
|
7234
7244
|
var regexpUnsupportedNcg = fails$e(function () {
|
|
7235
7245
|
var re = $RegExp('(?<a>b)', 'g');
|
|
@@ -7392,7 +7402,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
7392
7402
|
// String methods call symbol-named RegEp methods
|
|
7393
7403
|
var O = {};
|
|
7394
7404
|
O[SYMBOL] = function () { return 7; };
|
|
7395
|
-
return ''[KEY](O)
|
|
7405
|
+
return ''[KEY](O) !== 7;
|
|
7396
7406
|
});
|
|
7397
7407
|
|
|
7398
7408
|
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$d(function () {
|
|
@@ -7413,7 +7423,10 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
7413
7423
|
re[SYMBOL] = /./[SYMBOL];
|
|
7414
7424
|
}
|
|
7415
7425
|
|
|
7416
|
-
re.exec = function () {
|
|
7426
|
+
re.exec = function () {
|
|
7427
|
+
execCalled = true;
|
|
7428
|
+
return null;
|
|
7429
|
+
};
|
|
7417
7430
|
|
|
7418
7431
|
re[SYMBOL]('');
|
|
7419
7432
|
return !execCalled;
|
|
@@ -7707,13 +7720,16 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall
|
|
|
7707
7720
|
if (!functionalReplace) replaceValue = toString$d(replaceValue);
|
|
7708
7721
|
|
|
7709
7722
|
var global = rx.global;
|
|
7723
|
+
var fullUnicode;
|
|
7710
7724
|
if (global) {
|
|
7711
|
-
|
|
7725
|
+
fullUnicode = rx.unicode;
|
|
7712
7726
|
rx.lastIndex = 0;
|
|
7713
7727
|
}
|
|
7728
|
+
|
|
7714
7729
|
var results = [];
|
|
7730
|
+
var result;
|
|
7715
7731
|
while (true) {
|
|
7716
|
-
|
|
7732
|
+
result = regExpExec$1(rx, S);
|
|
7717
7733
|
if (result === null) break;
|
|
7718
7734
|
|
|
7719
7735
|
push$5(results, result);
|
|
@@ -7731,6 +7747,7 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall
|
|
|
7731
7747
|
var matched = toString$d(result[0]);
|
|
7732
7748
|
var position = max$1(min$3(toIntegerOrInfinity$2(result.index), S.length), 0);
|
|
7733
7749
|
var captures = [];
|
|
7750
|
+
var replacement;
|
|
7734
7751
|
// NOTE: This is equivalent to
|
|
7735
7752
|
// captures = result.slice(1).map(maybeToString)
|
|
7736
7753
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
@@ -7741,7 +7758,7 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall
|
|
|
7741
7758
|
if (functionalReplace) {
|
|
7742
7759
|
var replacerArgs = concat([matched], captures, position, S);
|
|
7743
7760
|
if (namedCaptures !== undefined) push$5(replacerArgs, namedCaptures);
|
|
7744
|
-
|
|
7761
|
+
replacement = toString$d(apply$2(replaceValue, undefined, replacerArgs));
|
|
7745
7762
|
} else {
|
|
7746
7763
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
7747
7764
|
}
|
|
@@ -7750,6 +7767,7 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall
|
|
|
7750
7767
|
nextSourcePosition = position + matched.length;
|
|
7751
7768
|
}
|
|
7752
7769
|
}
|
|
7770
|
+
|
|
7753
7771
|
return accumulatedResult + stringSlice$6(S, nextSourcePosition);
|
|
7754
7772
|
}
|
|
7755
7773
|
];
|
|
@@ -7760,7 +7778,7 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall
|
|
|
7760
7778
|
// eslint-disable-next-line es/no-object-is -- safe
|
|
7761
7779
|
var sameValue$1 = Object.is || function is(x, y) {
|
|
7762
7780
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
7763
|
-
return x === y ? x !== 0 || 1 / x === 1 / y : x
|
|
7781
|
+
return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
|
|
7764
7782
|
};
|
|
7765
7783
|
|
|
7766
7784
|
var call$b = functionCall;
|
|
@@ -7902,7 +7920,8 @@ var arraySliceSimple = function (O, start, end) {
|
|
|
7902
7920
|
var k = toAbsoluteIndex(start, length);
|
|
7903
7921
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
7904
7922
|
var result = $Array$1(max(fin - k, 0));
|
|
7905
|
-
|
|
7923
|
+
var n = 0;
|
|
7924
|
+
for (; k < fin; k++, n++) createProperty$1(result, n, O[k]);
|
|
7906
7925
|
result.length = n;
|
|
7907
7926
|
return result;
|
|
7908
7927
|
};
|
|
@@ -7949,11 +7968,11 @@ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$a(function () {
|
|
|
7949
7968
|
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
7950
7969
|
var internalSplit;
|
|
7951
7970
|
if (
|
|
7952
|
-
'abbc'.split(/(b)*/)[1]
|
|
7971
|
+
'abbc'.split(/(b)*/)[1] === 'c' ||
|
|
7953
7972
|
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
7954
|
-
'test'.split(/(?:)/, -1).length
|
|
7955
|
-
'ab'.split(/(?:ab)*/).length
|
|
7956
|
-
'.'.split(/(.?)(.?)/).length
|
|
7973
|
+
'test'.split(/(?:)/, -1).length !== 4 ||
|
|
7974
|
+
'ab'.split(/(?:ab)*/).length !== 2 ||
|
|
7975
|
+
'.'.split(/(.?)(.?)/).length !== 4 ||
|
|
7957
7976
|
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
7958
7977
|
'.'.split(/()()/).length > 1 ||
|
|
7959
7978
|
''.split(/.?/).length
|
|
@@ -8099,7 +8118,7 @@ var stringTrim = {
|
|
|
8099
8118
|
trim: createMethod$1(3)
|
|
8100
8119
|
};
|
|
8101
8120
|
|
|
8102
|
-
var global$
|
|
8121
|
+
var global$b = global$r;
|
|
8103
8122
|
var fails$9 = fails$t;
|
|
8104
8123
|
var uncurryThis$d = functionUncurryThis;
|
|
8105
8124
|
var toString$9 = toString$j;
|
|
@@ -8107,8 +8126,8 @@ var trim$1 = stringTrim.trim;
|
|
|
8107
8126
|
var whitespaces$2 = whitespaces$4;
|
|
8108
8127
|
|
|
8109
8128
|
var charAt$4 = uncurryThis$d(''.charAt);
|
|
8110
|
-
var $parseFloat$1 = global$
|
|
8111
|
-
var Symbol$6 = global$
|
|
8129
|
+
var $parseFloat$1 = global$b.parseFloat;
|
|
8130
|
+
var Symbol$6 = global$b.Symbol;
|
|
8112
8131
|
var ITERATOR$6 = Symbol$6 && Symbol$6.iterator;
|
|
8113
8132
|
var FORCED$4 = 1 / $parseFloat$1(whitespaces$2 + '-0') !== -Infinity
|
|
8114
8133
|
// MS Edge 18- broken with boxed symbols
|
|
@@ -8119,7 +8138,7 @@ var FORCED$4 = 1 / $parseFloat$1(whitespaces$2 + '-0') !== -Infinity
|
|
|
8119
8138
|
var numberParseFloat = FORCED$4 ? function parseFloat(string) {
|
|
8120
8139
|
var trimmedString = trim$1(toString$9(string));
|
|
8121
8140
|
var result = $parseFloat$1(trimmedString);
|
|
8122
|
-
return result === 0 && charAt$4(trimmedString, 0)
|
|
8141
|
+
return result === 0 && charAt$4(trimmedString, 0) === '-' ? -0 : result;
|
|
8123
8142
|
} : $parseFloat$1;
|
|
8124
8143
|
|
|
8125
8144
|
var $$h = _export;
|
|
@@ -8127,7 +8146,7 @@ var $parseFloat = numberParseFloat;
|
|
|
8127
8146
|
|
|
8128
8147
|
// `parseFloat` method
|
|
8129
8148
|
// https://tc39.es/ecma262/#sec-parsefloat-string
|
|
8130
|
-
$$h({ global: true, forced: parseFloat
|
|
8149
|
+
$$h({ global: true, forced: parseFloat !== $parseFloat }, {
|
|
8131
8150
|
parseFloat: $parseFloat
|
|
8132
8151
|
});
|
|
8133
8152
|
|
|
@@ -8149,7 +8168,7 @@ var stringRepeat = function repeat(count) {
|
|
|
8149
8168
|
var str = toString$8(requireObjectCoercible$2(this));
|
|
8150
8169
|
var result = '';
|
|
8151
8170
|
var n = toIntegerOrInfinity$1(count);
|
|
8152
|
-
if (n < 0 || n
|
|
8171
|
+
if (n < 0 || n === Infinity) throw $RangeError$2('Wrong number of repetitions');
|
|
8153
8172
|
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
|
|
8154
8173
|
return result;
|
|
8155
8174
|
};
|
|
@@ -8240,7 +8259,7 @@ $$g({ target: 'Number', proto: true, forced: FORCED$3 }, {
|
|
|
8240
8259
|
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
|
|
8241
8260
|
if (fractDigits < 0 || fractDigits > 20) throw $RangeError$1('Incorrect fraction digits');
|
|
8242
8261
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
8243
|
-
if (number
|
|
8262
|
+
if (number !== number) return 'NaN';
|
|
8244
8263
|
if (number <= -1e21 || number >= 1e21) return $String(number);
|
|
8245
8264
|
if (number < 0) {
|
|
8246
8265
|
sign = '-';
|
|
@@ -8338,9 +8357,10 @@ var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
|
|
|
8338
8357
|
});
|
|
8339
8358
|
};
|
|
8340
8359
|
|
|
8360
|
+
var global$a = global$r;
|
|
8341
8361
|
var classof$3 = classofRaw$2;
|
|
8342
8362
|
|
|
8343
|
-
var engineIsNode =
|
|
8363
|
+
var engineIsNode = classof$3(global$a.process) === 'process';
|
|
8344
8364
|
|
|
8345
8365
|
var $$f = _export;
|
|
8346
8366
|
var $reduce = arrayReduce.left;
|
|
@@ -8368,7 +8388,7 @@ var classof$2 = classofRaw$2;
|
|
|
8368
8388
|
// https://tc39.es/ecma262/#sec-isarray
|
|
8369
8389
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
8370
8390
|
var isArray$5 = Array.isArray || function isArray(argument) {
|
|
8371
|
-
return classof$2(argument)
|
|
8391
|
+
return classof$2(argument) === 'Array';
|
|
8372
8392
|
};
|
|
8373
8393
|
|
|
8374
8394
|
var $$e = _export;
|
|
@@ -8414,9 +8434,9 @@ var TO_STRING = 'toString';
|
|
|
8414
8434
|
var RegExpPrototype$1 = RegExp.prototype;
|
|
8415
8435
|
var nativeToString = RegExpPrototype$1[TO_STRING];
|
|
8416
8436
|
|
|
8417
|
-
var NOT_GENERIC = fails$6(function () { return nativeToString.call({ source: 'a', flags: 'b' })
|
|
8437
|
+
var NOT_GENERIC = fails$6(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
8418
8438
|
// FF44- RegExp#toString has a wrong name
|
|
8419
|
-
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name
|
|
8439
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING;
|
|
8420
8440
|
|
|
8421
8441
|
// `RegExp.prototype.toString` method
|
|
8422
8442
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
@@ -8477,7 +8497,7 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
|
|
|
8477
8497
|
};
|
|
8478
8498
|
|
|
8479
8499
|
var DESCRIPTORS$3 = descriptors;
|
|
8480
|
-
var global$9 = global$
|
|
8500
|
+
var global$9 = global$r;
|
|
8481
8501
|
var uncurryThis$9 = functionUncurryThis;
|
|
8482
8502
|
var isForced$1 = isForced_1;
|
|
8483
8503
|
var inheritIfRequired = inheritIfRequired$1;
|
|
@@ -8522,7 +8542,7 @@ var BASE_FORCED = DESCRIPTORS$3 &&
|
|
|
8522
8542
|
(!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails$5(function () {
|
|
8523
8543
|
re2[MATCH] = false;
|
|
8524
8544
|
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
8525
|
-
return NativeRegExp(re1)
|
|
8545
|
+
return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
|
|
8526
8546
|
}));
|
|
8527
8547
|
|
|
8528
8548
|
var handleDotAll = function (string) {
|
|
@@ -8563,7 +8583,7 @@ var handleNCG = function (string) {
|
|
|
8563
8583
|
for (; index <= length; index++) {
|
|
8564
8584
|
chr = charAt$3(string, index);
|
|
8565
8585
|
if (chr === '\\') {
|
|
8566
|
-
chr
|
|
8586
|
+
chr += charAt$3(string, ++index);
|
|
8567
8587
|
} else if (chr === ']') {
|
|
8568
8588
|
brackets = false;
|
|
8569
8589
|
} else if (!brackets) switch (true) {
|
|
@@ -10558,7 +10578,7 @@ function TagsInput(_ref) {
|
|
|
10558
10578
|
const addTags = event => {
|
|
10559
10579
|
if (event.key === 'Enter' && event.target.value !== '' && max !== tags.length) {
|
|
10560
10580
|
if (tags.find(tag => tag.toLowerCase() === event.target.value.toLowerCase())) {
|
|
10561
|
-
onEnter === null || onEnter === void 0
|
|
10581
|
+
onEnter === null || onEnter === void 0 || onEnter({
|
|
10562
10582
|
key: 'duplicate',
|
|
10563
10583
|
value: event.target.value
|
|
10564
10584
|
});
|
|
@@ -10567,7 +10587,7 @@ function TagsInput(_ref) {
|
|
|
10567
10587
|
if (pattern && pattern !== null && pattern !== void 0 && pattern.regex) {
|
|
10568
10588
|
const regex = new RegExp(pattern.regex);
|
|
10569
10589
|
if (!regex.test(event.target.value)) {
|
|
10570
|
-
onEnter === null || onEnter === void 0
|
|
10590
|
+
onEnter === null || onEnter === void 0 || onEnter({
|
|
10571
10591
|
key: 'error',
|
|
10572
10592
|
value: event.target.value
|
|
10573
10593
|
});
|
|
@@ -10576,7 +10596,7 @@ function TagsInput(_ref) {
|
|
|
10576
10596
|
}
|
|
10577
10597
|
}
|
|
10578
10598
|
setRegexError(false);
|
|
10579
|
-
onEnter === null || onEnter === void 0
|
|
10599
|
+
onEnter === null || onEnter === void 0 || onEnter({
|
|
10580
10600
|
key: 'success',
|
|
10581
10601
|
value: event.target.value
|
|
10582
10602
|
});
|
|
@@ -10588,7 +10608,7 @@ function TagsInput(_ref) {
|
|
|
10588
10608
|
if (disabled || readOnly) {
|
|
10589
10609
|
return tags;
|
|
10590
10610
|
} else if (key === 'removeTag' || key === 'Backspace') {
|
|
10591
|
-
onRemoveItem === null || onRemoveItem === void 0
|
|
10611
|
+
onRemoveItem === null || onRemoveItem === void 0 || onRemoveItem(tags[index]);
|
|
10592
10612
|
setTags([...tags.filter(tag => tags.indexOf(tag) !== index)]);
|
|
10593
10613
|
}
|
|
10594
10614
|
};
|
|
@@ -10954,7 +10974,7 @@ const InputSearchbox = _ref => {
|
|
|
10954
10974
|
if (withDebounce) {
|
|
10955
10975
|
debounceChange(e.target.value);
|
|
10956
10976
|
} else {
|
|
10957
|
-
onChange === null || onChange === void 0
|
|
10977
|
+
onChange === null || onChange === void 0 || onChange(e.target.value);
|
|
10958
10978
|
}
|
|
10959
10979
|
}, [onChange, debounceChange, withDebounce]);
|
|
10960
10980
|
const handleClearButtonClick = e => {
|
|
@@ -12100,7 +12120,7 @@ var userAgent$2 = engineUserAgent;
|
|
|
12100
12120
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
12101
12121
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
12102
12122
|
|
|
12103
|
-
var global$8 = global$
|
|
12123
|
+
var global$8 = global$r;
|
|
12104
12124
|
var apply = functionApply;
|
|
12105
12125
|
var bind$6 = functionBindContext;
|
|
12106
12126
|
var isCallable$4 = isCallable$p;
|
|
@@ -12115,7 +12135,7 @@ var IS_NODE$3 = engineIsNode;
|
|
|
12115
12135
|
|
|
12116
12136
|
var set = global$8.setImmediate;
|
|
12117
12137
|
var clear = global$8.clearImmediate;
|
|
12118
|
-
var process$
|
|
12138
|
+
var process$2 = global$8.process;
|
|
12119
12139
|
var Dispatch = global$8.Dispatch;
|
|
12120
12140
|
var Function$1 = global$8.Function;
|
|
12121
12141
|
var MessageChannel = global$8.MessageChannel;
|
|
@@ -12171,7 +12191,7 @@ if (!set || !clear) {
|
|
|
12171
12191
|
// Node.js 0.8-
|
|
12172
12192
|
if (IS_NODE$3) {
|
|
12173
12193
|
defer = function (id) {
|
|
12174
|
-
process$
|
|
12194
|
+
process$2.nextTick(runner(id));
|
|
12175
12195
|
};
|
|
12176
12196
|
// Sphere (JS game engine) Dispatch API
|
|
12177
12197
|
} else if (Dispatch && Dispatch.now) {
|
|
@@ -12250,7 +12270,7 @@ var userAgent = engineUserAgent;
|
|
|
12250
12270
|
|
|
12251
12271
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
12252
12272
|
|
|
12253
|
-
var global$7 = global$
|
|
12273
|
+
var global$7 = global$r;
|
|
12254
12274
|
var bind$5 = functionBindContext;
|
|
12255
12275
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
12256
12276
|
var macrotask = task$1.set;
|
|
@@ -12262,7 +12282,7 @@ var IS_NODE$2 = engineIsNode;
|
|
|
12262
12282
|
|
|
12263
12283
|
var MutationObserver = global$7.MutationObserver || global$7.WebKitMutationObserver;
|
|
12264
12284
|
var document$2 = global$7.document;
|
|
12265
|
-
var process$
|
|
12285
|
+
var process$1 = global$7.process;
|
|
12266
12286
|
var Promise$1 = global$7.Promise;
|
|
12267
12287
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
12268
12288
|
var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$7, 'queueMicrotask');
|
|
@@ -12275,7 +12295,7 @@ if (!microtask$1) {
|
|
|
12275
12295
|
|
|
12276
12296
|
var flush = function () {
|
|
12277
12297
|
var parent, fn;
|
|
12278
|
-
if (IS_NODE$2 && (parent = process$
|
|
12298
|
+
if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
|
|
12279
12299
|
while (fn = queue.get()) try {
|
|
12280
12300
|
fn();
|
|
12281
12301
|
} catch (error) {
|
|
@@ -12307,7 +12327,7 @@ if (!microtask$1) {
|
|
|
12307
12327
|
// Node.js without promises
|
|
12308
12328
|
} else if (IS_NODE$2) {
|
|
12309
12329
|
notify$1 = function () {
|
|
12310
|
-
process$
|
|
12330
|
+
process$1.nextTick(flush);
|
|
12311
12331
|
};
|
|
12312
12332
|
// for other environments - macrotask based on:
|
|
12313
12333
|
// - setImmediate
|
|
@@ -12334,7 +12354,7 @@ var microtask_1 = microtask$1;
|
|
|
12334
12354
|
var hostReportErrors$1 = function (a, b) {
|
|
12335
12355
|
try {
|
|
12336
12356
|
// eslint-disable-next-line no-console -- safe
|
|
12337
|
-
arguments.length
|
|
12357
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
12338
12358
|
} catch (error) { /* empty */ }
|
|
12339
12359
|
};
|
|
12340
12360
|
|
|
@@ -12346,12 +12366,11 @@ var perform$3 = function (exec) {
|
|
|
12346
12366
|
}
|
|
12347
12367
|
};
|
|
12348
12368
|
|
|
12349
|
-
var global$6 = global$
|
|
12369
|
+
var global$6 = global$r;
|
|
12350
12370
|
|
|
12351
12371
|
var promiseNativeConstructor = global$6.Promise;
|
|
12352
12372
|
|
|
12353
12373
|
/* global Deno -- Deno case */
|
|
12354
|
-
|
|
12355
12374
|
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
12356
12375
|
|
|
12357
12376
|
var IS_DENO$1 = engineIsDeno;
|
|
@@ -12361,7 +12380,7 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
12361
12380
|
&& typeof window == 'object'
|
|
12362
12381
|
&& typeof document == 'object';
|
|
12363
12382
|
|
|
12364
|
-
var global$5 = global$
|
|
12383
|
+
var global$5 = global$r;
|
|
12365
12384
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
12366
12385
|
var isCallable$3 = isCallable$p;
|
|
12367
12386
|
var isForced = isForced_1;
|
|
@@ -12431,7 +12450,7 @@ newPromiseCapability$2.f = function (C) {
|
|
|
12431
12450
|
|
|
12432
12451
|
var $$a = _export;
|
|
12433
12452
|
var IS_NODE = engineIsNode;
|
|
12434
|
-
var global$4 = global$
|
|
12453
|
+
var global$4 = global$r;
|
|
12435
12454
|
var call$8 = functionCall;
|
|
12436
12455
|
var defineBuiltIn$4 = defineBuiltIn$b;
|
|
12437
12456
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
@@ -12463,7 +12482,7 @@ var PromiseConstructor = NativePromiseConstructor$2;
|
|
|
12463
12482
|
var PromisePrototype = NativePromisePrototype$1;
|
|
12464
12483
|
var TypeError$3 = global$4.TypeError;
|
|
12465
12484
|
var document$1 = global$4.document;
|
|
12466
|
-
var process
|
|
12485
|
+
var process = global$4.process;
|
|
12467
12486
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
12468
12487
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
12469
12488
|
|
|
@@ -12486,7 +12505,7 @@ var isThenable = function (it) {
|
|
|
12486
12505
|
|
|
12487
12506
|
var callReaction = function (reaction, state) {
|
|
12488
12507
|
var value = state.value;
|
|
12489
|
-
var ok = state.state
|
|
12508
|
+
var ok = state.state === FULFILLED;
|
|
12490
12509
|
var handler = ok ? reaction.ok : reaction.fail;
|
|
12491
12510
|
var resolve = reaction.resolve;
|
|
12492
12511
|
var reject = reaction.reject;
|
|
@@ -12555,7 +12574,7 @@ var onUnhandled = function (state) {
|
|
|
12555
12574
|
if (IS_UNHANDLED) {
|
|
12556
12575
|
result = perform$2(function () {
|
|
12557
12576
|
if (IS_NODE) {
|
|
12558
|
-
process
|
|
12577
|
+
process.emit('unhandledRejection', value, promise);
|
|
12559
12578
|
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
12560
12579
|
});
|
|
12561
12580
|
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
@@ -12573,7 +12592,7 @@ var onHandleUnhandled = function (state) {
|
|
|
12573
12592
|
call$8(task, global$4, function () {
|
|
12574
12593
|
var promise = state.facade;
|
|
12575
12594
|
if (IS_NODE) {
|
|
12576
|
-
process
|
|
12595
|
+
process.emit('rejectionHandled', promise);
|
|
12577
12596
|
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
12578
12597
|
});
|
|
12579
12598
|
};
|
|
@@ -12661,8 +12680,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
12661
12680
|
state.parent = true;
|
|
12662
12681
|
reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
|
|
12663
12682
|
reaction.fail = isCallable$2(onRejected) && onRejected;
|
|
12664
|
-
reaction.domain = IS_NODE ? process
|
|
12665
|
-
if (state.state
|
|
12683
|
+
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
12684
|
+
if (state.state === PENDING) state.reactions.add(reaction);
|
|
12666
12685
|
else microtask(function () {
|
|
12667
12686
|
callReaction(reaction, state);
|
|
12668
12687
|
});
|
|
@@ -12871,7 +12890,9 @@ try {
|
|
|
12871
12890
|
} catch (error) { /* empty */ }
|
|
12872
12891
|
|
|
12873
12892
|
var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
12874
|
-
|
|
12893
|
+
try {
|
|
12894
|
+
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
|
|
12895
|
+
} catch (error) { return false; } // workaround of old WebKit + `eval` bug
|
|
12875
12896
|
var ITERATION_SUPPORT = false;
|
|
12876
12897
|
try {
|
|
12877
12898
|
var object = {};
|
|
@@ -13362,7 +13383,7 @@ const IndeterminateFilled$1 = styled('div', {
|
|
|
13362
13383
|
alignItems: 'center'
|
|
13363
13384
|
});
|
|
13364
13385
|
const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
13365
|
-
var _initItem$reduce, _ref2, _selectedItems$filter, _selectedItems$filter2, _selectedItems$filter3
|
|
13386
|
+
var _initItem$reduce, _ref2, _selectedItems$filter, _selectedItems$filter2, _selectedItems$filter3;
|
|
13366
13387
|
let {
|
|
13367
13388
|
placeholder,
|
|
13368
13389
|
option,
|
|
@@ -13413,7 +13434,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13413
13434
|
const isShowSelectAll = showSelectAll && !maxSelectedItem;
|
|
13414
13435
|
useEffect(() => {
|
|
13415
13436
|
var _scrollerRef$current;
|
|
13416
|
-
(_scrollerRef$current = scrollerRef.current) === null || _scrollerRef$current === void 0
|
|
13437
|
+
(_scrollerRef$current = scrollerRef.current) === null || _scrollerRef$current === void 0 || _scrollerRef$current.scrollTo({
|
|
13417
13438
|
top: 0
|
|
13418
13439
|
});
|
|
13419
13440
|
}, [query]);
|
|
@@ -13484,7 +13505,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13484
13505
|
removeSelectedItem,
|
|
13485
13506
|
selectedItems
|
|
13486
13507
|
} = useMultipleSelection({
|
|
13487
|
-
selectedItems: selectedValue.length > 0 ? initItem === null || initItem === void 0
|
|
13508
|
+
selectedItems: selectedValue.length > 0 ? initItem === null || initItem === void 0 || (_initItem$reduce = initItem.reduce((acc, item) => [...acc, item, ...(item.children ? item.children : [])], [])) === null || _initItem$reduce === void 0 ? void 0 : _initItem$reduce.filter(item => selectedValue.includes(item.id)) : []
|
|
13488
13509
|
});
|
|
13489
13510
|
const generateOptions = data => {
|
|
13490
13511
|
return data.map(option => {
|
|
@@ -13506,7 +13527,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13506
13527
|
};
|
|
13507
13528
|
const debouncedSearch = React__default.useRef(debounce(async query => {
|
|
13508
13529
|
setQuery(query);
|
|
13509
|
-
onSearch === null || onSearch === void 0
|
|
13530
|
+
onSearch === null || onSearch === void 0 || onSearch(query);
|
|
13510
13531
|
}, 1000)).current;
|
|
13511
13532
|
React__default.useEffect(() => {
|
|
13512
13533
|
return () => {
|
|
@@ -13514,7 +13535,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13514
13535
|
};
|
|
13515
13536
|
}, [debouncedSearch]);
|
|
13516
13537
|
const handleInputValue = input => {
|
|
13517
|
-
onSearch === null || onSearch === void 0
|
|
13538
|
+
onSearch === null || onSearch === void 0 || onSearch(input);
|
|
13518
13539
|
if (input === '') {
|
|
13519
13540
|
if (disabledOptions.length > 0) {
|
|
13520
13541
|
setItems(generateOptions(sortDisabled));
|
|
@@ -13523,8 +13544,8 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13523
13544
|
}
|
|
13524
13545
|
} else {
|
|
13525
13546
|
let filterItems = option === null || option === void 0 ? void 0 : option.filter(item => {
|
|
13526
|
-
var _item$name, _item$name$
|
|
13527
|
-
return item === null || item === void 0
|
|
13547
|
+
var _item$name, _item$name$includes, _input$toLocaleLowerC;
|
|
13548
|
+
return item === null || item === void 0 || (_item$name = item.name) === null || _item$name === void 0 || (_item$name = _item$name.toLowerCase()) === null || _item$name === void 0 || (_item$name$includes = _item$name.includes) === null || _item$name$includes === void 0 ? void 0 : _item$name$includes.call(_item$name, input === null || input === void 0 || (_input$toLocaleLowerC = input.toLocaleLowerCase) === null || _input$toLocaleLowerC === void 0 ? void 0 : _input$toLocaleLowerC.call(input));
|
|
13528
13549
|
});
|
|
13529
13550
|
setItems(filterItems);
|
|
13530
13551
|
}
|
|
@@ -13536,7 +13557,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13536
13557
|
if ((selected === null || selected === void 0 ? void 0 : selected.id) === 'counter') {
|
|
13537
13558
|
setSelectedValue([]);
|
|
13538
13559
|
setInputSelectValue([]);
|
|
13539
|
-
onChange === null || onChange === void 0
|
|
13560
|
+
onChange === null || onChange === void 0 || onChange([]);
|
|
13540
13561
|
for (let i = 0; i < selectedValue.length; i++) {
|
|
13541
13562
|
removeSelectedItem(selectedValue[i]);
|
|
13542
13563
|
}
|
|
@@ -13546,7 +13567,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13546
13567
|
setSelectedValue(filterItems);
|
|
13547
13568
|
setInputSelectValue(filterItems);
|
|
13548
13569
|
if (selected.id !== '!all') {
|
|
13549
|
-
onChange === null || onChange === void 0
|
|
13570
|
+
onChange === null || onChange === void 0 || onChange(filterItems);
|
|
13550
13571
|
}
|
|
13551
13572
|
}
|
|
13552
13573
|
}
|
|
@@ -13586,7 +13607,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13586
13607
|
var _item$children;
|
|
13587
13608
|
if (item !== null && item !== void 0 && (_item$children = item.children) !== null && _item$children !== void 0 && _item$children.length) {
|
|
13588
13609
|
var _item$children2;
|
|
13589
|
-
item === null || item === void 0
|
|
13610
|
+
item === null || item === void 0 || (_item$children2 = item.children) === null || _item$children2 === void 0 || _item$children2.forEach(item => {
|
|
13590
13611
|
removeSelectedItem(item);
|
|
13591
13612
|
});
|
|
13592
13613
|
} else {
|
|
@@ -13595,7 +13616,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13595
13616
|
});
|
|
13596
13617
|
setSelectedValue([]);
|
|
13597
13618
|
setInputSelectValue([]);
|
|
13598
|
-
onChange === null || onChange === void 0
|
|
13619
|
+
onChange === null || onChange === void 0 || onChange([]);
|
|
13599
13620
|
} else {
|
|
13600
13621
|
removeItem(selectedItem);
|
|
13601
13622
|
}
|
|
@@ -13608,7 +13629,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13608
13629
|
var _item$children3;
|
|
13609
13630
|
if (item !== null && item !== void 0 && (_item$children3 = item.children) !== null && _item$children3 !== void 0 && _item$children3.length) {
|
|
13610
13631
|
var _item$children4;
|
|
13611
|
-
item === null || item === void 0
|
|
13632
|
+
item === null || item === void 0 || (_item$children4 = item.children) === null || _item$children4 === void 0 || _item$children4.forEach(item => {
|
|
13612
13633
|
addSelectedItem(item);
|
|
13613
13634
|
itemIds.push(item.id);
|
|
13614
13635
|
});
|
|
@@ -13620,7 +13641,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13620
13641
|
setSelectedValue(itemIds);
|
|
13621
13642
|
setInputSelectValue(itemIds);
|
|
13622
13643
|
// onChange?.(itemIds.slice(1).filter(id => !items.find(item => item.id === id)?.children?.length));
|
|
13623
|
-
onChange === null || onChange === void 0
|
|
13644
|
+
onChange === null || onChange === void 0 || onChange(itemIds.slice(1));
|
|
13624
13645
|
} else {
|
|
13625
13646
|
var _selectedItem$childre;
|
|
13626
13647
|
//start check if item have children (option group)
|
|
@@ -13628,7 +13649,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13628
13649
|
var _selectedItem$childre2;
|
|
13629
13650
|
const itemIdsSelect = [];
|
|
13630
13651
|
const itemIdsUnSelect = [];
|
|
13631
|
-
selectedItem === null || selectedItem === void 0
|
|
13652
|
+
selectedItem === null || selectedItem === void 0 || (_selectedItem$childre2 = selectedItem.children) === null || _selectedItem$childre2 === void 0 || _selectedItem$childre2.forEach(item => {
|
|
13632
13653
|
if (selectedValue !== null && selectedValue !== void 0 && selectedValue.includes(item.id)) {
|
|
13633
13654
|
removeSelectedItem(item);
|
|
13634
13655
|
itemIdsUnSelect.push(item.id);
|
|
@@ -13643,7 +13664,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13643
13664
|
setSelectedValue([...selectedValue, ...itemIdsSelect]);
|
|
13644
13665
|
setInputSelectValue([...selectedValue, ...itemIdsSelect]);
|
|
13645
13666
|
const _filteredSelectedValues = selectedValue.filter(val => val !== '!all');
|
|
13646
|
-
onChange === null || onChange === void 0
|
|
13667
|
+
onChange === null || onChange === void 0 || onChange([..._filteredSelectedValues, ...itemIdsSelect]);
|
|
13647
13668
|
}
|
|
13648
13669
|
|
|
13649
13670
|
//unselect all child in one of the option groups
|
|
@@ -13655,7 +13676,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13655
13676
|
setSelectedValue(newSelectedValue);
|
|
13656
13677
|
setInputSelectValue(newSelectedValue);
|
|
13657
13678
|
const _filteredSelectedValues2 = newSelectedValue.filter(val => val !== '!all');
|
|
13658
|
-
onChange === null || onChange === void 0
|
|
13679
|
+
onChange === null || onChange === void 0 || onChange(_filteredSelectedValues2);
|
|
13659
13680
|
}
|
|
13660
13681
|
return;
|
|
13661
13682
|
}
|
|
@@ -13672,7 +13693,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13672
13693
|
setSelectedValue([...selectedValue, selectedItem.id]);
|
|
13673
13694
|
setInputSelectValue([...selectedValue, selectedItem.id]);
|
|
13674
13695
|
const filteredSelectedValues = selectedValue.filter(val => val !== '!all');
|
|
13675
|
-
onChange === null || onChange === void 0
|
|
13696
|
+
onChange === null || onChange === void 0 || onChange([...filteredSelectedValues, selectedItem.id]);
|
|
13676
13697
|
}
|
|
13677
13698
|
selectItem(null);
|
|
13678
13699
|
}
|
|
@@ -13762,7 +13783,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13762
13783
|
}, [label, isOpen]);
|
|
13763
13784
|
const toggleCollapsible = () => setShowAllTags(!showAllTags);
|
|
13764
13785
|
const handleRemoveAllItem = () => {
|
|
13765
|
-
onChange === null || onChange === void 0
|
|
13786
|
+
onChange === null || onChange === void 0 || onChange([]);
|
|
13766
13787
|
setSelectedValue([]);
|
|
13767
13788
|
setInputSelectValue([]);
|
|
13768
13789
|
for (let i = 0; i < selectedValue.length; i++) {
|
|
@@ -13849,11 +13870,11 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13849
13870
|
};
|
|
13850
13871
|
let lastGroupIndex = showSelectAll ? 1 : 0;
|
|
13851
13872
|
const renderOptionGroupItem = (item, index) => {
|
|
13852
|
-
var _item$children5, _item$children6, _item$children7, _item$
|
|
13873
|
+
var _item$children5, _item$children6, _item$children7, _item$render2, _item$children8;
|
|
13853
13874
|
// const groupIndex = (index > (showSelectAll ? 1 : 0)) ? lastGroupIndex : 0;
|
|
13854
13875
|
const groupIndex = lastGroupIndex;
|
|
13855
|
-
lastGroupIndex += ((item === null || item === void 0
|
|
13856
|
-
const filterSelectedChild = item === null || item === void 0
|
|
13876
|
+
lastGroupIndex += ((item === null || item === void 0 || (_item$children5 = item.children) === null || _item$children5 === void 0 ? void 0 : _item$children5.length) || 0) + 1;
|
|
13877
|
+
const filterSelectedChild = item === null || item === void 0 || (_item$children6 = item.children) === null || _item$children6 === void 0 ? void 0 : _item$children6.filter(e => selectedValue.includes(e.id) && !e.isDisabled);
|
|
13857
13878
|
return /*#__PURE__*/React__default.createElement(OptionGroupItem, {
|
|
13858
13879
|
item: /*#__PURE__*/React__default.createElement(ItemWrapper$1, _extends({
|
|
13859
13880
|
key: item.id
|
|
@@ -13894,7 +13915,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13894
13915
|
lineNumber: 802,
|
|
13895
13916
|
columnNumber: 19
|
|
13896
13917
|
}
|
|
13897
|
-
}) : (filterSelectedChild === null || filterSelectedChild === void 0 ? void 0 : filterSelectedChild.length) === (item === null || item === void 0
|
|
13918
|
+
}) : (filterSelectedChild === null || filterSelectedChild === void 0 ? void 0 : filterSelectedChild.length) === (item === null || item === void 0 || (_item$children7 = item.children) === null || _item$children7 === void 0 || (_item$children7 = _item$children7.filter(e => !e.isDisabled)) === null || _item$children7 === void 0 ? void 0 : _item$children7.length) ? /*#__PURE__*/React__default.createElement(CheckOutline, {
|
|
13898
13919
|
color: colors$8.iconGreen,
|
|
13899
13920
|
__self: undefined,
|
|
13900
13921
|
__source: {
|
|
@@ -13927,7 +13948,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
13927
13948
|
lineNumber: 778,
|
|
13928
13949
|
columnNumber: 9
|
|
13929
13950
|
}
|
|
13930
|
-
}, item === null || item === void 0
|
|
13951
|
+
}, item === null || item === void 0 || (_item$children8 = item.children) === null || _item$children8 === void 0 ? void 0 : _item$children8.map((optItem, optIndex) => renderOptionItem(optItem, groupIndex + optIndex + 1, true)));
|
|
13931
13952
|
};
|
|
13932
13953
|
return /*#__PURE__*/React__default.createElement(Wrapper$1, _extends({
|
|
13933
13954
|
css: css
|
|
@@ -14057,13 +14078,13 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
14057
14078
|
lineNumber: 868,
|
|
14058
14079
|
columnNumber: 17
|
|
14059
14080
|
}
|
|
14060
|
-
}), selectAllLabel != null ? selectAllLabel : t('selectAllLabelText', 'Pilih Semua')) : selectedItems === null || selectedItems === void 0
|
|
14081
|
+
}), selectAllLabel != null ? selectAllLabel : t('selectAllLabelText', 'Pilih Semua')) : selectedItems === null || selectedItems === void 0 || (_selectedItems$filter = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter === void 0 || (_selectedItems$filter = _selectedItems$filter.filter((_, idx) => {
|
|
14061
14082
|
if (showAllTags || !collapsible) {
|
|
14062
14083
|
return true;
|
|
14063
14084
|
} else {
|
|
14064
14085
|
return idx < 5;
|
|
14065
14086
|
}
|
|
14066
|
-
})) === null || _selectedItems$
|
|
14087
|
+
})) === null || _selectedItems$filter === void 0 ? void 0 : _selectedItems$filter.map((selectedItem, index) => /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
14067
14088
|
disabled: disabled,
|
|
14068
14089
|
isRemovable: readOnly || disabled || unremovableTags.includes(selectedItem.id) ? false : true,
|
|
14069
14090
|
size: "lg",
|
|
@@ -14173,7 +14194,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
14173
14194
|
lineNumber: 937,
|
|
14174
14195
|
columnNumber: 17
|
|
14175
14196
|
}
|
|
14176
|
-
}, `${selectedItems === null || selectedItems === void 0
|
|
14197
|
+
}, `${selectedItems === null || selectedItems === void 0 || (_selectedItems$filter2 = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter2 === void 0 ? void 0 : _selectedItems$filter2.length} ${labelCounter || t('labelCounterText', 'Item terpilih')}`))), showCounter && !isShowTagSelectAll && Boolean(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) && /*#__PURE__*/React__default.createElement(Paragraph, {
|
|
14177
14198
|
css: {
|
|
14178
14199
|
fontSize: '$label',
|
|
14179
14200
|
marginTop: '$spacing-01'
|
|
@@ -14185,7 +14206,7 @@ const InputSelectCheck = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
14185
14206
|
lineNumber: 946,
|
|
14186
14207
|
columnNumber: 11
|
|
14187
14208
|
}
|
|
14188
|
-
}, `${selectedItems === null || selectedItems === void 0
|
|
14209
|
+
}, `${selectedItems === null || selectedItems === void 0 || (_selectedItems$filter3 = selectedItems.filter(item => (item === null || item === void 0 ? void 0 : item.id) !== '!all')) === null || _selectedItems$filter3 === void 0 ? void 0 : _selectedItems$filter3.length} ${labelCounter || t('labelCounterText', 'Item terpilih')}`), /*#__PURE__*/React__default.createElement(OptionWrapper$1, {
|
|
14189
14210
|
placement: placement,
|
|
14190
14211
|
css: {
|
|
14191
14212
|
display: isOpen && disabled === false ? 'block' : 'none',
|
|
@@ -15336,7 +15357,7 @@ ResendOTP.defaultProps = {
|
|
|
15336
15357
|
timeInterval: 1000
|
|
15337
15358
|
};
|
|
15338
15359
|
|
|
15339
|
-
var global$3 = global$
|
|
15360
|
+
var global$3 = global$r;
|
|
15340
15361
|
var fails$2 = fails$t;
|
|
15341
15362
|
var uncurryThis$3 = functionUncurryThis;
|
|
15342
15363
|
var toString$3 = toString$j;
|
|
@@ -15364,7 +15385,7 @@ var $parseInt = numberParseInt;
|
|
|
15364
15385
|
|
|
15365
15386
|
// `parseInt` method
|
|
15366
15387
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
15367
|
-
$$4({ global: true, forced: parseInt
|
|
15388
|
+
$$4({ global: true, forced: parseInt !== $parseInt }, {
|
|
15368
15389
|
parseInt: $parseInt
|
|
15369
15390
|
});
|
|
15370
15391
|
|
|
@@ -17799,7 +17820,7 @@ const NativeTimePicker = ({
|
|
|
17799
17820
|
}
|
|
17800
17821
|
function handleInputChange(type, e) {
|
|
17801
17822
|
var _e$target;
|
|
17802
|
-
const value = e === null || e === void 0
|
|
17823
|
+
const value = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
17803
17824
|
const format = 'DD:MM:YYYY:HH:mm';
|
|
17804
17825
|
const minLength = (value === null || value === void 0 ? void 0 : value.length) > 1;
|
|
17805
17826
|
const hourValue = params => moment(moment(`${moment(date).format('DD:MM:YYYY:mm')}:${params}`, 'DD:MM:YYYY:mm:HH').toDate());
|
|
@@ -21406,7 +21427,7 @@ const PaginationButton = ({
|
|
|
21406
21427
|
onSubmit: () => {
|
|
21407
21428
|
var _dialogPageRef$curren2;
|
|
21408
21429
|
debouncedGoToPage(Number(goToPage));
|
|
21409
|
-
(_dialogPageRef$curren2 = dialogPageRef.current) === null || _dialogPageRef$curren2 === void 0
|
|
21430
|
+
(_dialogPageRef$curren2 = dialogPageRef.current) === null || _dialogPageRef$curren2 === void 0 || _dialogPageRef$curren2.click();
|
|
21410
21431
|
},
|
|
21411
21432
|
__self: undefined,
|
|
21412
21433
|
__source: {
|
|
@@ -21456,7 +21477,7 @@ const PaginationButton = ({
|
|
|
21456
21477
|
onClick: () => {
|
|
21457
21478
|
var _dialogPageRef$curren3;
|
|
21458
21479
|
setGoToPage(null);
|
|
21459
|
-
(_dialogPageRef$curren3 = dialogPageRef.current) === null || _dialogPageRef$curren3 === void 0
|
|
21480
|
+
(_dialogPageRef$curren3 = dialogPageRef.current) === null || _dialogPageRef$curren3 === void 0 || _dialogPageRef$curren3.click();
|
|
21460
21481
|
},
|
|
21461
21482
|
__self: undefined,
|
|
21462
21483
|
__source: {
|
|
@@ -21471,7 +21492,7 @@ const PaginationButton = ({
|
|
|
21471
21492
|
onClick: () => {
|
|
21472
21493
|
var _dialogPageRef$curren4;
|
|
21473
21494
|
debouncedGoToPage(Number(goToPage));
|
|
21474
|
-
(_dialogPageRef$curren4 = dialogPageRef.current) === null || _dialogPageRef$curren4 === void 0
|
|
21495
|
+
(_dialogPageRef$curren4 = dialogPageRef.current) === null || _dialogPageRef$curren4 === void 0 || _dialogPageRef$curren4.click();
|
|
21475
21496
|
},
|
|
21476
21497
|
__self: undefined,
|
|
21477
21498
|
__source: {
|
|
@@ -21560,7 +21581,7 @@ function PaginationInfo(_ref) {
|
|
|
21560
21581
|
onClick: () => {
|
|
21561
21582
|
if (isMobilePagination) {
|
|
21562
21583
|
var _dialogLimitRef$curre;
|
|
21563
|
-
(_dialogLimitRef$curre = dialogLimitRef.current) === null || _dialogLimitRef$curre === void 0
|
|
21584
|
+
(_dialogLimitRef$curre = dialogLimitRef.current) === null || _dialogLimitRef$curre === void 0 || _dialogLimitRef$curre.click();
|
|
21564
21585
|
}
|
|
21565
21586
|
},
|
|
21566
21587
|
__self: this,
|
|
@@ -21704,7 +21725,7 @@ function PaginationInfo(_ref) {
|
|
|
21704
21725
|
onClick: () => {
|
|
21705
21726
|
var _dialogLimitRef$curre2;
|
|
21706
21727
|
onChange(limit);
|
|
21707
|
-
(_dialogLimitRef$curre2 = dialogLimitRef.current) === null || _dialogLimitRef$curre2 === void 0
|
|
21728
|
+
(_dialogLimitRef$curre2 = dialogLimitRef.current) === null || _dialogLimitRef$curre2 === void 0 || _dialogLimitRef$curre2.click();
|
|
21708
21729
|
},
|
|
21709
21730
|
__self: this,
|
|
21710
21731
|
__source: {
|
|
@@ -24419,7 +24440,7 @@ const TemplateAlertFunction = props => {
|
|
|
24419
24440
|
if (!props.onOpenAutoFocus) {
|
|
24420
24441
|
e.preventDefault();
|
|
24421
24442
|
} else {
|
|
24422
|
-
props === null || props === void 0
|
|
24443
|
+
props === null || props === void 0 || props.onOpenAutoFocus();
|
|
24423
24444
|
}
|
|
24424
24445
|
},
|
|
24425
24446
|
__self: undefined,
|
|
@@ -25207,20 +25228,25 @@ var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
|
25207
25228
|
var urlConstructorDetection = !fails$1(function () {
|
|
25208
25229
|
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
25209
25230
|
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
25210
|
-
var
|
|
25231
|
+
var params = url.searchParams;
|
|
25232
|
+
var params2 = new URLSearchParams('a=1&a=2&b=3');
|
|
25211
25233
|
var result = '';
|
|
25212
25234
|
url.pathname = 'c%20d';
|
|
25213
|
-
|
|
25214
|
-
|
|
25235
|
+
params.forEach(function (value, key) {
|
|
25236
|
+
params['delete']('b');
|
|
25215
25237
|
result += key + value;
|
|
25216
25238
|
});
|
|
25217
|
-
|
|
25218
|
-
|
|
25219
|
-
|
|
25239
|
+
params2['delete']('a', 2);
|
|
25240
|
+
// `undefined` case is a Chromium 117 bug
|
|
25241
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
25242
|
+
params2['delete']('b', undefined);
|
|
25243
|
+
return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
|
|
25244
|
+
|| (!params.size && (IS_PURE || !DESCRIPTORS$2))
|
|
25245
|
+
|| !params.sort
|
|
25220
25246
|
|| url.href !== 'http://a/c%20d?a=1&c=3'
|
|
25221
|
-
||
|
|
25247
|
+
|| params.get('c') !== '3'
|
|
25222
25248
|
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|
|
25223
|
-
|| !
|
|
25249
|
+
|| !params[ITERATOR$1]
|
|
25224
25250
|
// throws in Edge
|
|
25225
25251
|
|| new URL('https://a@b').username !== 'a'
|
|
25226
25252
|
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
|
|
@@ -25336,7 +25362,7 @@ var ucs2decode = function (string) {
|
|
|
25336
25362
|
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
25337
25363
|
// It's a high surrogate, and there is a next character.
|
|
25338
25364
|
var extra = charCodeAt(string, counter++);
|
|
25339
|
-
if ((extra & 0xFC00)
|
|
25365
|
+
if ((extra & 0xFC00) === 0xDC00) { // Low surrogate.
|
|
25340
25366
|
push$2(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
25341
25367
|
} else {
|
|
25342
25368
|
// It's an unmatched surrogate; only append this code unit, in case the
|
|
@@ -25435,12 +25461,12 @@ var encode = function (input) {
|
|
|
25435
25461
|
if (currentValue < n && ++delta > maxInt) {
|
|
25436
25462
|
throw $RangeError(OVERFLOW_ERROR);
|
|
25437
25463
|
}
|
|
25438
|
-
if (currentValue
|
|
25464
|
+
if (currentValue === n) {
|
|
25439
25465
|
// Represent delta as a generalized variable-length integer.
|
|
25440
25466
|
var q = delta;
|
|
25441
25467
|
var k = base;
|
|
25442
25468
|
while (true) {
|
|
25443
|
-
var t = k <= bias ? tMin :
|
|
25469
|
+
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
25444
25470
|
if (q < t) break;
|
|
25445
25471
|
var qMinusT = q - t;
|
|
25446
25472
|
var baseMinusT = base - t;
|
|
@@ -25450,7 +25476,7 @@ var encode = function (input) {
|
|
|
25450
25476
|
}
|
|
25451
25477
|
|
|
25452
25478
|
push$2(output, fromCharCode(digitToBasic(q)));
|
|
25453
|
-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount
|
|
25479
|
+
bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
|
|
25454
25480
|
delta = 0;
|
|
25455
25481
|
handledCPCount++;
|
|
25456
25482
|
}
|
|
@@ -25483,7 +25509,7 @@ var defineBuiltIns$1 = function (target, src, options) {
|
|
|
25483
25509
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
25484
25510
|
|
|
25485
25511
|
var $$3 = _export;
|
|
25486
|
-
var global$2 = global$
|
|
25512
|
+
var global$2 = global$r;
|
|
25487
25513
|
var call = functionCall;
|
|
25488
25514
|
var uncurryThis$1 = functionUncurryThis;
|
|
25489
25515
|
var DESCRIPTORS$1 = descriptors;
|
|
@@ -25686,7 +25712,7 @@ var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
|
25686
25712
|
anInstance$1(this, URLSearchParamsPrototype);
|
|
25687
25713
|
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
25688
25714
|
var state = setInternalState$1(this, new URLSearchParamsState(init));
|
|
25689
|
-
if (!DESCRIPTORS$1) this.
|
|
25715
|
+
if (!DESCRIPTORS$1) this.size = state.entries.length;
|
|
25690
25716
|
};
|
|
25691
25717
|
|
|
25692
25718
|
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
@@ -25695,32 +25721,37 @@ defineBuiltIns(URLSearchParamsPrototype, {
|
|
|
25695
25721
|
// `URLSearchParams.prototype.append` method
|
|
25696
25722
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
25697
25723
|
append: function append(name, value) {
|
|
25698
|
-
validateArgumentsLength$1(arguments.length, 2);
|
|
25699
25724
|
var state = getInternalParamsState(this);
|
|
25725
|
+
validateArgumentsLength$1(arguments.length, 2);
|
|
25700
25726
|
push$1(state.entries, { key: $toString$1(name), value: $toString$1(value) });
|
|
25701
25727
|
if (!DESCRIPTORS$1) this.length++;
|
|
25702
25728
|
state.updateURL();
|
|
25703
25729
|
},
|
|
25704
25730
|
// `URLSearchParams.prototype.delete` method
|
|
25705
25731
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
|
|
25706
|
-
'delete': function (name) {
|
|
25707
|
-
validateArgumentsLength$1(arguments.length, 1);
|
|
25732
|
+
'delete': function (name /* , value */) {
|
|
25708
25733
|
var state = getInternalParamsState(this);
|
|
25734
|
+
var length = validateArgumentsLength$1(arguments.length, 1);
|
|
25709
25735
|
var entries = state.entries;
|
|
25710
25736
|
var key = $toString$1(name);
|
|
25737
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
25738
|
+
var value = $value === undefined ? $value : $toString$1($value);
|
|
25711
25739
|
var index = 0;
|
|
25712
25740
|
while (index < entries.length) {
|
|
25713
|
-
|
|
25714
|
-
|
|
25741
|
+
var entry = entries[index];
|
|
25742
|
+
if (entry.key === key && (value === undefined || entry.value === value)) {
|
|
25743
|
+
splice$1(entries, index, 1);
|
|
25744
|
+
if (value !== undefined) break;
|
|
25745
|
+
} else index++;
|
|
25715
25746
|
}
|
|
25716
|
-
if (!DESCRIPTORS$1) this.
|
|
25747
|
+
if (!DESCRIPTORS$1) this.size = entries.length;
|
|
25717
25748
|
state.updateURL();
|
|
25718
25749
|
},
|
|
25719
25750
|
// `URLSearchParams.prototype.get` method
|
|
25720
25751
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
|
|
25721
25752
|
get: function get(name) {
|
|
25722
|
-
validateArgumentsLength$1(arguments.length, 1);
|
|
25723
25753
|
var entries = getInternalParamsState(this).entries;
|
|
25754
|
+
validateArgumentsLength$1(arguments.length, 1);
|
|
25724
25755
|
var key = $toString$1(name);
|
|
25725
25756
|
var index = 0;
|
|
25726
25757
|
for (; index < entries.length; index++) {
|
|
@@ -25731,8 +25762,8 @@ defineBuiltIns(URLSearchParamsPrototype, {
|
|
|
25731
25762
|
// `URLSearchParams.prototype.getAll` method
|
|
25732
25763
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
|
|
25733
25764
|
getAll: function getAll(name) {
|
|
25734
|
-
validateArgumentsLength$1(arguments.length, 1);
|
|
25735
25765
|
var entries = getInternalParamsState(this).entries;
|
|
25766
|
+
validateArgumentsLength$1(arguments.length, 1);
|
|
25736
25767
|
var key = $toString$1(name);
|
|
25737
25768
|
var result = [];
|
|
25738
25769
|
var index = 0;
|
|
@@ -25743,21 +25774,24 @@ defineBuiltIns(URLSearchParamsPrototype, {
|
|
|
25743
25774
|
},
|
|
25744
25775
|
// `URLSearchParams.prototype.has` method
|
|
25745
25776
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
|
|
25746
|
-
has: function has(name) {
|
|
25747
|
-
validateArgumentsLength$1(arguments.length, 1);
|
|
25777
|
+
has: function has(name /* , value */) {
|
|
25748
25778
|
var entries = getInternalParamsState(this).entries;
|
|
25779
|
+
var length = validateArgumentsLength$1(arguments.length, 1);
|
|
25749
25780
|
var key = $toString$1(name);
|
|
25781
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
25782
|
+
var value = $value === undefined ? $value : $toString$1($value);
|
|
25750
25783
|
var index = 0;
|
|
25751
25784
|
while (index < entries.length) {
|
|
25752
|
-
|
|
25785
|
+
var entry = entries[index++];
|
|
25786
|
+
if (entry.key === key && (value === undefined || entry.value === value)) return true;
|
|
25753
25787
|
}
|
|
25754
25788
|
return false;
|
|
25755
25789
|
},
|
|
25756
25790
|
// `URLSearchParams.prototype.set` method
|
|
25757
25791
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
|
25758
25792
|
set: function set(name, value) {
|
|
25759
|
-
validateArgumentsLength$1(arguments.length, 1);
|
|
25760
25793
|
var state = getInternalParamsState(this);
|
|
25794
|
+
validateArgumentsLength$1(arguments.length, 1);
|
|
25761
25795
|
var entries = state.entries;
|
|
25762
25796
|
var found = false;
|
|
25763
25797
|
var key = $toString$1(name);
|
|
@@ -25775,7 +25809,7 @@ defineBuiltIns(URLSearchParamsPrototype, {
|
|
|
25775
25809
|
}
|
|
25776
25810
|
}
|
|
25777
25811
|
if (!found) push$1(entries, { key: key, value: val });
|
|
25778
|
-
if (!DESCRIPTORS$1) this.
|
|
25812
|
+
if (!DESCRIPTORS$1) this.size = entries.length;
|
|
25779
25813
|
state.updateURL();
|
|
25780
25814
|
},
|
|
25781
25815
|
// `URLSearchParams.prototype.sort` method
|
|
@@ -25892,7 +25926,7 @@ var web_urlSearchParams_constructor = {
|
|
|
25892
25926
|
var $$2 = _export;
|
|
25893
25927
|
var DESCRIPTORS = descriptors;
|
|
25894
25928
|
var USE_NATIVE_URL = urlConstructorDetection;
|
|
25895
|
-
var global$1 = global$
|
|
25929
|
+
var global$1 = global$r;
|
|
25896
25930
|
var bind = functionBindContext;
|
|
25897
25931
|
var uncurryThis = functionUncurryThis;
|
|
25898
25932
|
var defineBuiltIn = defineBuiltIn$b;
|
|
@@ -25959,7 +25993,7 @@ var EOF;
|
|
|
25959
25993
|
var parseIPv4 = function (input) {
|
|
25960
25994
|
var parts = split(input, '.');
|
|
25961
25995
|
var partsLength, numbers, index, part, radix, number, ipv4;
|
|
25962
|
-
if (parts.length && parts[parts.length - 1]
|
|
25996
|
+
if (parts.length && parts[parts.length - 1] === '') {
|
|
25963
25997
|
parts.length--;
|
|
25964
25998
|
}
|
|
25965
25999
|
partsLength = parts.length;
|
|
@@ -25967,23 +26001,23 @@ var parseIPv4 = function (input) {
|
|
|
25967
26001
|
numbers = [];
|
|
25968
26002
|
for (index = 0; index < partsLength; index++) {
|
|
25969
26003
|
part = parts[index];
|
|
25970
|
-
if (part
|
|
26004
|
+
if (part === '') return input;
|
|
25971
26005
|
radix = 10;
|
|
25972
|
-
if (part.length > 1 && charAt(part, 0)
|
|
26006
|
+
if (part.length > 1 && charAt(part, 0) === '0') {
|
|
25973
26007
|
radix = exec(HEX_START, part) ? 16 : 8;
|
|
25974
|
-
part = stringSlice(part, radix
|
|
26008
|
+
part = stringSlice(part, radix === 8 ? 1 : 2);
|
|
25975
26009
|
}
|
|
25976
26010
|
if (part === '') {
|
|
25977
26011
|
number = 0;
|
|
25978
26012
|
} else {
|
|
25979
|
-
if (!exec(radix
|
|
26013
|
+
if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input;
|
|
25980
26014
|
number = parseInt$2(part, radix);
|
|
25981
26015
|
}
|
|
25982
26016
|
push(numbers, number);
|
|
25983
26017
|
}
|
|
25984
26018
|
for (index = 0; index < partsLength; index++) {
|
|
25985
26019
|
number = numbers[index];
|
|
25986
|
-
if (index
|
|
26020
|
+
if (index === partsLength - 1) {
|
|
25987
26021
|
if (number >= pow(256, 5 - partsLength)) return null;
|
|
25988
26022
|
} else if (number > 255) return null;
|
|
25989
26023
|
}
|
|
@@ -26007,15 +26041,15 @@ var parseIPv6 = function (input) {
|
|
|
26007
26041
|
return charAt(input, pointer);
|
|
26008
26042
|
};
|
|
26009
26043
|
|
|
26010
|
-
if (chr()
|
|
26011
|
-
if (charAt(input, 1)
|
|
26044
|
+
if (chr() === ':') {
|
|
26045
|
+
if (charAt(input, 1) !== ':') return;
|
|
26012
26046
|
pointer += 2;
|
|
26013
26047
|
pieceIndex++;
|
|
26014
26048
|
compress = pieceIndex;
|
|
26015
26049
|
}
|
|
26016
26050
|
while (chr()) {
|
|
26017
|
-
if (pieceIndex
|
|
26018
|
-
if (chr()
|
|
26051
|
+
if (pieceIndex === 8) return;
|
|
26052
|
+
if (chr() === ':') {
|
|
26019
26053
|
if (compress !== null) return;
|
|
26020
26054
|
pointer++;
|
|
26021
26055
|
pieceIndex++;
|
|
@@ -26028,33 +26062,33 @@ var parseIPv6 = function (input) {
|
|
|
26028
26062
|
pointer++;
|
|
26029
26063
|
length++;
|
|
26030
26064
|
}
|
|
26031
|
-
if (chr()
|
|
26032
|
-
if (length
|
|
26065
|
+
if (chr() === '.') {
|
|
26066
|
+
if (length === 0) return;
|
|
26033
26067
|
pointer -= length;
|
|
26034
26068
|
if (pieceIndex > 6) return;
|
|
26035
26069
|
numbersSeen = 0;
|
|
26036
26070
|
while (chr()) {
|
|
26037
26071
|
ipv4Piece = null;
|
|
26038
26072
|
if (numbersSeen > 0) {
|
|
26039
|
-
if (chr()
|
|
26073
|
+
if (chr() === '.' && numbersSeen < 4) pointer++;
|
|
26040
26074
|
else return;
|
|
26041
26075
|
}
|
|
26042
26076
|
if (!exec(DIGIT, chr())) return;
|
|
26043
26077
|
while (exec(DIGIT, chr())) {
|
|
26044
26078
|
number = parseInt$2(chr(), 10);
|
|
26045
26079
|
if (ipv4Piece === null) ipv4Piece = number;
|
|
26046
|
-
else if (ipv4Piece
|
|
26080
|
+
else if (ipv4Piece === 0) return;
|
|
26047
26081
|
else ipv4Piece = ipv4Piece * 10 + number;
|
|
26048
26082
|
if (ipv4Piece > 255) return;
|
|
26049
26083
|
pointer++;
|
|
26050
26084
|
}
|
|
26051
26085
|
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
|
|
26052
26086
|
numbersSeen++;
|
|
26053
|
-
if (numbersSeen
|
|
26087
|
+
if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++;
|
|
26054
26088
|
}
|
|
26055
|
-
if (numbersSeen
|
|
26089
|
+
if (numbersSeen !== 4) return;
|
|
26056
26090
|
break;
|
|
26057
|
-
} else if (chr()
|
|
26091
|
+
} else if (chr() === ':') {
|
|
26058
26092
|
pointer++;
|
|
26059
26093
|
if (!chr()) return;
|
|
26060
26094
|
} else if (chr()) return;
|
|
@@ -26063,12 +26097,12 @@ var parseIPv6 = function (input) {
|
|
|
26063
26097
|
if (compress !== null) {
|
|
26064
26098
|
swaps = pieceIndex - compress;
|
|
26065
26099
|
pieceIndex = 7;
|
|
26066
|
-
while (pieceIndex
|
|
26100
|
+
while (pieceIndex !== 0 && swaps > 0) {
|
|
26067
26101
|
swap = address[pieceIndex];
|
|
26068
26102
|
address[pieceIndex--] = address[compress + swaps - 1];
|
|
26069
26103
|
address[compress + --swaps] = swap;
|
|
26070
26104
|
}
|
|
26071
|
-
} else if (pieceIndex
|
|
26105
|
+
} else if (pieceIndex !== 8) return;
|
|
26072
26106
|
return address;
|
|
26073
26107
|
};
|
|
26074
26108
|
|
|
@@ -26156,15 +26190,15 @@ var specialSchemes = {
|
|
|
26156
26190
|
// https://url.spec.whatwg.org/#windows-drive-letter
|
|
26157
26191
|
var isWindowsDriveLetter = function (string, normalized) {
|
|
26158
26192
|
var second;
|
|
26159
|
-
return string.length
|
|
26160
|
-
&& ((second = charAt(string, 1))
|
|
26193
|
+
return string.length === 2 && exec(ALPHA, charAt(string, 0))
|
|
26194
|
+
&& ((second = charAt(string, 1)) === ':' || (!normalized && second === '|'));
|
|
26161
26195
|
};
|
|
26162
26196
|
|
|
26163
26197
|
// https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
|
|
26164
26198
|
var startsWithWindowsDriveLetter = function (string) {
|
|
26165
26199
|
var third;
|
|
26166
26200
|
return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
|
|
26167
|
-
string.length
|
|
26201
|
+
string.length === 2 ||
|
|
26168
26202
|
((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
|
|
26169
26203
|
);
|
|
26170
26204
|
};
|
|
@@ -26268,27 +26302,27 @@ URLState.prototype = {
|
|
|
26268
26302
|
break;
|
|
26269
26303
|
|
|
26270
26304
|
case SCHEME:
|
|
26271
|
-
if (chr && (exec(ALPHANUMERIC, chr) || chr
|
|
26305
|
+
if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) {
|
|
26272
26306
|
buffer += toLowerCase(chr);
|
|
26273
|
-
} else if (chr
|
|
26307
|
+
} else if (chr === ':') {
|
|
26274
26308
|
if (stateOverride && (
|
|
26275
|
-
(url.isSpecial()
|
|
26276
|
-
(buffer
|
|
26277
|
-
(url.scheme
|
|
26309
|
+
(url.isSpecial() !== hasOwn(specialSchemes, buffer)) ||
|
|
26310
|
+
(buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
26311
|
+
(url.scheme === 'file' && !url.host)
|
|
26278
26312
|
)) return;
|
|
26279
26313
|
url.scheme = buffer;
|
|
26280
26314
|
if (stateOverride) {
|
|
26281
|
-
if (url.isSpecial() && specialSchemes[url.scheme]
|
|
26315
|
+
if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null;
|
|
26282
26316
|
return;
|
|
26283
26317
|
}
|
|
26284
26318
|
buffer = '';
|
|
26285
|
-
if (url.scheme
|
|
26319
|
+
if (url.scheme === 'file') {
|
|
26286
26320
|
state = FILE;
|
|
26287
|
-
} else if (url.isSpecial() && base && base.scheme
|
|
26321
|
+
} else if (url.isSpecial() && base && base.scheme === url.scheme) {
|
|
26288
26322
|
state = SPECIAL_RELATIVE_OR_AUTHORITY;
|
|
26289
26323
|
} else if (url.isSpecial()) {
|
|
26290
26324
|
state = SPECIAL_AUTHORITY_SLASHES;
|
|
26291
|
-
} else if (codePoints[pointer + 1]
|
|
26325
|
+
} else if (codePoints[pointer + 1] === '/') {
|
|
26292
26326
|
state = PATH_OR_AUTHORITY;
|
|
26293
26327
|
pointer++;
|
|
26294
26328
|
} else {
|
|
@@ -26305,8 +26339,8 @@ URLState.prototype = {
|
|
|
26305
26339
|
break;
|
|
26306
26340
|
|
|
26307
26341
|
case NO_SCHEME:
|
|
26308
|
-
if (!base || (base.cannotBeABaseURL && chr
|
|
26309
|
-
if (base.cannotBeABaseURL && chr
|
|
26342
|
+
if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME;
|
|
26343
|
+
if (base.cannotBeABaseURL && chr === '#') {
|
|
26310
26344
|
url.scheme = base.scheme;
|
|
26311
26345
|
url.path = arraySlice(base.path);
|
|
26312
26346
|
url.query = base.query;
|
|
@@ -26315,11 +26349,11 @@ URLState.prototype = {
|
|
|
26315
26349
|
state = FRAGMENT;
|
|
26316
26350
|
break;
|
|
26317
26351
|
}
|
|
26318
|
-
state = base.scheme
|
|
26352
|
+
state = base.scheme === 'file' ? FILE : RELATIVE;
|
|
26319
26353
|
continue;
|
|
26320
26354
|
|
|
26321
26355
|
case SPECIAL_RELATIVE_OR_AUTHORITY:
|
|
26322
|
-
if (chr
|
|
26356
|
+
if (chr === '/' && codePoints[pointer + 1] === '/') {
|
|
26323
26357
|
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
26324
26358
|
pointer++;
|
|
26325
26359
|
} else {
|
|
@@ -26328,7 +26362,7 @@ URLState.prototype = {
|
|
|
26328
26362
|
} break;
|
|
26329
26363
|
|
|
26330
26364
|
case PATH_OR_AUTHORITY:
|
|
26331
|
-
if (chr
|
|
26365
|
+
if (chr === '/') {
|
|
26332
26366
|
state = AUTHORITY;
|
|
26333
26367
|
break;
|
|
26334
26368
|
} else {
|
|
@@ -26338,16 +26372,16 @@ URLState.prototype = {
|
|
|
26338
26372
|
|
|
26339
26373
|
case RELATIVE:
|
|
26340
26374
|
url.scheme = base.scheme;
|
|
26341
|
-
if (chr
|
|
26375
|
+
if (chr === EOF) {
|
|
26342
26376
|
url.username = base.username;
|
|
26343
26377
|
url.password = base.password;
|
|
26344
26378
|
url.host = base.host;
|
|
26345
26379
|
url.port = base.port;
|
|
26346
26380
|
url.path = arraySlice(base.path);
|
|
26347
26381
|
url.query = base.query;
|
|
26348
|
-
} else if (chr
|
|
26382
|
+
} else if (chr === '/' || (chr === '\\' && url.isSpecial())) {
|
|
26349
26383
|
state = RELATIVE_SLASH;
|
|
26350
|
-
} else if (chr
|
|
26384
|
+
} else if (chr === '?') {
|
|
26351
26385
|
url.username = base.username;
|
|
26352
26386
|
url.password = base.password;
|
|
26353
26387
|
url.host = base.host;
|
|
@@ -26355,7 +26389,7 @@ URLState.prototype = {
|
|
|
26355
26389
|
url.path = arraySlice(base.path);
|
|
26356
26390
|
url.query = '';
|
|
26357
26391
|
state = QUERY;
|
|
26358
|
-
} else if (chr
|
|
26392
|
+
} else if (chr === '#') {
|
|
26359
26393
|
url.username = base.username;
|
|
26360
26394
|
url.password = base.password;
|
|
26361
26395
|
url.host = base.host;
|
|
@@ -26376,9 +26410,9 @@ URLState.prototype = {
|
|
|
26376
26410
|
} break;
|
|
26377
26411
|
|
|
26378
26412
|
case RELATIVE_SLASH:
|
|
26379
|
-
if (url.isSpecial() && (chr
|
|
26413
|
+
if (url.isSpecial() && (chr === '/' || chr === '\\')) {
|
|
26380
26414
|
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
26381
|
-
} else if (chr
|
|
26415
|
+
} else if (chr === '/') {
|
|
26382
26416
|
state = AUTHORITY;
|
|
26383
26417
|
} else {
|
|
26384
26418
|
url.username = base.username;
|
|
@@ -26391,24 +26425,24 @@ URLState.prototype = {
|
|
|
26391
26425
|
|
|
26392
26426
|
case SPECIAL_AUTHORITY_SLASHES:
|
|
26393
26427
|
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
26394
|
-
if (chr
|
|
26428
|
+
if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue;
|
|
26395
26429
|
pointer++;
|
|
26396
26430
|
break;
|
|
26397
26431
|
|
|
26398
26432
|
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
|
|
26399
|
-
if (chr
|
|
26433
|
+
if (chr !== '/' && chr !== '\\') {
|
|
26400
26434
|
state = AUTHORITY;
|
|
26401
26435
|
continue;
|
|
26402
26436
|
} break;
|
|
26403
26437
|
|
|
26404
26438
|
case AUTHORITY:
|
|
26405
|
-
if (chr
|
|
26439
|
+
if (chr === '@') {
|
|
26406
26440
|
if (seenAt) buffer = '%40' + buffer;
|
|
26407
26441
|
seenAt = true;
|
|
26408
26442
|
bufferCodePoints = arrayFrom(buffer);
|
|
26409
26443
|
for (var i = 0; i < bufferCodePoints.length; i++) {
|
|
26410
26444
|
var codePoint = bufferCodePoints[i];
|
|
26411
|
-
if (codePoint
|
|
26445
|
+
if (codePoint === ':' && !seenPasswordToken) {
|
|
26412
26446
|
seenPasswordToken = true;
|
|
26413
26447
|
continue;
|
|
26414
26448
|
}
|
|
@@ -26418,10 +26452,10 @@ URLState.prototype = {
|
|
|
26418
26452
|
}
|
|
26419
26453
|
buffer = '';
|
|
26420
26454
|
} else if (
|
|
26421
|
-
chr
|
|
26422
|
-
(chr
|
|
26455
|
+
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
26456
|
+
(chr === '\\' && url.isSpecial())
|
|
26423
26457
|
) {
|
|
26424
|
-
if (seenAt && buffer
|
|
26458
|
+
if (seenAt && buffer === '') return INVALID_AUTHORITY;
|
|
26425
26459
|
pointer -= arrayFrom(buffer).length + 1;
|
|
26426
26460
|
buffer = '';
|
|
26427
26461
|
state = HOST;
|
|
@@ -26430,22 +26464,22 @@ URLState.prototype = {
|
|
|
26430
26464
|
|
|
26431
26465
|
case HOST:
|
|
26432
26466
|
case HOSTNAME:
|
|
26433
|
-
if (stateOverride && url.scheme
|
|
26467
|
+
if (stateOverride && url.scheme === 'file') {
|
|
26434
26468
|
state = FILE_HOST;
|
|
26435
26469
|
continue;
|
|
26436
|
-
} else if (chr
|
|
26437
|
-
if (buffer
|
|
26470
|
+
} else if (chr === ':' && !seenBracket) {
|
|
26471
|
+
if (buffer === '') return INVALID_HOST;
|
|
26438
26472
|
failure = url.parseHost(buffer);
|
|
26439
26473
|
if (failure) return failure;
|
|
26440
26474
|
buffer = '';
|
|
26441
26475
|
state = PORT;
|
|
26442
|
-
if (stateOverride
|
|
26476
|
+
if (stateOverride === HOSTNAME) return;
|
|
26443
26477
|
} else if (
|
|
26444
|
-
chr
|
|
26445
|
-
(chr
|
|
26478
|
+
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
26479
|
+
(chr === '\\' && url.isSpecial())
|
|
26446
26480
|
) {
|
|
26447
|
-
if (url.isSpecial() && buffer
|
|
26448
|
-
if (stateOverride && buffer
|
|
26481
|
+
if (url.isSpecial() && buffer === '') return INVALID_HOST;
|
|
26482
|
+
if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return;
|
|
26449
26483
|
failure = url.parseHost(buffer);
|
|
26450
26484
|
if (failure) return failure;
|
|
26451
26485
|
buffer = '';
|
|
@@ -26453,8 +26487,8 @@ URLState.prototype = {
|
|
|
26453
26487
|
if (stateOverride) return;
|
|
26454
26488
|
continue;
|
|
26455
26489
|
} else {
|
|
26456
|
-
if (chr
|
|
26457
|
-
else if (chr
|
|
26490
|
+
if (chr === '[') seenBracket = true;
|
|
26491
|
+
else if (chr === ']') seenBracket = false;
|
|
26458
26492
|
buffer += chr;
|
|
26459
26493
|
} break;
|
|
26460
26494
|
|
|
@@ -26462,11 +26496,11 @@ URLState.prototype = {
|
|
|
26462
26496
|
if (exec(DIGIT, chr)) {
|
|
26463
26497
|
buffer += chr;
|
|
26464
26498
|
} else if (
|
|
26465
|
-
chr
|
|
26466
|
-
(chr
|
|
26499
|
+
chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
|
|
26500
|
+
(chr === '\\' && url.isSpecial()) ||
|
|
26467
26501
|
stateOverride
|
|
26468
26502
|
) {
|
|
26469
|
-
if (buffer
|
|
26503
|
+
if (buffer !== '') {
|
|
26470
26504
|
var port = parseInt$2(buffer, 10);
|
|
26471
26505
|
if (port > 0xFFFF) return INVALID_PORT;
|
|
26472
26506
|
url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
|
|
@@ -26480,31 +26514,35 @@ URLState.prototype = {
|
|
|
26480
26514
|
|
|
26481
26515
|
case FILE:
|
|
26482
26516
|
url.scheme = 'file';
|
|
26483
|
-
if (chr
|
|
26484
|
-
else if (base && base.scheme
|
|
26485
|
-
|
|
26486
|
-
|
|
26487
|
-
url.path = arraySlice(base.path);
|
|
26488
|
-
url.query = base.query;
|
|
26489
|
-
} else if (chr == '?') {
|
|
26490
|
-
url.host = base.host;
|
|
26491
|
-
url.path = arraySlice(base.path);
|
|
26492
|
-
url.query = '';
|
|
26493
|
-
state = QUERY;
|
|
26494
|
-
} else if (chr == '#') {
|
|
26495
|
-
url.host = base.host;
|
|
26496
|
-
url.path = arraySlice(base.path);
|
|
26497
|
-
url.query = base.query;
|
|
26498
|
-
url.fragment = '';
|
|
26499
|
-
state = FRAGMENT;
|
|
26500
|
-
} else {
|
|
26501
|
-
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
26517
|
+
if (chr === '/' || chr === '\\') state = FILE_SLASH;
|
|
26518
|
+
else if (base && base.scheme === 'file') {
|
|
26519
|
+
switch (chr) {
|
|
26520
|
+
case EOF:
|
|
26502
26521
|
url.host = base.host;
|
|
26503
26522
|
url.path = arraySlice(base.path);
|
|
26504
|
-
url.
|
|
26505
|
-
|
|
26506
|
-
|
|
26507
|
-
|
|
26523
|
+
url.query = base.query;
|
|
26524
|
+
break;
|
|
26525
|
+
case '?':
|
|
26526
|
+
url.host = base.host;
|
|
26527
|
+
url.path = arraySlice(base.path);
|
|
26528
|
+
url.query = '';
|
|
26529
|
+
state = QUERY;
|
|
26530
|
+
break;
|
|
26531
|
+
case '#':
|
|
26532
|
+
url.host = base.host;
|
|
26533
|
+
url.path = arraySlice(base.path);
|
|
26534
|
+
url.query = base.query;
|
|
26535
|
+
url.fragment = '';
|
|
26536
|
+
state = FRAGMENT;
|
|
26537
|
+
break;
|
|
26538
|
+
default:
|
|
26539
|
+
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
26540
|
+
url.host = base.host;
|
|
26541
|
+
url.path = arraySlice(base.path);
|
|
26542
|
+
url.shortenPath();
|
|
26543
|
+
}
|
|
26544
|
+
state = PATH;
|
|
26545
|
+
continue;
|
|
26508
26546
|
}
|
|
26509
26547
|
} else {
|
|
26510
26548
|
state = PATH;
|
|
@@ -26512,11 +26550,11 @@ URLState.prototype = {
|
|
|
26512
26550
|
} break;
|
|
26513
26551
|
|
|
26514
26552
|
case FILE_SLASH:
|
|
26515
|
-
if (chr
|
|
26553
|
+
if (chr === '/' || chr === '\\') {
|
|
26516
26554
|
state = FILE_HOST;
|
|
26517
26555
|
break;
|
|
26518
26556
|
}
|
|
26519
|
-
if (base && base.scheme
|
|
26557
|
+
if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
26520
26558
|
if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
|
|
26521
26559
|
else url.host = base.host;
|
|
26522
26560
|
}
|
|
@@ -26524,17 +26562,17 @@ URLState.prototype = {
|
|
|
26524
26562
|
continue;
|
|
26525
26563
|
|
|
26526
26564
|
case FILE_HOST:
|
|
26527
|
-
if (chr
|
|
26565
|
+
if (chr === EOF || chr === '/' || chr === '\\' || chr === '?' || chr === '#') {
|
|
26528
26566
|
if (!stateOverride && isWindowsDriveLetter(buffer)) {
|
|
26529
26567
|
state = PATH;
|
|
26530
|
-
} else if (buffer
|
|
26568
|
+
} else if (buffer === '') {
|
|
26531
26569
|
url.host = '';
|
|
26532
26570
|
if (stateOverride) return;
|
|
26533
26571
|
state = PATH_START;
|
|
26534
26572
|
} else {
|
|
26535
26573
|
failure = url.parseHost(buffer);
|
|
26536
26574
|
if (failure) return failure;
|
|
26537
|
-
if (url.host
|
|
26575
|
+
if (url.host === 'localhost') url.host = '';
|
|
26538
26576
|
if (stateOverride) return;
|
|
26539
26577
|
buffer = '';
|
|
26540
26578
|
state = PATH_START;
|
|
@@ -26545,50 +26583,50 @@ URLState.prototype = {
|
|
|
26545
26583
|
case PATH_START:
|
|
26546
26584
|
if (url.isSpecial()) {
|
|
26547
26585
|
state = PATH;
|
|
26548
|
-
if (chr
|
|
26549
|
-
} else if (!stateOverride && chr
|
|
26586
|
+
if (chr !== '/' && chr !== '\\') continue;
|
|
26587
|
+
} else if (!stateOverride && chr === '?') {
|
|
26550
26588
|
url.query = '';
|
|
26551
26589
|
state = QUERY;
|
|
26552
|
-
} else if (!stateOverride && chr
|
|
26590
|
+
} else if (!stateOverride && chr === '#') {
|
|
26553
26591
|
url.fragment = '';
|
|
26554
26592
|
state = FRAGMENT;
|
|
26555
|
-
} else if (chr
|
|
26593
|
+
} else if (chr !== EOF) {
|
|
26556
26594
|
state = PATH;
|
|
26557
|
-
if (chr
|
|
26595
|
+
if (chr !== '/') continue;
|
|
26558
26596
|
} break;
|
|
26559
26597
|
|
|
26560
26598
|
case PATH:
|
|
26561
26599
|
if (
|
|
26562
|
-
chr
|
|
26563
|
-
(chr
|
|
26564
|
-
(!stateOverride && (chr
|
|
26600
|
+
chr === EOF || chr === '/' ||
|
|
26601
|
+
(chr === '\\' && url.isSpecial()) ||
|
|
26602
|
+
(!stateOverride && (chr === '?' || chr === '#'))
|
|
26565
26603
|
) {
|
|
26566
26604
|
if (isDoubleDot(buffer)) {
|
|
26567
26605
|
url.shortenPath();
|
|
26568
|
-
if (chr
|
|
26606
|
+
if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
|
|
26569
26607
|
push(url.path, '');
|
|
26570
26608
|
}
|
|
26571
26609
|
} else if (isSingleDot(buffer)) {
|
|
26572
|
-
if (chr
|
|
26610
|
+
if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
|
|
26573
26611
|
push(url.path, '');
|
|
26574
26612
|
}
|
|
26575
26613
|
} else {
|
|
26576
|
-
if (url.scheme
|
|
26614
|
+
if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
|
|
26577
26615
|
if (url.host) url.host = '';
|
|
26578
26616
|
buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
|
|
26579
26617
|
}
|
|
26580
26618
|
push(url.path, buffer);
|
|
26581
26619
|
}
|
|
26582
26620
|
buffer = '';
|
|
26583
|
-
if (url.scheme
|
|
26621
|
+
if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) {
|
|
26584
26622
|
while (url.path.length > 1 && url.path[0] === '') {
|
|
26585
26623
|
shift(url.path);
|
|
26586
26624
|
}
|
|
26587
26625
|
}
|
|
26588
|
-
if (chr
|
|
26626
|
+
if (chr === '?') {
|
|
26589
26627
|
url.query = '';
|
|
26590
26628
|
state = QUERY;
|
|
26591
|
-
} else if (chr
|
|
26629
|
+
} else if (chr === '#') {
|
|
26592
26630
|
url.fragment = '';
|
|
26593
26631
|
state = FRAGMENT;
|
|
26594
26632
|
}
|
|
@@ -26597,28 +26635,28 @@ URLState.prototype = {
|
|
|
26597
26635
|
} break;
|
|
26598
26636
|
|
|
26599
26637
|
case CANNOT_BE_A_BASE_URL_PATH:
|
|
26600
|
-
if (chr
|
|
26638
|
+
if (chr === '?') {
|
|
26601
26639
|
url.query = '';
|
|
26602
26640
|
state = QUERY;
|
|
26603
|
-
} else if (chr
|
|
26641
|
+
} else if (chr === '#') {
|
|
26604
26642
|
url.fragment = '';
|
|
26605
26643
|
state = FRAGMENT;
|
|
26606
|
-
} else if (chr
|
|
26644
|
+
} else if (chr !== EOF) {
|
|
26607
26645
|
url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
|
|
26608
26646
|
} break;
|
|
26609
26647
|
|
|
26610
26648
|
case QUERY:
|
|
26611
|
-
if (!stateOverride && chr
|
|
26649
|
+
if (!stateOverride && chr === '#') {
|
|
26612
26650
|
url.fragment = '';
|
|
26613
26651
|
state = FRAGMENT;
|
|
26614
|
-
} else if (chr
|
|
26615
|
-
if (chr
|
|
26616
|
-
else if (chr
|
|
26652
|
+
} else if (chr !== EOF) {
|
|
26653
|
+
if (chr === "'" && url.isSpecial()) url.query += '%27';
|
|
26654
|
+
else if (chr === '#') url.query += '%23';
|
|
26617
26655
|
else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
|
|
26618
26656
|
} break;
|
|
26619
26657
|
|
|
26620
26658
|
case FRAGMENT:
|
|
26621
|
-
if (chr
|
|
26659
|
+
if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
|
|
26622
26660
|
break;
|
|
26623
26661
|
}
|
|
26624
26662
|
|
|
@@ -26628,8 +26666,8 @@ URLState.prototype = {
|
|
|
26628
26666
|
// https://url.spec.whatwg.org/#host-parsing
|
|
26629
26667
|
parseHost: function (input) {
|
|
26630
26668
|
var result, codePoints, index;
|
|
26631
|
-
if (charAt(input, 0)
|
|
26632
|
-
if (charAt(input, input.length - 1)
|
|
26669
|
+
if (charAt(input, 0) === '[') {
|
|
26670
|
+
if (charAt(input, input.length - 1) !== ']') return INVALID_HOST;
|
|
26633
26671
|
result = parseIPv6(stringSlice(input, 1, -1));
|
|
26634
26672
|
if (!result) return INVALID_HOST;
|
|
26635
26673
|
this.host = result;
|
|
@@ -26652,11 +26690,11 @@ URLState.prototype = {
|
|
|
26652
26690
|
},
|
|
26653
26691
|
// https://url.spec.whatwg.org/#cannot-have-a-username-password-port
|
|
26654
26692
|
cannotHaveUsernamePasswordPort: function () {
|
|
26655
|
-
return !this.host || this.cannotBeABaseURL || this.scheme
|
|
26693
|
+
return !this.host || this.cannotBeABaseURL || this.scheme === 'file';
|
|
26656
26694
|
},
|
|
26657
26695
|
// https://url.spec.whatwg.org/#include-credentials
|
|
26658
26696
|
includesCredentials: function () {
|
|
26659
|
-
return this.username
|
|
26697
|
+
return this.username !== '' || this.password !== '';
|
|
26660
26698
|
},
|
|
26661
26699
|
// https://url.spec.whatwg.org/#is-special
|
|
26662
26700
|
isSpecial: function () {
|
|
@@ -26666,7 +26704,7 @@ URLState.prototype = {
|
|
|
26666
26704
|
shortenPath: function () {
|
|
26667
26705
|
var path = this.path;
|
|
26668
26706
|
var pathSize = path.length;
|
|
26669
|
-
if (pathSize && (this.scheme
|
|
26707
|
+
if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) {
|
|
26670
26708
|
path.length--;
|
|
26671
26709
|
}
|
|
26672
26710
|
},
|
|
@@ -26689,7 +26727,7 @@ URLState.prototype = {
|
|
|
26689
26727
|
}
|
|
26690
26728
|
output += serializeHost(host);
|
|
26691
26729
|
if (port !== null) output += ':' + port;
|
|
26692
|
-
} else if (scheme
|
|
26730
|
+
} else if (scheme === 'file') output += '//';
|
|
26693
26731
|
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
|
|
26694
26732
|
if (query !== null) output += '?' + query;
|
|
26695
26733
|
if (fragment !== null) output += '#' + fragment;
|
|
@@ -26705,12 +26743,12 @@ URLState.prototype = {
|
|
|
26705
26743
|
getOrigin: function () {
|
|
26706
26744
|
var scheme = this.scheme;
|
|
26707
26745
|
var port = this.port;
|
|
26708
|
-
if (scheme
|
|
26746
|
+
if (scheme === 'blob') try {
|
|
26709
26747
|
return new URLConstructor(scheme.path[0]).origin;
|
|
26710
26748
|
} catch (error) {
|
|
26711
26749
|
return 'null';
|
|
26712
26750
|
}
|
|
26713
|
-
if (scheme
|
|
26751
|
+
if (scheme === 'file' || !this.isSpecial()) return 'null';
|
|
26714
26752
|
return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
|
|
26715
26753
|
},
|
|
26716
26754
|
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
@@ -26773,7 +26811,7 @@ URLState.prototype = {
|
|
|
26773
26811
|
setPort: function (port) {
|
|
26774
26812
|
if (this.cannotHaveUsernamePasswordPort()) return;
|
|
26775
26813
|
port = $toString(port);
|
|
26776
|
-
if (port
|
|
26814
|
+
if (port === '') this.port = null;
|
|
26777
26815
|
else this.parse(port, PORT);
|
|
26778
26816
|
},
|
|
26779
26817
|
// https://url.spec.whatwg.org/#dom-url-pathname
|
|
@@ -26793,10 +26831,10 @@ URLState.prototype = {
|
|
|
26793
26831
|
},
|
|
26794
26832
|
setSearch: function (search) {
|
|
26795
26833
|
search = $toString(search);
|
|
26796
|
-
if (search
|
|
26834
|
+
if (search === '') {
|
|
26797
26835
|
this.query = null;
|
|
26798
26836
|
} else {
|
|
26799
|
-
if (
|
|
26837
|
+
if (charAt(search, 0) === '?') search = stringSlice(search, 1);
|
|
26800
26838
|
this.query = '';
|
|
26801
26839
|
this.parse(search, QUERY);
|
|
26802
26840
|
}
|
|
@@ -26813,11 +26851,11 @@ URLState.prototype = {
|
|
|
26813
26851
|
},
|
|
26814
26852
|
setHash: function (hash) {
|
|
26815
26853
|
hash = $toString(hash);
|
|
26816
|
-
if (hash
|
|
26854
|
+
if (hash === '') {
|
|
26817
26855
|
this.fragment = null;
|
|
26818
26856
|
return;
|
|
26819
26857
|
}
|
|
26820
|
-
if (
|
|
26858
|
+
if (charAt(hash, 0) === '#') hash = stringSlice(hash, 1);
|
|
26821
26859
|
this.fragment = '';
|
|
26822
26860
|
this.parse(hash, FRAGMENT);
|
|
26823
26861
|
},
|
|
@@ -27339,7 +27377,7 @@ const Upload = ({
|
|
|
27339
27377
|
onSuccess,
|
|
27340
27378
|
onProgress,
|
|
27341
27379
|
progress: percent => {
|
|
27342
|
-
var _onChange
|
|
27380
|
+
var _onChange;
|
|
27343
27381
|
let fileProgress = Object.assign({}, newFile);
|
|
27344
27382
|
let uid = fileProgress.uid;
|
|
27345
27383
|
fileProgress.status = 'uploading';
|
|
@@ -27350,15 +27388,15 @@ const Upload = ({
|
|
|
27350
27388
|
arrProgress[i] = fileProgress;
|
|
27351
27389
|
}
|
|
27352
27390
|
}
|
|
27353
|
-
onChange === null || onChange === void 0
|
|
27391
|
+
onChange === null || onChange === void 0 || (_onChange = onChange({
|
|
27354
27392
|
fileList: arrProgress,
|
|
27355
27393
|
file: fileProgress,
|
|
27356
27394
|
indexReplace: indexReplace.current,
|
|
27357
27395
|
isReplace: indexReplace.current !== null
|
|
27358
|
-
})) === null || _onChange === void 0
|
|
27396
|
+
})) === null || _onChange === void 0 || (_onChange = _onChange.then(() => setError(null))) === null || _onChange === void 0 || _onChange.catch(error => setError(error.message));
|
|
27359
27397
|
}
|
|
27360
27398
|
}).then(result => {
|
|
27361
|
-
var _onChange2
|
|
27399
|
+
var _onChange2;
|
|
27362
27400
|
let fileSuccess = Object.assign({}, newFile);
|
|
27363
27401
|
let uid = fileSuccess.uid;
|
|
27364
27402
|
fileSuccess.url = result;
|
|
@@ -27368,14 +27406,14 @@ const Upload = ({
|
|
|
27368
27406
|
arrFile[i] = fileSuccess;
|
|
27369
27407
|
}
|
|
27370
27408
|
}
|
|
27371
|
-
onChange === null || onChange === void 0
|
|
27409
|
+
onChange === null || onChange === void 0 || (_onChange2 = onChange({
|
|
27372
27410
|
fileList: arrFile,
|
|
27373
27411
|
file: fileSuccess,
|
|
27374
27412
|
indexReplace: indexReplace.current,
|
|
27375
27413
|
isReplace: indexReplace.current !== null
|
|
27376
|
-
})) === null || _onChange2 === void 0
|
|
27414
|
+
})) === null || _onChange2 === void 0 || (_onChange2 = _onChange2.then(() => setError(null))) === null || _onChange2 === void 0 || _onChange2.catch(error => setError(error.message));
|
|
27377
27415
|
}).catch(error => {
|
|
27378
|
-
var _onChange3
|
|
27416
|
+
var _onChange3;
|
|
27379
27417
|
let fileError = Object.assign({}, newFile);
|
|
27380
27418
|
let uid = fileError.uid;
|
|
27381
27419
|
fileError.status = 'error';
|
|
@@ -27385,21 +27423,21 @@ const Upload = ({
|
|
|
27385
27423
|
arrFile[i] = fileError;
|
|
27386
27424
|
}
|
|
27387
27425
|
}
|
|
27388
|
-
onChange === null || onChange === void 0
|
|
27426
|
+
onChange === null || onChange === void 0 || (_onChange3 = onChange({
|
|
27389
27427
|
fileList: arrFile,
|
|
27390
27428
|
file: fileError,
|
|
27391
27429
|
indexReplace: indexReplace.current,
|
|
27392
27430
|
isReplace: indexReplace.current !== null
|
|
27393
|
-
})) === null || _onChange3 === void 0
|
|
27431
|
+
})) === null || _onChange3 === void 0 || (_onChange3 = _onChange3.then(() => setError(null))) === null || _onChange3 === void 0 || _onChange3.catch(error => setError(error.message));
|
|
27394
27432
|
});
|
|
27395
27433
|
} else {
|
|
27396
|
-
var _onChange4
|
|
27397
|
-
onChange === null || onChange === void 0
|
|
27434
|
+
var _onChange4;
|
|
27435
|
+
onChange === null || onChange === void 0 || (_onChange4 = onChange({
|
|
27398
27436
|
fileList: arrFile,
|
|
27399
27437
|
file: newFile,
|
|
27400
27438
|
indexReplace: indexReplace.current,
|
|
27401
27439
|
isReplace: indexReplace.current !== null
|
|
27402
|
-
})) === null || _onChange4 === void 0
|
|
27440
|
+
})) === null || _onChange4 === void 0 || (_onChange4 = _onChange4.then(() => setError(null))) === null || _onChange4 === void 0 || _onChange4.catch(error => setError(error.message));
|
|
27403
27441
|
}
|
|
27404
27442
|
if (indexReplace.current !== null) {
|
|
27405
27443
|
arrFile[indexReplace.current] = newFile;
|
|
@@ -27419,15 +27457,15 @@ const Upload = ({
|
|
|
27419
27457
|
// program to get the dimensions of an image
|
|
27420
27458
|
const img = document.createElement('img');
|
|
27421
27459
|
img.src = URL.createObjectURL(files[0]);
|
|
27422
|
-
img.size = files === null || files === void 0
|
|
27423
|
-
img.type = files === null || files === void 0
|
|
27460
|
+
img.size = files === null || files === void 0 || (_files$ = files[0]) === null || _files$ === void 0 ? void 0 : _files$.size;
|
|
27461
|
+
img.type = files === null || files === void 0 || (_files$2 = files[0]) === null || _files$2 === void 0 ? void 0 : _files$2.type;
|
|
27424
27462
|
img.onload = () => {
|
|
27425
27463
|
const imgRatio = img.width / img.height;
|
|
27426
27464
|
setAspect(ratio || imgRatio);
|
|
27427
27465
|
setCropperImgRatio(imgRatio);
|
|
27428
27466
|
if (onBeforeCrop) {
|
|
27429
|
-
var _onBeforeCrop
|
|
27430
|
-
onBeforeCrop === null || onBeforeCrop === void 0
|
|
27467
|
+
var _onBeforeCrop;
|
|
27468
|
+
onBeforeCrop === null || onBeforeCrop === void 0 || (_onBeforeCrop = onBeforeCrop(img)) === null || _onBeforeCrop === void 0 || (_onBeforeCrop = _onBeforeCrop.then(() => {
|
|
27431
27469
|
setError(null);
|
|
27432
27470
|
toggleModal();
|
|
27433
27471
|
setTimeout(() => {
|
|
@@ -27441,7 +27479,7 @@ const Upload = ({
|
|
|
27441
27479
|
}, 300);
|
|
27442
27480
|
setFileState(files[0]);
|
|
27443
27481
|
setPreviewImage(URL.createObjectURL(files[0]));
|
|
27444
|
-
})) === null || _onBeforeCrop
|
|
27482
|
+
})) === null || _onBeforeCrop === void 0 || _onBeforeCrop.catch(error => setError(error === null || error === void 0 ? void 0 : error.message));
|
|
27445
27483
|
} else {
|
|
27446
27484
|
toggleModal();
|
|
27447
27485
|
setTimeout(() => {
|
|
@@ -27458,8 +27496,8 @@ const Upload = ({
|
|
|
27458
27496
|
}
|
|
27459
27497
|
};
|
|
27460
27498
|
img.onerror = error => {
|
|
27461
|
-
var _onBeforeCrop2
|
|
27462
|
-
onBeforeCrop === null || onBeforeCrop === void 0
|
|
27499
|
+
var _onBeforeCrop2;
|
|
27500
|
+
onBeforeCrop === null || onBeforeCrop === void 0 || (_onBeforeCrop2 = onBeforeCrop(img, error)) === null || _onBeforeCrop2 === void 0 || (_onBeforeCrop2 = _onBeforeCrop2.then(() => setError(null))) === null || _onBeforeCrop2 === void 0 || _onBeforeCrop2.catch(error => setError(error === null || error === void 0 ? void 0 : error.message));
|
|
27463
27501
|
};
|
|
27464
27502
|
}
|
|
27465
27503
|
}
|
|
@@ -27484,7 +27522,7 @@ const Upload = ({
|
|
|
27484
27522
|
alwaysKeepResolution: true
|
|
27485
27523
|
}).then(compressedFile => {
|
|
27486
27524
|
var _fileState$name;
|
|
27487
|
-
const file = new File([compressedFile], (fileState === null || fileState === void 0
|
|
27525
|
+
const file = new File([compressedFile], (fileState === null || fileState === void 0 || (_fileState$name = fileState.name) === null || _fileState$name === void 0 ? void 0 : _fileState$name.replace(/\.[^/.]+$/, '')) + '.png', {
|
|
27488
27526
|
type: compressedFile === null || compressedFile === void 0 ? void 0 : compressedFile.type
|
|
27489
27527
|
});
|
|
27490
27528
|
handleUpload([file]);
|
|
@@ -27522,7 +27560,7 @@ const Upload = ({
|
|
|
27522
27560
|
const index = fileList.indexOf(file);
|
|
27523
27561
|
const newFileList = fileList.slice();
|
|
27524
27562
|
newFileList.splice(index, 1);
|
|
27525
|
-
onChange === null || onChange === void 0
|
|
27563
|
+
onChange === null || onChange === void 0 || onChange({
|
|
27526
27564
|
fileList: newFileList,
|
|
27527
27565
|
file
|
|
27528
27566
|
});
|
|
@@ -27545,7 +27583,7 @@ const Upload = ({
|
|
|
27545
27583
|
}
|
|
27546
27584
|
function handleOpenFile(file) {
|
|
27547
27585
|
var _String, _file$name;
|
|
27548
|
-
let extension = (_String = String(file === null || file === void 0
|
|
27586
|
+
let extension = (_String = String(file === null || file === void 0 || (_file$name = file.name) === null || _file$name === void 0 ? void 0 : _file$name.split('.').pop())) === null || _String === void 0 ? void 0 : _String.toLowerCase();
|
|
27549
27587
|
if (extension === 'pdf') {
|
|
27550
27588
|
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
27551
27589
|
} else {
|
|
@@ -27764,7 +27802,7 @@ const Upload = ({
|
|
|
27764
27802
|
lineNumber: 666,
|
|
27765
27803
|
columnNumber: 17
|
|
27766
27804
|
}
|
|
27767
|
-
}, ".", item === null || item === void 0
|
|
27805
|
+
}, ".", item === null || item === void 0 || (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.split('.').pop()), /*#__PURE__*/React__default.createElement(Tooltip$1, {
|
|
27768
27806
|
label: item.name,
|
|
27769
27807
|
__self: undefined,
|
|
27770
27808
|
__source: {
|
|
@@ -32299,7 +32337,7 @@ const Navigation = props => {
|
|
|
32299
32337
|
lineNumber: 292,
|
|
32300
32338
|
columnNumber: 13
|
|
32301
32339
|
}
|
|
32302
|
-
}, typeof (props === null || props === void 0 ? void 0 : props.appendContent) === 'function' ? props === null || props === void 0
|
|
32340
|
+
}, typeof (props === null || props === void 0 ? void 0 : props.appendContent) === 'function' ? props === null || props === void 0 || (_props$appendContent = props.appendContent) === null || _props$appendContent === void 0 ? void 0 : _props$appendContent.call(props) : props === null || props === void 0 ? void 0 : props.appendContent)));
|
|
32303
32341
|
},
|
|
32304
32342
|
__self: undefined,
|
|
32305
32343
|
__source: {
|
|
@@ -32366,7 +32404,7 @@ const Default = props => {
|
|
|
32366
32404
|
}, [props.hide]);
|
|
32367
32405
|
useEffect(() => {
|
|
32368
32406
|
var _props$onChangeVisibi;
|
|
32369
|
-
props === null || props === void 0
|
|
32407
|
+
props === null || props === void 0 || (_props$onChangeVisibi = props.onChangeVisibility) === null || _props$onChangeVisibi === void 0 || _props$onChangeVisibi.call(props, state.hide);
|
|
32370
32408
|
}, [state.hide]);
|
|
32371
32409
|
const toogleVisibility = value => {
|
|
32372
32410
|
updateState(prev => Object.assign({}, prev, {
|
|
@@ -32375,11 +32413,11 @@ const Default = props => {
|
|
|
32375
32413
|
};
|
|
32376
32414
|
const getIsComplete = currentStep => {
|
|
32377
32415
|
var _state$isComplete;
|
|
32378
|
-
return state === null || state === void 0
|
|
32416
|
+
return state === null || state === void 0 || (_state$isComplete = state.isComplete) === null || _state$isComplete === void 0 ? void 0 : _state$isComplete[currentStep - 1];
|
|
32379
32417
|
};
|
|
32380
32418
|
const getTitleStep = currentStep => {
|
|
32381
|
-
var _props$navContents
|
|
32382
|
-
return props === null || props === void 0
|
|
32419
|
+
var _props$navContents;
|
|
32420
|
+
return props === null || props === void 0 || (_props$navContents = props.navContents) === null || _props$navContents === void 0 || (_props$navContents = _props$navContents[currentStep - 1]) === null || _props$navContents === void 0 ? void 0 : _props$navContents.title;
|
|
32383
32421
|
};
|
|
32384
32422
|
const setState = value => {
|
|
32385
32423
|
updateState(Object.assign({}, state, value));
|
|
@@ -32406,20 +32444,20 @@ const Default = props => {
|
|
|
32406
32444
|
}));
|
|
32407
32445
|
};
|
|
32408
32446
|
const handleStepChange = e => {
|
|
32409
|
-
var _props$
|
|
32447
|
+
var _props$navContents2;
|
|
32410
32448
|
const target = window.document.getElementById('container');
|
|
32411
32449
|
props.scrollTop && target.scrollIntoView({
|
|
32412
32450
|
behavior: 'smooth',
|
|
32413
32451
|
block: 'start'
|
|
32414
32452
|
});
|
|
32415
32453
|
props.onStepChange && props.onStepChange(e);
|
|
32416
|
-
if (props !== null && props !== void 0 && (_props$
|
|
32454
|
+
if (props !== null && props !== void 0 && (_props$navContents2 = props.navContents) !== null && _props$navContents2 !== void 0 && (_props$navContents2 = _props$navContents2[(e === null || e === void 0 ? void 0 : e.activeStep) - 1]) !== null && _props$navContents2 !== void 0 && _props$navContents2.disabled) {
|
|
32417
32455
|
if ((e === null || e === void 0 ? void 0 : e.activeStep) > (e === null || e === void 0 ? void 0 : e.previousStep)) {
|
|
32418
32456
|
var _state$SW;
|
|
32419
|
-
state === null || state === void 0
|
|
32457
|
+
state === null || state === void 0 || (_state$SW = state.SW) === null || _state$SW === void 0 || _state$SW.nextStep();
|
|
32420
32458
|
} else {
|
|
32421
32459
|
var _state$SW2;
|
|
32422
|
-
state === null || state === void 0
|
|
32460
|
+
state === null || state === void 0 || (_state$SW2 = state.SW) === null || _state$SW2 === void 0 || _state$SW2.previousStep();
|
|
32423
32461
|
}
|
|
32424
32462
|
}
|
|
32425
32463
|
};
|
|
@@ -32691,10 +32729,10 @@ function Content({
|
|
|
32691
32729
|
active: (item === null || item === void 0 ? void 0 : item.id) === activeId,
|
|
32692
32730
|
href: `#${item === null || item === void 0 ? void 0 : item.id}`,
|
|
32693
32731
|
onClick: e => {
|
|
32694
|
-
var _e$currentTarget, _e$
|
|
32732
|
+
var _e$currentTarget, _e$currentTarget2;
|
|
32695
32733
|
e.preventDefault();
|
|
32696
|
-
onNavClick === null || onNavClick === void 0
|
|
32697
|
-
const target = window.document.getElementById(e === null || e === void 0
|
|
32734
|
+
onNavClick === null || onNavClick === void 0 || onNavClick(e === null || e === void 0 || (_e$currentTarget = e.currentTarget) === null || _e$currentTarget === void 0 || (_e$currentTarget = _e$currentTarget.href) === null || _e$currentTarget === void 0 || (_e$currentTarget = _e$currentTarget.split('#')) === null || _e$currentTarget === void 0 ? void 0 : _e$currentTarget[1]);
|
|
32735
|
+
const target = window.document.getElementById(e === null || e === void 0 || (_e$currentTarget2 = e.currentTarget) === null || _e$currentTarget2 === void 0 || (_e$currentTarget2 = _e$currentTarget2.href) === null || _e$currentTarget2 === void 0 || (_e$currentTarget2 = _e$currentTarget2.split('#')) === null || _e$currentTarget2 === void 0 ? void 0 : _e$currentTarget2[1]);
|
|
32698
32736
|
if (target) {
|
|
32699
32737
|
var headerOffset = 20;
|
|
32700
32738
|
var elementPosition = target.getBoundingClientRect().top;
|
|
@@ -52088,7 +52126,7 @@ var parseInt$1 = numberParseInt;
|
|
|
52088
52126
|
// `Number.parseInt` method
|
|
52089
52127
|
// https://tc39.es/ecma262/#sec-number.parseint
|
|
52090
52128
|
// eslint-disable-next-line es/no-number-parseint -- required for testing
|
|
52091
|
-
$({ target: 'Number', stat: true, forced: Number.parseInt
|
|
52129
|
+
$({ target: 'Number', stat: true, forced: Number.parseInt !== parseInt$1 }, {
|
|
52092
52130
|
parseInt: parseInt$1
|
|
52093
52131
|
});
|
|
52094
52132
|
|